/* ==========================================================================
   BRICS2026-ST-003 备赛控制台 · 叠加样式
   基于 FrostUI（frost.css）的设计令牌：不改原文件，只在其上扩展
   ========================================================================== */

/* 栅格 */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.section--sub { padding-top: clamp(18px, 2.4vw, 28px); }

/* 文本辅助 */
.muted { color: var(--text-2); font-size: 13.5px; line-height: 1.8; }
.muted + .muted { margin-top: 8px; }
.strong { color: var(--text); font-weight: 650; }
.mini-note { font-size: 11.5px; color: var(--text-3); line-height: 1.7; }
.hr { height: 1px; margin: 16px 0; background: var(--line); border: 0; }

/* 首屏事实栏：给等宽标签留够宽度，避免与正文贴在一起 */
.hero__facts li .mono { width: 66px; }
.hero__facts li { line-height: 1.7; }

/* 中文小标签不要用等宽字距 */
#jobTag {
  font-family: var(--font-ui);
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--text-3);
}
.card__head p { letter-spacing: .1em; }

/* 代码块 */
.code {
  position: relative;
  margin-top: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(5, 9, 16, .88), rgba(8, 13, 22, .92));
  overflow: hidden;
}
html[data-theme="light"] .code {
  background: linear-gradient(180deg, #0B1220, #0E1526);
}
.code pre {
  margin: 0;
  padding: 14px 46px 14px 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.code code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: #DCE6F7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}
.code code .c { color: #6C7C95; }
.code code .k { color: #8FB6FF; }
.code code .s { color: #9FE8C8; }
.code__copy {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #93A4BE;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: color .2s, background .2s, border-color .2s;
}
.code__copy:hover { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .26); }
.code__copy .i { width: 14px; height: 14px; }
.code__copy.is-done { color: var(--teal); border-color: rgb(var(--teal-rgb) / .45); }

/* 卡片内步骤头 */
.card__head > div { min-width: 0; }
.card__head h3 { white-space: normal; }
.card__head p { line-height: 1.4; }

/* 验收行 */
.verify {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px dashed var(--line-2);
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
  word-break: break-word;
}
.verify b {
  flex: none;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  color: var(--accent-text);
}
.verify code { font-family: var(--font-mono); font-size: 11.5px; color: var(--text); }

/* 提示条 */
.note {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgb(var(--amber) / .28);
  background: rgba(255, 196, 107, .08);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
}
.note b { color: var(--amber); font-weight: 700; flex: none; }
.note--ok { border-color: rgb(var(--teal-rgb) / .3); background: rgb(var(--teal-rgb) / .08); }
.note--ok b { color: var(--teal); }
.note--bad { border-color: rgba(255, 126, 148, .3); background: rgba(255, 126, 148, .08); }
.note--bad b { color: var(--danger); }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12.5px; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
}
.tbl td { color: var(--text-2); line-height: 1.6; }
.tbl td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.tbl code { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-text); }

/* 勾选清单 */
.check { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.check label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.check label:hover { background: var(--chip-bg); border-color: var(--chip-border); }
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px; flex: none; margin-top: 1px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--input-bg);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.check input::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: rotate(-45deg) scale(.4);
  opacity: 0;
  transition: opacity .18s, transform .18s;
}
.check input:checked {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}
.check input:checked::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.check input:checked ~ span { color: var(--text-3); text-decoration: line-through; }
.check span { font-size: 12.5px; line-height: 1.6; color: var(--text); }
.check span code { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-text); }
.check span em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 2px;
}
.check__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-text);
}

/* ============================= 模拟训练 ============================= */
.sim { display: grid; grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.sim__side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--topbar-h) + 16px); }

.job__brief { font-size: 13px; line-height: 1.8; color: var(--text-2); margin-top: 4px; }
.job__brief code, .job__actions + * code { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-text); }
.job__verify { margin-top: 10px; font-size: 11.5px; color: var(--text-3); line-height: 1.65; }
.job__verify b { color: var(--teal); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; margin-right: 6px; }
.job__actions { display: flex; gap: 8px; margin-top: 14px; }
.job__actions .btn { flex: 1; }

.job__score {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.job__score > span:first-child {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 780; letter-spacing: -.03em;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
.job__score small { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-3); letter-spacing: .1em; }
.job__bar {
  flex: 1 1 80px; height: 6px; border-radius: 99px;
  background: var(--track); border: 1px solid var(--line); overflow: hidden;
}
.job__bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--teal));
  box-shadow: 0 0 12px rgb(var(--accent-rgb) / .6);
  transition: width .45s var(--ease-out);
}
.job__score > span:last-child {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-3); white-space: nowrap;
}

.job__list { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; max-height: 320px; overflow-y: auto; padding-right: 4px; }
.job__list li {
  display: grid; grid-template-columns: 18px 1fr auto; gap: 9px; align-items: center;
  padding: 6px 4px;
  font-size: 12px; color: var(--text-3);
  border-radius: 7px;
}
.job__list li b {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500;
  color: var(--text-3); text-align: center;
}
.job__list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job__list li em { font-family: var(--font-mono); font-size: 9.5px; font-style: normal; color: var(--text-3); }
.job__list li.is-active { color: var(--text); background: var(--chip-bg); }
.job__list li.is-active b { color: var(--accent); }
.job__list li.is-done { color: var(--text-3); }
.job__list li.is-done b { color: var(--ok-text); }
.job__list li.is-done span { text-decoration: line-through; opacity: .75; }

/* 终端 */
.term {
  position: relative;
  display: flex; flex-direction: column;
  height: clamp(520px, 62vh, 660px);
  min-height: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, #060A12, #04070D 60%, #050810);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
.term::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 60% at 50% -10%, rgb(var(--accent-rgb) / .12), transparent 70%);
}
.term__bar {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
}
.term__dots { display: flex; gap: 6px; }
.term__dots i { width: 9px; height: 9px; border-radius: 50%; background: #FF6B6B; opacity: .8; }
.term__dots i:nth-child(2) { background: #FFC46B; }
.term__dots i:nth-child(3) { background: #63E6BE; }
.term__bar b {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: .06em;
  color: #93A4BE;
}
.term__bar .pill { margin-left: auto; }

.term__body {
  position: relative;
  flex: 1;
  padding: 16px 16px 8px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: #C6D3E6;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}
.term__body::-webkit-scrollbar { width: 8px; }
.term__body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 8px; }

.ln { white-space: pre-wrap; word-break: break-word; animation: ln-in .22s var(--ease-out) both; }
@keyframes ln-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.ln--ps { color: #7C8CA5; }
.ln--cmd { color: #EAF1FF; }
.ln--ok { color: #7FE7C4; }
.ln--err { color: #FF9BAA; }
.ln--warn { color: #FFD08A; }
.ln--dim { color: #7C8CA5; }
.ln--head { color: #A9C2FF; font-weight: 600; margin-top: 10px; }
.ln--out { color: #C6D3E6; }
.ln--file { color: #B79CFF; }
.ln--badge {
  display: inline-block;
  margin: 8px 0 4px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  color: #07101F;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 700;
}

.term__form {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: rgba(4, 7, 13, .6);
}
.term__ps {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7FE7C4;
  white-space: nowrap;
}
.term__form input {
  flex: 1; min-width: 0;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  color: #EAF1FF;
  font-family: var(--font-mono);
  font-size: 12.5px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.term__form input::placeholder { color: #5D6C82; }
.term__form input:focus {
  border-color: rgb(var(--accent-rgb) / .55);
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .14);
}
.term__send {
  flex: none;
  width: 38px; height: 36px;
  display: grid; place-items: center;
  border-radius: 9px;
  color: #07101F;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 15px;
  font-weight: 700;
  transition: filter .2s, transform .2s;
}
.term__send .i { width: 17px; height: 17px; stroke-width: 2.2; }
.term__send:hover { filter: brightness(1.08); }
.term__send:active { transform: scale(.96); }

.term__hint {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 14px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #5D6C82;
}
.term__hint b { color: #93A4BE; font-weight: 500; }

/* 结算 */
.term.is-done .term__bar { background: rgb(var(--teal-rgb) / .1); }

/* 响应式 */
@media (max-width: 1120px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sim, .exam { grid-template-columns: minmax(0, 1fr); }
  .sim__side { position: static; }
  .job__list { max-height: 220px; }
}
@media (max-width: 760px) {
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .term { height: 480px; }
  .job__actions { flex-wrap: wrap; }
  .tbl { display: block; overflow-x: auto; }
  .dossier { max-height: none; }
}
@media print {
  .sim, .code__copy { display: none !important; }
  .code { background: #f6f8fc !important; border-color: #ddd; }
  .code code { color: #111; }
}

/* ============================= Tab 指令联想 ============================= */
.sug {
  position: absolute;
  left: 12px; right: 12px; bottom: 72px;
  z-index: 6;
  display: none;
  max-height: 236px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(8, 13, 23, .97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 26px 54px -22px rgba(0, 0, 0, .95);
  scrollbar-width: thin;
}
.sug.is-on { display: block; }
.sug__item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 9px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #C6D3E6;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sug__item b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.sug__item b i { font-style: normal; color: #7FE7C4; }
.sug__item em {
  margin-left: auto; flex: none;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .1em;
  color: #5D6C82;
}
.sug__item.is-sel { background: rgb(var(--accent-rgb) / .18); }
.sug__item.is-sel b i { color: #9BF0D2; }
.sug__tip {
  padding: 6px 9px 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: #4E5C72;
}

/* ============================= 仿真训练 ============================= */
.exam { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 16px; align-items: start; }
.exam__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.exam__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-2);
  background: var(--chip-bg);
}
.exam__bar b {
  font-family: var(--font-ui);
  font-size: 12.5px; font-weight: 600;
}
.exam__bar .mono { font-size: 9px; letter-spacing: .16em; color: var(--text-3); }
.exam__bar .btn--primary { margin-left: auto; }

/* 任务书：做成一张纸 */
.dossier {
  position: relative;
  max-height: 660px;
  overflow-y: auto;
  padding: 20px 22px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #FBFCFE 0%, #F1F5FC 100%);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 34px 64px -34px rgba(0, 0, 0, .8);
  color: #1B2434;
  scrollbar-width: thin;
}
.dossier::-webkit-scrollbar { width: 8px; }
.dossier::-webkit-scrollbar-thumb { background: rgba(27, 36, 52, .18); border-radius: 8px; }

.dossier__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1B2434;
}
.dossier__head .doc-eyebrow { color: #6B7A90; }
.dossier__stamp {
  flex: none;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .14em;
  color: #7A8798;
  text-align: right;
  line-height: 1.5;
}
.doc-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
}
.doc-h { font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: #0E1626; margin-top: 5px; }
.doc-meta { font-family: var(--font-mono); font-size: 10.5px; color: #6B7A90; margin-top: 3px; }

/* 任务书切换（深色界面上的书签） */
.book-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.book-tabs .doc-tab {
  background: var(--chip-bg);
  border-color: var(--chip-border);
  color: var(--text-2);
  height: 28px;
  padding: 0 11px;
  font-size: 11.5px;
}
.book-tabs .doc-tab:hover { background: var(--chip-hover); color: var(--text); }
.book-tabs .doc-tab.is-on {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: var(--accent-ink);
  font-weight: 650;
}

.doc-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 4px; }
.doc-tab {
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(27, 36, 52, .16);
  background: rgba(255, 255, 255, .7);
  color: #45536B;
  font-size: 11px;
  transition: background .18s, color .18s, border-color .18s;
}
.doc-tab:hover { background: #fff; color: #101827; }
.doc-tab.is-on { background: #1B2434; border-color: #1B2434; color: #F4F7FD; }

.doc-body { padding-top: 10px; }
.doc-sec { margin-top: 14px; }
.doc-sec:first-child { margin-top: 6px; }
.doc-sec h4 {
  font-family: var(--font-ui);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .02em;
  color: #2C3A52;
  margin-bottom: 7px;
}
.doc-ol { display: flex; flex-direction: column; gap: 8px; counter-reset: c; }
.doc-ol li {
  counter-increment: c;
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 7px;
  font-size: 12.5px; line-height: 1.8; color: #35425A;
}
.doc-ol li::before {
  content: counter(c) ".";
  font-family: var(--font-mono); font-size: 11px;
  color: #8394AC; padding-top: 3px;
}
.doc-p {
  font-size: 12.5px; line-height: 1.85; color: #35425A;
  margin-top: 5px;
  padding-left: 18px;
  text-indent: -18px;
}
.doc-code {
  margin: 8px 0 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: #E7EDF7;
  border: 1px solid #D2DCEC;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  color: #22406B;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.doc-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 11.5px; }
.doc-table th, .doc-table td { text-align: left; padding: 6px 7px; border-bottom: 1px solid #D8E0EE; color: #35425A; vertical-align: top; }
.doc-table th { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; color: #7A8798; font-weight: 500; }
.doc-table td:first-child { color: #101827; font-weight: 600; white-space: nowrap; }
.doc-foot {
  margin-top: 16px; padding-top: 10px;
  border-top: 1px dashed #C9D3E2;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .12em;
  color: #93A0B2;
  display: flex; justify-content: space-between;
}

/* 终端（仿真） */
.term--exam .term__body { font-size: 12px; }
.term--exam .term__bar { background: rgba(255, 255, 255, .02); }

/* 评分报告 */
.report { display: none; }
.report.is-on { display: block; margin-top: 12px; }
.report__head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgb(var(--teal-rgb) / .3);
  background: rgb(var(--teal-rgb) / .08);
}
.report__head strong {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 800; letter-spacing: -.03em;
  color: var(--ok-text);
  font-variant-numeric: tabular-nums;
}
.report__head span { font-size: 12px; color: var(--text-2); }
.report__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.rp { padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--chip-bg); }
.rp h5 {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 8px;
}
.rp li { display: flex; gap: 8px; align-items: baseline; font-size: 12px; line-height: 1.7; color: var(--text-2); }
.rp li + li { margin-top: 5px; }
.rp li b { flex: none; font-family: var(--font-mono); font-size: 10px; }
.rp--miss li b { color: var(--danger); }
.rp--hit li b { color: var(--ok-text); }
.rp li em { font-style: normal; color: var(--text-3); font-size: 10.5px; }

@media (max-width: 1120px) {
  .exam { grid-template-columns: minmax(0, 1fr); }
  .dossier { max-height: 420px; }
}
@media (max-width: 760px) {
  .dossier { max-height: none; padding: 16px 14px 18px; }
  .report__grid { grid-template-columns: 1fr; }
  .exam__bar { flex-wrap: wrap; }
  .exam__bar .btn { margin-left: 0; }
}

/* ============================= 登录 ============================= */
html.is-locked .app { display: none !important; }
html.is-locked body { overflow: hidden; }

.login {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(70% 55% at 50% -10%, rgb(var(--accent-rgb) / .22), transparent 62%),
    radial-gradient(50% 50% at 85% 110%, rgb(var(--accent-2-rgb) / .16), transparent 60%),
    var(--bg);
}
.login[hidden] { display: none; }

.login__card {
  position: relative;
  width: min(410px, 100%);
  padding: 26px 26px 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  background: linear-gradient(155deg, var(--card-a), var(--card-b) 60%, var(--card-a));
  box-shadow: var(--card-shadow), var(--card-highlight);
  backdrop-filter: blur(calc(var(--glass-blur) + 6px)) saturate(160%);
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) + 6px)) saturate(160%);
  overflow: hidden;
}
.login__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 40% at 50% 0%, rgb(var(--accent-rgb) / .18), transparent 70%);
}

.login__brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.login__brand b { display: block; font-size: 14px; letter-spacing: .02em; }
.login__brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--text-3);
  margin-top: 2px;
}

.login__title {
  position: relative;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.login__sub {
  position: relative;
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-3);
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
}
.field > span:first-child {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--input-bg);
  color: var(--text);
  font-size: 13.5px;
  font-family: var(--font-ui);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: var(--text-3); opacity: .7; }
.field input:focus {
  outline: none;
  border-color: rgb(var(--accent-rgb) / .6);
  background: rgb(var(--accent-rgb) / .06);
  box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .15);
}

.field__pw { position: relative; display: block; }
.field__pw input { padding-right: 46px; }
.field__eye {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--text-3);
  transition: color .2s, background .2s;
}
.field__eye:hover { color: var(--text); background: var(--chip-hover); }
.field__eye.is-on { color: var(--accent-text); }
.field__eye .i { width: 16px; height: 16px; }

.login__remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}
.login__remember input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}

.login__err {
  min-height: 17px;
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--danger);
}

.login__submit {
  width: 100%;
  height: 44px;
  margin-top: 4px;
}

.login__foot {
  position: relative;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.7;
  color: var(--text-3);
  text-align: center;
}

.login.is-shake .login__card { animation: login-shake .4s var(--ease); }
@keyframes login-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}

@media (max-width: 440px) {
  .login__card { padding: 22px 18px 18px; }
  .login__title { font-size: 23px; }
}
