:root {
  --lm-max: 1120px;
  --lm-nav-h: 64px;
}
html { scroll-behavior: smooth; }
body:not(.adm-shell):not(.body):not(.adm-login) {
  background: #fff;
  color: var(--text);
}
::selection { background: #dbeafe; }
input, textarea, select { caret-color: var(--accent); }
.lm-embed { background: var(--bg); }

.lm-logo { width: 28px; height: 28px; }
.lm-wrap {
  width: min(var(--lm-max), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

/* nav */
.lm-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--lm-nav-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.lm-nav-inner {
  height: 100%;
  width: min(var(--lm-max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.lm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.lm-nav-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.lm-nav-links a {
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  position: relative;
}
.lm-nav-links a:hover { color: var(--text); }
.lm-nav-links a.is-on {
  color: var(--accent-2);
  font-weight: 600;
}
.lm-nav-links a.is-on::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.lm-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lm-nav-login {
  color: #475569;
  text-decoration: none;
  font-size: 14px;
}
.lm-nav-login:hover { color: var(--accent-2); }
.lm-nav-toggle {
  display: none;
  width: 36px; height: 36px; border: 0; border-radius: 10px;
  background:
    linear-gradient(var(--text), var(--text)) 10px 12px / 16px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) 10px 17px / 16px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) 10px 22px / 16px 1.5px no-repeat;
  cursor: pointer;
}

.lm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}
.lm-btn:hover { background: var(--accent-2); }
.lm-btn-nav { min-height: 36px; padding: 0 14px; font-size: 13px; }
.lm-btn-ghost {
  background: #fff;
  color: var(--accent-2);
  border: 1px solid #bfdbfe;
  box-shadow: none;
}
.lm-btn-ghost:hover { background: var(--accent-soft); }
.lm-btn-block { width: 100%; min-height: 40px; }
.lm-btn:disabled,
.lm-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.lm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.lm-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.lm-hint.is-err { color: #b91c1c; }
.lm-pay {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
}
.lm-pay h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.lm-pay p { margin: 0 0 8px; font-size: 13px; line-height: 1.6; color: #334155; }

/* hero */
.lm-hero {
  width: min(var(--lm-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 420px);
  gap: 56px;
  align-items: center;
}
.lm-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: 12ch;
}
.lm-hero > div > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 32ch;
}
.lm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lm-trust {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
}
.lm-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 13px;
}
.lm-trust svg {
  width: 18px; height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lm-lic {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  transform: translateY(0);
  transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out);
}
.lm-lic:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.14), 0 4px 10px rgba(15, 23, 42, 0.06);
}
.lm-lic-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.lm-lic-top strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.lm-lic-top span { color: var(--muted); font-size: 12px; }
.lm-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 12px;
  font-weight: 650;
}
.lm-field {
  margin-bottom: 14px;
  width: 100%;
}
.lm-field > span {
  display: block;
  font-size: 13px;
  color: #334155;
  margin-bottom: 6px;
  font-weight: 500;
}
.lm-field > label {
  display: block;
  font-size: 13px;
  color: #334155;
  margin-bottom: 6px;
  font-weight: 500;
}
.lm-field input[type="text"],
.lm-field input[type="password"],
.lm-field input[type="email"],
.lm-field input[type="search"],
.lm-field input[type="number"],
.lm-field input:not([type]),
.lm-field select,
.lm-input {
  display: block;
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  box-sizing: border-box;
}
.lm-field input:focus, .lm-field select:focus, .lm-input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

/* features */
.lm-feats {
  background: var(--bg);
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
}
.lm-feat-grid {
  width: min(var(--lm-max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lm-feat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px 24px;
  box-shadow: var(--shadow);
}
.lm-feat svg {
  width: 36px; height: 36px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 16px;
}
.lm-feat h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lm-feat p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.lm-acts {
  padding: 28px 0 80px;
  background: var(--bg);
}
.lm-act-grid {
  width: min(var(--lm-max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lm-act {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  display: block;
}
.lm-act:hover { border-color: #bfdbfe; }
.lm-act b {
  display: block;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.lm-act span { color: var(--muted); font-size: 13px; }

/* public forms */
.lm-main {
  width: min(560px, calc(100% - 48px));
  margin: 40px auto 72px;
}
.lm-main-wide {
  width: min(920px, calc(100% - 48px));
}
.lm-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
}
.lm-panel h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.lm-panel .lm-btn-block,
.lm-lic .lm-btn-block,
.lm-panel .lm-input,
.lm-panel .lm-field input[type="text"],
.lm-panel .lm-field input[type="password"],
.lm-panel .lm-field input[type="email"],
.lm-panel .lm-field input[type="search"],
.lm-panel .lm-field input[type="number"],
.lm-panel .lm-field input:not([type]),
.lm-panel .lm-field select {
  width: 100%;
  box-sizing: border-box;
}
.lm-panel .lm-btn + .lm-field,
.lm-panel .lm-btn-block + .lm-field { margin-top: 14px; }
#changecontent .mdl-textfield,
#changecontent .lm-field {
  width: 100%;
}
.lm-radios {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: 14px;
  color: #334155;
}
.lm-radios label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  width: auto;
  max-width: none;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}
.lm-radios input[type="radio"] {
  appearance: auto;
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 16px;
  accent-color: var(--accent);
  box-shadow: none;
}
.lm-extra {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 13px;
}
.lm-extra a { color: var(--accent); text-decoration: none; }
#vaptchaContainer { margin: 12px 0; }
.lm-result {
  display: none;
  margin-top: 18px;
  padding: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
  word-break: break-word;
}
.lm-result.is-on { display: block; }
.lm-result.is-err { color: #b91c1c; }
.lm-result-h {
  margin: 16px 0 8px;
  font-size: 14px;
  font-weight: 700;
}
.lm-table-wrap { overflow-x: auto; }
.lm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.lm-table th,
.lm-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: middle;
}
.lm-table th {
  color: var(--muted);
  font-weight: 600;
}
.lm-table a {
  color: var(--accent);
  text-decoration: none;
  margin-right: 12px;
}
.lm-td-act { white-space: nowrap; }
.lm-table tr.is-off td { color: var(--muted); }

/* console embed board */
.lm-board {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items: start;
}
.lm-board .lm-panel { margin: 0; }
.lm-side-card h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}
.lm-side-card p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.lm-side-card .lm-btn { margin-bottom: 8px; }
.lm-side-card .lm-btn:last-child { margin-bottom: 0; }

.lm-foot {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  background: #fff;
}
.lm-foot-inner {
  width: min(var(--lm-max), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}
.lm-foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.lm-foot-links a { color: #475569; text-decoration: none; }
.lm-foot-links a:hover { color: var(--accent); }

.lm-embed .lm-nav,
.lm-embed .lm-foot { display: none; }
.lm-embed .lm-main {
  width: auto;
  margin: 0;
}
.lm-embed .lm-board { margin: 0; }

@media (max-width: 900px) {
  .lm-nav-inner { grid-template-columns: 1fr auto; }
  .lm-nav-toggle { display: block; }
  .lm-nav-links, .lm-nav-actions {
    display: none;
  }
  .lm-nav.is-open .lm-nav-links,
  .lm-nav.is-open .lm-nav-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0; right: 0;
    top: var(--lm-nav-h);
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 16px;
    gap: 10px;
  }
  .lm-nav.is-open .lm-nav-links a.is-on::after { display: none; }
  .lm-hero, .lm-feat-grid, .lm-act-grid, .lm-board {
    grid-template-columns: 1fr;
  }
  .lm-hero { padding-top: 40px; gap: 28px; }
  .lm-hero h1 { max-width: none; }
  .lm-foot-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .lm-lic, .lm-lic:hover { transform: none; transition: none; }
}
