@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-soft: #f1f7ff;
  --text: #182235;
  --ink: #111827;
  --muted: #607089;
  --line: #dde7f2;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --green: #16a34a;
  --green-soft: #eaf8ef;
  --orange: #d85f1f;
  --orange-soft: #fff2e6;
  --purple: #7c3aed;
  --purple-soft: #f2ecff;
  --red: #dc2626;
  --red-soft: #fff0f0;
  --shadow: 0 18px 45px rgba(28, 45, 72, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
  --side: 244px;
  font-family:
    "Be Vietnam Pro", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(234, 241, 255, 0.75), rgba(247, 250, 252, 0) 360px),
    var(--bg);
  color: var(--text);
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

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

@media (min-width: 861px) {
  .app-shell.is-sidebar-collapsed {
    grid-template-columns: 1fr;
  }
}

.app-shell.is-topic-focus-shell {
  display: block;
  background: #fff;
}

.app-shell.is-topic-focus-shell .sidebar {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px 32px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: transform 0.2s ease, width 0.2s ease, padding 0.2s ease;
}

/* Sidebar Brand Wrapper to contain brand and toggle */
.sidebar-brand-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.sidebar-toggle {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  display: none;
  place-items: center;
  transition: all 0.2s ease;
}

@media (min-width: 861px) {
  .sidebar-toggle {
    display: grid;
  }
}

.sidebar-toggle:hover {
  background: var(--blue-soft);
  border-color: #bfd3ff;
}

.sidebar-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5px;
}

@media (min-width: 861px) {
  /* Collapsed state - floating sidebar tab on the left */
  .sidebar.is-collapsed {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    width: 52px !important;
    height: auto !important;
    padding: 16px 8px !important;
    border-radius: 0 16px 16px 0;
    border-left: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 5px 0 25px rgba(28, 45, 72, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  }

  .sidebar.is-collapsed:hover {
    background: #ffffff;
    transform: translateY(-50%) translateX(3px);
    box-shadow: 6px 0 30px rgba(28, 45, 72, 0.22);
  }

  .sidebar.is-collapsed .sidebar-brand-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .sidebar.is-collapsed .brand {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .sidebar.is-collapsed .brand .brand-text {
    display: none;
  }

  .sidebar.is-collapsed .sidebar-toggle {
    width: 32px;
    height: 32px;
    min-height: unset;
    padding: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
  }

  .sidebar.is-collapsed .sidebar-toggle svg {
    margin: 0;
    width: 16px;
    height: 16px;
  }

  .sidebar.is-collapsed .nav,
  .sidebar.is-collapsed .sidebar-foot,
  .sidebar.is-collapsed .mobile-menu {
    display: none !important;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  font-size: 21px;
  font-weight: 800;
}

.brand-mark,
.icon-box {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.brand-mark svg,
.icon-box svg,
.nav-item svg,
.mini-icon svg,
.button svg,
.back-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: #49566b;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.nav-item.is-active,
.nav-item:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 24px;
  padding-bottom: 4px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}

.sidebar-foot-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.app-main-column {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 52px) 32px;
}

.site-footer {
  flex: 0 0 auto;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 52px) 28px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.site-footer--auth {
  width: min(1040px, 100%);
  max-width: none;
  margin-top: clamp(20px, 4vw, 40px);
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.auth-blog-link {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.auth-blog-link:hover {
  text-decoration: underline;
}

.site-footer--practice {
  max-width: none;
  margin-top: 28px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.site-trademark {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.site-trademark--compact {
  font-size: 12px;
}

.site-trademark-mark {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.site-trademark-brand {
  color: var(--text);
  font-weight: 800;
}

.site-trademark-since {
  color: var(--muted);
  font-weight: 700;
}

.site-trademark-since::before {
  content: "·";
  margin-right: 10px;
  color: #cbd5e1;
  font-weight: 400;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-bottom: 32px;
}

.topbar > div:first-child {
  flex: 1 1 280px;
  min-width: 0;
}

.topbar .user-profile {
  flex: 0 1 auto;
  flex-shrink: 0;
  align-self: flex-start;
}

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

h1 {
  max-width: 860px;
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: 0;
}

.back-button + h1 {
  margin-top: 16px;
}

.subtitle {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.profile {
  min-width: min(100%, 320px);
  max-width: min(100%, 600px);
  min-height: 108px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-weight: 800;
}

.avatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef08a, #38bdf8);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  object-fit: cover;
}

.user-profile .avatar,
.user-profile .avatar.avatar-image {
  width: 84px;
  height: 84px;
  border-width: 3px;
}

.avatar-image,
.profile-avatar.avatar-image {
  background: #fff;
}

.profile-link {
  min-width: 140px;
  flex: 1 1 160px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 10px;
  margin: -8px -10px;
  border: 0;
  border-radius: calc(var(--radius) - 4px);
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.profile-link:hover,
.profile-link:focus-visible {
  background: var(--blue-soft);
  outline: none;
}

.profile-link-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.profile-link-name {
  min-width: 0;
  max-width: 20ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  line-height: 1.2;
}

.profile-link-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
}

.profile-link-hint svg {
  width: 14px;
  height: 14px;
}

.profile-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.profile-points-chip {
  display: flex;
  align-items: center;
  gap: 22px;
}

.profile-points-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 58px;
}

.profile-points-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
}

.profile-points-item strong {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
}

.profile-points-item.is-remaining strong {
  color: var(--blue);
}

.signout-button {
  width: 100%;
  min-height: 34px;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
  cursor: pointer;
}

.signout-button.compact {
  flex: 0 0 auto;
  width: auto;
  min-height: 40px;
  margin-top: 0;
  padding: 0 18px;
  background: #f4f7fb;
  color: #475569;
  font-size: 13px;
}

.auth-shell {
  grid-column: 1 / -1;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(234, 241, 255, 0.96) 0, rgba(247, 250, 252, 0) 520px),
    var(--bg);
}

.auth-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  padding: 16px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(221, 231, 242, 0.82);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 22px;
}

.auth-brand {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.auth-brand span:last-child {
  display: grid;
  gap: 2px;
}

.auth-brand strong {
  font-size: 18px;
  line-height: 1;
}

.auth-brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.auth-nav-links a,
.auth-login-link {
  color: #4f5f77;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.auth-nav-links a:hover,
.auth-login-link:hover {
  color: var(--blue);
}

.auth-nav-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.auth-nav-cta {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.auth-landing {
  width: min(1240px, calc(100% - clamp(28px, 8vw, 112px)));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px) 0 34px;
  display: grid;
  gap: clamp(34px, 5vw, 70px);
}

.auth-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(560px, 1.05fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
}

.auth-hero-copy {
  display: grid;
  gap: 18px;
}

.auth-hero-copy h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(36px, 4.35vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

.auth-hero-copy .subtitle {
  max-width: 610px;
  margin: 0;
  color: #52637d;
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 600;
  line-height: 1.55;
}

.auth-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.auth-secondary-cta {
  background: #fff;
}

.auth-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 650px;
}

.auth-proof-row span {
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: #5f6f88;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.auth-proof-row strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  line-height: 1.05;
  margin-bottom: 5px;
}

.auth-product-preview {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 10% 6%, rgba(216, 95, 31, 0.15), transparent 180px),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 26px 70px rgba(28, 45, 72, 0.13);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
}

.auth-preview-main {
  display: grid;
  align-content: start;
  gap: 20px;
}

.auth-preview-top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.auth-step {
  width: 48px;
  height: 48px;
  border: 1px solid #f7c8ad;
  border-radius: 14px;
  background: #fff2e8;
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 950;
}

.auth-preview-top h2 {
  margin: 0;
  font-size: clamp(26px, 2.75vw, 36px);
  line-height: 1.05;
}

.auth-preview-top p {
  margin: 8px 0 0;
  color: #607089;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.auth-preview-progress {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #e5ebf4;
}

.auth-preview-progress span {
  display: block;
  width: 31%;
  height: 100%;
  border-radius: inherit;
  background: #e92929;
}

.auth-question-card {
  min-height: 340px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  gap: 18px;
  align-content: start;
}

.auth-question-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #64748b;
  font-weight: 950;
}

.auth-question-meta span {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff0e5;
  color: var(--orange);
}

.auth-question-tip {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fff7ef;
  color: #66758d;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.auth-question-card h3 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(22px, 2.25vw, 30px);
  line-height: 1.18;
}

.auth-question-card label {
  margin-top: auto;
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 950;
}

.auth-question-card input {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #667085;
  font: inherit;
  font-weight: 800;
}

.auth-question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-blue-button,
.auth-outline-button {
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 950;
}

.auth-blue-button {
  background: var(--blue);
  color: #fff;
}

.auth-outline-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.auth-blue-button svg,
.auth-outline-button svg,
.auth-mission-card svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.auth-preview-side {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 84px;
}

.auth-note-card,
.auth-mini-progress {
  border: 1px solid #f5c7ad;
  border-radius: var(--radius);
  background: #fff8f1;
  box-shadow: 0 18px 40px rgba(28, 45, 72, 0.08);
}

.auth-note-card {
  min-height: 230px;
  padding: 18px;
}

.auth-note-card span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.auth-note-card strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.15;
}

.auth-note-card p,
.auth-mini-progress p {
  margin: 10px 0 0;
  color: #61708a;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.auth-mini-progress {
  padding: 16px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.auth-donut {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 70%, #e5ebf4 70% 100%);
  display: grid;
  place-items: center;
}

.auth-donut span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 950;
}

.auth-mini-progress strong {
  font-size: 16px;
  line-height: 1.25;
}

@media (max-width: 1320px) {
  .auth-product-preview {
    grid-template-columns: 1fr;
  }

  .auth-preview-side {
    display: none;
  }
}

.auth-signup-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #f3c8ae;
  border-radius: 14px;
  background: linear-gradient(120deg, #fff8f1 0%, #ffffff 58%, #f7fbff 100%);
  box-shadow: var(--shadow);
}

.auth-signup-copy {
  display: grid;
  gap: 14px;
}

.auth-signup-copy h2,
.auth-section-head h2,
.auth-final-cta h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.12;
}

.auth-signup-copy p,
.auth-section-head p,
.auth-final-cta p {
  max-width: 650px;
  margin: 0;
  color: #5b6b84;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.55;
}

.auth-signup-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.auth-signup-checks span {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #3d4b61;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.auth-signup-checks svg {
  width: 17px;
  height: 17px;
  color: var(--green);
  stroke-width: 2.6;
}

.auth-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.auth-card--conversion {
  align-self: stretch;
  box-shadow: 0 24px 60px rgba(28, 45, 72, 0.12);
}

.auth-tabs {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f5f8fc;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.auth-tabs button {
  min-height: 38px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.auth-tabs button.is-active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 6px 16px rgba(28, 45, 72, 0.08);
}

.auth-loading-shell {
  grid-column: 1 / -1;
  min-height: 100vh;
  padding: clamp(18px, 5vw, 54px);
  display: grid;
  place-items: center;
}

.auth-loading-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.auth-loading-card .brand-mark {
  width: 52px;
  height: 52px;
}

.auth-loading-card h1 {
  max-width: 340px;
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
}

.auth-loading-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.auth-loading-skeleton {
  width: min(320px, 100%);
  padding-top: 4px;
  display: grid;
  gap: 10px;
}

.auth-skeleton-line,
.auth-skeleton-row span,
.loading-skeleton-line,
.loading-skeleton-row span {
  display: block;
  min-width: 0;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(90deg, rgba(234, 241, 255, 0), rgba(255, 255, 255, 0.82), rgba(234, 241, 255, 0)),
    #e6eef9;
  background-size: 220% 100%;
  animation: skeleton-loading-shimmer 1.25s ease-in-out infinite;
}

.auth-skeleton-line {
  height: 13px;
  width: 74%;
  justify-self: center;
}

.auth-skeleton-line--wide {
  width: 92%;
}

.auth-skeleton-row,
.loading-skeleton-row {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 10px;
}

.auth-skeleton-row span {
  height: 34px;
}

.startup-skeleton-app {
  min-height: 100vh;
}

.startup-skeleton-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.startup-skeleton-topbar {
  align-items: center;
}

.startup-profile-skeleton {
  min-width: 220px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  display: grid;
  gap: 10px;
}

.startup-profile-skeleton span,
.subject-meta-skeleton {
  display: block;
  min-width: 0;
}

.startup-profile-skeleton span {
  height: 12px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(90deg, rgba(234, 241, 255, 0), rgba(255, 255, 255, 0.82), rgba(234, 241, 255, 0)),
    #e6eef9;
  background-size: 220% 100%;
  animation: skeleton-loading-shimmer 1.25s ease-in-out infinite;
}

.startup-profile-skeleton span:first-child {
  width: 72%;
}

.startup-profile-skeleton span:last-child {
  width: 100%;
}

.startup-ring-skeleton {
  color: transparent;
}

.startup-ring-skeleton::before {
  background:
    linear-gradient(90deg, rgba(234, 241, 255, 0), rgba(255, 255, 255, 0.82), rgba(234, 241, 255, 0)),
    #e6eef9;
  background-size: 220% 100%;
  animation: skeleton-loading-shimmer 1.25s ease-in-out infinite;
}

.subject-card--skeleton {
  pointer-events: none;
}

.subject-card--skeleton .subject-top {
  align-items: center;
}

.subject-card--skeleton .subject-top > .loading-skeleton-line {
  width: min(160px, 38vw);
}

.subject-meta-skeleton {
  height: 12px;
  width: 96px;
}

.subject-meta-skeleton.loading-skeleton-line--wide {
  width: 138px;
}

.startup-recommend-skeleton .recommend-head > div,
.startup-recommend-skeleton .recommend-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

@keyframes skeleton-loading-shimmer {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

.field {
  display: grid;
  gap: 7px;
  color: #3d4b61;
  font-weight: 900;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdff;
  color: var(--text);
  font: inherit;
  outline: none;
}

.field select {
  cursor: pointer;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-notice {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: var(--orange-soft);
  color: #9a3412;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.auth-google-button {
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.auth-google-button:hover:not(:disabled) {
  background: #f8fafc;
}

.auth-google-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-google-button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-notice.is-success {
  background: #ecfdf3;
  color: #166534;
}

.auth-text-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

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

.auth-feature-grid article,
.auth-showcase-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(28, 45, 72, 0.06);
}

.auth-feature-grid article {
  display: grid;
  gap: 14px;
}

.auth-feature-grid h2,
.auth-showcase-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.auth-feature-grid p,
.auth-showcase-card p {
  margin: 0;
  color: #5f6f88;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.auth-showcase {
  display: grid;
  gap: 24px;
}

.auth-section-head {
  display: grid;
  gap: 10px;
}

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

.auth-showcase-card {
  display: grid;
  gap: 20px;
}

.auth-card-title {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.auth-mini-question,
.auth-mission-card {
  min-height: 180px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
  display: grid;
  align-content: start;
  gap: 10px;
}

.auth-mini-question span {
  width: max-content;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff0e5;
  color: var(--orange);
  font-size: 13px;
  font-weight: 950;
}

.auth-mini-question strong,
.auth-mission-card strong {
  color: var(--text);
  font-size: 21px;
  line-height: 1.2;
}

.auth-subject-bars {
  display: grid;
  gap: 16px;
}

.auth-subject-bars span {
  position: relative;
  overflow: hidden;
  min-height: 58px;
  padding: 0 0 18px;
  color: var(--text);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  font-weight: 950;
}

.auth-subject-bars span::before,
.auth-subject-bars span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  border-radius: 999px;
}

.auth-subject-bars span::before {
  background: #e5ebf4;
}

.auth-subject-bars span::after {
  width: var(--bar);
  background: var(--tone);
}

.auth-subject-bars strong {
  color: #607089;
  white-space: nowrap;
}

.auth-mission-card {
  border-color: #d7e4f4;
  background: #fbfdff;
}

.auth-mission-card span {
  width: max-content;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 950;
}

.auth-final-cta {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.96) 42%),
    #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.auth-final-cta > div {
  display: grid;
  gap: 10px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.68fr);
  gap: 32px;
  align-items: start;
}

@media (min-width: 1081px) {
  .dashboard-grid:has(.recommend-panel.is-collapsed) {
    grid-template-columns: 1fr;
  }
}

.overview-panel,
.recommend-panel,
.subject-card,
.detail-panel,
.topic-row,
.study-plan,
.empty-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.overview-panel {
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 28px 36px;
  align-items: center;
  margin-bottom: 32px;
}

.progress-ring {
  --value: 60;
  width: 154px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 54%, transparent 55%),
    conic-gradient(var(--blue) calc(var(--value) * 1%), #e5eaf1 0);
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 900;
  font-size: 34px;
}

.overview-copy {
  display: grid;
  gap: 16px;
}

.overview-copy h2,
.section-title {
  font-size: 19px;
  line-height: 1.3;
}

.section-title {
  margin: 4px 0 20px;
}

.section-subtitle {
  max-width: 640px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.overview-stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.overview-copy .tiny-note {
  margin-top: 4px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  background: var(--blue);
}

.dot.green {
  background: var(--green);
}

.dot.purple {
  background: var(--purple);
}

.dot.orange {
  background: var(--orange);
}

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

.subject-card {
  padding: 24px;
  min-height: 168px;
  display: grid;
  gap: 20px;
  cursor: pointer;
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.subject-card:hover,
.subject-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--subject);
  box-shadow: 0 22px 54px rgba(28, 45, 72, 0.13);
  outline: none;
}

.subject-top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.subject-card > div:has(.progress-bar) {
  padding-block: 4px;
}

.subject-title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.subject-weight {
  color: var(--subject);
  display: grid;
  justify-items: end;
  gap: 2px;
  font-size: 22px;
  font-weight: 900;
}

.subject-weight span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.icon-box {
  width: 48px;
  height: 48px;
  background: var(--subject-soft);
  color: var(--subject);
  box-shadow: none;
}

.progress-bar {
  height: 12px;
  background: #e9eef5;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: var(--progress);
  background: var(--subject);
  border-radius: inherit;
}

.subject-meta,
.tiny-note,
.topic-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.subject-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.recommend-panel {
  padding: 28px;
  display: grid;
  gap: 24px;
}

.admin-app {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(234, 241, 255, 0.78), rgba(247, 250, 252, 0) 340px),
    var(--bg);
}

.admin-shell {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 46px);
  display: grid;
  align-content: start;
  gap: 22px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

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

.admin-stats div,
.admin-panel,
.admin-report-card,
.admin-question-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.admin-stats div {
  min-height: 92px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.admin-stats span {
  color: var(--muted);
  font-weight: 850;
}

.admin-stats strong {
  color: var(--blue);
  font-size: 32px;
  line-height: 1;
}

.admin-panel {
  padding: clamp(16px, 3vw, 24px);
  display: grid;
  gap: 16px;
}

.admin-panel[hidden] {
  display: none !important;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.admin-panel h2 {
  font-size: 22px;
}

.admin-count-chip {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.report-list {
  display: grid;
  gap: 14px;
}

.admin-report-card {
  padding: 16px;
  display: grid;
  gap: 14px;
  box-shadow: none;
}

.admin-report-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.admin-report-head h3 {
  margin-top: 6px;
  font-size: 18px;
}

.admin-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-report-meta span {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f4f7fb;
  color: #53617a;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 850;
}

.report-status-pill {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
}

.report-status-pill.is-new {
  background: var(--orange-soft);
  color: var(--orange);
}

.report-status-pill.is-fixing {
  background: var(--blue-soft);
  color: var(--blue);
}

.report-status-pill.is-fixed {
  background: var(--green-soft);
  color: var(--green);
}

.report-status-pill.is-approved {
  background: var(--green-soft);
  color: var(--green);
}

.admin-report-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
  gap: 12px;
}

.admin-report-body--feedback {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
}

.admin-report-body > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdff;
  display: grid;
  gap: 6px;
}

.admin-report-body strong {
  color: #182235;
}

.admin-report-body p {
  color: #3b4659;
  line-height: 1.5;
}

.admin-answer-line strong {
  color: var(--blue);
  font-size: 18px;
}

.admin-answer-bank {
  display: grid;
  gap: 12px;
}

.admin-question-group {
  overflow: hidden;
  box-shadow: none;
}

.admin-question-group summary {
  min-height: 54px;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 900;
}

.admin-question-group summary strong {
  color: var(--blue);
  white-space: nowrap;
}

.admin-question-list {
  padding: 0 16px 16px;
  display: grid;
  gap: 10px;
}

.admin-question-answer {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdff;
  display: grid;
  gap: 8px;
}

.admin-question-answer p {
  color: #253147;
  line-height: 1.5;
}

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

.admin-question-body .question-stem {
  margin: 0;
  color: #253147;
  font-size: 16px;
  line-height: 1.5;
}

.admin-question-body .question-choices {
  margin: 0;
}

.admin-question-body .question-visual {
  --subject: var(--blue);
  --subject-soft: var(--blue-soft);
}

.admin-visual-tag {
  color: var(--blue);
  font-weight: 900;
}

.admin-question-visual-filters {
  grid-column: 1 / -1;
  align-items: center;
}

.admin-filter-pills-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  margin-right: 4px;
}

.admin-answer-foot {
  display: grid;
  gap: 4px;
}

.admin-answer-foot strong {
  color: var(--green);
}

.admin-answer-foot span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.admin-report-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-users-controls,
.admin-users-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-users-controls {
  margin-bottom: 16px;
}

.admin-users-page-size {
  display: grid;
  gap: 6px;
  min-width: 150px;
}

.admin-users-page-size span,
.admin-users-pagination span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.admin-users-page-size select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
}

.admin-users-page-size select:focus {
  outline: 2px solid var(--blue-soft);
  border-color: #bfd3ff;
}

.admin-users-pagination {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-users-pagination div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-users-pagination strong {
  color: var(--ink);
  font-size: 0.95rem;
  white-space: nowrap;
}

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

.admin-users-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.admin-users-table th,
.admin-users-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-users-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  background: #f8fafc;
}

.admin-users-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-users-table td strong {
  color: var(--blue);
}

.admin-award-points-button {
  white-space: nowrap;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-vip-button {
  white-space: nowrap;
}

.admin-delete-user-button {
  white-space: nowrap;
}

.admin-user-detail-link,
.admin-user-detail-count {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-user-detail-link strong,
.admin-user-detail-count strong {
  color: var(--blue);
}

.admin-user-detail-link:hover strong,
.admin-user-detail-count:hover strong,
.admin-user-detail-count:hover {
  text-decoration: underline;
}

.admin-user-detail-button {
  white-space: nowrap;
}

.admin-user-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-user-detail-stats > div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  display: grid;
  gap: 4px;
}

.admin-user-detail-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-user-detail-stats strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.admin-user-detail-filters {
  margin-top: 2px;
}

.admin-user-practice-list {
  display: grid;
  gap: 12px;
  max-height: min(52vh, 520px);
  overflow-y: auto;
  padding-right: 4px;
}

.admin-user-practice-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  display: grid;
  gap: 8px;
}

.admin-user-practice-item.is-correct {
  border-color: rgba(22, 163, 74, 0.22);
  background: #f7fdf9;
}

.admin-user-practice-item.is-wrong {
  border-color: rgba(220, 38, 38, 0.18);
  background: #fff8f8;
}

.admin-practice-status {
  font-weight: 900;
}

.admin-practice-status.is-correct {
  color: var(--green);
}

.admin-practice-status.is-wrong {
  color: #dc2626;
}

.admin-user-practice-question {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.admin-user-practice-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 13px;
}

.admin-user-practice-foot strong {
  color: var(--ink);
}

.admin-danger-box {
  padding: 14px;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: var(--radius-sm);
  background: #fff5f5;
  color: #7f1d1d;
  display: grid;
  gap: 6px;
}

.admin-danger-box strong {
  color: #b91c1c;
}

.admin-danger-box p {
  color: #7f1d1d;
  line-height: 1.5;
}

.admin-vip-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-vip-pill.is-active {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

.admin-vip-pill.is-inactive {
  background: #eef2f7;
  color: #64748b;
}

.admin-award-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.admin-award-notice.is-success {
  background: rgba(34, 139, 87, 0.12);
  color: #1f6b43;
}

.admin-award-notice.is-warning {
  background: rgba(196, 129, 24, 0.12);
  color: #8a5a10;
}

.admin-stats-users strong {
  color: var(--green);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #53617a;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-tab:hover {
  border-color: #c7d5ea;
  color: var(--blue);
}

.admin-tab.is-active {
  background: var(--blue-soft);
  border-color: #bfd3ff;
  color: var(--blue);
}

.admin-filters {
  display: grid;
  gap: 14px;
}

.admin-filters-questions {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1.2fr);
  align-items: end;
}

.admin-filters .field {
  display: grid;
  gap: 6px;
}

.admin-filters .field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.admin-filters select,
.admin-filters input[type="search"] {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
}

.admin-filters select:focus,
.admin-filters input[type="search"]:focus {
  outline: 2px solid var(--blue-soft);
  border-color: #bfd3ff;
}

.admin-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-filter-pill {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #53617a;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.admin-filter-pill.is-active {
  background: var(--blue-soft);
  border-color: #bfd3ff;
  color: var(--blue);
}

.admin-search-field {
  min-width: 0;
}

.recommend-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.recommend-head > div {
  min-width: 0;
  flex: 1;
}

.recommend-toggle {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.recommend-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5px;
}

.recommend-toggle:hover,
.recommend-toggle:focus-visible {
  border-color: #bfd3ff;
  background: var(--blue-soft);
  outline: none;
}

.recommend-body {
  display: grid;
  gap: 24px;
}

.recommend-body[hidden] {
  display: none;
}

/* Collapsed state - floating sidebar tab on the right */
.recommend-panel.is-collapsed {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  width: 52px !important;
  padding: 16px 8px !important;
  border-radius: 16px 0 0 16px;
  border-right: none;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: -5px 0 25px rgba(28, 45, 72, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.recommend-panel.is-collapsed:hover {
  background: #ffffff;
  transform: translateY(-50%) translateX(-3px);
  box-shadow: -6px 0 30px rgba(28, 45, 72, 0.22);
}

.recommend-panel.is-collapsed .recommend-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.recommend-panel.is-collapsed .recommend-head > div {
  display: none;
}

.recommend-panel.is-collapsed .mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(216, 95, 31, 0.15);
}

.recommend-panel.is-collapsed .recommend-toggle {
  width: 32px;
  height: 32px;
  min-height: unset;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border-color: var(--line);
  background: #fff;
  color: var(--blue);
}

.recommend-panel.is-collapsed .recommend-toggle .toggle-text {
  display: none;
}

.recommend-panel.is-collapsed .recommend-toggle svg {
  margin: 0;
  width: 16px;
  height: 16px;
}

.mini-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--orange-soft);
  color: var(--orange);
}

.recommend-panel h2 {
  font-size: 21px;
}

.recommend-list {
  display: grid;
  gap: 14px;
}

.recommend-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdff;
}

.step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.recommend-item strong {
  display: block;
  margin-bottom: 6px;
}

.recommend-item p {
  line-height: 1.55;
}

.recommend-review {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdff;
}

.recommend-review .step-number {
  width: 42px;
  height: 42px;
}

.recommend-review h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
}

.recommend-review p {
  color: #3b4659;
  line-height: 1.55;
}

.recommend-review.is-success .step-number {
  background: var(--green-soft);
  color: var(--green);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.button,
.back-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.button.secondary,
.back-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.button.danger {
  border: 1px solid rgba(220, 38, 38, 0.28);
  background: #fff;
  color: #b91c1c;
}

.button.danger:hover,
.button.danger:focus-visible {
  border-color: rgba(220, 38, 38, 0.48);
  background: #fff5f5;
  outline: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.practice-detail-layout {
  grid-template-columns: minmax(0, 1fr);
}

.subject-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--subject), #ffffff 66%);
  background:
    radial-gradient(circle at 15% 18%, color-mix(in srgb, var(--subject), #ffffff 78%) 0 76px, transparent 77px),
    linear-gradient(135deg, var(--subject-soft), #ffffff 64%),
    #fff;
  box-shadow: 0 18px 48px color-mix(in srgb, var(--subject), transparent 86%);
}

.subject-hero-main {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(300px, 0.52fr);
  align-items: center;
  gap: 20px;
}

.subject-hero .icon-box {
  width: 58px;
  height: 58px;
  background: #fff;
  color: var(--subject);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--subject), transparent 82%);
}

.subject-hero h1 {
  font-size: clamp(31px, 5vw, 48px);
}

.subject-hero-copy {
  display: grid;
  gap: 10px;
}

.subject-hero .subtitle {
  max-width: 760px;
  margin-top: 0;
}

.subject-hero-stats {
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--subject), #ffffff 72%);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  backdrop-filter: blur(10px);
}

.subject-hero-stats div {
  min-height: 72px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  background: #fff;
  display: grid;
  align-content: center;
  gap: 5px;
  box-shadow: 0 8px 20px rgba(28, 45, 72, 0.06);
}

.subject-hero-stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.subject-hero-stats strong {
  color: var(--subject);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1;
  white-space: nowrap;
}

.subject-stat-progress {
  justify-items: center;
  text-align: center;
}

.subject-saved-panel {
  margin-bottom: 18px;
  padding: clamp(18px, 2.5vw, 24px);
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--subject), #ffffff 68%);
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--subject-soft), #ffffff 55%) 100%);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--subject), transparent 90%);
}

.subject-saved-panel-header {
  margin-bottom: 14px;
}

.subject-saved-panel-title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.2;
}

.subject-saved-panel-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.subject-saved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.subject-saved-grid:has(.subject-saved-tile:only-child) {
  grid-template-columns: minmax(0, 420px);
}

.subject-saved-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--subject), #ffffff 72%);
  border-radius: var(--radius-sm);
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 8px 22px rgba(28, 45, 72, 0.06);
}

.subject-saved-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(28, 45, 72, 0.1);
}

.subject-saved-tile:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--subject), #ffffff 40%);
  outline-offset: 2px;
}

.subject-saved-tile.is-notes {
  border-color: color-mix(in srgb, var(--subject), #ffffff 62%);
}

.subject-saved-tile.is-view-later {
  border-color: color-mix(in srgb, #f59e0b, #ffffff 62%);
}

.subject-saved-tile.is-wrong {
  border-color: color-mix(in srgb, #ef4444, #ffffff 62%);
}

.subject-saved-tile.is-empty {
  opacity: 0.88;
}

.subject-saved-tile-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
}

.subject-saved-tile.is-notes .subject-saved-tile-icon {
  background: color-mix(in srgb, var(--subject), #ffffff 84%);
  color: var(--subject);
}

.subject-saved-tile.is-view-later .subject-saved-tile-icon {
  background: color-mix(in srgb, #f59e0b, #ffffff 84%);
  color: #b45309;
}

.subject-saved-tile.is-wrong .subject-saved-tile-icon {
  background: color-mix(in srgb, #ef4444, #ffffff 84%);
  color: #b91c1c;
}

.subject-saved-tile-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}

.subject-saved-tile-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.subject-saved-tile-count {
  color: var(--text);
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 900;
  line-height: 1;
}

.subject-saved-tile.is-notes .subject-saved-tile-count {
  color: var(--subject);
}

.subject-saved-tile.is-view-later .subject-saved-tile-count {
  color: #b45309;
}

.subject-saved-tile.is-wrong .subject-saved-tile-count {
  color: #b91c1c;
}

.subject-saved-tile-label {
  font-size: 16px;
  line-height: 1.2;
}

.subject-saved-tile-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.subject-saved-tile-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.subject-saved-tile-action svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.view-later-question-actions {
  margin-top: 12px;
}

.wrong-question-actions {
  margin-top: 12px;
}

.noted-question-summary {
  margin: 0 0 10px;
}

.noted-question-actions {
  margin-top: 12px;
}

.subject-stat-progress .progress-ring-sm {
  --value: 0;
  width: 72px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 54%, transparent 55%),
    conic-gradient(var(--subject) calc(var(--value) * 1%), #e5eaf1 0);
  display: grid;
  place-items: center;
  color: var(--subject);
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
}

.detail-panel {
  overflow: hidden;
}

.detail-panel-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.detail-panel-header .section-title {
  margin: 0;
}

.topic-list {
  display: grid;
}

.main.is-topic-focus-page {
  width: 100%;
  min-height: 100vh;
  padding: clamp(16px, 3vw, 34px) clamp(16px, 4vw, 54px) 42px;
}

.main.is-topic-focus-page .topbar,
.main.is-topic-focus-page .subject-hero,
.main.is-topic-focus-page .detail-panel-header {
  display: none;
}

.main.is-topic-focus-page .detail-layout {
  display: block;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.main.is-topic-focus-page .detail-panel {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.topic-list.is-topic-focus {
  border-top: 0;
}

.topic-list.is-topic-focus .practice-set-header {
  display: none;
}

.topic-list.is-topic-focus .practice-topic-row {
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.topic-list.is-topic-focus .practice-topic-row:hover,
.topic-list.is-topic-focus .practice-topic-row.is-expanded {
  background: transparent;
}

.topic-list.is-topic-focus .topic-summary {
  align-content: start;
}

.topic-list.is-topic-focus .topic-body {
  align-content: start;
}

.topic-list.is-topic-focus .topic-expanded {
  padding: 16px 0 0;
  border: 0;
  background: transparent;
}

.topic-list.is-topic-focus .topic-guidance > div,
.topic-list.is-topic-focus .topic-quiz-question {
  background: #fff;
}

.topic-list.is-topic-focus .topic-quiz {
  background: #fff;
  border-color: var(--line);
}

.topic-row {
  box-shadow: none;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 44px minmax(260px, 0.86fr) minmax(320px, 1fr) 112px;
  gap: 18px 22px;
  align-items: center;
}

.practice-topic-row {
  width: 100%;
  text-align: left;
  cursor: pointer;
  grid-template-columns: 44px minmax(260px, 0.86fr) minmax(320px, 1fr);
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.practice-topic-row:hover {
  background: color-mix(in srgb, var(--subject-soft), #ffffff 52%);
}

.practice-topic-row.is-expanded {
  background: color-mix(in srgb, var(--subject-soft), #ffffff 48%);
  box-shadow: inset 4px 0 0 var(--subject);
}

.practice-topic-row.is-vip-locked {
  cursor: default;
  border-bottom-style: dashed;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.92), #ffffff);
  opacity: 0.94;
}

.practice-topic-row.is-vip-locked:hover {
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.92), #ffffff);
  box-shadow: none;
}

.practice-topic-row.is-vip-locked .priority {
  background: #f59e0b;
  color: #fff;
}

.status-tag.is-vip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

.status-tag.is-vip svg {
  width: 14px;
  height: 14px;
}

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

.priority {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--subject-soft);
  color: var(--subject);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--subject), #ffffff 78%);
}

.topic-name {
  font-weight: 900;
  line-height: 1.25;
  font-size: 18px;
}

.topic-summary {
  display: grid;
  gap: 9px;
}

.topic-kicker {
  width: max-content;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--subject);
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--subject), #ffffff 76%);
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.topic-chips span {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f4f7fb;
  color: #526179;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 850;
}

.topic-chips span:last-child {
  background: var(--subject-soft);
  color: var(--subject);
}

.topic-body {
  display: grid;
  gap: 14px;
}

.topic-detail {
  color: #3b4659;
  line-height: 1.55;
  font-size: 15px;
}

.topic-open-hint {
  color: var(--subject);
  font-weight: 900;
  line-height: 1.35;
  font-size: 15px;
}

.topic-row-action {
  min-height: 52px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fff;
  display: grid;
  align-content: center;
  gap: 2px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--subject), #ffffff 78%);
}

.topic-next-step {
  color: #66758b;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.status-tag {
  justify-self: end;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--subject-soft);
  color: var(--subject);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

button.status-tag {
  border: 0;
  cursor: pointer;
}

button.status-tag:hover,
button.status-tag:focus-visible {
  filter: brightness(0.98);
  outline: 3px solid color-mix(in srgb, var(--subject), #ffffff 70%);
}

.status-tag.danger {
  background: var(--red-soft);
  color: var(--red);
}

.status-tag.detail {
  background: #f4f7fb;
  color: #475569;
}

.topic-actions {
  justify-self: end;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.topic-actions .status-tag:first-child {
  min-width: 84px;
  background: var(--subject);
  color: #fff;
}

.topic-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.topic-progress-wrap {
  width: 100%;
  display: grid;
  gap: 6px;
}

.progress-track {
  height: 9px;
  border-radius: 999px;
  background: #e9eef5;
  overflow: hidden;
  display: flex;
  min-width: 0;
}

.progress-segment {
  height: 100%;
  flex-shrink: 0;
}

.progress-segment.is-correct {
  background: var(--green);
}

.progress-segment.is-wrong {
  background: var(--red);
}

.topic-progress strong {
  color: var(--subject);
  font-size: 14px;
}

.topic-progress-circle {
  --value: 0;
  width: 46px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 56%, transparent 57%),
    conic-gradient(var(--subject) calc(var(--value) * 1%), #e5eaf1 0);
  display: grid;
  place-items: center;
  color: var(--subject);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--subject), #ffffff 78%);
}

.topic-expanded {
  grid-column: 1 / -1;
  margin-left: 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--subject), #ffffff 72%);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  gap: 12px;
}

.topic-focus-back {
  width: max-content;
}

.topic-expanded-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.topic-expanded-head strong {
  display: block;
  color: #182235;
  font-size: 16px;
  margin-bottom: 4px;
}

.topic-expanded-head p {
  color: #53617a;
  font-size: 14px;
  line-height: 1.5;
}

.topic-guidance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.topic-guidance > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdff;
}

.topic-guidance strong {
  display: block;
  margin-bottom: 5px;
}

.topic-guidance p {
  color: #3b4659;
  font-size: 14px;
  line-height: 1.5;
}

.topic-guidance .topic-example {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #edf2f7;
  color: #53617a;
}

.topic-example span {
  display: inline;
  color: var(--subject);
  font-weight: 900;
}

.skill-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-chip-list span {
  min-height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--subject-soft);
  color: var(--subject);
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 850;
}

.topic-expanded-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.topic-quiz {
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--subject), #ffffff 70%);
  border-radius: var(--radius-sm);
  background: #fffaf5;
  display: grid;
  gap: 12px;
}

.topic-quiz-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.topic-quiz-head strong {
  display: block;
  color: #182235;
  margin-bottom: 4px;
}

.topic-quiz-head p {
  color: #53617a;
  font-size: 14px;
  line-height: 1.5;
}

.quiz-score {
  min-width: 52px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #53617a;
  font-weight: 900;
}

.quiz-score.is-passed {
  color: var(--green);
  background: #eaf8ef;
}

.quiz-score.is-retry {
  color: var(--subject);
  background: var(--subject-soft);
}

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

.topic-quiz-question {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  display: grid;
  gap: 10px;
}

.topic-quiz-question legend {
  padding: 0 4px;
  color: #182235;
  font-weight: 900;
}

.topic-quiz-options {
  display: grid;
  gap: 8px;
}

.quiz-option {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdff;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #3b4659;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.quiz-option input {
  margin-top: 2px;
  accent-color: var(--subject);
}

.quiz-option.is-correct {
  border-color: color-mix(in srgb, var(--green), #ffffff 58%);
  background: #f3fbf6;
  color: #166534;
}

.quiz-option.is-wrong {
  border-color: color-mix(in srgb, var(--subject), #ffffff 50%);
  background: var(--subject-soft);
  color: var(--subject);
}

.quiz-feedback {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 850;
}

.quiz-feedback.is-passed {
  background: #eaf8ef;
  color: #166534;
}

.quiz-feedback.is-retry {
  background: var(--subject-soft);
  color: var(--subject);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
}

.topic-guide {
  gap: 18px;
}

.guide-progress {
  display: grid;
  gap: 8px;
}

.guide-progress-track {
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--subject), #ffffff 84%);
  overflow: hidden;
}

.guide-progress-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--subject);
  transition: width 0.25s ease;
}

.guide-progress-label {
  font-size: 15px;
  font-weight: 850;
  color: var(--subject);
}

.guide-stage {
  display: grid;
}

.guide-card {
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid color-mix(in srgb, var(--subject), #ffffff 68%);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--subject-soft), #ffffff 52%) 100%);
  display: grid;
  gap: 16px;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--subject), transparent 91%);
  animation: guide-step-in 0.22s ease;
}

@keyframes guide-step-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guide-eyebrow {
  width: max-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--subject-soft);
  color: var(--subject);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.guide-title {
  color: #182235;
  font-size: clamp(22px, 2.8vw, 26px);
  line-height: 1.35;
}

.guide-body {
  margin: 0;
  color: #2f3a4d;
  font-size: 17px;
  line-height: 1.75;
}

.guide-card .topic-example {
  margin: 2px 0 0;
  padding: 16px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--subject-soft), #ffffff 48%);
  color: #3b4659;
  font-size: 16px;
  line-height: 1.7;
}

.guide-card .topic-example span {
  display: block;
  margin-bottom: 6px;
  color: var(--subject);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.guide-card .skill-chip-list {
  gap: 10px;
}

.guide-card .skill-chip-list span {
  min-height: 38px;
  padding: 0 14px;
  font-size: 15px;
}

.guide-hint {
  color: #53617a;
  font-size: 15px;
  line-height: 1.55;
}

.guide-quiz-card .topic-quiz-options {
  margin-top: 4px;
  gap: 10px;
}

.guide-quiz-card .quiz-option {
  min-height: 52px;
  padding: 12px 14px;
  background: #fff;
  width: 100%;
  text-align: left;
  font-size: 16px;
  line-height: 1.5;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.guide-quiz-card .quiz-feedback {
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.55;
}

.guide-quiz-card .quiz-option:hover {
  border-color: color-mix(in srgb, var(--subject), #ffffff 50%);
}

.guide-result-card {
  justify-items: start;
  text-align: left;
}

.guide-result-card.is-passed {
  border-color: color-mix(in srgb, var(--green), #ffffff 58%);
  background: #f3fbf6;
}

.guide-result-score {
  min-width: 64px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 19px;
  background: var(--subject-soft);
  color: var(--subject);
}

.guide-result-card.is-passed .guide-result-score {
  background: #eaf8ef;
  color: var(--green);
}

.guide-result-card .guide-body {
  font-size: 16px;
}

.guide-result-card .topic-expanded-actions {
  width: 100%;
  justify-content: flex-start;
  padding-top: 8px;
}

.guide-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.guide-nav .button {
  min-height: 48px;
  font-size: 15px;
}

.button.ghost {
  background: #fff;
  color: #53617a;
  box-shadow: inset 0 0 0 1px var(--line);
}

.button.ghost:hover:not(:disabled) {
  color: var(--subject);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--subject), #ffffff 60%);
}

.practice-app {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 242, 230, 0.75), rgba(247, 250, 252, 0) 360px),
    var(--bg);
}

.practice-shell {
  min-height: 100vh;
  padding: clamp(16px, 4vw, 46px);
  display: grid;
  align-content: start;
  gap: 22px;
}

.practice-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.practice-progress-chip {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--subject), #ffffff 70%);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  align-content: center;
  justify-items: end;
  color: var(--muted);
  font-weight: 800;
}

.practice-progress-chip strong {
  color: var(--subject);
  font-size: 24px;
  line-height: 1;
}

.practice-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid color-mix(in srgb, var(--subject), #ffffff 72%);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
}

.practice-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.practice-heading h1 {
  font-size: clamp(28px, 4vw, 42px);
}

.practice-meter .progress-track {
  height: 12px;
}

.question-card {
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  display: grid;
  gap: 18px;
}

.vip-locked-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  background: #fffbeb;
}

.vip-locked-card strong {
  display: block;
  margin-bottom: 4px;
  color: #92400e;
  font-size: 18px;
}

.vip-locked-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.55;
}

.question-card h2,
.question-card .question-stem {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
}

.question-prompt {
  display: grid;
  gap: 14px;
}

.question-study-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  gap: clamp(14px, 2.5vw, 22px);
  align-items: start;
}

.question-study-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

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

.question-annotate-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: calc(var(--radius) - 4px);
  background: color-mix(in srgb, var(--subject-soft), #ffffff 40%);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.question-annotate-hint strong {
  color: var(--ink);
}

.question-annotate-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.annotate-action {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.annotate-action.is-highlight {
  border-color: #fde68a;
  background: #fef9c3;
  color: #854d0e;
}

.annotate-action.is-note {
  border-color: color-mix(in srgb, var(--subject), #ffffff 70%);
  background: color-mix(in srgb, var(--subject-soft), #ffffff 20%);
  color: var(--subject);
}

.annotate-action.is-clear {
  color: var(--muted);
}

.annotate-action:hover {
  filter: brightness(0.98);
}

.question-stem mark.question-highlight,
.question-stem .question-highlight {
  padding: 0 2px;
  border-radius: 4px;
  background: #fef08a;
  color: inherit;
  font: inherit;
}

.question-stem .question-note-mark {
  padding: 0 2px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--subject-soft), #ffffff 10%);
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--subject), #ffffff 55%);
  cursor: pointer;
}

.question-stem .question-note-mark.is-active {
  background: color-mix(in srgb, var(--subject-soft), #ffffff 0%);
  box-shadow: inset 0 0 0 2px var(--subject);
}

.question-note-editor {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: #fff;
  display: grid;
  gap: 10px;
}

.question-note-editor[hidden],
.question-annotate-toolbar[hidden] {
  display: none;
}

.question-side-note {
  position: sticky;
  top: 18px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--subject), #ffffff 72%);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--subject-soft), #ffffff 28%) 0%, #ffffff 78%),
    #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 12px;
}

.question-side-note-head {
  display: grid;
  gap: 3px;
}

.question-side-note-kicker,
.question-side-note-title {
  margin: 0;
}

.question-side-note-kicker {
  color: var(--subject);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.question-side-note-title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.question-scratch-field {
  display: grid;
  gap: 8px;
}

.question-scratch-field span {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.question-scratch-field textarea {
  width: 100%;
  min-height: 142px;
  resize: vertical;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--subject), #ffffff 72%);
  border-radius: calc(var(--radius) - 3px);
  background: #fffef7;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

.question-scratch-field textarea:focus {
  border-color: var(--subject);
  outline: 3px solid color-mix(in srgb, var(--subject), #ffffff 80%);
}

.question-scratch-status,
.question-selection-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.question-selection-notes {
  padding-top: 12px;
  border-top: 1px dashed color-mix(in srgb, var(--subject), #ffffff 66%);
  display: grid;
  gap: 8px;
}

.question-notes-panel {
  padding: 12px 14px;
  border: 1px dashed color-mix(in srgb, var(--subject), #ffffff 72%);
  border-radius: calc(var(--radius) - 4px);
  background: color-mix(in srgb, var(--subject-soft), #ffffff 55%);
  display: grid;
  gap: 8px;
}

.question-notes-title {
  margin: 0;
  color: var(--subject);
  font-size: 14px;
  font-weight: 900;
}

.question-notes-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.question-notes-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.question-note-link {
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 4px;
}

.question-note-index {
  color: var(--subject);
  font-size: 13px;
  font-weight: 900;
}

.question-note-quote {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
}

.question-note-content {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.question-note-delete {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.question-note-delete:hover {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.question-stem {
  user-select: text;
  -webkit-user-select: text;
}

.question-visual {
  margin: 0;
  display: grid;
  gap: 10px;
}

.question-visual figcaption {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.chart-card {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--subject), #ffffff 78%);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--subject-soft), #ffffff 18%) 0, transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.chart-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.chart-card-head strong {
  color: var(--ink);
  font-size: 16px;
}

.chart-card-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.chart-svg {
  width: min(100%, 420px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.chart-axis {
  stroke: #cbd5e1;
  stroke-width: 3;
  stroke-linecap: round;
}

.chart-bar {
  fill: var(--subject);
  opacity: 0.88;
}

.chart-value {
  fill: var(--subject);
  font-size: 15px;
  font-weight: 900;
}

.chart-label {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.question-calendar-visual {
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  align-items: center;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--subject), #ffffff 78%);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, color-mix(in srgb, var(--subject-soft), #ffffff 64%) 100%);
}

.calendar-card {
  min-height: 150px;
  padding: 16px;
  display: grid;
  place-items: center;
  gap: 4px;
  text-align: center;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28);
}

.calendar-month {
  width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--subject-soft);
  color: var(--subject);
  font-size: 13px;
  font-weight: 900;
}

.calendar-card strong {
  color: var(--subject);
  font-size: 56px;
  line-height: 1;
}

.calendar-card small {
  color: var(--muted);
  font-weight: 800;
}

.question-choices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.question-choice {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: #fff;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.4;
  font-weight: 700;
}

.choice-label {
  color: var(--subject);
  margin-right: 6px;
}

.answer-field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.wrong-question-card h2,
.wrong-question-card .question-stem {
  font-size: clamp(20px, 2.5vw, 26px);
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 900;
}

.level-tag {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--subject-soft);
  color: var(--subject);
  display: inline-flex;
  align-items: center;
}

.answer-field input {
  max-width: 520px;
  background: #fff;
}

.answer-feedback {
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  font-weight: 900;
}

.answer-feedback.is-correct {
  background: var(--green-soft);
  color: var(--green);
}

.answer-feedback.is-wrong {
  background: var(--red-soft);
  color: var(--red);
}

.answer-coach {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  gap: 8px;
}

.answer-coach.is-correct {
  border-color: color-mix(in srgb, var(--green), #ffffff 68%);
  background: #fbfffd;
}

.answer-coach.is-wrong {
  border-color: color-mix(in srgb, var(--orange), #ffffff 70%);
  background: #fffaf5;
}

.question-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px clamp(20px, 4vw, 40px);
  align-items: center;
  margin-top: 4px;
}

.question-card-actions .button-row {
  grid-column: 1;
  grid-row: 1;
  padding-top: 0;
}

.question-card-actions .question-report {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  padding-top: 0;
  border-top: none;
  display: block;
}

.question-card-actions .report-panel {
  grid-column: 1 / -1;
  grid-row: 2;
}

.wrong-question-card .question-report {
  padding-top: 8px;
  border-top: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.wrong-question-card .report-panel {
  width: 100%;
  align-self: stretch;
}

.question-report {
  padding-top: 4px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.report-toggle {
  width: max-content;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #53617a;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 850;
  cursor: pointer;
}

.report-toggle:hover,
.report-toggle:focus-visible {
  color: #53617a;
  border-color: color-mix(in srgb, #ca8a04, #ffffff 55%);
  outline: 3px solid color-mix(in srgb, #ca8a04, #ffffff 82%);
}

.question-report.is-submitted .report-toggle {
  color: #166534;
  border-color: color-mix(in srgb, #16a34a, #ffffff 55%);
}

.question-report.is-submitted .report-panel {
  padding-top: 2px;
}

.question-report.is-submitted .report-status {
  margin: 0;
}

.report-flag-icon {
  display: inline-flex;
  color: #ca8a04;
}

.report-flag-icon svg,
.report-toggle .report-flag-icon svg {
  width: 17px;
  height: 17px;
  stroke: #ca8a04;
  stroke-width: 2.2;
}

.report-toggle svg,
.file-field svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.report-panel {
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--subject), #ffffff 72%);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  gap: 12px;
}

.report-panel[hidden] {
  display: none;
}

.report-field textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
}

.report-field textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--subject), #ffffff 72%);
  border-color: color-mix(in srgb, var(--subject), #ffffff 50%);
}

.file-field {
  min-height: 52px;
  padding: 10px 12px;
  border: 1px dashed color-mix(in srgb, var(--subject), #ffffff 58%);
  border-radius: var(--radius-sm);
  background: var(--subject-soft);
  display: grid;
  gap: 8px;
  color: var(--subject);
  font-weight: 900;
}

.file-field span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.file-field input {
  color: #53617a;
  font-weight: 700;
}

.file-field input::file-selector-button {
  min-height: 34px;
  margin-right: 10px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--subject, var(--blue)), #ffffff 58%);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--subject, var(--blue));
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.report-status {
  min-height: 20px;
  color: #53617a;
  font-size: 14px;
  font-weight: 850;
}

.report-status.is-success {
  color: var(--green);
}

.report-status.is-error {
  color: var(--red);
}

.study-plan {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.study-plan h2 {
  font-size: 20px;
}

.study-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #fbfdff;
  border: 1px solid var(--line);
}

.study-card strong {
  display: block;
  margin-bottom: 6px;
}

.empty-panel {
  padding: 24px;
  line-height: 1.6;
}

.component-loading {
  display: grid;
  grid-template-columns: minmax(112px, 164px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border: 1px solid color-mix(in srgb, var(--subject, var(--blue)), #ffffff 80%);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--subject, var(--blue)), #ffffff 94%));
}

.component-loading-skeleton {
  display: grid;
  gap: 9px;
}

.loading-skeleton-line {
  height: 12px;
  width: 70%;
}

.loading-skeleton-line--wide {
  width: 100%;
}

.loading-skeleton-row span {
  height: 34px;
}

.component-loading-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.component-loading strong {
  color: var(--text);
  line-height: 1.35;
}

.component-loading-copy span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.loading-spinner {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 3px solid #dbeafe;
  border-top-color: var(--blue);
  border-radius: 999px;
  animation: loading-spin 0.8s linear infinite;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-skeleton-line,
  .auth-skeleton-row span,
  .loading-skeleton-line,
  .loading-skeleton-row span,
  .startup-profile-skeleton span,
  .startup-ring-skeleton::before {
    animation: none;
    background: #e6eef9;
  }
}

@media (max-width: 560px) {
  .component-loading {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .component-loading-skeleton {
    max-width: 260px;
  }
}

.mobile-menu {
  display: none;
}

@media (max-width: 1080px) {
  .dashboard-grid,
  .detail-layout,
  .admin-report-body {
    grid-template-columns: 1fr;
  }

  .auth-nav {
    grid-template-columns: 1fr auto;
  }

  .auth-nav-links {
    display: none;
  }

  .auth-hero,
  .auth-signup-section {
    grid-template-columns: 1fr;
  }

  .auth-product-preview {
    min-height: 0;
  }

  .auth-feature-grid,
  .auth-showcase-grid {
    grid-template-columns: 1fr;
  }

  .subject-hero-main {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .subject-hero-stats {
    grid-column: 1 / -1;
  }

  .subject-saved-grid {
    grid-template-columns: 1fr;
  }

  .recommend-panel,
  .study-plan {
    max-width: none;
  }
}

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

  .app-shell.is-topic-focus-shell .sidebar {
    display: none;
  }

  .auth-panel {
    grid-template-columns: 1fr;
  }

  .auth-nav {
    position: relative;
    padding: 14px 16px;
  }

  .auth-landing {
    width: min(100% - 28px, 720px);
    padding-top: 24px;
  }

  .auth-hero-copy h1 {
    font-size: clamp(36px, 10vw, 54px);
  }

  .auth-product-preview {
    grid-template-columns: 1fr;
  }

  .auth-preview-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
  }

  .sidebar {
    position: relative;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav,
  .sidebar-foot {
    display: none;
  }

  .mobile-menu {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 2px;
  }

  .nav-item.mobile {
    min-width: max-content;
    border: 1px solid var(--line);
    background: #fff;
  }

  .main {
    padding-top: 22px;
  }

  .topbar,
  .subject-hero-main,
  .admin-topbar,
  .admin-report-head,
  .admin-report-actions {
    display: grid;
  }

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

  .admin-filters-questions {
    grid-template-columns: 1fr;
  }

  .profile,
  .subject-hero-stats {
    justify-self: start;
  }

  .profile {
    width: 100%;
  }

  .subject-hero-main {
    grid-template-columns: 1fr;
  }

  .subject-hero .icon-box {
    width: 52px;
    height: 52px;
  }

  .subject-hero-stats {
    width: 100%;
  }

  .detail-panel-header {
    display: grid;
  }

  .overview-panel,
  .subjects-grid {
    grid-template-columns: 1fr;
  }

  .topic-row {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
  }

  .topic-row > div:nth-of-type(2),
  .topic-row > div:nth-of-type(3) {
    grid-column: 2;
  }

  .topic-detail,
  .status-tag,
  .topic-progress,
  .topic-progress-wrap,
  .topic-actions,
  .topic-expanded {
    grid-column: 2;
  }

  .practice-topic-row .topic-body {
    grid-column: 1 / -1;
  }

  .status-tag,
  .topic-actions {
    justify-self: start;
  }

  .topic-actions {
    justify-items: start;
  }

  .practice-topbar {
    display: grid;
  }

  .practice-progress-chip {
    justify-items: start;
  }

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

  .question-side-note {
    position: static;
  }

  .topic-expanded {
    margin-left: 0;
  }

  .topic-guidance {
    grid-template-columns: 1fr;
  }

  .topic-expanded-actions,
  .topic-quiz-head {
    display: grid;
    justify-content: stretch;
  }

  .topic-expanded-actions .button {
    width: 100%;
  }

  .guide-nav {
    flex-direction: column-reverse;
  }

  .guide-nav .button {
    width: 100%;
  }

  .question-card-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .question-card-actions .button-row {
    grid-column: 1;
    grid-row: 1;
  }

  .question-card-actions .question-report {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }

  .question-card-actions .report-panel {
    grid-row: 3;
  }

  .report-actions .button,
  .admin-report-actions .button,
  .admin-report-actions a.button {
    width: 100%;
  }

  .wrong-question-card .report-toggle {
    width: max-content;
  }
}

@media (max-width: 520px) {
  .auth-nav {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
  }

  .auth-nav-actions {
    justify-content: stretch;
  }

  .auth-login-link {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .auth-nav-actions > * {
    flex: 1;
  }

  .auth-hero-actions .button,
  .auth-final-cta .button {
    width: 100%;
  }

  .auth-proof-row {
    grid-template-columns: 1fr;
  }

  .auth-product-preview,
  .auth-signup-section,
  .auth-feature-grid article,
  .auth-showcase-card,
  .auth-final-cta {
    padding: 16px;
  }

  .auth-preview-top {
    grid-template-columns: 1fr;
  }

  .auth-question-meta,
  .auth-final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-question-card {
    min-height: 0;
    padding: 16px;
  }

  .auth-preview-side {
    grid-template-columns: 1fr;
  }

  .auth-note-card {
    min-height: 0;
  }

  .auth-mini-progress {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .auth-donut {
    width: 70px;
    height: 70px;
  }

  .auth-donut span {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }

  .auth-signup-section {
    margin-left: -2px;
    margin-right: -2px;
  }

  h1 {
    font-size: 30px;
  }

  .subtitle {
    font-size: 16px;
  }

  .main {
    padding-inline: 14px;
  }

  .subject-card,
  .recommend-panel,
  .overview-panel,
  .subject-hero,
  .study-plan,
  .admin-panel,
  .admin-report-card {
    padding: 20px;
  }

  .subject-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
  }

  .subject-hero-stats div {
    min-height: 60px;
    padding: 9px 7px;
  }

  .subject-hero-stats span {
    font-size: 9px;
  }

  .subject-hero-stats strong {
    font-size: 19px;
  }

  .subject-saved-tile {
    min-height: 88px;
    padding: 14px 16px;
    gap: 12px;
  }

  .subject-saved-tile-icon {
    width: 46px;
    height: 46px;
  }

  .subject-saved-tile-icon svg {
    width: 22px;
    height: 22px;
  }

  .subject-saved-tile-count {
    font-size: 26px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-users-controls,
  .admin-users-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-users-controls .admin-filter-pills,
  .admin-users-pagination div {
    width: 100%;
  }

  .admin-users-page-size {
    width: 100%;
  }

  .admin-users-pagination div {
    justify-content: space-between;
  }

  .admin-users-table {
    min-width: 0;
  }

  .admin-users-table thead {
    display: none;
  }

  .admin-users-table tbody,
  .admin-users-table tr,
  .admin-users-table td {
    display: block;
    width: 100%;
  }

  .admin-users-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-users-table tr:last-child {
    border-bottom: none;
  }

  .admin-users-table td {
    padding: 4px 0;
    border-bottom: none;
  }

  .admin-users-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
  }

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

  .recommend-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .recommend-toggle {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .recommend-review {
    grid-template-columns: 1fr;
  }

  .subject-weight {
    grid-column: 2;
    font-size: 18px;
    justify-items: start;
  }

  .button,
  .back-button {
    width: 100%;
  }

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

  .auth-card {
    padding: 16px;
  }

  .auth-proof-row,
  .auth-signup-checks {
    display: grid;
  }

  .user-profile {
    flex-wrap: wrap;
    align-items: stretch;
    gap: 14px;
    padding: 16px 18px;
    min-height: 0;
  }

  .user-profile .avatar,
  .user-profile .avatar.avatar-image {
    width: 72px;
    height: 72px;
  }

  .profile-link {
    flex: 1 1 100%;
    min-width: 0;
    margin: 0;
    padding: 4px 0;
    gap: 14px;
  }

  .profile-link-name {
    max-width: none;
  }

  .profile-toolbar {
    flex: 1 1 100%;
    justify-content: space-between;
    gap: 14px;
    padding-left: 0;
    border-left: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .profile-points-chip {
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .profile-points-item {
    align-items: flex-start;
  }

  .signout-button.compact {
    width: auto;
    flex-shrink: 0;
  }

  .practice-shell {
    padding: 14px;
  }

  .practice-panel,
  .question-card {
    padding: 16px;
  }

  .practice-heading {
    grid-template-columns: 1fr;
  }

  .answer-field input {
    max-width: none;
  }

  .topic-expanded {
    grid-column: 1 / -1;
    padding: 12px;
  }
}

.profile-page {
  display: grid;
  gap: 28px;
  max-width: 760px;
}

.feedback-page {
  display: grid;
  gap: 24px;
  max-width: 760px;
}

.feedback-form {
  display: grid;
  gap: 16px;
}

.profile-card,
.profile-stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 28px;
  display: grid;
  gap: 24px;
}

.profile-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.profile-avatar-wrap {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.profile-avatar-wrap .tiny-note {
  margin: 2px 0 0;
  text-align: center;
}

.profile-avatar,
.profile-avatar.avatar-image {
  width: 96px;
  height: 96px;
  border-width: 3px;
}

.avatar-upload-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.avatar-upload-button svg {
  width: 16px;
  height: 16px;
}

.profile-name-form {
  display: grid;
  gap: 14px;
}

.profile-name-form .field {
  gap: 10px;
}

.profile-name-form .tiny-note {
  margin: 0;
}

.profile-name-form .button-row {
  margin-top: 4px;
  padding-top: 2px;
}

.profile-email-note {
  margin: 0;
  padding-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.profile-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
}

.profile-status.is-success {
  background: var(--green-soft);
  color: var(--green);
}

.profile-status.is-error {
  background: #fff0f0;
  color: #dc2626;
}

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

.profile-stat-card {
  padding: 26px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-stat-card.is-correct {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}

.profile-stat-card.is-wrong {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff5f5 0%, #fff 100%);
}

button.profile-stat-card {
  border: 1px solid var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  width: 100%;
}

.profile-stat-card.is-clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.profile-stat-card.is-clickable:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(28, 45, 72, 0.1);
}

.profile-stat-card.is-clickable:focus-visible {
  outline: 3px solid #fecaca;
  outline-offset: 2px;
}

.profile-stat-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 800;
}

.profile-stat-action svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.profile-wrong-subject-block {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.profile-wrong-subject-block:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.profile-wrong-subject-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-wrong-subject-head .icon-box {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.profile-wrong-subject-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.profile-wrong-subject-head .topic-meta {
  margin: 4px 0 0;
}

.profile-wrong-subject-head .button {
  margin-left: auto;
  flex-shrink: 0;
}

.profile-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.profile-stat-card.is-correct .profile-stat-icon {
  color: var(--green);
}

.profile-stat-card.is-wrong .profile-stat-icon {
  color: #dc2626;
}

.profile-stat-icon svg {
  width: 20px;
  height: 20px;
}

.profile-stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.profile-stat-value {
  margin: 10px 0 0;
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
}

.profile-stat-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.profile-actions {
  display: flex;
  gap: 12px;
  padding-top: 4px;
}

.profile-section-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.profile-reports-card {
  padding: 0;
  overflow: hidden;
}

.profile-reports-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.profile-reports-toggle:hover,
.profile-reports-toggle:focus-visible {
  background: #f8fafc;
  outline: none;
}

.profile-reports-toggle-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.profile-reports-toggle-copy .profile-section-title {
  font-size: 19px;
}

.profile-reports-count {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-reports-chevron {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.profile-reports-chevron svg {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
}

.profile-reports-toggle.is-expanded .profile-reports-chevron svg {
  transform: rotate(-90deg);
}

.profile-stat-icon.is-reports {
  color: #dc2626;
}

.profile-reports-list {
  padding: 0 24px 24px;
  border-top: 1px solid var(--line);
}

.profile-reports-list[hidden] {
  display: none;
}

.profile-reports-items {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.profile-report-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  display: grid;
  gap: 10px;
}

.profile-report-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.profile-report-item-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.profile-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-report-topic {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.profile-report-question,
.profile-report-description {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
}

.profile-report-description strong {
  color: var(--ink);
}

.profile-points-card {
  display: grid;
  gap: 24px;
}

.profile-points-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-points-head .tiny-note {
  margin: 8px 0 0;
}

.profile-stat-icon.is-points {
  color: #f59e0b;
}

.profile-stat-icon.is-feedback {
  color: var(--blue);
}

.profile-points-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.profile-points-stat {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.profile-points-stat .profile-stat-value {
  margin-top: 12px;
}

.profile-points-card > .button-row {
  margin-top: 2px;
  padding-top: 4px;
}

.points-award-trigger {
  position: relative;
  display: inline-flex;
}

.points-award-hint {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  z-index: 20;
  width: min(340px, calc(100vw - 40px));
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
  pointer-events: none;
}

.points-award-hint::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 24px;
  border: 8px solid transparent;
  border-top-color: #fff;
  filter: drop-shadow(0 2px 0 #bfdbfe);
}

.points-award-hint-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 900;
  color: #1e3a8a;
}

.points-award-hint-copy {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.points-award-hint-copy strong {
  color: #0f172a;
}

.points-award-hint-sub {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
}

.points-award-hint-list {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.points-award-hint-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f0f9ff;
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.4;
}

.points-award-hint-list em {
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  color: #15803d;
  white-space: nowrap;
}

.points-award-hint-foot {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.45;
}

@media (hover: hover) and (pointer: fine) {
  .points-award-trigger:hover .points-award-hint,
  .points-award-trigger:focus-within .points-award-hint {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.points-redeem-trigger {
  position: relative;
  display: inline-flex;
}

.points-redeem-hint {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  left: auto;
  z-index: 20;
  width: min(340px, calc(100vw - 40px));
  padding: 16px 18px;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
  pointer-events: none;
}

.points-redeem-hint::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 24px;
  left: auto;
  border: 8px solid transparent;
  border-top-color: #fff;
  filter: drop-shadow(0 2px 0 #fde68a);
}

.points-redeem-hint-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 900;
  color: #92400e;
}

.points-redeem-hint-copy {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.points-redeem-hint-copy strong {
  color: #0f172a;
}

.points-redeem-hint-sub {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
}

.points-redeem-hint-list {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.points-redeem-hint-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fffbeb;
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  line-height: 1.4;
}

.points-redeem-hint-list em {
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  color: #d97706;
  white-space: nowrap;
}

.points-redeem-hint-foot {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.45;
}

@media (hover: hover) and (pointer: fine) {
  .points-redeem-trigger:hover .points-redeem-hint,
  .points-redeem-trigger:focus-within .points-redeem-hint {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.profile-points-card > .tiny-note {
  margin: 0;
}

.profile-points-stat.is-bonus {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.profile-points-stat.is-remaining {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.profile-points-stat.is-redeemed {
  border-color: #fde68a;
  background: #fffbeb;
}

.profile-points-form {
  display: grid;
  gap: 10px;
}

.profile-points-history {
  padding-top: 8px;
}

.profile-history-title {
  margin: 0 0 14px;
  font-size: 16px;
}

.profile-history-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.points-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.points-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.points-history-item.is-award {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.points-history-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.points-history-copy strong {
  font-size: 15px;
  line-height: 1.35;
}

.points-history-value {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 900;
  color: #d97706;
  white-space: nowrap;
}

.points-history-value.is-award {
  color: #16a34a;
}

body.has-modal-open {
  overflow: hidden;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
}

.profile-modal[hidden] {
  display: none;
}

.profile-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.profile-modal-dialog {
  position: relative;
  width: min(100%, 440px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 16px;
}

.profile-modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.profile-modal-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.profile-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f8fafc;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.profile-modal-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
}

.profile-modal-status.is-success {
  background: var(--green-soft);
  color: var(--green);
}

.profile-modal-status.is-error {
  background: #fff0f0;
  color: #dc2626;
}

.profile-modal-step {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.profile-modal-dialog--award,
.profile-modal-dialog--redeem {
  width: min(100%, 720px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 24px 28px 28px;
  gap: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.profile-modal-dialog--award .profile-modal-head h2,
.profile-modal-dialog--redeem .profile-modal-head h2 {
  font-size: 24px;
}

.profile-modal-dialog--award .profile-modal-step,
.profile-modal-dialog--redeem .profile-modal-step {
  margin-bottom: 8px;
  font-size: 13px;
}

.profile-modal-dialog--award .tiny-note,
.profile-modal-dialog--redeem .tiny-note {
  font-size: 15px;
  line-height: 1.55;
}

.profile-modal-dialog--award .profile-modal-close,
.profile-modal-dialog--redeem .profile-modal-close {
  width: 42px;
  height: 42px;
  font-size: 26px;
}

.profile-points-form--award,
.profile-points-form--redeem {
  gap: 16px;
}

.profile-points-form-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 16px;
  align-items: end;
}

.profile-points-form--award .field,
.profile-points-form--redeem .field {
  gap: 10px;
}

.profile-points-form--award .field--points-amount input,
.profile-points-form--redeem .field--points-amount input {
  text-align: center;
}

.profile-points-form--award .field > span,
.profile-points-form--redeem .field > span {
  font-size: 15px;
}

.profile-points-form--award .field input,
.profile-points-form--redeem .field input,
.profile-points-form--award .field select,
.profile-points-form--redeem .field select {
  min-height: 52px;
  padding: 0 16px;
  font-size: 16px;
}

.profile-modal-dialog--award .button-row,
.profile-modal-dialog--redeem .button-row,
.profile-modal-form-actions {
  gap: 12px;
}

.profile-modal-dialog--award .button-row .button,
.profile-modal-dialog--redeem .button-row .button,
.profile-modal-form-actions .button {
  min-height: 48px;
  padding: 12px 18px;
  font-size: 15px;
}

.profile-modal-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.points-award-suggestions {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-sm);
  background: #f8fbff;
}

.points-award-suggestions-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #475569;
}

.points-award-suggestion-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.points-award-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #fff;
  color: #1e3a8a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.points-award-suggestion:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.points-award-suggestion.is-selected {
  border-color: var(--blue);
  background: #dbeafe;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.points-award-suggestion-label {
  min-width: 0;
}

.points-award-suggestion-points {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-modal-dialog--award .points-redeem-review,
.profile-modal-dialog--redeem .points-redeem-review {
  padding: 20px 22px;
  gap: 14px;
}

.profile-modal-dialog--award .points-redeem-review-lead,
.profile-modal-dialog--redeem .points-redeem-review-lead {
  font-size: 16px;
}

.profile-modal-dialog--award .points-redeem-review-row,
.profile-modal-dialog--redeem .points-redeem-review-row {
  padding: 12px 0;
}

.profile-modal-dialog--award .points-redeem-review-row dt,
.profile-modal-dialog--award .points-redeem-review-row dd,
.profile-modal-dialog--redeem .points-redeem-review-row dt,
.profile-modal-dialog--redeem .points-redeem-review-row dd {
  font-size: 15px;
}

.points-redeem-suggestions {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  background: #fffbeb;
}

.points-redeem-suggestions-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #475569;
}

.points-redeem-suggestion-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.points-redeem-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  background: #fff;
  color: #92400e;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.points-redeem-suggestion:hover {
  border-color: #fbbf24;
  background: #fffbeb;
}

.points-redeem-suggestion.is-selected {
  border-color: #f59e0b;
  background: #fef3c7;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.points-redeem-suggestion-label {
  min-width: 0;
}

.points-redeem-suggestion-points {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-modal-dialog--redeem .points-redeem-review-row.is-highlight dd {
  color: #d97706;
}

@media (max-width: 680px) {
  .profile-modal-dialog--award,
  .profile-modal-dialog--redeem {
    width: min(100%, 100%);
    padding: 20px 18px 22px;
  }

  .points-award-suggestion-list,
  .points-redeem-suggestion-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-points-form-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .points-award-suggestion-list,
  .points-redeem-suggestion-list {
    grid-template-columns: 1fr;
  }
}

.points-redeem-review {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}

.points-redeem-review.is-award {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}

.points-redeem-review.is-award .points-redeem-review-row.is-highlight dd {
  color: var(--green);
}

.points-redeem-review-lead {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.points-redeem-review-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.points-redeem-review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.points-redeem-review-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.points-redeem-review-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.points-redeem-review-row dd {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  text-align: right;
}

.points-redeem-review-row.is-highlight dd {
  color: var(--blue);
  font-size: 18px;
}

@media (max-width: 720px) {
  .profile-identity,
  .profile-stats-grid,
  .profile-points-summary {
    grid-template-columns: 1fr;
  }

  .profile-avatar-wrap {
    justify-items: start;
  }

  .profile-reports-toggle {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 18px 16px;
  }

  .profile-reports-count,
  .profile-reports-chevron {
    grid-row: 1;
  }

  .profile-reports-count {
    grid-column: 2;
    justify-self: end;
  }

  .profile-reports-chevron {
    display: none;
  }

  .profile-reports-list {
    padding: 0 16px 18px;
  }

  .profile-report-item-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.practice-set {
  margin-bottom: 26px;
  padding: 0 18px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.practice-set:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.practice-set.is-focus-active {
  padding: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.practice-set-header {
  margin: 0 0 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid color-mix(in srgb, var(--subject), #ffffff 78%);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--subject-soft), #ffffff 15%) 0, transparent 38%),
    linear-gradient(135deg, #ffffff 0%, color-mix(in srgb, var(--subject-soft), #ffffff 64%) 100%);
}

.practice-set-copy {
  display: grid;
  gap: 4px;
}

.practice-set-copy h3,
.practice-set-copy p {
  margin: 0;
}

.practice-set-copy h3 {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.2;
  color: var(--ink);
}

.practice-set-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.practice-set-badge {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--subject);
  border: 1px solid color-mix(in srgb, var(--subject), #ffffff 76%);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.practice-set-progress {
  min-width: 154px;
  padding: 14px 16px 15px;
  display: grid;
  gap: 7px;
  justify-items: center;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
    #ffffff;
  box-shadow:
    0 16px 34px rgba(30, 41, 59, 0.08),
    inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.practice-set-progress-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.practice-set-progress > span:not(.practice-set-progress-label),
.practice-set-progress small:not(.practice-set-accuracy) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.practice-set-progress strong {
  color: var(--subject);
  font-size: 31px;
  line-height: 1;
  letter-spacing: 0;
}

.practice-set-accuracy {
  padding: 5px 10px;
  border-radius: 999px;
  color: #047857;
  background: #dcfce7;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.18);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.practice-set-progress.is-locked strong {
  color: #64748b;
  font-size: 16px;
}

.practice-set-progress.is-lazy strong {
  color: var(--subject);
  font-size: 18px;
}

.practice-topic-row-lazy .topic-progress-wrap {
  align-self: center;
}

.practice-topic-row-lazy .topic-meta {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.practice-set-meter {
  width: 100%;
  height: 8px;
  margin-top: 1px;
  border-radius: 999px;
  overflow: hidden;
  background: #e6edf7;
}

.practice-set-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--subject), color-mix(in srgb, var(--subject), #38bdf8 24%));
}

.practice-set-locked {
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
  position: relative;
}

.practice-set-locked .practice-set-header {
  border-color: #e2e8f0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.practice-set-locked .locked-hint {
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #64748b;
  font-size: 0.95rem;
  margin-top: 8px;
}

@media (max-width: 720px) {
  .question-calendar-visual {
    grid-template-columns: 1fr;
  }

  .practice-set {
    padding: 0 12px 12px;
  }

  .practice-set-header {
    grid-template-columns: 1fr;
  }

  .practice-set-progress {
    width: 100%;
    justify-items: start;
  }
}
