/* OMU 우리 아이 — /kids/songs (우리 아이 노래) and /kids/story (OMU STORY). Classes: kd-*.
   Same type scale as the explore and member pages: eyebrow 14 · h1 34–52 · lede 18 · section 26 · card 17 · meta 15 · buttons 52.
   Headings carry !important because the v3 shell recolours every h1–h3. */

.kd-page{
  --kd-ink:#2a1d33;--kd-text:#4a3f52;--kd-muted:#76697f;--kd-line:#f0e3ea;--kd-field:#e2d3dc;
  --kd-rose:#ef5a7f;--kd-rose-ink:#c2335c;--kd-rose-soft:#ffe9ef;--kd-gold:#ffcf6e;--kd-gold-ink:#7a4d00;
  --kd-night:#141a46;--kd-night-2:#262c74;--kd-card:#fff;--kd-cream:#fffaf5;
  --kd-ring:rgba(239,90,127,.42);--kd-shadow:0 18px 40px -24px rgba(74,36,72,.35);
  --kd-tone-night:#e7e9ff;--kd-tone-mint:#dcf5ea;--kd-tone-sun:#fff1c9;--kd-tone-sky:#e1f0ff;--kd-tone-rose:#ffe4ec;--kd-tone-lilac:#eee7ff;
  display:block;box-sizing:border-box;width:100%;margin:0;padding:28px var(--am-gutter,40px) 96px;
  color:var(--kd-text);font-size:17px;line-height:1.6;word-break:keep-all;overflow-wrap:break-word;
  background:radial-gradient(1200px 520px at 85% -8%,#ffe7ef 0,rgba(255,231,239,0) 70%),radial-gradient(900px 480px at -5% 18%,#fff1dc 0,rgba(255,241,220,0) 70%),var(--kd-cream);
}
.kd-page *,.kd-page *::before,.kd-page *::after{box-sizing:border-box}
.kd-page [hidden]{display:none!important}
.kd-page button,.kd-page input,.kd-page select,.kd-page textarea{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
.kd-page button{cursor:pointer}
.kd-page svg{flex:none}
.kd-page :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--kd-ring)!important;outline-offset:2px}

html body .kd-page :is(.kd-title,.kd-section__title,.kd-dialog h2,.kd-tonight__title,.kd-reader h2,.kd-make h3){margin:0;font-family:inherit;color:var(--kd-ink)!important}
html body .kd-page .kd-title{font-size:clamp(34px,4.3vw,54px)!important;font-weight:800!important;line-height:1.16!important;letter-spacing:-.035em!important}
html body .kd-page .kd-section__title{font-size:26px!important;font-weight:800!important;line-height:1.3!important;letter-spacing:-.02em!important}
html body .kd-page p.kd-eyebrow,.kd-page .kd-eyebrow{margin:0;color:var(--kd-rose-ink)!important;font-size:14px!important;font-weight:800!important;letter-spacing:.06em!important;line-height:1.4}
html body .kd-page p.kd-eyebrow.kd-eyebrow--gold{color:var(--kd-gold)!important}
.kd-page .kd-lede{margin:16px 0 0;max-width:36em;color:var(--kd-text);font-size:18px;line-height:1.7}
.kd-page .kd-name{position:relative;white-space:nowrap;color:var(--kd-rose);background:linear-gradient(transparent 72%,rgba(255,207,110,.55) 72%,rgba(255,207,110,.55) 92%,transparent 92%)}
.kd-page .kd-name-inline{color:var(--kd-rose-ink);font-weight:800}

/* Buttons */
.kd-page .kd-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 24px;border:0;border-radius:999px;font-size:17px;font-weight:800;line-height:1.2;text-decoration:none!important;white-space:nowrap;transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,color .18s ease}
.kd-page .kd-btn--key{background:var(--kd-rose);color:#fff!important;box-shadow:0 14px 28px -14px rgba(239,90,127,.75)}
.kd-page .kd-btn--key:hover{background:var(--kd-rose-ink);transform:translateY(-1px)}
.kd-page .kd-btn--ghost{background:#fff;color:var(--kd-ink)!important;box-shadow:inset 0 0 0 1.5px var(--kd-field)}
.kd-page .kd-btn--ghost:hover{box-shadow:inset 0 0 0 1.5px var(--kd-rose);color:var(--kd-rose-ink)!important}
.kd-page .kd-btn--gold{background:var(--kd-gold);color:#3a2600!important;box-shadow:0 14px 30px -14px rgba(255,207,110,.8)}
.kd-page .kd-btn--gold:hover{background:#ffd98b;transform:translateY(-1px)}
.kd-page .kd-btn--glass{background:rgba(255,255,255,.12);color:#fff!important;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.32)}
.kd-page .kd-btn--glass:hover{background:rgba(255,255,255,.2)}
.kd-page .kd-btn--sm{min-height:44px;padding:0 18px;font-size:15.5px}
.kd-page .kd-btn:disabled{opacity:.55;cursor:default;transform:none!important}
.kd-page .kd-link{padding:0;border:0;background:none;color:var(--kd-rose-ink)!important;font-weight:800;font-size:15.5px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.kd-page .kd-icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:2px;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:rgba(42,29,51,.06);color:var(--kd-ink)}
.kd-page .kd-icon-btn:hover{background:rgba(42,29,51,.12)}
.kd-page .kd-icon-btn--text{width:auto;padding:0 14px;border-radius:999px;font-weight:800;font-size:16px}
.kd-page .kd-icon-btn--text small{font-size:12px}

/* Top bar: service tabs + family */
.kd-page .kd-topbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 20px;margin:0 0 22px}
.kd-page .kd-tabs{display:inline-flex;gap:4px;padding:5px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px var(--kd-line),0 6px 18px -14px rgba(74,36,72,.4)}
.kd-page .kd-tab{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;min-height:42px;padding:0 18px;border-radius:999px;color:var(--kd-text)!important;font-size:15.5px;font-weight:800;text-decoration:none!important}
.kd-page .kd-tab:hover{color:var(--kd-rose-ink)!important}
.kd-page .kd-tab.is-active{background:var(--kd-rose-soft);color:var(--kd-rose-ink)!important}
.kd-page .kd-family{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.kd-page .kd-family__label{color:var(--kd-muted);font-size:14px;font-weight:700}
.kd-page .kd-family__kids{display:flex;flex-wrap:wrap;gap:6px}
.kd-page .kd-kid{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:3px 14px 3px 4px;border:0;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--kd-line);font-size:15.5px;font-weight:800;color:var(--kd-ink)}
.kd-page .kd-kid[aria-checked="true"]{background:var(--kd-ink);color:#fff;box-shadow:none}
.kd-page .kd-kid__face{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--kd-tone-rose);overflow:hidden}
.kd-page .kd-kid--boy .kd-kid__face{background:var(--kd-tone-sky)}
.kd-page .kd-kid__face svg{width:30px;height:46px;margin-top:12px}
.kd-page .kd-family__edit{display:inline-flex;align-items:center;gap:5px;min-height:42px;padding:0 12px;border:0;border-radius:999px;background:transparent;color:var(--kd-muted);font-size:14.5px;font-weight:700}
.kd-page .kd-family__edit:hover{color:var(--kd-rose-ink)}
.kd-page .kd-role{display:inline-flex;padding:4px;border-radius:999px;background:rgba(42,29,51,.06)}
.kd-page .kd-role button{min-height:36px;padding:0 14px;border:0;border-radius:999px;background:transparent;font-size:14.5px;font-weight:800;color:var(--kd-muted)}
.kd-page .kd-role button[aria-checked="true"]{background:#fff;color:var(--kd-ink);box-shadow:0 2px 8px -4px rgba(42,29,51,.4)}

/* Songs hero */
.kd-page .kd-hero{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:28px;align-items:center;padding:clamp(28px,4vw,56px);border-radius:34px;background:radial-gradient(70% 90% at 92% 20%,#ffd3df 0,rgba(255,211,223,0) 70%),radial-gradient(60% 80% at 10% 100%,#ffe9c7 0,rgba(255,233,199,0) 70%),#fff6f2;box-shadow:inset 0 0 0 1px #ffe0e8,var(--kd-shadow);overflow:hidden}
.kd-page .kd-hero__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.kd-page .kd-voice-status{display:flex;align-items:center;gap:8px;margin:18px 0 0;color:var(--kd-muted);font-size:15px;font-weight:600}
.kd-page .kd-voice-status.is-ready::before{content:"";width:9px;height:9px;border-radius:50%;background:#2fbf71;box-shadow:0 0 0 4px rgba(47,191,113,.18)}
.kd-page .kd-voice-status a{color:var(--kd-rose-ink)!important;font-weight:800}
.kd-page .kd-hero__art{position:relative;min-height:380px;display:grid;place-items:center}
.kd-page .kd-disc{position:relative;width:min(330px,82%);aspect-ratio:1;border-radius:50%;background:repeating-radial-gradient(circle,#2c1f35 0 2px,#352641 2px 4px);box-shadow:0 30px 60px -30px rgba(42,29,51,.8),inset 0 0 0 10px #241a2c;animation:kd-spin 14s linear infinite}
.kd-page .kd-disc::after{content:"";position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 30deg,rgba(255,255,255,0) 0 20%,rgba(255,255,255,.12) 26%,rgba(255,255,255,0) 32% 70%,rgba(255,255,255,.08) 76%,rgba(255,255,255,0) 82%)}
.kd-page .kd-disc__label{position:absolute;inset:27%;display:grid;place-items:end center;border-radius:50%;background:radial-gradient(circle at 50% 35%,#fff7e6,#ffd9e4);overflow:hidden;box-shadow:0 0 0 6px #ffcf6e}
.kd-page .kd-disc__label svg{width:62%;height:auto;margin-bottom:-4%}
.kd-page .kd-lyric-card{position:absolute;left:0;bottom:6%;width:min(270px,62%);padding:16px 18px;border-radius:20px;background:#fff;box-shadow:0 24px 44px -26px rgba(74,36,72,.55);animation:kd-bob 5s ease-in-out infinite}
.kd-page .kd-lyric-card__badge{display:inline-flex;align-items:center;gap:7px;padding:4px 10px;border-radius:999px;background:var(--kd-rose-soft);color:var(--kd-rose-ink);font-size:13px;font-weight:800}
.kd-page .kd-lyric-card__title{margin:10px 0 4px;color:var(--kd-ink);font-size:17px;font-weight:800}
.kd-page .kd-lyric-card__lines{margin:0;color:var(--kd-text);font-size:15px;line-height:1.65;transition:opacity .35s ease}
.kd-page .kd-lyric-card__lines.is-fading{opacity:0}
.kd-page .kd-lyric-card__lines b{color:var(--kd-rose);font-weight:800}
.kd-page .kd-eq{display:inline-flex;align-items:flex-end;gap:2px;height:12px}
.kd-page .kd-eq i{width:3px;height:100%;border-radius:2px;background:currentColor;animation:kd-eq 1s ease-in-out infinite}
.kd-page .kd-eq i:nth-child(2){animation-delay:-.3s}.kd-page .kd-eq i:nth-child(3){animation-delay:-.6s}.kd-page .kd-eq i:nth-child(4){animation-delay:-.15s}
.kd-page .kd-float{position:absolute;color:var(--kd-rose);font-size:30px;font-weight:800;opacity:.75;animation:kd-float 6s ease-in-out infinite}
.kd-page .kd-float--1{top:6%;right:12%}.kd-page .kd-float--2{top:30%;right:2%;color:#f2a33a;animation-delay:-2s}.kd-page .kd-float--3{top:12%;left:14%;color:#7aa7ff;animation-delay:-4s;font-size:24px}

/* Steps */
.kd-page .kd-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0 0;padding:0;list-style:none}
.kd-page .kd-steps li{display:flex;gap:14px;align-items:flex-start;padding:18px 20px;border-radius:22px;background:#fff;box-shadow:inset 0 0 0 1px var(--kd-line)}
.kd-page .kd-steps__num{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:var(--kd-rose-soft);color:var(--kd-rose-ink);font-weight:800}
.kd-page .kd-steps strong{display:block;color:var(--kd-ink);font-size:17px}
.kd-page .kd-steps li span:not(.kd-steps__num){display:block;color:var(--kd-muted);font-size:15px;line-height:1.5}
.kd-page .kd-steps strong span{display:inline!important;color:inherit!important;font-size:inherit!important}

/* Sections */
.kd-page .kd-section{margin-top:56px}
.kd-page .kd-section__head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 24px;margin-bottom:20px}
.kd-page .kd-section__head .kd-section__title{margin-top:6px!important}
.kd-page .kd-section__note{margin:0;color:var(--kd-muted);font-size:15.5px}

/* Situation cards */
.kd-page .kd-situations{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.kd-page .kd-sit{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:200px;padding:20px;border:0;border-radius:26px;text-align:left;background:var(--tone,#fff);box-shadow:inset 0 0 0 1px rgba(42,29,51,.05);transition:transform .2s ease,box-shadow .2s ease}
.kd-page .kd-sit:hover{transform:translateY(-4px);box-shadow:inset 0 0 0 1px rgba(42,29,51,.06),0 22px 36px -24px rgba(74,36,72,.55)}
.kd-page .kd-sit__icon{display:grid;place-items:center;width:52px;height:52px;margin-bottom:10px;border-radius:18px;background:#fff;color:var(--kd-rose-ink);box-shadow:0 8px 18px -12px rgba(74,36,72,.5)}
.kd-page .kd-sit__label{color:var(--kd-ink);font-size:19px;font-weight:800}
.kd-page .kd-sit__sub{color:var(--kd-muted);font-size:14.5px}
.kd-page .kd-sit__title{margin-top:auto;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.85);color:var(--kd-ink);font-size:14px;font-weight:800}
.kd-page .kd-tone--night{--tone:var(--kd-tone-night)}.kd-page .kd-tone--mint{--tone:var(--kd-tone-mint)}.kd-page .kd-tone--sun{--tone:var(--kd-tone-sun)}
.kd-page .kd-tone--sky{--tone:var(--kd-tone-sky)}.kd-page .kd-tone--rose{--tone:var(--kd-tone-rose)}.kd-page .kd-tone--lilac{--tone:var(--kd-tone-lilac)}

/* Anniversaries */
.kd-page .kd-days__list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.kd-page .kd-day{position:relative;display:flex;flex-direction:column;gap:12px;padding:20px;border-radius:26px;background:#fff;box-shadow:inset 0 0 0 1px var(--kd-line)}
.kd-page .kd-day__top{display:flex;align-items:center;gap:12px}
.kd-page .kd-day__face{display:grid;place-items:center;flex:none;width:52px;height:52px;border-radius:50%;background:var(--tone,var(--kd-tone-rose));overflow:hidden}
.kd-page .kd-day__face svg{width:44px;height:70px;margin-top:18px}
.kd-page .kd-day__label{display:block;color:var(--kd-ink);font-size:18px;font-weight:800;line-height:1.3}
.kd-page .kd-day__date{display:block;color:var(--kd-muted);font-size:14.5px}
.kd-page .kd-day__dday{position:absolute;top:16px;right:16px;padding:4px 11px;border-radius:999px;background:var(--kd-ink);color:#fff;font-size:14px;font-weight:800;letter-spacing:.02em}
.kd-page .kd-day__dday.is-today{background:var(--kd-rose)}
.kd-page .kd-day .kd-btn{align-self:flex-start}
.kd-page .kd-day--empty{justify-content:center;align-items:flex-start;background:var(--kd-tone-sun);box-shadow:none}
.kd-page .kd-day--empty p{margin:0;color:var(--kd-text);font-size:15.5px}

/* Album rows (songs and stories) */
.kd-page .kd-album{display:grid;gap:10px}
.kd-page .kd-row{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px 14px 12px 12px;border-radius:22px;background:#fff;box-shadow:inset 0 0 0 1px var(--kd-line)}
.kd-page .kd-row__art{display:grid;place-items:center;width:64px;height:64px;border-radius:16px;background:var(--tone,var(--kd-tone-rose));color:var(--kd-rose-ink);overflow:hidden}
.kd-page .kd-row__art svg.kd-row__scene{width:100%;height:100%}
.kd-page .kd-row__title{display:block;overflow:hidden;color:var(--kd-ink);font-size:17px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
.kd-page .kd-row__meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;color:var(--kd-muted);font-size:14.5px}
.kd-page .kd-row__actions{display:flex;gap:6px}
.kd-page .kd-status{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:999px;background:rgba(42,29,51,.06);color:var(--kd-text);font-size:13.5px;font-weight:800}
.kd-page .kd-status--busy{background:#fff1c9;color:#8a5a00}
.kd-page .kd-status--busy::before{content:"";width:8px;height:8px;border-radius:50%;background:#f2a33a;animation:kd-pulse 1.2s ease-in-out infinite}
.kd-page .kd-status--ready{background:#dcf5ea;color:#1d7a4a}
.kd-page .kd-status--failed{background:#ffe4e4;color:#b42318}
.kd-page .kd-empty{padding:26px;border-radius:24px;background:#fff;box-shadow:inset 0 0 0 1px var(--kd-line);color:var(--kd-muted);font-size:15.5px}
.kd-page .kd-empty strong{display:block;margin-bottom:4px;color:var(--kd-ink);font-size:17px}

/* Trust */
.kd-page .kd-trust{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:56px}
.kd-page .kd-trust div{padding:20px 22px;border-radius:22px;background:rgba(255,255,255,.7);box-shadow:inset 0 0 0 1px var(--kd-line)}
.kd-page .kd-trust strong{display:block;color:var(--kd-ink);font-size:16.5px}
.kd-page .kd-trust p{margin:6px 0 0;color:var(--kd-muted);font-size:15px;line-height:1.6}

/* Dialogs */
.kd-page .kd-dialog{width:min(640px,calc(100vw - 24px));max-height:min(860px,calc(100dvh - 24px));padding:0;border:0;border-radius:28px;background:#fff;color:var(--kd-text);box-shadow:0 40px 90px -30px rgba(42,29,51,.55)}
.kd-page .kd-dialog::backdrop{background:rgba(32,20,40,.45);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.kd-page .kd-dialog[open]{animation:kd-pop .22s ease-out}
.kd-page .kd-dialog__inner{display:flex;flex-direction:column;gap:16px;max-height:inherit;padding:24px;overflow:auto}
.kd-page .kd-dialog__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
html body .kd-page .kd-dialog h2{margin-top:4px!important;font-size:24px!important;font-weight:800!important;line-height:1.3!important}
.kd-page .kd-dialog__lede{margin:0;color:var(--kd-muted);font-size:15.5px}
.kd-page .kd-dialog__foot{position:sticky;bottom:-24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:0 -24px -24px;padding:14px 24px 20px;background:#fff;box-shadow:0 -1px 0 var(--kd-line)}
.kd-page .kd-foot-note{margin:0;color:var(--kd-muted);font-size:13.5px}
.kd-page .kd-field{display:flex;flex-direction:column;gap:7px}
.kd-page .kd-field__label{color:var(--kd-ink);font-size:15px;font-weight:800}
.kd-page .kd-field__label small{margin-left:6px;color:var(--kd-muted);font-weight:600;font-size:13px}
/* ID scope: the shell form rule body.omu-interface-v2 :is(input:not()×3,select,textarea) is (0,4,2) with !important. */
:is(#kdComposer,#kdFamilyDialog) :is(.kd-field,.kd-kid-row) :is(input,textarea,select){width:100%;min-height:48px;padding:11px 14px;border:1.5px solid var(--kd-field)!important;border-radius:14px!important;background:#fff!important;color:var(--kd-ink)!important;font-size:16px;line-height:1.6;box-shadow:none!important}
#kdComposer .kd-field textarea{resize:vertical;min-height:220px}
:is(#kdComposer,#kdFamilyDialog) :is(.kd-field,.kd-kid-row) :is(input,textarea,select):focus{border-color:var(--kd-rose)!important;outline:0!important;box-shadow:0 0 0 4px rgba(239,90,127,.16)!important}
.kd-page .kd-composer__style{margin:0;color:var(--kd-muted);font-size:14px}
.kd-page .kd-form-error{margin:0;padding:10px 14px;border-radius:14px;background:#fff1f1;color:#b42318;font-size:15px;font-weight:600}
.kd-page .kd-voices{display:grid;gap:8px}
.kd-page .kd-voice{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:10px 14px;border:0;border-radius:16px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--kd-field);text-align:left}
.kd-page .kd-voice[aria-checked="true"]{box-shadow:inset 0 0 0 2px var(--kd-rose);background:var(--kd-rose-soft)}
.kd-page .kd-voice__dot{flex:none;width:20px;height:20px;border-radius:50%;box-shadow:inset 0 0 0 2px var(--kd-field);background:#fff}
.kd-page .kd-voice[aria-checked="true"] .kd-voice__dot{box-shadow:inset 0 0 0 6px var(--kd-rose)}
.kd-page .kd-voice strong{display:block;color:var(--kd-ink);font-size:16px}
.kd-page .kd-voice small{display:block;color:var(--kd-muted);font-size:13.5px}
.kd-page .kd-voice-note{margin:0;padding:12px 14px;border-radius:14px;background:var(--kd-tone-sun);color:var(--kd-text);font-size:15px}
.kd-page .kd-voice-note a{color:var(--kd-rose-ink)!important;font-weight:800}
.kd-page .kd-kid-rows{display:grid;gap:10px}
.kd-page .kd-kid-row{display:grid;grid-template-columns:minmax(0,1.2fr) auto minmax(0,1fr) auto;gap:8px;align-items:center;padding:12px;border-radius:18px;background:var(--kd-cream);box-shadow:inset 0 0 0 1px var(--kd-line)}
.kd-page .kd-kid-row label{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:800;color:var(--kd-muted)}
.kd-page .kd-gender{display:inline-flex;align-self:end;padding:4px;border-radius:14px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--kd-field)}
.kd-page .kd-gender button{min-height:38px;padding:0 12px;border:0;border-radius:10px;background:transparent;font-size:14.5px;font-weight:800;color:var(--kd-muted)}
.kd-page .kd-gender button[aria-pressed="true"]{background:var(--kd-ink);color:#fff}
.kd-page .kd-kid-row .kd-icon-btn{align-self:end}

/* Progress */
.kd-page .kd-progress{padding:18px;border-radius:20px;background:var(--kd-cream);box-shadow:inset 0 0 0 1px var(--kd-line)}
.kd-page .kd-progress__steps{display:flex;gap:6px;margin:0 0 12px;padding:0;list-style:none;counter-reset:kd}
.kd-page .kd-progress__steps li{flex:1;display:flex;flex-direction:column;gap:8px;color:var(--kd-muted);font-size:14px;font-weight:800}
.kd-page .kd-progress__steps li > span:first-child{height:6px;border-radius:999px;background:rgba(42,29,51,.1);overflow:hidden;position:relative}
.kd-page .kd-progress__steps li.is-active > span:first-child::after{content:"";position:absolute;inset:0;width:40%;border-radius:inherit;background:var(--kd-rose);animation:kd-slide 1.4s ease-in-out infinite}
.kd-page .kd-progress__steps li.is-done > span:first-child{background:var(--kd-rose)}
.kd-page .kd-progress__steps li.is-active,.kd-page .kd-progress__steps li.is-done{color:var(--kd-ink)}
.kd-page .kd-progress__text{margin:0;color:var(--kd-ink);font-size:16px;font-weight:700}
.kd-page .kd-progress__hint{margin:4px 0 0;color:var(--kd-muted);font-size:14px}

/* Toast */
.kd-page .kd-toast{position:fixed;left:50%;bottom:calc(110px + env(safe-area-inset-bottom));z-index:2147483000;transform:translateX(-50%);max-width:calc(100vw - 32px);padding:12px 18px;border-radius:999px;background:var(--kd-ink);color:#fff;font-size:15px;font-weight:700;box-shadow:0 16px 36px -16px rgba(0,0,0,.5)}

/* ---------- OMU STORY ---------- */
.kd-page .kd-night{position:relative;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:28px;align-items:center;padding:clamp(28px,4vw,56px);border-radius:34px;color:#e9e6ff;background:radial-gradient(60% 80% at 82% 10%,#3a3f9e 0,rgba(58,63,158,0) 70%),radial-gradient(50% 70% at 5% 100%,#4a2a6e 0,rgba(74,42,110,0) 70%),linear-gradient(160deg,#141a46,#1d2360 60%,#24205a);box-shadow:0 34px 70px -40px rgba(20,26,70,.9);overflow:hidden;isolation:isolate}
html body .kd-page .kd-night .kd-title{color:#fff!important}
.kd-page .kd-night .kd-name{color:var(--kd-gold);background:linear-gradient(transparent 74%,rgba(255,207,110,.28) 74%,rgba(255,207,110,.28) 94%,transparent 94%)}
.kd-page .kd-night .kd-lede{color:#cfcdf2}
.kd-page .kd-voice-status--night{color:#bdbbe6}
.kd-page .kd-voice-status--night a{color:var(--kd-gold)!important}
.kd-page .kd-night__sky{position:absolute;inset:0;z-index:-1;pointer-events:none}
.kd-page .kd-night__sky i{position:absolute;width:4px;height:4px;border-radius:50%;background:#fff6c8;box-shadow:0 0 10px 2px rgba(255,246,200,.6);animation:kd-twinkle 3.4s ease-in-out infinite}
.kd-page .kd-night__sky i:nth-child(1){top:12%;left:8%}.kd-page .kd-night__sky i:nth-child(2){top:22%;left:38%;animation-delay:-1s}.kd-page .kd-night__sky i:nth-child(3){top:8%;left:62%;animation-delay:-2s}
.kd-page .kd-night__sky i:nth-child(4){top:30%;left:90%;animation-delay:-.5s}.kd-page .kd-night__sky i:nth-child(5){top:70%;left:46%;animation-delay:-1.5s}.kd-page .kd-night__sky i:nth-child(6){top:84%;left:12%;animation-delay:-2.5s}
.kd-page .kd-night__sky i:nth-child(7){top:58%;left:96%;animation-delay:-.8s}.kd-page .kd-night__sky i:nth-child(8){top:44%;left:24%;animation-delay:-1.8s;width:3px;height:3px}.kd-page .kd-night__sky i:nth-child(9){top:16%;left:84%;animation-delay:-2.8s;width:3px;height:3px}
.kd-page .kd-night__sky i:nth-child(10){top:90%;left:70%;animation-delay:-.3s;width:3px;height:3px}.kd-page .kd-night__sky i:nth-child(11){top:4%;left:24%;animation-delay:-1.3s;width:3px;height:3px}.kd-page .kd-night__sky i:nth-child(12){top:62%;left:4%;animation-delay:-2.3s;width:3px;height:3px}
.kd-page .kd-tonight{display:flex;flex-direction:column;align-items:center;gap:16px;padding:0;border:0;background:none;color:inherit;text-align:center;cursor:pointer;perspective:1200px}
.kd-page .kd-tonight__book{position:relative;width:min(380px,100%);border-radius:10px 22px 22px 10px;box-shadow:0 34px 60px -24px rgba(0,0,0,.65),0 0 0 6px rgba(255,255,255,.06);transform:rotateY(-12deg) rotateX(4deg);transform-origin:left center;transition:transform .5s cubic-bezier(.2,.8,.2,1);overflow:hidden;background:#fff}
.kd-page .kd-tonight:hover .kd-tonight__book,.kd-page .kd-tonight:focus-visible .kd-tonight__book{transform:rotateY(-4deg) rotateX(2deg) translateY(-4px)}
.kd-page .kd-tonight__art svg{display:block;width:100%;height:auto;aspect-ratio:4/3}
.kd-page .kd-tonight__spine{position:absolute;inset:0 auto 0 0;width:16px;background:linear-gradient(90deg,rgba(0,0,0,.28),rgba(0,0,0,0))}
.kd-page .kd-tonight__label{display:inline-block;margin:0;padding:4px 12px;border-radius:999px;background:rgba(255,207,110,.16);color:var(--kd-gold);font-size:13.5px;font-weight:800}
html body .kd-page .kd-tonight .kd-tonight__title{margin-top:8px!important;color:#fff!important;font-size:26px!important;font-weight:800!important;line-height:1.3!important}
.kd-page .kd-tonight__sub{margin:4px 0 0;color:#bdbbe6;font-size:15px}
.kd-page .kd-chips{display:flex;flex-wrap:wrap;gap:6px}
.kd-page .kd-chips button{min-height:40px;padding:0 15px;border:0;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--kd-line);color:var(--kd-text);font-size:15px;font-weight:800}
.kd-page .kd-chips button[aria-pressed="true"]{background:var(--kd-ink);color:#fff;box-shadow:none}
.kd-page .kd-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.kd-page .kd-card{display:flex;flex-direction:column;overflow:hidden;border-radius:26px;background:#fff;box-shadow:inset 0 0 0 1px var(--kd-line);transition:transform .22s ease,box-shadow .22s ease}
.kd-page .kd-card:hover{transform:translateY(-4px);box-shadow:inset 0 0 0 1px var(--kd-line),0 26px 44px -28px rgba(74,36,72,.6)}
.kd-page .kd-card__art{position:relative;display:block;width:100%;padding:0;border:0;background:#eee;aspect-ratio:4/3;overflow:hidden}
.kd-page .kd-card__art svg{display:block;width:100%;height:100%;transition:transform .5s ease}
.kd-page .kd-card:hover .kd-card__art svg{transform:scale(1.04)}
.kd-page .kd-card__play{position:absolute;right:14px;bottom:14px;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.92);color:var(--kd-ink);box-shadow:0 10px 22px -10px rgba(0,0,0,.5)}
.kd-page .kd-card__body{display:flex;flex-direction:column;gap:6px;padding:16px 18px 18px}
.kd-page .kd-card__title{margin:0;color:var(--kd-ink);font-size:19px;font-weight:800;line-height:1.35}
.kd-page .kd-card__orig{margin:0;color:var(--kd-muted);font-size:14px}
.kd-page .kd-card__summary{margin:2px 0 0;color:var(--kd-text);font-size:15px;line-height:1.55}
.kd-page .kd-card__meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.kd-page .kd-card__meta span{padding:3px 10px;border-radius:999px;background:var(--kd-cream);box-shadow:inset 0 0 0 1px var(--kd-line);color:var(--kd-text);font-size:13px;font-weight:800}
.kd-page .kd-card__meta span.is-mine{background:#dcf5ea;color:#1d7a4a;box-shadow:none}
.kd-page .kd-shelf__more{display:flex;justify-content:center;margin-top:24px}
.kd-page .kd-shelf__more[hidden]{display:none}

/* Reader */
.kd-page .kd-reader{--r-bg:#fff8ef;--r-paper:#fffdf8;--r-ink:#2a1d33;--r-muted:#7a6f82;--r-line:#efe2d4;--r-name:#c2335c;--r-size:22px;
  position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:var(--r-bg);color:var(--r-ink);overflow:hidden}
.kd-page .kd-reader[data-night="true"]{--r-bg:#0f1436;--r-paper:#171d48;--r-ink:#f3ead6;--r-muted:#a9a6d6;--r-line:rgba(255,255,255,.1);--r-name:#ffcf6e}
.kd-page .kd-reader::backdrop{background:#0f1436}
.kd-page .kd-reader[open]{display:flex;animation:kd-fade .25s ease-out}
.kd-page .kd-reader__frame{position:relative;display:flex;flex-direction:column;gap:14px;width:100%;max-width:1240px;height:100%;margin:0 auto;padding:16px clamp(16px,3vw,32px) calc(16px + env(safe-area-inset-bottom))}
.kd-page .kd-reader__bar{display:flex;align-items:center;gap:12px}
.kd-page .kd-reader .kd-icon-btn{background:color-mix(in srgb,var(--r-ink) 8%,transparent);color:var(--r-ink)}
.kd-page .kd-reader .kd-icon-btn:hover{background:color-mix(in srgb,var(--r-ink) 15%,transparent)}
.kd-page .kd-reader .kd-icon-btn[aria-pressed="true"]{background:var(--r-name);color:#2a1d33}
.kd-page .kd-reader__titles{flex:1;min-width:0;text-align:center}
.kd-page .kd-reader__orig{margin:0;color:var(--r-muted);font-size:13.5px;font-weight:700}
html body .kd-page .kd-reader h2{color:var(--r-ink)!important;font-size:20px!important;font-weight:800!important;line-height:1.3!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kd-page .kd-reader__tools{display:flex;gap:6px}
.kd-page .kd-sleep{position:relative}
.kd-page .kd-sleep__badge{position:absolute;top:-4px;right:-4px;min-width:20px;padding:1px 5px;border-radius:999px;background:var(--r-name);color:#2a1d33;font-size:11px;font-weight:800}
.kd-page .kd-sleep__menu{position:absolute;top:52px;right:0;z-index:3;display:grid;min-width:190px;padding:8px;border-radius:18px;background:var(--r-paper);box-shadow:0 22px 44px -20px rgba(0,0,0,.55),inset 0 0 0 1px var(--r-line)}
.kd-page .kd-sleep__menu p{margin:4px 10px 6px;color:var(--r-muted);font-size:13px;font-weight:800}
.kd-page .kd-sleep__menu button{min-height:42px;padding:0 12px;border:0;border-radius:12px;background:transparent;color:var(--r-ink);font-size:15px;font-weight:700;text-align:left}
.kd-page .kd-sleep__menu button:hover,.kd-page .kd-sleep__menu button[aria-checked="true"]{background:color-mix(in srgb,var(--r-name) 22%,transparent)}
.kd-page .kd-book{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);border-radius:30px;background:var(--r-paper);box-shadow:0 40px 80px -50px rgba(0,0,0,.6),inset 0 0 0 1px var(--r-line);overflow:hidden}
.kd-page .kd-book__art{position:relative;margin:0;min-height:0;overflow:hidden;background:#cfe6ff}
.kd-page .kd-book__art svg{position:absolute;inset:0;width:100%;height:100%}
.kd-page .kd-book__art::after{content:"";position:absolute;inset:0 0 0 auto;width:28px;background:linear-gradient(90deg,rgba(0,0,0,0),rgba(0,0,0,.14))}
.kd-page .kd-book__page{position:relative;display:flex;flex-direction:column;justify-content:center;padding:clamp(24px,4vw,56px);overflow:auto}
.kd-page .kd-book__page::before{content:"";position:absolute;inset:0 auto 0 0;width:24px;background:linear-gradient(90deg,rgba(0,0,0,.08),rgba(0,0,0,0))}
.kd-page .kd-book__text{margin:0;color:var(--r-ink);font-size:var(--r-size);line-height:1.95;letter-spacing:-.01em;font-weight:600}
.kd-page .kd-book__text .kd-hl{color:var(--r-name);font-weight:800}
.kd-page .kd-book__num{margin-top:22px;color:var(--r-muted);font-size:14px;font-weight:800}
.kd-page .kd-book.is-turning .kd-book__art svg,.kd-page .kd-book.is-turning .kd-book__text{animation:kd-turn .5s cubic-bezier(.2,.8,.2,1)}
.kd-page .kd-book.is-back .kd-book__art svg,.kd-page .kd-book.is-back .kd-book__text{animation-name:kd-turn-back}
.kd-page .kd-reader__dots{display:flex;justify-content:center;gap:6px}
.kd-page .kd-reader__dots span{width:8px;height:8px;border-radius:999px;background:color-mix(in srgb,var(--r-ink) 22%,transparent);transition:width .25s ease,background-color .25s ease}
.kd-page .kd-reader__dots span.is-active{width:26px;background:var(--r-name)}
.kd-page .kd-reader__controls{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:14px}
.kd-page .kd-reader__voice{display:flex;flex-wrap:wrap;gap:8px}
.kd-page .kd-mini-field{display:flex;flex-direction:column;gap:3px;min-width:0;color:var(--r-muted);font-size:12.5px;font-weight:800}
#kdReader .kd-mini-field select{width:100%;min-height:42px;max-width:230px;padding:0 34px 0 12px;border:0!important;border-radius:12px!important;background:color-mix(in srgb,var(--r-ink) 8%,transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center!important;color:var(--r-ink)!important;font-size:14.5px;font-weight:700;-webkit-appearance:none;appearance:none}
#kdReader .kd-mini-field select option{color:#2a1d33;background:#fff}
.kd-page .kd-reader__transport{display:flex;align-items:center;gap:14px}
.kd-page .kd-round{display:grid;place-items:center;width:54px;height:54px;padding:0;border:0;border-radius:50%;background:color-mix(in srgb,var(--r-ink) 9%,transparent);color:var(--r-ink)}
.kd-page .kd-round:hover{background:color-mix(in srgb,var(--r-ink) 16%,transparent)}
.kd-page .kd-round:disabled{opacity:.35}
.kd-page .kd-round--play{width:74px;height:74px;background:var(--kd-gold);color:#2a1d33;box-shadow:0 16px 30px -14px rgba(255,207,110,.9)}
.kd-page .kd-round--play:hover{background:#ffd98b}
.kd-page .kd-play-icon{width:0;height:0;margin-left:5px;border-style:solid;border-width:13px 0 13px 21px;border-color:transparent transparent transparent currentColor}
.kd-page .kd-round--play.is-playing .kd-play-icon{width:20px;height:24px;margin:0;border:0;border-left:7px solid currentColor;border-right:7px solid currentColor}
.kd-page .kd-round--play.is-loading .kd-play-icon{width:26px;height:26px;margin:0;border:3px solid rgba(42,29,51,.25);border-top-color:#2a1d33;border-radius:50%;animation:kd-spin .8s linear infinite}
.kd-page .kd-reader__make{display:flex;justify-content:flex-end}
.kd-page .kd-reader__notice{position:absolute;left:50%;top:76px;z-index:4;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);margin:0;padding:11px 18px;border-radius:16px;background:var(--r-paper);color:var(--r-ink);font-size:15px;font-weight:700;box-shadow:0 18px 40px -20px rgba(0,0,0,.6),inset 0 0 0 1px var(--r-line)}
.kd-page .kd-reader__notice a{color:var(--r-name)!important;font-weight:800}
.kd-page .kd-make{position:absolute;right:clamp(16px,3vw,32px);bottom:calc(96px + env(safe-area-inset-bottom));z-index:5;width:min(420px,calc(100% - 32px));max-height:calc(100% - 140px);overflow:auto;padding:20px;border-radius:24px;background:#fff;color:#2a1d33;box-shadow:0 30px 70px -26px rgba(0,0,0,.65)}
.kd-page .kd-make__head{display:flex;align-items:center;justify-content:space-between;gap:10px}
html body .kd-page .kd-make h3{font-size:19px!important;font-weight:800!important;color:#2a1d33!important}
.kd-page .kd-make .kd-icon-btn{background:rgba(42,29,51,.06);color:#2a1d33}
.kd-page .kd-make__lede{margin:6px 0 12px;color:#76697f;font-size:14.5px}
.kd-page .kd-make__foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.kd-page .kd-make .kd-voice{color:#2a1d33}
.kd-page .kd-goodnight{position:absolute;inset:0;z-index:10;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 38%,#262c74,#0b0f2c 70%);color:#f3ead6;text-align:center;animation:kd-fade .8s ease-out}
.kd-page .kd-goodnight__moon{width:110px;height:110px;margin:0 auto 18px;border-radius:50%;box-shadow:inset -26px -6px 0 0 #ffe9a8;transform:rotate(-20deg);filter:drop-shadow(0 0 24px rgba(255,233,168,.55))}
.kd-page .kd-goodnight__text{margin:0 0 22px;font-size:clamp(26px,4vw,36px);font-weight:800;letter-spacing:-.02em}

/* Motion */
@keyframes kd-spin{to{transform:rotate(360deg)}}
@keyframes kd-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes kd-float{0%,100%{transform:translateY(0) rotate(-6deg);opacity:.5}50%{transform:translateY(-16px) rotate(6deg);opacity:.95}}
@keyframes kd-eq{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}
@keyframes kd-twinkle{0%,100%{opacity:.25;transform:scale(.7)}50%{opacity:1;transform:scale(1.15)}}
@keyframes kd-pulse{0%,100%{opacity:.4}50%{opacity:1}}
@keyframes kd-slide{0%{transform:translateX(-110%)}100%{transform:translateX(260%)}}
@keyframes kd-pop{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@keyframes kd-fade{from{opacity:0}to{opacity:1}}
@keyframes kd-turn{from{opacity:0;transform:translateX(24px) rotateY(-8deg)}to{opacity:1;transform:none}}
@keyframes kd-turn-back{from{opacity:0;transform:translateX(-24px) rotateY(8deg)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  .kd-page *,.kd-page *::before,.kd-page *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}

/* Layout */
@media (max-width:1080px){
  .kd-page .kd-hero,.kd-page .kd-night{grid-template-columns:1fr}
  .kd-page .kd-hero__art{min-height:320px}
  .kd-page .kd-reader__controls{grid-template-columns:1fr auto;grid-template-areas:"voice voice" "make transport"}
  .kd-page .kd-reader__voice{grid-area:voice}
  .kd-page .kd-reader__transport{grid-area:transport}
  .kd-page .kd-reader__make{grid-area:make;justify-content:flex-start}
}
@media (max-width:900px){
  .kd-page .kd-situations,.kd-page .kd-shelf{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:820px){
  .kd-page{padding:18px 16px 96px}
  .kd-page .kd-steps,.kd-page .kd-trust{grid-template-columns:1fr}
  .kd-page .kd-topbar{flex-direction:column;align-items:stretch}
  .kd-page .kd-tabs{align-self:flex-start}
  .kd-page .kd-book{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}
  .kd-page .kd-book__art{min-height:0}
  .kd-page .kd-book__art::after{display:none}
  .kd-page .kd-book__page{justify-content:flex-start;max-height:44dvh;padding:20px 22px 18px}
  .kd-page .kd-book__page::before{display:none}
  .kd-page .kd-reader{--r-size:19px}
  .kd-page .kd-kid-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name gender" "birthday remove"}
  .kd-page .kd-kid-row > :nth-child(1){grid-area:name}.kd-page .kd-kid-row > :nth-child(2){grid-area:gender}
  .kd-page .kd-kid-row > :nth-child(3){grid-area:birthday}.kd-page .kd-kid-row > :nth-child(4){grid-area:remove}
}
@media (max-width:560px){
  html body .kd-page .kd-title{font-size:32px!important}
  .kd-page .kd-hero,.kd-page .kd-night{padding:24px 20px;border-radius:26px}
  .kd-page .kd-hero__actions .kd-btn{flex:1 1 auto}
  .kd-page .kd-hero__art{min-height:270px}
  .kd-page .kd-lyric-card{width:72%;padding:12px 14px}
  .kd-page .kd-situations{gap:10px}
  .kd-page .kd-shelf{grid-template-columns:minmax(0,1fr);gap:12px}
  .kd-page .kd-shelf .kd-card{display:grid;grid-template-columns:118px minmax(0,1fr);border-radius:20px}
  .kd-page .kd-shelf .kd-card__art{height:100%;min-height:118px;aspect-ratio:auto}
  .kd-page .kd-shelf .kd-card__play{right:8px;bottom:8px;width:34px;height:34px}
  .kd-page .kd-shelf .kd-card__play svg{width:16px;height:16px}
  .kd-page .kd-shelf .kd-card__body{gap:4px;padding:12px 14px 13px}
  .kd-page .kd-shelf .kd-card__title{font-size:16.5px}
  .kd-page .kd-shelf .kd-card__orig{font-size:12.5px}
  .kd-page .kd-shelf .kd-card__summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13.5px;line-height:1.45}
  .kd-page .kd-shelf .kd-card__meta{gap:4px;margin-top:4px}
  .kd-page .kd-shelf .kd-card__meta span{padding:2px 8px;font-size:11.5px}
  .kd-page #kdShelf .kd-chips{flex:0 0 calc(100% + 32px);flex-wrap:nowrap;margin:0 -16px;padding:2px 16px 6px;overflow-x:auto;scrollbar-width:none}
  .kd-page #kdShelf .kd-chips::-webkit-scrollbar{display:none}
  .kd-page #kdShelf .kd-chips button{flex:none}
  .kd-page .kd-tabs{display:flex;width:100%}
  .kd-page .kd-tab{flex:1;padding:0 10px;font-size:14.5px}
  .kd-page .kd-sit{min-height:178px;padding:16px;border-radius:22px}
  .kd-page .kd-sit__icon{width:44px;height:44px;border-radius:14px}
  .kd-page .kd-sit__label{font-size:17px}
  .kd-page .kd-sit__title{font-size:13px;padding:5px 10px}
  .kd-page .kd-row{grid-template-columns:52px minmax(0,1fr);}
  .kd-page .kd-row__art{width:52px;height:52px}
  .kd-page .kd-row__actions{grid-column:1 / -1}
  .kd-page .kd-dialog{width:100vw;max-width:100vw;max-height:94dvh;margin:auto 0 0;border-radius:26px 26px 0 0}
  .kd-page .kd-reader__frame{gap:10px;padding-top:10px}
  .kd-page .kd-reader__tools .kd-icon-btn--text{display:none}
  .kd-page .kd-round{width:48px;height:48px}
  .kd-page .kd-round--play{width:64px;height:64px}
  #kdReader .kd-mini-field select{max-width:none}
  .kd-page .kd-reader__voice{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .kd-page .kd-reader__controls{grid-template-columns:minmax(0,1fr);grid-template-areas:"voice" "transport" "make";gap:10px}
  .kd-page .kd-reader__transport{justify-content:center}
  .kd-page .kd-reader__make .kd-btn{width:100%}
  .kd-page .kd-make{right:12px;left:12px;width:auto;bottom:calc(150px + env(safe-area-inset-bottom))}
}

/* Daily-song artwork is scoped to this section; anniversary cards keep their own art. */
.kd-page #kdSituations .kd-sit.kd-sit--image{min-width:0;min-height:0;padding:0;gap:0;overflow:hidden}
.kd-page #kdSituations .kd-sit__media{display:block;flex:none;width:100%;aspect-ratio:3/2;overflow:hidden;background:var(--tone)}
.kd-page #kdSituations .kd-sit__media img{display:block;width:100%;height:100%;max-width:none;object-fit:cover}
.kd-page #kdSituations .kd-sit__copy{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:4px;width:100%;min-width:0;padding:16px 18px 18px}
.kd-page #kdSituations .kd-sit__title{max-width:100%;margin-top:8px;white-space:normal;line-height:1.5}
@media(max-width:560px){.kd-page #kdSituations .kd-sit__copy{padding:12px 13px 14px}.kd-page #kdSituations .kd-sit__sub{font-size:13px}.kd-page #kdSituations .kd-sit__title{padding:5px 8px;font-size:12.5px}}

/* Language variants (2026-10-12): Korean sentences with name/parent spans can't be translated word by word,
   so the markup carries a .kd-ko and a .kd-en version; <html lang> (set by js/i18n-client.js) picks one. */
html[lang]:not([lang^="ko"]) .kd-page .kd-ko{display:none!important}
html:not([lang]) .kd-page .kd-en,html[lang^="ko"] .kd-page .kd-en{display:none!important}

/* 엄마/아빠 + 한국어/English choices in the parent-voice panel (2026-10-13). */
.kd-page .kd-make__opts{display:grid;gap:8px;margin:0 0 14px}
.kd-page .kd-make__opt{display:flex;align-items:center;justify-content:space-between;gap:12px}
.kd-page .kd-make__opt>span{font-size:13.5px;font-weight:800;color:#76697f}
.kd-page .kd-make .kd-role{background:rgba(42,29,51,.07)}
.kd-page .kd-make .kd-role button{min-height:34px;padding:0 16px;font-size:14px;cursor:pointer}
.kd-page .kd-make .kd-role button:focus-visible{outline:2px solid var(--kd-rose);outline-offset:2px}
.kd-page .kd-make__busy{margin:0 0 10px}

/* Keep the reader inside its iframe viewport and reserve space for the story, not unused control rows. */
html body .kd-page #kdReader.kd-reader {
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  max-height: none;
}
html body .kd-page #kdReader .kd-reader__frame {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
html body .kd-page #kdReader :is(.kd-reader__bar,.kd-reader__dots,.kd-reader__controls) { flex: none; }
html body .kd-page #kdReader .kd-book { flex: 1 1 0; min-width: 0; min-height: 0; }
html body .kd-page #kdReader .kd-book__page { min-width: 0; min-height: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
html body .kd-page #kdReader .kd-sleep__menu { max-height: min(360px,calc(100dvh - 100px)); overflow-y: auto; overscroll-behavior: contain; }
html body .kd-page #kdReader .kd-sleep__badge { font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) {
  html body .kd-page #kdReader .kd-mini-field select { font-size: 16px; }
}
@media (max-width: 820px) {
  html body .kd-page #kdReader .kd-book {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: minmax(120px,1.05fr) minmax(0,1fr);
    border-radius: 22px;
  }
  html body .kd-page #kdReader .kd-book__page {
    max-height: none;
    padding: 16px 18px 14px;
    justify-content: flex-start;
  }
  html body .kd-page #kdReader .kd-book__text { flex: none; line-height: 1.75; }
  html body .kd-page #kdReader .kd-book__num { flex: none; margin-top: 14px; font-size: 12px; }
}
@media (max-width: 560px) {
  html body .kd-page #kdReader .kd-reader__frame {
    gap: 10px;
    padding: calc(10px + env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom));
  }
  html body .kd-page #kdReader .kd-reader__bar { gap: 8px; }
  html body .kd-page #kdReader .kd-reader__controls {
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: "voice voice" "make transport";
    gap: 10px 12px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid var(--r-line);
    border-radius: 18px;
    background: var(--r-paper);
  }
  html body .kd-page #kdReader .kd-reader__voice { grid-area: voice; min-width: 0; }
  html body .kd-page #kdReader .kd-reader__transport { grid-area: transport; gap: 7px; }
  html body .kd-page #kdReader .kd-reader__make { grid-area: make; min-width: 0; }
  html body .kd-page #kdReader .kd-reader__make .kd-btn {
    min-height: 56px;
    padding: 8px 10px;
    gap: 6px;
    border-radius: 14px;
    font-size: 11.5px;
    line-height: 1.4;
    white-space: normal;
    text-align: center;
  }
  html body .kd-page #kdReader .kd-reader__make .kd-btn > svg { flex: none; }
  html body .kd-page #kdReader .kd-reader__make .kd-btn > span { min-width: 0; overflow-wrap: anywhere; }
  html body .kd-page #kdReader .kd-round { width: 44px; height: 44px; }
  html body .kd-page #kdReader .kd-round--play { width: 56px; height: 56px; box-shadow: none; }
  html body .kd-page #kdReader .kd-mini-field select { min-height: 44px; padding-left: 10px; font-size: 16px; }
}
@media (max-width: 1023px) and (orientation: landscape) and (max-height: 560px) {
  html body .kd-page #kdReader .kd-reader__frame {
    gap: 8px;
    padding: calc(8px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  }
  html body .kd-page #kdReader .kd-reader__orig { display: none; }
  html body .kd-page #kdReader .kd-book { grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: minmax(0,1fr); }
  html body .kd-page #kdReader .kd-book__page { max-height: none; padding: 12px 16px; justify-content: flex-start; }
  html body .kd-page #kdReader .kd-book__text { flex: none; line-height: 1.7; }
  html body .kd-page #kdReader .kd-book__num { flex: none; margin-top: 10px; }
}

html body .kd-page #kdReader .kd-sleep__hint { display:block; margin-top:4px; padding:8px 12px 4px; border-top:1px solid var(--r-line); color:var(--r-muted); font-size:11px; line-height:1.55; }
