:root{--paper: #f7f1e6;--paper-2: #fffcf6;--paper-3: #fffcf6;--ink: #49362b;--ink-2: #756557;--primary: #526b48;--primary-deep: #435a3a;--link: #47667d;--accent: #ebcb67;--blush: #eecbc5;--star: #ebcb67;--blush-deep: #dda69f;--line: #d7c7b5;--ok: #526b48;--warn: #805b19;--error: #a6473d;--info: #47667d;--disabled-bg: #e5e0d7;--disabled-ink: #8c8275;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--safe-left: env(safe-area-inset-left, 0px);--safe-right: env(safe-area-inset-right, 0px);--shadow-card: 0 6px 20px rgba(73, 54, 43, .06);--shadow-s: 0 2px 8px rgba(73, 54, 43, .05);--shadow-m: 0 6px 20px rgba(73, 54, 43, .08);--shadow-l: 0 14px 38px rgba(73, 54, 43, .14);--r-card: 20px;--r-btn: 14px;--r-input: 12px;--r-tag: 8px;--sp-1: 4px;--sp-2: 8px;--sp-3: 12px;--sp-4: 16px;--sp-5: 24px;--sp-6: 32px;--sp-7: 48px;--sp-8: 64px;--font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-hand: "ZCOOL KuaiLe", "Yuanti SC", var(--font-body)}:root{--t-h1: 40px;--t-h2: 28px;--t-h3: 20px;--t-body: 16px;--t-label: 14px;--t-aux: 12px;--lh-h1: 52px;--lh-h2: 38px;--lh-h3: 30px;--lh-body: 26px;--lh-label: 20px;--lh-aux: 18px}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%;margin:0}body{font-family:var(--font-body);color:var(--ink);background:var(--paper);overflow:hidden;overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-font-smoothing:antialiased}input,textarea{-webkit-user-select:text;user-select:text;font-family:inherit}button{font-family:inherit;color:inherit;cursor:pointer;border:none;background:none}.canvas{position:fixed;inset:0;overflow:hidden;touch-action:none;--gx: 0px;--gy: 0px;--gs: 76px;--gop: 1}.canvas:before{content:"";position:absolute;inset:0;z-index:0;background:var(--bg, var(--paper))}.canvas:after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;opacity:var(--gop);transition:opacity .35s ease;background-image:radial-gradient(rgba(215,199,181,.42) 1.1px,transparent 1.1px),radial-gradient(rgba(215,199,181,.24) 1.1px,transparent 1.1px);background-size:var(--gs) var(--gs),var(--gs) var(--gs);background-position:var(--gx) var(--gy),calc(var(--gx) + var(--gs) / 2) calc(var(--gy) + var(--gs) / 2)}.canvas[data-bg=night]:after{background-image:radial-gradient(rgba(255,255,255,.16) 1.1px,transparent 1.1px)}.world{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform;z-index:2}@keyframes worldIn{0%{opacity:0}to{opacity:1}}.world-enter{animation:worldIn .42s ease-out}.item{position:absolute;left:0;top:0;transform-origin:50% 50%;touch-action:none}.item.is-editable{cursor:grab}.face{position:relative;width:100%;height:100%}.face .missing{display:grid;place-items:center;height:100%;color:var(--ink-2);font-size:22px}.item.is-selected:after{content:"";position:absolute;inset:-16px;border:3px dashed rgba(82,107,72,.85);border-radius:24px;pointer-events:none}.link-badge{position:absolute;top:-16px;right:-16px;width:46px;height:46px;border-radius:50%;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:24px;box-shadow:var(--shadow-s)}.face-text{background:linear-gradient(180deg,#fff,#f7f1e6);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow-m);display:flex;align-items:center;justify-content:center;padding:30px}.text-body{width:100%;white-space:pre-wrap;line-height:1.6;font-family:var(--font-body);letter-spacing:.02em}.face-note{border-radius:6px 6px 8px 8px;box-shadow:var(--shadow-m);padding:40px 28px 28px;display:flex;align-items:center}.face-note .tape{position:absolute;top:-16px;left:50%;width:104px;height:30px;transform:translate(-50%) rotate(-2deg);background:#ffffff9e;box-shadow:0 2px 6px #49362b24}.note-body{width:100%;white-space:pre-wrap;line-height:1.65;font-family:var(--font-body);color:#49362b}.face-photo{background:#fffcf6;border-radius:8px;box-shadow:var(--shadow-m);padding:16px 16px 0;display:flex;flex-direction:column}.face-photo.frame-plain{padding:0;border-radius:16px;overflow:hidden}.face-photo .ph{flex:1;min-height:0;overflow:hidden;background:#efe8dc;border-radius:4px}.face-photo.frame-plain .ph{border-radius:0}.face-photo .ph img{width:100%;height:100%;object-fit:cover;display:block}.face-photo .cap{font-family:var(--font-body);text-align:center;padding:14px 8px 18px;color:#756557;font-size:24px;line-height:1.2}.face-letter{background:linear-gradient(180deg,#fffcf6,#f7f1e6);border:2px solid rgba(215,199,181,.4);border-radius:10px;box-shadow:var(--shadow-l);padding:18px;display:flex;flex-direction:column}.face-letter .ph{flex:1;min-height:0;overflow:hidden;background:#f2ece1;border-radius:4px}.face-letter .ph img{width:100%;height:100%;object-fit:cover;display:block}.face-letter .ribbon{position:absolute;left:50%;bottom:-20px;transform:translate(-50%);background:var(--star);color:#fff;font-family:var(--font-hand);font-size:22px;padding:6px 22px;border-radius:999px;box-shadow:var(--shadow-s);white-space:nowrap}.face-sticker{display:flex;align-items:center;justify-content:center}.face-sticker img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 7px 12px rgba(73,54,43,.28));pointer-events:none}.face-portal{border-radius:24px;overflow:hidden;box-shadow:var(--shadow-l)}.portal-stage,.portal-void{position:absolute;inset:0;overflow:hidden}.portal-void{background:repeating-linear-gradient(135deg,rgba(255,255,255,.22) 0 14px,transparent 14px 28px)}.portal-world{position:absolute;left:0;top:0;transform-origin:0 0}.portal-world .mini{position:absolute;left:0;top:0}.portal-shade{position:absolute;inset:0;background:linear-gradient(180deg,#49362b0d 34%,#49362b8c);pointer-events:none}.portal-label{position:absolute;left:0;right:0;bottom:0;padding:4px 26px 26px;color:#fff;pointer-events:none}.portal-label strong{display:block;font-family:var(--font-hand);font-size:34px;line-height:1.2;text-shadow:0 2px 10px rgba(73,54,43,.4)}.portal-label em{font-style:normal;font-size:21px;opacity:.86;text-shadow:0 1px 6px rgba(73,54,43,.4)}.portal-glow{position:absolute;inset:0;border-radius:24px;pointer-events:none;box-shadow:inset 0 0 0 2.5px #ffffff8c,0 0 36px 7px #ebcb6773;will-change:opacity;animation:breathe 3.8s ease-in-out infinite}@keyframes breathe{0%,to{opacity:.42}50%{opacity:1}}.item.has-link:not(.item-portal) .face{box-shadow:var(--shadow-m),0 0 0 3px #ebcb678c}.empty-space{position:absolute;inset:0;display:grid;place-items:center;z-index:5;pointer-events:none}.empty-card{background:#fffcf6db;border:1px solid var(--line);border-radius:22px;padding:22px 26px;box-shadow:var(--shadow-m);text-align:center;max-width:76vw}.empty-card h3{margin:0 0 8px;font-family:var(--font-hand);font-size:22px}.empty-card p{margin:0;color:var(--ink-2);font-size:14px;line-height:1.7}.topbar{position:fixed;left:0;right:0;top:0;z-index:30;display:flex;align-items:center;gap:8px;padding:calc(var(--safe-top) + 10px) 10px 14px;background:linear-gradient(180deg,#fffcf6f0 30%,#fffcf600);pointer-events:none}.topbar>*{pointer-events:auto}.icon-btn{flex:0 0 auto;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#fffcf6d1;border:1px solid var(--line);box-shadow:var(--shadow-s);backdrop-filter:blur(12px);color:var(--ink)}.icon-btn.ghost{background:none;border:none;box-shadow:none}.icon-btn.small{width:34px;height:34px;border-radius:11px;font-size:15px}.icon-btn.back{background:var(--primary);color:#fff;border-color:transparent}.crumbs{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:2px;overflow-x:auto;scrollbar-width:none;padding:4px 2px}.crumbs::-webkit-scrollbar{display:none}.crumb{flex:0 0 auto;font-size:13px;color:var(--ink-2);padding:6px 4px;white-space:nowrap;max-width:42vw;overflow:hidden;text-overflow:ellipsis}.crumb.now{color:var(--ink);font-weight:600;font-size:15px}.crumb .sep{margin-left:6px;opacity:.45}.save-pill{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:999px;border:1px solid var(--line);background:#ffffffb8;font-size:11.5px;color:var(--ink-2);white-space:nowrap}.save-pill .dot{width:7px;height:7px;border-radius:50%;background:#d7c7b5;flex:0 0 auto}.save-pill.saved .dot{background:#526b48}.save-pill.saving .dot,.save-pill.pending .dot{background:var(--star);animation:savepulse 1.1s ease-in-out infinite}.save-pill.failed{color:#a6473d;border-color:#a6473d73;background:#a6473d1a}.save-pill.failed .dot{background:#a6473d;animation:none}@keyframes savepulse{50%{opacity:.3}}@media (max-width: 460px){.save-pill{padding:6px 8px;font-size:11px;gap:4px}}.mode-pill{flex:0 0 auto;padding:10px 16px;border-radius:999px;font-size:14px;font-weight:600;background:#fffcf6db;border:1px solid var(--line);box-shadow:var(--shadow-s);backdrop-filter:blur(12px)}.mode-pill.edit{background:var(--primary);color:#fff;border-color:transparent}.hintbar{position:fixed;left:0;right:0;bottom:0;z-index:25;padding:14px 18px calc(var(--safe-bottom) + 16px);display:flex;align-items:center;justify-content:center;gap:10px;font-size:12.5px;color:var(--ink-2);background:linear-gradient(0deg,#fffcf6e6,#fffcf600);pointer-events:none}.hintbar .dot{width:3px;height:3px;border-radius:50%;background:currentColor;opacity:.5}.addbar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;gap:6px;padding:10px 10px calc(var(--safe-bottom) + 12px);overflow-x:auto;scrollbar-width:none;background:linear-gradient(0deg,#fffcf6f5 45%,#fffcf600)}.addbar::-webkit-scrollbar{display:none}.add-btn{flex:1 1 0;position:relative;min-width:56px;height:64px;border-radius:18px;background:#fffcf6e6;border:1px solid var(--line);box-shadow:var(--shadow-s);backdrop-filter:blur(12px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10.5px;color:var(--ink-2);white-space:nowrap}.add-btn em{font-style:normal;font-size:20px;line-height:1}.add-btn:active{transform:scale(.95)}.add-badge{position:absolute;top:5px;right:6px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--primary);color:#fff;font-size:10.5px;font-weight:600;display:grid;place-items:center}.lib-sheet{max-height:76vh;display:flex;flex-direction:column}.lib-head{display:flex;align-items:center;gap:8px;margin-bottom:12px}.sheet-backdrop.lib-backdrop{background:#49362b80;backdrop-filter:none;-webkit-backdrop-filter:none}.lib-head strong{font-family:var(--font-body);font-size:21px}.lib-count{flex:1;min-width:0;font-size:12px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lib-text-btn{font-size:13px;font-weight:600;color:var(--primary-deep);padding:6px 8px}.lib-search{width:100%;padding:10px 14px;margin-bottom:8px;border-radius:14px;border:1px solid var(--line);background:#fff;font-size:14px;color:var(--ink);outline:none}.lib-search:focus{border-color:var(--primary)}.lib-filters,.lib-scopes{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:8px}.lib-filters::-webkit-scrollbar,.lib-scopes::-webkit-scrollbar{display:none}.fchip.scope{background:#526b4824;border-color:#526b4866;color:#49362b}.fchip.scope.on{background:var(--star);color:#fff;border-color:transparent}.fchip.new{position:sticky;right:0;border-style:dashed;color:var(--primary-deep);font-weight:600;background:var(--paper-2);box-shadow:-10px 0 10px -8px #75655752}.fchip.drop{background:var(--primary);border-color:transparent;color:#fff;transform:scale(1.06)}.scope-sub{margin-bottom:10px}.scope-list{display:flex;flex-direction:column;gap:8px;max-height:42vh;overflow-y:auto;margin-bottom:12px}.scope-item{display:flex;align-items:center;gap:10px;padding:14px 16px;border-radius:16px;border:1px solid var(--line);background:#fff;font-size:15px;text-align:left}.scope-item em{font-style:normal;font-size:20px}.scope-item span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scope-item small{color:var(--ink-2);font-size:12px}.fchip{flex:0 0 auto;padding:9px 13px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:12.5px;color:var(--ink-2);white-space:nowrap}.lib-cell{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.lib-cell img{-webkit-user-drag:none}.fchip.on{background:var(--primary);border-color:transparent;color:#fff}.fchip.tag{background:#526b4824;border-color:#526b4866;color:#49362b}.fchip.tag.on{background:var(--star);color:#fff;border-color:transparent}.lib-kind,.lib-tag{position:absolute;left:5px;bottom:5px;max-width:calc(100% - 10px);padding:2px 7px;border-radius:999px;font-size:10px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lib-kind{background:#49362bb8;color:#fff}.lib-tag{left:auto;right:5px;background:#ffffffeb;color:#49362b}.lib-sentinel{grid-column:1 / -1;height:1px}.lib-foot .btn{padding:13px 4px;font-size:13px;min-width:0;flex:1 1 64px}.tag-sheet-backdrop{position:fixed;inset:0;z-index:85;background:#49362b8c;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .16s ease}.tag-sheet{width:100%;max-width:620px;background:var(--paper-2);border-radius:24px 24px 0 0;padding:18px 16px calc(var(--safe-bottom) + 18px);box-shadow:var(--shadow-l);animation:sheetUp .24s cubic-bezier(.22,1,.36,1)}.tag-cloud{display:flex;flex-wrap:wrap;gap:8px;max-height:30vh;overflow-y:auto;margin-bottom:12px}.tag-chip{padding:9px 14px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:13px;color:var(--ink-2)}.tag-chip.on{background:var(--star);border-color:transparent;color:#fff}.tag-new{display:flex;gap:8px;align-items:center}.tag-new .text-input{margin-bottom:0}.tag-new .btn{flex:0 0 auto;padding:12px 18px}.lib-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.lib-act{flex:1 1 72px;min-width:72px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;border-radius:16px;border:1px solid var(--line);background:#fff;font-size:11.5px;color:var(--ink-2)}.lib-act,.lib-cell,.lib-search{backdrop-filter:none;-webkit-backdrop-filter:none}.lib-act em{font-style:normal;font-size:18px}.lib-grid{flex:1;min-height:130px;overflow-y:auto;-webkit-overflow-scrolling:touch;display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px;padding:4px 2px 10px}.lib-cell{position:relative;aspect-ratio:1;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:#fff;padding:0}.lib-cell img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}.lib-cell.fresh{box-shadow:0 0 0 2px #526b4852}.lib-cell.picked{box-shadow:0 0 0 3px var(--primary)}.lib-dot{position:absolute;top:6px;right:6px;width:9px;height:9px;border-radius:50%;background:var(--primary);box-shadow:0 0 0 2px #ffffffe6}.lib-check{position:absolute;top:6px;left:6px;width:22px;height:22px;border-radius:50%;background:#ffffffeb;border:1px solid var(--line);display:grid;place-items:center;font-size:13px;color:var(--primary-deep)}.lib-cell.picked .lib-check{background:var(--primary);color:#fff;border-color:transparent}.lib-empty{flex:1;min-height:150px;display:grid;place-content:center;text-align:center;color:var(--ink-2);font-size:13.5px;line-height:1.9;padding:16px}.lib-empty p{margin:2px 0}.lib-foot{display:flex;flex-wrap:wrap;gap:8px;padding-top:10px}.lib-tip{display:block;width:100%;text-align:center;font-size:12px;color:var(--ink-2)}.lib-foot .btn[disabled]{opacity:.42}.inspector{position:fixed;left:10px;right:10px;bottom:calc(var(--safe-bottom) + 100px);z-index:40;background:#fffcf6f5;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-l);backdrop-filter:blur(18px);padding:14px;max-height:46vh;overflow-y:auto}.insp-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.insp-kind{font-size:13px;font-weight:600;color:var(--primary-deep);letter-spacing:.06em}.insp-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.row-btn{padding:12px;border-radius:14px;background:#ffffffe6;border:1px solid var(--line);font-size:13.5px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-btn:active{background:#f7f1e6}.row-btn.danger{color:#a6473d;border-color:#a6473d4d}.text-input{width:100%;padding:12px 14px;margin-bottom:8px;border-radius:14px;border:1px solid var(--line);background:#fff;font-size:15px;color:var(--ink);outline:none}.text-input:focus{border-color:var(--primary)}.sheet-backdrop{position:fixed;inset:0;z-index:60;background:#49362b6b;backdrop-filter:blur(6px);display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.sheet{width:100%;max-width:620px;background:var(--paper-2);border-radius:26px 26px 0 0;padding:20px 18px calc(var(--safe-bottom) + 20px);box-shadow:var(--shadow-l);animation:sheetUp .26s cubic-bezier(.22,1,.36,1)}@keyframes sheetUp{0%{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}.sheet-title{font-family:var(--font-body);font-size:20px;margin-bottom:12px}.sheet-textarea{width:100%;border-radius:18px;border:1px solid var(--line);background:#fff;padding:14px;font-family:var(--font-body);font-size:19px;line-height:1.7;color:var(--ink);outline:none;resize:none}.sheet-textarea:focus{border-color:var(--primary)}.sheet-actions{display:flex;gap:10px;margin-top:14px}.sheet-actions.column{flex-direction:column}.menu-note{margin:0;color:var(--ink-2);font-size:13.5px;line-height:1.8}.sync-panel{display:flex;flex-direction:column;gap:8px}.sync-head{display:flex;align-items:center;gap:8px;font-size:14px}.sync-msg{flex:1;min-width:0;text-align:right;font-size:12px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sync-dot{flex:0 0 auto;width:9px;height:9px;border-radius:50%;background:#8c8275}.sync-dot.ok{background:#526b48}.sync-dot.syncing{background:var(--star);animation:pulse 1.2s ease-in-out infinite}.sync-dot.error{background:#a6473d}@keyframes pulse{0%,to{opacity:1}50%{opacity:.3}}.sync-url{font-size:12px;color:var(--ink-2);word-break:break-all;background:#75655714;padding:8px 10px;border-radius:10px}.sync-probe{margin:0;font-size:12.5px;line-height:1.6;padding:9px 12px;border-radius:12px}.sync-probe.good{background:#526b4829;color:#435a3a}.sync-probe.bad{background:#a6473d24;color:#a6473d}.btn{flex:1;padding:14px;border-radius:16px;font-size:15px;font-weight:600;border:1px solid var(--line);background:#fff}.btn.primary{background:var(--primary);color:var(--paper-2);border-color:transparent}.btn.primary:hover{background:var(--primary-deep)}.btn.ghost{background:#fff9}.btn.wide{width:100%}.hint-sheet h2{margin:0 0 14px;font-family:var(--font-hand);font-size:24px}.hint-sheet ul{margin:0 0 18px;padding-left:20px;color:var(--ink-2);font-size:14.5px;line-height:2}.hint-sheet b{color:var(--primary-deep)}.viewer{position:fixed;inset:0;z-index:70;background:#261c16c7;backdrop-filter:blur(10px);display:grid;place-items:center;padding:calc(var(--safe-top) + 16px) 16px calc(var(--safe-bottom) + 16px);animation:fadeIn .18s ease}.viewer-inner{max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center;gap:14px}.viewer-img{max-width:100%;max-height:68vh;border-radius:14px;box-shadow:var(--shadow-l);background:#fff}.viewer-text{max-width:88vw;max-height:66vh;overflow-y:auto;background:var(--paper-2);border-radius:20px;padding:26px;font-family:var(--font-body);font-size:20px;line-height:1.8;white-space:pre-wrap;box-shadow:var(--shadow-l)}.viewer-cap{color:#f7f1e6;font-family:var(--font-body);font-size:17px}.viewer-actions{display:flex;gap:10px;width:min(88vw,420px)}.cutout-screen{position:fixed;inset:0;z-index:75;display:flex;flex-direction:column;gap:10px;padding:calc(var(--safe-top) + 12px) 12px calc(var(--safe-bottom) + 12px);color:#fff;background:#221914eb;backdrop-filter:blur(12px);animation:fadeIn .16s ease}.cutout-head{display:flex;align-items:center;gap:10px}.cutout-head strong{font-family:var(--font-body);font-size:21px}.cutout-engine{flex:1;font-size:12px;opacity:.72}.cutout-head .icon-btn{background:#ffffff29;border-color:transparent;color:#fff}.cutout-stage{position:relative;flex:1;min-height:0;display:grid;place-items:center}.cutout-canvas{max-width:100%;max-height:100%;border-radius:12px;box-shadow:var(--shadow-l);touch-action:none;cursor:crosshair}.cutout-busy{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#261c16db;padding:10px 18px;border-radius:999px;font-size:13px;white-space:nowrap}.cutout-error{background:#a6473d;padding:9px 12px;border-radius:10px;font-size:12.5px}.cutout-tools{display:flex;flex-direction:column;gap:8px}.cutout-row{display:flex;align-items:center;gap:8px}.cutout-label{font-size:12px;opacity:.78;white-space:nowrap}.chip{padding:9px 13px;border-radius:12px;background:#ffffff24;border:1px solid rgba(255,255,255,.18);color:#fff;font-size:12.5px;white-space:nowrap}.chip.on{background:var(--primary);border-color:transparent}.chip[disabled]{opacity:.42}.slider{flex:1;min-width:0;accent-color:var(--primary)}.cutout-actions{display:flex;gap:10px}.cutout-actions .btn.ghost{background:#ffffff24;color:#fff;border-color:#fff3}.drop-veil{position:fixed;inset:0;z-index:95;display:grid;place-items:center;background:#49362b80;pointer-events:none;animation:fadeIn .12s ease}.drop-card{display:grid;gap:8px;padding:26px 36px;text-align:center;background:var(--paper-2);border:3px dashed var(--primary);border-radius:24px;box-shadow:var(--shadow-l)}.drop-card strong{font-family:var(--font-body);font-size:27px;color:var(--primary-deep)}.drop-card span{font-size:13px;color:var(--ink-2)}.toast{position:fixed;left:50%;bottom:calc(var(--safe-bottom) + 110px);transform:translate(-50%);z-index:80;background:#49362be6;color:#fff;padding:11px 20px;border-radius:999px;font-size:13.5px;box-shadow:var(--shadow-m);animation:fadeIn .18s ease;max-width:82vw;text-align:center}.boot{position:fixed;inset:0;display:grid;place-content:center;gap:10px;text-align:center;background:radial-gradient(120% 90% at 30% 20%,#fff,#f7f1e6 60%,#e9e0d2)}.boot-mark{font-family:var(--font-hand);font-size:40px;color:var(--primary-deep);letter-spacing:.2em}.boot-sub{font-size:13px;color:var(--ink-2)}.fatal{position:fixed;left:12px;right:12px;bottom:calc(var(--safe-bottom) + 12px);z-index:90;background:#a6473d;color:#fff;padding:12px 16px;border-radius:14px;font-size:13px}@media (prefers-reduced-motion: reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}:root{--paper: #f7f1e6;--paper-2: #fffcf6;--line: #ded2c2;--shadow-card: 0 5px 18px #49362b0c;--shadow-l: 0 20px 64px #49362b1c;--r-card: 22px}body{-webkit-font-smoothing:antialiased}button{transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease}.nicon{display:inline-block;flex:0 0 auto;color:inherit;vertical-align:middle}.nyota{display:block;object-fit:cover}.nyota.round{border-radius:50%}.eyebrow{margin:0 0 6px;color:var(--ink-2);font-size:11px;font-weight:400;letter-spacing:.12em}:where(button,a,input,textarea,[tabindex]):focus-visible{outline:2px solid var(--link);outline-offset:3px}.btn,.row-btn,.lib-act,.icon-btn,.mode-pill,.fchip{font-family:var(--font-body)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 18px;border:1px solid var(--line);border-radius:13px;background:var(--paper-2);color:var(--ink);font-size:14px;line-height:1.4;font-weight:500}.btn.primary{background:var(--primary);border-color:var(--primary);color:var(--paper-2);box-shadow:0 3px #354b2e}.btn.ghost{background:transparent;color:var(--link);border-color:transparent}.btn:active{transform:translateY(1px);box-shadow:none}.btn:disabled{background:var(--disabled-bg);color:#756b5e;border-color:transparent;box-shadow:none;cursor:not-allowed}.icon-btn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;width:44px;height:44px;border-radius:13px;background:var(--paper-2);border:1px solid var(--line);box-shadow:none;backdrop-filter:none}.icon-btn.small{min-width:40px;min-height:40px;width:40px;height:40px}.icon-btn.back{color:var(--paper-2);background:var(--primary)}.text-input,.sheet-textarea,.lib-search{font-family:var(--font-body);font-size:16px;line-height:1.6;min-height:46px;border:1px solid var(--line);border-radius:12px;background:#fffefb;color:var(--ink);padding:11px 14px}.text-input:focus,.sheet-textarea:focus,.lib-search:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #526b4817}.text-input::placeholder,.sheet-textarea::placeholder,.lib-search::placeholder{color:#827567}.topbar{height:calc(82px + var(--safe-top));padding:calc(12px + var(--safe-top)) max(24px,var(--safe-right)) 12px max(24px,var(--safe-left));gap:12px;background:#fffcf6;border-bottom:1px solid var(--line);backdrop-filter:none}.avatar{width:44px;height:44px;border:3px solid #fffefb;border-radius:15px;overflow:hidden;box-shadow:0 0 0 1px var(--line);display:grid;place-items:center;flex:0 0 auto}.avatar .nyota{width:44px;height:44px;border-radius:0}.space-heading{flex:1;min-width:0}.site-wordmark{font-size:21px;font-weight:650;letter-spacing:.08em;line-height:1.3}.site-wordmark>span{font-size:11px;color:var(--ink-2);font-weight:400;letter-spacing:.04em;margin-left:12px}.crumbs{padding:0;margin-top:3px;max-width:100%}.crumb{font:12px/1.6 var(--font-body);color:var(--ink-2);padding:0 2px}.crumb.now{color:var(--ink-2);font-weight:400}.mode-pill{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border-radius:13px;background:var(--paper-2);color:var(--ink);box-shadow:none;backdrop-filter:none}.mode-pill.edit{background:var(--primary);color:var(--paper-2)}.save-pill{display:inline-flex;align-items:center;gap:6px;background:#eff2e9;color:var(--primary-deep);border:1px solid #dae1d2;box-shadow:none;padding:7px 11px;font-size:12px}.save-pill.local{background:transparent;border-color:transparent;color:var(--ink-2)}.save-pill.failed{color:var(--error);background:#f9e8e3;border-color:#dfb4aa}.addbar{left:50%;right:auto;bottom:calc(18px + var(--safe-bottom));transform:translate(-50%);width:388px;max-width:calc(100% - 24px);padding:8px;gap:4px;border:1px solid var(--line);border-radius:22px;background:#fffcf6;box-shadow:0 8px 30px #49362b14;overflow:visible}.add-btn{border:0;min-height:62px;height:62px;border-radius:15px;gap:7px;background:transparent;box-shadow:none;backdrop-filter:none;font-size:12px;color:var(--ink)}.add-btn .nicon{color:var(--primary)}.add-badge{color:var(--ink);background:var(--accent);font-size:10px}.hintbar{left:50%;right:auto;transform:translate(-50%);bottom:calc(20px + var(--safe-bottom));width:max-content;max-width:calc(100% - 24px);padding:11px 18px;border:1px solid var(--line);border-radius:30px;background:#fffcf6;box-shadow:var(--shadow-card);font-size:12px}.hintbar>.nicon{color:#a96860}.touch-hint{display:none}.face-text{background:#fffcf6;border:1px solid #d7c7b580;border-radius:12px;box-shadow:var(--shadow-card)}.face-note{border-radius:3px 3px 10px;box-shadow:2px 6px #49362b06,0 12px 24px #49362b10;border:1px solid #49362b0d}.face-note:after{content:"";position:absolute;right:0;bottom:0;width:20px;height:20px;background:linear-gradient(135deg,#49362b12 50%,#fff8 51%);border-radius:0 0 9px;pointer-events:none}.tape{position:absolute;top:-12px;left:50%;width:90px;height:24px;transform:translate(-50%) rotate(-3deg);background:#ebcb6780;pointer-events:none}.face-note .tape{background:#fffcf699;box-shadow:none;border-inline:1px dashed #b5a78e55}.face-photo{border-radius:4px;border:1px solid #d7c7b570;box-shadow:0 3px 1px #49362b08,0 10px 26px #49362b12}.face-photo .cap{color:var(--ink)}.face-letter{border:1px solid var(--line);border-radius:6px;background:#fffcf6;box-shadow:4px 4px #e9dfce,var(--shadow-card)}.face-letter .ribbon{color:var(--ink);border:1px solid #c2a74e;background:#f3df9f;border-radius:4px;font-family:var(--font-body)}.face-sticker img{filter:drop-shadow(0 4px 5px #49362b22)}.face-portal{border:6px solid #fffcf6;border-radius:16px;box-shadow:0 0 0 1px var(--line),0 10px 28px #49362b15}.portal-shade{background:linear-gradient(180deg,transparent 55%,#fffcf620 75%,#fffcf655)}.portal-label{background:#fffcf6ed;border-top:1px solid #d7c7b566;color:var(--ink);padding:15px 22px 18px}.portal-label strong{font-family:var(--font-body);font-size:29px;line-height:1.3;text-shadow:none;font-weight:600}.portal-label em{font-size:18px;line-height:1.6;color:var(--ink-2);text-shadow:none}.portal-entry{position:absolute;right:14px;top:14px;width:48px;height:48px;display:grid;place-items:center;background:#fffcf6;color:var(--primary);border:1px solid #d7c7b5;border-radius:50%}.portal-glow{animation:none;will-change:auto;border-radius:12px;box-shadow:inset 0 0 0 1px #fff8}.item.has-link:not(.item-portal) .face{box-shadow:var(--shadow-card),0 0 0 2px #c3ad6b}.item.is-selected:after{inset:-10px;border:2px dashed var(--primary);border-radius:17px}.link-badge{background:#f3df9f;color:var(--ink);border:1px solid #c2a74e}.inspector{left:auto;right:max(24px,var(--safe-right));top:calc(106px + var(--safe-top));bottom:auto;width:320px;max-height:calc(100dvh - 134px - var(--safe-top) - var(--safe-bottom));padding:18px;border-radius:20px;background:#fffcf6;backdrop-filter:none;box-shadow:var(--shadow-l);overscroll-behavior:contain}.insp-head{margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--line)}.insp-kind{color:var(--ink);font-size:18px;letter-spacing:0}.insp-grid{gap:8px}.row-btn{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px;font-size:13px;border-radius:11px;background:#fffefb}.row-btn .nicon{width:17px;height:17px;color:var(--primary)}.row-btn.danger{background:#fcf0ea;border-color:#e9ccc0}.row-btn.danger .nicon{color:var(--error)}.sheet-backdrop,.tag-sheet-backdrop{background:#49362b40;backdrop-filter:none;align-items:center;padding:max(24px,var(--safe-top)) 24px max(24px,var(--safe-bottom))}.sheet,.tag-sheet{max-width:560px;max-height:calc(100dvh - 48px - var(--safe-top) - var(--safe-bottom));overflow-y:auto;overscroll-behavior:contain;padding:28px;border-radius:24px;border:1px solid var(--line);box-shadow:var(--shadow-l);background:#fffcf6}.sheet-title{font-size:17px;font-weight:600;margin-bottom:12px;color:var(--ink)}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-8px 0 24px;padding-bottom:18px;border-bottom:1px solid var(--line);position:sticky;top:-28px;z-index:2;background:#fffcf6;padding-top:8px}.panel-heading h2{font-size:23px;margin:0}.menu-note{font-size:13px;line-height:1.8}.menu-sheet .sheet-title{margin-top:22px}.menu-sheet .sheet-actions.column{gap:6px}.menu-sheet .sheet-actions.column .btn{justify-content:flex-start}.menu-sheet .btn.ghost{border:1px solid var(--line);background:#fffefb;color:var(--ink)}.sheet-textarea{background:repeating-linear-gradient(transparent 0 30px,#ded2c244 30px 31px),#fffefb;line-height:31px}.lib-sheet{width:min(960px,100%);max-width:960px;height:min(760px,calc(100dvh - 64px));max-height:calc(100dvh - 48px - var(--safe-top) - var(--safe-bottom));padding:26px;overflow:hidden}.lib-head{flex:0 0 auto;gap:12px;margin-bottom:20px}.lib-head strong{font-size:25px}.lib-count{align-self:flex-end;padding-bottom:5px}.lib-filters,.lib-scopes,.lib-actions,.lib-foot,.lib-search{flex-shrink:0}.lib-scopes{padding-bottom:12px}.lib-filters{padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:16px}.fchip{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:8px 13px;border-radius:10px;font-size:12px;background:#fffefb;color:var(--ink-2)}.fchip.on{background:var(--primary);border-color:var(--primary);color:var(--paper-2)}.fchip.scope,.fchip.tag{background:#f5ecd6;border-color:#e2d4ae;color:var(--ink)}.fchip.scope.on,.fchip.tag.on,.tag-chip.on{background:var(--accent);border-color:#b89d46;color:var(--ink)}.fchip.new{background:#fffcf6}.lib-actions{gap:10px;margin-bottom:20px}.lib-act{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:9px;min-height:48px;padding:10px;font-size:13px;border-radius:12px;color:var(--ink);background:#f3f4ec;border-color:#dce2d2}.lib-act .nicon{color:var(--primary)}.lib-grid{min-height:90px;flex:1 1 auto;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;align-content:start;padding:3px 3px 16px}.lib-cell{border-radius:8px;border:5px solid #fffefb;box-shadow:0 0 0 1px var(--line);background:#eee7da}.lib-cell.picked{border-color:#dce6d2;box-shadow:0 0 0 2px var(--primary)}.lib-foot{padding-top:14px;border-top:1px solid var(--line)}.lib-empty .nyota{margin:0 auto 16px}.lib-empty{min-height:90px;overflow-y:auto}.scope-item{background:#fffefb}.toast{border:1px solid #ffffff26;border-radius:14px;background:var(--ink);color:#fffcf6;padding:12px 20px}.lock{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:calc(48px + var(--safe-top)) 40px calc(80px + var(--safe-bottom));background:radial-gradient(ellipse at 85% 10%,#e6ead8 0%,transparent 40%),var(--paper);overflow-y:auto}.hero{position:relative;z-index:1;width:min(1000px,100%);display:grid;grid-template-columns:1.1fr 1fr;gap:90px;align-items:center}.hero-copy{max-width:460px}.hero-kicker{color:var(--ink-2);font-size:12px;letter-spacing:.18em;margin:0 0 22px}.hero-title{font-family:var(--font-hand);font-size:62px;line-height:1.25;font-weight:400;letter-spacing:.13em;margin:0 0 24px}.hero-lede{font-size:16px;line-height:2;color:var(--ink-2);margin:0 0 32px}.field{display:block;margin-bottom:12px}.field-label{display:block;font-size:13px;margin-bottom:8px}.field-error{background:#f9e5de;border:1px solid #d6aaa0;color:var(--error);border-radius:10px;padding:10px 14px;font-size:13px}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.hero-actions .btn.primary{width:100%}.hero-actions .lock-skip{background:transparent;border-color:transparent;width:100%;color:var(--ink-2);font-size:13px;box-shadow:none}.hero-note{color:var(--ink-2);font-size:11px;line-height:1.8;margin:0}.hero-sign{font-family:var(--font-hand);font-size:17px;margin-top:32px;color:var(--primary)}.hero-art{display:grid;place-items:center}.hero-stack{position:relative;padding:12px 12px 42px;background:#fffdf7;border:1px solid var(--line);box-shadow:0 18px 45px #49362b15;transform:rotate(3deg)}.hero-nyota{width:320px;height:390px;object-fit:cover;border-radius:2px}.hero-note-card{position:absolute;right:-36px;bottom:-42px;width:154px;background:#f5e8b9;border:1px solid #e2d3a3;padding:25px 12px 19px;transform:rotate(-8deg);box-shadow:var(--shadow-card)}.hero-note-card p{font:16px/1.7 var(--font-hand);margin:0;text-align:center}.hero-note-card .tape{background:#fff9;width:62px}.hero-star{position:absolute;top:-22px;left:-20px;transform:rotate(-12deg)}.hero-flower{position:absolute;left:-15px;bottom:54px}.hero-hill{position:fixed;width:100%;height:65px;left:0;bottom:0;opacity:.5;pointer-events:none}.welcome-heading{display:flex;align-items:center;gap:18px;margin-bottom:16px}.hint-sheet h2{margin:0;font:600 23px/1.5 var(--font-body)}.welcome-note{font-size:14px;color:var(--ink-2);line-height:1.8}.hint-sheet ul{padding-left:20px;font-size:14px;line-height:1.9}.hint-sheet li{padding:5px 0}.empty-card{border:1px dashed #bcad98;border-radius:22px;background:#fffcf6e8;box-shadow:inset 0 0 0 7px #fffdf8;padding:24px 30px;max-width:min(400px,85vw)}.empty-mascot{width:108px;height:108px;border-radius:50%;margin:0 auto 18px}.empty-card h3{font:600 19px/1.5 var(--font-body)}.empty-card p{line-height:1.9}.cutout-screen{background:#302b26;backdrop-filter:none}.cutout-head,.cutout-row{flex-wrap:wrap}.cutout-tools .chip{min-height:40px}.viewer{backdrop-filter:none}.viewer-actions .btn.ghost{color:var(--paper-2);border:1px solid #fff6;background:#fff1}@media (hover:hover){.btn.primary:not(:disabled):hover{background:var(--primary-deep)}.icon-btn:not(.back):hover,.add-btn:hover,.row-btn:not(.danger):hover{background:#edf0e6;border-color:#b6c3a8}.lib-act:hover{background:#e4eadb}.btn.ghost:hover{background:#47667d0b}}@media (pointer:coarse){.mouse-hint{display:none}.touch-hint{display:inline}}@media (max-width:760px){.topbar{height:calc(76px + var(--safe-top));padding:calc(10px + var(--safe-top)) max(12px,var(--safe-right)) 10px max(12px,var(--safe-left));gap:8px}.site-wordmark{font-size:19px}.site-wordmark>span{display:none}.crumb{font-size:11px}.avatar{width:38px;height:38px;border-radius:13px}.mode-pill{padding:0 13px}.save-pill{font-size:10px;padding:4px;gap:4px}.save-pill.local{display:none}.hintbar{gap:7px;padding:11px 13px;font-size:10px}.hintbar>.nicon{display:none}.inspector{left:12px;right:12px;top:auto;bottom:calc(108px + var(--safe-bottom));width:auto;max-height:min(43dvh,360px);padding:14px;border-radius:20px}.insp-head{margin-bottom:10px;padding-bottom:8px}.insp-head .eyebrow{display:none}.insp-kind{font-size:15px}.sheet-backdrop,.tag-sheet-backdrop{align-items:flex-end;padding:calc(12px + var(--safe-top)) 0 0}.sheet,.tag-sheet{border-radius:24px 24px 0 0;max-height:calc(100dvh - 12px - var(--safe-top));padding:22px 18px calc(20px + var(--safe-bottom))}.panel-heading{top:-22px;padding-top:12px;margin-top:-12px}.panel-heading h2{font-size:21px}.lib-sheet{height:calc(88dvh - var(--safe-top));padding:20px 16px calc(16px + var(--safe-bottom))}.lib-head{gap:8px;margin-bottom:16px}.lib-head strong{font-size:21px}.lib-head .eyebrow{font-size:10px;letter-spacing:.03em}.lib-count{font-size:10px}.lib-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.lib-act{flex-direction:column;gap:6px;min-width:52px;font-size:11px;padding:9px 4px}.lib-filters{margin-bottom:12px;padding-bottom:10px}.lib-actions{margin-bottom:14px;gap:7px}.lib-tip{font-size:10px;line-height:1.7}.lock{padding:calc(28px + var(--safe-top)) 28px calc(56px + var(--safe-bottom));display:block}.hero{display:flex;flex-direction:column;gap:30px;max-width:460px;margin:0 auto}.hero-copy{width:100%}.hero-art{order:-1}.hero-stack{padding:6px 6px 26px;transform:rotate(3deg)}.hero-nyota{width:160px;height:165px}.hero-note-card{width:90px;right:-62px;bottom:-12px;padding:13px 6px 10px}.hero-note-card p{font-size:10px}.hero-note-card .tape{width:40px;height:15px;top:-7px}.hero-kicker{margin-bottom:12px;font-size:11px}.hero-title{font-size:44px;margin-bottom:16px}.hero-lede{font-size:14px;margin-bottom:22px}.hero-sign{margin-top:20px;font-size:15px}.hero-hill{height:35px}.hero-actions{gap:6px;margin-bottom:8px}}@media (max-width:360px){.topbar{gap:5px;padding-left:8px;padding-right:8px}.topbar .avatar{display:none}.mode-pill{padding-inline:10px}.hintbar .dot,.hintbar>span:last-child{display:none}.lib-sheet{padding-left:12px;padding-right:12px}.lib-head .eyebrow{display:none}.lib-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lib-head strong{font-size:19px}}@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}.bd-backdrop{z-index:70}.bd-cur{margin-left:10px;font-size:12px;font-weight:400;color:var(--ink-2)}.bd-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:4px 0 6px}.bd-swatch{display:flex;flex-direction:column;align-items:center;gap:6px;padding:6px;border-radius:16px;border:2px solid transparent;background:transparent}.bd-swatch.on{border-color:var(--primary-deep);background:#526b4829}.bd-chip{display:block;width:100%;height:46px;border-radius:12px;border:1px solid var(--line);box-shadow:var(--shadow-s)}.bd-name{font-size:12px;color:var(--ink-2)}.bd-label{margin:12px 0 8px;font-size:13px;font-weight:600;color:var(--ink)}.bd-quick{display:flex;flex-wrap:wrap;gap:9px}.bd-dot{width:34px;height:34px;border-radius:50%;border:2px solid rgba(255,255,255,.9);box-shadow:0 0 0 1px var(--line)}.bd-dot.on{box-shadow:0 0 0 2px var(--primary-deep),0 0 0 5px #526b4859}.bd-custom{display:flex;align-items:center;gap:12px;margin:16px 0 4px;font-size:13px;color:var(--ink-2)}.bd-custom input[type=color]{width:46px;height:40px;padding:0;border:1px solid var(--line);border-radius:12px;background:none}.hero-actions .btn{flex:0 0 100%}@media (min-width:761px) and (max-width:1050px){.hero{gap:40px}.hero-nyota{width:260px;height:340px}.hero-note-card{right:-12px}}.paper-picker{border:0;padding:0;margin:16px 0;min-width:0}.paper-picker legend{font-size:12px;color:var(--ink-2);margin-bottom:9px}.paper-swatches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.paper-swatch{display:flex;align-items:center;gap:6px;min-height:44px;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--paper-2);color:var(--ink);font-size:11px;white-space:nowrap}.paper-swatch>span{display:grid;place-items:center;flex:0 0 22px;height:22px;border-radius:7px;border:1px solid #49362b25;color:#49362b;font-size:14px}.paper-swatch[aria-pressed=true]{border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}.addbar{width:472px}.addbar .add-btn{flex:1 1 0;min-width:0}.mascot-backdrop{z-index:180}.mascot-sheet{width:min(640px,100%)}.mascot-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.mascot-sheet-head h2{margin:0;font-size:23px}.mascot-sheet-intro,.mascot-sheet-foot{color:var(--ink-2);font-size:13px;line-height:1.8}.mascot-sheet-foot{margin-bottom:0;font-size:12px}.mascot-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}.mascot-tile{display:flex;flex-direction:column;align-items:center;border:1px solid var(--line);border-radius:18px;padding:12px;gap:7px;background:#f7f1e6;color:var(--ink)}.mascot-tile-sunny{background:#edf1e6}.mascot-tile-outing{background:#f8eeeb}.mascot-tile-star{background:#ecf1f4}.mascot-tile-art{height:150px;width:100%;display:flex;justify-content:center;align-items:flex-end}.mascot-tile-art img{max-height:100%;max-width:100%;object-fit:contain;filter:drop-shadow(0 3px 3px #49362b15)}.mascot-tile strong{font-size:14px;font-weight:500}.mascot-tile>span:last-child{font-size:12px;color:var(--ink-2)}.mascot-tile:disabled{opacity:.6;cursor:progress}.mascot-library-link{display:flex;align-items:center;gap:10px;width:100%;padding:12px 14px;margin:0 0 14px;border:1px dashed #c7cfbb;border-radius:13px;background:#f3f5ee;color:var(--primary-deep);text-align:left}.mascot-library-link>span:first-of-type{flex:1;font-size:13px}.mascot-library-link small{color:var(--ink-2);font-size:11px;margin-left:12px}.decoration-picker{border:0;padding:0;margin:16px 0;min-width:0}.decoration-picker legend{font-size:12px;color:var(--ink-2);margin-bottom:9px}.decoration-picker legend span{font-size:10px;margin-left:8px}.decoration-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.decoration-option{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-width:0;padding:7px 2px;border:1px solid var(--line);border-radius:10px;background:var(--paper-2);color:var(--ink);font-size:10px}.decoration-option img,.decoration-none{height:42px;max-width:100%;object-fit:contain}.decoration-none{display:grid;place-items:center;font-size:20px;color:var(--ink-2)}.decoration-option[aria-pressed=true]{border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary);background:#edf1e6}.card-companion{position:absolute;bottom:8px;right:9px;width:64px;height:76px;object-fit:contain;object-position:right bottom;pointer-events:none;user-select:none}.face.has-companion{padding-bottom:min(32%,96px)}.face.has-companion .text-body,.face.has-companion .note-body{max-height:100%;overflow:auto}.face.has-companion .card-companion{max-width:28%;max-height:34%}.decorated-editor{position:relative}.decorated-editor .sheet-textarea{display:block;width:100%}.decorated-editor.has-companion .sheet-textarea{padding-bottom:92px}.viewer-text.has-companion{position:relative;padding-bottom:112px}.empty-mascot{width:112px;height:150px;object-fit:contain;border-radius:0;margin:0 auto 18px}.lib-empty .nyota-outing{width:100px;height:140px;object-fit:contain}.memory-loading{gap:8px}.memory-loading-art{position:relative;width:100px;height:120px;display:grid;place-items:end center}.memory-loading-art .nyota{width:54px;height:116px;object-fit:contain}.loading-spark{position:absolute;color:#b49746;animation:memory-spark 1.8s ease-in-out infinite}.spark-one{left:2px;top:29px;font-size:23px}.spark-two{right:4px;top:8px;font-size:16px;animation-delay:.6s}.memory-loading.compact{display:flex;align-items:center;gap:12px;padding-top:12px}.memory-loading.compact .memory-loading-art{width:42px;height:54px;flex:0 0 42px}.memory-loading.compact .nyota{height:50px;width:24px}.memory-loading.compact .loading-spark{font-size:12px;top:4px}.memory-loading.compact .boot-sub{font-size:12px;margin:0}@keyframes memory-spark{0%,to{opacity:.35;transform:scale(.85)}50%{opacity:1;transform:scale(1.05)}}@media (max-width:760px){.addbar .add-btn{font-size:10px;padding-inline:3px}.mascot-sheet{padding-inline:18px}.mascot-tile-art{height:120px}.mascot-sheet-head h2{font-size:21px}.mascot-library-link small{display:block;margin:3px 0 0}}@media (prefers-reduced-motion: reduce){.loading-spark{animation:none;opacity:.75}}.app-arrival:after{content:"";position:fixed;inset:0;z-index:110;pointer-events:none;background:var(--paper);animation:welcome-unveil .56s ease-out both}.app-arrival>.topbar{animation:welcome-controls .52s cubic-bezier(.22,1,.36,1) both}.canvas-arrival{position:absolute;inset:0;z-index:2;transform-origin:50% 50%}.canvas-arrival[data-arrival=in]{animation:room-arrive .36s cubic-bezier(.22,1,.36,1) both}.canvas-arrival[data-arrival=back]{animation:room-return .32s cubic-bezier(.22,1,.36,1) both}@keyframes welcome-unveil{0%{opacity:1}to{opacity:0}}@keyframes welcome-controls{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}@keyframes room-arrive{0%{opacity:0;transform:scale(.975) translateY(6px)}to{opacity:1;transform:none}}@keyframes room-return{0%{opacity:0;transform:scale(1.02)}to{opacity:1;transform:none}}@media (prefers-reduced-motion: reduce){.app-arrival:after{display:none}.app-arrival>.topbar,.canvas-arrival[data-arrival]{animation:none}}.subject-editor{overflow-y:auto;display:block;padding-bottom:max(20px,var(--safe-bottom));background:var(--paper)}.subject-intro{margin:12px 24px;color:var(--ink-2);font-size:13px;line-height:1.7}.subject-workspace{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;max-width:1080px;margin:0 auto;padding:0 24px}.subject-workspace section{min-width:0}.subject-workspace h3{font-size:14px;font-weight:500}.subject-source{position:relative;min-height:180px;display:flex;justify-content:center;align-items:center;background:#ede8df;border-radius:16px;overflow:hidden}.subject-source .cutout-canvas{max-width:100%;max-height:48vh;object-fit:contain;display:block;touch-action:none}.subject-region{position:relative;display:inline-flex;max-width:100%;touch-action:none}.subject-region img{max-width:100%;max-height:48vh;object-fit:contain;pointer-events:none;user-select:none}.subject-box{position:absolute;border:2px solid #526b48;background:#a1ba8140;pointer-events:none}.subject-preview{display:grid;place-items:center;min-height:180px;height:32vh;border-radius:18px;background:#e2e9da;padding:18px}.subject-preview img{max-width:100%;max-height:100%;object-fit:contain}.subject-preview p,.subject-help{color:var(--ink-2);font-size:12px;line-height:1.8}.subject-name{display:grid;gap:8px;margin-top:16px;font-size:12px}.subject-name input{min-width:0;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fffcf6;font:inherit}.subject-editor .cutout-tools,.subject-editor .cutout-actions{max-width:1080px;margin-inline:auto}.subject-editor summary{font-size:12px;cursor:pointer;padding:10px 0;color:var(--ink-2)}.subject-editor .cutout-actions{position:static;background:var(--paper);padding:12px 24px}@media (max-width:760px){.subject-workspace{grid-template-columns:1fr;gap:8px;padding:0 16px}.subject-source .cutout-canvas,.subject-region img{max-height:35vh}.subject-preview{height:180px}.subject-intro{margin-inline:16px}}.subject-editor{color:var(--ink);backdrop-filter:none}.subject-editor .cutout-head{justify-content:space-between}.subject-editor .cutout-busy,.subject-editor .cutout-error{color:#fff}.subject-editor .cutout-tools .chip{color:var(--ink);background:#fffcf6;border:1px solid var(--line)}.subject-editor .cutout-tools .chip.on{color:var(--primary-deep);background:#e2e9da;border-color:#526b48}.subject-editor .cutout-row{flex-wrap:wrap}.subject-preview{display:flex;align-items:center;justify-content:center;overflow:hidden}.subject-preview img{width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}.subject-editor .cutout-tools{padding:12px 24px 24px}.site-wordmark{display:flex;align-items:center;white-space:nowrap}.letter-envelope{display:inline-flex;flex:0 0 36px;align-items:center;justify-content:center;width:36px;height:32px;margin:-3px 0 -3px 10px;border:1px solid #dba9b4;border-radius:10px;background:#f6dfe5;color:#ac647a;box-shadow:0 2px #ecd0d8}.letter-envelope:hover{background:#efcbd5;transform:rotate(-5deg)}.birthday-letter-backdrop{position:fixed;inset:0;z-index:1500;overflow:auto;overscroll-behavior:contain;background:#483a325c;padding:max(24px,env(safe-area-inset-top)) 20px max(32px,env(safe-area-inset-bottom));animation:letter-veil .22s ease both}.birthday-letter-dialog{width:min(100%,780px);margin:0 auto;perspective:1800px}.birthday-letter-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:14px;color:#fffaf1;font:12px/1.5 var(--font-body)}.letter-save-state{flex:1}.letter-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;background:#fffaf1;color:#657653;padding:8px 12px;border:1px solid #dfd9c9;border-radius:12px}.birthday-letter-paper{position:relative;isolation:isolate;padding:44px 64px 20px;background:#fffcf2;border:2px solid #a4b396;border-radius:28px 12px 30px;box-shadow:0 22px 80px #38291e36,inset 0 0 0 7px #fffcf2,inset 0 0 0 8px #c7d0b9;transform-origin:center top;animation:letter-unfold .72s cubic-bezier(.2,.7,.2,1) both;color:#657b58}.birthday-letter-paper:before{content:"";position:absolute;inset:15px;border:1px dashed #c7d0b9;border-radius:20px 5px 22px;pointer-events:none;z-index:-1}.birthday-letter-paper:after{content:"";position:absolute;inset:49% 18px auto;height:1px;box-shadow:0 1px 5px #9e8f6920;background:#b9ad8d14;pointer-events:none;z-index:-1}.letter-ornament{text-align:center;color:#b67b8c;font-size:17px;letter-spacing:.22em}.birthday-letter-paper h2{font:28px/1.7 var(--font-hand);margin:20px 0 22px;font-weight:400;letter-spacing:.08em}.letter-rule{width:46px;border-top:2px solid #c6cfae;margin-bottom:23px}.birthday-letter-text,.birthday-letter-reading{display:block;width:100%;min-height:360px;padding:0;border:0;border-radius:0;background:transparent;color:#657b58;font:21px/2 var(--font-hand);letter-spacing:.045em;white-space:pre-wrap;overflow-wrap:anywhere}.birthday-letter-text{resize:none;overflow:hidden;outline:none}.birthday-letter-text:focus-visible{outline:1px dashed #b3c1a1;outline-offset:10px}.birthday-letter-text::placeholder{color:#8b977d;opacity:.85}.birthday-letter-footer{display:flex;justify-content:flex-end;align-items:flex-end;gap:20px;margin-top:26px;min-height:150px}.birthday-letter-footer span{padding-bottom:18px;font:14px/2 var(--font-hand);color:#8b977d}.birthday-letter-footer img{width:116px;height:158px;object-fit:contain;transform:rotate(5deg);filter:drop-shadow(0 4px 3px #63513b15)}.letter-conflict{background:#fff1de;color:#6b5136;padding:12px;border-radius:12px}@keyframes letter-veil{0%{opacity:0}to{opacity:1}}@keyframes letter-unfold{0%{opacity:0;transform:translateY(44px) rotateX(-65deg) scale(.88);clip-path:inset(0 0 68% round 24px)}45%{opacity:1;clip-path:inset(0 0 28% round 24px)}to{opacity:1;transform:none;clip-path:inset(0 round 0px)}}@media (max-width:760px){.letter-envelope{flex-basis:30px;width:30px;margin-left:5px}.birthday-letter-backdrop{padding:max(12px,env(safe-area-inset-top)) 10px max(20px,env(safe-area-inset-bottom))}.birthday-letter-toolbar{gap:7px;font-size:11px}.letter-action{padding:7px 9px;font-size:12px}.birthday-letter-paper{padding:34px 28px 20px}.birthday-letter-paper h2{font-size:24px}.birthday-letter-text,.birthday-letter-reading{font-size:19px;line-height:2}.birthday-letter-footer img{width:100px;height:138px}.birthday-letter-footer span{font-size:12px}}@media (prefers-reduced-motion:reduce){.birthday-letter-paper,.birthday-letter-backdrop{animation:none}}.face-audio{display:flex;align-items:center;gap:18px;padding:20px;border:2px solid #c4cfb8;border-radius:26px 14px;background:#fffcf2;color:#617650;box-shadow:0 5px #e2e9da;overflow:hidden}.face-audio>div{flex:1;min-width:0}.face-audio strong{font:21px/1.4 var(--font-hand);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.face-audio small{font:12px/1.5 var(--font-body);color:#768568}.face-audio>img{width:68px;height:92px;object-fit:contain;align-self:flex-end}.audio-play-mark,.audio-play{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;border:1px solid #c3cdb5;border-radius:50%;background:#e2e9da;color:#526b48;font-size:21px}.memory-wave{display:flex;height:42px;gap:5px;align-items:center;justify-content:center;color:#91a27f}.memory-wave i{display:block;width:4px;border-radius:5px;background:currentColor}.memory-wave.playing i{animation:voice-wave .8s ease-in-out infinite alternate}@keyframes voice-wave{to{transform:scaleY(.45)}}.face-video{background:#fffcf2;border:8px solid #fffcf2;border-bottom-width:36px;border-radius:16px;overflow:hidden;position:relative;box-shadow:0 4px 16px #49362b14}.face-video>img{width:100%;height:100%;object-fit:cover}.video-fallback{display:grid;place-items:center;height:100%;color:#657b58;background:#e2e9da}.video-play-mark{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;background:#fffcf2e8;color:#657b58;padding:16px 20px;font-size:24px}.video-caption{position:absolute;bottom:0;left:0;right:0;padding:8px;background:#fffcf2ee;color:#657b58;font:16px/1.4 var(--font-body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lib-audio{width:100%;height:100%;background:#edf0e3;padding:15px 10px;color:#617650;display:flex;flex-direction:column;position:relative;text-align:left}.lib-audio>span{font-size:23px;letter-spacing:3px}.lib-audio strong{font:12px/1.5 var(--font-body);margin-top:6px;max-width:72%;max-height:38px;overflow:hidden}.lib-cell .lib-audio img{position:absolute;width:42px;height:58px;object-fit:contain;right:4px;bottom:6px}.lib-video{width:100%;height:100%;display:grid;place-items:center;background:#e2e9da;color:#526b48}.lib-video b{position:absolute;font-size:25px;text-shadow:0 1px 4px white}.media-import-backdrop{z-index:1300}.media-import-sheet{width:min(620px,100%);max-height:90dvh;overflow:auto}.media-import-sheet h2{font:24px/1.5 var(--font-hand)}.media-name{display:block;font-size:13px;color:#657b58;margin-top:16px}.media-name input{display:block;width:100%;margin-top:8px}.media-error{color:#974839;background:#f8e8df;border-radius:12px;padding:14px;line-height:1.7}.recording-status{color:#974839;text-align:center;padding:22px;background:#f6dfe5;border-radius:18px}.memory-media-player,.memory-audio-player{width:min(620px,100%);padding:22px;border:1px solid #c3cdb5;border-radius:24px;background:#fffcf2;color:#617650;text-align:center}.memory-media-player video{display:block;width:100%;max-height:65dvh;border-radius:14px;background:#302b25}.memory-audio-player{display:flex;align-items:center;flex-direction:column;gap:12px}.memory-audio-player>img{width:72px;height:90px;object-fit:contain}.memory-audio-title{font:22px/1.5 var(--font-hand);overflow-wrap:anywhere}.memory-audio-player input{width:100%;accent-color:#657b58}.memory-audio-player .audio-play{min-height:48px}.viewer .memory-media-player,.viewer .memory-audio-player{width:min(620px,calc(100vw - 36px))}@media (prefers-reduced-motion:reduce){.memory-wave.playing i{animation:none}}.lib-cell .lib-audio,.lib-cell .lib-video{position:absolute;inset:0}.lib-cell .lib-audio img{inset:auto 4px 6px auto}.lib-video b{top:50%;left:50%;transform:translate(-50%,-50%);background:#fffcf2df;padding:7px 12px;border-radius:50%}.lib-grid{grid-auto-rows:max-content}
