/* =====================================================================
   app.css — 두 묶음 (F 바탕)
   ① 시험판(칠판 board.html · 패드 pad.html · 첫 화면 index.html) 옛 부품 — :where(html:not(.tk)) 로 감쌈(옛 화면은 그대로, 우선순위도 그대로)
   ② 띵킷 교실 앱(<html class="tk"> — app.html · login.html …): tokens.css(시안) 다음에 읽는 공용 부품
   ===================================================================== */
/* ───── ① 옛 부품 (고치지 말 것 — 칠판 · 패드 시험판) ───── */
/* 띵킷 — 공용 화면 (글자 18px 이상 · 칠판은 더 크게 · 터치 기본 · 흐림 덮개 없음) */
:where(html:not(.tk)) {
  --ink: #1B2559; --ink2: #4A5583; --line: #DCE3F5; --bg: #F6F8FF; --card: #FFFFFF;
  --blue: #2563EB; --blue-l: #E3ECFF; --sun: #FFC21A; --sun-l: #FFF4CC; --berry: #CC2A6B;
  --go: #16A34A; --go-d: #0F7A37; --go-l: #DCFCE7; --no: #DC2626; --no-l: #FEE2E2; --wait: #9AA3BF; --wait-l: #EEF1F8;
  --r: 18px; --fs: 20px;
  font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}
* { box-sizing: border-box; }
:where(html:not(.tk)), :where(html:not(.tk)) body { margin: 0; height: 100%; }
:where(html:not(.tk)) body { background: var(--bg); color: var(--ink); font-size: var(--fs); line-height: 1.5; -webkit-tap-highlight-color: transparent; touch-action: manipulation; overscroll-behavior: none; }
:where(html:not(.tk)) body.big { --fs: 24px; }
:where(html:not(.tk)) h1, :where(html:not(.tk)) h2, :where(html:not(.tk)) h3 { margin: 0; line-height: 1.3; }
:where(html:not(.tk)) button { font: inherit; color: inherit; }
:where(html:not(.tk)) .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 10px 22px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); font-size: 20px; font-weight: 700; cursor: pointer; user-select: none; }
:where(html:not(.tk)) .btn:active { transform: translateY(1px); }
:where(html:not(.tk)) .btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
:where(html:not(.tk)) .btn.warn { border-color: var(--no); color: var(--no); }
:where(html:not(.tk)) .btn.warn.on { background: var(--no); color: #fff; }
:where(html:not(.tk)) .btn:disabled { opacity: .45; cursor: default; }
:where(html:not(.tk)) .btn.lg { min-height: 72px; font-size: 24px; padding: 14px 30px; border-radius: 20px; }
/* 지금 누를 단추 = 초록 + 부드럽게 깜빡(화면에 하나) */
:where(html:not(.tk)) .next { background: var(--go) !important; border-color: var(--go) !important; color: #fff !important; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 50% { box-shadow: 0 0 0 10px rgba(22,163,74,0); filter: brightness(1.08); } }
@media (prefers-reduced-motion: reduce) { :where(html:not(.tk)) .next { animation: none; } }
:where(html:not(.tk)) .card { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
:where(html:not(.tk)) .muted { color: var(--ink2); }
:where(html:not(.tk)) .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
:where(html:not(.tk)) #toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 14px 26px; border-radius: 16px; font-size: 20px; font-weight: 700; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: calc(100vw - 32px); text-align: center; }
:where(html:not(.tk)) #toast.on { opacity: 1; transform: translate(-50%, 0); }
/* 오른쪽 판(덮개 없음 · 본문은 왼쪽으로 줄어듦) */
:where(html:not(.tk)) .pane { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--card); border-left: 3px solid var(--line); box-shadow: -10px 0 30px -20px rgba(27,37,89,.4); z-index: 40; display: flex; flex-direction: column; }
:where(html:not(.tk)) .pane.wide { width: min(760px, 100vw); }
:where(html:not(.tk)) .pane-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 2px solid var(--line); }
:where(html:not(.tk)) .pane-hd h2 { font-size: 26px; }
:where(html:not(.tk)) .pane-bd { flex: 1; overflow: auto; padding: 18px 20px; }
:where(html:not(.tk)) body.pane-on .shell { margin-right: min(520px, 100vw); }
:where(html:not(.tk)) body.pane-on-w .shell { margin-right: min(760px, 100vw); }
:where(html:not(.tk)) .fig { max-width: 100%; height: auto; display: block; margin: 10px 0; }
:where(html:not(.tk)) .dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--wait); flex: none; }
:where(html:not(.tk)) .dot.on { background: var(--go); }
/* 시작 화면 */
:where(html:not(.tk)) .home { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
:where(html:not(.tk)) .home .in { width: min(880px, 100%); text-align: center; }
:where(html:not(.tk)) .home h1 { font-size: clamp(40px, 7vw, 64px); }
:where(html:not(.tk)) .home .sub { font-size: 24px; color: var(--ink2); margin: 8px 0 34px; }
:where(html:not(.tk)) .home .two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
:where(html:not(.tk)) .home .pick { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 18px; border-radius: 26px; border: 3px solid var(--line); background: var(--card); font-size: 30px; font-weight: 800; text-decoration: none; color: var(--ink); }
:where(html:not(.tk)) .home .pick span { font-size: 20px; font-weight: 500; color: var(--ink2); }
:where(html:not(.tk)) .home .pick.next span { color: #E7FFEF; }
@media (max-width: 640px) { :where(html:not(.tk)) .home .two { grid-template-columns: 1fr; } }
/* 교구 자리 */
:where(html:not(.tk)) .kit-host { position: relative; width: 100%; height: 100%; min-height: 420px; border-radius: 22px; overflow: hidden; background: #F6F8FF; }
:where(html:not(.tk)) .kit-lock { position: absolute; inset: 0; z-index: 20; background: transparent; cursor: not-allowed; }
:where(html:not(.tk)) .kit-tag { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 21; background: var(--ink); color: #fff; font-weight: 700; padding: 8px 18px; border-radius: 999px; font-size: 18px; pointer-events: none; white-space: nowrap; }
:where(html:not(.tk)) .kit-tag.mine { background: var(--go); }
[hidden] { display: none !important; }

/* ───── ② 띵킷 교실 앱 공용 부품 (html.tk — tokens.css 다음) ─────
   글자: 본문 20 · 보조 18 · 배지 숫자만 16 · 12 밑 금지. 지금 단추 = .btn-go(셸 setGo 로 한 화면에 하나). 덮개 없음.
   [D2] 단추 체계(크기 3단 · 위계 5 · 상태) · 홈 단추 · 이동 경로 · 뼈대 · 빈 상태는 common.css — 학부모 · 집 · 인쇄 화면도 같이 읽어야 해서 따로 둠 */
html.tk, html.tk body { height: 100%; }
html.tk body { overflow: hidden; }
:where(html.tk) a { color: var(--brand); }
html.tk button { font: inherit; }
html.tk [hidden] { display: none !important; }

/* 머리(시안 6-16 topbar) — 로고 → 메뉴 띠 → 빈자리 → 나 */
.tk .topbar .brand img.mark { height: 40px; width: auto; display: block; }
.tk .tk-menu > a { text-decoration: none; }
.tk .tk-menu > a.on { color: var(--ink); }
.tk .tk-me { background: transparent; border: 0; cursor: pointer; padding: 4px 8px; border-radius: var(--r-m); color: var(--ink-2); }
.tk .tk-me:hover { background: var(--bg-2); }

/* 본문 자리 — 오른쪽 판이 열리면 왼쪽으로 줄어듦(덮개 · 흐림 없음) */
#tk-main { height: calc(100vh - 72px); overflow: auto; transition: margin-right var(--m-mid) var(--ease); }
body.tk-side-on #tk-main { margin-right: min(560px, 42vw); }
body.tk-side-wide #tk-main { margin-right: min(760px, 56vw); }
.tk .tk-side.wide { width: min(760px, 56vw); }
.tk .tk-side { top: 72px; }
.tk .side-foot { flex-wrap: wrap; }
.tk .side-foot .tk-row { width: 100%; }
.tk .side-foot .btn { flex: 1; }

/* 쪽 · 묶음 */
.tk-page { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s5); min-height: 100%; }
.tk-h { font-size: var(--t-xl); font-weight: 800; }
.tk-h small { display: block; font-size: var(--t-s); font-weight: 600; color: var(--ink-2); margin-top: 2px; }
.tk-cols { display: grid; grid-template-columns: 292px minmax(0, 1fr) 344px; gap: var(--s5); padding: var(--s5); height: 100%; }
.tk-cols > * { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: var(--s4); }
.tk-cols.two { grid-template-columns: 320px minmax(0, 1fr); }
.tk-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.tk-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.tk-stack { display: flex; flex-direction: column; gap: var(--s4); }
.tk-row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.tk-row.between { justify-content: space-between; }
.tk-big { font-size: var(--t-l); font-weight: 800; }
.tk-ask { font-size: var(--t-m); line-height: 1.6; }
.tk-note { background: var(--spark-soft); border-color: #F2DFA6; display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; }
.tk-oops h2 { font-size: var(--t-l); margin-bottom: var(--s2); }

/* 반 카드(시안 「오늘」 왼쪽 .cls) */
.tk-cls { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s3); padding: var(--s4) var(--s4) var(--s4) var(--s5); border-radius: var(--r-l); background: var(--card); border: var(--line-w2) solid var(--line); cursor: pointer; position: relative; text-align: left; font: inherit; color: inherit; width: 100%; }
.tk-cls:hover { border-color: var(--line-2); }
.tk-cls.on { border-color: var(--brand); box-shadow: var(--sh-2); }
.tk-cls.on::before { content: ""; position: absolute; left: -2px; top: 16px; bottom: 16px; width: 6px; border-radius: 0 6px 6px 0; background: var(--brand); }
.tk-cls .t { font-size: var(--t-s); font-weight: 700; color: var(--ink-2); align-self: center; }
.tk-cls .n { font-size: var(--t-l); font-weight: 800; grid-column: 1 / -1; }
.tk-cls .th { grid-column: 1 / -1; font-size: var(--t-s); color: var(--ink-2); line-height: 1.45; }

/* 수업 흐름 한 줄(시안 .fl) */
.tk-fl { display: grid; grid-template-columns: 80px 1fr auto; gap: var(--s4); align-items: start; padding: var(--s3) var(--s5); background: var(--card); border: var(--line-w) solid var(--line); border-radius: var(--r-l); }
.tk-fl .tm { font-size: var(--t-s); font-weight: 800; color: var(--ink-2); line-height: 1.3; }
.tk-fl h3 { font-size: var(--t-m); display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.tk-fl .say, .tk-fl .miss { margin-top: 4px; font-size: var(--t-s); line-height: 1.5; }
.tk-fl .say b { color: var(--brand-deep); margin-right: 6px; }
.tk-fl .miss { color: var(--ink-2); }
.tk-fl .miss b { color: var(--hint); margin-right: 6px; }
.tk-fl.now { border: var(--line-w2) solid var(--brand); box-shadow: var(--sh-2); }
.tk-fl.done { background: transparent; }
.tk-fl.done h3 { color: var(--ink-2); }

/* 상태 — 맞음 ○ · 다시 △ · 틀림 ✕ · 아직 □ (색 + 모양 + 말) */
.mk { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-s); font-weight: 800; white-space: nowrap; }
.mk .ico { width: 22px; height: 22px; }
.mk-ok { color: var(--ok); }
.mk-re { color: var(--hint); }
.mk-no { color: var(--no); }
.mk-wait { color: var(--wait); font-weight: 700; }
/* 빠른 칸(아이 × 문제): 누를 때마다 ○ → △ → ✕ → □ */
.tk-cell { width: 56px; height: 56px; border-radius: var(--r-m); border: var(--line-w2) solid var(--wait-line); background: var(--wait-bg); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.tk-cell .mk > span { display: none; }
.tk-cell .mk .ico { width: 28px; height: 28px; }
.tk-cell[data-v="O"] { background: var(--ok-bg); border-color: var(--ok-line); }
.tk-cell[data-v="△"] { background: var(--hint-bg); border-color: #E7B27E; }
.tk-cell[data-v="X"] { background: var(--no-bg); border-color: var(--no-line); }
.tk-cell:focus-visible { outline: var(--line-w3) solid var(--brand); outline-offset: 2px; }

/* 칩 묶음 · 별 · 아이 표 */
.tk-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.tk-stars { color: var(--spark); letter-spacing: 1px; font-size: var(--t-s); }
.tk-stars .off { color: var(--line-2); }
.tk-kid { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.tk-kmark { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; color: var(--ink-2); flex: none; }

/* 끌기 막대 — 숫자 치기 대신. 손잡이 크게 */
.tk-slider { display: flex; flex-direction: column; gap: var(--s2); }
.tk-slider-top { display: flex; justify-content: space-between; align-items: baseline; }
.tk-slider-top b { font-size: var(--t-l); }
.tk-slider-ends { display: flex; justify-content: space-between; }
.tk-slider input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 48px; background: transparent; cursor: grab; margin: 0; }
.tk-slider input[type=range]::-webkit-slider-runnable-track { height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--brand) var(--p, 0%), var(--bg-2) var(--p, 0%)); }
.tk-slider input[type=range]::-moz-range-track { height: 12px; border-radius: 999px; background: var(--bg-2); }
.tk-slider input[type=range]::-moz-range-progress { height: 12px; border-radius: 999px; background: var(--brand); }
.tk-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 36px; height: 36px; margin-top: -12px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: var(--sh-2); }
.tk-slider input[type=range]::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.tk-slider input[type=range]:focus-visible { outline: var(--line-w3) solid var(--brand); outline-offset: 4px; border-radius: 999px; }

/* 문항 그림 · 빈 자리 */
.tk-fig { margin: var(--s3) 0; }
.tk-fig svg { max-width: 100%; height: auto; display: block; }
.tk-empty { display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: var(--s7) var(--s5); text-align: center; color: var(--ink-2); border: var(--line-w2) dashed var(--line-2); border-radius: var(--r-l); }
.tk-empty b { font-size: var(--t-m); color: var(--ink); }
.tk-ph { display: flex; flex-direction: column; gap: 4px; padding: var(--s4) var(--s5); border: var(--line-w2) dashed var(--line-2); border-radius: var(--r-l); background: var(--card); }
.tk-ph b { font-size: var(--t-l); }
.tk-ph-cls h3 { margin: 4px 0; }

/* 알림 */
#tk-toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px); background: var(--ink); color: #fff; padding: 14px 28px; border-radius: var(--r-l); font-size: var(--t-m); font-weight: 700; opacity: 0; pointer-events: none; transition: opacity var(--m-mid) var(--ease), transform var(--m-mid) var(--ease); z-index: 60; max-width: calc(100vw - 32px); text-align: center; box-shadow: var(--sh-3); }
#tk-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 들어오기 화면 */
.tk-login { height: 100%; display: grid; place-items: center; padding: var(--s6) var(--s4); overflow: auto; }
.tk-login .box { width: min(600px, 100%); display: flex; flex-direction: column; gap: var(--s5); padding: var(--s6); }
.tk-login .logo { height: 64px; width: auto; align-self: flex-start; }
.tk-login h1 { font-size: var(--t-xl); }
.tk-login .btn { width: 100%; }

/* 컴퓨터 전용(1366~1920 · 전자칠판 1920) — 좁으면 한 줄만 */
#tk-narrow { display: none; }
@media (max-width: 1023px) {
  html.tk body > :not(#tk-narrow):not(script) { display: none !important; }
  html.tk #tk-narrow { display: grid; place-items: center; height: 100%; padding: var(--s5); text-align: center; font-size: var(--t-l); font-weight: 800; color: var(--ink); }
}

/* =====================================================================
   ③ [D3 10-21] 화면 틀 · 위계 · 카드 세 종류 — 모든 앱 화면 같은 꼴 (원장님 「안쪽 화면 구성 · 색감 다시」)
   색은 tokens.css 「1-7 앱 화면 색 층」. 틀: 머리 72 · 이동 경로 44 · 본문 최대 --page-max · 양옆 --gutter · 왼쪽 --col-l · 오른쪽 --col-r.
   카드 세 종류: 강조(.card-hi — 하늘빛 위 띠 · 그림자, 화면에 1~2개) · 보통(.card) · 조용한(.card-quiet — 모래 바탕 · 테두리 없음).
   글자 단계: 화면 제목 30 · 묶음 제목 22 · 카드 제목 24/20 · 본문 20 · 보조 18 · 숫자 배지 16. 18 밑 글자 없음.
   html.tk 를 앞에 붙여 화면별 css(s1~s5 · curri · kits · games)보다 먼저 이김 — 화면 js 는 그대로.
   ===================================================================== */
html.tk body {
  background:
    radial-gradient(1100px 460px at 88% -12%, rgba(126,200,240,.20), transparent 62%),
    radial-gradient(820px 420px at -6% 112%, rgba(255,176,102,.11), transparent 62%),
    var(--bg);
}

/* 머리 — 로고 · 홈 · 메뉴 · (빈자리) · 사람. 안쪽 여백은 본문과 같은 줄에 맞춤 */
html.tk .topbar {
  --edge: max(var(--gutter), calc((100vw - var(--page-max)) / 2 + var(--gutter)));
  height: 72px; padding: 0 var(--edge); gap: var(--s4); background: var(--card);
  border-bottom: var(--line-w) solid var(--line); box-shadow: 0 10px 24px -22px rgba(14,60,100,.35);
}
html.tk .topbar .brand b { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; }
html.tk .tk-menu { background: transparent; padding: 0; gap: 2px; }
html.tk .tk-menu > a { position: relative; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); color: var(--ink-2); font-weight: 700; box-shadow: none; background: transparent; }
html.tk .tk-menu > a .ico { width: 22px; height: 22px; color: var(--ink-3); }
html.tk .tk-menu > a:hover { background: var(--accent-soft); color: var(--accent-deep); }
html.tk .tk-menu > a:hover .ico { color: var(--accent-deep); }
html.tk .tk-menu > a.on { background: var(--brand-soft); color: var(--brand-deep); font-weight: 800; box-shadow: none; }
html.tk .tk-menu > a.on .ico { color: var(--brand); }
html.tk .tk-menu > a.on::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 28px; height: 4px; margin-left: -14px; border-radius: 4px 4px 0 0; background: var(--accent); }
html.tk .tk-home { border-color: var(--line); }
html.tk .topbar .tk-home { margin-left: 0; }
html.tk .tk-home[aria-current="page"] { background: var(--brand-soft); border-color: var(--sky-3); color: var(--brand-deep); }
html.tk .topbar .me i { background: var(--accent-soft); color: var(--accent-deep); box-shadow: inset 0 0 0 2px #FFD9BC; }
html.tk .tk-me { color: var(--ink); }

/* 이동 경로 — 머리 아래 얇은 길잡이(본문 바탕과 하나, 선 없음) */
html.tk .tk-crumb {
  --edge: max(var(--gutter), calc((100vw - var(--page-max)) / 2 + var(--gutter)));
  height: 44px; padding: 0 var(--edge); background: transparent; border-bottom: 0;
}
html.tk .tk-crumb li:first-child a { margin-left: -8px; }
html.tk .tk-crumb li:last-child b { color: var(--ink); }
html.tk .tk-crumb li:only-child b { padding-left: 0; }
html.tk .tk-crumb .when { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-2); }
html.tk .tk-crumb .when::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
html.tk.has-crumb body #tk-main { height: calc(100vh - 72px - 44px); }
@media (max-width: 1560px) { html.tk .topbar { gap: var(--s3); } html.tk .tk-menu > a { padding: 0 10px; gap: 6px; } }
@media (max-width: 1420px) { html.tk .topbar { gap: var(--s2); } html.tk .tk-menu > a { padding: 0 9px; } html.tk .tk-menu > a .ico { width: 20px; height: 20px; } }
/* 태블릿 가로(1024 ~ 1240, 수업 화면) — 메뉴 아이콘은 접고 글자만(머리 한 줄 · 가로 넘침 없음) */
@media (max-width: 1240px) { html.tk .topbar { gap: 6px; } html.tk .tk-menu { gap: 0; } html.tk .tk-menu > a { padding: 0 8px; } html.tk .tk-menu > a .ico { display: none; } html.tk .topbar .tk-home { padding: 0 12px 0 10px; } }

/* 본문 자리 — 최대 폭 안에서 꽉, 양옆 여백 하나 */
html.tk #tk-main > * { width: 100%; max-width: var(--page-max); margin-inline: auto; }
html.tk .tk-page { padding: var(--s2) var(--gutter) var(--s6); gap: var(--s5); }
html.tk .tk-cols { grid-template-columns: var(--col-l) minmax(0, 1fr) var(--col-r); gap: var(--s5); padding: var(--s2) var(--gutter) var(--s5); }
html.tk .tk-cols.two { grid-template-columns: var(--col-l) minmax(0, 1fr); }
html.tk .tk-skel { padding: var(--s2) var(--gutter) var(--s5); }
html.tk .tk-skel.cols { grid-template-columns: var(--col-l) minmax(0, 1fr) var(--col-r); }
html.tk .tk-skel.bank { grid-template-columns: var(--col-l) minmax(0, 1fr); }
html.tk .tk-skel .bar, html.tk .tk-skel .box { background: linear-gradient(90deg, #ECE6DB 0%, #F8F5EF 40%, #ECE6DB 80%); background-size: 300% 100%; }

/* 화면 제목 영역 — 모든 화면 같은 꼴: 제목 30 · 설명 18 · 오른쪽에 주요 단추 / 고르기 */
html.tk .tk-h { font-size: var(--t-title); font-weight: 800; letter-spacing: -0.025em; line-height: 1.25; }
html.tk .tk-h small { font-size: var(--t-s); font-weight: 600; color: var(--ink-2); margin-top: 6px; letter-spacing: 0; line-height: 1.45; }
html.tk .tk-h small b { color: var(--ink); }

/* 묶음 제목 — 색 칸 아이콘 + 진한 글자(작은 회색 글 → 또렷하게) */
html.tk .section-title { font-size: var(--t-m); font-weight: 800; color: var(--ink); gap: var(--s3); letter-spacing: -0.01em; }
html.tk .section-title > .ico { width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: var(--sky-1); color: var(--brand); box-shadow: inset 0 0 0 1px var(--sky-2); flex: none; }

/* 카드 세 종류 */
html.tk .card { border-color: var(--line); box-shadow: var(--sh-1); }
html.tk .card-hi { background: linear-gradient(180deg, var(--sky-1) 0, #fff 140px), #fff; border: var(--line-w) solid var(--sky-3); box-shadow: var(--sh-2); position: relative; }
html.tk .card-hi::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--brand), #38AAE6 62%, var(--accent)); pointer-events: none; }
html.tk .card-quiet { background: var(--bg-2); border-color: transparent; box-shadow: none; }

/* 단추 · 칩 · 탭 · 표 — 같은 꼴, 색만 새 층 */
html.tk .btn-main { box-shadow: 0 8px 18px -12px rgba(14,108,150,.8); }
html.tk .seg > * { white-space: nowrap; }
html.tk .seg > .on { color: var(--brand-deep); }
html.tk .badge.b-spark { background: var(--accent-soft); color: var(--accent-deep); }
html.tk .tbl tbody tr:hover td { background: var(--cream); }

/* 반 카드 · 수업 흐름 · 알림 칸 */
html.tk .tk-cls { border-color: var(--line); box-shadow: var(--sh-1); }
html.tk .tk-cls:hover { border-color: var(--sky-3); }
html.tk .tk-cls.on { border-color: var(--brand); background: linear-gradient(180deg, var(--sky-1), #fff 70%); box-shadow: var(--sh-2); }
html.tk .tk-cls .t { color: var(--brand-deep); font-variant-numeric: tabular-nums; }
html.tk .tk-cls .n { letter-spacing: -0.02em; }
html.tk .tk-fl.now { background: linear-gradient(90deg, var(--sky-1), #fff 40%); }
html.tk .tk-fl .tm { color: var(--brand-deep); }
html.tk .tk-note { background: var(--cream); border-color: #F6DDC2; box-shadow: inset 4px 0 0 var(--accent); }
html.tk .tk-empty { background: rgba(255,255,255,.65); }

/* 오른쪽 판 — 머리 하늘빛 */
html.tk .side-head { background: linear-gradient(180deg, var(--sky-1), #fff); }
html.tk .side-head h2 { letter-spacing: -0.02em; }

/* 넓은 칸 안 긴 단추: 잘리지 않고 두 줄로 */
html.tk .tk-stack > .btn, html.tk .side-foot .btn { white-space: normal; text-align: center; line-height: 1.3; padding-block: 8px; }

/* 들어오기 화면 — 판매 첫 화면처럼 하늘빛 바탕 + 가운데 카드 */
html.tk .tk-login { background:
    radial-gradient(900px 520px at 80% 10%, rgba(126,200,240,.40), transparent 62%),
    radial-gradient(640px 420px at 6% 96%, rgba(255,176,102,.26), transparent 62%),
    linear-gradient(180deg, #FFFFFF 0%, var(--sky-1) 60%, var(--sky-2) 100%); }
html.tk .tk-login .box { box-shadow: var(--sh-3); border-color: var(--sky-3); border-radius: var(--r-xl); padding: var(--s7) var(--s6); }
html.tk .tk-login h1 { font-size: 32px; letter-spacing: -0.03em; }
html.tk .tk-login-top { box-shadow: none; }
