:root{--ink: #16181b;--muted: #666c74;--line: #e0e3e7;--soft: #f6f7f9;--accent: #1f5f9e;--green: #2b7a4b;--green-bg: #eaf4ee;--blue: #1f5f9e;--blue-bg: #e9f0f8;--purple: #63499e;--purple-bg: #eeeaf8;--amber: #a86e17;--amber-bg: #fbf2e2;--red: #b0342b;--red-bg: #fbecea;--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;--radius: 10px;--radius-sm: 6px}*,*:before,*:after{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:var(--font);color:var(--ink);background:var(--soft);font-size:14px;line-height:1.5}h1,h2,h3,h4{margin:0;font-weight:650;letter-spacing:-.2px;text-wrap:balance}h1{font-size:20px}h2{font-size:16px}p{margin:0}a{color:var(--accent)}svg{flex-shrink:0}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100%}.sidebar{background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:16px 12px;gap:4px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;padding:4px 8px 16px;font-weight:700;font-size:15px}.brand-mark{display:block;flex-shrink:0}.auth-head span.brand-mark{width:44px;height:44px;border-radius:12px;background:#3b66d1;color:#fff;display:grid;place-items:center}.nav-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;color:var(--ink);text-decoration:none;font-weight:500}.nav-item:hover{background:var(--soft)}.nav-item.active{background:var(--blue-bg);color:var(--accent)}.nav-item svg{color:var(--muted)}.nav-item.active svg{color:var(--accent)}.sidebar-foot{margin-top:auto;border-top:1px solid var(--line);padding-top:12px;display:flex;align-items:center;gap:10px}.sidebar-foot .who{min-width:0;flex:1}.sidebar-foot .name{font-weight:600;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.content{padding:24px 32px 64px;min-width:0}.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;flex-wrap:wrap}.page-head .sub{color:var(--muted);font-size:13px;margin-top:2px}.nav{display:flex;flex-direction:column;gap:2px}.sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:4px}.sidebar-head .brand{padding-bottom:4px}.sidebar-head{margin-bottom:12px}.mobile-bar,.drawer-backdrop,.icon-btn.drawer-close{display:none}body.no-scroll{overflow:hidden}@media(max-width:720px){.app{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr}.mobile-bar{display:flex;align-items:center;gap:8px;position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line);padding:calc(8px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 8px max(12px,env(safe-area-inset-left,0px))}.mobile-bar .brand{padding:0}.sidebar{position:fixed;inset:0 auto 0 0;z-index:40;width:min(280px,85vw);height:100%;transform:translate(-100%);transition:transform .2s ease;box-shadow:none;padding-left:max(12px,env(safe-area-inset-left,0px))}.sidebar.open{transform:none;box-shadow:0 0 40px #16181b33}.icon-btn.drawer-close{display:inline-grid}.desktop-only{display:none}.drawer-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;background:#16181b59}.content{padding:16px max(16px,env(safe-area-inset-right,0px)) 48px max(16px,env(safe-area-inset-left,0px))}}@media(max-width:720px)and (prefers-reduced-motion:reduce){.sidebar{transition:none}}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius)}.card-pad{padding:18px 20px}.card+.card,.card+.card-grid{margin-top:16px}.stack>.card+.card{margin-top:0}.card-title{display:flex;align-items:center;gap:8px;padding:14px 20px;border-bottom:1px solid var(--line);font-weight:600}.stack{display:flex;flex-direction:column;gap:12px}.row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.spacer{flex:1}.muted{color:var(--muted)}.small{font-size:12px}.mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;color:var(--muted)}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13.5px}th{text-align:left;color:var(--muted);font-weight:600;font-size:12px;padding:10px 16px;border-bottom:1px solid var(--line);background:#fcfdfe;white-space:nowrap}td{padding:10px 16px;border-bottom:1px solid var(--line);vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover td{background:#fbfcfd}td.actions{text-align:right;white-space:nowrap}.tag{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:20px;font-size:12px;font-weight:600;white-space:nowrap;border:1px solid}.t-grey{background:var(--soft);color:var(--muted);border-color:var(--line)}.t-blue{background:var(--blue-bg);color:var(--blue);border-color:#c5d8ec}.t-green{background:var(--green-bg);color:var(--green);border-color:#c2dfcd}.t-amber{background:var(--amber-bg);color:var(--amber);border-color:#ecd9b4}.t-red{background:var(--red-bg);color:var(--red);border-color:#eecac6}.t-purple{background:var(--purple-bg);color:var(--purple);border-color:#d3c9ee}.dot{width:8px;height:8px;border-radius:50%;display:inline-block}.dot.green{background:var(--green)}.dot.amber{background:var(--amber)}.dot.red{background:var(--red)}.dot.grey{background:#b8bec6}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 14px;border-radius:8px;border:1px solid var(--accent);background:var(--accent);color:#fff;font:inherit;font-weight:500;cursor:pointer;white-space:nowrap}.btn:hover{filter:brightness(1.07)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.ghost{background:#fff;border-color:var(--line);color:var(--ink)}.btn.ghost:hover{background:var(--soft);filter:none}.btn.warn{background:var(--red);border-color:var(--red)}.btn.ok{background:var(--green);border-color:var(--green)}.btn.block{width:100%}.icon-btn{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--muted);cursor:pointer}.icon-btn:hover{background:var(--soft);color:var(--ink);border-color:var(--line)}.icon-btn.danger:hover{background:var(--red-bg);color:var(--red);border-color:#eecac6}.field{display:flex;flex-direction:column;gap:5px}.field>span{font-size:12px;color:var(--muted);font-weight:500}.input-wrap{position:relative;display:flex;align-items:center}.input-wrap>svg{position:absolute;left:10px;color:var(--muted);pointer-events:none}.inp{width:100%;border:1px solid var(--line);border-radius:8px;background:#fff;font:inherit;padding:8px 10px;color:var(--ink)}.input-wrap .inp{padding-left:34px}.inp:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--blue-bg)}select.inp{padding-right:28px}.inp.compact{width:auto;padding:5px 8px;font-size:13px}.alert{display:flex;gap:8px;align-items:flex-start;border-radius:8px;padding:10px 12px;font-size:13px;border:1px solid}.alert.error{background:var(--red-bg);border-color:#eecac6;color:#7a2620}.alert.info{background:var(--blue-bg);border-color:#c5d8ec;color:#1a4874}.alert.ok{background:var(--green-bg);border-color:#c2dfcd;color:#1e5735}.auth{min-height:100%;display:grid;place-items:center;padding:24px 16px}.auth .card{width:100%;max-width:380px}.auth-head{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:20px;text-align:center}.checks{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px;font-size:12.5px}.checks li{display:flex;align-items:center;gap:6px;color:var(--muted)}.checks li.pass{color:var(--green)}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;background:var(--blue-bg);color:var(--accent);flex-shrink:0}.avatar.lawyer{background:var(--purple-bg);color:var(--purple)}.avatar.admin{background:var(--amber-bg);color:var(--amber)}.person{display:flex;align-items:center;gap:10px;min-width:0}.person .name{font-weight:600}dialog.modal{border:0;border-radius:14px;padding:0;width:min(460px,calc(100vw - 32px));box-shadow:0 20px 60px #16181b2e}dialog.modal::backdrop{background:#16181b59}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--line)}.modal-body{padding:18px 20px;display:flex;flex-direction:column;gap:14px}.modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid var(--line)}.toasts{position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:8px;z-index:50}.toast{display:flex;align-items:center;gap:8px;background:var(--ink);color:#fff;padding:10px 14px;border-radius:10px;font-size:13px;box-shadow:0 8px 24px #0000002e;animation:toast-in .18s ease-out}.toast.error{background:var(--red)}@keyframes toast-in{0%{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}@media(prefers-reduced-motion:reduce){.toast{animation:none}}.empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:40px 16px;color:var(--muted);text-align:center}.empty svg{color:#b8bec6}.skeleton{height:14px;border-radius:6px;background:linear-gradient(90deg,var(--soft),#eceff2,var(--soft));background-size:200% 100%;animation:shimmer 1.2s infinite}@keyframes shimmer{to{background-position:-200% 0}}.steps{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.step{display:flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:13px}.step .n{width:20px;height:20px;border-radius:50%;background:var(--blue-bg);color:var(--accent);display:grid;place-items:center;font-size:11px;font-weight:700}.chips{display:flex;gap:6px;flex-wrap:wrap}.chip{border:1px solid var(--line);background:#fff;border-radius:20px;padding:4px 11px;font:inherit;font-size:12.5px;cursor:pointer;color:var(--ink)}.chip:hover{background:var(--soft)}.chip[aria-pressed=true]{background:var(--blue-bg);border-color:#c5d8ec;color:var(--accent);font-weight:600}tr.clickable{cursor:pointer}.num{font-weight:650;font-variant-numeric:tabular-nums}.card-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:16px;align-items:start}.card-grid>.stack{gap:16px}@media(max-width:1000px){.card-grid{grid-template-columns:minmax(0,1fr)}}.drop{border:1.5px dashed #c8ced5;border-radius:var(--radius);padding:22px 16px;text-align:center;color:var(--muted);cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:6px;background:#fcfdfe;transition:background .15s,border-color .15s}.drop:hover,.drop.over{border-color:var(--accent);background:var(--blue-bg);color:var(--accent)}.drop input{display:none}.files{list-style:none;margin:0;padding:0}.files li{display:flex;align-items:center;gap:10px;padding:9px 20px;border-top:1px solid var(--line)}.files li:first-child{border-top:0}.files .meta{min-width:0;flex:1}.files .fname{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.files .ficon{color:var(--muted)}.folder-row{padding:8px 20px 4px;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px;border-top:1px solid var(--line)}progress.progress{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:4px;border:0;border-radius:4px;overflow:hidden;margin-top:4px;background:var(--soft)}progress.progress::-webkit-progress-bar{background:var(--soft)}progress.progress::-webkit-progress-value{background:var(--accent);transition:width .2s}progress.progress::-moz-progress-bar{background:var(--accent)}.timeline{list-style:none;margin:0;padding:16px 20px 18px}.timeline li{position:relative;padding:0 0 16px 20px;--dot: #b8bec6}.timeline li:last-child{padding-bottom:0}.timeline li:before{content:"";position:absolute;left:0;top:6px;width:8px;height:8px;border-radius:50%;background:var(--dot)}.timeline li:after{content:"";position:absolute;left:3.5px;top:20px;bottom:4px;width:1px;background:var(--line)}.timeline li:last-child:after{display:none}.timeline li.tone-blue{--dot: var(--blue)}.timeline li.tone-green{--dot: var(--green)}.timeline li.tone-amber{--dot: var(--amber)}.timeline li.tone-red{--dot: var(--red)}.timeline li.tone-purple{--dot: var(--purple)}.timeline .tl-title{font-weight:500}.timeline .tl-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:2px 0}.timeline .when{font-size:12px;color:var(--muted)}textarea.inp{resize:vertical;min-height:72px}.form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px 16px}.form-grid .wide{grid-column:1 / -1}.field .req{color:var(--red)}.field small{font-size:12px}.field small.err{color:var(--red)}.field.invalid .inp{border-color:var(--red)}.ro{padding:6px 0;font-weight:500}.seg{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;width:fit-content}.seg-btn{border:0;background:#fff;padding:7px 18px;font:inherit;cursor:pointer;color:var(--ink)}.seg-btn+.seg-btn{border-left:1px solid var(--line)}.seg-btn.on{background:var(--blue-bg);color:var(--accent);font-weight:600}.group{display:flex;flex-direction:column;gap:12px}.group-item{border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px;background:#fcfdfe}.group-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.slots{display:flex;flex-direction:column}.slot{padding:12px 20px;border-top:1px solid var(--line);transition:background .15s}.slot:first-child{border-top:0}.slot.over{background:var(--blue-bg)}.slot-head{display:flex;align-items:center;gap:10px}.slot-title{flex:1;min-width:0;font-weight:500}.slot-req{margin-left:8px}.ok-icon{color:var(--green)}.req-icon{color:var(--red)}.slot-files{list-style:none;margin:8px 0 0 28px;padding:0;display:flex;flex-direction:column;gap:2px}.slot-files li{display:flex;align-items:center;gap:8px;font-size:13px}.slot-files .fname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slot-files progress{width:120px}.sticky-col{min-width:0}.todo{margin:0;padding-left:20px;font-size:13px;display:flex;flex-direction:column;gap:2px}.ok-text{color:var(--green);font-weight:600}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spin{animation:none}}@media(max-width:720px){.btn-label{display:none}.slot{padding:12px 16px}}.steps-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.steps-list li{display:flex;align-items:center;gap:8px;font-size:13.5px}.steps-list li.pending{color:var(--muted)}.accent{color:var(--accent)}.warn-icon{color:var(--amber)}.title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.light{font-weight:650;font-size:13px}.light.green{color:var(--green)}.light.red{color:var(--red)}.risk-low{color:var(--green);font-weight:600}.risk-medium{color:var(--amber);font-weight:600}.risk-high{color:var(--red);font-weight:600}.report .card-title{font-weight:600;font-size:14px}.risk-tag.risk-low{background:var(--green-bg);border-color:var(--green)}.risk-tag.risk-medium{background:var(--amber-bg);border-color:var(--amber)}.risk-tag.risk-high{background:var(--red-bg);border-color:var(--red)}.report-sections{margin:0;padding:6px 20px 18px;display:flex;flex-direction:column}.report-sections dt{color:var(--muted);font-size:12px;font-weight:600;padding-top:12px}.report-sections dt:not(:first-of-type){border-top:1px solid var(--line);margin-top:12px}.report-sections dd{margin:4px 0 0;min-width:0}.findings.notes{gap:4px}.decision-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.decision.attention{border-color:#ecd9b4;background:var(--amber-bg)}.decision-text{white-space:pre-wrap;font-size:14px}.findings{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.findings li{display:flex;gap:8px;align-items:flex-start;font-size:13px}.findings li>div{min-width:0}.findings .muted{overflow-wrap:anywhere}.list-controls{display:flex;flex-direction:column;gap:10px;padding:14px 20px;border-bottom:1px solid var(--line)}.lc-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.lc-search{flex:1 1 240px;min-width:0}.lc-sort{width:auto}.lc-panel{display:flex;flex-direction:column;gap:12px;padding:12px 14px;background:var(--soft);border-radius:var(--radius)}.lc-title{font-size:12px;color:var(--muted);font-weight:600;margin-bottom:6px}.btn.pressed{background:var(--blue-bg);border-color:#c5d8ec;color:var(--accent)}.badge{background:var(--accent);color:#fff;border-radius:10px;font-size:11px;padding:0 6px;min-width:18px;text-align:center}.th-sort{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:4px;font-weight:600}.th-sort:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.th-sort.on{color:var(--ink)}.lc-more{display:flex;align-items:center;gap:12px;justify-content:center;border-top:1px solid var(--line)}.flow-diagram{display:block;margin:0 auto;font-family:var(--font)}.fd-edge{fill:none;stroke:#c8ced5;stroke-width:1.4;stroke-linejoin:round}.fd-edge.back{stroke-dasharray:4 4}.fd-edge.walked{stroke:var(--accent);stroke-width:2.4;stroke-dasharray:none}.fd-head{fill:#c8ced5}.fd-head.on{fill:var(--accent)}.fd-node rect{fill:#fff;stroke:var(--line);stroke-width:1.2}.fd-node text{font-size:12px;fill:var(--muted);font-weight:500}.fd-node.visited rect{stroke-width:1.5}.fd-node.visited text{fill:var(--ink);font-weight:600}.fd-node.visited.tone-grey rect{fill:var(--soft);stroke:#c8ced5}.fd-node.visited.tone-blue rect{fill:var(--blue-bg);stroke:var(--blue)}.fd-node.visited.tone-green rect{fill:var(--green-bg);stroke:var(--green)}.fd-node.visited.tone-amber rect{fill:var(--amber-bg);stroke:var(--amber)}.fd-node.visited.tone-red rect{fill:var(--red-bg);stroke:var(--red)}.fd-node.visited.tone-purple rect{fill:var(--purple-bg);stroke:var(--purple)}.fd-node.current rect{stroke-width:3}.fd-now{font-size:11px;fill:var(--accent)!important;font-weight:600}.flow-card .card-pad{display:flex;flex-direction:column;gap:14px}.flow-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.flow-legend i{display:inline-block;width:18px;height:0;border-top:2.4px solid var(--accent);vertical-align:middle;margin-right:6px}.flow-legend i.back{border-top:1.4px dashed #c8ced5}.boot{min-height:100%;display:grid;place-items:center;animation:boot-in .4s ease .15s both}@keyframes boot-in{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.boot{animation:none}}.fd-state{font-size:11px;fill:var(--muted)}.fd-node.step-done rect{fill:var(--green-bg);stroke:var(--green)}.fd-node.step-done text:first-of-type{fill:var(--ink);font-weight:600}.fd-node.step-running rect{fill:var(--blue-bg);stroke:var(--accent);stroke-width:3}.fd-node.step-running text:first-of-type{fill:var(--ink);font-weight:600}.fd-node.step-running .fd-state{fill:var(--accent);font-weight:700}.fd-node.step-waiting rect,.fd-node.step-retry rect{fill:var(--amber-bg);stroke:var(--amber)}.fd-node.step-failed rect,.fd-node.step-halted rect{fill:var(--red-bg);stroke:var(--red)}.flow-sub{font-size:12px;color:var(--muted);font-weight:600;margin:4px 0 0}.verdict.green{border-color:#c2dfcd;background:var(--green-bg)}.verdict.red{border-color:#eecac6;background:var(--red-bg)}.verdict-list{margin:0;padding-left:20px;font-size:13.5px;display:flex;flex-direction:column;gap:2px}.mtx{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.mt{border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:#fcfdfe;display:flex;flex-direction:column;text-decoration:none;color:inherit}.mt b{font-size:22px;font-weight:700;line-height:1.2;letter-spacing:-.3px;font-variant-numeric:tabular-nums}.mt span{font-size:12px;color:var(--muted)}.mt.good b{color:var(--green)}.mt.bad b{color:var(--red)}.mt.warn b{color:var(--amber)}.mt.link:hover{border-color:var(--accent);background:var(--blue-bg)}.profile-head{margin-bottom:16px}.actions-list{list-style:none;margin:0;padding:4px 20px 14px;display:flex;flex-direction:column;gap:8px}.actions-list li{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.verdict.note{border-color:#c5d8ec;background:var(--blue-bg)}.decision-note{background:var(--amber-bg);border:1px solid #ecd9b4;border-radius:8px;padding:10px 12px;font-size:13.5px;white-space:pre-wrap}.auth-foot{text-align:center;margin:12px 0 0}.role-pick,.pick{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}.role-opt,.pick-opt{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff;font:inherit;cursor:pointer;color:inherit}.role-opt.on,.pick-opt.on{border-color:var(--accent);background:var(--blue-bg);color:var(--accent);font-weight:600}.pick{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}.settings-list{display:flex;flex-direction:column}.setting{display:flex;align-items:center;gap:16px;padding:14px 20px;border-top:1px solid var(--line);flex-wrap:wrap}.setting:first-child{border-top:0}.setting.off{opacity:.55}.setting-text{flex:1 1 260px;min-width:0}.inp.money{width:160px;text-align:right}.switch{width:42px;height:24px;border-radius:12px;border:0;background:var(--line);position:relative;cursor:pointer;padding:0;transition:background .15s}.switch span{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:transform .15s}.switch.on{background:var(--green)}.switch.on span{transform:translate(18px)}.period{position:relative}.period-pop{position:absolute;z-index:30;top:calc(100% + 6px);left:0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 8px 24px #141e321f;padding:8px;width:min(300px,calc(100vw - 32px));display:flex;flex-direction:column;gap:8px}.period-presets{display:flex;flex-direction:column}.period-opt{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;border:0;background:none;border-radius:var(--radius-sm);font:inherit;color:inherit;cursor:pointer;text-align:left}.period-opt:hover{background:var(--soft)}.period-opt svg{color:var(--accent)}.period-custom{border-top:1px solid var(--line);padding:10px 6px 4px;display:flex;flex-direction:column;gap:6px}.period-custom .inp{flex:1;min-width:0}.comments{display:flex;flex-direction:column;padding:16px 20px 18px}.comments .timeline{padding:0}.c-cycle+.c-cycle{border-top:1px solid var(--line);margin-top:16px;padding-top:14px}.c-cycle-head{font-size:12px;font-weight:600;color:var(--muted);margin-bottom:10px}.overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}.overview>.card,.overview>a.card{margin:0}.ov-wide,.overview>.attention-link{grid-column:1 / -1}.ov-card{display:flex;flex-direction:column}.ov-card>.card-pad{flex:1}.ov-label{font-size:12px;font-weight:600;color:var(--muted)}.mtx-2{grid-template-columns:repeat(2,minmax(0,1fr))}.mtx-3{grid-template-columns:repeat(3,minmax(0,1fr))}.ov-wide .mtx{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.attention-link{text-decoration:none;color:var(--amber);background:var(--amber-bg);border-color:#ecd9b4;gap:8px}.bars{list-style:none;margin:0 0 8px;padding:0;display:flex;flex-direction:column;gap:8px}.bars li{display:grid;grid-template-columns:minmax(0,190px) 1fr 40px;align-items:center;gap:10px}.bars li a{text-decoration:none;min-width:0}.bars b{text-align:right;font-variant-numeric:tabular-nums}.bar{width:100%;height:8px;background:var(--soft);border-radius:4px}.bar rect{fill:var(--accent)}.bar rect.tone-green{fill:var(--green)}.bar rect.tone-red{fill:var(--red)}.bar rect.tone-amber{fill:var(--amber)}.bar rect.tone-purple{fill:var(--purple)}.bar rect.tone-grey{fill:var(--muted)}.compact-table{width:100%}.compact-table th,.compact-table td{padding:8px;font-size:13px;vertical-align:top}.rank{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.rank li{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}.rank li:last-child{border-bottom:0}.rank-who{display:flex;flex-direction:column;min-width:0}.rank-who .mono{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-val{font-weight:700;font-variant-numeric:tabular-nums;text-decoration:none}.chart{display:flex;flex-direction:column;gap:6px;min-width:0}.chart-legend{display:flex;gap:14px;flex-wrap:wrap;color:var(--muted)}.chart-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;vertical-align:-1px}.chart-legend i.c-created,rect.c-created{background:#9db3d6;fill:#9db3d6}.chart-legend i.c-sent,rect.c-sent{background:var(--accent);fill:var(--accent)}.chart-legend i.c-decisions,rect.c-decisions{background:var(--purple);fill:var(--purple)}.chart-x{font-size:10px;fill:var(--muted)}.chart-axis{stroke:var(--line)}@media(max-width:900px){.overview{grid-template-columns:minmax(0,1fr)}}@media(max-width:640px){.bars li{grid-template-columns:minmax(0,1fr) 80px 32px}.mtx-3{grid-template-columns:repeat(2,minmax(0,1fr))}}.bell,.bell .icon-btn{position:relative}.bell-badge{position:absolute;top:-3px;right:-4px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--red);color:#fff;font-size:10.5px;font-weight:700;line-height:17px;text-align:center}.bell-pop{position:absolute;z-index:50;top:calc(100% + 6px);width:min(380px,calc(100vw - 24px));max-height:min(520px,70vh);display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 10px 30px #141e3229}.bell-pop.left{left:0}.bell-pop.right{right:0}.bell-head{display:flex;align-items:center;gap:6px;padding:10px 12px;border-bottom:1px solid var(--line)}.bell-empty{padding:24px 16px;text-align:center}.bell-list{list-style:none;margin:0;padding:4px;overflow-y:auto}.bell-item{width:100%;display:flex;flex-direction:column;gap:2px;text-align:left;padding:10px 10px 10px 18px;border:0;border-radius:8px;background:none;font:inherit;color:inherit;cursor:pointer;position:relative}.bell-item:hover{background:var(--soft)}.bell-item.unread:before{content:"";position:absolute;left:7px;top:16px;width:6px;height:6px;border-radius:50%;background:var(--accent)}.bell-item.unread .bell-title{font-weight:650}.bell-title{font-size:13.5px}.bell-body{font-size:12.5px;color:var(--muted);white-space:pre-line;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.prefs-table{width:100%}.prefs-table th,.prefs-table td{padding:10px 16px}.prefs-table .center{text-align:center;width:140px;white-space:nowrap}.prefs-table th.center svg{vertical-align:-2px}.btns{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
