:root{--bg-page:#fff4e8;--bg-main:#fff7ee;--bg-side:#ffe1c4;--bg-brand-soft:#ffe1c4;--bg-surface:#fff;--bg-soft:#ffe8bf;--bg-cover:#ffd29a;--bg-image:#ffd29a;--bg-nav:#ffb48a;--bg-brand:#ff7a45;--bg-brand-hover:#f06d3a;--bg-brand-press:#e25f2e;--text-ink:#3b2416;--text-muted:#7a6558;--text-on-brand:#fff;--text-danger:#9a3412;--bg-danger-soft:#f8e4d4;--kb-bg:#f5f7fa;--kb-surface:#fff;--kb-surface-2:#eef2f6;--kb-line:#e1e6ee;--kb-line-strong:#c5cdd8;--kb-disabled-bg:#e6eaf0;--kb-text:#1c2533;--kb-text-muted:#4f5a6c;--kb-text-subtle:#5a6578;--kb-text-disabled:#6b7588;--kb-text-on-accent:#fff;--kb-green-50:#f1faf5;--kb-green-100:#e2f5ec;--kb-green-200:#bfe9d4;--kb-green-500:#1fa66e;--kb-green-600:#178a5b;--kb-green-700:#137a50;--kb-green-800:#0f6b46;--kb-accent-soft:var(--kb-green-100);--kb-accent:var(--kb-green-500);--kb-accent-strong:var(--kb-green-700);--kb-deco-green:var(--kb-green-200);--kb-yellow:#ffc23d;--kb-yellow-soft:#ffe4a1;--kb-deco-yellow:var(--kb-yellow-soft);--kb-blue:#5b8def;--kb-blue-soft:#cfe3ff;--kb-deco-blue:var(--kb-blue-soft);--kb-success:#137a50;--kb-success-bg:#e2f5ec;--kb-warn:#8a5a00;--kb-warn-bg:#fff4d6;--kb-error:#b42318;--kb-error-bg:#fdecea;--kb-kind-image-bg:#ffffffeb;--kb-kind-video-bg:#1c2533;--kb-kind-book-bg:var(--kb-yellow);--kb-font-body:var(--font-sc), "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;--kb-font-body-tc:var(--font-tc), "PingFang TC", "PingFang HK", "Microsoft JhengHei", sans-serif;--kb-font-display:var(--font-brand), var(--kb-font-body);--kb-font-num:var(--font-brand), system-ui, sans-serif;--kb-fs-display:clamp(30px, 5vw, 44px);--kb-fs-h1:clamp(26px, 4vw, 34px);--kb-fs-h2:22px;--kb-fs-h3:18px;--kb-fs-body-lg:18px;--kb-fs-body:16px;--kb-fs-sm:14px;--kb-fs-xs:12px;--kb-space-1:4px;--kb-space-2:8px;--kb-space-3:12px;--kb-space-4:16px;--kb-space-5:20px;--kb-space-6:24px;--kb-space-7:32px;--kb-space-8:40px;--kb-space-9:48px;--kb-space-10:64px;--kb-content-max:1120px;--kb-radius-sm:8px;--kb-radius-md:14px;--kb-radius-img:16px;--kb-radius-lg:22px;--kb-radius-full:999px;--kb-shadow-1:0 1px 2px #1c25330f, 0 8px 24px #1c25330f;--kb-shadow-press:0 4px 0 var(--kb-green-800);--kb-dur-fast:.12s;--kb-dur-base:.2s;--kb-dur-slow:.3s;--kb-ease-out:cubic-bezier(.2, .8, .2, 1);--kb-ease-std:ease}html[data-locale=zh-Hant]{--kb-font-body:var(--kb-font-body-tc)}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{color:var(--text-ink);background:var(--bg-page);font-family:Noto Sans SC,PingFang SC,sans-serif}button,a,input,textarea{font:inherit}a{color:inherit}.btn{cursor:pointer;touch-action:manipulation;border:0;border-radius:999px;padding:10px 16px;font-weight:700}.btn-primary{background-image:linear-gradient(92deg,#ff6b3d,#ff9a5b);background-color:var(--bg-brand);color:var(--text-on-brand);box-shadow:0 10px 24px #ff6b3d59}.btn-primary:hover{background-image:linear-gradient(92deg,#ff7748,#ffb06c)}.btn-primary:active{background-image:linear-gradient(92deg,#e25f2e,#f08a4a)}.btn-secondary{background:var(--bg-soft);color:var(--text-ink)}.btn-secondary:hover{background:var(--bg-nav)}.btn-secondary:active{background:var(--bg-cover)}.btn-ghost{color:var(--text-muted);background:0 0}.btn-ghost:hover{background:var(--bg-soft)}.btn-ghost:active{background:var(--bg-cover)}.btn:disabled{opacity:.4;cursor:not-allowed}.nav-item{background:var(--bg-side);border-radius:14px;padding:10px 14px;text-decoration:none;display:block}.nav-item.current{background:var(--bg-nav)}.card,.book,.banner,.login,.spread-wrap{background:var(--bg-surface);border-radius:18px;padding:14px}.card{gap:10px;display:grid}.banner{background:var(--bg-soft)}.banner.danger{background:var(--bg-danger-soft);color:var(--text-danger)}.book,.card{text-align:left;color:inherit;text-decoration:none;display:block}.shelf{width:min(1120px,100% - 48px);margin:0 auto;padding:4px 0 48px}.book{background:0 0;padding:0}.book .cover{aspect-ratio:3/4;border:5px solid var(--bg-surface);background:var(--bg-surface);width:100%;height:auto;box-shadow:-3px 3px 0 var(--bg-side), 0 14px 28px #462e1924;border-left-width:11px;border-radius:4px 14px 14px 4px;margin-bottom:12px;transition:transform .24s cubic-bezier(.2,.7,.3,1),box-shadow .24s;position:relative;overflow:hidden}.book .cover:after{content:"";background:repeating-linear-gradient(to bottom, var(--bg-main) 0 2px, var(--bg-cover) 2px 3px);opacity:.85;pointer-events:none;border-radius:0 6px 6px 0;width:6px;position:absolute;top:3px;bottom:3px;right:0}.book .cover-img{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.book-moving{z-index:1;color:#fff;letter-spacing:.02em;white-space:nowrap;background:#2b1b10d1;border-radius:999px;align-items:center;gap:6px;padding:5px 11px 5px 9px;font-size:13px;font-weight:700;line-height:1.2;display:inline-flex;position:absolute;bottom:10px;left:10px;box-shadow:0 4px 12px #2b1b1038}.book-moving svg{fill:currentColor;flex:none}.book:hover .cover{box-shadow:-4px 4px 0 var(--bg-side), 0 22px 40px #462e1933;transform:translateY(-6px)rotate(-.8deg)}.book h4{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:16px;font-weight:700;line-height:1.35;display:-webkit-box;overflow:hidden}.book .meta{margin-top:4px;font-size:12px;line-height:1.35}.shelf.is-loading{flex:1;place-items:center;min-height:calc(100dvh - 140px);display:grid}.shelf-loading{justify-items:center;display:grid}.shelf-buddy{aspect-ratio:192/208;width:min(280px,56vw);position:relative}.shelf-buddy img{object-fit:contain;opacity:0;width:100%;height:100%;position:absolute;inset:0}.shelf-buddy img.is-on{opacity:1}.shelf-buddy-shine{pointer-events:none;background:linear-gradient(105deg,#0000 28%,#ffffffc7 50%,#0000 72%) 0 0/220% 100%;animation:1.35s ease-in-out infinite shelf-shimmer;position:absolute;inset:0;-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}@keyframes shelf-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@media (prefers-reduced-motion:reduce){.shelf-buddy-shine{animation:none}}.cover,.art{background:var(--bg-cover);height:110px;color:var(--text-muted);border-radius:14px;place-items:center;margin-bottom:10px;font-size:13px;display:grid;overflow:hidden}.tile-link{text-align:left;width:100%;color:inherit;cursor:pointer;background:0 0;border:0;gap:10px;padding:0;text-decoration:none;display:grid}.tile-link:disabled{cursor:default}.cover img,.art img,.spread img{object-fit:cover;width:100%;height:100%}.art{border-radius:10px;height:72px}h1,h2,h3,h4,p{margin:0}h1{font-size:28px}h2,h3{font-size:20px}h4{font-size:15px}.meta,.body,.lead{color:var(--text-muted);line-height:1.65}.lead{margin:8px 0 18px}.error-hint{color:var(--text-danger);margin:6px 0 0;font-size:12px}.login-have-code{font:inherit;color:var(--text-ink);text-underline-offset:3px;cursor:pointer;background:0 0;border:0;justify-self:start;margin:-6px 0 0;padding:0;font-size:12px;text-decoration:underline}.login-have-code:disabled{opacity:.6;cursor:default}.field{background:var(--bg-main);width:100%;min-height:44px;color:var(--text-ink);resize:vertical;border:0;border-radius:12px;padding:10px 12px}.field:focus{outline:2px solid var(--bg-nav)}.field.is-error{background:var(--bg-danger-soft)}.story-field{min-height:280px}.login{gap:12px;width:min(380px,100%);display:grid}.shelf:has(.empty-stage){flex:1;min-height:0;display:flex}.project-layout:has(.empty-stage){background:#f7f1ea url(https://assets.triomate.ai/education/kidbuddy/read/read-bg.jpg) 50%/cover no-repeat}.project-main:has(.empty-stage){background:0 0;padding:108px 0 0;overflow:hidden}.empty-stage{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:28px;width:100%;min-height:0;padding:20px 24px 36px;display:flex}.empty-scene{place-items:center;width:min(880px,94vw);display:grid}.empty-copy{text-align:center}.empty-copy h2{color:var(--text-muted);margin:0 0 10px;font-size:18px;font-weight:700}.empty-copy h3{margin:0;font-size:36px}.empty-copy p{color:var(--text-muted);margin:14px 0 28px;font-size:18px}.empty-copy .btn{padding:14px 28px;font-size:17px}.empty-fan{justify-content:center;align-items:end;height:min(340px,46vh);display:flex}.empty-fan .slot{width:132px;height:178px;transform:rotate(var(--r,0deg));background:linear-gradient(#fffaf1,#f0dfc0);border:2px solid #ffffffe0;border-radius:14px;margin-left:-36px;transition:transform .24s,box-shadow .24s;box-shadow:0 16px 28px #3c240c1f}@media (prefers-reduced-motion:reduce){.book-reader-strip button{transition:none}}.empty-fan .slot:first-child{margin-left:0}.empty-fan .slot.on{z-index:2;background:#fff8e88c;border:2px dashed #e8b86a;height:196px;transform:rotate(0)translateY(-16px)}.reader{background:var(--bg-main);text-align:center;border-radius:22px;padding:28px}.spread{background:var(--bg-cover);max-width:480px;height:220px;color:var(--text-muted);border-radius:18px;place-items:center;margin:16px auto;display:grid}.caption{margin:0 0 16px;font-size:20px}.project-layout{background:var(--bg-main);flex-direction:column;height:100dvh;display:flex;overflow:hidden}.project-main{flex-direction:column;flex:1;min-width:0;min-height:0;padding:108px 32px 24px;display:flex;overflow:auto}.project-layout:has(.book-reader){background:#f7f1ea url(https://assets.triomate.ai/education/kidbuddy/read/read-bg.jpg) 50%/cover no-repeat}.project-layout:has(.book-reader)>.home-bar{flex-shrink:0;padding:14px 0;position:relative}.project-main:has(.book-reader){padding:16px 0 max(24px, env(safe-area-inset-bottom));background:0 0;overflow:hidden}.book-reader{flex:1;grid-template-rows:auto minmax(0,1fr) auto;justify-items:center;gap:clamp(12px,2.2vh,28px);min-height:0;padding:0 24px 12px;display:grid}.book-reader-heading{grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;width:min(1120px,100%);display:grid}.book-reader-back{color:var(--text-ink);background:var(--bg-main);cursor:pointer;border:0;border-radius:999px;justify-self:start;padding:10px 16px;font-size:16px}.book-reader h2{text-align:center;margin:0 0 8px;font-size:22px}.book-reader-stage{place-items:center;width:100%;min-height:0;padding:4px 0 8px;display:grid;overflow:visible;container-type:size}.book-reader-page{background:var(--bg-main);border-radius:20px;width:min(800px,82vw,max(280px,177.778cqh - 199.111px));max-height:100cqh;margin:auto;padding:12px 12px 0;overflow:hidden;box-shadow:0 18px 40px #3c281429}.book-reader-hero{aspect-ratio:16/9;object-fit:contain;border-radius:12px;width:100%;max-height:100%;display:block}.book-reader-hero.is-empty{color:var(--text-muted);background:#ffffff8c;place-items:center;display:grid}.book-reader-cap{text-align:center;color:var(--text-ink);margin:0;padding:22px 20px 26px;font-size:clamp(20px,2vw,26px);line-height:1.65}.book-reader-strip{justify-content:center;align-items:end;max-width:100%;padding:12px 4px 8px;display:flex}.book-reader-strip button{cursor:pointer;width:clamp(48px,8vw,100px);height:clamp(60px,9.6vw,120px);transform:rotate(var(--r,0deg));background:#fff;border:2px solid #ffffffd9;border-radius:10px;margin-left:clamp(-14px,-1vw,-6px);padding:0;overflow:hidden;box-shadow:0 8px 16px #2818081f}.book-reader-strip button:first-child{margin-left:0}.book-reader-strip button.on{z-index:2;border-color:#ffe08a;transform:rotate(0)translateY(-10px)scale(1.12)}.book-reader-thumb{object-fit:cover;width:100%;height:100%;display:block}:is(html:has(.login-page),body:has(.login-page)){height:100%;overflow:hidden}.session-boot{min-height:100dvh}.login-page{isolation:isolate;background:#17122c;grid-template-rows:1fr auto;gap:16px;width:100%;height:100dvh;padding:20px 20px 0;display:grid;position:fixed;inset:0;overflow:hidden}.login-bg-video{z-index:0;object-fit:cover;object-position:center;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.login-stage,.login-notes{z-index:1;position:relative}.login-veil{z-index:2;pointer-events:none;background:#0000006b;animation:.35s login-veil-in;position:absolute;inset:0}.login-page.is-open .login-stage{z-index:3}.login-page.is-tc{font-family:var(--font-tc), "Noto Sans TC", "PingFang HK", sans-serif}.login-page:before{content:"";z-index:-1;background:radial-gradient(42% 36% at 12% 18%,#ffd36a 0%,#0000 70%),radial-gradient(38% 34% at 88% 12%,#ff9aa8 0%,#0000 68%),radial-gradient(46% 40% at 78% 82%,#8ec5ff 0%,#0000 70%),radial-gradient(40% 36% at 16% 86%,#b8f0c0 0%,#0000 68%),radial-gradient(28% 24% at 50% 48%,#fff4c8 0%,#0000 72%);position:absolute;inset:-18%}.login-stage{place-items:center;display:grid}.login-page .login{text-align:center;width:min(400px,100%);box-shadow:none;background:#ffffff61;border-radius:28px;outline:1px solid #ffffff8c;padding:28px 24px 22px;animation:.42s login-pop}.login-page .login-name{letter-spacing:-.03em;margin:0;font-size:1.85rem;font-weight:800}.login-page .login h3{margin:0;font-size:1.15rem;font-weight:700}.login-page .login .body{color:var(--text-muted);margin:0}.login-open-btn{cursor:pointer;background:0 0;border:0;width:min(420px,88vw);margin-top:30vh;padding:0}.login-open-btn svg{width:100%;height:auto;display:block}.login-open-btn text{fill:#000;font-family:var(--font-brand), "Fredoka", sans-serif;letter-spacing:-.5px;font-size:34px;font-weight:600}.login-open-btn:hover rect{opacity:.78}@keyframes login-pop{0%{opacity:0;transform:translateY(18px)scale(.92)}to{opacity:1;transform:none}}@keyframes login-veil-in{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.login-page .login,.login-veil,.login-open-btn:hover{animation:none;transform:none}}.login-notes{text-align:center;width:min(420px,100%);margin:0 auto;padding:4px 12px 28px}.login-kid{color:#5a3a28;margin:0;font-size:15px;font-weight:700;line-height:1.55}.login-beta-en{color:#8a6b55;margin:8px 0 0;font-size:12px;line-height:1.45}.home-wrap{width:min(1120px,100% - 48px);margin:0 auto}.home-bar{z-index:20;color:#fff8f2;pointer-events:none;background:0 0;padding:14px 0 36px;position:fixed;top:0;left:0;right:0}.home-bar .home-brand,.home-bar .home-bar-actions{pointer-events:auto}.home-bar .home-wrap{z-index:1;justify-content:space-between;align-items:center;gap:16px;display:flex;position:relative}.home-bar.on{color:var(--text-ink)}.home-bar.on:before{content:"";pointer-events:none;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:linear-gradient(#fff3 0%,#ffffff14 48%,#fff0 100%);position:absolute;inset:0;-webkit-mask-image:linear-gradient(#000 0% 58%,#0000 100%);mask-image:linear-gradient(#000 0% 58%,#0000 100%)}.home-bar.on .home-brand small{color:var(--text-muted)}.home-bar.on .home-lang-shell{background:#fff;box-shadow:0 6px 16px #3b241614}.home-bar .btn-ghost{color:#fff8f2}.home-bar .btn-ghost:hover{background:#ffffff1f}.home-bar.on .btn-ghost{color:var(--text-ink)}.home-bar.on .btn-ghost:hover{background:#3b24160f}.home-brand{color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:0;text-decoration:none}.home-brand span{letter-spacing:-.02em;font-size:20px;font-weight:700;display:block}.home-brand small{color:#fff8f2ad;margin-top:2px;font-size:12px;font-weight:600;display:block}.home-bar-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.home-lang{width:42px;height:42px;position:relative}.home-lang-shell{z-index:2;background:#ffffff24;border-radius:21px;width:42px;height:42px;padding:0;position:absolute;top:0;right:0;overflow:hidden}.home-lang-btn{cursor:pointer;background:0 0;border:0;border-radius:0;place-items:center;width:100%;height:42px;padding:0;display:grid}.home-lang-menu{gap:2px;padding:0 6px 6px;display:grid}.home-lang-menu button{color:var(--text-ink);font:inherit;text-align:center;cursor:pointer;background:0 0;border:0;border-radius:10px;padding:8px 10px;font-size:13px;font-weight:700}.home-lang-menu button.on,.home-lang-menu button:hover{background:#fff1e0}@font-face{font-family:Latin Punct;src:local(Noto Sans Regular),local(NotoSans-Regular),local(Roboto Regular),local(Roboto-Regular),local(Segoe UI),local(Segoe UI Regular),local(Helvetica Neue),local(Helvetica Neue Regular),local(Arial),local(ArialMT),local(DejaVu Sans),local(Liberation Sans);unicode-range:U+2018-201F,U+2022,U+2026;font-weight:100 900;font-style:normal;font-display:swap}html[lang^=en] body{font-family:"Latin Punct", var(--font-sc), "PingFang SC", sans-serif}html[data-locale=zh-Hant] body{font-family:var(--font-tc), "PingFang TC", sans-serif}.toolbar,.chip-row,.page-grid,.book-grid,.card-grid{flex-wrap:wrap;gap:12px;display:flex}.toolbar{flex-shrink:0;justify-content:space-between;align-items:center;margin-bottom:16px}.toolbar.center{justify-content:center}.card-grid{grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.book-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,208px),1fr));align-items:start;gap:32px 24px;display:grid}.page-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:16px 14px;display:grid}.card .art{aspect-ratio:1;border-radius:12px;width:100%;height:auto;margin-bottom:0;position:relative;overflow:hidden}.card .art-img{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.card .tile-link .body{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;line-height:1.4;display:-webkit-box;overflow:hidden}.page-lightbox{z-index:80;background:#000000b8;place-items:center;padding:32px 24px 48px;display:grid;position:fixed;inset:0}.page-lightbox-shot{justify-items:center;gap:16px;max-width:min(920px,100%);margin:0;display:grid}.page-lightbox-shot img{object-fit:contain;border-radius:16px;width:auto;max-width:100%;height:auto;max-height:calc(100dvh - 160px);display:block}.page-lightbox-shot figcaption{color:#fff;text-align:center;max-width:36em;margin:0;font-size:16px;line-height:1.5}.chip{cursor:pointer;background:var(--bg-soft);color:var(--text-ink);border:0;border-radius:999px;padding:8px 12px}.chip.current{background:var(--bg-nav)}.stack{gap:12px;display:grid}.speech-button-wrap{flex-wrap:wrap;flex:none;align-items:center;gap:8px 10px;display:flex}.speech-button-wrap .error-hint{flex:1 0 100%;margin:0}.speech-button{width:52px;height:52px;color:var(--text-ink);cursor:pointer;touch-action:manipulation;background:#ffffffdb;border:0;border-radius:18px;justify-content:center;align-items:center;padding:0;transition:background .18s,box-shadow .18s,color .18s;display:inline-flex;position:relative;overflow:hidden;box-shadow:0 10px 20px #3c240c14}.speech-mic{justify-items:center;gap:2px;width:18px;display:grid}.speech-mic-body{background:color-mix(in srgb, currentColor 18%, transparent);border-radius:999px;width:12px;height:18px;position:relative;overflow:hidden}.speech-mic-fill{transform-origin:bottom;background:currentColor;transition:transform 80ms linear;position:absolute;inset:0}.speech-mic-stand{background:currentColor;border-radius:999px;width:10px;height:3px}.speech-button.is-recording{background:var(--bg-brand);color:var(--text-on-brand);cursor:default;animation:1.1s ease-in-out infinite speech-pulse;box-shadow:0 8px 16px #ff6b3d47}.speech-button.is-busy{background:var(--bg-soft);cursor:wait}.speech-button:disabled{opacity:.85}.speech-done-chip{background:var(--bg-brand);height:52px;color:var(--text-on-brand);cursor:pointer;border:0;border-radius:18px;align-items:center;padding:0 18px;font-size:16px;font-weight:700;animation:.18s speech-chip-in;display:inline-flex;box-shadow:0 8px 16px #ff6b3d47}.speech-done-chip.is-busy{background:var(--bg-soft);color:var(--text-ink);box-shadow:none;cursor:wait}@keyframes speech-pulse{50%{box-shadow:0 0 0 7px #ff6b3d38}}@keyframes speech-chip-in{0%{opacity:0;transform:translate(-8px)}}@media (prefers-reduced-motion:reduce){.speech-button,.speech-mic-fill,.speech-done-chip{transition:none;animation:none}}.style-cover{aspect-ratio:3/4;background:var(--bg-cover);border-radius:12px;position:relative;overflow:hidden}.style-cover img{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.style-cover.is-fallback{color:var(--text-on-brand);background:var(--bg-brand);place-items:center;font-size:28px;font-weight:700;display:grid}.sr-only{clip:rect(0, 0, 0, 0);border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (max-width:800px){.card-grid,.book-grid,.page-grid{grid-template-columns:1fr 1fr}.home-bar .home-wrap{flex-direction:column;align-items:flex-start}}.project-layout:has(.story-workshop)>.home-bar{flex-shrink:0;padding:14px 0;position:relative}.project-layout:has(.story-workshop) .home-bar .home-wrap{flex-direction:row;align-items:center}.project-main:has(.story-workshop){padding-top:20px;overflow:hidden}.story-workshop{flex:1;grid-template-columns:260px minmax(0,1fr);gap:24px;width:min(1120px,100%);min-height:0;margin:0 auto;display:grid}.story-setup{background:var(--bg-soft);border-radius:24px;min-height:0;display:grid;overflow:hidden}.story-setup-scroll{min-height:0;padding:22px;overflow:auto;-webkit-mask-image:linear-gradient(#0000 0,#000 18px calc(100% - 18px),#0000 100%);mask-image:linear-gradient(#0000 0,#000 18px calc(100% - 18px),#0000 100%)}.story-setup h2,.story-chat h2{margin:0 0 12px}.story-setup .style-cover{aspect-ratio:4/3;object-fit:cover;border-radius:14px;width:100%}.story-card-intro,.story-chat header p{color:var(--text-muted);line-height:1.6}.story-setup dl{gap:18px;display:grid}.story-setup dt{color:var(--text-muted);margin-bottom:5px;font-size:13px}.story-setup dd{overflow-wrap:anywhere;color:var(--text-muted);margin:0;line-height:1.5}.story-setup .is-filled dd{color:var(--text-ink)}.story-setup .is-filled dt span{color:var(--bg-brand)}.story-chat{background:var(--bg-surface);border-radius:24px;flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.story-chat header{border-bottom:1px solid var(--bg-soft);padding:20px 24px 12px}.story-chat header p{margin:0;font-size:14px}.story-thread{overscroll-behavior:contain;flex-direction:column;flex:1;gap:16px;min-height:0;padding:24px;display:flex;overflow-y:auto;-webkit-mask-image:linear-gradient(#0000 0,#000 18px calc(100% - 18px),#0000 100%);mask-image:linear-gradient(#0000 0,#000 18px calc(100% - 18px),#0000 100%)}.story-bubble.is-new{animation:.32s cubic-bezier(.2,.8,.3,1) both story-bubble-land}@keyframes story-bubble-land{0%{opacity:0;transform:translateY(10px)scale(.98)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.story-bubble.is-new{animation:none}}.story-bubble{overflow-wrap:anywhere;border-radius:18px;flex-shrink:0;width:fit-content;max-width:90%;padding:14px 18px;line-height:1.7}.story-bubble p{white-space:pre-wrap;margin:0}.story-bubble.agent{background:var(--bg-page);align-self:flex-start}.story-bubble.kid{background:var(--bg-soft);align-self:flex-end}.story-bubble .story-speaker{color:var(--text-muted);margin-bottom:4px;font-size:12px}.story-choices{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.story-choices button{border:1px solid var(--bg-cover);cursor:pointer;color:var(--text-ink);background:var(--bg-surface);overflow-wrap:anywhere;border-radius:14px;max-width:180px;padding:10px}.story-choices button:disabled{cursor:default}.story-choices button:hover:enabled{background:var(--bg-soft)}.story-choices .style-cover{object-fit:cover;border-radius:8px;width:130px;height:100px}.story-choices button span{display:block}.story-compose{border-top:1px solid var(--bg-soft);flex-shrink:0;padding:16px 24px 20px}.story-compose form{align-items:flex-end;gap:10px;display:flex}.story-compose textarea{resize:none;border:1px solid var(--bg-cover);background:var(--bg-page);min-width:0;color:var(--text-ink);font:inherit;border-radius:16px;flex:1;max-height:168px;padding:12px 14px;line-height:1.6;overflow-y:auto}.story-compose textarea:focus-visible,.story-choices button:focus-visible{outline:2px solid var(--bg-brand);outline-offset:2px}.story-error{color:var(--text-danger);max-height:120px;overflow-y:auto}@media (max-width:760px){.project-main:has(.story-workshop){padding:12px}.story-workshop{grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);gap:12px}.story-setup{max-height:min(210px,28dvh);padding:12px 16px}.story-setup h2{margin-bottom:8px;font-size:16px}.story-setup>.style-cover,.story-card-intro,.story-setup>.hint{display:none}.story-setup dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin:0}.story-setup dd{font-size:13px}.story-chat header{padding:12px 16px}.story-chat header p{display:none}.story-chat h2{margin:0;font-size:18px}.story-thread{padding:14px}.story-bubble{max-width:96%}.story-compose{padding:10px}}.story-more-styles{margin-top:10px;padding:6px 12px;font-size:13px}.script-review{flex-direction:column;flex:1;gap:24px;width:min(100%,1120px);margin:0 auto;display:flex}.script-review-header{text-align:center}.script-review-header>.btn{margin-bottom:18px;display:block}.script-eyebrow{color:var(--text-muted);letter-spacing:.08em;margin:0 0 10px;font-size:13px}.script-review-header h2{margin:0;font-size:clamp(24px,3vw,34px);line-height:1.4}.script-writing{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;min-height:360px;padding:30px 16px 70px;display:flex}.script-book-animation{width:min(280px,70%);overflow:visible}.script-writing h3{margin:22px 0 12px;font-size:22px}.script-writing p{color:var(--text-muted);max-width:360px;margin:0;line-height:1.8}.script-book-float{animation:3s ease-in-out infinite script-book-float}.script-ink{stroke-dasharray:70;animation:3.6s ease-in-out infinite both script-ink}.script-ink.line-two{animation-delay:1.3s}.script-ink.line-three{animation-delay:1.4s}.script-ink.line-four{animation-delay:.9s}@keyframes script-book-float{50%{transform:translateY(-7px)}}@keyframes script-ink{0%,10%{stroke-dashoffset:70px;opacity:0}45%,80%{stroke-dashoffset:0;opacity:1}to{opacity:0}}.script-paper{background:#fffdf8;border:1px solid #ede2cf;border-radius:8px 24px 24px 8px;padding:clamp(22px,4vw,44px);box-shadow:0 10px 32px #68451708,-5px 0 #f1dfbe}.script-paper-heading{border-bottom:1px solid #eee3d2;margin-bottom:22px;padding-bottom:20px}.script-paper-heading h3{margin:0 0 8px;font-size:19px}.script-paper-heading p{color:var(--text-muted);margin:0;font-size:14px;line-height:1.7}.script-editor.field{width:100%;min-height:360px;color:var(--text-ink);resize:vertical;background:0 0;border:none;border-radius:4px;padding:4px;font-size:18px;line-height:2.1;display:block}.script-editor:focus-visible{outline-offset:6px;outline:2px solid #dbb678}.script-review-actions{justify-content:space-between;gap:16px;padding:0 0 24px;display:flex}.script-failed{text-align:center;gap:20px;margin:auto;display:grid}@media (prefers-reduced-motion:reduce){.script-book-float,.script-ink{animation:none}}@media (max-width:600px){.script-review{gap:20px}.script-editor.field{min-height:340px;font-size:16px}.script-review-actions .btn{padding:12px 18px}.script-writing{min-height:300px;padding-bottom:30px}}.project-layout:has(.script-review){background:#f7f1ea url(https://assets.triomate.ai/education/kidbuddy/read/read-bg.jpg) 50%/cover no-repeat}.script-live-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:18px;line-height:2.1}.script-live-label{color:var(--text-muted);margin:0 0 22px;font-size:14px}.script-caret{vertical-align:-.1em;background:#ca8d3c;width:3px;height:1em;margin-left:5px;animation:1s steps(2,end) infinite script-caret;display:inline-block}@keyframes script-caret{50%{opacity:0}}@media (prefers-reduced-motion:reduce){.script-caret{animation:none}}:is(.project-main:has(.shelf),.project-main:has(.companion-library)){padding-left:0;padding-right:0}.project-main:has(.script-review){padding-left:24px;padding-right:24px}@media (max-width:600px){.book-reader{gap:24px;padding-inline:12px}.book-reader-heading{grid-template-columns:1fr;gap:6px}.book-reader-page{width:min(800px,100%)}.book-reader-cap{padding:16px 12px 20px}.book-reader-strip button{flex-shrink:0;width:clamp(32px,10vw,48px);height:clamp(44px,13vw,64px)}}@media (max-height:650px){.book-reader{gap:16px}.book-reader-strip button{width:54px;height:64px}}.book-reader-bottom{justify-items:center;gap:10px;width:100%;display:grid}.book-reader-speak{cursor:pointer;background:0 0;border:0;border-radius:12px;width:100%;padding:0;display:block;position:relative}.book-reader-speak:focus-visible{outline:3px solid var(--text-ink);outline-offset:3px}.book-reader-speak-badge{width:46px;height:46px;color:var(--bg-main);opacity:0;background:#3b241694;border-radius:50%;place-items:center;font-size:15px;transition:opacity .16s;display:grid;position:absolute;bottom:14px;right:14px}.book-reader-speak:hover .book-reader-speak-badge,.book-reader-speak:focus-visible .book-reader-speak-badge,.book-reader-speak.is-on .book-reader-speak-badge{opacity:1}.book-reader-audio{flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;display:flex}.book-reader-audio-hint{color:var(--text-muted);margin:0;font-size:14px}.project-layout:has(.page-shot-board){background:var(--bg-main) url(https://assets.triomate.ai/education/kidbuddy/read/read-bg.jpg) center / cover no-repeat}.page-shot-board{width:100%;max-width:1200px;margin:0 auto;padding:8px 0 48px}.page-shot-heading{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;margin-bottom:24px;display:grid}.page-shot-heading>div{text-align:center}.page-shot-heading p{color:var(--text-muted);margin:0;font-size:15px}.page-shot-heading h1{margin:4px 0 0;font-size:clamp(24px,3vw,36px)}.page-shot-heading-end{justify-items:end;gap:10px;display:grid}.page-shot-hint{text-align:right;max-width:12em}.page-shot-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;display:grid}.page-shot-card{background:var(--bg-surface);border:2px solid #0000;border-radius:24px;flex-direction:column;gap:14px;padding:22px;display:flex;box-shadow:0 10px 28px #3b24160f}.page-shot-grid .page-shot-card{height:100%}.page-shot-card.is-pick{cursor:pointer;position:relative}.page-shot-pick{z-index:1;border-radius:inherit;cursor:pointer;background:0 0;border:0;padding:0;position:absolute;inset:0}.page-shot-card.is-pick>:not(.page-shot-pick){pointer-events:none}.page-shot-card.is-pick:hover{border-color:var(--bg-brand);outline:none;box-shadow:0 14px 32px #ff6b3d24}.page-shot-card.is-pick:has(.page-shot-pick:focus-visible){border-color:var(--bg-brand);outline:none;box-shadow:0 14px 32px #ff6b3d24}.page-shot-card>.btn{margin-top:auto}.page-shot-card>.page-shot-primary{border-radius:999px;flex-direction:column;margin-top:auto;display:flex}.page-shot-primary.is-beckon{animation:.7s ease-out 2 page-shot-beckon}@keyframes page-shot-beckon{0%{box-shadow:0 0 #ff7a4573}to{box-shadow:0 0 0 14px #ff7a4500}}.page-shot-card.is-current{border-color:var(--bg-brand);box-shadow:0 14px 32px #ff6b3d2e}.page-shot-select{background:var(--bg-soft);color:inherit;font:inherit;cursor:pointer;border:0;border-radius:14px;align-self:flex-start;padding:8px 16px;font-weight:700}.page-shot-card.is-current .page-shot-select{background:var(--bg-brand);color:var(--text-on-brand)}.page-shot-pair{grid-template-columns:1fr 1fr;gap:10px;display:grid}.page-shot-frame{aspect-ratio:16/9;background:var(--bg-image);border-radius:16px;min-height:0;margin:0;position:relative;overflow:hidden}.page-shot-frame>.page-shot-placeholder{height:100%;color:var(--text-muted);text-align:center;place-items:center;padding:12px;font-size:14px;display:grid}.page-shot-still{object-fit:cover;width:100%;height:100%;display:block}.page-shot-preparing{z-index:1;pointer-events:none;place-items:center;display:grid;position:absolute;inset:0;overflow:hidden}.page-shot-preparing:before{content:"";background:linear-gradient(100deg,#fff0 38%,#fff6 50%,#fff0 62%) 0 0/220% 100% no-repeat;animation:1.8s linear infinite page-shot-sweep;position:absolute;inset:0}.page-shot-preparing-dial{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#1c161275;border-radius:50%;place-items:center;width:46px;height:46px;display:grid;position:relative}.page-shot-preparing-dial:before{content:"";border:2px solid #ffffff61;border-top-color:#fff;border-radius:50%;width:20px;height:20px;animation:1s linear infinite creation-turn}@keyframes page-shot-sweep{0%{background-position:140% 0}to{background-position:-40% 0}}.page-shot-error{color:var(--text-danger,#b42318);text-align:center;margin:0 0 16px}.page-shot-player[open]{width:100vw;max-width:none;height:100vh;max-height:none;color:var(--text-ink);background:0 0;border:0;place-items:center;margin:0;padding:0;display:grid}.page-shot-player::backdrop{background:#2b1b108c}.page-shot-player-scrim{cursor:pointer;background:0 0;border:0;padding:0;position:absolute;inset:0}.page-shot-player-box{z-index:1;gap:12px;width:min(960px,92vw);display:grid;position:relative}.page-shot-player-stage{aspect-ratio:16/9;background:#111;border-radius:16px;width:100%;position:relative;overflow:hidden;box-shadow:0 24px 64px #2b1b1059}.page-shot-player-caption{color:#fff;text-align:center;text-shadow:0 1px 8px #0000008c;margin:0;font-size:clamp(16px,2.2vw,22px);font-weight:700}.page-shot-player video{object-fit:contain;background:#111;width:100%;height:100%;display:block}.page-shot-player-close{z-index:1;color:#fff;cursor:pointer;background:#2b1b10b8;border:0;border-radius:50%;place-items:center;width:44px;height:44px;padding:0;display:grid;position:absolute;top:10px;right:10px}.page-shot-player-close:hover,.page-shot-player-close:focus-visible{background:#2b1b10e6;outline:none}.page-shot-watch{z-index:2;cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:grid;position:absolute;inset:0}.page-shot-watch-badge{color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#1c16127a;border-radius:50%;place-items:center;width:54px;height:54px;transition:transform .16s,background .16s;display:grid;box-shadow:0 6px 18px #0000003d}.page-shot-watch:hover .page-shot-watch-badge{background:#1c1612a3;transform:scale(1.08)}.page-shot-watch:focus-visible{outline:3px solid var(--bg-brand);outline-offset:-3px;border-radius:16px}.page-shot-invite{z-index:2;border-radius:inherit;cursor:pointer;background:#1c161247;border:0;place-items:center;padding:0;transition:background .16s;display:grid;position:absolute;inset:0}.page-shot-invite:hover{background:#1c161261}.page-shot-invite-badge{color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#1c16128f;border-radius:999px;align-items:center;gap:8px;padding:10px 18px;font-size:15px;font-weight:700;transition:transform .16s;display:inline-flex;box-shadow:0 6px 18px #0000003d}.page-shot-invite:hover .page-shot-invite-badge{transform:scale(1.04)}.page-shot-invite-icon{width:18px;height:18px}.page-shot-watch-icon{fill:currentColor;width:22px;height:22px;margin-left:3px}@media (prefers-reduced-motion:reduce){.page-shot-preparing:before,.page-shot-preparing-dial:before{animation:none}.page-shot-watch-badge,.page-shot-invite,.page-shot-invite-badge{transition:none}.page-shot-primary.is-beckon{outline:3px solid var(--bg-brand);outline-offset:3px;animation:none}}.page-shot-frame.is-preparing .page-shot-still{filter:saturate(.85)brightness(.92)}.page-shot-frame.is-moving .page-shot-still{object-fit:cover;transform-origin:42% 58%;animation:9s ease-in-out infinite alternate page-shot-move}@keyframes page-shot-move{0%{transform:scale(1.04)translate(0)}to{transform:scale(1.16)translate(-3.5%,-2.5%)}}.page-shot-caption{min-height:2.6em;color:var(--text-ink);margin:0;font-size:16px;line-height:1.45}.page-shot-focus{margin-bottom:24px}.page-shot-focus .page-shot-pair{gap:14px}.page-shot-grid .page-shot-pair{gap:8px}.page-shot-focus>.page-shot-select{pointer-events:none}.page-shot-edit{flex-direction:column;gap:10px;display:flex}.page-shot-edit-hint{color:var(--text-muted);margin:0;font-size:14px}.page-shot-line-actions{flex-wrap:wrap;gap:8px;display:flex}.page-shot-edit textarea{background:var(--bg-main);width:100%;min-height:110px;color:inherit;font:inherit;resize:vertical;border:0;border-radius:16px;padding:14px 16px;line-height:1.55}.page-shot-at p{margin:0 0 8px;font-size:14px;font-weight:700}.page-shot-at>div{flex-wrap:wrap;gap:8px;display:flex}.page-shot-friend{background:var(--bg-main);color:inherit;font:inherit;cursor:pointer;border:0;border-radius:999px;align-items:center;gap:8px;padding:6px 12px 6px 6px;font-weight:700;display:inline-flex}.page-shot-friend:not(:has(.page-shot-friend-face)){padding-left:12px}.page-shot-friend-face{object-fit:cover;border-radius:50%;width:32px;height:32px}@media (max-width:760px){.page-shot-heading{text-align:center;grid-template-columns:1fr;justify-items:center}.page-shot-heading-end{justify-items:center}.page-shot-hint{text-align:center;max-width:none}.page-shot-grid,.page-shot-pair{grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){.page-shot-frame.is-moving .page-shot-still{animation:none;transform:scale(1.06)}}.book-drawing-progress{background:var(--bg-main);text-align:center;color:var(--text-muted);border-radius:24px;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin:0;padding:10px 18px;font-size:18px;display:flex}.book-drawing-wait{text-align:center;color:var(--text-ink);padding:24px}.book-drawing-wait p{margin:20px 0 12px;font-size:clamp(24px,3vw,32px)}.book-drawing-wait span{color:var(--text-muted);font-size:18px;line-height:1.6}.drawing-indicator{width:160px;stroke:var(--text-muted);stroke-width:3px;stroke-linecap:round;stroke-linejoin:round}.drawing-indicator rect{fill:var(--bg-main);stroke:var(--bg-cover)}.drawing-indicator-line{stroke:var(--bg-brand);stroke-dasharray:220;animation:3s ease-in-out infinite draw-story-line}@keyframes draw-story-line{0%{stroke-dashoffset:220px}70%,to{stroke-dashoffset:0}}@media (prefers-reduced-motion:reduce){.drawing-indicator-line{animation:none}}.book-drawing-spinner{border:2px solid var(--bg-cover);border-top-color:var(--text-muted);border-radius:50%;flex:0 0 18px;width:18px;height:18px;animation:1s linear infinite book-drawing-spin}@keyframes book-drawing-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.book-drawing-spinner{animation:none}}.creation-studio{width:100%;max-width:1200px;margin:0 auto;padding:24px 0 48px}.creation-header{justify-content:space-between;align-items:center;gap:20px;display:flex}.creation-header>div{text-align:center}.creation-header h1{margin:8px 0;font-size:clamp(24px,3vw,36px)}.creation-intro{text-align:center;color:var(--text-muted);margin:20px 0 28px;font-size:19px}.character-tabs{flex-wrap:wrap;gap:12px;margin-bottom:22px;display:flex}.character-tabs>button{background:var(--bg-surface);color:var(--text-ink);font:inherit;cursor:pointer;border:2px solid #0000;border-radius:20px;align-items:center;gap:10px;padding:12px 18px;display:flex}.character-tabs>button[aria-pressed=true]{border-color:var(--bg-brand);background:var(--bg-soft)}.character-tabs img{object-fit:cover;border-radius:12px;width:42px;height:42px}.character-workspace{background:var(--bg-surface);border-radius:28px;grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);gap:32px;padding:28px;display:grid}.character-preview{aspect-ratio:1;background:var(--bg-main);border-radius:22px;max-height:480px;margin:auto;position:relative;overflow:hidden}.character-preview>img{object-fit:contain;width:100%;height:100%}.character-placeholder{height:100%;color:var(--text-muted);text-align:center;place-content:center;justify-items:center;padding:24px;font-size:20px;display:grid}.character-details{flex-direction:column;justify-content:center;gap:22px;display:flex}.character-details label,.storyboard-page>label{flex-direction:column;gap:9px;font-size:20px;font-weight:600;display:flex}.character-details input,.character-details textarea,.storyboard-page input:not([type=checkbox]),.storyboard-page textarea{border:1px solid var(--bg-cover);background:var(--bg-main);width:100%;color:var(--text-ink);font:inherit;box-sizing:border-box;border-radius:16px;padding:14px 16px;font-size:18px}.character-details textarea{resize:vertical;min-height:125px}.character-voice{align-items:center;gap:10px;display:flex}.character-voice input{min-width:0}.character-candidates{gap:16px;margin-top:18px;display:flex}.character-candidates button{aspect-ratio:1.2;background:var(--bg-main);width:50%;color:var(--text-muted);font:inherit;cursor:pointer;border:3px solid #0000;border-radius:18px;padding:4px}.character-candidates button[aria-pressed=true]{border-color:var(--bg-brand)}.character-candidates img{object-fit:contain;border-radius:12px;width:100%;height:100%}.character-confirmed{background:var(--bg-soft);color:var(--text-ink);border-radius:16px;padding:16px}.creation-footer{background:var(--bg-main);border-radius:22px;justify-content:space-between;align-items:center;gap:24px;margin-top:28px;padding:20px 24px;display:flex}.creation-footer p{color:var(--text-muted)}.creation-progress{color:var(--text-muted);justify-content:center;align-items:center;gap:12px;display:flex}.creation-spinner{border:3px solid var(--bg-cover);border-top-color:var(--bg-brand);border-radius:50%;width:24px;height:24px;animation:1.2s linear infinite creation-turn;display:inline-block}@keyframes creation-turn{to{transform:rotate(360deg)}}.character-library{background:var(--bg-soft);border-radius:22px;margin-bottom:24px;padding:24px}.character-library-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:16px;display:grid}.character-library-grid button{background:var(--bg-surface);color:var(--text-ink);cursor:pointer;font:inherit;border:0;border-radius:16px;flex-direction:column;gap:8px;padding:12px;display:flex}.character-library-grid img{aspect-ratio:1;object-fit:contain;width:100%}.storyboard-pages{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;display:grid}.storyboard-page{background:var(--bg-surface);border-radius:24px;flex-direction:column;gap:20px;padding:26px;display:flex}.storyboard-page-heading>span{background:var(--bg-soft);border-radius:14px;padding:10px 18px;font-size:22px;font-weight:700;display:inline-block}.storyboard-page-heading>img{aspect-ratio:16/9;object-fit:contain;border-radius:16px;width:100%;margin-top:16px;display:block}.storyboard-page textarea{resize:vertical;min-height:140px}.storyboard-page fieldset{border:0;margin:0;padding:0}.storyboard-page legend{margin-bottom:12px;font-size:18px}.storyboard-cast{flex-wrap:wrap;gap:12px;display:flex}.storyboard-cast label{background:var(--bg-main);cursor:pointer;border-radius:12px;align-items:center;gap:8px;padding:8px;display:flex}.storyboard-cast img{object-fit:cover;border-radius:8px;width:40px;height:40px}.storyboard-page-actions{flex-wrap:wrap;gap:12px;margin-top:auto;display:flex}.creation-studio button:disabled{cursor:default}@media (max-width:760px){.character-workspace{grid-template-columns:1fr;gap:24px;padding:18px}.creation-header{flex-wrap:wrap;justify-content:center}.creation-header>div{order:-1;width:100%}.storyboard-pages{grid-template-columns:1fr}.creation-footer{text-align:center;flex-direction:column}.character-preview{max-height:380px}}@media (prefers-reduced-motion:reduce){.creation-spinner{animation:none}}.project-layout:has(.creation-studio){background:var(--bg-main) url(https://assets.triomate.ai/education/kidbuddy/read/read-bg.jpg) center / cover no-repeat}.storyboard-page-heading>img{height:auto}.creation-opening{min-height:40vh;color:var(--text-muted);justify-content:center;align-items:center;gap:16px;display:flex}.storyboard-picture-status{background:var(--bg-main);color:var(--text-muted);text-align:center;border-radius:20px;justify-content:center;align-items:center;gap:12px;margin-top:16px;padding:24px;display:flex}.creation-spinner{flex-shrink:0}.companion-library{width:min(1120px,100% - 48px);margin:0 auto;padding:24px 0 48px}.companion-library h1{font-size:clamp(26px,4vw,38px)}.companion-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr));gap:40px 34px;display:grid}.companion-card{background:var(--bg-surface);border:2px solid var(--bg-soft);text-align:left;color:var(--text-ink);cursor:pointer;border-radius:24px;flex-direction:column;gap:10px;padding:16px;display:flex}.companion-card img{aspect-ratio:1;object-fit:contain;background:var(--bg-main);border-radius:16px;width:100%;height:auto}.companion-card strong{font-size:22px}.companion-card span{color:var(--text-muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:16px;display:-webkit-box;overflow:hidden}.companion-card small{margin-top:auto;padding-top:6px;font-size:16px;font-weight:700}.companion-card:hover{border-color:var(--bg-brand)}.companion-card:disabled{cursor:default}.companion-empty{text-align:center;background:var(--bg-main);border-radius:24px;padding:48px 24px}.story-selected-hero{flex-direction:column;align-items:center;gap:8px;margin-bottom:12px;display:flex}.story-selected-hero img{border-radius:20px;width:min(100%,180px);height:auto}.story-selected-hero small{color:var(--text-muted)}.story-inspiration-actions{flex-wrap:wrap;gap:10px;display:flex}.story-compose .story-inspiration-actions,.story-compose .story-thinking{align-items:center;min-height:44px;margin-bottom:14px}.story-compose .story-inspiration-actions .btn{border-radius:999px;padding:9px 16px}.story-thinking{color:var(--text-muted);align-items:center;gap:12px;display:flex}.story-thinking-balls{align-items:flex-end;gap:10px;height:22px;display:flex}.story-thinking-ball{background:var(--bg-brand);transform-origin:bottom;border-radius:50%;width:12px;height:12px;animation:.9s cubic-bezier(.4,0,.5,1) infinite story-thinking-hop;position:relative}.story-thinking-ball:after{content:"";background:var(--text-ink);opacity:.16;border-radius:50%;width:14px;height:4px;margin-left:-7px;animation:.9s cubic-bezier(.4,0,.5,1) infinite story-thinking-shadow;position:absolute;bottom:-7px;left:50%}.story-thinking-ball:nth-child(2),.story-thinking-ball:nth-child(2):after{animation-delay:.14s}.story-thinking-ball:nth-child(3),.story-thinking-ball:nth-child(3):after{animation-delay:.28s}@keyframes story-thinking-hop{0%,to{transform:translateY(0)scale(1.18,.72)}18%{transform:translateY(-4px)scale(1)}50%{transform:translateY(-15px)scale(.92,1.12)}82%{transform:translateY(-4px)scale(1)}}@keyframes story-thinking-shadow{0%,to{opacity:.16;transform:scale(1)}50%{opacity:.07;transform:scale(.6)}}@media (prefers-reduced-motion:reduce){.story-thinking-ball,.story-thinking-ball:after{animation:none}}.story-choices img{border-radius:14px;max-width:100%;height:auto}@media (max-width:760px){.story-setup{position:relative}.story-setup h2{padding-right:64px}.story-setup>.btn{margin-bottom:8px;padding:4px 8px;font-size:14px}.story-selected-hero{margin:0;position:absolute;top:12px;right:16px}.story-selected-hero img{border-radius:12px;width:52px}.story-selected-hero small{display:none}}@media (max-width:640px){.home-bar .home-wrap{gap:8px;width:calc(100% - 24px)}.home-brand{flex-shrink:0}.home-brand span{font-size:18px}.home-brand small{font-size:10px}.home-bar-actions{flex-wrap:nowrap;gap:2px}.companion-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.companion-card{padding:10px}.home-bar-actions>.btn{white-space:nowrap;padding:8px 6px;font-size:13px}}@media (max-width:360px){.home-brand small{display:none}}.book-reader-deck{place-items:center;max-width:100%;display:grid}.book-reader-deck>.book-reader-page{grid-area:1/1}.book-reader-page.is-top{z-index:2;animation:.42s cubic-bezier(.22,.75,.25,1) both book-card-cover}.book-reader-page.is-under{z-index:1;pointer-events:none;animation:.42s cubic-bezier(.4,0,.6,1) both book-card-recede}@keyframes book-card-cover{0%{opacity:.35;transform:translate3d(calc(26% * var(--enter-dir,1)), 7%, 0) rotate(calc(4.5deg * var(--enter-dir,1))) scale(.9);box-shadow:0 26px 52px #3c281447}to{opacity:1;transform:none}}@keyframes book-card-recede{0%{opacity:1;transform:none}to{opacity:0;transform:translate3d(calc(-7% * var(--enter-dir,1)), -2%, 0) scale(.93)}}.book-reader-spoken span{opacity:.28;animation:.28s forwards book-caption-lit}@keyframes book-caption-lit{to{opacity:1}}@media (prefers-reduced-motion:reduce){.book-reader-page.is-top,.book-reader-page.is-under{animation:none}.book-reader-page.is-under{display:none}.book-reader-spoken span{opacity:1;animation:none}}.character-drawing{border-radius:inherit;background:color-mix(in srgb, var(--bg-main) 82%, transparent);color:var(--text-muted);text-align:center;place-content:center;justify-items:center;gap:10px;font-size:15px;display:grid;position:absolute;inset:0}.character-drawing .drawing-indicator{width:112px}.board-edit-intro{justify-content:space-between;align-items:center;gap:20px;margin:24px 0;display:flex}.board-edit-intro h2{margin:0 0 8px;font-size:26px}.board-edit-intro p,.board-edit-hint{color:var(--text-muted);margin:0;line-height:1.7}.board-page-carousel{align-items:center;gap:8px;min-width:0;display:flex}.board-strip-arrow{background:var(--bg-soft);height:44px;color:var(--text-ink);cursor:pointer;border:0;border-radius:50%;flex:0 0 44px;font-size:32px}.board-strip-arrow:hover:not(:disabled){background:var(--bg-brand)}.board-strip-arrow:disabled{color:var(--text-muted);cursor:default}.board-strip-arrow:focus-visible{outline:2px solid var(--text-ink);outline-offset:2px}.board-page-strip{scrollbar-width:none;flex:1;gap:12px;min-width:0;padding:6px 4px 16px;display:flex;overflow-x:auto}.board-page-strip::-webkit-scrollbar{display:none}.board-page-strip>button{background:var(--bg-surface);color:var(--text-ink);cursor:pointer;border:2px solid #0000;border-radius:16px;flex:0 0 120px;padding:6px;position:relative}.board-page-strip>button[aria-current=page]{border-color:var(--bg-brand);background:var(--bg-soft)}.board-page-strip img,.board-thumb-empty{object-fit:cover;background:var(--bg-main);border-radius:10px;justify-content:center;align-items:center;width:100%;height:64px;display:flex}.board-page-strip>button>span:last-of-type{padding-top:7px;font-weight:700;display:block}.board-page-strip small{color:var(--text-danger);margin-top:4px;display:block}.board-page-navigation{justify-content:space-between;align-items:center;margin:10px 0 18px;display:flex}.board-page-navigation>span{color:var(--text-muted)}.board-focus{grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr);align-items:start;gap:28px;display:grid}.board-preview{background:var(--bg-surface);text-align:center;border-radius:24px;padding:18px}.board-preview-image{aspect-ratio:16/9;background:var(--bg-main);border-radius:16px;place-items:center;display:grid;position:relative;overflow:hidden}.board-preview-image>img{object-fit:contain;width:100%;height:100%}.board-preview-image>output{position:absolute;inset:auto 12px 12px}.board-preview-caption{overflow-wrap:anywhere;margin:20px 12px;font-size:clamp(21px,2vw,28px);line-height:1.8}.board-edit-panel{gap:18px;padding:24px}.board-edit-panel h2{margin:8px 0 0;font-size:23px}.board-edit-switches{flex-wrap:wrap;gap:8px;display:flex}.board-edit-switches button{background:var(--bg-main);color:var(--text-muted);cursor:pointer;border:0;border-radius:999px;padding:10px 15px;font-weight:700}.board-edit-switches button[aria-pressed=true]{background:var(--bg-soft);color:var(--text-ink)}.board-edit-panel textarea{min-height:150px;font-size:18px;line-height:1.8}.board-edit-panel>label{position:relative}.board-edit-hint{font-size:14px}@media (max-width:760px){.board-focus{grid-template-columns:1fr;gap:18px}.board-edit-intro{flex-direction:column;align-items:start}.board-page-strip>button{flex-basis:100px}.board-edit-panel,.board-preview{padding:18px}}.creation-studio:has(.board-focus){padding-top:0}.creation-studio:has(.board-focus) .creation-header h1{font-size:28px}.creation-studio:has(.board-focus)>.creation-intro{margin:10px 0;font-size:15px}.creation-studio:has(.board-focus) .board-edit-intro{margin:16px 0 12px}.creation-studio:has(.board-focus) .board-edit-intro h2{font-size:22px}.creation-studio:has(.board-focus) .board-page-navigation{margin:0 0 12px}.story-page-count{background:var(--bg-surface);border:0;border-radius:20px;margin:12px 0 24px;padding:18px 22px}.story-page-count legend{padding:0 6px;font-size:20px;font-weight:700}.story-page-count>div{flex-wrap:wrap;gap:12px;display:flex}.story-page-count p{color:var(--text-muted);margin:12px 0 0;line-height:1.7}.book-page-controls{flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;display:flex}.book-page-controls>span{color:var(--text-muted);font-size:15px}.book-page-overview{background:var(--bg-main);width:min(960px,92vw);max-height:85dvh;color:var(--text-ink);border:0;border-radius:24px;padding:24px}.book-page-overview::backdrop{background:var(--text-ink);opacity:.4}.book-page-overview>header{justify-content:space-between;align-items:center;gap:16px;display:flex}.book-page-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}.book-page-grid button{background:var(--bg-surface);color:var(--text-ink);cursor:pointer;text-align:left;border:2px solid #0000;border-radius:16px;padding:10px}.book-page-grid button:disabled{cursor:default;color:var(--text-muted)}.book-page-grid button[aria-current]{border-color:var(--bg-brand)}.book-page-grid img,.book-page-grid button>span{aspect-ratio:16/9;object-fit:cover;background:var(--bg-soft);border-radius:10px;place-items:center;width:100%;display:grid}.book-page-grid strong{margin-top:8px;display:block}.book-page-grid p{margin:6px 0 0;font-size:14px;line-height:1.6}@media (max-width:760px){.book-page-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.book-page-controls{gap:4px}.book-page-controls .btn{padding:8px 10px}}.story-edit-assistant{background:var(--bg-main);border-radius:24px;margin-bottom:20px;padding:20px}.story-edit-assistant p{white-space:pre-wrap;line-height:1.6}.story-edit-actions,.story-edit-input{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.story-edit-input input{min-width:180px;font:inherit;border:1px solid var(--bg-side);border-radius:14px;flex:1;padding:14px}.story-edit-proposal{margin:16px 0}.story-edit-proposal details{border-bottom:1px solid var(--bg-side);padding:14px 0}.story-edit-proposal summary{cursor:pointer;font-weight:700}.story-edit-comparison{overflow-wrap:anywhere;grid-template-columns:1fr 1fr;gap:20px;display:grid}.story-edit-comparison>div{min-width:0}.story-edit-note{color:var(--text-muted);font-size:14px}.story-edit-assistant form{margin-top:18px}.story-edit-assistant label{margin-bottom:8px;display:block}@media (max-width:700px){.story-edit-comparison{grid-template-columns:1fr}.story-edit-input .btn{width:100%}}.story-edit-conversation{grid-template-columns:minmax(0,1fr) 270px;align-items:center;gap:28px;margin-top:20px;display:grid}.story-edit-conversation form{min-width:0;margin:0}.story-creation-hint{border-left:3px solid var(--bg-brand);padding:4px 0 4px 18px}.story-creation-hint>span{color:var(--text-muted);letter-spacing:.06em;font-size:13px}.story-creation-hint p{color:var(--text-muted);margin:0;font-size:15px}@media (max-width:850px){.story-edit-conversation{grid-template-columns:minmax(0,1fr);gap:20px}}.story-edit-conversation-no-hint{grid-template-columns:minmax(0,1fr)}.story-creation-hint p{margin-top:8px}.book-cover-studio{text-align:center;max-width:1100px;margin:0 auto;padding:16px 0 48px}.book-cover-nav{color:var(--text-muted);justify-content:space-between;align-items:center;gap:16px;display:flex}.book-cover-studio header{margin:20px 0 24px}.book-cover-studio header p{color:var(--text-muted);margin:0 0 8px}.book-cover-studio h1{margin:0;font-size:clamp(24px,3vw,38px)}.book-cover-art{border:10px solid var(--bg-surface);width:min(100%,860px);box-shadow:-5px 4px 0 var(--bg-side), 0 20px 50px #462e191a;background:var(--bg-surface);border-left-width:18px;border-radius:8px 20px 20px 8px;margin:0 auto;transition:transform .25s;overflow:hidden}.book-cover-open{cursor:pointer;background:0 0;border:0;width:100%;padding:0;display:block}.book-cover-open:focus-visible{outline:4px solid var(--bg-brand);outline-offset:-4px}.book-cover-art:has(.book-cover-open:hover){transform:translateY(-4px)rotate(-.5deg)}.book-cover-image{aspect-ratio:16/9;object-fit:contain;width:100%;display:block}.book-cover-empty{aspect-ratio:16/9;flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:24px;display:flex}.book-cover-empty svg{stroke:currentColor;stroke-width:3px;width:150px;color:var(--text-muted)}.book-cover-empty p{max-width:440px;font-size:20px}.book-cover-stroke{stroke-dasharray:100;animation:2.4s ease-in-out infinite cover-sketch}@keyframes cover-sketch{0%{stroke-dashoffset:100px}to{stroke-dashoffset:0}}.book-cover-status{justify-content:center;align-items:center;gap:12px;margin:24px 0 12px;display:flex}.book-cover-actions{flex-wrap:wrap;justify-content:center;gap:14px;margin:28px 0 16px;display:flex}.book-cover-note{color:var(--text-muted);font-size:15px}@media (prefers-reduced-motion:reduce){.book-cover-stroke{animation:none}.book-cover-art{transition:none}}@media (max-width:600px){.book-cover-art{border-width:6px 6px 6px 10px}.book-cover-empty svg{width:90px}.book-cover-empty p{margin:0;font-size:16px}}.book-cover-studio{width:100%}.project-layout:has(.book-cover-studio){background:#f7f1ea url(https://assets.triomate.ai/education/kidbuddy/read/read-bg.jpg) 50%/cover no-repeat}.book-loading{justify-items:center;gap:18px;display:grid}.book-loading-book{perspective:900px;width:168px;height:116px;transform-style:preserve-3d;position:relative}.book-loading-half{border:2px solid var(--bg-cover);background:var(--bg-main);border-radius:8px 2px 2px 8px;width:50%;height:100%;position:absolute;top:0;left:0}.book-loading-half.is-right{border-radius:2px 8px 8px 2px;left:50%}.book-loading-spine{background:var(--bg-brand);z-index:10;border-radius:2px;width:3px;position:absolute;top:2px;bottom:2px;left:calc(50% - 1.5px)}.book-loading-page{transform-origin:0;width:50%;height:100%;transform-style:preserve-3d;border:2px solid var(--bg-cover);background:var(--bg-surface);border-radius:2px 8px 8px 2px;animation:2.6s cubic-bezier(.45,.05,.55,.95) infinite book-page-turn;position:absolute;top:0;left:50%}.book-loading-page:nth-child(3){z-index:4}.book-loading-page:nth-child(4){z-index:3;animation-delay:.65s}.book-loading-page:nth-child(5){z-index:2;animation-delay:1.3s}.book-loading-page:nth-child(6){z-index:1;animation-delay:1.95s}@keyframes book-page-turn{0%{transform:rotateY(0)}25%{transform:rotateY(-180deg)}to{transform:rotateY(-180deg)}}.book-loading-label{color:var(--text-muted);margin:0;font-size:17px}.book-loading.is-leaving{z-index:60;pointer-events:none;transform-origin:50%;place-content:center;animation:.72s cubic-bezier(.4,0,.2,1) both book-loading-exit;position:fixed;inset:0}.book-loading.is-leaving .book-loading-label{animation:.24s both book-loading-label-out}@keyframes book-loading-exit{0%{opacity:1;transform:translate(var(--exit-dx,0px), var(--exit-dy,0px)) scale(1)}38%{opacity:1;transform:translate(0)scale(1.06)}to{opacity:0;transform:translate(0)scale(6)}}@keyframes book-loading-label-out{to{opacity:0;transform:translateY(6px)}}@media (prefers-reduced-motion:reduce){.book-loading-page,.book-loading.is-leaving,.book-loading.is-leaving .book-loading-label{animation:none}}.companion-stage{place-items:center;min-height:min(52vh,420px);display:grid}.companion-slot{display:grid;position:relative}.companion-slot:hover,.companion-slot:focus-within{z-index:2}.companion-slot:before,.companion-slot:after{content:"";z-index:0;pointer-events:none;border:2px solid var(--bg-soft);background:var(--bg-surface);opacity:0;border-radius:24px;transition:transform .26s cubic-bezier(.2,.7,.3,1),opacity .22s;position:absolute;inset:14px 0 0;transform:rotate(0)translate(0,0)}.companion-slot:hover:before,.companion-slot:focus-within:before{opacity:1;transform:rotate(-5deg)translate(-9px,3px)}.companion-slot:hover:after,.companion-slot:focus-within:after{opacity:1;transform:rotate(5deg)translate(9px,3px)}.companion-card{z-index:1;transition:transform .22s cubic-bezier(.2,.7,.3,1),border-color .22s;position:relative}.companion-slot:hover .companion-card:not(:disabled){animation:.62s ease-in-out companion-wiggle}@keyframes companion-wiggle{0%,to{transform:rotate(0)translateY(0)}25%{transform:rotate(-1.6deg)translateY(-4px)}60%{transform:rotate(1.4deg)translateY(-4px)}85%{transform:rotate(-.6deg)translateY(-2px)}}.route-curtain{z-index:90;background:var(--bg-main);place-items:center;gap:18px;animation:.32s both curtain-in;display:grid;position:fixed;inset:0}.route-curtain.is-leaving{animation:.72s cubic-bezier(.4,0,.2,1) both curtain-out}@keyframes curtain-out{0%,38%{opacity:1}to{opacity:0}}@keyframes curtain-in{0%{opacity:0;clip-path:circle(0% at 50% 55%)}to{opacity:1;clip-path:circle(140% at 50% 55%)}}@media (prefers-reduced-motion:reduce){.book .cover,.companion-card,.companion-slot:before,.companion-slot:after{transition:none}.companion-slot:hover .companion-card:not(:disabled),.route-curtain{animation:none}}.book-reader{animation:.52s cubic-bezier(.2,.75,.25,1) both book-open}@keyframes book-open{0%{opacity:0;transform-origin:0;transform:perspective(1400px)rotateY(-26deg)scale(.93)}to{opacity:1;transform:none}}.book .cover-img,.book-cover-image{view-transition-name:var(--cover-morph,none)}@media (prefers-reduced-motion:reduce){.book-reader{animation:none}}.home-lang-mark{background:var(--bg-soft);width:26px;height:26px;color:var(--bg-brand);letter-spacing:0;border-radius:50%;place-items:center;font-size:13px;font-weight:800;line-height:1;display:grid}.creation-opening{align-content:center;justify-items:center;gap:22px;min-height:min(56vh,460px);display:grid}.creation-opening-label{color:var(--text-muted);margin:0;font-size:17px}.creation-opening-book{perspective:1100px;animation:2.8s ease-in-out infinite cover-breathe;position:relative}.creation-opening-pages,.creation-opening-page{box-sizing:border-box;border:5px solid var(--bg-surface);background:linear-gradient(90deg,#462e1929 0%,#462e1900 14%),repeating-linear-gradient(#462e190d 0 1px,#462e1900 1px 15px),#fffdf7;border-left-width:11px;border-radius:4px 14px 14px 4px;position:absolute;inset:0}.creation-opening-pages{z-index:1}.creation-opening-leaf{z-index:2;transform-origin:0;transform-style:preserve-3d;animation:.9s cubic-bezier(.37,0,.63,1) forwards opening-cover;position:absolute;inset:0}.creation-opening-face{box-sizing:border-box;backface-visibility:hidden;border:5px solid var(--bg-surface);background-color:#fffdf7;background-position:50%;background-repeat:no-repeat;background-size:cover;border-left-width:11px;border-radius:4px 14px 14px 4px;position:absolute;inset:0}.creation-opening-face.is-back{background-image:linear-gradient(270deg,#462e1929 0%,#462e1900 14%),repeating-linear-gradient(#462e190d 0 1px,#462e1900 1px 15px);border-left-width:5px;border-right-width:11px;border-radius:14px 4px 4px 14px;transform:rotateY(180deg)}@keyframes opening-cover{0%{transform:translateZ(1px)rotateY(0)}to{transform:translateZ(1px)rotateY(-180deg)}}.creation-opening-page{z-index:3;opacity:0;transform-origin:0;animation:2.4s cubic-bezier(.45,.05,.55,.95) infinite opening-page}@keyframes opening-page{0%{opacity:1;transform:translateZ(2px)rotateY(0)}33.34%,to{opacity:1;transform:translateZ(2px)rotateY(-180deg)}}@keyframes cover-breathe{0%,to{transform:rotate(-.6deg)translateY(0)}50%{transform:rotate(.6deg)translateY(-6px)}}.creation-opening.is-leaving{z-index:60;pointer-events:none;background:var(--bg-main);animation:.72s cubic-bezier(.4,0,.2,1) .5s both creation-opening-veil;position:fixed;inset:0}@keyframes creation-opening-veil{0%,38%{opacity:1}to{opacity:0}}.creation-opening.is-leaving .creation-opening-book{transform-origin:50%;animation:.72s cubic-bezier(.4,0,.2,1) .5s both book-loading-exit}.creation-opening.is-leaving .creation-opening-label{animation:.24s .5s both book-loading-label-out}@media (prefers-reduced-motion:reduce){.creation-opening-book,.creation-opening-leaf,.creation-opening-page,.creation-opening.is-leaving{animation:none}.creation-opening-page{display:none}}.creation-opening-cover{aspect-ratio:3/4;object-fit:cover;border:5px solid var(--bg-surface);width:min(220px,40vw);box-shadow:-3px 3px 0 var(--bg-side), 0 14px 28px #462e1924;view-transition-name:var(--cover-morph,none);border-left-width:11px;border-radius:4px 14px 14px 4px;display:block}:is(.btn:has(>.nav-icon),.btn:has(>.btn-icon)){align-items:center;gap:6px;display:inline-flex}.nav-icon,.btn-icon{stroke-width:2.4px;flex:none;width:1.1em;height:1.1em}a.btn{align-items:center;gap:6px;text-decoration:none;display:inline-flex}.book-reader-hero{view-transition-name:var(--cover-morph,none)}::view-transition-old(root){animation-duration:.3s;animation-timing-function:cubic-bezier(.2,.7,.3,1)}::view-transition-new(root){animation-duration:.3s;animation-timing-function:cubic-bezier(.2,.7,.3,1)}html[data-view-transition=back]::view-transition-old(root){animation-name:vt-slide-out-back}html[data-view-transition=back]::view-transition-new(root){animation-name:vt-slide-in-back}@keyframes vt-slide-out-back{to{opacity:0;transform:translate(4%)}}@keyframes vt-slide-in-back{0%{opacity:0;transform:translate(-4%)}}@media (prefers-reduced-motion:reduce){::view-transition-old(root){animation:none}::view-transition-new(root){animation:none}}.book-cover-status-art{width:54px}.home-lang-shell{transition:width .3s cubic-bezier(.2,.8,.3,1),height .3s cubic-bezier(.2,.8,.3,1),border-radius .3s cubic-bezier(.2,.8,.3,1),transform .18s,background .22s,box-shadow .22s}.home-lang:not(.open) .home-lang-shell:hover{transform:translateY(-2px)}.home-lang.open .home-lang-shell{width:140px;height:var(--lang-open-height,120px);background:#fff;border-radius:18px;box-shadow:0 14px 30px #3b24162e}.home-lang-btn{transition:height .3s cubic-bezier(.2,.8,.3,1),opacity .16s}.home-lang.open .home-lang-btn{opacity:0;pointer-events:none;height:0}.home-lang-mark{transition:transform .26s cubic-bezier(.2,.8,.3,1),color .22s}.home-lang.open .home-lang-mark{transform:scale(.6)}.home-lang-menu{opacity:0;transition:opacity .18s ease, display .3s allow-discrete;display:none}.home-lang.open .home-lang-menu{opacity:1;transition:opacity .2s ease .12s, display .3s allow-discrete;padding:6px;display:grid}@starting-style{.home-lang.open .home-lang-menu{opacity:0}}@media (prefers-reduced-motion:reduce){.home-lang-shell,.home-lang-menu,.home-lang-btn,.home-lang-mark{transition:none}}.home-bar.is-on-light{color:var(--text-ink)}.home-bar.is-on-light .home-brand small{color:var(--text-muted)}.home-bar.is-on-light .btn-ghost{color:var(--text-ink)}.home-bar.is-on-light .btn-ghost:hover,.home-bar.is-on-light .home-lang-shell{background:#3b241614}.studio-author-bar{background:var(--bg-soft);width:fit-content;color:var(--text-muted);border-radius:999px;justify-content:center;align-items:center;gap:12px;margin:0 auto 12px;padding:10px 16px;font-size:.92rem;display:flex}.book-slot{flex-direction:column;min-width:0;display:flex}.book-slot .book{flex:1}.public-switch{flex-shrink:0;align-items:center;gap:7px;display:inline-flex}.public-switch-label{color:var(--text-muted);white-space:nowrap;font-size:.78rem}.public-switch-label.is-on{color:var(--text-ink);font-weight:700}.public-switch-track{box-sizing:border-box;background:var(--bg-brand-soft);cursor:pointer;border:0;border-radius:999px;flex-shrink:0;justify-content:flex-start;align-items:center;width:44px;height:26px;padding:3px;transition:background .16s;display:flex}.public-switch-track[aria-checked=true]{background:var(--text-ink);justify-content:flex-end}.public-switch-track:disabled{cursor:default;opacity:.6}.public-switch-track:focus-visible{outline:3px solid var(--bg-brand);outline-offset:2px}.public-switch-knob{background:var(--bg-surface);border-radius:999px;width:20px;height:20px;box-shadow:0 1px 3px #3b241647}.book-foot{justify-content:space-between;align-items:center;gap:8px;min-height:26px;margin-top:6px;display:flex}.book-foot .meta{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.book-cover-nav-end{align-items:center;gap:16px;display:flex}.share-confirm{background:var(--bg-surface);width:min(92vw,372px);color:var(--text-ink);border:0;border-radius:26px;padding:24px 22px 20px;box-shadow:0 22px 48px #2b1b1047}.share-confirm::backdrop{background:#2b1b106b}.share-confirm-head{align-items:center;gap:12px;display:flex}.share-confirm-cover{box-sizing:border-box;border:3px solid var(--bg-surface);background:var(--bg-cover);object-fit:cover;border-left-width:6px;border-radius:3px 8px 8px 3px;flex-shrink:0;width:40px;height:53px;box-shadow:0 4px 10px #3b24162e}.share-confirm-head h2{text-wrap:pretty;margin:0 0 2px;font-size:1.05rem;line-height:1.35}.share-confirm-head p{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:.78rem;overflow:hidden}.share-confirm-points{flex-direction:column;gap:9px;margin:14px 0 0;padding:0;list-style:none;display:flex}.share-confirm-points li{gap:9px;font-size:.85rem;line-height:1.55;display:flex}.share-confirm-points svg{color:#8f5a33;flex-shrink:0;width:17px;height:17px;margin-top:2px}.share-confirm-actions{gap:10px;margin-top:16px;display:flex}.share-confirm-actions button{font:inherit;cursor:pointer;border:0;border-radius:999px;flex:1;padding:13px 16px;font-size:.9rem;font-weight:700}.share-confirm-actions button:disabled{cursor:default;opacity:.6}.share-confirm-actions button:focus-visible{outline:3px solid var(--bg-brand);outline-offset:2px}.share-confirm-cancel{background:var(--bg-soft);color:var(--text-ink)}.share-confirm-ok{background:var(--bg-brand);color:var(--text-on-brand)}.share-confirm-ok:hover:not(:disabled){background:var(--bg-brand-hover)}@media (prefers-reduced-motion:reduce){.public-switch-track{transition:none}}.kb-btn{justify-content:center;align-items:center;gap:var(--kb-space-2);min-height:44px;padding:var(--kb-space-2) var(--kb-space-5);border-radius:var(--kb-radius-full);font-family:var(--kb-font-body);font-size:var(--kb-fs-body);cursor:pointer;transition:background-color var(--kb-dur-base) var(--kb-ease-std), transform var(--kb-dur-fast) var(--kb-ease-std), box-shadow var(--kb-dur-fast) var(--kb-ease-std);border:1px solid #0000;font-weight:700;line-height:1.3;display:inline-flex}.kb-btn:focus-visible{outline:3px solid var(--kb-yellow);outline-offset:2px}.kb-btn--primary{background:var(--kb-accent-strong);color:var(--kb-text-on-accent);box-shadow:var(--kb-shadow-press)}.kb-btn--primary:hover:not(:disabled){background:var(--kb-green-800);transform:translateY(-1px)}.kb-btn--primary:active:not(:disabled){box-shadow:0 1px 0 var(--kb-green-800);transform:translateY(1px)}.kb-btn--secondary{background:var(--kb-surface);border-color:var(--kb-line-strong);color:var(--kb-text)}.kb-btn--ghost{color:var(--kb-text-muted);background:0 0}.kb-btn--ghost:hover:not(:disabled){background:var(--kb-surface-2)}.kb-btn:disabled{background:var(--kb-disabled-bg);color:var(--kb-text-disabled);box-shadow:none;cursor:not-allowed;border-color:#0000}@media (prefers-reduced-motion:reduce){.kb-btn,.kb-btn--primary:hover:not(:disabled),.kb-btn--primary:active:not(:disabled){transition:background-color var(--kb-dur-fast) var(--kb-ease-std);transform:none}}.kb-sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.kb-plan{gap:var(--kb-space-2);max-width:440px;margin-bottom:var(--kb-space-3);padding:var(--kb-space-4);border:2px solid var(--kb-accent);border-radius:var(--kb-radius-md);background:var(--kb-surface);color:var(--kb-text);font-family:var(--kb-font-body);justify-items:start;display:grid}.kb-plan.is-quota{border-color:var(--kb-yellow)}.kb-plan-title{font-size:var(--kb-fs-h3);margin:0;font-weight:700;line-height:1.35}.kb-plan-summary{font-size:var(--kb-fs-body);margin:0;line-height:1.6}.kb-plan-hint{align-items:flex-start;gap:var(--kb-space-2);color:var(--kb-text-muted);font-size:var(--kb-fs-sm);margin:0;font-weight:500;line-height:1.5;display:flex}.kb-plan-hint.is-warn{color:var(--kb-warn)}.kb-plan.is-quota .kb-plan-hint{padding:var(--kb-space-2) var(--kb-space-3);border-radius:var(--kb-radius-sm);background:var(--kb-warn-bg);justify-self:stretch}.kb-plan-icon{flex:none;width:20px;height:20px}.kb-quota{align-items:center;gap:var(--kb-space-2);padding:var(--kb-space-1) var(--kb-space-3);border:1px solid var(--kb-line);border-radius:var(--kb-radius-full);background:var(--kb-surface);color:var(--kb-text);font-family:var(--kb-font-body);font-size:var(--kb-fs-sm);margin:0;font-weight:500;display:inline-flex}.kb-quota-count{font-family:var(--kb-font-num);font-variant-numeric:tabular-nums}.kb-quota-bar{border-radius:var(--kb-radius-full);background:var(--kb-surface-2);width:46px;height:8px;position:relative;overflow:hidden}.kb-quota-bar>span{background:var(--kb-accent);transition:width var(--kb-dur-slow) var(--kb-ease-out);position:absolute;inset:0 auto 0 0}.kb-quota.is-out .kb-quota-bar>span{background:var(--kb-yellow)}@media (prefers-reduced-motion:reduce){.kb-quota-bar>span{transition:none}}.kb-notice{align-items:flex-start;gap:var(--kb-space-2);padding:var(--kb-space-3) var(--kb-space-4);border-radius:var(--kb-radius-md);background:var(--kb-warn-bg);color:var(--kb-warn);font-family:var(--kb-font-body);font-size:var(--kb-fs-sm);margin:0;font-weight:500;line-height:1.5;display:flex}.kb-toast{left:50%;bottom:var(--kb-space-6);z-index:60;align-items:center;gap:var(--kb-space-3);width:min(560px, calc(100vw - 2 * var(--kb-space-4)));padding:var(--kb-space-3) var(--kb-space-3) var(--kb-space-3) var(--kb-space-4);border:1px solid var(--kb-line);border-radius:var(--kb-radius-md);background:var(--kb-surface);box-shadow:var(--kb-shadow-1);color:var(--kb-text);font-family:var(--kb-font-body);font-size:var(--kb-fs-body);animation:kb-toast-in var(--kb-dur-slow) var(--kb-ease-out);line-height:1.5;display:flex;position:fixed;transform:translate(-50%)}.kb-toast p{flex:1;margin:0}@keyframes kb-toast-in{0%{opacity:0;transform:translate(-50%,6px)}}@media (prefers-reduced-motion:reduce){.kb-toast{animation:none}}.kb-suggestion{align-items:center;gap:var(--kb-space-2);margin-left:var(--kb-space-2);vertical-align:middle;flex-wrap:wrap;display:inline-flex}.kb-suggestion-tag{padding:2px var(--kb-space-2);border-radius:var(--kb-radius-full);background:var(--kb-yellow-soft);color:var(--kb-text);font-family:var(--kb-font-body);font-size:var(--kb-fs-xs);font-weight:700}.kb-btn.kb-suggestion-confirm{padding:2px var(--kb-space-3);font-size:var(--kb-fs-sm)}.kb-btn--lg{min-height:52px;padding:var(--kb-space-2) 28px;font-size:var(--kb-fs-h3)}.kb-btn--sm{min-height:36px;padding:var(--kb-space-1) var(--kb-space-4);font-size:var(--kb-fs-sm);position:relative}.kb-btn--sm:before{content:"";position:absolute;inset:-4px}.kb-btn--icon{flex:none;width:44px;min-width:44px;height:44px;padding:0}.kb-btn--icon svg,.kb-icon{stroke-width:2px;width:20px;height:20px}.kb-input{min-width:0;min-height:44px;padding:10px var(--kb-space-4);border:2px solid var(--kb-line-strong);border-radius:var(--kb-radius-lg);background:var(--kb-surface);color:var(--kb-text);font-family:var(--kb-font-body);font-size:var(--kb-fs-body);resize:none;flex:1;line-height:1.5}.kb-input::placeholder{color:var(--kb-text-subtle)}.kb-input:focus-visible{border-color:var(--kb-accent);outline:none}.kb-chip-row{gap:var(--kb-space-2);flex-wrap:wrap;display:flex}.kb-chip{min-height:44px;padding:var(--kb-space-2) 14px;border:1px solid var(--kb-line);border-radius:var(--kb-radius-full);background:var(--kb-surface);color:var(--kb-text);font-family:var(--kb-font-body);font-size:var(--kb-fs-body);cursor:pointer;transition:border-color var(--kb-dur-base) var(--kb-ease-std), transform var(--kb-dur-fast) var(--kb-ease-std);align-items:center;gap:6px;font-weight:600;display:inline-flex}.kb-chip:hover:not(:disabled){border-color:var(--kb-accent)}.kb-chip:active:not(:disabled){transform:scale(.97)}.kb-chip:focus-visible,.kb-pick-card:focus-visible,.kb-setup-item:focus-visible,.kb-work-link:focus-visible{outline:3px solid var(--kb-yellow);outline-offset:2px}.kb-chip.is-selected{border-color:var(--kb-accent);background:var(--kb-accent-soft)}.kb-chip.is-ghost{border-style:dashed;border-color:var(--kb-line-strong);color:var(--kb-text-muted);background:0 0}.kb-chip:disabled{color:var(--kb-text-disabled);background:var(--kb-disabled-bg);cursor:not-allowed}.kb-chip-check{width:16px;height:16px;color:var(--kb-accent-strong)}.kb-pick-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:14px;display:grid}.kb-pick-card{gap:var(--kb-space-2);padding:var(--kb-space-2);border-radius:var(--kb-radius-md);background:var(--kb-surface);box-shadow:var(--kb-shadow-1);color:var(--kb-text);font-family:var(--kb-font-body);text-align:left;cursor:pointer;transition:border-color var(--kb-dur-base) var(--kb-ease-std), transform var(--kb-dur-fast) var(--kb-ease-std);border:2px solid #0000;display:grid;position:relative}.kb-pick-card:hover:not(:disabled){border-color:var(--kb-green-600)}.kb-pick-card:active:not(:disabled){transform:scale(.98)}.kb-pick-card .style-cover{border-radius:calc(var(--kb-radius-md) - 4px);background:var(--kb-surface-2)}.kb-pick-card.is-wide .style-cover{aspect-ratio:4/3}.kb-pick-card .style-cover.is-fallback{background:var(--kb-accent-strong);color:var(--kb-text-on-accent)}.kb-pick-card-name{font-size:var(--kb-fs-body);white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden}.kb-pick-card-mark{border-radius:var(--kb-radius-full);background:var(--kb-accent-strong);width:28px;height:28px;color:var(--kb-text-on-accent);place-items:center;display:grid;position:absolute;top:14px;right:14px}.kb-pick-card-mark svg{width:18px;height:18px}.kb-pick-card.is-selected{border-color:var(--kb-accent)}.kb-pick-card.is-delegated{border-color:var(--kb-yellow)}.kb-pick-card.is-delegated .kb-pick-card-mark{background:var(--kb-yellow);color:var(--kb-text)}.kb-pick-card:disabled{cursor:not-allowed}.kb-pick-card:disabled img{filter:grayscale()}@media (max-width:560px){.kb-pick-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.kb-pick-card-name{font-size:var(--kb-fs-sm)}.kb-pick-card-mark{top:10px;right:10px}}@media (prefers-reduced-motion:reduce){.kb-chip,.kb-pick-card{transition:border-color var(--kb-dur-fast) var(--kb-ease-std)}.kb-chip:active:not(:disabled),.kb-pick-card:active:not(:disabled){transform:none}}.kb-setup{padding:var(--kb-space-4);border:1px solid var(--kb-line);border-radius:var(--kb-radius-md);background:var(--kb-surface);color:var(--kb-text);font-family:var(--kb-font-body);align-self:start}.kb-setup-head{justify-content:space-between;align-items:center;gap:var(--kb-space-3);margin-bottom:var(--kb-space-3);display:flex}.kb-setup-title{font-size:var(--kb-fs-h3);margin:0;line-height:1.35}.kb-setup-dots{gap:6px;display:inline-flex}.kb-setup-dots>span{border:2px solid var(--kb-line-strong);border-radius:var(--kb-radius-full);width:12px;height:12px}.kb-setup-dots>span.is-on{border-color:var(--kb-accent);background:var(--kb-accent)}.kb-setup-list{gap:var(--kb-space-2);margin:0;padding:0;list-style:none;display:grid}.kb-setup-item{gap:var(--kb-space-1);width:100%;min-height:44px;padding:var(--kb-space-2) var(--kb-space-3);border-radius:var(--kb-radius-sm);background:var(--kb-surface-2);color:var(--kb-text);font-family:var(--kb-font-body);text-align:left;cursor:pointer;border:1px solid #0000;display:grid}.kb-setup-list li.is-empty .kb-setup-item{border:1px dashed var(--kb-line-strong);background:0 0}.kb-setup-item.is-active{border:2px solid var(--kb-accent)}.kb-setup-item:disabled{cursor:default}.kb-setup-label{align-items:center;gap:var(--kb-space-2);color:var(--kb-text-muted);font-size:var(--kb-fs-sm);flex-wrap:wrap;font-weight:700;display:flex}.kb-setup-tag{padding:1px var(--kb-space-2);border-radius:var(--kb-radius-full);color:var(--kb-text);font-size:var(--kb-fs-xs);font-weight:700}.kb-setup-tag.is-child{background:var(--kb-accent-soft);color:var(--kb-accent-strong)}.kb-setup-tag.is-delegated{background:var(--kb-yellow-soft)}.kb-setup-tag.is-empty{background:var(--kb-surface-2);color:var(--kb-text-muted)}.kb-setup-tag.is-inherited{background:var(--kb-surface-2);color:var(--kb-text-muted);border:1px dashed var(--kb-line-strong)}.kb-setup-value{align-items:center;gap:var(--kb-space-2);min-width:0;font-size:var(--kb-fs-body);font-weight:700;display:flex}.kb-setup-value>span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.kb-setup-thumb{border-radius:var(--kb-radius-sm);object-fit:cover;flex:none;width:40px;height:40px}.kb-setup .kb-suggestion{margin:var(--kb-space-1) 0 0}.kb-plan{justify-items:stretch;width:100%}.kb-plan>*{min-width:0}.kb-plan-action{justify-self:start}@media (max-width:560px){.kb-plan{max-width:none;padding:var(--kb-space-3)}.kb-plan-action{justify-self:stretch}}.kb-progress{gap:var(--kb-space-2);max-width:440px;padding:var(--kb-space-4);border-radius:var(--kb-radius-md);background:var(--kb-surface-2);color:var(--kb-text);font-family:var(--kb-font-body);justify-items:start;display:grid}.kb-progress-label{font-size:var(--kb-fs-body);margin:0;font-weight:700}.kb-progress-hint{color:var(--kb-text-muted);font-size:var(--kb-fs-sm);margin:0}.kb-progress-bar{border:1px solid var(--kb-line);border-radius:var(--kb-radius-full);background:var(--kb-surface);justify-self:stretch;height:10px;position:relative;overflow:hidden}.kb-progress-bar>span{border-radius:inherit;background:var(--kb-accent);width:60%;transition:width var(--kb-dur-slow) var(--kb-ease-out);position:absolute;inset:0 auto 0 0}.kb-progress.is-pending .kb-progress-bar>span{background:repeating-linear-gradient(135deg, var(--kb-green-100) 0 8px, var(--kb-green-200) 8px 16px);width:100%}.kb-progress.is-failed{background:var(--kb-error-bg)}.kb-progress.is-failed .kb-progress-label{color:var(--kb-error)}@media (prefers-reduced-motion:reduce){.kb-progress-bar>span{transition:none}}.kb-result{gap:var(--kb-space-3);max-width:460px;padding:var(--kb-space-3);border:1px solid var(--kb-line);border-radius:var(--kb-radius-lg);background:var(--kb-surface);box-shadow:var(--kb-shadow-1);color:var(--kb-text);font-family:var(--kb-font-body);animation:kb-rise var(--kb-dur-slow) var(--kb-ease-out);display:grid}.kb-result-media{aspect-ratio:4/3;border-radius:var(--kb-radius-img);background:var(--kb-surface-2);position:relative;overflow:hidden}.kb-result-img{object-fit:cover;width:100%;height:100%}.kb-result-busy{inset:auto var(--kb-space-3) var(--kb-space-3);padding:var(--kb-space-2) var(--kb-space-3);border-radius:var(--kb-radius-md);background:var(--kb-surface);color:var(--kb-text);font-size:var(--kb-fs-body);margin:0;font-weight:700;position:absolute}.kb-result-title{font-size:var(--kb-fs-h3);white-space:nowrap;text-overflow:ellipsis;margin:0;line-height:1.35;overflow:hidden}.kb-result-revise{align-items:center;gap:var(--kb-space-2);display:flex}.kb-result-actions{justify-content:space-between;align-items:center;gap:var(--kb-space-3);flex-wrap:wrap;display:flex}.kb-result-saved{color:var(--kb-accent-strong);font-size:var(--kb-fs-sm);align-items:center;gap:6px;font-weight:700;display:inline-flex}.kb-result-saved svg{width:18px;height:18px}.kb-picture-another{justify-self:start}.kb-result-failed{gap:var(--kb-space-2);justify-items:start;display:grid}.kb-picture-main .kb-picture-another{justify-self:center}@keyframes kb-rise{0%{opacity:0;transform:translateY(6px)}}@media (prefers-reduced-motion:reduce){.kb-result{animation:none}}.kb-character-card{gap:var(--kb-space-3);max-width:420px;padding:var(--kb-space-6);border:1px solid var(--kb-line);border-radius:var(--kb-radius-lg);background:var(--kb-surface);box-shadow:var(--kb-shadow-1);color:var(--kb-text);font-family:var(--kb-font-body);animation:kb-rise var(--kb-dur-slow) var(--kb-ease-out);display:grid}.kb-character-media{aspect-ratio:1;border-radius:var(--kb-radius-img);background:var(--kb-surface-2);justify-self:center;width:100%;overflow:hidden}.kb-character-media img{object-fit:contain;width:100%;height:100%}.kb-character-name{overflow-wrap:anywhere;font-size:var(--kb-fs-h2);margin:0;line-height:1.3}.kb-character-facts{gap:var(--kb-space-1);margin:0;display:grid}.kb-character-facts dt{color:var(--kb-text-muted);font-size:var(--kb-fs-sm);font-weight:700}.kb-character-facts dd{overflow-wrap:anywhere;margin:0}.kb-character-figure{margin:0}.kb-character-quote{padding-left:var(--kb-space-3);border-left:4px solid var(--kb-accent);color:var(--kb-text-muted);font-size:var(--kb-fs-body);margin:0;line-height:1.5}.kb-character-redraw{align-items:center;gap:var(--kb-space-2);flex-wrap:wrap;display:flex}.kb-character-redraw .kb-input{flex:180px;min-width:0}.kb-character-actions{gap:var(--kb-space-2);flex-wrap:wrap;display:flex}@media (prefers-reduced-motion:reduce){.kb-character-card{animation:none}}.kb-work-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px;display:grid}.kb-work{gap:var(--kb-space-2);min-width:0;display:grid}.kb-work-link{gap:var(--kb-space-2);color:var(--kb-text);border-radius:var(--kb-radius-img);text-decoration:none;display:grid}.kb-work-media{aspect-ratio:4/3;border-radius:var(--kb-radius-img);background:var(--kb-surface-2);box-shadow:var(--kb-shadow-1);position:relative;overflow:hidden}.kb-work-img{object-fit:cover;width:100%;height:100%;transition:transform var(--kb-dur-slow) var(--kb-ease-out);view-transition-name:var(--cover-morph,none)}.kb-work-link:hover .kb-work-img{transform:scale(1.04)}.kb-work-empty{height:100%;color:var(--kb-text-muted);font-family:var(--kb-font-body);font-size:var(--kb-fs-sm);place-items:center;display:grid}.kb-kind{border-radius:var(--kb-radius-full);font-family:var(--kb-font-body);font-size:var(--kb-fs-xs);align-items:center;gap:4px;padding:4px 10px;font-weight:800;line-height:1.3;display:inline-flex;position:absolute;top:10px;left:10px}.kb-kind-icon{width:14px;height:14px}.kb-kind.is-image{background:var(--kb-kind-image-bg);color:var(--kb-text)}.kb-kind.is-book{background:var(--kb-kind-book-bg);color:var(--kb-text)}.kb-work-badge{border-radius:var(--kb-radius-full);background:var(--kb-kind-video-bg);color:var(--kb-text-on-accent);font-family:var(--kb-font-body);font-size:var(--kb-fs-xs);padding:4px 10px;font-weight:700;position:absolute;bottom:10px;right:10px}.kb-moving-badge{white-space:nowrap;align-items:center;gap:4px;display:inline-flex}.kb-moving-badge svg{fill:currentColor;flex:none}.kb-work-title{font-family:var(--kb-font-body);font-size:var(--kb-fs-body);white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden}.kb-work-foot{justify-content:space-between;align-items:center;gap:var(--kb-space-2);min-width:0;display:flex}.kb-work-meta{color:var(--kb-text-subtle);font-family:var(--kb-font-body);font-size:var(--kb-fs-sm);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}@media (max-width:560px){.kb-work-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}@media (prefers-reduced-motion:reduce){.kb-work-img{transition:none}.kb-work-link:hover .kb-work-img{transform:none}}.toolbar-actions,.empty-actions{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.kb-blocked{align-items:flex-start;gap:var(--kb-space-2);padding:var(--kb-space-3) var(--kb-space-4);border-radius:var(--kb-radius-md);background:var(--kb-surface-2);color:var(--kb-text-muted);font-family:var(--kb-font-body);font-size:var(--kb-fs-body);margin:0;line-height:1.5;display:flex}.kb-blocked-icon{flex:none;width:20px;height:20px;margin-top:2px}.kb-geo-page{z-index:0;pointer-events:none;position:fixed;inset:0;overflow:hidden}.kb-geo-shape{fill:currentColor;stroke:currentColor;position:absolute}.kb-geo-shape.is-circle{width:180px;color:var(--kb-deco-yellow);top:120px;right:-110px}.kb-geo-shape.is-half{width:200px;color:var(--kb-deco-green);bottom:-4px;left:-130px}.kb-geo-shape.is-triangle{width:90px;color:var(--kb-blue);fill:none;top:42%;left:-30px;transform:rotate(-14deg)}.kb-geo-ornament{vertical-align:middle;width:36px;height:18px;margin-left:10px;display:inline-block}.kb-geo-ornament .is-dot{fill:var(--kb-yellow)}.kb-geo-ornament .is-square{fill:var(--kb-accent)}@media (max-width:1279px){.kb-geo-page{display:none}}.project-layout:has(.kb-create){background:var(--kb-bg)}.kb-create{width:100%;color:var(--kb-text);font-family:var(--kb-font-body);position:relative;overflow-x:clip}.kb-create-inner{z-index:1;width:min(var(--kb-content-max), 100%);margin:0 auto;position:relative}.kb-create-head{justify-items:start;gap:var(--kb-space-2);margin-bottom:var(--kb-space-6);display:grid}.kb-create-title{font-size:var(--kb-fs-h1);margin:0;line-height:1.25}.kb-create-grid{gap:var(--kb-space-7);grid-template-columns:minmax(0,1fr) 300px;align-items:start;display:grid}.kb-create-grid>.kb-setup{grid-area:1/2;position:sticky;top:0}.kb-create-main{gap:var(--kb-space-6);grid-area:1/1;min-width:0;display:grid}.kb-picture-main{justify-items:center;gap:var(--kb-space-4);display:grid}.kb-work .public-switch-track,.kb-result .public-switch-track{position:relative}.kb-work .public-switch-track:before,.kb-result .public-switch-track:before{content:"";position:absolute;inset:-9px 0}.kb-card-group{gap:var(--kb-space-3);display:grid}.kb-card-text{gap:var(--kb-space-2);display:grid}.kb-card-text .kb-input{width:100%}.kb-card-text-label{font-size:var(--kb-fs-sm);color:var(--kb-text-muted);font-weight:700}.kb-card-ask{font-size:var(--kb-fs-h2);margin:0;line-height:1.3}.kb-card-hint{color:var(--kb-text-muted);font-size:var(--kb-fs-sm);margin:0}.kb-chat{gap:var(--kb-space-3);padding:var(--kb-space-4);border-radius:var(--kb-radius-lg);background:var(--kb-surface);display:grid}.kb-bubble{gap:var(--kb-space-2);max-width:min(560px,92%);padding:var(--kb-space-3) var(--kb-space-4);border-radius:var(--kb-radius-md);font-size:var(--kb-fs-body);line-height:1.6;display:grid}.kb-bubble p{margin:0}.kb-bubble.is-buddy{background:var(--kb-surface-2);color:var(--kb-text);justify-self:start}.kb-bubble.is-kid{background:var(--kb-accent-strong);color:var(--kb-text-on-accent);justify-self:end}.kb-bubble-who{font-size:var(--kb-fs-sm);font-weight:700}.kb-bubble.is-buddy .kb-bubble-who{color:var(--kb-text-muted)}.kb-bubble.is-kid .kb-btn--ghost{color:var(--kb-text-on-accent)}.kb-compose{align-items:flex-end;gap:var(--kb-space-2);border:1px solid var(--kb-line);border-radius:var(--kb-radius-lg);background:var(--kb-surface);box-shadow:var(--kb-shadow-1);padding:6px;display:flex}.kb-compose .kb-input{border-color:#0000;max-height:168px}.kb-compose .speech-button-wrap{flex:none}@media (max-width:899px){.kb-create-grid{gap:var(--kb-space-6);grid-template-columns:minmax(0,1fr)}.kb-create-grid>.kb-setup{grid-area:1/1;position:static}.kb-create-main,.kb-create-grid.has-work>.kb-setup{grid-row:2}.kb-create-grid.has-work>.kb-create-main{grid-row:1}}@media (max-width:760px){.project-main:has(.kb-create){padding-left:var(--kb-space-4);padding-right:var(--kb-space-4)}}.kb-geo-frame{isolation:isolate;min-width:0;position:relative}.kb-geo-frame-media{z-index:1;border-radius:var(--kb-radius-lg);background:var(--kb-surface-2);box-shadow:var(--kb-shadow-1);position:relative;overflow:hidden}.kb-geo-frame .kb-geo-frame-circle{z-index:0;width:150px;color:var(--kb-deco-yellow);top:-22px;right:-22px}.kb-geo-frame .kb-geo-frame-half{z-index:2;width:64px;color:var(--kb-accent);bottom:-14px;left:-14px}.kb-geo-frame .kb-geo-frame-triangle{z-index:2;width:28px;color:var(--kb-blue);fill:none;top:-12px;right:18px;transform:rotate(12deg)}@media (max-width:560px){.kb-geo-frame .kb-geo-frame-circle{width:96px;top:-14px;right:-14px}}.kb-home{background:var(--kb-bg);min-height:100dvh;color:var(--kb-text);font-family:var(--kb-font-body);position:relative;overflow-x:clip}.kb-home>.home-bar{padding:14px 0;position:sticky}.kb-home>.home-bar .home-wrap{flex-direction:row;align-items:center}.kb-home-inner{z-index:1;gap:var(--kb-space-8);width:min(var(--kb-content-max), calc(100% - 48px));padding:var(--kb-space-6) 0 var(--kb-space-10);margin:0 auto;display:grid;position:relative}.kb-home-hero{gap:var(--kb-space-8);grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:center;display:grid}.kb-home-hero-image{aspect-ratio:16/9;object-fit:cover;width:100%;display:block}.kb-home-ask{gap:var(--kb-space-4);min-width:0;display:grid}.kb-home-title{font-size:var(--kb-fs-display);margin:0;line-height:1.2}.kb-home-lead{color:var(--kb-text-muted);font-size:var(--kb-fs-body-lg);margin:0;line-height:1.6}.kb-ask{align-items:center;gap:var(--kb-space-2);border:2px solid var(--kb-line-strong);border-radius:var(--kb-radius-full);background:var(--kb-surface);max-width:560px;min-height:58px;box-shadow:var(--kb-shadow-1);transition:border-color var(--kb-dur-base) var(--kb-ease-std);padding:6px 6px 6px 18px;display:flex}.kb-ask:focus-within{border-color:var(--kb-accent)}.kb-ask-input{min-width:0;min-height:44px;color:var(--kb-text);font-family:var(--kb-font-body);font-size:var(--kb-fs-body-lg);background:0 0;border:0;outline:none;flex:1;padding:0}.kb-ask-input::placeholder{color:var(--kb-text-subtle)}.kb-ask .speech-button-wrap{flex:none}.kb-ask .kb-btn--icon{width:46px;min-width:46px;height:46px}.kb-home-status{color:var(--kb-text-muted);font-size:var(--kb-fs-body);margin:0}.kb-route{gap:var(--kb-space-3);max-width:560px;display:grid}.kb-route-cards{gap:var(--kb-space-3);grid-template-columns:repeat(auto-fit,minmax(180px,1fr));display:grid}.kb-route-card{column-gap:var(--kb-space-3);min-height:80px;padding:var(--kb-space-2);border:2px solid var(--kb-line);border-radius:var(--kb-radius-md);background:var(--kb-surface);box-shadow:var(--kb-shadow-1);color:var(--kb-text);font-family:var(--kb-font-body);text-align:left;cursor:pointer;transition:border-color var(--kb-dur-base) var(--kb-ease-std);grid-template-rows:auto auto;grid-template-columns:64px minmax(0,1fr);align-items:center;display:grid}.kb-route-card:hover:not(:disabled){border-color:var(--kb-accent)}.kb-route-card:disabled{cursor:not-allowed}.kb-route-image{border-radius:var(--kb-radius-sm);object-fit:cover;grid-row:1/3;width:64px;height:64px}.kb-route-name{font-size:var(--kb-fs-h3);font-weight:700;line-height:1.35}.kb-route-go{align-items:center;gap:var(--kb-space-1);color:var(--kb-accent-strong);font-size:var(--kb-fs-sm);font-weight:700;display:inline-flex}.kb-route-go svg{width:16px;height:16px}.kb-home-h2{margin:0 0 var(--kb-space-4);font-size:var(--kb-fs-h2);line-height:1.3}.kb-tiles,.kb-studio-grid{gap:var(--kb-space-4);grid-template-columns:repeat(5,minmax(0,1fr));margin:0;padding:0;list-style:none;display:grid}.kb-tile,.kb-studio-card{gap:var(--kb-space-1);min-width:0;color:var(--kb-text);cursor:pointer;text-decoration:none;display:grid}.kb-tile-image{aspect-ratio:1;margin-bottom:var(--kb-space-1);border:1px solid var(--kb-line);border-radius:var(--kb-radius-img);background:var(--kb-surface-2);display:block;overflow:hidden}.kb-tile-img{object-fit:cover;width:100%;height:100%;transition:transform var(--kb-dur-slow) var(--kb-ease-out);display:block}.kb-tile:hover .kb-tile-img,.kb-studio-card:hover .kb-tile-img{transform:scale(1.04)}.kb-tile-name{font-size:var(--kb-fs-body);white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden}.kb-tile-hint{color:var(--kb-text-subtle);font-size:var(--kb-fs-sm)}.kb-tile:focus-visible,.kb-studio-card:focus-visible,.kb-route-card:focus-visible{outline:3px solid var(--kb-yellow);outline-offset:2px;border-radius:var(--kb-radius-img)}.kb-studio-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}.kb-studio-card .kb-tile-image{aspect-ratio:3/4;position:relative}.kb-routed-wrap{gap:var(--kb-space-3);display:grid}.kb-routed{align-items:center;gap:var(--kb-space-2) var(--kb-space-3);color:var(--kb-accent-strong);font-family:var(--kb-font-body);font-size:var(--kb-fs-sm);flex-wrap:wrap;margin:0;font-weight:700;display:flex}@media (max-width:899px){.kb-home-hero{gap:var(--kb-space-6);grid-template-columns:minmax(0,1fr)}.kb-home-hero-image{aspect-ratio:21/9}.kb-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:560px){.kb-home-inner{width:calc(100% - 32px);padding-top:var(--kb-space-4)}.kb-ask{padding-left:var(--kb-space-4)}.kb-ask-input{font-size:var(--kb-fs-body)}.kb-tiles{gap:var(--kb-space-3);grid-template-columns:repeat(2,minmax(0,1fr))}.kb-tiles>li:first-child{grid-column:span 2}.kb-tiles>li:first-child .kb-tile-image{aspect-ratio:16/9}.kb-studio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (prefers-reduced-motion:reduce){.kb-ask,.kb-route-card,.kb-tile-img{transition:none}.kb-tile:hover .kb-tile-img,.kb-studio-card:hover .kb-tile-img{transform:none}}.companion-card .companion-trait,.companion-card .companion-quote{-webkit-line-clamp:2;overflow-wrap:anywhere;-webkit-box-orient:vertical;margin-top:0;padding-top:0;font-size:14px;font-weight:600;line-height:1.4;display:-webkit-box;overflow:hidden}.companion-card .companion-trait{color:var(--text-muted)}.companion-card .companion-quote{color:var(--text-ink)}.companion-draw{z-index:1;margin-top:10px;padding:8px 14px;font-size:15px;position:relative}@media (max-width:390px){.companion-card .companion-trait,.companion-card .companion-quote,.companion-draw{font-size:14px}.companion-draw{padding:8px 12px}}.kb-greeting-card{gap:var(--kb-space-3);max-width:460px;padding:var(--kb-space-4);border:1px solid var(--kb-line);border-radius:var(--kb-radius-md);background:var(--kb-surface);box-shadow:var(--kb-shadow-1);display:grid}.kb-greeting-media{aspect-ratio:4/3;border-radius:calc(var(--kb-radius-md) - 4px);background:var(--kb-surface-2);overflow:hidden}.kb-greeting-img{object-fit:cover;width:100%;height:100%;display:block}.kb-greeting-body{gap:var(--kb-space-2);padding:0 var(--kb-space-2);display:grid}.kb-greeting-to{color:var(--kb-text-muted);font-size:var(--kb-fs-body);margin:0;font-weight:600}.kb-greeting-message{color:var(--kb-text);font-size:var(--kb-fs-body-lg);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-weight:700;line-height:1.5}.kb-greeting-from{color:var(--kb-text-muted);text-align:end;margin:0}.kb-greeting-actions{align-items:center;gap:var(--kb-space-2);flex-wrap:wrap;display:flex}.account-menu{position:relative}.account-avatar{background:var(--bg-soft);width:42px;height:42px;color:var(--text-ink);font:inherit;cursor:pointer;box-shadow:0 0 0 3px var(--bg-surface), 0 6px 16px #3b24161f;border:0;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;font-size:16px;font-weight:700;line-height:1;transition:transform .18s;display:inline-flex}.account-avatar:hover{transform:translateY(-2px)}.account-avatar:focus-visible{outline:3px solid var(--bg-brand);outline-offset:3px}.account-avatar svg{width:20px;height:20px}.account-avatar.is-static{cursor:default;box-shadow:none;transform:none}.account-avatar.is-large{width:72px;height:72px;box-shadow:none;cursor:default;font-size:30px;transform:none}.account-avatar.is-large svg{width:32px;height:32px}.account-menu-scrim{display:none}.account-menu-panel{z-index:30;background:var(--bg-surface);width:280px;color:var(--text-ink);border-radius:24px;flex-direction:column;gap:2px;padding:10px;display:flex;position:absolute;top:calc(100% + 10px);right:0;box-shadow:0 18px 40px #3b241629}.account-menu-who{border-bottom:1px solid var(--bg-side);align-items:center;gap:12px;margin-bottom:4px;padding:10px 10px 14px;display:flex}.account-menu-who>div{flex-direction:column;min-width:0;display:flex}.account-menu-who small{color:var(--text-muted);font-size:13px}.account-menu-who strong{text-overflow:ellipsis;white-space:nowrap;font-size:15px;overflow:hidden}.account-menu-item{min-height:46px;color:var(--text-ink);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:999px;align-items:center;gap:12px;padding:0 14px;font-size:15px;font-weight:600;display:flex}.account-menu-item svg{flex-shrink:0;width:20px;height:20px}.account-menu-item:hover,.account-menu-item:focus-visible{background:var(--bg-page);outline:none}.account-menu-item.is-danger{color:var(--text-danger)}.account-menu-item.is-danger:hover,.account-menu-item.is-danger:focus-visible{background:var(--bg-danger-soft)}.account-menu-item.is-nav{display:none}@media (max-width:640px){.home-bar-actions>.home-nav-link{display:none}.account-avatar{width:44px;height:44px}.account-menu-scrim{z-index:40;background:#2b1b105c;display:block;position:fixed;inset:0}.account-menu-panel{z-index:41;width:auto;padding:18px 16px calc(24px + env(safe-area-inset-bottom));border-radius:32px 32px 0 0;position:fixed;inset:auto 0 0;box-shadow:0 -12px 40px #2b1b1033}.account-menu-item{min-height:52px;font-size:16px}.account-menu-item.is-nav{display:flex}}.account-screen{flex-direction:column;gap:20px;width:min(720px,100% - 32px);margin:0 auto;padding:24px 0 64px;display:flex}.account-screen>h1{letter-spacing:-.01em;margin:0 0 4px;font-size:32px}.account-card{background:var(--bg-surface);border-radius:28px;flex-direction:column;gap:14px;padding:28px;display:flex;box-shadow:0 6px 16px #3b24160d}.account-card h2{margin:0;font-size:18px}.account-card p{color:var(--text-muted);margin:0;font-size:14px;line-height:1.6}.account-who{flex-flow:wrap;align-items:center;gap:20px}.account-who>div{flex-direction:column;flex:220px;gap:4px;min-width:0;display:flex}.account-who h2{overflow-wrap:anywhere;font-size:20px}.account-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.account-stat{background:var(--bg-page);color:var(--text-ink);font:inherit;text-align:left;border:0;border-radius:22px;flex-direction:column;gap:4px;padding:18px 20px;display:flex}button.account-stat{cursor:pointer}button.account-stat:hover,button.account-stat:focus-visible{background:var(--bg-soft);outline:none}.account-stat strong{font-size:28px;line-height:1.2}.account-stat span{color:var(--text-muted);font-size:14px}.account-langs{flex-wrap:wrap;gap:8px;display:flex}.account-langs button{background:var(--bg-soft);color:var(--text-ink);font:inherit;cursor:pointer;border:0;border-radius:999px;padding:10px 20px;font-weight:700}.account-langs button[aria-pressed=true]{background:var(--text-ink);color:var(--bg-surface);cursor:default}.account-langs button:focus-visible,.account-out-btn:focus-visible,.sign-out-confirm-ok:focus-visible{outline:3px solid var(--bg-brand);outline-offset:2px}.account-out{flex-flow:wrap;justify-content:space-between;align-items:center;gap:16px}.account-out>div{flex-direction:column;flex:260px;gap:4px;display:flex}.account-out-btn{background:var(--bg-danger-soft);color:var(--text-danger);font:inherit;cursor:pointer;border:0;border-radius:999px;align-items:center;gap:8px;padding:12px 22px;font-weight:700;display:inline-flex}.account-out-btn svg{width:18px;height:18px}@media (max-width:640px){.account-screen>h1{font-size:26px}.account-card{padding:22px 18px}.account-stats{gap:8px}.account-stat{padding:14px 12px}.account-stat strong{font-size:22px}.account-stat span{font-size:12px}}.sign-out-confirm h2{margin:0;font-size:1.05rem;line-height:1.35}.sign-out-confirm-ok{background:var(--text-danger);color:var(--text-on-brand)}@media (prefers-reduced-motion:reduce){.account-avatar{transition:none}.account-avatar:hover{transform:none}}
