:root {
  --ink: #10231b;
  --ink-soft: #405048;
  --paper: #f5f2e9;
  --paper-strong: #fffdf8;
  --line: #d9ddd3;
  --green: #58cc02;
  --green-dark: #3d9700;
  --mint: #dff5c9;
  --lime: #b8f264;
  --amber: #f1b94a;
  --red: #c84b40;
  --shadow: 0 24px 70px rgba(16, 35, 27, 0.12);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(184, 242, 100, 0.18), transparent 26rem),
    var(--paper);
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(88, 204, 2, 0.3);
  outline-offset: 2px;
}

[v-cloak] {
  display: block;
}

[v-cloak] > :not(.boot-screen) {
  display: none;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: var(--ink-soft);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 84px;
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(16, 35, 27, 0.12);
}

.brand-button {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  cursor: pointer;
  text-align: left;
}

.brand-button strong {
  font-size: 17px;
  letter-spacing: -0.02em;
  display: block;
}

.brand-button small {
  display: block;
  color: #78837d;
  font-size: 10px;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--ink);
  border-radius: 14px 14px 11px 11px;
  transform: rotate(-2deg);
  box-shadow: inset 0 -3px rgba(0, 0, 0, 0.14);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 6px;
  background: var(--ink);
  top: -3px;
  border-radius: 7px 7px 0 0;
}

.brand-mark::before {
  transform: translateX(-10px) rotate(-24deg);
}

.brand-mark::after {
  transform: translateX(10px) rotate(24deg);
}

.brand-mark i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  border: 3px solid white;
}

.brand-mark.small {
  width: 28px;
  height: 23px;
}

.brand-mark.small i {
  width: 9px;
  height: 9px;
  border-width: 2px;
}

.brand-mark.large {
  width: 64px;
  height: 50px;
}

.brand-mark.large i {
  width: 20px;
  height: 20px;
}

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

.text-button,
.outline-button,
.primary-button,
.dark-button {
  border: 0;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.text-button {
  background: transparent;
  padding: 10px 14px;
  color: var(--ink-soft);
}

.outline-button {
  background: transparent;
  border: 1px solid rgba(16, 35, 27, 0.28);
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 650;
}

.outline-button.compact {
  padding: 9px 15px;
}

.primary-button {
  background: var(--green);
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 750;
  box-shadow: 0 4px 0 var(--green-dark);
}

.dark-button {
  background: var(--ink);
  color: white;
  border-radius: 9px;
  padding: 12px 18px;
  font-weight: 700;
}

.primary-button:hover,
.outline-button:hover,
.dark-button:hover {
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--green-dark);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.full {
  width: 100%;
}

main {
  flex: 1;
}

.home-page,
.list-page,
.console-page {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 6vw;
  align-items: center;
}

.eyebrow {
  color: #5f6f66;
  font-size: 11px;
  letter-spacing: 0.17em;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 23px;
  height: 2px;
  background: var(--green);
  vertical-align: middle;
  margin-right: 9px;
}

.hero h1 {
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(46px, 5.7vw, 86px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin: 24px 0 28px;
  font-weight: 500;
}

.hero h1 em {
  color: var(--green-dark);
  font-style: italic;
}

.hero-description {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.8;
  max-width: 560px;
}

.join-form {
  margin-top: 44px;
  max-width: 560px;
}

.join-form label {
  display: block;
  font-weight: 750;
  font-size: 13px;
  margin-bottom: 11px;
}

.join-control {
  display: flex;
  background: var(--paper-strong);
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(16, 35, 27, 0.07);
}

.join-control input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 15px;
  outline: 0;
}

.hero-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(33vw, 480px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  z-index: -2;
  box-shadow: 0 40px 100px rgba(16, 35, 27, 0.25);
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: min(24vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(184, 242, 100, 0.35);
  z-index: -1;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(16, 35, 27, 0.16);
  border-radius: 50%;
  z-index: -3;
}

.orbit-one {
  width: 92%;
  aspect-ratio: 1.5;
  transform: rotate(-11deg);
}

.orbit-two {
  width: 78%;
  aspect-ratio: 1;
  transform: rotate(22deg);
}

.mini-sheet {
  width: min(90%, 480px);
  background: rgba(255, 253, 248, 0.97);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.sheet-head,
.sheet-row {
  display: grid;
  align-items: center;
  grid-template-columns: 1.4fr repeat(4, 0.68fr);
  gap: 8px;
}

.sheet-head {
  grid-template-columns: 1fr auto;
  padding: 2px 2px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #718078;
}

.sheet-head b {
  color: var(--ink);
}

.sheet-row {
  padding: 11px 0;
  border-bottom: 1px solid #edf0e9;
  font-size: 12px;
}

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

.sheet-row i {
  font-style: normal;
  text-align: center;
  background: color-mix(in srgb, var(--green) calc(var(--level) * 70%), #edf1e9);
  border-radius: 6px;
  padding: 8px 3px;
  font-size: 10px;
}

.streak-card,
.xp-pill {
  position: absolute;
  z-index: 3;
  background: white;
  box-shadow: var(--shadow);
}

.streak-card {
  top: 45px;
  right: 1%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-radius: 13px;
  transform: rotate(5deg);
}

.streak-flame {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: #fff1ce;
  color: #e78a17;
  border-radius: 50%;
}

.streak-card strong,
.streak-card small {
  display: block;
}

.streak-card strong {
  font-size: 25px;
}

.streak-card small,
.xp-pill span {
  font-size: 10px;
  color: #728077;
}

.xp-pill {
  left: 3%;
  bottom: 58px;
  padding: 14px 20px;
  border-radius: 999px;
  transform: rotate(-4deg);
}

.xp-pill b,
.xp-pill span {
  display: block;
}

.xp-pill b {
  color: var(--green-dark);
  font-size: 18px;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(16, 35, 27, 0.16);
  border-bottom: 1px solid rgba(16, 35, 27, 0.16);
  margin-bottom: 64px;
}

.value-strip article {
  display: flex;
  gap: 20px;
  padding: 32px;
  border-right: 1px solid rgba(16, 35, 27, 0.16);
}

.value-strip article:last-child {
  border-right: 0;
}

.value-strip article > b {
  font-family: Georgia, serif;
  color: var(--green-dark);
  font-size: 13px;
}

.value-strip strong {
  font-size: 15px;
}

.value-strip p {
  margin: 8px 0 0;
  color: #6d7972;
  line-height: 1.55;
  font-size: 12px;
}

.state-panel {
  min-height: 570px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--ink-soft);
}

.state-panel h2 {
  color: var(--ink);
  margin: 20px 0 8px;
}

.state-panel p {
  margin: 0 0 24px;
}

.state-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red);
  background: #f9ded9;
  font-size: 27px;
  font-weight: 800;
}

.spinner {
  width: 34px;
  height: 34px;
  display: inline-block;
  border: 3px solid rgba(16, 35, 27, 0.15);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

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

.list-page {
  padding: 56px 0 74px;
}

.page-heading,
.console-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}

.page-heading h1,
.console-heading h1 {
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(40px, 5vw, 67px);
  font-weight: 500;
  letter-spacing: -0.045em;
  margin: 12px 0 14px;
}

.page-heading > div > p:last-child,
.console-heading > div > p:last-child {
  color: #6a7770;
  font-size: 12px;
}

.heading-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 18px 24px;
  border-left: 1px solid var(--line);
}

.heading-stat strong {
  font-family: Georgia, serif;
  font-size: 44px;
  font-weight: 500;
}

.heading-stat span {
  color: #6d7a72;
  font-size: 12px;
}

.table-note {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 4px 14px;
  color: #68766e;
  font-size: 11px;
}

.table-note span:first-child {
  margin-right: auto;
  color: var(--ink);
  font-weight: 700;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 2px;
}

.legend-dot.inferred {
  background: #fff0b9;
}

.legend-dot.missing {
  background: #e7e9e4;
}

.sheet-frame {
  border: 1px solid #ccd2c9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-strong);
  box-shadow: 0 18px 50px rgba(16, 35, 27, 0.08);
}

.sheet-scroll {
  overflow: auto;
  max-height: 68vh;
  cursor: grab;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.sheet-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.progress-table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  font-variant-numeric: tabular-nums;
}

.progress-table th,
.progress-table td {
  border-right: 1px solid #e0e4dc;
  border-bottom: 1px solid #e0e4dc;
  height: 58px;
  text-align: center;
  background: var(--paper-strong);
}

.progress-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #e9eee5;
  height: 68px;
}

.progress-table th button {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sticky-name {
  position: sticky !important;
  left: 0;
  z-index: 3;
  width: 190px;
  min-width: 190px;
  text-align: left !important;
  box-shadow: 5px 0 10px rgba(16, 35, 27, 0.04);
}

thead .sticky-name {
  z-index: 6;
}

.name-heading button {
  padding: 0 20px;
  text-align: left;
  font-weight: 800;
}

.date-heading {
  width: 55px;
  min-width: 55px;
}

.date-heading button {
  display: grid;
  place-content: center;
  gap: 2px;
}

.date-heading small {
  color: #758078;
  font-size: 9px;
  font-weight: 500;
}

.date-heading strong {
  font-size: 11px;
}

.date-heading span,
.name-heading span {
  color: var(--green-dark);
  font-size: 10px;
}

.summary-heading {
  min-width: 88px;
  background: #dce8d5 !important;
  font-size: 11px;
}

.summary-heading.wide {
  min-width: 105px;
}

.summary-heading span {
  font-weight: 800;
}

.member-name button {
  border: 0;
  background: transparent;
  padding: 0 16px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.avatar {
  flex: 0 0 auto;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--mint);
  color: #336f0e;
  font-weight: 800;
}

.avatar.large {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  font-size: 22px;
}

.member-name strong,
.member-name small {
  display: block;
}

.member-name strong {
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.member-name small {
  margin-top: 3px;
  color: #89928c;
  font-size: 9px;
}

.xp-cell {
  font-size: 11px;
  font-weight: 700;
}

.xp-cell.is-inferred {
  background: #fff7d9;
  color: #986500;
}

.xp-cell.is-missing {
  color: #b8bdb8;
  background: #fafaf7;
  font-weight: 400;
}

.xp-cell sup {
  font-size: 7px;
}

.summary-cell {
  background: #f1f6ed !important;
  min-width: 88px;
}

.streak-value b {
  font-family: Georgia, serif;
  font-size: 19px;
}

.streak-value small {
  margin-left: 3px;
  color: #77817b;
  font-size: 9px;
}

.date-value {
  font-size: 10px;
  color: #637068;
}

.total-value {
  font-weight: 800;
  min-width: 105px;
  font-size: 12px;
}

.empty-row,
.empty-cell {
  color: #89928c;
  font-size: 12px;
}

.login-layout {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1fr minmax(350px, 470px);
  gap: 9vw;
  align-items: center;
}

.login-copy h1 {
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(48px, 5.7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 500;
  margin: 23px 0;
}

.login-copy > p:last-of-type {
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 500px;
}

.security-note {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  max-width: 480px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.security-note b {
  color: var(--green-dark);
  white-space: nowrap;
}

.security-note span {
  color: #6c7871;
}

.login-card {
  background: var(--paper-strong);
  padding: 45px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card-kicker {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.login-card h2 {
  font-family: Georgia, serif;
  font-size: 34px;
  margin: 14px 0 9px;
  font-weight: 500;
}

.login-card > p {
  color: #738078;
  font-size: 12px;
  margin: 0 0 30px;
}

.login-card label,
.settings-grid label {
  font-size: 11px;
  font-weight: 750;
}

.login-card input,
.create-list-form input,
.settings-grid input,
.import-card textarea {
  width: 100%;
  margin: 8px 0 20px;
  border: 1px solid #cfd5cc;
  border-radius: 9px;
  background: white;
  padding: 13px 14px;
  color: var(--ink);
  outline: 0;
}

.form-error {
  color: var(--red) !important;
  margin: -8px 0 16px !important;
}

.console-page {
  padding: 50px 0 80px;
}

.console-heading h1 {
  font-size: clamp(42px, 4.8vw, 62px);
}

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

.list-sidebar {
  position: sticky;
  top: 20px;
  background: #e9eee5;
  border: 1px solid #d1d8ce;
  border-radius: 14px;
  padding: 15px;
}

.sidebar-title {
  display: flex;
  justify-content: space-between;
  padding: 7px 8px 16px;
  font-size: 12px;
}

.sidebar-title span {
  background: var(--ink);
  color: white;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 9px;
}

.list-select {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 10px;
  padding: 11px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.list-select:hover,
.list-select.active {
  background: var(--paper-strong);
  box-shadow: 0 7px 20px rgba(16, 35, 27, 0.07);
}

.list-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: var(--lime);
  font-weight: 800;
}

.list-select strong,
.list-select small {
  display: block;
}

.list-select strong {
  font-size: 11px;
}

.list-select small {
  font-size: 9px;
  color: #78837d;
  margin-top: 3px;
}

.list-select i {
  font-style: normal;
  color: #849087;
}

.sidebar-empty {
  color: #7b867f;
  font-size: 10px;
  padding: 12px 8px;
  line-height: 1.6;
}

.create-list-form {
  border-top: 1px solid #cbd3c8;
  margin-top: 12px;
  padding: 18px 4px 2px;
}

.create-list-form strong {
  font-size: 11px;
  display: block;
  margin-bottom: 4px;
}

.create-list-form input {
  margin: 7px 0 0;
  padding: 10px 11px;
  font-size: 11px;
}

.create-list-form button {
  margin-top: 9px;
  font-size: 11px;
}

.console-content {
  min-width: 0;
}

.empty-console {
  min-height: 420px;
  border: 1px dashed #bec7bc;
  border-radius: 16px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.empty-console h2 {
  margin: 22px 0 8px;
}

.empty-console p {
  color: #718078;
  font-size: 12px;
}

.list-admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 2px 24px;
}

.list-admin-head h2 {
  font-family: Georgia, "Songti SC", serif;
  font-size: 35px;
  font-weight: 500;
  margin: 12px 0 5px;
}

.list-admin-head code {
  color: #748078;
  font-size: 11px;
}

.admin-card {
  background: var(--paper-strong);
  border: 1px solid #d5dad2;
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 18px;
  box-shadow: 0 12px 36px rgba(16, 35, 27, 0.05);
}

.section-heading,
.section-heading > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.section-heading > div > span {
  color: var(--green-dark);
  font-family: Georgia, serif;
  font-size: 11px;
  padding-top: 3px;
}

.section-heading h3 {
  margin: 0;
  font-size: 15px;
}

.section-heading p {
  margin: 6px 0 0;
  color: #77827b;
  font-size: 10px;
}

.section-heading code {
  color: #657169;
  background: #eef1eb;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 9px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 190px auto;
  gap: 12px;
  align-items: end;
  margin-top: 22px;
}

.settings-grid input {
  margin: 7px 0 0;
}

.field-help {
  color: #78837d;
  font-size: 9px;
  margin: 12px 0 0;
}

.import-card textarea {
  resize: vertical;
  margin: 22px 0 0;
  min-height: 138px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  line-height: 1.7;
}

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

.preview-panel {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.preview-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border-radius: 8px;
}

.preview-row.good {
  background: #f0f8e9;
}

.preview-row.bad {
  background: #fcedea;
  margin-top: 5px;
}

.preview-row > b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  font-size: 10px;
}

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

.preview-row span strong {
  font-size: 11px;
}

.preview-row span small {
  margin-top: 2px;
  color: #718078;
  font-size: 9px;
}

.admin-members {
  margin-top: 19px;
}

.admin-member-row {
  display: grid;
  grid-template-columns: auto minmax(130px, 1fr) 100px 90px auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 4px;
  border-top: 1px solid #e2e5df;
}

.member-main strong,
.member-main small,
.member-metric b,
.member-metric small {
  display: block;
}

.member-main strong {
  font-size: 11px;
}

.member-main small {
  color: #7a857e;
  margin-top: 3px;
  font-size: 9px;
}

.member-metric {
  text-align: right;
}

.member-metric b {
  font-size: 11px;
}

.member-metric small {
  color: #849087;
  font-size: 8px;
}

.member-status {
  color: #447b21;
  background: #e6f3da;
  padding: 6px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 8px;
}

.member-status.bad {
  color: #9b3f36;
  background: #fae1dd;
}

.row-button {
  border: 0;
  background: transparent;
  color: #506158;
  padding: 7px;
  cursor: pointer;
  font-size: 9px;
}

.row-button.danger {
  color: var(--red);
}

.admin-empty {
  padding: 35px;
  color: #7c8780;
  text-align: center;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.delete-list-button {
  width: 100%;
  border: 1px solid rgba(200, 75, 64, 0.3);
  background: transparent;
  color: var(--red);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  font-size: 10px;
}

.compact-state {
  min-height: 300px;
}

.not-found strong {
  font-family: Georgia, serif;
  font-size: 80px;
  color: var(--green-dark);
  font-weight: 500;
}

.not-found h1 {
  font-family: Georgia, "Songti SC", serif;
  font-size: 36px;
  margin: 6px 0;
}

footer {
  width: min(1480px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  border-top: 1px solid rgba(16, 35, 27, 0.14);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #77827b;
  font-size: 10px;
}

footer p {
  color: var(--ink);
  font-weight: 700;
}

footer > span:last-child {
  margin-left: auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 20, 14, 0.48);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
}

.detail-drawer {
  width: min(520px, 100%);
  height: 100%;
  overflow-y: auto;
  background: var(--paper);
  padding: 42px;
  box-shadow: -20px 0 70px rgba(0, 0, 0, 0.15);
  animation: drawer-in 220ms ease-out;
}

@keyframes drawer-in {
  from {
    transform: translateX(100%);
  }
}

.modal-close {
  float: right;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.detail-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 36px 0 28px;
}

.detail-profile p {
  color: #78837c;
  font-size: 10px;
  margin: 0 0 5px;
}

.detail-profile h2 {
  font-family: Georgia, "Songti SC", serif;
  font-size: 31px;
  margin: 0 0 5px;
  font-weight: 500;
}

.detail-profile > div > span {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
}

.detail-loading {
  min-height: 200px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: #77827b;
  font-size: 11px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.detail-stats article {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.detail-stats article:last-child {
  border-right: 0;
}

.detail-stats span,
.detail-stats strong {
  display: block;
}

.detail-stats span {
  color: #7d8981;
  font-size: 8px;
  margin-bottom: 8px;
}

.detail-stats strong {
  font-family: Georgia, serif;
  font-size: 20px;
}

.detail-stats small {
  font-family: inherit;
  font-size: 8px;
  color: #748078;
}

.detail-section {
  margin-top: 28px;
}

.detail-section h3 {
  font-size: 12px;
  margin-bottom: 12px;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  font-size: 11px;
}

.date-range i {
  height: 1px;
  flex: 1;
  background: var(--green);
}

.course-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px 2px;
}

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

.course-row strong,
.course-row b {
  font-size: 11px;
}

.course-row small {
  color: #7d8981;
  font-size: 8px;
  margin-top: 3px;
}

.detail-empty,
.detail-updated {
  color: #7b867f;
  font-size: 10px;
}

.detail-updated {
  margin-top: 28px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  font-size: 11px;
}

.toast.error {
  background: #9e3d35;
}

.toast-enter-active,
.toast-leave-active {
  transition: all 180ms ease;
}

.toast-enter-from,
.toast-leave-to {
  opacity: 0;
  transform: translate(-50%, 10px);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 72px 0 40px;
  }

  .hero-visual {
    min-height: 470px;
  }

  .hero-visual::before {
    width: min(68vw, 460px);
  }

  .hero-visual::after {
    width: min(48vw, 330px);
  }

  .value-strip {
    grid-template-columns: 1fr;
  }

  .value-strip article {
    border-right: 0;
    border-bottom: 1px solid rgba(16, 35, 27, 0.16);
  }

  .login-layout {
    grid-template-columns: 1fr;
    padding: 70px 0;
    gap: 50px;
  }

  .console-grid {
    grid-template-columns: 1fr;
  }

  .list-sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .topbar,
  .home-page,
  .list-page,
  .console-page,
  footer {
    width: min(100% - 28px, 1480px);
  }

  .topbar {
    height: 70px;
  }

  .brand-button small {
    display: none;
  }

  .text-button {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 55px;
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(41px, 13vw, 60px);
  }

  .hero-description {
    font-size: 14px;
  }

  .join-control {
    display: grid;
    gap: 7px;
  }

  .join-control input {
    min-height: 46px;
  }

  .hero-visual {
    min-height: 390px;
    transform: scale(0.93);
  }

  .hero-visual::before {
    width: min(92vw, 410px);
  }

  .mini-sheet {
    width: 100%;
  }

  .streak-card {
    top: 28px;
    right: -3%;
  }

  .xp-pill {
    left: -3%;
    bottom: 35px;
  }

  .value-strip article {
    padding: 26px 8px;
  }

  .page-heading,
  .console-heading,
  .list-admin-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-heading h1 {
    font-size: 42px;
  }

  .heading-stat {
    border-left: 0;
    border-top: 1px solid var(--line);
    width: 100%;
    padding-left: 0;
  }

  .table-note {
    gap: 10px;
  }

  .table-note span:first-child {
    width: 100%;
  }

  .sheet-scroll {
    max-height: 64vh;
  }

  .sticky-name {
    min-width: 150px;
    width: 150px;
  }

  .member-name button {
    padding: 0 9px;
  }

  .member-name strong {
    max-width: 75px;
  }

  .login-card {
    padding: 28px 22px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
  }

  .admin-card {
    padding: 20px 16px;
  }

  .admin-member-row {
    grid-template-columns: auto 1fr auto auto;
  }

  .member-metric,
  .member-status {
    display: none;
  }

  .detail-drawer {
    padding: 28px 20px;
  }

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

  .detail-stats article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  footer {
    flex-wrap: wrap;
    padding: 18px 0;
  }

  footer > span:last-child {
    width: 100%;
    margin-left: 40px;
  }
}

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