:root{--accent-soft:var(--soft-green);--paper:#f7f8fb;--white:#fff;--ink:#303344;--muted:#808596;--line:#e7e9f0;--green:#7960bb;--soft-green:#eee8f8;--sidebar:#f1f2f8;--surface:#fff;--surface-alt:#fafbfe;--accent:#7960bb;--orange:#c58a56;--soft-orange:#fff2e8;--soft-red:#faecec;--red:#bd5a61;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color-scheme:light}
:root[data-theme=dark]{--paper:#1d1f29;--white:#282b38;--ink:#e8e9f3;--muted:#a0a5b8;--line:#3b3e50;--green:#b29be9;--soft-green:#393047;--sidebar:#242631;--surface:#282b38;--surface-alt:#252834;--accent:#b29be9;--soft-orange:#47362c;--soft-red:#472f36;--red:#e598a2;color-scheme:dark}
.workspace-brand-icon{width:29px;height:29px;color:var(--accent);flex-shrink:0}.brand{font-size:22px;letter-spacing:-.8px}.sidebar .brand{font-size:21px;padding-left:3px;gap:7px}.brand-mark{display:none}
.topbar{background:var(--surface)}.btn,.icon-btn,.card,.detail-section,.summary-strip,.table-wrap,.dropdown,.notification-panel,.work-card,.big-action,.structure-panel{background:var(--surface);border-color:var(--line)}
.btn:hover,.icon-btn:hover,.dropdown button:hover,.requests tbody tr:hover{background:var(--surface-alt)}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn.primary:hover{background:#6a50ac}.btn.danger{color:var(--red)}.btn.ghost{background:transparent}
[data-theme=dark] .btn.primary{color:#201a2c}[data-theme=dark] .btn.primary:hover{background:#c2aff0}
input,textarea,select,.search-input input{background:var(--surface-alt);color:var(--ink);border-color:var(--line)}input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #8873cf18}input::placeholder,textarea::placeholder{color:var(--muted)}
.space-switch,.role-select{background:var(--surface);border-color:var(--line);color:var(--ink)}.space-switch .space-logo{background:var(--soft-green);color:var(--accent)}.space-switch small,.date,.nav-label,.user-card small,.breadcrumbs{color:var(--muted)}.breadcrumbs b{color:var(--ink)}
.nav-item{color:var(--muted)}.nav-item.active,.nav-item:hover{background:var(--soft-green);color:var(--accent)}.nav-item .nav-count{background:var(--surface);color:var(--accent)}.sidebar-bottom .help-card,.user-card{border-color:var(--line)}.help-card,.help-card strong,.user-card button{color:var(--muted)}
.avatar{background:var(--soft-green);color:var(--accent)}.avatar.peach{background:var(--soft-orange);color:#b4815c}.avatar.lilac{background:var(--soft-green);color:var(--accent)}
.summary-item .summary-name,.summary-item .summary-value small,.summary-item .icon{color:var(--muted)}.summary-item.alert .summary-value,.summary-item.alert .icon{color:var(--red)}
.queue{color:var(--muted)}.queue.active{color:var(--accent);border-color:var(--accent)}.queue span,.queue.active span{background:var(--soft-green);color:var(--accent)}
.requests th{background:var(--surface-alt);color:var(--muted)}.requests td{border-color:var(--line)}.req-sub,.req-id,.address-cell,.address-cell small,.assignee,.unassigned,.deadline,.overdue-toggle,.table-footer,.context-note{color:var(--muted)}.deadline.late{color:var(--red)}.page-number{background:var(--soft-green);color:var(--accent);border-color:var(--line)}
.pill{background:var(--surface-alt);color:var(--muted)}.pill.green{background:#e9f3ee;color:#4d7b63}.pill.blue{background:#edeafb;color:#8269bb}.pill.orange{background:var(--soft-orange);color:#ad754b}.pill.red{background:var(--soft-red);color:var(--red)}
[data-theme=dark] .pill.green{background:#2c4037;color:#9ac5ae}[data-theme=dark] .pill.blue{background:#37314d;color:#c0abea}
.description,.notice-banner p,.big-action small{color:var(--muted)}.message-body,.notice-banner,.report-note,.welcome-note,.readonly-value,.big-action:first-child{background:var(--soft-green);color:var(--ink);border-color:var(--line)}.message-body strong,.notice-banner strong,.big-action strong{color:var(--ink)}.icon-box{background:var(--soft-green);color:var(--accent)}
.timeline-item{border-color:var(--line)}.timeline-item small{color:var(--muted)}.tree-root.active,.tree-unit.active{background:var(--soft-green);color:var(--accent)}.tree-unit,.detail-meta code{color:var(--muted)}.tree-unit:hover{background:var(--surface-alt)}.dropzone{background:var(--soft-green);border-color:var(--accent);color:var(--accent)}.toggle.on{background:var(--accent)}
.bottom-nav{background:var(--surface)}.bottom-nav button{color:var(--muted)}.bottom-nav button.active{color:var(--accent)}.chat-tabs button{color:var(--muted)}.chat-tabs button.active{color:var(--accent);border-color:var(--accent)}.notification-panel h3{color:var(--ink)}
@media(max-width:600px){.top-actions{gap:7px}.role-select{font-size:9px;padding:7px}.mobile-brand .brand{font-size:18px;gap:5px}.mobile-brand .workspace-brand-icon{width:25px;height:25px}.top-actions>.icon-btn{width:28px;height:30px}.summary-strip{padding:16px 2px}.content{padding-top:24px}.page-heading h1{font-size:27px}}
