:root{--paper:#f6f4f0;--ink:#292530;--muted:#736c7c;--purple:#7245d8;--purple-dark:#6033c3;--lavender:#eee7fc;--mint:#d4efe4;--lemon:#f4ef91;--line:#e7e2eb;--white:#fff;--ease:cubic-bezier(.22,.8,.2,1);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"PingFang SC","Microsoft YaHei UI","Microsoft YaHei","Noto Sans CJK SC",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.6;overflow-x:clip}button,input,textarea,select{font:inherit}button{border:0;cursor:pointer;color:inherit;background:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default;opacity:.67}button,a,summary{touch-action:manipulation}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #8a59e5;outline-offset:4px}#main:focus{outline:none}h1,h2,h3,p,blockquote{margin:0}h1,h2,h3{font-weight:700;line-height:1.3}svg{display:block}.icon{height:21px;width:21px;flex-shrink:0}.wrap{width:min(1120px,calc(100% - 80px));margin:0 auto}.sr-only,.skip:not(:focus){position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}.skip:focus{position:fixed;left:12px;top:10px;z-index:100;background:white;padding:14px;border-radius:10px}.muted{color:var(--muted)}small{font-size:12px}.topbar{height:94px}.top-row{height:100%;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:11px;padding:5px 0;min-height:44px}.brand strong{font-size:20px;letter-spacing:.08em}.brand-symbol{width:38px;height:38px;background:var(--ink);color:var(--lemon);border-radius:13px;display:grid;place-items:center;transform:rotate(-7deg)}.brand-symbol .icon{transform:rotate(7deg);height:24px;width:24px}.top-actions{display:flex;align-items:center;gap:14px}.demo-label{font-size:12px;display:flex;gap:8px;align-items:center;padding:6px 12px;min-height:36px;border:1px solid #e4dee9;border-radius:30px;color:#5f556e;background:#ffffff65}.demo-label span{color:#716879}.round-btn{width:42px;height:42px;border-radius:50%;background:#fff;display:inline-grid;place-items:center;font-size:18px;font-weight:600;border:1px solid #e8e2eb;flex-shrink:0;transition:transform .18s var(--ease),background .18s}.round-btn:hover{background:#eee7fc;transform:translateY(-2px)}.round-btn.mini{height:36px;width:36px;border:0}.round-btn.mini .icon{width:16px;height:16px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:12px 21px;border-radius:16px;font-size:14px;font-weight:600;line-height:1.5;transition:transform .2s var(--ease),box-shadow .2s,background .2s;white-space:nowrap}.btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 5px 12px #39234412}.btn:active:not(:disabled){transform:translateY(0) scale(.98)}.btn.dark{background:var(--ink);color:white}.btn.dark:hover{background:#3e354d}.btn.purple{background:var(--purple);color:white}.btn.white{background:white;border:1px solid #e5e0e9}.btn.full{width:100%}.btn.compact{min-height:44px;padding:10px 15px;border-radius:13px;font-size:13px}.btn.danger{color:#9f3434;background:#fff0ee;white-space:normal}.text-btn{display:inline-flex;gap:7px;align-items:center;min-height:44px;padding:6px 0;font-size:13px;color:#665875;text-align:left}.text-btn:hover{color:var(--purple)}.text-btn .icon{width:17px;height:17px}.footer{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#79737e;font-size:11px;padding:30px 0 112px}.footer button{display:inline-flex;gap:7px;align-items:center;padding:8px 0;color:inherit;text-align:right;font-size:11px}.footer .icon{width:14px;height:14px}.dock{position:fixed;z-index:30;left:50%;bottom:max(22px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;gap:5px;background:rgba(43,39,48,.93);color:#eae4f1;padding:7px;border-radius:50px;box-shadow:0 8px 32px #30283924,inset 0 1px #ffffff24;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}.dock button{position:relative;min-height:48px;min-width:100px;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border-radius:28px;font-size:13px;transition:background .2s,color .2s}.dock button.active{background:#f8f5fa;color:var(--ink)}.dock button:not(.active):hover{background:#ffffff17}.dock-count{font-size:10px;font-style:normal;display:grid;place-items:center;min-width:15px;height:15px;border-radius:50%;background:var(--lemon);color:var(--ink);position:absolute;top:3px;right:8px}.dock .icon{width:19px;height:19px}.eyebrow{font-size:12px;letter-spacing:.08em;display:flex;align-items:center;gap:9px}.tiny-star{font-size:18px;color:var(--purple)}.main-home{min-height:calc(100svh - 258px);display:flex;align-items:center}.home-grid{width:100%;display:grid;grid-template-columns:.84fr 1.16fr;gap:64px;align-items:center;padding:22px 0 12px}.home-copy{padding:8px 0 32px 18px}.home-copy .eyebrow{margin-bottom:28px;color:#786681}.home-copy h1{font-size:76px;line-height:1.23;letter-spacing:-3px;font-weight:750}.underlined{position:relative}.underlined:after{content:"";position:absolute;height:9px;left:2px;right:4px;bottom:-5px;background:var(--lemon);border-radius:50%;transform:rotate(-4deg);z-index:-1}.home-copy p{font-size:19px;line-height:1.8;color:#83778b;margin-top:26px;letter-spacing:.04em}.home-help{margin-top:37px;border-bottom:1px solid #d7cddd;padding-bottom:6px;font-size:13px}.entry-deck{position:relative;padding:13px 5px 8px;max-width:590px}.entry-card{display:block;position:relative;text-align:left;width:100%;border-radius:34px;transition:transform .35s var(--ease),box-shadow .3s;isolation:isolate}.entry-card:hover{transform:translateY(-5px) rotate(0);box-shadow:0 16px 35px #4e38611a}.entry-card:active{transform:translateY(-1px) scale(.988)}.sample-entry{background:#7848da;color:white;padding:29px 35px 30px;min-height:314px;z-index:2;transform:rotate(-2deg);box-shadow:0 6px 0 #673cc319,inset 0 1px #ffffff20}.entry-kicker{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:500;color:inherit;position:relative;z-index:3;opacity:.94}.entry-dot{width:5px;height:5px;background:#efe29c;border-radius:50%}.entry-card strong{display:block;font-size:36px;font-weight:700;line-height:1.23;margin-top:18px;letter-spacing:-.02em;position:relative;z-index:3}.entry-desc{display:block;font-size:13px;margin-top:12px;position:relative;z-index:3}.sample-entry .entry-desc{color:#f1eafa}.entry-go{display:inline-flex;gap:21px;align-items:center;padding:11px 18px;background:white;color:#503177;border-radius:30px;font-size:13px;font-weight:650;margin-top:26px;position:relative;z-index:3}.entry-go .icon{width:18px;height:18px}.real-entry{width:91%;margin:14px 0 0 auto;background:var(--lemon);color:#39302d;transform:rotate(1.5deg);min-height:177px;padding:27px 30px;z-index:3}.real-entry strong{font-size:26px;margin-top:10px;padding-right:66px}.real-entry .entry-desc{margin-top:8px;max-width:76%;color:#605846;overflow-wrap:anywhere}.entry-arrow{position:absolute;right:23px;bottom:25px;width:42px;height:42px;border-radius:50%;background:#fffde7;display:grid;place-items:center;z-index:4}.entry-arrow .icon{width:19px;height:19px}.decor-star{position:absolute;right:30px;top:26px;color:#d7b8ff;font-size:34px;transform:rotate(13deg)}.orbit{position:absolute;right:21px;top:120px;width:217px;height:65px;transform:rotate(-32deg);border:1px solid #b797ee70;border-radius:50%;z-index:0}
/* Original CSS-only key companion: no copied character art or downloadable fonts. */
.buddy{--body:#bf98f4;--face:#fcf7ff;display:inline-block;position:relative;width:130px;height:174px;pointer-events:none;flex-shrink:0}.buddy-body{position:absolute;width:112px;height:115px;left:7px;top:9px;background:var(--body);border-radius:47% 49% 45% 48%;box-shadow:inset 8px 10px 16px #ffffff24,inset -7px -9px 15px #59349023;z-index:2;transform:rotate(-7deg)}.buddy .eye{position:absolute;width:7px;height:14px;top:40px;border-radius:9px;background:var(--face)}.buddy .eye.one{left:35px}.buddy .eye.two{left:67px}.buddy .smile{position:absolute;left:34px;top:62px;width:40px;height:20px;border:4px solid var(--face);border-top:0;border-radius:0 0 30px 30px;transform:rotate(6deg)}.buddy-stem{position:absolute;left:45px;top:94px;width:32px;height:70px;background:var(--body);border-radius:0 0 11px 11px;transform:rotate(15deg);box-shadow:inset -5px -5px 8px #59349016}.buddy-stem:before,.buddy-stem:after{content:"";position:absolute;right:-19px;width:22px;height:16px;background:var(--body);border-radius:4px}.buddy-stem:before{top:20px}.buddy-stem:after{top:45px}.buddy-crown{position:absolute;right:2px;top:-5px;width:13px;height:36px;background:var(--body);border-radius:9px;transform:rotate(30deg);z-index:0}.buddy-crown:after{content:"";position:absolute;right:-15px;top:14px;width:11px;height:26px;background:var(--body);border-radius:9px;transform:rotate(33deg)}.buddy.lime{--body:#b5c961;--face:#fbffe6}.buddy.mint{--body:#5ea896;--face:#effff7}.entry-buddy{position:absolute;right:37px;top:61px;transform:rotate(13deg) scale(1.3);z-index:1;animation:hello 5s ease-in-out infinite}.small-buddy{position:absolute;right:60px;top:-45px;transform:rotate(23deg) scale(.64);transform-origin:center;z-index:1}.avatar{width:34px;height:34px;margin-right:8px}.avatar .buddy-body{width:31px;height:31px;left:0;top:0;border-radius:12px;box-shadow:none;transform:rotate(-9deg)}.avatar .buddy-stem,.avatar .buddy-crown{display:none}.avatar .eye{width:2px;height:5px;top:8px}.avatar .eye.one{left:10px}.avatar .eye.two{left:20px}.avatar .smile{width:14px;height:7px;left:9px;top:17px;border-width:2px}.case-page,.list-page,.game-page{padding-top:18px;min-height:calc(100svh - 250px)}.case-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.case-meta{display:flex;align-items:center;gap:12px;margin-bottom:13px;min-width:0}.pill{font-size:11px;font-weight:550;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;border-radius:30px;padding:5px 10px;background:#fff9;line-height:1.5}.pill.lavender{background:#e9dff6;color:#674094}.pill.mint{background:#ddf0e6;color:#326554}.pill.neutral{background:#efedf0;color:#625b69}.pill.peach{background:#f8e8d5;color:#865f34}.case-name{font-size:12px;color:var(--muted);display:inline-flex;gap:4px;align-items:center;max-width:330px;overflow-wrap:anywhere;text-align:left;min-height:28px}.case-name .icon{width:12px;height:12px}.case-top h1{font-size:37px;letter-spacing:-1px}.page-sub{font-size:14px;margin-top:9px;color:var(--muted)}.object-tabs{display:inline-flex;padding:5px;gap:5px;border-radius:20px;background:#eeebef;margin-bottom:25px}.object-tabs button{display:inline-flex;align-items:center;gap:9px;padding:9px 25px;min-height:43px;border-radius:15px;font-size:14px;color:#7a6d85;transition:background .2s,box-shadow .2s}.object-tabs button.active{background:white;color:var(--purple);box-shadow:0 2px 9px #40304709;font-weight:650}.object-tabs .icon{width:19px;height:19px}.investigation{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);gap:34px;align-items:start}.material-column,.decision-column{min-width:0}.material-stage{position:relative;border-radius:30px;background:#eae3f4;overflow:hidden;min-width:0}.material-stage.ac{background:#ddefe7}.material-stage.wall{background:#f0e6d9}.material-top{padding:19px 23px 3px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#6e607f;font-size:11px;letter-spacing:.02em;position:relative;z-index:1}.glass-pill{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:36px;font-size:11px;background:#ffffff9c;border:1px solid #ffffff80;padding:6px 11px;border-radius:30px;color:#5b4777;white-space:nowrap}.glass-pill .icon{width:14px;height:14px}.glass-pill.static{pointer-events:none}.scene{position:relative;min-height:260px;display:flex;align-items:center;justify-content:center}.scene>svg{width:100%;height:auto;display:block}.material-stage .scene>svg{mix-blend-mode:multiply}.material-bottom{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:11px 22px 15px;color:#6d5f7d;font-size:11px}.material-bottom button{display:inline-flex;align-items:center;gap:6px;font-size:11px;min-height:32px;padding:0;white-space:nowrap}.material-bottom .icon{width:14px;height:14px}.preview-photo{width:100%;padding:12px 20px;height:290px}.preview-photo img{width:100%;height:100%;object-fit:contain;border-radius:14px}.empty-upload{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;width:100%;min-height:290px;padding:25px}.empty-upload>.icon{width:38px;height:38px;color:#9a80b9;margin-bottom:7px}.empty-upload strong{font-size:18px;color:#6d577d}.empty-upload span{font-size:12px;color:#807187}.play-invite{display:flex;align-items:center;text-align:left;gap:14px;background:#322838;color:white;border-radius:23px;width:100%;margin-top:16px;padding:20px;transition:transform .2s,background .2s}.play-invite:hover{background:#44314f;transform:translateY(-2px)}.play-symbol{color:#eee388;display:grid;place-items:center;height:46px;width:46px;border:1px solid #7a678666;border-radius:16px}.play-symbol .icon{width:22px;height:22px}.play-invite strong{display:block;font-size:16px;font-weight:600}.play-invite small{display:block;margin-top:3px;color:#cabed2;font-size:11px}.play-arrow{margin-left:auto;background:var(--lemon);color:#342a39;width:38px;height:38px;border-radius:50%;display:grid;place-items:center}.play-arrow .icon{width:18px;height:18px}.guide-bubble{position:relative;background:white;border-radius:27px 27px 27px 9px;padding:24px 28px;box-shadow:0 5px 25px #5b436005}.guide-bubble:before{content:"";position:absolute;width:18px;height:18px;background:white;left:-8px;top:41px;transform:rotate(45deg);border-radius:3px}.assistant-name{display:flex;align-items:center;color:#6c587a;font-size:12px;gap:0}.assistant-type{font-size:10px;color:#83788e;margin-left:8px;display:inline-block;border:1px solid #eae4ef;border-radius:20px;padding:2px 7px}.guide-bubble h2{font-size:25px;line-height:1.4;margin-top:16px;letter-spacing:-.03em}.guide-bubble>p{font-size:13px;line-height:1.8;color:#7b6d87;margin-top:11px}.reveal{margin-top:14px;font-size:13px}.reveal summary{list-style:none;display:flex;align-items:center;justify-content:space-between;cursor:pointer;gap:8px;min-height:38px;color:#765597;font-size:12px}.reveal summary::-webkit-details-marker{display:none}.reveal summary .icon{width:15px;height:15px;transition:transform .2s}.reveal[open] summary .icon{transform:rotate(45deg)}.reveal p{color:#6e617a;font-size:13px;line-height:1.8;padding:8px 0}.reveal small{display:block;font-size:11px;color:#867a8d}.actions-panel{margin-top:25px;padding:0 6px}.section-caption{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}.section-caption h3{font-size:14px;font-weight:600}.section-caption>span{font-size:10px;color:#8a7d95}.action-options{display:grid;gap:6px}.action-row{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:52px;padding:6px 9px 6px 15px;border-radius:16px;background:#f0ecf4;transition:background .2s}.action-row>span{font-size:13px;line-height:1.6}.action-row.selected{background:#e7deef}.action-add{height:36px;width:36px;border-radius:50%;background:#fff;display:grid;place-items:center;color:#8a739e;flex-shrink:0}.action-add .icon{width:17px;height:17px}.selected .action-add{color:white;background:#7950ab}.quiet-status{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:25px;padding:4px 0;font-size:11px;color:#7d7188}.list-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.85fr);gap:30px;align-items:start;margin-top:35px}.checklist-panel{background:white;border-radius:28px;padding:25px}.checklist-panel h2{font-size:18px}.checklist-panel .section-caption>span{font-size:11px}.summary-items{margin-top:21px}.summary-item{border-radius:20px;background:#f6f3f9;margin-bottom:12px;overflow:hidden}.summary-item.ac{background:#f0f6f3}.summary-item.wall{background:#f8f4ef}.summary-item>summary{display:flex;align-items:center;gap:10px;list-style:none;min-height:75px;padding:13px 16px;cursor:pointer}.summary-item>summary::-webkit-details-marker{display:none}.summary-item>summary strong{font-size:15px}.summary-item>summary>.icon{width:14px;height:14px;color:#958b9c}.summary-item[open]>summary>.icon{transform:rotate(90deg)}.object-icon{height:36px;width:36px;display:grid;place-items:center;color:#806a94;background:#e8dff2;border-radius:12px}.ac .object-icon{background:#e0eee5;color:#6c8978}.wall .object-icon{background:#eee5d8;color:#947f65}.object-icon .icon{width:20px;height:20px}.summary-count{font-size:11px;color:#8b7f91;margin-left:auto;white-space:nowrap}.summary-detail{padding:0 15px 10px}.todo-row{padding:9px 0;display:flex;align-items:center;gap:10px;font-size:12px;min-height:46px;border-top:1px solid #e8e1eb}.todo-row>.icon{height:15px;width:15px;color:#97829e}.todo-row>span{flex:1;min-width:0}.todo-row .round-btn{background:#ffffff8f}.record-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:5px}.record-actions .text-btn{font-size:11px}.empty-line{font-size:12px;color:#847888;padding:6px 0 12px}.record-note{font-size:12px;line-height:1.8;background:#ffffff90;padding:12px;border-radius:11px;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.message-card{position:relative;border-radius:28px;background:#d8ede2;padding:25px 28px;overflow:hidden;min-height:300px}.message-card>.eyebrow{font-size:11px;color:#4d7665;letter-spacing:0;position:relative;z-index:2}.message-card h2{font-size:25px;line-height:1.4;position:relative;z-index:2;margin-top:48px;margin-bottom:24px;letter-spacing:-.03em}.message-card>.btn{position:relative;z-index:3}.message-card>p{font-size:10px;color:#547a69;margin-top:13px;text-align:center}.message-buddy{position:absolute;right:12px;top:13px;transform:rotate(18deg) scale(.85);opacity:.9}.export-link{width:100%;display:flex;align-items:center;gap:9px;background:white;padding:18px;border-radius:18px;font-size:13px;margin-top:15px;min-height:64px}.export-link>.icon{color:#92849b;width:18px;height:18px}.export-link>span{display:flex;align-items:center;gap:6px;font-size:11px;margin-left:auto;color:#93879d}.export-link>span .icon{height:15px;width:15px}.game-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.game-heading{margin:12px 0 30px}.game-heading h1{font-size:42px;letter-spacing:-1px}.game-heading p{font-size:14px;color:#8a7a94;margin-top:9px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:38px;align-items:start}.game-layout>div{min-width:0}.game-prompt{padding:8px 8px 0}.game-prompt h2{font-size:24px;line-height:1.6;margin:20px 0 24px;letter-spacing:-.02em}.game-choices{display:grid;gap:12px}.choice{display:flex;align-items:center;gap:15px;min-height:74px;border:1px solid #e5dde9;background:white;border-radius:21px;padding:15px 20px;text-align:left;font-size:14px;transition:transform .2s var(--ease),background .2s}.choice:hover{transform:translateX(4px);background:#eee5fa;border-color:#ddcdef}.choice-key{height:34px;width:34px;display:grid;place-items:center;background:#eee7fa;color:#795d9c;border-radius:12px;font-size:13px;font-weight:700}.choice>.icon{margin-left:auto;width:17px;height:17px;color:#9986a8}.visited-line{display:flex;align-items:center;justify-content:space-between;padding:18px 10px;color:#8a7b97;font-size:11px}.visited-dots{display:flex;gap:6px}.visited-dots i{height:6px;width:24px;border-radius:8px;background:#e4dce9}.visited-dots i.filled{background:#8e63c5}.feedback{background:#e8dbfa;border-radius:28px;padding:25px 27px 22px;position:relative;isolation:isolate;animation:pop .25s var(--ease)}.feedback-top{display:flex;align-items:center;justify-content:space-between;min-height:38px}.feedback-top .pill{color:#644080}.feedback-buddy{position:absolute;right:12px;top:-10px;transform:scale(.46) rotate(15deg);transform-origin:top right}.feedback h2{font-size:26px;line-height:1.5;margin-top:21px;max-width:95%;letter-spacing:-.035em}.feedback>p{font-size:13px;line-height:1.8;color:#776080;margin-top:10px}.feedback blockquote{font-size:14px;line-height:1.9;padding:17px 18px;background:#f8f3ff;border-radius:17px 17px 17px 4px;margin-top:20px;color:#715582}.feedback .reveal{margin:10px 0 12px}.feedback .feedback-note{font-size:10px;margin-top:10px;color:#7b668c}.feedback-actions{display:flex;gap:12px;justify-content:space-between;margin-top:15px}.feedback-actions .btn{flex:1}.game-bottom{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#8a7f91;margin-top:15px}
/* Native dialogs: a single task per surface, keyboard focus contained by the browser. */
dialog{border:0;background:white;color:var(--ink);padding:0;width:min(500px,calc(100vw - 32px));max-height:calc(100svh - 56px);border-radius:30px;box-shadow:0 20px 100px #33224430;overflow-x:hidden;overscroll-behavior:contain}dialog[open]{animation:modal-enter .24s var(--ease)}dialog::backdrop{background:#30223845;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.modal-hero{position:relative;background:#ebe0f8;padding:32px 30px 28px;min-height:160px;overflow:hidden}.modal-hero.mint{background:#dbf0e5}.modal-hero h2{font-size:28px;line-height:1.4;max-width:80%;position:relative;z-index:2;letter-spacing:-.03em}.modal-hero>p{font-size:12px;line-height:1.8;color:#786587;margin-top:10px;position:relative;z-index:2;max-width:84%}.modal-hero.mint>p{color:#557766}.modal-close{position:absolute;right:15px;top:15px;z-index:5;background:#ffffffb0;height:32px;width:32px;min-height:32px;min-width:32px;border:0}.modal-close .icon{height:16px;width:16px}.modal-buddy{position:absolute;right:9px;bottom:-39px;transform:scale(.67) rotate(24deg);opacity:.95}.modal-body{padding:25px 30px 29px}.modal-body>p{font-size:14px;line-height:1.9;margin-bottom:12px}.modal-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:23px;margin-bottom:9px}.modal-actions .text-btn{margin-right:auto}.soft-note{font-size:12px;line-height:1.9;color:#7c687f;background:#f5f1f8;border-radius:14px;padding:14px;margin-top:16px}.field{display:block;margin:0 0 16px}.field>span{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:#62566d;font-weight:550;margin-bottom:9px}.field>span small{font-size:11px;color:#917a9d;font-weight:400}.field input,.field textarea,.field select{width:100%;border:1px solid #e6dfeb;background:#fcfafc;color:var(--ink);font-size:14px;padding:12px 14px;border-radius:14px;min-height:46px;line-height:1.8}.field textarea{resize:vertical;min-height:112px}.field textarea.message{min-height:245px;font-size:14px}.date-details{margin:10px 0 18px}.date-details>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:12px;min-height:39px;color:#8b7c97}.date-details>summary::-webkit-details-marker{display:none}.date-details[open] .field{margin-top:7px}.help-row{display:flex;width:100%;align-items:center;justify-content:space-between;text-align:left;padding:12px 0;min-height:54px;font-size:14px}.help-row>span{display:flex;align-items:center;gap:13px}.help-row .icon{width:19px;height:19px;color:#8c739e}.help-details{border-top:1px solid #eee7f2}.help-details summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;min-height:55px;font-size:13px}.help-details summary::-webkit-details-marker{display:none}.help-details summary .icon{width:16px;height:16px;color:#9989a8}.help-details p{font-size:13px;color:#83718e;line-height:1.9;padding:0 0 15px}.help-modal .modal-body{padding-top:14px}.materials-modal{width:min(560px,calc(100vw - 32px))}.materials-modal .modal-hero{min-height:133px;padding-top:27px;padding-bottom:23px}.materials-modal .modal-hero h2{font-size:26px}.materials-content>.btn{margin:15px 0 9px}.materials-content>.muted{display:block;font-size:11px}.materials-content>.field{margin:20px 0 0}.modal-scene{border-radius:17px;overflow:hidden}.modal-scene>svg{width:100%;height:auto;display:block}.photo-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.photo{position:relative;min-width:0}.photo img{display:block;width:100%;height:145px;object-fit:contain;background:#f3edf8;border-radius:14px}.photo>.round-btn{position:absolute;right:6px;top:6px;height:30px;width:30px;background:#fff}.photo>.round-btn>.icon{height:14px;width:14px}.photo>span{font-size:10px;color:#8e7b9b;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-top:4px}.upload-empty{height:125px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;background:#f6f1fa;border-radius:16px;color:#92849e;font-size:12px}.upload-empty>.icon{height:32px;width:32px}.toast{position:fixed;z-index:99;bottom:110px;left:50%;transform:translate(-50%,12px);opacity:0;pointer-events:none;background:#302539ed;color:#fff;width:max-content;max-width:min(560px,calc(100vw - 32px));border-radius:18px;padding:12px 19px;font-size:12px;line-height:1.8;box-shadow:0 7px 28px #26152c26;transition:opacity .18s,transform .18s;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}
/* Onboarding spotlights are transient, skippable, replayable, and not home-page content. */
dialog.tour-dialog{position:fixed;inset:0;margin:0;padding:0;border:0;background:transparent;width:100vw;height:100svh;max-width:none;max-height:none;overflow:hidden;box-shadow:none;border-radius:0;animation:none}dialog.tour-dialog::backdrop{background:transparent;backdrop-filter:none}.tour-highlight{position:absolute;border:2px solid #f7e895;border-radius:28px;box-shadow:0 0 0 9999px #2a203d75;pointer-events:none}.tour-card{position:absolute;border-radius:25px;background:#fffaf2;padding:23px 23px 20px;box-shadow:0 20px 70px #1f122533;animation:pop .22s var(--ease);color:#34263e}.tour-head{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#8c7899;margin-bottom:12px;gap:8px}.tour-head button{display:inline-flex;gap:4px;align-items:center;font-size:10px;min-height:30px;padding:0 0 0 6px}.tour-head .icon{width:12px;height:12px}.tour-card h2{font-size:23px;line-height:1.4;margin-bottom:10px;letter-spacing:-.04em}.tour-card p{font-size:13px;line-height:1.85;color:#85718f}.tour-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.tour-controls .btn{min-height:43px;border-radius:14px;padding:10px 13px;font-size:12px}.tour-controls .btn .icon{width:16px;height:16px}.tour-progress{display:flex;gap:4px;align-items:center}.tour-progress i{height:5px;width:5px;border-radius:5px;background:#e2d3ec}.tour-progress i.active{width:15px;background:#9a78c0}.tour-progress small{font-size:9px;margin-left:5px;color:#ac95b4}.fade{animation:fade-in .3s var(--ease)}@keyframes fade-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes pop{from{opacity:0;transform:translateY(7px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes modal-enter{from{opacity:0;transform:translateY(14px) scale(.975)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes hello{0%,100%{transform:rotate(13deg) scale(1.3) translateY(0)}50%{transform:rotate(18deg) scale(1.3) translateY(-5px)}}
@media(min-width:1450px){.home-grid{gap:90px}.home-copy h1{font-size:88px}.entry-deck{max-width:610px}.sample-entry{min-height:340px}.sample-entry strong{font-size:40px}.entry-buddy{right:45px;top:76px}.home-copy p{font-size:21px}}
@media(max-width:1000px){.wrap{width:calc(100% - 56px)}.home-grid{gap:35px;grid-template-columns:.78fr 1.22fr}.home-copy{padding-left:0}.home-copy h1{font-size:60px;letter-spacing:-2px}.home-copy p{font-size:17px}.sample-entry{padding:26px;min-height:293px}.entry-card strong{font-size:32px}.entry-buddy{right:12px;top:73px;transform:rotate(13deg) scale(1)}.entry-card .orbit{width:180px;right:2px}.real-entry{min-height:170px;padding:24px}.real-entry strong{font-size:24px}.small-buddy{right:43px}.investigation{gap:25px}.material-top{padding-left:17px;padding-right:17px}.scene{min-height:230px}.empty-upload{min-height:230px}.guide-bubble{padding:22px}.guide-bubble h2{font-size:23px}.action-row>span{font-size:12px}.action-row{padding-left:10px}.list-layout{gap:20px;grid-template-columns:1.2fr 1fr}.checklist-panel{padding:20px}.message-card{padding:24px}.message-card h2{font-size:22px}.game-layout{gap:27px}.game-prompt h2{font-size:22px}.choice{font-size:13px;padding:14px}.feedback{padding:23px}.feedback h2{font-size:24px}}
@media(max-width:800px){.wrap{width:calc(100% - 40px);max-width:570px}.topbar{height:78px}.brand strong{font-size:17px}.brand-symbol{height:34px;width:34px;border-radius:11px}.top-actions{gap:9px}.round-btn{width:36px;height:36px}.demo-label{font-size:10px;padding:5px 9px;min-height:32px}.demo-label span{display:none}.home-grid{grid-template-columns:1fr;gap:14px;padding:15px 0 0}.main-home{display:block;min-height:0}.home-copy{padding:3px 4px 9px;position:relative}.home-copy .eyebrow{font-size:11px;margin-bottom:13px}.home-copy h1{font-size:43px;line-height:1.3;letter-spacing:-1.5px}.home-copy h1>br{display:none}.home-copy p{font-size:13px;line-height:1.7;margin-top:12px}.home-copy p>br{display:none}.home-help{font-size:11px;margin-top:10px;min-height:32px}.entry-deck{max-width:none;padding:15px 4px 10px}.sample-entry{min-height:244px;padding:24px 26px;border-radius:29px;transform:rotate(-1.7deg)}.entry-card strong{font-size:30px;line-height:1.23;margin-top:12px}.entry-kicker{font-size:10px}.entry-desc{font-size:12px;margin-top:10px}.entry-go{font-size:12px;padding:9px 15px;margin-top:17px;gap:20px}.entry-go .icon{width:16px;height:16px}.entry-buddy{right:27px;top:37px;transform:rotate(13deg) scale(.98);animation:none}.orbit{width:186px;height:58px;top:93px;right:4px}.decor-star{font-size:27px;right:23px;top:19px}.real-entry{width:94%;min-height:148px;margin-top:14px;border-radius:27px;padding:22px 23px;transform:rotate(1.4deg)}.real-entry strong{font-size:22px;margin-top:11px}.real-entry .entry-desc{font-size:11px;margin-top:9px;max-width:77%}.entry-arrow{height:35px;width:35px;right:20px;bottom:22px}.small-buddy{right:40px;top:-49px;transform:rotate(23deg) scale(.54)}.footer{padding:21px 0 111px;font-size:10px;align-items:flex-start}.footer>span{display:none}.footer button{font-size:10px;text-align:left;padding:5px 0}.dock{bottom:max(17px,env(safe-area-inset-bottom));padding:6px;gap:3px}.dock button{min-width:92px;min-height:46px;padding:9px 14px;font-size:12px}.dock .icon{width:19px;height:19px}.case-page,.list-page,.game-page{padding-top:12px;min-height:0}.case-top{margin-bottom:21px;align-items:flex-end;gap:10px}.case-meta{flex-wrap:wrap;gap:4px 10px;margin-bottom:11px}.case-name{font-size:10px;max-width:210px;min-height:24px}.pill{font-size:9px;padding:4px 8px}.case-top h1{font-size:29px;letter-spacing:-1px}.case-top>.btn{font-size:11px;min-height:40px;padding:9px 11px;border-radius:12px}.case-top>.btn .icon{height:16px;width:16px}.object-tabs{display:flex;width:100%;margin-bottom:20px;padding:4px;border-radius:17px;gap:2px}.object-tabs button{flex:1;justify-content:center;font-size:12px;min-height:41px;padding:9px 16px;border-radius:13px}.investigation{display:flex;flex-direction:column;gap:18px}.material-column,.decision-column{width:100%;display:contents}.material-stage{width:100%;border-radius:26px;order:0}.material-top{padding:14px 18px 0;font-size:10px}.glass-pill{min-height:32px;padding:5px 9px;font-size:10px}.scene{min-height:182px}.material-stage .scene>svg{max-height:265px}.material-bottom{font-size:10px;padding:6px 18px 12px}.material-bottom button{font-size:10px}.empty-upload{min-height:230px}.preview-photo{height:240px}.guide-bubble{order:1;padding:21px 23px;border-radius:24px 24px 24px 7px;width:100%}.guide-bubble:before{top:-7px;left:33px}.guide-bubble h2{font-size:23px;margin-top:10px}.guide-bubble h2>br{display:none}.guide-bubble>p{font-size:12px;margin-top:9px}.assistant-name{font-size:11px}.guide-bubble .avatar{height:29px}.reveal{margin-top:10px}.reveal summary{font-size:11px;min-height:36px}.reveal p{font-size:12px}.actions-panel{order:2;margin-top:1px;padding:0 1px;width:100%}.section-caption h3{font-size:13px}.action-options{gap:7px}.action-row{min-height:51px;padding-left:15px}.action-row>span{font-size:13px}.action-add{width:34px;height:34px}.play-invite{order:3;margin-top:1px;padding:16px 17px;border-radius:22px;gap:11px}.play-invite strong{font-size:14px}.play-invite small{font-size:10px}.play-symbol{height:39px;width:39px;border-radius:13px}.play-arrow{height:33px;width:33px}.quiet-status{font-size:10px;margin-top:17px;align-items:flex-start}.quiet-status>span:last-child{max-width:50%;text-align:right}.quiet-status>.text-btn{min-height:25px;font-size:11px}.list-layout{display:flex;flex-direction:column;margin-top:22px;gap:20px}.checklist-panel{width:100%;padding:20px 17px;border-radius:25px}.checklist-panel h2{font-size:17px}.checklist-panel .section-caption>span{font-size:10px}.summary-item>summary{padding:12px;gap:8px;min-height:66px}.summary-item>summary strong{font-size:14px}.summary-item .pill{font-size:9px}.summary-count{font-size:10px}.summary-detail{padding:0 12px 6px}.record-actions{gap:8px;flex-wrap:wrap}.record-actions .text-btn{font-size:10px}.todo-row{font-size:12px;gap:6px}.takeaway-side{width:100%}.message-card{min-height:255px;padding:23px;border-radius:25px}.message-card h2{font-size:26px;margin-top:30px;margin-bottom:19px}.message-buddy{right:23px;top:6px}.message-card .btn{min-height:46px}.message-card>p{font-size:10px}.game-top{gap:8px;flex-wrap:wrap;margin-top:0}.game-top .text-btn{font-size:11px;min-height:33px}.game-top .pill{font-size:9px}.game-heading{margin-top:9px;margin-bottom:23px}.game-heading h1{font-size:34px}.game-heading p{font-size:12px;margin-top:9px}.game-layout{display:flex;flex-direction:column;gap:5px}.game-layout>div{width:100%}.game-prompt{padding:3px 6px}.game-prompt h2{font-size:21px;margin:10px 0 18px}.game-prompt .assistant-name{display:none}.game-choices{gap:10px}.choice{min-height:65px;border-radius:19px;padding:12px 17px;font-size:13px}.choice-key{width:31px;height:31px;border-radius:11px;font-size:12px}.game-interaction{scroll-margin-top:20px}.visited-line{font-size:10px;padding:12px 6px 18px}.feedback{border-radius:26px;padding:23px;scroll-margin-top:20px}.feedback h2{font-size:25px;margin-top:15px}.feedback>p{font-size:12px}.feedback blockquote{font-size:13px;margin-top:18px;padding:16px}.feedback .btn{font-size:13px;min-height:47px}.feedback-actions{margin-top:12px;gap:10px}.feedback-actions .btn{font-size:12px;border-radius:14px}.game-bottom{font-size:10px;gap:10px}.game-bottom .text-btn{font-size:11px}.modal-hero{padding:29px 25px 24px;min-height:153px}.modal-hero h2{font-size:26px;max-width:84%}.modal-hero>p{font-size:11px}.modal-body{padding:22px 23px 25px}.modal-actions{gap:10px}.modal-actions .btn{font-size:12px;padding:11px 15px}.modal-buddy{right:-4px;bottom:-44px;transform:scale(.59) rotate(24deg)}dialog{border-radius:26px;max-height:calc(100svh - 30px);width:calc(100vw - 28px)}.field textarea.message{min-height:244px;font-size:13px}.field input,.field select,.field textarea{font-size:16px}.field>span{font-size:12px}.modal-hero .modal-close{width:31px;height:31px}.tour-card{padding:20px 21px 18px;border-radius:24px}.tour-card h2{font-size:22px}.tour-card p{font-size:12px}.tour-controls{margin-top:17px}.tour-highlight{border-radius:24px}.toast{font-size:11px;bottom:95px}.photo img{height:120px}}
@media(max-width:374px){.wrap{width:calc(100% - 32px)}.home-copy h1{font-size:38px}.home-copy .eyebrow{margin-bottom:11px}.home-copy p{font-size:12px}.sample-entry{padding:23px;min-height:232px}.entry-card strong{font-size:28px}.entry-buddy{right:9px;top:40px;transform:scale(.86) rotate(13deg)}.real-entry strong{font-size:20px;padding-right:38px}.real-entry{padding:21px;min-height:143px}.entry-desc{font-size:11px}.case-top h1{font-size:26px}.case-top>.btn{font-size:10px;padding:8px 10px}.case-meta .case-name{max-width:176px}.game-top .pill{font-size:8px}.summary-item>summary{gap:6px}.summary-item>summary strong{font-size:13px}.summary-item .pill{font-size:8px;padding:4px 6px}.tour-controls .btn{padding:10px 12px}.game-top .text-btn{font-size:10px}.record-actions .text-btn{font-size:10px}.feedback-actions .btn{padding:11px 14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.modal-toast{position:sticky;bottom:0;z-index:20;margin:0 18px 15px;border-radius:14px;background:#302539;color:#fff;padding:11px 15px;font-size:12px;line-height:1.8;box-shadow:0 4px 15px #30253920}.modal-toast:not(.visible){display:none}.action-add{min-width:44px;min-height:44px}.action-row{min-height:56px}.object-tabs button{min-height:44px}.top-actions>.round-btn{min-width:44px;min-height:44px}

/* Escape chapter entry preserves the existing viewing and record flows. */
.home-with-escape .entry-deck{padding-top:0;padding-bottom:0}
.escape-entry{padding:29px 32px;min-height:295px;background:#fff;color:#202326;text-decoration:none;overflow:hidden;transform:none;border:1px solid #e5e9ee;isolation:isolate;box-shadow:0 9px 28px #33415b0c}
.escape-entry:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#fff 0%,#ffffffed 34%,#ffffff14 72%),url('/escape/cover.png') center/cover}
.escape-entry .entry-kicker{color:#246bfd}
.escape-entry strong{font-size:40px;letter-spacing:.06em}
.escape-entry .entry-desc{color:#666d78;line-height:1.85;max-width:85%}
.escape-entry .entry-go{background:#246bfd;color:#fff;margin-top:23px}
.escape-entry-caption{display:block;position:relative;font-size:10px;color:#7b8491;letter-spacing:.025em;margin-top:15px}
.home-with-escape .sample-entry-compact{min-height:128px;padding:19px 25px;margin-top:16px;border-radius:25px;transform:none}
.home-with-escape .sample-entry-compact strong{font-size:24px;margin-top:7px;padding-right:48px}
.home-with-escape .sample-entry-compact .entry-desc{font-size:12px;margin-top:7px}
.home-with-escape .sample-entry-compact .entry-arrow{background:#ffffffeb;color:#674098;bottom:20px}
.home-with-escape .real-entry{min-height:137px;padding:20px 25px;margin-top:15px;border-radius:25px}
.home-with-escape .real-entry strong{font-size:24px;margin-top:7px}
.home-with-escape .small-buddy{top:-22px;right:58px;transform:rotate(23deg) scale(.48)}
@media(max-width:700px){.escape-entry{min-height:275px;padding:25px 26px;border-radius:29px}.escape-entry strong{font-size:36px}.escape-entry .entry-desc{font-size:12px}.home-with-escape .entry-deck{padding-top:8px}.home-with-escape .sample-entry-compact{min-height:119px;padding:18px 23px}.home-with-escape .sample-entry-compact strong,.home-with-escape .real-entry strong{font-size:22px}.home-with-escape .real-entry{min-height:128px;padding:20px 23px}.escape-entry-caption{font-size:9px}}
@media(prefers-reduced-motion:reduce){.escape-entry{transition:none}.escape-entry:hover{transform:none}}

/* v0.3 local connection and progressive source cards; no new home-page tutorial text. */
.capture-actions{display:flex;gap:9px;flex-wrap:wrap;padding:12px 18px 18px}.materials-content>.capture-actions{padding:18px 0 8px}.capture-actions .btn{flex:1;min-width:90px}.connection-row{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:12px 0;font-size:13px}.connection-row strong{font-size:12px;text-align:right;color:#665083}.result-region{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.85}.result-region.error{color:#9b3b42;background:#fff1f0;border-radius:12px;padding:12px;margin:14px 0}.source-card{border:1px solid #e7dfed;border-radius:18px;padding:17px;margin:12px 0;background:#faf8fd}.source-card a{font-size:15px;font-weight:650;line-height:1.7;color:#6940a8;overflow-wrap:anywhere}.source-card p{font-size:13px;line-height:1.85;color:#776583;margin:10px 0}.source-card small{font-size:11px;color:#87798f}.sources-modal{width:min(690px,calc(100vw - 28px))}.sources-modal .modal-hero{min-height:128px}.search-line{display:flex;gap:9px;align-items:center}.search-line input{flex:1;min-width:0}.sources-modal .field{margin-bottom:8px}.sources-modal .help-details{margin-top:25px}.ai-recommend{display:inline-block;border:1px solid #c6b2e3;border-radius:7px;padding:0 5px;margin-left:7px;font-size:10px;color:#75539a}.local-loading{max-width:520px;margin:18vh auto;padding:24px;line-height:1.9}.guide-bubble>p{overflow-wrap:anywhere}.connection-row{overflow-wrap:anywhere}.modal-body>.soft-note:first-child{margin-top:0}.analysis-consent{display:flex;gap:9px;font-size:13px;align-items:flex-start;margin-top:18px}.analysis-consent input{margin-top:6px} .busy-line{padding:12px;background:#f2edf9;border-radius:12px;color:#75568d}.sources-modal .modal-body>form{margin-bottom:10px}@media(max-width:800px){.capture-actions{gap:7px;padding:10px 14px 16px}.capture-actions .btn{font-size:12px;min-width:82px;padding:10px 11px}.connection-row{font-size:12px}.connection-row strong{max-width:48%;font-size:11px}.search-line{align-items:stretch}.search-line .btn{padding:10px 12px}.search-line input{font-size:16px}.camera-btn{display:inline-flex}.source-card{padding:14px}}
