:root{--bg: #f8f5ef;--surface: #ffffff;--surface-2: #f2ede4;--line: #e4dccf;--line-strong: #cfc5b4;--text: #1d2330;--muted: #626b7c;--accent: #23408f;--accent-ink: #ffffff;--accent-soft: #e7ecfa;--ok: #2c7a51;--ok-soft: #e3f3ea;--warn: #9a5b08;--warn-soft: #fbf0db;--bad: #b03a2e;--bad-soft: #fbe9e6;--shadow: 0 1px 2px rgba(29, 35, 48, .06), 0 6px 20px rgba(29, 35, 48, .06);--shadow-lift: 0 2px 4px rgba(29, 35, 48, .08), 0 14px 34px rgba(29, 35, 48, .12);--radius: 14px;--radius-sm: 10px;--gutter: 16px;--tap: 44px;--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--panel: var(--surface);--off: var(--bad);color-scheme:light}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg: #111319;--surface: #191c25;--surface-2: #212532;--line: #2b3040;--line-strong: #3a4155;--text: #eceef4;--muted: #9aa3b6;--accent: #8fa9ff;--accent-ink: #0d1430;--accent-soft: #1e2947;--ok: #62c491;--ok-soft: #173326;--warn: #e2b062;--warn-soft: #382a12;--bad: #f08c7d;--bad-soft: #3a1c18;--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);--shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 14px 34px rgba(0, 0, 0, .4);color-scheme:dark}}:root[data-theme=dark]{--bg: #111319;--surface: #191c25;--surface-2: #212532;--line: #2b3040;--line-strong: #3a4155;--text: #eceef4;--muted: #9aa3b6;--accent: #8fa9ff;--accent-ink: #0d1430;--accent-soft: #1e2947;--ok: #62c491;--ok-soft: #173326;--warn: #e2b062;--warn-soft: #382a12;--bad: #f08c7d;--bad-soft: #3a1c18;--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);--shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 14px 34px rgba(0, 0, 0, .4);color-scheme:dark}*,*:before,*:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden}h1,h2,h3,h4{line-height:1.2;margin:0 0 .5rem;letter-spacing:-.01em;text-wrap:balance}h1{font-size:1.6rem;font-weight:700}h2{font-size:1.2rem;font-weight:650}h3{font-size:1.02rem;font-weight:650}h4{font-size:.92rem;font-weight:650}p{margin:0 0 .8rem}a{color:var(--accent)}code{font-family:var(--mono);font-size:.9em;background:var(--surface-2);padding:.1em .35em;border-radius:6px}img{max-width:100%}[hidden]{display:none!important}:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 55%,transparent);outline-offset:2px;border-radius:6px}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.muted{color:var(--muted)}.small{font-size:.86rem}.nowrap{white-space:nowrap}.grow{flex:1 1 auto;min-width:0}.center{text-align:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.lead{font-size:1.04rem;color:var(--muted);max-width:62ch}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.55;cursor:default}input:not([type=checkbox]):not([type=radio]),select,textarea{width:100%;min-height:var(--tap);padding:.6rem .8rem;border-radius:var(--radius-sm);border:1px solid var(--line-strong);background:var(--surface);transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}input::placeholder,textarea::placeholder{color:color-mix(in srgb,var(--muted) 75%,transparent)}input[type=checkbox],input[type=radio]{width:1.15rem;height:1.15rem;accent-color:var(--accent)}label{font-size:.9rem}.btn,button[type=submit],.row button:not([class]),.check-box button,.actions button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:var(--tap);padding:.55rem 1.1rem;border-radius:999px;border:1px solid transparent;background:var(--accent);color:var(--accent-ink);font-weight:600;text-decoration:none;transition:transform .08s,box-shadow .15s,background .15s}.btn:hover:not(:disabled),button[type=submit]:hover:not(:disabled){box-shadow:var(--shadow)}.btn:active:not(:disabled){transform:translateY(1px)}.btn.block{width:100%}.btn.quiet,.ghost{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:40px;padding:.45rem .95rem;border-radius:999px;background:transparent;border:1px solid var(--line-strong);color:var(--text);font-weight:550}.btn.quiet:hover:not(:disabled),.ghost:hover:not(:disabled){background:var(--surface-2);box-shadow:none}.btn.danger{background:var(--bad);color:#fff}.btn.quiet.danger,.ghost.danger{background:transparent;color:var(--bad);border-color:color-mix(in srgb,var(--bad) 45%,var(--line))}.linklike{background:none;border:0;padding:0;color:var(--accent);text-decoration:underline;text-underline-offset:2px;min-height:0;font-weight:500}.icon-btn{display:inline-grid;place-items:center;width:var(--tap);height:var(--tap);border-radius:50%;border:0;background:transparent;color:var(--muted)}.icon-btn:hover{background:var(--surface-2);color:var(--text)}.icon{width:1.25rem;height:1.25rem;flex:0 0 auto}.field{display:flex;flex-direction:column;gap:.35rem}.field>span,.field>label{font-size:.9rem;font-weight:600}.field .hint{font-size:.84rem;color:var(--muted);font-weight:400}.field .problem{font-size:.86rem;color:var(--bad)}.field.invalid input{border-color:var(--bad)}.with-button{position:relative}.with-button input{padding-right:4.2rem}.with-button button{position:absolute;right:6px;top:50%;transform:translateY(-50%);min-height:32px;padding:.2rem .6rem;border-radius:8px;border:0;background:transparent;color:var(--accent);font-weight:600;font-size:.86rem}.meter{height:6px;border-radius:3px;background:var(--surface-2);overflow:hidden}.meter>span{display:block;height:100%;border-radius:3px;background:var(--warn);transition:width .2s,background .2s}.meter.good>span{background:var(--ok)}.error,.banner.bad{color:var(--bad)}.banner{display:flex;gap:.7rem;align-items:flex-start;padding:.8rem 1rem;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--surface);margin:0 0 1rem}.banner.bad{background:var(--bad-soft);border-color:color-mix(in srgb,var(--bad) 35%,transparent)}.banner.warn,.why.warn-box{background:var(--warn-soft);border-color:color-mix(in srgb,var(--warn) 35%,transparent);color:var(--text)}.banner.ok{background:var(--ok-soft);border-color:color-mix(in srgb,var(--ok) 35%,transparent)}.banner.info,.notice{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 25%,transparent);color:var(--text)}.notice{padding:.7rem .9rem;border-radius:var(--radius-sm)}p.error{background:var(--bad-soft);padding:.7rem .9rem;border-radius:var(--radius-sm)}.pill,.badge{display:inline-flex;align-items:center;gap:.3rem;font-size:.76rem;font-weight:650;padding:.15rem .6rem;border-radius:999px;background:var(--surface-2);color:var(--muted);border:0;white-space:nowrap;vertical-align:middle}.pill.ok,.badge.ok{background:var(--ok-soft);color:var(--ok)}.pill.bad,.pill.off,.badge.bad{background:var(--bad-soft);color:var(--bad)}.pill.warn,.badge.warn{background:var(--warn-soft);color:var(--warn)}.badge.accent{background:var(--accent-soft);color:var(--accent)}.dot{min-width:1.25rem;height:1.25rem;padding:0 .35rem;border-radius:999px;background:var(--bad);color:#fff;font-size:.72rem;font-weight:700;display:inline-grid;place-items:center}.card,.family-card,.why,.check-box,.lib-row,.first-run,.fresh-token,.rubric-preview{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1rem;box-shadow:var(--shadow)}.card.flat{box-shadow:none}.card.pad{padding:1.25rem}.card.tint{background:var(--accent-soft);border-color:transparent;box-shadow:none}.card h3:first-child,.why h3{margin-top:0}.why,.check-box{margin:1rem 0}.why ul{margin:.4rem 0 0;padding-left:1.1rem;color:var(--muted)}.grid{display:grid;gap:1rem}.grid.two,.grid.three,.grid.cards{grid-template-columns:1fr}.stack{display:flex;flex-direction:column;gap:1rem}.stack.tight{gap:.5rem}.row{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;margin:.8rem 0}.row>input{flex:1 1 14rem}.row>label{display:flex;flex-direction:column;gap:.25rem;flex:1 1 11rem;color:var(--muted);font-size:.84rem}.between{display:flex;gap:.75rem;align-items:center;justify-content:space-between;flex-wrap:wrap}.between>h1,.between>h2,.between>h3{margin-bottom:0}.queue{list-style:none;padding:0;margin:1rem 0 0;display:flex;flex-direction:column;gap:.75rem}.queue>li>button:not(.ghost):not(.btn){width:100%;display:flex;gap:.8rem;align-items:flex-start;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:.8rem;box-shadow:var(--shadow);color:inherit;font-weight:400;min-height:0}.queue>li>button:hover{border-color:var(--line-strong)}.thumb{width:132px;aspect-ratio:16/9;object-fit:cover;border-radius:10px;flex:0 0 auto;background:var(--surface-2)}.small-thumb{width:96px;height:54px;object-fit:cover;border-radius:8px;flex:0 0 auto;background:var(--surface-2)}.activity-row,.lib-row,.review-head{display:flex;gap:.9rem;align-items:flex-start}.lib-row{align-items:center}.review-head h2{margin:0 0 .2rem}.empty{text-align:center;padding:2.2rem 1rem;color:var(--muted);border:1px dashed var(--line-strong);border-radius:var(--radius)}.empty .icon{width:2rem;height:2rem;margin-bottom:.4rem}.empty h3{color:var(--text)}.stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:.75rem;margin:1rem 0}.stats>div{background:var(--surface-2);border-radius:var(--radius-sm);padding:.8rem;display:flex;flex-direction:column;gap:.1rem;color:var(--muted);font-size:.86rem}.stat{font-size:1.5rem;font-weight:700;color:var(--text);letter-spacing:-.02em}.stats>div.ok .stat{color:var(--ok)}.stats>div.warn .stat{color:var(--warn)}.stats>div.bad .stat{color:var(--bad)}.reasons{list-style:none;padding:0;margin:.5rem 0;display:flex;flex-direction:column;gap:.4rem;font-size:.92rem}.counts{display:flex;flex-wrap:wrap;gap:.35rem .7rem}.count{font-size:.84rem;color:var(--muted);white-space:nowrap}.count strong{color:var(--text)}.count.ok strong{color:var(--ok)}.count.warn strong{color:var(--warn)}.count.off strong{color:var(--bad)}table{width:100%;border-collapse:collapse;margin-top:1rem}th,td{text-align:left;padding:.7rem .6rem;border-bottom:1px solid var(--line);vertical-align:top}th{color:var(--muted);font-weight:600;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em}@media(max-width:639px){main table,main thead,main tbody,main tr,main td{display:block;width:100%}main thead{display:none}main tr{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:.6rem .8rem;margin-bottom:.75rem;box-shadow:var(--shadow)}main td{border:0;padding:.25rem 0}}.auth{min-height:100dvh;display:grid;grid-template-columns:1fr}.auth-story{display:none}.auth-panel{display:flex;flex-direction:column;justify-content:center;padding:2rem var(--gutter) 3rem}.auth-box{width:100%;max-width:26rem;margin:0 auto}.auth-box h1{font-size:1.75rem;margin-bottom:.3rem}.auth-box form{display:flex;flex-direction:column;gap:1rem;margin-top:1.5rem}.auth-switch{margin-top:1.5rem;text-align:center;color:var(--muted)}.logo{display:inline-flex;align-items:center;gap:.55rem;font-weight:750;font-size:1.15rem;letter-spacing:-.02em;color:var(--text);text-decoration:none}.logo-mark{width:2rem;height:2rem;border-radius:10px;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center}.auth-box>.logo{margin-bottom:2rem}@media(min-width:900px){.auth{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}.auth-story{display:flex;flex-direction:column;justify-content:space-between;padding:3rem;background:linear-gradient(160deg,#23408f,#17295f);color:#fff}.auth-story h2{font-size:2.1rem;line-height:1.15;max-width:18ch;margin-bottom:1.5rem}.auth-story ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:1.1rem;max-width:30rem}.auth-story li{display:flex;gap:.8rem;align-items:flex-start;color:#ffffffdb}.auth-story li strong{color:#fff;display:block}.auth-story .icon{margin-top:.15rem}.auth-story .logo{color:#fff}.auth-story .logo-mark{background:#fff;color:#23408f}.auth-story small{color:#ffffffa6}.auth-box>.logo{display:none}}.shell{min-height:100dvh}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.5rem var(--gutter);padding-top:max(.5rem,env(safe-area-inset-top));background:color-mix(in srgb,var(--bg) 88%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}.sidebar{display:none}.content{padding:1.25rem var(--gutter) calc(5.5rem + env(safe-area-inset-bottom));max-width:68rem;margin:0 auto;width:100%}.content>section>h1:first-child,.page-head h1{margin-bottom:.35rem}.page-head{margin-bottom:1.25rem}.page-head .lead{margin-bottom:0}.tabbar{position:fixed;inset:auto 0 0;z-index:30;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}.tabbar a,.tabbar button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.1rem;min-height:58px;padding:.35rem .2rem;border:0;background:none;color:var(--muted);font-size:.7rem;font-weight:600;text-decoration:none}.tabbar a[aria-current=page],.tabbar button[aria-expanded=true]{color:var(--accent)}.tabbar .dot{position:absolute;top:6px;left:calc(50% + 6px)}.nav-link{display:flex;align-items:center;gap:.75rem;padding:.6rem .8rem;border-radius:var(--radius-sm);color:var(--muted);font-weight:600;text-decoration:none;border:0;background:none;width:100%;text-align:left;min-height:var(--tap)}.nav-link:hover{background:var(--surface-2);color:var(--text)}.nav-link[aria-current=page]{background:var(--accent-soft);color:var(--accent)}.nav-link .dot{margin-left:auto}.sheet-backdrop{position:fixed;inset:0;z-index:40;background:#0f121c73;display:flex;align-items:flex-end;animation:fade .15s}.sheet-panel{width:100%;max-height:85dvh;overflow:auto;background:var(--surface);border-radius:20px 20px 0 0;padding:.75rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));box-shadow:var(--shadow-lift);animation:rise .2s}.sheet-panel:before{content:"";display:block;width:2.5rem;height:4px;border-radius:2px;background:var(--line-strong);margin:0 auto .75rem}@keyframes fade{0%{opacity:0}}@keyframes rise{0%{transform:translateY(24px);opacity:0}}.subtabs{display:flex;gap:.35rem;overflow-x:auto;margin:0 calc(-1 * var(--gutter)) 1.25rem;padding:0 var(--gutter) 2px;scrollbar-width:none}.subtabs::-webkit-scrollbar{display:none}.subtabs a,.tab{flex:0 0 auto;display:inline-flex;align-items:center;gap:.4rem;min-height:40px;padding:.4rem .95rem;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--muted);font-weight:600;font-size:.92rem;text-decoration:none}.subtabs a[aria-current=page],.tab.active{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}@media(min-width:640px){:root{--gutter: 24px}h1{font-size:1.85rem}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.cards{grid-template-columns:repeat(auto-fill,minmax(17rem,1fr))}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.thumb{width:168px}.sheet-backdrop{align-items:center;justify-content:center;padding:1.5rem}.sheet-panel{max-width:32rem;border-radius:20px;padding:1.5rem}.sheet-panel:before{display:none}}@media(min-width:1024px){.shell{display:grid;grid-template-columns:15.5rem minmax(0,1fr)}.topbar,.tabbar{display:none}.sidebar{display:flex;flex-direction:column;gap:.25rem;position:sticky;top:0;height:100dvh;padding:1.25rem .9rem;border-right:1px solid var(--line);background:var(--surface);overflow-y:auto}.sidebar .logo{padding:.25rem .6rem 1.25rem}.sidebar .spacer{flex:1}.sidebar .group{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:1rem .8rem .3rem}.content{padding:2.25rem 2.5rem 4rem}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}}.steps{list-style:none;padding:0;margin:1rem 0 0;display:flex;flex-direction:column;gap:.6rem;counter-reset:step}.steps li{display:flex;gap:.9rem;align-items:center;padding:.8rem .9rem;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--line);counter-increment:step}.steps li:before{content:counter(step);flex:0 0 auto;width:1.9rem;height:1.9rem;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:.9rem;background:var(--accent-soft);color:var(--accent)}.steps li.done:before{content:"✓";background:var(--ok-soft);color:var(--ok)}.steps li.done strong{color:var(--muted);font-weight:550}.steps li>div{flex:1 1 auto;min-width:0}.attention{display:flex;gap:.9rem;align-items:center;text-decoration:none;color:inherit}.attention .bubble{flex:0 0 auto;width:2.6rem;height:2.6rem;border-radius:12px;display:grid;place-items:center;background:var(--warn-soft);color:var(--warn)}.attention.calm .bubble{background:var(--ok-soft);color:var(--ok)}.person{display:flex;gap:.9rem;align-items:center}.avatar{flex:0 0 auto;width:2.75rem;height:2.75rem;border-radius:50%;display:grid;place-items:center;font-weight:700;background:var(--accent-soft);color:var(--accent);text-transform:uppercase}.split-bar{display:flex;height:8px;border-radius:4px;overflow:hidden;background:var(--surface-2);margin:.6rem 0 .4rem}.split-bar>span{display:block;height:100%}.split-bar .s-ok{background:var(--ok)}.split-bar .s-bad{background:var(--bad)}.split-bar .s-warn{background:var(--warn)}.legend{display:flex;flex-wrap:wrap;gap:.3rem .9rem;font-size:.82rem;color:var(--muted)}.legend i{display:inline-block;width:.6rem;height:.6rem;border-radius:50%;margin-right:.3rem}.choices{display:grid;gap:.6rem;grid-template-columns:1fr}.choice-card{position:relative;display:flex;gap:.8rem;align-items:flex-start;padding:.9rem 1rem;border-radius:var(--radius-sm);border:1.5px solid var(--line);background:var(--surface);cursor:pointer;text-align:left;width:100%;color:inherit;font-weight:400}.choice-card:hover{border-color:var(--line-strong)}.choice-card.on{border-color:var(--accent);background:var(--accent-soft)}.choice-card strong{display:block}.choice-card input{margin-top:.2rem}.seg{display:inline-flex;flex-wrap:wrap;gap:.35rem}.seg button{min-height:38px;padding:.35rem .85rem;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);color:var(--text);font-weight:550;font-size:.9rem}.seg button.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.pairing-code{font-family:var(--mono);font-size:clamp(2rem,9vw,3rem);letter-spacing:.14em;font-weight:700;margin:.5rem 0;text-align:center;color:var(--accent)}.fresh-token{background:var(--accent-soft);border-color:transparent;box-shadow:none}.fresh-token code{display:block;margin-top:.5rem;word-break:break-all}.advanced{margin:1.25rem 0}.advanced summary,details>summary{cursor:pointer;color:var(--muted);font-weight:600}@media(min-width:640px){.choices.two{grid-template-columns:repeat(2,minmax(0,1fr))}}.standard{display:flex;flex-direction:column;gap:.6rem;text-decoration:none;color:inherit;transition:transform .12s,box-shadow .15s,border-color .15s}a.standard:hover,button.standard:hover{transform:translateY(-2px);box-shadow:var(--shadow-lift);border-color:var(--line-strong)}.strictness{display:inline-flex;gap:3px;vertical-align:middle}.strictness i{width:14px;height:6px;border-radius:3px;background:var(--line-strong)}.strictness i.on{background:var(--accent)}.ticks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.3rem;font-size:.9rem;color:var(--muted)}.ticks li{display:flex;gap:.5rem;align-items:flex-start}.ticks li:before{content:"";flex:0 0 auto;width:.4rem;height:.4rem;margin-top:.55rem;border-radius:50%;background:var(--accent)}.way{display:flex;flex-direction:column;gap:.5rem;align-items:flex-start;text-align:left;text-decoration:none;color:inherit;height:100%}.way .bubble{width:2.75rem;height:2.75rem;border-radius:12px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent)}.rubric-editor{display:grid;grid-template-columns:1fr;gap:1.25rem;align-items:start}.rubric-switches details{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);margin-bottom:.6rem;overflow:hidden}.rubric-switches summary{padding:.85rem 1rem;color:var(--text);display:flex;justify-content:space-between;gap:1rem;align-items:center;list-style:none}.rubric-switches summary::-webkit-details-marker{display:none}.rubric-switches summary:after{content:"⌄";color:var(--muted);font-size:1.1rem}.rubric-switches details[open] summary:after{content:"⌃"}.rubric-switches details[open] summary{border-bottom:1px solid var(--line)}.switch{display:flex;flex-direction:column;gap:.35rem;padding:.7rem 1rem;border-bottom:1px solid var(--line);color:var(--text);font-size:.95rem}.switch:last-child{border-bottom:0}.switch.on>span{font-weight:650}.switch select{max-width:none}@media(min-width:640px){.switch{flex-direction:row;align-items:center;justify-content:space-between;gap:1rem}.switch select{width:auto;max-width:55%}}@media(min-width:1100px){.rubric-editor{grid-template-columns:minmax(0,1fr) 21rem}.rubric-preview{position:sticky;top:1.5rem}}.assistant{display:grid;grid-template-columns:1fr;gap:1rem;align-items:start}.chat{display:flex;flex-direction:column;min-height:22rem;padding:0;overflow:hidden}.chat-log{flex:1 1 auto;display:flex;flex-direction:column;gap:.75rem;padding:1rem;overflow-y:auto;max-height:min(58dvh,34rem)}.bubble-row{display:flex}.bubble-row.me{justify-content:flex-end}.msg{max-width:min(34rem,88%);padding:.7rem .95rem;border-radius:18px;white-space:pre-wrap;overflow-wrap:anywhere}.msg.them{background:var(--surface-2);border-bottom-left-radius:6px}.msg.me{background:var(--accent);color:var(--accent-ink);border-bottom-right-radius:6px}.typing{display:inline-flex;gap:4px;padding:.3rem 0}.typing i{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:blink 1.2s infinite}.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}@keyframes blink{0%,60%,to{opacity:.25}30%{opacity:1}}.chat-form{display:flex;gap:.5rem;padding:.75rem;border-top:1px solid var(--line);background:var(--surface);align-items:flex-end}.chat-form textarea{resize:none;min-height:var(--tap);max-height:9rem;border-radius:22px}.chat-form button{flex:0 0 auto;width:var(--tap);padding:0}.suggest{display:flex;flex-wrap:wrap;gap:.4rem;padding:0 1rem .75rem}.suggest button{min-height:36px;padding:.3rem .8rem;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);color:var(--text);font-size:.88rem}.draft-list{list-style:none;margin:.5rem 0 0;padding:0;display:flex;flex-direction:column}.draft-list li{display:flex;justify-content:space-between;gap:.75rem;padding:.45rem 0;border-bottom:1px solid var(--line);font-size:.9rem}.draft-list li:last-child{border-bottom:0}.draft-list li span:last-child{color:var(--muted);text-align:right}.draft-list li.fresh{animation:flash 1.6s}@keyframes flash{0%{background:var(--accent-soft)}}@media(min-width:1100px){.assistant{grid-template-columns:minmax(0,1fr) 22rem}.assistant aside{position:sticky;top:1.5rem}}.review-screen{max-width:70rem}.actions{display:flex;gap:.6rem;margin-bottom:1rem;flex-wrap:wrap}.actions .approve{background:var(--ok);color:#fff}.actions .hide,.hide{background:transparent;border:1px solid var(--line-strong)!important;color:var(--text)}.sheets{display:flex;flex-direction:column;gap:1.1rem;margin-top:.8rem}.sheet-label{color:var(--muted);font-size:.82rem;margin-bottom:.3rem}.sheet-frame{position:relative;width:100%;background:#000;border-radius:10px;overflow:hidden}.sheet-frame img{width:100%;display:block}.flag{position:absolute;border:2px solid #ff6b57;box-shadow:0 0 0 1px #0009 inset;pointer-events:none}kbd{font-family:var(--mono);font-size:.78em;border:1px solid var(--line-strong);border-bottom-width:2px;border-radius:6px;padding:.05em .4em;background:var(--surface-2);margin-left:.3em}.help{position:fixed;inset:auto 1rem 5.5rem auto;background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius);padding:1rem 1.2rem;box-shadow:var(--shadow-lift);z-index:35}.help ul{margin:0;padding-left:1.1rem;color:var(--muted);line-height:1.8}.filters{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end;margin:.8rem 0}.filters label{display:flex;flex-direction:column;gap:.25rem;font-size:.84rem;color:var(--muted);flex:1 1 9rem}.first-run{background:var(--accent-soft);border-color:transparent;box-shadow:none;margin-bottom:1.5rem}.first-run ol{margin:0;padding-left:1.2rem}.first-run li{padding:.4rem 0}@media(max-width:479px){.activity-row,.review-head{flex-wrap:wrap}.thumb{width:100%}}.queue,.queue li,.lib-row,.activity-row,.review-head,.family-card{min-width:0;overflow-wrap:anywhere}@media(max-width:479px){.queue>li>button:not(.ghost):not(.btn),.lib-row{flex-direction:column;align-items:stretch}.queue>li>button .thumb,.lib-row .thumb,.review-head .thumb{width:100%}.lib-row input[type=checkbox]{align-self:flex-start}}.qr-wrap{display:flex;justify-content:center;margin:.5rem 0}.qr{width:min(15rem,70vw);height:auto;border-radius:.5rem;background:#fff}.row.center{justify-content:center}
