/* Ocap web prototype. Tokens follow the existing app (web/app/app.css): blue on a cool white ground, Pretendard.
   The Pretendard @font-face lives in the page so the asset path can differ between the repo and a published copy. */

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f2f6fc;
  --ink: #1c2431;
  --ink-2: #40536d;
  --muted: #5b677a;
  --line: #e5eaf2;
  --line-2: #c9d3e3;
  --primary: #2469ed;
  --primary-ink: #1a52c2;
  --on-primary: #ffffff;
  --primary-soft: #eaf2ff;
  --pick: #2469ed;
  --pick-2: #1a52c2;
  --good: #1f6f4c;
  --violet: #6a3fd1;
  --violet-soft: #efe9fd;
  --good-soft: #e5f5ec;
  --warn: #8a5310;
  --warn-soft: #fbf0e1;
  --bad: #b4442c;
  --bad-soft: #fbe9e4;
  --star: #c98a00;
  --shadow: 0 1px 2px rgba(28, 36, 49, .06), 0 8px 24px rgba(28, 36, 49, .06);
  --float: 0 12px 32px rgba(16, 24, 40, .16);
  --caution: #b45309; /* 2026-12-02 다듬기⑥: 주의 상태는 주황, 빨강(--bad)은 되돌릴 수 없는 버튼만 */
  --radius: 16px;
  --radius-lg: 22px;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b677a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10141c; --surface: #171d28; --surface-2: #1d2533; --ink: #e8edf6; --ink-2: #c3cddd; --muted: #9aa6ba;
    --line: #2a3344; --line-2: #3a4558; --primary: #7ea6ff; --primary-ink: #a9c3ff; --on-primary: #0f1a33; --primary-soft: #1f2b47;
    --good: #6fd3a2; --good-soft: #17322a; --violet: #b9a2ff; --violet-soft: #2a2240; --warn: #e8b46a; --warn-soft: #362a19; --bad: #f19a84; --bad-soft: #3a221d; --star: #f2c14e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); --float: 0 12px 32px rgba(0, 0, 0, .45); --caution: #f0a35c; --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa6ba' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10141c; --surface: #171d28; --surface-2: #1d2533; --ink: #e8edf6; --ink-2: #c3cddd; --muted: #9aa6ba;
  --line: #2a3344; --line-2: #3a4558; --primary: #7ea6ff; --primary-ink: #a9c3ff; --on-primary: #0f1a33; --primary-soft: #1f2b47;
  --good: #6fd3a2; --good-soft: #17322a; --violet: #b9a2ff; --violet-soft: #2a2240; --warn: #e8b46a; --warn-soft: #362a19; --bad: #f19a84; --bad-soft: #3a221d; --star: #f2c14e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); --float: 0 12px 32px rgba(0, 0, 0, .45); --caution: #f0a35c; --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa6ba' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { font-size: 15px; line-height: 1.6; min-width: 320px; }
img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }

/* Prototype banner */
.proto-bar { background: var(--ink); color: var(--bg); font-size: 13px; text-align: center; padding: 6px max(16px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px)); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px; text-align: center; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--surface-2); color: var(--ink); }
.btn--primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-ink); border-color: var(--primary-ink); color: var(--on-primary); }
.btn--ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--danger { color: var(--bad); border-color: var(--line-2); }
.btn--danger-solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); }
.icon { width: 20px; height: 20px; flex: none; }

/* Chips, badges */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge--blue { background: var(--primary-soft); color: var(--primary-ink); }
.badge--good { background: var(--good-soft); color: var(--good); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--bad { background: var(--bad-soft); color: var(--bad); }

/* Cards and layout helpers */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
/* Phones: cards keep a little less padding so content is not squeezed into a narrow column. */
@media (max-width: 560px) { .card { padding: 20px; } }
/* A card that holds a short list or settings reads better at a readable width than across a wide screen. */
.card--narrow { width: 100%; max-width: 720px; }
.card--flat { box-shadow: none; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--primary); }
.section-title { font-size: 32px; font-weight: 800; line-height: 1.25; }

/* Public header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: 1180px; margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand__word { font-size: 26px; font-weight: 850; letter-spacing: -0.07em; }
.brand__divider { width: 1px; height: 16px; background: var(--line-2); }
.brand__alias { font-size: 14px; font-weight: 600; color: var(--muted); }
.site-menu { display: flex; align-items: center; gap: 16px; flex: 1; }
.site-nav { display: flex; gap: 2px; flex: 1; }
.site-nav a { padding: 10px 14px; border-radius: 10px; color: var(--ink); font-weight: 600; }
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--primary); }
.site-actions { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; margin-left: auto; }
  .site-menu { display: none; }
  .site-header[data-open="true"] .site-menu { display: flex; flex-direction: column; align-items: stretch; gap: 12px; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .site-header[data-open="true"] .site-nav { flex-direction: column; }
  .site-header[data-open="true"] .site-nav a { min-height: 48px; display: flex; align-items: center; }
  .site-header[data-open="true"] .site-actions .btn { flex: 1; }
}

.page { max-width: 1180px; margin: 0 auto; padding-block: 48px 80px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.page--narrow { max-width: 880px; }
@media (max-width: 560px) { .page { padding-block: 36px 56px; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: #f5f8ff; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero__inner { position: relative; max-width: 1180px; margin: 0 auto; padding-block: 72px 88px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 20px; color: #1c2431; }
.hero__inner h1 { font-size: clamp(38px, 6vw, 58px); line-height: 1.12; letter-spacing: -0.045em; font-weight: 850; max-width: 560px; }
.hero__inner h1 span { color: #2469ed; }
.hero__lead { font-size: clamp(16px, 2vw, 19px); color: #40536d; max-width: 430px; line-height: 1.65; }
/* A soft light veil behind the text keeps the copy readable over the product picture. */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(245, 248, 255, .96) 0%, rgba(245, 248, 255, .88) 34%, rgba(245, 248, 255, 0) 58%); pointer-events: none; }
.hero__inner { z-index: 2; }
.hero .btn { border-color: #c9d3e3; }
.hero .btn--primary { background: #2469ed; border-color: #2469ed; color: #fff; }
.hero .btn:not(.btn--primary) { background: #fff; color: #1c2431; }
/* 2026-11-17 user (via Ocap_Browser web): phone hero after the browser-web hero mockup. Phone only (.mob-only); the
   tablet demo is hero-demo/ in a frame drawn at 560×400 and scaled to the column by --k (O.heroDemo). */
@media (max-width: 767px) {
  .mhero { position: relative; overflow: hidden; padding: 32px max(16px, env(safe-area-inset-right, 0px)) 28px max(16px, env(safe-area-inset-left, 0px)); text-align: center; color: #1c2431; background: radial-gradient(70% 38% at 85% 62%, #d6e4ff, transparent 70%), radial-gradient(55% 30% at 15% 80%, #e6e0ff, transparent 70%), #f6f8fc; }
  .mhero__k { margin: 0 0 8px; color: #2469ed; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
  .mhero h1 { margin: 0; font-size: clamp(34px, 10.6vw, 44px); line-height: 1.2; font-weight: 800; letter-spacing: -0.05em; }
  .mhero h1 em { font-style: normal; color: #2469ed; }
  .mhero__lead { margin: 14px 0 0; font-size: clamp(15px, 4.2vw, 17px); line-height: 1.6; color: #4a5568; letter-spacing: -0.01em; }
  .mhero h1 { position: relative; width: fit-content; margin-inline: auto; }
  .mhero__spark { position: absolute; right: -6px; top: -22px; width: 26px; height: 30px; color: #2469ed; pointer-events: none; }
  /* store row as in the mockup: two text links with a bar between; no QR on a phone, a tap opens the store (2026-11-17 user) */
  .mhero__store { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 14px auto 0; }
  .mhero__sl { height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 0 4px; border: 0; border-radius: 8px; background: none; color: #4a5568; font: inherit; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer; }
  .mhero__sl:active { color: #1c2431; }
  .mhero__sl svg { width: 20px; height: 20px; flex: none; }
  .mhero__sl svg.ap { width: 17px; color: #111827; }
  .mhero__bar { width: 1px; height: 16px; background: #d3dae6; }
  /* the demo runs edge to edge so the small app text inside the tablet is as large as the screen allows (user test) */
  .mhero__demo { --k: .64; position: relative; width: calc(100% + 32px); max-width: 560px; margin: 22px -16px 0; aspect-ratio: 560 / 400; }
  /* 2026-11-23 the phone demo is a video now: its own 853×480 shape; the white of the video melts into the hero background (multiply) */
  .mhero__demo--v { aspect-ratio: 854 / 480; }
  /* 2026-11-24 새 영상(854×480)은 바탕이 연회색(239,240,244)이라 그대로 곱하면 칸이 어둡게 보임 → 살짝 밝혀 바탕을 흰색으로 */
  .mhero__vid { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; filter: brightness(1.05); }
  /* a phone on its side (user test, 740×360): smaller title and a demo that fits the short screen */
  @media (orientation: landscape) and (max-height: 500px) {
    .mhero { padding-top: 20px; }
    .mhero h1 { font-size: 32px; }
    .mhero__lead { margin-top: 10px; font-size: 15px; }
    .mhero__store { margin-top: 10px; }
    .mhero__demo { width: 100%; max-width: 420px; margin: 18px auto 0; }
  }
  /* phone '오답노트의 장점' after the mockup's second section (2026-11-17 user) */
  .mwhy { padding: 56px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); background: #fff; text-align: center; color: #1c2431; }
  .mwhy__k { margin: 0 0 10px; color: #2469ed; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
  .mwhy__t { margin: 0; font-size: clamp(26px, 7.6vw, 30px); line-height: 1.32; font-weight: 800; letter-spacing: -0.035em; }
  .mwhy__t em { font-style: normal; color: #2469ed; }
  .mwhy__s span { white-space: nowrap; }
  .mwhy__s { margin: 14px 0 0; font-size: clamp(13.5px, 4.1vw, 16px); line-height: 1.7; font-weight: 500; letter-spacing: -0.02em; color: #4a5568; }
  /* 2026-11-17 user ('01 … 사람과 글이 겹치는 현상', '글씨를 조금 더 작게'): words stay on the picture as in the mockup but smaller,
     and the photo is drawn a little larger from its left edge so the person sits further right, clear of the words */
  .mwhy__view { position: relative; margin-top: 32px; aspect-ratio: 16 / 9; border-radius: 22px; border: 1px solid #e3e9f2; background: #f9fbfe; overflow: hidden; container-type: inline-size; text-align: left; }
  .mwp { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
  .mwp.on { opacity: 1; visibility: visible; transition: opacity .45s ease; }
  .mwp img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transform-origin: 0 55%; }
  /* 2026-11-19 user ('여기는 오른쪽이 짤렸네 사진'): 03 picture has the boy at the right edge, so it grows toward the left instead */
  .mwp:nth-child(3) img { transform: scale(1.06); transform-origin: 100% 55%; }
  /* 2026-11-22 user ('사람 우측 짤린다'): 01 picture's tablet sits at the right edge too, so it also grows toward the left */
  .mwp:nth-child(1) img { transform: scale(1.06); transform-origin: 100% 55%; }
  .mwp::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246,248,253,.85), rgba(246,248,253,.5) 38%, rgba(246,248,253,0) 58%); pointer-events: none; }

  .mwp__txt { position: absolute; left: 4.6cqw; top: 5cqw; z-index: 1; }
  .mwp__no { display: inline-grid; place-items: center; width: 30px; height: 18px; border-radius: 99px; background: #d9e5fb; color: #1f66e6; font-size: 10px; font-weight: 800; line-height: 1; }
  .mwp__txt h3 { margin: 4px 0 0; font-size: clamp(12.5px, 3.75vw, 15px); line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; color: #141a24; white-space: nowrap; }
  .mwp__txt h3 em { position: relative; display: inline-block; font-style: normal; color: #2a76f2; }
  .mwp__txt h3 em::after { content: ''; position: absolute; left: -.05em; right: -.15em; bottom: -.42em; height: .36em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 20' preserveAspectRatio='none'%3E%3Cpath d='M6 11 C70 4 160 2 252 5 C258 5.2 258 11.5 252 11.6 C165 10 80 13 9 21 C2 21.8 0 12 6 11Z' fill='%232a76f2'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
  .mwhy__tabs { position: relative; margin-top: 24px; display: grid; text-align: left; border-left: 3px solid #e6ebf3; }
  .mwhy__tab { position: relative; display: flex; align-items: baseline; gap: 12px; width: 100%; min-height: 56px; padding: 16px 0 16px 18px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
  .mwhy__tab::before { content: ''; position: absolute; left: -3px; top: 0; bottom: 0; width: 3px; background: transparent; transition: background .3s; }
  .mwhy__tab.on::before { background: #2469ed; }
  .mwhy__tab i { flex: none; font-style: normal; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: #c3cad6; }
  .mwhy__tab b { font-size: clamp(17px, 5.2vw, 20px); font-weight: 700; letter-spacing: -0.035em; color: #a3acbb; }
  .mwhy__tab.on i { color: #2469ed; }
  .mwhy__tab.on b { color: #1c2431; font-weight: 800; }
  .mwhy__tab:focus-visible { outline: 2px solid #2469ed; outline-offset: 2px; }
  /* phone band of voices after the mockup's third section (2026-11-17 user); sizes are the mockup's phone sizes */
  .mpain { padding: 48px 0 64px; background: #fff; overflow: hidden; text-align: center; color: #1c2431; }
  .mpain__k { margin: 0 0 10px; padding: 0 16px; color: #2469ed; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
  .mpain__t { margin: 0; padding: 0 16px; font-size: clamp(26px, 7.6vw, 30px); line-height: 1.32; font-weight: 800; letter-spacing: -0.035em; }
  .mpain__s { margin: 14px 0 0; padding: 0 16px; font-size: 15px; line-height: 1.7; font-weight: 500; letter-spacing: -0.02em; color: #4a5568; }
  .mpain__band { position: relative; margin-top: 36px; padding: 14px 0 26px; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); contain: layout paint; }
  .mpain__track { --gap: 14px; display: flex; gap: var(--gap); width: max-content; margin: 0; padding: 0; list-style: none; animation: mpainFlow 38s linear infinite; will-change: transform; }
  .mpain__band:active .mpain__track { animation-play-state: paused; }
  @keyframes mpainFlow { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
  .mpc { --a: #2f6fe8; --a-bg: #e9f0fd; --a-ink: #2457c5; position: relative; flex: none; width: max-content; min-width: 260px; display: flex; flex-direction: column; padding: 20px 20px 18px; border: 1px solid #eceff5; border-radius: 18px; background: linear-gradient(180deg, #fff, #fbfcfe); box-shadow: 0 16px 34px -24px rgba(23,45,100,.28); overflow: hidden; text-align: left; }
  .mpc--green { --a: #2f9e6b; --a-bg: #e4f4ea; --a-ink: #1f7a50; }
  .mpc--purple { --a: #8a6cf0; --a-bg: #eeeafd; --a-ink: #5b44c2; }
  .mpc--sky { --a: #4a95ef; --a-bg: #e5f0fd; --a-ink: #2563c9; }
  .mpc::after { content: ''; position: absolute; right: -70px; bottom: -78px; width: 260px; height: 150px; border-radius: 50%; background: linear-gradient(115deg, transparent 25%, var(--a-bg) 60%, color-mix(in srgb, var(--a) 22%, var(--a-bg))); transform: rotate(-16deg); pointer-events: none; }
  .mpc__q { display: block; height: 22px; margin: 0 0 10px; font: 700 46px/1 'Noto Serif KR', Georgia, serif; color: var(--a); letter-spacing: -0.04em; }
  .mpc p { position: relative; z-index: 1; margin: 0 0 20px; font-size: 13.5px; line-height: 1.62; font-weight: 500; letter-spacing: -0.025em; color: #1c2431; white-space: nowrap; }
  .mpc__who { position: relative; z-index: 1; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding: 7px 14px 7px 12px; border-radius: 99px; background: var(--a-bg); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: #4b5563; }
  .mpc__who svg { width: 16px; height: 16px; fill: none; stroke: var(--a); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .mpc__who b { margin-right: 4px; font-weight: 800; color: var(--a-ink); }
  @media (prefers-reduced-motion: reduce) {
    .mpain__track { animation: none; flex-direction: column; align-items: center; width: auto; padding: 0 16px; }
    .mpain__track [aria-hidden="true"] { display: none; }
    .mpain__band { -webkit-mask: none; mask: none; }
  }
  /* phone fourth part after the mockup's '3→4 연결' and '기능 소개로 이어짐' (2026-11-17 user); the line is shorter than PC's 210px */
  .mpain { padding-bottom: 56px; }
  .mfix { display: flex; flex-direction: column; align-items: center; padding: 0 16px; }
  .mfix__link { display: flex; flex-direction: column; align-items: center; margin: 12px 0 28px; }
  .mfix__line { position: relative; width: 2px; height: 72px; background: #e3e9f4; overflow: hidden; }
  .mfix__line::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(36,105,237,.25), #2469ed 40px); transform: scaleY(0); transform-origin: 50% 0; transition: transform 1.4s cubic-bezier(.55,.05,.35,1); }
  .mfix__arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #2469ed; box-shadow: 0 0 0 1px #d6e2fb, 0 10px 22px -12px rgba(36,105,237,.55); transition: background .35s, color .35s, box-shadow .35s, transform .45s cubic-bezier(.16,1,.3,1); }
  .mfix__arrow svg { width: 18px; height: 18px; }
  .mfix__link.go .mfix__line::after { transform: none; }
  .mfix__link.go .mfix__arrow { background: #2469ed; color: #fff; box-shadow: 0 0 0 1px #2469ed, 0 12px 24px -10px rgba(36,105,237,.7); transform: scale(1.08); transition-delay: 1.3s; }
  .mfix__k { margin: 0 0 10px; color: #2469ed; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
  .mfix__t { margin: 0; font-size: clamp(26px, 7.6vw, 30px); line-height: 1.32; font-weight: 800; letter-spacing: -0.035em; color: #1c2431; white-space: nowrap; }
  .mfix__t em { font-style: normal; color: #2469ed; }
  .mfix__s { margin: 14px 0 0; font-size: clamp(13.5px, 4.1vw, 15px); line-height: 1.7; font-weight: 500; letter-spacing: -0.02em; color: #4a5568; white-space: nowrap; }
  .mfix__more { display: inline-flex; align-items: center; gap: 4px; height: 44px; margin-top: 24px; padding: 0 14px 0 20px; border-radius: 999px; background: #2469ed; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
  .mfix__more:active { background: #1a52c2; }
  .mfix__more svg { width: 17px; height: 17px; }
  /* 2026-11-19 user ('모웹은 기능 자세히보기 밑에 다 없애자'): the five-feature list under the button is gone on the phone */
  .mfix .mff { display: none; }
  /* 2026-11-19 user ('이부분 파란 부분에도 브웹처럼 이쁘게 디자인해봐'): closing band like the web .app-band */
  .mband { background: linear-gradient(120deg, var(--primary) 0%, #4f7cf0 60%, #6d6af0 100%); color: #fff; }
  .mband__in { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 20px 60px; text-align: center; }
  .mband__ic { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 4px; border-radius: 17px; background: rgba(255,255,255,.16); }
  .mband__ic svg { width: 28px; height: 28px; }
  /* type ('글씨 굵기등도 한번 생각해봐'): title heavier and a touch bigger, line medium weight so it reads on the gradient, store labels bold */
  .mband h2 { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 700; letter-spacing: -0.025em; color: #fff; word-break: keep-all; }
  .mband p { margin: -4px 0 0; font-size: min(14.5px, 3.95vw); line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; color: rgba(255,255,255,.82); white-space: nowrap; }
  .mband__store { gap: 10px; margin-top: 14px; }
  .mband__store .mhero__bar { display: none; }
  .mband__store .mhero__sl { height: 46px; padding: 0 16px; border-radius: 99px; background: rgba(255,255,255,.16); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
  .mband__store .mhero__sl svg.ap { color: #fff; }
  .mband__store .mhero__sl:active { background: rgba(255,255,255,.26); color: #fff; }
  .mff { display: grid; gap: 4px; width: min(100%, 320px); margin: 28px auto 0; padding: 0; list-style: none; text-align: left; }
  .mff__it { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 6px 4px; }
  .mff__ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #eaf2ff; color: #2469ed; }
  .mff__ic svg { width: 24px; height: 24px; }
  .mff__tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .mff b { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: #1c2431; }
  .mff small { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: #8a94a6; }
  /* the five features drop in from the top one after another, once (the place is kept, so nothing below moves) */
  .mff.wait li { opacity: 0; transform: translateY(-16px); }
  .mff.wait.in li { opacity: 1; transform: none; transition: opacity .45s ease, transform .6s cubic-bezier(.16,1,.3,1); }
  .mff.wait.in li:nth-child(2) { transition-delay: .09s; }
  .mff.wait.in li:nth-child(3) { transition-delay: .18s; }
  .mff.wait.in li:nth-child(4) { transition-delay: .27s; }
  .mff.wait.in li:nth-child(5) { transition-delay: .36s; }
  @media (prefers-reduced-motion: reduce) { .mfix__line::after, .mfix__arrow { transition: none !important; } }
  .mhero__demo iframe { position: absolute; left: 0; top: 0; width: 560px; height: 400px; border: 0; background: transparent; transform: scale(var(--k)); transform-origin: 0 0; pointer-events: none; color-scheme: light; }
}
@media (max-width: 720px) {
  .hero__bg { opacity: .1; }
}

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step-num { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-ink); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.split > * { flex: 1 1 340px; min-width: 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 4px 20px; }
.faq summary { min-height: 52px; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 18px; height: 18px; margin-left: auto; background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%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 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; }
.faq details[open] summary::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.faq details p { padding-bottom: 16px; color: var(--ink-2); }
/* 2026-10-27 user: a full-width light line sits between the question and the answer. */
.faq details p { border-top: 1px solid var(--line); padding-top: 14px; }

/* Footer */
.site-footer { background: #1c2431; color: #c9d3e3; }
.site-footer__inner { max-width: 1180px; margin: 0 auto; padding-block: 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-wrap: wrap; gap: 24px 56px; font-size: 14px; }
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: #c9d8ff; }

/* Pricing */
.toggle-group { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.toggle-group button { min-height: 40px; padding: 6px 16px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; color: var(--ink-2); }
.toggle-group button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.plan--pick { border: 2px solid var(--primary); }
.plan__flag { position: absolute; top: -12px; left: 20px; background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.plan__price { font-size: 30px; font-weight: 850; letter-spacing: -0.03em; }
.plan__price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: "✓"; color: var(--good); font-weight: 800; }
.plan li.no::before { content: "–"; color: var(--muted); }
.plan .btn { margin-top: auto; }
.seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: var(--surface-2); font-size: 20px; font-weight: 700; }
.stepper output { min-width: 56px; text-align: center; font-weight: 800; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 700; color: var(--ink-2); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; }

/* Start */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.choice { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 20px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--surface); min-height: 120px; }
.choice[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.choice strong { font-size: 18px; }
.login-btn { width: 100%; justify-content: flex-start; gap: 12px; }
.login-btn .mark { width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; }
.mark--google { background: #ffffff; border: 1px solid #c9d3e3; color: #4285f4; }
.mark--naver { background: #03c75a; color: #ffffff; }
.mark--id { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-2); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.input, select.input, textarea.input { min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); width: 100%; }
textarea.input { min-height: 96px; resize: vertical; }
.notice { border-radius: 14px; padding: 12px 14px; font-size: 14px; background: var(--primary-soft); color: var(--primary-ink); }
.notice--warn { background: var(--warn-soft); color: var(--warn); }
.notice--good { background: var(--good-soft); color: var(--good); }

/* App shell */
.app { display: flex; min-height: calc(100vh - 31px); }
.sidebar { width: 240px; flex: none; background: var(--bg); padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; }
.sidebar .brand { padding: 0 8px 14px; }
.side-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 650; }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 750; }
.side-link[aria-current="page"] .icon { color: var(--primary); }
.side-spacer { flex: 1; }
.plan-mini { border-radius: 14px; padding: 12px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; align-items: center; gap: 10px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(20px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
/* A long title wraps at its spaces instead of ending in "…" (화면 표시 규칙: "…" only for one-line list previews). */
.topbar h1 { font-size: 20px; font-weight: 800; flex: 1; min-width: 0; line-height: 1.3; }
.topbar .brand { display: none; }
.content { padding: 24px max(16px, env(safe-area-inset-right, 0px)) 96px max(20px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 20px; max-width: 1180px; width: 100%; }
.tabbar { display: none; }
@media (max-width: 900px) {
  .sidebar { display: none; }
  .topbar .brand { display: inline-flex; }
  .topbar h1 { font-size: 17px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 48px; justify-content: center; font-size: 12px; font-weight: 650; color: var(--muted); border-radius: 12px; }
  .tabbar a[aria-current="page"] { color: var(--primary); }
}

/* Stat cards */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: left; color: var(--ink); }
a.stat:hover, button.stat:hover { border-color: var(--primary); color: var(--ink); }
.stat .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 26px; font-weight: 850; font-variant-numeric: tabular-nums; }
.bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 140px; }
.week div { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; font-size: 12px; color: var(--muted); }
.week i { display: block; width: 100%; max-width: 36px; border-radius: 8px 8px 4px 4px; background: var(--primary); }
.week b { font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Problem list and cards */
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pcard { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink); text-align: left; }
.pcard:hover { border-color: var(--primary); color: var(--ink); }
.pcard__text { font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stars { display: inline-flex; gap: 1px; font-size: 15px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { flex: 1 1 180px; min-width: 0; position: relative; }
.search input { padding-left: 40px; }
.search svg { position: absolute; left: 12px; top: 12px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters .label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); }

/* Digital problem */
.digital { font-size: 20px; line-height: 1.8; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
@media (max-width: 560px) { .digital { font-size: 18px; padding: 18px 20px; } }
/* R4 (2026-10-23): the problem number on the first line's baseline, the same size, bold, in the accent colour; the text
   hangs beside it. R5: a row of choices or numbered items is centred, whole units with wide gaps; a formula line and a
   drawn line are centred too, with the same space above and below. */
.q { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .5em; align-items: baseline; }
.q--plain { grid-template-columns: minmax(0, 1fr); }
.q__no { font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.q__body { min-width: 0; }
.q__line { display: block; }
.q__line--choices { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .25em var(--ch-gap, 1.6em); margin-block: .65em; }
.q__line--math, .q__line--fig { text-align: center; margin-block: .65em; }
.q__line--fig { white-space: pre-wrap; }
.q__body > :first-child { margin-top: 0; }
.q__body > :last-child { margin-bottom: 0; }
.ch { max-width: 100%; }
/* R7: every fraction stacked, a little smaller than the text, one unit. R6: signs spaced alike on both sides. □ is a box of
   text height. */
.frac { display: inline-flex; flex-direction: column; align-items: stretch; vertical-align: middle; font-size: .78em; line-height: 1.12; margin: 0 .1em; text-align: center; white-space: nowrap; }
.frac > :first-child { border-bottom: max(1.5px, .075em) solid currentColor; padding: 0 .16em .05em; }
.frac > :nth-child(2) { padding: .05em .16em 0; }
.frac-w { margin-right: .03em; }
.op { margin: 0 .26em; }
.sq { display: inline-block; box-sizing: border-box; width: .9em; height: .9em; margin: 0 .08em; border: max(1.5px, .07em) solid currentColor; border-radius: .1em; vertical-align: -.12em; }
.sq--in { width: auto; height: auto; min-width: .9em; min-height: .9em; padding: .02em .18em; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; font: inherit; color: inherit; line-height: 1.1; background: none; }
button.sq--in { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, transparent); cursor: text; }
button.sq--in:hover { background: var(--primary-soft); }
.sq--on { min-width: 1.4em; }
.sq--ok { border-color: var(--good); }
.sq--no { border-color: var(--bad); }
.sqrt__b { border-top: max(1.5px, .07em) solid currentColor; padding: 0 .08em; margin-left: .02em; }
.ovl { text-decoration: overline; }
.tok { border: 0; background: transparent; padding: 0 2px; font: inherit; color: inherit; border-radius: 6px; }
.editing .tok { background: var(--primary-soft); color: var(--primary-ink); box-shadow: inset 0 -2px 0 var(--primary); cursor: pointer; min-width: 22px; }
.tok.changed { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 -2px 0 var(--warn); }
.photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.photo img { display: block; width: 100%; height: auto; }
.detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .detail { grid-template-columns: 1fr; } }
.side-card { display: flex; flex-direction: column; gap: 16px; }
.chip[aria-checked="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }
.choice[aria-checked="true"] { border-color: var(--primary); background: var(--primary-soft); }
.choice[disabled] { opacity: .5; cursor: not-allowed; }
.choice .icon { color: var(--primary); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 14px; border: 1px solid var(--line); }
.tabs button, .tabs a { min-height: 40px; padding: 6px 14px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* Upload */
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 48px 16px; border: 2px dashed var(--line-2); border-radius: var(--radius-lg); background: var(--surface); text-align: center; }
.dropzone[data-over="true"] { border-color: var(--primary); background: var(--primary-soft); }
.crop { position: relative; user-select: none; touch-action: none; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); max-width: 720px; }
.crop img { display: block; width: 100%; pointer-events: none; }
.crop__box { position: absolute; border: 3px solid var(--primary); background: rgba(36, 105, 237, .12); box-shadow: 0 0 0 9999px rgba(15, 20, 30, .35); }
.progress { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 16px; text-align: center; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--primary-soft); border-top-color: var(--primary); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } * { scroll-behavior: auto !important; } }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } .compare[data-tab="photo"] .c-digital, .compare[data-tab="digital"] .c-photo { display: none; } }

/* Review */
.grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grade .btn { min-height: 56px; font-size: 17px; }
.btn--right { background: var(--good); border-color: var(--good); color: #fff; }
.btn--wrong { background: var(--bad); border-color: var(--bad); color: #fff; }
.solution { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.solution ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* Admin */
.seat { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 76px; }
@media (max-width: 900px) { .settings { grid-template-columns: 1fr; } .settings nav { position: static; flex-direction: row; flex-wrap: wrap; padding-bottom: 4px; } .settings nav a { white-space: nowrap; } }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 48px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid var(--primary); outline-offset: 2px; }
.setting-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row > div:first-child { flex: 1 1 200px; min-width: 0; }

/* Dialog, toast */
dialog.modal { border: 0; padding: 0; border-radius: 20px; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--surface); color: var(--ink); box-shadow: var(--float); }
dialog.modal::backdrop { background: rgba(15, 20, 30, .45); }
.modal__inner { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 60; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; max-width: calc(100vw - 32px); box-shadow: var(--float); }

/* Prototype switcher */
.demo { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; }
@media (max-width: 900px) { .demo { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }
.demo__btn { border-radius: 999px; box-shadow: var(--shadow); }
.demo__panel { position: absolute; right: 0; bottom: 56px; width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.demo__panel button { justify-content: flex-start; text-align: left; }

/* ---------- Added for the page views ---------- */
/* Large text scales every element, buttons and tab bar included. */
html[data-font="large"] body { zoom: 1.15; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.icon--xl { width: 44px; height: 44px; color: var(--primary); }
.feat-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-ink); display: inline-flex; align-items: center; justify-content: center; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; min-height: 44px; }
.link-more .icon { width: 16px; height: 16px; }
.check-list, .dot-list, .num-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.check-list li { display: flex; gap: 8px; }
.check-list li::before { content: "✓"; color: var(--good); font-weight: 800; }
.dot-list li { position: relative; padding-left: 16px; }
.dot-list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
ol.dot-list { counter-reset: d; }
ol.dot-list li { counter-increment: d; padding-left: 24px; }
ol.dot-list li::before { content: counter(d) "."; width: auto; height: auto; background: none; top: 0; font-weight: 700; color: var(--ink-2); }
.num-list { counter-reset: n; gap: 14px; }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 24px 1fr; column-gap: 8px; }
.num-list li::before { content: counter(n); grid-row: span 2; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.hero__hand { width: min(300px, 70vw); height: auto; }
.cta-band { background: var(--primary); color: var(--on-primary); }
.cta-band .section-title { color: var(--on-primary); }
.cta-band__btn { background: var(--on-primary); color: var(--primary); border-color: var(--on-primary); }
.cta-band__btn:hover { background: var(--primary-soft); color: var(--primary-ink); }
.compare--always { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (max-width: 760px) { .compare--always .c-photo, .compare--always > * { display: flex !important; } }

/* Paper "photo" of a printed problem. It stays light in dark mode because it is a picture. */
.paper-wrap { padding: 6px; }
.paper { position: relative; background: #fbfaf3; color: #23262c; border-radius: 6px; padding: 26px 26px 120px; font-family: "Noto Serif KR", "AppleMyungjo", "Batang", serif; font-size: 18px; line-height: 2; box-shadow: 0 2px 10px rgba(40, 30, 10, .18), inset 0 0 60px rgba(150, 120, 60, .12); transform: rotate(-.6deg); }
.paper p { margin: 0; }
.paper--fig { padding-bottom: 210px; }
.paper__fig { position: absolute; left: 22px; bottom: 26px; width: 150px; height: auto; }
.ink { position: absolute; font-family: "Nanum Pen Script", "Comic Sans MS", cursive; color: #33468e; font-size: 30px; line-height: 1; transform: rotate(-3deg); white-space: nowrap; }
.ink--red { color: #d1342f; font-size: 40px; font-family: var(--font); font-weight: 800; }
.mask { position: absolute; min-width: 64px; height: 34px; padding: 0 10px; background: repeating-linear-gradient(45deg, #d7dce5 0 8px, #cbd2dd 8px 16px); border-radius: 8px; color: #4a5568; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font); transform: translateY(-4px); }
.mask-note { padding: 8px 12px; font-size: 13px; color: var(--muted); background: var(--surface); }

/* Dialog extras */
dialog.modal--wide { width: min(680px, calc(100vw - 32px)); }
.modal__inner h2 { font-size: 20px; }
.modal__body { overflow: auto; }
.op-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.op-grid .btn { font-size: 22px; min-height: 52px; }

/* Auth */
.auth { max-width: 560px; }
.auth__card { padding: clamp(20px, 4vw, 32px); }
.check { display: inline-flex; align-items: flex-start; gap: 10px; min-height: 32px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.check--all { padding-bottom: 8px; border-bottom: 1px solid var(--line); width: 100%; }
.terms { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0; }
.login-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.choice { color: var(--ink); }

/* Student home */
.h-sec { font-size: 18px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }

/* Problem pieces */
.dots { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.dot { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.dot--right { background: var(--good-soft); color: var(--good); }
.dot--wrong { background: var(--bad-soft); color: var(--bad); }
.answer { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); }
.answer strong { font-size: 20px; color: var(--primary-ink); }
.sol-foot { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.ai-cta { padding: 16px 18px; gap: 12px; }
.linklike { border: 0; background: none; padding: 0; color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.danger-zone { border-top: 1px solid var(--line); padding-top: 14px; }
.card.danger-zone { border: 1px solid color-mix(in srgb, var(--bad) 35%, var(--line)); }
.tag-list { padding: 8px 20px; }
.tag-list li { padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tag-list li:last-child { border-bottom: 0; }
.tag-list a { color: var(--ink); }
.chip-x { border: 0; background: none; width: 28px; height: 28px; margin: -6px -8px -6px 0; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 50%; }
.chip-x .icon { width: 14px; height: 14px; }
.input--sm { min-height: 36px; padding: 6px 10px; width: 140px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(112px, 100%), 1fr)); gap: 12px; }
.field-label { font-weight: 700; font-size: 14px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }

/* Upload */
.stepper-line { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.stepper-line li { display: inline-flex; align-items: center; gap: 6px; }
.stepper-line li + li::before { content: ""; width: 18px; height: 1px; background: var(--line-2); margin-right: 2px; }
.stepper-line span { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.stepper-line .on { color: var(--ink); font-weight: 700; }
.stepper-line .on span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.stepper-line .done span { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary-ink); }
.crop__box { cursor: move; touch-action: none; }
.crop__handle { position: absolute; right: -14px; bottom: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; cursor: nwse-resize; touch-action: none; }
.save-as { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.radio-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px 44px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.radio-card input { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; accent-color: var(--primary); }
.radio-card.on { border-color: var(--primary); background: var(--primary-soft); }
.radio-card.off { opacity: .55; cursor: not-allowed; }
@media (pointer: coarse) { .desktop-only { display: none; } }
.dropzone label.btn { cursor: pointer; }
.dropzone label.btn:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Topbar extras */
.topbar-account { display: none; }
@media (max-width: 900px) { .topbar-account { display: inline-flex; } }
.plan-mini { color: var(--ink); }
.plan-mini:hover { border-color: var(--primary); color: var(--ink); }
.plan-mini[aria-current="page"] { border-color: var(--primary); }
.plan-mini .icon { width: 16px; height: 16px; }

/* Admin */
.admin { min-height: calc(100vh - 31px); display: flex; flex-direction: column; }
.admin-top { gap: 12px; }
.admin-top .brand__word { font-size: 24px; }
.admin-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.admin-title h1 { flex: 1; min-width: 0; }
.gear-btn { gap: 6px; }
.gear-btn[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); }
@media (max-width: 560px) { .gear-btn span { display: none; } .gear-btn { width: 44px; padding: 0; } .admin-title .badge { display: none; } }
.content--admin { margin: 0 auto; }
.mtable { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.mrow { display: grid; grid-template-columns: minmax(150px, 1.6fr) 110px 70px minmax(120px, 1.2fr) 90px 110px; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.mlist li:last-child .mrow { border-bottom: 0; }
a.mrow:hover { background: var(--surface-2); color: var(--ink); }
.mrow--head { background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.mrow__who { display: flex; flex-direction: column; }
.mrow__goal { display: flex; flex-direction: column; gap: 4px; }
.mrow__goal .bar { height: 6px; }
.mlabel { display: none; }
@media (max-width: 760px) {
  .mrow--head { display: none; }
  .mrow { grid-template-columns: 1fr 1fr 1fr; gap: 6px 12px; }
  .mrow__who { grid-column: 1 / 3; }
  .mrow > span:nth-child(2) { justify-self: end; }
  .mlabel { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
  .mrow__goal .bar { display: none; }
  .mrow > span:last-child { grid-column: 3; }
}
.hot-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.hot-list li span:first-child { margin-right: 8px; font-weight: 600; }
.kid-card { color: var(--ink); height: 100%; }
.kid-card:hover { border-color: var(--primary); color: var(--ink); }
.kid-card--add { align-items: center; justify-content: center; text-align: center; border-style: dashed; color: var(--primary); }
.kid-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 13px; color: var(--muted); }
.kid-stats span { display: flex; flex-direction: column; }
.kid-stats b { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.kid-stats b.on { color: var(--primary); }
.week--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.acct-list li { padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 8px 12px; }
.acct-list li:last-child { border-bottom: 0; }
.settings__nav a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 650; }
.settings__nav a:hover { background: var(--surface-2); color: var(--ink); }
.settings__nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); }
.settings__nav .chev { width: 16px; height: 16px; opacity: 0; }
@media (max-width: 900px) {
  .settings nav { position: static; flex-direction: column; overflow: visible; }
  .settings__nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 6px; }
  .settings__nav a { min-height: 52px; color: var(--ink); }
  .settings__nav a[aria-current="page"] { background: transparent; color: var(--ink); }
  .settings__nav .chev { opacity: .6; }
  .settings[data-root="true"] .settings__content { display: none; }
  .settings[data-root="false"] .settings__nav { display: none; }
}

main:focus { outline: none; }

/* Round 1 review fixes */
:root { --on-strong: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --on-strong: #10141c; } }
:root[data-theme="dark"] { --on-strong: #10141c; }
.btn--right, .btn--wrong, .btn--danger-solid { color: var(--on-strong); }
.btn--right:hover, .btn--wrong:hover, .btn--danger-solid:hover { color: var(--on-strong); filter: brightness(1.05); }
.proto-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; position: relative; z-index: 45; }
.demo { position: static; }
.demo__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 2px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--bg) 45%, transparent); background: transparent; color: inherit; font-size: 12px; font-weight: 700; box-shadow: none; }
.demo__btn .icon { width: 14px; height: 14px; }
.demo__panel { position: absolute; top: calc(100% + 6px); bottom: auto; right: max(16px, env(safe-area-inset-right, 0px)); width: min(300px, calc(100vw - 32px)); color: var(--ink); text-align: left; z-index: 50; max-height: 70vh; overflow-y: auto; }
.demo__panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
@media (max-width: 900px) { .demo { bottom: auto; } }
/* 2026-11-25 user ('모웹은 로그인 없잖아. 보기전환 없애', '시제품 저것도 다 없애'): 휴대폰 웹에서는 시제품 줄 전체(안내 글 + '보기 전환')를 숨김. PC는 그대로 */
@media (max-width: 767px) { .proto-bar { display: none !important; } }
.crop__handle { position: absolute; width: 44px; height: 44px; background: transparent; border: 0; border-radius: 0; touch-action: none; right: auto; bottom: auto; }
.crop__handle::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.crop__handle--nw { left: 0; top: 0; cursor: nwse-resize; } .crop__handle--nw::after { left: -2px; top: -2px; }
.crop__handle--ne { right: 0; top: 0; cursor: nesw-resize; } .crop__handle--ne::after { right: -2px; top: -2px; }
.crop__handle--sw { left: 0; bottom: 0; cursor: nesw-resize; } .crop__handle--sw::after { left: -2px; bottom: -2px; }
.crop__handle--se { right: 0; bottom: 0; cursor: nwse-resize; } .crop__handle--se::after { right: -2px; bottom: -2px; }
.editing .tok { min-height: 34px; min-width: 30px; padding: 2px 6px; margin: 1px; }
.editing .frac { gap: 4px; font-size: .95em; }
.editing .frac > span:first-child { border-bottom: 0; }
.editing .frac > .tok:first-child { border-bottom: 2px solid currentColor; border-radius: 6px 6px 0 0; }
@media (max-width: 760px) {
  .compare[data-editing="true"] .c-photo { display: flex !important; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 66px); z-index: 5; background: var(--bg); padding-bottom: 8px; }
  .compare[data-editing="true"] .c-photo .photo { max-height: 160px; overflow: auto; }
  .compare[data-editing="true"] .c-digital { display: flex !important; }
}
/* Percent sizes on fixed elements follow the viewport even under the large-text zoom. */
dialog.modal { max-height: calc(100% - 48px); width: min(520px, calc(100% - 32px)); }
dialog.modal--wide { width: min(680px, calc(100% - 32px)); }
.toast { max-width: calc(100% - 32px); }
/* A fixed box at left: 50% would only get half the window to grow in: it takes its own width, up to the window. */
.toast { width: max-content; max-width: calc(100vw - 32px); }
.stepper :focus-visible { outline-offset: -3px; }
.modal__err { color: var(--bad); font-size: 14px; font-weight: 600; min-height: 0; margin: -6px 0 0; }
.modal__err:empty { display: none; }
.admin-top .brand { display: inline-flex; }
.phone-only { display: none; }
@media (max-width: 900px) { .phone-only { display: inline-flex; } }
[id$="-title"], #school { scroll-margin-top: 84px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.chip[aria-current="page"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }
a.chip:hover { color: var(--primary-ink); }
.acct-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.acct-row .check { min-height: 36px; align-items: center; }
.acct-row .check input { margin-top: 0; }
.seat-input { width: 64px; height: 44px; border: 0; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); text-align: center; font-weight: 800; background: var(--surface); -moz-appearance: textfield; }
.seat-input::-webkit-outer-spin-button, .seat-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 560px) { .choice { min-height: 0; padding: 14px 16px; } .choice .icon { display: none; } }
.desk-only { display: inline-flex; }
@media (max-width: 900px) { .desk-only { display: none; } }
button.kid-card { width: 100%; font: inherit; cursor: pointer; background: var(--surface); }

/* Grids never ask for more than the screen has (320px phones with large text). */
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.steps { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.plans { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.choice-grid { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.plist { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.compare--always { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.save-as { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

/* Round 4 review fixes */
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice-grid { grid-template-columns: 1fr; }
.choice { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center; min-height: 0; padding: 16px 18px; }
.choice .icon { grid-row: span 2; width: 26px; height: 26px; }
.choice:not(:has(.icon)) { grid-template-columns: 1fr; }
@media (max-width: 560px) { .choice .icon { display: inline-flex; } }
.detail { grid-template-areas: "prob side" "info side"; }
.detail-prob { grid-area: prob; min-width: 0; }
.detail .side-card { grid-area: side; position: sticky; top: 76px; }
.detail-info { grid-area: info; }
@media (max-width: 1000px) { .detail { grid-template-areas: "prob" "side" "info"; } .detail .side-card { position: static; } }
.table-wrap table { overflow-wrap: normal; }
.sidebar { height: calc(100vh - 32px); }
html[data-font="large"] .sidebar { height: calc((100vh - 32px) / 1.15); }
.pcard__thumb { width: 100%; height: 88px; object-fit: cover; object-position: top left; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
@media (max-width: 760px) {
  /* 2026-10-24 user rule: no half-visible chip in a sideways scroller; the chips wrap instead. */
  .filters.scroll-x { flex-wrap: wrap; }
}
.dlg-status:empty { display: none; }

/* Round 3 review fixes */
body { word-break: keep-all; overflow-wrap: break-word; }
html[data-font="large"] body { min-width: 278px; }
.photo { margin: 0; }
.h-step { font-size: 22px; font-weight: 800; }
.h-step:focus, [data-focus]:focus { outline: none; }
.h-step:focus-visible, [data-focus]:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.chip-x { width: 44px; height: 44px; margin: -12px -16px -12px -8px; }
.linklike { min-height: 44px; display: inline-flex; align-items: center; }
.check { min-height: 44px; align-items: center; }
.check input { margin-top: 0; }
th, td { white-space: normal; min-width: 72px; }
td.num, th.num { white-space: nowrap; }
.sticky-first th:first-child, .sticky-first td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.sticky-first thead th:first-child { background: var(--surface-2); }
.stepper button:disabled, .chip:disabled { opacity: .45; cursor: not-allowed; }
.tabs [aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.mlabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) { .mlabel { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: block; } }
@media (min-width: 901px) { .admin-top .brand.phone-only { display: none; } }
.toast[data-show="false"] { opacity: 0; pointer-events: none; transform: translate(-50%, 8px); }
.toast { transition: opacity .2s, transform .2s; }
.toast__sep { opacity: .6; }
.toast__act { display: inline-flex; align-items: center; min-height: 32px; margin: -6px 0; padding: 0 4px; border: 0; background: none; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
@media (pointer: coarse) { .toast__act { min-height: 44px; margin: -12px 0; } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.content { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
/* The save row of the registration form stays in reach above the phone tab bar. */
.save-bar { position: sticky; bottom: 0; z-index: 4; display: flex; flex-direction: column; gap: 6px; padding: 12px 0 4px; background: linear-gradient(to bottom, color-mix(in srgb, var(--surface) 0%, transparent), var(--surface) 30%); }
@media (max-width: 900px) { .save-bar { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); } }
/* Dialogs: the body scrolls and the buttons stay visible; on phones the dialog becomes a bottom sheet. */
dialog.modal[open] { display: flex; flex-direction: column; }
.modal__inner { flex: 1 1 auto; min-height: 0; max-height: 100%; }
.modal__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
@media (max-width: 560px) {
  dialog.modal, dialog.modal--wide { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: calc(100% - 24px); }
  .modal__inner { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
}
.sidebar { position: sticky; top: env(safe-area-inset-top, 0px); align-self: flex-start; height: 100vh; overflow-y: auto; }

/* Legal */
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 18px; margin-top: 14px; }
.legal p, .legal li { color: var(--ink-2); }

/* Round 5 review fixes */
[id^="plan-"], [id^="ticket-"] { scroll-margin-top: 84px; }
.plans { grid-template-columns: 1fr; }
@media (min-width: 600px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats--5 > :first-child { grid-column: 1 / -1; }
@media (min-width: 600px) { .stats--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .stats--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .stats--5 > :first-child { grid-column: auto; } }
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats--3 .v { font-size: 22px; }
.mrow { grid-template-columns: minmax(120px, 1.6fr) minmax(0, 110px) minmax(0, 70px) minmax(0, 1.2fr) minmax(0, 90px) minmax(0, 110px); }
@media (max-width: 760px) { .mrow { grid-template-columns: 1fr 1fr 1fr; } }

.stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats--2 .v { font-size: 20px; overflow-wrap: anywhere; }
.rank-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.rank-list a { display: flex; justify-content: space-between; gap: 10px; min-height: 40px; align-items: center; color: var(--ink); }
.rank-list a:hover { color: var(--primary-ink); }

/* App and web: what is done where (the web looks and reviews; the app registers and solves with a pen). */
.app-web-note { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; margin: 0; }
.app-web-note > .btn { justify-self: end; }
@media (max-width: 560px) {
  .app-web-note { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .app-web-note .icon { margin-top: 2px; }
  .app-web-note > .btn { grid-column: 2; justify-self: start; }
}
/* On blue surfaces the focus ring is white, so keyboard users can see where they are. */
.cta-band :focus-visible { outline-color: var(--on-primary); }

/* ---------- Proportion review: controls sized to their content ---------- */
/* Difficulty stars: a compact row. Touch screens keep 44px targets; the star itself stays small. */
/* Badges never stretch across a column. */
.stack > .badge { align-self: flex-start; }
/* Side-by-side "photo / digital" columns start at the same height. */
.cmp-head { min-height: 36px; }
/* A tab group that fills its column splits the width evenly instead of leaving an empty strip. */
.stack > .tabs > *, .content > .tabs > * { flex: 1 1 0; justify-content: center; }
/* Icons inside text sit on the text's middle and follow its size. */
.icon { vertical-align: middle; }
.badge .icon { width: 14px; height: 14px; }
.small > .icon, .notice > .icon { width: 16px; height: 16px; }
.btn--sm { gap: 6px; }
.btn--sm .icon { width: 16px; height: 16px; }
/* Text links styled as buttons keep a 44px target but share the baseline of the sentence around them. */
.linklike { display: inline-block; vertical-align: baseline; min-height: 44px; padding-block: 12px; padding-block: max(0px, calc((44px - 1lh) / 2)); }
/* Inside a notice the link's extra target height overlaps the notice padding instead of making the box taller. */
.notice .linklike { margin-block: -10px; }
.linklike .icon { width: 1.1em; height: 1.1em; vertical-align: -0.2em; margin-right: 2px; }
.site-footer .linklike { font-weight: inherit; text-decoration: none; color: #ffffff; }
@media (pointer: fine) { .site-footer .linklike { min-height: 0; padding-block: 0; } }
/* The long "app" button wraps its note to a second line on phones instead of breaking mid-phrase. */
.btn-app { justify-self: start; }
.btn-app small { font: inherit; }
@media (max-width: 560px) {
  .btn-app { justify-content: flex-start; text-align: left; }
  .btn-app small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
}
/* Landing feature cards on phones: icon beside the title rather than on its own row. */
@media (max-width: 560px) {
  .plain-list > .card:has(> .feat-icon:first-child, > .step-num:first-child) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 10px; align-items: center; }
  .plain-list > .card:has(> .feat-icon:first-child, > .step-num:first-child) > :not(.feat-icon):not(.step-num):not(h3) { grid-column: 1 / -1; }
  .feat-icon { width: 40px; height: 40px; }
}
/* Pricing: the kid-count chips and the seat stepper fit the narrow plan cards. */
.plan .seg .chip { padding-inline: 10px; }
.plan .seat-input { width: 52px; }
/* Save row: both buttons the same height. */
.save-bar .row { align-items: stretch; }
/* Review: the three scopes side by side where there is room; small result tiles; even symbol keys. */
@media (min-width: 700px) { .choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stats--2 { grid-template-columns: repeat(2, minmax(0, 220px)); }
.stats--2 .stat { padding: 12px 14px; }
/* An AI solution inside a dialog does not need a second frame. */
.modal__body > .solution { border: 0; padding: 0; background: transparent; }
/* Admin: header lines up with the centred content; hot units in a row; even columns in lists. */
@media (min-width: 901px) {
  .admin-top { padding-left: max(20px, calc((100% - 1180px) / 2 + 20px)); padding-right: max(16px, calc((100% - 1180px) / 2 + 16px)); }
}
@media (min-width: 761px) { .hot-list { display: grid; grid-template-columns: repeat(3, max-content); column-gap: 48px; } }
@media (min-width: 561px) { .acct-row .check.small { min-width: 190px; } }
@media (max-width: 760px) {
  .mrow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mrow__who { grid-column: 1 / 4; }
  .mrow > span:nth-child(2) { grid-column: 4; }
  .mrow > span:last-child { grid-column: auto; }
}
/* A note inside a checkbox label flows with the label text instead of becoming a separate narrow column. */
.check > span { display: contents; }
/* Sign-up: the empty step area does not add a gap. */
#start-dyn:empty { display: none; }
/* Admin billing: the price goes on its own line under the plan name. */
.plan-now > .muted { display: block; margin-top: 2px; }
/* Stats summary: no full-width tile for one number. Phones 3 + 2, wider screens one row of five. */
.stats--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stats--5 > :nth-child(n) { grid-column: span 2; }
.stats--5 > :nth-child(n+4) { grid-column: span 3; }
@media (min-width: 600px) {
  .stats--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stats--5 > :nth-child(n), .stats--5 > :nth-child(n+4) { grid-column: auto; }
}

/* Signed-in screens match the home: on the grey ground, cards need no line (it comes back blue on hover). */
.app .card, .app .pcard, .app .stat, .admin .card:not(.kid-card--add), .admin .stat { border-color: transparent; }
.app .pcard:hover, .app a.stat:hover, .app button.stat:hover, .admin a.stat:hover, .admin button.stat:hover, .admin a.card:hover, .admin button.card:hover { border-color: var(--primary); }

/* ---------- Home (2026-10-23, approved mockup): grey ground, white cards without lines, one blue button ---------- */
.home { display: flex; flex-direction: column; gap: 16px; }
.home-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.home-card { background: var(--surface); border-radius: 24px; padding: 24px; }
.home-hero { display: flex; flex-direction: column; gap: 6px; padding: 28px; }
.home-eyebrow { font-size: 15px; font-weight: 600; color: var(--muted); }
.home-hero h2 { font-size: 28px; line-height: 1.38; font-weight: 700; letter-spacing: -0.03em; margin-top: 6px; }
.home-hero h2 em { font-style: normal; color: var(--primary); }
.home-sub { font-size: 15px; color: var(--muted); }
.home-cta { margin-top: 18px; align-self: flex-start; min-width: min(220px, 100%); min-height: 56px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 16px; background: var(--primary); color: var(--on-primary); font-size: 17px; font-weight: 700; }
.home-cta:hover { background: var(--primary-ink); color: var(--on-primary); }
.home-cta--soft, .home-cta--soft:hover { background: var(--primary-soft); color: var(--primary-ink); }
.home-week { display: flex; flex-direction: column; gap: 6px; }
.home-week h2 { font-size: 19px; font-weight: 700; }
.home-rows { margin: 6px 0 0; display: flex; flex-direction: column; }
.home-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.home-rows dt { font-size: 15px; color: var(--muted); }
.home-rows dd { margin: 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.home-rows dd b { font-size: 20px; font-weight: 700; margin-right: 1px; }
.home-foot { font-size: 14px; color: var(--muted); }
.home-link-row { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 4px -8px -8px; padding: 0 8px; border-radius: 12px; color: var(--ink); font-size: 15px; font-weight: 600; }
.home-link-row:hover { background: var(--surface-2); color: var(--ink); }
.home-link-row .icon, .home-more .icon { width: 16px; height: 16px; color: var(--muted); }
.home-banner { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 20px; background: var(--surface); }
.home-banner > .icon { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.home-banner > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-wrap: pretty; }
.home-banner strong { font-size: 15px; font-weight: 700; }
.home-banner > span > span { font-size: 14px; color: var(--muted); }
.home-banner__btn { flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--ink); font-size: 14px; font-weight: 700; }
.home-note { padding: 14px 18px; border-radius: 16px; background: var(--surface); color: var(--ink-2); font-size: 14px; }
.home-note--warn { background: var(--warn-soft); color: var(--warn); }
.home-secs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 16px; align-items: start; margin-top: 8px; }
.home-sec { display: flex; flex-direction: column; gap: 10px; }
.home-sec__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.home-sec__head h2 { font-size: 20px; font-weight: 700; }
.home-sec__head h2 span { color: var(--primary); margin-left: 6px; }
.home-sec__note { font-size: 14px; color: var(--muted); }
.home-more { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--muted); font-size: 15px; font-weight: 600; white-space: nowrap; }
.home-more:hover { color: var(--ink); }
.home-list { padding: 8px; }
.prow { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; color: var(--ink); }
.prow:hover { background: var(--surface-2); color: var(--ink); }
.prow + .prow::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--line); }
.prow:hover::before, .prow:hover + .prow::before { display: none; }
.prow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.prow__title { font-size: 16px; font-weight: 700; }
.prow__text { font-size: 15px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow__meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.prow__meta .stars { font-size: 12px; }
.prow__meta .badge { padding: 0; background: none; font-size: 13px; font-weight: 500; color: var(--muted); }
.prow__side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.prow__state { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.prow__state--learning { color: var(--primary); }
.prow__state--done { color: var(--good); }
.prow__state--held { color: var(--warn); }
.prow__count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Wide screens: the big greeting is the title, so the bar above it stays for screen readers only. */
@media (min-width: 901px) {
  .main--home .topbar { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .main--home .content { padding-top: 28px; }
}
@media (max-width: 900px) {
  .home-top { grid-template-columns: 1fr; }
  .home-cta { align-self: stretch; }
  .main--home .content { padding-top: 12px; }
}
@media (max-width: 560px) {
  .home-card { padding: 22px 20px; border-radius: 22px; }
  .home-hero { padding: 24px 20px; }
  .home-hero h2 { font-size: 26px; }
  .home-list { padding: 4px; }
  .prow { padding: 14px; }
  .home-banner { padding: 16px; }
}

/* ---------- Difficulty stars, half steps (2026-10-23) ---------- */
.st { position: relative; display: inline-block; color: var(--line-2); }
.st--on { color: var(--star); }
.st--half::after { content: "★"; position: absolute; left: 0; top: 0; width: 50%; overflow: hidden; color: var(--star); }
.rate { display: inline-flex; align-items: center; gap: 0; padding: 6px 4px; margin: -6px -4px; border-radius: 8px; font-size: 16px; line-height: 1; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.rate .st:not(.st--on) { color: color-mix(in srgb, var(--muted) 55%, var(--surface)); }
/* In the problem's top corner: the text flows around it. */
.sheet-rate { display: inline-flex; align-items: center; gap: 5px; line-height: 1; }
.digital > .sheet-rate { float: right; margin: 2px 0 8px 16px; }
.sheet-rate__label { font-size: 12px; font-weight: 600; color: var(--muted); }
@media (pointer: coarse) { .rate { font-size: 19px; padding-block: 10px; margin-block: -10px; } }
/* Phones: the problem is too narrow to flow around it, so it takes the top right of the box on its own. */
@media (max-width: 560px) { .digital > .sheet-rate { float: none; display: flex; justify-content: flex-end; margin: -4px 0 6px; } }

/* ---------- 2026-10-23 user review ---------- */
/* Dropdowns: our own arrow, kept off the right edge. */
select.input { -webkit-appearance: none; appearance: none; padding-right: 36px; background-image: var(--chevron); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px; }
/* An icon at the start of a line sits on the middle of the text. */
.icon-line { display: flex; align-items: center; gap: 6px; }
.icon-line .icon { width: 16px; height: 16px; }
/* Phone tab bar: the current tab is bold with a bar on top, not colour alone. */
@media (max-width: 900px) {
  .tabbar a { position: relative; font-size: 13px; font-weight: 500; }
  .tabbar a[aria-current="page"] { font-weight: 800; }
  .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: -6px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary); }
}

/* ---------- 2026-10-23 UX review, approved items (A, C, D) ---------- */
.nowrap { white-space: nowrap; }
/* Line breaks that follow the meaning (AGENTS.md 화면 표시 규칙, app.js O.mt / O.keepHtml): a formula or a label with its
   item never breaks inside; a formula that may break is an inline block that moves to the next line whole and, only when
   it is wider than its box, wraps between its parts: before a top-level = first, then before + − inside a part. */
.keep { white-space: nowrap; }
/* first baseline: a wrapped formula lines up with the text (and a list number) on its first line */
.keep-long { display: inline-block; max-width: 100%; white-space: normal; text-indent: 0; baseline-source: first; }
.row.end { justify-content: flex-end; }
/* C11: a ghost button at the start of a line lines up with the text edge, not with its own padding. */
.btn--flush { margin-left: -12px; }
/* C11: phones keep the same 16px on both sides as the solving screen. */
@media (max-width: 900px) {
  .topbar { padding-left: max(16px, env(safe-area-inset-left, 0px)); }
  .content { padding-left: max(16px, env(safe-area-inset-left, 0px)); }
}
/* D18: a text button inside a sentence keeps its 44px target without making that line taller. */
p .linklike { position: relative; display: inline; min-height: 0; padding-block: 0; margin-block: 0; }
p .linklike::before { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
.modal__actions:empty { display: none; }

/* A7: two wrong answers in a row is '다시 챙기기' in a calm colour, never red or a warning sign. */
.badge--repeat { background: var(--surface-2); color: var(--ink-2); }
.badge--repeat .icon { width: 13px; height: 13px; color: var(--primary); }
.cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 24px; padding: 0 7px; border-radius: 999px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); line-height: 1; }
.cnt--on { background: var(--primary-soft); color: var(--primary-ink); }
td.num, th.num { text-align: center; }
.prow__state--repeat { color: var(--primary); }

/* C11: both home section heads start at the same height; the repeat note sits inside its list. */
.home-sec__head { align-items: flex-start; }
.home-sec__head h2 { line-height: 44px; }
.home-list__note { padding: 8px 16px 4px; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .home-list__note { padding: 8px 14px 4px; } }

/* C6, C9: 내 문제 — rows like the home, the sort beside the count, a compact filter panel. */
.lib-count { gap: 8px 12px; }
.lib-count__acts { gap: 8px; }
select.input.sort-sel { width: auto; min-height: 36px; padding: 4px 32px 4px 12px; font-size: 14px; border-radius: 10px; background-position: right 10px center; }
@media (pointer: coarse) { select.input.sort-sel { min-height: 44px; } }
.toolbar .btn[aria-expanded="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.field-head__link { font-weight: 600; }
.star-chips { flex-wrap: wrap; gap: 6px; }
.star-chips .chip { flex: none; gap: 2px; padding-inline: 10px; }
.chip-star { color: var(--star); }

/* Problem page: the count in words (C8, no bar), a formula answer read as text (C1), meta on one grid (C12), quiet delete (C13). */
.count-line { font-size: 15px; }
.count-line strong { font-size: 22px; font-weight: 850; font-variant-numeric: tabular-nums; }
.answer-ro { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 4px 4px 4px 14px; border-radius: 12px; background: var(--surface-2); }
.answer-ro strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.form-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(104px, 100%), 1fr)); }
.detail-foot { border-top: 1px solid var(--line); padding-top: 12px; gap: 4px 12px; }
.btn--quiet-danger, .btn--quiet-danger:hover { color: var(--bad); }

/* After grading: the count with a thin bar. */
.bar--thin { height: 6px; flex: 1 1 auto; max-width: 160px; min-width: 60px; background: color-mix(in srgb, currentColor 18%, transparent); }
.bar--thin > span { background: currentColor; }
.hint-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.hint-edit .input { flex: 1 1 220px; min-height: 40px; background: var(--surface); color: var(--ink); }
.ai-line { display: flex; justify-content: center; margin: 0; text-align: center; }
/* The error right under the answer box. */
.field-err { color: var(--bad); margin-top: -4px; }
.field-err:empty { display: none; }

/* C5, C7: upload — the same switch as the problem page on phones, separate links, a short form with the rest folded. */
.cmp-bar { display: none; }
@media (max-width: 760px) {
  .cmp-bar { display: flex; }
  .cmp-head__edit { display: none; }
  .cmp-bar ~ .compare .cmp-head { display: none; }
  .compare[data-editing="true"] .c-photo { order: -1; }
}
.cmp-links { gap: 0 18px; font-size: 13px; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.more-toggle { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font-weight: 700; font-size: 14px; text-align: left; }
.more-toggle .muted { font-weight: 500; }
.more-toggle .chev { margin-left: auto; width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.more-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .more-toggle .chev { transition: none; } }
.save-row { justify-content: flex-end; }
.save-row #save-why { align-self: center; flex: 1 1 200px; text-align: right; }
.save-btns { flex-wrap: nowrap; gap: 8px; align-items: stretch; }

/* C13: tags — press the name to rename it here, a small × to remove. */
.tag-list li.tag-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
.tag-name { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font-weight: 700; font-size: 15px; }
.tag-name .icon { width: 14px; height: 14px; color: var(--muted); }
.tag-name:hover .icon { color: var(--primary); }
.tag-name-in { width: 160px; }
.tag-list .chip-x { margin: 0 -12px 0 0; }

/* A8: unit tables become rows of a list on phones. */
.unit-list { display: none; }
@media (max-width: 760px) {
  .unit-table { display: none; }
  .unit-list { display: flex; flex-direction: column; }
}
.unit-list.card { padding: 4px 20px; }
.unit-list > li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.unit-list > li:last-child { border-bottom: 0; }
.unit-list > li > a { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink); }
.unit-list__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.unit-list__name { font-weight: 700; }
.unit-list__name .small { font-weight: 600; margin-right: 2px; }

/* D1, D3, D5, D6, D7: teacher home — the numbers are the filters, counts centred, no status column. */
.filter-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filter-tiles .stat { justify-content: space-between; min-height: 44px; font: inherit; color: var(--ink); cursor: pointer; }
.filter-tiles .stat .v { font-size: 24px; }
.filter-tiles .stat[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.filter-tiles .stat[aria-pressed="true"] .k { color: var(--primary-ink); }
.hot-units { display: flex; flex-direction: column; gap: 8px; }
.hot-units .chip b { color: var(--primary-ink); font-weight: 700; }
.mrow { grid-template-columns: minmax(140px, 1.6fr) repeat(3, minmax(0, 100px)) minmax(0, 110px); }
.mrow > .num { text-align: center; }
@media (max-width: 760px) {
  .mrow { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
  .mrow__who { grid-column: 1 / -1; }
  .mrow > span:nth-child(2) { grid-column: auto; justify-self: stretch; }
  .mrow > span:last-child { grid-column: auto; }
  .mrow > .num { text-align: left; }
}
/* D2: the students waiting for consent, each with a checkbox, inside the notice. */
.consent-rows { display: flex; flex-direction: column; }
.consent-rows li { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.consent-rows .check { color: var(--ink); font-weight: 600; }
/* D8: a child waiting for verification. */
.kid-card__name { font-size: 18px; font-weight: 800; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
/* D4: the two weekly charts share one low card. */
.week--low { height: 96px; }
.charts-pair { gap: 20px; }
/* D7: account rows on phones — name on top, the checkbox and '관리' on a fixed second line. */
.acct-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; }
.acct-row__who { display: flex; flex-direction: column; min-width: 0; }
.acct-row__gate:empty { display: none; }
@media (max-width: 560px) {
  .acct-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who who" "gate manage"; }
  .acct-row__who { grid-area: who; }
  .acct-row__gate { grid-area: gate; }
  .acct-row__manage { grid-area: manage; }
  .acct-row__gate:empty { display: block; }
}
.setting-note { padding: 12px 0 4px; }
/* D11: '개' beside the seat number. */
.seat-row { gap: 8px; font-weight: 700; }

/* D12: sign-up terms — the label takes the line, '보기' always on the right. */
.term-row { display: flex; align-items: center; gap: 8px; }
.term-row .check { flex: 1; min-width: 0; }
.term-row > a { flex: none; min-height: 44px; display: inline-flex; align-items: center; }
/* D10: pricing comparison — the full table on wide screens, feature | the plan picked on phones. */
.cmp-narrow { display: none; }
@media (max-width: 760px) { .cmp-wide { display: none; } .cmp-narrow { display: flex; } }
.cmp-narrow th[scope="row"] { width: 46%; }
/* D16: the product picture stays out from behind the text. */
@media (max-width: 720px) { .hero__bg { opacity: .05; object-position: 70% 100%; } }
@media (min-width: 721px) { .hero__lead { max-width: 400px; text-wrap: pretty; } }
/* Plans and usage (PRD v0.4 section 10, 2026-10-23): what is left with a slim bar, like other AI services show limits. */
.bar--slim { height: 6px; }
.home-week__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.home-rows .home-rows__points { flex-wrap: wrap; row-gap: 6px; padding: 6px 0 10px; }
.home-rows__points .bar { flex: 1 0 100%; }
.home-rows__hint { flex: 1 0 100%; font-size: 13px; color: var(--muted); }
.home-rows__of { font-size: 14px; font-weight: 500; color: var(--muted); }
.usage-refill { font-weight: 700; color: var(--ink-2); }
.plan__reset { font-size: 13px; font-weight: 700; color: var(--primary-ink); }
.stats--points .stat { gap: 2px; }
.stats--points .stat .v { font-size: 24px; }
.extra-card { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.extra-card > .stack { flex: 1 1 320px; min-width: 0; }
.extra-card h3 { font-size: 18px; }

/* Answer types (PRD v0.4 '답 유형', contract revision 2, 2026-10-23): three chips, the box for the type, rare settings folded. */
.ans { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ans-types { display: flex; flex-wrap: wrap; gap: 6px; }
.ans-types .chip { min-height: 40px; padding-inline: 16px; font-size: 15px; }
@media (pointer: coarse) { .ans-types .chip { min-height: 44px; } }
.ans-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ans-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 20px/1 var(--font); }
.ans-btn:hover { background: var(--surface-2); }
.ans-btn[aria-pressed="true"] { border: 2px solid var(--pick); background: var(--pick); color: #ffffff; padding: 0 11px; }
.ans-btn[aria-pressed="true"]:hover { background: var(--pick-2); border-color: var(--pick-2); }
.ans-btn__n { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: 0 0 0 2px var(--surface); font: 800 12px/22px var(--font); text-align: center; }
.ans-blank { display: grid; grid-template-columns: minmax(64px, 104px) minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.ans-blank__name { font-weight: 700; text-align: center; padding-inline: 8px; }
.ans-alt { display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.ans-more-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink-2); font-weight: 700; font-size: 14px; text-align: left; }
.ans-more-btn .muted { font-weight: 500; font-size: 13px; }
.ans-more-btn .chev { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.ans-more-btn[aria-expanded="true"] .chev { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .ans-more-btn .chev { transition: none; } }
.ans-more { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); }
.ans-more .check { gap: 10px; }
.ans-more .check .small { margin-left: 4px; }
/* A long setting name wraps as one sentence with its hint, not in two columns. */
.ans-more .check > span { display: block; min-width: 0; }
.ans-set { gap: 6px 10px; }
.ans-set .field-label { margin: 0; }
.ans-set select { width: auto; min-width: 128px; }
.ans-count { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ans-count .icon-btn { font-size: 20px; font-weight: 700; color: var(--ink); }
.ans-count .icon-btn[disabled] { opacity: .35; cursor: not-allowed; }
.ans-none { padding-top: 4px; border-top: 1px solid var(--line); }
.ans-none .linklike { font-weight: 700; color: var(--ink-2); margin-right: 4px; }
.ans-glyph--circled { font-size: 1.3em; line-height: 1; }
.ans-glyph--ox { font-size: 1.25em; line-height: 1; font-weight: 600; }
/* Review: one labelled box per blank. */
/* Marks after grading: one row per blank. */
.marks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mark { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 48px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); }
.mark__k { min-width: 3.2em; color: var(--muted); font-weight: 700; }
.mark__v { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mark__key { font-size: 13px; font-weight: 700; color: var(--good); }
.mark__i { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; }
.mark__i .icon { width: 16px; height: 16px; stroke-width: 3; }
.mark--ok .mark__i { background: var(--good); }
.mark--no .mark__i { background: var(--bad); }
:root[data-theme="dark"] .mark__i { color: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mark__i { color: var(--bg); } }
/* 선 잇기: two columns of names with dots on their inner edge; lines run between the dot columns. Item i of n sits at
   (i + 0.5) / n of the height on both sides (space-around), which is where the SVG draws the line ends.
   2026-10-23 user: the words are the main thing and a dot only has to be joinable — a 14px dot 8px from the text, a 2.5px
   line from dot centre to dot centre; the whole row half (text and dot, 44px or more) stays the touch target (answers.js). */
.mb { --n: 3; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(88px, .8fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); width: 100%; max-width: 560px; height: calc(var(--n) * 60px); -webkit-user-select: none; user-select: none; }
.mb-col { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
/* C1: each item fills its share of the height, so the whole row (label, word, circle) is the target. */
.mb-item { flex: 1 1 0; display: flex; align-items: center; gap: 6px; min-height: 44px; min-width: 0; }
.mb[data-mode="edit"], .mb[data-mode="answer"] { touch-action: none; }
.mb[data-mode="edit"] .mb-item, .mb[data-mode="answer"] .mb-item { cursor: grab; }
.mb-item.sel .mb-name, .mb-item.sel .mb-word { color: var(--primary-ink); }
/* C2: the item word written in the problem, after its label, on one line ("1 붕어"). A word that does not fit beside its
   label wraps at its own spaces there; only a word whose longest part cannot fit beside the label goes under it. */
.mb-label { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; }
.mb-col--left .mb-label { justify-content: flex-end; text-align: right; }
.mb-word { flex: 1 1 0%; min-width: min-content; max-width: max-content; font-size: 16px; font-weight: 400; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.mb-col--left .mb-item { justify-content: flex-end; }
.mb-dot { position: relative; z-index: 2; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 44px; padding: 0; border: 0; border-radius: 9px; background: none; touch-action: none; cursor: grab; }
.mb-dot:active { cursor: grabbing; }
.mb-col--left .mb-dot { margin-right: -9px; }
.mb-col--right .mb-dot { margin-left: -9px; }
.mb-dot i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--primary); background: var(--surface); transition: box-shadow .12s; }
/* M1: the dots and lines keep their size with the large font (the page is zoomed 1.15). */
html[data-font="large"] .mb-dot i { width: calc(14px / 1.15); height: calc(14px / 1.15); border-width: calc(2px / 1.15); }
html[data-font="large"] .mb-line__ink, html[data-font="large"] .mb-line__key, html[data-font="large"] .mb-temp { stroke-width: calc(2.5px / 1.15); }
.mb-dot.on i { background: var(--primary); }
.mb-dot[aria-pressed="true"] i { background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 28%, transparent); }
span.mb-dot { cursor: default; }
span.mb-dot i { border-color: var(--line-2); }
span.mb-dot.on i { border-color: var(--ink-2); background: var(--ink-2); }
.mb-name { min-width: 0; font-size: 16px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; line-height: 1.35; }
.mb-col--left .mb-name { text-align: right; }
button.mb-name { min-width: 36px; min-height: 36px; padding: 4px 8px; border: 1px dashed var(--line-2); border-radius: 8px; background: var(--surface); }
button.mb-name:hover { border-color: var(--primary); }
@media (pointer: coarse) { button.mb-name { min-width: 44px; min-height: 44px; } }
/* The SVG fills its cell (stretched, lines keep their width): its own aspect ratio must not size the row. */
.mb-lines { display: block; width: 100%; height: 100%; min-height: 0; overflow: visible; }
.mb-line { cursor: pointer; outline: none; }
.mb-line__hit { stroke: transparent; stroke-width: 26; vector-effect: non-scaling-stroke; pointer-events: stroke; }
.mb-line__ink { stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.mb-line:hover .mb-line__ink, .mb-line:focus-visible .mb-line__ink { stroke: var(--bad); stroke-width: 3.5; }
.mb-line:focus-visible .mb-line__hit { stroke: color-mix(in srgb, var(--bad) 16%, transparent); }
.mb-line__ink--ok { stroke: var(--good); }
.mb-line__ink--no { stroke: var(--bad); }
.mb-line__key { stroke: var(--good); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mb-temp { stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 9; vector-effect: non-scaling-stroke; pointer-events: none; }
.mb-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; }
.mb-mark .icon { width: 12px; height: 12px; stroke-width: 3.2; }
.mb-mark--ok { background: var(--good); }
.mb-mark--no { background: var(--bad); }
:root[data-theme="dark"] .mb-mark { color: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mb-mark { color: var(--bg); } }
.mb-tools { gap: 8px; }
/* C3, C4: items not joined yet; B4: blanks still empty — a line of its own right above the button. */
.mb-open, .rv-status { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.rv-status:empty { display: none; }
.mb-ask { display: flex; flex-direction: column; gap: 10px; }
.mb-ask p { font-weight: 700; }
.mb-ask__btns { justify-content: flex-end; gap: 8px; }
@media (pointer: coarse) { .mb-ask .btn--sm { min-height: 44px; } }
/* A7: 고르기 after grading as label chips — my answer (red where it differs) and the key (green). */
.lchips-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.lchips-box--rows { flex-direction: column; align-items: stretch; }
.lchips { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lchips__k { flex: none; min-width: 3em; font-size: 14px; font-weight: 700; color: var(--muted); }
.lchips__v { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.lchip { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border: 2px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 20px/1 var(--font); }
.lchip--ok { border-color: var(--good); }
.lchip--no { border-color: var(--bad); border-width: 3px; padding: 0 9px; }
.marks-box .mb { margin-inline: auto; }
@media (max-width: 560px) { .mb { grid-template-columns: minmax(0, 1fr) minmax(76px, .7fr) minmax(0, 1fr); } }
/* Touch screens: the small buttons of the answer box keep 44px targets. */
@media (pointer: coarse) { .ans .btn--sm, .mb-tools .btn--sm { min-height: 44px; } .ans-set select.input { min-height: 44px; } }

/* ---------- Problem screen (redesign 2026-10-23, user-approved mockups: tablet band, phone drawer; R1–R8) ---------- */
/* The screen fills the window under the prototype bar; the paper and the band scroll on their own. */
body:has(> #root > .solve) { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
html[data-font="large"] body:has(> #root > .solve) { height: calc(100vh / 1.15); height: calc(100dvh / 1.15); }
body:has(> #root > .solve) > #root { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.solve { --q-size: clamp(24px, 2.35vw, 30px); --ch-gap: 44px; flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 31.25vw, 420px); background: var(--surface); }
.solve__col { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
/* R2: one line — ‹ 뒤로 가기, "3 / 5 · 중2 · 1학기 · 단원" (ROUND 3: no clock). */
.solve__bar { flex: none; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 20px 8px max(20px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); }
.solve__back { flex: none; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 10px 0 4px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font: 600 16px/1 var(--font); white-space: nowrap; }
.solve__back .icon { width: 20px; height: 20px; }
.solve__back:hover { background: var(--surface-2); color: var(--ink); }
.solve__crumb { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.solve__crumb b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.solve__help { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.solve__help .icon { width: 22px; height: 22px; }
.solve__help:hover { background: var(--surface-2); color: var(--ink); }
/* R1: the problem on plain paper — no card, no border, no ruled lines, no inner header; a thin scroll bar only while needed. */
.solve__paper { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; display: flex; flex-direction: column; padding: 44px 56px 0; }
.solve__sheet { display: flex; flex-direction: column; gap: 24px; padding-bottom: 28px; }
.solve .digital { font-size: var(--q-size); line-height: 1.55; font-weight: 600; letter-spacing: -.01em; padding: 0; border: 0; border-radius: 0; background: none; }
.solve .q__line--choices { font-weight: 500; }
.solve .tok { padding: 0; }
/* After grading the difficulty is set in the band, so the problem does not move (R8: the same screen). */
.panel__rate { margin-top: -4px; }
.panel__rate .sheet-rate__label { font-size: 14px; color: var(--ink-2); }
.solve__pic { align-self: flex-start; }
.solve .solution { font-size: 16px; }
/* P9-3: large round ‹ › at the paper's bottom corners; they float while the paper scrolls and never cover its end. */
.solve__nav { position: sticky; bottom: 0; z-index: 3; margin: auto -32px 0; display: flex; align-items: center; padding: 12px 0 24px; pointer-events: none; }
.navbtn { pointer-events: auto; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-2); box-shadow: 0 6px 20px rgba(20, 32, 60, .12); }
.navbtn .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.navbtn:hover { color: var(--primary); border-color: var(--primary); }
.navbtn--next { margin-left: auto; }
/* The answer band: the answer only (R1); the same place shows the result after grading (R8). */
.solve__panel { position: relative; z-index: 4; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); border-left: 1px solid var(--line); }
.panel__handle { display: none; }
.panel__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 28px 28px 0; }
.panel__head h2 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.3; }
.panel__link { margin: -10px -6px -10px 0; padding-inline: 6px; font-size: 15px; font-weight: 600; text-decoration: none; }
.panel__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; display: flex; flex-direction: column; gap: 14px; padding: 20px 28px 16px; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent); }
.panel__foot { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 12px 28px 28px; }
.panel__foot .rv-status { margin: 0; }
.btn--xl { width: 100%; min-height: 60px; border-radius: 16px; font-size: 19px; }
.panel__hint { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.panel__note { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.panel__sum { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.panel__hintbox { display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.panel__hintbox .icon { flex: none; margin-top: 2px; }
/* 고르기: equal buttons in one row (two rows from six labels). */
.pick { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 10px; }
.pick .ans-btn, .pick .ans-btn[aria-pressed="true"] { width: 100%; min-width: 0; height: 64px; padding: 0; border-width: 1.5px; border-radius: 16px; font-size: 26px; font-weight: 500; }
.pick .ans-btn:not([aria-pressed="true"]) { border-color: var(--line); }
.pick .ans-glyph--circled { font-size: 1.1em; }
/* 쓰기: a field per answer; a typed fraction shows stacked at its end (R7). */
.wbox { display: flex; align-items: center; min-width: 0; min-height: 64px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.wbox:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.wbox__in { flex: 1 1 auto; align-self: stretch; min-width: 0; width: 100%; min-height: 60px; padding: 0 14px; border: 0; border-radius: 16px; background: none; color: var(--ink); font: 600 26px/1.2 var(--font); font-variant-numeric: tabular-nums; text-align: center; outline: none; }
.wbox__in::placeholder { font-size: 17px; font-weight: 500; color: var(--muted); opacity: .8; }
.wbox__pv { flex: none; display: inline-flex; align-items: center; align-self: stretch; padding: 4px 16px 4px 14px; border-left: 1px solid var(--line); font-size: 24px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.wbox__pv:empty { display: none; }
.wrows { display: flex; flex-direction: column; gap: 12px; }
.wrow { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.wrow__k { min-width: 2.2em; font-size: 18px; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
/* P9-2: answers in any order on one line, joined by commas; a field moves to the next line whole. */
.wline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 2px; }
.wline__k { margin-right: 8px; font-size: 20px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.wunit { display: inline-flex; align-items: flex-end; }
.wunit__sep { padding: 0 8px 8px 4px; font-size: 26px; font-weight: 600; line-height: 1; color: var(--ink-2); }
.wbox--short { width: 112px; }
.wbox--short .wbox__in { padding-inline: 8px; }
/* 선 잇기 in the band: 다시 긋기 under the board (P3). */
.mb-redo { display: flex; justify-content: flex-end; margin-top: -6px; }
.mb-redo .btn { color: var(--ink-2); }
/* P7: a small first-time card. */
.guide { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 14px; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.guide__art { flex: none; width: 112px; height: 64px; }
/* The 선 잇기 card says the same as the line under the board: one of them is enough. */
.guide[data-type="match"] ~ .panel__hint { display: none; }
.guide__text { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.guide__acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.guide .g-box { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.guide .g-on { fill: var(--primary); }
.guide .g-t { fill: var(--ink); font: 600 14px var(--font); text-anchor: middle; dominant-baseline: central; }
.guide .g-on-t { fill: var(--on-primary); font: 600 14px var(--font); text-anchor: middle; dominant-baseline: central; }
.guide .g-small { font-size: 12px; }
.guide .g-line { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.guide .g-link { stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; }
.guide .g-dot { fill: var(--surface); stroke: var(--primary); stroke-width: 2; }
.guide .g-dot-on { fill: var(--primary); }
/* R8: the result. */
.verdict { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 24px; font-weight: 800; line-height: 1.25; }
.panel__head h2.verdict { font-size: 24px; }
.verdict--ok { color: var(--good); }
.verdict--no { color: var(--bad); }
.verdict__i { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: currentColor; }
.verdict__i .icon { width: 17px; height: 17px; stroke-width: 3; color: #fff; }
:root[data-theme="dark"] .verdict__i .icon { color: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .verdict__i .icon { color: var(--bg); } }
.verdict__note { margin: -6px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.count { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.count .bar--thin { color: var(--primary); max-width: none; }
.panel__links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: -6px; }
.panel__links .linklike { font-size: 15px; font-weight: 600; text-decoration: none; }
.solve__panel .lchips-box, .solve__panel .mark { background: var(--surface); }
.solve__panel .lchips-box { flex-direction: column; align-items: stretch; gap: 10px; }
.solve__panel .ai-line { justify-content: flex-start; }
.vchip { display: inline-flex; align-items: center; max-width: 100%; min-height: 44px; padding: 4px 14px; border: 2px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1.3; }
.vchip--ok { border-color: var(--good); }
.vchip--no { border-color: var(--bad); border-width: 3px; padding: 3px 13px; }
.grade .btn--xl { min-height: 60px; font-size: 18px; }
/* The end of a run: the problems skipped (P9-3). */
.skipped__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.skipped__list li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 12px; border-radius: 12px; background: var(--surface-2); }
.skipped__n { flex: none; min-width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink-2); }
/* The key fields on the save form and the problem page: a typed fraction shows stacked at the end (R7). */
.kfield { display: flex; align-items: stretch; min-width: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.kfield:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
.kfield .input { flex: 1 1 auto; min-width: 0; border: 0; background: none; }
.kfield .input:focus-visible { outline: none; }
.kfield__pv { flex: none; display: inline-flex; align-items: center; padding: 2px 12px 2px 10px; border-left: 1px solid var(--line); font-size: 18px; font-weight: 600; line-height: 1.1; color: var(--ink-2); }
.kfield__pv:empty { display: none; }
/* A one-line list preview keeps formulas on that line (it ends in "…"); every row has room for a stacked fraction, so rows
   with and without one are the same height. */
.prow__text .keep-long { display: inline; white-space: nowrap; }
.prow__text wbr { display: none; }
/* One line cut with "…" by line-clamp, not text-overflow: a stacked fraction (an atomic box) that does not fit moves to the
   hidden second line instead of sitting under the "…". */
.prow__text { line-height: 28px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; white-space: normal; text-overflow: clip; max-height: 28px; }
/* Screen-reader words (a fraction read as "4분의 3") stay inside a box that cuts its overflow. */
.prow__text, .solve__crumb { position: relative; }
.prow__text .frac { font-size: .74em; line-height: 1.05; }
/* Phones and narrow windows: the problem on top, the answer in a drawer with a handle (R1). */
@media (max-width: 999px) {
  .solve { --q-size: 22px; --ch-gap: 28px; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .solve__bar { min-height: 56px; gap: 4px; padding: 6px 8px 6px max(8px, env(safe-area-inset-left, 0px)); }
  .solve__back { padding-right: 6px; font-size: 15px; }
  /* A long unit name takes a second line rather than a "…" (two lines at most). */
  .solve__crumb { font-size: 14px; line-height: 1.35; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .crumb__cls { display: none; }
  .solve__paper { padding: 24px 20px 0; }
  .solve__sheet { gap: 18px; padding-bottom: 20px; }
  .solve__nav { margin-inline: -8px; padding: 8px 0 14px; }
  .navbtn { width: 48px; height: 48px; }
  .solve__panel { max-height: min(72dvh, 640px); border-left: 0; border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px rgba(20, 32, 60, .10); }
  .panel__handle { flex: none; display: flex; align-items: center; justify-content: center; width: 100%; height: 24px; padding: 0; border: 0; border-radius: 22px 22px 0 0; background: none; }
  .panel__handle span { width: 40px; height: 4px; border-radius: 999px; background: var(--line-2); }
  .panel__head { padding: 2px 20px 0; }
  .panel__scroll { padding: 14px 20px 14px; gap: 12px; }
  .panel__foot { padding: 6px 20px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .solve__panel[data-folded="true"] .panel__scroll { display: none; }
  .solve__panel[data-folded="true"] .panel__head { padding-bottom: 10px; }
  .pick .ans-btn, .pick .ans-btn[aria-pressed="true"] { height: 56px; font-size: 24px; border-radius: 14px; }
  .wbox { min-height: 56px; }
  .wbox__in { min-height: 52px; font-size: 24px; }
  .btn--xl, .grade .btn--xl { min-height: 56px; font-size: 18px; }
  .panel__head h2.verdict { font-size: 22px; }
}
@media (max-width: 999px) and (min-width: 600px) { .solve { --q-size: 24px; } }
@media (max-width: 420px) { .guide { column-gap: 10px; padding: 12px 12px 10px; } .guide__art { width: 88px; height: 50px; } }
@media (max-width: 360px) { .solve__paper { padding-inline: 16px; } .panel__head, .panel__scroll, .panel__foot { padding-inline: 16px; } .pick { gap: 8px; } }
.ch__l { font-weight: 400; color: var(--ink-2); margin-right: .08em; }
.ans-glyph--circled { font-weight: 400; }
.lchip--item { gap: 8px; padding: 2px 12px; }
.lchip--no.lchip--item { padding: 1px 11px; }
.lchip__w { font-size: 18px; font-weight: 700; }
.solve__panel .mark__key { font-size: 15px; }
.solve__panel .mark__v { font-size: 20px; }

/* ---------- Overnight user-test fixes (2026-10-24) ---------- */
/* W-01: the Google and Naver marks on the sign-in buttons are small squares (the review screen's .mark box is another thing). */
.login-btn .mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; min-height: 0; padding: 0; gap: 0; border-radius: 6px; font-size: 14px; font-weight: 800; line-height: 1; }
.login-btn .mark--google { background: #ffffff; border: 1px solid #c9d3e3; color: #4285f4; }
.login-btn .mark--naver { background: #03c75a; border: 0; color: #ffffff; }
/* W-07: a □ in the problem keeps its size on screen; its touch area reaches 44px around it. */
button.sq--in { position: relative; }
button.sq--in::before { content: ""; position: absolute; inset: -14px; }
/* W-08: every control is at least 44px high where it is touched with a finger. */
@media (pointer: coarse) {
  .btn--sm, .chip, .tabs button, .tabs a, .toggle-group button, .input--sm, .acct-row .check, .solve__pic { min-height: 44px; }
  .rate { padding-block: 12px; margin-block: -12px; }
  .linklike { min-width: 44px; justify-content: center; }
  .site-footer a, .tag-row a, .usage-help a { display: inline-flex; align-items: center; min-height: 44px; }
  .admin-top .brand { min-width: 44px; justify-content: center; }
  .panel__handle { position: relative; }
  .panel__handle::after { content: ""; position: absolute; inset: -10px 0; }
}
/* W-14: on a phone the answer drawer leaves the problem in view; a long answer area scrolls inside the drawer. */
@media (max-width: 999px) { .solve__panel { max-height: min(58dvh, 640px); } }
@media (max-width: 599px) { .guide { grid-template-columns: minmax(0, 1fr); padding: 12px 14px 10px; } .guide__art { display: none; } }
/* W-15: with the AI solution open, ‹ › wait at the end of the paper instead of floating over the solution. */
.solve__paper--sol .solve__nav { position: static; }
/* W-20: phones show the plain background (the picture sat behind the title). Wide screens show the whole tablet; the
   picture's menu names were redrawn to the current ones (hero-background-wide-okap-v2.png), so nothing is masked off. */
@media (max-width: 767px) { .hero__bg { display: none; } }
@media (min-width: 768px) {
  .hero__bg { inset: 0 0 0 auto; width: auto; max-width: none; height: 100%; object-fit: fill; -webkit-mask-image: linear-gradient(90deg, transparent 0 34%, #000 43%); mask-image: linear-gradient(90deg, transparent 0 34%, #000 43%); }
}
/* W-22: the column names of the student table stay in view while it scrolls. */
.mtable { overflow: clip; }
@media (min-width: 761px) { .mrow--head { position: sticky; top: var(--admin-top-h, 64px); z-index: 2; } }
/* W-26 / D-22: the save row is a solid bar with a line on top, and its two buttons save at once (원본 사진 or 디지털). */
.save-bar { background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(20, 32, 60, .06); margin-inline: -24px; padding: 12px 24px 4px; }
@media (max-width: 560px) { .save-bar { margin-inline: -20px; padding-inline: 20px; } }
.save-note { margin: 0; }
.save-btns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.save-btn { flex-direction: column; gap: 2px; min-height: 60px; padding: 8px 10px; font-size: 15px; line-height: 1.25; }
/* Large font on a phone: the two buttons one above the other (as the app), and the row stays in the page instead of
   covering half the screen. */
@media (max-width: 560px) { html[data-font="large"] .save-btns { grid-auto-flow: row; } html[data-font="large"] .save-bar { position: static; } }
.save-btn small { font-size: 13px; font-weight: 600; color: var(--muted); }
.save-btn.btn--primary small { color: inherit; opacity: .85; }
.save-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.save-ways { margin: 0; }
.up-head .up-cancel { margin-left: auto; }
/* W-25: the AI line in two lines. */
.ai-ask { display: flex; flex-direction: column; }
.ai-ask p { margin: 0; }
/* W-27: a focused field inside a dialog shows its whole focus ring. */
.modal__body { padding-inline: 6px; margin-inline: -6px; }
/* W-29: the review marks have a name. */
.dots-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; }
.dot { font-size: 15px; }
.dot-word--right { color: var(--good); }
.dot-word--wrong { color: var(--bad); }
/* W-31: on a phone the state and difficulty chips wrap onto a second line instead of running off the edge. */
@media (max-width: 760px) { .filters.scroll-x { flex-wrap: wrap; overflow-x: visible; } }
.star-chips { flex-wrap: wrap; overflow-x: visible; }
/* W-02: an unsaved registration on the home. */
.home-resume { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; color: var(--ink); font-weight: 600; }
.home-resume__acts { display: inline-flex; flex-wrap: wrap; gap: 8px; }
/* W-03: '다음 문제' settles in after grading (a quick second tap is ignored meanwhile). */
.btn--settle { animation: settle .7s ease-out; }
@keyframes settle { from { opacity: .55; } to { opacity: 1; } }
/* D-24: the list row's main line is the problem itself. */
.prow__q { color: var(--ink); font-size: 16px; font-weight: 600; }
.prow__warn { color: var(--warn); font-weight: 700; }
/* T-42: the points rules as three short lines. */
.usage-help { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 900px) { .save-btns { width: min(100%, 560px); margin-left: auto; } .save-bar .save-note { text-align: right; } }
/* No clipping: on a narrow row the subject · grade · unit line wraps (at the dots, never inside a word) instead of "…". */
.prow__meta { flex-wrap: wrap; min-width: 0; }
.prow__cls { min-width: 0; white-space: normal; word-break: keep-all; overflow-wrap: break-word; }
.prow__meta > .stars, .prow__warn { flex: none; }

/* ---------- 2026-10-24: review schedule, today's review, attendance, reminders, stepwise AI solution, wrong reasons ---------- */
.count-line__next { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.count { flex-wrap: wrap; row-gap: 4px; }
.count .bar--thin { flex: 1 1 60px; }
.panel__next { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.home-rows .home-rows__stamp { flex-wrap: wrap; row-gap: 4px; padding: 6px 0 10px; }
.home-rows__stamp dt, .home-rows__stamp dd { white-space: nowrap; }
.stamps { display: inline-flex; gap: 4px; vertical-align: middle; }
.stamps i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); }
.stamps i.on { background: var(--primary); border-color: var(--primary); }
.home-paused { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.home-sample__app { margin-top: 10px; }
.home-sample__app .linklike, .home-paused .linklike { font-weight: 700; }
.sol-hint { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--primary-soft); color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.sol-hint .icon { flex: none; margin-top: 2px; color: var(--primary); }
.sol-next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.sol-mismatch { margin: 0; }
.why { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.why__q { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-right: 2px; }
.chip--sm { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.chip-radio { position: relative; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }
.chip-radio:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.report-steps { border: 0; padding: 0; margin: 0; min-width: 0; }
.report-steps legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.why-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--line); }
.why-bar__0 { background: #E07A4F; } .why-bar__1 { background: #4F7BE0; } .why-bar__2 { background: #9A6FD1; } .why-bar__3 { background: #8A97A8; }
.why-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-2); }
.why-legend li { display: inline-flex; align-items: center; gap: 6px; }
.why-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.why-legend b { color: var(--ink); }
.why-line { margin: 0; overflow-wrap: anywhere; }
.notify-hour { width: auto; min-width: 120px; }
/* Landing (2026-10-24 concept): three worries, then the three answers. */
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.pain { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; border-radius: 20px 20px 20px 6px; background: var(--surface); border: 1px solid var(--line); }
.pain p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.pain p > span { display: block; }
.pain__no { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.fix { display: flex; flex-direction: column; gap: 18px; }
.fix__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.fix__head h3 { font-size: 22px; margin: 0; }
.fix__head p { margin: 0; max-width: 680px; }
.fix__body { display: flex; flex-direction: column; gap: 14px; }
.courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.course { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 14px 16px; border-radius: 16px; background: var(--primary-soft); }
.course strong { font-size: 18px; color: var(--primary-ink); }
.course__days { flex-basis: 100%; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.chart { margin: 0; width: 100%; max-width: 720px; padding: 16px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.chart__title { font-weight: 700; color: var(--ink); }
.chart__box { overflow-x: auto; }
.chart svg { display: block; width: 100%; max-width: 640px; height: auto; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__axis { font-size: 22px; fill: var(--muted); }
.chart__val { font-size: 22px; font-weight: 700; fill: var(--ink); }
.chart__line { fill: none; stroke: var(--primary); stroke-width: 4; stroke-linejoin: round; }
.chart__dot { fill: var(--primary); }
.chart p { margin: 0; }
.chart__src { align-self: flex-end; text-align: right; font-size: 11.5px; line-height: 1.5; color: var(--muted); max-width: 560px; }
.chart__src cite { font-style: normal; }
.panel__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.panel__acts .panel__links { margin-top: 0; }

/* 2026-10-26 user: bigger header (brand and menu), the worry line is the point, hero picture ends with the buttons. */
.site-header__inner { padding-block: 14px; }
.brand__word { font-size: 30px; }
.brand__alias { font-size: 16px; }
.site-nav a { font-size: 17px; padding: 10px 16px; }
.site-actions .btn { font-size: 16px; }
.pain-title { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.25; letter-spacing: -0.03em; }
.page--pains { padding-top: 56px; }
@media (min-width: 768px) { .hero__inner { padding-block: 56px 0; } .hero__inner > .row { margin-bottom: 0; } }

/* ======================================================================================================================
   2026-10-26 desktop proportions (research report .ocap-local/work/research/report.md, 1440×900 targets).
   Type 14 → 16 → 20 → 24 → 32 → 44 → 64 · header 64 · content 1200 · text blocks 720 · sections 104 · cards r20 / 28 ·
   buttons 46 (hero 54). Phones keep their layout; only what is needed to stay unclipped applies below 1024px.
   ====================================================================================================================== */
:root { --wrap: 1200px; --gutter: max(16px, env(safe-area-inset-left, 0px)); --sec: 64px; --card-r: 20px; --card-pad: 24px; }
@media (min-width: 1024px) { :root { --gutter: 40px; --sec: 104px; --card-pad: 28px; } }

/* Coin: the yellow coin with its number (never the word 포인트). */
.coin { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.coin-n { display: inline-flex; align-items: center; gap: .28em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.coin-n b { font-weight: 800; color: inherit; }
.coin-pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px 0 9px; border-radius: 999px; background: #fff4cc; color: #6b4a00; font-size: 15px; font-weight: 700; }
.coin-pill:hover { background: #ffeaa6; color: #6b4a00; }
:root[data-theme="dark"] .coin-pill { background: #3a3014; color: #ffd76a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .coin-pill { background: #3a3014; color: #ffd76a; } }
.topbar-me { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.topbar-account { display: inline-flex; }
@media (min-width: 901px) { .main--home .topbar { position: static; width: auto; height: auto; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 0 20px; overflow: visible; clip: auto; white-space: normal; background: transparent; backdrop-filter: none; justify-content: flex-end; } .main--home .topbar h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .main--home .content { padding-top: 12px; } }

@media (min-width: 1024px) {
  body { font-size: 16px; }
  .small { font-size: 14px; }
  .muted { line-height: 1.6; }
  /* Header: 64px, brand and menu clearly readable. */
  .site-header__inner { max-width: calc(var(--wrap) + 2 * var(--gutter)); min-height: 64px; padding: 0 var(--gutter); gap: 32px; }
  .brand__word { font-size: 28px; }
  .brand__alias { font-size: 15px; }
  .site-nav { gap: 4px; }
  .site-nav a { font-size: 17px; font-weight: 600; padding: 8px 14px; }
  .site-actions .btn { min-height: 44px; font-size: 16px; padding: 0 20px; }
  /* Containers and sections. */
  .page { max-width: calc(var(--wrap) + 2 * var(--gutter)); padding: var(--sec) var(--gutter); }
  .page--narrow { max-width: calc(800px + 2 * var(--gutter)); }
  .section-title { font-size: clamp(28px, 3vw, 44px); line-height: 1.22; letter-spacing: -0.03em; }
  .eyebrow { font-size: 15px; }
  /* Buttons: 46 standard, 54 large, 28px sides. */
  .btn { min-height: 46px; padding: 10px 22px; font-size: 16px; }
  .btn--lg { min-height: 54px; padding: 14px 28px; font-size: 17px; border-radius: 14px; }
  .btn--sm { min-height: 38px; padding: 6px 14px; font-size: 15px; }
  /* Cards. */
  .card { border-radius: var(--card-r); padding: var(--card-pad); }
  .faq summary { min-height: 60px; font-size: 17px; }
  .faq details { padding: 4px 24px; }
  .faq details p { font-size: 16px; line-height: 1.7; }
  .footer-wrap, .site-footer__inner { max-width: calc(var(--wrap) + 2 * var(--gutter)); padding: 56px var(--gutter); font-size: 15px; }
}

/* ---------- Home ---------- */
/* The picture ends level with the bottom of the buttons (2026-10-26 user), so the hero is as tall as its text. */
@media (min-width: 1024px) {
  .hero__inner { max-width: calc(var(--wrap) + 2 * var(--gutter)); padding: 88px var(--gutter) 0; gap: 24px; }
  .hero__inner h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.18; letter-spacing: -0.035em; max-width: 620px; }
  .hero__lead { font-size: 20px; line-height: 1.6; max-width: 520px; }
  .hero__hand { width: 320px; }
  .hero .row { gap: 12px; }
  .hero .btn--lg { min-height: 56px; padding: 0 30px; font-size: 18px; }
}
@media (min-width: 768px) {
  /* 2026-11-14 user (UX-04): the teachers' and managers' way in, small under the buttons */
  .hero__web { margin-top: -8px; margin-bottom: 18px; font-size: 15px; font-weight: 600; }
  .hero__web a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
}
/* 2026-10-27 user: less empty space above "오답노트, 이래서 어려웠나요?" and between its link and the FAQ. */
.pains-sec { padding-block: 56px 40px; }
@media (min-width: 1024px) { .pains-sec { padding-block: 80px 56px; } }
.pains-sec__head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin-bottom: 40px; }
.pain-title { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.2; letter-spacing: -0.035em; font-weight: 850; }
.pains-sec__more { display: flex; justify-content: center; margin-top: 32px; }
@media (min-width: 1024px) {
  .pains { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  /* 2026-10-27 user: the number sits small in front of the text and both lines start at the same place; each line ends at its comma. */
  .pain { flex-direction: row; gap: 8px; padding: 28px 18px; border-radius: var(--card-r); }
  .pain p { font-size: 18px; line-height: 1.6; font-weight: 600; letter-spacing: -0.01em; }
  .pain__no { width: 24px; height: 24px; margin-top: 2px; font-size: 12px; background: var(--primary-soft); color: var(--primary-ink); }
  .pains-sec__more .link-more { font-size: 17px; }
}
/* FAQ: title on the left, list on the right (4 : 8). */
.faq-sec { background: var(--surface); border-top: 1px solid var(--line); }
.faq-split { display: grid; gap: 24px; }
.faq-split__head { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
@media (min-width: 1024px) {
  .faq-split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
  .faq-sec .faq details { background: var(--bg); border-color: transparent; }
}
/* 2026-10-27 user: the home FAQ looked lopsided with too much empty space, so it is one narrow centered column with the title at its top left. */
.faq-sec .faq-split { grid-template-columns: minmax(0, 1fr); max-width: calc(820px + 2 * var(--gutter)); gap: 20px; padding-block: 40px 64px; }
.faq-sec .faq-split__head { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.faq-sec .section-title { font-size: clamp(24px, 2.4vw, 32px); }
.faq-sec .faq { gap: 10px; }
@media (min-width: 1024px) {
  .faq-sec .faq-split { padding-block: 48px 80px; }
  .faq-sec .faq summary { min-height: 56px; font-size: 17px; }
}
.cta-band__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
@media (min-width: 1024px) {
  .cta-band__inner { padding-block: 96px; gap: 20px; }
  .cta-band__inner p { font-size: 18px; }
  .cta-band .btn--lg { min-height: 56px; padding: 0 32px; font-size: 18px; }
}

/* ---------- Features: alternating rows, picture : text = 7 : 5 ---------- */
.feat-intro { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding-bottom: 0; }
.feat-intro p { font-size: 18px; color: var(--muted); max-width: 560px; }
.frow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.frow__text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.frow__label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--primary); }
.frow__label .step-num { width: 28px; height: 28px; border-radius: 50%; font-size: 14px; }
.frow__text h2 { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.25; letter-spacing: -0.03em; }
.frow__text > p { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.frow__art { min-width: 0; padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.frow__note { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); font-size: 14px; font-weight: 700; }
.frow + .frow { margin-top: 72px; }
@media (min-width: 1024px) {
  .frow { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; }
  .frow--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .frow--flip .frow__art { order: 2; }
  .frow + .frow { margin-top: var(--sec); }
  .frow__art { padding: 28px; }
}
.frow__art .compare--always { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.frow__art .paper { font-size: 16px; padding: 22px 22px 100px; }
.frow__art .digital { font-size: 19px; padding: 20px; }
.feat-cards { display: grid; gap: 12px; }
.feat-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 16px; background: var(--primary-soft); }
.feat-card strong { font-size: 18px; color: var(--primary-ink); }
.feat-card .course__days { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .feat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* The forgetting-curve chart sized to its row (about 560–640 wide), text at reading size. */
.frow__art .chart { max-width: 640px; margin-inline: auto; background: transparent; border: 0; padding: 0; }
@media (min-width: 1024px) {
  .frow__art .chart svg { max-width: 600px; margin-inline: auto; }
  .frow__art .chart__axis { font-size: 15px; }
  .frow__art .chart__val { font-size: 16px; }
  .frow__art .chart__dot { r: 5px; }
  .frow__art .chart__line { stroke-width: 3; }
}
.where-sec { background: var(--surface); border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .where-sec .grid-2 { gap: 24px; } }

/* ---------- AI solution: answer on top, numbered step cards, one at a time ---------- */
.sol-ans { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 12px 20px; border-radius: 14px; background: var(--primary-soft); }
.sol-ans::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--primary); }
.sol-ans span { font-size: 13px; font-weight: 700; color: var(--primary-ink); }
.sol-ans strong { font-size: 24px; line-height: 1.35; color: var(--ink); }
.sol-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sol-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.sol-step__no { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sol-step__name { font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--ink); min-width: 0; }
.sol-step__body { font-size: 16px; line-height: 1.6; color: var(--ink-2); min-width: 0; }
.sol-step--shut { padding-block: 0; border-style: dashed; background: transparent; }
.sol-step--shut .sol-step__no { grid-row: auto; background: var(--surface-2); color: var(--muted); margin-block: 10px; }
.sol-step__open { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; padding: 0; border: 0; background: none; color: var(--primary-ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.sol-step__open .icon { width: 18px; height: 18px; }
.sol-step__lock { display: flex; align-items: center; min-height: 48px; color: var(--muted); font-weight: 600; }
.sol-check { margin: 0; font-size: 15px; color: var(--ink-2); }
.cta-band__inner { padding-block: 56px; }
@media (min-width: 1024px) { .cta-band__inner { padding-block: 96px; } }

/* ---------- Pricing ---------- */
.price-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding-bottom: 40px; }
.price-head__title { font-size: clamp(30px, 4vw, 52px); }
.price-head__lead { font-size: 17px; color: var(--muted); max-width: 560px; }
.price-toggle button { min-height: 44px; padding: 6px 20px; font-size: 16px; }
.price-body { padding-top: 0; display: flex; flex-direction: column; gap: 48px; }
.plan { gap: 18px; border-radius: var(--card-r); padding: var(--card-pad); }
.plan--pick { border: 2px solid var(--primary); background: color-mix(in srgb, var(--primary-soft) 55%, var(--surface)); }
.plan__top { display: flex; flex-direction: column; gap: 6px; }
.plan__name { font-size: 20px; font-weight: 800; }
.plan__who { font-size: 14px; color: var(--muted); line-height: 1.5; min-height: 2lh; }
.plan__price { font-size: 32px; font-weight: 850; letter-spacing: -0.03em; line-height: 1.2; margin-top: 8px; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan__bill { font-size: 14px; color: var(--muted); line-height: 1.5; min-height: 2lh; }
.plan .btn.plan__btn { width: 100%; margin-top: 0; }
.plan__feats { margin: 0; padding: 16px 0 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--line); }
.plan__feats li { display: flex; gap: 8px; align-items: baseline; }
.plan .seg .chip { min-width: 52px; justify-content: center; }
.plan__seats { gap: 8px; }
.quote-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 22px 28px; border-radius: var(--card-r); background: var(--surface); border: 1px dashed var(--line-2); }
.quote-row__t { font-size: 19px; font-weight: 800; }
/* 2026-11-06 user (web): no last word alone on its own line when this note wraps */
.quote-row .small { text-wrap: balance; }
.price-sec { display: flex; flex-direction: column; gap: 20px; }
.price-sec__head { display: flex; flex-direction: column; gap: 8px; }
.price-sec__head .section-title { font-size: clamp(24px, 2.4vw, 32px); }
.price-sec__head .section-title .coin { width: .9em; height: .9em; vertical-align: -0.12em; margin-right: .06em; }
.price-sec.faq-split .section-title { font-size: clamp(24px, 2.4vw, 32px); }
.coin-uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.coin-uses .stat { gap: 4px; padding: 18px 20px; border-radius: 16px; }
.coin-uses .stat .v { font-size: 24px; }
.coin-packs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.coin-packs__t { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; }
.coin-packs__list { display: flex; flex-wrap: wrap; gap: 12px; }
.coin-pack { display: inline-flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 17px; }
.coin-pack__n { font-size: 18px; }
.extra-card__t { font-size: 18px; }
.cmp-table td { font-variant-numeric: tabular-nums; }
.cmp-table .cmp-pick { color: var(--primary-ink); }
@media (min-width: 1024px) {
  .price-head { padding-bottom: 48px; }
  .price-body { gap: 72px; }
  .plans { gap: 20px; }
  .plan__price { font-size: 38px; }
  .cmp-table th, .cmp-table td { padding: 14px 18px; font-size: 15px; }
  .cmp-table th[scope="row"] { width: 22%; }
}
@media (min-width: 1100px) and (max-width: 1279px) { .plan__price { font-size: 32px; } .plan { padding: 22px; } }
.price-sec.faq-split { display: grid; }
.plan__price small { white-space: nowrap; }
.frow__art > .solution { border: 0; padding: 0; background: transparent; }
@media (min-width: 1024px) {
  .frow__art .compare--always { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .frow__art .paper-wrap { max-width: 520px; }
  .feat-cards { grid-template-columns: minmax(0, 1fr); }
  .brand__word { font-size: 30px; }
  .brand__alias { font-size: 16px; }
  .hero__lead { max-width: 470px; }
  .pain { min-height: 0; }
}

/* ---------- Solve screen, wide screens: a 720px sheet, a 4px progress bar with n / N, a coloured result band ---------- */
.solve__prog { display: none; }
@media (min-width: 1000px) {
  .solve { --q-size: clamp(20px, 1.8vw, 26px); }
  .solve .digital { line-height: 1.6; }
  .solve__bar .crumb__pos, .solve__bar .crumb__lead { display: none; }
  .solve__prog { flex: none; display: flex; align-items: center; gap: 14px; padding: 10px 24px 0 max(24px, env(safe-area-inset-left, 0px)); }
  .solve__track { flex: 1 1 auto; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
  .solve__track i { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
  .solve__prog b { flex: none; font-size: 15px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .solve__paper { padding: 40px 48px 0; }
  .solve__sheet, .solve__nav { width: 100%; max-width: 720px; margin-inline: auto; }
  .solve__nav { margin-top: auto; }
  /* The result band sits where the answer title was; the button below becomes '다음 문제'. */
  .panel__band { margin: 0; padding: 18px 28px; min-height: 72px; }
  .panel__band--ok { background: var(--good-soft); }
  .panel__band--no { background: var(--bad-soft); }
  .solve .solution { gap: 14px; }
}
.solution ol.sol-steps { padding: 0; gap: 10px; }
@media (min-width: 901px) { .home-hero { justify-content: center; } }
.setting-row select.notify-hour { width: auto; }
/* The unit sits under the price on every card, so the four prices line up at any width. */
.plan__price small { display: block; margin-top: 2px; }

/* ======================= 2026-10-26 desktop review (13 items) ======================= */
/* 1, 2: login and start are centred cards, not the full page width. */
.auth__card { width: 100%; max-width: 440px; margin-inline: auto; }
.auth__card--wide { max-width: 520px; }

/* 3: the solve screen. Wide screens: one working column (max 760px) — the row ‹ 이전 · progress · n / N · 다음 ›, the
   problem, the answer card right under it (input, answer types and '다 풀었어요' together), then the AI solution.
   The page scrolls as a whole; nothing sticks or floats. Phones keep the drawer. */
.solve__nav .navbtn__t { display: none; }
.solve__nav--one { display: none; }
@media (min-width: 1000px) {
  body:has(> #root > .solve), html[data-font="large"] body:has(> #root > .solve) { height: auto; display: block; overflow: visible; background: var(--surface); }
  body:has(> #root > .solve) > #root { display: block; }
  .solve { --q-size: clamp(22px, 2vw, 28px); display: grid; grid-template-columns: minmax(24px, 1fr) minmax(0, 760px) minmax(24px, 1fr); align-content: start; min-height: calc(100vh - var(--proto-h, 42px)); padding-bottom: 72px; }
  html[data-font="large"] .solve { min-height: calc(100vh / 1.15 - var(--proto-h, 42px)); }
  .solve__col, .solve__paper { display: contents; }
  .solve__col > *, .solve__paper > *, .solve > .solve__panel { grid-column: 2; min-width: 0; }
  .solve__bar { grid-column: 1 / -1; order: 0; padding-inline: 24px; }
  .solve__nav { order: 1; }
  .solve__sheet { order: 2; }
  .solve > .solve__panel { order: 3; }
  .solve__sol { order: 4; margin-top: 24px; }
  .solve__nav, .solve__nav--one { position: static; display: flex; align-items: center; gap: 12px; width: auto; max-width: none; margin: 20px 0 0; padding: 0; pointer-events: auto; }
  .solve__nav .solve__prog { flex: 1 1 auto; display: flex; align-items: center; gap: 14px; padding: 0 4px; }
  .solve__prog b { font-size: 16px; }
  .solve__nav .navbtn { width: auto; height: 44px; gap: 4px; padding: 0 14px 0 10px; border-radius: 12px; box-shadow: none; font: 600 16px/1 var(--font); }
  .solve__nav .navbtn--next { margin-left: 0; padding: 0 10px 0 14px; }
  .solve__nav .navbtn .icon { width: 20px; height: 20px; }
  .solve__nav .navbtn__t { display: inline; }
  .solve__nav .navbtn[hidden] { display: inline-flex !important; visibility: hidden; }
  .solve__sheet { width: auto; max-width: none; margin: 0; gap: 20px; padding: 36px 0 28px; }
  .solve .digital { line-height: 1.6; }
  /* The answer card: the same width as the problem. */
  .solve > .solve__panel { min-height: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); box-shadow: var(--shadow); }
  .solve__panel .panel__head { padding: 22px 28px 0; }
  .solve__panel .panel__head h2 { font-size: 18px; }
  .solve__panel .panel__head h2.verdict { font-size: 24px; }
  .solve__panel .panel__band { padding: 18px 28px; border-radius: 19px 19px 0 0; }
  .solve__panel .panel__scroll { overflow: visible; -webkit-mask-image: none; mask-image: none; padding: 16px 28px 0; gap: 16px; }
  .solve__panel .panel__scroll:empty { display: none; }
  .solve__panel .panel__foot { padding: 20px 28px 28px; }
  .solve .wbox { min-height: 60px; }
  .solve .wbox__in { min-height: 56px; font-size: 24px; }
  .solve .wbox__pv { font-size: 22px; }
  .solve .pick .ans-btn, .solve .pick .ans-btn[aria-pressed="true"] { height: 60px; font-size: 24px; }
  .solve .btn--xl, .solve .grade .btn--xl { min-height: 56px; font-size: 18px; }
  .solve__panel .panel__hint, .solve__panel .panel__note, .solve__panel .verdict__note, .solve__panel .guide__text { font-size: 16px; }
  .solve__panel .panel__links .linklike, .solve__panel .rv-status { font-size: 16px; }
  .solve__panel .count, .solve__panel .panel__next, .solve__panel .why__q { font-size: 15px; }
  .solve .solution { font-size: 16px; }
}

/* 4: the problem list is kept to a readable width, so the status sits near the text. */
@media (min-width: 1024px) { .main--lib .content { max-width: 960px; } }

/* 5: the problem page. Wide: the problem and the review record side by side, the information card under both, its
   short fields in two columns. */
.info-pair { display: grid; gap: 16px; min-width: 0; }
.info-pair > * { min-width: 0; }
@media (min-width: 1001px) {
  .detail { grid-template-areas: "prob side" "info info"; }
  .detail .side-card { position: static; }
  .info-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
}

/* 6: 선생님·학부모 — text : card = 7 : 5, both as tall as each other; the school card spans the width under them. */
.tg-sec { display: flex; flex-direction: column; gap: 24px; }
.tg-row { display: grid; gap: 24px; }
.tg-title { font-size: 28px; }
.tg-facts { display: flex; flex-direction: column; gap: 14px; }
.tg-facts h3 { font-size: 18px; }
.tg-steps { gap: 16px; }
.tg-school { display: grid; gap: 20px; }
.tg-school__files { align-items: flex-start; }
@media (min-width: 1024px) {
  .tg-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
  .tg-title { font-size: 32px; }
  .tg-steps { justify-content: center; padding: 32px; }
  .tg-school { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; padding: 32px; }
  .tg-school__files .btn { width: fit-content; justify-content: center; }
}

/* 7: 기능 소개 — the title on the left like the rest; the AI card keeps its height when steps are folded. */
.feat-intro { align-items: flex-start; text-align: left; }
/* The AI card is taller than its text (about 510px folded, 640px open), so the text sits in the card's middle and the
   row keeps the card's own height; the plan note under the text gives the column the same weight as row 1. */
@media (min-width: 1024px) {
  .frow--sol { align-items: center; }
  .frow--sol .frow__text { justify-content: center; }
}

/* 8: 요금제 — every card has the same rows (top, options, button, list), so the buttons line up. */
.plan__opt { display: flex; align-items: center; min-width: 0; }
.plan__opt:empty, .plan__cta:empty { display: none; }
@media (min-width: 768px) {
  .price-body > .plans > .plan { display: grid; grid-row: span 10; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
  .price-body .plan__top { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
  .price-body .plan__head { display: contents; }
  .price-body .plan__title { grid-row: 1; }
  .price-body .plan__head .plan__who { grid-row: 3; }
  .price-body .plan__price { grid-row: 2; margin: 0; align-self: baseline; }
  .price-body .plan__bill { grid-row: 4; min-height: 0; margin: 0; }
  .price-body .plan__fam-note { grid-row: 5; margin: 0; }
  .price-body #seat-total { display: contents; }
  .price-body .plan__opt { display: grid; grid-row: span 2; grid-template-rows: subgrid; align-items: start; }
  .price-body .plan__cycle { grid-row: 1; }
  .price-body .plan__seats { grid-row: 2; }
  .price-body .plan__cta { grid-row: 8; align-self: start; }
  .price-body .plan__feats { grid-row: 9; }
  .price-body .plan__link--foot { grid-row: 10; }
}

/* 9: 내 계정 — two columns on wide screens. */
.acct-grid, .acct-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (min-width: 1200px) {
  .acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .acct-grid .card--narrow, .acct-card { max-width: none; }
}

/* 10: 요금제·학생 수 — what you have on the left, what you can change on the right; payment method and history side by side. */
.bill-split, .bill-pair { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bill-split > *, .bill-pair > * { min-width: 0; }
@media (min-width: 1100px) {
  .bill-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .bill-change { padding-left: 32px; border-left: 1px solid var(--line); }
  .bill-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
}

/* 11: parent home — the units to look at again and the plan under the children's cards. */
.fam-sum { display: grid; gap: 16px; }
@media (min-width: 900px) { .fam-sum { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: stretch; } }
.fam-units { display: flex; flex-direction: column; }
.fam-units__row { display: grid; grid-template-columns: minmax(56px, auto) minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 52px; padding: 8px 4px; border-top: 1px solid var(--line); color: var(--ink); }
.fam-units li:first-child .fam-units__row { border-top: 0; }
.fam-units__row:hover { color: var(--primary-ink); }
.fam-units__who { font-weight: 700; }
.kv--wide { grid-template-columns: max-content 1fr; column-gap: 20px; }

/* 12: footer — brand on the left, the link groups spread on the right. */
.footer-cols { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.footer-brand { max-width: 300px; }
@media (min-width: 1024px) {
  .site-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 64px; row-gap: 40px; }
  .footer-cols { display: grid; grid-template-columns: repeat(3, minmax(150px, auto)); gap: 0 96px; }
  .site-footer__inner > p { grid-column: 1 / -1; }
}

/* 13: the sticky sidebar fits under the prototype bar, so its last line is never cut by the window. */
@media (min-width: 901px) {
  .sidebar { top: 0; height: calc(100vh - var(--proto-h, 42px)); }
  html[data-font="large"] .sidebar { height: calc(100vh / 1.15 - var(--proto-h, 42px)); }
}

/* Bigger text at desktop width (2026-10-26): secondary text at least 14–15px, body 16px, key numbers larger. */
@media (min-width: 1024px) {
  .small { font-size: 15px; }
  .proto-bar { font-size: 14px; }
  .badge { font-size: 14px; }
  .notice { font-size: 15px; }
  .field label, .field-label { font-size: 15px; }
  .kv dt, .kv dd { font-size: 16px; }
  .stat .k { font-size: 15px; }
  .stat .v { font-size: 32px; }
  .kid-stats { font-size: 15px; }
  .kid-stats b { font-size: 26px; }
  .filters .label, .cmp-links, .home-rows__hint, .plan__reset, .ans-more-btn .muted, .mark__key, .sol-ans span { font-size: 15px; }
  .mask-note, .sol-foot, .sheet-rate__label { font-size: 14px; }
  .chip--sm { min-height: 36px; font-size: 15px; }
  .chip { font-size: 15px; }
  .side-link { min-height: 48px; font-size: 17px; }
  .plan-mini { font-size: 15px; }
  .settings__nav a { font-size: 16px; }
  table, .cmp-table th, .cmp-table td { font-size: 16px; }
  .mrow--head { font-size: 15px; }
  .mlabel { font-size: 14px; }
  .faq summary { font-size: 18px; }
  .faq details p { font-size: 17px; }
  .prow__title { font-size: 17px; }
  .prow__text { font-size: 17px; }
  .prow__meta, .prow__meta .badge, .prow__count, .prow__state { font-size: 15px; }
  .prow__meta .stars { font-size: 14px; }
  .plan__who, .plan__bill { font-size: 15px; }
  .plan__feats { font-size: 16px; }
  .plan__price small { font-size: 16px; }
  .quote-row .small, .coin-uses .stat .k { font-size: 15px; }
  .home-foot, .home-note, .home-sec__note, .home-banner > span > span, .home-list__note, .home-rows__of { font-size: 15px; }
  .home-eyebrow, .home-sub, .home-rows dt, .home-rows dd, .count-line { font-size: 16px; }
  .count-line__next, .panel__next, .why__q, .why-legend, .count, .stepper-line, .modal__err { font-size: 15px; }
  .guide__text, .panel__hint, .panel__note, .verdict__note { font-size: 16px; }
  .site-footer__inner { font-size: 16px; }
}

/* 2026-10-26 user: admin header = the set name (bigger) + a '패밀리'/'클래스' tag; kid stat numbers sit centred over their labels. */
.admin-title { gap: 12px; }
.admin-title h1 { flex: 0 1 auto; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.admin-tag { flex: none; font-size: 15px; padding: 5px 12px; }
@media (max-width: 560px) { .admin-title h1 { font-size: 22px; } .admin-title .admin-tag { display: inline-flex; font-size: 13px; padding: 4px 9px; } }
.kid-stats span { align-items: center; text-align: center; }
.kid-stats b { line-height: 1.2; }
/* 2026-10-26 user: the coin must sit on the text line, not float. Inline with the text, same weight as around it. */
.coin-n { display: inline; }
.coin-n .coin { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.17em; margin-right: .22em; }
.coin-n b { font-weight: inherit; }
.coin-pill .coin-n, .coin-pack .coin-n { display: inline-flex; align-items: center; }
.coin-pill .coin-n .coin, .coin-pack .coin-n .coin { vertical-align: 0; }
/* 2026-10-26 user: 고객센터 1:1 문의 form (settings tab and help page). */
.support-form { max-width: 640px; }
.support-form__body { min-height: 160px; resize: vertical; line-height: 1.6; padding-block: 12px; }
.support-form__send { align-self: flex-start; min-width: 140px; }
.support-mine li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.support-mine__t { font-weight: 700; overflow-wrap: anywhere; }
/* 2026-10-26 user: the matching board sits in the middle of its panel; a bulb leads '내 힌트 보기'. */
.mb { margin-inline: auto; }
.mb-redo { width: 100%; max-width: 560px; margin-inline: auto; }
.hint-link { display: inline-flex; align-items: center; gap: 6px; }
.hint-link .icon { width: 1.1em; height: 1.1em; flex: none; color: #e0a100; }
.fold-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2, var(--bg)); color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.fold-btn:hover { border-color: var(--primary); }
.fold-btn__chev { transform: rotate(90deg); transition: transform .15s; }
.fold-btn[aria-expanded="true"] .fold-btn__chev { transform: rotate(-90deg); }
/* 2026-10-26 user: the greeting card fills with today's first problems instead of empty space; the upload link lives only in the sidebar. */
@media (min-width: 901px) { .home-hero { justify-content: flex-start; } }
.home-today { display: flex; flex-direction: column; margin-top: 18px; border-top: 1px solid var(--line); }
.home-today__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.home-today__row:hover { color: var(--primary); }
.home-today__t { min-width: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.home-today__more { margin-top: 10px; font-size: 15px; color: var(--muted); }
/* 2026-10-26 user: nothing on the admin screens follows the wheel — header, settings menu and list head scroll away. */
.admin-top { position: static; }
.settings nav { position: static; }
.mrow--head { position: static !important; }
.admin-title .brand { display: inline-flex; }
/* 2026-10-26 user: the crop instruction must be easy to see, led by a picture. */
.guide-tip { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); }
.guide-tip__ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary); color: #fff; }
.guide-tip__ic .icon { width: 24px; height: 24px; }
.guide-tip__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guide-tip__txt strong { font-size: 17px; color: var(--ink); }
.guide-tip__txt span { font-size: 15px; color: var(--ink-2, var(--muted)); }
/* 2026-10-26 user: the page header does not follow the wheel on any signed-in screen. */
.topbar { position: static; }
/* 고객센터 form, second pass (2026-10-26 user: "깔끔한 양식"). */
.support-form { display: flex; flex-direction: column; gap: 22px; max-width: 680px; }
.sf-row { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.sf-label { font-size: 16px; font-weight: 700; color: var(--ink); padding: 0; }
.sf-req { margin-left: 4px; font-size: 13px; font-weight: 600; color: var(--primary); }
.sf-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-kind { position: relative; }
.sf-kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sf-kind span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2, var(--line)); border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 600; color: var(--ink-2); }
.sf-kind input:checked + span { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--primary); }
.sf-kind input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 2px; }
.sf-count { align-self: flex-end; font-variant-numeric: tabular-nums; }
.sf-agree { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2, var(--bg)); font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.sf-agree input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--primary); }
.support-form__send { align-self: stretch; }
@media (min-width: 761px) { .support-form__send { align-self: flex-start; min-width: 180px; } }
.sf-mine { display: flex; flex-direction: column; gap: 6px; max-width: 680px; margin-top: 8px; }
.support-mine li { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.support-mine__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.up-exit { gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
/* 2026-10-26 user: the save buttons stay at the end of the page instead of following the wheel. */
.save-bar { position: static; background: none; }
.confirm-crop { margin: 0; max-height: 50vh; overflow: hidden; display: flex; justify-content: center; }
.confirm-crop img { max-height: 50vh; width: auto; object-fit: contain; }
/* 2026-10-26 user: one clear '뒤로 가기' at the top of the upload steps replaces the scattered links and the corner 취소. */
.up-back { align-self: flex-start; min-height: 44px; padding-inline: 14px 18px; font-size: 16px; }
@media (min-width: 901px) { .home-link-row.phone-only { display: none; } }
/* 2026-10-26 user: each step explains why (teacher style); the common-mistake line closes the solution. */
.sol-step__body { line-height: 1.7; }
.sol-mistake { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, #e0a100 12%, var(--surface)); line-height: 1.6; }
.sol-mistake strong { color: var(--ink); }
/* 2026-10-26 user: the answer is set in numbered steps; choice buttons are smaller; ①… and ㄱ… rows each with − / +. */
.ans-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.ans-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.ans-step__n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 14px; font-weight: 800; }
.ans-step__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ans-step__t { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 28px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--primary); }
.ans-rows { display: flex; flex-direction: column; gap: 10px; }
.ans-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ans-row .ans-btns { gap: 6px; }
.ans-rows .ans-btn { min-width: 40px; height: 40px; padding: 0 9px; font-size: 16px; border-radius: 10px; }
.ans-rows .ans-btn[aria-pressed="true"] { padding: 0 8px; }
.ans-rows .ans-glyph--circled { font-size: 1.05em; }
.ans-style { width: auto; min-width: 104px; }
.ans-row__name { min-width: 104px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ans-row .input.ans-style { width: auto; flex: none; }
.ans-row { flex-wrap: nowrap; gap: 10px; }
.ans-row .input.ans-style { min-width: 0; width: 92px; padding-inline: 10px 26px; }
.ans-row__name { flex: none; width: 92px; min-width: 0; }
.ans-row .ans-btns { flex: 0 1 auto; min-width: 0; }
.ans-row .ans-count { flex: none; }
.ans-row .ans-count .icon-btn { width: 36px; min-width: 36px; }
@media (max-width: 560px) { .ans-row { flex-wrap: wrap; } .ans-row__name { display: none; } }
.ans-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ans-row .ans-btns { flex-wrap: wrap; }
@media (max-width: 560px) { .ans-row { grid-template-columns: minmax(0, 1fr) auto; } .ans-row .ans-style { grid-column: 1 / -1; } }
.ans-rows .ans-btn, .ans-rows .ans-btn[aria-pressed="true"] { min-width: 38px; width: auto; height: 38px; padding: 0 6px; }
.ans-row .ans-btns { gap: 5px; }
.ans-row .ans-count { gap: 0; }
.ans-row .ans-count .icon-btn { width: 32px; min-width: 32px; height: 38px; }
.ans-row .input.ans-style { height: 38px; min-height: 38px; font-size: 14px; }
/* 2026-10-26 user: the choice rows are compact — a small look picker, five buttons per line (6th wraps), − n + right after. */
.ans-row { grid-template-columns: auto auto auto; justify-content: start; gap: 10px; }
.ans-row .input.ans-style { width: 76px; height: 36px; min-height: 36px; padding: 0 22px 0 10px; font-size: 13px; background-position: right 6px center; }
.ans-row__name { width: 76px; }
.ans-row .ans-btns { display: grid; grid-template-columns: repeat(5, 36px); gap: 5px; }
.ans-rows .ans-btn, .ans-rows .ans-btn[aria-pressed="true"] { min-width: 0; width: 36px; height: 36px; padding: 0; font-size: 15px; }
.ans-row .ans-count { gap: 0; font-size: 14px; }
.ans-row .ans-count .icon-btn { width: 28px; min-width: 28px; height: 36px; font-size: 18px; }
.ans-rows { gap: 8px; }
@media (max-width: 560px) { .ans-row { grid-template-columns: auto auto; } .ans-row .ans-style { grid-column: 1 / -1; } }
.ans-row { align-items: start; }
/* 출석체크 완료 카드 (2026-10-26 user chose 시안 2-B). */
.attend-card { position: fixed; z-index: 60; left: 50%; top: 26vh; transform: translateX(-50%); width: 230px; padding: 16px 14px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(20, 26, 36, .18); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; animation: attend-in .22s ease-out; transition: opacity .35s, transform .35s; }
.attend-card.out { opacity: 0; transform: translate(-50%, -8px); }
.attend-card__big { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); }
.attend-card__t { font-size: 16px; font-weight: 800; color: var(--primary); }
.attend-card__row { display: flex; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2, var(--bg)); }
.attend-card__d { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.attend-card__d em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); }
.attend-card__d i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line-2, var(--line)); }
.attend-card__d i.on { background: var(--primary); border-color: var(--primary); }
@keyframes attend-in { from { opacity: 0; transform: translate(-50%, 8px) scale(.96); } to { opacity: 1; transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .attend-card { animation: none; transition: none; } }
/* 2026-10-26 user: coin rules — ? beside the balance opens one sheet; ? beside a button opens three lines. Clean line breaks. */
.q-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.8px solid var(--muted); background: var(--surface); color: var(--muted); font: inherit; font-size: 14px; font-weight: 900; line-height: 1; cursor: pointer; flex: none; position: relative; }
.q-btn::after { content: ''; position: absolute; inset: -9px; } /* 44px touch area */
.q-btn:hover, .q-btn[aria-expanded="true"] { border-color: var(--primary); color: var(--primary); }
.q-btn--sm { width: 22px; height: 22px; font-size: 12px; }
.topbar-me { gap: 8px; }
.cr-why { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 9%, var(--surface)); color: var(--primary); font-size: 15px; font-weight: 600; line-height: 1.5; word-break: keep-all; }
.cr-why .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.cr-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.cr-table thead th { font-size: 13px; color: var(--muted); font-weight: 700; text-align: left; padding: 0 4px 6px; }
.cr-table tbody th { text-align: left; font-weight: 400; padding: 10px 4px; border-top: 1px solid var(--line); vertical-align: top; word-break: keep-all; }
.cr-table td { padding: 10px 4px; border-top: 1px solid var(--line); vertical-align: top; }
.cr-c { text-align: right; white-space: nowrap; font-weight: 800; }
.cr-k { display: block; font-weight: 700; color: var(--ink); }
.cr-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.cr-free { color: var(--good, #12a150); }
.cr-earn { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fff8e1; color: #5b4a1e; }
.cr-earn p { margin: 0; }
.cr-earn__t { font-size: 13px; font-weight: 800; color: #8a5a00; }
.cr-earn__d { margin-top: 6px !important; font-size: 13px; font-weight: 700; word-break: keep-all; }
.cr-earn__r { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; padding-top: 3px; }
.cr-earn__r b { color: #8a5a00; white-space: nowrap; }
.cr-earn__r small { font-weight: 600; font-size: 12px; }
.cr-foot { margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.q-wrap { position: relative; display: inline-flex; align-items: center; }
.q-tip { position: absolute; z-index: 30; top: calc(100% + 10px); right: -8px; width: min(320px, 82vw); display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: #141a24; color: #fff; font-size: 13.5px; line-height: 1.55; box-shadow: 0 12px 30px rgba(0,0,0,.25); word-break: keep-all; text-align: left; }
.q-tip b { color: #ffd65c; }
.q-tip__more { align-self: flex-start; margin-top: 4px; color: #9cc0ff; font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cr-earn { background: #2d2614; color: #f1e2b8; } }
:root[data-theme="dark"] .cr-earn { background: #2d2614; color: #f1e2b8; }

.cr-table th, .cr-table td { background: none; }
.cr-foot { font-size: 13px; color: var(--muted); }
.cr-foot b { color: var(--ink-2); }
.cr-table tbody tr:last-child th, .cr-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.cr-table { border-collapse: collapse; }
.q-tip { right: auto; left: -12px; }
@media (max-width: 760px) { .q-tip { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); top: auto; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); width: auto; } }
.q-tip__why { color: #c3cddd; font-size: 12.5px; }
.q-tip__more { margin-top: 2px; }

/* 2026-10-26 user: tip above the button (the bottom was cut), light card, clearer lines; coin picture instead of the word. */
.q-tip { top: auto; bottom: calc(100% + 12px); left: -12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(20, 26, 36, .16); gap: 6px; font-size: 14px; }
.q-tip b, .q-tip__t { color: var(--ink); }
.q-tip__t { font-size: 15px; }
.q-tip__why { color: var(--muted); font-size: 13px; }
.q-tip__more { color: var(--primary); }
.q-tip .coin-n { font-weight: 800; }
@media (max-width: 760px) { .q-tip { position: fixed; top: auto; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); } }
.cr-why .coin-n b:empty { display: none; }
.cr-table thead .coin { width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.cr-foot .coin-n { font-weight: 800; color: var(--ink-2); }
.cr-why .coin { width: 1.1em; height: 1.1em; vertical-align: -0.2em; }
.cr-table thead th.cr-c { text-align: right; }

/* number first, then the coin (2026-10-26 user) */
.coin-n .coin { margin-right: 0; margin-left: .18em; }
.coin-pill .coin-n .coin, .coin-pack .coin-n .coin { margin-left: .25em; }
.cr-table { margin-top: 6px; }
.cr-table tbody tr:first-child th, .cr-table tbody tr:first-child td { border-top: 0; }
.cr-off { color: var(--muted); font-weight: 700; }
/* 2026-10-27 user: the public header (기능 소개·요금제 …) stays at the top of the page and does not follow the wheel. */
.site-header { position: static; }
/* 2026-10-27 user: help page starts higher, topic tabs sit in a small box under the intro. */
.help-page { padding-top: 32px; }
@media (min-width: 1024px) { .help-page { padding-top: 48px; } }
.help-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
/* 2026-10-27 user: teacher·parent page as two plan cards split by group size and side-by-side start steps. */
.tg2 { display: flex; flex-direction: column; gap: 48px; padding-top: 40px; }
.tg2-head { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.tg2-head h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.25; letter-spacing: -0.03em; font-weight: 850; text-wrap: balance; }
.tg2-head p { font-size: 17px; color: var(--muted); text-wrap: balance; }
.tg2-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.tg2-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.tg2-who { align-self: flex-start; font-size: 14px; font-weight: 700; color: var(--primary-ink); background: var(--primary-soft); padding: 4px 12px; border-radius: 999px; }
.tg2-card h2 { font-size: 26px; letter-spacing: -0.02em; font-weight: 850; }
.tg2-price { display: flex; flex-direction: column; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.tg2-price b { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; }
/* 2026-10-27 user: '월' in front and '부터' after, both a little smaller on the same baseline. */
.tg2-price small { font-size: 20px; font-weight: 700; color: var(--ink-2); letter-spacing: 0; }
.tg2-price > span { font-size: 15px; color: var(--muted); }
.tg2-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.tg2-list li { display: flex; gap: 10px; align-items: flex-start; }
.tg2-ck { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--primary); stroke-width: 2.6; }
.tg2-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.tg2-pay { font-size: 14px; color: var(--muted); }
.tg2-sec { display: flex; flex-direction: column; gap: 16px; }
.tg2-sec > h2 { font-size: clamp(24px, 2.6vw, 28px); font-weight: 850; letter-spacing: -0.02em; text-align: center; }
.tg2-flow { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.tg2-flow h3 { font-size: 18px; }
.tg2-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
/* 2026-10-27 user: the round number sits in front of the step title, like the home worries; the text below lines up with the title. */
.tg2-step { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 8px; row-gap: 6px; align-items: center; align-content: start; padding: 16px; border-radius: 16px; background: var(--bg); }
.tg2-step strong { font-size: 16px; }
.tg2-step__d { grid-column: 2; font-size: 15px; color: var(--muted); line-height: 1.55; }
.tg2-no { width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 720px) { .tg2-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tg2-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tg2 { padding-top: 48px; gap: 56px; } .tg2-cards { gap: 24px; } .tg2-card { padding: 32px; } .tg2-flow { padding: 28px 32px; } .tg2-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.tg2-tiers { list-style: none; margin: 4px 0 2px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tg2-tiers li { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; text-align: center; padding: 6px 4px; border-radius: 10px; background: var(--bg); }
.tg2-tiers li span { font-size: 13px; color: var(--muted); }
.tg2-tiers li b { font-size: 15px; }
.tg2-tiers li em { font-style: normal; font-size: 12px; line-height: 1.4; color: var(--muted); }
/* 2026-10-27 user: the group quote box sits right under the plan cards. */
.price-body > .quote-row { margin-top: -52px; }
/* 2026-10-27 user: feature page rows all read the same way (text left, picture right) and are compact enough to take in at a glance. */
.fx2 { display: flex; flex-direction: column; gap: 32px; padding-top: 8px; }
.fx2-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; padding: 24px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.fx2-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fx2-label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--primary); }
.fx2-no { width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.fx2-text h2 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -0.03em; text-wrap: balance; }
.fx2-text p { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.fx2-art { min-width: 0; padding: 16px; border-radius: 20px; background: var(--bg); }
.fx2-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: center; }
.fx2-pair figure { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fx2-pair figcaption { align-self: flex-start; }
.fx2-photo { width: 100%; border-radius: 12px; display: block; }
.fx2-arrow { justify-self: center; color: var(--muted); transform: rotate(90deg); }
.fx2-arrow svg { width: 22px; height: 22px; }
.fx2-doc { padding: 16px; border-radius: 12px; font-size: 15px; line-height: 1.6; }
.fx2-doc p { margin: 0 0 10px; }
.fx2-fig { display: block; width: 72%; max-width: 260px; margin: 4px auto 0; }
.fx2-courses { display: flex; flex-wrap: wrap; gap: 8px; }
/* 2026-11-04 user: the 4주 / 8주 course cards are there from the start on phones too, no animation */
.fx2-courses li { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 14px; background: var(--primary-soft); }
.fx2-courses strong { font-size: 14px; color: var(--primary-ink); }
.fx2-courses span { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fx2-art .chart { background: transparent; border: 0; padding: 0; max-width: 560px; margin-inline: auto; }
.fx2-art > .solution { border: 0; padding: 0; background: transparent; }
@media (min-width: 900px) {
  .fx2-row { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px; padding: 28px 32px; }
  .fx2-pair { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .fx2-arrow { transform: none; }
}
/* Compact pictures so the three rows fit together: the chart keeps its title, line and source; the solution shows the
   answer, the first step and the next one to open. */
.fx2-art .chart > p.small, .fx2-art .chart__src { display: none; }
.fx2-art .chart__box svg { max-height: 220px; }
.fx2-art .solution .sol-steps > li:nth-child(n+3), .fx2-art .solution .sol-foot { display: none; }
.fx2-art .solution .sol-ans { padding-block: 10px; }
@media (min-width: 900px) { .fx2 { gap: 20px; } .fx2-row { padding: 22px 28px; } }
/* 2026-10-27 user: 기능 소개 and 요금제 open exactly like 클래스·패밀리: short label, title and lead in the same place and size. */
.price-head { padding-top: 40px; gap: 12px; }
.price-head__title { font-size: clamp(28px, 4vw, 40px); line-height: 1.25; letter-spacing: -0.03em; font-weight: 850; }
@media (min-width: 1024px) { .price-head { padding-top: 48px; } }
/* 2026-10-27 user: rows were too wide to take in; a narrower column, text starting at the top of each row, a shorter chart. */
.fx2 { max-width: calc(980px + 2 * var(--gutter)); }
@media (min-width: 900px) {
  .fx2-row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: 28px; }
}
.fx2-art .chart { max-width: 400px; }
.fx2-art .chart__box svg { max-height: 190px; }
.fx2 { max-width: calc(1040px + 2 * var(--gutter)); }
@media (min-width: 900px) { .fx2-row { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); } }
.fx2-doc { font-size: 14px; padding: 14px; }
.fx2-fig { width: 64%; }
/* ---------- 2026-10-27 user: one heading shape everywhere (pill, title, one grey line) ---------- */
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.sec-head--left { align-items: flex-start; text-align: left; }
.sec-pill { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.sec-head__t { font-size: clamp(24px, 3vw, 34px); line-height: 1.28; letter-spacing: -0.03em; font-weight: 850; text-wrap: balance; }
h1.sec-head__t { font-size: clamp(28px, 4vw, 40px); }
.sec-head__lead { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 640px; text-wrap: balance; }
.sec-head__t .coin { width: .9em; height: .9em; vertical-align: -0.12em; margin-right: .06em; }
.pains-sec .sec-head { margin-bottom: 36px; }

/* ---------- worries as speech bubbles ---------- */
.bubbles { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-inline: auto; }
.bubble { display: flex; align-items: center; gap: 14px; padding: 16px 22px 16px 16px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(20, 40, 80, .06); }
.bubble__face { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1; }
.bubble p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.bubble p > span { display: block; }
.bubble b { color: var(--ink); font-weight: 800; }
@media (min-width: 720px) {
  .bubble { width: fit-content; max-width: 100%; }
  .bubble:nth-child(2) { align-self: flex-end; }
  .bubble p { font-size: 18px; }
}
@media (min-width: 768px) {
  /* 2026-11-14 user (UX-15): OCAP's answer under each worry — a blue check and one line */
  .bubble p > .bubble__ans { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 16px; font-weight: 700; color: var(--primary-ink); }
  .bubble__ans .icon { flex: none; width: 18px; height: 18px; color: var(--primary); }
}

/* ---------- animations that play once when a picture comes into view (O.reveal) ---------- */
@keyframes fx-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fx-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fx-scan { from { top: -35%; } to { top: 100%; } }
@keyframes fx-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.reveal:not(.is-in) .bubble,
.reveal:not(.is-in) .fx2-arrow, .reveal:not(.is-in) .fx2-doc .q__no, .reveal:not(.is-in) .fx2-doc p, .reveal:not(.is-in) .fx2-fig,
.reveal:not(.is-in) .chart__dot, .reveal:not(.is-in) .chart__val,
.reveal:not(.is-in) .sol-ans, .reveal:not(.is-in) .sol-steps > li { opacity: 0; }
.reveal:not(.is-in) .chart__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
/* worries: one bubble after another */
.bubbles.is-in .bubble { animation: fx-up .5s ease calc(var(--i) * .25s) both; }
/* 1. digital conversion: the AI scans the photo, then the clean problem appears line by line */
.fx2-scan { position: relative; overflow: hidden; border-radius: 12px; }
.fx2-scan::after { content: ''; position: absolute; left: 0; right: 0; top: -35%; height: 35%; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--primary) 32%, transparent), transparent); }
.fx2-row--1.is-in .fx2-scan::after { animation: fx-scan 1.3s ease-in-out .2s both; }
.fx2-row--1.is-in .fx2-arrow { animation: fx-in .4s ease 1.4s both; }
.fx2-row--1.is-in .fx2-doc .q__no { animation: fx-up .45s ease 1.6s both; }
.fx2-row--1.is-in .fx2-doc p { animation: fx-up .5s ease 1.75s both; }
.fx2-row--1.is-in .fx2-fig { animation: fx-up .5s ease 2.1s both; }
/* 2. review schedule: the forgetting curve draws itself, its points and the review days follow */
.fx2-row--2.is-in .chart__line { stroke-dasharray: 1; animation: fx-draw 1.8s ease .2s both; }
.fx2-row--2.is-in .chart__dot, .fx2-row--2.is-in .chart__val { animation: fx-in .35s ease calc(.35s + var(--i) * .24s) both; }
/* 3. AI solution: the answer first, then the steps open one by one */
.fx2-row--3.is-in .sol-ans { animation: fx-up .5s ease .2s both; }
.fx2-row--3.is-in .sol-steps > li:nth-child(1) { animation: fx-up .5s ease .7s both; }
.fx2-row--3.is-in .sol-steps > li:nth-child(2) { animation: fx-up .5s ease 1.1s both; }
/* finished at once: on redraws and for reduced motion */
.reveal.is-done *, .reveal.is-done *::after, .reveal.is-done { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .reveal *, .reveal *::after, .reveal { animation: none !important; } }
/* 2026-10-27 user: the pill was too small. */
.sec-pill { padding: 8px 18px; font-size: 16px; }
@media (min-width: 1024px) { .sec-pill { padding: 10px 22px; font-size: 18px; } }
/* 2026-10-27 user: the under-14 note opens on hover too, and below the ? so it never covers the title. */
.q-wrap--hover { vertical-align: -0.35em; margin-left: 4px; }
.q-wrap--hover:hover .q-tip[hidden], .q-wrap--hover:focus-within .q-tip[hidden] { display: flex !important; }
.q-tip--down { top: calc(100% + 10px); bottom: auto; left: 50%; right: auto; transform: translateX(-50%); width: min(380px, 86vw); }
@media (max-width: 760px) { .q-tip--down { transform: none; } }
/* 2026-10-27 user: the pill a little smaller, titles a little looser. */
.sec-pill { padding: 7px 16px; font-size: 15px; }
@media (min-width: 1024px) { .sec-pill { padding: 8px 18px; font-size: 16px; } }
.sec-head__t { letter-spacing: -0.01em; }
/* one sentence per line in the under-14 note (wide screens) */
@media (min-width: 761px) { .q-tip--down { width: max-content; max-width: min(600px, 90vw); } .q-tip--down > span { white-space: nowrap; } }
/* the ? sits on the middle of the line, right after the sentence */
.q-wrap--hover { vertical-align: middle; margin-left: 2px; position: relative; top: -2px; }
.q-wrap--hover .q-btn { width: 20px; height: 20px; font-size: 12px; border-width: 1.6px; }
.q-wrap--hover .q-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.q-wrap--hover .q-btn svg { display: block; }
/* 2026-10-27 user: key words in the grey line are bold and dark. */
.sec-head__lead b { color: var(--ink); font-weight: 800; }
/* 2026-10-27 user: 고객센터 is only four letters; spaced out so it does not look smaller than its pill. */
.help-page .sec-head__t { letter-spacing: 0.08em; margin-right: -0.08em; }
/* ---------- 2026-10-27 user: picture boxes centre their content; row 1 as one screen where the photo turns into the digital problem ---------- */
.fx2-art { display: flex; align-items: center; justify-content: center; align-self: stretch; }
.fx2-art > * { width: 100%; }
.fx2-art .chart { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fx2-art .chart__title { text-align: center; }
.fx2-art .chart__box { width: 100%; }
.fx2-device { max-width: 520px; margin-inline: auto; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(20, 40, 80, .12); overflow: hidden; }
.fx2-device__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.fx2-device__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.fx2-device__tag { position: relative; margin-left: auto; height: 22px; min-width: 84px; text-align: right; font-size: 13px; }
.fx2-device__tag b { position: absolute; right: 0; top: 0; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.fx2-device__tag .t1 { background: var(--surface-2); color: var(--ink-2); }
.fx2-device__tag .t2 { background: var(--primary-soft); color: var(--primary-ink); opacity: 0; }
.fx2-device__screen { position: relative; aspect-ratio: 1.42; overflow: hidden; background: #fff; }
.fx2-shot, .fx2-clean { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx2-shot { object-fit: cover; }
.fx2-clean { display: flex; align-items: center; justify-content: center; padding: 14px 18px; opacity: 0; background: #fff; }
.fx2-clean .fx2-doc { border: 0; box-shadow: none; padding: 0; background: transparent; font-size: 15px; color: #1c2430; }
.fx2-clean .fx2-doc .q__no { color: var(--primary); }
.fx2-beam { position: absolute; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--primary) 30%, transparent), transparent); }
@keyframes fx-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes fx-beam { from { top: -30%; } to { top: 100%; } }
.fx2-row--1.is-in .fx2-beam { animation: fx-beam 1.2s ease-in-out .2s both; }
.fx2-row--1.is-in .fx2-shot { animation: fx-out .45s ease 1.3s both; }
.fx2-row--1.is-in .fx2-clean { animation: fx-in .45s ease 1.3s both; }
.fx2-row--1.is-in .fx2-device__tag .t1 { animation: fx-out .3s ease 1.3s both; }
.fx2-row--1.is-in .fx2-device__tag .t2 { animation: fx-in .3s ease 1.3s both; }
/* finished state (reduced motion, redraws): show the digital problem */
.fx2-row--1.is-done .fx2-shot, .fx2-row--1.is-done .fx2-device__tag .t1 { opacity: 0; }
.fx2-row--1.is-done .fx2-clean, .fx2-row--1.is-done .fx2-device__tag .t2 { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .fx2-row--1 .fx2-shot, .fx2-row--1 .fx2-device__tag .t1 { opacity: 0; }
  .fx2-row--1 .fx2-clean, .fx2-row--1 .fx2-device__tag .t2 { opacity: 1; }
}
.fx2-clean .fx2-doc { font-size: 14px; }
.fx2-clean .fx2-fig { width: 44%; max-width: 200px; margin-top: 2px; }
/* ---------- 2026-10-27 user: one frame for the three pictures; 3 = a problem, a pressed AI 풀이 button, steps one by one ---------- */
.fx2-device__body { padding: 16px 18px; }
.fx2-device__body .chart { margin: 0; }
.fx2-device__tag .t2.on { opacity: 1; }
.fx2-ai { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 640px) { .fx2-ai { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; } }
.fx2-ai__q { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.fx2-ai__q .digital { border: 0; box-shadow: none; padding: 0; background: transparent; font-size: 15px; }
.fx2-ai__btn { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 800; }
.fx2-ai__btn svg { width: 16px; height: 16px; }
.fx2-ai__tap { position: absolute; right: 6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 22%, transparent); opacity: 0; }
.fx2-ai__sol { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: var(--bg); }
.fx2-ai__ans { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--primary-soft); border-left: 3px solid var(--primary); }
.fx2-ai__ans span { font-size: 13px; font-weight: 800; color: var(--primary-ink); }
.fx2-ai__ans b { font-size: 18px; }
.fx2-ai__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fx2-ai__steps li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.fx2-ai__steps li > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fx2-ai__steps b { font-size: 13.5px; }
.fx2-ai__steps em { font-style: normal; font-size: 13.5px; color: var(--ink-2); }
.fx2-ai__no { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
@keyframes fx-press { 0%, 100% { transform: scale(1); } 45% { transform: scale(.92); filter: brightness(.9); } }
@keyframes fx-tap { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
.reveal:not(.is-in) .fx2-ai__sol, .reveal:not(.is-in) .fx2-ai__ans, .reveal:not(.is-in) .fx2-ai__steps li { opacity: 0; }
.fx2-row--3.is-in .fx2-ai__btn { animation: fx-press .45s ease .5s both; }
.fx2-row--3.is-in .fx2-ai__tap { animation: fx-tap .7s ease .45s both; }
.fx2-row--3.is-in .fx2-ai__sol { animation: fx-in .35s ease 1s both; }
.fx2-row--3.is-in .fx2-ai__ans { animation: fx-up .45s ease 1.2s both; }
.fx2-row--3.is-in .fx2-ai__steps li { animation: fx-up .45s ease calc(1.6s + var(--i) * .4s) both; }
.fx2-art .chart__box svg { display: block; margin-inline: auto; }
/* AI demo: problem and button on one line, the detailed solution under it */
.fx2-ai { grid-template-columns: minmax(0, 1fr) !important; }
.fx2-ai__q { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.fx2-ai__steps em { line-height: 1.6; }
.fx2-ai__warn { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); border-left: 3px solid var(--warn); font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.fx2-ai__warn b { color: var(--ink); }
.reveal:not(.is-in) .fx2-ai__warn { opacity: 0; }
.fx2-row--3.is-in .fx2-ai__steps li { animation: fx-up .45s ease calc(1.6s + var(--i) * .5s) both; }
.fx2-row--3.is-in .fx2-ai__warn { animation: fx-up .45s ease calc(1.6s + var(--i) * .5s) both; }
/* ---------- 2026-10-27 user: phones get the same introduction, just stacked (sign-up and class payment work as on the web) ---------- */
.hero__shot { display: none; }
.fx2-ai__more { display: none; }
@media (max-width: 767px) {
  .hero__shot { display: block; width: 100%; height: auto; aspect-ratio: 343 / 233; object-fit: cover; object-position: 83.4% center; border-radius: 20px; margin-top: 4px; box-shadow: 0 12px 30px rgba(20, 40, 80, .12); }
  .fx2-ai__more { display: block; text-align: center; font-size: 13px; font-weight: 700; color: var(--primary-ink); }
}
/* 2026-10-27: static header still anchors its phone menu (position: relative, not sticky), or the menu opened off screen. */
.site-header { position: relative; z-index: 20; }
/* ---------- 2026-10-27 user: full-screen phone menu (like other services): logo, start button and close on top, a login row, big menu rows ---------- */
.nav-chev { display: none; }
@media (max-width: 860px) {
  html.menu-open, html.menu-open body { overflow: hidden; }
  .site-header[data-open="true"] { position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: var(--surface); }
  .site-header[data-open="true"] .site-header__inner { flex-wrap: wrap; align-items: center; row-gap: 0; }
  .site-header[data-open="true"] .site-menu { position: static; box-shadow: none; border: 0; flex-basis: 100%; display: flex; flex-direction: column; gap: 0; padding: 8px 0 32px; background: transparent; }
  .site-header[data-open="true"] .site-actions { order: -1; display: flex; flex-direction: row; justify-content: space-between; gap: 10px; padding: 16px 0 20px; border-bottom: 1px solid var(--line); }
  .site-header[data-open="true"] .site-actions .btn { flex: 1; min-height: 52px; font-size: 16px; }
  .site-header[data-open="true"] .site-nav { flex-direction: column; gap: 0; padding-top: 8px; }
  .site-header[data-open="true"] .site-nav a { min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
  .site-header[data-open="true"] .site-nav a:hover { background: transparent; }
  .site-header[data-open="true"] .nav-chev { display: block; width: 20px; height: 20px; color: var(--muted); }
  .site-header[data-open="true"] .site-nav a[aria-current="page"] .nav-chev { color: var(--primary); }
}
/* ---------- 2026-10-27 user: phone layout after the orzo.kr review ---------- */
/* each feature has its own soft pill colour (blue, green, violet) */
.fx2-label { padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); align-self: flex-start; }
.fx2-label .fx2-no { background: var(--primary); color: var(--on-primary); }
.fx2-row--2 .fx2-label { background: var(--good-soft); color: var(--good); }
.fx2-row--2 .fx2-label .fx2-no { background: var(--good); color: var(--surface); }
.fx2-row--3 .fx2-label { background: var(--violet-soft); color: var(--violet); }
.fx2-row--3 .fx2-label .fx2-no { background: var(--violet); color: var(--surface); }
.hero__facts { display: none; }
@media (max-width: 767px) {
  /* no boxes, everything centred: pill, title, two grey lines, then the screen */
  .fx2 { gap: 64px; }
  .fx2-row { padding: 0; border: 0; background: transparent; box-shadow: none; gap: 24px; }
  .fx2-text { align-items: center; text-align: center; }
  .fx2-label { align-self: center; }
  .fx2-courses { justify-content: center; }
  .fx2-art { padding: 0; background: transparent; }
  .fx2-device { box-shadow: 0 24px 50px rgba(37, 99, 235, .14), 0 4px 14px rgba(20, 40, 80, .06); }
  /* first screen: a bigger app picture with a soft glow, then three short facts */
  .hero__shot { box-shadow: 0 30px 60px rgba(37, 99, 235, .18); }
  .hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
  .hero__facts li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.35; }
  .hero__facts .ic { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); }
  .hero__facts li:nth-child(2) .ic { background: var(--good-soft); color: var(--good); }
  .hero__facts li:nth-child(3) .ic { background: var(--violet-soft); color: var(--violet); }
  .hero__facts .ic svg { width: 22px; height: 22px; }
}
@media (max-width: 767px) {
  .hero__inner { align-items: center; text-align: center; padding-block: 40px 40px; }
  .hero__inner .row { justify-content: center; }
  .hero__hand { margin-inline: auto; }
}
@media (max-width: 767px) { .hero__facts { width: 100%; } }
/* 2026-10-27 user: bold phrases in the worry bubbles never break in the middle (phones) */
.bubble b { white-space: nowrap; }
/* 2026-10-27 user: the handwritten line is small and tilted, tucked at the title's top-left corner like a margin note */
.hero__hand { width: min(124px, 34vw); margin: 0 0 -20px; transform: rotate(-14deg); position: relative; z-index: 1; }
@media (max-width: 767px) { .hero__hand { margin-inline: 0; translate: max(-104px, calc(88px - 50vw)) 0; } }
@media (min-width: 768px) { .hero__hand { align-self: flex-start; translate: -34px 0; } }
/* 2026-10-27 user: keep the source under the forgetting curve */
.fx2-art .chart__src { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); text-align: center; }
/* 2026-10-27 user: the device note sits small and grey on the same line as 오캡 앱 */
.h3-sub { margin-left: 6px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; letter-spacing: 0; }
.fx2-art .chart__src { margin-top: -6px; }
/* 2026-10-27 user: the phone icon sits beside '앱 받기' on the first line; the grey note goes under the words */
.btn-app { display: inline-grid; grid-template-columns: auto auto; column-gap: 10px; align-items: start; justify-content: start; text-align: left; padding: 12px 18px; }
.btn-app > svg { margin-top: 2px; }
.btn-app > span { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
/* 2026-10-27 user: stacked plan cards (phones) don't need rows held open for alignment, so no empty gaps */
@media (max-width: 599px) { .plan__who, .plan__bill { min-height: 0; } }
/* 2026-10-27 user: plan name with who it is for in two short grey lines right under it; the unit sits in front of the price */
.plan__head { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.plan__head .plan__name { margin: 0; white-space: nowrap; line-height: 1.3; }
.plan__head .plan__who { margin: 0; min-height: 0; text-align: left; font-size: 14px; line-height: 1.5; }
.plan__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan__price small { display: inline; margin-top: 0; }
@media (min-width: 1280px) { .plan__head .plan__who { font-size: 14px; } }
/* 2026-10-27 user: the 초등학생 4주 / 중학생 이상 8주 pills come in once and then stay; only the curve replays */
/* the unit and the price stay on one line on the narrow desktop cards */
.plan__price { flex-wrap: nowrap; white-space: nowrap; }
@media (min-width: 1024px) { .plan__price { font-size: 32px; } }
/* four narrow cards side by side: the two lines sit under the name so the long manager line stays on one line */
@media (min-width: 1100px) { .plan__head .plan__who { font-size: 13px; white-space: nowrap; } }
/* 2026-10-27 user: the photo-to-digital swap was too fast — the photo stays a moment, the scan is slower, the swap fades in gently */
.fx2-row--1.is-in .fx2-beam { animation: fx-beam 2.4s ease-in-out .8s both; }
.fx2-row--1.is-in .fx2-shot { animation: fx-out .8s ease 3.2s both; }
.fx2-row--1.is-in .fx2-clean { animation: fx-in .8s ease 3.2s both; }
.fx2-row--1.is-in .fx2-device__tag .t1 { animation: fx-out .5s ease 3.2s both; }
.fx2-row--1.is-in .fx2-device__tag .t2 { animation: fx-in .5s ease 3.2s both; }
/* 2026-10-27 user: the monthly / 6-month choice sits inside each paid card, above its own options */
.plan__opt { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; }
.plan__cycle .chip { min-width: 0; padding-inline: 14px; }
/* 2026-10-27 user: the card choices (billing cycle, number of people) are one sliding track instead of separate round chips */
.plan__opt { gap: 8px; width: 100%; }
.plan .seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; gap: 0; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.plan .seg .chip { min-height: 36px; min-width: 0; padding: 0 8px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 700; justify-content: center; box-shadow: none; }
.plan .seg .chip[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.plan--pick .seg { background: var(--primary-soft); }
/* 2026-10-27 user: a small tag beside the plan name says who it is for */
.plan__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan__tag { font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.plan--pick .plan__tag { background: var(--surface); color: var(--primary-ink); }
@media (min-width: 1100px) { .plan__head { min-height: calc(1.3em + 26px); } }
/* Keep the existing phone card flow; desktop pricing uses the shared rows above. */
@media (min-width: 600px) and (max-width: 767px) {
  .plan { display: flex; grid-row: auto; }
  .plan__opt:empty, .plan__cta:empty { display: none; }
}
@media (min-width: 600px) { .plan__who, .plan__bill { min-height: 0; } }
/* 2026-10-27 user: the * hangs in the margin so the note's words start right under the plan name */
.plan__star { display: inline-block; width: .7em; margin-left: -.7em; }
#seat-total { display: flex; flex-direction: column; gap: 6px; }
/* four cards side by side: the big totals (class can reach six digits) stay inside the card */
@media (min-width: 1100px) { .plan__price { font-size: 28px; } }
/* 2026-10-27 user: schools can also pay by quote — a quiet link under the class button */
.plan__cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.plan__link { font-size: 14px; font-weight: 700; color: var(--primary-ink); }
.plan .stepper output.seat-input { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
/* 2026-10-27 user: family now goes to 10 — the 5~10 row spans the width under the four tiers */
.tg2-tiers li:last-child { grid-column: 1 / -1; flex-direction: row; justify-content: center; align-items: baseline; gap: 8px; }
/* 2026-10-28 user: the 패밀리·클래스 page uses the pricing page's clean cards, two side by side */
.plans.tg3-plans { grid-template-columns: 1fr; max-width: 880px; margin-inline: auto; }
@media (min-width: 700px) { .plans.tg3-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tg3-plans .plan__pay { font-size: 13px; color: var(--muted); }
.tg3-plans .plan__pay a { color: var(--primary-ink); font-weight: 700; }
.tg3-plans .plan__price { font-size: 32px; }
/* the start steps: two plain numbered lists, no boxes */
.tg3-steps { display: grid; gap: 28px; max-width: 880px; margin-inline: auto; }
@media (min-width: 700px) { .tg3-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
.tg3-flow h3 { margin: 0 0 14px; font-size: 18px; }
.tg3-flow ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.tg3-flow li { display: flex; gap: 12px; align-items: flex-start; }
.tg3-flow li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tg3-flow strong { font-size: 15px; }
.tg3-flow li span:not(.tg2-no) { font-size: 14px; color: var(--muted); line-height: 1.5; }
.tg3-flow .tg2-no { flex: none; margin-top: 1px; }
.tg2 .tg-school { max-width: 880px; margin-inline: auto; }
/* 2026-10-28 user: the school list lines stay on one line on phones */
@media (max-width: 599px) { .tg-school .check-list li { font-size: 14px; word-break: keep-all; } }
/* 2026-10-28 user: plan cards get a quiet blue edge — a thin gradient line (blue to soft periwinkle) and a faint blue glow */
.plan {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(150deg, rgba(37, 99, 235, .42), rgba(147, 197, 253, .28) 48%, rgba(129, 140, 248, .40)) border-box;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -18px rgba(37, 99, 235, .30);
}
/* 2026-10-28 user: the blue edge was too faint — a little thicker and clearer, still a soft gradient */
.plan {
  border-width: 1.5px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(150deg, rgba(37, 99, 235, .80), rgba(96, 165, 250, .55) 48%, rgba(99, 102, 241, .75)) border-box;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 14px 34px -16px rgba(37, 99, 235, .38);
}
/* 2026-10-28 user: on phones and stacked cards the quote box sat under the last plan card — the pull-up is for the wide row only */
@media (max-width: 1099px) { .price-body > .quote-row { margin-top: -28px; } }
/* 2026-10-28 user: on phones the age ? opened its note off screen (a moving ancestor pins 'fixed' to it) — open it right under the ? instead */
@media (max-width: 760px) {
  .q-wrap--hover .q-tip { position: absolute; top: calc(100% + 10px); bottom: auto; left: auto; right: 0; width: min(300px, calc(100vw - 32px)); text-align: left; }
}
/* 2026-10-28 user (시안 C): the age note opens on its own line under the lead — small, pale grey box, grey text, an i mark,
   a × to close — and pushes the cards down only a little instead of covering them */
.q-wrap--hover { display: contents; }
.q-wrap--hover .q-tip {
  position: relative; inset: auto; transform: none; display: flex; flex-direction: column; gap: 4px;
  width: min(268px, calc(100vw - 32px)); max-width: none; margin: 12px auto 0; padding: 11px 30px 11px 34px;
  background: #f3f5f9; border: 1px solid #e6eaf1; border-radius: 12px; box-shadow: none;
  color: #8a94a6; font-size: 12.5px; line-height: 1.55; font-weight: 500; letter-spacing: -.01em; text-align: left;
}
.q-wrap--hover .q-tip[hidden] { display: none !important; }
.q-wrap--hover .q-tip > span { white-space: normal; }
.q-wrap--hover .q-tip::before { content: ""; position: absolute; top: -6px; left: 50%; margin-left: -5px; width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; background: #f3f5f9; border: 1px solid #e6eaf1; border-right: 0; border-bottom: 0; }
.q-wrap--hover .q-tip::after { content: "i"; position: absolute; left: 12px; top: 12px; width: 15px; height: 15px; border-radius: 50%; background: #dfe6f3; color: #5b7bd5; font: italic 700 10px/15px Pretendard, system-ui, sans-serif; text-align: center; }
.q-tip__x { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: #a3acba; font-size: 17px; line-height: 1; cursor: pointer; }
.q-tip__x:hover { background: #e6eaf1; color: #6b7587; }
/* while the note is open the cards come up closer, so they move down only a little */
.tg2 > .sec-head:has(.q-tip:not([hidden])) + .tg3-plans { margin-top: -26px; }
/* the note opens and closes only by tapping now: focus or hover left on the × must not keep it open */
.q-wrap--hover:hover .q-tip[hidden], .q-wrap--hover:focus-within .q-tip[hidden] { display: none !important; }
/* 2026-10-28 user: the coin section reads at a glance — a smaller lead and one card with a row per use (name left, coins right) */
.price-sec[aria-labelledby="coin-title"] .sec-head__lead { font-size: 15px; max-width: 520px; }
.coin-rows { max-width: 560px; margin-inline: auto; width: 100%; padding: 6px 20px; border-radius: var(--card-r); background: var(--surface); border: 1px solid var(--line); }
.coin-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 15px; color: var(--ink-2); }
.coin-rows li + li { border-top: 1px solid var(--line); }
.coin-rows b { font-size: 17px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.price-sec[aria-labelledby="coin-title"] .coin-packs { max-width: 560px; margin-inline: auto; width: 100%; }
/* the coin packs sit in one card of rows too, the same width as the list above */
.price-sec[aria-labelledby="coin-title"] .coin-packs { flex-direction: column; align-items: stretch; gap: 10px; }
.price-sec[aria-labelledby="coin-title"] .coin-packs__list { flex-direction: column; gap: 0; padding: 4px 20px; border-radius: var(--card-r); background: var(--surface); border: 1px solid var(--line); }
.price-sec[aria-labelledby="coin-title"] .coin-pack { border: 0; border-radius: 0; background: none; padding: 10px 0; gap: 12px; font-size: 15px; }
.price-sec[aria-labelledby="coin-title"] .coin-pack + .coin-pack { border-top: 1px solid var(--line); }
.price-sec[aria-labelledby="coin-title"] .coin-pack__n { font-size: 16px; font-weight: 700; min-width: 64px; }
.price-sec[aria-labelledby="coin-title"] .coin-pack strong { margin-right: auto; font-size: 16px; }
/* 2026-10-28 user: on the wide web page the handwritten line is bigger again (the small size is for phones only) */
@media (min-width: 768px) { .hero__hand { width: 210px; margin-bottom: -8px; translate: -20px 0; } }
/* 2026-10-28 user: the divider sits halfway between the payment note above and the first feature below, on every screen */
.plan .plan__feats { padding-top: 18px; }
/* 2026-10-28 user: on the wide page the start steps read as two cards, each a left-to-right timeline (phones keep the list) */
@media (min-width: 900px) {
  .tg3-steps { grid-template-columns: 1fr; gap: 16px; max-width: 980px; }
  .tg3-flow { padding: 24px 28px 26px; border-radius: var(--card-r); background: var(--surface); border: 1px solid var(--line); }
  .tg3-flow h3 { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 17px; }
  .tg3-flow h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
  .tg3-flow:nth-child(2) h3::before { background: var(--violet); }
  .tg3-flow ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .tg3-flow li { position: relative; flex-direction: column; align-items: flex-start; gap: 12px; padding-right: 18px; }
  .tg3-flow li::after { content: ""; position: absolute; top: 14px; left: 40px; right: 10px; height: 2px; border-radius: 2px; background: var(--primary-soft); }
  .tg3-flow:nth-child(2) li::after { background: var(--violet-soft); }
  .tg3-flow li:last-child::after { display: none; }
  .tg3-flow .tg2-no { width: 30px; height: 30px; font-size: 14px; margin-top: 0; background: var(--primary); color: #fff; }
  .tg3-flow:nth-child(2) .tg2-no { background: var(--violet); }
  .tg3-flow strong { font-size: 16px; }
  .tg3-flow li span:not(.tg2-no) { font-size: 14px; line-height: 1.55; }
}
/* 2026-10-28 user: web and phone get their own design — what changes on the web stays on the web unless the phone is named */
.mob-only { display: none !important; }
@media (max-width: 767px) { .web-only { display: none !important; } .mob-only { display: revert !important; } }
/* 2026-10-28 user (web): a small emphasis dot over each letter of 오답 and 정답 in the hero lead */
.dots { font-style: normal; }
@media (min-width: 768px) {
  .dots { -webkit-text-emphasis: filled dot var(--primary); text-emphasis: filled dot var(--primary); -webkit-text-emphasis-position: over right; text-emphasis-position: over right; }
}
/* the emphasis dots drawn by hand so they are big enough to see: one round dot centred over each letter */
.dots i { font-style: normal; }
@media (min-width: 768px) {
  .dots { -webkit-text-emphasis: none; text-emphasis: none; }
  .dots i { position: relative; display: inline-block; }
  .dots i::before { content: ""; position: absolute; left: 50%; top: -6px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--primary); }
}
@media (min-width: 768px) {
  .dots i { display: inline; }
  .dots i::before { top: -3px; width: 5px; height: 5px; }
  .plan__feats li { white-space: nowrap; }
}
@media (min-width: 768px) {
  .hero__lead .dots, .hero__lead .dots i { display: inline !important; }
  /* 2026-10-28 user (web): the quote button sits halfway between the end of the text and the right edge of the box */
  .quote-row { justify-content: flex-start; }
  .quote-row > .btn { margin-inline: auto; }
}
@media (min-width: 768px) { .hero__lead .dots i::before { top: -8px; } }
/* 2026-10-28 user (web): the explaining lines under each feature title are centred */
@media (min-width: 768px) { .fx2-text > p { text-align: center; align-self: stretch; } }
/* 2026-10-28 user (web): no dots — 오답 and 정답 are emphasised by weight only, like Free and Pro in the pricing lead */
@media (min-width: 768px) {
  .hero__lead .dots i::before { content: none; }
  .hero__lead .dots { font-weight: 800; color: var(--ink); }
}
/* 2026-10-28 user (web): the coin uses fill the row — four tiles, each with an icon, the coins large and the use under it */
.coin-ic { display: none; }
@media (min-width: 768px) {
  .coin-rows { max-width: 1040px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 0; border: 0; background: none; }
  .coin-rows li, .coin-rows li + li { flex-direction: column; justify-content: flex-start; gap: 10px; padding: 26px 18px 24px; border: 1px solid var(--line); border-radius: var(--card-r); background: var(--surface); text-align: center; font-size: 14px; }
  .coin-rows li > span { order: 3; color: var(--muted); }
  .coin-rows b { order: 2; font-size: 30px; letter-spacing: -0.02em; }
  .coin-ic { order: 1; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); font-style: normal; }
  .coin-rows li:nth-child(2) .coin-ic { background: var(--violet-soft); color: var(--violet); }
  .coin-rows li:nth-child(3) .coin-ic { background: var(--good-soft); color: var(--good); }
  .coin-rows li:nth-child(4) .coin-ic { background: var(--surface-2); color: var(--muted); }
  .coin-ic svg { width: 22px; height: 22px; }
}
/* 2026-10-28 user (web): the age ? lives on the family card next to its tag; the lead keeps it only on phones */
.plan__title .q-wrap--hover .q-tip { flex-basis: 100%; width: 100%; margin: 10px 0 0; }
.plan__title .q-wrap--hover .q-tip::before { content: none; }
@media (max-width: 767px) { .plan__title .q-wrap--hover { display: none; } }
@media (min-width: 768px) {
  .tg2 > .sec-head .q-wrap--hover { display: none; }
  .tg3-plans .plan__head { min-height: 0; }
}
/* 2026-10-28 user (web): the closing band is compact and leads to installing the Android app */
.app-band { background: linear-gradient(120deg, var(--primary) 0%, #4f7cf0 60%, #6d6af0 100%); color: var(--on-primary); }
.app-band__inner { display: flex; align-items: center; gap: 24px; padding-block: 36px; max-width: 1040px; }
.app-band__ic { flex: none; width: 60px; height: 60px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .16); }
.app-band__ic svg { width: 30px; height: 30px; }
.app-band__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.app-band__text h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--on-primary); }
.app-band__text p { margin: 0; font-size: 15px; opacity: .88; }
.app-band__actions { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.app-band__btn { background: #fff; color: var(--primary); border-color: #fff; gap: 8px; }
.app-band__btn:hover { background: var(--primary-soft); color: var(--primary-ink); }
.app-band__btn svg { width: 20px; height: 20px; }
.app-band__link { font-size: 14px; color: var(--on-primary); opacity: .85; text-decoration: underline; text-underline-offset: 3px; }
.app-band :focus-visible { outline-color: var(--on-primary); }
/* 2026-10-28 user (web): the home FAQ heading (pill, title, note) is centred like the other sections */
@media (min-width: 768px) { .faq-sec .sec-head--left { align-items: center; text-align: center; margin-inline: auto; } }
/* 2026-10-28 user (web): the app and web cards are smaller and everything in them sits in the middle */
@media (min-width: 768px) {
  .where-sec .grid-2 { max-width: 880px; width: 100%; margin-inline: auto; gap: 20px; }
  .where-sec .grid-2 > .card { align-items: center; text-align: center; padding: 28px 24px; gap: 14px; }
  .where-sec .grid-2 > .card h3 { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .where-sec .grid-2 > .card .h3-sub { margin: 0; }
  .where-sec .grid-2 > .card .check-list { width: fit-content; text-align: left; }
  .where-sec .grid-2 > .card .btn-app { align-self: center !important; }
}
@media (min-width: 768px) {
  .where-sec .grid-2 > .card { justify-content: flex-start; }
  .where-sec .grid-2 > .card .btn-app { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; margin-top: 4px; }
  .where-sec .grid-2 > .card .btn-app > span { flex-direction: row; align-items: baseline; gap: 6px; }
  .where-sec .grid-2 > .card .btn-app > svg { margin-top: 0; }
  .where-sec .grid-2 > .card .btn-app small { font-weight: 600; color: var(--muted); }
}
/* 2026-10-28 user (web): student top bar reads person > coin > ? — the person first as a chip, the ? small */
.me-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.me-chip:hover { background: var(--surface-2); }
.me-chip__av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #6d6af0); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.me-chip__chev { width: 14px; height: 14px; color: var(--muted); }
@media (min-width: 768px) {
  .topbar-me { gap: 10px; }
  .topbar-me .q-btn { width: 26px; height: 26px; min-width: 26px; min-height: 26px; font-size: 12px; border-width: 1.5px; color: #7a8597; border-color: #c9d0db; }
  .plan-mini { display: none !important; }
  /* 2026-10-28 user (web): the home is a dashboard — a wide greeting with the review button on the right, then the usage as four tiles;
     today's list and recently saved problems stay off the home page */
  .home-top { display: block; }
  .home-hero { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "eye cta" "h cta" "sub cta"; column-gap: 32px; align-items: center; }
  .home-hero .home-eyebrow { grid-area: eye; }
  .home-hero h2 { grid-area: h; }
  .home-hero .home-sub { grid-area: sub; }
  .home-hero .home-cta { grid-area: cta; align-self: center; padding: 18px 28px; font-size: 17px; }
  .home-hero .home-today, .home-hero .home-today__more { display: none; }
  .home-week { margin-top: 16px; padding: 18px 20px; }
  .home-week__head, .home-week .home-foot { display: none; }
  .home-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 12px; margin: 0; }
  .home-rows > div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center; }
  .home-rows dt { font-size: 14px; color: var(--muted); }
  .home-rows dd { margin: 0; font-size: 15px; }
  .home-rows .home-rows__hint, .home-rows .bar { display: none !important; }
  .home-secs { grid-template-columns: 1fr; }
  .home-sec[aria-labelledby="recent-t"] { display: none; }
}
@media (min-width: 768px) { .home-rows__points dt { display: inline-flex; align-items: center; gap: 4px; } .home-rows__points dt::after { content: "코인"; } }
/* 2026-10-28 user (web): the account chip is bigger, the three items share one height and line up with the 오캡 logo and the cards' right edge;
   no arrow, and the same space between every item */
@media (min-width: 768px) {
  .topbar { padding: 24px 36px 14px 20px; min-height: 0; align-items: center; }
  .topbar-me { gap: 12px; height: 54px; }
  .topbar-me > * { margin: 0 !important; }
  .me-chip__chev { display: none; }
  .me-chip { height: 46px; gap: 10px; padding: 0 16px 0 5px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
  .me-chip__av { width: 36px; height: 36px; font-size: 15px; }
  .topbar-me .coin-pill { height: 46px; min-height: 46px; padding: 0 16px 0 12px; font-size: 16px; }
  .topbar-me .q-btn { width: 46px; height: 46px; min-width: 46px; min-height: 46px; font-size: 15px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
}
/* 2026-10-28 user (web): under the usage only one blue link to the coin sheet on the pricing page */
.usage-more { font-size: 15px; font-weight: 700; color: var(--primary); text-decoration: none; }
.usage-more:hover { text-decoration: underline; }
/* the top bar's own padding was overridden — line it up with the 오캡 logo and the cards' right edge */
@media (min-width: 768px) { body .topbar { padding: 24px 36px 14px 20px !important; } }
/* a figure from the real conversion (dev server) inside the digital problem */
.doc-fig { display: block; max-width: 100%; max-height: 260px; margin: 10px auto; border-radius: 8px; }
.doc-table { width: 100%; margin: 10px 0; border-collapse: collapse; font-size: .92em; }
.doc-table td { border: 1px solid var(--line-strong, #cbd2dc); padding: 6px 8px; text-align: center; vertical-align: middle; line-height: 1.5; }
.doc-table { border: 1px solid var(--line-strong, #cbd2dc); margin-bottom: 14px; }
/* 2026-10-28 user (web): smaller top bar items — the coin without its yellow pill, a much smaller ? */
@media (min-width: 768px) {
  .me-chip { height: 40px; padding: 0 14px 0 4px; font-size: 15px; gap: 8px; }
  .me-chip__av { width: 32px; height: 32px; font-size: 14px; }
  .topbar-me .coin-pill { height: 40px; min-height: 40px; padding: 0 4px; background: none; color: var(--ink); font-size: 16px; }
  .topbar-me .q-btn { width: 22px; height: 22px; min-width: 22px; min-height: 22px; font-size: 11px; border: 1.5px solid #c9d0db; background: none; color: #7a8597; }
}
/* 2026-10-28 user (web): the review button sits in the middle of the free space beside the greeting, not against the right edge */
@media (min-width: 768px) {
  .home-hero { grid-template-columns: auto 1fr; }
  .home-hero .home-cta { justify-self: center; }
}
/* the coin tile lines up with the others (its own grid from the old card layout is switched off) */
@media (min-width: 768px) {
  .home-rows > div, .home-rows > .home-rows__points { display: flex !important; flex-direction: column; align-items: center; justify-content: center; grid-template-columns: none; text-align: center; }
  .home-rows > div > dt, .home-rows > div > dd { margin: 0; grid-column: auto; justify-self: center; }
}
/* 2026-10-28 user (web): the coin record */
.coins-page { display: flex; flex-direction: column; gap: 16px; max-width: 960px; }
.cl-sum { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 24px; padding: 24px 28px; }
.cl-now { display: flex; flex-direction: column; gap: 4px; }
.cl-now strong { font-size: 30px; font-weight: 850; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 6px; }
.cl-totals { display: flex; gap: 28px; margin: 0; }
.cl-totals div { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.cl-totals dt { font-size: 13px; color: var(--muted); }
.cl-totals dd { margin: 0; font-size: 17px; font-weight: 800; }
.cl-sum .usage-more { grid-column: 1 / -1; }
.cl-tabs { align-self: flex-start; }
.cl-list { padding: 8px 24px 16px; }
.cl-day { margin: 18px 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.cl-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.cl-day + ul .cl-row:first-child { border-top: 0; }
.cl-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); }
.cl-ic--in { background: var(--primary-soft); color: var(--primary); }
.cl-ic svg { width: 18px; height: 18px; }
.cl-what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cl-what b { font-size: 15px; }
.cl-what small { font-size: 12px; color: var(--muted); }
.cl-amt { font-size: 16px; font-weight: 800; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.cl-amt--in { color: var(--primary); }
.cl-amt--out { color: var(--ink-2); }
.cl-empty { padding: 24px 0; text-align: center; }
.cl-pages { display: flex; justify-content: center; align-items: center; gap: 6px; }
.cl-page { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--ink-2); font-size: 15px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cl-page:hover:not(:disabled) { background: var(--surface-2); }
.cl-page[aria-current="page"] { background: var(--primary); color: var(--on-primary); }
.cl-page:disabled { opacity: .35; cursor: default; }
.cl-page--arrow svg { width: 18px; height: 18px; }
/* 2026-10-28 user (phone): 오답 / 정답 in the hero lead read as one word — the old .dots row (inline-flex with a gap) split the letters */
.hero__lead .dots, .hero__lead .dots i { display: inline !important; }
/* 2026-10-28 user (phone): the photo in the conversion demo is shown smaller, about the size of the digital problem,
   its edges fading into a paper-coloured background sampled from the photo */
@media (max-width: 767px) {
  .fx2-device__screen { background: radial-gradient(ellipse at 50% 48%, #d6d4d2 0%, #cfcdcb 55%, #c7c4c2 100%); }
  .fx2-shot { inset: 0; margin: auto; width: 86%; height: auto; max-height: 92%; object-fit: contain;
    -webkit-mask-image: radial-gradient(ellipse 70% 68% at 50% 50%, #000 55%, transparent 100%);
            mask-image: radial-gradient(ellipse 70% 68% at 50% 50%, #000 55%, transparent 100%); }
}
/* 2026-10-28 user (phone): the home FAQ heading is centred like the other sections, and every blue pill reads with wider letter spacing */
@media (max-width: 767px) {
  .faq-sec .sec-head--left { align-items: center; text-align: center; margin-inline: auto; }
  .sec-pill { letter-spacing: 0.06em; }
}
/* 2026-10-28 user (phone): every start / pay button on the plan cards is the site's blue button so it stands out */
@media (max-width: 767px) {
  .plan .btn.plan__btn:not(:disabled) { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
  .plan .btn.plan__btn:not(:disabled):hover { background: var(--primary-ink); border-color: var(--primary-ink); color: var(--on-primary); }
}
/* 2026-10-28 user (phone): long plan prices (11,400원) looked too big — a slightly smaller number and a smaller 원 */
@media (max-width: 767px) {
  .plan .plan__price, .tg3-plans .plan__price { font-size: 30px; letter-spacing: -0.02em; }
  .plan__won { font-size: .64em; font-weight: 800; margin-left: -5px; letter-spacing: 0; } /* the price row is flex with an 8px gap */
}
/* 2026-10-28 user (phone): the 앱 받기 button sits in the middle of the app card */
@media (max-width: 767px) {
  .btn.btn-app { align-self: center !important; text-align: center; display: flex; width: fit-content; margin-inline: auto; }
}
/* 2026-10-28 user (phone): the phone icon sits right before the words 앱 받기 */
.btn-app__t { font: inherit; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 767px) {
  .btn.btn-app > span { align-items: center; }
  .btn-app__t .icon { width: 18px; height: 18px; }
}
/* 2026-10-28 user: 패밀리·클래스 left the top menu; the start steps stay one tap away under the plan cards */
.plans-more { margin: -8px 0 0; text-align: center; font-size: 15px; font-weight: 700; }
.plans-more a { color: var(--primary-ink); text-decoration: none; }
.plans-more a:hover { text-decoration: underline; }
/* 2026-10-28 user (phone): the 고객센터 shortcuts stay on one line */
@media (max-width: 767px) {
  .help-tabs { flex-wrap: nowrap; gap: 6px; padding: 8px; }
  .help-tabs .chip { flex: 1 1 auto; justify-content: center; min-width: 0; padding: 6px 8px; font-size: 13.5px; white-space: nowrap; letter-spacing: -0.02em; }
}
/* 2026-10-28: the FAQ ends with a way to ask (GPT review, picked by Claude) */
.help-more { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 0 4px; text-align: center; color: var(--muted); font-size: 15px; }
.help-more .btn { min-width: 200px; }
/* 2026-10-28 user (phone): the '* … 만 14세 이상 가입 가능' note under the plan name is smaller */
@media (max-width: 767px) { .plan .plan__head .plan__who { font-size: 12.5px; } }
/* 2026-10-28 user: the birth date is typed as year / month / day instead of a month-by-month date picker */
.birth-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; }
.field .birth-part { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink-2); min-width: 0; }
.birth-part .input { min-width: 0; width: 100%; text-align: center; font-variant-numeric: tabular-nums; }
/* 2026-10-29 user: progress is 5 dots (right answers fill 5/goal of them), the wrong-answer follow-up is three stacked choices */
.dots5 { display: inline-flex; gap: 5px; vertical-align: middle; }
.dots5 i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.dots5 i.on { background: var(--primary); }
.why--levels { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.why--levels .why__q { font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.why__opt { min-height: 46px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); text-align: left; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.why__opt[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); }
.why__reply { margin: 0; min-height: 20px; font-size: 14px; color: var(--muted); }
/* 2026-10-29 user: '이 문제, 어땠나요?' is its own step after the wrong-answer screen — a title and three big choices */
.level-q { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.level-opts { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 4px; }
.level-opt { min-height: 56px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); text-align: left; font-size: 17px; font-weight: 700; color: var(--ink); }
.level-opt:hover, .level-opt:focus-visible { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); }
.level-skip { display: block; margin: 0 auto; padding: 10px 16px; color: var(--muted); font-weight: 600; }
/* 2026-10-29 (user test): the footer's 앱 받기 looks and taps like the other footer links */
.site-footer .footer-app { color: #ffffff; text-align: left; padding: 0; }
@media (max-width: 767px) { .site-footer a, .site-footer .footer-app { display: inline-flex; align-items: center; min-height: 32px; } .site-footer .footer-app { justify-content: flex-start; } }
/* 2026-10-29 (user test): on a phone the page title stays on one line next to the coin and ? (cut with …) */
@media (max-width: 767px) { .topbar h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
/* 2026-10-29 (user test): '.mob-only { display: revert }' turned the phone coin pill and account icon into plain blocks,
   so the coin number sat at the top of its pill and the icon above the ?; they are centred flex boxes again. */
@media (max-width: 767px) {
  .topbar .coin-pill.mob-only, .topbar .topbar-account.mob-only { display: inline-flex !important; align-items: center; justify-content: center; }
  .topbar .topbar-account.mob-only { min-height: 36px; }
}
/* the '빠진 곳 있음' note gets its own line on a phone instead of a line that starts with '·' */
.prow__warnline { white-space: nowrap; }
@media (max-width: 767px) { .prow__warnline { display: block; } .prow__sep { display: none; } }

/* 2026-10-29 user: the phone web does not teach; study pages show the app guide */
.phone-study { align-items: center; text-align: center; gap: 14px; padding: 28px 20px; }
.phone-study .h-sec { margin: 0; text-wrap: balance; }
.phone-study__app { width: 100%; justify-content: center; gap: 8px; }
.phone-study__links { display: flex; gap: 8px; width: 100%; }
.phone-study__links .btn { flex: 1; justify-content: center; }
.phone-app { display: flex; flex-direction: column; gap: 14px; padding-block: 20px 32px; }
.phone-app__pc { gap: 8px; padding: 20px; }
.phone-app__pc .h-sec .icon { width: 20px; height: 20px; }
.phone-app__more { justify-content: center; }

/* 2026-10-29 user (web): feature cards center the title and label too, not only the text */
@media (min-width: 768px) {
  .fx2-text { align-items: center; text-align: center; }
  .fx2-label { align-self: center; }
  .fx2-courses { justify-content: center; }
}
/* 2026-10-29 user: the review count adapts (2~5번), said under the course chips */
.fx2-note { font-size: 14px !important; color: var(--muted) !important; margin-top: -2px; }

/* 2026-10-29 user: the coin section has three uses; "바꾸지 못하면 빠지지 않아요" is one line under them, then 해지·환불 */
.coin-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.coin-note .icon { width: 16px; height: 16px; flex: none; }
.price-sec > .quote-row { margin-top: 8px; }
@media (min-width: 768px) {
  .coin-rows { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1040px; }
  .price-sec > .quote-row { width: 100%; }
}
/* 2026-10-29 user (web): 1:1 문의 leaves the tabs; the box at the end stands out */
@media (min-width: 768px) {
  .help-more { gap: 8px; margin-top: 8px; padding: 32px 24px; border-radius: var(--card-r); background: var(--primary-soft); border: 1px solid var(--line); color: var(--ink-2); }
  .help-more__t { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
  .help-more .btn { min-width: 240px; margin-top: 8px; }
}
.help-more__t { font-weight: 800; color: var(--ink); }
/* 2026-10-29 user (web): the photo in the conversion demo is small on a paper background, as on the phone */
@media (min-width: 768px) {
  .fx2-device__screen { background: radial-gradient(ellipse at 50% 48%, #d6d4d2 0%, #cfcdcb 55%, #c7c4c2 100%); }
  .fx2-shot { inset: 0; margin: auto; width: 86%; height: auto; max-height: 92%; object-fit: contain;
    -webkit-mask-image: radial-gradient(ellipse 70% 68% at 50% 50%, #000 55%, transparent 100%);
            mask-image: radial-gradient(ellipse 70% 68% at 50% 50%, #000 55%, transparent 100%); }
}
/* 2026-10-29 user (web): the plan tags (1~20인, 학교·학원) read with roomier letter spacing */
@media (min-width: 768px) { .plan__tag { letter-spacing: 0.05em; padding: 6px 12px; } }
/* 2026-10-29 user (web): the hero copy moves right so its left margin is about the gap before the tablet picture */
@media (min-width: 1100px) {
  .hero__inner > h1, .hero__inner > .hero__lead, .hero__inner > .row, .hero__inner > .hero__web { margin-left: clamp(0px, calc((100vw - 1100px) * 0.39), 140px); }
}
/* the 해지·환불 text keeps its button beside it on web */
@media (min-width: 768px) { .price-sec > .quote-row > .stack { flex: 1 1 420px; min-width: 0; } }
/* 2026-10-29 user: the footer name reads 오캡 | Ocap like the header; on web it is centred over the line below, roomier */
.footer-brand__name { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.footer-brand__name .brand__word { color: #fff; font-size: 22px; }
.footer-brand__div { width: 1px; height: 18px; background: rgba(255,255,255,.35); }
.footer-brand__alias { font-size: 16px; font-weight: 600; color: rgba(255,255,255,.7); }
@media (min-width: 768px) {
  .footer-brand { align-items: center; text-align: center; width: fit-content; }
  .footer-brand__name { letter-spacing: 0.06em; }
  .footer-brand > span:last-child { letter-spacing: 0.03em; }
}
/* 2026-10-29 user: the login tabs say who uses which (아이디 = accounts made by a manager or teacher) */
.auth__hint { margin: -10px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); text-align: center; text-wrap: balance; }
.auth__hint b { color: var(--ink-2); font-weight: 700; }
/* 2026-10-29 user (web): student home — the plan beside the name, a label on the ?, the attendance reward, this week's study */
.me-chip__plan { display: none; }
@media (min-width: 768px) {
  .me-chip__plan { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
  .q-btn[data-tip] { position: relative; }
  .q-btn[data-tip]:hover::after, .q-btn[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 700; white-space: nowrap; z-index: 40; }
  .home-rows__reward { font-size: 13px; color: var(--muted); }
  .home-record { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 16px; padding: 16px 22px; }
  .home-record h2 { font-size: 16px; font-weight: 800; margin: 0; }
  .home-record__line { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; flex: 1; color: var(--ink-2); font-size: 15px; }
  .home-record__line b { color: var(--ink); font-size: 17px; margin-inline: 2px; }
  .home-record .home-more { margin-left: auto; }
  /* the dots say what they count; the usual state reads as a quiet chip, the ones to notice keep their colour */
  .prow__count { display: inline-flex; align-items: center; gap: 6px; }
  .prow__goal { font-size: 12px; color: var(--muted); white-space: nowrap; }
  .prow__state { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12.5px !important; background: var(--surface-2); }
  .prow__state--learning, .prow__state--todo { color: var(--ink-2) !important; }
  .prow__side { min-width: 120px; align-items: flex-end; }
  /* family: the big-group link moves to the foot of the card so the start buttons line up */
  .plan__link--foot { margin-top: auto; padding-top: 6px; font-size: 13.5px; }
}
/* 2026-10-29 user (web): no blue pill above 코인은 이렇게 써요 (the phone keeps it) */
@media (max-width: 767px) { .sec-pill.mob-only { display: inline-flex !important; } }
/* PC hero: both title lines share the logo and copy inset. */
@media (min-width: 768px) { #hero-title > span { display: inline-block; margin-left: 0; } }
/* 2026-10-29 user (web): 패밀리·클래스 시작 방법 보기 sits a little closer under the cards */
@media (min-width: 768px) { .price-body > .plans-more { margin-top: -40px; } }
/* 2026-10-29 user (web): the 학교·학원 견적서 문의 card is narrower and centred, its words and button centred too */
@media (min-width: 768px) {
  .price-body > .quote-row { width: 100%; max-width: 720px; margin-inline: auto; flex-direction: column; justify-content: center; text-align: center; gap: 14px; padding: 26px 32px; }
  .price-body > .quote-row > .stack { align-items: center; }
  .price-body > .quote-row > .btn { margin: 0; }
}
/* 2026-10-29 user (web): each coin tile leads with what it is for, the coin amount sits under it */
@media (min-width: 768px) {
  .coin-rows li > span { order: 2; color: var(--ink); font-size: 16.5px; font-weight: 700; line-height: 1.45; text-wrap: balance; }
  .coin-rows b { order: 3; font-size: 22px; font-weight: 800; color: var(--ink-2); }
  .coin-rows li, .coin-rows li + li { gap: 12px; padding: 26px 18px; }
}
/* the labels take two lines of room, so the coin amounts line up across the four tiles */
@media (min-width: 768px) { .coin-rows li > span { min-height: 2.9em; display: flex; align-items: center; justify-content: center; } }
/* 2026-10-29 user (web): both info cards (견적서 문의, 해지·환불) are only as wide as their words, centred, with the words on one line and a smaller button beside them */
@media (min-width: 768px) {
  .price-body > .quote-row, .price-sec > .quote-row { width: fit-content; max-width: 100%; margin-inline: auto; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: center; text-align: left; gap: 28px; padding: 22px 28px; }
  .price-body > .quote-row > .stack, .price-sec > .quote-row > .stack { align-items: flex-start; flex: 0 1 auto; min-width: 0; }
  .price-body > .quote-row > .btn, .price-sec > .quote-row > .btn { flex: none; min-height: 42px; padding: 0 18px; font-size: 15px; margin: 0; }
}
@media (min-width: 1280px) { .price-body > .quote-row .small, .price-sec > .quote-row .small { white-space: nowrap; } }
/* 2026-10-29 user (web): the coin section starts further down, apart from the plan cards and the quote card above */
@media (min-width: 768px) { .price-body > .price-sec { margin-top: 56px; } }
/* 2026-10-29 user (web): in the footer the bar and Ocap take the same white as 오캡 */
@media (min-width: 768px) { .footer-brand__div { background: #fff; } .footer-brand__alias { color: #fff; } }
/* 2026-10-29 user (web): each footer column (서비스, 도움, 약관) is centred, heading over its links */
@media (min-width: 768px) { .footer-cols > .stack { align-items: center; text-align: center; } .site-footer .footer-cols .footer-app { text-align: center; } }
/* 2026-10-29 user (web): a line under each footer heading sets it apart from the links */
@media (min-width: 768px) { .footer-cols > .stack > strong { align-self: stretch; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .28); } }
/* 2026-10-29 user (web): roomier letter spacing for the footer headings and the 해지·환불 title */
@media (min-width: 768px) { .footer-cols > .stack > strong { letter-spacing: 0.14em; } .price-sec > .quote-row .quote-row__t { letter-spacing: 0.08em; } }
/* 2026-10-29 user: each coin use has a short grey line saying when it applies (그림 다시 그리기 is on top of a conversion) */
.coin-sub { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.45; }
@media (min-width: 768px) {
  .coin-rows li > span { flex-direction: column; justify-content: flex-start; gap: 4px; min-height: 0; }
  .coin-rows li > span .coin-sub { font-size: 13.5px; text-wrap: balance; }
  .coin-rows b { margin-top: auto; }
}
/* 2026-10-29 user (web): a one-line note sits in the middle of the two-line room, level with the middle of the two-line notes */
@media (min-width: 768px) { .coin-rows li > span .coin-sub { display: flex; align-items: center; justify-content: center; min-height: 2.9em; } }
/* the note text is one flex child (a nowrap span inside no longer splits it); one-line notes sit a touch higher */
@media (min-width: 768px) { .coin-rows li > span .coin-sub--one > span { position: relative; top: -4px; } }
/* 2026-10-29 user (web): the app band icon and words move a little to the right */
@media (min-width: 768px) { .app-band__ic { margin-left: 48px; } }
/* 2026-10-31 user (web): 살펴보기 was too wide — back to the same letter spacing as the other section pills */
@media (min-width: 768px) { section[aria-labelledby="fix-title"] .sec-pill { letter-spacing: 0.06em; } }
/* 2026-10-29 user (web): 해지·환불 정책 title spacing a touch tighter */
@media (min-width: 768px) { .price-sec > .quote-row .quote-row__t { letter-spacing: 0.05em; } }
/* 2026-10-29 user (web): the big-group link at the foot of the family card is centred across the card */
@media (min-width: 768px) { .plan__link--foot { align-self: center; text-align: center; } }
/* PC hero: description and actions share the title’s left edge. */
@media (min-width: 768px) { .hero__inner > .hero__lead { width: fit-content; text-align: left; } .hero__inner > .row { justify-content: flex-start; } }
/* 2026-10-30 user (web): the public header uses a centred menu (like Toss, Notion, MathFlat): the logo at the left on the hero text's line,
   the menu in the middle of the page, 로그인 and 앱 설치하기 at the right with the same inset */
@media (min-width: 768px) {
  .site-header__inner { position: relative; }
  .site-menu { justify-content: flex-end; }
  .site-header .site-nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); flex: none; }
}
@media (min-width: 1100px) {
  .site-header__inner > .brand { margin-left: clamp(0px, calc((100vw - 1100px) * 0.39), 140px); }
  .site-header .site-actions { margin-right: clamp(0px, calc((100vw - 1100px) * 0.39), 140px); }
}
/* 2026-10-30 user (web): the OCAP mark (the app icon's infinity and cap) sits before 오캡 in the header and the footer; the phone keeps the word only */
.brand__mark { display: none; }
@media (min-width: 768px) {
  .site-header .brand { display: inline-flex; align-items: center; }
  .brand__mark { display: block; height: 26px; width: auto; margin-right: 8px; flex: none; }
  .footer-brand__name .brand__mark { height: 22px; margin-right: 0; }
}
/* 2026-11-25 user ('오캡 마크도 넣자'): 휴대폰 웹 머리말에도 마크를 '오캡' 앞에 */
@media (max-width: 767px) { .site-header .brand .brand__mark { display: block; height: 22px; width: auto; margin-right: -4px; flex: none; } }
/* 2026-10-30 user (web): the mark sits closer to 오캡 */
@media (min-width: 768px) { .site-header .brand .brand__mark { margin-right: -4px; } .footer-brand__name .brand__mark { margin-right: -4px; } }
/* 2026-10-30 user (web): the footer uses the header's inset on both sides, so the logo lines up with the header logo and the three columns stop where the header buttons stop */
@media (min-width: 1100px) {
  .site-footer__inner { padding-left: calc(var(--gutter) + clamp(0px, calc((100vw - 1100px) * 0.39), 140px)); padding-right: calc(var(--gutter) + clamp(0px, calc((100vw - 1100px) * 0.39), 140px)); }
  .footer-cols { gap: 0 72px; }
}
/* 2026-10-30 user (web): footer links a touch smaller and all in the same weight; 개인정보처리방침 keeps only a slightly brighter white
   (PIPA asks the privacy policy link to be told apart from other notices by size or colour) */
@media (min-width: 768px) {
  .footer-cols a, .site-footer .footer-cols .footer-app { font-size: 14.5px; color: #d9e0ec; }
  .footer-cols a:hover, .site-footer .footer-cols .footer-app:hover { color: #ffffff; }
  .footer-cols a.footer-privacy { color: #ffffff; }
}
/* 2026-10-30 user (web): the help topic tabs are centred in their box, a little more space between them */
@media (min-width: 768px) { .help-tabs { justify-content: center; gap: 14px; } }

/* ---- 2026-10-30 user: student home on the web (theme A, views-home.js) and the profile menu ---- */
@media (min-width: 768px) {
  .topbar-me .q-btn { display: none !important; }
  .hd { display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }
  .hd-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
  .hd-card h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
  .hd-card h2 em { font-style: normal; color: var(--primary); }
  .hd-muted { margin: 0; font-size: 13.5px; color: var(--muted); }
  .hd-chip { padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); font-size: 13px; font-weight: 800; }
  .hd-row__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .hd-row__q { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hd-row__m { font-size: 13px; color: var(--muted); }
  .hd-cta { align-self: flex-start; margin-top: auto; padding: 14px 26px; border: 0; border-radius: 14px; background: var(--primary); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
  .hd-cta--soft { background: var(--primary-soft); color: var(--primary-ink); }
  .hd-meter { position: relative; height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
  .hd-meter > span { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--good, #2f9e5b); }
}
@media (min-width: 768px) {
  details.hd-me { position: relative; display: inline-flex; }
  details.hd-me > summary { list-style: none; cursor: pointer; }
  details.hd-me > summary::-webkit-details-marker { display: none; }
  details.hd-me .me-chip__chev { display: inline-block !important; }
  .hd-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: 300px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--float); display: flex; flex-direction: column; gap: 12px; }
  .hd-pop__who { display: flex; align-items: center; justify-content: space-between; font-size: 16px; }
  .hd-pop dl { margin: 0; display: flex; flex-direction: column; gap: 9px; padding: 12px 0; border-block: 1px solid var(--line); }
  .hd-pop dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
  .hd-pop dt { color: var(--muted); }
  .hd-pop dd { margin: 0; font-weight: 700; text-align: right; }
  .hd-pop__links { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
  .hd-label { margin: 0; font-size: 14px; font-weight: 800; color: var(--muted); letter-spacing: .02em; }
  .hd-a { max-width: 760px; margin: 0 auto; width: 100%; gap: 14px; }
  .hd-cta--wide { align-self: stretch; margin-top: 4px; padding-block: 18px; font-size: 18px; border-radius: 16px; }
}
@media (min-width: 768px) {
  .main > .topbar { position: relative; z-index: 35; }
}
@media (min-width: 768px) {
  .hd-pop__links { align-items: center; }
  .hd-pop__links .linklike, .hd-pop__links a { padding: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--primary-ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
}
@media (min-width: 768px) {
  .me-chip__av { background: #2a5bd7 !important; }
  .hd-pop__links a, .hd-pop__links .linklike { display: inline-flex; align-items: center; min-height: 32px; }
  .hd-pop dd .hd-muted { font-weight: 500; }
  .hd-meter { box-shadow: inset 0 0 0 1px #8d98a8; background: #eef2f7; }
  .hd-label { color: #5b677a; }
}
@media (min-width: 768px) {
  :root { --go: #1f7a4f; --go-soft: #e6f4ec; }

  .hd-meter--go > span { background: var(--go) !important; }

  .hd-a4__fhead { display: flex; align-items: center; justify-content: space-between; }
  .hd-a4__help { position: static; }
  .hd-a4__help summary { list-style: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #8d98a8; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #4a5568; cursor: pointer; }
  .hd-a4__help summary::-webkit-details-marker { display: none; }
  .hd-a4__sheet { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 30; width: 320px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--float); display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: #4a5568; line-height: 1.55; }
  .hd-a4__sheet p { margin: 0; }
  .hd-a4__sheet b { display: block; color: var(--ink); font-size: 14px; }

}
/* 2026-10-30 user: progress uses the OCAP blue, the same family as the rest of the site */
@media (min-width: 768px) {
  :root { --go: #2469ed; --go-soft: #eaf1fe; }
}
@media (min-width: 768px) {

  .hd-a4__help summary { border-color: #6b7688; }
  .hd-a4__sheet { top: calc(100% + 8px); bottom: auto; }
  .hd-a4__sheet p b { margin-bottom: 2px; }
  .hd-a4__close { align-self: flex-end; min-height: 32px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink); cursor: pointer; }
}

@media (min-width: 768px) {
  .hd-pop { width: 330px; }
  .hd-a4__help summary { width: 32px; height: 32px; }

}

@media (min-width: 768px) {

  .dots5 i { width: 10px !important; height: 10px !important; border: 1.5px solid #8d98a8 !important; background: transparent; }
  .dots5 i.on { background: var(--go) !important; border-color: var(--go) !important; }
  .hd-meter { box-shadow: inset 0 0 0 1px #8d98a8 !important; }

}

@media (min-width: 768px) {

  .hd-a4__sheet p { word-break: keep-all; }
}
@media (min-width: 768px) {
   .hd-a4__help summary { width: 22px !important; height: 22px !important; font-size: 12px !important; border-width: 1.5px; }
}

/* the goal caption stays on one line: the goal tile is a little wider than the other two */

/* 2026-10-30 user: two fact cards (연속 복습, 목표 달성) */

/* 2026-10-30 user: bigger weekdays and squares; the goal is a centred count with one line under it */

/* 2026-10-30 user: the two menu links sit closer, with equal space on both sides and between them */
@media (min-width: 768px) {
  .hd-pop__links { justify-content: space-evenly !important; }
}
/* 2026-10-30 user: bigger card titles; the two bottom lines sit on the same baseline */

@media (min-width: 768px) {
  .hd-pop__links a, .hd-pop__links .linklike { font-size: 15.5px !important; }
}
/* 2026-10-30 user: 오늘의 복습, 연속 복습, 목표 달성 share one size and tone */

@media (min-width: 768px) {
  .hd-a4__fhead { display: flex; align-items: center; justify-content: space-between; position: relative; }
  .hd-a4__fhead .hd-a4__sheet { right: 0; top: calc(100% + 8px); width: 280px; }

}
@media (min-width: 768px) {
  .hd-a4__sheet .hd-a4__ht { margin: 0 0 2px; font-size: 14.5px; font-weight: 800; color: var(--ink); }
  .hd-a4__hdots { flex: none; display: inline-flex; gap: 3px; width: 66px; }
  .hd-a4__hdots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #8d98a8; }
  .hd-a4__hdots i.on { background: var(--go); border-color: var(--go); }
}
@media (min-width: 768px) {
  .hd-a4__fhead .hd-a4__sheet { width: 340px; }
}
/* 2026-10-30 user: goal help B-1 — the goal is five dots; right fills one, wrong keeps them and the problem comes back more often */
@media (min-width: 768px) {
  .hd-a4__fhead .hd-a4__sheet { width: 280px; gap: 12px; }
  .hd-a4__sheet .hd-a4__hsub { margin: -8px 0 0; font-size: 13px; color: var(--muted); }
  .hd-a4__hcase { display: grid; grid-template-columns: 44px 1fr; gap: 4px 10px; align-items: center; }
  .hd-a4__hk { font-weight: 800; font-size: 13.5px; }
  .hd-a4__hcase--ok .hd-a4__hk { color: var(--go); }
  .hd-a4__hcase--no .hd-a4__hk { color: var(--warn); }
  .hd-a4__hvis { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
  .hd-a4__hvis .hd-a4__hdots, .hd-a4__hgoal .hd-a4__hdots { width: auto; }
  .hd-a4__hd { grid-column: 2; font-size: 13px; color: var(--ink-2); }
  .hd-a4__hdots i.hd-new { box-shadow: 0 0 0 3px color-mix(in srgb, var(--go) 28%, transparent); }
  .hd-a4__sheet .hd-a4__hgoal { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--go-soft); font-size: 13.5px; color: var(--ink); }
  .hd-a4__sheet .hd-a4__hgoal b { display: inline; color: var(--go); font-weight: 800; font-size: inherit; }
}

/* 2026-10-31 user: the daily amount — one button at the top right of 오늘의 복습 that opens 5·10·15·20 */
@media (min-width: 768px) {
  .hd-amount { position: relative; }
  .hd-amount > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
  .hd-amount > summary::-webkit-details-marker { display: none; }
  .hd-amount > summary .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
  .hd-amount[open] > summary .icon { transform: rotate(180deg); }
  .hd-amount > summary:hover { border-color: var(--line-2); }
  .hd-amount__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 184px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--float); display: flex; flex-direction: column; }
  .hd-amount__menu p { margin: 4px 8px 6px; font-size: 12.5px; color: var(--muted); }
  .hd-amount__menu button { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
  .hd-amount__menu button:hover { background: var(--surface-2); }
  .hd-amount__menu button[aria-pressed="true"] { color: var(--primary-ink); font-weight: 800; }
  .hd-amount__menu button .icon { width: 18px; height: 18px; }
}

/* 2026-10-31 user: 목표 달성이란? smaller with a × in the corner, so it fits without scrolling; on wide screens it sits in the
   empty space right of the card, its bottom on the card's bottom; narrower, it opens upward from the title */
@media (min-width: 768px) {
  .hd-a4__fhead .hd-a4__sheet { overflow: visible; width: 216px; padding: 12px 14px 14px; gap: 8px; border-radius: 14px; font-size: 12px; }
  .hd-a4__sheet .hd-a4__ht { margin: 0; padding-right: 24px; font-size: 13.5px; }
  .hd-a4__sheet .hd-a4__hsub { margin: -4px 0 2px; font-size: 12px; line-height: 1.45; }
  .hd-a4__hcase { grid-template-columns: 36px 1fr; gap: 2px 6px; }
  .hd-a4__hk { font-size: 12px; }
  .hd-a4__hvis { gap: 4px; font-size: 10px; }
  .hd-a4__hd { font-size: 12px; line-height: 1.4; }
  .hd-a4__sheet .hd-a4__hdots { gap: 2px; }
  .hd-a4__sheet .hd-a4__hdots i { width: 8px; height: 8px; border-width: 1.3px; }
  .hd-a4__hdots i.hd-new { box-shadow: 0 0 0 2px color-mix(in srgb, var(--go) 30%, transparent); }
  .hd-a4__sheet .hd-a4__hgoal { gap: 8px; margin-top: 2px; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; }
  .hd-a4__sheet .hd-a4__close { position: absolute; top: 8px; right: 8px; min-height: 0; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; display: grid; place-items: center; font-size: 17px; font-weight: 500; line-height: 1; color: var(--muted); background: transparent; }
  .hd-a4__sheet .hd-a4__close:hover { background: var(--surface-2); color: var(--ink); }
}
@media (min-width: 1440px) {
  .hd-a4__fhead{ position: static !important; }
  /* the bottom lines up with the bottom of the 목표 달성 card (-1px: past its border) */

}

@media (min-width: 768px) {
  .hd-a4__fhead .hd-a4__sheet { width: 216px; }
  .hd-a4__sheet .hd-a4__hd { grid-column: 1 / -1; padding-left: 2px; text-wrap: balance; }
  .hd-a4__sheet .hd-a4__hgoal span { text-wrap: balance; }
}

/* 2026-10-31 user: 내 문제 on the web — 날짜별 보기 / 과목별 보기 under one header (views-library.js) */
@media (min-width: 768px) {
  .main--lv .content { max-width: 1080px; margin-inline: auto; }
  .lv { display: flex; flex-direction: column; gap: 14px; width: 100%; }
  .lv-top { display: flex; gap: 10px; }
  .lv-search { position: relative; flex: 1; min-width: 0; }
  .lv-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
  .lv-search .input { width: 100%; min-height: 46px; padding-left: 42px; border-radius: 14px; font-size: 15px; }
  .lv-mode { flex: none; display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
  .lv-mode button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
  .lv-mode button .icon { width: 17px; height: 17px; }
  .lv-mode button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
  .lv-chips { display: flex; gap: 8px; flex-wrap: wrap; }
  .lv-chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 14.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
  .lv-chip span { margin-left: 2px; color: var(--muted); font-weight: 600; }
  .lv-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
  .lv-chip[aria-pressed="true"] span { color: inherit; opacity: .75; }
  .lv-q { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lv-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: 0; font-size: 13.5px; color: var(--muted); }
  .lv-stars { color: #e0a100; letter-spacing: -1px; font-size: 12.5px; }
  .lv-tag { display: inline-flex; padding: 1px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
  .lv-tag--repeat { background: var(--primary-soft); color: var(--primary-ink); }
  .lv-tag--warn { background: var(--warn-soft); color: var(--warn); }
  .lv-when { font-size: 13.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
  .lv-link { display: inline-flex; align-items: center; gap: 2px; padding: 0; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--primary-ink); cursor: pointer; }
  .lv-link .icon { width: 16px; height: 16px; }
  .lv-note { font-size: 13.5px; color: var(--muted); }
  .lv-soft { min-height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--primary-soft); color: var(--primary-ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
  .lv-empty { padding: 40px 0; text-align: center; color: var(--muted); }

  /* 날짜별 */
  .lv-date { display: flex; flex-direction: column; gap: 14px; }
  .lv-grp { display: flex; flex-direction: column; gap: 6px; }
  .lv-grp__head { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 4px 2px; }
  .lv-grp__head h2 { margin: 0; font-size: 16px; font-weight: 800; }
  .lv-grp__head h2 span { margin-left: 4px; color: var(--muted); font-weight: 700; }
  .lv-grp--today .lv-grp__head h2 { color: var(--primary-ink); }
  .lv-grp ol { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
  .lv-grp li + li { border-top: 1px solid var(--line); }
  .lv-grp--done ol, .lv-grp--held ol { opacity: .78; }
  .lv-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; color: inherit; text-decoration: none; }
  .lv-row:hover { background: var(--surface-2); }
  .lv-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
  .lv-row__side { display: flex; align-items: center; gap: 14px; flex: none; }

  /* 과목별 */
  .lv-subject { display: flex; align-items: flex-start; gap: 20px; }
  .lv-rail { flex: none; width: 200px; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
  .lv-rail__s, .lv-rail__u { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink-2); cursor: pointer; text-align: left; }
  .lv-rail__s span, .lv-rail__u span { flex: none; color: var(--muted); font-weight: 600; font-size: 13.5px; }
  .lv-rail__s[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary-ink); }
  .lv-rail__units { display: flex; flex-direction: column; padding: 2px 0 6px 10px; }
  .lv-rail__u { min-height: 34px; font-size: 14px; font-weight: 600; }
  .lv-rail__u[aria-pressed="true"] { color: var(--primary-ink); background: var(--surface-2); }
  .lv-subject__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
  .lv-subject__bar { display: flex; align-items: center; justify-content: space-between; min-height: 36px; font-size: 15px; }
  .lv-table { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
  .lv-table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  .lv-table th { padding: 0 16px; height: 44px; text-align: left; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--surface-2); }
  .lv-table th button { padding: 0; border: 0; background: none; font: inherit; color: inherit; font-weight: 700; cursor: pointer; }
  .lv-table th:nth-child(2) { width: 160px; } .lv-table th:nth-child(3) { width: 112px; } .lv-table th:nth-child(4) { width: 118px; }
  .lv-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
  .lv-table tr:last-child td { border-bottom: 0; }
  .lv-table tbody tr:hover { background: var(--surface-2); }
  .lv-table__q { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: inherit; text-decoration: none; }
  .lv-table__unit { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
  .lv-table__when { font-weight: 700; color: var(--ink-2); }
}

/* 2026-10-31 user: 내 문제 shows 10 problems a page with 1 · 2 · 3 below */
@media (min-width: 768px) {
  .lv-pager { display: flex; justify-content: center; gap: 6px; padding-top: 6px; }
  .lv-pager button { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 15px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
  .lv-pager button:hover:not(:disabled) { border-color: var(--line-2); }
  .lv-pager button[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
  .lv-pager button:disabled { opacity: .4; cursor: default; }
  .lv-grp__head h2 small { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
}
@media (min-width: 768px) { .lv-grp__head h2 em { margin-left: 6px; font-style: normal; font-size: 14.5px; font-weight: 700; color: var(--muted); } .lv-grp--today .lv-grp__head h2 em { color: var(--primary-ink); opacity: .75; } }

/* 2026-10-31 user: 날짜별 보기 groups are titled with just their date ('10월 31일 토요일') — no date blocks or calendar boxes */
@media (min-width: 768px) {
  .lv-date { gap: 22px; }
  .lv-grp__head { padding: 0 4px 4px; }
  .lv-grp__head h2, .lv-grp--today .lv-grp__head h2 { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
}
@media (min-width: 768px) { .lv-saved { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; } .lv-sep { margin: 0 2px; color: var(--line-2); font-size: 12px; } }

/* 2026-10-31 user (web): 서비스 소개 — a big title on the left and four numbered cards on the right, then how it is used and
   who it is for. The phone gets a simple stacked version (its menu does not link here). */

/* 2026-10-31 user: the web student home as in the user's picture (views-home.js homeWeb), the sidebar's 도움말 and the bell */
@media (min-width: 768px) {
  .side-sep { width: 100%; height: 1px; margin: 10px 0; border: 0; background: var(--line); }
  .side-help { margin-top: auto; }
  .side-help__ic { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.8px solid currentColor; font-size: 13px; font-weight: 800; line-height: 1; }
  .sidebar .side-spacer { flex: 1; }
  details.hd-me .me-chip__plan { display: none; }
  .hm-bell { position: relative; display: inline-flex; margin-right: 6px; }
  .hm-bell > summary { list-style: none; position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--ink-2); cursor: pointer; }
  .hm-bell > summary::-webkit-details-marker { display: none; }
  .hm-bell > summary:hover { background: var(--surface-2); }
  .hm-bell > summary .icon { width: 22px; height: 22px; }
  .hm-bell__dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px var(--surface); }
  .hm-bell__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 280px; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--float); display: flex; flex-direction: column; gap: 2px; }
  .hm-bell__menu p { margin: 6px 10px 6px; font-size: 13px; font-weight: 800; color: var(--muted); }
  .hm-bell__menu a, .hm-bell__menu button, .hm-bell__menu div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; font: inherit; text-align: left; color: var(--ink); text-decoration: none; }
  .hm-bell__menu a:hover, .hm-bell__menu button:hover { background: var(--surface-2); cursor: pointer; }
  .hm-bell__menu b { font-size: 14.5px; }
  .hm-bell__menu span { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }

  .main--hm .content { max-width: 1040px; margin-inline: auto; }
  .hm { display: flex; flex-direction: column; gap: 14px; width: 100%; }
  .hm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 4px 2px 6px; }
  .hm-hello { margin: 0; font-size: 23px; font-weight: 850; letter-spacing: -0.03em; color: var(--ink); }
  .hm-date { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
  .hm-row { display: grid; gap: 14px; }
  .hm-row--top { grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); }
  .hm-row--mid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .hm-card { position: relative; min-width: 0; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
  .hm-card h3 { margin: 0; font-size: 15.5px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
  .hm-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--primary-ink); text-decoration: none; }
  .hm-link .icon { width: 14px; height: 14px; }
  .hm-link--sm { font-size: 13px; color: var(--ink-2); font-weight: 600; }

  /* 오늘의 복습 */
  .hm-today { display: flex; padding: 0; overflow: hidden; min-height: 236px; }
  .hm-today__text { position: relative; z-index: 1; flex: 1 1 52%; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 20px 0 20px 22px; }
  .hm-today__label { display: flex; align-items: center; gap: 14px; }
  .hm-amount > summary { min-height: 30px; padding: 0 8px 0 12px; border-radius: 9px; font-size: 12.5px; color: var(--ink-2); }
  .hm-amount .hd-amount__menu { left: 0; right: auto; }
  .hm-big { margin: 4px 0 0; font-size: 30px; font-weight: 850; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
  .hm-big b { font-size: 44px; color: var(--primary); }
  .hm-big--done b { color: var(--ink); }
  .hm-sub { margin: 0; font-size: 15px; color: var(--ink-2); }
  .hm-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 232px; min-height: 44px; margin-top: 6px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--primary); color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 18px rgba(36, 105, 237, .22); }
  .hm-cta .icon { width: 15px; height: 15px; }
  .hm-cta--soft { background: var(--primary-soft); color: var(--primary-ink); box-shadow: none; }
  .hm-desk { flex: 0 0 46%; align-self: stretch; width: 46%; height: auto; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%); mask-image: linear-gradient(90deg, transparent 0, #000 28%); }

  /* 목표 달성 */
  .hm-goal { display: flex; flex-direction: column; gap: 9px; }
  .hm-goal__head { display: flex; align-items: center; justify-content: space-between; }
  .hm-goal .hd-a4__help summary { width: 24px !important; height: 24px !important; font-size: 12.5px !important; border-width: 2px; }
  .hm-goal__month { margin: 2px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
  .hm-goal__month b { color: var(--primary); }
  .hm-goal__count { margin: 2px 0 0; font-size: 19px; font-weight: 800; color: var(--muted); }
  .hm-goal__count b { font-size: 30px; color: var(--primary); letter-spacing: -0.03em; }
  .hm-bar { display: block; height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
  .hm-bar i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
  .hm-goal__note { margin: 2px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }

  /* 이번 주 복습 */
  .hm-week__sub { margin: 4px 0 12px; font-size: 13px; color: var(--muted); }
  .hm-week__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .hm-week__days li { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }
  .hm-week__days i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; box-sizing: border-box; }
  .hm-week__days li.on i { background: var(--primary); color: #fff; }
  .hm-week__days li.on i .icon { width: 16px; height: 16px; stroke-width: 3; }
  .hm-week__days li.miss i { background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
  .hm-week__days li.miss i b { font-weight: 700; }
  .hm-week__days li.today span { color: var(--primary-ink); font-weight: 800; }
  .hm-week__days li.today i { border: 2px solid var(--primary); }
  .hm-week__days li.future i { border: 1.5px dashed #b9c3d2; }

  /* 학습 통계 */
  .hm-stats__head { display: flex; align-items: center; justify-content: space-between; }
  .hm-stats__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 0; }
  .hm-stats__grid > div { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 8px; }
  .hm-stats__grid > div + div { border-left: 1px solid var(--line); }
  .hm-stats__grid dt { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
  .hm-stats__grid dt .icon { width: 17px; height: 17px; color: #7f9dd6; }
  .hm-stats__grid dd { margin: 0; font-size: 23px; font-weight: 850; letter-spacing: -0.02em; color: var(--ink); }
  .hm-stats__grid dd a { color: inherit; text-decoration: none; }
  .hm-stats__grid dd a:hover { color: var(--primary-ink); }

  /* 직접 골라 복습하기 */
  .hm-pick { display: flex; align-items: center; gap: 10px; padding: 14px 20px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 800; }
  .hm-pick span { flex: 1; }
  .hm-pick .icon { width: 18px; height: 18px; color: var(--ink-2); }
  .hm-pick:hover { border-color: var(--line-2); }
}
@media (min-width: 768px) and (max-width: 1180px) {
  .hm-row--top, .hm-row--mid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 768px) { .hm-desk { background: linear-gradient(135deg, #f4f8ff, #e3ecfb); } }

/* 2026-10-31 user: the whole student home fits one screen without scrolling (about 700px tall); the sidebar a little
   smaller on every student page */
@media (min-width: 768px) {
  .app .sidebar { width: 216px; padding: 16px 12px; }
  .app .side-link { min-height: 40px; font-size: 15px; padding: 6px 12px; }
  .app .sidebar .brand__word { font-size: 24px; }
  .main--hm .topbar { padding-block: 8px 0; }
  .main--hm .content { padding-top: 4px; padding-bottom: 20px; gap: 0; }
  .hm { gap: 12px; }
  .hm-head { padding: 0 2px 2px; }
  .hm-hello { font-size: 21px; }
  .hm-row { gap: 12px; }
  .hm-card { padding: 16px 18px; }
  .hm-card h3 { font-size: 15px; }
  .hm-today { min-height: 208px; }
  .hm-today__text { gap: 7px; padding: 16px 0 16px 20px; }
  .hm-big { font-size: 26px; margin-top: 2px; }
  .hm-big b { font-size: 38px; }
  .hm-sub { font-size: 14px; }
  .hm-cta { min-height: 40px; min-width: 210px; font-size: 14.5px; margin-top: 4px; }
  .hm-link { font-size: 13.5px; }
  .hm-goal { gap: 7px; }
  .hm-goal__month { font-size: 14.5px; }
  .hm-goal__count { font-size: 17px; }
  .hm-goal__count b { font-size: 26px; }
  .hm-goal__note { font-size: 12.5px; padding-top: 8px; }
  .hm-week__sub { margin: 2px 0 10px; font-size: 12.5px; }
  .hm-week__days li { gap: 6px; font-size: 12.5px; }
  .hm-week__days i { width: 28px; height: 28px; }
  .hm-week__days li.on i .icon { width: 14px; height: 14px; }
  .hm-stats__grid { margin-top: 12px; }
  .hm-stats__grid > div { gap: 8px; }
  .hm-stats__grid dd { font-size: 21px; }
  .hm-pick { padding: 12px 18px; font-size: 14.5px; }
}
@media (min-width: 768px) { .app { min-height: calc(100vh - var(--proto-h, 0px)); } }  /* under the 시제품 bar (its measured height; 0 while it is hidden) */
.proto-bar[hidden] { display: none; }
@media (min-width: 768px) { .hm-card.hm-today { padding: 0; min-height: 200px; } }

/* 2026-10-31 user: the bell, name and coins smaller and up at the logo's height; on the home the greeting sits on that same
   top line (beside the logo), so the cards start level with the 홈 menu item */
@media (min-width: 768px) {
  .topbar-me { gap: 8px; height: auto; }
  .me-chip { height: 36px; padding: 0 12px 0 4px; font-size: 13.5px; gap: 7px; }
  .me-chip__av { width: 28px; height: 28px; font-size: 13px; }
  .topbar-me .coin-pill { height: 34px; min-height: 34px; padding: 0 12px 0 9px; font-size: 14px; }
  .hm-bell > summary { width: 34px; height: 34px; }
  .hm-bell > summary .icon { width: 19px; height: 19px; }
  .hm-bell__dot { top: 6px; right: 7px; width: 7px; height: 7px; }
  .main--hm { position: relative; }
  .main--hm .topbar { position: absolute; top: 14px; right: max(20px, env(safe-area-inset-right, 0px)); z-index: 20; width: auto; height: auto; padding: 0; background: transparent; border: 0; box-shadow: none; overflow: visible; clip: auto; }
  .main--hm .content { padding-top: 12px; }
  .hm-head { min-height: 40px; align-items: center; justify-content: flex-start; gap: 12px; padding-right: 300px; }
}
@media (min-width: 768px) { .main.main--hm .topbar { top: 24px; padding: 0; } .main.main--hm .content { padding-top: 22px; } }
@media (min-width: 768px) { .main.main--hm .topbar { min-height: 0; height: auto; } .main.main--hm .topbar .topbar-me { margin: 0; } }
@media (min-width: 768px) { body .main.main--hm .topbar { padding: 0 !important; } }  /* the home places it itself (top: 24px), level with the logo */
/* 2026-10-31 user: the greeting and cards go back down under the bell line; the date at the right end of the greeting row again */
@media (min-width: 768px) { .main.main--hm .content { padding-top: 66px; } .hm-head { justify-content: space-between; padding-right: 2px; } }

/* 2026-10-31 user ('배열이 어색해'): coins · bell | profile — the coins in a pill like the name chip, the profile last at the
   right edge after a thin line (every student page on the web) */
@media (min-width: 768px) {
  .topbar-me { gap: 6px; }
  .topbar-me .coin-pill.web-only { order: 1; height: 36px; min-height: 36px; padding: 0 12px 0 10px; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
  .topbar-me .coin-pill.web-only:hover { border-color: var(--line-2); }
  .topbar-me .hm-bell { order: 2; margin-right: 0; }
  .topbar-me .hd-me { order: 3; padding-left: 12px; margin-left: 4px; background: linear-gradient(var(--line), var(--line)) left center / 1px 20px no-repeat; }
  .topbar-me .hd-me .me-chip { border-color: transparent; box-shadow: none; background: transparent; }
  .topbar-me .hd-me .me-chip:hover, .topbar-me .hd-me[open] .me-chip { background: var(--surface-2); }
}
@media (min-width: 768px) { .hm-goal__month { white-space: nowrap; } }  /* 2026-10-31 user: one line */
/* 2026-10-31 user: no bell; the top right is the profile, then the coins */
@media (min-width: 768px) {
  .topbar-me .hd-me { order: 1; padding-left: 0; margin-left: 0; background: none; }
  .topbar-me .coin-pill.web-only { order: 2; }
}
@media (min-width: 768px) { .topbar-me .hd-me .me-chip { border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); } .topbar-me .hd-me .me-chip:hover, .topbar-me .hd-me[open] .me-chip { border-color: var(--line-2); background: var(--surface); } }
/* 2026-10-31 user: 1문제 / 23문제 centred; 목표 달성이란? opens beside the card, over the desk picture of 오늘의 복습 (a
   picture only), level with the card's top, so it hides no number or button */
@media (min-width: 768px) {
  .hm-goal__count { text-align: center; }
  .hm-goal .hm-goal__head, .hm-goal .hd-a4__help { position: static; }
  .hm-goal .hm-goal__head .hd-a4__sheet { top: 0; right: calc(100% + 14px); left: auto; bottom: auto; width: 236px; z-index: 30; }
  .hm-goal .hm-goal__head .hd-a4__sheet::after { content: ''; position: absolute; right: -6px; top: 22px; width: 10px; height: 10px; background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg); }
}
/* stacked cards (narrow window): under the ? inside the card's width */
@media (min-width: 768px) and (max-width: 1180px) {
  .hm-goal .hm-goal__head .hd-a4__sheet { right: 18px; top: 52px; }
  .hm-goal .hm-goal__head .hd-a4__sheet::after { display: none; }
}

/* 2026-10-31 user ('글자 배열, 크기를 손봐야'): five sizes only on the web student home — greeting 22, big number 40,
   middle numbers 28, card titles 16 / text 15, small 13.5 (nothing smaller); text left, only numbers compared side by side
   centred; the daily-amount chip quieter than the card title */
@media (min-width: 768px) {
  .hm-hello { font-size: 22px; font-weight: 800; }
  .hm-date { font-size: 13.5px; }
  .hm-card h3 { font-size: 16px; font-weight: 800; }
  .hm-today__label { gap: 10px; }
  .hm-amount > summary { min-height: 28px; padding: 0 8px 0 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); border-color: var(--line); background: var(--surface-2); }
  .hm-big { font-size: 24px; font-weight: 800; margin-top: 6px; }
  .hm-big b { font-size: 40px; font-weight: 850; }
  .hm-sub { font-size: 15px; color: var(--ink-2); }
  .hm-cta { font-size: 15px; }
  .hm-link, .hm-link--sm { font-size: 13.5px; font-weight: 700; }
  .hm-goal__month { font-size: 15px; white-space: nowrap; }
  .hm-goal__count { font-size: 16px; }
  .hm-goal__count b { font-size: 28px; }
  .hm-goal__note { font-size: 13.5px; }
  .hm-week__sub { font-size: 13.5px; }
  .hm-week__days li { font-size: 13.5px; }
  .hm-stats__grid dt { font-size: 13.5px; }
  .hm-stats__grid dd { font-size: 28px; font-weight: 800; }
}

/* 2026-10-31 user ('글자 배열 및 정렬 다 고쳐'): the profile and coins end on the cards' right edge; 목표 달성 spreads
   top (sentence) / middle (count and bar) / bottom (note); 오늘의 복습's text sits in the middle of its card; the desk
   picture has room on its left so the fade never runs over the books */
@media (min-width: 768px) {
  .main.main--hm .topbar { right: calc(max(0px, (100% - 1040px) / 2) + max(16px, env(safe-area-inset-right, 0px))); }
  .hm-goal .hm-goal__count { margin-top: auto; }
  .hm-goal .hm-goal__note { margin-top: auto; }
  .hm-today__text { justify-content: center; }
  .hm-desk { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%); }
}
@media (min-width: 768px) { .hm-acts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; } .hm-acts .hm-cta { margin-top: 0; } }  /* the list link beside the button */
@media (min-width: 768px) { .hm-acts { flex-direction: column; align-items: flex-start; gap: 14px; } }  /* 2026-10-31 user: the link under the button again, with more room above it */
/* 2026-10-31: the GPT desk picture — white like the card, so no fade or tinted box; it fits the right side whole */
@media (min-width: 768px) {
  .hm-desk { -webkit-mask-image: none; mask-image: none; background: none; object-fit: contain; object-position: right center; padding: 14px 18px 14px 0; box-sizing: border-box; min-width: 0; }
}
/* 2026-10-31 user ('자연스럽지 않아'): the illustration in a scene — sky with window light, a desk top it stands on; its
   white background melts into the sky (multiply); the fade on the left only crosses empty sky */
@media (min-width: 768px) {
  .hm-scene { position: relative; isolation: isolate; flex: 0 0 48%; align-self: stretch; overflow: hidden;
    background: linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, .6) 34% 41%, transparent 41% 48%, rgba(255, 255, 255, .45) 48% 52%, transparent 52%), linear-gradient(140deg, #f5f9ff 0%, #e4ecfa 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%); mask-image: linear-gradient(90deg, transparent 0, #000 18%); }
  .hm-scene::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; z-index: 0; background: linear-gradient(#f1e9df, #e6dccf); }
  .hm-scene .hm-desk { position: absolute; z-index: 1; right: 16px; bottom: 18px; width: 86%; max-width: 420px; height: auto; padding: 0; flex: none; align-self: auto; object-fit: initial; mix-blend-mode: multiply; -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 768px) { .hm-scene { flex-basis: 54%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%); } .hm-scene .hm-desk { width: 88%; max-width: 460px; } }  /* 2026-10-31 user: the picture a little further left */
/* 2026-10-31 user ('왼쪽에 책상 좀 더 나오게'): the fade now only whitens the sky; the desk top runs further left, under the
   text side, fading out near the card's left part */
@media (min-width: 768px) {
  .hm-scene { -webkit-mask-image: none; mask-image: none; flex-basis: 62%; margin-left: -8%;
    background: linear-gradient(90deg, var(--surface) 0, rgba(255, 255, 255, 0) 26%), linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, .6) 34% 41%, transparent 41% 48%, rgba(255, 255, 255, .45) 48% 52%, transparent 52%), linear-gradient(140deg, #f5f9ff 0%, #e4ecfa 100%); }
  .hm-scene::after { background: linear-gradient(90deg, var(--surface) 0, rgba(255, 255, 255, 0) 16%), linear-gradient(#f1e9df, #e6dccf); }
  .hm-scene .hm-desk { width: 80%; max-width: 460px; }
}
/* 2026-10-31 user: the greeting in two lines — '지민님, 반가워요!' (22, bold) over '오늘도 오답을 캐치해볼까요?' (15, quieter);
   the date at the right on the second line's height; the block starts a little higher so the cards stay where they were */
@media (min-width: 768px) {
  .hm-head { align-items: flex-end; min-height: 0; }
  .hm-head__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .hm-hello__sub { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink-2); }
  .hm-date { padding-bottom: 1px; }
  .main.main--hm .content { padding-top: 54px; }
}
@media (min-width: 768px) { .hm-week__next { margin: 12px 0 0; text-align: center; font-size: 13.5px; color: var(--muted); } }  /* 2026-10-31 user: one line under the days about keeping the streak */

/* 2026-11-01 user (web, 시안 C '오답에서 정답까지'): 서비스 소개 — the title in one centred line, then the four ideas as
   steps on one dashed path that runs from 오답 to 정답 (views-public.js O.views.about). The pictures came from the
   user's GPT design (assets/about-1..4.jpg); narrower screens drop the path and show two steps a row. */
.ab3 { max-width: 1120px; margin: 0 auto; padding: 56px max(20px, env(safe-area-inset-right, 0px)) 96px max(20px, env(safe-area-inset-left, 0px)); }
.ab3__hero { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px 0 40px; text-align: center; }
.ab3__hero h1 { margin: 0; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.25; font-weight: 850; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; word-break: keep-all; }
.ab3 em { font-style: normal; color: var(--primary); }
.ab3__hero p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); word-break: keep-all; }
.ab3__path { position: relative; }
.ab3__line { position: absolute; left: 12%; top: 245px; width: 76%; height: 30px; }  /* from the first number to the last */
.ab3__line path { fill: none; stroke: color-mix(in srgb, var(--primary) 40%, transparent); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.ab3__steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ab3__steps li { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; text-align: center; }
.ab3__art { width: 100%; height: 220px; display: grid; place-items: center; border-radius: 24px; background: linear-gradient(160deg, #f6f9ff, #eaf1fd); }
.ab3__art img { display: block; width: 94%; max-width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 52%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 78% at 50% 52%, #000 62%, transparent 100%); }
.ab3__dot { position: relative; z-index: 1; width: 40px; height: 40px; margin-top: 8px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); font-weight: 850; color: var(--primary-ink); box-shadow: 0 0 0 6px var(--bg); }
.ab3__steps h2 { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 850; letter-spacing: -0.02em; color: var(--ink); word-break: keep-all; }
.ab3__steps p { margin: 0; max-width: 24ch; font-size: 14px; line-height: 1.7; color: var(--muted); word-break: keep-all; text-wrap: balance; }
@media (min-width: 768px) {
  .ab3__art { padding: 0; overflow: hidden; }
  .ab3__art img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 768px) { .ab3__cta { justify-content: center; gap: 10px; margin-top: 48px; } } /* 2026-11-14 user (UX-15) */
@media (min-width: 901px) {
  .ab3 { --ab3-step-gap: clamp(32px, 3.4vw, 48px); --ab3-art-height: 240px; --ab3-stack-gap: 20px; max-width: 1200px; }
  .ab3__steps { gap: var(--ab3-step-gap); }
  .ab3__steps li { gap: var(--ab3-stack-gap); }
  .ab3__art { height: var(--ab3-art-height); padding: 0; }
  .ab3__art img { width: 100%; }
  .ab3__steps p { margin-top: 4px; }
  /* The line spans the outer number centres; its middle follows the 40px dots after their 8px top margin. */
  .ab3__line { left: calc(12.5% - var(--ab3-step-gap) * .375); width: calc(75% + var(--ab3-step-gap) * .75); top: calc(var(--ab3-art-height) + var(--ab3-stack-gap) + 13px); }
}
@media (max-width: 900px) {
  .ab3__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .ab3__line { display: none; }
}
/* 2026-11-04 user (phone): each step is one white card, its picture at 70% of the card (other services keep pictures at
   55-76% of a phone's width) and the number 01-04 hung just left of the blue line, so both title lines stay centred */
@media (max-width: 767px) {
  .ab3 { padding-block: 28px 64px; }
  .ab3__hero { gap: 14px; padding: 8px 0 28px; }
  .ab3__hero h1 { font-size: 27px; line-height: 1.32; }
  .ab3__hero p { font-size: 15px; line-height: 1.65; }
  .ab3__steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ab3__steps li { gap: 0; padding-bottom: 26px; background: var(--surface); border-radius: 22px; box-shadow: 0 1px 2px rgba(28, 36, 49, .04), 0 6px 20px rgba(28, 36, 49, .06); }
  .ab3__art { width: 70%; height: auto; aspect-ratio: 16 / 10; margin: 24px auto 0; border-radius: 16px; overflow: hidden; }
  .ab3__art img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: none; mask-image: none; }
  .ab3__dot { display: none; }
  .ab3__steps h2 { margin: 16px 22px 8px; font-size: 19px; line-height: 1.38; }
  .ab3__lead { position: relative; display: inline-block; }
  .ab3__no { position: absolute; right: 100%; top: 50%; margin-right: 8px; transform: translateY(-50%); font-size: 15px; line-height: 1; font-weight: 800; letter-spacing: .02em; color: #9bb8f5; }
  .ab3__steps p { max-width: none; margin: 0 22px; font-size: 14.5px; text-wrap: pretty; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ab3__art { background: var(--surface-2); } }
:root[data-theme="dark"] .ab3__art { background: var(--surface-2); }
/* 2026-11-01 user (web): Korean letters sit high in their line, so the 학습 통계 icons rise 1px to look level with them */
.hm-stats__grid dt .icon { transform: translateY(-1px); }
/* 2026-11-01 user: 기능 소개 — the window dots count the rows: row 1 lights the first dot, row 2 the middle, row 3 the last */
.fx2-row--1 .fx2-device__bar i:nth-child(1), .fx2-row--2 .fx2-device__bar i:nth-child(2), .fx2-row--3 .fx2-device__bar i:nth-child(3) { background: var(--primary); }
/* 2026-11-01 user (phone): 견적 문의하기 and 해지·환불 안내 sit centred on their own line under the words */
@media (max-width: 767px) { .price-body > .quote-row > .btn, .price-sec > .quote-row > .btn { margin-inline: auto; } }
/* 2026-11-01 user: a word in a section title can be blue (기능 소개 오캡, 가격 안내 골라) */
.sec-head__t em { font-style: normal; color: var(--primary); }
/* 2026-11-01 user: with the pill gone above section titles, each title starts a little higher instead of keeping the pill's room */
.sec-head:first-child { margin-top: -18px; }
@media (max-width: 767px) { .sec-head:first-child { margin-top: -12px; } }

/* 2026-11-01 user: wide-screen class home, simplest form (views-admin.js classHomeWeb; the phone keeps the old home) */
@media (min-width: 768px) {
  .ch-todo { gap: 12px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
  .ch-todo__item + .ch-todo__item { padding-top: 12px; border-top: 1px solid var(--line); }
  .ch-todo__item > strong { display: block; margin-bottom: 8px; }
  .ch-todo__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .ch-week { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .ch-num { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
  .ch-num .k { font-size: 14px; font-weight: 700; color: var(--ink-2); }
  .ch-num .v { font-size: 30px; font-weight: 800; line-height: 1.1; color: var(--ink); }
  .ch-num .v small { font-size: 15px; font-weight: 600; color: var(--muted); }
  .ch-row { display: grid; grid-template-columns: minmax(150px, 1.6fr) repeat(3, 100px) 110px; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
  .mtable li:last-child .ch-row { border-bottom: 0; }
  a.ch-row:hover { background: var(--surface-2); color: var(--ink); }
  .ch-row--head { background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--ink-2); }
  .ch-row__who { display: flex; flex-direction: column; }
  .ch-away { color: var(--warn); font-weight: 700; }
  .ch-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .ch-list-head .lv-pager { padding-top: 0; }
  .ch-list-head .lv-pager button { min-width: 34px; height: 34px; font-size: 14px; }
}

/* 2026-11-01 user: the phone class home lists ten students a page too (views-admin.js chPaged) */
@media (max-width: 767px) {
  .ch-pager { display: flex; justify-content: center; gap: 6px; padding-top: 4px; }
  .ch-pager button { min-width: 44px; height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 15px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
  .ch-pager button[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
  .ch-pager button:disabled { opacity: .4; cursor: default; }
}

/* 2026-11-01 user: phone class home — the class list and its management, no numbers (views-admin.js classHome) */
@media (max-width: 767px) {
  .cm { display: flex; flex-direction: column; gap: 14px; }
  .cm--bar { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .cm-info { margin: -6px 0 2px; font-size: 14.5px; }
  .cm .h-sec { font-size: 19px; }
  .cm-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 14%, var(--surface)); color: var(--warn); }
  .cm-ico--blue { background: var(--primary-soft); color: var(--primary); }
  .cm-consent { padding: 16px; border-radius: var(--radius); background: var(--warn-soft); }
  .cm-card-head { display: flex; gap: 12px; align-items: flex-start; }
  .cm-card-head strong { display: block; font-size: 16.5px; color: var(--warn); }
  .cm-desc { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--warn); text-wrap: balance; }
  .cm-consent ul { margin-top: 10px; }
  .cm-consent li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-top: 1px solid color-mix(in srgb, var(--warn) 20%, transparent); font-weight: 700; color: var(--warn); }
  .cm-consent .check { color: var(--ink); font-weight: 500; }
  .cm-make { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
  .cm-make > span:nth-child(2) { flex: 1; min-width: 0; text-wrap: balance; }
  .cm-make .btn { flex: none; min-height: 44px; }
  .cm-sec { gap: 10px; }
  .cm-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
  .cm-head-acts { display: inline-flex; align-items: center; gap: 4px; }
  .cm-count { font-size: 15px; color: var(--muted); margin-right: 8px; }
  .cm-link { min-height: 44px; padding: 0 8px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--primary); cursor: pointer; }
  .cm-selall { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; margin: 0; padding: 4px 12px; border-radius: 12px; background: var(--primary-soft); font-size: 14px; color: var(--ink-2); }
  .cm-search { position: relative; }
  .cm-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
  .cm-search .input { padding-left: 42px; }
  .cm-list { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
  .cm-row { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 4px 6px 4px 16px; border-top: 1px solid var(--line); }
  .cm-list > li:first-child .cm-row, .cm-list > li.cm-row:first-child { border-top: 0; }
  .cm-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; color: var(--ink); text-decoration: none; padding: 6px 0; }
  .cm-who__n { font-size: 16px; font-weight: 700; }
  .cm-who__s { font-size: 13px; color: color-mix(in srgb, var(--muted) 85%, var(--surface)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cm-st { flex: none; font-size: 13px; font-weight: 600; color: var(--muted); }
  .cm-st--wait { color: var(--warn); }
  .cm-more { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--ink-2); cursor: pointer; }
  .cm-more:active { background: var(--surface-2); }
  .cm-row--pick { cursor: pointer; padding-right: 16px; }
  .cm-row--pick input { flex: none; width: 22px; height: 22px; accent-color: var(--primary); }
  .cm-none { padding: 16px 4px; }
  .cm .lv-pager, .cm .ch-pager { padding-top: 6px; }
  .cm-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15, 23, 42, .08); }
  .cm-bar .btn { min-height: 48px; }
  .cm-bar .btn--danger { color: var(--bad); border-color: var(--bad); background: var(--surface); }
  .cm-sheet { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .cm-sheet li + li { border-top: 1px solid var(--line); }
  .cm-sheet__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 16px; border: 0; background: var(--surface); font: inherit; font-size: 16px; color: var(--ink); text-align: left; cursor: pointer; }
  .cm-sheet__item span { flex: 1; }
  .cm-sheet__item .icon:last-child { color: var(--muted); width: 18px; height: 18px; }
  .cm-sheet__item.is-danger { color: var(--bad); font-weight: 700; }
  .modal--sheet .modal__actions { flex-wrap: nowrap; }
  .modal--sheet .modal__actions .btn { flex: 1; min-height: 48px; }
  .cm-names { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-weight: 700; text-align: center; }
  .cm-warn { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); font-size: 14.5px; font-weight: 600; line-height: 1.5; }
  .cm-creds { display: flex; flex-direction: column; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius); }
  .cm-creds li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 4px 14px; }
  .cm-creds li + li { border-top: 1px solid var(--line); }
  .cm-pw { flex: none; font: 700 17px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; color: var(--ink); }
  .modal--sheet .seg { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
  .modal--sheet .seg button { border: 0; border-radius: 10px; background: none; }
  .modal--sheet .seg button[aria-pressed="true"] { background: var(--primary); color: #fff; opacity: 1; }
  .cm-names-in { resize: vertical; min-height: 140px; }
  .modal--sheet .field + .field, .modal--sheet .cm-center + .field { margin-top: 14px; }
  .cm-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; font-size: 14px; color: var(--muted); }
  .cm-or::before, .cm-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
  .cm-file { position: relative; width: 100%; min-height: 48px; border-color: var(--primary); color: var(--primary); }
  .cm-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
  .cm-center { margin: 6px 0 14px; text-align: center; }
  .cm-center .cm-link { min-height: 32px; padding: 0 2px; font-size: inherit; }
  .cm-young-all { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px; font-weight: 700; cursor: pointer; }
  .cm-young-all input, .cm-confirm input { width: 22px; height: 22px; accent-color: var(--primary); }
  .cm-confirm { border-top: 1px solid var(--line); }
  .cm-confirm li { display: flex; align-items: center; gap: 10px; min-height: 60px; border-bottom: 1px solid var(--line); }
  .cm-confirm .check { flex: none; font-size: 14px; }
  .cm-dup { font-size: 13px; font-weight: 600; color: var(--warn); }
  .cm-pwmode { border: 0; padding: 0; margin: 14px 0 0; }
  .cm-pwmode .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cm-pwmode .seg label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 15px; cursor: pointer; }
  .cm-pwmode .seg label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; }
  .cm-pw-same { margin-top: 8px; }  /* the shared password box sits right under 모두 같게 */
  .cm-confirm li { flex-wrap: wrap; }
  .cm-rowpw { flex: 1 0 100%; margin: 0 0 10px; min-height: 44px; }
  .cm-confirm li .cm-rowpw + .cm-rowpw { margin-top: -4px; }
  .cm-count-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
  .cm-step { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
  .cm-step button { width: 44px; height: 44px; border: 0; background: var(--surface); font: inherit; font-size: 20px; color: var(--ink); cursor: pointer; }
  .cm-step output { min-width: 52px; text-align: center; font-weight: 800; }
  .cm-name-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }  /* 2026-11-01 user: short name boxes side by side, three a row */
  .cm-name-list .input { min-height: 48px; padding: 0 8px; text-align: center; }
  .stats--mem .stat { align-items: center; text-align: center; }  /* 2026-11-01 user: the numbers sit in the middle */
}

/* 2026-11-01 user: settings › 클래스 정보 — how student IDs are made (views-admin.js general) */
.id-mode { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.id-mode__opt { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.id-mode__opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.id-mode__opt input { margin-top: 3px; accent-color: var(--primary); }
.id-mode__opt > span { display: flex; flex-direction: column; gap: 2px; }

/* School admin (2026-11-02 user): PC web only — a menu column like the settings pages, with a short guide under it. */
.sc { grid-template-columns: 220px minmax(0, 1fr); }
.sc-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 76px; }
.sc .settings__nav { display: flex; flex-direction: column; gap: 4px; position: static; }
.sc-guide { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.sc-guide strong { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.sc-guide strong .icon { width: 16px; height: 16px; }
.sc-guide ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; }
.sc-title { font-size: 24px; font-weight: 800; margin: 0; }
.sc-form { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px 16px; align-items: start; }
.sc-form > label, .sc-form > .field-label { padding-top: 12px; font-weight: 700; }
.sc-form > span:not(.field-label) { padding-top: 12px; }
.sc-short { max-width: 320px; }
.sc-names { max-width: 560px; min-height: 108px; resize: vertical; }
.sc-acts { display: flex; gap: 6px; justify-content: flex-end; }
.sc-count { font-size: 15px; font-weight: 600; }
.sc-sub { font-size: 16px; font-weight: 800; margin: 0; }
.sc-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--good, #1f7a4d); font-weight: 600; }
.sc-ok .icon { width: 16px; height: 16px; }
.sc-warn { color: var(--warn); font-weight: 700; }
.sc-filter { gap: 8px; }
.sc-none { padding: 24px 0; text-align: center; }
.sc-ended { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 14px 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); }
.sc-ended .icon { flex: none; margin-top: 2px; }
.sc-move select { max-width: 320px; margin-left: 28px; }
.sc .ch-pager { flex-direction: row; position: static; }
.sc th, .sc td, .sc td.num { text-align: left; vertical-align: middle; }
.sc .sc-form .input { max-width: 480px; }
.sc .sc-form .sc-short { max-width: 320px; }
.sc .sc-form .sc-names { max-width: 560px; }

/* PC console for teachers and school admins (2026-11-02 user, 구성은 키위티 참고). */
.cs { min-height: 100vh; background: var(--bg); }
.cs-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 64px; padding-inline: max(24px, env(safe-area-inset-left, 0px)); background: var(--surface); border-bottom: 1px solid var(--line); }
/* 2026-11-08 user: the logo and the buttons start where the page below does, on a wide screen too */
.cs-top { padding-inline: max(24px, calc((100% - 1280px) / 2 + 24px), env(safe-area-inset-left, 0px)); }
.cs-top__tag { padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); font-size: 13px; font-weight: 700; }
.cs-top__r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cs-top__link { color: var(--ink-2); font-weight: 650; font-size: 14px; padding: 8px 10px; }
.cs-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 32px; max-width: 1280px; margin: 0 auto; padding: 28px 24px 64px; align-items: start; }
.cs-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.cs-me { display: flex; flex-direction: column; gap: 3px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.cs-me strong { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.cs-me__org { font-size: 12px; font-weight: 700; color: var(--muted); }
.cs-me__pass { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--primary-ink); font-weight: 700; }
.cs-quick { justify-content: center; width: 100%; }
.cs-nav { display: flex; flex-direction: column; gap: 2px; }
.cs-nav a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 12px; color: var(--ink-2); font-weight: 700; font-size: 15px; }
.cs-nav a .icon { width: 19px; height: 19px; color: var(--muted); }
.cs-nav a:hover { background: var(--surface); color: var(--ink); }
.cs-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); }
.cs-nav a[aria-current="page"] .icon { color: var(--primary-ink); }
.cs-guide { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.cs-guide strong { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.cs-guide strong .icon { width: 16px; height: 16px; }
.cs-guide ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; }
.cs-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cs-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cs-head h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.cs-head .icon-btn { align-self: center; }
.cs-desc { font-size: 15px; color: var(--muted); font-weight: 600; }
.cs-desc::before { content: "·"; margin-right: 10px; }
.cs-note { margin: 0; padding: 14px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.cs-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.cs-tabs a { padding: 10px 16px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 700; font-size: 15px; white-space: nowrap; }
.cs-tabs a:hover { color: var(--ink); }
.cs-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.cs-tabs__n { color: var(--primary-ink); }
@media (min-width: 768px) {
  .cs .cs-tabs { flex-wrap: wrap; gap: 8px; border: 0; box-shadow: none; overflow: visible; }
  .cs .cs-tabs a, .cs .cs-period .chip, .cs .filters .chip { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; }
  .cs .cs-tabs a[aria-current="page"], .cs .cs-period .chip[aria-pressed="true"], .cs .filters .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
  .cs .cs-tabs a { gap: 5px; }
  .cs .cs-tabs__n { color: inherit; opacity: .72; }
}

.cs-hints { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cs .card .sc-form.sc-form--make .input { width: 100%; max-width: 360px; }
.cs .card .sc-form.sc-form--make .sc-xs { max-width: 120px; }
.cs .card .sc-form--make textarea.input { min-height: 84px; }
.cs .card .sc-form--make .input::placeholder { font-size: 14px; }
.cs-mode-btn { margin-left: auto; }
.field > .cs-hints { margin-top: 0; }
.cs-hints li::before { content: "*"; margin-right: 4px; color: var(--primary-ink); font-weight: 700; }
.cs-guide__note { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }
.cs-content { gap: 16px; }
.cs-card { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; }
.cs-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cs-more { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 700; }
.cs-more .icon { width: 16px; height: 16px; }
.cs-todo li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.cs-todo li:first-child { border-top: 0; padding-top: 0; }
.cs-todo li:last-child { padding-bottom: 0; }
.cs-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cs-cards .ch-num .v, .cs .ch-num .v { font-size: 28px; }
.cs-v-sm { font-size: 22px !important; }
.cs-seats { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; color: var(--ink); }
.cs-seats .icon { width: 18px; height: 18px; color: var(--primary-ink); }
.cs-ok { color: var(--good); font-weight: 700; font-size: 13px; }
.cs th, .cs td, .cs td.num { text-align: left; vertical-align: middle; }
.cs .cs-cell-pick { width: 44px; padding-right: 0; }
.cs .cs-cell-pick input { width: 18px; height: 18px; }
.cs .cs-cell-go { text-align: right; width: 1%; }
.cs .cs-cell-go a { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: inherit; white-space: nowrap; }
.cs table { font-size: 15px; }
.cs .cs-col-no { width: 64px; }
.cs a.cs-name { color: var(--ink); font-weight: 700; }
.cs a.cs-name:hover { color: var(--primary-ink); text-decoration: underline; }
.cs .cs-cell-go .icon { width: 15px; height: 15px; }
.cs tr.is-picked td { background: var(--primary-soft); }
.ts-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; min-height: 44px; }
.ts-bar__sel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ts-search { max-width: 280px; }
.ts-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ts-foot .ch-pager { padding-top: 0; }
.cs-period { gap: 6px; }
.cs .sc-form .input { max-width: 480px; }
.cs .sc-form .sc-short { max-width: 320px; }
.cs .sc-form .sc-names { max-width: 560px; }
.cs .ch-away { color: inherit; font-weight: inherit; }
.cs th.cs-c, .cs td.cs-c { text-align: center; }
.cs td.sc-acts { display: table-cell; text-align: right; }
.cs td.sc-acts .btn + .btn { margin-left: 6px; }
@media (min-width: 768px) {
  .cs .sc-table th, .cs .sc-table td { padding-top: 10px; padding-bottom: 10px; text-align: center; }
}

.cs .sc-form .sc-xs { max-width: 120px; }
.cs .input--sm { min-height: 38px; padding: 6px 10px; font-size: 14px; max-width: 220px; }
.cs .ch-pager { flex-direction: row; position: static; }
@media (max-width: 1100px) { .cs-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); } .cs-cards > :nth-child(-n+3) { grid-column: span 2; } .cs-cards > :nth-child(n+4) { grid-column: span 3; } }
.cs .card .field > .input, .cs .card .field > select.input { max-width: 480px; }
.cs .id-mode { max-width: 640px; }
@media (max-width: 960px) { .cs-body { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding-inline: 16px; } }
.cs th, .cs td { white-space: nowrap; }
.cs .sc-acts { white-space: nowrap; }
.cs-periodbar { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.cs-period .chip .icon { width: 15px; height: 15px; }
.cs-span { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cs-range { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.cs-range__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cs-range__row .input { width: 170px; }
.cs-range__quick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cs-range__quick .small { margin-right: 4px; }
.cs-range p { margin: 0; }
.cs-tabrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.cs-tabrow .cs-tabs { border-bottom: 0; }
.cs-tabrow__end { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 8px; }
.cs-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cs-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-stat { flex-direction: row; align-items: center; gap: 14px; }
.cs-stat__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-stat__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.cs-stat__icon .icon { width: 22px; height: 22px; }
.cs-stat__icon--blue { background: var(--primary-soft); color: var(--primary); }
.cs-stat__icon--good { background: var(--good-soft); color: var(--good); }
.cs-stat__icon--violet { background: var(--violet-soft); color: var(--violet); }
.cs-stat__icon--warn { background: var(--warn-soft); color: var(--warn); }
.cs-dash { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: stretch; }
.cs-dash > .card { margin: 0; }
.cs-chart { justify-content: flex-start; }
.cs-watch__more { margin-top: auto; }
/* both cards share one height: the plot grows to fill the chart card beside the five-row watch card */
.cs-dash > .cs-chart { display: flex; flex-direction: column; }
.cs-dash .cs-plot { flex: 1; margin-top: 12px; grid-template-rows: minmax(220px, 1fr) auto; }
.cs-dash .cs-plot__y, .cs-dash .cs-plot__area { height: auto; }
.cs-chart__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.cs-legend { display: inline-flex; gap: 14px; font-size: 13px; color: var(--muted); }
.cs-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cs-legend i { width: 10px; height: 10px; border-radius: 50%; }
.cs-legend .is-rev, .cs-plot__bars .is-rev { background: var(--primary); }
.cs-legend .is-saved, .cs-plot__bars .is-saved { background: var(--violet); opacity: .55; }
.cs-plot { display: grid; grid-template-columns: 32px minmax(0, 1fr); row-gap: 8px; }
.cs-plot__y { display: flex; flex-direction: column; justify-content: space-between; height: 220px; font-size: 12px; color: var(--muted); text-align: right; padding-right: 8px; font-variant-numeric: tabular-nums; }
.cs-plot__y span { line-height: 0; }
.cs-plot__area { position: relative; height: 220px; }
.cs-plot__grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.cs-plot__grid i { display: block; border-top: 1px solid var(--line); }
.cs-plot__grid i:last-child { border-top-color: var(--line-2); }
.cs-plot__cols { position: absolute; inset: 0; display: grid; }
.cs-plot__col { display: flex; justify-content: center; align-items: flex-end; height: 100%; }
.cs-plot__bars { display: flex; align-items: flex-end; gap: 4px; height: 100%; width: 100%; max-width: 56px; justify-content: center; }
.cs-plot__bars > span { position: relative; flex: 1 1 0; max-width: 22px; min-height: 0; border-radius: 6px 6px 2px 2px; }
.cs-plot__bars b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 3px; font-size: 12px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cs-plot__x { display: grid; }
.cs-plot__x .wk-lab { min-height: 0; }
.cs-plot__x .is-now > span, .cs-plot__x .is-now small { color: var(--primary-ink); font-weight: 700; }
.cs-plot__x .is-future { opacity: .45; }
.cs-watch ul { display: flex; flex-direction: column; }
.cs-watch li + li { border-top: 1px solid var(--line); }
.cs-watch li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; color: inherit; }
.cs-watch li a .icon { width: 16px; height: 16px; color: var(--muted); }
.cs-watch li a:hover strong { color: var(--primary-ink); }
.cs-watch__who { display: flex; flex-direction: column; gap: 2px; }
.cs-watch__n { font-size: 14px; font-weight: 600; color: var(--primary-ink); margin-left: 4px; }
@media (max-width: 1100px) { .cs-cards.cs-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cs .cs-cards.cs-cards--4 > *, .cs .cs-cards.cs-cards--3 > * { grid-column: auto; } .cs-cards.cs-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cs-dash { grid-template-columns: minmax(0, 1fr); } }
.cs-chart-h span { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 2px; font-variant-numeric: tabular-nums; }
.week--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.week--dated { height: 118px; }
.wk-lab { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; line-height: 1.3; white-space: nowrap; min-height: 32px; }
.wk-lab > span { font-size: 13px; color: var(--ink-2); }
.wk-lab small { font-size: 11px; color: var(--muted); }
.week .is-now .wk-lab > span, .week .is-now .wk-lab small, .week .is-now b { color: var(--primary-ink); font-weight: 700; }
.week .is-future { opacity: .45; }
.cs .sc-acts .btn { flex: none; }
/* 2026-11-04 user (phone): 기능 소개 matches 서비스 소개 — one blue for every step, its light blue 01-03 hung left of the
   blue name (no coloured pills); no window tag that repeats the name; the steps closer together; AI 풀이 shows its four steps with only the first opened, without 주의할 점 */
@media (max-width: 767px) {
  .fx2 { gap: 44px; }
  .fx2-row { gap: 18px; }
  .fx2-label, .fx2-row--2 .fx2-label, .fx2-row--3 .fx2-label { position: relative; display: inline-block; padding: 0; border-radius: 0; background: none; color: var(--primary); font-size: 16px; font-weight: 800; }
  .fx2-label .fx2-no, .fx2-row--2 .fx2-label .fx2-no, .fx2-row--3 .fx2-label .fx2-no { position: absolute; right: 100%; top: 50%; width: auto; height: auto; margin-right: 8px; transform: translateY(-50%); border-radius: 0; background: none; color: #9bb8f5; font-size: 15px; line-height: 1; font-weight: 800; letter-spacing: .02em; }
  .fx2-row--2 .fx2-device__tag, .fx2-row--3 .fx2-device__tag { display: none; }
  .fx2-ai__warn { display: none; }
  /* all four steps, each with its detail in small type (user 2026-11-04 '작은 글씨로 세부설명도') so the window stays short */
  .fx2-ai__more { display: none; }
  .fx2-ai__steps { gap: 6px; }
  .fx2-ai__steps li { padding-block: 7px; }
  .fx2-ai__steps em { font-size: 12px; line-height: 1.5; }
}

/* 2026-11-04 user: 찍은 사진 and 디지털 문제 under one slider, on PC and phones. The two pictures share one layout, so the
   printed words and the figure line up at the line; it sweeps once when it comes into view and stops once someone drags it */
@property --pos { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
.fx2-cmp { --pos: 50%; position: relative; margin: 12px; aspect-ratio: 1216 / 915; border-radius: 12px; overflow: hidden; background: #fff; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.fx2-cmp img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; -webkit-user-drag: none; }
/* pushing the line from left to right wipes the handwriting away: the digital problem on the left, the photo on the right */
.fx2-cmp__after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.fx2-cmp__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--primary); }
.fx2-cmp__knob { position: absolute; top: 50%; left: var(--pos); display: grid; place-items: center; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(37, 99, 235, .35); }
.fx2-cmp__knob svg { width: 18px; height: 18px; }
.fx2-cmp__tag { position: absolute; bottom: 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.3; color: #fff; }
.fx2-cmp__tag--l { left: 8px; background: var(--primary); }
.fx2-cmp__tag--r { right: 8px; background: rgba(28, 36, 49, .72); }
.fx2-cmp__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.fx2-cmp__range:focus-visible ~ .fx2-cmp__knob { outline: 3px solid var(--primary); outline-offset: 3px; }
.fx2-cmp__cap { margin: 0 0 12px; text-align: center; font-size: 13px; color: var(--muted); }
.fx2-row--1.is-in .fx2-cmp:not(.is-touched) { animation: fx-cmp 2.8s ease-in-out .5s both; }
@keyframes fx-cmp { 0% { --pos: 50%; } 30% { --pos: 22%; } 65% { --pos: 78%; } 100% { --pos: 50%; } }
/* 가격 안내 on PC: the plan names read as titles (user 2026-11-05 '베이직 프리미엄 패밀리 크기가 너무 작아') */
@media (min-width: 768px) { .plan__head .plan__name { font-size: 26px; } .plan__tag { font-size: 13px; } }
/* 모웹 (user test 2026-11-06): what 700 coins buy, the family discount, and the plan links as boxes a finger can press. */
@media (max-width: 767px) {
  .plan__link.mob-only, .plans-more a { display: flex !important; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); text-align: center; text-decoration: none; }
  .plan__link.mob-only { margin-top: 10px; }
}

/* Plan notes at every width (user test 2026-11-06). */
.plan__feat-note { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--muted); white-space: normal; }
.plan__fam-note { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: var(--primary-ink); }
/* Preserve the phone flow around the new wrapper (user test 2026-11-06). */
.crop-actions { display: contents; }
/* Desktop birth errors, crop action bar and role labels (user test 2026-11-06). */
@media (min-width: 768px) {
  .birth-err { margin: 4px 0; font-size: 14px; font-weight: 600; color: var(--bad); }
  .birth-part .input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
  .crop-actions { position: sticky; bottom: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 72px; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow); }
  .crop-actions > .row { display: contents; }
  .crop-actions > p { flex: 1 1 320px; margin: 0; color: var(--muted); }
  .crop-actions > .notice { padding: 0; border: 0; background: none; }
  .crop-actions > [data-act="skip-convert"] { order: -1; }
  .role-subtitle { color: var(--muted); font-size: inherit; font-weight: 500; }
}

/* 2026-11-06 user (web, 1024px and up): photo upload in the app's four steps, one screen each */
.uf-top { position: relative; z-index: 60; display: flex; width: fit-content; align-items: center; gap: 8px; height: 44px; margin: -62px 0 4px; padding: 0 8px 0 0; background: none; border: 0; font-size: 18px; font-weight: 700; color: var(--ink); cursor: pointer; }
.uf-top .icon { width: 22px; height: 22px; }
.uf { display: flex; flex-direction: column; gap: 14px; height: max(640px, calc(100vh - 120px)); margin-bottom: -80px; min-height: 0; }
.uf-steps { list-style: none; margin: 0; padding: 5px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; flex: none; }
.uf-step { flex: 1; height: 44px; border-radius: 999px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--muted); }
.uf-step--on { background: var(--primary); color: var(--on-primary); }
.uf-step__n { width: 24px; height: 24px; border-radius: 50%; background: var(--line-2); color: var(--surface); font-size: 13px; display: grid; place-items: center; }
.uf-step--on .uf-step__n { background: var(--on-primary); color: var(--primary); }
.uf-step .icon { width: 15px; height: 15px; color: var(--primary); }
.uf-dash { width: 16px; height: 2px; background: var(--line-2); flex: none; }
.uf-intro { background: var(--surface); border-radius: 20px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 112px; box-sizing: border-box; flex: none; }
.uf-intro h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.uf-intro em, .uf-line em { font-style: normal; color: var(--primary); }
.uf-intro p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.uf-intro img { height: 92px; width: auto; flex: none; }
.uf-line { background: var(--surface); border-radius: 16px; padding: 0 26px; min-height: 56px; display: flex; align-items: center; gap: 16px; flex: none; }
.uf-line h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.uf-line span { color: var(--muted); font-size: 15px; }
.uf-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-sizing: border-box; min-height: 0; }
.uf-drop { flex: 1; border: 2px dashed var(--line-2); border-radius: 20px; background: var(--surface); padding: 16px; }
.uf-drop[data-over="true"] { border-color: var(--primary); background: var(--primary-soft); }
.uf-foot { margin: 0; color: var(--muted); font-size: 14px; flex: none; }
.uf-foot--mid { text-align: center; }
.uf-crop { display: flex; gap: 18px; flex: 1; min-height: 0; }
.uf-crop__pic { flex: 1; min-width: 0; padding: 18px; display: flex; align-items: center; justify-content: center; container-type: size; }
.uf-crop__pic .crop { width: min(100cqw, calc(100cqh * var(--r))); aspect-ratio: var(--r); max-width: none; }
.uf-side { width: 260px; display: flex; flex-direction: column; gap: 10px; flex: none; }
.uf-side .btn { width: 100%; box-sizing: border-box; min-height: 52px; border-radius: 14px; }
.uf .uf-next, .uf .uf-side .uf-next { min-height: 56px; border-radius: 28px; font-size: 18px; font-weight: 700; width: 100%; box-sizing: border-box; flex: none; }
.uf-next--mid { width: 560px !important; align-self: center; }
.uf-how { flex: 1; padding: 30px; display: flex; gap: 32px; align-items: center; }
.uf-photo { margin: 0; position: relative; background: var(--surface-2); border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; min-width: 0; flex: 1; align-self: stretch; }
.uf-photo img { max-width: 100%; max-height: 100%; display: block; }
.uf-zoom { position: absolute; right: 10px; top: 10px; background: var(--surface); }
.uf-ways { width: 480px; display: flex; flex-direction: column; gap: 14px; flex: none; }
.uf-way { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); text-align: left; color: inherit; width: 100%; box-sizing: border-box; cursor: pointer; }
.uf-way[aria-checked="true"] { border-color: var(--primary); background: var(--primary-soft); }
.uf-way[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.uf-way__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.uf-way__t b { font-size: 19px; }
.uf-way__t span { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.uf-way__t .uf-cost { font-weight: 800; color: var(--ink); font-size: 15px; margin-top: 3px; }
.uf-cost small { font-weight: 600; font-size: 13px; color: var(--muted); }
.uf-way__t .uf-way__s { color: var(--muted); font-size: 13px; }
.uf-radio { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; box-sizing: border-box; color: var(--on-primary); }
.uf-way[aria-checked="true"] .uf-radio { background: var(--primary); border-color: var(--primary); }
.uf-radio .icon { width: 16px; height: 16px; }
.uf-way__ic { width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); color: var(--primary); display: grid; place-items: center; flex: none; }
.uf-way[aria-checked="true"] .uf-way__ic { background: var(--surface); }
.uf-cmp { display: flex; align-items: stretch; gap: 10px; flex: 1; min-height: 0; }
.uf-two { display: flex; gap: 18px; flex: 1; min-height: 0; }
.uf-half { flex: 1; min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.uf-half header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 44px; flex: none; }
.uf-half header > .icon { color: var(--primary); }
.uf-half header b { font-size: 18px; }
.uf-half header > span { color: var(--muted); font-size: 15px; }
.uf-half__end { margin-left: auto; }
.uf-arrow { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; flex: none; align-self: center; }
.uf-doc { flex: 1; min-height: 0; overflow: auto; font-size: 19px; }
.uf-chip { background: var(--primary-soft); color: var(--primary-ink) !important; font-size: 13px !important; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.uf-scroll { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 2px; }
.uf-ans .ans-step__n, .uf-ans #up-at-l { display: none; }
.uf-ans .ans-step { display: block; }
.uf-crop__pic .crop__box { background: transparent; }
.uf-ans[data-types="off"] .ans-step:first-child { display: none; }
.uf-more { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; background: none; border: 1px solid var(--line); border-radius: 14px; width: 100%; flex: none; box-sizing: border-box; color: inherit; cursor: pointer; }
.uf-more b { font-size: 15px; }
.uf-more span { color: var(--muted); font-size: 14px; flex: 1; text-align: left; }
.uf-more .icon { width: 18px; height: 18px; color: var(--muted); }
.uf-more[aria-expanded="true"] .icon:last-child { transform: rotate(90deg); }
.uf-opts .more-toggle { display: none; }
.uf-info { margin: 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.uf-info .icon { width: 16px; height: 16px; color: var(--primary); }
.uf-save-note { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.uf-zoomed { max-width: 100%; max-height: 70vh; display: block; margin: 0 auto; }

/* 로그인 (user's design 2026-11-07): the two tabs fill the card, the buttons centred, 또는 above the way to sign up. */
.auth__card--login .tabs { display: flex; background: color-mix(in srgb, var(--primary) 8%, var(--surface)); border: 0; padding: 5px; border-radius: 16px; }
.auth__card--login .tabs a { flex: 1 1 0; justify-content: center; color: var(--muted); }
.auth__card--login .tabs a[aria-current="page"] { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--primary) 35%, transparent); }
.auth__card--login .login-btn { justify-content: center; font-weight: 700; }
.auth__card--login .login-btn .mark--google { border: 0; background: transparent; }
.auth__or { display: flex; align-items: center; gap: 0; color: var(--muted); font-size: 14px; } /* 2026-11-14 user (UX-16): a thin line only, no '또는' */
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth__first { margin: 0; text-align: center; color: var(--muted); font-size: 15px; }
.auth__first a { color: var(--primary); font-weight: 700; }

/* The account menu and the door beside it (user 2026-11-07). */
.hd-menu nav { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.hd-menu__row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.hd-menu__row:hover, .hd-menu__row:focus-visible { background: var(--surface-2); }
.hd-menu__row .icon { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.hd-menu__row > span { flex: 1; min-width: 0; }
.hd-menu__end { font-weight: 800; white-space: nowrap; }
.topbar-logout { color: var(--ink-2); }

.side-coins { width: 100%; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.topbar-me .topbar-logout { order: 9; }

/* 복습 징검다리 (user 2026-11-07, 짚 시안): the path before today's review and 캐비's one hop after it. */
.sp { zoom: .9; position: relative; max-width: 1040px; display: flex; flex-direction: column; gap: 0; padding: 25px 28px 32px; overflow: hidden; isolation: isolate; border: 1px solid #d7e5f9; border-radius: 28px; background: linear-gradient(180deg, #fbfcff 55%, #f2f7fe); box-shadow: 0 3px 14px rgba(80, 130, 220, .1); color: #1c3768; }
.sp > * { position: relative; z-index: 1; }
.sp > .sp-cloud { position: absolute; z-index: 0; bottom: -14px; width: 290px; height: auto; color: #dbe9fb; }
.sp-cloud--l { left: -24px; }
.sp-cloud--r { right: -24px; transform: scaleX(-1); }
.sp__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 20px 4px 14px; border-radius: 999px; background: #dfe9f9; color: #1c3768; font-size: 20px; font-weight: 700; }
.sp__chip .icon { width: 24px; height: 24px; }
.sp__head { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-left: 9px; }
.sp__head h2 { margin: 14px 0 0 14px; color: #1c3768; font-size: 30px; line-height: 1.25; letter-spacing: -.5px; }
.sp__head h2:not(.sr-only) + p { margin-top: 8px; }
.sp:not(:has(.sp-go)) { padding-bottom: 72px; }
.sp:not(.sp--none):has(.sp__head h2:not(.sr-only)) .sp-stage { margin-top: 46px; }
.sp--none .sp-stage { margin-top: 4px; }
.sp__head p { margin: 26px 0 0 14px; color: #1c3768; font-size: 23px; font-weight: 700; letter-spacing: -.2px; }
.sp-stage { position: relative; height: 215px; margin-top: 28px; isolation: isolate; }
.sp > .sp-fly { position: absolute; z-index: 1; top: 12px; right: 136px; width: 420px; height: 170px; pointer-events: none; animation: sp-float 3.6s ease-in-out infinite; }
.sp-fly__trail { position: absolute; left: 77px; top: 33px; width: 250px; height: auto; overflow: visible; }
.sp-fly img { position: absolute; right: 0; top: 0; width: 150px; max-width: none; height: auto; }
.sp-route { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; }
.sp-route path { fill: none; stroke: #a6cbf6; stroke-width: 4.500; stroke-linecap: round; stroke-dasharray: 9 8; vector-effect: non-scaling-stroke; }
.sp-stone { position: absolute; left: var(--x); top: var(--y); z-index: 3; width: 98px; height: 58px; margin: -29px 0 0 -49px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #e7edf8, #dfe7f6); box-shadow: 0 8px 0 #93b4e6, 0 11px 0 4px rgba(205, 222, 247, .75), 0 18px 16px 6px rgba(120, 165, 235, .14); color: #3a5c9f; font: inherit; font-size: 28px; font-weight: 800; }
.sp-stone.is-done { background: linear-gradient(180deg, #e7edf8, #dfe7f6); box-shadow: 0 8px 0 #93b4e6, 0 11px 0 4px rgba(205, 222, 247, .75), 0 18px 16px 6px rgba(120, 165, 235, .14); color: #3a5c9f; }
.sp-stone.is-today { width: 96px; height: 58px; margin: -29px 0 0 -48px; background: radial-gradient(ellipse 72% 66% at 48% 18%, #5aa6fd, #2079f7 68%, #1a72f2); box-shadow: 0 7px 0 #105ed6, 0 11px 0 11px #dce7f8, 0 12px 0 12px #b8cff0, 0 22px 20px 12px rgba(36, 110, 240, .14); color: #fff; font-size: 27px; }
button.sp-stone { cursor: pointer; transition: transform .14s; }
button.sp-stone:hover { transform: translateY(-2px); }
button.sp-stone:active { transform: scale(.96); }
button.sp-stone:focus-visible { outline: 3px solid var(--ink); outline-offset: 12px; }
.sp-stone--coin, .sp-stone--coin.is-done { width: 118px; height: 56px; margin: -28px 0 0 -59px; background: linear-gradient(180deg, #fdeccb, #fbdfb0); box-shadow: 0 8px 0 #f2c588, 0 18px 16px 6px rgba(240, 180, 90, .14); }
.sp-stone--chest, .sp-stone--chest.is-done { width: 122px; height: 58px; margin: -29px 0 0 -61px; background: linear-gradient(180deg, #e7edf8, #dfe7f6); box-shadow: 0 8px 0 #93b4e6, 0 18px 16px 6px rgba(120, 165, 235, .14); }
.sp-stone--coin.is-today { width: 118px; height: 56px; margin: -28px 0 0 -59px; background: linear-gradient(180deg, #fdeccb, #fbdfb0); box-shadow: 0 8px 0 #f2c588, 0 18px 16px 6px rgba(240, 180, 90, .14); }
.sp-grass { color: #93c951; position: absolute; left: var(--x); top: var(--y); z-index: 1; width: 26px; height: 24px; margin: var(--gy) 0 0 var(--gx); }
.sp-star { width: 34px; height: 34px; color: #a6b6cf; }
.is-done .sp-star, .is-today .sp-star { color: #ffd451; }
.sp-coin { display: grid; place-items: center; width: 58px; height: 58px; border: 3px solid #f5a900; border-radius: 50%; background: linear-gradient(145deg, #ffd451, #ffb90f); box-shadow: 2px 3px 0 #d89300, inset 1px 1px 0 #ffed9d; color: #fff; font-size: 32px; font-style: normal; font-weight: 900; text-shadow: 0 1px 1px #cb8c00; transform: translateY(-20px); }
.sp-chest { position: absolute; left: 50%; bottom: -2px; width: 148px; height: 148px; max-width: none; object-fit: contain; transform: translateX(-50%); pointer-events: none; }
.sp-stone.has-kaebi .sp-chest { display: none; }
.sp-flag { position: absolute; left: 50%; bottom: 20px; width: 92px; height: 92px; max-width: none; object-fit: contain; transform: translateX(-50%); pointer-events: none; }
.sp-done { position: absolute; right: 2px; bottom: -6px; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #1f79fe; color: #fff; }
.sp-done .icon { width: 14px; height: 14px; stroke-width: 3.4; }
.sp-cap { position: absolute; top: calc(100% + 13px); left: 50%; transform: translateX(-50%); color: #27436f; font-size: 19px; font-weight: 800; white-space: nowrap; }
.sp-cap .coin-n { font-size: 19px; }
.is-today .sp-cap { top: calc(100% + 13px); }
.sp-today { position: absolute; left: var(--x); top: var(--y); z-index: 4; margin-top: -50px; padding: 5px 16px; border-radius: 16px; background: #1574fd; color: #fff; font-size: 18px; font-weight: 800; transform: translate(-50%, -100%); white-space: nowrap; pointer-events: none; }
.sp-glow { position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 196px; height: 110px; margin: -84px 0 0 -98px; background: radial-gradient(ellipse 50% 50% at 50% 70%, rgba(255, 214, 110, .42), rgba(255, 226, 150, .14) 62%, rgba(255, 226, 150, 0) 100%); pointer-events: none; transform-origin: 50% 80%; animation: sp-glow 3.6s ease-in-out infinite; }
.sp-fin { align-items: center; text-align: center; padding-bottom: 40px; }
.sp-fin__kaebi { width: 140px; max-width: none; height: auto; }
.sp-fin h2 { margin: 2px 0 0; color: #1c3768; font-size: 36px; letter-spacing: -.6px; }
.sp-fin__done { margin: 14px 0 0; color: #1c3768; font-size: 24px; font-weight: 700; }
.sp-fin__done b { color: #1a70f2; font-size: 34px; font-weight: 800; }
.sp-fin__next { margin: 8px 0 0; color: #2b4a84; font-size: 19px; font-weight: 600; }

.sp-coinpop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; }
.sp-coinpop__back { position: absolute; inset: 0; border: 0; background: rgba(28, 44, 80, .5); cursor: default; }
.sp-coinpop__card { position: relative; width: min(100%, 400px); padding: 30px 32px 34px; overflow: hidden; isolation: isolate; border-radius: 26px; background: linear-gradient(180deg, #fbfcff, #f0f5fd); box-shadow: 0 22px 54px rgba(20, 40, 90, .3); color: #1c3768; text-align: center; animation: sp-coinpop-in .28s ease-out both; }
.sp-coinpop__card > * { position: relative; z-index: 1; }
.sp-coinpop__card > .sp-cloud { position: absolute; z-index: 0; bottom: -10px; width: 130px; height: auto; color: #dbe9fb; }
.sp-coinpop__card > .sp-cloud--l { left: -30px; }
.sp-coinpop__card > .sp-cloud--r { right: -30px; }
.sp-coinpop__x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: #1c3768; cursor: pointer; }
.sp-coinpop__x:hover { background: #e4edfb; }
.sp-coinpop__art { display: flex; align-items: center; justify-content: center; gap: 22px; height: 96px; background: radial-gradient(circle 62px at 50% 50%, rgba(255, 214, 110, .55), rgba(255, 226, 150, 0)); }
.sp-coinpop__coin { display: grid; place-items: center; width: 78px; height: 78px; border: 3px solid #f5a900; border-radius: 50%; background: linear-gradient(145deg, #ffdc62, #ffb90f); box-shadow: 3px 4px 0 #d89300, inset 2px 2px 0 #ffed9d; color: #fff; font-size: 42px; font-style: normal; font-weight: 900; text-shadow: 0 2px 1px #cb8c00; }
.sp-coinpop__bit { width: 18px; height: 8px; border-radius: 4px; }
.sp-coinpop__bit--a { background: #7fb2f7; transform: rotate(38deg); }
.sp-coinpop__bit--b { background: #ffc93f; transform: rotate(-32deg); }
.sp-coinpop h2 { margin: 12px 0 0; color: #1c3768; font-size: 30px; letter-spacing: -.5px; }
.sp-coinpop p { margin: 8px 0 0; color: #2b4a84; font-size: 17px; font-weight: 600; }
.sp-coinpop .sp-go { min-height: 54px; margin-top: 22px; font-size: 20px; }
@keyframes sp-coinpop-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.sp-fin__acts { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.sp-fin__acts .sp-go { width: auto; min-width: 130px; min-height: 52px; padding: 0 24px; border-radius: 18px; font-size: 19px; }
.sp-today--high { margin-top: -72px; }
.sp-today::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: #1574fd; border-bottom-width: 0; }
.sp-ring { position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 156px; height: 104px; margin: -48px 0 0 -78px; border: 3px solid var(--primary); border-radius: 50%; opacity: 0; pointer-events: none; }
.sp-ring--wait { animation: sp-ring 2.400s ease-out infinite; }
.sp-go { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 62px; border: 0; border-radius: 22px; background: linear-gradient(180deg, #2c84f8, #156eef); box-shadow: 0 4px 0 #0d55c9; color: #fff; font: inherit; font-size: 26px; font-weight: 800; cursor: pointer; transition: transform .14s, box-shadow .14s; }
.sp--none .sp__head h2 { margin: 12px 0 0 8px; font-size: 38px; letter-spacing: -.7px; }
.sp--none .sp__head h2 + p { margin: 8px 0 0 8px; font-size: 21px; font-weight: 500; }
.sp-title-burst { width: 36px; height: 36px; margin: 0 0 12px 8px; vertical-align: middle; }
.sp--none { padding-bottom: 32px; }
.sp--none .sp-go .icon { width: 30px; height: 30px; }
.sp-go--main { align-self: center; width: min(100%, 546px); margin-top: 6px; }
.sp-go__play { width: 30px; height: 30px; }
.sp-go:hover { color: #fff; filter: brightness(.96); }
.sp-go:active { transform: translateY(3px); box-shadow: 0 1px 0 #0d55c9; }
.sp-go:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sp-go--soft, .sp-go--soft:hover { background: var(--surface); box-shadow: 0 4px 0 var(--line-2), inset 0 0 0 1px var(--line-2); color: var(--ink); }
.sp-go--soft:hover { color: var(--ink); background: var(--surface-2); filter: none; }
.sp-end { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 14px; text-align: center; }
.sp-end h2 { margin: 0; font-size: 34px; letter-spacing: -.8px; }
.sp-end p { margin: 0; color: var(--muted); font-size: 17px; }
.sp-reward { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 8px 22px; border: 1px solid #ffe19a; border-radius: 999px; background: #fff0bf; box-shadow: 0 3px 0 #f6dfa1; color: #6d4500; font-size: 20px; font-weight: 800; }
.sp-reward .coin-n { font-size: 20px; }
.sp-tally { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; color: var(--ink-2); font-size: 15px; }
.sp-tally b { font-weight: 800; }
.sp-end__acts { display: flex; gap: 10px; width: min(100%, 520px); margin-top: 6px; }
.sp-end__acts > * { flex: 1; }
@keyframes sp-glow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.sp-stone.is-pressed { animation: sp-press .17s ease-out both; }
.sp-go.is-pressed { transform: translateY(3px); box-shadow: 0 1px 0 #0d55c9; }
@keyframes sp-press { 40% { transform: translateY(5px) scale(.96); } 100% { transform: translateY(3px) scale(.98); } }
@keyframes sp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes sp-ring { 0% { opacity: 0; transform: scale(.78); } 22% { opacity: .4; } 80%, 100% { opacity: 0; transform: scale(1.08); } }
@media (max-width: 1279px) {
  .sp { padding: 22px 20px 28px; }
  .sp-stone { width: 80px; height: 52px; margin: -26px 0 0 -40px; font-size: 19px; }
  .sp-stone.is-today { width: 80px; height: 50px; margin: -25px 0 0 -40px; font-size: 23px; }
  .sp > .sp-fly { right: 36px; width: 240px; height: 130px; top: 2px; }
  .sp__head p { font-size: 19px; }
  .sp-go { font-size: 22px; }
  .sp-cap, .sp-cap .coin-n { font-size: 15px; }
  .sp-fly__trail { display: none; }
  .sp-fly img { width: 116px; }
  .sp-stone--chest, .sp-stone--chest.is-done { width: 96px; height: 50px; margin: -25px 0 0 -48px; }
  .sp-stone--coin, .sp-stone--coin.is-done, .sp-stone--coin.is-today { width: 94px; height: 50px; margin: -25px 0 0 -47px; }
  .sp__chip { font-size: 18px; }
  .sp-coin { width: 46px; height: 46px; font-size: 26px; transform: translateY(-14px); }
  .sp-chest { width: 122px; height: 122px; bottom: 0; }
  .sp-cap { font-size: 13px; }
  .sp-cap .coin-n { font-size: 13px; }
  .sp > .sp-cloud { width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-coinpop__card, .sp > .sp-fly, .sp-ring, .sp-reward, .sp-glow, button.sp-stone, .sp-go { animation: none !important; transition: none !important; }
  .sp-ring { opacity: 0 !important; }
}
/* 사람 표시 in the public header (user 2026-11-07): opens the same account menu as inside. */
.site-actions details.hd-me > summary.hd-me__person { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); }
.site-actions details.hd-me > summary.hd-me__person:hover, .site-actions details.hd-me[open] > summary.hd-me__person { background: var(--surface-2); }
.site-actions details.hd-me > summary.hd-me__person .icon { width: 22px; height: 22px; }
.hd-menu__row--btn { text-align: left; cursor: pointer; }

/* 2026-11-08: desktop student app guide; phone guide remains independent. */
@media (min-width: 768px) {
  .study-app-guide { max-width: 720px; margin: 24px auto; padding: 40px 32px; gap: 20px; }
  .study-app-guide .h-sec { font-size: clamp(24px, 3vw, 32px); }
  .study-app-guide > p { max-width: 540px; line-height: 1.8; }
  .study-app-guide .phone-study__app { width: auto; min-width: 180px; }
  .study-app-guide .phone-study__links { width: auto; flex-wrap: wrap; justify-content: center; }
  .study-app-guide .phone-study__links .btn { flex: 0 1 auto; }
}
@media (max-width: 767px) {
  .phone-app__pc .h-sec { align-items: flex-start; }
  .phone-app__pc .h-sec .icon { flex-shrink: 0; margin-top: 3px; }
}

/* 선생님 홈 (2026-11-08 user, 짚 B안 코칭 보드): 숫자 셋 · 챙겨 볼/칭찬할 학생 · 이번 주 흐름 */
.cs-top__r { position: relative; }
.cs-bell { position: relative; display: inline-flex; }
.cs-bell__btn { position: relative; }
.cs-bell__btn .icon { width: 20px; height: 20px; }
.cs-bell__n { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--danger, #e5484d); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; line-height: 16px; text-align: center; }
.cs-bell__pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: 340px; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--float); }
.cs-bell__pop li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.cs-bell__pop p { margin: 0; }
.cs .card.cb-nums, .cs .card.cb-card { margin: 0; padding: 22px 26px; }
.cb-nums { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.cb-num { display: flex; align-items: flex-start; gap: 16px; min-width: 0; padding: 4px 28px; }
.cb-num + .cb-num { border-left: 1px solid var(--line); }
.cb-num:first-child { padding-left: 0; }
.cb-ico { flex: none; width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); }
.cb-ico .icon { width: 26px; height: 26px; }
.cb-num__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.cb-num .k { font-size: 15px; font-weight: 700; color: var(--ink); }
.cb-num .v { font-size: 34px; font-weight: 800; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cb-num .v small { font-size: 18px; font-weight: 700; color: var(--ink); }
.cb-num--main .v { color: var(--primary); }
.cb-num--main .v small { color: var(--ink); }
.cb-num .v small { margin-left: 5px; } /* 2026-11-08 user: 15명, 109문제 had the unit too close to the number */
.cb-num--main .v small { margin-left: 0; } /* '/ 22명' has its own space */
.cb-meter { display: block; height: 10px; margin-top: 6px; max-width: 280px; border-radius: 999px; background: var(--primary-soft); overflow: hidden; }
.cb-meter i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.cb-goal { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.cb-goal b { padding: 3px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); font-size: 16px; font-weight: 800; }
.cb-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.cb-good { color: var(--good) !important; font-weight: 800; }
.cb-bad { color: var(--caution) !important; font-weight: 800; }
.cb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cb-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cb-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cb-num .v, .cb-goal { white-space: nowrap; } /* 109문제 and 이번 주 stay on one line */
.cb-h h2 { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; }
.cb-h .cb-sub { padding-left: 36px; }
.cb-hi { display: inline-flex; color: var(--primary); }
.cb-hi .icon { width: 26px; height: 26px; }
.cb-mark { width: 26px; height: 26px; border-radius: 50%; background: var(--danger, #e5484d); color: #fff; font-size: 16px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.cb-star { display: inline-flex; color: var(--primary); }
.cb-star .icon { width: 26px; height: 26px; fill: currentColor; }
.cb-pill { display: inline-flex; align-items: center; gap: 2px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.cb-pill .icon { width: 14px; height: 14px; }
.cb-pill--care { background: color-mix(in srgb, var(--danger, #e5484d) 10%, transparent); color: var(--danger, #e5484d); }
.cb-pill--care:hover { background: color-mix(in srgb, var(--danger, #e5484d) 16%, transparent); }
.cb-pill--good { background: var(--primary-soft); color: var(--primary-ink); }
.cb-rows { display: flex; flex-direction: column; }
.cb-rows li + li { border-top: 1px solid var(--line); }
.cb-rows li a { display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 6px 0; color: inherit; }
.cb-rows li a > strong { font-size: 17px; font-weight: 800; color: var(--ink); }
.cb-rows li a > .icon { margin-left: auto; flex: none; width: 18px; height: 18px; color: var(--ink-2); }
.cb-rows li a:hover strong { color: var(--primary-ink); }
.cb-no { flex: none; min-width: 56px; padding: 5px 10px; border-radius: 10px; text-align: center; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.cb-no--care { background: color-mix(in srgb, var(--danger, #e5484d) 9%, transparent); color: var(--danger, #e5484d); }
.cb-no--good { background: var(--primary-soft); color: var(--primary-ink); }
.cb-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #f5a524; }
.cb-why { font-size: 15px; color: var(--ink-2); min-width: 0; }
.cb-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; align-items: end; margin-top: auto; }
.cb-bar { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cb-bar b { font-size: 14px; font-weight: 700; color: var(--ink-2); min-height: 18px; }
.cb-bar i { display: block; width: 100%; max-width: 64px; border-radius: 8px 8px 3px 3px; background: color-mix(in srgb, var(--primary) 18%, var(--surface)); }
.cb-bar.is-top i { background: var(--primary); }
.cb-bar.is-top b { color: var(--primary-ink); font-weight: 800; }
.cb-bar span { font-size: 14px; color: var(--ink-2); }
.cb-bar.is-future span { color: var(--muted); }
.cb-rate__body { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 22px; flex: 1; }
.cb-rate__now { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; } /* 2026-11-08 user: 70% over the middle of its line */
.cb-rate__now .v { font-size: 48px; font-weight: 800; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.cb-rate__now .v small { font-size: 26px; font-weight: 800; }
.cb-rate__now .cb-sub { font-size: 14px; color: var(--ink-2); }
.cb-rate__chart { width: 100%; height: auto; max-height: 160px; overflow: visible; }
.cb-rate__area { fill: var(--primary-soft); opacity: .7; }
.cb-rate__line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.cb-rate__dot { fill: var(--surface); stroke: var(--primary); stroke-width: 2.5; }
.cb-rate__dot.is-now { fill: var(--primary); }
.cb-rate__val { font-size: 14px; font-weight: 700; fill: var(--ink-2); }
.cb-rate__val.is-now { font-size: 17px; font-weight: 800; fill: var(--primary-ink); }
.cb-rate__wk { font-size: 13px; fill: var(--ink-2); }
@media (max-width: 1100px) { .cb-ico { width: 44px; height: 44px; } .cb-num { padding: 4px 16px; } .cb-num .v { font-size: 28px; } }
@media (max-width: 900px) { .cb-grid, .cb-nums { grid-template-columns: minmax(0, 1fr); } .cb-num + .cb-num { border-left: 0; border-top: 1px solid var(--line); } .cb-num { padding: 12px 0; } }
/* 학생 관리 (2026-11-08 user): 홈과 같은 카드 — 상태별 칸(누르면 거르기), 한 줄 목록, 번호 배지, 이름 붙여 넣으면 바로 보이는 계정 */
.ts-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ts-tile { appearance: none; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; border-radius: 14px; padding: 10px 20px; align-items: center; }
.cs .cb-nums.ts-tiles .cb-num + .cb-num { border-left: 0; }
.ts-tile:hover { background: var(--surface-2); }
.ts-tile.is-on { background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary); }
.ts-tile .cb-ico { width: 48px; height: 48px; }
.ts-tile .v { font-size: 28px; }
.cb-ico--good { background: var(--good-soft); color: var(--good); }
.cb-ico--warn { background: color-mix(in srgb, #f5a524 16%, transparent); color: #b26a00; }
.cb-ico--mute { background: var(--surface-2); color: var(--muted); }
.cb-no--mute { background: var(--surface-2); color: var(--muted); }
.ts-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ts-tools { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ts-tools .ts-search { width: 220px; }
.ts-tools .btn .icon { width: 16px; height: 16px; }
.ts-rows li { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 4px; cursor: pointer; border-radius: 10px; }
.ts-rows li:hover { background: var(--surface-2); }
.ts-rows li.is-picked { background: var(--primary-soft); }
.ts-rows li input[type="checkbox"] { width: 18px; height: 18px; flex: none; }
.ts-rows li > .icon { margin-left: 4px; flex: none; width: 18px; height: 18px; color: var(--ink-2); }
.ts-name { min-width: 64px; font-size: 17px; font-weight: 800; color: var(--ink); }
.ts-name:hover { color: var(--primary-ink); }
.ts-rows li.is-new .ts-name { color: var(--muted); }
.ts-why { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.ts-why--away { color: #b26a00; font-weight: 600; }
.ts-why--new { color: var(--muted); }
.ts-login { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ts-state { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ts-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ts-state--on { background: var(--good-soft); color: var(--good); }
.ts-state--away { background: color-mix(in srgb, #f5a524 16%, transparent); color: #b26a00; }
.ts-state--new { background: var(--surface-2); color: var(--muted); }
.ts-names { min-height: 200px; resize: vertical; font-size: 16px; line-height: 1.6; }
.ts-pw { display: flex; flex-direction: column; gap: 8px; }
.ts-pw .field-label { font-weight: 700; font-size: 15px; }
.ts-live li { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.ts-live li > strong { font-size: 16px; font-weight: 800; }
.ts-live li.is-over { opacity: .55; }
.ts-live__empty { padding: 40px 0; text-align: center; }
.ts-live--sample { opacity: .38; } /* 2026-11-14 user (UI-13): faint sample rows in the empty card */
.ts-make__go { margin-top: auto; padding-top: 6px; align-items: center; }
.ts-one { margin-left: auto; }
.tm-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin: 0; font-size: 14px; color: var(--ink-2); }
.tm-line b { color: var(--ink); }
.cs .card.tm-nums { margin: 0; padding: 22px 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tm-num { display: flex; flex-direction: column; gap: 4px; padding: 2px 22px; min-width: 0; }
.tm-num:first-child { padding-left: 0; }
.tm-num + .tm-num { border-left: 1px solid var(--line); }
.tm-num .k { font-size: 15px; font-weight: 700; color: var(--ink); }
.tm-num .v { font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.tm-num .v small { font-size: 18px; font-weight: 700; margin-left: 2px; }
.tm-num:first-child .v { color: var(--primary); }
.cb-bars--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ts-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ts-login { display: none; } }
@media (max-width: 900px) { .cs .card.tm-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; } .tm-num:nth-child(3) { border-left: 0; padding-left: 0; } }
/* 2026-11-08 user: one plain number, no coloured badges; shorter rows */
.ts-no { flex: none; width: 28px; text-align: right; font-size: 15px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ts-rows li { min-height: 40px; padding: 2px 4px; gap: 16px; }
.ts-rows li + li { border-top: 1px solid var(--line); }
.ts-name { font-size: 16px; min-width: 56px; }
.ts-why { font-size: 14px; }
.cb-card .filters .chip b { margin-left: 4px; font-weight: 800; }
/* 학생 상세 학습 달력 (2026-11-08 user): 작은 한 달 달력, 복습한 날은 초록 */
.tm-cal__head { display: inline-flex; align-items: center; gap: 4px; }
.tm-cal__head b { min-width: 72px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }
.tm-cal__nav .icon { width: 18px; height: 18px; }
.tm-cal__nav[disabled] { opacity: .3; }
.tm-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; max-width: 300px; margin: 0 auto; width: 100%; }
.tm-cal__grid > b { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding-bottom: 2px; }
.tm-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tm-day.is-done { background: #2fbf71; color: #fff; }
.tm-day.is-today { box-shadow: inset 0 0 0 2px var(--primary); }
.tm-day.is-future { color: var(--line-2); }
/* 학생 관리 목록·학생 개인 (2026-11-08 user's mockups) */
.cs-head--sub { display: flex; align-items: center; flex-wrap: nowrap; gap: 12px; }
.cs-head__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cs-head__t h1 { margin: 0; }
.cs-head--sub .cs-sub { margin: 0; font-size: 14px; color: var(--muted); }
.ts-head-btns { display: inline-flex; gap: 8px; }
.ts-head-btns .btn .icon { width: 16px; height: 16px; }
.ts-bar--mock { justify-content: flex-start; }
.ts-search-wrap { position: relative; display: inline-flex; align-items: center; }
.ts-search-wrap .icon { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.ts-search-wrap .ts-search { padding-left: 36px; width: 260px; max-width: none; }
.ts-select { width: auto; min-width: 150px; }
.ts-count { margin-left: auto; font-weight: 800; color: var(--primary-ink); }
.ts-th { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.ts-th span { font-size: 10px; color: var(--primary); }
.ts-table td, .ts-table th { padding-top: 10px; padding-bottom: 10px; }
.ts-foot .ts-bar__sel { display: inline-flex; align-items: center; gap: 8px; }
.ts-foot .btn .icon { width: 15px; height: 15px; }
.tm-acct { position: relative; display: inline-block; }
.tm-acct > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.tm-acct > summary::-webkit-details-marker { display: none; }
.tm-acct > summary .icon { width: 16px; height: 16px; }
.tm-acct__car { font-size: 11px; color: var(--muted); }
.tm-acct__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 180px; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--float); text-align: left; }
.tm-acct__menu > a, .tm-acct__menu > button { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--ink); text-decoration: none; text-align: left; }
.tm-acct__menu > a:hover, .tm-acct__menu > button:hover { background: var(--surface-2); }
.tm-acct__menu > .cb-sub { padding: 4px 10px 6px; }
.tm-acct__menu .icon { width: 15px; height: 15px; }
.tm-danger { color: var(--danger, #e5484d) !important; }
.tm-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tm-back .icon { width: 16px; height: 16px; }
.cs .card.tm-head { margin: 0; padding: 22px 26px; display: grid; grid-template-columns: auto auto auto minmax(0, 1fr); align-items: center; gap: 0; } /* 2026-11-08 user: even gaps from the name on, the menu at the far right */
.tm-head > .tm-acct { justify-self: end; }
.tm-head__who { display: flex; align-items: center; gap: 16px; padding-right: clamp(16px, 5vw - 34px, 40px); }
.tm-ava { flex: none; width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); }
.tm-ava .icon { width: 30px; height: 30px; }
.tm-name { margin: 0; font-size: 26px; font-weight: 800; }
.tm-head__item { display: flex; flex-direction: column; gap: 6px; padding: 4px clamp(16px, 5vw - 34px, 40px); border-left: 1px solid var(--line); }
.tm-head__item .k { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.tm-head__item .k .icon { width: 16px; height: 16px; color: var(--primary); }
.tm-head__item .v { font-size: 20px; font-weight: 800; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tm-head__item .v small { font-size: 14px; font-weight: 600; color: var(--muted); }
.tm-pill { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tm-sums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px 8px; border-radius: 14px; background: var(--surface-2); }
.tm-sum { display: flex; align-items: center; gap: 14px; padding: 4px 22px; }
.tm-sum + .tm-sum { border-left: 1px solid var(--line); }
.tm-sum__ico { display: inline-flex; color: var(--primary); }
.tm-sum__ico .icon { width: 26px; height: 26px; }
.tm-sum__t { display: flex; flex-direction: column; gap: 2px; }
.tm-sum .k { font-size: 14px; color: var(--ink-2); }
.tm-sum .v { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1.15; }
.tm-sum .v small { font-size: 16px; font-weight: 700; margin-left: 2px; }
.tm-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.tm-rec table { font-size: 15px; }
.tm-rec .tm-rate { font-size: 15px; font-weight: 800; color: var(--primary-ink); }
.tm-rec__go { text-align: right; width: 1%; white-space: nowrap; }
@media (max-width: 1100px) { .cs .card.tm-head { grid-template-columns: 1fr 1fr; row-gap: 14px; } .tm-head__item:nth-of-type(2) { border-left: 0; padding-left: 0; } .tm-grid { grid-template-columns: minmax(0, 1fr); } }
.ts-bar--mock { flex-wrap: nowrap; }
.cs .ts-bar--mock .ts-select { width: 190px; flex: none; }
.cs .tm-rec th, .cs .tm-rec td { min-width: 0; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
.cs .tm-rec th.num, .cs .tm-rec td.num { text-align: center; }
.cs .tm-rec { overflow-x: visible; }
.tm-sums--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tm-sums--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tm-sums--4 .tm-sum { padding: 4px 16px; }
/* 2026-11-08 user's mockup for a class student's page: a breadcrumb, four separate total cards with the icon in a pale
   circle, the icon and its words centred in each card so short values (4문제, 67%) sit in the middle like the rest,
   and the calendar with the month in the middle and a key underneath. */
.tm-crumb { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.tm-crumb a { color: var(--ink-2); font-weight: 600; display: inline-flex; }
.tm-crumb .icon { width: 16px; height: 16px; color: var(--muted); }
.tm-crumb a:first-child .icon { width: 18px; height: 18px; color: var(--ink); }
.tm-crumb b { color: var(--ink); font-weight: 700; }
.tm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cs .card.tm-sum { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 22px 16px; margin: 0; border-left: 0; }
.tm-sum__ico { width: 56px; height: 56px; flex: none; justify-content: center; align-items: center; border-radius: 50%; background: var(--primary-soft, #e8f0fe); }
.tm-sum__ico .icon { width: 28px; height: 28px; }
.tm-sum__t { min-width: 0; }
.tm-sum .k { white-space: nowrap; }
.tm-cal__head { display: flex; justify-content: center; gap: 28px; margin: -4px 0 8px; }
.tm-cal__head b { font-size: 17px; font-weight: 800; min-width: 110px; }
.tm-cal__grid { max-width: 340px; row-gap: 6px; }
.tm-day { border-radius: 999px; aspect-ratio: auto; height: 30px; width: 34px; margin: 0 auto; }
.tm-day.is-done { background: #dcf3e5; color: #1f7a48; }
.tm-cal__key { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }
.tm-key { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.tm-key--done { background: #2fbf71; }
.tm-key--today { box-shadow: inset 0 0 0 2px var(--primary); margin-left: 14px; }
@media (max-width: 1100px) { .tm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tm-stats { grid-template-columns: minmax(0, 1fr); } .cs .card.tm-sum { justify-content: flex-start; } }
/* 2026-11-08 balance pass on the student's page: the sub line under the name and the small notes readable, the head and
   total numbers closer in size, units lighter than their numbers, buttons no heavier than the text, a quiet table head,
   one border around the table, a calmer month title, readable days, and the two lower cards the same height. */
.tm-head__who .cb-sub { font-size: 15px; color: var(--ink-2); }
.cs .tm-head__item .v { font-size: 24px; }
.tm-head__item .v small { font-size: 15px; font-weight: 500; }
.tm-pill { font-size: 14px; }
.tm-sum .v { font-size: 26px; }
.tm-sum .v small { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-left: 3px; }
.tm-acct summary { font-size: 15px; font-weight: 600; }
.tm-acct__car { font-size: 13px; color: var(--ink-2); }
.cs .tm-rec { border: 0; border-radius: 0; }
.cs .tm-rec th { font-size: 13px; font-weight: 600; color: var(--muted); }
.cs .tm-rec td.muted { color: var(--ink-2); opacity: .6; }
.tm-rec__go .btn, .tm-grid .cb-h .btn--sm { font-size: 14px; font-weight: 600; }
.tm-cal__head b { font-size: 16px; font-weight: 700; }
.tm-day { font-size: 14px; }
.tm-day.is-future { color: var(--muted); opacity: .55; }
.tm-grid { align-items: stretch; }
.tm-cal { display: flex; flex-direction: column; }
.tm-cal__key { margin-top: auto; padding-top: 12px; }
/* 2026-11-08 user: '틀린 문제 확인하기' — that day's wrong problems one at a time with ‹ 1 / 3 ›, closed with ✕ only;
   the problem fits its text, the student's answer in plain ink, the unit and 캐치 조각 on one line above the facts. */
.tm-allright { display: block; font-size: 14px; color: var(--muted); text-align: center; }
.modal__actions:empty { display: none; }
.tw-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.tw-sum { margin: 0; font-size: 15px; color: var(--ink-2); }
.tw-sum b { color: var(--ink); }
.tw-pager { display: inline-flex; align-items: center; gap: 4px; }
.tw-pager b { min-width: 52px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }
.tw-pager .icon-btn[disabled] { opacity: .3; }
.tw-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.tw-q { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.tw-q p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink); }
.tw-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tw-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); }
.tw-facts { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tw-facts > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; font-size: 14px; }
.tw-facts dt { color: var(--muted); }
.tw-facts dd { margin: 0; color: var(--ink); font-weight: 600; }
.tw-right { font-weight: 800 !important; }
.tw-note { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.tw-note .icon { width: 14px; height: 14px; }
@media (max-width: 640px) { .tw-item { grid-template-columns: minmax(0, 1fr); } }
.tw-memo { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.tw-memo__k { font-size: 14px; font-weight: 700; color: var(--ink); }
.tw-memo__in { min-height: 64px; resize: vertical; font-size: 14px; line-height: 1.5; }
.tw-memo__go { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.tw-memo__ok { font-size: 13px; color: var(--primary-ink); font-weight: 600; }
.tw-memo__hint { margin: 0; font-size: 12px; color: var(--muted); }
.tw-memo { grid-column: 1 / -1; }
.tw-memo__hint { margin-right: auto; }
/* A drawn problem (선잇기) in the wrong-problem window: 문제 / 학생 풀이 toggles the student's lines over the problem. */
.tw-qtabs { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 12px; border-radius: 10px; background: var(--surface-2); }
.tw-qtabs button { appearance: none; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); padding: 5px 12px; border-radius: 8px; cursor: pointer; }
.tw-qtabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.tw-fig { display: block; width: 100%; max-width: 300px; margin: 10px auto 0; color: var(--ink); }
.tw-fig text { font-size: 16px; fill: currentColor; font-variant-numeric: tabular-nums; }
.tw-fig__dot { fill: currentColor; }
.tw-ink { display: none; fill: none; stroke: #3b6fd8; stroke-width: 2.4; stroke-linecap: round; }
.tw-item.is-ink .tw-ink { display: inline; }
.tw-see { font-weight: 700; margin-left: 4px; }
.tw-self { color: var(--muted); font-weight: 500; }
.tw-key { display: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.tw-item.is-key .tw-key { display: inline; }
.tw-see { padding: 0; min-height: 0; line-height: inherit; vertical-align: baseline; font-size: inherit; }
.tw-right .tw-see { margin-left: 0; }
.tw-see { color: var(--primary-ink); font-weight: 700; text-decoration: none; margin-left: 0; }
.tw-see:hover { text-decoration: underline; }
/* Real sample problems in the wrong-problem window: the saved paper scaled into the left pane, blanks with their labels. */
.tw-q { min-width: 0; }
.tw-paper .paper-wrap { margin: 0; }
.tw-paper .paper { font-size: 15px; padding: 14px 16px; box-shadow: none; border: 0; background: transparent; }
.tw-paper .paper p { margin: 0 0 6px; }
.tw-paper .paper__fig { max-width: 150px; }
.tw-orig { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.tw-blank { color: var(--muted); font-weight: 500; }
.tw-sep { color: var(--line-2); }
.tw-facts dd { overflow-wrap: anywhere; }
.tw-paper .paper--fig { padding-bottom: 14px; } .tw-paper .paper__fig { position: static; display: block; width: 130px; margin: 10px 0 0; }
/* The server's problem picture in the wrong-problem window, the student's covered spots and drawn answer laid over it. */
.tw-pic { position: relative; line-height: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.tw-pic img { display: block; width: 100%; height: auto; }
.tw-paper .q__line--choices { column-gap: 14px; justify-content: flex-start; } /* the narrow panel keeps a row of choices together */
.tw-paper .digital { padding: 2px 0; border: 0; border-radius: 0; background: transparent; font-size: 16px; line-height: 1.7; } /* 2026-11-08 user: a digital problem shows as the student's digital page, not the photo look */
.tw-mask { position: absolute; background: var(--surface-2); border-radius: 4px; }
.tw-draw { position: absolute; inset: 0; width: 100%; height: 100%; }
.tw-draw polyline { fill: none; stroke: #3b6fd8; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tw-draw.tw-ink { display: none; }
.tw-item.is-ink .tw-draw.tw-ink { display: block; }

/* PC console: align only the numeric runs and share the existing profile-menu styling. */
@media (min-width: 768px) {
  .ts-table .ts-number { display: inline-block; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
  .cs-top__r details.cs-account > summary.hd-me__person { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); }
  .cs-top__r details.cs-account > summary.hd-me__person:hover,
  .cs-top__r details.cs-account[open] > summary.hd-me__person { background: var(--surface-2); }
  .cs-account > summary.hd-me__person .icon { width: 22px; height: 22px; }
  .cs-account .cs-account__pop { width: 240px; max-width: calc(100vw - 48px); gap: 0; color: var(--ink); }
  .cs-account__name { padding: 0 10px; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
}

/* PC console readability; keep the original chart and links through 767px. */
.cb-rate__chart--pc { display: none; }
@media (min-width: 768px) {
  .cs a.cs-name { display: inline-flex; align-items: center; gap: 5px; }
  .cs-name__next { display: inline; flex: none; font-size: 18px; line-height: 1; color: var(--ink-2); }
  .cs .cb-card .cb-sub { font-size: 14px; color: var(--ink-2); }
  .cb-bar span, .cb-bar.is-future span { font-size: 14px; color: var(--ink-2); }
  .cb-rate__body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cb-rate__chart--mobile { display: none; }
  .cb-rate__chart--pc { display: block; width: 100%; height: 150px; max-height: none; overflow: visible; }
  .cb-rate__chart--pc .cb-rate__wk,
  .cb-rate__chart--pc .cb-rate__val { font-size: 14px; fill: var(--ink-2); }
  .cb-rate__chart--pc .cb-rate__val.is-now { font-weight: 800; fill: var(--primary-ink); }
  .tm-cal__grid > b, .tm-day, .tm-cal__key { font-size: 14px; color: var(--ink-2); }
  .tm-day.is-future { color: var(--ink-2); opacity: 1; }
}
.tm-share-off { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
/* 2026-11-09 user review: the wrong-problem window in one type family (Pretendard, also for a photo-saved problem) and
   the facts closer to the problem's size, a 고르기 answer (③) large enough to read; 학생 추가's buttons alike with
   room between the password choices; 반 설정 with the boxes as wide as the inputs and the AI card's text centred. */
.tw-paper .paper, .tw-paper .paper * { font-family: inherit; }
.tw-facts > div { font-size: 15px; grid-template-columns: 92px minmax(0, 1fr); }
.tw-top { font-size: 15px; }
.tw-ans { font-size: 16px; }
.tw-ans--choice { font-size: 20px; line-height: 1; }
.ts-pw .seg { gap: 20px; }
.cs .id-mode { max-width: 480px; }
.cs .card > .setting-row:first-child { padding-top: 0; }
.cs .card > .setting-row:last-child { padding-bottom: 0; }
.ts-make__go { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ts-make__go > .btn--primary { grid-column: 1 / -1; }
.ts-make__go .ts-one { margin-left: 0; }
.tw-paper .paper { min-height: 0; }
.tw-paper .paper-wrap { padding: 0; background: none; } .tw-paper .paper { padding: 4px 0; }
.tw-q .tw-orig { font-size: 12px; color: var(--muted); }
/* 문장 안의 코인(예: '한 번에 7 ⓒ을 써요')은 숫자와 그림을 붙여 쓴다 (user 2026-11-09) */
p .coin-n { gap: 0; font-variant-numeric: normal; }
p .coin-n .coin { margin-left: .06em; }
/* 2026-11-09 review (학습 현황·홈): three centred cards like the student page; chart dates 14px; an empty week or period in one line */
.tm-stats.tm-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-plot__x .wk-lab > span { font-size: 14px; }
.cs-plot__x .wk-lab small { font-size: 13px; }
.cs-plot-empty, .cb-empty { display: flex; align-items: center; justify-content: center; min-height: 160px; margin: 0; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 15px; text-align: center; }
.sc-acts .tm-acct { display: inline-block; }
.cb-card .cb-empty { flex: 1; }
.cs-chart .cs-plot-empty { flex: 1; }
/* 2026-11-09 A안 홈: 오늘 복습한 학생 across the board, two columns of rows with the wrong-problem button at the end */
.cb-today { grid-column: 1 / -1; }
.cb-today__rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.cb-today__rows li { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.cb-today__rows li a { flex: 1; min-width: 0; }
.cb-today__rows li .btn { flex: none; }
.cb-bad { color: var(--danger, #d92d20); font-weight: 700; }
@media (max-width: 900px) { .cb-today__rows { grid-template-columns: minmax(0, 1fr); } }
/* 2026-11-10 홈 (패밀리 구성원 카드 · 클래스 성장 단계 · 꾸준함) */
.cg-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.cg-bar i { display: block; height: 100%; }
.cg-bar .is-first, .cg-key .is-first { background: #c7d2fe; }
.cg-bar .is-mid, .cg-key .is-mid { background: #60a5fa; }
.cg-bar .is-done, .cg-key .is-done { background: var(--primary); }
.cg-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.cg-key span { display: inline-flex; align-items: center; gap: 6px; }
.cg-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cg-key b { color: var(--ink); font-weight: 800; }
.cg-members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cg-member { gap: 16px; }
.cg-member__h { display: flex; align-items: center; gap: 12px; }
.cg-member__h h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; }
.cg-state { font-size: 14px; font-weight: 700; color: #1f7a48; background: #dcf3e5; padding: 4px 10px; border-radius: 999px; }
.cg-state.is-away { color: #b45309; background: #fef3c7; }
.cg-more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 700; }
.cg-more .icon { width: 15px; height: 15px; }
.cg-row { display: flex; align-items: center; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cg-row--stage { align-items: flex-start; }
.cg-k { flex: none; width: 82px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.cg-today { flex: 1; font-size: 15px; color: var(--ink); }
.cg-stage { flex: 1; min-width: 0; }
.cg-week { display: flex; gap: 8px; }
.cg-day { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); width: 30px; }
.cg-day i { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); }
.cg-day.is-on i { background: #2fbf71; border-color: #2fbf71; }
.cg-day.is-today { color: var(--primary-ink); font-weight: 700; }
.cg-day.is-today i { box-shadow: 0 0 0 2px var(--primary); }
.cg-day.is-future { opacity: .45; }
@media (max-width: 1100px) { .cg-members { grid-template-columns: minmax(0, 1fr); } }
/* 2026-11-10: 오늘 복습한 학생 sits beside 이번 주 꾸준함; three rows a card, 전체 보기 under them */
.cb-today { grid-column: auto; }
.cb-today__rows { grid-template-columns: minmax(0, 1fr); }
.cb-today__rows li:first-child { border-top: 0; }
.cb-all { align-self: flex-start; display: inline-flex; align-items: center; gap: 2px; margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--primary-ink); }
.cb-all .icon { width: 15px; height: 15px; }
.cb-all-list { max-height: 60vh; overflow: auto; }
.cb-all-list .cb-today__rows li:first-child { border-top: 0; }
/* 2026-11-10 user: 복습 TOP 3 (1·2·3 medals) and 오늘 복습한 학생 as name chips */
.cb-rank { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; border-radius: 50%; font-size: 14px; font-weight: 800; color: #fff; }
.cb-rank--1 { background: #f5b014; }
.cb-rank--2 { background: #9aa4b2; }
.cb-rank--3 { background: #c48a5a; }
.cb-top li a { gap: 12px; }
.cb-count { padding: 4px 12px; border-radius: 999px; background: var(--primary-soft, #e8f0fe); color: var(--primary-ink); font-size: 15px; font-weight: 800; }
.cb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.cb-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600; }
.cb-chip:hover { border-color: var(--primary); color: var(--primary-ink); }
.cb-h .cb-all { margin-top: 0; }
/* 2026-11-10 user: the home's numbers are 오늘 복습한 학생 (with 누가 했는지 보기) and 정답으로 만든 오답 */
.cb-nums:has(.cb-num--today) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cb-who { margin-top: 4px; }
/* 2026-11-10 user's mockup: 클래스 홈 — quiet header, one line of numbers, one table with tabs */
.ch-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ch-crumb { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.ch-crumb span { margin: 0 6px; color: #c4c9d2; }
.ch-title { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.ch-date { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--ink-2); }
.ch-date .icon { width: 16px; height: 16px; }
.ch-sum { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.ch-sum__item { display: flex; align-items: center; gap: 18px; min-width: 0; padding: 18px 0; }
.ch-sum__item + .ch-sum__item { padding-left: 28px; border-left: 1px solid var(--line); }
.ch-sum__item--today { padding-right: 28px; }
.ch-sum__k { flex: none; font-size: 15px; font-weight: 700; color: var(--ink); }
.ch-sum__v { flex: none; font-size: 16px; color: var(--ink-2); }
.ch-sum__v b { font-size: 30px; font-weight: 800; color: var(--ink); margin-right: 2px; }
.ch-tip { font-size: 13px; color: var(--muted); cursor: help; }
.ch-meter { display: flex; flex-wrap: wrap; gap: 3px; flex: 1; min-width: 0; }
.ch-meter i { width: 7px; height: 7px; border-radius: 50%; background: #e3e7ee; }
.ch-meter i.is-on { background: var(--primary); }
.ch-more { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.ch-more .icon { width: 15px; height: 15px; }
.ch-more:hover { color: var(--primary-ink); }
.ch-board { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.ch-board__head { display: flex; align-items: center; justify-content: space-between; }
.ch-board__head h2 { margin: 0; font-size: 20px; }
.ch-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-tab { min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.ch-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ch-table th { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ch-table td { font-size: 15px; }
.ch-table th.ch-day, .ch-table td.ch-day { text-align: center; }
.ch-table th.ch-day.is-today { color: var(--primary-ink); }
.ch-table td.ch-day.is-today { background: color-mix(in srgb, var(--primary) 5%, transparent); }
.ch-no { color: var(--muted); }
.ch-name { font-weight: 800; color: var(--ink); }
.ch-name:hover { color: var(--primary-ink); }
.ch-st { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.ch-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9aa4b2; }
.ch-st--away { color: #b45309; }
.ch-st--away::before { background: #f59e0b; }
.ch-st--on { color: #1f7a48; }
.ch-st--on::before { background: #2fbf71; }
.ch-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #dfe3ea; }
.ch-dot.is-on { background: var(--primary); }
.ch-dot.is-future { background: transparent; box-shadow: inset 0 0 0 1px #dfe3ea; }
.ch-go { text-align: right; width: 40px; }
.ch-go a { color: var(--muted); }
.ch-go .icon { width: 16px; height: 16px; }
.ch-empty { margin: 0; padding: 28px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); }
/* 2026-11-10 user: balanced columns — fixed widths, the five days equal and narrow, the status room to read */
.ch-table { table-layout: fixed; width: 100%; }
.ch-c-no { width: 72px; }
.ch-c-name { width: 15%; }
.ch-c-st { width: 22%; }
.ch-c-day { width: 64px; }
.ch-c-n { width: 88px; }
.ch-c-go { width: 44px; }
.ch-table th.ch-n, .ch-table td.ch-n { text-align: center; }
.ch-table th, .ch-table td { padding-top: 13px; padding-bottom: 13px; }
.ch-board { margin-top: 4px; } /* 2026-11-10 user: closer under the numbers */
/* 2026-11-10 Impeccable layout pass (user): wide gaps between groups, tight inside; the numbers line in two equal halves;
   the dot meter capped with 명단 보기 right after it; today's column tinted in the head too; a lower table head */
.ch-board { margin-top: 16px; gap: 12px; }
.ch-sum { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ch-meter { flex: 0 1 200px; max-width: 200px; }
.ch-sum .ch-more { margin-left: 4px; }
.ch-table th.ch-day.is-today { background: color-mix(in srgb, var(--primary) 5%, transparent); }
.ch-table thead th { padding-top: 10px; padding-bottom: 10px; }
.ch-meter { flex-wrap: nowrap; gap: 2px; flex-basis: auto; max-width: none; } /* one line of dots, 22 students = 196px */
/* 2026-11-10 (research): '22명 중 1–10' left of the page numbers; a tab with nobody in it greyed */
.ch-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ch-range { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ch-tab.is-zero:not([aria-selected="true"]) { color: var(--muted); }
.ch-tab__n { font-weight: 500; opacity: .72; } /* 2026-11-14 user: a count after each tab, quieter than the name */
.ch-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ch-table tbody td { padding-top: 10px; padding-bottom: 10px; } /* 2026-11-10: 44px rows so eight rows and the page numbers fit 1440×900 */
.ch-sum__item { padding-top: 14px; padding-bottom: 14px; }
.cs .sc-no { width: 64px; color: var(--muted); text-align: center; } /* 2026-11-10 user: 순번 in front of the school student list */
.cs table td.sc-no, .cs table th.sc-no { text-align: center; }

/* 2026-11-10 user: 내 계정 사용량 — the coin bar is labelled '(coin) 사용량', not a lone coin; AI 풀이 stands out a little */
.usage-k { font-weight: 600; color: var(--ink, inherit); display: inline-flex; align-items: center; gap: 4px; }
/* 2026-11-10 user: 9번, 8개 — the unit sat too close to the number */
.ch-num .v small, .cs-stat .v small, .tm-num .v small, .tm-sum .v small { margin-left: 5px; }

/* 2026-11-10 user: the class home's top row as three cards (오늘 복습한 학생 bar · 캐치한 문제 · 이번 주 복습 정답률) */
.ch-sum.ch-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-bottom: 0; margin-top: 4px; }
.ch-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 18px 20px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 16px; }
.ch-card__ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); }
.ch-card__ico .icon { width: 22px; height: 22px; }
.ch-card__t { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ch-card__k { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ch-card__v { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ch-card__v b { font-size: 28px; font-weight: 800; line-height: 1.1; margin-right: 4px; }
.ch-card__v b.is-blue { color: var(--primary); }
.ch-card__s { font-size: 13px; color: var(--muted); white-space: nowrap; }
.ch-bar { display: block; height: 8px; border-radius: 999px; background: var(--primary-soft); overflow: hidden; margin-top: 4px; max-width: 220px; }
.ch-bar i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.ch-card__more { flex: none; align-self: flex-start; font-size: 13px; }
.ch-spark { flex: none; width: 120px; height: 36px; align-self: flex-end; overflow: visible; }
.ch-spark polygon { fill: var(--primary-soft); stroke: none; }
.ch-spark polyline { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-spark circle { fill: var(--surface, #fff); stroke: var(--primary); stroke-width: 1.5; }
.ch-spark circle.is-now { fill: var(--primary); }
@media (max-width: 1100px) { .ch-spark { display: none; } }
@media (max-width: 760px) { .ch-sum.ch-cards { grid-template-columns: minmax(0, 1fr); } }
.ch-spark { width: 96px; height: 40px; align-self: center; }
.ch-card__t { overflow: hidden; }
.ch-spark { width: 84px; }
/* 2026-11-10 user: the two counts can be small; the rate card is wide with a graph big enough to read */
.ch-sum.ch-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); }
.ch-card { flex-wrap: wrap; align-content: center; }
.ch-card .ch-card__t { overflow: visible; }
.ch-card--rate { flex-wrap: nowrap; padding-right: 12px; }
.ch-card--rate .ch-card__t { flex: none; }
.ch-rchart { flex: 1; min-width: 0; height: 100px; overflow: visible; }
.ch-rchart polygon { fill: var(--primary-soft); }
.ch-rchart polyline { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; }
.ch-rchart circle { fill: var(--surface, #fff); stroke: var(--primary); stroke-width: 2; }
.ch-rchart circle.is-now { fill: var(--primary); }
.ch-rchart__v { font-size: 13px; font-weight: 700; fill: var(--ink-2); }
.ch-rchart__v.is-now { fill: var(--primary); }
.ch-rchart__w { font-size: 12px; fill: var(--muted); }
.ch-card__more { flex-basis: 100%; margin-left: 58px; align-self: auto; }
@media (max-width: 1100px) { .ch-sum.ch-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ch-card--rate { grid-column: 1 / -1; } }
@media (max-width: 760px) { .ch-sum.ch-cards { grid-template-columns: minmax(0, 1fr); } }
.ch-sum .ch-card__more { margin-left: 58px; margin-top: -2px; }
/* 2026-11-10 user: the number cards start at the same left edge, so the row lines up with the page (centring left uneven gaps) */
.cs .card.tm-sum { justify-content: flex-start; padding-left: 28px; padding-right: 16px; }
/* 2026-11-10 user: 학습일 sits centred over its dates; 모두 맞혔어요 a size up, as big as the button's words */
.cs .tm-rec th:first-child, .cs .tm-rec td:first-child { text-align: center; }
.tm-allright { font-size: 15px; font-weight: 600; color: var(--ink-2); }
/* 2026-11-10 user: centre the class home's 학생 이름 and 복습 상태; the status box has one width so its dots stay in a line */
.ch-table th:nth-child(2), .ch-table td:nth-child(2), .ch-table th:nth-child(3), .ch-table td:nth-child(3) { text-align: center; }
.ch-table td:nth-child(3) .ch-st { min-width: 9.2em; justify-content: flex-start; text-align: left; }
/* 2026-11-10 user: 학생 관리 columns centred too (the pick box and the 계정 관리 menu keep their places) */
.ts-table th, .ts-table td { text-align: center; }
.ts-table th.cs-cell-pick, .ts-table td.cs-cell-pick { text-align: left; }
.ts-table th:last-child, .ts-table td:last-child { text-align: right; }
.ch-table th:first-child, .ch-table td:first-child { text-align: center; }
/* 2026-11-10 user: a note that starts with *; the lines under it begin where the words after the * begin */
.star-note { padding-left: 1em; }
.star-note__m { display: inline-block; width: 1em; margin-left: -1em; }
/* 2026-11-10 user: the number cards on 학습 현황 and the student page read like the class home's cards */
.cs .card.tm-sum { gap: 14px; padding: 18px 20px; border-radius: 16px; }
.cs .card.tm-sum .tm-sum__ico { width: 44px; height: 44px; }
.cs .card.tm-sum .tm-sum__ico .icon { width: 22px; height: 22px; }
.cs .card.tm-sum .tm-sum__t { gap: 3px; }
.cs .card.tm-sum .k { font-size: 14px; font-weight: 700; color: var(--ink); }
.cs .card.tm-sum .v { font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--ink); }
.cs .card.tm-sum .v small { font-size: 15px; font-weight: 700; color: var(--ink); margin-left: 4px; }
/* 2026-11-10 teacher review: 학습 현황 — a line under each number against the period before, and each student's rate in bands */
.tm-sum__s { font-size: 13px; color: var(--muted); white-space: nowrap; }
.tm-sum__s b { font-weight: 700; }
.cs-spread { gap: 14px; }
.cs-spread__bar { display: flex; gap: 3px; height: 14px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.cs-spread__bar i, .cs-spread__key i { display: block; }
.cs-spread .is-hi { background: var(--primary); }
.cs-spread .is-mid { background: color-mix(in srgb, var(--primary) 55%, #fff); }
.cs-spread .is-lo { background: color-mix(in srgb, var(--primary) 22%, #fff); }
.cs-spread .is-none { background: var(--line); }
.cs-spread__key { display: grid; gap: 8px; margin: 0; }
.cs-spread__key li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.cs-spread__key li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.cs-spread__key li b { margin-left: auto; color: var(--ink); font-weight: 700; }
.cs-spread__low { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.cs-spread__low span { font-weight: 700; color: var(--ink); margin-right: 4px; }
.cs-spread__low a { color: var(--primary-ink); font-weight: 600; }
.cs-spread__note { margin: 0; }
.tm-rec__csv { flex: none; }
.cs-spread .cb-h, .cs-spread .cb-h__t, .cs-spread .cb-sub { text-align: left; justify-content: flex-start; align-items: flex-start; }
/* the 학생별 table is centred like the other teacher tables */
.ts-stat-table th, .ts-stat-table td { text-align: center; }
.cs .ts-stat-table th.num, .cs .ts-stat-table td.num, .cs .ts-stat-table th, .cs .ts-stat-table td { text-align: center; }
/* 2026-11-10 user: 쓴 코인 joins the period's cards; a student under 100 coins left stands out */
.tm-stats.tm-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) { .tm-stats.tm-stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ts-coin-low .coin-n b { color: #b45309; }
.tm-sum__ico .coin-svg, .tm-sum__ico svg:not(.icon) { width: 24px; height: 24px; }
/* 2026-11-10 user: one coin meter — what is left of the month's coins, with its bar (like the student's 내 계정) */
.coin-meter { display: inline-flex; flex-direction: column; gap: 6px; min-width: 150px; text-align: left; vertical-align: middle; }
.coin-meter__t { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.coin-meter__t b { font-size: 16px; font-weight: 800; color: var(--ink); margin-right: 2px; }
.coin-meter .bar { width: 100%; }
.coin-meter.is-low .coin-meter__t b, .ts-coin-low { color: #b45309; }
.coin-meter.is-low .bar > span { background: #f59e0b; }
.tm-head__coin .v { font-size: inherit; }
.tm-head__coin .coin-meter { min-width: 160px; }
/* coin list in two columns: name at the left, the meter at the right of each row */
.coin-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin: 4px 0 0; }
.coin-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.coin-list .coin-meter { min-width: 0; width: 200px; }
@media (max-width: 900px) { .coin-list { grid-template-columns: minmax(0, 1fr); } }
/* the student page header: four items and the menu on one line */
.cs .card.tm-head { grid-template-columns: auto auto auto auto minmax(0, 1fr); }
.tm-head__coin .coin-meter { min-width: 0; width: 150px; }
.cs .card.tm-head .tm-head__item { padding-left: 28px; padding-right: 28px; }
.cs .card.tm-head .tm-acct > summary { white-space: nowrap; }
/* 2026-11-10 user: a change reads '이전 7일보다 4명 ↓' — amount and arrow in the text colour, no green or red */
.chg { display: inline-flex; align-items: center; gap: 1px; font-weight: 700; color: var(--ink); }
.chg-arrow { display: inline-flex; }
.chg-arrow .icon { width: 14px; height: 14px; stroke-width: 2.4; }
/* 2026-11-10 user: the per-student average beside a total, small and light grey like a side note */
.cs .card.tm-sum .tm-sum__avg { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 6px; white-space: nowrap; letter-spacing: 0; }
/* 2026-11-10 user: 오늘 복습한 학생 reads like the other two cards — dark number, 명단 보기 a small link on the label line, the bar where the others' small line is */
.ch-card__k { display: flex; align-items: center; gap: 8px; }
.ch-card__link { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ch-card__link .icon { width: 14px; height: 14px; }
.ch-card .ch-bar { margin-top: 6px; height: 6px; max-width: none; }
/* 2026-11-10 user: the words of 오늘 복습한 학생 sit centred over its bar, in the same type as the other two cards */
.ch-card--today .ch-card__t { align-items: center; text-align: center; }
.ch-card--today .ch-bar { width: 100%; }
.ch-card--today .ch-card__link { margin: 2px 0 0; }
.ch-card__v b, .ch-card__v b.is-blue { color: var(--ink); }
/* 2026-11-10 user: ⓘ opens a small bubble on a click */
.ch-tip { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 0 2px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 400; color: var(--muted); cursor: pointer; vertical-align: middle; }
.ch-tip:hover, .ch-tip[aria-expanded="true"] { color: var(--primary-ink); }
.ch-tip__pop { display: none; position: absolute; z-index: 30; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 220px; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.5; text-align: left; white-space: normal; box-shadow: 0 6px 18px rgba(15, 23, 42, .18); }
.ch-tip__pop::before { content: ""; position: absolute; top: -5px; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top: 0; border-bottom-color: var(--ink); }
.ch-tip[aria-expanded="true"] .ch-tip__pop { display: block; }

/* 2026-11-11 user: fixes from the web test (잘림·수치·패밀리 결제) */
/* Row menus sit fixed on the screen, so no table or box cuts them; they open upward when there is no room below. */
.tm-acct__menu.is-fixed { position: fixed; right: auto; z-index: 70; max-height: calc(100vh - 16px); overflow-y: auto; }
/* One-time passwords: a table at every width, the head fixed while the rows scroll. */
.cm-warn { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); font-size: 14.5px; font-weight: 600; }
.cm-warn .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.creds-table { max-height: 300px; overflow: auto; }
.creds-table thead th { position: sticky; top: 0; z-index: 1; }
.creds-table code { font: 700 15px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; color: var(--ink); }
.creds-table td.num, .creds-table th.num { text-align: right; width: 56px; }
.creds-acts { gap: 8px; flex-wrap: wrap; }
.creds-app { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.creds-app p { flex: 1 1 260px; margin: 0; }
/* The question before a window that cannot be opened again closes. */
.modal__actions--ask { align-items: center; }
.modal__ask { flex: 1 1 100%; margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
/* Every chosen name, scrolling inside its box. */
.cm-names.cm-names--all { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: flex-start; max-height: 168px; overflow-y: auto; margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-weight: 700; text-align: left; }
.cm-names--all li { white-space: nowrap; }
.done-kv { margin-top: 4px; }
/* Phone: where managing is done, with the address to copy. */
.pc-addr { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.pc-addr code { font: 700 16px/1.2 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); }
/* Paying on the web. */
.bill-card { gap: 12px; }
.bill-kv { row-gap: 6px; }
.bill-acts { gap: 8px; flex-wrap: wrap; }
.bill-sum { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.bill-sum p { margin: 0; }
.bill-sum p + p { margin-top: 4px; }
.bill-table { margin-top: 10px; }
.bill-mgr { gap: 8px 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.bill-log { max-height: 280px; overflow: auto; }
.bill-log thead th { position: sticky; top: 0; z-index: 1; }
.usage-bonus { margin: -6px 0 0; }
/* The home's review rule (톱니) beside the tabs. */
.ch-tabs { align-items: center; }
.ch-gear { margin-left: 4px; width: 36px; height: 36px; }
.ch-gear .icon { width: 18px; height: 18px; }
.ch-rule { display: grid; grid-template-columns: max-content max-content 1fr; align-items: center; gap: 12px 8px; }
.ch-rule select.input { width: 80px; }
/* 안내문 인쇄: only the login slips go to the printer, two columns, a dashed line to cut along. */
#print-sheet { display: none; }
@media print {
  html.print-creds body > *:not(#print-sheet) { display: none !important; }
  html.print-creds #print-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  html.print-creds .slip { break-inside: avoid; padding: 18px 20px; border: 1px dashed #888; color: #000; font-size: 13pt; }
  html.print-creds .slip__brand { margin: 0 0 4px; font-size: 10pt; color: #444; }
  html.print-creds .slip__who { margin: 0 0 8px; font-size: 15pt; font-weight: 800; }
  html.print-creds .slip dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0 0 8px; }
  html.print-creds .slip dt { color: #444; }
  html.print-creds .slip dd { margin: 0; font: 700 14pt ui-monospace, Menlo, monospace; }
  html.print-creds .slip__how { margin: 0; font-size: 10pt; color: #333; }
}
.ch-tabs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ch-table .ch-c-day { width: 50px; }
.ch-table th.ch-day, .ch-table td.ch-day { padding-left: 2px; padding-right: 2px; }
.ch-table th.ch-day small { display: inline; margin-left: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.modal__body > .creds-table, .modal__body > .creds-acts, .modal__body > .creds-app, .modal__body > .creds-acts + .small { margin-top: 12px; }
.bill-log th, .bill-log td { white-space: normal; padding-left: 10px; padding-right: 10px; }
.bill-log td.num, .bill-log th.num { white-space: nowrap; text-align: right; }
/* 2026-11-11 user (결정 3): one person-icon menu for every account, PC and phone. */
details.acct-menu { position: relative; display: inline-flex; }
details.acct-menu > summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); }
details.acct-menu > summary::-webkit-details-marker { display: none; }
details.acct-menu > summary:hover, details.acct-menu[open] > summary { background: var(--surface-2); }
details.acct-menu > summary .icon { width: 22px; height: 22px; }
details.acct-menu .acct-menu__pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 80; width: min(280px, calc(100vw - 32px)); padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--float); display: flex; flex-direction: column; gap: 6px; }
.acct-menu__who { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px 10px; border-bottom: 1px solid var(--line); }
.acct-menu__who b { font-size: 16px; color: var(--ink); }
.acct-menu__who span { font-size: 13px; color: var(--muted); }
.acct-menu nav { display: flex; flex-direction: column; }
/* The student's 계정 관리 on the path row, out of the header card. */
.tm-crumb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cs .card.tm-head { grid-template-columns: auto auto auto minmax(0, 1fr); }
.acct-menu .acct-menu__pop nav { border-top: 0; margin-top: 0; padding-top: 0; }
/* 2026-11-11 user: every explanation mark is the same circled ? (no ⓘ). */
.ch-tip__q, .cr-q { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 10.5px; font-weight: 800; line-height: 1; color: var(--muted); }
.ch-tip:hover .ch-tip__q, .ch-tip[aria-expanded="true"] .ch-tip__q { color: var(--primary-ink); }
.cr-q-wrap { position: relative; display: inline-flex; vertical-align: middle; margin-left: 2px; }
.cr-q-wrap .ch-tip__pop { white-space: normal; width: 240px; max-width: 240px; }
/* The person icon stays in the header at every width, at the right end (beside ☰ on a phone). */
.site-acct { display: inline-flex; order: 5; margin-left: 12px; }
.site-header__inner > .menu-btn { order: 6; }
@media (max-width: 860px) { .site-acct { margin-left: auto; } .site-header__inner > .menu-btn { margin-left: auto; } .site-acct + .menu-btn { margin-left: 8px; } }
/* 2026-11-19 user ('상단 석삼 모양 탭 위치가 이상해'): logged out there is no person icon, so ☰ went right after the logo; now it sits at the right end like other sites. */

/* 2026-11-11 user: on the PC the person icon goes straight to 내 계정 and logout is an icon beside it; phones keep the menu. */
.acct-person, .acct-logout { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
.acct-logout { margin-left: 8px; }
.acct-person:hover, .acct-logout:hover { background: var(--surface-2); }
.acct-person .icon { width: 22px; height: 22px; } .acct-logout .icon { width: 20px; height: 20px; }
.site-acct, .topbar-me, .cs-top__r { align-items: center; }
.site-acct { display: inline-flex; gap: 0; }
@media (max-width: 767px) { details.acct-menu.mob-only { display: inline-flex !important; } }

/* 2026-11-11 user: the student's '앱 공부 안내' — a narrow card: title, one line, QR codes; 캐비 beside the title. */
.app-get { width: min(540px, 100%); margin: 24px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 36px 36px 32px; box-shadow: 0 12px 32px rgba(15, 23, 42, .06); box-sizing: border-box; }
.app-get__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.app-get__t { margin: 0; font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -1px; color: var(--ink); }
.app-get__t em { font-style: normal; color: var(--primary, #2563eb); }
.app-get__s { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 22px; }
.app-get__k { height: 130px; width: auto; flex: none; margin-right: -4px; }
.app-get__qr { margin-top: 26px; background: var(--surface-2); border-radius: 18px; padding: 16px; display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; }
.app-get__q { background: var(--surface); border: 2px solid transparent; border-radius: 16px; padding: 18px 0 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--muted); }
.app-get__q img { width: 112px; height: 112px; }
.app-get__q.is-on { border-color: var(--primary, #2563eb); font-size: 14px; font-weight: 700; color: var(--ink); }
.app-get__q.is-soon img { opacity: .25; }
.app-get__btn { width: 100%; margin-top: 22px; }
@media (max-width: 767px) { .app-get__qr { display: none !important; } .app-get { padding: 28px 22px 24px; } .app-get__t { font-size: 26px; line-height: 34px; } .app-get__k { height: 100px; } }

/* 2026-11-11 user: students have no side menu on the web; the logo sits at the left of the header. */
.app--noside .topbar .stu-brand { display: inline-flex; margin-right: 6px; }
.app--noside .topbar .stu-brand + .icon-btn { margin-left: 4px; }
.app--noside .content { margin-inline: auto; }

/* 2026-11-11 user: student PC tabs 내 계정 · 이용권·결제 · 앱 안내 (시안 오캡_학생왼쪽탭_1111). Coin records are a plain list
   (title, '사용 · date', the amount at the right) with no coin pictures; tables are centred; 전체 보기 opens one window. */
.sp-meter { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.sp-hist .cs-tabs { margin-top: -6px; }
.sp-log th, .sp-log td { text-align: center; }
.sp-log td.num, .sp-log th.num { text-align: center; } /* 2026-12-02 review: numbers sat right of their centred headers */
.sp-log .linklike { font-weight: 600; }
.sp-list { list-style: none; margin: 0; padding: 0 4px 0 0; max-height: 300px; overflow: auto; }
.sp-list--tall { max-height: 440px; }
.sp-li { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.sp-li:last-child { border-bottom: 0; }
.sp-li > div:first-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sp-li b { font-size: 16px; font-weight: 700; color: var(--ink); }
.sp-li span { font-size: 14px; color: var(--muted); }
.sp-li em { font-style: normal; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.sp-li em.is-in { color: var(--primary-ink); }
.sp-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.sp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sp-foot .lv-pager { padding-top: 0; }
.sp-all { font-weight: 700; font-size: 14px; color: var(--primary); }
.sp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sp-dates { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-dates .input { width: 150px; }
.sp-empty { padding: 24px 0; text-align: center; }
/* 2026-11-11 user '코인 내역 창이 너무 크다' · '굳이 이렇게 클 필요 없는데': a small window sized to the little it shows */
dialog.modal.modal--hist { width: min(540px, calc(100vw - 32px)); }
.modal--hist .modal__inner { padding: 20px 22px; gap: 10px; }
.modal--hist .sp-bar { margin-bottom: 0; gap: 8px; flex-wrap: nowrap; }
.modal--hist .sp-period { width: auto; min-width: 128px; }
.modal--hist .sp-dates { margin-top: 2px; }
.modal--hist .sp-dates .input { width: 140px; }
.modal--hist .toggle-group button { padding-inline: 12px; }
.modal--hist .sp-list--tall { max-height: 300px; }
.modal--hist .sp-li { padding: 10px 2px; gap: 12px; }
.modal--hist .sp-li > div:first-child { gap: 2px; }
.modal--hist .sp-amt { gap: 2px; }
.modal--hist .sp-li b, .modal--hist .sp-li em { font-size: 15px; }
.modal--hist .sp-li span { font-size: 13px; }
.modal--hist .sp-log th, .modal--hist .sp-log td { padding: 9px 8px; font-size: 14px; }
.modal--hist .lv-pager { gap: 4px; }
.modal--hist .lv-pager button { min-width: 32px; height: 32px; padding: 0 6px; font-size: 14px; }

/* 2026-11-11 user: 앱 받기 page (#/download) — every 앱 설치하기 opens it; the PC closing band shows the QR too. */
.app-get-page { padding-block: 24px 56px; }
.app-get-page .app-get { margin-top: 8px; }
.app-get-page h1.app-get__t:focus { outline: none; }
.app-get-page__note { width: min(540px, 100%); margin: 16px auto 0; text-align: center; color: var(--muted); font-size: 14px; line-height: 22px; }
.app-get__soon { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.app-band__qr { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border-radius: 16px; padding: 10px 10px 8px; color: var(--ink); font-size: 12px; font-weight: 600; }
.app-band__qr img { width: 84px; height: 84px; display: block; }
/* 2026-11-11 user: the student header without '(4일 전)' and '지난주 n회' — the three items share the space evenly,
   labels on one line and the numbers on one line in the same size (coin number too). */
.cs .card.tm-head { grid-template-columns: auto repeat(3, minmax(0, 1fr)); align-items: start; }
.cs .card.tm-head .tm-head__who { align-self: center; }
.cs .card.tm-head .tm-head__item { gap: 10px; }
.cs .tm-head__item .v { line-height: 32px; gap: 4px; }
.tm-head__coin .coin-meter { width: min(200px, 100%); }
.tm-head__coin .coin-meter__t { font-size: 15px; font-weight: 500; color: var(--muted); line-height: 32px; }
.tm-head__coin .coin-meter__t b { font-size: 24px; font-weight: 800; color: var(--ink); }
/* 2026-11-11 user '주간 복습 횟수 정렬이 이상해': the unit sat in the middle of the number's height (align-items: center) and was
   grey and thin. Number and unit share the baseline, the unit like the cards below (15px, bold, ink, 4px apart). */
.cs .tm-head__item .v { align-items: baseline; gap: 0; }
.cs .tm-head__item .v small { font-size: 15px; font-weight: 700; color: var(--ink); margin-left: 4px; }
/* 2026-11-11 user '각 카드 칸마다를 기준 중앙정렬': 최근 학습일 · 주간 복습 횟수 · 이번 달 코인 each sit in the middle of their own cell. */
.cs .card.tm-head .tm-head__item { align-items: center; text-align: center; }
.cs .tm-head__item .k, .cs .tm-head__item .v { justify-content: center; }
.cs .tm-head__coin .coin-meter { margin-inline: auto; }
.cs .tm-head__coin .coin-meter__t { text-align: center; }
/* 2026-11-11 user: '학교 관리자가 하는 일' folds; clicking the title opens the list below it. */
details.cs-guide > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; }
details.cs-guide > summary::-webkit-details-marker { display: none; }
details.cs-guide:not([open]) { gap: 0; }
.cs-guide__car { color: var(--muted); font-size: 12px; transition: transform .15s; }
details.cs-guide[open] .cs-guide__car { transform: rotate(180deg); }
/* 2026-11-11 user: the family home as a table like the class home — 학년 column, this month's coins, a waiting row. */
.ch-table--fam .ch-c-coin { width: 190px; }
.ch-table--fam .ch-c-st { width: 18%; }
.ch-table--fam th.ch-coin, .ch-table--fam td.ch-coin { text-align: center; }
.ch-table--fam td.ch-coin .coin-meter { width: 150px; margin-inline: auto; }
.ch-table--fam td.ch-coin .coin-meter__t { font-size: 13px; color: var(--muted); }
.ch-table--fam td.ch-coin .coin-meter__t b { font-size: 15px; }
.ch-wait td { background: color-mix(in srgb, #f59e0b 7%, transparent); }
.ch-wait td[colspan] > * { vertical-align: middle; }
.ch-wait__t { color: #b45309; font-weight: 600; margin-right: 14px; }
.ch-wait td[colspan] { text-align: left; }
details.cs-guide > summary { margin: 0; }
details.cs-guide[open] > summary { margin-bottom: 6px; }
details.cs-guide .cs-guide__note { display: block; margin-top: 8px; }

/* 2026-11-11 user (브웹 17): logged in on a phone, the open ☰ menu kept the logo · person · X row on top
   (the menu list had order 0 and went above the account icon and the close button, which have order 5·6). */
@media (max-width: 860px) {
  .site-header[data-open="true"] .site-menu { order: 10; }
}

/* 2026-11-11 user (브웹 16): coin records never scroll inside a box (it cut rows under the page numbers);
   the 코인 내역 window is a third narrower with compact rows, and the page numbers sit under the list. */
.sp-list, .sp-list--tall, .modal--hist .sp-list--tall { max-height: none; overflow: visible; }
dialog.modal.modal--hist.modal--coin { width: min(380px, calc(100vw - 32px)); }
.modal--coin .modal__inner { padding: 18px 18px; gap: 8px; }
.modal--coin .toggle-group button { padding-inline: 10px; }
.modal--coin .sp-period { min-width: 112px; }
.modal--coin .sp-li { padding: 7px 2px; gap: 10px; }
.modal--coin .sp-li > div:first-child { gap: 2px; }
.modal--coin .sp-li b, .modal--coin .sp-li em { font-size: 14px; }
.modal--coin .sp-li span { font-size: 12px; }
.modal--coin .sp-foot { flex-direction: column; gap: 8px; padding-top: 4px; }

/* 2026-11-12 user review of untouched screens */
/* 기능 소개 '오캡 앱' 칸: 앱 설치 버튼 대신 QR (출시 전이라 견본 QR). 휴대폰은 버튼 그대로. */
.where-qr { display: flex; align-items: center; gap: 14px; align-self: flex-start; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.where-qr img { width: 84px; height: 84px; display: block; flex: none; }
.where-qr span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 650; color: var(--ink); }
.where-qr small { font-size: 12px; font-weight: 500; color: var(--muted); }
/* 멤버가 적으면(패밀리) 코인 목록은 한 줄씩. */
.coin-list--one { grid-template-columns: minmax(0, 1fr); }
.coin-list--one .coin-meter { width: 280px; }
/* 위험 카드도 다른 카드와 같은 안쪽 여백 — 글 왼쪽 끝을 맞춤. */
.cs-main .card.danger-zone, .card.danger-zone { padding: 20px 22px; }
/* 학교 관리자: 'ⓘ 학교 관리자 계정' 상자는 왼쪽 메뉴 맨 아래. */
.cs-side:has(.cs-guide--bottom) { min-height: calc(100vh - 120px); }
.cs-guide--bottom { margin-top: auto; }
.cs-guide__i { font-size: 15px; line-height: 1; color: var(--primary); }
/* 기능 소개 빈 곳 (2026-11-12 user): 그림은 그대로. 글은 복습 일정처럼 카드 위에서 시작하고(세로 가운데는 '너무 밑에
   있어'로 되돌림), 1·3번 카드는 설명 바로 아래에 짧은 확인 목록을 붙여 빈 곳을 채운다(설명과 목록 사이는 좁게). */
.fx2-points { margin: -2px auto 0; display: inline-flex; flex-direction: column; gap: 6px; text-align: left; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 767px) { .fx2-points { display: none; } }
/* 이용권 바꾸기 창 */
.plan-box .id-mode__opt .badge { margin-left: 6px; vertical-align: 1px; }
.plan-box .dot-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
/* 이용권·결제 카드 (2026-11-13 user): 버튼은 이용권 변경하기 · 결제 내역 · 코인 구입하기, 구독 해지는 카드 오른쪽 맨 아래,
   결제 내역은 가운데 작은 창, 결제 수단 카드는 전체 폭 한 장. */
.bill-pair--one { grid-template-columns: minmax(0, 1fr) !important; }
.bill-end { display: flex; justify-content: flex-end; margin-top: 2px; }
/* 2026-11-14 user (PRD '해지 방법 두 가지'): the refund choices under the cancel text, apart from the main buttons */
.bill-refund { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.bill-refund .row { gap: 8px; flex-wrap: wrap; }
dialog.modal.modal--bills { width: min(560px, calc(100vw - 32px)); }
.modal--bills .modal__actions:empty { display: none; }
.modal--bills .bill-log td:first-child, .modal--bills .bill-log td:last-child { white-space: nowrap; }
/* 색 정리 (2026-11-13 user, 검토 5순위): 장식 색은 파랑 하나 — 함께 쓰기 클래스 시작 순서, 기능 소개 2·3번 이름표,
   가격 안내 코인 표의 AI 풀이 아이콘. 코인 표의 디지털 변환·그림 새로 그리기 아이콘과 학교 정보 숫자 카드는 그대로. */
@media (min-width: 900px) {
  .tg3-flow:nth-child(2) h3::before, .tg3-flow:nth-child(2) .tg2-no { background: var(--primary); }
  .tg3-flow:nth-child(2) li::after { background: var(--primary-soft); }
}
@media (min-width: 768px) {
  .fx2-row--2 .fx2-label, .fx2-row--3 .fx2-label { background: var(--primary-soft); color: var(--primary-ink); }
  .fx2-row--2 .fx2-label .fx2-no, .fx2-row--3 .fx2-label .fx2-no { background: var(--primary); color: var(--on-primary); }
  .coin-rows li:nth-child(3) .coin-ic { background: var(--primary-soft); color: var(--primary); }
}

/* 이용권 변경하기 (2026-11-13 user: B안) — left: 인원·결제 방식, right: '바뀌면' summary. */
dialog.modal.modal--plan { width: min(780px, calc(100vw - 32px)); }
.pc-cur { margin: -4px 0 14px; }
.pc { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: start; }
.pc__left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pc-opts { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pc-opts legend { padding: 0; margin-bottom: 8px; }
.pc-opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; cursor: pointer; background: var(--surface); }
.pc-opt:hover { border-color: var(--primary); }
.pc-opt:has(input:checked) { border: 2px solid var(--primary); padding: 11px 13px; background: color-mix(in srgb, var(--primary-soft) 35%, var(--surface)); }
.pc-opt input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; flex: none; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); transition: border-width .12s, border-color .12s; }
.pc-opt input:checked { border: 6px solid var(--primary); }
.pc-opt input:focus-visible { outline: none; }
.pc-opt:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.pc-opt__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pc-opt__t b { font-size: 15px; font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pc-opt__p { text-align: right; flex: none; }
.pc-opt__p b { display: block; font-size: 15px; font-weight: 700; }
.pc-opt__p small { font-size: 13px; color: var(--muted); font-weight: 400; }
.pc-now { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.pc-sum { background: var(--surface-2); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pc-sum__h { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pc-flow { display: flex; flex-direction: column; gap: 6px; }
.pc-flow__box { background: var(--surface); border-radius: 12px; padding: 10px 12px; }
.pc-flow__box span { display: block; font-size: 13px; color: var(--muted); }
.pc-flow__box b { font-size: 14px; font-weight: 600; }
.pc-flow__box--new { outline: 2px solid var(--primary); outline-offset: -2px; }
.pc-flow__ar { text-align: center; color: var(--muted); font-size: 13px; line-height: 1; }
.pc-sum__dl { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 6px; font-size: 14px; }
.pc-sum__dl dt { color: var(--muted); }
.pc-sum__dl dd { margin: 0; font-weight: 600; text-align: right; }
.pc-sum__dl .pc-sum__total { border-top: 1px solid var(--line-2); padding-top: 8px; margin-top: 2px; color: var(--ink); font-weight: 700; font-size: 14px; }
.pc-sum__note { margin: -4px 0 0; font-size: 13px; }
.pc-hint { font-weight: 400; font-size: 13px; }
.pc-save { font-size: 13px; margin: -4px 0 0; }
.pc-sum p { margin: 0; }
@media (max-width: 720px) { .pc { grid-template-columns: 1fr; } }
.modal--plan #dlg-title:focus { outline: none; }

/* 2026-11-13 user (GPT 검토 반영): price reads '매달 7,900원' / '6개월마다 41,700원'; summary is rows, no inner boxes. */
.pc-opt__p { white-space: nowrap; }
.pc-opt__p small { margin-right: 2px; }
.pc-opt__p b { display: inline; }
.pc-good { color: var(--good); font-weight: 600; }
.pc-sum__dl dd small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.pc-sum__dl dd { font-size: 14px; }
.pc-sum__pay { border-top: 1px solid var(--line-2); padding-top: 12px; }
.pc-sum__pay .pc-sum__total { border-top: 0; padding-top: 4px; font-size: 16px; color: var(--primary-ink); }
.pc-sum__pay dt.pc-sum__total { color: var(--ink); font-size: 14px; }

/* 결제 확인 창 (2026-11-13 user '보기 안좋아'): rows, normal weight, today's amount set apart. */
.pay-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 24px; row-gap: 12px; font-size: 15px; }
.pay-dl dt { color: var(--muted); }
.pay-dl dd { margin: 0; text-align: right; font-weight: 500; }
.pay-dl dd b { font-weight: 600; }
.pay-dl dd small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.pay-dl--total { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); align-items: baseline; }
.pay-dl--total dt { color: var(--ink); font-weight: 600; }
.pay-dl--total dd { font-size: 18px; font-weight: 700; color: var(--primary-ink); }
.pay-note { margin: 16px 0 0; line-height: 1.6; }
.pay-check { margin-top: 14px; }
dialog.modal #dlg-title:focus { outline: none; }

/* 2026-11-13 user: 결제 수단 바꾸기 is a small link inside the 지금 이용권 card. */
.bill-via-link { margin-left: 8px; font-size: 14px; font-weight: 600; line-height: inherit; padding: 0; vertical-align: baseline; }
.bill-kv .bill-via-link { min-height: 0; padding-block: 0; display: inline; }

/* 2026-11-14 user ('이 칸이 너무 커'): 학생 아이디 만드는 방식 — one short line per choice (title, then the hint beside it in light text). */
.id-mode__opt { padding: 10px 14px; align-items: center; }
.id-mode__opt input { margin-top: 0; }
.id-mode__opt > span { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.id-mode__opt strong { font-size: 15px; font-weight: 600; }
.id-mode__opt > span > span { font-size: 13px; font-weight: 400; color: var(--muted); }
.id-mode__opt:has(input:checked) { background: color-mix(in srgb, var(--primary-soft) 45%, var(--surface)); }
.ch-card__v b.ch-card__date { font-size: 24px; }
.sp-school-note { margin: 4px 2px 0; }
.ch-cards.ch-cards--even { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 2026-11-14 user ('기입하는 칸이 글자 수에 비해 너무 길어'): settings inputs as wide as what goes in them. */
@media (min-width: 768px) {
  #org-name, #org-school { max-width: 360px; }
  #org-code { max-width: 240px; }
  .id-mode:has(.id-mode__opt) { max-width: 480px; }
}
.help-page--cs .help-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
/* 고객센터 inside the console: lighter questions, like the other console lists. */
.help-page--cs .faq details { padding: 2px 18px; }
.help-page--cs .faq summary { min-height: 48px; font-size: 15px; font-weight: 600; }
.help-page--cs .faq details p { font-size: 15px; }
.help-page--cs .help-more { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.cs-content .help-page--cs { padding: 0; margin: 0; max-width: none; }
/* 2026-11-14 user: 고객센터 questions a page at a time. */
.help-pager { display: flex; justify-content: center; gap: 6px; padding-top: 8px; }
.help-pager button { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.help-pager button[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.help-pager button:disabled { opacity: .4; cursor: default; }

/* 복습 기준 바꾸기 (2026-11-14 user '더 복잡해졌어'): two plain lines with a small − n + . */
dialog.modal.modal--rule { width: min(440px, calc(100vw - 32px)); }
.rule-box { display: flex; flex-direction: column; margin-top: 10px; }
.rule-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.rule-line + .rule-line { border-top: 1px solid var(--line); }
.rule-line__t { font-size: 15px; font-weight: 600; }
.rule-line__v { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.stepper--sm button { width: 36px; height: 36px; font-size: 18px; }
.stepper--sm output { min-width: 36px; font-size: 16px; font-weight: 700; }
.stepper--sm button:disabled { color: var(--line-2); cursor: default; }
.ch-board__head:has(.ch-gear) { justify-content: flex-start; gap: 4px; }
/* 2026-11-14 user ('우측 스크롤 탭은 왜 있어'): the tab underline sits 1px below the line (margin-bottom: -1px), which made
   the row scroll up and down and drew a scroll bar at the right. Tabs only scroll sideways, with no bar. */
.cs-tabs { overflow-y: hidden; scrollbar-width: none; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); }
.cs-tabs::-webkit-scrollbar { display: none; }
.cs-tabs a { margin-bottom: 0; }
/* 2026-11-14 user ('적용 버튼 글자와 크기가 안 맞아'): the same height and corner as the date boxes, a snug width. */
.cs-range__row .input { height: 44px; min-height: 44px; padding-block: 0; font-size: 15px; }
.cs-range__row .btn { height: 44px; min-height: 44px; padding: 0 18px; font-size: 15px; font-weight: 600; border-radius: 12px; }
/* 2026-11-14 user ('전체적인 카드도 좀 줄여'): a smaller 복습 현황 보기 설정 window. */
dialog.modal.modal--rule { width: min(380px, calc(100vw - 32px)); }
.modal--rule .modal__inner { padding: 20px 22px; gap: 12px; }
.modal--rule #dlg-title { font-size: 18px; }
.modal--rule .rule-box { margin-top: 4px; }
.modal--rule .rule-line { padding: 10px 0; }
.modal--rule .rule-line__t { font-size: 14px; }
.modal--rule .rule-line__v { font-size: 14px; gap: 6px; }
.modal--rule .stepper--sm button { width: 30px; height: 30px; font-size: 16px; }
.modal--rule .stepper--sm output { min-width: 28px; font-size: 15px; }
.modal--rule .modal__actions .btn { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.rule-line:not(:has(.rule-line__t)) { justify-content: flex-start; }
.modal--rule .rule-line__v { color: var(--ink); }
.rule-desc { line-height: 1.6; }

/* 2026-11-14 user ('AI 풀이가 좀 길어, 세로 폭 줄여'): the steps sit in one box split by thin lines, and 주의할 점 is one row. */
.fx2-ai__sol { gap: 8px; }
.fx2-ai__steps { gap: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.fx2-ai__steps li { padding: 8px 12px; border: 0; border-radius: 0; background: transparent; }
.fx2-ai__steps li + li { border-top: 1px solid var(--line); }
.fx2-ai__steps em { line-height: 1.5; }
.fx2-ai__warn { flex-direction: row; gap: 8px; line-height: 1.5; }
.fx2-ai__warn b { flex: none; }
/* 2026-11-14 user: the app card's QR box sits in the middle like the rest of the card. */
.where-sec .where-qr { align-self: center; }

/* 2026-11-14 user: two install QRs (Android · iPhone·iPad) side by side in the app card, each with its mark. */
.where-qrs { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.aq { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 18px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); min-width: 150px; }
.aq__code { position: relative; display: block; width: 96px; height: 96px; }
.aq__code img { width: 100%; height: 100%; display: block; }
.aq__mark { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 8px; background: #fff; box-shadow: 0 0 0 3px #fff; }
.aq__mark svg { width: 24px; height: 24px; display: block; }
.aq figcaption { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.aq figcaption b { font-size: 14px; font-weight: 700; color: var(--ink); }
.aq figcaption small { font-size: 12px; color: var(--muted); }
.aq--android { border-top: 3px solid #3DDC84; }
.aq--ios { border-top: 3px solid #111827; }
.where-qrs__s { text-align: center; margin: 0; }
.footer-tm { display: inline-block; margin-top: 6px; font-size: 11px; opacity: .8; }

/* ---------- 기능 소개 탭 (2026-11-14 user: 매쓰플랫처럼 기능마다 탭) ---------- */
.fx3 { display: flex; flex-direction: column; align-items: center; gap: 36px; padding-bottom: 72px; }
.fx3-tabs { display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.fx3-tabs::-webkit-scrollbar { display: none; }
.fx3-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.fx3-tab:hover { color: var(--ink); }
.fx3-tab[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.fx3-tab small { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); }
.fx3-tab[aria-pressed="true"] small { background: rgba(255,255,255,.22); color: #fff; }
.fx3-panel { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.fx3-kicker { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--primary-ink); }
.fx3-title { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.25; letter-spacing: -0.02em; }
.fx3-lead { margin: 14px 0 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.fx3-stage { width: 100%; max-width: 920px; margin-top: 36px; padding: 32px; border-radius: 28px; background: linear-gradient(160deg, var(--primary-soft), var(--bg) 70%); text-align: left; }
.fx3-stage .fx2-device { max-width: 760px; margin: 0 auto; }
.fx3-cards { width: 100%; max-width: 920px; margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fx3-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.fx3-card__art { width: 100%; height: 132px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); padding: 12px; }
.fx3-card h3 { margin: 0; font-size: 17px; }
.fx3-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.fx3-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.fx3-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fx3-chip.is-on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); }
.fx3-catch { display: inline-flex; gap: 5px; }
.fx3-catch i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.fx3-catch i.on { background: var(--primary); }
.fx3-catch--big i { width: 16px; height: 16px; }
.fx3-goal { display: block; margin-top: 8px; font-size: 13px; color: var(--primary-ink); }
.fx3-card__art > .fx3-catch + .fx3-goal { margin-top: 0; }
.fx3-stones { display: inline-flex; align-items: flex-end; gap: 6px; }
.fx3-stones i { width: 22px; height: 14px; border-radius: 50%; background: var(--line); }
.fx3-stones i.on { background: color-mix(in srgb, var(--primary) 70%, #7c8aa5); }
.fx3-stones i:nth-child(even) { transform: translateY(-6px); }
.fx3-bell, .fx3-warn, .fx3-lock, .fx3-id, .fx3-caution, .fx3-score, .fx3-fix, .fx3-eq { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.fx3-bell svg, .fx3-warn svg, .fx3-lock svg, .fx3-fix svg { width: 16px; height: 16px; }
.fx3-warn { color: var(--warn-ink, #8a5a00); background: var(--warn-soft); border-color: transparent; }
.fx3-caution { background: var(--warn-soft); border: 0; border-left: 3px solid var(--warn); border-radius: 8px; }
.fx3-score b { font-size: 22px; color: var(--primary-ink); }
.fx3-fix { font-size: 18px; } .fx3-fix i { display: inline-flex; color: var(--primary); }
.fx3-eq i { font-style: normal; color: var(--muted); }
.fx3-id { font-family: ui-monospace, Menlo, monospace; letter-spacing: .02em; }
.fx3-no { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; margin-right: 6px; color: var(--primary-ink); font-weight: 800; }
.fx3-rv__k { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.fx3-rv, .fx3-tc { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; }
.fx3-rv__arrow { color: var(--primary); display: inline-flex; } .fx3-rv__arrow svg { width: 22px; height: 22px; }
.fx3-rv__q, .fx3-rv__out, .fx3-tc__web, .fx3-tc__phone { padding: 16px; border-radius: 14px; background: var(--bg); }
.fx3-rv__q > b { font-size: 16px; }
.fx3-rv__opts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.fx3-rv__opts span { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.fx3-rv__opts span.is-on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; }
.fx3-rv__day { display: block; font-size: 24px; } .fx3-rv__day small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.fx3-rv__line { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink-2); } .fx3-rv__line em { font-style: normal; font-weight: 700; color: var(--primary-ink); }
.fx3-rv__out p { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.fx3-pp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fx3-pp__q { padding: 16px; border-radius: 14px; background: var(--bg); font-size: 15px; }
.fx3-pp__q > p:first-child { margin: 0 0 12px; }
.fx3-pp__ch { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fx3-pp__ch li { position: relative; padding: 4px 2px; }
.fx3-pp__ch li.is-pick svg { position: absolute; left: -12px; top: -6px; width: 78px; height: 40px; fill: none; stroke: #d0342c; stroke-width: 2.4; stroke-linecap: round; }
.fx3-pp__got { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 13px; color: var(--ok-ink, #1f7a4d); font-weight: 600; } .fx3-pp__got svg { width: 15px; height: 15px; }
.fx3-pp__hand { display: flex; align-items: center; gap: 10px; }
.fx3-pp__ink { font-family: 'Nanum Pen Script', 'Comic Sans MS', cursive; font-size: 30px; color: #2b4cc4; transform: rotate(-4deg); }
.fx3-pp__to { color: var(--muted); }
.fx3-pp__typed { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; }
.fx3-pp__ok { padding: 3px 9px; border-radius: 999px; background: #e6f6ee; color: #1f7a4d; font-size: 12px; font-weight: 800; }
.fx3-ex { padding: 18px 20px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: #111827; }
.fx3-ex__head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 10px; border-bottom: 2px solid #111827; }
.fx3-ex__head b { font-size: 18px; } .fx3-ex__head span { font-size: 13px; color: #4b5563; }
.fx3-ex__head em { margin-left: auto; font-style: normal; font-weight: 800; color: #d0342c; font-size: 16px; }
.fx3-ex__note { margin: 8px 0 12px; font-size: 12px; color: #6b7280; }
.fx3-ex__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.fx3-ex__cols > div + div { border-left: 1px solid #e5e7eb; padding-left: 24px; }
.fx3-ex__cols p { position: relative; margin: 0; font-size: 14px; }
.fx3-ex__cols p b { margin-right: 6px; }
.fx3-ex__a { margin: 6px 0 16px !important; color: #374151; } .fx3-ex__a small { display: block; color: #d0342c; font-size: 12px; }
.fx3-ex__m { position: absolute; left: -8px; top: -8px; width: 30px; height: 30px; pointer-events: none; }
.fx3-ex__m.ok { border: 2.5px solid #d0342c; border-radius: 50%; }
.fx3-ex__m.no::before, .fx3-ex__m.no::after { content: ''; position: absolute; left: 14px; top: 0; width: 2.5px; height: 30px; background: #d0342c; transform: rotate(45deg); }
.fx3-ex__m.no::after { transform: rotate(-45deg); }
.fx3-tc__web > p { margin: 0 0 10px; font-size: 14px; }
.fx3-tc__ans { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); } .fx3-tc__ans b.no { color: #d0342c; }
.fx3-tc__fb, .fx3-tc__card { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.fx3-tc__fb span, .fx3-tc__card span { font-size: 12px; font-weight: 700; color: var(--primary-ink); }
.fx3-tc__fb p, .fx3-tc__card p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; }
.fx3-tc__phone { max-width: 280px; justify-self: center; border-radius: 22px; border: 6px solid #111827; background: var(--surface); }
.fx3-tc__bell { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border-radius: 12px; background: var(--bg); font-size: 13px; }
.fx3-tc__bell svg { width: 18px; height: 18px; color: var(--primary); flex: none; } .fx3-tc__bell small { display: block; color: var(--muted); font-size: 11px; }
@media (max-width: 760px) {
  .fx3 { gap: 24px; }
  .fx3-tabs { border-radius: 16px; justify-content: flex-start; width: 100%; }
  .fx3-tab { padding: 0 14px; font-size: 14px; }
  .fx3-stage { padding: 14px; border-radius: 20px; margin-top: 24px; }
  .fx3-cards { grid-template-columns: minmax(0, 1fr); }
  .fx3-rv, .fx3-tc, .fx3-pp, .fx3-ex__cols { grid-template-columns: minmax(0, 1fr); }
  .fx3-rv__arrow { transform: rotate(90deg); justify-self: center; }
  .fx3-ex__cols > div + div { border-left: 0; padding-left: 0; }
}
.fx3-ex__cols p { padding-left: 34px; }
.fx3-ex__a { padding-left: 34px !important; }
.fx3-ex__m { left: -2px; top: -5px; }
.fx3-pp__ch { gap: 8px 22px; }
.fx3-pp__ch li.is-pick svg { left: -14px; width: 74px; }
.fx3-card__art { flex-direction: column; gap: 10px; }
.fx3-goal { margin-top: 0; }
/* the page title sits right above the tabs; the photo slider is kept to the size of the other pictures */
.price-head:has(#fix-title) { padding-bottom: 0; margin-bottom: -24px; }
.fx3-stage .fx2-cmp { max-width: 620px; margin-inline: auto; }

/* 2026-11-14 user ('매쓰플랫처럼 … 사람이 직접 쓰는 사진', '글자 옆에 사진'): each tab opens with the text beside a photo
   (students on a tablet with a pen, the teacher at a PC), then a list of three points beside the app picture. */
.fx4-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; text-align: left; }
.fx4-hero .fx3-kicker, .fx4-hero .fx3-title, .fx4-hero .fx3-lead { text-align: left; margin-left: 0; margin-right: 0; }
.fx4-who { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 600; vertical-align: 2px; }
.fx4-hl { background: var(--hl) no-repeat 0 100% / 100% .34em; padding-bottom: .12em; }
/* 2026-11-14 user ('애니메이션 … 처음 사진이 등장할 때, 복잡하지 않게'): on load and on each tab change the text rises in,
   the photo fades up a moment later, the underline is drawn once and the open point's text fades in. */
@keyframes fx4-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fx4-photo { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fx4-draw { from { background-size: 0% .34em; } to { background-size: 100% .34em; } }
@keyframes fx4-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .fx4-hero__text { animation: fx4-up .5s ease-out both; }
  .fx4-hero__photo { animation: fx4-photo .7s .12s cubic-bezier(.2, .7, .2, 1) both; }
  .fx4-hero__photo figcaption { animation: fx4-up .45s .6s ease-out both; }
  .fx4-hl { animation: fx4-draw .6s .45s ease-out both; }
  .fx4-item.is-on p { animation: fx4-fade .3s ease-out both; }
}
.fx4-hero__photo { position: relative; margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 18px 40px rgba(28, 36, 49, .10); }
.fx4-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx4-hero__photo figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); }
.fx4-detail { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; align-items: center; margin-top: 72px; }
.fx4-list { display: flex; flex-direction: column; text-align: left; }
.fx4-item { border-bottom: 1px solid var(--line); }
.fx4-item button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 18px 0 14px; border: 0; background: none; font: inherit; font-size: 19px; font-weight: 700; color: var(--muted); text-align: left; cursor: pointer; }
.fx4-item__check { display: none; color: var(--primary); }
.fx4-item__check .icon { width: 20px; height: 20px; }
.fx4-item p { display: none; margin: 0 0 18px 30px; color: var(--ink-2); line-height: 1.6; }
.fx4-item.is-on button { color: var(--ink); }
.fx4-item.is-on .fx4-item__check { display: inline-flex; }
.fx4-item.is-on p { display: block; }
.fx4-stage.fx3-stage { margin: 0; max-width: none; }
.fx3-panel .fx3-cards { display: none; }
@media (max-width: 760px) {
  .fx4-hero, .fx4-detail { grid-template-columns: 1fr; gap: 20px; }
  .fx4-hero__photo { order: -1; border-radius: 18px; }
  .fx4-detail { margin-top: 40px; }
  .fx4-item button { font-size: 17px; }
}

/* 2026-11-14 user ('글자 크기가 작은 부분, 이상한 부분 다 찾아봐'): one scale on the feature page — small labels and badges
   13px, labels inside the app pictures 14px, body text inside them 15px; nothing smaller except the legal line (12px). */
.fx4-who, .fx3-tab small, .fx2-cmp__tag, .fx3-pp__ok, .fx2-ai__no { font-size: 13px; }
.fx2-ai__no { width: 22px; height: 22px; }
.fx2-device__tag, .fx2-ai__ans span, .fx3-rv__k, .fx3-tc__fb span, .fx3-tc__card span, .fx3-ex__note, .fx3-chip, .fx3-goal, .fx2-cmp__cap { font-size: 14px; }
.fx2-ai__steps b, .fx2-ai__steps em, .fx2-ai__warn, .fx3-rv__line, .fx3-rv__out p, .fx3-pp__got, .fx3-tc__ans, .fx3-tc__fb p, .fx3-tc__card p, .fx3-tc__bell { font-size: 15px; }
.fx4-item p { font-size: 16px; }
.footer-tm { font-size: 12px; }
.fx3-ex__a small, .fx3-tc__bell small { font-size: 13px; }
@media (max-width: 760px) { .fx2-ai__steps em { font-size: 14px; } }
.fx4-hero .fx3-title { font-size: clamp(28px, 3vw, 38px); line-height: 1.35; }
/* 2026-11-14 user ('줄바꿈도 디자인 요소'): the title's first line fits the text column (about 15 characters at 34px)
   and its feature name sits on its own line; the lead is one sentence per line; Korean never breaks inside a word. */
@media (min-width: 761px) { .fx4-hero { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); } }
.fx4-hero .fx3-title { font-size: clamp(26px, 2.7vw, 34px); }
.fx4-hero .fx3-title, .fx4-hero .fx3-lead, .fx4-item button, .fx4-item p { word-break: keep-all; text-wrap: pretty; }
/* 2026-11-14 user ('등장할 때 살짝'): the three points rise in one after another when they come into view. */
@media (prefers-reduced-motion: no-preference) {
  .fx4-list .fx4-item { transition: opacity .45s ease-out, transform .45s ease-out; }
  .fx4-list .fx4-item:nth-child(2) { transition-delay: .08s; }
  .fx4-list .fx4-item:nth-child(3) { transition-delay: .16s; }
  .fx4-list.reveal:not(.is-in) .fx4-item { opacity: 0; transform: translateY(12px); }
}
/* 2026-11-14 user ('파란색 밑줄 전부 빼', '사진과 왼쪽 글의 거리가 너무 멀어 … 전반적으로'): no underline, and each text
   column is only as wide as its words so the photo and the app picture sit close to them. */
@media (min-width: 761px) {
  .fx4-hero { grid-template-columns: max-content minmax(0, 1fr); gap: 56px; }
  .fx4-detail { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 48px; }
}
a.bubble__ans { color: var(--primary-ink); text-decoration: none; } a.bubble__ans:hover { text-decoration: underline; }
/* 2026-11-14 user ('사진이 너무 커', '문제 다 짤린다'): the photo is at most 600px and the block is centred; below 1024px the
   text and photo, and the list and its screen, stack so nothing is squeezed. Titles: a short first line, a longer second. */
@media (min-width: 1025px) {
  .fx4-hero { grid-template-columns: minmax(0, 420px) minmax(0, 640px); justify-content: space-between; gap: 56px; }
  .fx4-hero__photo { width: 100%; max-width: 560px; justify-self: end; } /* photo about as tall as the text (2026-11-14 user '사진이 너무 크잖아 맞춰서') */
  .fx4-detail { grid-template-columns: minmax(0, 420px) minmax(0, 640px); justify-content: space-between; gap: 56px; } /* 2026-11-14 user: '더 오른쪽으로 가야 비율이 맞을 것 같은데' */
}
@media (min-width: 761px) and (max-width: 1024px) {
  .fx4-hero, .fx4-detail { grid-template-columns: 1fr; gap: 28px; }
  .fx4-hero__photo { max-width: 640px; }
  .fx4-arts { max-width: 640px; }
}
.fx4-arts { min-width: 0; }
.fx4-art[hidden] { display: none !important; }
/* the screens for each point (2026-11-14 user: '그거에 맞게 창이 떠야 해') */
.fx5-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.fx5-note { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.fx5-note .icon { width: 16px; height: 16px; color: var(--primary); }
.fx5-big { display: block; margin: 2px 0 14px; font-size: 22px; font-weight: 800; color: var(--ink); }
.fx5-fix, .fx5-types, .fx5-stamp, .fx5-alarm, .fx5-pick, .fx5-ages, .fx5-caution, .fx5-stat, .fx5-form { padding: 22px; text-align: left; }
.fx5-fix p { margin: 0 0 10px; font-size: 16px; }
.fx5-fix__eq { font-size: 22px !important; display: flex; align-items: center; gap: 10px; }
.fx5-fix__bad { padding: 2px 6px; border: 2px solid #d0342c; border-radius: 8px; }
.fx5-pop { margin-top: 8px; padding: 14px; border-radius: 14px; background: var(--surface); box-shadow: 0 10px 30px rgba(28,36,49,.12); border: 1px solid var(--line); max-width: 300px; }
.fx5-pop__row { display: flex; align-items: center; gap: 10px; }
.fx5-pop__in { flex: 1; padding: 8px 12px; border: 2px solid var(--primary); border-radius: 10px; font-size: 18px; }
.fx5-types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fx5-types .fx5-note { grid-column: 1 / -1; margin-top: 4px; }
.fx5-type { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; min-height: 104px; }
.fx5-type__k { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); font-size: 13px; font-weight: 700; }
.fx5-ch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 15px; }
.fx5-ch .is-on, .fx5-ox .is-on { color: var(--primary-ink); font-weight: 800; }
.fx5-blank { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.fx5-blank i { display: inline-block; width: 80px; height: 28px; border: 2px solid var(--line-2); border-radius: 8px; }
.fx5-ox { display: flex; gap: 18px; font-size: 26px; }
.fx5-line { width: 100%; max-width: 140px; height: auto; }
.fx5-line circle { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2; }
.fx5-line path { stroke: var(--primary); stroke-width: 2.5; fill: none; }
.fx5-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 360px; }
.fx5-stamps i { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--line-2); display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 800; color: var(--warn); }
.fx5-stamps i.on { border: 0; background: var(--primary); color: #fff; }
.fx5-stamps i.on .icon { width: 18px; height: 18px; }
.fx5-stamps i.gift { border: 2px solid #e8b100; background: #fff7d6; }
.fx5-push { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(28,36,49,.08); }
.fx5-push .icon { width: 22px; height: 22px; color: var(--primary); flex: none; margin-top: 2px; }
.fx5-push small { display: block; font-size: 13px; color: var(--muted); }
.fx5-push b { font-size: 16px; }
.fx5-set { margin-top: 16px; }
.fx5-set .fx3-rv__k { margin-bottom: 8px; }
.fx5-set--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fx5-set--row .fx3-rv__k { margin: 0; }
.fx5-pick__tabs .fx3-chips { margin: 0; }
.fx5-rows { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fx5-rows li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 15px; }
.fx5-rows em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--muted); }
.fx5-box { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--primary); color: #fff; }
.fx5-box .icon { width: 14px; height: 14px; }
.fx5-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; }
.fx5-got { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.fx5-got__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.fx5-ages { display: grid; gap: 12px; }
.fx5-say { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.fx5-say p { margin: 4px 0 0; font-size: 15px; line-height: 1.7; }
.fx5-caution .fx2-ai__warn { font-size: 15px; }
.fx5-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.fx5-vs > div { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.fx5-vs span { font-size: 14px; font-weight: 800; }
.fx5-vs .no span { color: #d0342c; } .fx5-vs .ok span { color: var(--good); }
.fx5-vs p { margin: 8px 0 0; font-size: 18px; }
.fx5-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 15px; }
.fx5-table th { padding: 8px 6px; background: var(--surface-2); color: var(--ink-2); font-size: 14px; font-weight: 700; }
.fx5-table td { padding: 9px 6px; border-top: 1px solid var(--line); text-align: center; }
.fx5-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.fx5-form label { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 360px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 15px; }
.fx5-form label span { color: var(--muted); }
.fx5-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.fx5-toggle b { display: block; font-size: 16px; } .fx5-toggle small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.fx5-sw { flex: none; position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--line-2); }
.fx5-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
@media (prefers-reduced-motion: no-preference) { .fx4-art:not([hidden]) > .fx2-device { animation: fx4-fade .3s ease-out both; } }
/* 2026-11-14 user ('전체적인 화면 밸런스'): text on the left edge, the photo and the app screen the same width (560px) on the
   right edge, so the two rows line up. */
@media (min-width: 1025px) {
  .fx4-hero, .fx4-detail { grid-template-columns: minmax(0, 480px) minmax(0, 560px); justify-content: space-between; gap: 48px; }
  .fx4-hero__photo, .fx4-arts { width: 100%; max-width: 560px; justify-self: end; }
}
/* the two-panel pictures fit the 560px column (2026-11-14 balance check) */
.fx4-stage.fx3-stage { padding: 20px; }
.fx4-art .fx2-device__body { padding: 14px; }
.fx4-art .fx3-rv, .fx4-art .fx3-tc { gap: 8px; }
.fx4-art .fx3-rv__q, .fx4-art .fx3-rv__out, .fx4-art .fx3-tc__web { padding: 12px; }
.fx4-art .fx3-rv__opts span { font-size: 14px; padding: 8px 10px; }
.fx4-art .fx3-rv__line, .fx4-art .fx3-rv__line span, .fx4-art .fx3-rv__line em, .fx4-art .fx3-tc__bell b { white-space: nowrap; }
.fx4-art .fx3-rv__line { gap: 6px; }
.fx4-art .fx3-catch--big i { width: 12px; height: 12px; }
.fx4-art .fx3-tc__phone { max-width: 240px; border-width: 5px; }
.fx4-art .fx3-tc__bell, .fx4-art .fx3-tc__card { padding: 10px; }
/* 2026-11-14 user ('옆에 그림 너무 큰데'): the photo/digital comparison stays about as tall as the list beside it. */
.fx4-art .fx2-cmp { max-width: 400px; margin-inline: auto; }
.fx4-art .fx2-cmp__cap { margin-top: 8px; }
/* 2026-11-14 user ('소타이틀이 설명 줄의 가운데에 정렬'): each point's 소타이틀 and its description are centred. */
.fx4-item button { justify-content: center; text-align: center; }
.fx4-item p { margin-left: 0; margin-right: 0; text-align: center; }
/* 2026-11-22 user ('어제자에서 애니메이션만 추가해'): 가격 안내 PC 움직임 — 화면은 어제 그대로 (움직임 줄이기에서는 끔) */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .price-body .plan__cycle.has-thumb { position: relative; }
  .price-body .plan__cycle.has-thumb .chip { position: relative; z-index: 1; transition: color .3s ease; }
  .price-body .plan__cycle.has-thumb .chip[aria-pressed="true"] { background: transparent; box-shadow: none; }
  .cyc-thumb { position: absolute; left: 0; top: 0; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(25,31,40,.12); pointer-events: none; }
  .cyc-thumb.go { transition: transform .42s cubic-bezier(.22,1,.36,1), width .42s cubic-bezier(.22,1,.36,1); }
  @keyframes prRoll { from { opacity: 0; transform: translateY(14px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
  .pr-roll { animation: prRoll .5s cubic-bezier(.22,1,.36,1) both; }
  .plan__bill.pr-roll, .plan__fam-note.pr-roll { animation-delay: .08s; }
  @keyframes prIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  .plans.pr-in > .plan { animation: prIn .7s cubic-bezier(.22,1,.36,1) both; }
  .plans.pr-in > .plan:nth-child(2) { animation-delay: .07s; }
  .plans.pr-in > .plan:nth-child(3) { animation-delay: .14s; }
  .plans.pr-in > .plan:nth-child(4) { animation-delay: .21s; }
  .price-body .plan { transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease; }
  .price-body .plan:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -26px rgba(30,60,120,.35); }
  .price-sec .coin-rows li { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .6s cubic-bezier(.22,1,.36,1); }
  .price-sec .coin-rows.on li { opacity: 1; transform: none; }
  .price-sec .coin-rows.on li:nth-child(2) { transition-delay: .08s; }
  .price-sec .coin-rows.on li:nth-child(3) { transition-delay: .16s; }
  .price-sec .coin-rows.on li:nth-child(4) { transition-delay: .24s; }
}
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) { .price-body .plans.pr-still > .plan { transition: none; } }
/* 2026-11-22 user ('지금은 좀 복잡해보여서 시인성이 안좋긴해. 좀 더 깔끔하게'): 가격 안내 PC 정리 — 회색 테두리 카드, 나이 안내·단체 문의는 카드 아래 한 줄,
   할인 문구는 회색, 체크는 차분한 색, 프리미엄 버튼만 파랑, 고른 결제 주기는 파란 글씨·테두리 (PC만) */
@media (min-width: 768px) {
  .price-body .plan { border: 1px solid #e5e8eb; background: #fff; box-shadow: 0 1px 2px rgba(25,31,40,.04), 0 18px 36px -30px rgba(30,60,120,.28); }
  .price-body .plan__who, .price-body .plan__link--foot { display: none; }
  .price-body .plan__fam-note { font-weight: 500; color: #8b95a1; }
  .price-body .plan__bill { color: #6b7684; }
  .price-body .plan__tag { background: #f2f4f6; color: #6b7684; }
  .price-body .plan__feats { color: #4e5968; }
  .price-body .plan__feats li::before { color: #9aa5b4; }
  .price-body [aria-labelledby="plan-pro"] .plan__btn:not([disabled]) { background: var(--primary); border-color: var(--primary); color: #fff; }
  .price-body .plan .seg { background: #f2f4f6; }
  .price-body .plan .seg .chip { color: #8b95a1; }
  .price-body .plan .seg .chip[aria-pressed="true"] { color: var(--primary); font-weight: 700; box-shadow: inset 0 0 0 1.5px #b9cff7, 0 1px 2px rgba(25,31,40,.06); }
  .price-body .plan__cycle.has-thumb .chip[aria-pressed="true"] { box-shadow: none; }
  .price-body .cyc-thumb { box-shadow: inset 0 0 0 1.5px #b9cff7, 0 1px 2px rgba(25,31,40,.06); }
  .price-body .stepper { box-shadow: none; }
  .plans-note { margin: -52px 0 0; text-align: center; font-size: 13.5px; color: #8b95a1; }
  .plans-note a { color: #6b7684; text-decoration: underline; }
}
@media (min-width: 768px) { .price-body .plan__opt { grid-template-columns: minmax(0, 1fr); } .price-body .plan .seg.plan__cycle { justify-self: stretch; width: 100%; box-sizing: border-box; } }
/* 2026-11-22 user ('화면의 어느정도 그라데이션도 좀 넣으면 어떨까', '위쪽보다는 좀 가운데에 살짝 … 밋밋해서'): 가격 안내 PC 배경에 옅은 파란 빛 — 카드 뒤 가운데가 가장 밝고 양옆에 옅게 (PC만) */
@media (min-width: 768px) {
  #main:has(.price-head) { background:
    radial-gradient(1200px 640px at 50% 540px, rgba(36,105,237,.2), rgba(36,105,237,0) 70%),
    radial-gradient(560px 600px at 3% 560px, rgba(108,132,255,.18), rgba(108,132,255,0) 70%),
    radial-gradient(560px 600px at 97% 500px, rgba(36,105,237,.17), rgba(36,105,237,0) 70%),
    radial-gradient(900px 480px at 50% 1250px, rgba(36,105,237,.07), rgba(36,105,237,0) 70%); }
}

/* ---------- PC 프리미엄 학생 콘솔 (2026-11-25 user, 시안 프리미엄_브웹_1124): 홈 · 이용권·결제 · 코인 · 계정 ----------
   Only drawn on wide screens (views-student.js proConsole); the phone pages are not touched. No animation. */
.cs--pro { --pv-bg: #f2f5fb; --pv-soft: #f1f4f9; --pv-faint: #9aa4b3; --pv-c1: #2469ed; --pv-c2: #7aa6f5; --pv-c3: #c3d6fa; --pv-ok: #1f7a52; --pv-line: #e1e7f0; --pv-line2: #cfd7e4;
  background: var(--pv-bg); color: var(--ink); letter-spacing: -0.012em; }
:root[data-theme="dark"] .cs--pro { --pv-bg: var(--bg); --pv-soft: var(--surface-2); --pv-faint: #7d889b; --pv-c1: #7ea6ff; --pv-c2: #4f72b8; --pv-c3: #33466e; --pv-ok: #6fd3a2; --pv-line: var(--line); --pv-line2: var(--line-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cs--pro { --pv-bg: var(--bg); --pv-soft: var(--surface-2); --pv-faint: #7d889b; --pv-c1: #7ea6ff; --pv-c2: #4f72b8; --pv-c3: #33466e; --pv-ok: #6fd3a2; --pv-line: var(--line); --pv-line2: var(--line-2); } }
.cs--pro .num { font-variant-numeric: tabular-nums; }
.cs--pro .cs-top { height: 60px; padding-inline: 24px; border-bottom-color: var(--pv-line); }
.cs--pro .cs-top__r { gap: 16px; font-size: 14px; }
.pv-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border: 1px solid var(--pv-line); border-radius: 999px; font-weight: 700; color: var(--ink); }
.pv-chip:hover { color: var(--ink); background: var(--pv-soft); }
.pv-chip .coin, .pv-big .coin, .pv-opt .coin, .pv-tipbox .coin { width: 1em; height: 1em; flex: none; }
.pv-me { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.pv-me:hover { color: var(--ink); }
.pv-me i { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; }
.pv-out { border: 0; background: none; padding: 0; color: var(--muted); font-size: 14px; }
.pv-out:hover { color: var(--ink); }
.cs--pro .cs-body { max-width: none; margin: 0; padding: 0; gap: 0; grid-template-columns: 216px minmax(0, 1fr); align-items: stretch; min-height: calc(100vh - 60px);
  background: linear-gradient(to right, var(--surface) 215px, var(--pv-line) 215px 216px, transparent 216px); }
.cs--pro .cs-side { top: 60px; height: calc(100vh - 60px); gap: 2px; padding: 20px 12px; background: var(--surface); border-right: 1px solid var(--pv-line); }
.cs--pro .cs-nav a { min-height: 0; padding: 9px 12px; gap: 10px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.cs--pro .cs-nav a .icon { width: 18px; height: 18px; color: var(--pv-faint); stroke-width: 1.8; }
.cs--pro .cs-nav a:hover { background: var(--pv-soft); }
.cs--pro .cs-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); }
.cs--pro .cs-nav a[aria-current="page"] .icon { color: var(--primary); }
.pv-foot { margin-top: auto; padding: 12px; border-top: 1px solid var(--pv-line); font-size: 13px; line-height: 1.8; color: var(--muted); }
.cs--pro .cs-main { gap: 0; padding: 32px 36px 96px; }
.cs--pro .cs-main > * { width: 100%; max-width: 1080px; margin-inline: auto; }
.cs--pro .cs-head { display: block; padding: 0; margin-bottom: 22px; border: 0; }
.cs--pro .cs-head__t { gap: 6px; }
.cs--pro .cs-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.3; }
.cs--pro .cs-head .cs-sub { font-size: 14.5px; color: var(--muted); }
.cs--pro .pv-page .cs-content { gap: 0; }
.cs--pro .pv-help .cs-tabs { margin-bottom: 16px; }
.cs--pro .pv-narrow .cs-content > * { max-width: 880px; }
.cs--pro a.pv-btn:hover { color: inherit; }

.pv-k { font-size: 13px; color: var(--muted); }
.pv-k--gap { margin: 4px 0 0; }
.pv-strong { font-weight: 700; }
.pv-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pv-row--end { margin-top: 14px; }
.pv-row--start { justify-content: flex-start; }
.pv-box { background: var(--surface); border: 1px solid var(--pv-line); border-radius: 14px; }
.pv-pad { padding: 20px 22px; }
.pv-sec { margin-top: 28px; }
.pv-sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cs--pro .pv-sec-h h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.pv-sec-h p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.pv-ico { width: 26px; height: 26px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); display: inline-grid; place-items: center; flex: none; }
.pv-ico svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; padding: 10px 16px; font-weight: 700; font-size: 14.5px; line-height: 1.4; white-space: nowrap; background: var(--surface); color: var(--ink); cursor: pointer; }
.pv-btn--primary, a.pv-btn--primary { background: var(--primary); color: var(--on-primary); }
.pv-btn--primary:hover, a.pv-btn--primary:hover { background: var(--primary-ink); color: var(--on-primary); }
.pv-btn--line { box-shadow: inset 0 0 0 1px var(--pv-line2); }
.pv-btn--line:hover { background: var(--pv-soft); }
.pv-btn--sm { padding: 6px 11px; font-size: 13px; }
.pv-btn:disabled { background: var(--pv-soft); color: var(--pv-faint); box-shadow: inset 0 0 0 1px var(--pv-line); cursor: not-allowed; }
.pv-tlink { border: 0; background: none; padding: 0; font: inherit; color: var(--primary); font-weight: 600; font-size: 14px; cursor: pointer; }
.pv-tlink:hover { color: var(--primary-ink); text-decoration: underline; text-underline-offset: 3px; }
.pv-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; white-space: nowrap; }
.pv-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pv-ok); }
.pv-tag--warn::before { background: #d99021; } .pv-tag--bad::before { background: var(--bad); } .pv-tag--mute::before { background: var(--pv-faint); }
.pv-nm .pv-tag, .pv-big2 .pv-tag { margin-left: 12px; vertical-align: 7px; }
.pv-lines { display: grid; gap: 8px; margin: 14px 0 0; font-size: 14px; }
.pv-lines div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; align-items: center; }
.pv-lines dt { color: var(--muted); } .pv-lines dd { margin: 0; font-weight: 600; }
.pv-via { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; }
.pv-via svg { display: block; width: 100%; height: 100%; }
.pv-sep { color: var(--pv-line2); margin: 0 10px; }
.pv-band { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 12px; padding: 12px 16px; margin-bottom: 22px; font-size: 14px; border: 1px solid transparent; }
.pv-band b { font-weight: 700; margin-right: 8px; }
.pv-band--warn { background: var(--warn-soft); border-color: #f0dcb8; color: var(--warn); }
.pv-band--bad { background: var(--bad-soft); border-color: #f2cfc5; color: var(--bad); }
.pv-band--info { background: var(--primary-soft); border-color: #b9cff7; color: var(--primary-ink); }
.pv-band .pv-btn { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; flex: none; }

/* 홈 */
.pv-status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pv-status > .pv-pad { padding: 24px 26px; }
.pv-status > .pv-pad + .pv-pad { border-left: 1px solid var(--pv-line); }
.pv-status .pv-row:first-child { min-height: 30px; }
.pv-nm { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; margin-top: 8px; }
.pv-nm small, .pv-big2 small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 10px; letter-spacing: 0; }
.pv-more { margin-top: 16px; }
.pv-dlink { font-weight: 700; color: var(--primary); }
.pv-dlink:hover { color: var(--primary-ink); text-decoration: underline; text-underline-offset: 3px; }
.pv-big { display: flex; align-items: center; gap: 8px; font-size: 36px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.1; margin-top: 8px; }
.pv-big .coin { width: .62em; height: .62em; }
.pv-big--xl { font-size: 44px; }
.pv-big--xl .coin { width: .55em; height: .55em; }
.pv-stack { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; margin-top: 14px; background: var(--pv-soft); }
.pv-stack i { display: block; height: 100%; }
.pv-stack .c1, .pv-legend i.c1, .pv-cleg i.c1 { background: var(--pv-c1); }
.pv-stack .c2, .pv-legend i.c2, .pv-cleg i.c2 { background: var(--pv-c2); }
.pv-stack .c3, .pv-legend i.c3, .pv-cleg i.c3 { background: var(--pv-c3); }
.pv-legend { display: grid; gap: 6px; margin-top: 12px; font-size: 13px; }
.pv-legend > div { display: grid; grid-template-columns: 116px auto; justify-content: start; align-items: center; gap: 8px; color: var(--ink-2); }
.pv-lk { display: flex; align-items: center; gap: 8px; }
.pv-legend i, .pv-cleg i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; flex: none; }
.pv-legend b { font-weight: 700; color: var(--ink); }
.pv-legend small { color: var(--pv-faint); font-size: 12px; margin-left: 6px; }
.pv-tip { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; vertical-align: -4px; color: var(--pv-faint); cursor: help; border-radius: 50%; outline: none; }
.pv-tip > svg { width: 15px; height: 15px; }
.pv-tip:hover, .pv-tip:focus-visible { color: var(--ink-2); }
.pv-tip:focus-visible { box-shadow: 0 0 0 2px #b9cff7; }
.pv-tipbox { position: absolute; left: -10px; top: calc(100% + 10px); width: 232px; background: #141a26; color: #fff; border-radius: 10px; padding: 12px 14px 11px; display: none; gap: 7px; font-size: 13px; font-weight: 500; text-align: left; box-shadow: 0 12px 30px rgba(16,20,28,.22); z-index: 15; }
.pv-tipbox::before { content: ""; position: absolute; left: 14px; top: -5px; width: 10px; height: 10px; background: #141a26; transform: rotate(45deg); border-radius: 2px; }
.pv-tip:hover .pv-tipbox, .pv-tip:focus .pv-tipbox { display: grid; }
.pv-tipbox b { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.pv-tipbox > span { display: flex; justify-content: space-between; align-items: center; color: #d6dce6; }
.pv-tipbox em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.pv-tipbox small { font-size: 11.5px; color: #98a2b1; margin-top: 3px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.1); }
.pv-lower { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin-top: 20px; align-items: stretch; }
.pv-study { padding: 18px 22px 16px; }
.pv-empty-t { font-weight: 700; margin: 22px 0 4px; }
.pv-cal { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: stretch; }
.pv-cside { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 4px 0 2px; }
.pv-chero .pv-k { display: block; }
.pv-chero b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin-top: 6px; }
.pv-chero b small { font-size: 18px; font-weight: 700; margin-left: 3px; letter-spacing: 0; color: var(--ink-2); }
.pv-crows { margin: 0; border-top: 1px solid var(--pv-line); }
.pv-crows div { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--pv-line); }
.pv-crows dt { font-size: 13.5px; color: var(--muted); }
.pv-crows dd { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.pv-crows dd span { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.pv-calnav { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 10px; }
.pv-calnav b { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; min-width: 52px; text-align: center; }
.pv-calnav button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: var(--pv-soft); color: var(--ink-2); font-size: 16px; line-height: 1; padding: 0; }
.pv-calnav button:disabled { background: transparent; color: var(--pv-line2); cursor: default; }
.pv-mcal { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; text-align: center; }
.pv-mcal b { font-size: 12px; font-weight: 600; color: var(--pv-faint); padding-bottom: 4px; }
.pv-mcal span { display: grid; place-items: center; height: 38px; }
.pv-mcal em { font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.pv-mcal .on em { background: var(--pv-c1); color: var(--on-primary); }
.pv-mcal .today em { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--primary); font-weight: 800; }
.pv-mcal .fut em { color: var(--pv-line2); }
.pv-app { overflow: hidden; padding: 20px 22px 0; background: linear-gradient(160deg, #e7effe 0%, #f6f9ff 70%); border-color: #d6e3fb; }
:root[data-theme="dark"] .pv-app { background: var(--surface-2); border-color: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pv-app { background: var(--surface-2); border-color: var(--line); } }
.cs--pro .pv-app h3 { font-size: 16px; font-weight: 800; margin: 0; letter-spacing: -0.03em; }
.pv-app p { font-size: 13px; color: var(--ink-2); margin: 4px 0 0; }
.pv-app__row { display: flex; align-items: flex-end; gap: 16px; margin-top: 14px; }
.pv-app__shot { width: 118px; height: 132px; border-radius: 20px 20px 0 0; border: 5px solid #1f2a3c; border-bottom: 0; overflow: hidden; flex: none; box-shadow: 0 10px 26px rgba(31,42,60,.18); background: #fff; }
.pv-app__shot img { width: 100%; display: block; }
.pv-app__qrs { display: grid; gap: 8px; padding-bottom: 18px; }
.pv-app figure { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pv-app figure img { width: 54px; height: 54px; background: #fff; border-radius: 8px; padding: 4px; border: 1px solid #d6e3fb; }

/* 이용권·결제 */
.pv-big2 { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; margin-top: 6px; }
.pv-inc { list-style: none; padding: 14px 0 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--ink-2); border-top: 1px solid var(--pv-line); }
.pv-inc li::before { content: "✓"; color: var(--primary); font-weight: 800; margin-right: 6px; }
.pv-opt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pv-opt button { position: relative; display: grid; gap: 6px; align-content: start; text-align: left; background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px var(--pv-line2); border-radius: 12px; padding: 14px 44px 14px 16px; color: var(--ink); }
.pv-opt button.on { box-shadow: inset 0 0 0 1.5px var(--primary); background: linear-gradient(180deg, var(--primary-soft), var(--surface)); }
.pv-opt .pv-radio { position: absolute; right: 14px; top: 14px; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--pv-line2); background: var(--surface); }
.pv-opt button.on .pv-radio { box-shadow: inset 0 0 0 5px var(--primary); }
.pv-opt b { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; }
.pv-opt em { font-style: normal; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.pv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pv-table th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 500; padding: 10px 22px; border-bottom: 1px solid var(--pv-line); background: var(--surface); }
.pv-table td { padding: 12px 22px; border-bottom: 1px solid var(--pv-line); color: var(--ink-2); white-space: nowrap; }
.pv-table tr:last-child td { border-bottom: 0; }
.pv-table .r { text-align: right; } .pv-table td.amt { font-weight: 700; color: var(--ink); } .pv-table td.fnt { color: var(--pv-faint); }
.pv-tfoot { border-top: 1px solid var(--pv-line); padding: 14px 22px 16px; }
.pv-helps { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; }
.pv-helps .pv-tlink { font-size: 13.5px; font-weight: 400; }
.pv-fine { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin: 8px 0 0; }
.pv-pad > .pv-fine { margin-top: 12px; }
.pv-empty { margin: 0; padding: 18px 22px; }
.pv-danger summary { list-style: none; cursor: pointer; font-size: 14px; color: var(--muted); font-weight: 600; padding: 14px 22px; display: flex; justify-content: space-between; }
.pv-danger summary::-webkit-details-marker { display: none; }
.pv-danger summary::after { content: "펼치기"; font-weight: 500; font-size: 13px; }
.pv-danger[open] summary::after { content: "접기"; }
.pv-in { padding: 0 22px 18px; display: grid; gap: 12px; }
.pv-in .pv-k { margin: 0; }
.pv-dbtn { justify-self: start; border: 0; background: none; box-shadow: inset 0 0 0 1px var(--bad); color: var(--bad); border-radius: 8px; padding: 8px 13px; font-weight: 700; font-size: 13.5px; }
.pv-dbtn:disabled { box-shadow: inset 0 0 0 1px var(--pv-line2); color: var(--pv-faint); cursor: not-allowed; }

/* 코인 */
.pv-coinsum { display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.pv-coinsum > div { padding: 22px 24px; }
.pv-coinsum > div + div { border-left: 1px solid var(--pv-line); }
.pv-cleg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.pv-cleg > div { padding: 0 14px; display: grid; gap: 3px; align-content: start; }
.pv-cleg > div:first-child { padding-left: 0; }
.pv-cleg > div + div { border-left: 1px solid var(--pv-line); }
.pv-cleg .pv-lk { gap: 7px; font-size: 13px; color: var(--muted); }
.pv-cleg b { font-size: 18px; font-weight: 700; }
.pv-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border-top: 1px solid var(--pv-line); padding-top: 14px; }
.pv-preview div + div { border-left: 1px solid var(--pv-line); padding-left: 18px; }
.pv-preview b { display: block; font-size: 16px; margin-top: 6px; }
.pv-seg { display: inline-flex; background: var(--pv-soft); border-radius: 8px; padding: 3px; }
.pv-seg button { border: 0; background: none; padding: 5px 11px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pv-seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--pv-line); }
/* a long month scrolls inside the box with the head kept (OCAP_UX_RULES: 표 안 스크롤) */
.pv-scroll { max-height: 520px; overflow-y: auto; border-radius: 14px; }
.pv-scroll thead th { position: sticky; top: 0; z-index: 1; }

/* 계정 */
.pv-profile { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--pv-line); border-radius: 14px; }
.pv-profile > i { width: 46px; height: 46px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); font-style: normal; font-weight: 800; font-size: 18px; display: grid; place-items: center; flex: none; }
.pv-pn { display: flex; align-items: center; gap: 8px; }
.pv-pn b { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.pv-pmail { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.pv-pchip { font-size: 12px; font-weight: 700; color: var(--primary-ink); background: var(--primary-soft); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pv-rows > div { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 22px; font-size: 14px; }
.pv-rows > div + div { border-top: 1px solid var(--pv-line); }
.pv-k2 { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.pv-d { color: var(--muted); font-size: 13px; }
.pv-sw { width: 38px; height: 22px; border-radius: 999px; background: var(--pv-line2); position: relative; border: 0; padding: 0; flex: none; }
.pv-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.pv-sw.on { background: var(--primary); } .pv-sw.on::after { left: 19px; }
.pv-sw:disabled { opacity: .5; cursor: not-allowed; }
.pv-chk { display: grid; gap: 10px; margin-top: 12px; }
.pv-chk label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.pv-chk input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--bad); flex: none; }

/* narrower PC windows: keep everything in view */
@media (max-width: 1180px) {
  .cs--pro .cs-main { padding: 28px 24px 80px; }
  .pv-lower { grid-template-columns: minmax(0, 1fr); }
  .pv-app__row { justify-content: flex-start; }
}
@media (max-width: 1000px) {
  .pv-status, .pv-coinsum { grid-template-columns: minmax(0, 1fr); }
  .pv-status > .pv-pad + .pv-pad, .pv-coinsum > div + div { border-left: 0; border-top: 1px solid var(--pv-line); }
  .pv-cal { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pv-table td { white-space: normal; }
}

/* ---------- PC 패밀리 매니저 콘솔 (2026-11-25 user, 시안 패밀리_브웹_1125 family_v3 · family_10): 홈 · 멤버 · 이용권·결제 · 계정 ----------
   The 프리미엄 console's look (.cs--pro, pv-*) with the family's own parts (fv-*). Only drawn on wide screens
   (views-teacher.js fvShell); the phone pages are not touched. No animation. */
.cs--fam .cs-main > * { max-width: 960px; margin-inline: 0; }
.cs--fam .pv-help > * { max-width: 1080px; }
.fv-head { margin-bottom: 22px; }
.fv-head + .pv-sec { margin-top: 6px; }
.cs--fam .fv-head h1:focus, .cs--fam .fv-dlg h3:focus { outline: none; }
.cs--fam .pv-box:has(> table) { overflow: hidden; }
.cs--fam .fv-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.3; }
.fv-lead { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }
.fv-crumb { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.fv-crumb a { color: var(--muted); }
.fv-crumb a:hover { color: var(--ink); }
.fv-crumb span { color: var(--pv-faint); }
.fv-crumb b { color: var(--ink); font-weight: 600; }
.fv-need { color: var(--caution); font-weight: 600; }
.cs--fam .pv-sec-h h2 { font-size: 17px; gap: 6px; }
.cs--fam .pv-sec-h p { font-size: 14px; }
.fv-empty b { display: block; font-size: 16px; }
.fv-empty .pv-k { margin: 4px 0 14px; }
.fv-who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.fv-who > i { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); font-style: normal; font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }

/* 홈 */
.fv-wkhead { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.fv-wkhead .pv-sec-h { margin: 0; }
.fv-wkpick { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.fv-wkarr { width: 32px; height: 32px; padding: 0; border-radius: 8px; border: 1px solid var(--pv-line2); background: var(--surface); font-size: 16px; color: var(--ink-2); user-select: none; }
.fv-wkarr:disabled { opacity: .35; cursor: default; }
.fv-wkbtn { width: 228px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--pv-line2); border-radius: 8px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; user-select: none; }
.fv-wkbtn.open { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.fv-wkpop { position: absolute; right: 36px; top: 40px; z-index: 20; width: 300px; padding: 12px 14px 14px; background: var(--surface); border: 1px solid var(--pv-line); border-radius: 12px; box-shadow: var(--float); }
.fv-wkpop[hidden] { display: none; }
.fv-wkm { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fv-wkm b { font-size: 14.5px; }
.fv-wkm button { width: 28px; height: 28px; padding: 0; border: 0; background: none; border-radius: 6px; font-size: 16px; color: var(--ink-2); }
.fv-wkm button:disabled { opacity: .3; cursor: default; }
.fv-wh, .fv-wr { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.fv-wh span { font-size: 12px; color: var(--muted); padding: 4px 0; }
.fv-wr { border-radius: 8px; cursor: pointer; outline: none; }
.fv-wr span { padding: 7px 0; font-size: 13.5px; }
.fv-wr .o { color: var(--pv-faint); }
.fv-wr:hover { background: var(--pv-soft); }
.fv-wr:focus-visible { box-shadow: inset 0 0 0 2px var(--primary); }
.fv-wr.sel { background: var(--primary-soft); }
.fv-wr.sel span { color: var(--primary-ink); font-weight: 700; }
.fv-wr .td { text-decoration: underline; text-underline-offset: 3px; }
.fv-wr.fut { cursor: default; }
.fv-wr.fut span { color: var(--pv-line2); }
.fv-wr.fut:hover { background: none; }
.fv-mcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fv-mcard { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--pv-line); border-radius: 14px; color: var(--ink); text-align: left; }
.fv-mcard:hover { border-color: #b9cff7; color: var(--ink); text-decoration: none; }
.fv-nl { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.fv-nl b { font-size: 16px; }
.fv-nl .pv-k { font-size: 14px; }
.fv-wk3 { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.fv-wk3 > span { display: grid; gap: 6px; justify-items: center; }
.fv-wk3 em { font-style: normal; font-size: 12px; color: var(--muted); }
.fv-wk3 i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.fv-wk3 .on i { background: var(--primary); }
.fv-wk3 .miss i { box-shadow: inset 0 0 0 1.5px var(--pv-line2); }
.fv-wk3 .today em { color: var(--ink); font-weight: 800; }
.fv-wk3 .fut em { color: var(--pv-faint); }
.fv-mline { margin: 0; font-size: 14px; color: var(--ink-2); }
.fv-mline b { color: var(--ink); font-weight: 800; }
.fv-dotsep { color: var(--pv-faint); margin: 0 8px; }
.fv-mst { font-size: 14px; color: var(--muted); }
.fv-mst.bad { color: var(--caution); font-weight: 600; }
.fv-planline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; padding: 16px 22px; font-size: 14px; color: var(--muted); }
.fv-planline b { color: var(--ink); margin-left: 4px; }
.fv-sep { width: 1px; height: 14px; background: var(--pv-line2); }
.fv-planline .pv-tlink { margin-left: 8px; }

/* 멤버 */
.fv-h1c { display: flex; align-items: center; gap: 14px; }
.fv-hsep { display: block; width: 1.5px; height: 20px; background: var(--pv-line2); }
.fv-cnt { display: inline-flex; align-items: center; gap: 6px; padding-top: 2px; font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: 0; line-height: 1; }
.fv-cnt svg { width: 19px; height: 19px; stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fv-msearch { position: relative; width: 260px; margin: 0 0 12px; }
.fv-msearch svg { position: absolute; left: 12px; top: 11px; width: 17px; height: 17px; stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.fv-msearch input { width: 100%; height: 40px; padding: 0 12px 0 38px; border: 1px solid var(--pv-line2); border-radius: 8px; background: var(--surface); font: inherit; font-size: 14px; color: var(--ink); }
.fv-msearch input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.fv-mbox { overflow: hidden; }
.fv-mtbl { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.fv-mtbl th { padding: 12px 22px; border-bottom: 1px solid var(--pv-line); text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); }
.fv-mtbl td { padding: 9px 22px; border-bottom: 1px solid var(--pv-line); color: var(--ink-2); vertical-align: middle; }
.fv-mtbl th:nth-child(n+2):nth-child(-n+4), .fv-mtbl td:nth-child(n+2):nth-child(-n+4) { text-align: center; }
.fv-mtbl .r { text-align: right; }
.fv-mtbl tbody tr:last-child td { border-bottom: 0; }
.fv-mrow { cursor: pointer; outline: none; }
.fv-mrow:hover td, .fv-mrow.open td { background: #f8fafd; }
.fv-mrow:focus-visible td { box-shadow: inset 0 2px 0 var(--primary), inset 0 -2px 0 var(--primary); }
.fv-mtbl .fv-who > i { width: 34px; height: 34px; font-weight: 700; }
.fv-mtbl .fv-who b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.fv-sub { display: block; font-size: 13px; color: var(--muted); }
.fv-car { display: inline-block; color: var(--pv-faint); font-size: 16px; }
.fv-mrow.open .fv-car { transform: rotate(180deg); color: var(--primary); }
.fv-xrow td { padding: 0 22px; background: #f8fafd; }
.fv-xrow[hidden] { display: none; }
.fv-xin { display: flex; align-items: center; padding: 9px 0 9px 44px; font-size: 14.5px; }
.fv-xl { margin-right: 10px; color: var(--muted); }
.fv-xv { margin-right: 4px; color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.fv-xsep { width: 1px; height: 14px; margin: 0 20px; background: var(--pv-line2); }
.fv-xi { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; display: grid; place-items: center; color: var(--muted); }
.fv-xi:hover { background: var(--pv-soft); color: var(--ink); }
.fv-xi svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fv-xi .ec, .fv-xi.on .eo { display: none; }
.fv-xi.on .ec { display: block; }
.fv-xgo { margin-left: auto; font-size: 13.5px; font-weight: 600; }
.fv-mnone { padding: 28px 0 !important; text-align: center !important; color: var(--muted) !important; }
.fv-mfoot { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px; border-top: 1px solid var(--pv-line); font-size: 13.5px; }
.fv-pg { display: flex; gap: 4px; }
.fv-pg button { min-width: 30px; height: 30px; padding: 0 6px; border: 0; border-radius: 8px; background: none; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.fv-pg button.on { background: var(--primary-soft); color: var(--primary-ink); }
.fv-pg button:disabled { opacity: .35; cursor: default; }

/* 멤버 추가 · 로그인 정보 */
.fv-addgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.fv-form { display: grid; gap: 18px; }
.fv-form hr { margin: 0; border: 0; border-top: 1px solid var(--pv-line); }
.fv-fld { display: grid; gap: 6px; min-width: 0; }
.fv-fld > span, .fv-fld > label { font-size: 13.5px; font-weight: 700; }
.fv-fld small { font-size: 14px; color: var(--muted); }
.fv-fld small.bad { color: var(--caution); }
.fv-form input, .fv-form select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--pv-line2); border-radius: 8px; background: var(--surface); font: inherit; font-size: 15px; color: var(--ink); }
.fv-form select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6779' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; }
.fv-form input:focus, .fv-form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.fv-form input[aria-invalid="true"] { border-color: var(--caution); }
.fv-form .fv-w200 { max-width: 200px; }
.fv-form .fv-w120 { max-width: 130px; }
.fv-grow { display: flex; align-items: center; gap: 10px; }
.fv-seg { display: inline-flex; gap: 2px; height: 42px; padding: 3px; border-radius: 10px; background: var(--pv-soft); }
.fv-seg button { padding: 0 16px; border: 0; border-radius: 8px; background: transparent; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.fv-seg button:hover { color: var(--ink); }
.fv-seg button.on { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(20,26,38,.14); }
.fv-chk { display: flex; align-items: center; gap: 8px; margin-top: -6px; font-size: 14px; font-weight: 600; }
.fv-form .fv-chk input { width: 17px; height: 17px; accent-color: var(--primary); }
.fv-okline { margin: -6px 0 0; font-size: 14px; color: var(--muted); }
.fv-okline:empty { display: none; }
.fv-frow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fv-inbtn { position: relative; }
.fv-form .fv-inbtn input { padding-right: 96px; }
.fv-inbtn button { position: absolute; right: 6px; top: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: var(--pv-soft); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.fv-paycard { position: sticky; top: 84px; display: grid; gap: 10px; }
.cs--fam .fv-paycard h3 { margin: 0; font-size: 15px; }
.fv-paycard .pv-lines div, .fv-dlg .pv-lines div { grid-template-columns: 112px 1fr; }
.fv-paycard .pv-fine { margin: 0; font-size: 14px; }
.fv-wide { width: 100%; padding: 12px; margin-top: 6px; }
.fv-credcard { max-width: 480px; padding: 8px 22px 20px; }
.fv-crow { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--pv-line); }
.fv-crow b { font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.fv-ib { width: 32px; height: 32px; padding: 0; border: 1px solid var(--pv-line2); border-radius: 8px; background: var(--surface); display: grid; place-items: center; }
.fv-ib svg { width: 16px; height: 16px; stroke: var(--ink-2); fill: none; stroke-width: 1.8; }
.fv-note { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--primary-soft); font-size: 13.5px; color: var(--primary-ink); }
.fv-cacts { display: flex; gap: 8px; margin-top: 14px; }
.fv-steps ol { list-style: none; counter-reset: s; display: grid; gap: 14px; max-width: 520px; margin: 0; padding: 0; }
.fv-steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; }
.fv-steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--pv-soft); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.fv-steps li div { display: grid; }
.fv-steps li span { font-size: 13.5px; color: var(--muted); }
.fv-steps figure { margin: 0; }
.fv-steps img { display: block; width: 72px; height: 72px; padding: 4px; border: 1px solid var(--pv-line); border-radius: 8px; background: #fff; }
.fv-acts { gap: 8px; margin-top: 18px; }

/* 멤버 정보 */
.fv-hacts { margin-top: 12px; }
.fv-calhead { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 14px; }
.fv-mnav { display: flex; align-items: center; gap: 10px; }
.fv-mnav b { font-size: 16px; color: var(--primary); }
.fv-mnav button { width: 28px; height: 28px; padding: 0; border-radius: 8px; border: 1px solid var(--pv-line2); background: var(--surface); color: var(--ink-2); }
.fv-mnav button:disabled { opacity: .4; cursor: default; }
.fv-mcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 560px; text-align: center; font-size: 13.5px; }
.fv-mcal > b { padding-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.fv-mcal span { height: 34px; display: grid; place-items: center; }
.fv-mcal em { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; }
.fv-mcal .st em { background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; }
.fv-mcal .today em { box-shadow: 0 0 0 1.5px var(--primary); }
.fv-mcal .fut em { color: var(--pv-line2); }
.fv-utbl th:not(:first-child), .fv-utbl td:not(:first-child) { width: 160px; }
.fv-rows > div { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 22px; font-size: 14.5px; }
.fv-rows > div + div { border-top: 1px solid var(--pv-line); }
.fv-lb { display: grid; gap: 2px; font-weight: 600; color: var(--ink-2); }
.fv-lb small { font-weight: 400; font-size: 13px; color: var(--muted); }
.fv-v { min-width: 0; }
.fv-ed.on { grid-template-columns: 200px minmax(0, 1fr); background: #f8fafd; }
.fv-edf { display: flex; align-items: center; gap: 8px; }
.fv-edf input { width: 220px; height: 38px; padding: 0 12px; border: 1px solid var(--primary); border-radius: 8px; background: var(--surface); font: inherit; font-size: 15px; color: var(--ink); }
.fv-edf input:focus { outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.fv-below { margin-top: 10px; }

/* 이용권·결제 */
.fv-plan { padding: 16px 20px 18px; }
.fv-phead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fv-pname { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.2; }
.fv-ppill { padding: 4px 10px; border-radius: 999px; background: var(--pv-soft); font-size: 13.5px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.fv-pstat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--pv-soft); font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.fv-pstat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1f9d55; }
.fv-pstat.warn::before { background: #d99021; }
.fv-plan .pv-lines { gap: 6px; margin-top: 12px; }
.fv-plan .pv-lines div { grid-template-columns: 96px 1fr; }
.fv-plan .pv-lines dt { font-size: 14px; }
.fv-plan .pv-lines dd { font-size: 15px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.fv-sub2 { margin-left: 6px; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.fv-gpd { display: flex; align-items: center; gap: 6px; }
.fv-gp { display: inline-flex; width: 15px; height: 15px; flex: none; }
.fv-gp svg { width: 15px; height: 15px; }
/* member count lives in the plan card as one row (2026-11-25 user: 멤버수 카드 빼버려) */
.fv-seatlink { margin-left: 10px; border: 0; background: none; padding: 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--primary); cursor: pointer; }
.fv-seatlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.fv-opt .pv-k { font-size: 13px; }
.fv-osub { font-size: 13px; color: var(--muted); }
.fv-cyc-note { margin: 8px 0 0; }
.fv-btbl td:first-child { color: var(--ink-2); }
.fv-more { font-weight: 600 !important; }
.fv-dim { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(20, 26, 38, .35); }
.fv-dlg { display: grid; gap: 14px; width: 380px; max-width: calc(100vw - 32px); padding: 22px 24px; border-radius: 20px; background: var(--surface); box-shadow: var(--float); }
.cs--fam .fv-dlg h3 { margin: 0; font-size: 17px; }
.fv-dlg .pv-lines { margin: 0; }
.fv-dlg .pv-fine { margin: 0; font-size: 14px; }
.fv-stp { display: flex; align-items: center; gap: 14px; }
.fv-stp button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--pv-line2); border-radius: 8px; background: var(--surface); font-size: 17px; color: var(--ink); }
.fv-stp button:disabled { opacity: .4; cursor: not-allowed; }
.fv-stp b { min-width: 40px; text-align: center; font-size: 18px; }
.fv-acts3 { display: flex; justify-content: flex-end; gap: 8px; }

:root[data-theme="dark"] .fv-mrow:hover td, :root[data-theme="dark"] .fv-mrow.open td, :root[data-theme="dark"] .fv-xrow td, :root[data-theme="dark"] .fv-ed.on { background: var(--surface-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fv-mrow:hover td, :root:not([data-theme="light"]) .fv-mrow.open td, :root:not([data-theme="light"]) .fv-xrow td, :root:not([data-theme="light"]) .fv-ed.on { background: var(--surface-2); } }

/* narrower PC windows: keep everything in view */
@media (max-width: 1180px) {
  .fv-mcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fv-addgrid { grid-template-columns: minmax(0, 1fr) 280px; }
  .fv-mtbl col:first-child { width: 260px !important; }
}
@media (max-width: 1000px) {
  .fv-addgrid, .fv-frow2 { grid-template-columns: minmax(0, 1fr); }
  .fv-paycard { position: static; }
  .fv-wkhead { flex-wrap: wrap; }
  .fv-wkpop { right: 0; }
}

/* family: selected plan-cycle card is flat (2026-11-25 decision) */
.cs--fam .pv-opt button.on { background: var(--surface); }

/* family: small one-field windows (학년 바꾸기), PC only (2026-11-25 user: 카드가 너무 크지 않아?) */
@media (min-width: 768px) {
  dialog.modal.modal--fvsm { width: min(320px, calc(100vw - 32px)); border-radius: 16px; }
  .modal--fvsm .modal__inner { padding: 18px 20px 20px; gap: 12px; }
  .modal--fvsm .modal__inner h2 { font-size: 17px; }
  .modal--fvsm .icon-btn { width: 30px; height: 30px; min-height: 30px; }
  .modal--fvsm .modal__body { padding-block: 4px; margin-block: -4px; }
  .modal--fvsm .field > label { display: none; }
  .modal--fvsm select.input { height: 42px; min-height: 42px; font-size: 15px; }
  .modal--fvsm .modal__actions .btn { height: 38px; min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
}

/* coin 충전 window, PC: narrow, two pack tiles without radio circles (2026-11-25 user, refs Grok · Bloom · Perplexity) */
@media (min-width: 768px) {
  dialog.modal.modal--coin { width: min(400px, calc(100vw - 32px)); border-radius: 18px; }
  .modal--coin .modal__inner { padding: 20px 22px 22px; gap: 14px; }
  .modal--coin .modal__inner h2 { font-size: 18px; }
  .modal--coin .id-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .modal--coin .id-mode > legend { grid-column: 1 / -1; margin-bottom: 6px; }
  .modal--coin .id-mode__opt { position: relative; justify-content: center; text-align: center; padding: 14px 10px; border-radius: 12px; background: var(--surface); }
  .modal--coin .id-mode__opt input { position: absolute; opacity: 0; pointer-events: none; }
  .modal--coin .id-mode__opt > span { align-items: center; gap: 4px; }
  .modal--coin .id-mode__opt strong { font-size: 17px; }
  .modal--coin .id-mode__opt:has(input:checked) { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--primary-soft); }
  .modal--coin .id-mode__opt:not(:has(input:checked)):has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
  .modal--coin select.input { height: 44px; min-height: 44px; }
  .modal--coin .modal__actions .btn { height: 40px; min-height: 40px; padding: 0 18px; font-size: 14.5px; border-radius: 10px; }
}

/* family 로그인 정보: steps on the left joined by a line, the QR in its own column on the right (2026-11-25 user, ref WhatsApp 'Steps to log in') */
.fv-steps { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: 26px 28px; }
.fv-steps ol { gap: 0; max-width: none; }
.fv-steps li { grid-template-columns: 28px 1fr; gap: 14px; align-items: start; position: relative; padding-bottom: 22px; }
.fv-steps li:last-child { padding-bottom: 0; }
.fv-steps li::before { position: relative; z-index: 1; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--pv-line2, var(--line-2)); color: var(--ink); }
.fv-steps li:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 28px; bottom: 2px; width: 1.5px; background: var(--pv-line, var(--line)); }
.fv-steps li div { gap: 3px; padding-top: 2px; }
.fv-steps li b { font-size: 15px; }
.fv-qr { margin: 0; display: grid; justify-items: center; gap: 10px; padding-left: 32px; border-left: 1px solid var(--pv-line, var(--line)); }
.fv-qr img { width: 132px; height: 132px; padding: 8px; border: 1px solid var(--pv-line, var(--line)); border-radius: 12px; background: #fff; display: block; }
.fv-qr figcaption { font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
/* 2026-11-26 PC 패밀리 멤버 홈: one quiet line under the pass rows */
.pv-mnote { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
/* the page title takes focus after each move (screen readers); it is not a control, so no ring */
.cs--pro .cs-head h1[tabindex="-1"]:focus { outline: none; }
/* ---------- 2026-11-26 PC 클래스 선생님: 프리미엄·패밀리와 같은 틀 (.cs--cls) ---------- */
.cs--cls .cs-side { gap: 2px; }
.cl-ws { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 12px; margin: 0 0 14px; border: 1px solid var(--pv-line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.cl-ws:hover { background: var(--pv-soft); color: var(--ink); }
.cl-ws__m { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); font-size: 13px; font-weight: 800; letter-spacing: -0.04em; }
.cl-ws__t { display: grid; min-width: 0; }
.cl-ws__t b { font-size: 14.5px; font-weight: 700; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-ws__t span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-ws__s { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; margin-top: 6px; padding-top: 9px; border-top: 1px solid var(--pv-line); font-size: 12.5px; color: var(--ink-2); }
.cl-ws__s .warn { color: #b86e00; font-weight: 600; }
/* the old cards inside the new frame: the same box as .pv-box */
.cs--cls .cs-content > .card, .cs--cls .cs-content .card { border-color: var(--pv-line); border-radius: 14px; box-shadow: none; }
.cs--cls .cs-content { gap: 16px; }
.cs--cls.cs .cs-main { background: var(--pv-bg); }
.cl-ws__m .icon { width: 18px; height: 18px; stroke-width: 1.9; }
.cl-ws__s span { white-space: nowrap; }
/* frame details shared by the three PC consoles */
.cs--pro h1[tabindex="-1"]:focus { outline: none; }
.cs--pro .cs-head .cs-desc { display: block; margin-top: 6px; font-size: 14.5px; font-weight: 400; }
.cs--pro .cs-head .cs-desc::before { content: none; }
.cs--cls .clp-page .cs-content { gap: 16px; }
/* 클래스 홈 on the new frame: the title like the other pages, cards left-aligned, lines in the frame's colour */
.cs--cls .ch-top { padding-bottom: 0; margin-bottom: 6px; border-bottom: 0; align-items: center; }
.cs--cls .ch-title { font-size: 26px; letter-spacing: -0.035em; }
.cs--cls .ch-date { font-size: 14px; color: var(--muted); }
.cs--cls .ch-card { border-color: var(--pv-line); border-radius: 14px; }
.cs--cls .ch-card--today .ch-card__t { align-items: flex-start; text-align: left; }
.cs--cls .ch-card__k { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.cs--cls .ch-board__head .h-sec { font-size: 18px; letter-spacing: -0.03em; }
.cs--cls .table-wrap { border-color: var(--pv-line); border-radius: 14px; }
.cs--cls .ch-table thead th, .cs--cls .table-wrap thead th { background: var(--pv-soft); color: var(--muted); font-size: 13px; font-weight: 600; }
.cs--cls .ch-no { color: var(--muted); }
/* 학생 관리: title on the left, its two buttons on the right (they fell under the title in the new frame) */
.cs--cls .cs-head--sub { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.cs--cls .cs-head .btn { min-height: 40px; height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
/* 이용권·결제 and 설정 cards: the frame's quieter buttons */
.cs--cls .bill-acts .btn, .cs--cls .cs-content .card .btn:not(.btn--sm) { min-height: 40px; height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.cs--cls .cs-tabs a { font-size: 13.5px; }
/* back arrow on the same line as the title; form fields at the frame's size */
.cs--cls .cs-head:has(> .icon-btn) { display: flex; align-items: center; gap: 6px; }
.cs--cls .cs-head > .icon-btn { margin-left: -10px; }
.cs--cls .cs-content .card input.input, .cs--cls .cs-content .card select.input { height: 44px; min-height: 44px; font-size: 15px; border-radius: 10px; }
.cs--cls .cs-content .card h2, .cs--cls .cs-content .card .h-sec { font-size: 17px; letter-spacing: -0.03em; }

/* ---------- 2026-11-26 PC 클래스 홈 다듬기 (unslop): 숫자 카드는 숫자만, 탭·쪽 번호는 조용히, 표는 이름부터 왼쪽 정렬 ---------- */
.cs--cls .ch-top { margin-bottom: 4px; }
.cs--cls .ch-title { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.cs--cls .ch-date { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cs--cls .ch-date .icon { display: none; }
.cs--cls .ch-sum.ch-cards { gap: 16px; margin-top: 0; }
.cs--cls .ch-card { align-items: flex-start; align-content: flex-start; padding: 20px 24px; gap: 0; }
.cs--cls .ch-card__ico { display: none; }
.cs--cls .ch-card__t { gap: 4px; }
.cs--cls .ch-card--today .ch-card__t { align-items: stretch; }
.cs--cls .ch-card__k { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.cs--cls .ch-card__v { margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.cs--cls .ch-card__v b { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-right: 4px; }
.cs--cls .ch-card__s { margin-top: 4px; font-size: 13px; color: var(--muted); }
.cs--cls .ch-card__s .chg { font-weight: 600; color: var(--primary-ink); }
.cs--cls .ch-card .ch-bar { margin-top: 12px; height: 6px; background: var(--pv-soft); }
.cs--cls .ch-card--today .ch-card__link { margin: 12px 0 0; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--primary-ink); text-decoration: none; }
.cs--cls .ch-card--today .ch-card__link:hover { text-decoration: underline; }
.cs--cls .ch-card--rate { align-items: center; padding-right: 20px; }
.cs--cls .ch-rchart { height: 96px; }
.cs--cls .ch-rchart polygon { fill: none; }
.cs--cls .ch-rchart polyline { stroke: var(--pv-line2); stroke-width: 2; }
.cs--cls .ch-rchart circle { stroke: var(--pv-line2); r: 3.5; }
.cs--cls .ch-rchart circle.is-now { fill: var(--primary); stroke: var(--primary); r: 5; }
.cs--cls .ch-rchart__v { font-size: 12.5px; font-weight: 500; fill: var(--muted); font-variant-numeric: tabular-nums; }
.cs--cls .ch-rchart__v.is-now { font-weight: 700; fill: var(--primary-ink); }
.cs--cls .ch-rchart__w { font-size: 12px; fill: var(--pv-faint); }

.cs--cls .ch-board { margin-top: 32px; gap: 12px; }
.cs--cls .ch-board__head { justify-content: flex-start; gap: 4px; }
.cs--cls .ch-board__head .h-sec { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.cs--cls .ch-gear { color: var(--muted); }
.cs--cls .ch-tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 10px; background: var(--pv-soft); }
.cs--cls .ch-tab { min-height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 500; transition: background-color .15s, color .15s; }
.cs--cls .ch-tab:hover { color: var(--ink); }
.cs--cls .ch-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--pv-line), 0 1px 2px rgba(16, 24, 40, .06); }
.cs--cls .ch-tab__n { margin-left: 2px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }

.cs--cls .ch-table th, .cs--cls .ch-table td { padding-top: 12px; padding-bottom: 12px; }
.cs--cls .ch-table thead th { padding-top: 10px; padding-bottom: 10px; font-weight: 500; }
.cs--cls .ch-table th:first-child, .cs--cls .ch-table td:first-child { text-align: left; padding-left: 24px; }
.cs--cls .ch-table th:nth-child(2), .cs--cls .ch-table td:nth-child(2), .cs--cls .ch-table th:nth-child(3), .cs--cls .ch-table td:nth-child(3) { text-align: left; }
.cs--cls .ch-table td:nth-child(3) .ch-st { min-width: 0; }
.cs--cls .ch-no { font-size: 14px; font-variant-numeric: tabular-nums; }
.cs--cls .ch-name { font-weight: 600; text-decoration: none; }
.cs--cls .ch-st { font-size: 14px; }
.cs--cls .ch-st--away { color: #a4520b; }
.cs--cls .ch-st--away::before { background: #e8912c; }
.cs--cls .ch-table th.ch-day small { font-weight: 500; }
.cs--cls .ch-table th.ch-day.is-today, .cs--cls .ch-table td.ch-day.is-today { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.cs--cls .ch-table th.ch-day.is-today { color: var(--primary-ink); font-weight: 600; }
.cs--cls .ch-dot { width: 8px; height: 8px; background: var(--pv-line); }
.cs--cls .ch-dot.is-on { width: 10px; height: 10px; background: var(--primary); }
.cs--cls .ch-dot.is-future { box-shadow: inset 0 0 0 1px var(--pv-line2); background: transparent; }
.cs--cls .ch-table td.ch-n { font-variant-numeric: tabular-nums; }
.cs--cls .ch-table td.ch-n b { font-weight: 600; }
.cs--cls .ch-go a { color: var(--pv-faint); }
.cs--cls .ch-foot { margin-top: 4px; align-items: center; }
.cs--cls .ch-range { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cs--cls .ch-pager { gap: 4px; padding-top: 0; }
.cs--cls .ch-pager button { min-width: 32px; height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; font-size: 14px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cs--cls .ch-pager button:hover:not(:disabled) { background: var(--pv-soft); }
.cs--cls .ch-pager button[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--pv-line2); }
.cs--cls .ch-card--rate { align-items: flex-start; }
.cs--cls .ch-card--rate .ch-rchart { align-self: center; }
.cs--cls .ch-table td.ch-n b { font-weight: 500; color: var(--ink-2); }
.cs--cls .ch-board { margin-top: 20px; }
/* 2026-11-26 PC 클래스 홈: 요일 7칸 → 한 칸 주간 띠 */
.cs--cls .ch-c-wk { width: 200px; }
.cs--cls .ch-c-st { width: auto; }
.cs--cls .ch-c-name { width: 18%; }
.cs--cls .ch-table th.ch-wk, .cs--cls .ch-table td.ch-wk { text-align: left; }
.cs--cls .ch-wk__g { display: inline-grid; grid-template-columns: repeat(7, 18px); gap: 4px; vertical-align: middle; }
.cs--cls th.ch-wk .ch-wk__g span { text-align: center; font-size: 12px; font-weight: 500; color: var(--muted); }
.cs--cls th.ch-wk .ch-wk__g span.is-today { color: var(--primary-ink); font-weight: 700; }
.cs--cls .ch-pip { display: block; width: 18px; height: 18px; border-radius: 5px; background: var(--pv-soft); box-shadow: inset 0 0 0 1px var(--pv-line); }
.cs--cls .ch-pip.is-on { background: var(--primary); box-shadow: none; }
.cs--cls .ch-pip.is-future { background: transparent; box-shadow: inset 0 0 0 1px var(--pv-line); opacity: .6; }
.cs--cls .ch-pip.is-today { box-shadow: inset 0 0 0 1.5px var(--primary); }
.cs--cls .ch-pip.is-today.is-on { box-shadow: none; }
.cs--cls .ch-c-n { width: 88px; }

/* ---------- 베이직 학생 이용권·결제 (PC, 2026-12-01 user: 시안 _mock-student-pay.html 235 '응, 적용해') ---------- */
.bp { max-width: 885px; }
.bp-head h1 { margin: 0; font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -0.3px; color: var(--ink); outline: none; }
.bp-head p { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.bp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.bp-card { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; }
.bp-ch { display: flex; justify-content: space-between; align-items: center; height: 26px; }
.bp-ch > span:first-child { font-size: 14px; line-height: 20px; color: var(--muted); }
.bp-pill { font-style: normal; font-size: 12.5px; line-height: 18px; font-weight: 500; color: var(--ink-2); background: var(--soft, #eef2f7); border-radius: 999px; padding: 4px 10px; }
.bp-wal { display: inline-flex; color: var(--ink-2); }
.bp-big { display: flex; align-items: center; height: 40px; margin-top: 8px; font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.5px; color: var(--ink); }
.bp-coin .coin { width: 30px; height: 30px; margin-right: 10px; vertical-align: 0; }
.bp-coin small { align-self: flex-end; margin-left: 8px; font-size: 14px; line-height: 30px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.bp-sub { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--muted); }
.bp-hr { height: 1px; margin: 16px 0 10px; background: var(--line); }
.bp-link { display: block; height: 28px; font-size: 14.5px; line-height: 28px; font-weight: 600; color: var(--primary-ink); text-decoration: none; }
.bp-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.bp-sub2 { font-size: 13.5px; line-height: 28px; color: var(--muted); }
.bp-kv { display: flex; justify-content: space-between; align-items: center; height: 28px; font-size: 14px; }
.bp-kv span { color: var(--muted); }
.bp-kv b { font-weight: 600; color: var(--ink); }
.bp-use, .bp-hist, .bp-promo { margin-top: 16px; }
.bp-h2 { display: flex; justify-content: space-between; align-items: center; height: 28px; margin-bottom: 14px; }
.bp-h2 h2 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 700; color: var(--ink); }
.bp-h2 span { font-size: 13px; color: var(--muted); }
.bp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.bp-ut { display: flex; align-items: center; gap: 10px; height: 32px; }
.bp-uic { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--soft, #eef2f7); color: var(--ink-2); }
.bp-ut b { flex: 1; font-size: 14.5px; line-height: 22px; font-weight: 600; color: var(--ink); }
.bp-ul { font-size: 13.5px; font-weight: 600; color: var(--primary-ink); }
.bp-ul.is-zero { color: var(--muted); }
.bp-bar { height: 6px; margin-top: 12px; overflow: hidden; border-radius: 3px; background: var(--soft, #eef2f7); }
.bp-bar i { display: block; height: 100%; border-radius: 3px; background: #4a76d9; }
.bp-bar.is-zero i { background: #a7b1c2; }
.bp-us { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; line-height: 18px; color: var(--muted); }
.bp-promo { display: flex; align-items: center; gap: 16px; padding: 18px 24px; border-radius: 16px; background: var(--primary-soft); }
.bp-crown { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--surface, #fff); color: var(--primary-ink); }
.bp-ptx { flex: 1; min-width: 0; }
.bp-ptx b { display: block; font-size: 15px; line-height: 22px; font-weight: 700; color: var(--primary-ink); }
.bp-ptx p { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.bp-go { flex: none; gap: 6px; height: 40px; padding: 0 18px; font-size: 14px; }
.bp-hist { padding-bottom: 8px; }
.bp-hist .bp-h2 { margin-bottom: 10px; }
.bp-hrow { display: grid; grid-template-columns: 200px 1fr 120px; align-items: center; height: 44px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.bp-hh { height: 36px; font-size: 13px; color: var(--muted); }
.bp-hrow > :last-child { justify-self: end; display: inline-flex; align-items: center; gap: 4px; }
.bp-hrow b { font-weight: 600; }
.bp-hrow b.is-in { color: var(--primary-ink); }
.bp-hrow .coin { width: 14px; height: 14px; vertical-align: 0; }
/* 2026-12-01 다듬기① 빈 상태 (시안 269): 아이콘 · 한 줄 이유 · 다음 할 일 */
.bp-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 0 22px; }
.bp-empty > svg, .bp-empty > span:first-child { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 12px; box-sizing: border-box; border-radius: 14px; background: var(--surface-2, #f1f4f8); color: #8a94a6; }
.bp-empty b { margin-top: 14px; font-size: 15px; color: var(--ink); } .bp-empty span { margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 19px; } .bp-empty .btn { margin-top: 14px; }
/* 2026-12-01 user: '비밀번호 변경하기'는 로그인 줄 오른쪽에 */
.kv dd.kv-act { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* 2026-12-01 user: 패밀리 멤버 홈에서 '공부는 오캡 앱에서' 칸을 뺌 — 달력 한 칸만 */
.pv-lower--one { grid-template-columns: minmax(0, 1fr); }

/* ---------- PC 가격 안내 (2026-12-01 user: 시안 _mock-pricing.html → '실제 화면에도 적용'). 휴대폰은 예전 .plans 그대로 ---------- */
.pp-tg { display: flex; justify-content: center; margin: 8px 0 32px; }
.pp-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #e9edf3; }
.pp-seg button { height: 40px; padding: 0 20px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.pp-seg button[aria-pressed="true"] { background: var(--surface, #fff); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .1); }
.pp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.pp-card { position: relative; display: flex; flex-direction: column; padding: 28px 24px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface, #fff); }
.pp-card.is-hot { border: 1.5px solid #9dbcf5; }
.pp-pick { position: absolute; top: -12px; right: 20px; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; }
.pp-h { position: relative; display: flex; align-items: center; gap: 8px; height: 32px; }
.pp-h h2 { margin: 0; font-size: 22px; letter-spacing: -0.4px; color: var(--ink); }
.pp-tag { height: 24px; padding: 0 10px; border-radius: 999px; background: #f1f4f8; font-size: 12.5px; font-weight: 600; line-height: 24px; color: var(--ink-2); }
.pp-ic { position: absolute; top: -4px; right: 0; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: #eef4ff; color: #4a76d9; }
.pp-pr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; margin: 14px 0 0; }
.pp-pr small { flex: 0 0 100%; margin-bottom: 2px; font-size: 13.5px; font-weight: 600; line-height: 20px; color: var(--muted); }
.pp-pr b { font-size: 36px; font-weight: 800; line-height: 44px; letter-spacing: -0.8px; color: var(--ink); }
.pp-pr span { font-size: 18px; font-weight: 700; white-space: nowrap; color: var(--ink); }
.pp-sub { display: flex; align-items: center; gap: 10px; height: 34px; margin: 6px 0 0; font-size: 14px; line-height: 20px; white-space: nowrap; color: var(--muted); } /* 2026-12-02: one height in all four cards (stepper row) */
.pp-step { display: inline-flex; align-items: center; flex: none; height: 34px; padding: 0 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface, #fff); }
.pp-step button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: #f1f4f8; color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; }
.pp-step button:hover:not([disabled]) { background: #e6ebf2; } .pp-step button[disabled] { color: #c3cad6; background: #f7f8fa; cursor: default; }
.pp-step b { min-width: 46px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pp-cta { display: flex; align-items: center; justify-content: center; height: 48px; margin-top: 18px; border: 1px solid #d3dbe7; border-radius: 12px; background: var(--surface, #fff); font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; cursor: pointer; }
.pp-cta:hover { background: #f8fafc; }
.pp-cta--p { border: 0; background: var(--primary); color: #fff; }
.pp-cta--p:hover { background: var(--primary-ink); }
.pp-cta:disabled { cursor: default; color: var(--muted); background: #f5f7fa; }
.pp-cta--none { visibility: hidden; }
.pp-fl { display: grid; gap: 14px; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.pp-fl li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 20px; color: var(--ink); }
.pp-fl li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a76d9' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.pp-fl small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.pp-fl .coin { width: 15px; height: 15px; vertical-align: -2px; }
.pp-more { display: inline-flex; align-items: center; gap: 4px; width: max-content; margin-top: auto; padding-top: 20px; font-size: 13px; color: var(--muted); text-decoration: none; }
.pp-more:hover { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.pp-note { margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- 컴포넌트 (2026-12-01 user: ① 로딩 버튼 · ③ 토스트 통일 · ④ 성공 체크 · ⑤ 스켈레톤) ---------- */
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn.is-busy { justify-content: center; gap: 8px; cursor: default; opacity: .9; }
.btn-spin { display: inline-block; width: 15px; height: 15px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; opacity: .85; animation: btn-spin .8s linear infinite; }
.toast { display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; font-weight: 600; }
.toast__ic { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: #4a76d9; }
.toast__ic--info { background: #5b677a; }
.toast__act { min-height: 0; margin: 0 0 0 6px; padding: 2px 0 2px 16px; border: 0; border-left: 1px solid rgba(255, 255, 255, .2); background: none; color: #9dbcf5; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0; line-height: 20px; text-decoration: none; white-space: nowrap; cursor: pointer; } /* 2026-12-02 user: 되돌리기 배치·크기·자간 */
.toast__act:hover, .toast__act:focus-visible { color: #c9dbff; }
.toast:has(.toast__act) { gap: 10px; padding-right: 20px; letter-spacing: -0.01em; }
.toast__sep { display: none; }
@media (min-width: 901px) { .toast { bottom: 32px; padding: 12px 18px 12px 14px; } }
.modal--done .modal__inner > .row.between h2:empty { display: none; }
.modal--done .modal__inner > .row.between { justify-content: flex-end; }
.modal--done .modal__actions { justify-content: center; }
.modal--done .modal__actions .btn { min-width: 120px; }
.done-ok { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 8px 8px; }
.done-ok__ic { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #eef4ff; }
.done-ok__ic path { stroke-dasharray: 26; stroke-dashoffset: 26; animation: done-draw .45s .1s ease-out forwards; }
@keyframes done-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .done-ok__ic path { animation: none; stroke-dashoffset: 0; } }
.done-ok h3 { margin: 16px 0 6px; font-size: 20px; color: var(--ink); }
.done-ok p { margin: 0; font-size: 14px; line-height: 21px; color: var(--muted); }
@keyframes sk-sh { 0% { background-position: -300px 0; } 100% { background-position: 300px 0; } }
.sk { display: inline-block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #eef1f6 0, #f6f8fb 50%, #eef1f6 100%); background-size: 600px 100%; animation: sk-sh 1.3s linear infinite; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* 2026-12-01 user (컴포넌트 ⑧ 막대 차트 자라기): 막대가 0에서 제 길이까지 0.6초에 한 번 차오름. PC만, 움직임 줄이기면 그대로 */
@keyframes bar-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media (min-width:768px) and (prefers-reduced-motion:no-preference){.bp-bar i{
  transform-origin:left center;animation:bar-grow .6s cubic-bezier(.2,.7,.2,1) .1s both; }
}

/* 다듬기 ② 창 열림 (2026-12-01 user '자연스럽게 넣자'): 처음 열릴 때만 97% → 100% + 서서히, 0.15초. 안의 내용이 바뀔 때는 움직이지
   않는다(같은 창에서 내용만 바뀜). 휴대폰 웹과 움직임 줄이기에서는 바로 나타남. */
@keyframes modal-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  dialog.modal[open] { animation: modal-in .15s ease-out; }
  dialog.modal[open]::backdrop { animation: backdrop-in .15s ease-out; }
}
@keyframes pop-in { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) { .hd-pop, .bell-pop, .menu-pop { animation: pop-in .1s ease-out; } }

/* 2026-12-02 다듬기⑤ 새 반 시작 체크리스트 (시안 273·274) */
.cstart { max-width: 1060px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.cstart__h { display: flex; align-items: baseline; gap: 10px; } .cstart__h h2 { margin: 0; font-size: 18px; font-weight: 700; } .cstart__h span { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cstart__bar { height: 6px; margin: 16px 0 8px; border-radius: 999px; background: var(--surface-2, #e8ecf2); overflow: hidden; } .cstart__bar i { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.cstart ol { list-style: none; margin: 0; padding: 0; }
.cstart li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); } .cstart li:first-child { border-top: 0; }
.cstart__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; border: 1.5px solid var(--line-2); color: var(--muted); font-size: 13px; font-weight: 700; }
.cstart .is-now .cstart__n { border-color: var(--primary); color: var(--primary); } .cstart .is-done .cstart__n { border-color: var(--primary); background: var(--primary); color: #fff; }
.cstart b { display: block; font-size: 15px; font-weight: 700; } .cstart small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.cstart .is-wait b, .cstart .is-done b { color: var(--muted); } .cstart .btn { white-space: nowrap; } .cstart__auto { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* 2026-12-02 다듬기⑦ 찾는 화면·학생이 없을 때 (시안 276) */
.nf { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 96px 16px 120px; }
.nf__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2, #eef2f7); color: var(--muted); }
.nf h1 { margin: 18px 0 0; font-size: 22px; font-weight: 700; color: var(--ink); outline: none; } .nf p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.nf .row { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.fv-fld small.bad { display: flex; align-items: center; gap: 4px; } .fv-err-ic { flex: none; } /* 2026-12-02 다듬기⑧ */
/* 2026-12-02 다듬기⑫ 알림이 비었을 때 A안 (시안 282) */
.cs-bell__pop.is-empty { width: 260px; gap: 8px; }
.cs-bell__none { margin: 0; padding: 14px 0; border-radius: 10px; background: var(--surface-2, #f5f7fa); text-align: center; font-size: 13.5px; color: var(--muted); }
/* 2026-12-02 다듬기⑭ 약관·처리방침 목차 (시안 284) */
.legal-toc { position: fixed; top: 140px; z-index: 5; width: 200px; display: flex; flex-direction: column; align-items: flex-start; padding: 2px 0 2px 16px; border-left: 1px solid var(--line); }
.legal-toc[hidden] { display: none; }
.legal-toc b { margin-bottom: 8px; font-size: 13px; color: var(--ink); }
.legal-toc button { padding: 5px 0; border: 0; background: none; font: inherit; font-size: 13.5px; line-height: 1.4; color: var(--muted); text-align: left; cursor: pointer; }
.legal-toc button:hover { color: var(--ink); } .legal-toc button.is-on { color: var(--primary); font-weight: 700; }
/* 2026-12-02 review: the pill tabs sat on the card below with no gap */
@media (min-width: 768px) { .cs .cs-tabs + *, .cs .cs-tabrow + * { margin-top: 12px; } }
/* 2026-12-02 review: 패밀리·클래스 page showed "7,900 원" on the PC; the price row's 8px gap is taken back like the phone */
@media (min-width: 768px) { .plan .plan__price .plan__won { font-size: .64em; font-weight: 800; margin-left: -6px; letter-spacing: 0; } }

/* 2026-12-02: the family member pages use the student frame but keep the pv- parts (coins, account, calendar) — same colour variables */
.cs--mem { --pv-bg: #f2f5fb; --pv-soft: #f1f4f9; --pv-faint: #9aa4b3; --pv-c1: #2469ed; --pv-c2: #7aa6f5; --pv-c3: #c3d6fa; --pv-ok: #1f7a52; --pv-line: #e1e7f0; --pv-line2: #cfd7e4; }
:root[data-theme="dark"] .cs--mem { --pv-bg: var(--bg); --pv-soft: var(--surface-2); --pv-faint: #7d889b; --pv-c1: #7ea6ff; --pv-c2: #4f72b8; --pv-c3: #33466e; --pv-ok: #6fd3a2; --pv-line: var(--line); --pv-line2: var(--line-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cs--mem { --pv-bg: var(--bg); --pv-soft: var(--surface-2); --pv-faint: #7d889b; --pv-c1: #7ea6ff; --pv-c2: #4f72b8; --pv-c3: #33466e; --pv-ok: #6fd3a2; --pv-line: var(--line); --pv-line2: var(--line-2); } }
.bp-coin--after { display: flex; align-items: center; gap: 8px; } .bp-coin--after .coin { width: 28px; height: 28px; flex: none; order: 2; }
.bp-cn { display: inline-flex; align-items: center; gap: 3px; } .bp-cn .coin { width: 15px; height: 15px; }
.bp-hist .bp-hrow b .coin { width: 15px; height: 15px; margin-left: 3px; vertical-align: -2px; } .bp-link--sm { font-size: 13px; }
.bp-none { margin: 0; padding: 20px 0 8px; text-align: center; }
.bp-crumb { display: flex; gap: 6px; margin: 0 0 4px; font-size: 13px; color: var(--muted); } .bp-crumb a { color: var(--muted); } .bp-crumb b { color: var(--ink); font-weight: 600; }
.bp-hrow--wr { grid-template-columns: 1fr 120px 90px; }
.bp-head--gap { margin-bottom: 20px; } /* 2026-12-02: 학습 리포트 설명 줄이 카드에 붙지 않게 (홈과 같은 20px) */
/* 2026-12-02 user: 패밀리 멤버 홈 '이번 달 공부' 자리에 '최근 4주' 출석판 (리포트 시안) */
.mw4 .bp-h2 span { font-size: 13px; color: var(--muted); }
.mw4-g { display: grid; grid-template-columns: 64px repeat(7, 1fr); row-gap: 12px; align-items: center; justify-items: center; margin-top: 4px; }
.mw4-k { font-size: 12px; color: var(--muted); } .mw4-w { justify-self: start; font-size: 13px; color: var(--muted); }
.mw4-d { display: inline-block; width: 26px; height: 26px; border-radius: 50%; background: #e8ecf4; }
.mw4-d.on { background: var(--brand, #2563eb) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.mw4-d.fut { background: transparent; box-shadow: inset 0 0 0 1px var(--pv-line, #e5e8ee); }
.mw4-d.now { box-shadow: 0 0 0 2px var(--surface, #fff), 0 0 0 3.5px var(--brand, #2563eb); }
.mw4-l { display: flex; align-items: center; gap: 6px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--pv-line, #e5e8ee); font-size: 12px; color: var(--muted); }
.mw4-l .mw4-d { width: 10px; height: 10px; background-image: none; } .mw4-l i:nth-of-type(2) { margin-left: 10px; }
.bp .mw4 { margin-top: 16px; }
/* 2026-12-02 user: 멤버 홈 'N월 공부' — 왼쪽 이번 달 숫자, 오른쪽 작은 최근 4주 (Coursera·Emergent 참고) */
.ms .ms-b { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; margin-top: 6px; }
.ms-l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; align-content: start; }
.ms-s { display: flex; gap: 10px; align-items: flex-start; }
.ms-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand-soft, #eef3ff); color: var(--brand, #2563eb); }
.ms-ic .icon { width: 17px; height: 17px; }
.ms-k { display: block; font-size: 13px; color: var(--muted); line-height: 18px; }
.ms-v { display: block; margin-top: 2px; font-size: 26px; line-height: 32px; font-weight: 700; color: var(--ink); letter-spacing: -0.3px; }
.ms-v small { margin-left: 2px; font-size: 14px; font-weight: 600; color: var(--ink-2, #4b5563); }
.ms-dt { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); } .ms-dt b { font-weight: 700; } .ms-dt .up { color: var(--brand, #2563eb); } .ms-dt .dn { color: var(--caution, #b45309); }
.ms-saved { grid-column: 1 / -1; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--pv-line, #e5e8ee); font-size: 13px; color: var(--muted); } .ms-saved b { color: var(--ink); margin: 0 1px 0 4px; }
.ms-r { padding: 14px 16px; border-radius: 12px; background: var(--bg-soft, #f6f8fb); }
.ms-rh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; } .ms-rh b { font-size: 13px; color: var(--ink); } .ms-rh span { font-size: 12px; color: var(--muted); }
.ms-r .mw4-g { grid-template-columns: 44px repeat(7, 1fr); row-gap: 7px; margin: 0; }
.ms-r .mw4-k, .ms-r .mw4-w { font-size: 11px; }
.ms-r .mw4-d { width: 18px; height: 18px; background-color: #e3e8f0; } .ms-r .mw4-d.on { background-color: var(--brand, #2563eb); background-size: 11px; } .ms-r .mw4-d.fut { background-color: transparent; box-shadow: inset 0 0 0 1px #d9dfe8; }
.ms-r .mw4-d.now { box-shadow: 0 0 0 2px var(--bg-soft, #f6f8fb), 0 0 0 3.5px var(--brand, #2563eb); }
.bp .ms { margin-top: 16px; }
.ms-l { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--pv-line, #e5e8ee); border-radius: 12px; overflow: hidden; }
.ms-l .ms-s { padding: 14px 16px; } .ms-l .ms-s:nth-child(odd) { border-right: 1px solid var(--pv-line, #e5e8ee); } .ms-l .ms-s:nth-child(-n+2) { border-bottom: 1px solid var(--pv-line, #e5e8ee); }
.ms .ms-b { align-items: stretch; }
.bp .ms-r.mw4 { margin-top: 0; display: flex; flex-direction: column; justify-content: center; }
/* 2026-12-02 '배치가 안 좋아' → 시안 A(한 카드: 숫자 한 줄 + 4주 띠) / B(위 줄처럼 카드 두 개) */
.msa .msa-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; }
.msa-s { padding: 2px 20px; border-left: 1px solid var(--line); } .msa-s:first-child { padding-left: 0; border-left: 0; }
.msa-s > span { display: block; font-size: 13px; color: var(--muted); }
.msa-s b { display: block; margin: 4px 0 2px; font-size: 26px; line-height: 32px; font-weight: 700; color: var(--ink); } .msa-s b small { margin-left: 2px; font-size: 14px; font-weight: 600; }
.msa-s i { font-style: normal; font-size: 12px; color: var(--muted); } .msa em, .msb em:not(.bp-pill):not(.msb-n) { font-style: normal; font-weight: 700; } .msa em.up, .msb em.up { color: var(--primary-ink, #2563eb); } .msa em.dn, .msb em.dn { color: var(--caution, #b45309); }
.msa-cal { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.msa-ch { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; } .msa-ch b { font-size: 14px; color: var(--ink); } .msa-ch > span { font-size: 12px; color: var(--muted); }
.msa-lg { margin-left: auto; display: flex; align-items: center; gap: 5px; } .msa-lg .mw4-d { width: 9px; height: 9px; background-image: none; } .msa-lg i:nth-of-type(2) { margin-left: 8px; }
.msa-ws { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.msa-w > span { display: block; margin-bottom: 6px; font-size: 11px; color: var(--muted); }
.msa-w > div { display: flex; gap: 5px; } .msa-w .mw4-d { width: 18px; height: 18px; background-size: 11px; } .msa-w .mw4-d.now { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--brand, #2563eb); }
.bp .msb { margin-top: 16px; }
.msb .bp-big small { margin-left: 4px; font-size: 16px; font-weight: 600; color: var(--ink-2, #4b5563); }
.msb .bp-kv b em { margin-left: 6px; font-size: 12px; }
.msb-n { font-style: normal; font-size: 13px; color: var(--muted); }
.bp .msb .mw4 { margin-top: 0; } .msb .mw4-g { grid-template-columns: 52px repeat(7, 1fr); row-gap: 9px; margin-top: 14px; }
.msb .mw4-d { width: 22px; height: 22px; background-size: 13px; } .msb .mw4-k { font-size: 12px; } .msb .mw4-w { font-size: 12px; }
.bp .msa { margin-top: 16px; }

/* 2026-12-02 user (리포트 시안을 실제 화면에, 전체 버전): 패밀리 멤버 학습 리포트 — _mock-member-report의 .rpt 스타일을 .mrp 안으로. 겹치는 이름은 바꿈 (kv→kval, lv→lvl, st→lvst, seg→sg, k→kc). 주의 색은 --caution. */
.mrp *{box-sizing:border-box}
.mrp table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.mrp th{position:sticky;top:0;background:#f8fafc;text-align:left;font-weight:500;color:var(--muted);font-size:13px;height:44px;padding:0 16px;border-bottom:1px solid var(--line)}
.mrp td{height:44px;padding:0 16px;border-bottom:1px solid #eff2f6}
.mrp table{table-layout:fixed}
.mrp th,.mrp td{padding:0 16px;vertical-align:middle}
.mrp td{height:48px}
.mrp .qm{position:relative;display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;margin-left:5px;border-radius:50%;border:1.3px solid #9aa3b2;color:#6b7689;font-size:10.5px;font-weight:700;line-height:1;vertical-align:-2px;cursor:help;outline:0;box-sizing:border-box}
.mrp .qm:hover,.mrp .qm:focus{border-color:var(--ink-2);color:var(--ink)}
.mrp .qtip{position:absolute;left:50%;top:calc(100% + 10px);transform:translate(-50%,-4px);background:var(--ink);color:#c9d1dc;border-radius:8px;padding:9px 12px;font-size:12.5px;font-weight:400;line-height:1.55;white-space:nowrap;text-align:left;opacity:0;pointer-events:none;transition:.15s;z-index:30}
.mrp .qtip b{display:block;color:#fff;font-weight:600;font-size:13px;margin-bottom:2px}
.mrp .qtip:before{content:"";position:absolute;left:50%;top:-5px;margin-left:-5px;border:5px solid transparent;border-top:0;border-bottom-color:var(--ink)}
.mrp .qm:hover .qtip,.mrp .qm:focus .qtip{opacity:1;transform:translate(-50%,0)}
.mrp .qt{font-weight:500;letter-spacing:-.2px;color:var(--ink)}
.mrp .box{background:var(--surface);border:1px solid var(--line);border-radius:12px}
.mrp .bt{display:flex;align-items:center;justify-content:space-between;padding:18px 24px 0;min-height:32px}
.mrp .bt h2{margin:0;font-size:16px;font-weight:700;letter-spacing:-.2px;color:var(--ink)}
.mrp .bts{font-size:12.5px;color:var(--muted)}
.mrp .sbox .bt{padding:18px 20px 0}
.mrp .tnum{font-variant-numeric:tabular-nums}
.mrp .who2{display:flex;align-items:center;gap:14px}
.mrp .ava{width:48px;height:48px;border-radius:50%;background:#eaf0fb;color:#3b63c4;display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:700;flex:none}
.mrp .meta{margin:3px 0 0;font-size:13px;color:var(--muted);letter-spacing:0}
.mrp .dtabs{display:flex;gap:24px;margin-top:16px;border-bottom:1px solid var(--line)}
.mrp .dtabs button{position:relative;border:0;background:none;padding:10px 0 12px;font:inherit;font-size:14.5px;font-weight:500;color:var(--muted);cursor:pointer}
.mrp .dtabs button:hover{color:var(--ink)}
.mrp .dtabs button.on{color:var(--ink);font-weight:700}
.mrp .dtabs button.on:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:2px;background:var(--ink)}
.mrp .kp{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}
.mrp .kc{padding:16px 20px}
.mrp .kl{font-size:13px;font-weight:500;color:var(--ink-2)}
.mrp .kval{margin-top:6px;font-size:30px;line-height:36px;font-weight:700;letter-spacing:-.5px;color:var(--ink)}
.mrp .kval small{font-size:15px;font-weight:500;color:var(--muted);margin-left:4px;letter-spacing:0}
.mrp .ks{margin-top:2px;font-size:12.5px;line-height:20px;color:var(--muted);min-height:20px}
.mrp .ks b{color:var(--primary-ink);font-size:15px;font-weight:700;margin-left:2px}
.mrp .ks b.dn{color:var(--caution)}
.mrp .ks b.nb{color:var(--ink)}
.mrp .row2{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:12px;margin-top:12px;align-items:stretch}
.mrp .r0{margin-top:20px}
.mrp .row2.r0{align-items:start}
.mrp .chw{padding:8px 24px 16px}
.mrp .chnow{display:flex;align-items:baseline;gap:10px}
.mrp .chnow b{font-size:22px;font-weight:700;color:var(--ink);letter-spacing:-.3px}
.mrp .chnow span{font-size:12.5px;color:var(--muted)}
.mrp .chnow span b{font-size:14px;color:var(--primary-ink);margin-left:2px}
.mrp .chnow span b.dn{color:var(--caution)}
.mrp .yl{font-size:11px;fill:#8a94a6}
.mrp .xl2{font-size:11.5px;fill:#8a94a6}
.mrp .xl2.now{fill:var(--ink);font-weight:600}
.mrp .sbar{display:flex;gap:3px;height:14px;border-radius:7px;overflow:hidden}
.mrp .sbar i{display:block;min-width:6px}
.mrp .rw{list-style:none;margin:8px 0 0;padding:0 0 6px}
.mrp .rq{display:flex;flex-direction:column;gap:2px;min-width:0}
.mrp .qs{font-size:12px;color:var(--muted)}
.mrp .qt{font-size:14px;color:#2f3d52;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mrp .rwn{font-size:13px;color:var(--muted);text-align:right}
.mrp .rwn b{font-size:15px;color:var(--ink);font-weight:700;margin-right:1px}
.mrp .pcs{display:inline-flex;gap:3px}
.mrp .pcs i{width:10px;height:10px;border-radius:50%;background:#e3e8ef}
.mrp .pcs i.on{background:#4a76d9}
.mrp .ib3{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;background:transparent;border-radius:8px;color:#8a94a6;cursor:pointer}
.mrp .ib3:hover{background:#f3f5f9;color:var(--ink)}
.mrp .allbtn{display:inline-flex;align-items:center;gap:10px;border:0;background:none;padding:0;font:inherit;font-size:13px;font-weight:600;color:var(--ink-2,#3b4556);cursor:pointer}
.mrp .allbtn:hover i{background:#f3f5f9}
.mrp .allbtn:hover span{color:var(--ink)}
.mrp .allbtn:focus-visible{outline:2px solid var(--primary);outline-offset:2px;border-radius:10px}
.mrp .sbs{margin:4px 20px 0;font-size:12.5px;color:var(--muted)}
.mrp .lvl{list-style:none;margin:0;padding:14px 20px 18px;display:grid;row-gap:12px}
.mrp .lvh{display:flex;justify-content:space-between;font-size:13px;color:var(--ink-2)}
.mrp .lvh b{font-weight:700;color:var(--ink)}
.mrp .lvb{display:block;height:6px;margin-top:6px;border-radius:99px;background:#eef1f6;overflow:hidden}
.mrp .lvb i{display:block;height:100%;background:#4a76d9;border-radius:99px}
.mrp .lvb i.lvst{background:#e09a4d}
.mrp .lvb i.nn{background:#c3cad5}
.mrp .rt2{width:100%;border-collapse:collapse;margin-top:12px;table-layout:fixed}
.mrp .rt2 th{font-size:13px;font-weight:500;color:#4b5a70;text-align:left;padding:10px 0;border-bottom:1px solid var(--line);white-space:nowrap}
.mrp .rt2 td{font-size:14px;color:#2f3d52;padding:0;height:48px;border-bottom:1px solid #eef1f6}
.mrp .rt2 tr:last-child td{border-bottom:0}
.mrp .rt2 .c2{width:104px}
.mrp .rt2 .c3{width:104px}
.mrp .rt2 .c4{width:84px}
.mrp .bx2{display:inline-block;width:76px;text-align:center}
.mrp .bx3{display:inline-block;width:80px;text-align:center}
.mrp .pbt .p3{width:120px}
.mrp .pbt .p4{width:104px}
.mrp .pbt .p5{width:104px}
.mrp .pbt td.p2{padding:8px 16px 8px 0;height:auto}
.mrp .pbt td.p2 > span{display:block}
.mrp .pbt .qt{max-width:100%}
.mrp .td2{color:var(--primary-ink);font-weight:700}
.mrp .z{color:#9aa3b2}
.mrp .rec{display:flex;flex-direction:column}
.mrp .cal{display:grid;grid-template-columns:44px repeat(7,1fr);row-gap:10px;margin:14px 20px 0;align-items:center;justify-items:center}
.mrp .cw{font-size:12px;color:#6b7689}
.mrp .cdl{font-size:11.5px;color:#8a94a6;justify-self:start}
.mrp .cp2{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#e9edf3;box-sizing:border-box;vertical-align:middle}
.mrp .cp2.on{background:#4a76d9}
.mrp .cp2.fut{background:transparent;border:1.5px solid #dfe4ec}
.mrp .cp2.td{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #4a76d9}
.mrp .cw.now{color:var(--ink);font-weight:800}
.mrp .lg{display:flex;align-items:center;gap:6px;margin:16px 20px 18px;padding-top:14px;border-top:1px solid #eef1f6;font-size:12.5px;color:var(--muted)}
.mrp .lg .cp2{width:12px;height:12px}
.mrp .lg i:nth-of-type(2){margin-left:10px}
.mrp .sbox .bts b{font-size:14px;font-weight:700;color:var(--ink)}
.mrp .sg{display:inline-flex;background:#eef2f7;border-radius:9px;padding:3px;gap:2px}
.mrp .sg button{border:0;background:transparent;height:28px;padding:0 12px;border-radius:7px;font:inherit;font-size:13px;font-weight:500;color:var(--ink-2);cursor:pointer}
.mrp .sg button.on{background:#fff;color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(28,36,49,.08)}
.mrp .bts b{font-weight:700;color:var(--ink)}
.mrp .sjc{display:flex;gap:6px;padding:12px 24px 4px}
.mrp .sjc button{height:28px;padding:0 10px;border:1px solid var(--line);border-radius:99px;background:#fff;font:inherit;font-size:13px;color:var(--ink-2);cursor:pointer}
.mrp .sjc button b{font-weight:600;color:var(--muted);margin-left:2px}
.mrp .sjc button.on{background:var(--ink);border-color:var(--ink);color:#fff}
.mrp .sjc button.on b{color:#c9d1dc}
.mrp .cpw2{padding:16px 20px 12px}
.mrp .cpw2 .sbar{height:10px;border-radius:5px}
.mrp .gl{list-style:none;margin:12px 0 0;padding:0}
.mrp .gl li button{display:flex;align-items:center;gap:8px;width:calc(100% + 16px);margin:0 -8px;height:36px;padding:0 8px;border:0;background:none;border-radius:8px;font:inherit;font-size:13px;color:var(--ink-2);cursor:pointer;text-align:left}
.mrp .gl li button:hover{background:#f3f5f9}
.mrp .gl li i{width:10px;height:10px;border-radius:3px;flex:none}
.mrp .gl li b{margin-left:auto;font-size:15px;font-weight:700;color:var(--ink)}
.mrp .gl li svg{color:#9aa3b2}
.mrp .gl2{margin-top:8px;padding-top:8px;border-top:1px solid #eef1f6}
.mrp .lvbtn{display:block;width:calc(100% + 16px);margin:0 -8px;padding:6px 8px;border:0;background:none;border-radius:8px;font:inherit;text-align:left;cursor:pointer}
.mrp .lvbtn:hover{background:#f3f5f9}
.mrp .lvl{row-gap:4px}
.mrp .fchip{display:inline-flex;align-items:center;gap:6px;height:28px;margin-left:12px;padding:0 6px 0 12px;border-radius:99px;background:var(--primary-soft);color:var(--primary-ink);font-size:13px;font-weight:600}
.mrp .fchip b{font-weight:700}
.mrp .fchip button{width:20px;height:20px;border:0;border-radius:50%;background:transparent;color:var(--primary-ink);cursor:pointer;font-size:11px}
.mrp .fchip button:hover{background:#d6e4fb}
.mrp .bts,.mrp .ks,.mrp .sbs,.mrp .qs,.mrp .lg,.mrp .chnow span,.mrp .meta{font-size:12px}
.mrp .ks,.mrp .chnow span{font-size:12.5px}
.mrp .lvh,.mrp .rwn{font-size:13px}
.mrp .dtabs button{font-size:14px}
.mrp .cw,.mrp .cdl,.mrp .yl,.mrp .xl2{font-size:12px}
.mrp .cdl,.mrp .z,.mrp .cw{color:#6b7689}
.mrp .yl,.mrp .xl2{fill:#6b7689}
.mrp .ks b{font-size:16px}
.mrp .rwn b{font-size:14px}
.mrp .rt2 td,.mrp .qt{color:#2f3d52}
.mrp .rt2 tbody tr{transition:background .12s}
.mrp .rt2 tbody tr:hover{background:#f8fafc}
.mrp .ib3:active,.mrp .sg button:active{transform:translateY(1px)}
.mrp .dtabs button:focus-visible,.mrp .ib3:focus-visible,.mrp .sg button:focus-visible{outline:2px solid var(--primary);outline-offset:2px;border-radius:8px}
.mrp .kc .kl{letter-spacing:-.1px}
.mrp .pct{font-size:13px;color:#6b7689;text-align:right}
.mrp .pct b{font-weight:700;color:var(--ink)}
.mrp .rt2 .c5{text-align:center;padding-right:0}
.mrp .wbtn3{display:inline-flex;align-items:center;gap:2px;border:0;background:none;padding:4px 4px 4px 8px;border-radius:6px;font:inherit;font-size:14px;color:var(--ink);cursor:pointer}
.mrp .wbtn3 b{font-weight:600}
.mrp .wbtn3 svg{color:#8a94a6}
.mrp .wbtn3:hover{background:#f1f4f8}
.mrp .z0{color:var(--muted)}
.mrp .qm{width:auto;height:auto;border:0;border-radius:0;color:#8a94a6;font-size:inherit;vertical-align:-3px}
.mrp .qm:hover,.mrp .qm:focus{color:var(--ink-2)}
.mrp .row2 .sbox{display:flex;flex-direction:column}
.mrp .row2 .sbox .lvl{flex:1;display:flex;flex-direction:column;justify-content:space-between;padding:14px 20px 20px}
.mrp .pbt th.p3,.mrp .pbt td.p3,.mrp .pbt th.p4,.mrp .pbt td.p4,.mrp .pbt th.p5,.mrp .pbt td.p5{width:120px;text-align:center;padding-left:0;padding-right:0}
.mrp .pbt th.p3 span,.mrp .pbt td.p3 span.bx3,.mrp .pbt th.p4 span,.mrp .pbt td.p4 span.bx2,.mrp .pbt th.p5 span,.mrp .pbt td.p5 span.bx2{display:inline-flex;justify-content:center;width:auto;margin:0 auto}
.mrp .kc{display:flex;align-items:flex-start;gap:16px}
.mrp .kic{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border-radius:11px;background:#f1f5fd;color:#4a76d9}
.mrp .kb{min-width:0}
.mrp .kc .kval{display:flex;align-items:baseline;font-variant-numeric:normal}
.mrp .kc .kval .ku{margin-left:2px;font-size:18px;font-weight:600;letter-spacing:0;color:var(--ink)}
.mrp .kc .kval .kr{margin-left:8px;font-size:16px;font-weight:500;letter-spacing:0;color:var(--muted)}
.mrp .lo{color:var(--ink);font-weight:600}
.mrp .dtabs{position:relative;align-items:center}
.mrp{max-width:885px;color:var(--ink);font-size:14px}
.mrp h1{margin:0;font-size:24px;line-height:30px;font-weight:700;letter-spacing:-.3px;color:var(--ink)}
.mrp .ph{display:flex;align-items:center;justify-content:space-between}
.mrp .cwrap{margin-top:6px}
.mrp .cwrap svg{display:block;overflow:visible}
.mrp .gl0{stroke:#eef1f6}
.mrp .rt2 .c1{padding-left:24px;width:170px}
.mrp .pbt .p1{padding-left:24px;width:130px}
.mrp .rw li{border-top:1px solid #eef1f6}
.mrp .rw li.none{display:block;padding:24px;color:var(--muted);font-size:13px}
.mrp .rwli{display:grid;grid-template-columns:minmax(0,1fr) 76px 72px 32px;align-items:center;gap:12px;width:100%;min-height:58px;padding:7px 16px 7px 24px;border:0;background:none;font:inherit;text-align:left;cursor:pointer;transition:background .12s}
.mrp .rwli:hover{background:#f8fafc}
.mrp .rwli:hover .ib3{color:var(--ink)}
.mrp .rwli:focus-visible,.mrp .lvbtn:focus-visible,.mrp .gl li button:focus-visible,.mrp .wbtn3:focus-visible,.mrp .sjc button:focus-visible{outline:2px solid var(--primary);outline-offset:-2px;border-radius:8px}
.mrp .allbtn i{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink)}
.mrp .rpt-none{margin:0;padding:28px 24px 32px;font-size:14px;color:var(--muted);text-align:center}
.mrp .rpt-foot{padding:12px 24px 16px;border-top:1px solid #eef1f6}
.mrp .bt-sp{flex:1}
.mrp .row2 .sbox .lvl li{list-style:none}
/* 2026-12-02 user: 멤버 홈 '학습 현황' (참고 그림, 그라데이션 없이 우리 색) — 달력은 작게 */
.bp .lh { margin-top: 16px; }
.lh-top { display: flex; align-items: center; gap: 10px; }
.lh-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft, #eef3ff); color: var(--primary-ink, #2563eb); } .lh-ic .icon { width: 19px; height: 19px; }
.lh-top h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.lh-bar { width: 1px; height: 16px; background: var(--line); } .lh-mo { font-size: 14px; color: var(--muted); }
.lh-top .bp-pill { margin-left: auto; }
.lh-b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; margin-top: 16px; }
.lh-box { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
.lh-h { display: flex; align-items: center; gap: 8px; } .lh-h b { font-size: 15px; font-weight: 700; color: var(--ink); }
.lh-hi { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--primary-soft, #eef3ff); color: var(--primary-ink, #2563eb); } .lh-hi .icon { width: 15px; height: 15px; }
.lh-n { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--primary-soft, #eef3ff); color: var(--primary-ink, #2563eb); font-size: 12px; font-weight: 700; }
.lh-big { margin-top: 10px; font-size: 34px; line-height: 40px; font-weight: 800; color: var(--ink); letter-spacing: -0.5px; } .lh-big small { margin-left: 4px; font-size: 17px; font-weight: 600; color: var(--ink-2, #4b5563); }
.lh-cmp { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.lh-chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: #f1f3f6; color: var(--muted); font-size: 12px; font-weight: 700; }
.lh-chip.up { background: var(--primary-soft, #eef3ff); color: var(--primary-ink, #2563eb); } .lh-chip.dn { background: #fdf2e6; color: var(--caution, #b45309); }
.lh-rows { margin-top: 12px; border-top: 1px solid var(--line); }
.lh-row { display: flex; justify-content: space-between; align-items: center; height: 38px; border-bottom: 1px solid var(--line); font-size: 14px; } .lh-row:last-child { border-bottom: 0; height: 32px; padding-top: 6px; }
.lh-rk { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2, #4b5563); } .lh-rk .icon { width: 16px; height: 16px; color: var(--muted); }
.lh-rv { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.bp .lh-box.mw4 { margin-top: 0; }
.lh .mw4-g { grid-template-columns: 54px repeat(7, 1fr); row-gap: 7px; margin-top: 12px; }
.lh .mw4-k { align-self: stretch; display: grid; place-items: center; height: 22px; font-size: 12px; color: var(--muted); background: #f3f5f8; }
.lh .mw4-g > span:first-child { height: 22px; }
.lh .mw4-g > .mw4-k:nth-child(2) { border-radius: 8px 0 0 8px; } .lh .mw4-g > .mw4-k:nth-child(8) { border-radius: 0 8px 8px 0; } .lh .mw4-k { justify-self: stretch; }
.lh .mw4-w { justify-self: start; padding: 2px 8px; border-radius: 8px; background: #f3f5f8; font-size: 11px; color: var(--ink-2, #4b5563); }
.lh .mw4-d { width: 20px; height: 20px; background-size: 12px; } .lh .mw4-d.now { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--brand, #2563eb); background: #fff; }
.lh .lh-box.mw4 { display: flex; flex-direction: column; } .lh .lh-box.mw4 .mw4-g { margin: auto 0; padding-top: 12px; }
.lh .lh-b { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* 2026-12-02 user: 카드 크기를 맞춰 */
/* 2026-12-02 user: 학습 리포트 요약 — '아이콘은 빼', 복습 정답률·캐치 현황 '컴팩트하게' */

.mrp .chw { padding: 4px 24px 14px; } .mrp .cwrap { margin-top: 2px; }
.mrp .gl { margin-top: 8px; } .mrp .gl li button { height: 30px; } .mrp .gl2 { margin-top: 6px; padding-top: 6px; }
.mrp .sbox .bt { padding-top: 16px; }
.mrp .box:has(> .chw) { display: flex; flex-direction: column; } .mrp .chw { flex: 1; display: flex; flex-direction: column; } .mrp .chw .cwrap { margin: auto 0; }
.lh-cmp { font-size: 13px; color: var(--ink-2, #4b5563); } .lh-cmp b { font-weight: 700; color: var(--primary-ink, #2563eb); }
.lh-cmp { display: block; margin-top: 6px; }

/* ==========================================================================================================
   2026-12-02 PC 클래스 선생님 콘솔 새 틀 (시안 _mock-class-*.html): 틀 · 홈 · 학생 관리 · 코인 관리 창 · 학생 상세 ·
   학습 현황 · 이용권·결제 · 설정. Everything sits under .cs--k2 (the frame, views-teacher.js k2*) or the k2 dialogs
   (.modal--k2g · .modal--k2rq); classes start with k2- so no other page is touched.
   ========================================================================================================== */
.cs--k2 { --pv-bg: #f5f7fa; --k2-line: #e5eaf2; --k2-row: #eff2f6; --k2-soft: #eef2f7; --k2-th: #f8fafc; --k2-pip: #e8ecf2; --k2-blue: #4a76d9; --k2-faint: #8a94a6; --k2-hover: #f3f5f9; }
:root[data-theme="dark"] .cs--k2 { --pv-bg: var(--bg); --k2-line: var(--line); --k2-row: var(--line); --k2-soft: var(--surface-2); --k2-th: var(--surface-2); --k2-pip: var(--line-2); --k2-blue: #7ea6ff; --k2-faint: #7d889b; --k2-hover: var(--surface-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cs--k2 { --pv-bg: var(--bg); --k2-line: var(--line); --k2-row: var(--line); --k2-soft: var(--surface-2); --k2-th: var(--surface-2); --k2-pip: var(--line-2); --k2-blue: #7ea6ff; --k2-faint: #7d889b; --k2-hover: var(--surface-2); } }
.cs--k2 .num { font-variant-numeric: tabular-nums; }
/* 틀: logo with the mark, class card, menu, 고객센터 at the foot, name and logout icon at the top right */
.cs--k2 .cs-top { border-bottom-color: var(--k2-line); }
.cs--k2 .cs-top .brand { align-items: center; }
.cs--k2 .cs-top .brand__word { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.cs--k2 .cs-top .brand__alias { font-size: 16px; font-weight: 500; }
.cs--k2 .cs-side { height: calc(100vh - 60px - var(--proto-h, 0px)); }
.cs--k2 .cs-top .brand::before { content: ""; width: 38px; height: 26px; margin-right: 4px; background: url("../../assets/ocap-mark.png") left center / contain no-repeat; }
.cs--k2 .cs-top__r { gap: 12px; }
.k2-who { font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; }
.k2-who:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.k2-out { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; }
.k2-out:hover { background: var(--k2-soft); color: var(--ink); }
.cs--k2 .cs-side { border-right-color: var(--k2-line); }
.k2-cls { padding: 18px 14px 16px; margin-bottom: 18px; border: 1px solid var(--k2-line); border-radius: 12px; }
.k2-cls b { display: block; font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: -0.2px; color: var(--ink); overflow-wrap: anywhere; }
.k2-cls p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.k2-cls__n { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.k2-cls .k2-cls__pd { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--k2-line); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.k2-cls .k2-cls__pd.is-warn { color: var(--caution); font-weight: 600; }
.cs--k2 .cs-nav a { font-weight: 400; }
.cs--k2 .cs-nav a .icon { color: var(--k2-faint); }
.cs--k2 .cs-nav a[aria-current="page"] { font-weight: 600; }
.k2-sfoot { margin-top: auto; padding: 12px 0 4px; border-top: 1px solid var(--k2-line); }
.k2-sfoot a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14.5px; text-decoration: none; }
.k2-sfoot a:hover, .k2-sfoot a[aria-current="page"] { background: var(--k2-hover); color: var(--ink); }
.k2-sfoot .icon { width: 18px; height: 18px; color: var(--k2-faint); stroke-width: 1.8; }
.cs--k2 .cs-main { padding: 28px 40px 56px; }
.cs--k2 .cs-main > * { max-width: 885px; }
.cs--k2 .k2-page .cs-content { gap: 0; }
.cs--k2 .cs-main .cstart { margin-top: 20px; }
/* 공통: page head, cards, buttons, search, tables, page numbers, ? tips, menus */
.k2-ph { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.k2-ph h1 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.3; color: var(--ink); }
.k2-date { font-size: 14px; color: var(--muted); }
.k2-cnt { position: relative; display: inline-flex; align-items: center; gap: 6px; padding-left: 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.k2-cnt::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 16px; margin-top: -8px; background: #8a94a6; }
.k2-ph h1 .k2-cnt { font-size: 16px; }
.k2-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.k2-card { min-width: 0; padding: 16px 20px; border: 1px solid var(--k2-line); border-radius: 12px; background: var(--surface); }
.k2-card__l { display: flex; align-items: center; font-size: 13px; font-weight: 500; color: var(--ink-2); line-height: 20px; }
.k2-card__v { margin-top: 6px; font-size: 30px; font-weight: 700; line-height: 36px; letter-spacing: -0.5px; color: var(--ink); white-space: nowrap; }
.k2-card__v small { margin-left: 4px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.k2-card__v small.k2-u0 { margin-left: 1px; font-size: 18px; color: var(--ink); }
.k2-card__s { margin-top: 2px; font-size: 12.5px; line-height: 20px; color: var(--muted); }
.k2-up { margin-left: 2px; font-size: 15px; font-weight: 700; color: var(--primary-ink); }
.k2-was { margin-left: 2px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.k2-mut { color: var(--muted); }
.k2-warn { color: var(--caution); }
.k2-qm { position: relative; display: inline-flex; margin-left: 5px; color: var(--k2-faint); cursor: help; outline: 0; vertical-align: -3px; }
.k2-qm:hover, .k2-qm:focus-visible { color: var(--ink-2); }
.k2-qtip { position: absolute; left: 50%; top: calc(100% + 10px); z-index: 30; padding: 9px 12px; border-radius: 8px; background: #1c2431; color: #c9d1dc; font-size: 12.5px; font-weight: 400; line-height: 1.55; white-space: nowrap; text-align: left; opacity: 0; pointer-events: none; transform: translate(-50%, -4px); transition: opacity .15s, transform .15s; }
.k2-qtip b { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; color: #fff; }
.k2-qtip.is-r { left: auto; right: -10px; transform: translate(0, -4px); }
.k2-qm:hover .k2-qtip, .k2-qm:focus .k2-qtip { opacity: 1; transform: translate(-50%, 0); }
.k2-qm:hover .k2-qtip.is-r, .k2-qm:focus .k2-qtip.is-r { transform: translate(0, 0); }
.k2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--k2-line); border-radius: 8px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; }
.k2-btn:hover { background: var(--k2-hover); color: var(--ink); }
.k2-btn svg { flex: none; color: #6b7689; }
.k2-btn .icon { width: 15px; height: 15px; }
.k2-btn--p { border-color: var(--primary); background: var(--primary); color: #fff; }
.k2-btn--p svg { color: currentColor; }
.k2-btn--p:hover { border-color: var(--primary-ink); background: var(--primary-ink); color: #fff; }
.k2-btn:disabled { border-color: var(--k2-line); background: var(--k2-soft); color: #a6b0bf; cursor: default; }
.k2-btn--p:disabled { border-color: #c7d3e6; background: #c7d3e6; color: #fff; }
.k2-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.k2-btn--dz { border-color: #f3c4c4; color: #dc2626; }
.k2-btn--dz:hover { background: #fef2f2; color: #b91c1c; }
.k2-link { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 500; color: var(--primary-ink); cursor: pointer; white-space: nowrap; }
.k2-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.k2-link.k2-mut { color: var(--muted); font-weight: 400; }
.k2-search { display: flex; align-items: center; gap: 8px; width: 200px; height: 36px; padding: 0 12px; border: 1px solid var(--k2-line); border-radius: 8px; background: var(--surface); color: var(--muted); cursor: text; }
.k2-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.k2-search svg { flex: none; }
.k2-search input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
.k2-search input::placeholder { color: var(--muted); }
.k2-search input::-webkit-search-cancel-button { display: none; }
.k2-tbox { margin-top: 16px; border: 1px solid var(--k2-line); border-radius: 12px; background: var(--surface); }
.k2-t { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-variant-numeric: tabular-nums; }
.k2-t th { height: 44px; padding: 0 16px; border-bottom: 1px solid var(--k2-line); background: var(--k2-th); color: var(--muted); font-size: 13px; font-weight: 500; text-align: left; white-space: nowrap; }
.k2-tbox .k2-t thead th:first-child { border-top-left-radius: 11px; }
.k2-tbox .k2-t thead th:last-child { border-top-right-radius: 11px; }
.k2-t td { height: 48px; padding: 0 16px; border-bottom: 1px solid var(--k2-row); font-size: 14px; color: var(--ink); vertical-align: middle; }
.k2-t tbody tr:last-child td { border-bottom: 0; }
.k2-t a { color: inherit; text-decoration: none; }
.k2-t a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cs--k2 .k2-t th.k2-r, .cs--k2 .k2-t td.k2-r { text-align: right; }
.cs--k2 .k2-t th.k2-c, .cs--k2 .k2-t td.k2-c { text-align: center; }
.k2-t--rec th:first-child { width: 160px; }
td.k2-none, .k2-none { height: 120px; text-align: center; color: var(--muted); }
.k2-empty-box { display: grid; place-items: center; }
.k2-pgbar { display: flex; justify-content: center; margin-top: 16px; }
.k2-pgbar--in { margin: 12px 0 14px; }
.k2-pg { display: flex; align-items: center; gap: 4px; }
.k2-pg button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; }
.k2-pg button:hover:not(:disabled):not([aria-current]) { background: #eceff4; }
.k2-pg button[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; }
.k2-pg button:disabled { color: #b4bcc8; cursor: default; }
.k2-ib { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #6b7689; cursor: pointer; list-style: none; }
.k2-ib::-webkit-details-marker { display: none; }
.k2-ib:hover { background: var(--k2-soft); color: var(--ink); }
.k2-ib.is-off { color: #c3cad5; cursor: default; }
.k2-ib.is-off:hover { background: transparent; }
details.k2-pop { position: relative; }
details.k2-pop > summary { list-style: none; cursor: pointer; }
details.k2-pop > summary::-webkit-details-marker { display: none; }
.k2-menu { display: inline-block; }
.k2-menu__p { position: absolute; right: 0; top: calc(100% + 6px); z-index: 25; display: flex; flex-direction: column; min-width: 148px; padding: 4px; border: 1px solid var(--k2-line); border-radius: 10px; background: var(--surface); box-shadow: 0 6px 18px rgba(17, 24, 39, .10); text-align: left; }
.k2-menu__p a, .k2-menu__p button { display: flex; align-items: center; height: 34px; padding: 0 12px 0 10px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 400; white-space: nowrap; text-decoration: none; cursor: pointer; }
.k2-menu__p a:hover, .k2-menu__p button:hover { background: var(--k2-hover); color: var(--ink); text-decoration: none; }
.k2-menu__p hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--k2-line); }
.k2-menu__p .is-danger { color: #dc2626; }
.k2-menu__p .is-danger:hover { background: #fef2f2; color: #b91c1c; }
.is-up > .k2-menu .k2-menu__p, .k2-c-mn.is-up .k2-menu__p { top: auto; bottom: calc(100% + 6px); }
.k2-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--k2-soft); }
.k2-seg > a, .k2-seg > button { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; }
.k2-seg > .is-on, .k2-seg > [aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(28, 36, 49, .08); }
.k2-box { min-width: 0; border: 1px solid var(--k2-line); border-radius: 12px; background: var(--surface); }
.k2-bt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 18px 24px 0; }
.k2-bt h2 { display: flex; align-items: center; margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.2px; color: var(--ink); }
.k2-bts { font-size: 12.5px; color: var(--muted); }
.k2-bts b { color: var(--ink); font-weight: 700; }
.k2-row2 { display: grid; grid-template-columns: minmax(0, 1fr) 298px; gap: 12px; margin-top: 12px; }
.k2-r0 { margin-top: 20px; }
.k2-empty { margin: 0; padding: 32px 20px; text-align: center; font-size: 14px; color: var(--muted); }
.k2-empty span { font-size: 13px; }
/* 홈 */
.k2-board { margin-top: 24px; }
.k2-bh { display: flex; align-items: center; justify-content: space-between; min-height: 36px; }
.k2-bh h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.k2-t--home th.k2-c-no, .k2-t--home td.k2-c-no { width: 59px; }
.k2-t--home .k2-c-nm { width: 131px; }
.k2-t--home .k2-c-wk { width: 267px; }
.k2-t--home .k2-c-cp, .k2-t--home .k2-c-rt { width: 197px; }
.k2-t--home td.k2-c-no { font-size: 13px; color: var(--muted); }
.k2-t td.k2-c-nm { font-size: 15px; font-weight: 600; }
.k2-t--home td.k2-c-rt { font-size: 15px; font-weight: 500; }
.k2-c-go { text-align: right; }
.k2-t td.k2-c-go a { font-size: 16px; color: #b4bdca; }
.k2-wk, .k2-wkh { display: inline-grid; grid-template-columns: repeat(7, 18px); gap: 6px; vertical-align: middle; }
.k2-wkh { font-size: 13px; font-weight: 500; text-align: center; line-height: 18px; color: var(--muted); }
.k2-wkh .is-today { font-weight: 800; color: var(--ink); }
.k2-pip { width: 18px; height: 18px; border-radius: 50%; background: var(--k2-pip); }
.k2-pip.is-on { background: var(--k2-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.k2-pip.is-fut { background: transparent; box-shadow: inset 0 0 0 1.5px var(--k2-line); }
.k2-pre { display: inline-block; width: 162px; text-align: center; color: var(--muted); }
.k2-cpbox, .k2-cpb { display: inline-block; width: 116px; text-align: center; }
.k2-cpb { display: inline-flex; align-items: center; gap: 8px; line-height: 20px; white-space: nowrap; text-align: left; }
.k2-ring { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; }
.k2-ring::after { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--surface); }
.k2-cpb em { font-style: normal; font-size: 13px; color: var(--muted); }
.k2-cpb em b { font-size: 15px; font-weight: 600; color: var(--ink); }
.k2-rtbox { display: inline-block; width: 92px; text-align: center; }
/* 학생 관리 */
.k2-stbar { display: flex; align-items: center; gap: 8px; min-height: 36px; margin-top: 16px; }
.k2-stbar .k2-search { width: 240px; }
.k2-acts { display: flex; gap: 8px; margin-left: auto; }
.k2-acts .k2-btn:not(.k2-btn--p) svg { color: #1f8a4c; }
.k2-fchip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid #f5d0a9; border-radius: 8px; background: #fff7ed; color: var(--caution); font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.k2-fchip:hover { color: var(--caution); background: #ffedd5; }
.k2-fchip b { font-weight: 700; }
.k2-fchip.is-soft { height: 30px; margin-left: 8px; border-color: var(--k2-line); background: var(--k2-soft); color: var(--ink-2); }
.k2-fchip.is-soft a { display: inline-flex; color: var(--muted); }
.k2-selbar { display: flex; align-items: center; gap: 8px; }
.k2-selbar > b { margin-right: 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.k2-tbox--menu { position: relative; }
.k2-t--st th, .k2-t--st td { padding-left: 0; padding-right: 0; white-space: nowrap; }
.k2-t--st .k2-c-ck { width: 64px; padding-left: 24px; }
.k2-t--st .k2-c-ck input { width: 16px; height: 16px; margin: 0; vertical-align: middle; accent-color: var(--primary); }
.k2-t--st .k2-c-no { width: 51px; }
.k2-t--st td.k2-c-no { font-size: 13px; color: var(--muted); }
.k2-t--st .k2-c-nm { width: 109px; }
.k2-t--st .k2-c-id { width: 147px; }
.k2-t--st .k2-c-pw { width: 161px; }
.k2-t--st .k2-c-ls { width: 157px; }
.k2-t--st .k2-c-cn { width: 147px; }
.k2-bx { display: inline-flex; align-items: center; justify-content: center; }
.k2-bx--pw, .k2-t--st .k2-pw { width: 86px; justify-content: center; }
.k2-t--st .k2-pw { gap: 6px; }
.k2-bx--ls, .k2-t--st .k2-c-ls .k2-sort { width: 76px; justify-content: center; }
.k2-bx--cn, .k2-t--st .k2-c-cn .k2-sort { width: 64px; justify-content: center; }
.k2-t--st .k2-c-mn { width: auto; padding-right: 16px; text-align: right; }
.k2-t tr.is-picked td { background: #f5f9ff; }
.k2-idv { display: inline-flex; align-items: center; gap: 2px; }
.k2-idt { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); cursor: copy; font-variant-numeric: tabular-nums; }
.k2-idv .k2-cp { opacity: 0; }
tr:hover .k2-idv .k2-cp, .k2-idv .k2-cp:focus-visible { opacity: 1; }
.k2-pw { display: inline-flex; align-items: center; gap: 12px; }
.k2-pwv { display: inline-flex; align-items: center; gap: 4px; min-width: 52px; font-size: 14px; color: var(--ink); }
.k2-pwv i { width: 5px; height: 5px; border-radius: 50%; background: #5b677a; }
.k2-sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.k2-sort svg { color: #a6b0bf; }
.k2-sort:hover, .k2-sort.is-on { color: var(--ink); }
.k2-sort.is-on svg { color: var(--primary); }
.k2-coin .coin-n { display: inline-flex; align-items: center; gap: 4px; }
.k2-coin .coin-n b { font-weight: 500; color: var(--ink); }
.k2-coin .coin { width: 14px; height: 14px; }
.k2-coin.is-zero .coin-n b { font-weight: 600; color: var(--caution); }
/* 코인 관리 창 */
dialog.modal--k2g, dialog.modal--k2rq { width: min(400px, calc(100vw - 32px)); border-radius: 14px; }
dialog.modal--k2rq { width: min(460px, calc(100vw - 32px)); }
.modal--k2g .modal__inner, .modal--k2rq .modal__inner { gap: 12px; padding: 20px 24px; }
.modal--k2g .modal__inner > .row h2, .modal--k2rq .modal__inner > .row h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.k2g { display: flex; flex-direction: column; }
.k2g-tg { display: flex; align-items: center; justify-content: center; gap: 0; }
.k2g-sel { position: relative; display: inline-flex; align-items: center; }
.k2g-sel select { width: 152px; height: 40px; padding: 0 34px 0 14px; border: 1px solid var(--k2-line, #e5eaf2); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-align: center; appearance: none; cursor: pointer; }
.k2g-sel svg { position: absolute; right: 12px; pointer-events: none; color: #6b7689; }
.k2g-vd { width: 1px; height: 28px; margin: 0 24px; background: var(--k2-line, #e5eaf2); }
.k2g-left { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.k2g-left .coin { width: 16px; height: 16px; }
.k2g-left b { font-size: 19px; font-weight: 600; color: var(--ink); }
.k2g-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 18px; padding: 3px; border-radius: 10px; background: #eef2f7; }
.k2g-seg button { display: flex; align-items: center; justify-content: center; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #8a94a6; cursor: pointer; }
.k2g-seg button[aria-pressed="true"] { background: var(--surface); color: var(--primary); box-shadow: 0 1px 2px rgba(28, 36, 49, .1); }
.k2g-flr { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; }
.k2g-fl { font-size: 14px; font-weight: 600; color: var(--ink); }
.k2g-max { font-size: 12.5px; color: var(--muted); }
.k2g-pan { display: flex; align-items: center; justify-content: space-between; height: 74px; margin-top: 8px; padding: 0 14px; border: 1px solid var(--k2-line, #e5eaf2); border-radius: 12px; background: #f8fafc; }
.k2g-pb { width: 36px; height: 36px; padding: 0; border: 1px solid var(--k2-line, #e5eaf2); border-radius: 50%; background: var(--surface); color: var(--ink-2); font-size: 18px; line-height: 1; cursor: pointer; }
.k2g-pb:hover { background: #f3f5f9; color: var(--ink); }
.k2g-pn { display: inline-flex; align-items: center; gap: 6px; }
.k2g-pn input { width: 110px; padding: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 30px; font-weight: 700; text-align: right; color: var(--ink); }
.k2g-pn input.is-zero { color: #a6b0bf; }
.k2g-pn .coin { width: 22px; height: 22px; }
.k2g-rng { --p: 0%; width: 100%; height: 20px; margin: 14px 0 0; background: transparent; appearance: none; cursor: pointer; }
.k2g-rng::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(to right, var(--primary) var(--p), #e5eaf2 var(--p)); }
.k2g-rng::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -8px; border: 2px solid var(--primary); border-radius: 50%; background: #fff; appearance: none; }
.k2g-rng::-moz-range-track { height: 4px; border-radius: 99px; background: #e5eaf2; }
.k2g-rng::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--primary); }
.k2g-qk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.k2g-qk button { height: 34px; border: 0; border-radius: 8px; background: #eef2f7; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; }
.k2g-qk button:hover { background: #e3e8f0; color: var(--ink); }
.k2g-sum { margin: 18px 0 0; padding: 0 14px; border: 1px solid var(--k2-line, #e5eaf2); border-radius: 10px; background: #f8fafc; }
.k2g-sum > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; }
.k2g-sum > div + div { border-top: 1px solid var(--k2-line, #e5eaf2); }
.k2g-sum dt { font-size: 13px; color: var(--ink-2); }
.k2g-sum dd { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); }
.k2g-sum dd i { font-style: normal; color: #a6b0bf; }
.k2g-sum dd b { min-width: 40px; text-align: right; font-size: 14px; font-weight: 700; color: var(--ink); }
.k2g-sum dd b.is-add { color: var(--primary); }
.k2g-sum dd b.is-sub { color: var(--caution); }
.k2g-err { margin: 0; padding: 0 0 10px; font-size: 12.5px; color: var(--caution); }
.modal--k2g .modal__inner > .row, .modal--k2rq .modal__inner > .row { margin: -4px -24px 4px; padding: 0 24px 14px; border-bottom: 1px solid #e5eaf2; }
.modal--k2g .modal__actions, .modal--k2rq .modal__actions { margin: 4px -24px 0; padding: 14px 24px 0; border-top: 1px solid #e5eaf2; }
.modal--k2g .modal__actions .btn, .modal--k2rq .modal__actions .btn { min-height: 36px; height: 36px; padding: 0 16px; border-radius: 8px; font-size: 14px; }
.modal--k2g .modal__err:empty, .modal--k2g .dlg-status:empty, .modal--k2rq .modal__err:empty, .modal--k2rq .dlg-status:empty { display: none; }
/* 학생 상세 */
.k2-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.k2-crumb a { color: var(--muted); text-decoration: none; }
.k2-crumb a:hover { color: var(--ink); }
.k2-crumb span { color: #b4bcc8; }
.k2-crumb b { font-weight: 500; color: var(--ink-2); }
.k2-mh { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.k2-mh__who { display: flex; align-items: center; gap: 14px; }
.k2-ava { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--k2-soft); color: #5b677a; }
.k2-mh h1 { display: flex; align-items: center; gap: 2px; margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.3px; color: var(--ink); }
.k2-mh h1 .k2-menu__p { left: 0; right: auto; }
.k2-meta { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.k2-step { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 4px; border: 1px solid var(--k2-line); border-radius: 8px; background: var(--surface); font-size: 13px; color: var(--ink-2); }
.k2-step > span { min-width: 52px; text-align: center; }
.k2-dtabs { position: relative; display: flex; align-items: flex-end; gap: 24px; margin-top: 18px; border-bottom: 1px solid var(--k2-line); }
.k2-dtabs > a { position: relative; padding: 0 0 10px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.k2-dtabs > a:hover { color: var(--ink); }
.k2-dtabs > a.is-on { color: var(--ink); font-weight: 700; }
.k2-dtabs > a.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }
.k2-todo { margin-left: auto; padding-bottom: 8px; }
.k2-todo > summary { display: inline-flex; align-items: center; gap: 6px; color: var(--caution); font-size: 14px; font-weight: 600; }
.k2-todo__p { position: absolute; right: 0; top: calc(100% + 4px); z-index: 25; min-width: 200px; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--k2-line); border-radius: 10px; background: var(--surface); box-shadow: 0 6px 18px rgba(17, 24, 39, .10); }
.k2-todo__p li > a, .k2-todo__p li > span { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 10px; border-radius: 6px; font-size: 13.5px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.k2-todo__p li > a:hover { background: var(--k2-hover); color: var(--ink); }
.k2-todo__p b { color: var(--ink); font-weight: 700; }
.k2-todo__t.is-warn { color: var(--caution); font-weight: 600; }
.k2-dtabs + .k2-cards, .k2-dtabs + .k2-row2, .k2-dtabs + .k2-box { margin-top: 20px; }
.k2-allbtn { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.k2-allbtn i { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--k2-line); border-radius: 10px; color: var(--ink); }
.k2-allbtn:hover { color: var(--ink); }
.k2-sjc { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 24px 14px; border-bottom: 1px solid var(--k2-row); }
.k2-sj { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--k2-line); border-radius: 99px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; }
.k2-sj b { font-weight: 600; }
.k2-sj.is-on { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.k2-rw { margin: 0; padding: 0; list-style: none; }
.k2-rw li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 18px 8px 24px; border-top: 1px solid var(--k2-row); }
.k2-rw li:first-child { border-top: 0; }
.k2-thumb { display: grid; place-items: center; flex: none; width: 56px; height: 40px; border: 1px solid var(--k2-line); border-radius: 6px; background: var(--k2-th); color: #a6b0bf; }
.k2-rw__t { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.k2-qs { display: block; font-size: 12px; color: var(--muted); }
.k2-qt { display: block; overflow: hidden; font-size: 14px; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.k2-rw__n, .k2-rw__c { flex: none; font-size: 13px; color: var(--muted); }
.k2-rw__n { width: 72px; text-align: right; }
.k2-rw__c { width: 64px; text-align: right; }
.k2-rw__n b, .k2-rw__c b { font-weight: 700; color: var(--ink); }
.k2-sbox .k2-bt { padding: 18px 20px 0; }
.k2-sbs { margin: 2px 20px 0; font-size: 12.5px; color: var(--muted); }
.k2-lv { margin: 10px 0 14px; padding: 0; list-style: none; }
.k2-lv a { display: block; padding: 7px 20px; text-decoration: none; color: inherit; }
.k2-lv a:hover { background: var(--k2-hover); }
.k2-lv__h { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.k2-lv__h b { font-weight: 700; color: var(--ink); }
.k2-lv__b { display: block; height: 6px; margin-top: 6px; border-radius: 99px; background: var(--k2-soft); overflow: hidden; }
.k2-lv__b i { display: block; height: 100%; border-radius: 99px; background: var(--k2-blue); }
.k2-lv__b i.is-st { background: #e8912c; }
.k2-lv__b i.is-nn { background: #c5cfdc; }
.k2-chdesc { margin: 2px 24px 0; font-size: 12.5px; color: var(--muted); }
.k2-lc { position: relative; height: 180px; margin: 10px 24px 34px 54px; }
.k2-lc svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.k2-lc line { stroke: var(--k2-row); stroke-width: .4; }
.k2-lc polygon { fill: rgba(74, 118, 217, .1); }
.k2-lc polyline { fill: none; stroke: var(--k2-blue); stroke-width: 2.2; }
.k2-lc__y { position: absolute; left: -38px; width: 28px; transform: translateY(-50%); font-size: 11.5px; color: var(--muted); text-align: right; }
.k2-lc__d { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border: 2px solid var(--k2-blue); border-radius: 50%; background: var(--surface); box-sizing: border-box; }
.k2-lc__d.is-now { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: var(--k2-blue); }
.k2-lc__v { position: absolute; transform: translate(-50%, -150%); font-size: 12.5px; font-weight: 700; color: var(--ink); }
.k2-lc__x { position: absolute; top: calc(100% + 10px); transform: translateX(-50%); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.k2-lc__x.is-now { font-weight: 700; color: var(--ink); }
.k2-sbar { display: flex; gap: 3px; height: 10px; margin: 18px 20px 8px; border-radius: 99px; overflow: hidden; background: var(--k2-soft); }
.k2-sbar i { display: block; height: 100%; }
.k2-gl { margin: 8px 0 0; padding: 0; list-style: none; }
.k2-gl a { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px 0 20px; color: var(--ink-2); font-size: 13px; text-decoration: none; }
.k2-gl a:hover { background: var(--k2-hover); color: var(--ink); }
.k2-gl a > i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.k2-gl a > span { flex: 1; }
.k2-gl a > b { font-size: 15px; font-weight: 700; color: var(--ink); }
.k2-gl a > svg { color: #a6b0bf; }
.k2-gl--2 { margin: 6px 0 12px; padding-top: 6px; border-top: 1px solid var(--k2-row); }
.k2-gl a > b.k2-warn { color: var(--caution); }
.k2-t--rec { margin-top: 14px; }
.k2-t--rec th:first-child, .k2-t--rec td:first-child, .k2-t--pb th:first-child, .k2-t--pb td:first-child, .k2-ht th:first-child, .k2-ht td:first-child { padding-left: 24px; }
.k2-t--rec th:last-child, .k2-t--rec td:last-child { padding-right: 18px; }
.k2-t--rec th { border-top: 1px solid var(--k2-line); }
.k2-wbtn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.k2-wbtn b { font-weight: 600; }
.k2-wbtn svg { color: #a6b0bf; }
.k2-wbtn:hover { background: var(--k2-soft); }
.k2-cal { display: grid; grid-template-columns: 64px repeat(7, 1fr); gap: 10px 4px; align-items: center; justify-items: center; margin: 16px 20px 0; }
.k2-cw { font-size: 12px; color: var(--muted); }
.k2-cw.is-now { font-weight: 800; color: var(--ink); }
.k2-cdl { justify-self: start; font-size: 12px; color: var(--muted); white-space: nowrap; }
.k2-cp2 { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--k2-pip); }
.k2-cp2.is-on { background: var(--k2-blue); }
.k2-cp2.is-fut { background: transparent; box-shadow: inset 0 0 0 1.5px var(--k2-line); }
.k2-cp2.is-today { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); }
.k2-lg { display: flex; align-items: center; gap: 6px; margin: 16px 20px 18px; font-size: 12px; color: var(--muted); }
.k2-lg .k2-cp2 { width: 12px; height: 12px; }
.k2-lg .k2-cp2 + .k2-cp2, .k2-lg i:nth-of-type(2) { margin-left: 10px; }
.k2-t--pb { margin-top: 14px; }
.k2-t--pb th { border-top: 1px solid var(--k2-line); }
.k2-t--pb td { height: 58px; }
.k2-t--pb .k2-p1 { width: 150px; }
.k2-t--pb th:nth-child(3) { width: 110px; }
.k2-t--pb th:nth-child(4), .k2-t--pb th:nth-child(5) { width: 96px; }
.k2-t--pb .k2-p6 { width: 52px; padding-right: 14px; text-align: right; }
.k2-pcs { display: inline-flex; gap: 4px; }
.k2-pcs i { width: 8px; height: 8px; border-radius: 50%; background: var(--k2-pip); }
.k2-pcs i.is-on { background: var(--k2-blue); }
.k2-td { color: var(--primary-ink); }
.k2-pbback { display: inline-flex; align-items: center; gap: 2px; height: 32px; margin-right: 4px; padding: 0 12px 0 4px; border-right: 1px solid var(--k2-line); color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.k2-box.k2-r0 > .k2-bt { justify-content: flex-start; }
.k2-ac { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 14px 12px; margin: 0; padding: 18px 24px 22px; }
.k2-ac dt { font-size: 13px; color: var(--muted); }
.k2-ac dd { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--ink); }
.k2-ac .k2-link { margin-left: 4px; }
.k2-cbar { height: 8px; margin: 14px 20px 0; border-radius: 99px; background: var(--k2-soft); overflow: hidden; }
.k2-cbar i { display: block; height: 100%; border-radius: 99px; background: var(--k2-blue); }
.k2-cnote { margin: 8px 20px 0; font-size: 12.5px; color: var(--muted); }
.k2-cnote b { color: var(--ink); }
.k2-cnote .coin { width: 13px; height: 13px; }
.k2-ch3 { margin: 16px 20px 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.k2-cl { margin: 0; padding: 0; list-style: none; }
.k2-cl li { display: flex; gap: 12px; padding: 6px 20px; font-size: 13px; color: var(--ink-2); }
.k2-cl li b { margin-left: auto; font-weight: 600; color: var(--ink); }
.k2-cman { margin: 12px 20px 18px; }
/* 학습 현황 */
.k2-prd { position: relative; }
.k2-prb { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--k2-line); border-radius: 8px; background: var(--surface); color: var(--ink-2); font-size: 13px; }
.k2-prb b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.k2-prb span { color: var(--muted); }
.k2-prb svg { color: #6b7689; }
.k2-prp { position: absolute; right: 0; top: calc(100% + 6px); z-index: 25; width: 280px; padding: 6px; border: 1px solid var(--k2-line); border-radius: 12px; background: var(--surface); box-shadow: 0 10px 30px rgba(17, 24, 39, .12); }
.k2-prp ul { margin: 0; padding: 0; list-style: none; }
.k2-prp li button { display: block; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.k2-prp li button:hover { background: var(--k2-hover); }
.k2-prp li button.is-on { color: var(--primary-ink); font-weight: 600; }
.k2-prc { margin-top: 6px; padding: 10px; border-top: 1px solid var(--k2-line); }
.k2-prch { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.k2-prci { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.k2-prci input { flex: 1; min-width: 0; height: 34px; padding: 0 6px; border: 1px solid var(--k2-line); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.k2-prer { min-height: 0; margin: 6px 0 0; font-size: 12.5px; color: var(--caution); }
.k2-prer:empty { display: none; }
.k2-prcb { display: flex; justify-content: flex-end; margin-top: 8px; }
.k2-row2--st { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.k2-chs { display: flex; align-items: baseline; gap: 12px; padding: 14px 24px 0; }
.k2-cnow b { font-size: 28px; font-weight: 700; letter-spacing: -0.4px; color: var(--ink); }
.k2-cnow em { margin-left: 3px; font-style: normal; font-size: 14px; color: var(--muted); }
.k2-cdesc { font-size: 13px; color: var(--muted); }
.k2-cdf { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--k2-line); }
.k2-flow { position: relative; height: 210px; margin: 14px 24px 40px 60px; }
.k2-flow svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.k2-flow line { stroke: var(--k2-row); stroke-width: .5; }
.k2-flow polygon { fill: rgba(74, 118, 217, .1); }
.k2-flow polyline { fill: none; stroke: var(--k2-blue); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.k2-flow__y { position: absolute; left: -46px; width: 36px; transform: translateY(-50%); font-size: 12px; color: var(--muted); text-align: right; }
.k2-flow__d { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border: 2px solid var(--k2-blue); border-radius: 50%; background: var(--surface); box-sizing: border-box; }
.k2-flow__d.is-now { width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--k2-blue); box-shadow: 0 0 0 4px rgba(74, 118, 217, .18); }
.k2-flow__v { position: absolute; transform: translate(-50%, -165%); font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.k2-flow__v.is-now { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.k2-flow__x { position: absolute; left: 0; right: 0; top: calc(100% + 12px); height: 16px; }
.k2-flow__x span { position: absolute; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; }
.k2-flow__x span.is-now { font-weight: 700; color: var(--ink); }
.k2-mv .k2-bt { padding: 18px 22px 0; }
.k2-mvg { margin: 8px 0 0; padding: 0 0 6px; }
.k2-mvg + .k2-mvg { margin: 4px 22px 0; padding: 8px 0 10px; border-top: 1px solid var(--k2-line); }
.k2-mvg + .k2-mvg ul { margin: 0 -22px; }
.k2-mvh { margin: 2px 0 2px 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.k2-mvg ul { margin: 0; padding: 0; list-style: none; }
.k2-mvr { display: grid; grid-template-columns: 64px 1fr auto 14px; align-items: center; gap: 8px; height: 36px; padding: 0 16px 0 22px; color: var(--ink); text-decoration: none; }
.k2-mvr:hover { background: var(--k2-hover); color: var(--ink); }
.k2-mvn { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k2-mvf { font-size: 13px; color: var(--ink-2); }
.k2-mvr .k2-up { font-size: 14px; }
.k2-mvr svg { color: #a6b0bf; }
/* 이용권·결제 */
.k2-prow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 20px; }
.k2-plan { padding: 22px 24px 20px; }
.k2-pl-top { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.k2-pl-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.k2-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--primary-soft); color: var(--primary-ink); font-size: 12px; font-weight: 600; }
.k2-badge.is-off { background: #fff7ed; color: var(--caution); }
.k2-kebab-w { margin-left: auto; }
.k2-kebab { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 30px; border: 1px solid var(--k2-line); border-radius: 8px; background: var(--surface); color: var(--ink-2); }
.k2-kebab:hover, details[open] > .k2-kebab { background: var(--k2-hover); }
.k2-pl-price { margin-top: 12px; font-size: 34px; font-weight: 700; line-height: 40px; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.k2-pl-price small { margin-left: 2px; font-size: 18px; font-weight: 600; letter-spacing: 0; }
.k2-per { margin-left: 8px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.k2-pl-sub { margin-top: 4px; font-size: 13px; color: var(--muted); }
.k2-pl-dl { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--k2-line); }
.k2-pl-dl > div { display: grid; grid-template-columns: 116px 1fr; align-items: center; min-height: 34px; }
.k2-pl-dl dt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.k2-pl-dl dt svg { flex: none; width: 17px; height: 17px; color: #6b7689; }
.k2-pl-dl dd { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 0; font-size: 14px; color: var(--ink); }
.k2-rsv { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.k2-coinbox { display: flex; flex-direction: column; padding: 22px 24px 20px; }
.k2-cbh { display: flex; align-items: center; gap: 2px; min-height: 30px; }
.k2-cbh h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.k2-cbv { display: flex; align-items: center; margin-top: 12px; font-size: 34px; font-weight: 700; line-height: 40px; letter-spacing: -0.01em; color: var(--ink); }
.k2-cbv .coin { width: 26px; height: 26px; margin-left: 8px; }
.k2-cbstats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; border-top: 1px solid var(--k2-line); border-bottom: 1px solid var(--k2-line); }
.k2-cst { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; color: inherit; text-decoration: none; }
.k2-cst + .k2-cst { padding-left: 16px; border-left: 1px solid var(--k2-line); }
.k2-cst span { font-size: 12.5px; color: var(--muted); }
.k2-cst b { display: inline-flex; align-items: center; gap: 2px; font-size: 16px; font-weight: 700; color: var(--ink); }
a.k2-cst b { color: var(--primary-ink); }
a.k2-cst:hover b { text-decoration: underline; text-underline-offset: 3px; }
.k2-cbtns { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; }
.k2-rqst, .k2-rqres { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #f6f8fb; }
.k2-rqres { align-items: flex-start; padding: 12px 12px 12px 14px; }
.k2-rqd { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #e8912c; }
.k2-rqst > span:nth-child(2), .k2-rqres > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.k2-rqst b, .k2-rqres b { font-size: 13px; font-weight: 600; color: var(--ink); }
.k2-rqst i, .k2-rqres i { display: block; font-size: 12.5px; font-style: normal; color: var(--muted); }
.k2-rqst i .coin-n, .k2-rqres i .coin-n { vertical-align: -2px; margin-right: 1px; }
.k2-rqst .coin, .k2-rqres .coin { width: 12px; height: 12px; }
.k2-rqst .coin-n, .k2-rqres .coin-n { display: inline-flex; align-items: center; gap: 2px; }
.k2-rqst .coin-n b, .k2-rqres .coin-n b { font-size: 12.5px; font-weight: 500; color: inherit; }
.k2-rqi { display: inline-flex; flex: none; margin-top: 1px; }
.k2-rqres.is-ok .k2-rqi { color: var(--primary); }
.k2-rqres.is-no .k2-rqi { color: var(--caution); }
.k2-rqres q { display: block; margin-top: 6px; padding-left: 10px; border-left: 2px solid #d9dfe8; font-size: 13px; color: var(--ink-2); quotes: none; }
.k2-rqres .k2-link { align-self: center; font-size: 13px; font-weight: 600; }
.k2-rqx { flex: none; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--k2-faint); font-size: 16px; line-height: 1; cursor: pointer; }
.k2-rqx:hover { background: #eef2f6; color: var(--ink); }
.k2-hist { margin-top: 12px; padding-bottom: 6px; }
.k2-ht { margin-top: 14px; }
.k2-ht th { height: 40px; border-top: 1px solid var(--k2-line); color: #4b5a70; }
.k2-ht .k2-h-d { width: 172px; }
.k2-ht .k2-h-m { width: 180px; }
.k2-ht .k2-h-a, .cs--k2 .k2-ht th.k2-h-a, .cs--k2 .k2-ht td.k2-h-a { width: 200px; padding-right: 24px; text-align: right; }
.k2-ht td.k2-h-a { font-weight: 600; }
.k2-ht .k2-plus { color: var(--primary-ink); }
/* 코인 요청 · 학생에게 주기 창 */
.k2-dsub { margin: 0; font-size: 13px; color: var(--muted); }
.k2-dsub .coin, .k2-sum .coin, .k2-stp .coin { width: 16px; height: 16px; vertical-align: -3px; }
.k2-dnote { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: #fff8e6; color: #7a5200; font-size: 13px; }
.k2-fld { margin-top: 18px; }
.k2-fl { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.k2-fl em { font-style: normal; font-weight: 400; color: var(--muted); }
.k2-stp { display: flex; align-items: center; gap: 8px; }
.k2-stp button { width: 36px; height: 36px; border: 1px solid var(--k2-line, #e5eaf2); border-radius: 8px; background: var(--surface); color: var(--ink-2); font-size: 18px; cursor: pointer; }
.k2-stp button:hover { background: #f3f5f9; }
.k2-stp__v { min-width: 64px; font-size: 20px; font-weight: 700; text-align: right; color: var(--ink); }
.k2-qk { display: flex; gap: 6px; margin-top: 10px; }
.k2-qk button, .k2-chip { height: 30px; padding: 0 12px; border: 1px solid var(--k2-line, #e5eaf2); border-radius: 99px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; }
.k2-qk button[aria-pressed="true"], .k2-chip[aria-pressed="true"] { border-color: var(--primary); background: #f2f7ff; color: var(--primary-ink); font-weight: 600; }
.k2-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 112px; margin-top: 10px; overflow: auto; }
.k2-chips[hidden] { display: none; }
.k2-seg--wide { display: flex; }
.k2-seg--wide > button { flex: 1; justify-content: center; }
#k2rq textarea { box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid var(--k2-line, #e5eaf2); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; resize: none; }
#k2rq textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.k2-sum { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: #f6f8fb; }
.k2-sr { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.k2-sr b, .k2-sr .coin-n b { font-size: 15px; color: var(--ink); }
.k2-sr .coin-n { display: inline-flex; align-items: center; gap: 3px; }
.k2-sr span .coin-n b { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.k2-sn { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.k2-sn.is-bad { color: var(--caution); }
/* 설정 */
.k2-grp { margin-top: 20px; }
.k2-ph + .k2-grp { margin-top: 16px; }
.k2-grp > h2 { margin: 0 0 8px 2px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.k2-rows { overflow: hidden; }
.k2-srow { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; padding: 11px 24px; }
.k2-srow + .k2-srow { border-top: 1px solid var(--k2-line); }
.k2-rl > b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.k2-rl > span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.k2-ex { font-weight: 600; color: var(--ink-2); }
.k2-rc { display: flex; align-items: center; gap: 12px; }
.k2-in { box-sizing: border-box; width: 280px; height: 38px; padding: 0 12px; border: 1px solid var(--k2-line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.k2-in:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.k2-in--sm { width: 140px; }
.k2-val { font-size: 14px; color: var(--ink); }
.k2-gg { display: inline-flex; align-items: center; gap: 8px; }
.k2-mail { margin-left: 8px; color: var(--muted); }
.k2-tg { position: relative; display: inline-flex; cursor: pointer; }
.k2-tg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.k2-tg i { position: relative; width: 44px; height: 26px; border-radius: 99px; background: #cfd7e4; transition: background .15s; }
.k2-tg i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); transition: transform .15s; }
.k2-tg input:checked + i { background: var(--primary); }
.k2-tg input:checked + i::after { transform: translateX(18px); }
.k2-tg input:focus-visible + i { outline: 2px solid var(--primary); outline-offset: 2px; }
.k2-dz { margin-top: 28px; }
.k2-dz .k2-box { border-color: #f3c9c9; }
@media (prefers-reduced-motion: reduce) { .k2-tg i, .k2-tg i::after, .k2-qtip { transition: none; } }

/* ---------- 학교 관리자 · 코인 요청 (2026-12-02, 시안 _mock-school-coinreq.html) ----------
   views-school.js #/school/coins: the menu count, the list (확인 필요 | 확인 완료), the 승인 창 (.modal--scq) and the
   거절 창. Classes start with scq- so no other page is touched. */
.cs-nav a > span:has(> .scq-nb) { display: flex; flex: 1; align-items: center; }
.cs-nav a .scq-nb { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.cs-nav a[aria-current="page"] .scq-nb { color: var(--muted); }
.scq-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.scq-t { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.scq-t th { height: 44px; padding: 0; background: #f8fafc; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; font-weight: 500; color: #4b5a70; }
.scq-t td { height: 64px; padding: 0; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; color: #2f3d52; }
.scq-t tr:last-child td { border-bottom: 0; }
.scq-t .scq-d { width: 164px; padding-left: 24px; }
.scq-t .scq-w { width: auto; }
.scq-t .scq-q { width: 150px; }
.scq-t .scq-p { width: 140px; }
.scq-t .scq-g { width: 200px; padding-right: 24px; text-align: right; white-space: nowrap; }
.scq-t .scq-q > span, .scq-t .scq-p > span { display: block; padding-right: 24px; text-align: right; white-space: nowrap; }
.scq-t td.scq-w b { display: block; font-weight: 600; color: var(--ink); }
.scq-t td.scq-w i { display: block; margin-top: 2px; font-style: normal; font-size: 12.5px; color: var(--muted); }
.scq-t td.scq-q .coin-n b { font-weight: 500; }
.scq-t td.scq-p { font-weight: 600; color: var(--ink); }
.scq-t td.scq-g .btn { min-height: 32px; height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.scq-t td.scq-g .btn + .btn { margin-left: 8px; }
.scq-t .scq-dash { font-weight: 400; color: #a6b0bf; }
.scq-t .scq-st { font-size: 13px; color: var(--ink-2); }
.scq-t .scq-sd { display: block; margin-top: 2px; font-style: normal; font-size: 12.5px; color: var(--muted); }
.scq-t tr.scq-flash td { animation: scq-flash 1.6s ease-out; }
@keyframes scq-flash { 0%, 40% { background: #fffbea; } 100% { background: transparent; } }
.scq-none { margin: 0; padding: 48px 0; text-align: center; font-size: 14px; color: var(--muted); }
/* 승인 창 · 거절 창 */
dialog.modal--scq { width: min(440px, calc(100vw - 32px)); border-radius: 14px; }
.modal--scq .modal__inner { gap: 12px; padding: 20px 24px; }
.modal--scq .modal__inner > .row { margin: -4px -24px 4px; padding: 0 24px 14px; border-bottom: 1px solid var(--line); }
.modal--scq .modal__inner > .row h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; }
.modal--scq .modal__actions { margin: 4px -24px 0; padding: 14px 24px 0; border-top: 1px solid var(--line); }
.modal--scq .modal__actions .btn { min-height: 36px; height: 36px; padding: 0 16px; border-radius: 8px; font-size: 14px; }
.modal--scq .modal__err:empty, .modal--scq .dlg-status:empty { display: none; }
.scq-who { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.scq-who b { font-size: 15px; font-weight: 600; color: var(--ink); }
.scq-who span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.scq-memo { margin: 10px 0 0; padding: 2px 0 2px 12px; border-left: 2px solid #d9dfe8; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.scq-sum { margin: 18px 0 0; border: 1px solid var(--line); border-radius: 10px; }
.scq-sum > div { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 16px; }
.scq-sum > div + div { border-top: 1px solid var(--line); }
.scq-sum dt { font-size: 13.5px; color: var(--ink-2); }
.scq-sum dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.scq-sum .scq-tot { height: 52px; background: #f8fafc; border-radius: 0 0 10px 10px; }
.scq-sum .scq-tot dt { font-weight: 600; color: var(--ink); }
.scq-sum .scq-tot dd { font-size: 18px; font-weight: 700; }
.scq-pmf { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.scq-pmf legend { padding: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.scq-pms { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.scq-pm { position: relative; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border-top: 1px solid var(--line); cursor: pointer; }
.scq-pm:first-child { border-top: 0; }
.scq-pm input { position: absolute; opacity: 0; }
.scq-rd { width: 18px; height: 18px; flex: none; box-sizing: border-box; border: 1.5px solid #b4bdca; border-radius: 50%; }
.scq-pm input:checked ~ .scq-rd { border: 5px solid var(--primary); }
.scq-pm input:focus-visible ~ .scq-rd { outline: 2px solid var(--primary); outline-offset: 2px; }
.scq-pm:has(input:checked) { background: #f7faff; box-shadow: inset 0 0 0 1.5px var(--primary); }
.scq-pm:first-child:has(input:checked) { border-radius: 11px 11px 0 0; }
.scq-pm:last-child:has(input:checked) { border-radius: 0 0 11px 11px; }
.scq-pm > .icon { width: 22px; height: 22px; flex: none; color: #40536d; stroke-width: 1.7; }
.scq-pm b { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.scq-pmk { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 18px; flex: none; border-radius: 5px; font-size: 11px; font-weight: 800; }
.scq-pmk--n { background: #03c75a; color: #fff; letter-spacing: -0.3px; }
.scq-pmk--n small { margin-left: 1px; font-size: 8px; font-weight: 700; }
.scq-pmk--k { background: #fee500; }
.scq-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.scq-sub { margin: 0; font-size: 13px; color: var(--muted); }
.modal--scq-no .field { margin-top: 6px; }
.modal--scq-no textarea { resize: none; }
@media (prefers-reduced-motion: reduce) { .scq-t tr.scq-flash td { animation: none; background: #fffbea; } }

/* 2026-12-03 학생 관리 빈 상태: 공통 빈 상태(아이콘·한 줄·설명·버튼)를 표 칸 가운데에 */
.cs--k2 .k2-emp { padding: 56px 20px 52px; } .cs--k2 .k2-emp > svg { width: 48px; height: 48px; padding: 12px; box-sizing: border-box; border-radius: 14px; background: var(--surface-2, #f1f4f8); color: #8a94a6; }
.cs--k2 td.k2-emp-td { padding: 0; height: auto; border-bottom: 0; }

/* 2026-12-03 학생 추가 창 (.modal--k2a): 한 명씩 입력 · 명단 붙여넣기 · 추가 완료. 레퍼런스 Browserbase(줄마다 ✕ · 줄 추가) ·
   Miro(명단 붙여넣기) · Calendly(남은 자리). 파랑 하나, 오류는 주황(빨강은 삭제 버튼만). */
dialog.modal--k2a { width: min(540px, calc(100vw - 32px)); border-radius: 16px; }
.modal--k2a .modal__inner { gap: 0; padding: 22px 24px 20px; }
.modal--k2a .modal__inner > .row { margin: 0 0 18px; }
.modal--k2a .modal__inner > .row h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.k2a-seat { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; background: #f1f4f9; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.k2a-seat svg { width: 14px; height: 14px; } .k2a-seat b { color: var(--ink); font-weight: 700; } .k2a-seat i { font-style: normal; color: #b4bccb; }
.k2a-seat.is-over { background: #fdf2e6; color: var(--caution, #b45309); } .k2a-seat.is-over b { color: var(--caution, #b45309); }
.k2a-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border-radius: 10px; background: #eef2f7; margin-bottom: 18px; }
.k2a-seg button { height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.k2a-seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.k2a-lh, .k2a-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 168px 32px; column-gap: 8px; align-items: center; }
.k2a-lh { padding: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.k2a-list { display: grid; gap: 8px; max-height: 296px; overflow-y: auto; margin: 0 -4px; padding: 2px 4px; }
.k2a-row input { height: 40px; width: 100%; box-sizing: border-box; border: 1px solid #dfe5ee; border-radius: 9px; background: #fff; padding: 0 12px; font: inherit; font-size: 14.5px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.k2a-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.k2a-row input::placeholder { color: #a3acba; }
.k2a-row .k2a-no { text-align: center; padding: 0 6px; }
.k2a-id { position: relative; display: block; }
.k2a-id input { background: #f6f8fb; border-color: transparent; padding-right: 30px; font-size: 14px; }
.k2a-id input::placeholder { color: #5f6b7c; }
.k2a-id input:hover { border-color: #dfe5ee; }
.k2a-id svg { position: absolute; right: 10px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; color: #9aa4b3; pointer-events: none; }
.k2a-rm { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #9aa4b3; cursor: pointer; }
.k2a-rm:hover { background: #f1f4f9; color: var(--ink); } .k2a-rm svg { width: 15px; height: 15px; }
.k2a-err { grid-column: 2 / -1; margin: 0; font-size: 12.5px; color: var(--caution, #b45309); }
.k2a-err:empty { display: none; } .k2a-err:not(:empty) { margin-top: 5px; }
.k2a-row input.is-bad:not(:focus) { border-color: #f0b97c; background: #fffaf4; }
.k2a-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 40px; margin-top: 8px; border: 1px dashed #cfd7e4; border-radius: 9px; background: transparent; color: var(--primary-ink, #2563eb); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.k2a-more:hover { background: #f5f8ff; border-color: #a9c1f3; } .k2a-more svg { width: 15px; height: 15px; } .k2a-more[hidden] { display: none; }
.k2a-ta { width: 100%; box-sizing: border-box; min-height: 148px; border: 1px solid #dfe5ee; border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 14.5px; line-height: 1.7; color: var(--ink); resize: vertical; outline: none; }
.k2a-ta:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.k2a-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.k2a-prev:empty { display: none; }
.k2a-prev { margin-top: 14px; border: 1px solid #e5eaf2; border-radius: 10px; overflow: hidden; }
.k2a-ph { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid #e5eaf2; font-size: 13px; color: var(--muted); }
.k2a-ph b { color: var(--primary-ink, #2563eb); }
.k2a-prev ul { list-style: none; margin: 0; padding: 6px 0; max-height: 156px; overflow-y: auto; }
.k2a-prev li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; padding: 6px 14px; font-size: 14px; color: var(--ink); }
.k2a-prev li i { font-style: normal; font-size: 12.5px; color: var(--muted); } .k2a-prev li small { font-size: 13px; color: var(--muted); }
.k2a-prev li.is-bad { color: var(--caution, #b45309); }
.k2a-note { display: flex; align-items: center; gap: 6px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #eef1f6; font-size: 12.5px; color: var(--muted); }
.k2a-note svg { width: 14px; height: 14px; flex: none; }
.k2a-over { margin: 8px 0 0; font-size: 12.5px; color: var(--caution, #b45309); } .k2a-over:empty { display: none; }
.modal--k2a .modal__err:empty, .modal--k2a .dlg-status:empty { display: none; }
.modal--k2a .modal__actions { margin-top: 18px; gap: 8px; }
.modal--k2a .modal__actions .btn { height: 40px; padding: 0 16px; border-radius: 9px; font-size: 14px; }
.modal--k2a .modal__actions .btn--primary { min-width: 120px; }
.k2a-ok { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; flex: none; }
.k2a-tb { border: 1px solid #e5eaf2; border-radius: 10px; overflow: hidden; max-height: 300px; overflow-y: auto; }
.k2a-tb table { width: 100%; border-collapse: collapse; font-size: 14px; }
.k2a-tb th { position: sticky; top: 0; height: 38px; padding: 0 14px; background: #f8fafc; border-bottom: 1px solid #e5eaf2; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.k2a-tb td { height: 44px; padding: 0 14px; border-bottom: 1px solid #f0f3f7; color: var(--ink); } .k2a-tb tr:last-child td { border-bottom: 0; }
.k2a-tb td:first-child { color: var(--muted); width: 56px; }
.k2a-pw { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #eef3ff; color: var(--primary-ink, #2563eb); font-weight: 700; letter-spacing: 1px; }
.k2a-sub { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.k2a-full { margin: 0; font-size: 14px; color: var(--ink-2, #475569); }
.cs--k2 .k2-t tr.is-new td { animation: k2aNew 2.4s ease-out; }
@keyframes k2aNew { 0%, 40% { background: #eef3ff; } 100% { background: transparent; } }
.k2a-tb th, .k2a-tb td { text-align: left; } .k2a-tb th:first-child, .k2a-tb td:first-child { width: 64px; }
.modal--k2a .modal__actions .btn:focus:not(:focus-visible) { outline: none; box-shadow: none; }

/* 2026-12-03 단체: 멤버 코인 칸 (관리자가 주지 않고 멤버가 직접 충전) */
.k2-coinbox .k2-cbv .k2-per { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.k2-gcn { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* 2026-12-04 브웹 최종 검토 반영 — 선생님 콘솔(k2)·학교 관리자 (305 1~4 · 규칙 1~5 · R4 · C · D) */
/* 2 · the row arrow: an 18px line chevron, readable grey; the column stays, the row is not a link */
.k2-t td.k2-c-go a, .k2-t td.k2-c-go .sch-go { display: inline-flex; vertical-align: middle; padding: 0; border: 0; background: none; color: #6b7686; cursor: pointer; }
.k2-t td.k2-c-go a svg, .k2-t td.k2-c-go .sch-go svg { display: block; }
.k2-t--home th.k2-c-go, .k2-t--home td.k2-c-go { padding: 0 14px 0 0; }
.cs--sch .k2-ph + section { margin-top: 16px; }
.k2-t td.k2-c-go a:hover, .k2-t td.k2-c-go .sch-go:hover { color: var(--ink); }
/* 4 · the 이전·다음 box keeps one width */
.k2-step { box-sizing: border-box; width: 150px; justify-content: space-between; }
/* 표 줄 높이 68px (8 a page) */
.k2-t--home td, .k2-t--st td, .sch-t td { height: 68px; }
/* R4 · the number in the middle of the grey box at 26px; every changing value blue */
.k2g-pn input { width: auto; min-width: 1ch; font-size: 26px; text-align: center; }
.k2g-pn .coin { width: 20px; height: 20px; }
.k2g-sum dd b.is-sub { color: var(--primary); }
.k2g-flr--top { margin-top: 0; }
.k2g-seg--w { margin-top: 8px; }
.k2g-seg--w button { padding: 0 6px; font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; }
#k2gv .k2-chips { margin-top: 10px; }
.k2g-memo { margin-top: 16px; }
.k2g-memo label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.k2g-memo label em { font-style: normal; font-weight: 400; color: var(--muted); }
.k2g-memo input { display: block; box-sizing: border-box; width: 100%; height: 40px; margin-top: 6px; padding: 0 12px; border: 1px solid var(--k2-line, #e5eaf2); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.k2g-memo input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
/* C-3 (A안) · a row with an input: label above, input 360px; value-only rows stay label left · value right */
.k2-srow.is-stack { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; padding-top: 16px; padding-bottom: 18px; }
.k2-srow.is-stack .k2-rc { width: 100%; justify-content: flex-start; }
.k2-srow.is-stack .k2-in, .k2-srow.is-stack .k2-in--sm { width: 360px; max-width: 100%; }
/* C · school admin on the k2 frame */
.cs--sch .k2-cdlink { color: var(--primary); font-weight: 600; text-decoration: none; }
.cs--sch .k2-cdlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.sch-t { table-layout: fixed; }
.sch-t th.sch-c-nm, .sch-t td.sch-c-nm { width: 170px; padding-left: 24px; }
.sch-t th.sch-c-cl, .sch-t td.sch-c-cl { width: 190px; }
.sch-t th.k2-c-go, .sch-t td.k2-c-go { width: 56px; padding-right: 16px; }
.sch-nm { padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.sch-nm:hover { color: var(--primary); }
.sch-t td .coin-n, .sch-t td .num { font-variant-numeric: tabular-nums; }
.cs--sch .k2-sctabs { margin: 16px 0 4px; }
/* D · '13 / 30명' on one baseline, the small part 16px grey */
.sch-seatv { align-items: baseline; }
.sch-seatv small { margin-left: 6px; font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.sch-quote { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.sch-guide { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #f6f8fb; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
/* 규칙 2 · approve by picking coin packs; no 금액 column in the list */
.scq-pks { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; }
.scq-pkr { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 12px 0 16px; }
.scq-pkr + .scq-pkr { border-top: 1px solid var(--line); }
.scq-pkn b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.scq-pkn i { display: block; margin-top: 1px; font-style: normal; font-size: 12.5px; color: var(--muted); }
.scq-pks__s { display: inline-flex; align-items: center; gap: 10px; }
.scq-pks__s .k2g-pb { width: 32px; height: 32px; font-size: 16px; }
.scq-pks__s .k2g-pb:disabled { opacity: .4; cursor: default; }
.scq-pks__s > b { min-width: 22px; font-size: 16px; font-weight: 700; text-align: center; color: var(--ink); }
.scq-sum b.scq-blue { color: var(--primary); }
/* ---------- 2026-12-04 브웹 최종 검토 · 학생·멤버 화면 (결정 A · E · F · G) ----------
   A: student and member pages in the teacher console frame (.cs--k2 + .cs--stu, views-student.js stuShell).
   E: 이용권·결제 group titles 17px. F: member home 학습 현황 without the outer card. G: class student pass cards. */
.cs--stu .stu-card__org { display: block; margin-bottom: 4px; font-size: 12.5px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.cs--stu .stu-card__org:empty { display: none; }
.cs--stu .stu-card p:not(.k2-cls__pd) { margin-top: 4px; color: var(--muted); }
.cs--stu .stu-card .k2-cls__pd { color: var(--primary-ink); font-weight: 600; }
.cs--stu .cs-main > * { width: 100%; max-width: 885px; margin-inline: auto; }
.cs--stu .pv-narrow .cs-content > * { max-width: none; }
.cs--stu .cs-head { padding: 0; margin-bottom: 20px; border: 0; }
.cs--stu .cs-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.3; }
.cs--stu .bp-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.3px; }
.cs--stu .bp > .bp-row:first-of-type { margin-top: 20px; }
/* E */
.cs--stu .pv-sec-h h2 { font-size: 17px; font-weight: 700; gap: 8px; }
.cs--stu .pv-sec-h p { font-size: 14px; }
.cs--stu .pv-ico { width: 26px; height: 26px; }
/* F */
.bp .lh--flat, .lh--flat { margin-top: 24px; padding: 0; border: 0; background: none; box-shadow: none; }
.lh--flat .lh-top { margin: 0 0 12px; padding: 0; }
.lh--flat .lh-b { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 0; }
.lh--flat .lh-box { padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface, #fff); }
.lh--flat .lh-cmp { display: block; }
/* G-2 · G-8 */
.cs-content > .stu-pass { margin-top: 0; }
.stu-pass .stu-of { margin-left: -2px; order: 3; font-size: 20px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.stu-pass .stu-until { margin-left: 6px; font-weight: 500; color: var(--muted); }
/* ---------- 2026-12-04 매니저 화면 · 코인 요청 (결정 A · B · R3 · R4; views-teacher.js fv* · views-coinreq.js) ----------
   The family manager in the class teacher's frame (.cs--k2.cs--fam), the manager home (.fh-), 멤버 관리 (.fm-), the
   코인 요청 page shared by 매니저 · 단체 관리자 · 선생님 (.crq-) and its windows. */
.cs--k2.cs--fam .cs-main > * { max-width: 885px; margin-inline: auto; }
.cs--k2.cs--fam .cs-nav a .icon { width: 18px; height: 18px; }
/* 홈: 이름 15/600 + 학년 13/400 회색, 최근 학습은 글자만, 인증 전 멤버는 오른쪽 끝 [인증] 하나 */
.fh-t .k2-c-nm { width: 150px; padding-left: 24px; }
.fh-t .k2-c-wk { width: 236px; }
.fh-t .k2-c-cp { width: 170px; }
.fh-t .k2-c-rt { width: 128px; }
.fh-t .fh-ls { width: 112px; }
.fh-t th.fh-ls { text-align: left; }
.fh-t td.fh-ls { font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.fh-t .k2-c-go { width: auto; padding-right: 20px; }
.fh-gr { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
.fh-dot { margin: 0 5px; font-size: 13px; font-weight: 400; color: #9aa3b2; }
.fh-ok { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.fh-ok:hover { background: var(--primary-ink); }
/* 멤버 관리: 선생님 학생 관리와 같은 칸, 줄 높이 68px */
.fm-t thead th { height: 52px; }
.fm-t tbody td { height: 68px; }
.fm-t .k2-c-nm { width: 150px; padding-left: 24px; }
.fm-t .k2-c-id { width: 150px; }
.fm-t .k2-c-pw { width: 130px; }
.fm-t .k2-c-ls { width: 140px; text-align: center; }
.fm-t .k2-c-cn { width: 110px; text-align: center; }
.fm-t .k2-c-wr { width: 100px; text-align: center; }
.fm-t td.k2-c-cn .k2-coin { display: inline-flex; justify-content: center; }
.fm-t td.k2-c-ls, .fm-t td.k2-c-wr { font-size: 14px; color: var(--ink); }
.fm-auth { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--primary-ink); white-space: nowrap; cursor: pointer; }
.fm-auth:hover { text-decoration: underline; text-underline-offset: 3px; }
.fv-lead .fm-auth { margin-left: 6px; }
/* 코인 요청 목록 (매니저 · 단체 관리자 · 선생님 같은 틀; 금액 칸 없음) */
.crq-bar { display: flex; align-items: center; margin-top: 16px; }
.crq-t tbody td { height: 68px; }
.crq-t .crq-d { width: 150px; padding-left: 24px; }
.crq-t .crq-q { width: 140px; }
.crq-t .crq-g { width: 230px; padding-right: 24px; text-align: right; white-space: nowrap; }
.crq-t td.crq-w b { font-size: 15px; font-weight: 600; color: var(--ink); }
.crq-t td.crq-g .k2-btn + .k2-btn { margin-left: 8px; }
.crq-dot { margin: 0 5px; font-size: 13px; color: #9aa3b2; }
.crq-gr { font-size: 13px; color: var(--muted); }
.crq-memo { display: block; margin-top: 3px; font-style: normal; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crq-st { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; color: var(--ink-2); }
.crq-st b { font-weight: 600; color: var(--ink); }
.crq-st .coin { width: 14px; height: 14px; }
.crq-sd { display: block; margin-top: 2px; font-style: normal; font-size: 12.5px; color: var(--muted); }
.crq-none { margin: 0; padding: 48px 0; text-align: center; font-size: 14px; color: var(--muted); }
.crq-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
/* 결제 창: 묶음 고르기 · 바뀌는 값 파랑 */
.crq-fl { margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.crq-pks { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; }
.crq-pk { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 12px 0 16px; }
.crq-pk + .crq-pk { border-top: 1px solid var(--line); }
.crq-pk > span:first-child b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.crq-pk > span:first-child i { margin-left: 8px; font-style: normal; font-size: 13px; color: var(--muted); }
.crq-stp { display: inline-flex; align-items: center; gap: 4px; }
.crq-stp button { width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-2); font-size: 16px; line-height: 1; cursor: pointer; }
.crq-stp button:disabled { color: #c3cad5; cursor: default; }
.crq-stp b { min-width: 28px; text-align: center; font-size: 15px; font-weight: 700; color: var(--ink); }
.crq-sum { margin-top: 14px; }
.crq-sum .crq-tot dt { font-weight: 600; color: var(--ink); }
.crq-sum .crq-tot dd b { font-size: 16px; }
.crq-short { margin: 10px 0 0; font-size: 13px; color: var(--caution); }
/* 멤버 요청 창: 코인 관리 창 틀, 숫자 26px 가운데 */
.crq-askdlg .k2g-pn { flex: 1; justify-content: center; }
.crq-askdlg .k2g-pn input { width: auto; field-sizing: content; min-width: 2ch; font-size: 26px; text-align: center; pointer-events: none; }
.crq-askdlg .k2g-qk button[aria-pressed="true"] { background: var(--primary-soft, #e8f0ff); color: var(--primary-ink); font-weight: 600; }
.crq-memof { margin-top: 14px; }
.crq-memof label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.crq-memof label em { font-style: normal; font-weight: 400; color: var(--muted); }
.crq-memof input { display: block; width: 100%; box-sizing: border-box; height: 40px; margin-top: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; font-size: 14px; color: var(--ink); }
.crq-memof input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.bp-card .crq-rqst { margin-top: 16px; }
.crq-ask-link { border: 0; background: none; padding: 0; font-family: inherit; cursor: pointer; }
.fh-dot + .fh-gr { margin-left: 0; }
.k2-seg .crq-n { margin-left: 4px; }

/* 2026-12-04 B 최종 (디자이너): 매니저 홈·멤버 관리 — 이름 '서윤 · 중2' 가운데, 인증 전 멤버는 이름 왼쪽 주황 ! (마우스 올리면 설명),
   '보호자 인증 후 이용' 파란 글자 링크는 캐치 현황 칸 가운데 선, 오른쪽 [인증] 버튼 없음. */
.fh-t th.k2-c-nm, .fh-t td.k2-c-nm { text-align: center; padding-left: 12px; padding-right: 0; }
.fh-t th.fh-ls, .fh-t td.fh-ls { text-align: center; }
.fh-t td.k2-c-cp { text-align: center; }
.fh-nm { position: relative; display: inline-flex; align-items: baseline; }
.fh-nm .fh-gr { margin-left: 0; }
.fh-alert { position: absolute; right: calc(100% + 6px); top: 50%; transform: translateY(-50%); display: inline-flex; color: var(--caution, #b45309); cursor: default; outline: none; }
.fh-tip { position: absolute; left: -8px; top: calc(100% + 8px); z-index: 5; white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: #1c2431; color: #fff; font-size: 13px; font-weight: 500; box-shadow: 0 6px 16px rgba(20, 26, 36, .18); opacity: 0; pointer-events: none; transition: opacity .12s; }
.fh-tip::after { content: ""; position: absolute; left: 12px; bottom: 100%; border: 6px solid transparent; border-bottom-color: #1c2431; }
.fh-alert:hover .fh-tip, .fh-alert:focus .fh-tip { opacity: 1; }
.fh-t .fm-auth { font-size: 15px; }
.fm-t th.k2-c-nm, .fm-t td.k2-c-nm { padding-left: 36px; }
