/* OBLIQUE — Fashion Editorial.
   White and off-white, warm stone greys, soft black. No cream-spa beige, no rounded pills: square edges, thin rules.
   Type: Archivo (condensed uppercase display, wordmark, prices) · Pretendard (Korean, body) · IBM Plex Mono (captions,
   metadata, placeholder labels). All self-hosted, OFL. Mobile first; one breakpoint (768px) at the bottom.
   The DevTeam demo bar and footer notice keep the shared demo design (fixed colours below, not the brand palette). */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  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+20A9, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plex-mono/IBMPlexMono-Regular-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-2193, U+2212;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plex-mono/IBMPlexMono-Medium-latin.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-2193, U+2212;
}

:root {
  --paper: #ffffff;
  --bone: #f4f3f0;
  --fog: #e7e5e0;
  --line: #d9d6d0;
  --line-soft: #eae8e4;
  --stone: #a19c93;
  --ash: #6d6962;
  --graphite: #33312d;
  --ink: #161514;
  --ok: #2c5a43;
  --wait: #85570c;
  --bad: #a3301f;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --display: "Archivo", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, "Pretendard Variable", monospace;
  --gutter: 20px;
  --max: calc(1280px + 2 * var(--gutter));   /* the same centred 1280px column as the landing and the brand shell */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--graphite);
  font: 400 15px/1.75 var(--sans); letter-spacing: -0.005em;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hide-sm { display: none; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- DevTeam demo bar (shared demo design) ---------- */
.demo-bar { background: #131416; color: #c8ccd1; font-size: 12px; font-family: var(--sans); letter-spacing: 0; }
.demo-bar .wrap, .admin-demo { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.admin-demo { padding: 4px var(--gutter); }
.demo-text { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; padding: 3px 0; line-height: 1.5; color: inherit; text-decoration: none; }
a.demo-text:hover { color: #ffffff; }
.demo-tag { display: inline-block; margin-right: 8px; padding: 0 7px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; font: 500 10px/16px var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: #ffffff; }
.demo-links { flex: none; display: flex; align-items: center; gap: 16px; margin: 0; }
.demo-links a, .demo-links button {
  padding: 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.35); background: none;
  font: inherit; color: #ffffff; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.demo-links a:hover, .demo-links button:hover { border-bottom-color: #ffffff; }
.demo-links a, .demo-links button { position: relative; }
.demo-links a::before, .demo-links button::before { content: ""; position: absolute; inset: -8px; }
.demo-links [aria-current] { border-bottom-color: transparent; font-weight: 600; }
.demo-bar.is-live { background: #2b2e32; }
.demo-bar.is-live .demo-tag { background: #ffffff; border-color: #ffffff; color: #131416; letter-spacing: 0.04em; font-family: var(--sans); text-transform: none; }

/* ---------- DevTeam footer notice (shared demo design) ---------- */
.demo-notice { position: relative; padding: 32px 0 44px; border-top: 1px solid #dcdfe2; background: #f4f5f6; font-size: 12.5px; line-height: 1.7; color: #656a71; font-family: var(--sans); letter-spacing: -0.006em; }
.demo-notice .label { margin-bottom: 14px; font: 500 11px/1.4 var(--display); font-stretch: 108%; letter-spacing: 0.22em; text-transform: uppercase; color: #131416; }
.demo-statement { max-width: 62em; margin-bottom: 20px; color: #2b2e32; font-size: 13px; }
.demo-actions { margin: -6px 0 22px; }
.demo-notice .btn-text { display: inline-flex; align-items: center; gap: 12px; font: 500 13.5px/1.2 var(--sans); letter-spacing: -0.01em; color: #131416; text-decoration: none; padding: 6px 0; }
.demo-notice .btn-text::after { content: ""; width: 28px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M0 6h26M21 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M0 6h26M21 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.3s; }
.demo-notice .btn-text:hover::after { transform: translateX(5px); }
.maker { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 24px; margin-bottom: 18px; }
.maker div { display: grid; gap: 2px; }
.maker .wide { grid-column: 1 / -1; }
.maker dt { font: 500 10px/1.4 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: #9ea3a9; }
.maker dd { margin: 0; color: #2b2e32; }
.contact-img { display: inline-block; height: 15px; width: auto; vertical-align: middle; }
.copyright { font-size: 12px; }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 500; font-stretch: 68%; text-transform: uppercase; letter-spacing: -0.006em; line-height: 0.86; color: var(--ink); }
.display-xl { font-size: clamp(64px, 17vw, 200px); }
.display-l { font-size: clamp(52px, 12vw, 132px); }
.display-m { font-size: clamp(40px, 8vw, 84px); line-height: 0.9; }
.display-s { font-size: clamp(30px, 5.4vw, 48px); line-height: 0.94; }
.caption { font: 400 11px/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ash); }
.caption strong { font-weight: 500; color: var(--ink); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 400 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; transform: rotate(-58deg); }
.h-ko { font: 600 21px/1.45 var(--sans); letter-spacing: -0.025em; color: var(--ink); }
.h-ko-l { font: 600 clamp(24px, 3.2vw, 36px)/1.35 var(--sans); letter-spacing: -0.03em; color: var(--ink); }
.lead { font-size: 16.5px; line-height: 1.8; color: var(--graphite); }
.muted { color: var(--ash); }
.small { font-size: 13px; }
.num, .price { font-family: var(--display); font-stretch: 88%; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.price { font-weight: 500; color: var(--ink); }
.prose { font-size: 16px; line-height: 1.9; }
.prose p + p, .prose p + h2, .prose h2 + p { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font: 600 19px/1.5 var(--sans); letter-spacing: -0.02em; color: var(--ink); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink);
  font: 500 14px/1.2 var(--sans); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--graphite); }
.btn-light { border-color: #f2f0ec; color: #f2f0ec; }
.btn-light:hover { background: #f2f0ec; color: var(--ink); }
.btn-light.btn-ink { background: #f2f0ec; color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { border-color: var(--line); background: var(--bone); color: var(--stone); cursor: not-allowed; }
.btn-danger { border-color: var(--bad); color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: #fff; }
.link { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.link::after { content: "→"; text-decoration: none; display: inline-block; transition: transform 0.25s var(--ease); }
.link:hover::after { transform: translateX(4px); }
.link-button { padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; text-underline-offset: 0.25em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 58px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.wordmark-text { display: inline-block; font: 600 18px/1 var(--display); font-stretch: 112%; letter-spacing: 0.22em; transform: skewX(-12deg); padding-left: 2px; }
.wordmark-bar { width: 14px; height: 2px; background: currentColor; transform: rotate(-58deg); }
.wordmark-light { color: #f2f0ec; }
.nav-main { display: none; }
.nav-account { display: none; }
.nav-cart { margin-left: auto; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 10px 0; }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 2px; padding: 0 5px; border: 1px solid var(--ink); font-size: 11px; }
.nav-menu summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; cursor: pointer; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary span, .nav-menu summary span::before { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform 0.25s; }
.nav-menu summary span { position: relative; }
.nav-menu summary span::before { content: ""; position: absolute; top: 6px; }
.nav-menu summary span { box-shadow: 0 -6px 0 var(--ink); }
.nav-menu[open] summary span { box-shadow: none; transform: rotate(45deg); }
.nav-menu[open] summary span::before { top: 0; transform: rotate(-90deg); }
.nav-sheet { position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--gutter) 28px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(0, 0, 0, 0.25); }
.nav-sheet nav a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font: 500 30px/1 var(--display); font-stretch: 70%; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.nav-sheet nav small { font: 400 12px var(--sans); color: var(--ash); text-transform: none; }
.nav-account-sheet { display: flex; gap: 22px; padding-top: 18px; font-size: 14px; }
.nav-account-sheet a, .nav-account-sheet .link-button { color: var(--ink); }
.nav-quick { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); }
.nav-quick a { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 9px 0 10px; font: 500 13px/1 var(--display); font-stretch: 90%; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.nav-quick a + a { border-left: 1px solid var(--line-soft); }
.nav-quick small { font: 400 11px var(--sans); letter-spacing: 0; color: var(--ash); text-transform: none; }
.nav-quick a[aria-current] { background: var(--ink); color: var(--paper); }
.nav-quick a[aria-current] small { color: #c8c4bd; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; background: var(--ink); color: #c9c5be; }
.footer-grid { display: grid; gap: 28px; padding-top: 56px; padding-bottom: 48px; font-size: 13.5px; }
.footer-brand p { margin-top: 18px; max-width: 26em; color: #a8a49c; }
.site-footer .caption { margin-bottom: 10px; color: #8a867f; }
.site-footer nav a { display: block; padding: 4px 0; color: #e9e6e1; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer small { display: block; margin-top: 6px; color: #8a867f; font-size: 12px; }

/* ---------- Flash / notices ---------- */
.flash { padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.flash strong { color: var(--ink); }
.flash-reset { background: #eef1ee; }
.flash-warn { background: #f6efe3; }
.reset-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(22, 21, 20, 0.55); }
.reset-overlay > div { max-width: 420px; padding: 28px; background: var(--paper); border: 1px solid var(--ink); }
.reset-overlay p { margin-top: 10px; font-size: 14px; color: var(--ash); }
.reset-overlay .btn { margin-top: 18px; }

/* ---------- Placeholder images ---------- */
.ph {
  position: relative; overflow: hidden; width: 100%; margin: 0;
  background-color: var(--ph-bg, #e6e4df);
  background-image: repeating-linear-gradient(-58deg, transparent 0 15px, var(--ph-line, rgba(22, 21, 20, 0.055)) 15px 16px);
  color: var(--ph-fg, #55524c);
}
.tone-bone { --ph-bg: #f0efeb; }
.tone-fog { --ph-bg: #e3e1dc; }
.tone-stone { --ph-bg: #cfcbc3; --ph-line: rgba(22, 21, 20, 0.07); --ph-fg: #3f3c37; }
.tone-clay { --ph-bg: #cdc1b6; --ph-line: rgba(22, 21, 20, 0.07); --ph-fg: #463f38; }
.tone-ash { --ph-bg: #8f8a82; --ph-line: rgba(255, 255, 255, 0.09); --ph-fg: #f1efea; }
.tone-graphite { --ph-bg: #3a3834; --ph-line: rgba(255, 255, 255, 0.07); --ph-fg: #d8d4cd; }
.tone-ink { --ph-bg: #1f1e1c; --ph-line: rgba(255, 255, 255, 0.06); --ph-fg: #bdb8b0; }
.ph-label { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font: 400 10px/1.45 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.ph-subject { max-width: 34em; }
.ph-ratio { opacity: 0.75; }
.ph::before { content: "PLACEHOLDER"; position: absolute; top: 10px; left: 12px; font: 500 9px/1 var(--mono); letter-spacing: 0.14em; opacity: 0.6; }
.ph-crop { position: absolute; top: 8%; bottom: 8%; left: 50%; aspect-ratio: 4 / 5; transform: translateX(-50%); border: 1px dashed currentColor; opacity: 0.5; }
.ph-crop span { position: absolute; top: 6px; left: 8px; font: 400 9px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.r-16x9 { aspect-ratio: 16 / 9; } .r-21x9 { aspect-ratio: 21 / 9; } .r-4x5 { aspect-ratio: 4 / 5; } .r-3x4 { aspect-ratio: 3 / 4; }
.r-1x1 { aspect-ratio: 1 / 1; } .r-3x2 { aspect-ratio: 3 / 2; } .r-2x3 { aspect-ratio: 2 / 3; } .r-5x4 { aspect-ratio: 5 / 4; }

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
.section-tight { padding-block: 40px; }
.section:not(.dark) + .section:not(.dark) { padding-top: 0; }
.dark .lead { color: #d6d2cb; }
.rule { border-top: 1px solid var(--ink); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; padding-top: 14px; margin-bottom: 28px; border-top: 1px solid var(--ink); }
.section-head .caption { width: 100%; }
.dark { background: var(--ink); color: #d6d2cb; }
.dark .display, .dark .h-ko, .dark .h-ko-l { color: #f2f0ec; }
.dark .caption { color: #8f8a83; }
.dark .kicker { color: #f2f0ec; }
.dark .link { color: #f2f0ec; }
.dark .section-head { border-top-color: #f2f0ec; }
.dark .muted { color: #a19c94; }
.bone { background: var(--bone); }

/* ---------- Home ---------- */
.cover { padding-block: 18px 56px; }
.cover-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cover-title { margin-bottom: 18px; }
.cover-title span { display: block; }
.cover-title span:nth-child(2) { padding-left: 0.9em; }
.cover-media { margin: 0 calc(var(--gutter) * -1); }
.cover-aside { margin-top: 22px; display: grid; gap: 20px; }
.cover-ctas { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.cover-ctas a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); text-decoration: none; }
.cover-ctas a::after { content: "→"; transition: transform 0.25s var(--ease); }
.cover-ctas a:hover::after { transform: translateX(4px); }
.cover-ctas small { margin-left: 10px; font: 400 11px var(--mono); letter-spacing: 0.06em; color: var(--ash); text-transform: uppercase; }

.practices { display: grid; }
.practice { display: grid; gap: 18px; padding: 28px 0 34px; border-top: 1px solid var(--ink); }
.practice:last-child { border-bottom: 1px solid var(--ink); }
.practice-num { font: 400 11px/1 var(--mono); letter-spacing: 0.08em; color: var(--ash); }
.practice-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.practice-title .caption { color: var(--ink); }
.practice-body p { max-width: 34em; }
.practice-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid var(--line); }
.practice-facts div { padding: 10px 10px 0 0; }
.practice-facts dt { font: 400 10px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.practice-facts dd { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.practice .actions { margin-top: 20px; }

.split { display: grid; gap: 28px; }
.principles { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.principles .caption { grid-row: span 2; padding-top: 4px; }
.principles strong { font: 500 22px/1 var(--display); font-stretch: 75%; text-transform: uppercase; color: var(--ink); }
.principles p { font-size: 14px; color: var(--ash); }

.online-grid { display: grid; gap: 28px; }
.trial-box { border: 1px solid #5a5650; padding: 22px; display: grid; gap: 14px; }
.trial-box dl { display: grid; gap: 8px; }
.trial-box dl div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; font-size: 14px; }
.trial-box dt { font: 400 10.5px/1.9 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #8f8a83; }
.trial-box dd { margin: 0; color: #f2f0ec; }
.program-row { display: grid; gap: 18px; }
.program-card { display: grid; gap: 12px; color: inherit; text-decoration: none; }
.program-card h3 { font: 500 30px/0.95 var(--display); font-stretch: 70%; text-transform: uppercase; color: #f2f0ec; }
.program-card p { font-size: 14px; }
.program-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; }
.lib .program-card h3 { color: var(--ink); }   /* on the light library page (the pale title is for dark bands) */
.class-lines { border-top: 1px solid #4a4741; }
.class-lines a { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 12px 0; border-bottom: 1px solid #4a4741; color: #f2f0ec; text-decoration: none; }
.class-lines a:hover strong { text-decoration: underline; }
.class-lines .caption { grid-column: 1 / -1; }

.objects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
.objects-grid .obj-lg { grid-column: 1 / -1; }
.product-card { display: grid; gap: 10px; color: inherit; text-decoration: none; align-content: start; }
.product-card .ph { transition: filter 0.3s; }
.product-card:hover .ph { filter: brightness(0.96); }
.product-name { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 14px; color: var(--ink); }
.product-name strong { font-weight: 500; }
.product-sub { font-size: 12.5px; color: var(--ash); }
.soldout { display: inline-block; padding: 1px 6px; border: 1px solid var(--ink); font: 500 10px/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.lowstock { font: 400 10.5px/1.5 var(--mono); letter-spacing: 0.04em; color: var(--wait); text-transform: uppercase; }

.studio-band { position: relative; }
.studio-panel { position: relative; margin: -40px 12px 0; padding: 22px; background: var(--paper); border: 1px solid var(--ink); display: grid; gap: 14px; }
.kind-mini { display: grid; border-top: 1px solid var(--line); }
.kind-mini div { display: grid; grid-template-columns: 1fr auto; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kind-mini span { color: var(--ash); font-size: 13px; }
.note-line { font-size: 12.5px; color: var(--ash); }
.note-line::before { content: "※ "; }

.stories { display: grid; gap: 28px; }
.story { display: grid; gap: 12px; color: inherit; text-decoration: none; }
.story h3 { font: 600 19px/1.45 var(--sans); letter-spacing: -0.02em; color: var(--ink); }
.story:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; }
.story p { font-size: 14px; color: var(--ash); }

/* ---------- Page heads ---------- */
.page-hero { padding-block: 28px 36px; }
.page-hero .caption { margin-bottom: 14px; }
.page-hero .display { margin-bottom: 18px; }
.page-hero .lead { max-width: 36em; }
.page-hero-media { margin-top: 28px; }
.page-hero .actions { margin-top: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px; font: 400 11px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ash); }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs > * + *::before { content: "/"; display: inline-block; margin-right: 6px; color: var(--stone); }

/* ---------- Studio ---------- */
/* Facts: number (+ small unit), an optional one-line title, a short note — every column starts at the same line */
.facts { display: grid; border-top: 1px solid var(--ink); }
.facts div { display: grid; align-content: start; gap: 10px; padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.facts strong { display: flex; align-items: baseline; gap: 12px; font: 500 52px/0.9 var(--display); font-stretch: 70%; color: var(--ink); text-transform: uppercase; }
.facts strong small { font: 500 11px/1 var(--sans); font-stretch: normal; letter-spacing: 0.14em; color: var(--ash); }
.facts h3 { margin: 8px 0 0; font: 600 16px/1.45 var(--sans); color: var(--ink); }
.facts p { max-width: 26em; font-size: 14px; line-height: 1.7; color: var(--ash); }
.kinds { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.kind { display: grid; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.kind h3 { font: 500 34px/0.95 var(--display); font-stretch: 70%; text-transform: uppercase; color: var(--ink); }
.kind dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.kind dt { font: 400 10px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.kind dd { margin: 2px 0 0; font-size: 14px; color: var(--ink); }
.instructors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
.instructor { display: grid; gap: 8px; align-content: start; }
.instructor h3 { font: 600 16px/1.3 var(--sans); color: var(--ink); }
.instructor h3 small { display: block; font: 400 10.5px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ash); }
.instructor p { font-size: 13.5px; line-height: 1.65; }
.locations { display: grid; gap: 36px; }
.location { display: grid; gap: 14px; }
.location h3 { font: 500 44px/0.9 var(--display); font-stretch: 70%; text-transform: uppercase; color: var(--ink); }
.location dl { display: grid; gap: 6px; font-size: 14px; }
.location dl div { display: grid; grid-template-columns: 74px 1fr; gap: 8px; }
.location dt { font: 400 10.5px/1.9 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ash); }
.location dd { margin: 0; }
.steps { display: grid; counter-reset: step; border-top: 1px solid var(--ink); }
.steps li { position: relative; display: grid; gap: 4px; padding: 16px 0 16px 48px; border-bottom: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 17px; font: 400 12px var(--mono); color: var(--ash); }
.steps strong { font-size: 16px; color: var(--ink); }
.steps p { font-size: 14px; color: var(--ash); }
.steps li.is-done::before { content: "✓"; color: var(--ok); }
.steps li.is-now { background: var(--bone); padding-left: 56px; margin: 0 -8px; padding-right: 8px; }
.steps li.is-now::before { left: 8px; color: var(--ink); font-weight: 500; }
.pass-list { display: grid; border-top: 1px solid var(--ink); }
.pass-list > div, .pass-list > form { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pass-list strong { font-weight: 600; color: var(--ink); }
.pass-list small { grid-column: 1; font-size: 12.5px; color: var(--ash); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary { display: flex; justify-content: space-between; gap: 14px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 500; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 18px/1 var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; font-size: 14.5px; color: var(--graphite); max-width: 46em; }

/* Booking */
.gate { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--ink); background: var(--paper); }
.gate.gate-wait { border-style: dashed; }
.gate h2 { font: 600 17px/1.45 var(--sans); color: var(--ink); }
.gate p { font-size: 14px; }
.gate .actions { margin-top: 4px; }
.passes-inline { display: grid; gap: 8px; }
.pass-chip { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); font-size: 13.5px; }
.pass-chip strong { color: var(--ink); }
.pass-chip .num { font-size: 22px; color: var(--ink); grid-row: span 2; align-self: center; }
.pass-chip.is-low { border-color: var(--wait); }
.pass-chip.is-off { color: var(--stone); background: var(--bone); }
.filter-bar { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.filter-bar .row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filter-bar .caption { margin-right: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; color: var(--ink); text-decoration: none; }
.chip:hover { border-color: var(--ink); }
.chip[aria-current], .chip.is-on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.date-strip { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0; scrollbar-width: thin; }
.day { flex: none; display: grid; justify-items: center; gap: 2px; width: 58px; padding: 9px 0; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.day .caption { font-size: 10px; }
.day strong { font: 500 22px/1 var(--display); font-stretch: 80%; }
.day small { font-size: 10.5px; color: var(--ash); }
.day[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day[aria-current] .caption, .day[aria-current] small { color: #c8c4bd; }
.day.is-closed { color: var(--stone); background: var(--bone); }
.slots { display: grid; border-top: 1px solid var(--ink); }
.slot { display: grid; grid-template-columns: 64px 1fr; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.slot-time { font: 500 20px/1.1 var(--display); font-stretch: 82%; color: var(--ink); }
.slot-time small { display: block; font: 400 11px/1.6 var(--mono); color: var(--ash); }
.slot-main { display: grid; gap: 4px; }
.slot-main strong { font-weight: 600; color: var(--ink); }
.slot-meta { font-size: 13px; color: var(--ash); }
.slot-act { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 4px; }
.slot.is-off .slot-time, .slot.is-off strong { color: var(--stone); }
.seats { font: 400 11px/1.5 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ash); }
.reason { font-size: 12.5px; color: var(--ash); }
.reason::before { content: "— "; }
.empty { padding: 28px 0; color: var(--ash); }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }
.detail-grid { display: grid; gap: 28px; }
.dl-grid { display: grid; grid-template-columns: 96px 1fr; gap: 10px 14px; padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 14.5px; }
.dl-grid dt { font: 400 10.5px/2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ash); }
.dl-grid dd { margin: 0; color: var(--ink); }
.confirm-box { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--ink); align-content: start; }
.confirm-box h2 { font: 600 17px/1.4 var(--sans); color: var(--ink); }

/* ---------- Online ---------- */
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.format-card { display: grid; gap: 10px; color: inherit; text-decoration: none; }
.format-card strong { font: 500 26px/0.95 var(--display); font-stretch: 70%; text-transform: uppercase; color: var(--ink); }
.format-card small { font-size: 12.5px; color: var(--ash); }
.needs { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.needs > div { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.needs .row { display: flex; flex-wrap: wrap; gap: 6px; }
.plans { display: grid; gap: 12px; }
.plan { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--line); align-content: start; }
.plan.is-main { border-color: var(--ink); }
.plan h3 { font: 500 30px/0.95 var(--display); font-stretch: 70%; text-transform: uppercase; color: var(--ink); }
.plan .price { font-size: 28px; }
.plan ul { display: grid; gap: 4px; font-size: 13.5px; }
.plan li::before { content: "— "; color: var(--stone); }
.lib { display: grid; gap: 20px; }
.lib-tabs { display: flex; gap: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--ink); }   /* the line is drawn inside, so the active 2px underline never overflows into a scrollbar */
.lib-tabs::-webkit-scrollbar { display: none; }
.lib-tabs { scroll-margin-top: 12px; }
.lib-program { display: grid; gap: 8px; align-content: start; }
.lib-tabs a { flex: none; padding: 12px 14px; font: 500 13px/1 var(--display); font-stretch: 92%; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); text-decoration: none; border-bottom: 2px solid transparent; }
.lib-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.lib-tabs small { margin-left: 4px; font-family: var(--mono); font-size: 10px; }
.filters { border: 1px solid var(--line); }
.filters summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 500; color: var(--ink); }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "+"; font: 400 16px var(--mono); }
.filters[open] summary::after { content: "−"; }
.filters form { display: grid; gap: 16px; padding: 4px 14px 16px; }
.filters fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; }
.filters legend { padding: 0; margin-bottom: 6px; font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.opt { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.opts { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.result-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.result-bar strong { color: var(--ink); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.class-grid { display: grid; gap: 28px 14px; }
.class-card { display: grid; gap: 10px; align-content: start; color: inherit; text-decoration: none; }
.class-card .ph { position: relative; }
.class-card h3 { font: 600 15.5px/1.4 var(--sans); letter-spacing: -0.015em; color: var(--ink); }
.class-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; }
.class-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 400 10.5px/1.5 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ash); }
.class-meta span + span::before { content: "·"; margin-right: 10px; color: var(--stone); }
.class-eq { font-size: 12.5px; color: var(--ash); }
.access { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 2px 7px; border: 1px solid var(--line); font: 500 10px/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); background: var(--paper); }
.access-free { border-color: var(--ink); }
.access-open { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.access-lock::before { content: "◇"; }
.progress { position: relative; height: 3px; background: var(--line); }
.progress span { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.player { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: #1f1e1c; color: #d8d4cd; text-align: center; padding: 18px; background-image: repeating-linear-gradient(-58deg, transparent 0 15px, rgba(255, 255, 255, 0.05) 15px 16px); }
.player-inner { display: grid; gap: 12px; justify-items: center; max-width: 30em; }
.player .caption { color: #a5a098; }
.player strong { font: 500 30px/1 var(--display); font-stretch: 72%; text-transform: uppercase; color: #f2f0ec; }
.player p { font-size: 13px; color: #bdb8b0; }
.player .progress { width: 100%; background: #4a4741; }
.player .progress span { background: #f2f0ec; }
.player-locked { background-color: #e3e1dc; color: var(--graphite); background-image: repeating-linear-gradient(-58deg, transparent 0 15px, rgba(22, 21, 20, 0.05) 15px 16px); }
.player-locked strong { color: var(--ink); }
.player-locked p, .player-locked .caption { color: var(--ash); }
.week { display: grid; gap: 0; }
.week h3 { padding: 14px 0 8px; font: 400 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); border-bottom: 1px solid var(--ink); }
.week a { display: grid; grid-template-columns: 26px 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.week a:hover strong { text-decoration: underline; }
.week .state { font: 400 10.5px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ash); }
.week .is-done .state { color: var(--ok); }
.week .is-next { background: var(--bone); }
.mark { font: 400 12px var(--mono); color: var(--stone); }
.is-done .mark { color: var(--ok); }
.related { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ink); }
.related-list { display: grid; gap: 10px; }
.related-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; color: inherit; text-decoration: none; font-size: 14px; }
.related-item strong { display: block; color: var(--ink); font-weight: 500; }
.related-item small { color: var(--ash); }
.related-item:hover strong { text-decoration: underline; }

/* progress widths (no inline styles under the CSP) */
.progress span[data-w="0"] { width: 0%; }
.progress span[data-w="5"] { width: 5%; }
.progress span[data-w="10"] { width: 10%; }
.progress span[data-w="15"] { width: 15%; }
.progress span[data-w="20"] { width: 20%; }
.progress span[data-w="25"] { width: 25%; }
.progress span[data-w="30"] { width: 30%; }
.progress span[data-w="35"] { width: 35%; }
.progress span[data-w="40"] { width: 40%; }
.progress span[data-w="45"] { width: 45%; }
.progress span[data-w="50"] { width: 50%; }
.progress span[data-w="55"] { width: 55%; }
.progress span[data-w="60"] { width: 60%; }
.progress span[data-w="65"] { width: 65%; }
.progress span[data-w="70"] { width: 70%; }
.progress span[data-w="75"] { width: 75%; }
.progress span[data-w="80"] { width: 80%; }
.progress span[data-w="85"] { width: 85%; }
.progress span[data-w="90"] { width: 90%; }
.progress span[data-w="95"] { width: 95%; }
.progress span[data-w="100"] { width: 100%; }

/* ---------- Shop ---------- */
.shop-cats { display: flex; gap: 0; overflow-x: auto; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.shop-cats a { flex: none; padding: 13px 16px 12px 0; margin-right: 6px; font: 500 15px/1 var(--display); font-stretch: 80%; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ash); text-decoration: none; }
.shop-cats a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 0.4em; }
.shop-cats small { margin-left: 3px; font: 400 10px var(--mono); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
.practice-set { display: grid; gap: 18px; }
.pdp { display: grid; gap: 24px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.gallery .ph:first-child { grid-column: 1 / -1; }
.buybox { display: grid; gap: 18px; align-content: start; }
.buybox h1 { font: 500 clamp(36px, 7vw, 56px)/0.92 var(--display); font-stretch: 70%; text-transform: uppercase; color: var(--ink); }
.buybox .h-ko { font-size: 15px; font-weight: 500; color: var(--ash); }
.buybox .price { font-size: 26px; }
.option-group { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.option-group legend { padding: 0; margin-bottom: 8px; font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.option-group legend b { color: var(--bad); font-weight: 500; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option span { display: grid; gap: 2px; min-height: 48px; padding: 8px 10px; border: 1px solid var(--line); font-size: 13.5px; color: var(--ink); }
.option small { font: 400 10px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ash); }
.option input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.option input:disabled + span { color: var(--stone); background: var(--bone); text-decoration: line-through; cursor: not-allowed; }
.option input:disabled + span small { text-decoration: none; }
.option-group.has-error .option span { border-color: var(--bad); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink); }
.qty select, .qty input { min-height: 46px; border: 0; padding: 0 14px; background: transparent; font-size: 15px; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.terms { display: grid; border-top: 1px solid var(--line); font-size: 13.5px; }
.terms div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.terms dt { font: 400 10.5px/1.9 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ash); }
.terms dd { margin: 0; }
.cart { display: grid; gap: 28px; }
.cart-lines { display: grid; border-top: 1px solid var(--ink); }
.cart-line { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line .ph { width: 76px; }
.cart-line h3 { font-size: 15px; font-weight: 600; color: var(--ink); }
.cart-line h3 a { text-decoration: none; }
.cart-line .line-meta { font-size: 13px; color: var(--ash); }
.line-act { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.line-act form { display: flex; gap: 6px; align-items: center; }
.line-act select { min-height: 36px; padding: 0 8px; border: 1px solid var(--line); background: var(--paper); }
.line-total { margin-left: auto; }
.line-warn { grid-column: 2; font-size: 12.5px; color: var(--bad); }
.summary { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--ink); align-content: start; }
.summary dl { display: grid; gap: 8px; font-size: 14px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary .total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 600; color: var(--ink); }
.mock-note { padding: 10px 12px; border: 1px dashed var(--stone); font-size: 12.5px; color: var(--ash); }
.mock-note strong { color: var(--ink); }

/* ---------- Journal ---------- */
.article-head { display: grid; gap: 16px; padding: 26px 0 30px; }
.article-head h1 { font: 600 clamp(30px, 5vw, 52px)/1.2 var(--sans); letter-spacing: -0.04em; color: var(--ink); max-width: 18em; }
.article-head .lead { max-width: 34em; }
.article-body { display: grid; gap: 32px; }
.article-figure { display: grid; gap: 8px; }

/* ---------- Account ---------- */
.account-head { display: grid; gap: 6px; padding: 26px 0 18px; }
.account-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--ink); margin-bottom: 28px; }
.account-tabs a { flex: none; padding: 12px 14px 11px 0; margin-right: 10px; font: 500 14px/1 var(--display); font-stretch: 86%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.account-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.overview { display: grid; gap: 14px; }
.panel { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); align-content: start; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.panel h2 { font: 500 20px/1 var(--display); font-stretch: 82%; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.panel h3 { font: 600 16px/1.45 var(--sans); color: var(--ink); }
.panel .next { font-size: 14px; }
.panel-ink { background: var(--ink); color: #d6d2cb; border-color: var(--ink); }
.panel-ink h2, .panel-ink h3 { color: #f2f0ec; }
.panel-ink .caption { color: #8f8a83; }
.rows { display: grid; border-top: 1px solid var(--ink); }
.row-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row-item strong { color: var(--ink); font-weight: 600; }
.row-item .row-meta { grid-column: 1; font-size: 13px; color: var(--ash); }
.row-item .row-side { grid-row: span 2; display: grid; gap: 6px; justify-items: end; text-align: right; }
.row-item .row-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.subhead { margin: 36px 0 12px; font: 400 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }

/* ---------- Status badges (text + shape) ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 6px; border: 1px solid currentColor; font: 500 11.5px/1.6 var(--sans); white-space: nowrap; }
.badge::before { font-size: 9px; }
.badge-ok { color: var(--ok); } .badge-ok::before { content: "●"; }
.badge-wait { color: var(--wait); } .badge-wait::before { content: "◐"; }
.badge-off { color: var(--ash); } .badge-off::before { content: "○"; }
.badge-bad { color: var(--bad); } .badge-bad::before { content: "×"; font-size: 12px; }
.badge-done { color: var(--graphite); } .badge-done::before { content: "✓"; font-size: 11px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; font-size: 13px; color: var(--graphite); font-weight: 500; }
.field .optional { font-weight: 400; color: var(--ash); }
.input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); font-size: 16px; font-weight: 400; color: var(--ink); }
.input:focus { border-color: var(--ink); outline: none; box-shadow: inset 0 0 0 1px var(--ink); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.6; }
select.input { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.fieldset legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--graphite); }
.choices { display: grid; gap: 6px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); cursor: pointer; font-size: 14px; font-weight: 400; }
.choice input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice small { display: block; color: var(--ash); font-size: 12.5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; font-weight: 400; }
.check input { margin: 4px 0 0; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.form-pair { display: grid; gap: 18px; }
.hint { font-size: 12.5px; color: var(--ash); font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 14px; border: 1px solid var(--ink); font-size: 14px; background: var(--paper); }
.alert ul { display: grid; gap: 2px; }
.alert-error { border-color: var(--bad); color: var(--bad); }
.alert-error::before { content: "! "; font-weight: 700; }
.alert-ok { border-color: var(--ok); color: var(--ok); }
.alert-ok::before { content: "✓ "; }
.alert-info { border-color: var(--line); background: var(--bone); color: var(--graphite); }
.alert strong { color: inherit; }
.inline-form { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }

/* ---------- Auth (login) ---------- */
.auth { display: grid; }
.auth-photo { aspect-ratio: 16 / 9; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px var(--gutter) 64px; }
.auth-card { width: 100%; max-width: 420px; display: grid; gap: 16px; }
.auth-card .display { margin-bottom: 2px; }
.auth-card .title-ko { margin: 0 0 8px; font-size: 14px; color: var(--ash); }
.auth-card .label { font: 400 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.auth-card .notice { padding: 10px 12px; background: var(--bone); font-size: 13.5px; }
.auth-alt { font-size: 13px; color: var(--ash); text-align: center; }
.auth-demo { display: grid; gap: 12px; margin-top: 6px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 140px; }
.auth-demo .auth-demo-label { margin: 0; }
.auth-demo > .alert { margin: 0; }
.auth-demo-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.auth-demo-buttons .btn { min-width: 0; min-height: 46px; padding: 0 12px; }
.auth-demo-note { font-size: 12.5px; line-height: 1.6; color: var(--ash); }
.auth-demo.is-live .auth-demo-note { color: var(--ink); }
.auth-demo-more { display: flex; gap: 20px; font-size: 13px; color: var(--ash); }
.auth-demo-more .link-button { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.auth-demo-more .link-button:hover { color: var(--ink); }

/* ---------- Inquiry (DevTeam) ---------- */
.inquiry { display: grid; gap: 36px; }
.inquiry-list { display: grid; gap: 14px; }
.inquiry-list strong { color: var(--ink); }
.inquiry-list p { font-size: 13.5px; color: var(--ash); }
.inquiry-sent { display: grid; gap: 18px; justify-items: start; }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; border-top: 1px solid var(--ink); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ash); white-space: nowrap; }
.table td.num, .table th.num { text-align: right; }
.table a { color: var(--ink); }
.table .empty { padding: 24px 0; text-align: center; }

/* ---------- Admin ---------- */
body.admin { background: #f6f5f2; font-size: 14px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); }
.admin-topbar .wordmark-text { font-size: 15px; }
.admin .wordmark-text { white-space: nowrap; }
.topbar-right a, .topbar-right .link-button { white-space: nowrap; }
.admin-badge { display: none; margin-left: 6px; padding: 2px 6px; border: 1px solid var(--ink); font: 500 10px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.topbar-right { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.topbar-user { display: none; color: var(--ash); }
.topbar-right a, .topbar-right .link-button { color: var(--ink); }
.admin-body { display: grid; grid-template-columns: minmax(0, 1fr); }   /* the sidebar's scrolling menu row must not widen the page on mobile */
.admin-sidebar { background: var(--paper); border-bottom: 1px solid var(--line); }
.sidebar-nav { display: flex; overflow-x: auto; gap: 0; padding: 0 var(--gutter); }
.sidebar-group { display: flex; flex: none; align-items: stretch; }
.sidebar-label { display: none; }
.sidebar-nav a { flex: none; display: flex; align-items: center; padding: 12px 10px; font-size: 13px; color: var(--ash); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.sidebar-nav a[aria-current] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.sidebar-demo { display: none; }
.admin-main { min-width: 0; padding: 20px var(--gutter) 64px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; }
.page-title { font: 600 22px/1.3 var(--sans); letter-spacing: -0.03em; color: var(--ink); }
.admin .caption { font-size: 10.5px; }
.admin .panel { background: var(--paper); border-color: var(--line); }
.admin .rows { border-top-color: var(--line); }
.admin .table-wrap { background: var(--paper); border: 1px solid var(--line); padding: 0 14px; }
.admin .table th, .admin .table td { padding: 10px 12px 10px 0; }
.admin .btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
.admin .input { min-height: 38px; padding: 6px 10px; font-size: 16px; }
.admin textarea.input { min-height: 80px; }
.reset-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; padding: 10px 14px; margin-bottom: 18px; border: 1px dashed var(--stone); background: var(--paper); font-size: 13px; }
.board { display: grid; gap: 14px; }
.board-col { display: grid; gap: 12px; align-content: start; }
.board-col > h2 { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font: 500 22px/1 var(--display); font-stretch: 78%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.board-col > h2 small { font: 400 11px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ash); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.kpi { display: grid; gap: 2px; padding: 10px 12px; background: var(--paper); color: inherit; text-decoration: none; }
.kpi strong { font: 500 26px/1 var(--display); font-stretch: 80%; color: var(--ink); }
.kpi span { font-size: 11.5px; color: var(--ash); }
.kpi.is-alert strong { color: var(--bad); }
a.kpi:hover { background: var(--bone); }
.tasks { display: grid; background: var(--paper); border: 1px solid var(--line); }
.tasks > h3 { padding: 10px 12px; border-bottom: 1px solid var(--line); font: 600 13px/1.4 var(--sans); color: var(--ink); display: flex; justify-content: space-between; gap: 8px; }
.tasks > h3 a { font-weight: 400; color: var(--ash); }
.task { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; color: inherit; text-decoration: none; }
.task:last-child { border-bottom: 0; }
a.task:hover { background: var(--bone); }
.task strong { font-weight: 600; color: var(--ink); }
.task small { grid-column: 1; color: var(--ash); font-size: 12px; }
.task .badge { grid-row: span 2; align-self: center; }
.tasks .empty { padding: 14px 12px; font-size: 13px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .chip { min-height: 32px; font-size: 12.5px; }
.admin-grid { display: grid; gap: 16px; }
.roster-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.edit-grid { display: grid; gap: 12px; }
.stock-input { width: 80px; min-height: 34px; padding: 4px 8px; border: 1px solid var(--line); background: var(--paper); font-size: 16px; }
/* Product registration (/admin/catalog/new, the edit page's basic info and option rows) */
.pick-list { display: grid; gap: 6px; max-height: 232px; overflow-y: auto; padding: 10px 12px; border: 1px solid var(--line); background: var(--paper); }
.pick-head { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--ash); }
.pick-flags { display: grid; gap: 10px; }
.pick-flags .hint, .fieldset .check .hint { display: block; }
.admin-grid > * { min-width: 0; }
.variant-rows { width: 100%; table-layout: fixed; }
.variant-rows th:last-child, .variant-rows td:last-child { width: 84px; }
.variant-rows td { padding-right: 8px; vertical-align: middle; }
.variant-rows .input { min-height: 34px; min-width: 0; }
.variant-rows .stock-input { width: 72px; }
.variant-add { gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.variant-add-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.variant-add-row .input { flex: 1 1 140px; width: auto; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Mobile-only rearrangements ---------- */
@media (max-width: 767.98px) {
  .ph-crop { display: none; }
  .m-4x5 { aspect-ratio: 4 / 5; } .m-1x1 { aspect-ratio: 1 / 1; } .m-3x4 { aspect-ratio: 3 / 4; } .m-16x9 { aspect-ratio: 16 / 9; } .m-3x2 { aspect-ratio: 3 / 2; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .table-cards thead { display: none; }
  .table-cards tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table-cards td { padding: 0; border: 0; }
  .table-cards td[data-label]::before { content: attr(data-label) " · "; color: var(--ash); font-size: 12px; }
  .table-cards td.c-main { grid-column: 1; font-weight: 600; }
  .table-cards td.c-side { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .table-cards td.c-act { grid-column: 1 / -1; padding-top: 6px; }
}

/* ---------- Desktop (one breakpoint) ---------- */
@media (min-width: 768px) {
  :root { --gutter: clamp(32px, 4.4vw, 80px); }
  body { font-size: 15.5px; }
  .hide-sm { display: inline; }
  .demo-text { display: block; -webkit-line-clamp: none; padding: 0; line-height: inherit; white-space: nowrap; text-overflow: ellipsis; }
  .input { font-size: 15px; }
  .admin .input { font-size: 14px; }

  .header-row { min-height: 68px; gap: 36px; }
  .wordmark-text { font-size: 20px; }
  .nav-main { display: flex; gap: 26px; }
  .nav-main a { position: relative; padding: 6px 0; font: 500 13px/1 var(--display); font-stretch: 92%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
  .nav-main a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
  .nav-main a:hover::after, .nav-main a[aria-current]::after { transform: scaleX(1); }
  .site-header .nav-account { display: flex; align-items: center; gap: 18px; margin-left: auto; font: 400 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
  .site-header .nav-account a, .site-header .nav-account .link-button { color: var(--ink); text-decoration: none; text-transform: uppercase; }
  .site-header .nav-account form { margin: 0; }
  .nav-cart { margin-left: 0; }
  .nav-menu, .nav-quick { display: none; }

  .footer-grid { grid-template-columns: 2fr 1.4fr 1fr 0.8fr 1fr; gap: 32px; padding-top: 72px; padding-bottom: 64px; }

  .section { padding-block: 112px; }
  .section-tight { padding-block: 64px; }
  .section-head { margin-bottom: 40px; }
  .section-head .caption { width: auto; }

  /* Home cover: title across, image offset right, aside in the left margin */
  .cover { padding-block: 28px 24px; }
  .cover-title { margin-bottom: -0.32em; position: relative; z-index: 1; }
  .cover-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: end; }
  .cover-media { grid-column: 4 / -1; grid-row: 1; margin: 0; }
  .cover-aside { grid-column: 1 / 4; grid-row: 1; margin: 0; padding-bottom: 4px; align-self: end; }

  .practice { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; padding: 40px 0 48px; }
  .practice-num { grid-column: 1 / 2; }
  .practice-body { grid-column: 2 / 8; }
  .practice-media { grid-column: 9 / -1; }
  .practice:nth-child(2) .practice-media { grid-column: 8 / -1; }
  .practice:nth-child(3) .practice-media { grid-column: 10 / -1; }

  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
  .split-media { grid-column: 1 / 6; }
  .split-body { grid-column: 7 / -1; padding-top: 40px; }
  .split.flip .split-media { grid-column: 8 / -1; grid-row: 1; }
  .split.flip .split-body { grid-column: 1 / 7; grid-row: 1; padding-top: 0; }

  .online-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; }
  .online-intro { grid-column: 1 / 5; display: grid; gap: 22px; align-content: start; }
  .online-feature { grid-column: 6 / -1; display: grid; gap: 34px; }
  .program-row { grid-template-columns: 1fr 1fr; gap: 24px; }

  .objects-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; }
  .objects-grid .obj-lg { grid-column: span 2; grid-row: span 2; }

  .studio-panel { position: absolute; right: var(--gutter); bottom: 150px; width: min(440px, 40%); margin: 0; padding: 28px; }

  .stories { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .stories .story:nth-child(1) { grid-column: 1 / 6; grid-row: span 2; }
  .stories .story:nth-child(2), .stories .story:nth-child(3) { grid-column: 7 / -1; grid-template-columns: 220px 1fr; align-items: start; gap: 20px; }

  .page-hero { padding-block: 48px 56px; }
  .page-hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: end; }
  .page-hero-grid .page-hero-text { grid-column: 1 / 6; }
  .page-hero-grid .page-hero-media { grid-column: 7 / -1; margin: 0; }

  .facts { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .facts div { padding: 32px 40px 8px 0; border-bottom: 0; }
  .facts div + div { padding-left: 40px; border-left: 1px solid var(--line); }
  .facts strong { font-size: 64px; }
  .kind { grid-template-columns: 4fr 5fr 3fr; gap: 24px; align-items: start; padding: 28px 0; }
  .instructors { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
  .locations { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 0; gap: 0 16px; }
  .steps li { padding: 40px 0 0; border-bottom: 0; border-top: 1px solid var(--ink); }
  .steps li::before { top: 14px; }
  .steps li.is-now { margin: 0; padding: 40px 10px 12px; }
  .steps li.is-now::before { left: 10px; }
  .two-col { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; }
  .two-col > :first-child { grid-column: 1 / 5; }
  .two-col > :last-child { grid-column: 6 / -1; }

  .detail-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
  .gate-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
  .slot { grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; }
  .slot-act { grid-column: 3; justify-content: flex-end; margin: 0; }

  .formats { gap: 20px; }
  .needs > div { grid-template-columns: 160px 1fr; align-items: center; }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lib { grid-template-columns: 240px minmax(0, 1fr); gap: 0 40px; align-items: start; }
  .lib-tabs { grid-column: 1 / -1; margin-bottom: 24px; }
  .lib-tabs + .lib-results { grid-column: 1 / -1; }   /* tabs without the filter column (programs, continue, saved) */
  .filters { border: 0; position: sticky; top: 32px; }
  .filters summary { display: none; }
  .filters form { padding: 0; }
  .filters:not([open]) form { display: grid; }
  .class-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
  .class-grid.is-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 16px; }
  .practice-set { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .practice-set > :first-child { grid-column: 1 / 5; }
  .practice-set > :last-child { grid-column: 6 / -1; }
  .pdp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
  .buybox { position: sticky; top: 32px; }
  .cart { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; align-items: start; }
  .cart-line { grid-template-columns: 110px 1fr; gap: 20px; }
  .cart-line .ph { width: 110px; }
  .summary { position: sticky; top: 32px; }

  .article-head { padding-block: 56px 48px; }
  .article-body { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; }
  .article-body .prose { grid-column: 3 / 9; }
  .article-body .article-aside { grid-column: 10 / -1; }
  .article-body .article-figure { grid-column: 1 / -1; }

  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .overview .panel-wide { grid-column: 1 / -1; }
  .form-pair { grid-template-columns: 1fr 1fr; }

  .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 102px); }
  .auth-photo { aspect-ratio: auto; height: 100%; min-height: 560px; }
  .auth-main { padding: 64px var(--gutter); }

  .inquiry { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }

  /* Admin: left sidebar */
  .topbar-user { display: inline; }
  .admin-badge { display: inline-block; }
  .admin-body { grid-template-columns: 216px minmax(0, 1fr); min-height: calc(100vh - 56px); }
  .admin-sidebar { border-bottom: 0; border-right: 1px solid var(--line); }
  /* the menu and the demo note stick together, so the note never slides under the menu while scrolling */
  .sidebar-inner { position: sticky; top: 0; }
  .sidebar-nav { display: grid; gap: 14px; padding: 20px 0; }
  .sidebar-group { display: grid; }
  .sidebar-label { display: block; padding: 0 20px 4px; font: 400 10px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
  .sidebar-nav a { padding: 7px 20px; border-bottom: 0; border-left: 2px solid transparent; }
  .sidebar-nav a[aria-current] { border-left-color: var(--ink); background: var(--bone); }
  .sidebar-demo { display: block; margin: 6px 20px; font-size: 12px; color: var(--ash); }
  .admin-main { padding: 28px 36px 72px; }
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .admin-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
  .edit-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Admin: Online content — one class = one video (user 2026-10-25) ──
   List: 클래스 / 테마 tabs and one quiet row per item (poster, title, meta, tags only where they apply, viewers).
   Editors (functions/_lib/content-form.js) mirror the customer class / theme page in its own markup; the fields are
   typed in place, the taxonomy and links are crumb-style submenus (<details>), one sticky save bar. */
.ce-tabs { display: flex; gap: 24px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.ce-tabs a { padding: 10px 0 12px; font-size: 15px; font-weight: 500; color: var(--ash); text-decoration: none; }
.ce-tabs a span { margin-left: 4px; font: 400 12px/1 var(--mono); color: var(--stone); }
.ce-tabs a:hover { color: var(--ink); }
.ce-tabs a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.ce-lead { margin: 0 0 12px; font-size: 13px; color: var(--ash); }
.ce-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.ce-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "thumb body" "thumb side"; gap: 4px 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background 0.15s; }
.ce-row:hover { background: var(--bone); }
.ce-row:hover strong { text-decoration: underline; text-underline-offset: 0.2em; }
.ce-row .ce-thumb { grid-area: thumb; }
.ce-row.is-theme { grid-template-columns: 48px minmax(0, 1fr); }
.ce-row.is-theme .ce-thumb { aspect-ratio: 4 / 5; }
.ce-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background-color: var(--ph-bg, #e6e4df);
  background-image: repeating-linear-gradient(-58deg, transparent 0 9px, var(--ph-line, rgba(22, 21, 20, 0.055)) 9px 10px); }
.ce-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ce-play { position: absolute; left: 6px; bottom: 6px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.ce-play::after { content: ""; position: absolute; left: 7px; top: 5px; border-left: 6px solid var(--ink); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.ce-row-body { grid-area: body; display: grid; gap: 4px; min-width: 0; }
.ce-row-body strong { font-size: 15px; font-weight: 500; }
.ce-row-body small { font-size: 12.5px; color: var(--ash); }
.ce-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ce-tags:empty { display: none; }
.ce-tag { padding: 3px 7px; border: 1px solid var(--line); font: 500 11px/1.2 var(--sans); font-style: normal; color: var(--graphite); }
.ce-tag.is-off { border-color: var(--ink); color: var(--ink); }
.ce-tag.is-quiet { padding-inline: 0; border-color: transparent; font-weight: 400; color: var(--stone); }
.ce-row-side { grid-area: side; font-size: 12.5px; color: var(--ash); white-space: nowrap; }
.ce-row-side:empty { display: none; }
.ce-empty { padding: 22px 4px; font-size: 14px; color: var(--ash); list-style: none; }
.ce-head-acts { display: inline-flex; flex-wrap: wrap; gap: 8px; }
/* editors */
.ce-note { margin: 0 0 10px; font-size: 12.5px; color: var(--ash); }
.ce .crumbs { padding-top: 0; }
.ce .section-tight { padding-block: 26px; }
.ce input, .ce textarea { font: inherit; color: inherit; }
.ce-title, .ce-summary, .ce-desc, .ce-line, .ce-num, .ce-min input { width: 100%; margin: 0; padding: 2px 0; border: 0; border-bottom: 1px dashed transparent; border-radius: 0; background: transparent; outline: none; }
.ce-title:placeholder-shown, .ce-summary:placeholder-shown, .ce-desc:placeholder-shown, .ce-line:placeholder-shown, .ce-min input:placeholder-shown { border-bottom-color: var(--stone); }
.ce-title:hover, .ce-summary:hover, .ce-desc:hover, .ce-line:hover, .ce-num:hover, .ce-min input:hover { border-bottom-color: var(--line); }
.ce-title:focus, .ce-summary:focus, .ce-desc:focus, .ce-line:focus, .ce-num:focus, .ce-min input:focus { border-bottom: 1px solid var(--ink); }
.ce-title::placeholder, .ce-summary::placeholder, .ce-desc::placeholder, .ce-line::placeholder { color: var(--stone); }
.ce-title { display: block; resize: none; overflow: hidden; letter-spacing: inherit; line-height: inherit; }
.ce-title-l { line-height: 0.95; text-transform: inherit; }
.ce-summary { resize: none; overflow: hidden; font-size: 15px; line-height: 1.7; color: var(--graphite); }
.ce-desc { min-height: 7.5em; resize: vertical; font-size: 15.5px; line-height: 1.8; }
.ce-min { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; }
.ce-min input { width: 3.4em; text-align: right; border-bottom-color: var(--line); }
.ce-min small { font-size: 11.5px; color: var(--ash); }
.ce-num { width: 2.4em; text-align: center; border-bottom-color: var(--line); }
.ce-player { position: relative; aspect-ratio: 16 / 9; background: #1f1e1c repeating-linear-gradient(-58deg, transparent 0 15px, rgba(255, 255, 255, 0.05) 15px 16px); color: #d8d4cd; }
.ce-drop { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center; cursor: pointer; }
.ce-drop::before { content: ""; position: absolute; inset: 14px; border: 1px dashed rgba(255, 255, 255, 0.3); pointer-events: none; transition: border-color 0.2s; }
.ce-drop:hover::before, .ce-drop:focus-within::before { border-color: #f2f0ec; }
.ce-drop:focus-within::before { border-style: solid; }
.ce-drop-t { font: 500 15px/1 var(--sans); letter-spacing: 0.02em; color: #f2f0ec; }
.ce-drop-s { font: 400 11px/1.4 var(--mono); letter-spacing: 0.06em; color: #a5a098; }
.ce-file { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; font-size: 0; }
.ce-picked { margin: 0; font-size: 12.5px; color: #f2f0ec; }
.ce-picked.is-bad { color: #f3b8ab; }
.ce-player.is-filled .ce-picked { position: absolute; left: 12px; top: 13px; z-index: 2; max-width: calc(100% - 150px); padding: 5px 10px; background: rgba(22, 21, 20, 0.82); }
.ce-video { display: block; width: 100%; height: 100%; background: #000; }
.ce-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: 500 12px/1 var(--sans); color: var(--ink); cursor: pointer; white-space: nowrap; }
.ce-pill:hover { border-color: var(--ink); }
.ce-pill:focus-within, .ce-pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ce-pill input[type="checkbox"] { width: 13px; height: 13px; margin: 0; accent-color: var(--ink); }
.ce-swap { position: absolute; top: 12px; right: 12px; z-index: 2; border-color: transparent; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.ce-poster { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.ce-poster-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background-color: var(--ph-bg, #e6e4df);
  background-image: repeating-linear-gradient(-58deg, transparent 0 9px, var(--ph-line, rgba(22, 21, 20, 0.055)) 9px 10px); }
.ce-poster-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ce-poster-body { display: grid; gap: 6px; }
.ce-poster-body strong { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ce-poster-body small { margin-top: -4px; font-size: 12px; color: var(--ash); }
.ce-poster-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ce-hint { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ash); }
.ce-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
/* crumb-style submenus */
.ce-menu { position: relative; display: inline-block; }
.ce-menu > summary { display: inline-flex; align-items: center; gap: 7px; padding-bottom: 1px; border-bottom: 1px solid transparent; list-style: none; cursor: pointer; }
.ce-menu > summary::-webkit-details-marker { display: none; }
.ce-menu > summary::after { content: ""; border-top: 5px solid currentColor; border-left: 4px solid transparent; border-right: 4px solid transparent; opacity: 0.6; transition: transform 0.2s; }
.ce-menu > summary:hover, .ce-menu[open] > summary { border-bottom-color: var(--stone); }
.ce-menu[open] > summary::after { transform: rotate(180deg); }
.ce-menu > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ce-menu-list { position: absolute; left: -10px; top: calc(100% + 8px); z-index: 30; display: grid; min-width: 230px; max-height: 340px; overflow: auto; padding: 6px; border: 1px solid var(--line); background: var(--paper);
  box-shadow: 0 20px 44px -26px rgba(22, 21, 20, 0.45); font: 400 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.ce-menu-wide { min-width: min(440px, calc(100vw - 96px)); }
.ce-menu-list { max-width: calc(100vw - 40px); }
.ce-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; }
.ce-opt:hover { background: var(--bone); }
.ce-opt input, .ce-weeks input, .ce-seg input { position: absolute; opacity: 0; pointer-events: none; }
label.ce-opt > input + span::before, .ce-opt-theme > label > input + span::before { content: ""; display: inline-block; width: 18px; font-size: 12px; }
label.ce-opt > input:checked + span::before, .ce-opt-theme > label > input:checked + span::before { content: "✓"; }
.ce-opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.ce-opt small { margin-left: 4px; font-size: 12px; color: var(--ash); }
.ce-opt-theme { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.ce-opt-theme > label { display: flex; align-items: center; cursor: pointer; }
.ce-weeks { display: flex; gap: 4px; }
.ce-weeks label { position: relative; }
.ce-weeks span { display: inline-block; padding: 3px 7px; border: 1px solid var(--line); font-size: 11.5px; cursor: pointer; }
.ce-weeks input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.ce-weeks input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.ce-map { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; margin-top: 20px; font-size: 14px; color: var(--ink); }
.ce-map + .ce-hint { margin-top: 6px; }
.ce-map-k { font: 400 11px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ash); }
.ce-map-sep { color: var(--stone); }
/* save bar */
.ce-savebar { position: sticky; bottom: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; padding: 12px 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.96); box-shadow: 0 -10px 24px -20px rgba(22, 21, 20, 0.35); }
.ce-seg { display: inline-flex; border: 1px solid var(--ink); }
.ce-seg label { position: relative; }
.ce-seg span { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ce-seg label + label span { border-left: 1px solid var(--ink); }
.ce-seg input:checked + span { background: var(--ink); color: var(--paper); }
.ce-seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.ce-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.ce-check input { margin: 0; accent-color: var(--ink); }
.ce-savebar .btn { min-height: 40px; padding: 0 22px; }
.ce-bar-hint { flex: 1 1 16em; }
.ce-del { margin-left: auto; font-size: 12.5px; color: var(--bad); }
.ce-keep { margin-top: 12px; }
.ce-default { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
/* theme editor */
.ce-theme .page-hero { padding-block: 6px 26px; }
.ce-cover { position: relative; }
.ce-cover img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ce-cover.is-filled .ph { display: none; }
.ce-cover .ce-swap-2 { top: 50px; }
.ce-week .ce-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.ce-item .mark { font: 400 11px/1 var(--mono); color: var(--ash); }
.ce-item strong { font-weight: 500; }
.ce-item-acts { display: inline-flex; gap: 4px; }
.ce-icon { width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); background: var(--paper); font-size: 13px; color: var(--ink); cursor: pointer; }
.ce-icon:hover:not(:disabled) { border-color: var(--ink); }
.ce-icon:disabled { opacity: 0.3; cursor: default; }
.ce-week > .ce-empty { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ce-add { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 12px 0 20px; font-size: 13.5px; }
/* customer class page: the uploaded video, and posters on cards */
.player-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-under { display: grid; gap: 8px; margin-top: 10px; }
.player-under .actions { margin: 0; }
.ph-photo::before { content: none; }
.ph-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
  .ce-row { grid-template-columns: 112px minmax(0, 1fr) auto; grid-template-areas: "thumb body side"; gap: 16px; padding: 12px 8px; }
  .ce-row.is-theme { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .ce-row-side { text-align: right; }
}
