:root {
  --sea: #0f766e;
  --sea-dark: #115e59;
  --ink: #14212b;
  --muted: #52616b;
  --line: #d7e0e4;
  --paper: #f4f7f7;
  --white: #ffffff;
  --amber: #b45309;
  --danger: #9f1239;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, "PingFang TC", "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: var(--sea-dark); }
img { max-width: 100%; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.site-header, .site-footer { background: var(--white); border-bottom: 1px solid var(--line); }
.site-footer { border-bottom: 0; border-top: 1px solid var(--line); margin-top: 48px; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0; }
.brand { display: flex; align-items: center; color: inherit; text-decoration: none; }
.brand img, .footer-brand img { height: 68px; width: auto; display: block; }
.footer-brand img { height: 52px; }
nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
nav a { text-decoration: none; font-weight: 700; }
.hero {
  background: linear-gradient(145deg, #0f766e 0%, #0e7490 46%, #1d4ed8 100%);
  color: white;
  padding: 72px 0 56px;
}
.hero h1, .section h2, .panel h2, .panel h3 { font-family: Sora, Manrope, sans-serif; letter-spacing: -0.03em; }
.hero-mark { display: inline-flex; background: white; border-radius: 18px; padding: 10px 16px; margin-bottom: 20px; }
.hero-mark img { height: 92px; width: auto; display: block; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; margin: 0 0 12px; }
.hero h1::before, .section h2::before, main.page h1::before {
  content: "";
  display: inline-block;
  width: 22px; height: 22px;
  margin-right: 10px;
  vertical-align: -2px;
  background:
    conic-gradient(from 200deg, #0f766e 0 42%, #2dd4bf 0 68%, #f59e0b 0 100%);
  border-radius: 7px 12px 6px 12px;
  box-shadow: 8px -6px 0 #ccfbf1;
}
.hero h1::before { background: conic-gradient(from 200deg, #fff 0 42%, #fde68a 0 68%, #fff 0 100%); box-shadow: 8px -6px 0 rgba(255,255,255,.35); }
.workshop h2::before, .story-film h2::before { content: none; display: none; margin: 0; box-shadow: none; }
.story-film { margin: 28px 0 8px; }
.story-film-stage, .story-film video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #115e59;
  color: white;
}
.story-film video { display: block; object-fit: cover; }
.story-film-stage {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  border: 2px dashed rgba(255,255,255,.65);
}
.story-film-stage p { margin: 0; max-width: 28rem; font-weight: 700; }
.story-note { max-width: 720px; }
.tagline { font-size: 1.25rem; margin: 0 0 18px; }
.lede { max-width: 680px; font-size: 1.05rem; }
.hero a { color: white; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 12px 18px; font-weight: 800; text-decoration: none;
  border: 0; cursor: pointer; font: inherit;
}
.btn-primary { background: var(--sea); color: white; }
.hero .btn-primary { background: white; color: var(--sea-dark); }
.btn-secondary { background: transparent; color: var(--sea-dark); border: 1px solid var(--sea); }
.hero .btn-secondary { color: white; border-color: rgba(255,255,255,.7); }
.section { padding: 48px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card, .panel {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
}
.card h3 { margin-top: 0; }
.workshop-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.workshop {
  min-width: 0;
  background: white; border: 1px solid var(--line); border-radius: 16px; padding: 10px 10px 12px;
  box-shadow: 0 8px 20px rgba(20, 33, 43, .05);
}
.workshop-media { position: relative; margin-bottom: 8px; }
.workshop-kicker {
  margin: 0 0 6px; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #60707a;
}
.workshop-status {
  position: absolute; top: 8px; right: 8px;
  background: #dcfce7; color: #166534; border-radius: 999px; padding: 3px 8px;
  font-size: .68rem; font-weight: 800; white-space: nowrap;
}
.workshop-media:not(:has(img)) .workshop-status { position: static; }
.workshop-status-full { background: #f3f4f6; color: #52616b; }
.workshop-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; }
.workshop-when { margin: 0 0 4px; color: #52616b; font-weight: 700; font-size: .78rem; }
.workshop h2 { margin: 0 0 4px; font-size: 1.02rem; line-height: 1.25; letter-spacing: -0.03em; }
.workshop-sub { margin: 0 0 6px; font-size: .86rem; font-weight: 800; line-height: 1.3; }
.workshop-summary {
  margin: 0; font-size: .82rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.workshop-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 8px 0; }
.workshop-tags li { background: #eef2f4; border-radius: 999px; padding: 3px 8px; font-weight: 700; font-size: .72rem; }
.teaching-note { margin: 14px 0 0; }
.help-launch {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  background: var(--sea); color: white; border: 0; border-radius: 999px;
  padding: 12px 18px; font: inherit; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 118, 110, .28);
}
.help-panel {
  position: fixed; right: 16px; bottom: 68px; z-index: 30;
  width: min(360px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow: auto;
  background: white; border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  box-shadow: 0 12px 32px rgba(20, 33, 43, .12);
}
.help-panel h2 { margin: 0; font-size: 1.15rem; }
.help-panel h2::before { content: none; display: none; }
.help-panel-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.help-turn { background: var(--paper); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.help-q { margin: 0 0 6px; font-weight: 800; }
.session-detail { max-width: 480px; }
.seat-btn {
  display: flex; justify-content: center; width: 100%; box-sizing: border-box;
  background: #111827; color: white; text-decoration: none; border-radius: 999px;
  padding: 9px 10px; font-weight: 800; font-size: .86rem;
}
.seat-btn-full { background: #e5e7eb; color: #52616b; }
.note-list { display: grid; gap: 12px; margin-top: 8px; }
.note { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin-top: 12px; }
.note-list .note { margin-top: 0; }
.note-meta { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
.note-name { margin: 0; font-weight: 800; }
.star-read { margin: 0 0 4px; letter-spacing: .08em; color: #b45309; }
.star-pick { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.star-pick label { margin: 0; font-weight: 700; }
.star-pick input { width: auto; }
.muted { color: var(--muted); }
.notice { background: #ecfeff; border: 1px solid #a5f3fc; padding: 12px 14px; border-radius: 12px; margin: 16px 0; }
.dev-banner { background: #fff7ed; color: var(--amber); padding: 8px 16px; font-weight: 700; }
label { display: block; font-weight: 700; margin: 14px 0 6px; }
input, textarea, select {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font: inherit;
}
textarea { min-height: 110px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; margin: 8px 0; }
.check input { width: auto; margin-top: 4px; }
.page { padding: 28px 0 48px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat strong { display: block; font-size: 1.4rem; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #ccfbf1; color: var(--sea-dark); border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: .85rem; white-space: nowrap; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.danger { color: var(--danger); }
.compass-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; }
@property --progress {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
.compass-dial {
  width: 220px; height: 220px; border-radius: 50%;
  background: conic-gradient(var(--sea) calc(var(--progress) * 1%), #d7e0e4 0);
  display: grid; place-items: center;
  transition: --progress 700ms ease;
}
.world-map { width: 100%; height: auto; display: block; margin-top: 12px; }
.world-map .ocean { fill: #e7eef0; }
.world-map .land { fill: #d5e4e2; }
.world-map .map-marker { fill: var(--sea); }
.world-map .map-count {
  fill: white; font-size: 16px; font-weight: 800;
  font-family: Manrope, sans-serif; text-anchor: middle; dominant-baseline: central;
}
.world-map a:hover .map-marker, .world-map a:focus .map-marker { fill: var(--sea-dark); }
.world-map a:focus { outline: none; }
.world-map a:focus .map-marker { stroke: var(--ink); stroke-width: 3; }
.share-card {
  margin-top: 22px; border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; background: white; display: grid; grid-template-columns: 88px 1fr;
  gap: 14px; align-items: center;
}
.share-card h2 { margin: 0 0 6px; font-size: 1.2rem; }
.compass-core {
  width: 158px; height: 158px; border-radius: 50%; background: white;
  display: grid; place-items: center; text-align: center; padding: 12px;
}
.compass-core strong { font-family: Sora, Manrope, sans-serif; font-size: 2.4rem; line-height: 1; }
.compass-core span { color: var(--muted); font-weight: 700; }
.trend { display: flex; align-items: flex-end; gap: 8px; height: 92px; margin-top: 18px; }
.trend-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.trend-bar { width: 100%; max-width: 28px; min-height: 4px; background: var(--sea); border-radius: 7px 7px 0 0; }
.trend small { color: var(--muted); font-size: .75rem; }
.impact-title { font-family: Sora, Manrope, sans-serif; font-size: 1.45rem; font-weight: 700; margin: 8px 0 10px; }
.impact h3 { margin-top: 28px; }
.milestones { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.milestones li { background: #e7eef0; color: var(--muted); border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: .85rem; }
.milestones .is-reached { background: #ccfbf1; color: var(--sea-dark); }
.milestones .is-next { background: var(--sea); color: white; }
.expert-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.expert-card { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.expert-id { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
.profile-id { grid-template-columns: 120px 1fr; margin-bottom: 14px; }
.profile-id h1 { margin: 0 0 4px; }
.profile-id .portrait { width: 120px; height: 120px; }
.expert-card h2, .expert-card h3 { margin: 0 0 4px; }
.expert-card p { margin: 0; }
.portrait { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; }
.portrait-large { width: 120px; height: 120px; margin-bottom: 12px; }
.portrait-fallback {
  display: grid; place-items: center; background: #ccfbf1; color: var(--sea-dark);
  font-family: Sora, Manrope, sans-serif; font-weight: 700; font-size: 1.4rem;
}
.quote { margin: 0 0 12px; }
.quote footer { margin-top: 10px; color: var(--muted); font-weight: 700; }
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 5;
  background: white; color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 800;
}
.skip:focus { top: 12px; }
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.step strong {
  width: 40px; height: 40px; border-radius: 50%; background: var(--sea); color: white;
  display: grid; place-items: center; font-family: Sora, Manrope, sans-serif;
}
.step p { margin: 0; }
.faq { display: grid; gap: 10px; }
.faq details { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { margin: 10px 0 0; }
fieldset { border: 0; margin: 18px 0 0; padding: 0; }
legend { font-weight: 800; }
.footer-inner nav { justify-content: flex-end; }
.filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 22px; }
.filter-actions { display: flex; gap: 12px; align-items: center; }
.member-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0 18px; }
.member-nav a { font-weight: 800; text-decoration: none; }
a.chip { text-decoration: none; }
#membership, #practice, #payments, #referral, #profile { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: no-preference) {
  .trend-bar { transform-origin: bottom; animation: bar-rise 600ms ease; }
  .map-marker { transform-box: fill-box; transform-origin: center; animation: marker-in 500ms ease both; }
}
@keyframes bar-rise { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
@keyframes marker-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .compass-dial, .trend-bar, .map-marker { transition: none; animation: none; }
}
@media (max-width: 980px) {
  .workshop-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .workshop-list { grid-template-columns: 1fr; }
}
.admin-shell {
  min-height: 100vh;
  display: flex;
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(56, 189, 248, 0.08), transparent 55%),
    #f4f7fb;
  color: #10233f;
}
.admin-shell-sidebar {
  width: 256px;
  flex: none;
  display: flex;
  flex-direction: column;
  background: #141c2b;
  color: #e8eef5;
  border-right: 1px solid #243044;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-shell-brand-wrap { padding: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.admin-shell-brand { display: flex; align-items: center; gap: 10px; color: white; text-decoration: none; font-weight: 700; }
.admin-shell-brand-mark {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: white;
  overflow: hidden;
  flex: none;
}
.admin-shell-brand-mark img { width: 28px; height: 28px; object-fit: contain; }
.admin-shell-brand-name, .admin-shell-brand-sub { display: block; line-height: 1.2; }
.admin-shell-brand-name { font-size: 15px; }
.admin-shell-brand-sub { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.04em; }
.admin-shell nav {
  display: block;
  flex: 1;
  overflow: auto;
  padding: 8px;
}
.admin-nav-section {
  padding: 16px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa8b8;
}
.admin-shell .admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  color: rgba(232, 238, 245, 0.88);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.admin-shell .admin-nav-link:hover { background: #1d2838; color: white; }
.admin-shell .admin-nav-link-active { background: #2f6fad; color: white; font-weight: 600; }
.admin-shell-logout { padding: 8px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.admin-shell-logout button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 0;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.admin-shell-logout button:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.admin-shell-main { flex: 1; min-width: 0; }
.admin-shell-main-inner { max-width: 72rem; padding: 32px; }
.admin-shell main.page { padding-top: 0; }
.admin-shell main.page h1::before { content: none; display: none; margin: 0; box-shadow: none; }
.admin-shell .wrap { width: 100%; max-width: none; margin: 0; }
.admin-login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f4f7fb;
  margin: 0;
}
.admin-login { width: min(420px, calc(100% - 32px)); }
.admin-login-brand { margin: 0; font-weight: 700; color: #141c2b; }
.admin-login-brand span { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #5b6b7c; }
@media (max-width: 800px) {
  .admin-shell { flex-direction: column; }
  .admin-shell-sidebar { width: 100%; height: auto; position: static; }
  .filters { grid-template-columns: 1fr; }
  .compass-layout { grid-template-columns: 1fr; }
  .compass-dial { margin: 0 auto; }
  .share-card { grid-template-columns: 1fr; }

  .split, .header-inner { grid-template-columns: 1fr; display: grid; }
  .header-inner { display: flex; flex-direction: column; align-items: flex-start; }
  .brand img, .hero-mark img { height: 56px; }
}
