:root,[data-theme=light]{--bg:#f4f6fa;--surface:#fff;--surface-2:#f8fafc;--surface-3:#f1f4f9;--hover:#f3f6fb;--line:#e4e8ef;--line-strong:#d4dae4;--ink:#0f172a;--ink-2:#334155;--muted:#64748b;--faint:#94a3b8;--accent:#1563e8;--accent-hover:#0f55cc;--accent-soft:#1563e814;--accent-soft-2:#1563e824;--accent-ink:#1456c9;--ok:#059669;--ok-soft:#0596691a;--warn:#b45309;--warn-soft:#f59e0b1f;--danger:#dc2626;--danger-soft:#dc262614;--shadow-sm:0 1px 2px #0f172a0d;--shadow:0 1px 2px #0f172a0a, 0 4px 16px #0f172a0d;--shadow-lg:0 24px 60px -12px #0f172a47;--topbar-bg:#ffffffd1;--skeleton:#eceff4;--skeleton-2:#f5f7fa;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}[data-theme=dark]{--bg:#0a0d14;--surface:#10141d;--surface-2:#131926;--surface-3:#171e2c;--hover:#161d2a;--line:#1e2635;--line-strong:#2a3446;--ink:#e7ecf4;--ink-2:#c3ccda;--muted:#8a96aa;--faint:#5f6b80;--accent:#4b8bff;--accent-hover:#6a9fff;--accent-soft:#4b8bff1a;--accent-soft-2:#4b8bff2e;--accent-ink:#8fb6ff;--ok:#34d399;--ok-soft:#34d3991f;--warn:#fbbf24;--warn-soft:#fbbf241a;--danger:#f87171;--danger-soft:#f871711a;--shadow-sm:0 1px 2px #0000004d;--shadow:0 1px 2px #0000004d, 0 6px 20px #00000038;--shadow-lg:0 24px 70px -10px #000000b3;--topbar-bg:#0c1018d1;--skeleton:#1a2130;--skeleton-2:#222b3c;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;color:var(--ink);-webkit-font-smoothing:antialiased;font-feature-settings:"cv11", "ss01";margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:13px;line-height:1.45}button,input,select,textarea{font:inherit;color:inherit}a{color:inherit}h1,h2,h3,h4,p{margin:0}.icon{flex:none}.muted{color:var(--muted)}.mono{font-variant-numeric:tabular-nums;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:12px}::selection{background:var(--accent-soft-2)}@keyframes spin{to{transform:rotate(360deg)}}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes busy{0%{transform:translate(-100%)}to{transform:translate(300%)}}@keyframes pop{0%{opacity:0;transform:translateY(6px)scale(.98)}to{opacity:1;transform:none}}@keyframes fade{0%{opacity:0}to{opacity:1}}.boot-screen{background:radial-gradient(1200px 500px at 50% -10%, var(--accent-soft), transparent 60%), var(--bg);place-items:center;min-height:100vh;padding:24px;display:grid}.boot-card{background:var(--surface);border:1px solid var(--line);width:min(400px,100%);box-shadow:var(--shadow);text-align:center;border-radius:16px;padding:28px 28px 24px;animation:.2s pop}.boot-logo{border-radius:12px;width:44px;height:44px}.boot-card strong{margin-top:10px;font-size:15px;font-weight:650;display:block}.boot-card>span{color:var(--muted);font-size:12px;display:block}.boot-card p,.boot-card small{color:var(--muted);display:block}.boot-card p{margin-top:6px}.boot-card small{color:var(--faint);margin-top:4px;font-size:12px}.boot-card h1{margin:18px 0 6px;font-size:17px;font-weight:650}.boot-action{background:var(--accent);color:#fff;border-radius:9px;align-items:center;height:34px;margin-top:18px;padding:0 16px;font-weight:600;text-decoration:none;display:inline-flex}.boot-action:hover{background:var(--accent-hover)}.boot-spinner{border:2px solid var(--line-strong);border-top-color:var(--accent);border-radius:50%;width:22px;height:22px;margin:20px auto 10px;animation:.7s linear infinite spin}.shell{min-height:100vh}.topbar{z-index:30;background:var(--topbar-bg);-webkit-backdrop-filter:saturate(180%)blur(14px);border-bottom:1px solid var(--line);align-items:center;gap:12px;height:52px;padding:0 16px;display:flex;position:sticky;top:0}.brand{border-radius:8px;width:30px;height:30px;transition:transform .15s;display:inline-flex;overflow:hidden}.brand:hover{transform:scale(1.06)}.brand img{object-fit:cover;width:100%;height:100%}.topbar-divider{background:var(--line-strong);width:1px;height:20px}.app-title{flex-direction:column;line-height:1.2;display:flex}.app-title strong{letter-spacing:-.01em;font-size:13.5px;font-weight:650}.app-title span{color:var(--muted);font-size:11.5px}.topbar-spacer{flex:1}.userchip{border:1px solid var(--line);background:var(--surface);border-radius:999px;align-items:center;gap:9px;padding:3px 10px 3px 3px;display:flex}.userchip-text{flex-direction:column;min-width:0;line-height:1.2;display:flex}.userchip-text b{white-space:nowrap;text-overflow:ellipsis;max-width:200px;font-size:12.5px;font-weight:600;overflow:hidden}.userchip-text small{color:var(--muted);font-size:11px}.avatar{color:#fff;letter-spacing:.02em;background:linear-gradient(135deg,#3b82f6,#6366f1);border-radius:50%;flex:none;place-items:center;width:28px;height:28px;font-size:11px;font-weight:700;display:inline-grid;overflow:hidden}.avatar img{object-fit:cover;width:100%;height:100%}.theme-toggle{border:1px solid var(--line);background:var(--surface);color:#f59e0b;cursor:pointer;border-radius:999px;justify-content:center;align-items:center;width:32px;height:32px;padding:0;transition:border-color .16s,background .16s,color .18s,transform .18s;display:inline-flex;position:relative;overflow:hidden}.theme-toggle:hover,.theme-toggle:focus-visible{border-color:color-mix(in srgb, var(--accent) 36%, var(--line));outline:none}.theme-toggle.is-dark{color:#93c5fd;background:color-mix(in srgb, #3b82f6 16%, var(--surface))}.theme-toggle__icon{transition:transform .22s,opacity .18s;animation:.22s both themeIconMorph;display:inline-flex}.theme-toggle:active .theme-toggle__icon{transform:scale(.84)rotate(-18deg)}@keyframes themeIconMorph{0%{opacity:0;transform:scale(.72)rotate(-24deg)}to{opacity:1;transform:scale(1)rotate(0)}}.workspace{grid-template-columns:248px minmax(0,1fr);min-height:calc(100vh - 52px);display:grid}.sidenav{border-right:1px solid var(--line);background:var(--surface);flex-direction:column;gap:2px;height:calc(100vh - 52px);padding:16px 10px;display:flex;position:sticky;top:52px;overflow-y:auto}.sidenav-label{color:var(--faint);text-transform:uppercase;letter-spacing:.06em;padding:6px 10px;font-size:11px;font-weight:600}.sidenav-sep{background:var(--line);height:1px;margin:10px 8px}.sidenav-foot{border-top:1px solid var(--line);margin-top:auto;padding-top:10px}.nav-link{height:34px;color:var(--ink-2);border-radius:8px;align-items:center;gap:10px;padding:0 10px;font-weight:500;text-decoration:none;transition:background .12s,color .12s;display:flex;position:relative}.nav-link .icon{color:var(--muted);transition:color .12s}.nav-link span{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.nav-link em{color:var(--muted);background:var(--surface-3);font-variant-numeric:tabular-nums;border-radius:999px;padding:1px 7px;font-size:11px;font-style:normal;font-weight:600}.nav-link:hover{background:var(--hover);color:var(--ink)}.nav-link.active{background:var(--accent-soft);color:var(--accent-ink);font-weight:600}.nav-link.active .icon{color:var(--accent)}.nav-link.active em{background:var(--accent-soft-2);color:var(--accent-ink)}.nav-link.subtle{color:var(--muted);font-weight:500}.stage{min-width:0;padding:24px 28px 48px}.page{max-width:1480px;margin:0 auto;animation:.16s fade}.page-head{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:16px;display:flex}.page-head h1{letter-spacing:-.02em;font-size:20px;font-weight:700;line-height:1.25}.page-head p{color:var(--muted);max-width:720px;margin-top:4px}.page-actions{flex:none;gap:8px;display:flex}.btn{border:1px solid var(--line-strong);background:var(--surface);height:32px;color:var(--ink);cursor:pointer;white-space:nowrap;box-shadow:var(--shadow-sm);border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:0 12px;font-size:13px;font-weight:550;text-decoration:none;transition:background .12s,border-color .12s,color .12s,box-shadow .12s;display:inline-flex}.btn:hover:not(:disabled){background:var(--hover);border-color:var(--faint)}.btn:focus-visible,.icon-btn:focus-visible,.select:focus-visible{outline:2px solid var(--accent-soft-2);outline-offset:1px}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 1px 2px #1563e84d}.btn-primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.btn-danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn-danger:hover:not(:disabled){background:color-mix(in srgb, var(--danger) 88%, #000);border-color:#0000}.btn-ghost{box-shadow:none;color:var(--muted);background:0 0;border-color:#0000}.btn-ghost:hover:not(:disabled){background:var(--hover);color:var(--ink);border-color:#0000}.btn-active{border-color:color-mix(in srgb, var(--accent) 45%, var(--line));color:var(--accent-ink);background:var(--accent-soft)}.btn-sm{height:28px;padding:0 10px;font-size:12.5px}.btn-block{width:100%}.btn-count{background:var(--accent);color:#fff;border-radius:999px;place-items:center;min-width:18px;height:18px;padding:0 5px;font-size:11px;font-style:normal;display:inline-grid}.icon-btn{width:30px;height:30px;color:var(--muted);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:7px;place-items:center;transition:background .12s,color .12s;display:inline-grid}.icon-btn:hover:not(:disabled){background:var(--hover);color:var(--ink)}.icon-btn:disabled{opacity:.35;cursor:not-allowed}.icon-btn-sm{border-radius:6px;width:24px;height:24px}.link-btn{color:var(--accent-ink);cursor:pointer;background:0 0;border:0;padding:0;font-weight:550}.link-btn:hover{text-decoration:underline}.link-btn:disabled{color:var(--faint);cursor:default;text-decoration:none}.input,.select{border:1px solid var(--line-strong);background:var(--surface);width:100%;height:32px;color:var(--ink);border-radius:8px;padding:0 10px;transition:border-color .12s,box-shadow .12s}.input:focus,.select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);outline:none}.select{appearance:none;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat;width:auto;min-width:150px;padding-right:30px}.field .select{width:100%}.select-narrow{min-width:110px}.org-select{border-radius:999px;min-width:0;max-width:260px;height:32px;padding-left:14px;font-weight:550}.searchbox{border:1px solid var(--line-strong);background:var(--surface);min-width:200px;height:32px;color:var(--faint);border-radius:8px;flex:0 340px;align-items:center;gap:8px;padding:0 8px 0 10px;transition:border-color .12s,box-shadow .12s;display:flex;position:relative}.searchbox:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);color:var(--accent)}.searchbox input{min-width:0;height:100%;color:var(--ink);background:0 0;border:0;outline:0;flex:1}.searchbox input::placeholder{color:var(--faint)}.searchbox-clear{background:var(--surface-3);width:20px;height:20px;color:var(--muted);cursor:pointer;border:0;border-radius:5px;place-items:center;display:grid}.segmented{background:var(--surface-3);border:1px solid var(--line);border-radius:9px;gap:2px;padding:2px;display:inline-flex}.segmented button{height:26px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:7px;padding:0 11px;font-size:12.5px;font-weight:550;transition:color .12s,background .12s}.segmented button:hover{color:var(--ink)}.segmented button.active{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sm), 0 0 0 1px var(--line)}.toolbar{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px;display:flex}.toolbar-spacer{flex:1}.tabs{border-bottom:1px solid var(--line);gap:4px;margin-bottom:16px;display:flex}.tab{height:38px;color:var(--muted);align-items:center;gap:7px;padding:0 12px;font-weight:550;text-decoration:none;transition:color .12s;display:inline-flex;position:relative}.tab:hover{color:var(--ink)}.tab em{background:var(--surface-3);color:var(--muted);border-radius:999px;padding:1px 7px;font-size:11px;font-style:normal;font-weight:600}.tab.active{color:var(--ink)}.tab.active:after{content:"";background:var(--accent);border-radius:2px;height:2px;position:absolute;bottom:-1px;left:8px;right:8px}.tab.active .icon{color:var(--accent)}.tab.active em{background:var(--accent-soft-2);color:var(--accent-ink)}.panel{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:12px;position:relative;overflow:hidden}.panel+.panel{margin-top:12px}.panel-soft{box-shadow:none;background:var(--surface-2);padding:14px 16px}.panel-title{color:var(--ink-2);margin-bottom:10px;font-weight:600}.panel.is-busy:before,.groups.is-busy:before{content:"";z-index:2;background:linear-gradient(90deg, transparent, var(--accent), transparent);width:33%;height:2px;animation:1s ease-in-out infinite busy;position:absolute;top:0;left:0}.groups{position:relative}.table-wrap{overflow-x:auto}table.data{border-collapse:separate;border-spacing:0;width:100%}table.data th{z-index:1;background:var(--surface-2);border-bottom:1px solid var(--line);height:36px;color:var(--muted);text-align:left;letter-spacing:.02em;white-space:nowrap;padding:0 14px;font-size:11.5px;font-weight:600;position:sticky;top:0}table.data td{border-bottom:1px solid var(--line);vertical-align:middle;padding:9px 14px}table.data tbody tr:last-child td{border-bottom:0}table.data tbody tr{transition:background .1s}table.data:not(.grid) tbody tr:hover{background:var(--hover)}table.data tr.is-archived .cell-title{color:var(--muted)}table.data.grid td{vertical-align:top}table.data.grid td,table.data.grid th+th{border-left:1px solid var(--line)}table.data.grid td.cell-first{border-left:0}table.data.grid tbody td[rowspan]{background:var(--surface)}table.data.compact th{height:30px;padding:0 10px}table.data.compact td{padding:7px 10px;font-size:12.5px}.col-id{width:72px;color:var(--muted)}.col-num{width:110px;text-align:right!important}.col-date{white-space:nowrap;width:130px}.col-actions{text-align:right;width:84px}.col-role{width:220px;min-width:180px}.cell-title,.cell-group{font-weight:550}.row-actions{opacity:.55;gap:2px;transition:opacity .12s;display:inline-flex}tr:hover .row-actions{opacity:1}.count{background:var(--surface-3);min-width:26px;color:var(--ink-2);text-align:center;font-variant-numeric:tabular-nums;border-radius:999px;padding:1px 8px;font-size:12px;font-weight:600;display:inline-block}.badge{white-space:nowrap;vertical-align:middle;border-radius:6px;align-items:center;height:20px;margin-left:8px;padding:0 7px;font-size:11px;font-weight:600;display:inline-flex}.badge-muted{background:var(--surface-3);color:var(--muted)}.badge-accent{background:var(--accent-soft);color:var(--accent-ink);margin-left:0;font-size:12px;font-weight:550}.badge-ok{background:var(--ok-soft);color:var(--ok)}.tag-list{flex-wrap:wrap;gap:4px;display:flex}.tag{border:1px solid var(--line);background:var(--surface-2);height:22px;color:var(--ink-2);white-space:nowrap;border-radius:6px;align-items:center;padding:0 8px;font-size:12px;display:inline-flex}.tag-more{color:var(--muted)}.pill{background:var(--accent-soft);height:20px;color:var(--accent-ink);white-space:nowrap;border-radius:999px;flex:none;align-items:center;padding:0 8px;font-size:11px;font-weight:600;display:inline-flex}.pill-muted{background:var(--surface-3);color:var(--faint)}.pager{border-top:1px solid var(--line);min-height:44px;color:var(--muted);background:var(--surface);justify-content:space-between;align-items:center;gap:12px;padding:6px 10px 6px 14px;font-size:12.5px;display:flex}.pager-buttons{align-items:center;gap:4px;display:flex}.pager-page{font-variant-numeric:tabular-nums;justify-content:center;align-items:center;gap:6px;min-width:48px;padding:0 4px;display:inline-flex}.pager-top{border-top:0;border-bottom:1px solid var(--line)}.pager-input{border:1px solid var(--line-strong);background:var(--surface-2);width:52px;height:28px;color:var(--ink);font:inherit;font-variant-numeric:tabular-nums;text-align:center;border-radius:7px;padding:0 6px}.pager-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);outline:none}.pager-of{white-space:nowrap}.skeleton{background:linear-gradient(90deg, var(--skeleton) 25%, var(--skeleton-2) 50%, var(--skeleton) 75%);background-size:200% 100%;border-radius:5px;height:10px;animation:1.3s linear infinite shimmer;display:block}.skeleton.tall{border-radius:8px;height:64px}.skeleton-row td{height:42px}.skeleton-card{pointer-events:none;flex-direction:column;gap:10px;display:flex}.empty{text-align:center;flex-direction:column;align-items:center;gap:6px;padding:56px 24px;display:flex}.empty-icon{background:var(--accent-soft);width:44px;height:44px;color:var(--accent);border-radius:12px;place-items:center;margin-bottom:6px;display:grid}.empty strong{font-size:14px;font-weight:650}.empty p{max-width:420px;color:var(--muted)}.empty .btn{margin-top:10px}.chips{flex-wrap:wrap;align-items:center;gap:6px;margin:-4px 0 12px;display:flex}.chip{background:var(--accent-soft);height:26px;color:var(--accent-ink);border-radius:999px;align-items:center;gap:4px;padding:0 4px 0 10px;font-size:12px;font-weight:550;display:inline-flex}.chip-label{color:var(--muted);font-weight:500}.chip button{width:18px;height:18px;color:inherit;cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;display:grid}.chip button:hover{background:var(--accent-soft-2)}.callout{border:1px solid var(--line);background:var(--surface-2);color:var(--ink-2);border-radius:9px;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 0 12px;padding:10px 12px;display:flex}.modal-body .callout{margin:12px 0 0}.callout-warn{border-color:color-mix(in srgb, var(--warn) 30%, transparent);background:var(--warn-soft);color:var(--warn)}.callout-error{border-color:color-mix(in srgb, var(--danger) 30%, transparent);background:var(--danger-soft);color:var(--danger)}.hint-box{border:1px dashed var(--line-strong);color:var(--muted);border-radius:8px;padding:10px 12px;font-size:12.5px}.binding{grid-template-columns:284px minmax(0,1fr);align-items:start;gap:16px;display:grid}.catalog{border:1px solid var(--line);background:var(--surface);max-height:calc(100vh - 88px);box-shadow:var(--shadow);border-radius:12px;flex-direction:column;gap:10px;padding:14px;display:flex;position:sticky;top:68px}.catalog-head{justify-content:space-between;align-items:center;display:flex}.catalog-head h3{font-size:13.5px;font-weight:650}.catalog .searchbox{flex:none;min-width:0}.catalog-list{flex-direction:column;gap:6px;margin:0 -4px;padding:2px 4px;display:flex;overflow-y:auto}.workcard{border:1px solid var(--line);background:var(--surface);cursor:grab;-webkit-user-select:none;user-select:none;border-radius:9px;align-items:flex-start;gap:8px;padding:9px 10px;transition:border-color .12s,box-shadow .12s,transform .12s,background .12s;display:flex}.workcard:hover{border-color:color-mix(in srgb, var(--accent) 40%, var(--line));box-shadow:var(--shadow-sm)}.workcard:active{cursor:grabbing}.workcard.active{border-color:var(--accent);background:var(--accent-soft)}.workcard.dragging{opacity:.5;transform:scale(.98)}.workcard-grip{color:var(--faint);padding-top:1px}.workcard-body{flex-direction:column;gap:2px;min-width:0;display:flex}.workcard-body b{overflow-wrap:anywhere;font-weight:600;line-height:1.3}.meta{color:var(--muted);font-size:11.5px}.catalog-empty{color:var(--muted);flex-direction:column;align-items:flex-start;gap:8px;padding:12px;display:flex}.catalog-tip{background:var(--surface-2);color:var(--muted);border-radius:8px;gap:8px;padding:10px;font-size:12px;line-height:1.4;display:flex}.catalog-tip .icon{color:var(--accent);margin-top:1px}.board{min-width:0}.focus-bar{background:var(--accent-soft);color:var(--accent-ink);border-radius:9px;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;padding:8px 8px 8px 12px;display:flex}.group+.group{margin-top:20px}.group-head{align-items:baseline;gap:10px;margin-bottom:10px;display:flex}.group-head h4{color:var(--ink-2);text-transform:uppercase;letter-spacing:.04em;font-size:12px;font-weight:650}.group-head .muted{font-size:12px}.cardgrid{grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px;display:grid}.subcard{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-sm);border-radius:12px;flex-direction:column;gap:8px;padding:12px;transition:border-color .14s,box-shadow .14s,transform .14s;display:flex}.subcard header{align-items:flex-start;gap:10px;display:flex}.subcard-icon{background:var(--surface-3);width:30px;height:30px;color:var(--muted);border-radius:8px;flex:none;place-items:center;display:grid}.subcard-title{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.subcard-title b{text-overflow:ellipsis;white-space:nowrap;font-weight:650;line-height:1.3;overflow:hidden}.subcard-title small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;overflow:hidden}.subcard-label{color:var(--faint);text-transform:uppercase;letter-spacing:.05em;font-size:11px;font-weight:600}.drop{border:1px dashed var(--line-strong);background:var(--surface-2);border-radius:9px;flex-direction:column;gap:6px;min-height:58px;padding:6px;transition:border-color .12s,background .12s;display:flex}.drop-empty{color:var(--faint);text-align:center;flex:1;place-items:center;padding:8px;font-size:12px;display:grid}.drop-hint{display:none}.binding.is-dragging .subcard .drop{border-color:color-mix(in srgb, var(--accent) 45%, var(--line))}.binding.is-dragging .drop-hint{color:var(--accent-ink);text-align:center;place-items:center;padding:8px;font-size:12px;font-weight:550;display:grid}.subcard.over{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft), var(--shadow);transform:translateY(-1px)}.subcard.over .drop{border-style:solid;border-color:var(--accent);background:var(--accent-soft)}.linked{border:1px solid var(--line);background:var(--surface);border-radius:7px;justify-content:space-between;align-items:center;gap:8px;padding:6px 6px 6px 10px;animation:.16s pop;display:flex}.linked>div{flex-direction:column;min-width:0;display:flex}.linked b{overflow-wrap:anywhere;font-size:12.5px;font-weight:600}.linked.active{border-color:var(--accent)}.subcard .btn-ghost{height:28px;color:var(--accent-ink);font-size:12.5px}.subcard .btn-ghost:hover:not(:disabled){background:var(--accent-soft);color:var(--accent-ink)}.work-link{color:var(--accent-ink);text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:5px;padding:0;font-weight:600;display:inline-flex}.work-link .icon{opacity:0;transition:opacity .12s}.work-link:hover{text-decoration:underline}.work-link:hover .icon{opacity:1}.role-cell{text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:7px;flex-wrap:wrap;gap:4px;width:100%;min-height:28px;margin:-3px;padding:3px;transition:border-color .12s,background .12s;display:flex}.role-cell:hover,.role-cell.open{border-color:var(--line-strong);background:var(--surface-2)}.role-cell.open{border-color:var(--accent)}.role-cell.saving{cursor:progress;opacity:.6}.role-empty{height:22px;color:var(--faint);align-items:center;gap:4px;padding:0 6px;font-size:12px;display:inline-flex}.role-cell:hover .role-empty{color:var(--accent-ink)}.person{background:var(--accent-soft);height:22px;color:var(--accent-ink);white-space:nowrap;border-radius:6px;align-items:center;padding:0 8px;font-size:12px;font-weight:550;display:inline-flex}.person.archived{background:var(--surface-3);color:var(--muted);text-decoration:line-through}.popover-veil{z-index:60;position:fixed;inset:0}.popover{z-index:61;border:1px solid var(--line);background:var(--surface);width:280px;box-shadow:var(--shadow-lg);border-radius:12px;flex-direction:column;gap:8px;padding:10px;animation:.14s pop;display:flex;position:fixed}.popover-head{color:var(--faint);text-transform:uppercase;letter-spacing:.05em;padding:0 2px;font-size:11px;font-weight:600}.popover .searchbox{flex:none;min-width:0}.popover-foot{border-top:1px solid var(--line);align-items:center;gap:6px;padding-top:8px;display:flex}.checklist{flex-direction:column;gap:2px;max-height:300px;margin-top:8px;display:flex;overflow-y:auto}.checklist.compact{max-height:200px;margin-top:0}.check-row{cursor:pointer;border-radius:7px;align-items:center;gap:10px;min-height:32px;padding:4px 8px;transition:background .1s;display:flex}.check-row:hover{background:var(--hover)}.check-row.checked{background:var(--accent-soft)}.check-row span{flex:1;min-width:0}.check-row small{color:var(--muted);font-size:11.5px}.check-row input{width:15px;height:15px;accent-color:var(--accent);margin:0}.backdrop{z-index:50;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#080c1480;place-items:center;padding:24px;animation:.14s fade;display:grid;position:fixed;inset:0}.modal{border:1px solid var(--line);background:var(--surface);width:min(520px,100%);max-height:calc(100vh - 48px);box-shadow:var(--shadow-lg);border-radius:14px;flex-direction:column;animation:.16s pop;display:flex}.modal-sm{width:min(420px,100%)}.modal-lg{width:min(1040px,100%)}.modal.rule-dialog{width:min(680px,100%)}.modal-head{justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 16px 12px 20px;display:flex}.modal-head h2{letter-spacing:-.01em;font-size:15px;font-weight:650}.modal-head p{color:var(--muted);margin-top:3px;font-size:12.5px}.modal-body{padding:4px 20px 16px;overflow-y:auto}.modal-foot{border-top:1px solid var(--line);background:var(--surface-2);border-radius:0 0 14px 14px;justify-content:flex-end;align-items:center;gap:8px;padding:12px 20px;display:flex}.modal-text{color:var(--ink-2);line-height:1.55}.field{flex-direction:column;gap:6px;margin-top:12px;display:flex}.field:first-child{margin-top:0}.field label{color:var(--ink-2);font-size:12px;font-weight:600}.label-hint{color:var(--faint);margin-left:4px;font-weight:500}.field-error{color:var(--danger);font-size:12px}.form-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.form-grid.three{grid-template-columns:repeat(3,1fr)}.form-grid .field{margin-top:0}.form-grid+.form-grid{margin-top:12px}.span-2{grid-column:span 2}.rule-layout{grid-template-columns:minmax(0,1fr) 300px;gap:20px;display:grid}.section-title{color:var(--faint);text-transform:uppercase;letter-spacing:.05em;margin-bottom:10px;font-size:11px;font-weight:600}.party-box{border:1px solid var(--line);background:var(--surface-2);border-radius:9px;flex-direction:column;gap:6px;padding:8px;display:flex}.party-box .searchbox{flex:none;min-width:0}.switch-line{border:1px solid var(--line);cursor:pointer;border-radius:9px;align-items:flex-start;gap:10px;margin-top:14px;padding:10px 12px;display:flex}.switch-line input{opacity:0;pointer-events:none;position:absolute}.switch{background:var(--line-strong);border-radius:999px;flex:none;width:32px;height:18px;margin-top:1px;transition:background .15s;position:relative}.switch:after{content:"";background:#fff;border-radius:50%;width:14px;height:14px;transition:transform .15s;position:absolute;top:2px;left:2px;box-shadow:0 1px 2px #00000040}.switch-line input:checked+.switch{background:var(--accent)}.switch-line input:checked+.switch:after{transform:translate(14px)}.switch-line b{font-weight:600;display:block}.switch-line small{color:var(--muted);margin-top:2px;font-size:12px;display:block}.preview{border:1px solid color-mix(in srgb, var(--accent) 30%, var(--line));background:var(--accent-soft);border-radius:10px;margin-top:14px;padding:12px;animation:.16s pop}.preview-stats{grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:8px;display:grid}.preview-stats div{background:var(--surface);border-radius:8px;flex-direction:column;padding:8px 10px;display:flex}.preview-stats b{font-variant-numeric:tabular-nums;font-size:18px;font-weight:700}.preview-stats span{color:var(--muted);font-size:11.5px}.preview-stats .accent b{color:var(--accent)}.preview table{border:1px solid var(--line);background:var(--surface);border-radius:8px;margin-top:8px;overflow:hidden}.rule-list{border-left:1px solid var(--line);flex-direction:column;gap:8px;padding-left:20px;display:flex}.rule-card{border:1px solid var(--line);background:var(--surface-2);border-radius:10px;flex-direction:column;gap:5px;padding:10px 12px;display:flex}.rule-card.active{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.rule-card.off{opacity:.65}.rule-card-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.rule-card-head .badge{margin-left:0}.rule-card-line{color:var(--ink-2);font-size:12px}.rule-card-line span{min-width:96px;color:var(--muted);display:inline-block}.rule-card-actions{gap:6px;margin-top:4px;display:flex}.rule-rows{flex-direction:column;gap:8px;margin-top:14px;display:flex}.rule-row{border:1px solid var(--line);background:var(--surface);width:100%;color:var(--ink);text-align:left;cursor:pointer;border-radius:10px;align-items:center;gap:12px;padding:12px 14px;transition:border-color .12s,background .12s;display:flex}.rule-row:hover{border-color:var(--line-strong);background:var(--surface-2)}.rule-row.off{opacity:.62}.rule-row-main{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.rule-row-main b{font-weight:650}.rule-row-main span{color:var(--muted);font-size:12.5px}.rule-row .icon{color:var(--faint);flex:none}.form-block{margin-top:18px}.form-block h3{font-size:13.5px;font-weight:650}.form-block>p{color:var(--muted);margin:2px 0 10px;font-size:12.5px}.choice-row{grid-template-columns:1fr 1fr;gap:8px;display:grid}.choice{border:1px solid var(--line);cursor:pointer;border-radius:10px;flex-direction:column;gap:3px;padding:10px 12px;display:flex;position:relative}.choice.on{border-color:var(--accent);background:var(--accent-soft)}.choice input{opacity:0;pointer-events:none;position:absolute}.choice b{font-weight:620}.choice small{color:var(--muted);font-size:12px;line-height:1.4}.toast{z-index:80;background:var(--ink);max-width:420px;color:var(--bg);box-shadow:var(--shadow-lg);border-radius:10px;align-items:center;gap:9px;padding:10px 14px;font-weight:550;animation:.18s pop;display:flex;position:fixed;bottom:20px;right:20px}.toast-ok .icon{color:#34d399}.toast-error .icon{color:#f87171}@media (width<=1180px){.binding{grid-template-columns:244px minmax(0,1fr);gap:12px}.stage{padding:20px 20px 40px}}@media (width<=960px){.binding{grid-template-columns:1fr}.catalog{max-height:none;position:static}.catalog-list{flex-direction:row;overflow-x:auto}.workcard{min-width:220px}.rule-layout{grid-template-columns:1fr}.rule-list{border-left:0;padding-left:0}}@media (width<=860px){.workspace{grid-template-columns:1fr}.sidenav{border-right:0;border-bottom:1px solid var(--line);flex-flow:wrap;height:auto;padding:8px;position:static}.sidenav-label,.sidenav-sep,.sidenav-foot{display:none}.stage{padding:16px}.userchip-text,.app-title span{display:none}.form-grid,.form-grid.three{grid-template-columns:1fr}.span-2{grid-column:auto}}
