:root {
  --ink: #162137;
  --ink-soft: #34435c;
  --muted: #6c7789;
  --paper: #fffdf8;
  --canvas: #f4f1e8;
  --line: #d9dee5;
  --line-dark: #bcc4cf;
  --orange: #ff5d35;
  --orange-deep: #df3c17;
  --yellow: #ffd84d;
  --mint: #baf4dc;
  --mint-deep: #087e63;
  --blue: #dbe8ff;
  --blue-deep: #275ac8;
  --pink: #ffe0ed;
  --pink-deep: #b92c66;
  --purple: #e9ddff;
  --purple-deep: #6841bb;
  --danger: #c52e40;
  --shadow: 0 14px 35px rgba(22, 33, 55, 0.08);
  --shadow-hard: 0 7px 0 rgba(22, 33, 55, 0.07);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --sidebar: 244px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 2%, rgba(255, 216, 77, 0.28), transparent 27rem),
    radial-gradient(circle at 24% 100%, rgba(186, 244, 220, 0.24), transparent 30rem),
    var(--canvas);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid #2479ff;
  outline-offset: 3px;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 16px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 5%, rgba(255, 93, 53, 0.22), transparent 12rem),
    radial-gradient(circle at 95% 78%, rgba(255, 216, 77, 0.12), transparent 13rem),
    #17233b;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  text-align: left;
}

.brand {
  width: 100%;
  padding: 4px 8px 24px;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px 15px 15px 5px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--orange);
  font-size: 22px;
  font-weight: 900;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.brand-copy small {
  margin-top: 5px;
  color: #b7c3d7;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.side-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 50px;
  padding: 8px 12px;
  border: 0;
  border-radius: 14px;
  color: #cbd4e2;
  background: transparent;
  font-size: 15px;
  font-weight: 650;
  text-align: left;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.nav-item.is-active {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 4px 0 rgba(255, 93, 53, 0.75);
}

.nav-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  font-size: 17px;
  font-weight: 900;
}

.nav-item.is-active .nav-icon {
  border-color: rgba(22, 33, 55, 0.16);
}

.nav-count {
  min-width: 24px;
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  font-size: 12px;
  text-align: center;
}

.sidebar-foot {
  margin-top: 22px;
  padding: 14px 11px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.privacy-dot {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.privacy-dot > span {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: #56e0ac;
  box-shadow: 0 0 0 4px rgba(86, 224, 172, 0.14);
}

.privacy-dot strong,
.privacy-dot small {
  display: block;
}

.privacy-dot strong {
  font-size: 12px;
}

.privacy-dot small {
  margin-top: 2px;
  color: #95a4bc;
  font-size: 10px;
  line-height: 1.45;
}

.version {
  margin-top: 14px;
  color: #687790;
  font-family: Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 28px;
  padding: 15px 34px;
  border-bottom: 1px solid rgba(22, 33, 55, 0.09);
  background: rgba(244, 241, 232, 0.9);
  backdrop-filter: blur(18px);
}

.mobile-brand {
  display: none;
}

.page-location {
  min-width: 165px;
}

.location-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.breadcrumb {
  max-width: 300px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.global-search {
  display: flex;
  width: min(410px, 46vw);
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1.5px solid var(--line-dark);
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.86);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.global-search:focus-within {
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 4px rgba(39, 90, 200, 0.1);
}

.global-search > span {
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.global-search input {
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.global-search input::placeholder {
  color: #8993a2;
}

kbd {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font-family: inherit;
  font-size: 10px;
}

.app-content {
  width: min(100%, 1510px);
  margin: 0 auto;
  padding: 30px 34px 64px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 5px 0 var(--orange-deep);
}

.button-primary:hover {
  background: #ff704e;
  box-shadow: 0 6px 0 var(--orange-deep);
}

.button-ink {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 5px 0 #070d19;
}

.button-yellow {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 5px 0 #d9ae11;
}

.button-mint {
  color: #073c31;
  background: var(--mint);
  box-shadow: 0 5px 0 #77d7b8;
}

.button-ghost {
  border-color: var(--line-dark);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

.button-ghost:hover {
  background: #fff;
}

.button-danger {
  border-color: #e9aab2;
  color: var(--danger);
  background: #fff5f6;
}

.button.compact {
  min-height: 44px;
  padding: 8px 15px;
  font-size: 13px;
}

.button.small {
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 11px;
  font-size: 12px;
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  line-height: 1;
}

.icon-button:hover {
  border-color: var(--ink);
  background: #fff;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  overflow: hidden;
  min-height: 328px;
  margin-bottom: 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 88% 22%, rgba(255, 216, 77, 0.19), transparent 13rem),
    linear-gradient(125deg, #192742 0%, #22375c 68%, #264168 100%);
  box-shadow: 0 10px 0 rgba(22, 33, 55, 0.11);
}

.hero::before {
  position: absolute;
  top: -90px;
  right: 20%;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: "";
}

.hero::after {
  position: absolute;
  right: -58px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border: 58px solid rgba(255, 93, 53, 0.17);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 36px 42px;
}

.hero-eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-eyebrow {
  margin-bottom: 17px;
  color: var(--yellow);
}

.hero-eyebrow::before {
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 670px;
  margin-bottom: 12px;
  font-size: clamp(32px, 4.2vw, 55px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero h1 mark {
  padding: 0 6px 3px;
  border-radius: 7px;
  color: var(--ink);
  background: var(--yellow);
}

.hero p {
  max-width: 650px;
  margin-bottom: 24px;
  color: #c9d5e8;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 28px;
}

.score-orbit {
  position: relative;
  display: grid;
  width: 185px;
  height: 185px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03) 55%, transparent 56%);
}

.score-orbit::before,
.score-orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.score-orbit::before {
  top: 17px;
  right: 3px;
  width: 17px;
  height: 17px;
  border: 5px solid var(--ink);
  background: var(--orange);
  box-shadow: 0 0 0 2px var(--orange);
}

.score-orbit::after {
  bottom: 16px;
  left: 2px;
  width: 13px;
  height: 13px;
  background: var(--mint);
  box-shadow: 0 0 0 2px var(--mint);
}

.score-core {
  display: flex;
  width: 130px;
  height: 130px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(-4deg);
}

.score-core strong {
  color: var(--yellow);
  font-size: 38px;
  line-height: 1;
}

.score-core small {
  margin-top: 7px;
  color: #d8e1ef;
  font-size: 11px;
}

.hero-stat-row {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 22px;
  justify-content: center;
}

.hero-stat {
  min-width: 72px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.hero-stat strong,
.hero-stat small {
  display: block;
}

.hero-stat strong {
  font-size: 17px;
}

.hero-stat small {
  color: #aebbd0;
  font-size: 9px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 2px 17px;
}

.section-heading h2 {
  margin-bottom: 3px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.section-heading .heading-side {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.groups {
  display: grid;
  gap: 16px;
}

.group-card {
  overflow: hidden;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow-hard);
}

.group-card[data-tone="orange"] {
  --group-accent: var(--orange);
  --group-soft: #fff0e9;
}

.group-card[data-tone="mint"] {
  --group-accent: #12a981;
  --group-soft: #e8fbf3;
}

.group-card[data-tone="blue"] {
  --group-accent: #4676dc;
  --group-soft: #edf3ff;
}

.group-card[data-tone="pink"] {
  --group-accent: #d64e88;
  --group-soft: #fff0f6;
}

.group-card[data-tone="purple"] {
  --group-accent: #7652c9;
  --group-soft: #f4efff;
}

.group-card[data-tone="yellow"] {
  --group-accent: #d49f00;
  --group-soft: #fff8d8;
}

.group-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 15px;
  width: 100%;
  align-items: center;
  padding: 18px 20px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  text-align: left;
}

.group-head:hover {
  background: var(--group-soft);
}

.group-card.is-open .group-head {
  border-bottom-color: var(--line);
  background: linear-gradient(90deg, var(--group-soft), transparent 80%);
}

.group-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 16px 16px 16px 6px;
  color: var(--ink);
  background: var(--group-soft);
  box-shadow: 3px 3px 0 var(--group-accent);
  font-size: 19px;
  font-weight: 900;
}

.group-title h3 {
  margin-bottom: 2px;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.group-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.group-badges,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-badge,
.status-badge,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}

.mini-badge.neutral,
.tag.neutral {
  color: #526078;
  background: #edf0f4;
}

.mini-badge.ready,
.status-badge.ready,
.tag.ready {
  color: #08624e;
  background: var(--mint);
}

.mini-badge.pending,
.status-badge.pending,
.tag.pending {
  color: #7a5200;
  background: #fff0aa;
}

.mini-badge.wrong,
.status-badge.wrong,
.tag.wrong {
  color: #9b2638;
  background: #ffe4e8;
}

.mini-badge.favorite {
  color: #8f3b00;
  background: #ffe1b6;
}

.group-chevron {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 13px;
  transition: transform 160ms ease;
}

.group-card.is-open .group-chevron {
  transform: rotate(180deg);
}

.group-body {
  padding: 16px;
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bank-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  min-height: 120px;
  align-items: start;
  padding: 15px;
  border: 1.5px solid var(--line);
  border-radius: 17px;
  background: #fff;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.bank-card:hover {
  border-color: var(--ink);
  box-shadow: 0 6px 0 rgba(22, 33, 55, 0.08);
  transform: translateY(-2px);
}

.bank-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  color: var(--ink);
  background: var(--card-soft, var(--group-soft));
  font-size: 15px;
  font-weight: 900;
}

.bank-info {
  min-width: 0;
}

.bank-info h4 {
  overflow: hidden;
  margin: 0 0 2px;
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bank-subtitle {
  display: -webkit-box;
  overflow: hidden;
  min-height: 34px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bank-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.mini-progress {
  overflow: hidden;
  height: 5px;
  margin-top: 7px;
  border-radius: 999px;
  background: #e8ebef;
}

.mini-progress span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--group-accent, var(--orange));
}

.bank-arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 15px;
}

.search-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 18px;
  padding: 12px 15px;
  border: 1px solid #e1bc64;
  border-radius: 14px;
  background: #fff9df;
  font-size: 13px;
}

.search-summary strong {
  font-size: 16px;
}

.search-summary button {
  margin-left: auto;
}

.page-top {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}

.back-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1.5px solid var(--line-dark);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.back-button:hover {
  background: #fff;
}

.page-title-block h1 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.page-title-block p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.bank-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  overflow: hidden;
  align-items: center;
  padding: 26px 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(110deg, var(--bank-soft, #fff0e9), #fffdf8 55%);
  box-shadow: var(--shadow-hard);
}

.bank-hero::after {
  position: absolute;
  top: -62px;
  right: 24%;
  width: 150px;
  height: 150px;
  border: 34px solid var(--bank-accent, var(--orange));
  border-radius: 50%;
  opacity: 0.09;
  content: "";
}

.bank-hero-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 24px 24px 24px 8px;
  background: var(--bank-accent, var(--orange));
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 26px;
  font-weight: 900;
}

.bank-hero-copy {
  position: relative;
  z-index: 1;
}

.bank-hero-copy h1 {
  margin-bottom: 5px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.bank-hero-copy p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.bank-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 26px;
}

.stat-card {
  min-height: 102px;
  padding: 17px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.8);
}

.stat-card strong {
  display: block;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.stat-card span {
  color: var(--muted);
  font-size: 11px;
}

.stat-card.accent {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.stat-card.accent span {
  color: #bfc9da;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 19px;
  padding: 14px 16px;
  border: 1px solid #e6c761;
  border-radius: 15px;
  color: #654800;
  background: #fff8d8;
  font-size: 12px;
}

.notice-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #9e7200;
  font-size: 12px;
  font-weight: 900;
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.tab-button {
  min-height: 40px;
  padding: 6px 14px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.tab-button.is-active {
  color: #fff;
  background: var(--ink);
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.list-toolbar h2 {
  margin: 0;
  font-size: 19px;
}

.list-toolbar p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.question-list {
  display: grid;
  gap: 10px;
}

.question-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 253, 248, 0.82);
}

.question-row:hover {
  border-color: var(--line-dark);
  background: #fff;
}

.question-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--ink);
  background: #eef0f3;
  font-family: Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.question-copy {
  min-width: 0;
}

.question-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.question-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}

.star-button {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  color: #687388;
  background: #fff;
  font-size: 18px;
}

.star-button.is-active {
  border-color: #e7aa35;
  color: #9b6400;
  background: #fff1bd;
}

.empty-state {
  display: grid;
  min-height: 290px;
  place-items: center;
  padding: 38px 20px;
  border: 1.5px dashed var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.54);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 15px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 24px 24px 24px 8px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--orange);
  font-size: 28px;
}

.empty-state h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

.empty-state p {
  max-width: 420px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 13px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mode-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 22px;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
}

.mode-card.tone-yellow {
  background: #fff9dc;
}

.mode-card.tone-mint {
  background: #eafbf4;
}

.mode-card.tone-pink {
  background: #fff0f6;
}

.mode-number {
  position: absolute;
  top: 10px;
  right: 16px;
  color: rgba(22, 33, 55, 0.11);
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
}

.mode-card h3 {
  margin: 16px 0 6px;
  font-size: 20px;
}

.mode-card p {
  min-height: 40px;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 12px;
}

.mode-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  background: #fff;
  font-size: 18px;
}

.quiz-shell {
  max-width: 1050px;
  margin: 0 auto;
}

.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.quiz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quiz-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timer-pill {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.timer-pill.is-low {
  border-color: #e59aa4;
  color: var(--danger);
  background: #fff1f3;
}

.quiz-progress {
  overflow: hidden;
  height: 8px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #dde2e8;
}

.quiz-progress span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  transition: width 220ms ease;
}

.quiz-card {
  padding: clamp(22px, 4vw, 38px);
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: 0 9px 0 rgba(22, 33, 55, 0.09);
}

.quiz-question-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.question-type {
  color: var(--orange-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.question-stem {
  margin-bottom: 24px;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 750;
  line-height: 1.55;
}

.options {
  display: grid;
  gap: 11px;
}

.option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  width: 100%;
  min-height: 58px;
  align-items: center;
  padding: 11px 15px;
  border: 1.5px solid var(--line-dark);
  border-radius: 15px;
  background: #fff;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.option:hover:not([disabled]) {
  border-color: var(--ink);
  background: #f9fafb;
  transform: translateX(2px);
}

.option.is-selected {
  border-color: var(--blue-deep);
  background: var(--blue);
  box-shadow: 0 0 0 2px rgba(39, 90, 200, 0.13);
}

.option.is-correct {
  border-color: #0b8c6d;
  background: #dff9ee;
}

.option.is-wrong {
  border-color: #c7354b;
  background: #ffe7ea;
}

.option[disabled] {
  cursor: default;
}

.option-key {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1.5px solid var(--line-dark);
  border-radius: 11px;
  background: #f5f6f8;
  font-family: Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
}

.option.is-selected .option-key {
  border-color: var(--blue-deep);
  color: #fff;
  background: var(--blue-deep);
}

.option.is-correct .option-key {
  border-color: #0b8c6d;
  color: #fff;
  background: #0b8c6d;
}

.option.is-wrong .option-key {
  border-color: #c7354b;
  color: #fff;
  background: #c7354b;
}

.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.quiz-actions-right {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.feedback {
  margin-top: 20px;
  padding: 17px 18px;
  border: 1.5px solid;
  border-radius: 16px;
}

.feedback.correct {
  border-color: #72c9aa;
  background: #e9faf3;
}

.feedback.wrong {
  border-color: #e0a0a9;
  background: #fff0f2;
}

.feedback h3 {
  margin-bottom: 5px;
  font-size: 16px;
}

.feedback p {
  margin-bottom: 6px;
  font-size: 13px;
}

.feedback p:last-child {
  margin-bottom: 0;
}

.question-palette {
  display: flex;
  overflow-x: auto;
  gap: 7px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  scrollbar-width: thin;
}

.palette-item {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
  font-family: Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.palette-item.is-answered {
  border-color: #61708a;
  color: var(--ink);
  background: #e8edf4;
}

.palette-item.is-current {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
  box-shadow: 0 2px 0 var(--orange);
}

.exam-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 235px;
  gap: 18px;
  align-items: start;
}

.exam-side {
  position: sticky;
  top: 112px;
  padding: 18px;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.9);
}

.exam-side h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

.exam-side > p {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 10px;
}

.exam-palette {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.exam-palette .palette-item {
  width: 100%;
  height: 34px;
}

.exam-side-actions {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}

.result-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 216, 77, 0.24), transparent 17rem),
    var(--paper);
  box-shadow: var(--shadow-hard);
}

.score-ring {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--score-color, var(--orange)) var(--score-angle, 0%), #e3e7ec 0);
}

.score-ring-inner {
  display: flex;
  width: 116px;
  height: 116px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper);
}

.score-ring strong {
  font-size: 37px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.score-ring small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.result-copy h1 {
  margin-bottom: 7px;
  font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.2;
}

.result-copy p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 13px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.review-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.review-card {
  padding: 17px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.review-card.is-wrong {
  border-left: 5px solid var(--danger);
}

.review-card.is-correct {
  border-left: 5px solid #0e9672;
}

.review-card h3 {
  margin: 5px 0 8px;
  font-size: 14px;
  line-height: 1.55;
}

.review-answer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 11px;
}

.review-answer-line span {
  padding: 2px 7px;
  border-radius: 7px;
  background: #edf0f4;
}

.history-list {
  display: grid;
  gap: 9px;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}

.history-row strong,
.history-row small {
  display: block;
}

.history-row small {
  color: var(--muted);
  font-size: 10px;
}

.history-score {
  font-size: 20px;
  font-weight: 900;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  display: flex;
  min-height: 205px;
  flex-direction: column;
  padding: 21px;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
}

.category-card:nth-child(5n + 1) .category-symbol {
  background: var(--yellow);
}

.category-card:nth-child(5n + 2) .category-symbol {
  background: var(--mint);
}

.category-card:nth-child(5n + 3) .category-symbol {
  background: var(--blue);
}

.category-card:nth-child(5n + 4) .category-symbol {
  background: var(--pink);
}

.category-card:nth-child(5n + 5) .category-symbol {
  background: var(--purple);
}

.category-symbol {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  font-size: 20px;
}

.category-card h3 {
  margin: 14px 0 3px;
  font-size: 19px;
}

.category-card p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 11px;
}

.category-card .button {
  margin-top: auto;
  align-self: flex-start;
}

.cards-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.study-card {
  padding: 19px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.study-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.study-card h3 {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.55;
}

.study-card p {
  margin-bottom: 15px;
  color: var(--ink-soft);
  font-size: 13px;
  white-space: pre-wrap;
}

.study-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.study-card-foot > span {
  color: var(--muted);
  font-size: 10px;
}

.study-card-actions {
  display: flex;
  gap: 7px;
}

.manage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-bottom: 20px;
}

.manage-intro {
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 92% 15%, rgba(255, 216, 77, 0.22), transparent 11rem),
    var(--ink);
  box-shadow: var(--shadow-hard);
}

.manage-intro h1 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
}

.manage-intro p {
  max-width: 620px;
  margin-bottom: 0;
  color: #c4cee0;
  font-size: 13px;
}

.privacy-board {
  display: grid;
  align-content: center;
  padding: 23px;
  border: 1.5px solid #90cdb8;
  border-radius: var(--radius-xl);
  background: #e7faf2;
}

.privacy-board h2 {
  margin: 13px 0 7px;
  font-size: 19px;
}

.privacy-board p {
  margin: 0;
  color: #426659;
  font-size: 11px;
}

.privacy-board-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--mint);
  font-size: 21px;
}

.import-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.import-card {
  padding: 22px;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
}

.import-card h2 {
  margin: 12px 0 4px;
  font-size: 20px;
}

.import-card > p {
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 12px;
}

.file-drop {
  display: grid;
  min-height: 138px;
  place-items: center;
  padding: 20px;
  border: 2px dashed #aeb8c6;
  border-radius: 16px;
  background: #f7f8fa;
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease;
  cursor: pointer;
}

.file-drop:hover,
.file-drop.is-dragging {
  border-color: var(--blue-deep);
  background: #edf3ff;
}

.file-drop strong,
.file-drop span {
  display: block;
}

.file-drop strong {
  font-size: 14px;
}

.file-drop span {
  color: var(--muted);
  font-size: 10px;
}

.file-drop-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  font-size: 18px;
}

.format-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.format-hint {
  margin-top: 13px;
  padding: 12px;
  border-radius: 12px;
  background: #f2f4f7;
  color: #586477;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 10px;
  line-height: 1.55;
  word-break: break-all;
}

.data-table {
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.data-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(90px, 0.35fr)) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row.head {
  color: var(--muted);
  background: #f0f2f5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-row strong {
  display: block;
}

.data-row small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.data-number {
  font-family: Consolas, monospace;
  font-weight: 900;
}

.manage-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.action-panel {
  padding: 18px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.action-panel h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

.action-panel p {
  min-height: 34px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 10px;
}

.modal {
  width: min(540px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 24px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(13, 22, 38, 0.28);
}

.modal::backdrop {
  background: rgba(13, 22, 38, 0.55);
  backdrop-filter: blur(4px);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 23px 24px 14px;
}

.modal-head h2 {
  margin: 3px 0 0;
  font-size: 23px;
  line-height: 1.3;
}

.modal-head .eyebrow {
  color: var(--orange-deep);
}

.modal form {
  padding: 4px 24px 24px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid var(--line-dark);
  border-radius: 12px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-weight: 500;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.65;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(39, 90, 200, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.exam-availability {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  color: #456152;
  background: #eaf8f1;
  font-size: 11px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 5px 0 14px;
  color: var(--ink-soft);
  font-size: 12px;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}

.modal-note {
  padding: 11px 13px;
  border-radius: 11px;
  color: #725100;
  background: #fff7d4;
  font-size: 11px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

.note-question {
  margin: 0 24px 14px;
  padding: 12px;
  border-radius: 12px;
  color: #49566c;
  background: #f0f3f7;
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 10px 30px rgba(13, 22, 38, 0.22);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-error {
  border-color: #8e1728;
  background: #a7293b;
}

.mobile-nav {
  display: none;
}

.cloud-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
}

.cloud-user-copy {
  display: flex;
  flex-direction: column;
  max-width: 130px;
  line-height: 1.25;
}

.cloud-user-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-user-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}

.cloud-user-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .cloud-user-copy { display: none; }
}

@media (max-width: 860px) {
  .cloud-user {
    margin-left: auto;
    padding-left: 0;
  }

  .cloud-user-action[href] {
    display: none;
  }
}

.demo-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #764e00;
  background: #fff2b8;
}

.muted {
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

.mt-24 {
  margin-top: 24px;
}

.mb-18 {
  margin-bottom: 18px;
}

@media (max-width: 1180px) {
  :root {
    --sidebar: 214px;
  }

  .bank-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    gap: 18px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .app-content {
    padding-right: 24px;
    padding-left: 24px;
  }

  .page-location {
    min-width: 130px;
  }
}

@media (max-width: 860px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    min-height: 74px;
    padding: 10px 18px;
  }

  .mobile-brand {
    display: flex;
    gap: 8px;
    font-size: 15px;
  }

  .mobile-brand .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px 11px 11px 4px;
    box-shadow: 3px 3px 0 var(--orange);
    font-size: 17px;
  }

  .page-location {
    display: none;
  }

  .global-search {
    width: 100%;
    min-height: 43px;
  }

  .global-search kbd,
  .topbar-actions .button {
    display: none;
  }

  .app-content {
    padding: 20px 16px 96px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 50;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px;
    border: 1.5px solid var(--line-dark);
    border-radius: 20px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 12px 36px rgba(22, 33, 55, 0.18);
    backdrop-filter: blur(16px);
  }

  .mobile-nav-item {
    display: flex;
    min-height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border: 0;
    border-radius: 14px;
    color: var(--muted);
    background: transparent;
    font-size: 19px;
  }

  .mobile-nav-item small {
    font-size: 9px;
    font-weight: 800;
  }

  .mobile-nav-item.is-active {
    color: var(--ink);
    background: var(--yellow);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    padding: 29px 25px 20px;
  }

  .hero h1 {
    font-size: clamp(31px, 9vw, 46px);
  }

  .hero-visual {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0 25px 26px;
  }

  .score-orbit {
    width: 126px;
    height: 126px;
  }

  .score-core {
    width: 91px;
    height: 91px;
  }

  .score-core strong {
    font-size: 27px;
  }

  .hero-stat-row {
    margin-top: 0;
  }

  .section-heading {
    align-items: flex-start;
  }

  .group-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 15px;
  }

  .group-badges {
    display: none;
  }

  .group-body {
    padding: 12px;
  }

  .bank-grid,
  .category-grid,
  .cards-list,
  .import-grid,
  .mode-grid {
    grid-template-columns: 1fr;
  }

  .bank-hero {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 20px;
  }

  .bank-hero-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exam-layout {
    grid-template-columns: 1fr;
  }

  .exam-side {
    position: static;
    order: 2;
  }

  .question-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .question-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .quiz-top {
    align-items: flex-start;
  }

  .quiz-card {
    padding: 22px 17px;
  }

  .quiz-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .quiz-actions-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .result-hero {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 23px;
  }

  .manage-hero,
  .manage-actions {
    grid-template-columns: 1fr;
  }

  .data-row {
    grid-template-columns: minmax(0, 1fr) repeat(3, 56px);
    gap: 7px;
    padding: 12px;
  }

  .data-row > :last-child {
    display: none;
  }

  .data-row.head > :nth-child(2) {
    display: none;
  }
}

@media (max-width: 520px) {
  .topbar-actions {
    min-width: 0;
  }

  .global-search {
    min-width: 0;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-stat-row {
    width: 100%;
  }

  .hero-stat {
    flex: 1;
  }

  .group-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px 13px 13px 5px;
  }

  .group-title h3 {
    font-size: 15px;
  }

  .group-title p {
    font-size: 10px;
  }

  .bank-grid {
    gap: 9px;
  }

  .bank-card {
    min-height: 0;
    padding: 12px;
  }

  .bank-hero-icon {
    width: 62px;
    height: 62px;
    border-radius: 19px 19px 19px 7px;
    font-size: 20px;
  }

  .bank-hero-copy h1 {
    font-size: 24px;
  }

  .list-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .tabs {
    width: 100%;
  }

  .tab-button {
    flex: 1;
    padding-right: 7px;
    padding-left: 7px;
  }

  .question-row {
    gap: 11px;
  }

  .question-index {
    width: 36px;
    height: 36px;
  }

  .question-actions {
    flex-wrap: wrap;
  }

  .question-palette {
    padding: 9px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal-head,
  .modal form {
    padding-right: 18px;
    padding-left: 18px;
  }

  .note-question {
    margin-right: 18px;
    margin-left: 18px;
  }

  .modal-actions .button {
    flex: 1;
  }

  .data-row {
    grid-template-columns: minmax(0, 1fr) repeat(2, 46px);
  }

  .data-row > :nth-child(3) {
    display: none;
  }

  .data-row.head > :nth-child(3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
