:root {
  --bg: #06100d;
  --bg-deep: #030806;
  --panel: rgba(12, 28, 22, .88);
  --panel-strong: #10271f;
  --line: rgba(155, 196, 178, .13);
  --line-strong: rgba(155, 196, 178, .24);
  --text: #eef8f3;
  --muted: #86a398;
  --green: #42e6ad;
  --green-soft: rgba(66, 230, 173, .1);
  --amber: #efc86f;
  --red: #ff837f;
  --blue: #79aefd;
  --shadow: 0 24px 70px rgba(0, 0, 0, .3);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg-deep); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(44, 151, 112, .14), transparent 33%),
    radial-gradient(circle at 93% 12%, rgba(49, 104, 88, .13), transparent 29%),
    linear-gradient(150deg, #07130f, #030806 72%);
}
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 5px; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}
.pill::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.pill.live { border-color: rgba(66,230,173,.25); background: var(--green-soft); color: var(--green); }
.pill.warn { border-color: rgba(239,200,111,.25); background: rgba(239,200,111,.07); color: var(--amber); }
.pill.danger { border-color: rgba(255,131,127,.25); background: rgba(255,131,127,.07); color: var(--red); }
.button {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(66,230,173,.28);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(66,230,173,.94), rgba(34,180,132,.9));
  color: #02100b;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, border-color .15s ease;
}
.button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; filter: grayscale(.5); opacity: .5; transform: none; }
.button.secondary { border-color: var(--line-strong); background: rgba(8,20,16,.8); color: var(--text); }
.button.danger { border-color: rgba(255,131,127,.26); background: rgba(255,131,127,.08); color: var(--red); }
.button.small { min-height: 31px; padding: 0 11px; border-radius: 8px; font-size: 9px; }
.icon-button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; }
.field { display: grid; gap: 7px; }
.field label { color: #b6ccc3; font-size: 10px; font-weight: 700; }
.field small { color: var(--muted); font-size: 8px; line-height: 1.5; }
.field input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  outline: none;
  border-radius: 10px;
  background: rgba(2,9,7,.68);
  color: var(--text);
  font-size: 12px;
}
.field input:focus { border-color: rgba(66,230,173,.55); box-shadow: 0 0 0 3px rgba(66,230,173,.07); }
.password-control { position: relative; }
.password-control input { padding-right: 48px; }
.password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}
.password-toggle:hover, .password-toggle:focus-visible { background: rgba(66,230,173,.07); color: var(--green); outline: none; }
.password-eye { position: relative; display: block; width: 17px; height: 11px; border: 1.4px solid currentColor; border-radius: 65% 35% 65% 35%; transform: rotate(45deg); }
.password-eye::before { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; content: ""; transform: translate(-50%,-50%); }
.password-toggle[aria-pressed="true"] .password-eye::after { position: absolute; left: 7px; top: -4px; width: 1.5px; height: 18px; border-radius: 2px; background: currentColor; box-shadow: 0 0 0 2px var(--bg-deep); content: ""; }
.form-error { min-height: 18px; margin: 0; color: var(--red); font-size: 9px; line-height: 1.6; }

.auth-body { display: grid; place-items: center; padding: 24px; }
.auth-shell { width: min(100%, 920px); }
.auth-card {
  display: grid;
  min-height: 540px;
  grid-template-columns: .82fr 1.18fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(5,15,11,.88);
  box-shadow: 0 36px 100px rgba(0,0,0,.48);
}
.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 46px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(27,66,52,.65), rgba(5,18,13,.6)),
    radial-gradient(circle at 70% 20%, rgba(66,230,173,.2), transparent 36%);
}
.auth-brand::after { position: absolute; right: -120px; bottom: -130px; width: 390px; height: 390px; border: 1px solid rgba(66,230,173,.1); border-radius: 50%; box-shadow: 0 0 0 55px rgba(66,230,173,.025), 0 0 0 110px rgba(66,230,173,.018); content: ""; }
.brand-mark { position: relative; z-index: 1; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(66,230,173,.35); border-radius: 14px; background: rgba(3,14,10,.65); color: var(--green); font-size: 23px; font-weight: 900; box-shadow: 0 0 35px rgba(66,230,173,.12); }
.auth-brand-copy { position: relative; z-index: 1; max-width: 430px; }
.auth-brand h1 { margin: 0 0 15px; font-size: clamp(35px,5vw,58px); line-height: 1.02; letter-spacing: -.055em; }
.auth-brand p { max-width: 390px; color: #9bb7ac; font-size: 12px; line-height: 1.8; }
.auth-security { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; }
.auth-security span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 8px; }
.auth-form-wrap { display: grid; align-content: center; justify-items: center; padding: 48px 58px; }
.auth-form-wrap > * { width: min(100%, 360px); }
.auth-form-wrap h2 { margin: 0 0 24px; font-size: 24px; letter-spacing: -.035em; text-align: center; }
.auth-intro { margin: -10px 0 23px; color: var(--muted); font-size: 10px; line-height: 1.7; text-align: center; }
.auth-form { display: grid; gap: 13px; }
.auth-form .button { margin-top: 3px; }
.auth-extra { min-height: 22px; margin-top: 18px; color: var(--muted); font-size: 9px; text-align: center; }
.auth-extra a { color: var(--green); text-decoration: none; }

.auth-visual-panel {
  isolation: isolate;
  min-height: 540px;
  padding: 0;
  background:
    radial-gradient(circle at 50% 49%, rgba(66,230,173,.105), transparent 24%),
    radial-gradient(circle at 24% 17%, rgba(121,174,253,.07), transparent 30%),
    linear-gradient(145deg, rgba(15,39,31,.76), rgba(3,12,9,.95));
}
.auth-visual-panel::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at center, transparent 0 26%, rgba(1,8,6,.18) 64%, rgba(1,6,4,.72) 100%);
  content: "";
}
.auth-visual-panel::after {
  content: none;
}
.intelligence-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.visual-grid {
  position: absolute;
  inset: 52% -12% -22%;
  z-index: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(66,230,173,.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66,230,173,.2) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34%, transparent 92%);
  mask-image: linear-gradient(to bottom, transparent, #000 34%, transparent 92%);
  transform: perspective(360px) rotateX(62deg) scale(1.38);
  transform-origin: center top;
  animation: grid-drift 9s linear infinite;
}
.visual-scan {
  position: absolute;
  z-index: 1;
  left: 12%;
  right: 12%;
  top: 20%;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(133,255,216,.46), transparent);
  box-shadow: 0 0 15px rgba(66,230,173,.26);
  animation: visual-scan 5.6s ease-in-out infinite;
}
.intelligence-core {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 48%;
  width: 174px;
  height: 174px;
  transform: translate(-50%,-50%);
}
.core-shell, .core-pulse, .core-center { position: absolute; left: 50%; top: 50%; border-radius: 50%; }
.core-shell { border: 1px solid rgba(122,244,204,.35); }
.shell-two {
  width: 74%; height: 74%; margin: -37%;
  border-right-color: transparent; border-top-color: rgba(121,174,253,.52);
  animation: core-spin-reverse 8s linear infinite;
}
.shell-three {
  width: 48%; height: 48%; margin: -24%;
  border-left-color: rgba(255,255,255,.62); border-right-color: transparent;
  animation: core-spin 5s linear infinite;
}
.core-pulse {
  width: 48%; height: 48%; margin: -24%;
  border: 1px solid rgba(66,230,173,.2);
  animation: core-pulse 3.4s ease-out infinite;
}
.pulse-two { animation-delay: 1.7s; }
.core-center {
  display: grid;
  width: 76px; height: 76px; margin: -38px;
  place-items: center;
  overflow: visible;
  border: 1px solid rgba(142,255,216,.28);
  border-radius: 23px;
  background: linear-gradient(145deg, rgba(21,72,55,.3), rgba(4,20,14,.22));
  box-shadow: 0 0 26px rgba(66,230,173,.13), inset 0 1px rgba(255,255,255,.12);
  backdrop-filter: blur(5px);
  animation: core-breathe 3.2s ease-in-out infinite;
}
.core-center::before, .core-center::after {
  position: absolute;
  pointer-events: none;
  content: "";
}
.core-center::before { inset: 7px; border: 1px solid rgba(121,174,253,.17); border-radius: 17px; }
.core-center::after { left: 19%; right: 19%; top: 0; height: 1px; background: linear-gradient(90deg,transparent,#baffea,transparent); box-shadow: 0 0 10px rgba(66,230,173,.42); }
.core-center i { position: absolute; inset: -17px; border: 1px dashed rgba(111,245,199,.15); border-radius: 50%; animation: core-spin 18s linear infinite; }
.core-center i::before, .core-center i::after { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #a7fddd; box-shadow: 0 0 8px rgba(66,230,173,.9); content: ""; }
.core-center i::before { left: 50%; top: -2px; }
.core-center i::after { right: -2px; top: 50%; }
.core-letter { position: relative; z-index: 2; color: #cffff0; font-size: 35px; font-weight: 850; line-height: 1; letter-spacing: -.08em; text-indent: -.08em; text-shadow: 0 0 8px rgba(185,255,231,.45), 0 0 24px rgba(66,230,173,.38); }
.visual-bracket { position: absolute; z-index: 2; width: 38px; height: 38px; opacity: .25; }
.bracket-a { left: 12%; top: 15%; border-left: 1px solid var(--green); border-top: 1px solid var(--green); }
.bracket-b { right: 12%; bottom: 15%; border-right: 1px solid var(--green); border-bottom: 1px solid var(--green); }
@keyframes core-spin { to { transform: rotate(360deg); } }
@keyframes core-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes core-breathe { 50% { transform: scale(1.035); filter: brightness(1.1); } }
@keyframes core-pulse { 0% { opacity: .52; transform: scale(.82); } 100% { opacity: 0; transform: scale(2.15); } }
@keyframes visual-scan { 0%,14% { top: 18%; opacity: 0; } 24% { opacity: .68; } 68% { opacity: .35; } 78%,100% { top: 82%; opacity: 0; } }
@keyframes grid-drift { to { background-position: 0 38px, 38px 0; } }

.shell { width: min(100% - 32px, 1240px); margin: 0 auto; padding: 22px 0 42px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-lockup .brand-mark { width: 37px; height: 37px; border-radius: 11px; font-size: 18px; }
.brand-lockup h1 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.top-actions > span { color: var(--muted); font-size: 9px; }
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(16,35,29,.87), rgba(7,17,13,.84));
  box-shadow: inset 0 1px rgba(255,255,255,.025), var(--shadow);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.panel-head h2 { margin: 0; font-size: 15px; letter-spacing: -.025em; }
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 25px;
  min-height: 170px;
  margin-bottom: 10px;
  padding: 27px 30px;
}
.status-line { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(66,230,173,.07), 0 0 15px rgba(66,230,173,.45); }
.hero h2 { margin: 0 0 8px; font-size: clamp(25px,3.2vw,38px); letter-spacing: -.045em; }
.hero p { max-width: 700px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.hero-side { min-width: 230px; padding: 17px 19px; border: 1px solid rgba(66,230,173,.17); border-radius: 13px; background: rgba(2,10,7,.35); }
.hero-side span, .hero-side small { display: block; color: var(--muted); font-size: 8px; }
.hero-side strong { display: block; margin: 6px 0 3px; color: var(--green); font-size: 17px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 10px; }
.metric { min-height: 113px; padding: 18px; }
.metric > span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.metric > strong { display: block; margin: 10px 0 3px; font-size: clamp(20px,2.5vw,28px); letter-spacing: -.04em; }
.metric > small { color: var(--muted); font-size: 8px; }
.grid-main { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(310px,.8fr); gap: 10px; margin-bottom: 10px; }
.grid-main > .panel, .section-panel { padding: 21px; }
.stack { display: grid; gap: 10px; }
.system-list { display: grid; gap: 8px; }
.system-list > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 12px; border: 1px solid rgba(155,196,178,.09); border-radius: 9px; background: rgba(2,9,7,.24); }
.system-list span { color: var(--muted); font-size: 9px; }
.system-list strong { font-size: 10px; }
.empty-state { display: grid; min-height: 180px; place-items: center; align-content: center; gap: 7px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.empty-state strong { color: #cfe0d9; font-size: 12px; }
.empty-state p { margin: 0; font-size: 9px; }
.position-card { display: grid; grid-template-columns: 1.2fr repeat(3,1fr); gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(2,9,7,.25); }
.position-card + .position-card { margin-top: 8px; }
.position-card span { display: block; color: var(--muted); font-size: 8px; }
.position-card strong { display: block; margin-top: 4px; font-size: 12px; }
.position-card h3 { margin: 3px 0 0; font-size: 18px; }
.risk-bar { display: grid; grid-template-columns: auto 1fr; gap: 11px; margin-bottom: 10px; padding: 12px 14px; border: 1px solid rgba(239,200,111,.16); border-radius: 13px; background: rgba(239,200,111,.045); }
.risk-mark { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid rgba(239,200,111,.3); border-radius: 50%; color: var(--amber); font-size: 10px; font-weight: 900; }
.risk-bar strong { display: block; margin-bottom: 3px; color: #e7d39e; font-size: 9px; }
.risk-bar p { margin: 0; color: #9c998d; font-size: 8px; line-height: 1.65; }
.risk-disclosure { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; margin-bottom: 10px; padding: 11px 14px; border: 1px solid rgba(246,201,99,.17); border-radius: 13px; background: linear-gradient(100deg,rgba(246,201,99,.055),rgba(83,42,20,.08)); color: rgba(224,218,198,.72); }
.risk-symbol { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(246,201,99,.3); border-radius: 50%; color: var(--amber); font-size: 11px; font-weight: 900; }
.risk-copy > strong { display: block; margin-bottom: 3px; color: rgba(246,226,172,.88); font-size: 9px; letter-spacing: .06em; }
.risk-copy p { margin: 0; font-size: 8.5px; line-height: 1.65; }
.risk-copy .protection-copy { color: rgba(218,231,223,.78); }
.risk-copy .risk-warning { margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(246,201,99,.09); }
.risk-copy b { color: rgba(246,226,172,.95); font-weight: 780; }
.risk-facts { display: flex; flex: 0 0 auto; gap: 7px; }
.risk-facts span { min-width: 92px; padding: 7px 9px; border-left: 1px solid rgba(246,201,99,.16); color: rgba(194,190,176,.66); font-size: 7.5px; white-space: nowrap; }
.risk-facts strong { display: block; margin-top: 2px; color: rgba(246,226,172,.88); font-size: 10px; }
.api-guide { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 17px; }
.api-guide div { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(2,9,7,.22); }
.api-guide span { color: var(--green); font-size: 8px; font-weight: 850; }
.api-guide strong { display: block; margin: 6px 0 3px; font-size: 10px; }
.api-guide p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.connection-lock { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 15px; border: 1px solid rgba(66,230,173,.2); border-radius: 12px; background: linear-gradient(135deg,rgba(66,230,173,.075),rgba(2,9,7,.3)); }
.connection-lock-mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(66,230,173,.3); border-radius: 50%; background: rgba(66,230,173,.1); color: var(--green); font-size: 15px; font-weight: 900; }
.connection-lock strong { display: block; margin-bottom: 4px; font-size: 11px; }
.connection-lock p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.65; }
.credential-import { display: grid; gap: 9px; padding: 13px; border: 1px solid rgba(121,174,253,.18); border-radius: 11px; background: rgba(121,174,253,.035); }
.credential-import-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.credential-import-head strong { display: block; font-size: 10px; }
.credential-import-head p { margin: 3px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.credential-import textarea { width: 100%; min-height: 72px; resize: vertical; padding: 11px 13px; border: 1px solid var(--line-strong); outline: none; border-radius: 9px; background: rgba(2,9,7,.68); color: var(--text); font: 10px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace; }
.credential-import textarea:focus { border-color: rgba(121,174,253,.55); box-shadow: 0 0 0 3px rgba(121,174,253,.06); }
.credential-import > small { color: var(--muted); font-size: 8px; line-height: 1.5; }
.form-separator { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 8px; }
.form-separator::before, .form-separator::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.secret-status { color: var(--muted); font-size: 9px; }
.control-box { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(2,9,7,.24); }
.control-box p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.control-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 9px; border-bottom: 1px solid rgba(155,196,178,.08); font-size: 9px; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 8px; letter-spacing: .05em; }
td { color: #c9d8d2; }
tbody tr:last-child td { border-bottom: 0; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }

.admin-hero { min-height: 135px; }
.admin-toolbar { display: flex; align-items: center; gap: 8px; }
.toggle {
  position: relative;
  width: 42px;
  height: 23px;
  border: 0;
  border-radius: 999px;
  background: #263a33;
  cursor: pointer;
}
.toggle::after { position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #81978e; transition: .18s ease; content: ""; }
.toggle.on { background: rgba(66,230,173,.25); }
.toggle.on::after { left: 22px; background: var(--green); }
.capacity { display: grid; gap: 7px; min-width: 220px; }
.capacity-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }
.capacity-track { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(155,196,178,.1); }
.capacity-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--green),#82f2ca); }
.codes-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.invite { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(2,9,7,.22); }
.invite-main span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 7px; }
.invite-main strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .07em; }
.invite-actions { display: flex; align-items: center; gap: 7px; }
.user-admin-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 230px; }
.reset-result { display: grid; gap: 9px; margin-top: 13px; padding: 13px; border: 1px solid rgba(66,230,173,.22); border-radius: 11px; background: rgba(66,230,173,.055); }
.reset-result span { color: var(--muted); font-size: 8px; }
.reset-result strong { color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 24px; letter-spacing: .18em; }
.reset-result .icon-button { justify-self: start; }
.footer { display: flex; justify-content: space-between; padding: 8px 3px; color: #587167; font-size: 8px; }

.toast { position: fixed; right: 18px; bottom: 18px; z-index: 20; max-width: 340px; padding: 12px 15px; border: 1px solid rgba(66,230,173,.25); border-radius: 10px; background: #10271f; box-shadow: var(--shadow); color: #dff5ec; font-size: 10px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-color: rgba(255,131,127,.3); color: #ffd0ce; }
.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(1,5,4,.78); backdrop-filter: blur(5px); }
.modal { width: min(100%,410px); padding: 23px; border: 1px solid var(--line-strong); border-radius: 16px; background: #0d211a; box-shadow: 0 35px 100px rgba(0,0,0,.55); }
.modal h2 { margin: 0 0 7px; font-size: 18px; }
.modal p { margin: 0 0 17px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 15px; }

@media (max-width: 900px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-brand { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .grid-main { grid-template-columns: 1fr; }
  .codes-grid { grid-template-columns: 1fr; }
  .risk-disclosure { grid-template-columns: auto minmax(0,1fr); }
  .risk-facts { grid-column: 2; }
}
@media (max-width: 620px) {
  .auth-body { padding: 10px; }
  .auth-card { border-radius: 18px; }
  .auth-brand { min-height: 255px; padding: 28px; }
  .auth-visual-panel { min-height: 205px; padding: 0; }
  .intelligence-core { width: 126px; height: 126px; top: 49%; }
  .core-center { width: 58px; height: 58px; margin: -29px; border-radius: 18px; }
  .core-center::before { inset: 6px; border-radius: 13px; }
  .core-center i { inset: -13px; }
  .core-letter { font-size: 28px; }
  .auth-form-wrap { padding: 34px 28px 30px; }
  .shell { width: min(100% - 20px,1240px); padding-top: 12px; }
  .topbar { align-items: flex-start; }
  .top-actions > span { display: none; }
  .hero { grid-template-columns: 1fr; padding: 21px; }
  .hero-side { min-width: 0; }
  .risk-disclosure { align-items: start; padding: 12px; }
  .risk-facts { flex-wrap: wrap; }
  .metric { min-height: 100px; padding: 14px; }
  .metric > strong { font-size: 19px; }
  .api-guide, .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .connection-lock { grid-template-columns: auto 1fr; }
  .connection-lock .button { grid-column: 1 / -1; width: 100%; }
  .credential-import-head { align-items: flex-start; flex-direction: column; }
  .position-card { grid-template-columns: 1fr 1fr; }
  .position-card > div:first-child { grid-column: 1 / -1; }
  .footer { flex-direction: column; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .visual-grid, .visual-scan, .core-shell, .core-pulse, .core-center { animation: none !important; }
}
