/* wiamusic.smilestory.ai — site theme overlay (2026-10-28, family56 bundle B)
   ORIGINAL = DARK (index.html :root --bg:#0f1113). Nothing in the site's inline <style> blocks or in
   assets/score-kit.js / assets/sso.js is touched: every rule below is scoped to html[data-theme="light"],
   so the dark (no-preference / stored "dark") render is pixel-identical to today.
   Load position: </head> 직전, 페이지의 inline <style> 뒤. score-kit.js / sso.js 는 defer·런타임에 <style> 을
   <head> 끝에 append 하므로 이 파일보다 "뒤"에 온다 — 따라서 키트 셀렉터(.ksh, .ks-langbtn, .sso-*, .ks-foot …)는
   html[data-theme="light"] 접두로 특이성을 올려 이긴다(키트는 단일 클래스 셀렉터만 쓴다).

   Light palette
   ┌──────────────┬──────────┬──────────────────────────────────────────────┐
   │ token        │ dark     │ light                                        │
   ├──────────────┼──────────┼──────────────────────────────────────────────┤
   │ --bg         │ #0f1113  │ #f7f8fb  page                                │
   │ --bg-2       │ #15181b  │ #eef1f5  band / footer / input well          │
   │ --card       │ #1a1e22  │ #ffffff  cards                               │
   │ --line       │ rgba(w,.08)│ #e2e8f0 lines (inputs/chips use #cbd5e1)   │
   │ --txt        │ #f3f5f6  │ #0f172a  body text (16.8:1)                  │
   │ --txt-2      │ #a7b0b6  │ #475569  secondary (7.1:1)                   │
   │ --txt-3      │ #757f87  │ #5b6573  muted (5.6:1 on page)               │
   │ --green      │ #1D9E75  │ #15803d  brand green text/bg (5.0:1 w/ white)│
   │ --green-2    │ #25c490  │ #15803d  (eyebrow, step number, brand <b>)   │
   │ --mint       │ #7fe7c4  │ #0f766e  links, badges, prices (5.5:1)       │
   │ --coral      │ #D85A30  │ #c2410c  (5.2:1)                             │
   │ family blue  │ #7fb4ff  │ #1d4ed8  (6.7:1)                             │
   │ error        │ #ff8a6a  │ #c2410c                                      │
   └──────────────┴──────────┴──────────────────────────────────────────────┘
   color-scheme 는 엔진이 <html> 에 세팅 — 여기 넣지 않는다. */

/* ===== 1. tokens (every page's :root is the same set — index/market/order/dashboard/arrange/terms …) ===== */
html[data-theme="light"] {
  --bg: #f7f8fb;
  --bg-2: #eef1f5;
  --card: #ffffff;
  --card-2: #f1f4f8;          /* arrange.html */
  --line: #e2e8f0;
  --txt: #0f172a;
  --txt-2: #475569;
  --txt-3: #5b6573;
  --green: #15803d;
  --green-2: #15803d;
  --mint: #0f766e;
  --coral: #c2410c;
  --warn: #92400e;            /* arrange.html */
  --muted: #475569;           /* partner-upload.html (already a light page) */
}
html[data-theme="light"] body { background: var(--bg); color: var(--txt); }

/* ===== 2. shared shell injected by assets/score-kit.js ===== */
/* header.ksh — kit hard-codes rgba(15,17,19,.82) */
html[data-theme="light"] header.ksh { background: rgba(255,255,255,.86); border-bottom-color: #e2e8f0; }
html[data-theme="light"] .ksh-brand { color: #0f172a; }
html[data-theme="light"] .ksh-brand img { box-shadow: 0 0 0 1px rgba(15,23,42,.12); } /* icon.png has black corners */
html[data-theme="light"] .ksh-nav a { color: #334155; }
html[data-theme="light"] .ksh-nav a:hover { color: #0f766e; }
html[data-theme="light"] .ksh-burger { color: #0f172a; }
html[data-theme="light"] .ksh-mobile nav a { color: #0f172a; border-bottom-color: #e2e8f0; }
@media (max-width: 1023px) {
  html[data-theme="light"] .ksh-mobile.on { background: rgba(255,255,255,.97); border-top-color: #e2e8f0; }
}
/* 🌐 language button (kit) */
html[data-theme="light"] .ks-langbtn { background: #fff; border-color: #cbd5e1; color: #0f766e; }
html[data-theme="light"] .ks-langbtn:hover { border-color: #0f766e; background: #e6f4ee; }
/* login / library / logout (assets/sso.js) */
html[data-theme="light"] .sso-in { background: #fff; border-color: #cbd5e1; color: #0f172a; }
html[data-theme="light"] .sso-in:hover { filter: none; background: #e6f4ee; border-color: #0f766e; }
html[data-theme="light"] .sso-lib { color: #0f766e; border-color: rgba(15,118,110,.4); }
html[data-theme="light"] .sso-lib:hover { background: #e6f4ee; }
html[data-theme="light"] .sso-user { color: #0f766e; }
html[data-theme="light"] .sso-out { border-color: #cbd5e1; color: #475569; }
html[data-theme="light"] .sso-out:hover { color: #0f172a; }

/* footer.ks-foot (kit) */
html[data-theme="light"] footer.ks-foot { background: #eef1f5; border-top-color: #e2e8f0; color: #475569; }
html[data-theme="light"] .ks-foot h3,
html[data-theme="light"] .ks-foot .ks-brand { color: #0f172a; }
html[data-theme="light"] .ks-foot a { color: #475569; }
html[data-theme="light"] .ks-foot a:hover { color: #0f766e; }
html[data-theme="light"] .ks-legal { color: #5b6573; }
html[data-theme="light"] .ks-legal b { color: #334155; }
html[data-theme="light"] .ks-foot-bottom { border-top-color: #e2e8f0; color: #5b6573; }
/* inline style="color:#7fe7c4" on the family-sites link (score-kit.js:154) → needs !important */
html[data-theme="light"] #ksfam-link { color: #0f766e !important; }
/* inline style="color:#94a3b8" badge caption (score-kit.js:168) — 2.6:1 on #eef1f5 → !important */
html[data-theme="light"] .ks-foot-badge > div { color: #5b6573 !important; }

/* Family Sites modal (kit) */
html[data-theme="light"] .ksfam-modal { background: rgba(15,23,42,.45); }
html[data-theme="light"] .ksfam-box { background: #fff; border-color: #e2e8f0; box-shadow: 0 20px 60px rgba(15,23,42,.22); }
html[data-theme="light"] .ksfam-head { background: rgba(255,255,255,.95); border-bottom-color: #e2e8f0; }
html[data-theme="light"] .ksfam-head h3 { color: #0f172a; }
html[data-theme="light"] .ksfam-head .sub { color: #0f766e; }
html[data-theme="light"] .ksfam-close { color: #475569; }
html[data-theme="light"] .ksfam-item { background: #f7f8fb; border-color: #e2e8f0; }
html[data-theme="light"] .ksfam-item:hover { background: #e6f4ee; border-color: rgba(21,128,61,.4); }
html[data-theme="light"] .ksfam-name { color: #0f172a; }
html[data-theme="light"] .ksfam-url { color: #5b6573; }
/* inline style="color:#8a949a" loading/failed text (score-kit.js:187,195,196) */
html[data-theme="light"] .ksfam-grid > div[style] { color: #475569 !important; }

/* ===== 3. common components (same classes on index/market/order/studio/dashboard/arrange/terms …) ===== */
/* static header/footer left in the HTML are removed by the kit; cover them anyway for no-JS / kit-less pages */
html[data-theme="light"] header:not(.ksh) { background: rgba(255,255,255,.86); border-bottom-color: #e2e8f0; }
html[data-theme="light"] .nav-links { color: #334155; }
html[data-theme="light"] .nav-links a:hover { color: #0f766e; }
html[data-theme="light"] footer:not(.ks-foot) { border-top-color: #e2e8f0; color: #5b6573; }

html[data-theme="light"] .btn-primary { background: linear-gradient(135deg, #15803d 0%, #127a5a 100%); color: #fff; }
html[data-theme="light"] .btn-ghost,
html[data-theme="light"] .btn:not(.btn-primary):not(.btn-ghost) { background: #fff; color: #0f172a; border: 1px solid #cbd5e1; }
html[data-theme="light"] .btn-ghost:hover,
html[data-theme="light"] .btn:not(.btn-primary):not(.btn-ghost):hover { filter: none; background: #e6f4ee; border-color: #0f766e; }

/* form fields */
html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="email"],
html[data-theme="light"] input[type="search"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] input[type="url"],
html[data-theme="light"] input[type="password"],
html[data-theme="light"] select,
html[data-theme="light"] textarea,
html[data-theme="light"] .claim-in { background: #fff; color: #0f172a; border-color: #cbd5e1; }
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder { color: #5b6573; }
html[data-theme="light"] input:focus-visible,
html[data-theme="light"] select:focus-visible,
html[data-theme="light"] textarea:focus-visible,
html[data-theme="light"] .claim-in:focus { border-color: #15803d; outline-color: #15803d; }

/* chips / tabs / pager (market, studio, dashboard, learn-typing) */
html[data-theme="light"] .fchip,
html[data-theme="light"] .tab,
html[data-theme="light"] .pgbtn,
html[data-theme="light"] .os-tab,
html[data-theme="light"] .panel-toggle { background: #fff; border-color: #cbd5e1; color: #475569; }
html[data-theme="light"] .tab:hover,
html[data-theme="light"] .pgbtn:hover:not(:disabled):not(.on) { color: #0f172a; border-color: #94a3b8; }
html[data-theme="light"] .fchip.on { color: #0f766e; background: #e6f4ee; border-color: rgba(21,128,61,.45); }
/* market .tab.on = green gradient (white text); studio .tab.on = soft mint well — studio has no .tct child, market does */
html[data-theme="light"] .tab.on,
html[data-theme="light"] .pgbtn.on { background: linear-gradient(120deg, #15803d, #127a5a); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(21,128,61,.22); }
html[data-theme="light"] .panel .tab.on { background: #e6f4ee; border-color: rgba(21,128,61,.45); color: #0f766e; box-shadow: none; }
html[data-theme="light"] .os-tab.on { background: #15803d; border-color: #15803d; color: #fff; }
html[data-theme="light"] .pgbtn.dots { background: none; border: 0; color: #5b6573; }
html[data-theme="light"] .chip,
html[data-theme="light"] .bdg,
html[data-theme="light"] .feat .badge,
html[data-theme="light"] .mc-chip.nomatch,
html[data-theme="light"] .pawait { color: #0f766e; background: rgba(21,128,61,.09); }
html[data-theme="light"] .bdg.gray,
html[data-theme="light"] .mc-chip.run,
html[data-theme="light"] .sc,
html[data-theme="light"] .pgenre { color: #475569; background: #eef1f5; }
html[data-theme="light"] .mc-chip.match { color: #9a3412; background: rgba(234,88,12,.12); }
html[data-theme="light"] .mc-chip.review { color: #854d0e; background: rgba(202,138,4,.14); }
html[data-theme="light"] .mc-chip.fail { color: #b91c1c; background: rgba(220,38,38,.10); }

/* cards that hard-code dark gradients */
html[data-theme="light"] .feat,
html[data-theme="light"] .yt-card { background: linear-gradient(180deg, #fff, #f7f8fb); }
html[data-theme="light"] .hero-card { background: linear-gradient(160deg, #e6f4ee, #fff); border-color: rgba(21,128,61,.35); }
html[data-theme="light"] .cond { background: rgba(21,128,61,.08); border-color: rgba(21,128,61,.4); }
html[data-theme="light"] .note { background: rgba(194,65,12,.07); border-color: rgba(194,65,12,.35); }
html[data-theme="light"] .note b { color: #9a3412; }
html[data-theme="light"] .hint.warn { border-color: rgba(146,64,14,.35); background: rgba(217,119,6,.08); color: #92400e; }
html[data-theme="light"] .upgrade-lock { background: rgba(194,65,12,.06); border-color: rgba(194,65,12,.3); }
html[data-theme="light"] code { background: #eef1f5; color: #0f766e; }
html[data-theme="light"] .drop:hover,
html[data-theme="light"] .drop.over { background: rgba(21,128,61,.06); }

/* tables (ops/admin/dashboard lists) */
html[data-theme="light"] th,
html[data-theme="light"] td { border-color: #e2e8f0; }
html[data-theme="light"] thead th { background: #eef1f5; color: #334155; }

/* status text */
html[data-theme="light"] .err,
html[data-theme="light"] .wl-msg.err,
html[data-theme="light"] .claim-msg.err { color: #c2410c; }
html[data-theme="light"] .wl-msg.ok,
html[data-theme="light"] .claim-msg.ok { color: #15803d; }
html[data-theme="light"] .spin { border-color: rgba(15,23,42,.12); border-top-color: #0f766e; }

/* ===== 4. index.html ===== */
html[data-theme="light"] .hero::before { background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(21,128,61,.13), transparent 70%); }
html[data-theme="light"] .pill { color: #0f766e; background: rgba(21,128,61,.08); border-color: rgba(21,128,61,.32); }
html[data-theme="light"] .pill .dot { background: #15803d; box-shadow: 0 0 8px rgba(21,128,61,.5); }
html[data-theme="light"] h1 .grad,
html[data-theme="light"] .stat .v { background-image: linear-gradient(120deg, #15803d, #0f766e); }

/* hero badges + rights-atlas link are inline style="…" (index.html:243-247, 251) → !important */
html[data-theme="light"] .hero-badges > span[style] { color: #334155 !important; background: #fff !important; border-color: #cbd5e1 !important; }
html[data-theme="light"] .hero a[href="/rights-atlas.html"][style] {
  background: #fff !important; border-color: #cbd5e1 !important; color: #0f172a !important;
  box-shadow: 0 8px 22px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.06) !important;
}

/* waitlist form (#20252a well + heavy shadow) */
html[data-theme="light"] .wl-form { background: #fff; border-color: #cbd5e1; box-shadow: 0 10px 30px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.06); }
html[data-theme="light"] .wl-form input[type="email"] { background: transparent; border: 0; }

/* hero art frame — the PNG itself stays dark; just soften the frame */
html[data-theme="light"] .hero-art { border-color: #e2e8f0; box-shadow: 0 20px 50px rgba(15,23,42,.18); }

html[data-theme="light"] .feat-ic { background: rgba(21,128,61,.10); }
html[data-theme="light"] .yt-card:hover { border-color: rgba(21,128,61,.4); }
html[data-theme="light"] .yt-embed { box-shadow: 0 12px 32px rgba(15,23,42,.14); }
html[data-theme="light"] .yt-btn,
html[data-theme="light"] .yt-play { background: #cc0000; }        /* white on #f00 is 4.0:1 → #c00 5.9:1 */
html[data-theme="light"] .yt-poster:hover .yt-play { background: #a30000; }
html[data-theme="light"] .cta-box { background: radial-gradient(ellipse 70% 120% at 50% 0%, rgba(21,128,61,.10), transparent 70%), #fff; }

/* family-site block (blue accent) */
html[data-theme="light"] .nav-fam { color: #1d4ed8 !important; }   /* original also uses !important */
html[data-theme="light"] .nav-fam:hover { color: #1e3a8a !important; }
html[data-theme="light"] .fam-card { background: linear-gradient(135deg, #f1f5fb, #fff); }
html[data-theme="light"] .fam-card::before { background: radial-gradient(820px 320px at 12% 0%, rgba(37,99,235,.10), transparent 60%); }
html[data-theme="light"] .fam-kicker { color: #1d4ed8; }
html[data-theme="light"] .fam-badge { box-shadow: 0 6px 18px rgba(37,99,235,.28); }

/* ===== 5. market.html ===== */
html[data-theme="light"] .pcard:hover { border-color: rgba(21,128,61,.4); }
html[data-theme="light"] .pcover { background: linear-gradient(135deg, #e6f4ee, #d6ebe2); }
html[data-theme="light"] .pplay { background: rgba(255,255,255,.88); border-color: #cbd5e1; color: #0f172a; }
html[data-theme="light"] .pplay:hover { background: #15803d; color: #fff; }
html[data-theme="light"] .pscore { color: #0f766e; background: rgba(255,255,255,.92); border-color: rgba(21,128,61,.45); }
html[data-theme="light"] .pofo { color: #fff; background: #0f766e; }
html[data-theme="light"] .pearly { background: #c2410c; }
html[data-theme="light"] .pprice { color: #0f766e; }
html[data-theme="light"] .ytlb-close { color: #fff; }               /* lightbox stays dark on purpose */

/* ===== 6. order.html / dashboard.html / arrange.html / learn-typing.html ===== */
html[data-theme="light"] .dl a { background: linear-gradient(135deg, #15803d, #127a5a); }
html[data-theme="light"] .toast { background: #15803d; color: #fff; }
html[data-theme="light"] .alt-opt.picked { background: rgba(21,128,61,.08); }
html[data-theme="light"] .key.hot { background: rgba(21,128,61,.18); box-shadow: 0 6px 16px rgba(21,128,61,.22); }
html[data-theme="light"] .key.hot .jamo { color: #0f172a; }
html[data-theme="light"] .kb-key { stroke: #94a3b8; }
html[data-theme="light"] .kb-white { fill: #ffffff; }
html[data-theme="light"] .kb-black { fill: #334155; }

/* ===== 7. misc ===== */
/* community.html is a redirect stub with inline body style (background:#0f1113) — override for the split second it shows */
html[data-theme="light"] body[style*="background:#0f1113"] { background: #f7f8fb !important; color: #475569 !important; }
html[data-theme="light"] body[style*="background:#0f1113"] a[style] { color: #0f766e !important; }
