/* Component styles — ported verbatim from the Wise Command Deck artifact's
   <style> block (index.html), minus the SPA tab-switching rules (.view /
   .view.active), which have no purpose now that each page is its own Flask
   route instead of a hidden/shown div. See PLAN.md §6/§7. */

*{box-sizing:border-box;}
body{ background:var(--bg); color:var(--text); font-family:var(--font-body); margin:0; -webkit-font-smoothing:antialiased; }
h1,h2,h3{ font-family:var(--font-display); margin:0; text-wrap:balance; }
a{ color:inherit; }
button,input,select{ font-family:inherit; color:inherit; }
::selection{ background:var(--accent); color:#1a1206; }
.icon{ width:16px; height:16px; flex:none; display:block; }
.icon-sm{ width:13px; height:13px; }
.icon-lg{ width:20px; height:20px; }
::-webkit-scrollbar{ width:9px; height:9px; }
::-webkit-scrollbar-thumb{ background:var(--border-strong); border-radius:8px; }
::-webkit-scrollbar-track{ background:transparent; }
[hidden]{ display:none !important; }

/* ---------------- Shell ---------------- */
.shell{ display:flex; min-height:100vh; }
.sidebar{ width:236px; flex:none; background:var(--sidebar-bg); color:var(--sidebar-text); display:flex; flex-direction:column; padding:18px 12px; position:sticky; top:0; height:100vh; border-right:1px solid var(--sidebar-border); }
.brand{ display:flex; align-items:center; gap:9px; padding:6px 8px 20px; }
.brand-mark{ width:30px; height:30px; border-radius:8px; background:linear-gradient(155deg,var(--accent),#8A4E14); display:flex; align-items:center; justify-content:center; flex:none; }
.brand-mark svg{ width:16px; height:16px; color:#1a1206; }
.brand-name{ font-family:var(--font-display); font-weight:800; font-size:16.5px; letter-spacing:-.01em; }
.nav{ display:flex; flex-direction:column; gap:2px; }
.nav-item{ display:flex; align-items:center; gap:11px; padding:9px 11px; border-radius:9px; font-size:13.5px; font-weight:600; color:var(--sidebar-text-muted); cursor:pointer; border:none; background:transparent; text-align:left; width:100%; text-decoration:none; }
.nav-item:hover{ background:var(--sidebar-bg-2); color:var(--sidebar-text); }
.nav-item.active{ background:var(--sidebar-active); color:var(--accent-ink); }
.nav-item .icon{ color:currentColor; opacity:.85; }
.sidebar-spacer{ flex:1; }
.sidebar-footer{ padding:14px 10px 6px; border-top:1px solid var(--sidebar-border); margin-top:10px; }
.sidebar-tagline{ font-size:11.5px; color:var(--sidebar-text-muted); line-height:1.5; font-weight:500; }
.sidebar-tagline strong{ color:var(--sidebar-text); display:block; font-weight:700; margin-bottom:2px; }

.main{ flex:1; min-width:0; display:flex; flex-direction:column; }
.topbar{ position:sticky; top:0; z-index:5; background:var(--surface); border-bottom:1px solid var(--border); display:flex; align-items:center; gap:14px; padding:12px 22px; }
.topbar-search{ position:relative; flex:1; max-width:380px; }
.topbar-search .icon{ position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--text-faint); }
.topbar-search input{ width:100%; padding:8px 12px 8px 34px; border-radius:9px; border:1px solid var(--border); background:var(--surface-2); font-size:13px; outline:none; }
.topbar-search input:focus{ border-color:var(--accent); background:var(--surface); }
.topbar-right{ display:flex; align-items:center; gap:10px; margin-left:auto; }
.date-chip{ display:flex; align-items:center; gap:7px; padding:7px 12px; border-radius:9px; border:1px solid var(--border); background:var(--surface-2); font-size:12.5px; font-weight:600; font-variant-numeric:tabular-nums; }
.bell-btn{ position:relative; width:34px; height:34px; border-radius:9px; border:1px solid var(--border); background:var(--surface-2); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.bell-badge{ position:absolute; top:-4px; right:-4px; background:var(--critical); color:#fff; font-size:9.5px; font-weight:800; min-width:15px; height:15px; border-radius:20px; display:flex; align-items:center; justify-content:center; padding:0 3px; border:2px solid var(--surface); }
.profile{ display:flex; align-items:center; gap:8px; padding:5px 10px 5px 5px; border-radius:20px; border:1px solid var(--border); background:var(--surface-2); }
.profile-avatar{ width:26px; height:26px; border-radius:50%; background:linear-gradient(155deg,var(--accent-2),#1F4D43); color:#fff; display:flex; align-items:center; justify-content:center; font-size:10.5px; font-weight:800; }
.profile-text{ line-height:1.2; }
.profile-name{ font-size:12px; font-weight:700; }
.profile-role{ font-size:10.5px; color:var(--text-muted); }

.content{ padding:22px; display:flex; flex-direction:column; gap:20px; max-width:1440px; width:100%; margin:0 auto; }

.btn{ display:inline-flex; align-items:center; gap:7px; padding:8px 13px; border-radius:9px; border:1px solid var(--border); background:var(--surface); font-size:12.5px; font-weight:700; cursor:pointer; white-space:nowrap; }
.btn:hover{ background:var(--surface-hover); }
.btn-primary{ background:var(--accent); border-color:var(--accent); color:#241705; }
.btn-primary:hover{ background:var(--accent-hover); }
.btn-sm{ padding:6px 10px; font-size:11.5px; }
.btn-ghost{ background:transparent; }
.btn-text{ background:transparent; border-color:transparent; color:var(--accent); padding:4px 2px; }

select.control, .chip-select{ padding:7px 26px 7px 11px; border-radius:8px; border:1px solid var(--border); background:var(--surface) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23888" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 7px center/13px; appearance:none; font-size:12px; font-weight:600; cursor:pointer; }

/* ---------------- Page header ---------------- */
.page-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.page-head h1{ font-size:21px; font-weight:800; letter-spacing:-.01em; }
.page-head p{ margin:5px 0 0; font-size:13px; color:var(--text-muted); max-width:60ch; }
.segmented{ display:inline-flex; padding:3px; background:var(--surface-2); border:1px solid var(--border); border-radius:10px; gap:2px; }
.segmented button{ border:none; background:transparent; padding:6px 12px; font-size:12px; font-weight:700; color:var(--text-muted); border-radius:7px; cursor:pointer; }
.segmented button.active{ background:var(--surface); color:var(--text); box-shadow:var(--shadow-sm); }
/* Query-string-driven filters (PLAN.md §6) are plain links, not JS tab
   switches, so .segmented needs an <a> variant of the same look. */
.segmented a{ border:none; background:transparent; padding:6px 12px; font-size:12px; font-weight:700; color:var(--text-muted); border-radius:7px; text-decoration:none; }
.segmented a.active{ background:var(--surface); color:var(--text); box-shadow:var(--shadow-sm); }

.toolbar{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.chips{ display:flex; gap:6px; }
.horizon-chip{ padding:6px 12px; border-radius:20px; border:1px solid var(--border); background:var(--surface); font-size:11.5px; font-weight:700; cursor:pointer; color:var(--text-muted); }
.horizon-chip.active{ background:var(--accent-soft); border-color:var(--accent); color:var(--accent-ink); }
.step-btn{ width:28px; height:28px; border-radius:7px; border:1px solid var(--border); background:var(--surface); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.filter-row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:11px 13px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); }

/* ---------------- pills / badges ---------------- */
.pill{ display:inline-flex; align-items:center; gap:5px; font-size:10.5px; font-weight:700; padding:3px 9px; border-radius:20px; white-space:nowrap; }
.pill-dot{ width:6px; height:6px; border-radius:50%; background:currentColor; }
.tone-good{ background:var(--good-soft); color:var(--good); }
.tone-info{ background:var(--info-soft); color:var(--info); }
.tone-violet{ background:var(--violet-soft); color:var(--violet); }
.tone-warn{ background:var(--warn-soft); color:var(--warn); }
.tone-critical{ background:var(--critical-soft); color:var(--critical); }
.tone-muted{ background:var(--surface-2); color:var(--text-muted); }
.tone-accent{ background:var(--accent-soft); color:var(--accent-ink); }

/* ---------------- cards ---------------- */
.card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow-sm); }
.card-pad{ padding:16px; }
.card-head{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px 0; }
.card-head h3{ font-size:13.5px; font-weight:800; }
.card-head .hint{ font-size:11.5px; color:var(--text-faint); }

/* ---------------- Gantt ---------------- */
.gantt-wrap{ display:grid; grid-template-columns:250px 1fr; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--surface); }
.gantt-axis{ border-right:1px solid var(--border); min-width:0; }
.gantt-axis-head{ height:38px; display:flex; align-items:center; padding:0 14px; font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; color:var(--text-faint); border-bottom:1px solid var(--border); background:var(--surface-2); }
.gantt-group{ border-bottom:1px solid var(--border); }
.gantt-group-head{ display:flex; align-items:center; gap:6px; padding:9px 12px; font-size:12px; font-weight:800; cursor:pointer; background:var(--surface-2); }
.gantt-group-head .chev{ transition:transform .15s; color:var(--text-faint); }
.gantt-group.collapsed .chev{ transform:rotate(-90deg); }
.gantt-row-label{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 12px 10px 22px; font-size:12px; font-weight:600; border-top:1px solid var(--border); }
.gantt-row-label span.name{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gantt-group.collapsed .gantt-row-label{ display:none; }
.gantt-timeline{ overflow-x:auto; position:relative; min-width:0; }
.gantt-months{ display:flex; height:38px; border-bottom:1px solid var(--border); background:var(--surface-2); position:sticky; top:0; width:max-content; min-width:100%; }
.gantt-month{ flex:1; min-width:110px; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; color:var(--text-muted); border-right:1px solid var(--border); font-variant-numeric:tabular-nums; }
.gantt-body{ position:relative; width:max-content; min-width:100%; }
.gantt-grid-row{ height:39px; border-top:1px solid var(--border); position:relative; display:flex; width:max-content; min-width:100%; }
.gantt-grid-cell{ flex:1; min-width:110px; border-right:1px solid var(--border); }
.gantt-group.collapsed .gantt-grid-row{ display:none; }
.gantt-bar{ position:absolute; top:8px; height:23px; border-radius:6px; display:flex; align-items:center; padding:0 8px; font-size:10.5px; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; box-shadow:var(--shadow-sm); }
.gantt-milestone{ position:absolute; top:5px; width:16px; height:16px; transform:translateX(-50%) rotate(45deg); border-radius:3px; border:2px solid var(--surface); box-shadow:var(--shadow-sm); }
.today-line{ position:absolute; top:0; bottom:0; width:2px; background:var(--info); z-index:2; }
.today-flag{ position:absolute; top:-1px; left:6px; font-size:9.5px; font-weight:800; color:var(--info); background:var(--info-soft); padding:1px 6px; border-radius:5px; white-space:nowrap; }

/* ---------------- tables ---------------- */
table.simple{ width:100%; border-collapse:collapse; font-size:12.5px; }
table.simple th{ text-align:left; padding:9px 12px; font-size:10.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--text-faint); border-bottom:1px solid var(--border); white-space:nowrap; }
table.simple td{ padding:10px 12px; border-bottom:1px solid var(--border); vertical-align:middle; }
table.simple tr:last-child td{ border-bottom:none; }
table.simple tr:hover td{ background:var(--surface-2); }
.table-wrap{ border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--surface); overflow-x:auto; }

.progress-track{ height:6px; border-radius:20px; background:var(--surface-2); overflow:hidden; min-width:70px; }
.progress-fill{ height:100%; background:linear-gradient(90deg,var(--accent-2),var(--good)); border-radius:20px; }
.avatar{ width:22px; height:22px; border-radius:50%; background:var(--accent-soft); color:var(--accent-ink); font-size:9px; font-weight:800; display:inline-flex; align-items:center; justify-content:center; }

/* ---------------- grid helpers ---------------- */
.grid-2{ display:grid; grid-template-columns:1.3fr 1fr; gap:16px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.grid-kpi{ display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }
@media (max-width:1080px){ .grid-2,.grid-3{ grid-template-columns:1fr; } .grid-kpi{ grid-template-columns:repeat(2,1fr);} }

.kpi-card{ padding:15px 16px; display:flex; flex-direction:column; gap:8px; }
.kpi-top{ display:flex; align-items:center; justify-content:space-between; }
.kpi-icon{ width:32px; height:32px; border-radius:9px; display:flex; align-items:center; justify-content:center; }
.kpi-value{ font-family:var(--font-display); font-size:24px; font-weight:800; font-variant-numeric:tabular-nums; }
.kpi-label{ font-size:11.5px; color:var(--text-muted); font-weight:600; }
.kpi-trend{ font-size:11px; font-weight:700; }

/* ---------------- legend / focus / quick filter ---------------- */
.legend-item{ display:flex; align-items:center; gap:8px; font-size:12px; font-weight:600; padding:5px 0; }
.legend-swatch{ width:11px; height:11px; border-radius:4px; flex:none; }
.focus-item{ display:flex; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); }
.focus-item:last-child{ border-bottom:none; }
.focus-rank{ width:22px; height:22px; border-radius:7px; background:var(--accent-soft); color:var(--accent-ink); font-size:11px; font-weight:800; display:flex; align-items:center; justify-content:center; flex:none; }
.focus-title{ font-size:12.5px; font-weight:700; }
.focus-sub{ font-size:11.5px; color:var(--text-muted); margin-top:2px; line-height:1.5; }
.qf-group{ display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.qf-chip{ padding:5px 10px; border-radius:20px; border:1px solid var(--border); background:var(--surface); font-size:11px; font-weight:700; cursor:pointer; color:var(--text-muted); }
.qf-chip.active{ background:var(--accent-soft); border-color:var(--accent); color:var(--accent-ink); }
.qf-label{ font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; color:var(--text-faint); }

/* ---------------- report page ---------------- */
.alert-banner{ display:flex; align-items:center; gap:12px; padding:13px 16px; border-radius:var(--radius); background:var(--critical-soft); border:1px solid color-mix(in srgb, var(--critical) 30%, transparent); }
.alert-banner .icon{ color:var(--critical); }
.alert-count{ background:var(--critical); color:#fff; font-size:11px; font-weight:800; min-width:19px; height:19px; border-radius:20px; display:flex; align-items:center; justify-content:center; padding:0 5px; }
.stream-col h4{ font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--text-faint); margin:0 0 10px; font-weight:800; }
.stream-item{ display:flex; flex-direction:column; gap:3px; padding:10px 0; border-bottom:1px solid var(--border); }
.stream-item:last-child{ border-bottom:none; }
.stream-title{ font-size:12.5px; font-weight:700; }
.stream-sub{ font-size:11px; color:var(--text-muted); }
.gauge-wrap{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:8px 0 4px; }
.gauge-value{ font-family:var(--font-display); font-size:26px; font-weight:800; }
.gauge-caption{ font-size:11.5px; color:var(--good); font-weight:700; }

/* ---------------- projects page ---------------- */
.proj-carousel{ display:flex; gap:10px; overflow-x:auto; padding-bottom:4px; }
.proj-card{ min-width:190px; border:1px solid var(--border); border-radius:var(--radius); padding:13px; cursor:pointer; background:var(--surface); display:flex; flex-direction:column; gap:8px; }
.proj-card.active{ border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.proj-icon{ width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center; color:#fff; }
.proj-card-title{ font-size:12.5px; font-weight:800; }
.proj-card-desc{ font-size:11px; color:var(--text-muted); line-height:1.4; }
.proj-add{ min-width:150px; border:1.5px dashed var(--border-strong); border-radius:var(--radius); display:flex; align-items:center; justify-content:center; flex-direction:column; gap:6px; color:var(--text-muted); font-size:12px; font-weight:700; cursor:pointer; }

.proj-header{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.proj-header-icon{ width:44px; height:44px; border-radius:11px; display:flex; align-items:center; justify-content:center; color:#fff; flex:none; }
.proj-meta-row{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; font-size:12px; color:var(--text-muted); margin-top:5px; }
.proj-meta-row .sep{ width:3px; height:3px; border-radius:50%; background:var(--border-strong); }
.options-btn{ width:32px; height:32px; border-radius:9px; border:1px solid var(--border); background:var(--surface); display:flex; align-items:center; justify-content:center; cursor:pointer; margin-left:auto; }
.icon-btn{ width:28px; height:28px; border-radius:8px; border:1px solid var(--border); background:var(--surface); display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--text-muted); }
.icon-btn:hover{ background:var(--surface-hover); color:var(--text); }

.release-progress{ display:flex; align-items:center; gap:12px; padding:13px 16px; }
.release-progress .progress-track{ flex:1; height:8px; }
.subtabs{ display:flex; gap:4px; border-bottom:1px solid var(--border); overflow-x:auto; padding-bottom:8px; }
.subtab{ padding:8px 14px; font-size:12.5px; font-weight:700; color:var(--text-muted); background:transparent; border:none; border-radius:20px; cursor:pointer; white-space:nowrap; }
.subtab.active{ background:var(--info); color:#fff; }
.subtab:hover:not(.active){ background:var(--surface-2); color:var(--text); }

.meta-chip{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; color:var(--text-muted); }
.meta-chip .icon{ color:var(--text-faint); }
.status-select-pill{ display:inline-flex; align-items:center; gap:6px; padding:6px 26px 6px 12px; border-radius:20px; font-size:12px; font-weight:700; border:1px solid transparent; cursor:pointer; appearance:none; background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23888" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>'); background-repeat:no-repeat; background-position:right 8px center; background-size:12px; }
.banner-grid{ display:flex; gap:16px; align-items:stretch; flex-wrap:wrap; margin-top:14px; }
.banner-left{ flex:1 1 360px; min-width:280px; }
.release-card{ width:270px; flex:none; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius); padding:14px 16px; display:flex; flex-direction:column; gap:9px; justify-content:center; }
.release-card-title{ font-size:12px; font-weight:800; color:var(--text-muted); }
.release-card-pct{ font-family:var(--font-display); font-size:22px; font-weight:800; }
.release-card-foot{ display:flex; justify-content:space-between; font-size:10.5px; color:var(--text-muted); font-weight:600; }

.workspace-grid{ display:grid; grid-template-columns:1.05fr 1fr 280px; gap:16px; align-items:start; }
@media (max-width:1180px){ .workspace-grid{ grid-template-columns:1fr; } }

.kanban-board{ display:flex; gap:11px; overflow-x:auto; padding-bottom:4px; }
.kanban-col{ width:230px; flex:none; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius); display:flex; flex-direction:column; }
.kanban-col-head{ display:flex; align-items:center; gap:7px; padding:11px 12px; font-size:11.5px; font-weight:800; border-bottom:1px solid var(--border); }
.kanban-col-count{ font-size:10.5px; font-weight:700; color:var(--text-muted); background:var(--surface); border:1px solid var(--border); border-radius:20px; padding:1px 7px; margin-left:auto; }
.kanban-body{ padding:9px; display:flex; flex-direction:column; gap:8px; min-height:60px; }
.kanban-card{ background:var(--surface); border:1px solid var(--border); border-radius:9px; padding:10px 11px; cursor:grab; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; gap:7px; }
.kanban-card.dragging{ opacity:.4; }
.kanban-card-title{ font-size:12px; font-weight:700; line-height:1.4; }
.kanban-card-foot{ display:flex; align-items:center; gap:6px; }
.kanban-add{ padding:8px 12px 11px; font-size:11.5px; font-weight:700; color:var(--text-muted); cursor:pointer; display:flex; align-items:center; gap:5px; }
.kanban-add:hover{ color:var(--accent-ink); }
.kanban-col-body.drag-hover{ background:var(--accent-soft); border-radius:8px; }

.task-card{ border:1px solid var(--border); border-radius:10px; padding:12px 13px; display:flex; flex-direction:column; gap:8px; }
.task-top{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.task-title{ font-size:12.5px; font-weight:700; }
.task-meta{ display:flex; align-items:center; gap:8px; font-size:11px; color:var(--text-muted); flex-wrap:wrap; }
.task-meta .sep{ width:3px; height:3px; border-radius:50%; background:var(--border-strong); }

.risk-card{ border:1px solid color-mix(in srgb, var(--warn) 35%, transparent); background:var(--warn-soft); border-radius:var(--radius); padding:13px 15px; display:flex; flex-direction:column; gap:10px; }
.risk-row{ display:flex; align-items:flex-start; gap:10px; padding:8px 0; border-top:1px solid color-mix(in srgb, var(--warn) 20%, transparent); }
.risk-row:first-of-type{ border-top:none; padding-top:0; }
.risk-title{ font-size:12.5px; font-weight:700; }
.risk-sub{ font-size:11.5px; color:var(--text-muted); margin-top:2px; }

.health-row{ display:flex; align-items:center; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--border); font-size:12.5px; font-weight:600; }
.health-row:last-child{ border-bottom:none; }
.keydate-row{ display:flex; align-items:center; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--border); font-size:12px; }
.keydate-row:last-child{ border-bottom:none; }
.keydate-label{ color:var(--text-muted); font-weight:600; }
.keydate-value{ font-weight:700; font-variant-numeric:tabular-nums; }
.link-row{ display:flex; align-items:center; gap:9px; padding:9px 0; border-bottom:1px solid var(--border); font-size:12.5px; font-weight:600; }
.link-row:last-child{ border-bottom:none; }
.link-row .icon{ color:var(--text-faint); }
.link-row .ext{ margin-left:auto; color:var(--text-faint); }

/* ---------------- releases page ---------------- */
.release-item-card{ border:1px solid var(--border); border-radius:var(--radius); padding:13px 15px; display:flex; flex-direction:column; gap:9px; }
.release-item-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.release-item-title{ font-size:13px; font-weight:800; }
.release-item-product{ display:flex; align-items:center; gap:6px; font-size:11px; color:var(--text-muted); font-weight:600; margin-top:2px; }
.release-item-dot{ width:8px; height:8px; border-radius:3px; flex:none; }
.release-item-notes{ font-size:11.5px; color:var(--text-muted); line-height:1.5; }
.release-item-foot{ display:flex; align-items:center; justify-content:space-between; font-size:11px; color:var(--text-muted); font-weight:600; }
.countdown-chip{ font-size:10.5px; font-weight:800; padding:2px 8px; border-radius:20px; white-space:nowrap; }
.rt-row-label{ font-size:11px; font-weight:700; color:var(--text-muted); width:120px; flex:none; padding-right:8px; text-align:right; }
.rt-diamond{ position:absolute; top:50%; width:14px; height:14px; transform:translate(-50%,-50%) rotate(45deg); border-radius:3px; border:2px solid var(--surface); box-shadow:var(--shadow-sm); cursor:pointer; }

/* ---------------- team page ---------------- */
.team-group-head{ display:flex; align-items:center; gap:8px; margin:4px 0 2px; }
.team-group-head h3{ font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; color:var(--text-faint); }
.team-group-count{ font-size:10.5px; font-weight:700; color:var(--text-faint); }
.team-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:12px; }
.member-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:14px; display:flex; flex-direction:column; gap:10px; }
.member-top{ display:flex; align-items:center; gap:10px; }
.member-avatar{ width:40px; height:40px; border-radius:50%; background:linear-gradient(155deg,var(--accent-2),#1F4D43); color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:800; flex:none; }
.member-name{ font-size:13px; font-weight:800; }
.member-role{ font-size:11px; color:var(--text-muted); font-weight:600; }
.member-projects{ display:flex; flex-wrap:wrap; gap:5px; }
.member-stats{ display:flex; gap:14px; font-size:11px; color:var(--text-muted); font-weight:600; }
.member-stats b{ color:var(--text); font-family:var(--font-display); font-size:13px; display:block; font-weight:800; }
.member-foot{ display:flex; gap:6px; margin-top:2px; }

/* ---------------- settings page ---------------- */
.settings-section{ display:flex; flex-direction:column; gap:14px; }
.field-group{ display:flex; flex-direction:column; gap:5px; }
.field-group label{ font-size:11px; font-weight:700; color:var(--text-muted); }
.field-group input, .field-group select{ padding:8px 11px; border-radius:8px; border:1px solid var(--border); background:var(--surface-2); font-size:12.5px; }
.field-group input:focus, .field-group select:focus{ outline:none; border-color:var(--accent); background:var(--surface); }
.field-row-2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.toggle-row{ display:flex; align-items:center; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--border); gap:12px; }
.toggle-row:last-child{ border-bottom:none; }
.toggle-row-title{ font-size:12.5px; font-weight:700; }
.toggle-row-sub{ font-size:11px; color:var(--text-muted); margin-top:1px; }
.switch{ width:38px; height:22px; border-radius:20px; background:var(--border-strong); position:relative; cursor:pointer; flex:none; transition:background .15s; }
.switch.on{ background:var(--accent); }
.switch::after{ content:''; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; transition:left .15s; box-shadow:0 1px 2px rgba(0,0,0,.25); }
.switch.on::after{ left:18px; }
.integration-row{ display:flex; align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid var(--border); }
.integration-row:last-child{ border-bottom:none; }
.integration-icon{ width:34px; height:34px; border-radius:9px; background:var(--surface-2); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; flex:none; }
.settings-nav{ display:flex; flex-direction:column; gap:2px; }
.settings-nav button{ text-align:left; padding:8px 11px; border-radius:8px; border:none; background:transparent; font-size:12.5px; font-weight:700; color:var(--text-muted); cursor:pointer; }
.settings-nav button.active{ background:var(--accent-soft); color:var(--accent-ink); }
.settings-nav button:hover:not(.active){ background:var(--surface-2); color:var(--text); }
.settings-nav a{ text-align:left; padding:8px 11px; border-radius:8px; font-size:12.5px; font-weight:700; color:var(--text-muted); text-decoration:none; }
.settings-nav a:hover{ background:var(--surface-2); color:var(--text); }

@media (max-width:900px){
  .sidebar{ display:none; }
  .content{ padding:14px; }
  .grid-kpi{ grid-template-columns:1fr 1fr; }
  .gantt-wrap{ grid-template-columns:170px 1fr; }
  .topbar{ padding:10px 14px; flex-wrap:wrap; }
  .topbar-search{ order:3; max-width:100%; flex-basis:100%; }
  .field-row-2{ grid-template-columns:1fr; }
}
