:root{--bg:#f2f4f8;--surface:#fff;--surface-2:#f7f8fb;--ink:#141b33;--muted:#5a6382;--faint:#8c93ad;--line:#e1e5ef;--line-strong:#cbd1e1;--primary:#2b3fd6;--primary-ink:#fff;--primary-soft:#e8ebff;--mark:#ffe066;--mark-ink:#2a2300;--ok:#157a52;--ok-soft:#e3f5ec;--warn:#9a5b00;--warn-soft:#fff1d6;--bad:#b4352a;--bad-soft:#fce7e4;--info:#3657a8;--info-soft:#e6edfb;--stage:#e6e9f1;--shadow:0 1px 2px #141b330f, 0 8px 28px #141b3314;--f-display:"Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;--f-body:"Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;--f-mono:"IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;--t-xs:.75rem;--t-sm:.8125rem;--t-md:.9375rem;--t-lg:1.125rem;--t-xl:1.375rem;--t-2xl:1.75rem;--t-3xl:2.25rem;--t-4xl:3rem;--r-sm:6px;--r-md:10px;--r-lg:16px;--r-xl:22px}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#0e1322;--surface:#161c2f;--surface-2:#1b2238;--ink:#e9ecf6;--muted:#a3aac4;--faint:#7a82a0;--line:#262e47;--line-strong:#343d5c;--primary:#8e9bff;--primary-ink:#0e1322;--primary-soft:#232b52;--mark:#f5d547;--mark-ink:#221c00;--ok:#5bd19b;--ok-soft:#123326;--warn:#f2b65a;--warn-soft:#36280f;--bad:#ff8a7d;--bad-soft:#3a1915;--info:#9db6ff;--info-soft:#1c2647;--stage:#0a0e1a;--shadow:0 1px 2px #0006, 0 10px 30px #00000059;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#0e1322;--surface:#161c2f;--surface-2:#1b2238;--ink:#e9ecf6;--muted:#a3aac4;--faint:#7a82a0;--line:#262e47;--line-strong:#343d5c;--primary:#8e9bff;--primary-ink:#0e1322;--primary-soft:#232b52;--mark:#f5d547;--mark-ink:#221c00;--ok:#5bd19b;--ok-soft:#123326;--warn:#f2b65a;--warn-soft:#36280f;--bad:#ff8a7d;--bad-soft:#3a1915;--info:#9db6ff;--info-soft:#1c2647;--stage:#0a0e1a;--shadow:0 1px 2px #0006, 0 10px 30px #00000059;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}svg.lucide{flex:none;width:18px;height:18px}html,body{height:100%}body{background:var(--bg);color:var(--ink);font:400 var(--t-md)/1.5 var(--f-body);-webkit-font-smoothing:antialiased;margin:0}h1,h2,h3,h4{font-family:var(--f-display);text-wrap:balance;letter-spacing:-.01em;margin:0;line-height:1.15}p{margin:0}a{color:var(--primary);text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.mono{font-family:var(--f-mono);font-variant-numeric:tabular-nums;letter-spacing:0;white-space:nowrap}.nowrap{white-space:nowrap}.num{font-variant-numeric:tabular-nums}.muted{color:var(--muted)}.faint{color:var(--faint)}.eyebrow{font-size:var(--t-xs);text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:600}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}.logo{font:700 1.15rem var(--f-display);color:var(--ink);letter-spacing:-.02em;align-items:center;gap:9px;display:inline-flex}.logo-mark{background:var(--ink);border-radius:9px;place-items:center;width:30px;height:30px;display:grid;position:relative;overflow:hidden}.logo-mark:before,.logo-mark:after{content:"";background:var(--surface);border-radius:2px;height:2.5px;position:absolute;left:7px;right:7px}.logo-mark:before{box-shadow:0 10px 0 var(--surface);top:9px}.logo-mark:after{background:var(--mark);height:4px;top:14px;left:5px;right:5px}.logo b{background:var(--mark);color:var(--mark-ink);border-radius:4px;margin-left:1px;padding:0 4px;font-weight:700}.btn{border-radius:var(--r-md);height:44px;font-weight:600;font-size:var(--t-md);cursor:pointer;white-space:nowrap;border:1px solid #0000;justify-content:center;align-items:center;gap:8px;padding:0 18px;transition:transform 80ms,background .15s;display:inline-flex}.btn:active{transform:translateY(1px)}.btn svg{width:18px;height:18px}.btn-primary{background:var(--primary);color:var(--primary-ink)}.btn-primary:hover{filter:brightness(1.06)}.btn-ghost{border-color:var(--line-strong);color:var(--ink);background:0 0}.btn-ghost:hover{background:var(--surface-2)}.btn-soft{background:var(--primary-soft);color:var(--primary)}.btn-danger{background:var(--bad-soft);color:var(--bad)}.btn-sm{height:34px;font-size:var(--t-sm);border-radius:var(--r-sm);padding:0 12px}.btn-block{width:100%}.btn-link{color:var(--primary);cursor:pointer;background:0 0;border:0;height:auto;padding:0;font-weight:600}.field{flex-direction:column;gap:6px;display:flex}.field label{font-size:var(--t-sm);font-weight:600}.field .hint{font-size:var(--t-xs);color:var(--muted)}.field .err{font-size:var(--t-xs);color:var(--bad)}.input,.select,.textarea{border:1.5px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface);outline:none;width:100%;height:48px;padding:0 14px}.textarea{resize:vertical;height:auto;min-height:120px;padding:12px 14px}.input:focus,.select:focus,.textarea:focus{border-color:var(--primary);box-shadow:0 0 0 4px var(--primary-soft)}.input.big{height:60px;font:500 1.5rem var(--f-mono);letter-spacing:.04em;text-align:center}.input.is-ok{border-color:var(--ok)}.input.is-bad{border-color:var(--bad)}.otp{grid-template-columns:repeat(6,1fr);gap:8px;display:grid}.otp .input{text-align:center;height:56px;font:600 1.4rem var(--f-mono);padding:0}.check{font-size:var(--t-sm);align-items:flex-start;gap:10px;display:flex}.check input{width:18px;height:18px;accent-color:var(--primary);flex:none;margin-top:2px}.switch{background:var(--line-strong);border-radius:13px;flex:none;width:44px;height:26px;position:relative}.switch:after{content:"";background:#fff;border-radius:50%;width:20px;height:20px;position:absolute;top:3px;left:3px;box-shadow:0 1px 2px #0003}.switch.on{background:var(--primary)}.switch.on:after{left:21px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg)}.pad{padding:16px}.pad-lg{padding:24px}.stack{flex-direction:column;display:flex}.row{align-items:center;display:flex}.wrap{flex-wrap:wrap}.between{justify-content:space-between}.g4{gap:4px}.g8{gap:8px}.g12{gap:12px}.g16{gap:16px}.g24{gap:24px}.g32{gap:32px}.grow{flex:1;min-width:0}.divider{background:var(--line);height:1px}.chip{height:24px;font-size:var(--t-xs);white-space:nowrap;border-radius:999px;align-items:center;gap:5px;padding:0 9px;font-weight:600;display:inline-flex}.chip svg{width:13px;height:13px}.chip-ok{background:var(--ok-soft);color:var(--ok)}.chip-warn{background:var(--warn-soft);color:var(--warn)}.chip-bad{background:var(--bad-soft);color:var(--bad)}.chip-info{background:var(--info-soft);color:var(--info)}.chip-neutral{background:var(--surface-2);color:var(--muted);border:1px solid var(--line)}.chip-mark{background:var(--mark);color:var(--mark-ink)}.hl{background:linear-gradient(104deg, transparent 0 2%, var(--mark) 3% 97%, transparent 98%);color:var(--mark-ink);-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:2px;padding:0 .2em}.slip{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);color:var(--ink);grid-template-columns:68px minmax(0,1fr);gap:14px;padding:14px;display:grid}.slip-date{border-radius:var(--r-md);background:var(--surface-2);border:1px solid var(--line);flex-direction:column;justify-content:center;align-items:center;padding:8px 0;display:flex}.slip-date .m{text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-size:11px;font-weight:600}.slip-date .d{font:700 1.9rem/1 var(--f-display)}.slip-date .h{font:500 11px var(--f-mono);color:var(--muted);margin-top:3px}.slip.is-next .slip-date{background:var(--mark);border-color:#0000}.slip.is-next .slip-date .m,.slip.is-next .slip-date .h,.slip.is-next .slip-date .d{color:var(--mark-ink)}.slip-title{font-weight:600;font-size:var(--t-md);line-height:1.3}.slip-meta{font-size:var(--t-sm);color:var(--muted);flex-wrap:wrap;gap:4px 12px;margin-top:4px;display:flex}.slip-meta span{align-items:center;gap:4px;display:inline-flex}.slip-meta svg{width:14px;height:14px}.tl{flex-direction:column;gap:18px;padding-left:26px;display:flex;position:relative}.tl:before{content:"";background:var(--line);width:2px;position:absolute;top:6px;bottom:6px;left:8px}.tl-item{position:relative}.tl-item:before{content:"";background:var(--surface);border:3px solid var(--line-strong);border-radius:50%;width:14px;height:14px;position:absolute;top:5px;left:-24px}.tl-item.is-next:before{border-color:var(--mark-ink);background:var(--mark)}.tl-item.is-done:before{border-color:var(--ok);background:var(--ok)}.tl-item.is-moved:before{border-color:var(--warn)}.tl-item .when{font:500 var(--t-xs) var(--f-mono);color:var(--muted)}.tl-change{font-size:var(--t-xs);color:var(--warn);align-items:center;gap:6px;margin-top:4px;display:flex}.tl-change s{color:var(--faint)}.list{flex-direction:column;display:flex}.list-item{border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:14px 16px;display:flex}.list-item:last-child{border-bottom:0}.list-icon{background:var(--surface-2);width:38px;height:38px;color:var(--muted);border-radius:12px;flex:none;place-items:center;display:grid}.list-icon svg{width:19px;height:19px}.unread{background:var(--primary);border-radius:50%;flex:none;width:8px;height:8px}.m-head{background:var(--surface);border-bottom:1px solid var(--line);align-items:center;gap:10px;padding:12px 18px 14px;display:flex}.m-head h2{font-size:var(--t-lg)}.m-head .back{width:36px;height:36px;color:var(--ink);border-radius:10px;place-items:center;margin-left:-8px;display:grid}.m-content{flex-direction:column;gap:16px;padding:18px;display:flex}.icon-btn{width:38px;height:38px;color:var(--ink);background:var(--surface-2);border:1px solid var(--line);border-radius:10px;place-items:center;display:grid}.icon-btn svg,.m-head svg{width:20px;height:20px}.steps{grid-template-columns:repeat(5,1fr);gap:6px;display:grid}.steps i{background:var(--line);border-radius:2px;height:4px;display:block}.steps i.on{background:var(--primary)}.side{background:var(--surface);border-right:1px solid var(--line);flex-direction:column;flex:none;gap:4px;width:248px;padding:18px 12px;display:flex}.side .logo{padding:2px 8px 16px}.side-label{text-transform:uppercase;letter-spacing:.09em;color:var(--faint);padding:14px 10px 6px;font-size:11px;font-weight:600}.side a{border-radius:var(--r-sm);color:var(--muted);font-size:var(--t-sm);align-items:center;gap:10px;padding:8px 10px;font-weight:500;display:flex}.side a svg{width:18px;height:18px}.side a:hover{background:var(--surface-2);color:var(--ink)}.side a.on{background:var(--primary-soft);color:var(--primary);font-weight:600}.side a .count{font:600 11px var(--f-mono);background:var(--surface-2);color:var(--muted);border-radius:999px;margin-left:auto;padding:1px 7px}.side-foot{border-top:1px solid var(--line);align-items:center;gap:10px;margin-top:auto;padding:12px 10px 0;display:flex}.main{flex-direction:column;flex:1;min-width:0;display:flex}.topbar{background:var(--surface);border-bottom:1px solid var(--line);flex:none;align-items:center;gap:14px;height:60px;padding:0 24px;display:flex}.topbar .search{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-md);max-width:460px;height:38px;color:var(--faint);font-size:var(--t-sm);flex:1;align-items:center;gap:8px;padding:0 12px;display:flex}.topbar .search svg{width:16px;height:16px}.topbar .search kbd{font:500 11px var(--f-mono);border:1px solid var(--line-strong);border-radius:4px;margin-left:auto;padding:0 5px}.content{flex-direction:column;gap:20px;padding:24px;display:flex}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px;display:flex}.page-head h1{font-size:var(--t-2xl)}.page-head p{color:var(--muted);font-size:var(--t-sm);margin-top:4px}.avatar{background:var(--primary-soft);width:34px;height:34px;color:var(--primary);font:700 13px var(--f-display);border-radius:50%;flex:none;place-items:center;display:grid}.avatar.lg{width:56px;height:56px;font-size:18px}.table-wrap{overflow-x:auto}table.t{border-collapse:collapse;width:100%;font-size:var(--t-sm)}.t th{text-align:left;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);background:var(--surface-2);border-bottom:1px solid var(--line);white-space:nowrap;padding:10px 14px;font-size:11px;font-weight:600}.t td{border-bottom:1px solid var(--line);vertical-align:middle;padding:12px 14px}.t tr:last-child td{border-bottom:0}.t tr.is-mine td{background:color-mix(in srgb, var(--mark) 22%, transparent)}.t tbody tr:hover td{background:var(--surface-2)}.kpis{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;display:grid}.kpi{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:16px}.kpi .v{font:700 var(--t-3xl)/1.05 var(--f-display);font-variant-numeric:tabular-nums;margin-top:6px}.kpi .d{font-size:var(--t-xs);margin-top:6px}.tabs{border-bottom:1px solid var(--line);gap:4px;display:flex;overflow-x:auto}.tabs a{font-size:var(--t-sm);color:var(--muted);white-space:nowrap;border-bottom:2px solid #0000;margin-bottom:-1px;padding:10px 14px;font-weight:600}.tabs a.on{color:var(--primary);border-color:var(--primary)}.seg{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-md);gap:2px;padding:3px;display:inline-flex}.seg a{font-size:var(--t-sm);color:var(--muted);border-radius:7px;padding:6px 12px;font-weight:600}.seg a.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px #141b3314}.note{border-radius:var(--r-md);font-size:var(--t-sm);align-items:flex-start;gap:10px;padding:12px 14px;display:flex}.note svg{flex:none;width:18px;height:18px;margin-top:1px}.note-info{background:var(--info-soft);color:var(--info)}.note-warn{background:var(--warn-soft);color:var(--warn)}.note-ok{background:var(--ok-soft);color:var(--ok)}.note-bad{background:var(--bad-soft);color:var(--bad)}.chat{flex-direction:column;gap:16px;display:flex}.msg{max-width:760px}.msg.me{background:var(--primary-soft);color:var(--ink);border-radius:16px 16px 4px;align-self:flex-end;padding:12px 16px}.msg.ai{align-self:flex-start}.msg.ai .body{flex-direction:column;gap:10px;display:flex}.cite{font:600 11px var(--f-mono);background:var(--surface-2);border:1px solid var(--line-strong);color:var(--primary);vertical-align:1px;border-radius:5px;align-items:center;gap:3px;padding:0 5px;display:inline-flex}.tool-run{font-size:var(--t-xs);color:var(--muted);background:var(--surface-2);border:1px dashed var(--line-strong);border-radius:999px;align-items:center;gap:8px;padding:4px 10px;display:inline-flex}.tool-run svg{width:13px;height:13px}.bar{background:var(--line);border-radius:3px;height:6px;overflow:hidden}.bar>i{background:var(--primary);border-radius:3px;height:100%;display:block}.bar.mark>i{background:var(--mark)}.cols-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.cols-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;display:grid}.cols-main-side{grid-template-columns:minmax(0,1fr) 340px;gap:20px;display:grid}@media (width<=1100px){.cols-main-side,.cols-3{grid-template-columns:1fr}}@media (width<=760px){.cols-2{grid-template-columns:1fr}.side{display:none}}.pub-nav{align-items:center;gap:24px;padding:18px 40px;display:flex}.pub-nav nav{font-size:var(--t-sm);color:var(--muted);gap:22px;margin-left:auto;display:flex}.pub-nav nav a{color:var(--muted)}html{-webkit-text-size-adjust:100%}body,#app{min-height:100dvh}.app{background:var(--bg);flex-direction:column;max-width:560px;min-height:100dvh;margin:0 auto;display:flex;position:relative}@media (width>=600px){.app{border-left:1px solid var(--line);border-right:1px solid var(--line)}}body:before{content:"";height:env(safe-area-inset-top,0px);background:var(--surface);z-index:30;position:fixed;inset:0 0 auto}.m-head{top:env(safe-area-inset-top,0px);z-index:20;padding-left:max(18px, env(safe-area-inset-left,0px));padding-right:max(18px, env(safe-area-inset-right,0px));position:sticky}.page{padding:18px max(18px, env(safe-area-inset-right,0px)) calc(96px + env(safe-area-inset-bottom,0px)) max(18px, env(safe-area-inset-left,0px));flex-direction:column;flex:1;gap:16px;display:flex}.page.no-tabs{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}.hero{background:var(--surface);border-bottom:1px solid var(--line);padding:14px max(18px, env(safe-area-inset-right,0px)) 22px max(18px, env(safe-area-inset-left,0px))}.tabbar{z-index:25;background:var(--surface);border-top:1px solid var(--line);width:100%;max-width:560px;padding:8px max(6px, env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(6px, env(safe-area-inset-left,0px));grid-template-columns:repeat(4,1fr);display:grid;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.tabbar a{color:var(--faint);flex-direction:column;align-items:center;gap:2px;padding:2px 0;font-size:11px;display:flex;position:relative}.tabbar a.router-link-active{color:var(--primary);font-weight:600}.tabbar svg.lucide{width:22px;height:22px}.tabbar .dot{background:var(--bad);color:#fff;border-radius:8px;place-items:center;min-width:16px;height:16px;padding:0 4px;font-size:10px;font-weight:700;display:grid;position:absolute;top:-3px;left:calc(50% + 4px)}.btn[disabled],.btn.is-loading{opacity:.6;pointer-events:none}.spinner{border:2.5px solid;border-right-color:#0000;border-radius:50%;width:18px;height:18px;animation:.7s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.skeleton{background:linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2));border-radius:var(--r-md);background-size:200% 100%;animation:1.2s infinite shimmer}@keyframes shimmer{to{background-position:-200% 0}}.toast{left:50%;bottom:calc(92px + env(safe-area-inset-bottom,0px));z-index:60;background:var(--ink);color:var(--bg);font-size:var(--t-sm);box-shadow:var(--shadow);border-radius:12px;align-items:center;gap:8px;max-width:calc(100% - 32px);padding:11px 16px;font-weight:500;display:flex;position:fixed;transform:translate(-50%)}.offline-bar{background:var(--warn-soft);color:var(--warn);font-size:var(--t-xs);align-items:center;gap:8px;padding:8px 18px;font-weight:600;display:flex}.sheet-backdrop{z-index:70;background:#0a0e1a73;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);width:100%;max-width:560px;padding:20px max(18px, env(safe-area-inset-right,0px)) calc(22px + env(safe-area-inset-bottom,0px)) max(18px, env(safe-area-inset-left,0px));border-radius:20px 20px 0 0;flex-direction:column;gap:14px;display:flex}.empty{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:10px;padding:32px 12px;display:flex}.empty .list-icon{border-radius:18px;width:56px;height:56px}.empty .list-icon svg.lucide{width:26px;height:26px}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}a.slip:hover{border-color:var(--line-strong)}
