:root {
  --bg: #f9f7ff;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(247, 249, 253, 0.9);
  --line: rgba(194, 204, 227, 0.42);
  --ink: #162033;
  --muted: #6e7f97;
  --brand: #0d63f6;
  --brand-strong: #5d45cd;
  --accent: #8d6cff;
  --good: #18794e;
  --warn: #ad6a00;
  --danger: #a33a2f;
  --shadow: 0 22px 56px rgba(68, 91, 142, 0.08);
  --radius: 30px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(255, 200, 223, 0.28), transparent 22%),
    radial-gradient(circle at 86% 9%, rgba(205, 228, 255, 0.26), transparent 24%),
    radial-gradient(circle at 78% 82%, rgba(204, 244, 228, 0.24), transparent 22%),
    radial-gradient(circle at 18% 88%, rgba(232, 216, 255, 0.22), transparent 22%),
    linear-gradient(180deg, #f9f7ff 0%, #f7fbff 38%, #fcfbff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(24px);
  background: rgba(248, 250, 253, 0.78);
  border-bottom: 1px solid rgba(166, 180, 205, 0.36);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.brand-mascot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(194, 204, 227, 0.42);
  object-fit: cover;
  color: var(--brand);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(68, 91, 142, 0.08);
}

.brand-title {
  font-size: 1.04rem;
  font-weight: 800;
  color: #17243c;
  line-height: 1.2;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.84rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
}

.main-nav a:hover,
.nav-logout-form button:hover {
  background: rgba(255, 255, 255, 0.68);
  color: var(--brand-strong);
}

.nav-logout-form,
.popover-logout-form {
  margin: 0;
}

.nav-logout-form button,
.popover-logout-form button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.nav-logout-form button {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
}

.popover-logout-form button {
  width: 100%;
  padding: 0;
}

.page-shell {
  padding: 28px 0 64px;
}

.hero,
.page-header,
.panel,
.stat-card,
.result-banner {
  border: 1px solid rgba(194, 204, 227, 0.42);
  box-shadow: var(--shadow);
}

.hero,
.page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  margin-bottom: 24px;
  backdrop-filter: blur(24px);
}

.login-hero-copy {
  max-width: 680px;
}

.login-mascot {
  width: clamp(92px, 15vw, 148px);
  aspect-ratio: 1;
  border-radius: 34px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(194, 204, 227, 0.42);
  box-shadow:
    0 22px 52px rgba(68, 91, 142, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 700;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3vw, 2.72rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.18rem;
  letter-spacing: 0;
}

h3 {
  font-size: 1rem;
}

.hero-copy,
.section-copy {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions,
.page-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
}

.button-primary {
  background: rgba(176, 150, 255, 0.26);
  color: #6c55d7;
  border: 1px solid rgba(170, 145, 242, 0.42);
  box-shadow: 0 12px 24px rgba(157, 134, 234, 0.18);
  backdrop-filter: blur(18px);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border-color: var(--line);
}

.text-link {
  color: var(--brand-strong);
  font-weight: 600;
}

.text-note,
.muted,
.stat-meta {
  color: var(--muted);
}

.stat-grid,
.card-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stat-card,
.panel {
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
}

.stat-card {
  padding: 20px;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-value {
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 700;
}

.stat-small {
  font-size: 1.1rem;
  line-height: 1.35;
}

.panel {
  padding: 24px;
  margin-bottom: 24px;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.grid-two {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.review-layout {
  align-items: start;
}

.sticky-panel {
  position: sticky;
  top: 100px;
}

.metric-list,
.list-stack,
.form-stack {
  display: grid;
  gap: 12px;
}

.metric-line,
.list-row,
.rank-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(247, 249, 253, 0.86);
}

.rank-card {
  align-items: start;
}

.rank-title {
  font-weight: 700;
}

.rank-subtitle,
.timeline-time {
  color: var(--muted);
  font-size: 0.9rem;
}

.rank-metrics {
  display: grid;
  gap: 6px;
  text-align: right;
  font-weight: 600;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compact {
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(235, 241, 250, 0.9);
  color: var(--brand);
  font-size: 0.9rem;
}

.chip-muted {
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

.chip-good {
  background: rgba(24, 121, 78, 0.12);
  color: var(--good);
}

.chip-warn {
  background: rgba(173, 106, 0, 0.12);
  color: var(--warn);
}

.chip-danger {
  background: rgba(163, 58, 47, 0.12);
  color: var(--danger);
}

.filter-grid,
.inline-form,
.quick-form {
  display: grid;
  gap: 14px;
}

.filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: end;
}

.inline-form {
  grid-template-columns: minmax(220px, 320px) auto;
  align-items: end;
}

.compact-form {
  margin: 0;
}

label,
.knowledge-groups {
  display: grid;
  gap: 8px;
}

label span,
.field-label {
  font-size: 0.92rem;
  color: var(--muted);
}

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

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.flash-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.flash {
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.flash-success {
  background: rgba(24, 121, 78, 0.1);
  color: var(--good);
}

.flash-error {
  background: rgba(163, 58, 47, 0.1);
  color: var(--danger);
}

.table-wrap {
  overflow-x: auto;
}

.account-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.account-drawer summary {
  list-style: none;
}

.account-drawer summary::-webkit-details-marker {
  display: none;
}

.account-drawer[open] .account-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 24, 38, 0.24);
  backdrop-filter: blur(8px);
}

.account-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(560px, 100vw);
  overflow-y: auto;
  padding: 28px;
  background: rgba(250, 252, 255, 0.96);
  border-left: 1px solid rgba(166, 180, 205, 0.42);
  box-shadow: -24px 0 70px rgba(30, 56, 105, 0.16);
}

.account-drawer-head,
.account-drawer-actions {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.account-drawer-actions {
  justify-content: flex-start;
  margin-top: 22px;
  margin-bottom: 0;
}

.account-edit-form,
.account-edit-section {
  display: grid;
  gap: 18px;
}

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

.account-edit-section {
  padding-top: 18px;
  border-top: 1px solid rgba(194, 204, 227, 0.42);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(194, 204, 227, 0.42);
  vertical-align: top;
  text-align: left;
}

.data-table th {
  color: var(--muted);
  font-size: 0.92rem;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.page-indicator,
.stat-inline {
  color: var(--muted);
  font-weight: 600;
}

.question-block {
  padding-top: 18px;
  border-top: 1px solid rgba(194, 204, 227, 0.42);
  margin-top: 18px;
}

.compact-block {
  max-width: 260px;
}

.answer-timer {
  display: inline-grid;
  gap: 4px;
  min-width: 132px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(201, 189, 247, 0.56);
  background: rgba(244, 238, 255, 0.72);
}

.answer-timer span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.answer-timer strong {
  color: #1a2740;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.08rem;
}

.stem,
.explanation,
.recommendation-preview {
  line-height: 1.7;
}

.option-stack {
  display: grid;
  gap: 10px;
}

.option-row,
.choice-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(247, 249, 253, 0.86);
}

.choice-row input[type="checkbox"],
.choice-row input[type="radio"] {
  width: auto;
  margin: 0;
}

.option-label {
  min-width: 28px;
  font-weight: 700;
}

.asset-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.asset-card {
  margin: 0;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(194, 204, 227, 0.42);
}

.asset-card figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.knowledge-group {
  padding: 14px;
  border-radius: 18px;
  background: rgba(247, 249, 253, 0.86);
}

.knowledge-group h3 {
  margin-bottom: 10px;
}

.history-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(194, 204, 227, 0.42);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(247, 249, 253, 0.86);
}

.timeline-title {
  font-weight: 700;
}

.nav-actions,
.form-actions-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.assist-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(247, 249, 253, 0.86);
  border: 1px solid rgba(194, 204, 227, 0.42);
  line-height: 1.6;
}

.assist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.compact-inner {
  margin-top: 0;
}

.header-side {
  display: flex;
  align-items: center;
}

.answer-meta {
  display: grid;
  gap: 10px;
}

.result-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.result-good {
  background: rgba(24, 121, 78, 0.12);
}

.result-bad {
  background: rgba(163, 58, 47, 0.12);
}

.result-neutral {
  background: rgba(13, 99, 246, 0.1);
}

.callout {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(235, 241, 250, 0.9);
  margin-bottom: 18px;
}

.manual-review-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(247, 249, 253, 0.86);
  margin-top: 14px;
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed var(--line);
}

@media (max-width: 900px) {
  .nav-shell,
  .hero,
  .page-header,
  .grid-two,
  .result-banner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .login-mascot {
    align-self: flex-end;
    margin-top: -18px;
  }

  .sticky-panel {
    position: static;
  }

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

  .assist-head {
    align-items: start;
    flex-direction: column;
  }
}

.frontend-body {
  background:
    radial-gradient(circle at 0 0, rgba(38, 105, 255, 0.14), transparent 28%),
    radial-gradient(circle at 100% 0, rgba(0, 184, 148, 0.13), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 42%, #f6f9ff 100%);
  color: #1d2a44;
}

.frontend-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 251, 255, 0.86);
  border-bottom: 1px solid rgba(154, 178, 222, 0.36);
}

.frontend-header-shell,
.frontend-subnav,
.frontend-footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.frontend-header-shell {
  padding: 20px 0 14px;
}

.frontend-brand {
  display: grid;
  gap: 8px;
}

.frontend-brand-link {
  display: grid;
  gap: 4px;
}

.frontend-brand-title {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0;
}

.frontend-brand-subtitle,
.frontend-track-copy,
.frontend-footer p {
  color: #60708a;
}

.frontend-track-copy {
  font-size: 0.92rem;
}

.frontend-context-form {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 120px auto;
  gap: 12px;
  align-items: end;
}

.frontend-subnav {
  padding: 0 0 14px;
}

.frontend-nav,
.frontend-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.frontend-nav a,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(154, 178, 222, 0.36);
}

.frontend-nav a {
  color: #53637d;
}

.frontend-nav a:hover,
.frontend-nav a.is-active {
  background: linear-gradient(135deg, rgba(38, 105, 255, 0.12), rgba(0, 184, 148, 0.1));
  color: #214bca;
  border-color: rgba(38, 105, 255, 0.22);
}

.status-pill {
  color: #214bca;
  font-weight: 700;
}

.status-pill-soft {
  color: #215a54;
}

.frontend-main {
  padding: 28px 0 72px;
}

.frontend-footer {
  padding: 0 0 32px;
}

.frontend-footer-shell {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(154, 178, 222, 0.28);
  box-shadow: 0 20px 40px rgba(32, 55, 110, 0.08);
}

.frontend-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 600;
}

.frontend-hero,
.frontend-page-header {
  position: relative;
  overflow: hidden;
  align-items: stretch;
  background:
    radial-gradient(circle at top right, rgba(0, 184, 148, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(234, 242, 255, 0.98));
  border-color: rgba(154, 178, 222, 0.34);
}

.frontend-hero::after,
.frontend-page-header::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 48px;
  background: linear-gradient(135deg, rgba(38, 105, 255, 0.16), rgba(0, 184, 148, 0.12));
  transform: rotate(22deg);
}

.frontend-hero > *,
.frontend-page-header > * {
  position: relative;
  z-index: 1;
}

.frontend-hero {
  display: grid;
  grid-template-columns: 1.25fr minmax(260px, 360px);
  gap: 22px;
  padding: 30px;
  border-radius: 34px;
  margin-bottom: 24px;
  box-shadow: 0 22px 50px rgba(32, 55, 110, 0.1);
}

.frontend-hero-panel {
  display: grid;
  gap: 14px;
}

.frontend-kpi {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(154, 178, 222, 0.28);
}

.frontend-kpi-label {
  color: #61728d;
  font-size: 0.92rem;
}

.frontend-kpi-value {
  margin-top: 10px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.frontend-card-grid {
  margin-bottom: 24px;
}

.feature-card,
.story-card {
  border-radius: 24px;
  border: 1px solid rgba(154, 178, 222, 0.26);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 38px rgba(32, 55, 110, 0.06);
}

.feature-card {
  padding: 22px;
}

.feature-card-top,
.story-card-head,
.meta-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.story-stack {
  display: grid;
  gap: 14px;
}

.story-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
}

.story-card p {
  margin-bottom: 0;
  line-height: 1.65;
}

.level-track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.level-track {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(239, 245, 255, 0.8);
  border: 1px solid rgba(154, 178, 222, 0.28);
  color: #51627c;
}

.level-track.is-active {
  background: linear-gradient(135deg, rgba(38, 105, 255, 0.12), rgba(0, 184, 148, 0.08));
  border-color: rgba(38, 105, 255, 0.22);
  color: #1f49c6;
}

.empty-inline {
  padding: 18px;
  border-radius: 22px;
  background: rgba(239, 245, 255, 0.72);
  border: 1px dashed rgba(154, 178, 222, 0.38);
}

.meta-grid {
  color: #61728d;
  font-size: 0.9rem;
}

.progress-line {
  width: 100%;
  height: 10px;
  margin: 12px 0;
  border-radius: 999px;
  background: rgba(214, 224, 245, 0.9);
  overflow: hidden;
}

.progress-line-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2669ff, #00b894);
}

.profile-hero .frontend-hero-panel {
  align-content: start;
}

.report-grade-panel {
  place-items: center;
  text-align: center;
}

.report-grade {
  width: 120px;
  height: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  background: linear-gradient(135deg, #2669ff, #00b894);
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
}

.question-surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 255, 0.96));
}

.choice-card {
  border: 1px solid rgba(154, 178, 222, 0.2);
  background: rgba(239, 245, 255, 0.72);
}

.domain-card .chip-cloud {
  margin-top: 12px;
}

.editor-shell {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(220px, 0.9fr) minmax(220px, 0.95fr);
  gap: 18px;
}

.editor-column,
.editor-column-wide {
  display: grid;
  gap: 18px;
}

.editor-task-sections,
.submission-form {
  display: grid;
  gap: 14px;
}

.editor-box {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(154, 178, 222, 0.3);
  box-shadow: 0 18px 38px rgba(32, 55, 110, 0.06);
}

.editor-box-title {
  margin-bottom: 12px;
  font-weight: 700;
}

.editor-task-section {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(243, 247, 255, 0.72);
  border: 1px solid rgba(194, 204, 227, 0.34);
}

.text-block {
  color: #5d6678;
  line-height: 1.75;
}

.editor-stage {
  min-height: 360px;
}

.editor-stage-screen,
.editor-script-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px dashed rgba(154, 178, 222, 0.42);
  background: rgba(239, 245, 255, 0.72);
  color: #60708a;
}

.editor-script-placeholder {
  min-height: 280px;
}

.submission-form label {
  display: grid;
  gap: 8px;
}

.submission-form input[type="text"],
.submission-form input[type="number"],
.submission-form textarea {
  width: 100%;
}

@media (max-width: 1180px) {
  .frontend-hero,
  .editor-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .frontend-header-shell,
  .frontend-subnav,
  .frontend-footer-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .frontend-context-form {
    grid-template-columns: 1fr;
  }

  .frontend-status {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .account-edit-grid {
    grid-template-columns: 1fr;
  }

  .account-drawer-panel {
    padding: 22px;
  }

  .frontend-main {
    padding-top: 20px;
  }

  .frontend-hero,
  .frontend-page-header {
    padding: 22px;
  }

  .feature-card,
  .story-card,
  .editor-box,
  .frontend-footer-shell {
    border-radius: 20px;
  }

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

.frontend-body {
  background:
    radial-gradient(circle at top left, rgba(116, 167, 255, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(163, 205, 255, 0.14), transparent 22%),
    linear-gradient(180deg, #f4f6fb 0%, #eff3f9 40%, #f6f8fc 100%);
  color: #162033;
}

.frontend-body .button {
  border-radius: 999px;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 700;
  box-shadow: none;
}

.frontend-body .button-primary {
  background: rgba(176, 150, 255, 0.26);
  color: #6c55d7;
  border: 1px solid rgba(170, 145, 242, 0.42);
  backdrop-filter: blur(18px);
}

.frontend-body .button-secondary {
  background: rgba(255, 255, 255, 0.78);
  color: #21304a;
  border-color: rgba(159, 177, 209, 0.42);
}

.frontend-shell {
  min-height: 100vh;
}

.frontend-mobile-bar {
  display: none;
}

.frontend-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 324px;
  padding: 18px;
  z-index: 30;
}

.frontend-sidebar-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(181, 165, 233, 0.55) transparent;
  padding: 22px 18px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(166, 180, 205, 0.4);
  box-shadow:
    0 30px 80px rgba(30, 56, 105, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(30px);
}

.frontend-sidebar-inner::-webkit-scrollbar {
  width: 8px;
}

.frontend-sidebar-inner::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(181, 165, 233, 0.5);
}

.frontend-sidebar-inner::-webkit-scrollbar-track {
  background: transparent;
}

.frontend-sidebar-brand {
  display: grid;
  gap: 8px;
}

.frontend-brand-link {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
}

.frontend-brand-mascot {
  grid-row: span 2;
  width: 56px;
  height: 56px;
  border-radius: 20px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(194, 204, 227, 0.44);
  box-shadow: 0 14px 32px rgba(68, 91, 142, 0.1);
}

.frontend-brand-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  color: #17243c;
  line-height: 1.28;
}

.frontend-brand-subtitle,
.frontend-track-copy,
.frontend-sidebar-section-title,
.frontend-content-eyebrow,
.frontend-user-meta,
.frontend-user-weak-point,
.home-card-copy,
.home-list-item span,
.home-practice-tile span,
.home-stat-tile span,
.home-stat-tile small,
.home-spotlight-tab span,
.home-card-head p,
.home-predict-subject {
  color: #6e7f97;
}

.frontend-track-copy {
  font-size: 0.86rem;
  line-height: 1.5;
}

.frontend-sidebar-context {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(247, 249, 253, 0.86);
  border: 1px solid rgba(170, 185, 211, 0.3);
}

.frontend-context-button {
  width: 100%;
}

.frontend-sidebar-nav {
  display: grid;
  gap: 8px;
}

.frontend-sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 18px;
  color: #53647e;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  transition: background 160ms ease, transform 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.frontend-sidebar-link:hover {
  background: rgba(244, 247, 252, 0.9);
  transform: translateX(2px);
  color: #243650;
}

.frontend-sidebar-link.is-active {
  color: #0d63f6;
  background: linear-gradient(180deg, rgba(228, 239, 255, 0.95), rgba(239, 245, 255, 0.92));
  box-shadow: inset 0 0 0 1px rgba(121, 162, 241, 0.24);
}

.frontend-sidebar-link-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #98baf9, #6a97f3);
  box-shadow: 0 4px 12px rgba(38, 105, 255, 0.28);
}

.frontend-membership-card,
.frontend-user-card {
  padding: 16px;
  border-radius: 24px;
  background: rgba(247, 249, 253, 0.9);
  border: 1px solid rgba(170, 185, 211, 0.3);
}

.frontend-membership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.frontend-membership-item {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(170, 185, 211, 0.28);
  text-align: center;
  text-decoration: none;
}

.frontend-membership-item.is-active {
  background: linear-gradient(180deg, rgba(238, 245, 255, 0.95), rgba(247, 250, 255, 0.9));
  border-color: rgba(94, 144, 238, 0.32);
}

.frontend-membership-item.is-locked {
  opacity: 0.68;
}

.frontend-membership-item strong,
.frontend-user-name {
  color: #1b2941;
}

.frontend-membership-item span,
.frontend-membership-item small {
  color: #60728c;
}

.frontend-user-card {
  margin-top: auto;
}

.frontend-user-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.frontend-user-avatar {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #dfeaff, #edf3ff);
  color: #0d63f6;
  font-weight: 800;
}

.frontend-user-avatar img,
.frontend-account-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.frontend-user-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.frontend-user-metrics div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.frontend-user-metrics strong {
  font-size: 1.05rem;
}

.frontend-content-shell {
  margin-left: 324px;
  padding: 24px 24px 40px;
}

.frontend-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 4px 6px 0;
}

.frontend-content-title {
  font-size: 1.38rem;
  font-weight: 800;
  color: #17243c;
  letter-spacing: 0;
}

.frontend-header-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #0d63f6;
  border: 1px solid rgba(159, 177, 209, 0.38);
  font-weight: 700;
}

.status-pill-soft {
  color: #48617e;
}

.frontend-account-menu {
  position: relative;
  z-index: 20;
}

.frontend-account-trigger,
.frontend-mobile-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(183, 195, 222, 0.42);
  background: rgba(255, 255, 255, 0.72);
  color: #21304a;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.frontend-account-avatar {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #dfeaff, #edf3ff);
  color: #0d63f6;
  font-size: 0.82rem;
}

.frontend-account-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(183, 195, 222, 0.46);
  box-shadow:
    0 24px 60px rgba(68, 91, 142, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.frontend-account-popover::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.frontend-account-menu:hover .frontend-account-popover,
.frontend-account-menu:focus-within .frontend-account-popover,
.frontend-account-menu.is-open .frontend-account-popover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.frontend-account-popover-head {
  display: grid;
  gap: 2px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid rgba(183, 195, 222, 0.34);
}

.frontend-account-popover-head strong {
  color: #17243c;
}

.frontend-account-popover-head span {
  color: #6e7f97;
  font-size: 0.86rem;
}

.frontend-account-popover a,
.frontend-account-popover .popover-logout-form button {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 14px;
  color: #33435c;
  font-weight: 700;
}

.frontend-account-popover a:hover,
.frontend-account-popover .popover-logout-form button:hover {
  background: rgba(242, 234, 255, 0.72);
  color: #5d45cd;
}

.frontend-main {
  padding: 0;
}

.home-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.home-grid-top {
  grid-template-columns: 280px minmax(0, 1fr) 280px;
}

.home-grid-bottom {
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  align-items: stretch;
}

.home-center-stack {
  display: grid;
  gap: 18px;
}

.home-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(166, 180, 205, 0.34);
  box-shadow:
    0 24px 60px rgba(28, 50, 94, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
}

.home-card-head,
.home-list-item,
.home-practice-tile,
.home-spotlight-tab {
  display: flex;
}

.home-card-head {
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.home-card-head h2,
.home-spotlight-main h2 {
  margin-bottom: 6px;
  font-size: 1.28rem;
  color: #16243d;
}

.home-card-badge,
.home-card-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(235, 241, 250, 0.9);
  color: #0d63f6;
  font-size: 0.8rem;
  font-weight: 700;
}

.home-predict-card {
  background:
    radial-gradient(circle at top right, rgba(92, 196, 255, 0.22), transparent 28%),
    rgba(255, 255, 255, 0.82);
}

.home-predict-value {
  font-size: clamp(3.2rem, 6vw, 4.4rem);
  line-height: 1;
  font-weight: 800;
  color: #0b63f6;
}

.home-predict-actions,
.home-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.home-spotlight-card {
  overflow: hidden;
  justify-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(131, 175, 255, 0.3), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 250, 255, 0.74));
}

.home-spotlight-main p {
  max-width: 580px;
  color: #52647e;
  line-height: 1.72;
}

.home-spotlight-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.home-spotlight-tab {
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(246, 248, 252, 0.9);
  border: 1px solid rgba(167, 183, 211, 0.28);
}

.home-spotlight-tab.is-active {
  background: rgba(232, 240, 255, 0.92);
  border-color: rgba(98, 148, 241, 0.32);
}

.home-spotlight-tab strong {
  color: #18263f;
  font-size: 0.94rem;
}

.home-assistant-card {
  justify-content: space-between;
}

.home-assistant-orb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #a9d7ff, #0d63f6);
  box-shadow: 0 0 20px rgba(13, 99, 246, 0.24);
}

.home-assistant-body {
  display: grid;
  gap: 16px;
  justify-items: start;
  margin-bottom: 18px;
}

.home-assistant-avatar {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  background: linear-gradient(180deg, #e7eefb, #f5f8ff);
  color: #0d63f6;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
  border: 1px solid rgba(194, 204, 227, 0.42);
}

.home-assistant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-list {
  display: grid;
  gap: 12px;
}

.home-list-item {
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(247, 249, 253, 0.9);
  border: 1px solid rgba(170, 185, 211, 0.28);
  text-decoration: none;
}

.home-list-item.is-locked {
  opacity: 0.68;
}

.home-list-item strong,
.home-practice-tile strong,
.home-stat-tile strong {
  color: #18263f;
}

.home-list-compact {
  gap: 10px;
}

.home-list-item-compact {
  padding: 14px;
}

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

.home-practice-tile,
.home-stat-tile {
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 20px;
  min-height: 132px;
  background: rgba(247, 249, 253, 0.9);
  border: 1px solid rgba(170, 185, 211, 0.28);
}

.home-practice-tile small {
  margin-top: auto;
  color: #0d63f6;
  font-weight: 600;
}

.home-stats-card {
  min-height: 0;
}

.home-stat-tile strong {
  font-size: 1.7rem;
  line-height: 1.1;
}

.frontend-drawer-backdrop {
  display: none;
}

@media (max-width: 1180px) {
  .home-grid-top,
  .home-grid-bottom {
    grid-template-columns: 1fr;
  }

  .home-spotlight-tabs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .frontend-mobile-bar {
    position: sticky;
    top: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(248, 250, 253, 0.86);
    border-bottom: 1px solid rgba(166, 180, 205, 0.36);
    backdrop-filter: blur(18px);
  }

  .frontend-mobile-brand {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 2px;
    align-items: center;
    min-width: 0;
  }

  .frontend-mobile-mascot {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(194, 204, 227, 0.42);
  }

  .frontend-mobile-title {
    font-weight: 800;
    color: #17243c;
    line-height: 1.15;
    white-space: nowrap;
  }

  .frontend-mobile-meta {
    color: #6f8098;
    font-size: 0.78rem;
  }

  .frontend-mobile-menu {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    color: #17243c;
    font-size: 1.15rem;
  }

  .frontend-mobile-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .frontend-mobile-account {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .frontend-sidebar {
    transform: translateX(-110%);
    transition: transform 180ms ease;
    width: min(324px, 88vw);
    z-index: 60;
  }

  .frontend-drawer-open .frontend-sidebar {
    transform: translateX(0);
  }

  .frontend-content-shell {
    margin-left: 0;
    padding: 18px 16px 28px;
  }

  .frontend-content-header {
    flex-direction: column;
    align-items: start;
    padding: 2px 2px 0;
  }

  .frontend-header-chips {
    width: 100%;
    align-items: center;
  }

  .frontend-account-menu {
    margin-left: auto;
  }

  .frontend-content-header .frontend-account-menu {
    display: none;
  }

  .frontend-mobile-account-menu .frontend-account-popover {
    right: -50px;
    top: calc(100% + 8px);
  }

  .frontend-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 24, 38, 0.32);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .frontend-drawer-open .frontend-drawer-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 720px) {
  .home-practice-grid,
  .home-stats-grid,
  .frontend-membership-grid,
  .frontend-user-metrics {
    grid-template-columns: 1fr;
  }

  .home-card {
    padding: 18px;
    border-radius: 24px;
  }

  .home-predict-value {
    font-size: 3rem;
  }
}

.frontend-body {
  background:
    radial-gradient(circle at 8% 6%, rgba(255, 200, 223, 0.28), transparent 22%),
    radial-gradient(circle at 86% 9%, rgba(205, 228, 255, 0.26), transparent 24%),
    radial-gradient(circle at 78% 82%, rgba(204, 244, 228, 0.24), transparent 22%),
    radial-gradient(circle at 18% 88%, rgba(232, 216, 255, 0.22), transparent 22%),
    linear-gradient(180deg, #f9f7ff 0%, #f7fbff 38%, #fcfbff 100%);
}

.frontend-sidebar-inner,
.home-card,
.frontend-membership-card,
.frontend-user-card,
.frontend-sidebar-context {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(197, 205, 227, 0.42);
  box-shadow:
    0 20px 50px rgba(68, 91, 142, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.frontend-brand-title,
.frontend-content-title,
.home-card-head h2,
.home-spotlight-main h2 {
  letter-spacing: 0;
}

.frontend-brand-title {
  font-size: 1.08rem;
}

.frontend-brand-subtitle {
  font-size: 0.84rem;
}

.frontend-content-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0;
}

.frontend-content-title {
  font-size: 1.34rem;
}

.status-pill {
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(183, 195, 222, 0.42);
}

.frontend-sidebar-link.is-active {
  background: linear-gradient(180deg, rgba(242, 234, 255, 0.94), rgba(236, 244, 255, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(172, 166, 235, 0.24),
    0 8px 24px rgba(130, 142, 220, 0.12);
}

.frontend-sidebar-link-dot {
  background: linear-gradient(180deg, #c3b8ff, #8eb8ff);
  box-shadow: 0 4px 12px rgba(134, 162, 255, 0.22);
}

.home-card {
  border-radius: 30px;
}

.home-card-head h2 {
  font-size: 1.14rem;
  margin-bottom: 4px;
}

.home-card-head p,
.home-card-copy,
.home-predict-subject,
.home-list-item span,
.home-practice-tile span,
.home-practice-tile small,
.home-stat-tile span,
.home-stat-tile small,
.home-spotlight-tab span,
.home-assistant-body p,
.home-spotlight-main p {
  font-size: 0.86rem;
  line-height: 1.55;
}

.home-card-copy,
.home-list-item span,
.home-practice-tile span,
.home-assistant-body p,
.home-spotlight-main p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-card-copy,
.home-assistant-body p {
  -webkit-line-clamp: 2;
}

.home-list-item span,
.home-practice-tile span,
.home-spotlight-main p {
  -webkit-line-clamp: 2;
}

.home-card-badge,
.home-card-eyebrow {
  background: rgba(255, 255, 255, 0.74);
  color: #6f6af8;
  border: 1px solid rgba(208, 197, 248, 0.46);
}

.home-predict-card {
  background:
    radial-gradient(circle at top right, rgba(183, 232, 255, 0.56), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 215, 230, 0.44), transparent 36%),
    rgba(255, 255, 255, 0.72);
}

.home-spotlight-card {
  background:
    radial-gradient(circle at top right, rgba(220, 199, 255, 0.44), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255, 221, 197, 0.38), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(252, 247, 255, 0.7));
}

.home-assistant-card {
  background:
    radial-gradient(circle at top left, rgba(255, 216, 241, 0.42), transparent 28%),
    radial-gradient(circle at bottom right, rgba(205, 220, 255, 0.34), transparent 28%),
    rgba(255, 255, 255, 0.72);
}

.home-contest-card {
  background:
    radial-gradient(circle at top right, rgba(255, 220, 206, 0.38), transparent 28%),
    rgba(255, 255, 255, 0.72);
}

.home-practice-card {
  background:
    radial-gradient(circle at top right, rgba(212, 222, 255, 0.38), transparent 30%),
    rgba(255, 255, 255, 0.72);
}

.home-stats-card {
  background:
    radial-gradient(circle at top right, rgba(208, 248, 230, 0.4), transparent 30%),
    rgba(255, 255, 255, 0.72);
}

.home-deep-card {
  background:
    radial-gradient(circle at top left, rgba(255, 243, 202, 0.46), transparent 30%),
    radial-gradient(circle at bottom right, rgba(208, 244, 229, 0.34), transparent 28%),
    rgba(255, 255, 255, 0.72);
}

.home-predict-value {
  color: #0a69f7;
  text-shadow: 0 10px 28px rgba(81, 148, 255, 0.18);
}

.home-assistant-avatar {
  width: 94px;
  height: 94px;
  font-size: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 241, 255, 0.86));
  color: #7868f6;
}

.home-list-item,
.home-practice-tile,
.home-stat-tile,
.home-spotlight-tab {
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(194, 204, 227, 0.38);
}

.home-list-item strong,
.home-practice-tile strong {
  font-size: 0.98rem;
}

.home-stat-tile strong {
  font-size: 1.56rem;
}

.frontend-body .button-primary {
  box-shadow: 0 12px 24px rgba(157, 134, 234, 0.18);
}

.frontend-body .button-primary:hover {
  background: rgba(176, 150, 255, 0.34);
  color: #5d45cd;
}

.button-secondary:hover,
.frontend-sidebar-link:hover,
.home-list-item:hover,
.home-practice-tile:hover,
.home-spotlight-tab:hover {
  transform: translateY(-1px);
}

.inner-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  align-items: start;
}

.inner-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(194, 204, 227, 0.42);
  box-shadow:
    0 22px 56px rgba(68, 91, 142, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
}

.inner-head,
.contest-paper-item,
.contest-mode-row,
.profile-list-head,
.account-user-head,
.account-track-row,
.account-activity-head,
.account-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inner-head {
  align-items: start;
  margin-bottom: 2px;
}

.inner-head h1,
.inner-head h2 {
  margin: 0;
  color: #1a2740;
  font-size: 1.14rem;
}

.inner-eyebrow {
  margin: 0 0 6px;
  color: #7485a0;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.inner-copy {
  margin: 0;
  color: #6d7d96;
  font-size: 0.88rem;
  line-height: 1.6;
}

.module-badge,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(198, 206, 229, 0.48);
  background: rgba(255, 255, 255, 0.62);
  color: #5d6f8b;
  font-size: 0.8rem;
  font-weight: 700;
}

.module-badge-soft {
  color: #7566de;
  border-color: rgba(206, 195, 248, 0.52);
  background: rgba(244, 238, 255, 0.72);
}

.button-compact {
  min-height: 38px;
  padding: 0 16px;
}

.mini-list,
.contest-filter-list,
.contest-mode-list,
.contest-paper-list,
.contest-side-stack,
.profile-list,
.account-activity-list,
.account-side-stack,
.account-row-stack {
  display: grid;
  gap: 12px;
}

.mini-list-item,
.contest-mode-row,
.contest-summary-tile,
.profile-summary-tile,
.profile-domain-tile,
.profile-list-item,
.account-tab-item,
.account-activity-item,
.account-info-row {
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(194, 204, 227, 0.38);
}

.mini-list-item,
.contest-paper-item,
.account-activity-item {
  text-decoration: none;
}

.mini-list-item strong,
.contest-summary-tile strong,
.profile-summary-tile strong,
.profile-domain-tile strong,
.profile-list-item strong,
.account-tab-item strong,
.account-activity-item strong,
.account-info-row strong,
.filter-label,
.contest-paper-main strong,
.contest-mode-row strong {
  color: #1a2740;
}

.mini-list-item span,
.mini-list-item small,
.contest-summary-tile span,
.contest-summary-tile small,
.profile-summary-tile span,
.profile-summary-tile small,
.profile-domain-tile span,
.profile-domain-tile small,
.profile-list-item span,
.account-tab-item span,
.account-activity-item p,
.account-info-row span,
.contest-mode-row span,
.contest-mode-row small,
.contest-paper-meta,
.account-track-label {
  color: #6d7d96;
}

.mini-list-item,
.profile-summary-tile,
.profile-domain-tile,
.contest-summary-tile,
.contest-paper-main,
.account-activity-main {
  display: grid;
  gap: 6px;
}

.contest-page-grid {
  grid-template-columns: 320px minmax(0, 1fr) 280px;
}

.contest-filter-card {
  position: sticky;
  top: 18px;
}

.filter-block {
  display: grid;
  gap: 8px;
}

.filter-label {
  font-size: 0.82rem;
  font-weight: 700;
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  text-decoration: none;
}

.filter-chip.is-active {
  color: #6c55d7;
  border-color: rgba(201, 189, 247, 0.56);
  background: rgba(238, 232, 255, 0.78);
}

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

.contest-summary-tile strong,
.profile-summary-tile strong {
  font-size: 1.18rem;
}

.contest-mode-row small {
  font-weight: 700;
}

.contest-paper-item {
  padding: 16px 18px;
}

.contest-paper-item.is-active {
  border-color: rgba(206, 195, 248, 0.58);
  background: rgba(244, 238, 255, 0.78);
}

.contest-paper-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.contest-paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
}

.contest-paper-link {
  color: #6c55d7;
  font-weight: 700;
  white-space: nowrap;
}

.profile-top-grid {
  grid-template-columns: 280px minmax(0, 1fr) 280px;
}

.profile-diagnostic-grid {
  grid-template-columns: 330px minmax(0, 1fr) 320px;
}

.profile-board-grid {
  grid-template-columns: minmax(0, 1.05fr) 320px;
}

.profile-bottom-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.exam-top-grid {
  grid-template-columns: minmax(0, 1.1fr) 340px;
}

.exam-main-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.assessment-top-grid {
  grid-template-columns: minmax(0, 1.05fr) 340px;
}

.assessment-main-grid,
.assessment-bottom-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.exam-paper-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

.exam-question-item {
  display: flex;
  align-items: start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(194, 204, 227, 0.38);
  background: rgba(255, 255, 255, 0.56);
  text-decoration: none;
}

.exam-question-index {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(244, 238, 255, 0.78);
  color: #6c55d7;
  font-weight: 800;
  flex-shrink: 0;
}

.exam-question-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}

.exam-question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.exam-question-head strong {
  color: #1a2740;
}

.exam-question-main p {
  margin: 0;
  color: #6d7d96;
  line-height: 1.55;
}

.profile-predict-card {
  align-content: start;
}

.profile-predict-value {
  font-size: clamp(3rem, 6vw, 4.4rem);
  line-height: 1;
  font-weight: 800;
  color: #7566de;
  text-shadow: 0 12px 24px rgba(162, 146, 233, 0.18);
}

.profile-list-head {
  align-items: start;
}

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

.readiness-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 48px 72px;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 18px;
  color: #52637c;
  text-decoration: none;
}

.readiness-row.is-active,
.readiness-row:hover {
  background: rgba(244, 238, 255, 0.78);
}

.readiness-level,
.readiness-row strong {
  color: #1a2740;
  font-weight: 800;
}

.readiness-row small {
  color: #7b8aa2;
  font-size: 0.76rem;
  text-align: right;
}

.readiness-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(219, 225, 240, 0.7);
}

.readiness-track i {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, #8fb7ff, #7967df);
}

.radar-wrap {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.diagnostic-radar {
  width: 220px;
  height: 220px;
}

.radar-ring {
  fill: none;
  stroke: rgba(178, 189, 215, 0.42);
  stroke-width: 1;
}

.radar-axis {
  stroke: rgba(178, 189, 215, 0.34);
  stroke-width: 1;
}

.diagnostic-radar text {
  fill: #687a96;
  font-size: 10px;
  text-anchor: middle;
  dominant-baseline: middle;
}

.radar-score {
  fill: rgba(121, 103, 223, 0.22);
  stroke: #7967df;
  stroke-width: 2;
}

.radar-legend {
  display: grid;
  gap: 10px;
}

.radar-legend div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(194, 204, 227, 0.34);
}

.radar-legend strong {
  color: #1a2740;
}

.radar-legend span {
  color: #6d7d96;
  font-size: 0.82rem;
}

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

.leaderboard-card {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 16px;
  border-radius: 22px;
  text-decoration: none;
  border: 1px solid rgba(194, 204, 227, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 248, 253, 0.72));
}

.leaderboard-rank {
  color: #7566de;
  font-weight: 800;
}

.leaderboard-card strong {
  color: #1a2740;
}

.leaderboard-score {
  color: #1a2740;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}

.leaderboard-card small {
  color: #6d7d96;
}

.account-top-grid {
  grid-template-columns: minmax(0, 1.1fr) 320px;
}

.account-hero-card h1 {
  margin: 0;
  color: #1a2740;
  font-size: 1.42rem;
}

.account-avatar {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 241, 255, 0.86));
  color: #7566de;
  font-size: 1.45rem;
  font-weight: 800;
  overflow: hidden;
  border: 1px solid rgba(194, 204, 227, 0.42);
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-user-copy {
  display: grid;
  gap: 8px;
}

.account-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-track-row {
  padding: 14px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(194, 204, 227, 0.38);
}

.account-track-row strong {
  display: block;
  color: #1a2740;
}

.account-track-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.82rem;
}

.account-track-meta {
  display: block;
  margin-top: 4px;
  color: #6d7d96;
  font-size: 0.82rem;
}

.account-tab-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.account-tab-item {
  display: grid;
  gap: 4px;
}

.account-tab-item.is-active {
  border-color: rgba(206, 195, 248, 0.58);
  background: rgba(244, 238, 255, 0.78);
}

.account-main-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.account-activity-item {
  align-items: start;
}

.account-activity-bubble {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-weight: 800;
  flex-shrink: 0;
  color: #6d7d96;
  background: rgba(241, 244, 252, 0.9);
}

.account-activity-bubble.good {
  color: #168a61;
  background: rgba(222, 246, 235, 0.96);
}

.account-activity-bubble.danger {
  color: #b14a56;
  background: rgba(255, 235, 238, 0.96);
}

.account-activity-bubble.soft {
  color: #6a78a4;
  background: rgba(236, 241, 252, 0.96);
}

.account-activity-main {
  flex: 1;
  min-width: 0;
}

.account-activity-main p {
  margin: 0;
  line-height: 1.55;
}

.account-info-row {
  align-items: center;
}

@media (max-width: 1280px) {
  .contest-page-grid {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .contest-side-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-top-grid,
  .profile-diagnostic-grid,
  .profile-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .contest-page-grid,
  .profile-board-grid,
  .profile-diagnostic-grid,
  .account-top-grid,
  .account-main-grid,
  .exam-top-grid,
  .exam-main-grid,
  .assessment-top-grid,
  .assessment-main-grid,
  .assessment-bottom-grid {
    grid-template-columns: 1fr;
  }

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

  .contest-filter-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .inner-card {
    padding: 18px;
    border-radius: 24px;
  }

  .contest-summary-grid,
  .profile-summary-grid,
  .profile-domain-grid,
  .account-tab-row,
  .contest-side-stack,
  .exam-paper-summary-grid,
  .leaderboard-grid,
  .radar-wrap {
    grid-template-columns: 1fr;
  }

  .readiness-row {
    grid-template-columns: 36px minmax(0, 1fr) 44px;
  }

  .readiness-row small {
    grid-column: 2 / -1;
    text-align: left;
  }

  .contest-paper-item,
  .account-user-head,
  .account-track-row,
  .account-activity-item,
  .exam-question-item {
    flex-direction: column;
    align-items: start;
  }

  .contest-paper-link {
    padding-left: 2px;
  }
}
