:root {
  color-scheme: light;
  --ink: #10293f;
  --ink-2: #1f3f5c;
  --navy: #083a62;
  --navy-2: #0d4d78;
  --jade: #15716e;
  --gold: #b8893a;
  --gold-2: #d1ad6b;
  --paper: #f7f3e9;
  --mist: #edf5f8;
  --line: rgba(16, 41, 63, 0.13);
  --muted: #637587;
  --success: #1d7b56;
  --warning: #a86c12;
  --danger: #b54338;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(7, 35, 59, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  background:
    linear-gradient(135deg, rgba(247, 243, 233, 0.96), rgba(237, 245, 248, 0.94) 42%, rgba(255, 255, 255, 0.98)),
    repeating-linear-gradient(90deg, rgba(8, 58, 98, 0.03) 0 1px, transparent 1px 36px);
  min-height: 100vh;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 280px) 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 4vw;
  background: rgba(247, 251, 252, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.brand strong {
  display: block;
  font-size: 1.14rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 2px solid rgba(8, 58, 98, 0.2);
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 44%, var(--navy) 45% 55%, transparent 56%),
    linear-gradient(135deg, transparent 44%, var(--jade) 45% 55%, transparent 56%),
    radial-gradient(circle at center, var(--paper) 0 22%, var(--gold-2) 23% 30%, transparent 31%);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.82), 0 8px 20px rgba(8, 58, 98, 0.16);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.main-nav button,
.btn,
.icon-btn {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.main-nav button {
  padding: 8px 14px;
  color: var(--ink-2);
  background: transparent;
  white-space: nowrap;
}

.main-nav button:hover,
.main-nav button.active {
  color: var(--navy);
  background: rgba(8, 58, 98, 0.08);
  border-color: rgba(8, 58, 98, 0.12);
}

.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border-color: rgba(8, 58, 98, 0.12);
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(8, 58, 98, 0.12);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--jade));
  border-color: rgba(255, 255, 255, 0.12);
}

.btn.gold {
  color: #2b2112;
  background: linear-gradient(135deg, #e7c57c, var(--gold-2));
  border-color: rgba(184, 137, 58, 0.22);
}

.btn.subtle {
  background: rgba(255, 255, 255, 0.72);
}

.btn.danger {
  color: #fff;
  background: var(--danger);
  border-color: rgba(181, 67, 56, 0.24);
}

.btn.success {
  color: #fff;
  background: var(--success);
  border-color: rgba(29, 123, 86, 0.24);
}

.btn.ghost {
  color: var(--navy);
  background: transparent;
  border-color: rgba(8, 58, 98, 0.18);
}

.btn-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  font-weight: 700;
  line-height: 1;
}

.page {
  flex: 1;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 48px;
}

.page:focus {
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  gap: 22px;
  align-items: start;
}

.hero-main,
.panel,
.course-card,
.metric-card,
.member-card,
.admin-card,
.tool-panel,
.auth-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hero-main {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 26px 28px;
  align-items: center;
  min-height: 0;
  padding: 38px;
  background:
    radial-gradient(circle at 78% 38%, rgba(21, 113, 110, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 249, 250, 0.92) 58%, rgba(247, 243, 233, 0.86)),
    repeating-linear-gradient(0deg, rgba(184, 137, 58, 0.07) 0 1px, transparent 1px 30px);
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: auto -10% -20% -4%;
  height: 42%;
  background:
    linear-gradient(170deg, transparent 0 22%, rgba(21, 113, 110, 0.14) 23% 28%, transparent 29%),
    linear-gradient(155deg, transparent 0 31%, rgba(8, 58, 98, 0.16) 32% 38%, transparent 39%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(8, 58, 98, 0.08));
  pointer-events: none;
}

.hero-main::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 24px;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(184, 137, 58, 0.24);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 48%, rgba(184, 137, 58, 0.18) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(184, 137, 58, 0.18) 49% 51%, transparent 52%);
  opacity: 0.58;
  pointer-events: none;
}

.hero-copy,
.hero-actions,
.hero-art,
.hero-insights {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  color: var(--navy);
  background: rgba(8, 58, 98, 0.08);
  border: 1px solid rgba(8, 58, 98, 0.12);
  border-radius: 8px;
  font-weight: 700;
}

.hero h1,
.section-title h1 {
  margin: 22px 0 12px;
  color: var(--ink);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 3.95rem;
  line-height: 1.05;
  font-weight: 800;
}

.hero h1 span {
  display: block;
  color: var(--gold);
}

.hero p,
.section-title p {
  max-width: 650px;
  margin: 0;
  color: var(--ink-2);
  font-size: 1.02rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  color: var(--navy);
  border: 1px solid rgba(8, 58, 98, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-actions,
.inline-actions,
.form-actions,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-actions {
  margin-top: 24px;
}

.hero-art {
  display: grid;
  place-items: center;
}

.compass-stage {
  position: relative;
  display: grid;
  width: min(100%, 232px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(8, 58, 98, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.92) 0 39%, transparent 40%),
    repeating-conic-gradient(from 0deg, rgba(8, 58, 98, 0.12) 0 3deg, transparent 3deg 15deg),
    radial-gradient(circle at center, rgba(21, 113, 110, 0.12), rgba(255, 255, 255, 0.6) 62%, transparent 63%);
  box-shadow: inset 0 0 0 16px rgba(255, 255, 255, 0.54), 0 24px 55px rgba(8, 58, 98, 0.15);
}

.compass-stage::before,
.compass-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.compass-stage::before {
  inset: 28px;
  border: 1px dashed rgba(184, 137, 58, 0.38);
}

.compass-stage::after {
  inset: 56px;
  border: 1px solid rgba(8, 58, 98, 0.13);
}

.compass-plate {
  position: relative;
  z-index: 1;
  width: 146px;
  height: 146px;
  border: 1px solid rgba(8, 58, 98, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fbfbf5 0 24%, transparent 25%),
    conic-gradient(from 0deg, rgba(8, 58, 98, 0.22) 0 10deg, transparent 10deg 20deg, rgba(184, 137, 58, 0.28) 20deg 32deg, transparent 32deg 45deg),
    radial-gradient(circle at center, var(--paper) 0 42%, rgba(184, 137, 58, 0.2) 43% 55%, transparent 56%),
    radial-gradient(circle at center, rgba(8, 58, 98, 0.09), transparent 72%);
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.78), 0 18px 40px rgba(8, 58, 98, 0.16);
}

.compass-plate::before,
.compass-plate::after {
  content: "";
  position: absolute;
  inset: 40px;
  border-radius: 50%;
}

.compass-plate::before {
  background: linear-gradient(90deg, #111 0 50%, #fefefe 50%);
  border: 1px solid rgba(16, 41, 63, 0.32);
}

.compass-plate::after {
  inset: 58px;
  background: linear-gradient(90deg, #fff 0 50%, #111 50%);
}

.orbit-label {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  min-width: 42px;
  min-height: 26px;
  place-items: center;
  padding: 2px 8px;
  color: var(--navy);
  border: 1px solid rgba(8, 58, 98, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 18px rgba(8, 58, 98, 0.09);
  font-size: 0.8rem;
  font-weight: 900;
}

.orbit-top {
  top: 14px;
}

.orbit-right {
  right: 4px;
}

.orbit-bottom {
  bottom: 14px;
}

.orbit-left {
  left: 4px;
}

.water-sigil {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 36px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--jade));
  box-shadow: 0 12px 26px rgba(8, 58, 98, 0.23);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 1.08rem;
  font-weight: 900;
}

.hero-insights {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-insights div {
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid rgba(8, 58, 98, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-insights b {
  display: block;
  color: var(--navy);
  font-size: 1.58rem;
  line-height: 1;
}

.hero-insights span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.rune {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(8, 58, 98, 0.14);
  border-radius: 8px;
  background: rgba(247, 243, 233, 0.78);
}

.rune strong {
  display: block;
  color: var(--navy);
  font-size: 1.04rem;
}

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

.catalog-panel {
  overflow: hidden;
  align-self: start;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 58, 98, 0.96), rgba(14, 73, 104, 0.96)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 16px);
  box-shadow: var(--shadow);
}

.catalog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 14px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(209, 173, 107, 0.22), transparent 28%),
    linear-gradient(135deg, #092f50, #0a2740);
}

.catalog-head small {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 800;
}

.catalog-head h2 {
  margin: 0;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 2.08rem;
  line-height: 1;
}

.catalog-head p {
  max-width: 280px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
  line-height: 1.45;
}

.catalog-stat {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 3px;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.catalog-stat b {
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
}

.catalog-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 10px 0;
  background: rgba(255, 255, 255, 0.1);
}

.catalog-tabs span {
  display: grid;
  min-height: 28px;
  place-items: center;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.catalog-list {
  display: grid;
  gap: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.chapter-mini {
  --accent: var(--navy);
  --accent-soft: rgba(8, 58, 98, 0.1);
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  min-height: 54px;
  padding: 7px 10px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  text-align: left;
  box-shadow: 0 10px 22px rgba(7, 35, 59, 0.08);
  isolation: isolate;
  overflow: hidden;
}

.chapter-mini.foundation {
  --accent: #0f6086;
  --accent-soft: rgba(15, 96, 134, 0.12);
}

.chapter-mini.method {
  --accent: #14716c;
  --accent-soft: rgba(20, 113, 108, 0.13);
}

.chapter-mini.practice {
  --accent: #b8893a;
  --accent-soft: rgba(184, 137, 58, 0.16);
}

.chapter-mini::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  opacity: 0.92;
}

.chapter-mini::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.18;
  pointer-events: none;
}

.chapter-mini:hover {
  transform: translateX(2px);
  background: #fff;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 28px rgba(7, 35, 59, 0.14);
}

.chapter-index {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 36px;
  color: #fff;
  border-radius: 6px;
  background:
    linear-gradient(135deg, var(--accent), rgba(8, 58, 98, 0.92)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 9px);
  font-size: 1rem;
  font-weight: 800;
  overflow: hidden;
}

.chapter-index::before {
  content: "";
  position: absolute;
  inset: 10px auto auto 0;
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.32);
}

.chapter-mini strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy);
  font-size: 0.92rem;
  line-height: 1.25;
}

.chapter-mini .chapter-info {
  display: grid;
  align-content: center;
  min-width: 0;
}

.chapter-title-row {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.chapter-title-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-title-row em {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 20px;
  padding: 1px 6px;
  color: var(--accent);
  border-radius: 6px;
  background: var(--accent-soft);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.chapter-lessons {
  display: block;
  color: var(--muted);
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.quick-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.metric-card {
  padding: 18px 20px;
}

.metric-card b {
  display: block;
  color: var(--navy);
  font-size: 1.65rem;
  line-height: 1.1;
}

.metric-card span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-title h1 {
  margin: 0 0 8px;
  font-size: 2.6rem;
}

.panel {
  padding: 22px;
}

.course-grid,
.plan-grid,
.member-grid,
.admin-grid {
  display: grid;
  gap: 16px;
}

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

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

.course-roadmap div {
  position: relative;
  min-height: 112px;
  padding: 16px 16px 16px 54px;
  border: 1px solid rgba(8, 58, 98, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(237, 245, 248, 0.74)),
    repeating-linear-gradient(45deg, rgba(8, 58, 98, 0.04) 0 1px, transparent 1px 18px);
}

.course-roadmap b {
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  border-radius: 6px;
  background: var(--navy);
  font-size: 0.82rem;
}

.course-roadmap strong {
  display: block;
  color: var(--navy);
  font-size: 1.02rem;
}

.course-roadmap span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.course-card {
  --accent: var(--navy);
  --accent-soft: rgba(8, 58, 98, 0.1);
  overflow: hidden;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
}

.course-card.foundation {
  --accent: #0f6086;
  --accent-soft: rgba(15, 96, 134, 0.12);
}

.course-card.method {
  --accent: #14716c;
  --accent-soft: rgba(20, 113, 108, 0.13);
}

.course-card.practice {
  --accent: #b8893a;
  --accent-soft: rgba(184, 137, 58, 0.16);
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(7, 35, 59, 0.16);
}

.course-card-head {
  position: relative;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(135deg, var(--accent), rgba(8, 58, 98, 0.96)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 16px);
}

.course-card-head::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -18px;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.course-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.course-card-meta small,
.course-card-meta span,
.lesson-count {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.course-card-meta span {
  color: #2f230e;
  background: rgba(231, 197, 124, 0.92);
}

.course-card-head h3 {
  position: relative;
  z-index: 1;
  margin: 14px 0 6px;
  font-size: 1.25rem;
}

.course-card-head p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
}

.lesson-count {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  width: fit-content;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
}

.course-card ul,
.detail-list,
.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-card li,
.detail-list li,
.clean-list li {
  position: relative;
  padding-left: 18px;
}

.course-card li::before,
.detail-list li::before,
.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.74em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.course-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.course-card-body ul {
  display: grid;
  gap: 6px;
  color: var(--ink-2);
}

.course-outcome {
  margin-top: auto;
  padding: 12px;
  color: var(--ink-2);
  border: 1px solid rgba(8, 58, 98, 0.1);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  font-size: 0.9rem;
}

.course-card-body .btn {
  margin-top: 0;
}

.filterbar,
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.search-box {
  position: relative;
  flex: 1 1 280px;
}

.search-box input {
  width: 100%;
  padding-left: 42px;
}

.search-box::before {
  content: "⌕";
  position: absolute;
  left: 16px;
  top: 50%;
  color: var(--muted);
  transform: translateY(-50%);
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.segmented button {
  min-height: 34px;
  padding: 6px 12px;
  border: 0;
  border-radius: 6px;
  color: var(--ink-2);
  background: transparent;
}

.segmented button.active {
  color: #fff;
  background: var(--navy);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.96fr);
  gap: 18px;
  align-items: start;
}

.tool-panel,
.auth-panel {
  padding: 22px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink-2);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid rgba(16, 41, 63, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  outline: none;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(21, 113, 110, 0.14);
}

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

.score-ring {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: 2px auto 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--jade) var(--score, 72%), rgba(8, 58, 98, 0.12) 0);
  box-shadow: inset 0 0 0 1px rgba(8, 58, 98, 0.1);
}

.score-ring strong {
  color: var(--navy);
  font-size: 2.45rem;
  line-height: 1;
}

.score-ring span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.report-summary {
  padding: 16px;
  border-radius: 8px;
  background: rgba(247, 243, 233, 0.86);
  border: 1px solid rgba(184, 137, 58, 0.18);
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 800;
}

.badge.pending {
  color: #6b4100;
  background: rgba(209, 173, 107, 0.24);
}

.badge.approved {
  color: #0d5035;
  background: rgba(29, 123, 86, 0.15);
}

.badge.rejected {
  color: #7d1f18;
  background: rgba(181, 67, 56, 0.13);
}

.badge.admin {
  color: #fff;
  background: var(--navy);
}

.member-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.member-card,
.admin-card {
  padding: 20px;
}

.profile-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--jade));
  font-size: 1.4rem;
  font-weight: 900;
}

.kv {
  display: grid;
  gap: 10px;
}

.kv div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

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

.kv dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

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

.plan {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.plan strong {
  display: block;
  color: var(--navy);
  font-size: 1.14rem;
}

.plan b {
  display: block;
  margin: 8px 0;
  color: var(--gold);
  font-size: 1.45rem;
}

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

.history-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.history-item strong {
  display: block;
  color: var(--navy);
}

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

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

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

th {
  color: var(--navy);
  background: rgba(8, 58, 98, 0.07);
  font-size: 0.92rem;
}

td {
  color: var(--ink-2);
}

tr:last-child td {
  border-bottom: 0;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.icon-btn {
  display: inline-grid;
  min-width: 36px;
  min-height: 34px;
  place-items: center;
  padding: 6px 10px;
  color: var(--navy);
  border: 1px solid rgba(8, 58, 98, 0.15);
  background: #fff;
}

.empty-state {
  display: grid;
  gap: 12px;
  place-items: center;
  padding: 38px 20px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(8, 58, 98, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.empty-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(184, 137, 58, 0.2);
  border-radius: 50%;
  background: rgba(247, 243, 233, 0.92);
  font-size: 1.6rem;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.auth-panel h2,
.tool-panel h2,
.panel h2,
.member-card h2,
.admin-card h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 1.32rem;
}

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

.callout {
  padding: 16px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(247, 243, 233, 0.78);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 24, 39, 0.52);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(86vh, 780px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 1.35rem;
  line-height: 1;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 16px;
  color: #fff;
  border-radius: 8px;
  background: rgba(8, 58, 98, 0.96);
  box-shadow: 0 18px 45px rgba(8, 58, 98, 0.25);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: center;
  padding: 18px 4vw 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.site-footer span:first-child {
  color: var(--navy);
  font-weight: 900;
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .hero,
  .tool-layout,
  .auth-grid,
  .member-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

@media (max-width: 720px) {
  .page {
    width: min(100% - 24px, 1220px);
    padding-top: 18px;
  }

  .topbar {
    padding: 12px;
  }

  .hero-main,
  .panel,
  .tool-panel,
  .auth-panel,
  .member-card,
  .admin-card {
    padding: 18px;
  }

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

  .hero h1 {
    font-size: 2.78rem;
  }

  .section-title {
    display: block;
  }

  .section-title h1 {
    font-size: 2rem;
  }

  .hero-art,
  .hero-insights,
  .quick-band,
  .course-grid,
  .course-roadmap,
  .plan-grid,
  .admin-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .course-card {
    min-height: 0;
  }

  .hero-art {
    order: 2;
  }

  .hero-insights {
    order: 3;
  }

  .compass-plate {
    margin: 0 auto;
  }

  .compass-stage {
    width: min(100%, 260px);
  }

  .chapter-mini {
    grid-template-columns: 54px 1fr;
  }

  .top-actions,
  .hero-actions,
  .inline-actions,
  .form-actions,
  .toolbar-actions {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
