:root{--ops-shadow:0 12px 38px #1b415208;--ops-accent:#147f91}main{animation:page-arrive .3s cubic-bezier(.16,1,.3,1)}@keyframes page-arrive{from{opacity:.5;transform:translateY(7px)}to{opacity:1;transform:none}}.panel{margin-block:22px;padding:26px;box-shadow:var(--ops-shadow)}.ws-two .panel{margin:0}.ws-two{margin-bottom:24px;align-items:stretch}.ws-two+.panel{margin-top:26px}.panel p{margin-block:10px}.panel h2{margin-bottom:12px}.panel td{vertical-align:top}.panel td small{display:block}.panel input[type=file]{padding:13px;height:auto;background:var(--ws-soft)}.panel input[type=file]::file-selector-button{border:0;background:var(--ws-surface);color:var(--ws-text);padding:8px 12px;border-radius:7px;margin-right:12px}.panel select[multiple]{min-height:140px}.panel textarea{min-height:100px}.ws-form textarea[name=body]{min-height:190px}.app-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:22px;margin-top:24px}.app-grid .panel{margin:0}.app-card{display:flex;flex-direction:column;align-items:flex-start;gap:14px}.app-card small{color:var(--ws-muted)}.app-icon,.nav-icon{display:inline-grid!important;place-items:center;border-radius:24%;color:white!important;background:linear-gradient(145deg,#51c7c2,#1f7a9d);box-shadow:inset 0 1px 1px #ffffff70,0 4px 9px #0c567e22;border:1px solid #ffffff26;flex-shrink:0;transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s}.app-icon{font-size:26px;width:58px;height:58px}.app-icon.small{width:42px;height:42px;font-size:18px}.nav-icon{width:29px!important;height:29px!important;font-size:16px!important;opacity:1!important;margin-right:0!important}.nav-item{min-height:46px;gap:10px;transition:background .2s,transform .25s}.nav-item:nth-of-type(4n+2) .nav-icon{background:linear-gradient(145deg,#9599e8,#5b59a9)}.nav-item:nth-of-type(4n+3) .nav-icon{background:linear-gradient(145deg,#64c99e,#238c74)}.nav-item:nth-of-type(4n) .nav-icon{background:linear-gradient(145deg,#e9ac6a,#b87539)}.nav-item:hover .nav-icon,.folder-card:hover .folder-icon{transform:translateY(-2px) scale(1.13);box-shadow:0 8px 16px #12687825}.nav-item:active .nav-icon{transform:scale(.94)}.nav-item.active{background:var(--ws-soft)}.nav-item:focus-visible{outline-offset:1px}.detail-graph{display:grid;grid-template-columns:1fr auto;gap:8px;color:var(--ws-text)!important;padding:12px 0}.detail-graph>span{font-size:12px}.detail-graph strong{font-size:13px}.detail-graph>i{grid-column:1/-1;height:14px;border-radius:5px;background:var(--ws-soft);overflow:hidden}.detail-graph>i>b{display:block;height:100%;min-width:0;background:linear-gradient(90deg,#2487a3,#49bda9);border-radius:5px;transition:filter .2s}.detail-graph:hover i>b{filter:brightness(1.2)}.detail-graph:focus-visible{outline:2px solid var(--ws-accent)}.team-person{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--ws-border);padding:14px 0}.team-person small{display:block;font-size:11px}.document-preview{max-width:950px;margin-inline:auto;padding:45px}.document-total{display:block;border-bottom:2px solid var(--ws-accent);font-size:25px;margin:24px 0;padding-bottom:12px}.issuer{text-align:right;white-space:pre-line}.document-preview table{width:100%}.tree-viewport{width:100%;height:560px;overflow:auto;border:1px solid var(--ws-border);border-radius:12px;background:var(--ws-bg)}#tree-canvas{position:relative;width:4000px;height:3000px;background-image:radial-gradient(var(--ws-border) 1px,transparent 1px);background-size:20px 20px}#tree-lines{position:absolute;inset:0}.tree-node{position:absolute;width:190px;min-height:65px;max-height:180px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;border:1px solid var(--ws-border);border-radius:13px;background:var(--ws-surface);box-shadow:0 6px 16px #15384812;touch-action:none;cursor:grab;text-align:left}.tree-node.selected{outline:3px solid var(--ws-accent)}.tree-node:active{cursor:grabbing}.tree-line{stroke:var(--ws-accent);stroke-width:2.5;fill:none}.auth-body{background:radial-gradient(ellipse at 15% 15%,#def2ed 0,transparent 40%),radial-gradient(ellipse at 80% 80%,#e0e9f5 0,transparent 45%),#f5f8fa}.auth-layout{max-width:1220px;gap:90px}.auth-intro img{width:220px;margin-bottom:38px}.auth-intro h1{font-size:36px;line-height:1.55;color:#193d4b}.auth-intro>p{font-size:14px}.auth-panel{border:1px solid #fff;background:#ffffffdc;box-shadow:0 25px 80px #1d475315;border-radius:25px;padding:42px}.auth-panel h2{font-size:24px}.auth-panel input{width:100%;padding:14px;border-radius:10px;border:1px solid var(--ws-border);background:var(--ws-bg)}.auth-panel form>.button{padding:14px;background:#147f91;border-color:#147f91;color:#fff}.auth-feature{display:flex;gap:18px;align-items:center;margin-top:25px}.auth-feature .app-icon{width:43px;height:43px;font-size:22px}.auth-feature small{display:block;color:var(--ws-muted);font-size:11px;margin-top:3px}.files-shell{display:grid;grid-template-columns:200px minmax(0,1fr);gap:24px}.files-nav{background:var(--ws-surface);border:1px solid var(--ws-border);border-radius:14px;padding:18px;align-self:start}.files-nav a{display:block;padding:10px 5px;overflow-wrap:anywhere}.files-nav h3{font-size:13px}.files-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.files-toolbar details{margin:0}.files-toolbar details[open]{flex-basis:100%}.folder-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));margin-bottom:26px}.folder-card{background:var(--ws-surface);border:1px solid var(--ws-border);gap:12px;padding:20px}.folder-icon{display:block;width:45px;height:33px;background:linear-gradient(135deg,#77c5ed,#379ed1);border-radius:4px 8px 6px 6px;position:relative;margin:8px 0 4px;box-shadow:0 4px 10px #379ed122;transition:transform .3s}.folder-icon:before{content:'';position:absolute;top:-5px;left:0;width:22px;height:8px;border-radius:4px 5px 0 0;background:#77c5ed}.files-table{table-layout:fixed;width:100%}.files-table td:first-child{width:40%;overflow-wrap:anywhere}.files-table td select{max-width:170px}.files-table .ws-inline{flex-wrap:wrap}.file-empty{text-align:center;padding:65px 24px;color:var(--ws-muted)}.goal-line .ws-progress{height:18px}.goal-line .ws-between{align-items:start}.goal-line .ws-between span{font-variant-numeric:tabular-nums;font-size:12px}.ws-bar-column:hover .ws-bar{filter:brightness(1.15)}.ws-chart a{color:var(--ws-muted)}
html[data-theme=dark]{--paper:var(--ws-bg);--border:var(--ws-border);--accent:#81b8ff;--navy:#10212d;--green:#5bddae;--ops-shadow:0 12px 38px #00000013;color-scheme:dark}
html[data-theme=dark] :is(.panel,.card,.metric,.notice,.focus-note,.priority-row,.member-row,.team-stats,.daily-goal,.terminal-card,.terminal-hero,.terminal-metric,.terminal-section,.company-card,.kpi-card,.exp-card,.exp-summary,.exp-group,.auth-panel,.folder-card,details,dialog){background-color:var(--ws-surface)!important;color:var(--ws-text)!important;border-color:var(--ws-border)!important}
html[data-theme=dark] :is(.metric.dark,.dark){background:#203d4c!important;color:#f1f8fd!important}html[data-theme=dark] :is(.metric.dark strong,.metric.dark p,.metric.dark span){color:#f1f8fd!important}
html[data-theme=dark] :is(main,aside,header,footer) :is(p,div,span,small,b,strong,h1,h2,h3,label,summary,td,th,li){border-color:var(--ws-border)}
html[data-theme=dark] :is(.metric p,.metric strong,.metric-bottom,.metric-bottom b,.priority-row b,.member-row b,.funnel-step,.daily-goal,.topbar,.sidebar-bottom,.bar-caption,.bar-zero,.terminal-title,.stat-value,.table-wrap,.companyName){color:var(--ws-text)!important}
html[data-theme=dark] :is(.metric-bottom span,.metric p>span,.panel-note,.nav-caption,.workspace-label,.section-heading .subtle,.member-row small,.priority-row p,.panel small,.panel .micro,.legend,.subtle,.muted,.help,.form-help){color:var(--ws-muted)!important}
html[data-theme=dark] :is(tbody,tr,td,th,thead,tfoot){background:transparent!important;color:var(--ws-text)!important}html[data-theme=dark] :is(thead th,.table-wrap thead,.bar-track,.focus-note,.notice,.daily-goal){background:var(--ws-soft)!important}html[data-theme=dark] :is(input,textarea,select,button,.button){background-color:var(--ws-soft)!important;color:var(--ws-text)!important;border-color:var(--ws-border)!important}html[data-theme=dark] ::placeholder{color:#a9bdc9!important;opacity:1}html[data-theme=dark] .primary{background:#247c8f!important;color:#fff!important}html[data-theme=dark] input[type=checkbox]{accent-color:#5dcac9}html[data-theme=dark] .auth-body{background:radial-gradient(ellipse at 10% 20%,#193b44 0,transparent 50%),#101b23}html[data-theme=dark] .auth-intro h1{color:var(--ws-text)}html[data-theme=dark] .auth-panel{border-color:var(--ws-border)}html[data-theme=dark] .ws-bar-column>span{color:#8adee0}html[data-theme=dark] .nav-icon{color:white!important}html[data-theme=dark] .nav-item:hover{background:var(--ws-soft)}html[data-theme=dark] .flash{color:#ffe2ac!important;background:#3c3430!important}
@media(max-width:1000px){.files-shell{grid-template-columns:1fr}.files-nav{display:flex;flex-wrap:wrap;gap:10px}.files-nav h3{width:100%}.auth-layout{gap:35px;padding:30px}.document-preview{padding:24px}}@media(max-width:700px){.app-grid{grid-template-columns:1fr}.panel{padding:18px}.auth-layout{padding:22px}.auth-intro h1{font-size:29px}.auth-feature{display:none}.files-table{table-layout:auto}.tree-viewport{height:420px}.ws-two{gap:18px}.app-icon{width:45px;height:45px}.document-preview{overflow:auto}}@media(prefers-reduced-motion:reduce){main{animation:none}*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
.goal-target b{background:#8bafc2!important;opacity:.55}.goal-comparison .detail-graph{padding:15px 0;border-bottom:1px solid var(--ws-border)}.files-toolbar>details{border:0;background:transparent!important;padding:0}.folder-grid{margin-top:22px}.files-toolbar summary{white-space:nowrap}

html[data-theme=dark] .amber-pill,html[data-theme=dark] .badge.muted,html[data-theme=dark] .badge.warning,html[data-theme=dark] .booking-card,html[data-theme=dark] .button,html[data-theme=dark] .cd-delete-btn,html[data-theme=dark] .cd-search-box,html[data-theme=dark] .cd-search-btn,html[data-theme=dark] .collection-policy,html[data-theme=dark] .companies-table,html[data-theme=dark] .count-badge,html[data-theme=dark] .daily-goal,html[data-theme=dark] .dense-table tbody tr:hover,html[data-theme=dark] .dense-table th,html[data-theme=dark] .detail-body blockquote,html[data-theme=dark] .edition,html[data-theme=dark] .email-body,html[data-theme=dark] .exp-company-table td:last-child,html[data-theme=dark] .exp-company-table th:last-child,html[data-theme=dark] .exp-company-table tr:hover td:last-child,html[data-theme=dark] .exp-dialog-heading button,html[data-theme=dark] .exp-ng-button,html[data-theme=dark] .exp-ng-button:hover,html[data-theme=dark] .exp-ng-target,html[data-theme=dark] .form-actions.project-save-actions,html[data-theme=dark] .mail-meta,html[data-theme=dark] .metric,html[data-theme=dark] .mini-pair>div,html[data-theme=dark] .nav-item:hover,html[data-theme=dark] .news-icon,html[data-theme=dark] .ng-panel,html[data-theme=dark] .note-block,html[data-theme=dark] .panel,html[data-theme=dark] .pill,html[data-theme=dark] .pipeline-summary a,html[data-theme=dark] .priority-row:hover,html[data-theme=dark] .project-jump a,html[data-theme=dark] .quote-strip,html[data-theme=dark] .row-open,html[data-theme=dark] .run-chips span,html[data-theme=dark] .score-track,html[data-theme=dark] .scraping-content,html[data-theme=dark] .segmented,html[data-theme=dark] .segmented button.selected,html[data-theme=dark] .sidebar,html[data-theme=dark] .sidebar-bottom,html[data-theme=dark] .signal-ribbon>a,html[data-theme=dark] .skip:focus,html[data-theme=dark] .status-pill,html[data-theme=dark] .table-controls input,html[data-theme=dark] .table-controls select,html[data-theme=dark] .team-stats,html[data-theme=dark] .terminal-card,html[data-theme=dark] .tone-2,html[data-theme=dark] .tone-3,html[data-theme=dark] .topbar,html[data-theme=dark] .track,html[data-theme=dark] body,html[data-theme=dark] button,html[data-theme=dark] input:not([type=checkbox]):not([type=radio]),html[data-theme=dark] select,html[data-theme=dark] textarea,html[data-theme=dark] th{background-color:var(--ws-surface)!important;color:var(--ws-text)!important;border-color:var(--ws-border)!important}
html[data-theme=dark] main :is(p,span,small,b,strong,h1,h2,h3,label,summary,td,th,li){color:var(--ws-text)!important}html[data-theme=dark] main :is(.micro,.subtle,.muted,.panel-note){color:var(--ws-muted)!important}
/* Legacy cards and badges: explicit dark surfaces keep text readable. */
html[data-theme=dark] :is(.exp-notice,.exp-tag,.booking-avatar,.company-avatar,.member-avatar,.project-filters a){background:var(--ws-soft)!important;color:var(--ws-text)!important;border-color:var(--ws-border)!important}
html[data-theme=dark] .project-filters a.active{background:#254958!important;color:#d6f5fa!important}
html[data-theme=dark] :is(.exp-summary em,.terminal-metric em){color:var(--ws-muted)!important}
html[data-theme=dark] .project-warning{color:#efc180!important}
html[data-theme=dark] .exp-letter{background:var(--ws-soft)!important;color:#f4f7fb!important;box-shadow:inset 0 0 0 2px var(--arm)}
html[data-theme=dark] .gantt-bar span{color:#123c52!important}
html[data-theme=dark] .pager :is(a,span){background:var(--ws-soft)!important;color:var(--ws-text)!important;border-color:var(--ws-border)!important}
html[data-theme=dark] .pager .current{background:#254958!important;color:#d6f5fa!important}

html[data-theme=dark] main strong em{color:var(--ws-muted)!important}
