@charset "UTF-8";

/* 한글과 영문 모두 Pretendard를 우선 적용해 글꼴을 통일합니다. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/Inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/Inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Pretendard Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/PretendardVariable.woff2") format("woff2");
}

:root {
  --font-ui: "Pretendard Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --content-width: 1440px;
  --navy: #0f172a;
  --cta: #ff3038;
  --cta-hover: #e52630;
  --ink: #101114;
  --muted: #58616e;
  --paper: #ffffff;
  --line: #e2e8f0;
  --accent: #0064ff;
  --accent-hover: #0052d6;
  --accent-soft: #edf4ff;
  --surface: #f9fafb;
  --error: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -.025em;
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
#app { display: flex; flex-direction: column; min-height: 100svh; background: var(--paper); }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }

.site-splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}
.site-splash-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: site-splash-in .45s ease-out both, site-splash-brand-in .45s cubic-bezier(.22, 1, .36, 1) both;
}
.site-splash ~ #app .landing {
  display: none;
}
.site-splash-name {
  color: #fff;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: 1.2;
}
.site-splash-en {
  margin-top: 8px;
  color: #c8961a;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .22em;
}
.site-splash.is-leaving {
  animation: site-splash-out .32s ease-in forwards;
  pointer-events: none;
}
.site-splash.is-leaving .site-splash-brand {
  animation: site-splash-brand-out .32s ease-in both;
}
@keyframes site-splash-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes site-splash-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes site-splash-brand-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes site-splash-brand-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .site-splash,
  .site-splash-brand,
  .site-splash.is-leaving,
  .site-splash.is-leaving .site-splash-brand {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
.landing {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #fff;
}

.landing h1 {
  margin: 0;
  font-size: clamp(27px, 4.2vw, 58px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.5;
  text-align: center;
}

.landing a { display: block; padding: 20px 0; color: var(--accent); }
.landing a:hover { color: var(--accent-hover); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #f2f4f6;
}
.header-inner {
  max-width: var(--content-width);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
}

.brand { color: var(--accent); font-size: 28px; font-weight: 700; letter-spacing: -.025em; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17px; }
nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; color: #4e5968; border-radius: 10px; }
nav a:hover { color: var(--accent-hover); background: var(--surface); }
nav a[aria-current="page"] { color: var(--accent-hover); background: var(--accent-soft); font-weight: 700; }

.wrap { flex: 1; width: 100%; max-width: var(--content-width); margin: auto; padding: 64px 32px 96px; }
.eyebrow { color: var(--accent-hover); font-size: 14px; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; margin: 0 0 14px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(32px, 4vw, 52px); font-weight: 650; letter-spacing: -.035em; line-height: 1.35; }
h2 { font-size: 28px; font-weight: 650; letter-spacing: -.025em; line-height: 1.45; }
.muted { color: var(--muted); }
.intro { max-width: 640px; margin-bottom: 40px; }
.intro > p:last-child,
.intro-copy > p:last-child { margin-bottom: 0; font-size: 17px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 600;
}

.product {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(25, 31, 40, .035);
}

.cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 3 / 4;
  padding: 34px;
  border-radius: 6px 16px 16px 6px;
  background: var(--accent);
  color: #fff;
  box-shadow: 8px 12px 24px rgba(15, 23, 42, .18);
}

.cover::before { content: ""; position: absolute; inset: 0 auto 0 13px; border-left: 1px solid rgba(255, 255, 255, .2); }
.cover-top { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: #eef2ff; }
.cover h2 { margin: 0; font-size: clamp(30px, 4vw, 42px); font-weight: 700; line-height: 1.45; color: #fff; }
.cover-bottom { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: 13px; color: #fff; }
.price { margin: 28px 0; font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.price span { margin-left: 6px; color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.product-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 0;
}
.product-buy .price { margin: 0; min-width: 0; }
.product-buy-btn {
  flex: 0 0 auto;
  min-height: calc(32px * 1.5);
  padding: calc(4px * 1.5) calc(12px * 1.5);
  font-size: calc(13px * 1.5);
  white-space: nowrap;
}
.product-buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: #fff;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}

.btn:hover { background: var(--accent-soft); color: var(--accent-hover); }
.btn.secondary { border-color: #0f172a; color: #0f172a; background: #fff; }
.btn.secondary:hover { background: #f8fafc; color: #0f172a; }
.btn:disabled { border-color: #cbd5e1; color: #94a3b8; background: #f8fafc; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.small { font-size: 13px; }

.notice {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f1f5f9;
  color: #405778;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.form-shell { max-width: 480px; margin: 0 auto; }
.form-shell .card > .btn { margin-top: 12px; }
.auth-split { display: flex; align-items: center; gap: 12px; margin: 20px 0 8px; color: var(--muted); font-size: 13px; }
.auth-split::before,
.auth-split::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-row { display: grid; gap: 8px; }
.social-row .btn { margin-top: 0; }
.account-page { display: grid; gap: 20px; }
.account-page > h1 { margin-bottom: 0; }
.account-page > .muted { margin-bottom: 4px; }
.account-page h2 { margin: 0 0 16px; font-size: 20px; }
.account-page .card .muted { margin-bottom: 18px; }
.account-details { display: grid; gap: 14px; margin: 0; }
.account-details div { display: grid; grid-template-columns: 88px 1fr; gap: 8px 16px; align-items: baseline; }
.account-details dt { color: var(--muted); font-weight: 650; }
.account-details dd { margin: 0; overflow-wrap: anywhere; }
.btn.danger { border-color: #d92d20; color: #d92d20; background: #fff; }
.btn.danger:hover { background: #fff5f5; color: #b42318; }
.account-danger { border-color: #f1d4d4; background: #fff8f8; }
@media (max-width: 480px) {
  .account-details div { grid-template-columns: 1fr; gap: 4px; }
}
.card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(25, 31, 40, .025);
}
label.field { display: block; margin-bottom: 22px; color: #333d4b; font-size: 14px; font-weight: 600; }
.field-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.45; }
input:not([type="checkbox"]):not([type="file"]),
select,
textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  box-sizing: border-box;
}
input::placeholder,
textarea::placeholder { color: #8b95a1; opacity: 1; }
input:not([type="checkbox"]):not([type="file"]):hover,
select:hover,
textarea:hover { border-color: #b0b8c1; }
input:not([type="checkbox"]):not([type="file"]):focus,
select:focus,
textarea:focus { outline: none; border-color: var(--accent); background-color: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] { border-color: var(--error); }
input[aria-invalid="true"]:focus,
select[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus { border-color: var(--error); box-shadow: 0 0 0 3px #fff0ee; }
textarea {
  min-height: 160px;
  line-height: 1.65;
  resize: vertical;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6.5 8 10.5 12 6.5' stroke='%23586674' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}

.checkbox { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0; color: var(--muted); font-size: 13px; }
input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.checkbox a, .text-link { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.full { width: 100%; }
.form-foot { margin: 24px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.form-foot a { margin-left: 5px; }
.feedback:empty { display: none; }
.feedback { margin-top: 20px; padding: 16px; border-radius: 12px; background: var(--accent-soft); color: #405778; font-size: 14px; overflow-wrap: anywhere; }
.feedback.error { background: #fff0ee; color: var(--error); }

.summary { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); align-items: start; gap: 28px; }
.row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid #f2f4f6; }
.row > :first-child { color: var(--muted); }
.row > :last-child { text-align: right; }
.payment-card { min-width: 0; }
.pay-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 16px 0 20px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4f6f8;
}
.pay-tab {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 11px 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.pay-tab[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
#payment-method, #agreement { min-width: 0; }
#agreement { margin-bottom: 16px; }
#pay-panel-nice #nice-payment-message { margin: 0 0 16px; }

.empty { padding: 64px 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); text-align: center; }
.empty-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); font-size: 28px; }
.empty .actions { justify-content: center; margin-top: 24px; }

.status { max-width: 640px; margin: 32px auto; text-align: center; }
.status h1 { font-size: clamp(27px, 4vw, 36px); }
.status .actions { justify-content: center; margin-top: 28px; }
.status .notice { text-align: left; }
.order-details { text-align: left; font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.order-details dt { color: var(--muted); flex-shrink: 0; }
.order-details dd { max-width: 70%; margin: 0; color: #333d4b; font-weight: 600; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 36px; }
.prose > p { color: var(--muted); }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--content-width);
  width: 100%;
  margin: auto;
  padding: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
footer a { display: inline-block; margin-left: 16px; color: #4e5968; }
footer a:hover, footer a:focus-visible { color: var(--accent-hover); }

@media (max-width: 767px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 20px; }
  .brand { width: fit-content; }
  nav { justify-content: space-between; gap: 4px; font-size: 13px; }
  nav a { padding: 8px 10px; }
  .wrap { padding: 40px 20px 64px; }
  .intro { margin-bottom: 28px; }
  .intro > p:last-child,
  .intro-copy > p:last-child { font-size: 15px; }
  .product { grid-template-columns: 1fr; gap: 36px; padding: 28px; border-radius: 20px; }
  .cover { width: 100%; max-width: 280px; margin: auto; }
  .summary { grid-template-columns: 1fr; gap: 20px; }
  .card { padding: 24px; }
  .status { margin: 12px auto; }
  footer { flex-direction: column; gap: 12px; padding: 28px 20px; }
  footer a:first-child { margin-left: 0; }
}

@media (max-width: 400px) {
  .landing { padding: 24px; }
  .header-inner { padding-right: 16px; padding-left: 16px; }
  nav a { padding-right: 8px; padding-left: 8px; }
  .wrap { padding-right: 16px; padding-left: 16px; }
  .product { padding: 24px; }
  .card { padding: 20px; }
  .notice { padding: 16px; }
  .actions .btn { flex: 1 1 140px; }
  .price span { display: block; margin-left: 0; }
  .product-buy { flex-wrap: wrap; }
  .product-buy-btn { margin-left: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  a, .btn { transition: color .2s ease-in-out, background-color .2s ease-in-out, border-color .2s ease-in-out; }
  input, select, textarea { transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out, background-color .2s ease-in-out; }
}

/* 전문가 소개와 강의 사이트 구성 */
.skip-link { position: fixed; z-index: 60; top: 10px; left: 16px; padding: 10px 16px; border-radius: 8px; background: var(--accent); color: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); color: #fff; }
.site-header .header-inner { flex-direction: row; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.site-logo { display: inline-flex; align-items: center; gap: 12px; min-width: 0; color: inherit; }
.site-logo:hover { color: inherit; }
.brand-mark { width: 40px; height: 48px; flex-shrink: 0; display: block; }
.brand-lockup { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.15; }
.brand-name { color: #0b1c3a; font-size: 22px; font-weight: 850; letter-spacing: -.04em; white-space: nowrap; }
.brand-en { margin-top: 3px; color: #c8961a; font-size: 10px; font-weight: 750; letter-spacing: .22em; white-space: nowrap; }
.brand-tag { margin-top: 4px; color: #66717f; font-size: 11px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.logo-divider { width: 1px; height: 19px; background: #d1d6db; }
.logo-specialty { font-size: 17px; font-weight: 500; color: #4e5968; }
.auth-links { display: flex; gap: 20px; align-items: center; flex-shrink: 0; font-size: 16px; color: var(--muted); }
.auth-links a { display: inline-flex; align-items: center; min-height: 32px; }
.auth-links a:last-child { color: #bb4b16; font-weight: 650; }
.auth-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.nav-bar { border-top: 1px solid #f2f4f6; }
.nav-inner { max-width: var(--content-width); margin: auto; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.main-nav { flex-wrap: nowrap; gap: 16px; min-width: 0; }
.main-nav a, .main-nav a:last-child { background: transparent; color: #4e5968; font-weight: 600; padding: 10px 14px; white-space: nowrap; }
.main-nav a:first-child { padding-left: 0; }
.main-nav a:hover { color: var(--accent-hover); }
.main-nav a[aria-current="page"] { color: var(--accent-hover); font-weight: 650; }
.classroom-link { min-height: 48px; flex-shrink: 0; padding: 12px 24px; font-size: 16px; gap: 14px; }
.homepage { flex: 1; width: 100%; }
.hero-section { background: linear-gradient(115deg, #fff 12%, #f6f9ff 100%); border-bottom: 1px solid #f2f4f6; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; max-width: var(--content-width); min-height: 600px; margin: auto; padding: 48px 32px; }
.hero-kicker { margin-bottom: 24px; color: #64748b; font-size: 18px; font-weight: 500; }
.hero-copy h1 { font-size: clamp(40px, 4vw, 64px); line-height: 1.22; font-weight: 800; letter-spacing: -.04em; margin-bottom: 20px; }
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.hero-signature { margin-bottom: 14px; color: #4e5968; font-size: 18px; font-weight: 500; }
.hero-description { color: var(--muted); line-height: 1.8; font-size: 21px; margin-bottom: 32px; }
.hero-actions .btn { min-width: 0; }
.hero-topics { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; color: #8b95a1; font-size: 15px; }
.hero-topics span { display: inline-flex; align-items: center; gap: 6px; }
.hero-topics span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.expert-profile { position: relative; isolation: isolate; width: 100%; max-width: 520px; min-height: 500px; margin: 0; justify-self: end; }
.portrait-backdrop { position: absolute; z-index: -1; width: 100%; aspect-ratio: 1; bottom: 10px; border-radius: 50%; background: linear-gradient(145deg, #f1f5f9, #e2e8f0); }
.profile-label { position: absolute; top: 12px; right: 10px; padding: 9px 14px; border: 1px solid #e2e8f0; border-radius: 40px; background: rgba(255,255,255,.8); font-size: 10px; color: #526581; letter-spacing: .12em; font-weight: 600; }
.profile-silhouette { position: absolute; bottom: 0; left: 4%; width: 92%; height: 100%; }
.profile-photo { position: absolute; bottom: 0; left: 4%; width: 92%; height: 100%; object-fit: cover; object-position: 30% center; border-radius: 20px; }
.has-profile-photo .profile-label { z-index: 1; }
.profile-caption { position: absolute; left: 16px; bottom: 14px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: rgba(255,255,255,.95); border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 6px 24px rgba(56,99,168,.06); }
.profile-caption strong { display: block; font-size: 14px; font-weight: 650; }
.profile-caption small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.profile-caption-icon { display: grid; place-items: center; width: 38px; height: 38px; padding: 6px; border-radius: 12px; background: var(--accent-soft); overflow: hidden; }
.profile-caption-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-section { max-width: var(--content-width); padding: 64px 32px 0; margin: auto; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { font-size: 36px; margin-bottom: 10px; }
.section-heading p:last-child { margin-bottom: 0; }
.section-link { color: #4e5968; font-size: 16px; white-space: nowrap; padding-bottom: 3px; }
.section-link span { margin-left: 8px; }
.course-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.course-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 3px 12px rgba(25,31,40,.03); color: var(--ink); }
.course-card:hover { color: var(--ink); border-color: #a5b4cf; box-shadow: 0 12px 24px rgba(15,23,42,.08); }
.course-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 190px; overflow: hidden; color: #2c4777; background: #edf1f7; }
.course-art::after { content: ""; position: absolute; width: 150px; height: 150px; top: -70px; right: -60px; border: 22px solid rgba(255,255,255,.5); border-radius: 50%; }
.course-art-2 { background: #e7edf5; color: #405778; }
.course-art-3 { background: #edf0f6; color: #4f607b; }
.course-art-4 { background: #e8f0f2; color: #497080; }
.course-icon { width: 68px; height: 68px; }
.course-number { position: absolute; top: 15px; left: 18px; color: inherit; opacity: .75; font-size: 11px; font-weight: 600; letter-spacing: .05em; }
.course-art-caption { position: absolute; bottom: 14px; font-size: 10px; letter-spacing: .02em; opacity: .8; }
.course-body { display: flex; flex: 1; flex-direction: column; padding: 28px 24px; }
.course-category { color: var(--accent-hover); margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.course-body h3 { margin: 0 0 12px; font-size: 23px; line-height: 1.4; letter-spacing: -.03em; font-weight: 750; }
.course-description { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 24px; }
.course-author { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 15px; color: #4e5968; }
.author-avatar { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #f2f4f6; color: #64748b; font-size: 11px; }
.course-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.course-tags span { padding: 3px 7px; border-radius: 5px; background: #f2f4f6; color: #64748b; font-size: 12px; }
.course-tags .pending-tag { background: #edf1f7; color: #526581; }
.pdf-shortcut { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; font-size: 16px; color: var(--muted); }
.pdf-shortcut a { color: var(--accent-hover); font-weight: 600; }
.video-section { padding-top: 48px; padding-bottom: 64px; }
.video-banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px; border-radius: 22px; background: linear-gradient(115deg, #edf1f7, #eef2ff); }
.video-copy h2 { font-size: 32px; margin-bottom: 12px; }
.video-copy > p:last-child { margin-bottom: 0; font-size: 16px; }
.video-link {
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  min-height: 0;
  padding: 16px 18px 14px;
  gap: 8px;
  font-size: 16px;
  white-space: nowrap;
}
.video-link-icon { display: block; width: 100%; height: auto; object-fit: contain; }
.video-link-label { display: block; text-align: center; line-height: 1.3; }
.video-link:disabled .video-link-icon { filter: grayscale(1); opacity: .55; }
.video-action { display: flex; flex-direction: column; flex-shrink: 0; gap: 10px; align-items: center; }
.site-footer { display: block; max-width: none; padding: 0; background: #f9fafb; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; max-width: var(--content-width); padding: 46px 32px 34px; margin: auto; }
.site-footer a { margin: 0; }
.footer-brand .brand { font-size: 30px; }
.footer-brand p { margin: 8px 0 0; font-size: 15px; }
.footer-brand .footer-tagline { margin-top: 20px; color: #8b95a1; }
.footer-column h2 { margin-bottom: 16px; color: #333d4b; font-size: 16px; letter-spacing: -.01em; font-weight: 650; }
.footer-column a { display: block; width: fit-content; margin-bottom: 10px; font-size: 15px; }
.footer-contact p { font-size: 14px; line-height: 1.8; }
.footer-contact .footer-phone { font-size: 24px; line-height: 1.3; font-weight: 650; color: #333d4b; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.sample-label { margin-left: 4px; padding: 2px 5px; font-size: 9px; font-weight: 400; color: #8b95a1; border: 1px solid var(--line); border-radius: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; max-width: calc(var(--content-width) - 64px); width: calc(100% - 64px); margin: auto; padding: 24px 0 10px; border-top: 1px solid var(--line); font-size: 12px; color: #8b95a1; line-height: 1.9; }
.footer-bottom p { margin-bottom: 0; }
.footer-note { max-width: var(--content-width); margin: auto; padding: 0 32px 28px; font-size: 12px; color: #8b95a1; }
.accent-text { color: var(--accent); }
.about-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.about-layout .expert-profile { justify-self: start; }
.about-page {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 56px 64px;
  align-items: stretch;
}
.about-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-portrait {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 10px;
  width: 100%;
  margin: 0;
}
.about-portrait-frame {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 420;
  overflow: hidden;
  background: #e8edf3;
}
.about-photo,
.about-silhouette {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-portrait.has-profile-photo .about-silhouette { display: none; }
.about-photo-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin: 0;
  line-height: 1.4;
  text-align: right;
}
.about-photo-specialty {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.about-photo-credit {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}
.about-career {
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: #fff;
}
.about-career h2 {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .16em;
  font-weight: 750;
  text-transform: uppercase;
}
.about-career ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-career li {
  position: relative;
  margin: 0;
  padding-left: 14px;
  color: #4e5968;
  font-size: 15px;
  line-height: 1.7;
}
.about-career li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #8b95a1;
}
.about-copy {
  display: flex;
  flex-direction: column;
}
.about-copy .about-quote {
  margin: 0 0 28px;
  color: var(--ink);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.45;
}
.about-copy > p:not(.about-quote) {
  margin: 0 0 18px;
  color: #4e5968;
  font-size: 16px;
  line-height: 1.9;
}
.about-signoff {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 36px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-align: right;
  line-height: 1.5;
}
.about-signoff p { margin: 0; }
.about-signoff-date { margin-bottom: 14px; }
.about-signoff-role { margin-bottom: 6px; }
.about-signoff-name { font-size: 14px; font-weight: 650; }
.about-signature {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .04em;
}
.expert-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.expert-topics span { padding: 7px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-hover); font-size: 12px; }
.course-details { margin-top: 40px; }
.course-detail { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; scroll-margin-top: 24px; }
.course-detail summary { display: flex; align-items: center; gap: 14px; padding: 20px 24px; list-style: none; cursor: pointer; font-size: 14px; }
.course-detail summary::-webkit-details-marker { display: none; }
.course-detail summary > span:first-child:not(.detail-toggle) { color: var(--muted); font-size: 12px; }
.course-detail summary strong { font-weight: 600; }
.detail-toggle { color: var(--accent); margin-left: auto; font-size: 20px; }
.course-detail[open] .detail-toggle { transform: rotate(45deg); }
.course-detail-body { padding: 0 24px 24px; font-size: 14px; line-height: 1.8; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-icon { width: 48px; height: 48px; color: var(--accent); margin-bottom: 20px; }
.service-grid .badge { margin-bottom: 0; }
.service-grid .card h2 { margin-bottom: 10px; font-size: 22px; }
.service-grid .card .muted { margin: 0; line-height: 1.7; }
.consulting-page { display: grid; gap: 32px; }
.consulting-page > .service-grid { margin: 0; }
.consulting-form h2 { margin: 0 0 8px; font-size: 24px; }
.consulting-form > .muted { margin: 0 0 28px; line-height: 1.6; }
.consulting-form .btn { margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.stack-list { display: grid; gap: 24px; }
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 36px 0 8px;
}
.pager-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pager-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 4px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.pager-page:hover { background: #f8fafc; color: #0f172a; }
.pager-page.is-current {
  background: #0f172a;
  color: #fff;
}
.pager-nav {
  border-color: #0f172a;
  color: #0f172a;
}
.pager-nav:hover {
  background: #f8fafc;
  color: #0f172a;
}
.pager-nav[aria-disabled="true"] {
  border-color: #cbd5e1;
  color: #94a3b8;
  background: #f8fafc;
  cursor: not-allowed;
}
.pager-gap { color: var(--muted); padding: 0 4px; }
.search-hit {
  background: #ffe566;
  color: inherit;
  padding: 0 .12em;
}
.classroom-block { margin-top: 48px; }
.classroom-block:first-of-type { margin-top: 28px; }
.classroom-course { scroll-margin-top: 28px; }
.classroom-course h2 { margin-bottom: 8px; font-size: 22px; }
.classroom-course > .muted { margin-bottom: 16px; }
.classroom-course-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.classroom-status { color: var(--muted); font-size: 14px; font-weight: 700; }
.lesson-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 4px 0 20px;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}
.lesson-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-video-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  line-height: 1.6;
}
.support-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 40px; align-items: start; }
.support-phone { font-size: 30px; font-variant-numeric: tabular-nums; }
.faq-list > h2 { font-size: 20px; margin-bottom: 20px; }

@media (max-width: 1050px) {
  .main-nav { gap: 4px; font-size: 15px; }
  .main-nav a, .main-nav a:last-child { padding-right: 8px; padding-left: 8px; }
  .hero-inner { gap: 28px; }
  .expert-profile { min-height: 410px; }
  .hero-copy h1 { font-size: 38px; }
  .course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .video-banner { padding: 32px; }
  .video-copy h2 { font-size: 21px; }
  .footer-grid { gap: 24px; }
  .footer-bottom { margin-right: 32px; margin-left: 32px; }
}
@media (max-width: 767px) {
  .site-header .header-inner { padding: 18px 20px; gap: 12px; }
  body { font-size: 16px; }
  .site-logo { gap: 10px; }
  .brand { font-size: 24px; }
  .logo-specialty { font-size: 11px; }
  .auth-links { gap: 12px; font-size: 12px; }
  .nav-inner { flex-wrap: wrap; gap: 10px; padding: 10px 20px 14px; }
  .main-nav { width: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: thin; gap: 8px; }
  .main-nav a, .main-nav a:last-child { padding: 8px; font-size: 12px; }
  .main-nav a:first-child { padding-left: 0; }
  .classroom-link { margin-left: auto; min-height: 38px; padding: 8px 14px; font-size: 12px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; padding: 44px 24px 28px; }
  .hero-copy h1 { font-size: clamp(30px,6vw,42px); }
  .hero-kicker { font-size: 12px; margin-bottom: 16px; }
  .hero-signature { font-size: 12px; }
  .hero-description { font-size: 15px; }
  .hero-topics { margin-top: 22px; }
  .expert-profile { max-width: 320px; min-height: 320px; justify-self: center; }
  .hero-actions .btn { min-width: 0; }
  .home-section { padding: 44px 20px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 24px; }
  .section-heading h2 { font-size: 24px; }
  .section-heading .muted { font-size: 13px; }
  .video-section { padding-bottom: 44px; }
  .video-banner { flex-direction: column; align-items: stretch; gap: 24px; padding: 28px 24px; }
  .video-copy h2 { font-size: 21px; }
  .video-action { align-self: center; }
  .video-link { width: max-content; white-space: nowrap; }
  .footer-shortcuts { display: none; }
  .about-layout { grid-template-columns: 1fr; gap: 28px; }
  .about-layout .expert-profile { justify-self: center; }
  .about-page { grid-template-columns: 1fr; gap: 28px; }
  .about-copy .about-quote { font-size: 22px; }
  .support-layout { grid-template-columns: 1fr; gap: 32px; }
  .course-detail summary { padding: 18px; flex-wrap: wrap; gap: 8px; }
  .course-detail-body { padding: 0 18px 20px; }
}
@media (max-width: 600px) {
  .logo-specialty, .logo-divider, .brand-tag { display: none; }
  .brand-mark { width: 34px; height: 40px; }
  .brand-name { font-size: 18px; }
  .course-grid { grid-template-columns: 1fr; gap: 20px; }
  .course-art { min-height: 170px; }
  .course-body { padding: 22px 24px; }
  .service-grid,
  .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .course-card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
  .course-card:hover { transform: translateY(-4px); }
}

/* 참고 화면의 화이트·블루와 굵은 글꼴을 적용한 공통 테마 */
.brand { color: var(--ink); font-weight: 850; letter-spacing: -.05em; }
.brand-dot { color: var(--accent); }
.site-header { border-bottom: 1px solid var(--line); }
.site-header.is-stuck { box-shadow: 0 8px 20px rgba(15, 23, 42, .06); }
.site-header.is-following { animation: header-follow .4s cubic-bezier(.22, 1, .36, 1); }
@keyframes header-follow {
  from { transform: translateY(-10px); }
  to { transform: translateY(0); }
}
.site-header .header-inner { max-width: 1600px; min-height: 88px; gap: 30px; padding: 16px 32px; }
.site-logo { flex-direction: row; align-items: center; flex-shrink: 0; gap: 12px; line-height: 1.15; }
.site-logo .brand { font-size: 30px; }
.footer-brand .site-logo { align-items: center; }
.footer-brand .brand-mark { width: 46px; height: 54px; }
.footer-brand .brand-name { font-size: 24px; }
.logo-specialty { color: #374151; font-size: 12px; font-weight: 650; margin-top: 5px; }
.main-nav { flex: 1; justify-content: center; gap: 12px; font-size: 16px; }
.main-nav a, .main-nav a:last-child { padding: 10px 8px; color: var(--ink); background: transparent; font-weight: 750; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: var(--accent); }
.auth-links { gap: 8px; font-size: 16px; font-weight: 750; }
.auth-links a { justify-content: center; min-width: 0; min-height: 32px; padding: 4px 12px; border: 1px solid #0f172a; border-radius: 4px; background: #fff; color: #0f172a; font-size: 13px; font-weight: 650; }
.auth-links a:hover { background: #f8fafc; color: #0f172a; }
.auth-links a:last-child { color: var(--accent); border-color: var(--accent); background: #fff; font-weight: 650; }
.auth-links a:last-child:hover { background: var(--accent-soft); color: var(--accent-hover); }
.auth-links .auth-name { display: inline-flex; align-items: center; max-width: 160px; min-height: 48px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-links .auth-avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: #e8edf3; color: var(--ink); font-size: 14px; font-weight: 750; overflow: hidden; object-fit: cover; }
.auth-links img.auth-avatar { background: #d7dee8; }
.auth-links button.auth-logout { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 32px; padding: 4px 12px; border: 1px solid #d92d20; border-radius: 4px; background: #fff; color: #d92d20; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.auth-links button.auth-logout:hover { background: #fff5f5; color: #b42318; }
.auth-links.is-signed-in a:last-child,
.auth-links.is-signed-in button.auth-logout { min-height: 32px; }
.landing { background: var(--navy); color: #fff; }
.landing a, .landing a:hover { color: #fff; }
.hero-section { overflow: hidden; background: radial-gradient(ellipse at 70% 20%, #253c58, #111c2c 65%); color: #fff; border-bottom: 0; }
.hero-inner { min-height: 560px; padding-top: 40px; padding-bottom: 40px; gap: 64px; }
.hero-copy h1 { font-size: clamp(40px, 3.6vw, 58px); font-weight: 850; line-height: 1.22; letter-spacing: -.05em; }
.hero-copy h1 em { color: #fff; }
.hero-kicker { color: #c4d4e8; font-size: 18px; font-weight: 650; }
.hero-signature { color: #fff; font-weight: 750; }
.hero-description { color: #d7e0eb; font-size: 20px; }
.hero-topics { color: #d7e0eb; }
.hero-actions { gap: 14px; }
.hero-actions .btn { min-width: 0; }
.hero-section :focus-visible { outline-color: #fff; }
.hero-section .expert-profile { min-height: 480px; max-width: 460px; }
.hero-section .portrait-backdrop { background: #ffffff0a; }
.profile-photo { object-position: 50% 24%; border-radius: 12px; }
.hero-section .profile-label { color: #fff; border-color: #ffffff40; background: #18283ce6; }
.profile-caption { color: var(--ink); border-radius: 10px; box-shadow: 0 8px 24px #0f172a16; }
.profile-caption strong { font-size: 16px; font-weight: 750; }
.profile-caption small { font-size: 12px; }
.profile-caption-icon { background: var(--accent-soft); color: var(--accent); }
.home-section { padding-top: 72px; }
.section-heading h2 { font-size: 36px; font-weight: 800; letter-spacing: -.04em; }
.section-heading .muted { color: #58616e; font-size: 17px; }
.section-link { color: var(--ink); font-weight: 700; }
.eyebrow { color: var(--accent); font-weight: 750; }
.course-card { border-radius: 12px; box-shadow: 0 4px 16px #10182805; }
.course-art { background: #edf4ff; color: #235baf; }
.course-art-2 { background: #f0f3f8; color: #334b70; }
.course-art-3 { background: #eef3f9; color: #3b5680; }
.course-art-4 { background: #edf6f7; color: #347079; }
.course-art-caption { font-size: 12px; opacity: 1; }
.course-category { color: #24549a; font-weight: 750; }
.course-body h3 { color: var(--ink); font-weight: 800; }
.course-description { color: #58616e; }
.course-author { color: #374151; font-weight: 600; }
.course-tags span { border-radius: 4px; background: #f0f3f7; color: #4b5563; }
.video-section { padding-top: 48px; padding-bottom: 72px; }
.video-banner { border-radius: 12px; border: 1px solid #dce8fa; background: #f0f6ff; padding: 44px; }
.video-copy h2 { font-weight: 800; }
.video-link:disabled { border-color: #cbd5e1; color: #94a3b8; background: #f8fafc; }
.card, .empty, .product { border-radius: 12px; box-shadow: 0 6px 24px #10182805; }
input:not([type="checkbox"]):not([type="file"]),
select,
textarea { font-size: 16px; border-radius: 8px; background-color: #f8f9fb; }
label.field { font-size: 16px; color: var(--ink); }
.notice { border-radius: 8px; background: #f5f7fa; color: #44546b; }
.intro { max-width: 860px; }
.intro-with-back {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 24px;
  max-width: none;
}
.intro-with-back .intro-copy { max-width: 860px; }
.intro-with-back .page-back {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  white-space: nowrap;
}
.page-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 28px;
}
.page-back {
  white-space: nowrap;
  border-color: #0f172a;
  color: #0f172a;
}
.page-back:hover {
  background: #f8fafc;
  color: #0f172a;
}
.page-return { margin-top: 24px; }
.intro + .btn { margin-top: 8px; }
.empty > .btn { margin-top: 16px; }
@media (max-width: 767px) {
  .wrap:has(.intro-with-back),
  .wrap:has(.page-toolbar) { padding-top: 16px; }
  .intro-with-back {
    grid-template-columns: 1fr;
    row-gap: 12px;
    margin-bottom: 24px;
  }
  .intro-with-back .page-back {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
  }
  .intro-with-back .intro-copy { grid-column: 1; grid-row: 2; }
  .page-toolbar { margin: 0 0 16px; }
}
h1, h2 { font-weight: 800; }
#payment-button:not(:disabled) { background: #fff; color: var(--accent); }
.site-footer { background: #f6f7f9; color: #58616e; border-color: #e5e7eb; }
.footer-brand .brand { color: var(--ink); }
.footer-column h2, .footer-contact .footer-phone { color: var(--ink); font-weight: 800; }
.footer-column a { color: #424b57; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { border-color: #dfe3e8; color: #58616e; }
.footer-note, .footer-brand .footer-tagline { color: #66717f; }
.sample-label { border-color: #cbd2dc; color: #66717f; }
@media (max-width: 1279px) {
  .site-header .header-inner { flex-wrap: wrap; gap: 14px; padding: 16px 28px 10px; }
  .auth-links { margin-left: auto; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 16px; overflow-x: auto; }
  .main-nav a, .main-nav a:last-child { flex-shrink: 0; }
}
@media (max-width: 1050px) {
  .hero-inner { gap: 28px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-section .expert-profile { min-height: 410px; }
}
@media (max-width: 767px) {
  .site-header .header-inner { min-height: 0; gap: 14px; padding: 16px 20px 8px; }
  .site-logo .brand { font-size: 27px; }
  .logo-specialty { display: block; font-size: 10px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 36px; height: 42px; }
  .auth-links { gap: 6px; font-size: 13px; }
  .auth-links a { min-width: 0; min-height: 32px; padding: 4px 10px; }
  .main-nav { width: 100%; gap: 14px; }
  .main-nav a, .main-nav a:last-child { padding: 10px 0; font-size: 14px; }
  .hero-inner { padding: 44px 24px 32px; gap: 32px; }
  .hero-copy h1 { font-size: clamp(30px, 6.5vw, 42px); }
  .hero-kicker { font-size: 14px; }
  .hero-description { font-size: 17px; }
  .hero-actions .btn { min-width: 0; }
  .hero-section .expert-profile { max-width: 340px; min-height: 350px; }
  .hero-topics { font-size: 13px; }
  .home-section { padding-top: 44px; }
  .section-heading h2 { font-size: 28px; }
  .section-heading .muted { font-size: 16px; }
  .video-section { padding-bottom: 44px; }
  .video-banner { padding: 28px 24px; }
  .video-copy h2 { font-size: 25px; }
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    padding: 10px 16px 6px;
    gap: 8px 14px;
  }
  .site-footer .footer-brand { grid-column: 1 / -1; }
  .site-footer .footer-brand .site-logo { gap: 6px; }
  .site-footer .footer-brand .brand-mark { width: 20px; height: 24px; }
  .site-footer .footer-brand .brand-lockup { line-height: 1.05; }
  .site-footer .footer-brand .brand-name { font-size: 13px; }
  .site-footer .footer-brand .brand-en { margin-top: 0; font-size: 7px; letter-spacing: .14em; }
  .site-footer .footer-brand .brand-tag { display: none; }
  .site-footer .footer-column h2 { margin: 0 0 3px; font-size: 11px; font-weight: 750; }
  .site-footer .footer-column a { margin-bottom: 1px; font-size: 11px; line-height: 1.25; }
  .site-footer .footer-contact p { margin: 0; font-size: 10px; line-height: 1.25; }
  .site-footer .footer-contact .footer-phone { margin: 0 0 1px; font-size: 13px; line-height: 1.15; font-weight: 750; }
  .site-footer .footer-bottom {
    width: auto;
    flex-direction: column;
    gap: 1px;
    margin: 0 16px;
    padding: 6px 0 8px;
    font-size: 10px;
    line-height: 1.3;
  }
  .site-footer .footer-note { padding: 0 16px 8px; font-size: 10px; }
}
@media (max-width: 360px) {
  .site-header .header-inner { padding-left: 16px; padding-right: 16px; }
  .auth-links a { min-width: 0; padding: 4px 10px; }
}

.auth-links.is-signed-in {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  font-weight: 650;
}
.auth-links.is-signed-in .auth-admin {
  min-width: 0;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}
.auth-links.is-signed-in .auth-admin:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.auth-menu { position: relative; }
.auth-avatar-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.auth-avatar-button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 4px #edf4ff;
}
.auth-avatar-button:active {
  transform: scale(.9);
  box-shadow: 0 0 0 3px #dbeafe;
}
.auth-avatar-button[aria-expanded="true"] {
  box-shadow: 0 0 0 4px #dbeafe;
}
.auth-links.is-signed-in .auth-avatar,
.auth-links.is-signed-in img.auth-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  pointer-events: none;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e8edf3;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  overflow: hidden;
  object-fit: cover;
}
.auth-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 188px;
  padding: 6px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .12);
}
.auth-links.is-signed-in .auth-menu-panel a,
.auth-links.is-signed-in .auth-menu-panel button,
.auth-links.is-signed-in .auth-menu-panel .auth-logout {
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.auth-links.is-signed-in .auth-menu-panel a:hover,
.auth-links.is-signed-in .auth-menu-panel button:hover {
  background: #f5f7fa;
  color: var(--ink);
}
.auth-links.is-signed-in .auth-menu-panel .auth-logout {
  color: #d92d20;
}
.auth-links.is-signed-in .auth-menu-panel .auth-logout:hover {
  background: #fff5f5;
  color: #b42318;
}
@media (max-width: 767px) {
  .auth-links.is-signed-in { gap: 8px; }
  .auth-links.is-signed-in .auth-admin { min-height: 32px; padding: 4px 12px; font-size: 13px; }
  .auth-avatar-button { width: 36px; height: 36px; }
  .auth-links.is-signed-in .auth-avatar,
  .auth-links.is-signed-in img.auth-avatar { width: 32px; height: 32px; min-width: 32px; min-height: 32px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-avatar-button { transition: none; }
  .auth-avatar-button:hover,
  .auth-avatar-button:active { transform: none; }
  .admin-body { transition: none; }
  .admin-body.is-leaving-forward,
  .admin-body.is-leaving-back,
  .admin-body.is-entering-forward,
  .admin-body.is-entering-back { opacity: 1; transform: none; }
  .admin-busy-gear { animation: none; }
  .notice-modals,
  .notice-modals.is-leaving,
  .notice-modal,
  .notice-modal.is-leaving { animation: none; transition: none; }
  .site-header.is-following { animation: none; }
}

html.admin-boot,
html.admin-boot body { background: #fff; }
html.admin-boot .landing,
html.admin-boot .site-splash { display: none !important; }

.admin-busy {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1e293b;
  box-shadow: none;
  pointer-events: auto;
  cursor: wait;
}
.admin-busy[hidden] { display: none; }
.admin-busy-gear {
  display: block;
  font-size: 56px;
  line-height: 1;
  animation: admin-busy-spin .9s linear infinite;
}
@keyframes admin-busy-spin {
  to { transform: rotate(360deg); }
}
html.is-admin-busy .admin-app .btn,
html.is-admin-busy .admin-app button,
html.is-admin-busy .admin-login button { pointer-events: none; }

.admin-login { max-width: 440px; margin: 72px auto; padding: 0 24px 64px; }
.admin-login h1 { margin: 8px 0 10px; font-size: 34px; letter-spacing: -.04em; }
.admin-app {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100svh;
  background: #fff;
}
.admin-side {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: #0f172a;
  color: #fff;
  padding: 24px 16px;
}
.admin-nav-wrap { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.admin-nav { display: grid; gap: 4px; align-content: start; }
.admin-nav-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid #ffffff1f; }
.admin-side a,
.admin-side nav a,
.admin-side nav a:last-child {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  background: transparent;
  color: #d7e0eb;
  font-size: 15px;
  font-weight: 650;
}
.admin-side a:hover,
.admin-side nav a:hover,
.admin-side nav a:last-child:hover {
  color: #fff;
  background: #ffffff14;
  font-weight: 650;
}
.admin-side a[aria-current="page"],
.admin-side nav a[aria-current="page"],
.admin-side nav a:last-child[aria-current="page"] {
  color: #fff;
  background: #1d4ed8;
  font-weight: 650;
}
.admin-side a.admin-brand,
.admin-side a.admin-brand:last-child {
  margin: 0 12px 24px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
}
.admin-side a.admin-brand:hover,
.admin-side a.admin-brand:last-child:hover { color: #bfdbfe; background: none; }
.admin-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; overflow-x: hidden; }
.admin-body {
  flex: 1;
  min-height: 0;
  padding: 24px 28px 48px;
  transition: opacity .24s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
}
.admin-body.is-home {
  display: flex;
  padding: 0;
  background: #fff;
}
.admin-home {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 24px;
  background: #fff;
}
.admin-home-name {
  margin: 0;
  color: #0f172a;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -.05em;
  text-align: center;
  line-height: 1.15;
  word-break: keep-all;
}
.admin-body.is-leaving-forward { opacity: 0; transform: translateX(-28px); }
.admin-body.is-leaving-back { opacity: 0; transform: translateX(28px); }
.admin-body.is-entering-forward { opacity: 0; transform: translateX(28px); }
.admin-body.is-entering-back { opacity: 0; transform: translateX(-28px); }
.admin-body.is-ready { opacity: 1; transform: none; }
.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 16px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 3;
}
.admin-top h1 { margin: 0; font-size: 22px; min-width: 0; }
.admin-user { display: flex; align-items: center; gap: 8px; color: #334155; font-size: 14px; font-weight: 650; flex-wrap: wrap; justify-content: flex-end; }
.admin-user-name { padding: 0 4px; }
.admin-app .btn,
.admin-login .btn,
.admin-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
}
.admin-app .btn,
.admin-login .btn {
  border: 1px solid var(--accent);
  color: var(--accent);
}
.admin-app .btn:hover,
.admin-login .btn:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.admin-app .btn.secondary,
.admin-login .btn.secondary,
.admin-app .btn.admin-btn-back {
  border-color: #0f172a;
  color: #0f172a;
  background: #fff;
}
.admin-app .btn.secondary:hover,
.admin-login .btn.secondary:hover,
.admin-app .btn.admin-btn-back:hover {
  background: #f8fafc;
  color: #0f172a;
}
.admin-app .btn.admin-btn-danger {
  border-color: #d92d20;
  color: #d92d20;
  background: #fff;
}
.admin-app .btn.admin-btn-danger:hover {
  background: #fff5f5;
  color: #b42318;
}
.admin-chip {
  border: 1px solid #0f172a;
  color: #0f172a;
}
.admin-chip:hover { background: #f8fafc; color: #0f172a; }
.admin-chip-logout {
  border-color: #d92d20;
  color: #d92d20;
  background: #fff;
}
.admin-chip-logout:hover { background: #fff5f5; color: #b42318; }
.admin-back { margin: 0 0 16px; }
.admin-search {
  margin: 0 0 16px;
  padding: 14px 18px 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.admin-search legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.admin-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-search-row input[type="search"] {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  margin-top: 0;
}
.admin-search-row .btn { margin-left: auto; flex-shrink: 0; }
.admin-pager .pager { margin: 16px 0 18px; }
.admin-app .btn.pager-nav,
.admin-app .pager-nav {
  border-color: #0f172a;
  color: #0f172a;
  background: #fff;
}
.admin-app .btn.pager-nav:hover,
.admin-app .pager-nav:hover {
  background: #f8fafc;
  color: #0f172a;
}
.admin-app .btn.pager-nav[aria-disabled="true"],
.admin-app .pager-nav[aria-disabled="true"] {
  border-color: #cbd5e1;
  color: #94a3b8;
  background: #f8fafc;
}
.admin-app .pager-page { color: #0f172a; }
.admin-app .pager-page:hover { background: #f8fafc; color: #0f172a; }
.admin-app .pager-page.is-current { background: #0f172a; color: #fff; }
.admin-row-link { cursor: pointer; }
.admin-row-link:hover td { background: #f8fafc; }
.admin-row-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin-bottom: 20px; }
.admin-stats article {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.admin-chart-panel { margin-bottom: 20px; }
.admin-chart {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 180px;
  padding: 12px 16px 14px;
}
.admin-chart-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.admin-chart-value { color: var(--muted); font-size: 11px; font-weight: 700; }
.admin-chart-plot {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.admin-chart-fill {
  width: 70%;
  max-width: 28px;
  min-height: 4px;
  border-radius: 4px 4px 0 0;
  background: #1d4ed8;
}
.admin-chart-label { color: var(--muted); font-size: 10px; white-space: nowrap; }
.admin-stats strong { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.admin-stats span { color: var(--muted); font-size: 13px; font-weight: 650; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.admin-panel-head h2 { margin: 0; font-size: 16px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.admin-table th { color: var(--muted); font-weight: 700; background: #f8fafc; white-space: nowrap; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table select {
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.admin-badge.is-live { background: #ecfdf3; color: #067647; }
.admin-badge.is-draft { background: #f8fafc; color: #475569; }
.admin-badge.is-wait { background: #fff7ed; color: #c2410c; }
.admin-badge.is-stop { background: #fef2f2; color: #b42318; }
.admin-badge.is-deleted { background: #f2f4f7; color: #667085; }
.admin-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 18px; align-items: start; }
.admin-form { padding: 22px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.admin-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #f2f4f6;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
.admin-app input:not([type="checkbox"]):not([type="file"]),
.admin-login input:not([type="checkbox"]):not([type="file"]),
.admin-app select,
.admin-app textarea {
  background: #f2f4f6;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
}
.admin-app input:not([type="checkbox"]):not([type="file"]):hover,
.admin-login input:not([type="checkbox"]):not([type="file"]):hover,
.admin-app select:hover,
.admin-app textarea:hover {
  border-color: #98a2b3;
}
.admin-app input:not([type="checkbox"]):not([type="file"]):focus,
.admin-login input:not([type="checkbox"]):not([type="file"]):focus,
.admin-app select:focus,
.admin-app textarea:focus {
  outline: none;
  background: #f8fafc;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.admin-file { margin: 0 0 22px; }
.admin-file-label { display: block; margin-bottom: 8px; color: #333d4b; font-size: 14px; font-weight: 600; }
.admin-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.admin-file-drop {
  display: flex;
  align-items: center;
  min-height: 96px;
  padding: 16px 18px;
  border: 1px dashed #c5ccd6;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
}
.admin-file.is-drop .admin-file-drop,
.admin-file-drop:hover { border-color: #0f172a; background: #fff; }
.admin-file-drop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.admin-file-empty { display: grid; gap: 4px; color: var(--muted); }
.admin-file-empty strong { color: var(--ink); font-size: 14px; font-weight: 650; }
.admin-file-empty span { font-size: 12px; }
.admin-file-picked {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  width: 100%;
}
.admin-file-preview {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #e8edf3;
  flex-shrink: 0;
}
.admin-file-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.admin-file-meta { min-width: 0; display: grid; gap: 4px; }
.admin-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; color: var(--ink); }
.admin-file-size { color: var(--muted); font-size: 12px; font-weight: 500; }
.admin-empty { padding: 48px 24px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 16px; }
.admin-app .card { background: #fff; border-color: var(--line); }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.admin-grid .card:last-child { grid-column: 1 / -1; }
.admin-grid h2, .admin-form h2 { margin: 0 0 16px; font-size: 18px; }
.admin-dl { display: grid; gap: 12px; margin: 0; }
.admin-dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.admin-dl dt { color: var(--muted); font-weight: 650; }
.admin-dl dd { margin: 0; overflow-wrap: anywhere; }
.admin-grid select,
.admin-grid input[type="datetime-local"],
.admin-form select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
}
.admin-danger {
  border-color: #f1d4d4;
  background: #fff;
}
@media (max-width: 1100px) {
  .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-split { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .admin-app {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-content: start;
  }
  .admin-side {
    min-height: 0;
    height: auto;
    max-height: 56px;
    align-self: start;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    position: sticky;
    top: 0;
    z-index: 4;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .admin-side a.admin-brand { margin: 0; padding: 0; font-size: 11px; letter-spacing: .08em; flex-shrink: 0; white-space: nowrap; }
  .admin-nav-wrap {
    flex: 1;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .admin-nav-wrap::-webkit-scrollbar { display: none; }
  .admin-nav, .admin-nav-foot {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    flex: 0 0 auto;
  }
  .admin-side a,
  .admin-side nav a,
  .admin-side nav a:last-child { flex: 0 0 auto; white-space: nowrap; padding: 7px 10px; font-size: 13px; }
  .admin-top {
    position: static;
    padding: 10px 14px;
    gap: 8px;
  }
  .admin-top h1 { font-size: 17px; }
  .admin-body { padding: 16px 14px 40px; }
  .admin-app .btn,
  .admin-chip { min-height: 30px; padding: 3px 10px; font-size: 12px; }
}
@media (max-width: 767px) {
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-form-grid, .admin-grid { grid-template-columns: 1fr; }
  .admin-dl div { grid-template-columns: 1fr; gap: 4px; }
  .admin-user { justify-content: flex-end; }
  .admin-search-row { flex-wrap: wrap; }
  .admin-search-row input[type="search"] { max-width: none; }
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 16px;
}
.media-card { color: inherit; text-decoration: none; min-width: 0; }
.media-card h3 { margin: 10px 0 4px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.media-meta { margin: 0; color: var(--muted); font-size: 13px; }
.media-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #1e293b;
  color: #93c5fd;
}
.media-thumb-book { background: #0f172a; }
.media-book-icon { width: 64px; height: 64px; }
.media-play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 26px;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
}
.lecture-page .lesson-video { margin-bottom: 24px; }
.lecture-page .actions { margin-top: 28px; }
.book-cover-image { width: 100%; max-width: 280px; border-radius: 12px; object-fit: cover; }
.board-write { margin-bottom: 24px; }
.board-row { display: block; color: inherit; text-decoration: none; }
.board-row:hover { border-color: var(--accent); }
.admin-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}
.admin-switch input { width: 16px; height: 16px; accent-color: var(--accent); }
.notice-modals {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: notice-scrim-in .28s ease both;
}
.notice-modals.is-leaving { animation: notice-scrim-out .22s ease both; }
.notice-modal {
  position: absolute;
  width: min(360px, calc(50vw - 32px));
  max-height: calc(50vh - 32px);
  overflow: auto;
  margin: 0;
  padding: 22px 22px 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .32), 0 8px 24px rgba(15, 23, 42, .12);
  animation: notice-modal-in .4s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--enter-delay, 0) * 1ms);
}
.notice-modal.is-leaving { animation: notice-modal-out .22s ease both; }
.notice-modal-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.notice-modal h2 { font-size: 18px; margin: 0 0 10px; letter-spacing: -.03em; }
.notice-modal p:not(.notice-modal-kicker) { margin: 0 0 16px; font-size: 14px; line-height: 1.7; color: #4e5968; }
.notice-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notice-modal[data-slot="0"] { top: calc(28px + (var(--layer, 0) * 28px)); left: calc(28px + (var(--layer, 0) * 28px)); }
.notice-modal[data-slot="1"] { top: calc(28px + (var(--layer, 0) * 28px)); right: calc(28px + (var(--layer, 0) * 28px)); }
.notice-modal[data-slot="2"] { bottom: calc(28px + (var(--layer, 0) * 28px)); left: calc(28px + (var(--layer, 0) * 28px)); }
.notice-modal[data-slot="3"] { bottom: calc(28px + (var(--layer, 0) * 28px)); right: calc(28px + (var(--layer, 0) * 28px)); }
.notice-modal[data-layer="0"] { --layer: 0; }
.notice-modal[data-layer="1"] { --layer: 1; }
.notice-modal[data-layer="2"] { --layer: 2; }
.notice-modal[data-layer="3"] { --layer: 3; }
.notice-modal[data-layer="4"] { --layer: 4; }
.notice-modal[data-layer="5"] { --layer: 5; }
@keyframes notice-scrim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes notice-scrim-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes notice-modal-in {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes notice-modal-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(10px) scale(.98); }
}
@media (min-width: 768px) {
  .notice-modals {
    display: grid;
    place-items: center;
    padding: 48px 24px;
  }
  .notice-modal {
    position: relative;
    top: calc(var(--stack, 0) * 16px);
    left: calc(var(--stack, 0) * 16px);
    right: auto;
    bottom: auto;
    grid-area: 1 / 1;
    width: min(640px, 86vw);
    max-height: min(78vh, 800px);
    padding: 32px 32px 24px;
    z-index: calc(40 - var(--stack, 0));
    transition: top .28s ease, left .28s ease;
  }
  .notice-modal[data-slot] { top: calc(var(--stack, 0) * 16px); right: auto; bottom: auto; left: calc(var(--stack, 0) * 16px); }
  .notice-modal { pointer-events: none; }
  .notice-modal[data-front] { pointer-events: auto; }
  .notice-modal.is-leaving { pointer-events: none; z-index: 50; transition: none; }
  .notice-modal h2 { font-size: 24px; }
  .notice-modal p:not(.notice-modal-kicker) { font-size: 16px; }
  .notice-modal-kicker { font-size: 12px; }
}
@media (max-width: 1100px) {
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .media-grid { grid-template-columns: 1fr; }
  .notice-modal { width: calc(100vw - 32px); max-height: 40vh; }
  .notice-modal[data-slot] { left: 16px; right: 16px; width: auto; }
}
.purchased-check {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  width: 28px;
  height: 28px;
  color: #2563eb;
}
.purchased-check svg { display: block; width: 100%; height: 100%; }
.purchased-check circle { fill: currentColor; }
.auth-links .header-cart,
.auth-links.is-signed-in .header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-weight: 650;
}
.auth-links .header-cart:hover,
.auth-links.is-signed-in .header-cart:hover {
  background: #f8fafc;
  color: var(--ink);
}
.header-cart-icon { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: 2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.cart-items .cart-row + .cart-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cart-summary .row:last-of-type {
  margin-bottom: 16px;
  padding-top: 8px;
  font-size: 16px;
}
.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cart-row-side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .cart-layout { grid-template-columns: 1fr; gap: 16px; }
}
.shop-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 28px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(15, 23, 42, .18);
}
.shop-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.shop-dialog h2 { margin: 0 0 10px; font-size: 20px; }
.shop-dialog p { margin: 0 0 20px; color: var(--muted); }
.shop-dialog .actions { justify-content: flex-end; }
