:root { color-scheme: light; --bg: #f7f7f5; --surface: #fff; --surface-soft: #f2f3f0; --line: #e8e9e5; --text: #20231f; --muted: #858b82; --accent: #657b68; --accent-soft: #edf1ec; --sidebar: #222722; --sidebar-soft: #303630; }
.dark { color-scheme: dark; --bg: #171b18; --surface: #202521; --surface-soft: #292f2a; --line: #343a35; --text: #e9ede8; --muted: #a1a9a0; --accent: #9db19f; --accent-soft: #303a32; --sidebar: #111512; --sidebar-soft: #232a24; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, Aptos, "Segoe UI", "Helvetica Neue", sans-serif; font-size: 13px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: #d7e0d6; color: #1d281f; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 264px; flex: 0 0 264px; height: 100vh; position: sticky; top: 0; display:flex; flex-direction:column; background:var(--sidebar); color:#e8ebe7; padding:18px 13px 14px; transition:width .2s, flex-basis .2s; z-index:25; }
.sidebar.collapsed { width:74px; flex-basis:74px; }
.brand { display:flex; align-items:center; gap:11px; padding:3px 9px 24px; }
.brand-mark { width:36px; height:36px; border:1px solid #667466; border-radius:8px; display:grid; place-items:center; color:#bdcbbd; flex:none; }
.brand-name { font-size:14px; line-height:1.25; font-weight:650; letter-spacing:-.02em; }
.brand-caption { display:block; font-size:9px; color:#bac2b9; margin-top:4px; letter-spacing:.08em; text-transform:uppercase; }
.nav-scroll { overflow-y:auto; flex:1; scrollbar-width:thin; }
.nav-group { margin:2px 0 17px; }
.nav-heading { color:#a1aaa0; font-size:9px; font-weight:650; letter-spacing:.12em; padding:0 11px 7px; }
.nav-link { height:37px; display:flex; align-items:center; gap:11px; text-decoration:none; color:#d1d6d0; border-radius:6px; padding:0 11px; margin:1px 0; font-size:12px; font-weight:500; transition:background .15s,color .15s; }
.nav-link:hover { background:var(--sidebar-soft); color:#fff; }
.nav-link.active { background:#394239; color:#fff; }
.nav-link svg { width:18px; height:18px; opacity:.92; flex:none; }
.sidebar.collapsed .brand-name,.sidebar.collapsed .brand-caption,.sidebar.collapsed .nav-heading,.sidebar.collapsed .nav-link span,.sidebar.collapsed .side-foot span { display:none; }
.sidebar.collapsed .nav-link { justify-content:center; padding:0; }
.sidebar.collapsed .brand { padding-left:8px; }
.side-foot { border-top:1px solid #373d37; padding:13px 7px 0; display:flex; align-items:center; gap:10px; }
.avatar { width:30px; height:30px; flex:none; display:grid; place-items:center; border-radius:50%; color:#fff; background:#7f927f; font-size:10px; font-weight:600; }
.avatar.purple { background:#897b9b; }
.side-foot strong { display:block; font-size:11px; font-weight:500; }
.side-foot small { color:#9ca49a; font-size:10px; display:block; margin-top:3px; }
.main-area { flex:1; min-width:0; }
.topbar { height:57px; background:var(--surface); border-bottom:1px solid var(--line); display:flex; align-items:center; gap:15px; padding:0 28px; position:sticky; top:0; z-index:20; }
.icon-btn { border:0; background:transparent; color:var(--muted); width:32px; height:32px; border-radius:6px; display:grid; place-items:center; }
.icon-btn:hover { background:var(--surface-soft); color:var(--text); }
.icon-btn svg { width:17px;height:17px; }
.search-box { height:32px; width:min(380px, 46vw); display:flex; align-items:center; gap:8px; color:var(--muted); background:var(--bg); border:1px solid var(--line); border-radius:6px; padding:0 9px; }
.search-box input { border:0; outline:none; background:transparent; color:var(--text); width:100%; font-size:11px; }
.search-box kbd { border:1px solid var(--line); padding:1px 4px; border-radius:3px; font-size:9px; white-space:nowrap; }
.top-spacer { flex:1; }
.top-date { color:var(--muted); font-size:10px; white-space:nowrap; }
.page-wrap { padding:24px 28px 34px; max-width:1720px; margin:0 auto; width:100%; }
.page-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:22px; }
.eyebrow { color:var(--muted); font-size:10px; margin-bottom:6px; }
.page-title { font-size:22px; letter-spacing:-.04em; font-weight:600; margin:0; }
.page-subtitle { font-size:11px; color:var(--muted); margin:7px 0 0; }
.actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.btn { height:33px; padding:0 12px; border-radius:5px; border:1px solid var(--line); color:var(--text); background:var(--surface); display:inline-flex; align-items:center; justify-content:center; gap:7px; font-size:11px; font-weight:500; white-space:nowrap; transition:.15s; }
.btn:hover { background:var(--surface-soft); }
.btn svg { width:14px;height:14px; }
.btn.primary { background:#657b68; color:#fff; border-color:#657b68; }
.btn.primary:hover { background:#566c59; }
.btn.ghost { border-color:transparent; background:transparent; }
.btn.danger { color:#b55851; }
.filter-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.filter-summary { display:flex; align-items:center; gap:7px; flex-wrap:wrap; padding:0 2px 12px; color:var(--muted); }
.filter-summary-label { font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
.input,.select,.textarea { border:1px solid var(--line); background:var(--surface); color:var(--text); border-radius:5px; height:33px; padding:0 10px; outline:none; font-size:11px; }
.input:focus,.select:focus,.textarea:focus { border-color:#8ea18f; box-shadow:0 0 0 2px #718c7020; }
.filter-row .input { width:230px; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:8px; }
.card-head { display:flex; align-items:center; justify-content:space-between; padding:15px 16px 12px; }
.card-title { font-size:12px; font-weight:600; margin:0; }
.card-note { color:var(--muted); font-size:10px; margin-top:4px; }
.card-body { padding:0 16px 15px; }
.stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; margin-bottom:14px; }
.stat-card { padding:12px 14px 11px; min-height:82px; }
.stat-label { color:var(--muted); font-size:11px; display:flex; align-items:center; gap:7px; }
.stat-label svg { width:15px;height:15px; }
.stat-value { font-size:24px; font-weight:600; letter-spacing:-.05em; margin-top:7px; line-height:1; }
.stat-foot { color:var(--muted); font-size:10px; margin-top:6px; }
.stat-link,.stat-button { display:block; width:100%; color:var(--text); text-align:left; text-decoration:none; cursor:pointer; transition:border-color .15s,transform .15s,box-shadow .15s; }
.stat-link:hover,.stat-button:hover { border-color:var(--accent); transform:translateY(-1px); box-shadow:0 4px 16px #0000000b; }
.stat-button { background:var(--surface); }
.chart-tooltip { padding:9px 11px; color:var(--text); background:var(--surface); border:1px solid var(--line); border-radius:6px; box-shadow:0 5px 18px #0002; font-size:11px; }
.chart-tooltip strong { display:block; margin-bottom:3px; }
.chart-slice { cursor:pointer; }
.legend-item { text-decoration:none; min-width:0; }
.legend-name { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.workload-link { color:inherit; text-decoration:none; border-radius:5px; padding-left:5px; padding-right:5px; }
.workload-link:hover { background:var(--surface-soft); }
.dashboard-grid { display:grid; grid-template-columns:1.3fr 1fr; gap:13px; margin-bottom:13px; }
.dashboard-grid.equal { grid-template-columns:1fr 1fr; }
.dashboard-grid > *, .detail-grid > *, .stats-grid > * { min-width:0; }
.chart-wrap { height:214px; width:100%; }
.legend { display:grid; grid-template-columns:1fr 1fr; gap:8px 12px; margin-top:1px; }
.legend-item { display:flex; gap:7px; align-items:center; font-size:10px; color:var(--muted); }
.dot { width:7px;height:7px; border-radius:2px; }
.activity-list { display:flex; flex-direction:column; }
.activity-row { display:flex; align-items:flex-start; gap:10px; padding:10px 0; border-bottom:1px solid var(--line); }
.activity-row:last-child { border-bottom:0; }
.activity-icon { width:24px;height:24px; border-radius:6px; display:grid; place-items:center; color:var(--accent); background:var(--accent-soft); flex:none; }
.activity-icon svg { width:12px;height:12px; }
.activity-text { font-size:10px; line-height:1.5; }
.activity-meta { color:var(--muted); font-size:9px; margin-top:3px; }
.deadline-list { display:flex; flex-direction:column; }
.deadline-row { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); }
.deadline-row:last-child { border:0; }
.date-tile { width:34px; height:37px; border:1px solid var(--line); border-radius:5px; display:grid; place-content:center; text-align:center; flex:none; }
.date-tile strong { font-size:12px; line-height:1.1; }
.date-tile small { font-size:8px; color:var(--muted); text-transform:uppercase; }
.deadline-copy { flex:1; min-width:0; }
.deadline-copy strong { display:block; font-size:10px; font-weight:500; white-space:nowrap; overflow:hidden;text-overflow:ellipsis; }
.deadline-copy small { color:var(--muted); display:block; margin-top:4px; font-size:9px; }
.pill { display:inline-flex; align-items:center; gap:5px; padding:4px 7px; border-radius:20px; font-size:9px; font-weight:500; white-space:nowrap; background:var(--surface-soft); color:var(--muted); }
.pill::before { content:""; width:5px;height:5px; border-radius:50%; background:currentColor; }
.status-pill { color:var(--status-color,#657b68); background:color-mix(in srgb,var(--status-color,#657b68) 12%, transparent); }
.priority-high,.priority-urgent { color:#b65b4e; background:#b65b4e16; }
.priority-normal { color:#8a784e; background:#c4a46f1a; }
.priority-low { color:#67846a; background:#748c7c1a; }
.table-wrap { width:100%; overflow:auto; }
.data-table { width:100%; border-collapse:collapse; min-width:760px; }
.data-table th { text-align:left; color:var(--muted); font-size:9px; font-weight:500; letter-spacing:.04em; padding:10px 12px; border-bottom:1px solid var(--line); background:var(--surface-soft); white-space:nowrap; }
.data-table td { padding:10px 12px; border-bottom:1px solid var(--line); font-size:10px; vertical-align:middle; }
.data-table tr:last-child td { border-bottom:0; }
.data-table tbody tr:hover { background:color-mix(in srgb,var(--surface-soft) 55%,transparent); }
.cell-title { font-size:10px; font-weight:550; color:var(--text); display:block; text-decoration:none; }
.cell-title:hover { color:var(--accent); }
.cell-sub { color:var(--muted); font-size:9px; display:block; margin-top:4px; }
.person-cell { display:flex; align-items:center; gap:7px; white-space:nowrap; }
.person-cell .avatar { width:23px;height:23px;font-size:8px; }
.table-select { border:0; color:var(--text); background:transparent; padding:4px 18px 4px 5px; font-size:10px; border-radius:4px; }
.table-select:hover { background:var(--surface-soft); }
.empty { text-align:center; padding:44px 18px; color:var(--muted); }
.empty svg { width:23px;height:23px; margin:0 auto 10px; }
.empty strong { display:block; color:var(--text); font-size:12px; margin-bottom:5px; }
.tabs { display:flex; gap:3px; border-bottom:1px solid var(--line); overflow-x:auto; margin-bottom:16px; }
.tab { text-decoration:none; color:var(--muted); white-space:nowrap; font-size:10px; padding:10px 11px; border-bottom:2px solid transparent; }
.tab:hover { color:var(--text); }
.tab.active { color:var(--text); border-bottom-color:var(--accent); font-weight:600; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.field { display:flex; flex-direction:column; gap:6px; }
.field.full { grid-column:1/-1; }
.field label { font-size:10px; font-weight:500; }
.field .input,.field .select,.field .textarea { width:100%; }
.textarea { height:auto; min-height:76px; resize:vertical; padding:9px 10px; }
.modal-backdrop { position:fixed; inset:0; background:#1117137a; z-index:60; display:grid; place-items:center; padding:20px; animation:fade-in .15s ease-out; }
.modal { width:min(530px,100%); max-height:90vh; overflow:auto; background:var(--surface); border:1px solid var(--line); border-radius:10px; box-shadow:0 20px 60px #0003; }
.modal-head { display:flex; align-items:flex-start; justify-content:space-between; padding:17px 19px; border-bottom:1px solid var(--line); }
.modal-head h2 { margin:0; font-size:15px; }
.modal-head p { margin:5px 0 0; color:var(--muted); font-size:10px; }
.modal-body { padding:17px 19px; }
.modal-foot { display:flex; justify-content:flex-end; gap:8px; padding:13px 19px; border-top:1px solid var(--line); }
.notice { color:#847650; background:#c3a45d15; border:1px solid #c3a45d45; padding:10px 12px; border-radius:6px; font-size:10px; line-height:1.5; }
.detail-grid { display:grid; grid-template-columns:1.4fr .8fr; gap:13px; }
.detail-hero { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.detail-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:10px; color:var(--muted); font-size:10px; }
.info-grid { display:grid; grid-template-columns:1fr 1fr; gap:15px 20px; }
.info-label { color:var(--muted); font-size:9px; margin-bottom:5px; }
.info-value { font-size:11px; }
.kanban { display:grid; grid-auto-columns:minmax(210px,1fr); grid-auto-flow:column; gap:10px; overflow:auto; padding-bottom:8px; }
.kanban-col { background:var(--surface-soft); border:1px solid var(--line); border-radius:7px; min-height:230px; }
.kanban-head { padding:10px; border-bottom:1px solid var(--line); font-size:10px; font-weight:600; display:flex; justify-content:space-between; }
.kanban-card { margin:8px; background:var(--surface); border:1px solid var(--line); border-radius:6px; padding:10px; }
.kanban-card strong { font-size:10px; display:block; }
.kanban-card small { display:block; color:var(--muted); margin-top:6px; font-size:9px; }
.tree { padding:6px 0; }
.tree-item { display:flex; align-items:center; gap:8px; min-height:32px; font-size:10px; }
.tree-item svg { width:14px;height:14px; color:var(--muted); }
.tree-item a { text-decoration:none;color:var(--text); }
.tree-item a:hover { color:var(--accent); }
.client-tree { border-left:1px solid var(--line); margin-left:8px; padding-left:13px; }
.toast { position:fixed; right:20px; bottom:20px; z-index:80; padding:11px 15px; border:1px solid var(--line); border-radius:7px; background:var(--surface); box-shadow:0 8px 30px #0002; font-size:11px; animation:fade-in .18s ease-out; }
.loading { height:100vh; display:grid; place-items:center; color:var(--muted); font-size:12px; }
@keyframes fade-in { from { opacity:0; transform:translateY(4px) } to { opacity:1;transform:translateY(0) } }
@media(max-width:1000px) { .sidebar { width:74px;flex-basis:74px;padding-left:10px;padding-right:10px; }.sidebar .brand-name,.sidebar .brand-caption,.sidebar .nav-heading,.sidebar .nav-link span,.sidebar .side-foot span { display:none; }.sidebar .nav-link { justify-content:center;padding:0; }.sidebar .brand { padding-left:8px; }.topbar { padding:0 18px; }.page-wrap { padding:23px 20px 35px; }.stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:690px) { .sidebar { position:fixed; left:0; top:auto; bottom:0; width:100%;height:57px;flex-basis:57px;padding:5px 7px;display:block;border-top:1px solid #3c433c; }.sidebar .brand,.sidebar .nav-heading,.sidebar .side-foot { display:none; }.nav-scroll { display:flex;overflow-x:auto;height:46px; }.nav-group { display:contents; }.nav-link { width:50px;min-width:50px;height:44px;margin:0;display:flex;flex-direction:column;gap:3px;padding:4px 2px;justify-content:center; }.sidebar .nav-link span { display:block;font-size:7px;max-width:50px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }.main-area { padding-bottom:57px; }.topbar { height:52px;padding:0 12px;gap:6px; }.top-date { display:none; }.search-box { width:min(250px, 58vw); }.search-box kbd { display:none; }.page-wrap { padding:19px 12px 28px; }.page-heading { margin-bottom:17px; }.page-title { font-size:20px; }.page-heading { align-items:flex-start; }.page-heading .actions { justify-content:flex-end; }.stats-grid { gap:8px; }.stat-card { min-height:86px;padding:12px; }.stat-value { font-size:22px; }.dashboard-grid,.dashboard-grid.equal,.detail-grid { grid-template-columns:1fr; }.form-grid { grid-template-columns:1fr; }.field.full { grid-column:auto; }.tabs { margin-right:-12px; }.topbar .profile-trigger { display:none; } }
@media(max-width:690px) { .sidebar { height:98px; padding:5px 3px; }.nav-scroll { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); grid-auto-rows:44px; align-content:center; gap:0; overflow:visible; height:88px; flex:none; }.nav-link { width:100%; min-width:0; height:44px; margin:0; padding:3px 1px; gap:2px; }.sidebar .nav-link span { max-width:50px; font-size:7px; }.main-area { padding-bottom:98px; }.table-wrap { overscroll-behavior-x:contain; scrollbar-width:thin; }.data-table { min-width:640px; }.data-table th { padding:8px 7px; font-size:8px; white-space:normal; }.data-table td { padding:8px 7px; font-size:9px; overflow-wrap:anywhere; }.data-table .cell-title { overflow-wrap:anywhere; }.filter-row > .input { width:min(100%, 230px); max-width:100%; flex:1 1 100%; }.actions { flex-wrap:wrap; }.modal-backdrop { padding:10px; }.modal-body,.modal-head { padding-left:14px; padding-right:14px; } }
.overdue-pill { color:#a3483d; background:#f6e8e4; border-color:#e6c2bb; white-space:nowrap; }
.dark .overdue-pill { color:#f0b4a9; background:#4a2d2a; border-color:#704741; }
.auth-page { min-height:100vh; display:grid; place-items:center; padding:24px; background:var(--bg); }
.auth-card { width:min(100%, 410px); padding:30px; border:1px solid var(--line); border-radius:9px; background:var(--surface); box-shadow:0 12px 38px #1111; }
.auth-mark { margin-bottom:17px; background:#222722; font-size:12px; font-weight:700; letter-spacing:.04em; }
.auth-form { display:grid; gap:14px; margin-top:23px; }
.auth-form .field { display:grid; gap:6px; color:var(--text); font-size:11px; }
.auth-form .input { width:100%; min-height:38px; padding:8px 10px; border:1px solid var(--line); border-radius:5px; background:var(--surface); color:var(--text); }
.auth-submit { width:100%; min-height:38px; margin-top:4px; text-decoration:none; }
.auth-message { color:#a3483d; font-size:11px; line-height:1.5; }
.dark .auth-message { color:#f0b4a9; }
.auth-message-success { color:var(--text); }
.auth-forgot-link { justify-self:end; margin-top:-7px; font-size:11px; }
.auth-forgot-link a { color:var(--accent); }
.password-control { position:relative; display:flex; align-items:center; }
.password-control .input { padding-right:42px; }
.password-visibility { position:absolute; right:5px; width:32px; height:30px; display:grid; place-items:center; border:0; border-radius:4px; background:transparent; color:var(--muted); }
.password-visibility:hover { color:var(--text); background:var(--surface-soft); }
.password-strength { display:grid; gap:5px; color:var(--muted); font-size:10px; }
.strength-track { height:4px; border-radius:4px; overflow:hidden; background:var(--surface-soft); }
.strength-fill { display:block; height:100%; width:0; background:#b55851; transition:width .2s ease, background .2s ease; }
.strength-1,.strength-2 { width:35%; background:#b55851; }
.strength-3 { width:55%; background:#bd9855; }
.strength-4 { width:78%; background:#75855f; }
.strength-5 { width:100%; background:#55785b; }
.password-strength small { font-size:10px; }
.auth-foot { margin:18px 0 0; color:var(--muted); font-size:10px; line-height:1.6; }
.auth-foot a { color:var(--accent); }
.auth-session-actions { display:grid; gap:8px; margin:10px 0; }
.auth-session-actions .btn { width:100%; }
@media(max-width:690px) { .sidebar { width:100%; flex-basis:57px; } }
/* Universal numbering template configuration */
.numbering-builder { display: grid; gap: 14px; }
.numbering-template-layout { display: grid; grid-template-columns: minmax(190px, 250px) minmax(0, 1fr); gap: 14px; align-items: start; }
.numbering-template-list, .numbering-template-editor { min-width: 0; }
.numbering-template-list { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--surface-soft); }
.template-list-heading, .template-editor-toolbar, .template-default-row, .numbering-components-heading { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.template-list-heading { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.numbering-template-option { display: grid; gap: 4px; width: 100%; margin-top: 7px; padding: 9px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.numbering-template-option:hover, .numbering-template-option.selected { border-color: var(--line); background: var(--surface); }
.numbering-template-option span { font-size: 12px; font-weight: 600; }
.numbering-template-option small { color: var(--muted); font-size: 10px; text-transform: capitalize; }
.numbering-template-editor { display: grid; gap: 13px; }
.template-editor-toolbar { min-height: 36px; flex-wrap: wrap; }
.numbering-grouping { margin: 0; border: 1px solid var(--line); border-radius: 7px; padding: 10px; }
.numbering-grouping legend { padding: 0 5px; color: var(--text); font-size: 11px; font-weight: 600; }
.numbering-group-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.numbering-group-options label, .component-optional { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 10px; }
.numbering-components-heading h3 { margin: 0; font-size: 13px; }
.numbering-component-list { display: grid; gap: 7px; }
.numbering-component-row { display: grid; grid-template-columns: 60px minmax(100px, 130px) minmax(140px, 1fr) minmax(110px, 160px) auto; gap: 7px; align-items: center; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 7px; background: var(--surface-soft); }
.component-order { display: flex; gap: 3px; }
.component-order .btn, .numbering-component-row > .btn { min-height: 28px; padding: 4px 6px; }
.component-width { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.component-width input { width: 60px; min-height: 32px; border: 1px solid var(--line); border-radius: 5px; padding: 4px 7px; background: var(--surface); color: var(--text); }
.component-help { color: var(--muted); font-size: 10px; }
.component-add-actions { flex-wrap: wrap; }
.numbering-preview { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 7px; padding: 12px; background: var(--surface-soft); }
.numbering-preview > div:first-child { display: grid; gap: 3px; }
.numbering-preview-result { min-height: 38px; overflow-wrap: anywhere; border-radius: 5px; padding: 10px; background: var(--surface); color: var(--text); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 15px; font-weight: 650; }
.template-default-row { flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; color: var(--text); font-size: 11px; }
.numbering-form-preview { display: grid; gap: 4px; margin-top: 12px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; padding: 9px 11px; background: var(--surface-soft); }
.numbering-form-preview > span { display: grid; gap: 2px; font-size: 10px; }
.numbering-form-preview small { color: var(--muted); font-size: 10px; }
.numbering-form-preview code { color: var(--text); font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.referring-company-manager { display: grid; gap: 12px; min-width: 0; }
.referring-company-add { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.numbering-rules-panel { display: grid; gap: 11px; border: 1px solid var(--line); border-radius: 7px; padding: 12px; }
.numbering-rules-panel h3 { margin: 0; font-size: 13px; }
.numbering-rule-editor { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)) auto; gap: 8px; align-items: end; }
.numbering-rule-editor .field { min-width: 0; }
.compact-input { min-width: 100px; min-height: 32px; padding: 5px 7px; font-size: 10px; }
.code-input { max-width: 100px; }
@media (max-width: 900px) { .numbering-template-layout { grid-template-columns: 1fr; } .numbering-template-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 5px; } .template-list-heading { grid-column: 1/-1; } .numbering-template-option { margin-top: 0; } }
@media (max-width: 640px) { .numbering-component-row { grid-template-columns: 46px minmax(95px, 1fr) auto; } .numbering-component-row .component-value, .numbering-component-row .component-case, .numbering-component-row .component-width, .numbering-component-row .component-help, .numbering-component-row .component-optional { grid-column: 2 / 4; width: 100%; } .numbering-group-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } .template-editor-toolbar .actions { width: 100%; flex-wrap: wrap; } .referring-company-manager .table-wrap { max-width: calc(100vw - 60px); } .numbering-rule-editor { grid-template-columns: 1fr; } }

.persistent-layout { display:grid; grid-template-columns:minmax(180px,230px) minmax(0,1fr); gap:18px; align-items:start; }
.project-documents { grid-template-columns:minmax(250px,.78fr) minmax(0,1.5fr); gap:14px; align-items:start; }
.project-documents > * { min-width:0; }
.project-documents > :last-child { grid-column:1/-1; }
.persistent-nav .nav-link { cursor:pointer; }
.field-label { font-size:10px; font-weight:500; }
.badge-warn { background:#a6803a24; color:var(--text); }
@media(max-width:760px) { .persistent-layout { grid-template-columns:minmax(0,1fr); gap:12px; } .persistent-nav { display:flex; overflow:auto; position:static !important; gap:4px; } .persistent-nav .nav-link { width:auto !important; min-width:max-content; } }
@media(max-width:690px) {
  .project-documents .table-wrap { overflow:visible; }
  .project-documents .data-table { display:block; width:100%; min-width:0; }
  .project-documents .data-table thead { display:none; }
  .project-documents .data-table tbody,
  .project-documents .data-table tr { display:block; width:100%; }
  .project-documents .data-table tr { margin-bottom:8px; padding:3px 9px; border:1px solid var(--line); border-radius:7px; }
  .project-documents .data-table td { display:block; width:100%; padding:8px 2px; overflow-wrap:anywhere; }
  .project-documents .data-table td::before { display:block; margin-bottom:3px; color:var(--muted); font-size:8px; font-weight:600; letter-spacing:.04em; content:attr(data-label); }
  .project-documents .data-table td[data-label="ACTIONS"] { display:flex; flex-wrap:wrap; gap:5px; }
  .project-documents .data-table td[data-label="ACTIONS"]::before { flex-basis:100%; }
  .project-documents .data-table td[data-label="SAVE"] { display:flex; justify-content:flex-start; }
  .project-documents .data-table td[data-label="SAVE"]::before { align-self:center; margin:0 auto 0 0; }
  .project-documents .data-table td .input,
  .project-documents .data-table td .select { width:100%; min-width:0; box-sizing:border-box; }
  .project-documents .data-table td .btn { max-width:100%; white-space:normal; }
}

/* Phase 6A/6B: SA Plans architectural studio design system */
.sa-app-shell {
  --bg:#f3f5f8; --surface:#fff; --surface-soft:#f7f8fa; --line:#e4e7ec; --text:#151b24;
  --muted:#667085; --accent:#bd8a20; --accent-soft:#fbf4e5; --sidebar:#111820; --sidebar-soft:#202b35;
  background:var(--bg); color:var(--text); min-height:100vh;
}
.dark .sa-app-shell { --bg:#151a20; --surface:#1d242c; --surface-soft:#242c35; --line:#333d48; --text:#edf1f5; --muted:#a3afbd; --accent:#dfb44f; --accent-soft:#3a3426; --sidebar:#0c1117; --sidebar-soft:#202a34; }
.sa-app-shell .main-area { background:var(--bg); }
.sa-sidebar { width:244px; flex-basis:244px; padding:17px 13px 14px; background:linear-gradient(180deg,#111820 0%,#151d26 70%,#10161c 100%); border-right:1px solid #29343e; }
.sa-sidebar.collapsed { width:76px; flex-basis:76px; }
.sa-brand { min-height:137px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:4px; padding:10px 14px 19px; margin-bottom:8px; border-bottom:1px solid #36414b; position:relative; }
.sa-brand::after { content:""; position:absolute; left:-13px; right:-13px; bottom:-1px; height:2px; background:linear-gradient(90deg,transparent,#c49a3a 45%,transparent); }
.sa-brand-mark { width:148px; height:56px; border:0; border-radius:0; color:#d0a23d; display:flex; align-items:center; justify-content:center; }
.sa-brand-mark svg { width:142px; height:56px; filter:drop-shadow(0 3px 7px #d5a6402b); }
.sa-brand .brand-name { color:#f7f8fa; font-size:22px; font-weight:650; line-height:1.15; letter-spacing:.02em; }
.sa-brand .brand-caption { color:#b5bec8; font-size:9px; margin-top:5px; letter-spacing:.13em; }
.sa-sidebar .nav-group { margin:8px 0 18px; }
.sa-sidebar .nav-heading { color:#85919d; font-size:9px; letter-spacing:.15em; padding:0 12px 8px; }
.sa-sidebar .nav-link { height:42px; padding:0 12px; gap:12px; border-radius:9px; color:#d3dae1; font-size:12px; }
.sa-sidebar .nav-link svg { width:19px; height:19px; color:#c6ced6; }
.sa-sidebar .nav-link:hover { color:#fff; background:#27323c; }
.sa-sidebar .nav-link.active { color:#fff; background:linear-gradient(100deg,#a8791b,#c99d3e); box-shadow:0 4px 13px #b9872833; }
.sa-sidebar .nav-link.active svg { color:#fff; }
.sa-sidebar .side-foot { min-height:56px; padding:12px 5px 0; gap:9px; border-color:#36414b; }
.sa-sidebar .side-foot .avatar { width:33px; height:33px; color:#553d0d; background:#dfc07a; font-weight:700; }
.sa-sidebar .side-foot strong { color:#f4f6f8; font-size:10px; }
.sa-sidebar .side-foot small { color:#aab4be; font-size:9px; text-transform:capitalize; }
.sa-topbar { height:61px; padding:0 24px; gap:13px; background:color-mix(in srgb,var(--surface) 95%,transparent); backdrop-filter:blur(16px); box-shadow:0 1px 7px #14203308; }
.sa-search { width:min(430px,45vw); height:38px; border-radius:10px; background:var(--surface); padding:0 11px; }
.sa-search input { font-size:12px; }
.sa-search kbd { background:var(--surface-soft); border-radius:5px; padding:2px 6px; }
.topbar-tools { display:flex; align-items:center; gap:10px; }
.topbar-theme { display:flex; align-items:center; gap:0; padding:3px; border-radius:20px; background:var(--surface-soft); border:1px solid var(--line); }
.topbar-theme .icon-btn { width:29px; height:27px; border-radius:18px; color:var(--muted); }
.topbar-theme .icon-btn svg { width:15px; height:15px; }
.topbar-theme .icon-btn.is-active { color:#815c11; background:#f1d88f; box-shadow:0 1px 3px #55431322; }
.dark .topbar-theme .icon-btn.is-active { color:#251d0b; background:#dfb44f; }
.topbar-notifications { position:relative; }
.topbar-notifications .notification-dot { position:absolute; top:3px; right:3px; width:8px; height:8px; border:1px solid var(--surface); border-radius:50%; background:#e33e47; }
.topbar-help { border:1px solid var(--line); border-radius:50%; font-weight:700; color:var(--text); }
.topbar-help span { width:16px; height:16px; line-height:16px; border:1.5px solid currentColor; border-radius:50%; font-size:11px; }
.sa-profile-trigger { min-width:0; width:auto; height:42px; display:flex; align-items:center; justify-content:flex-start; gap:9px; padding:0 2px 0 6px; border-radius:8px; color:var(--text); background:transparent; }
.sa-profile-trigger:hover { background:var(--surface-soft); }
.sa-profile-avatar { width:34px; height:34px; border:2px solid #f5e5bd; color:#624719; background:#e4cc91; font-weight:700; }
.top-profile-copy { display:grid; gap:3px; text-align:left; max-width:160px; }
.top-profile-copy strong { overflow:hidden; color:var(--text); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.top-profile-copy small { color:var(--muted); font-size:9px; text-transform:capitalize; }
.sa-profile-menu { position:absolute; right:15px; top:51px; z-index:35; width:245px; padding:14px; box-shadow:0 12px 35px #14203320; }
.sa-app-shell .page-wrap { max-width:1760px; padding:19px 19px 30px; }
.sa-app-shell .card { border-radius:13px; border-color:var(--line); box-shadow:0 2px 8px #2330460a,0 7px 20px #23304608; }
.sa-app-shell .btn { min-height:36px; border-radius:8px; font-size:11px; }
.sa-app-shell .btn.primary { color:#21190a; background:linear-gradient(110deg,#d1a239,#e6c876); border-color:#cda03c; }
.sa-app-shell .btn.primary:hover { background:#d6ac4b; }
.sa-app-shell .input,.sa-app-shell .select,.sa-app-shell .textarea { min-height:36px; border-radius:8px; }
.sa-app-shell .page-title { font-size:24px; }
.sa-app-shell .card-head { padding:16px 17px 11px; }

.sa-dashboard { display:grid; gap:13px; min-width:0; }
.dashboard-hero { min-height:181px; position:relative; isolation:isolate; overflow:hidden; border:1px solid #d8dee4; border-radius:16px; background:linear-gradient(110deg,#f7f8f9 0%,#e8edf0 42%,#bcc8d0 100%); box-shadow:0 5px 18px #192b3d12; }
.dashboard-architecture-art { position:absolute; z-index:-2; top:0; right:0; width:min(73%,1000px); height:100%; opacity:.96; }
.dashboard-hero-shade { position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,#f7f8f9 0%,#f7f8f9f2 27%,#f7f8f9b8 43%,#f7f8f92b 68%,transparent 100%); }
.dark .dashboard-hero { border-color:#37434e; background:#202832; }
.dark .dashboard-hero-shade { background:linear-gradient(90deg,#202832 0%,#202832f4 27%,#202832c7 46%,#20283252 68%,#20283224 100%); }
.dashboard-greeting { min-height:181px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:17px 20px; }
.dashboard-date { display:flex; align-items:center; gap:8px; color:#344054; font-size:11px; font-weight:600; }
.dashboard-date svg { color:#252d36; }
.dashboard-greeting h1 { margin:9px 0 4px; color:#101820; font-size:26px; line-height:1.15; letter-spacing:-.045em; font-weight:750; }
.dashboard-greeting h1 span { font-size:23px; }
.dashboard-greeting p { margin:0; color:#344054; font-size:13px; }
.dark .dashboard-date,.dark .dashboard-date svg,.dark .dashboard-greeting h1,.dark .dashboard-greeting p { color:#edf2f6; }
.dashboard-hero-controls { position:absolute; right:14px; bottom:18px; display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; max-width:57%; }
.dashboard-quick-button { min-height:38px; display:inline-flex; align-items:center; gap:8px; padding:0 13px; border:1px solid #dbe0e5; border-radius:9px; color:#17202a; background:#ffffffed; box-shadow:0 3px 9px #1b2b3914; font-size:11px; font-weight:650; white-space:nowrap; transition:transform .15s,box-shadow .15s,background .15s; }
.dashboard-quick-button:hover { transform:translateY(-1px); box-shadow:0 6px 14px #1b2b3924; background:#fff; }
.dashboard-quick-primary { color:#fff; border-color:#b38222; background:linear-gradient(105deg,#aa7818,#c99c3d); }
.dashboard-quick-primary:hover { background:#ae7d1e; }
.dashboard-workspace-picker { display:flex; }
.dashboard-workspace-picker select { min-height:36px; max-width:160px; border:1px solid #dbe0e5; border-radius:9px; padding:0 9px; color:#202a33; background:#fff; font-size:10px; }
.dashboard-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.dashboard-kpi-card { min-width:0; min-height:98px; display:flex; align-items:center; gap:13px; position:relative; overflow:hidden; padding:14px 15px; border:1px solid var(--line); border-radius:15px; color:var(--text); text-decoration:none; box-shadow:0 3px 10px #1b27330d; transition:transform .16s,box-shadow .16s; }
.dashboard-kpi-card::after { content:""; position:absolute; width:120px; height:70px; right:-15px; bottom:-29px; border-radius:90px 0 0 0; background:linear-gradient(135deg,transparent,#ffffffb3); transform:rotate(-12deg); opacity:.6; }
.dashboard-kpi-card:hover { transform:translateY(-2px); box-shadow:0 8px 19px #1b27331a; }
.dashboard-kpi-card.violet { background:linear-gradient(120deg,#fff,#faf7ff); border-color:#e8dff8; }
.dashboard-kpi-card.green { background:linear-gradient(120deg,#fff,#f4fbf1); border-color:#dcebd6; }
.dashboard-kpi-card.amber { background:linear-gradient(120deg,#fff,#fff9e9); border-color:#f1e5c8; }
.dashboard-kpi-card.blue { background:linear-gradient(120deg,#fff,#f1f7ff); border-color:#d8e5f5; }
.dark .dashboard-kpi-card.violet,.dark .dashboard-kpi-card.green,.dark .dashboard-kpi-card.amber,.dark .dashboard-kpi-card.blue { background:linear-gradient(120deg,var(--surface),var(--surface-soft)); border-color:var(--line); }
.dashboard-kpi-icon { width:53px; height:53px; flex:none; display:grid; place-items:center; border-radius:12px; color:#fff; background:#8d51dc; box-shadow:inset 0 1px #ffffff60; }
.dashboard-kpi-icon svg { width:24px; height:24px; }
.green .dashboard-kpi-icon { background:#52ad3e; }
.amber .dashboard-kpi-icon { background:#f0af14; }
.blue .dashboard-kpi-icon { background:#3697e7; }
.dashboard-kpi-copy { display:grid; min-width:0; gap:3px; }
.dashboard-kpi-copy > span { overflow:hidden; color:#28323d; font-size:11px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-kpi-copy > strong { color:#101820; font-size:26px; line-height:1; letter-spacing:-.04em; }
.dashboard-kpi-copy > small { color:#5c6673; font-size:9px; }
.dark .dashboard-kpi-copy > span,.dark .dashboard-kpi-copy > strong,.dark .dashboard-kpi-copy > small { color:var(--text); }
.dashboard-kpi-arrow { margin-left:auto; color:#687384; opacity:0; transition:opacity .15s; }
.dashboard-kpi-card:hover .dashboard-kpi-arrow { opacity:1; }
.dashboard-grid-premium { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:13px; }
.dashboard-grid-top > *, .dashboard-grid-bottom > * { min-width:0; }
.dashboard-panel { min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:15px; background:var(--surface); box-shadow:0 2px 8px #2330460a,0 7px 20px #23304608; }
.dashboard-panel-pipeline { grid-column:span 4; }
.dashboard-panel-actions { grid-column:span 5; }
.dashboard-panel-calendar { grid-column:span 3; }
.dashboard-panel-team,.dashboard-panel-council,.dashboard-panel-deadlines { grid-column:span 4; }
.dashboard-panel-activity { grid-column:1/-1; }
.dashboard-panel-heading { min-height:48px; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 15px 8px; }
.dashboard-panel-heading h2 { display:flex; align-items:center; gap:9px; min-width:0; margin:0; color:var(--text); font-size:14px; font-weight:720; letter-spacing:-.025em; }
.dashboard-panel-heading h2 > span { width:19px; height:19px; display:grid; place-items:center; flex:none; color:#1d2730; }
.dashboard-panel-heading h2 svg { width:18px; height:18px; }
.dashboard-panel-heading h2 i { min-width:22px; height:22px; display:grid; place-items:center; border-radius:50%; color:white; background:#df3338; font-size:10px; font-style:normal; }
.dashboard-panel-content { padding:3px 14px 13px; }
.dashboard-view-link { display:inline-flex; align-items:center; gap:5px; color:#1746a2; text-decoration:none; white-space:nowrap; font-size:10px; font-weight:650; }
.dashboard-view-link:hover { text-decoration:underline; }
.dark .dashboard-view-link { color:#8ab4ff; }
.pipeline-content { min-height:210px; display:grid; grid-template-columns:minmax(135px, 47%) minmax(0,1fr); gap:8px; align-items:center; }
.pipeline-chart { width:100%; height:205px; position:relative; }
.pipeline-total { position:absolute; inset:0; display:grid; align-content:center; justify-items:center; pointer-events:none; }
.pipeline-total strong { color:var(--text); font-size:27px; line-height:1; }
.pipeline-total span { margin-top:3px; color:var(--muted); font-size:10px; }
.pipeline-legend { display:grid; gap:2px; max-height:210px; overflow:auto; padding:3px 0; scrollbar-width:thin; }
.pipeline-legend-row { min-width:0; display:grid; grid-template-columns:9px minmax(0,1fr) auto; align-items:center; gap:7px; min-height:24px; padding:2px 4px; border:0; border-radius:5px; color:var(--text); background:transparent; text-align:left; cursor:pointer; }
.pipeline-legend-row:hover { background:var(--surface-soft); }
.pipeline-legend-row > i { width:8px; height:8px; border-radius:50%; }
.pipeline-legend-row > span { overflow:hidden; color:var(--muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.pipeline-legend-row > strong { display:flex; align-items:center; gap:5px; font-size:9px; }
.pipeline-legend-row > strong small { color:var(--muted); font-size:8px; }
.dashboard-action-list { display:grid; gap:2px; }
.dashboard-action-row { width:100%; min-height:53px; display:flex; align-items:center; gap:9px; padding:7px 7px; border:1px solid transparent; border-bottom-color:var(--line); border-radius:9px; color:var(--text); background:transparent; text-align:left; cursor:pointer; }
.dashboard-action-row:hover { border-color:var(--line); background:var(--surface-soft); }
.dashboard-action-icon { width:31px; height:31px; display:grid; place-items:center; flex:none; border-radius:9px; color:#cf3842; background:#fff0f0; }
.dashboard-action-icon.is-new { color:#bc831a; background:#fff4d8; }
.dashboard-action-icon.is-progress { color:#348ee0; background:#e7f3ff; }
.dashboard-action-icon.is-overdue { color:#d13c41; background:#fff0f0; }
.dashboard-action-copy { display:grid; min-width:0; gap:3px; flex:1; }
.dashboard-action-copy strong { overflow:hidden; font-size:10px; font-weight:680; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-action-copy small { overflow:hidden; color:var(--muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-action-due { flex:none; max-width:86px; border-radius:6px; padding:5px 7px; color:#8a5b0a; background:#fff3d4; font-size:8px; font-weight:650; text-align:center; text-transform:capitalize; }
.dashboard-action-due.is-overdue { color:#b52f35; background:#ffe9e8; }
.mini-calendar-head { display:flex; align-items:center; justify-content:space-between; margin:0 0 6px; }
.mini-calendar-head button { width:28px; height:27px; display:grid; place-items:center; border:0; border-radius:7px; color:var(--text); background:transparent; cursor:pointer; }
.mini-calendar-head button:hover { background:var(--surface-soft); }
.mini-calendar-head strong { font-size:11px; }
.mini-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:2px; }
.mini-calendar-weekday { padding:4px 0; color:var(--muted); font-size:8px; font-weight:650; text-align:center; }
.mini-calendar-day { aspect-ratio:1; max-height:31px; position:relative; display:grid; place-items:center; padding:0; border:0; border-radius:7px; color:var(--text); background:transparent; font-size:9px; cursor:pointer; }
.mini-calendar-day:hover { background:var(--surface-soft); }
.mini-calendar-day.is-outside { color:#aeb5c0; }
.mini-calendar-day.is-today { color:#815c11; background:#fff3cf; font-weight:750; }
.mini-calendar-day.is-selected { color:white; background:#ba891f; box-shadow:0 2px 6px #bb8d2a55; }
.mini-calendar-day i { width:4px; height:4px; position:absolute; bottom:3px; border-radius:50%; background:#3295e5; }
.mini-calendar-day.is-selected i { background:white; }
.calendar-event-list { display:grid; min-height:49px; gap:3px; margin-top:8px; padding-top:6px; border-top:1px solid var(--line); }
.calendar-event-list button { min-width:0; display:flex; align-items:center; gap:7px; padding:3px; border:0; border-radius:5px; color:var(--text); background:transparent; text-align:left; cursor:pointer; }
.calendar-event-list button:hover { background:var(--surface-soft); }
.calendar-event-list button > i { width:7px; height:7px; flex:none; border-radius:50%; }
.calendar-event-list button > span { display:grid; min-width:0; gap:2px; }
.calendar-event-list button strong,.calendar-event-list button small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.calendar-event-list button strong { font-size:9px; }
.calendar-event-list button small,.calendar-event-list > p { margin:0; color:var(--muted); font-size:8px; }
.dashboard-team-list { display:grid; }
.dashboard-team-row { min-height:63px; display:flex; align-items:center; gap:9px; padding:7px 2px; border-bottom:1px solid var(--line); color:var(--text); text-decoration:none; }
.dashboard-team-row:last-child { border-bottom:0; }
.dashboard-team-row:hover .dashboard-team-copy > strong { color:#a4771c; }
.dashboard-avatar { width:39px; height:39px; display:grid; place-items:center; flex:none; border-radius:50%; color:#2e3743; font-size:11px; font-weight:700; }
.dashboard-team-copy { display:grid; min-width:0; flex:1; gap:6px; }
.dashboard-team-copy > strong { display:flex; justify-content:space-between; gap:6px; font-size:10px; }
.dashboard-team-copy > strong small { overflow:hidden; color:var(--muted); font-size:8px; font-weight:450; text-overflow:ellipsis; text-transform:capitalize; white-space:nowrap; }
.dashboard-meter { height:7px; display:block; overflow:hidden; border-radius:9px; background:var(--surface-soft); }
.dashboard-meter i { height:100%; display:block; border-radius:9px; }
.dashboard-team-stat { width:75px; display:grid; grid-template-columns:repeat(2,auto); justify-content:end; align-items:baseline; gap:1px 4px; text-align:right; }
.dashboard-team-stat strong { font-size:10px; }
.dashboard-team-stat small { color:var(--muted); font-size:7px; }
.council-list { display:grid; }
.council-list-heading,.council-row { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(70px,.85fr) minmax(85px,.95fr); align-items:center; gap:8px; }
.council-list-heading { min-height:29px; padding:0 5px; border-radius:7px; color:#475467; background:var(--surface-soft); font-size:8px; font-weight:700; }
.council-row { min-height:42px; width:100%; padding:5px; border:0; border-bottom:1px solid var(--line); color:var(--text); background:transparent; text-align:left; cursor:pointer; }
.council-row:hover { background:var(--surface-soft); }
.council-row > span:first-child { min-width:0; display:grid; gap:3px; }
.council-row strong { overflow:hidden; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.council-row small { color:var(--muted); font-size:8px; }
.council-row > span:nth-child(2) { overflow:hidden; color:var(--muted); font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.council-status { justify-self:start; max-width:100%; overflow:hidden; border-radius:12px; padding:5px 7px; color:#145bb3; background:#e7f2ff; font-size:8px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
.council-status.amendments-required { color:#b62f35; background:#ffebea; }
.council-status.approved { color:#25853b; background:#e7f5e8; }
.council-status.busy-with-scrutiny,.council-status.resubmitted { color:#99610c; background:#fff4d9; }
.dashboard-deadline-list { display:grid; }
.dashboard-deadline-row { min-width:0; min-height:57px; display:flex; align-items:center; gap:9px; padding:5px 2px; border:0; border-bottom:1px solid var(--line); color:var(--text); background:transparent; text-align:left; cursor:pointer; }
.dashboard-deadline-row:hover { background:var(--surface-soft); }
.deadline-date-chip { width:39px; height:39px; display:grid; place-content:center; flex:none; border-radius:9px; text-align:center; }
.deadline-date-chip strong { font-size:14px; line-height:1; }
.deadline-date-chip small { margin-top:3px; font-size:8px; font-weight:700; text-transform:uppercase; }
.dashboard-deadline-copy { display:grid; min-width:0; flex:1; gap:4px; }
.dashboard-deadline-copy strong { overflow:hidden; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-deadline-copy small { overflow:hidden; color:var(--muted); font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-deadline-row > svg { color:var(--muted); flex:none; }
.dashboard-overdue-note { min-height:58px; display:flex; align-items:center; gap:8px; color:#b33b3b; font-size:10px; }
.dashboard-timeline { display:grid; }
.dashboard-activity-row { width:100%; min-height:58px; display:flex; align-items:center; gap:10px; padding:8px 3px; border:0; border-bottom:1px solid var(--line); color:var(--text); background:transparent; text-align:left; cursor:pointer; }
.dashboard-activity-row:last-child { border-bottom:0; }
.dashboard-activity-row:hover { background:var(--surface-soft); }
.dashboard-activity-icon { width:36px; height:36px; display:grid; place-items:center; flex:none; border-radius:50%; color:#248647; background:#e4f4e7; }
.dashboard-activity-icon.is-note { color:#8046c4; background:#f1e7fb; }
.dashboard-activity-icon.is-action { color:#328bdf; background:#e6f2ff; }
.dashboard-activity-copy { display:grid; min-width:0; flex:1; gap:3px; }
.dashboard-activity-copy strong { overflow:hidden; font-size:10px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-activity-copy small { overflow:hidden; color:var(--muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-activity-row > svg { color:var(--muted); flex:none; }
.dashboard-empty { min-height:122px; display:grid; align-content:center; justify-items:center; gap:5px; padding:16px; text-align:center; }
.dashboard-empty > span { width:35px; height:35px; display:grid; place-items:center; margin-bottom:2px; border-radius:50%; color:#9b7625; background:var(--accent-soft); }
.dashboard-empty strong { font-size:10px; }
.dashboard-empty p { max-width:250px; margin:0; color:var(--muted); font-size:9px; line-height:1.5; }
.dashboard-loading,.dashboard-error { min-height:112px; display:flex; align-items:center; justify-content:center; gap:8px; color:var(--muted); font-size:10px; }
.dashboard-error { color:#b4232b; text-align:left; }
.dashboard-spinner { width:15px; height:15px; border:2px solid var(--line); border-top-color:var(--accent); border-radius:50%; animation:dashboard-spin .8s linear infinite; }
@keyframes dashboard-spin { to { transform:rotate(360deg); } }
.dashboard-activity-trend { border:1px solid var(--line); border-radius:13px; background:var(--surface); box-shadow:0 2px 8px #2330460a; }
.dashboard-activity-trend summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:43px; padding:10px 15px; color:var(--text); cursor:pointer; font-size:11px; font-weight:700; list-style:none; }
.dashboard-activity-trend summary::-webkit-details-marker { display:none; }
.dashboard-activity-trend summary::before { content:"⌄"; color:var(--accent); font-size:16px; }
.dashboard-activity-trend[open] summary::before { content:"⌃"; }
.dashboard-activity-trend summary span { margin-left:auto; color:var(--muted); font-size:9px; font-weight:450; }
.dashboard-trend-tools { display:flex; align-items:center; justify-content:flex-end; gap:8px; padding:0 15px; color:var(--muted); font-size:9px; }
.dashboard-trend-tools select { min-height:30px; border:1px solid var(--line); border-radius:7px; padding:3px 8px; color:var(--text); background:var(--surface); font-size:9px; }
.dashboard-trend-chart { width:100%; height:175px; padding:8px 12px 12px; }
.sr-only { width:1px; height:1px; position:absolute; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; clip-path:inset(50%); }

@media(max-width:1180px) {
  .sa-sidebar { width:76px; flex-basis:76px; padding:16px 9px; }
  .sa-sidebar .brand-name,.sa-sidebar .brand-caption,.sa-sidebar .nav-heading,.sa-sidebar .nav-link span,.sa-sidebar .side-foot span { display:none; }
  .sa-sidebar .sa-brand { min-height:80px; align-items:center; padding:4px 0 12px; }
  .sa-sidebar .sa-brand-mark,.sa-sidebar .sa-brand-mark svg { width:48px; height:41px; }
  .sa-sidebar .nav-link { justify-content:center; padding:0; }
  .sa-sidebar .side-foot { justify-content:center; }
  .sa-sidebar .side-foot .icon-btn { display:none; }
  .dashboard-panel-pipeline,.dashboard-panel-actions { grid-column:span 6; }
  .dashboard-panel-calendar { grid-column:span 12; }
  .dashboard-panel-calendar .mini-calendar-grid { max-width:520px; }
  .dashboard-panel-team,.dashboard-panel-council { grid-column:span 6; }
  .dashboard-panel-deadlines { grid-column:span 12; }
}
@media(max-width:760px) {
  .sa-topbar { padding:0 12px; gap:7px; }
  .sa-search { width:min(390px,52vw); }
  .topbar-help,.top-profile-copy { display:none; }
  .topbar-tools { gap:4px; }
  .sa-app-shell .page-wrap { padding:13px 12px 22px; }
  .dashboard-hero,.dashboard-greeting { min-height:220px; }
  .dashboard-architecture-art { width:100%; opacity:.55; }
  .dashboard-hero-shade { background:linear-gradient(90deg,#f7f8f9f7 0%,#f7f8f9d9 55%,#f7f8f94a 100%); }
  .dark .dashboard-hero-shade { background:linear-gradient(90deg,#202832f7 0%,#202832d9 55%,#20283259 100%); }
  .dashboard-greeting { justify-content:flex-start; padding:17px 16px; }
  .dashboard-greeting h1 { font-size:23px; }
  .dashboard-greeting p { max-width:65%; font-size:11px; }
  .dashboard-hero-controls { right:12px; left:12px; bottom:12px; max-width:none; justify-content:flex-start; gap:6px; }
  .dashboard-quick-button { min-height:34px; padding:0 9px; font-size:9px; }
  .dashboard-quick-button svg { width:14px; height:14px; }
  .dashboard-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .dashboard-kpi-card { min-height:84px; gap:9px; padding:10px; border-radius:12px; }
  .dashboard-kpi-icon { width:40px; height:40px; border-radius:10px; }
  .dashboard-kpi-icon svg { width:19px; height:19px; }
  .dashboard-kpi-copy > span { font-size:9px; white-space:normal; }
  .dashboard-kpi-copy > strong { font-size:22px; }
  .dashboard-kpi-copy > small { font-size:8px; }
  .dashboard-grid-premium { grid-template-columns:minmax(0,1fr); gap:9px; }
  .dashboard-panel-pipeline,.dashboard-panel-actions,.dashboard-panel-calendar,.dashboard-panel-team,.dashboard-panel-council,.dashboard-panel-deadlines,.dashboard-panel-activity { grid-column:1; }
  .dashboard-panel-heading { min-height:45px; padding:11px 12px 7px; }
  .dashboard-panel-heading h2 { font-size:13px; }
  .dashboard-panel-content { padding:2px 11px 11px; }
  .pipeline-content { grid-template-columns:minmax(120px,43%) minmax(0,1fr); min-height:190px; }
  .pipeline-chart { height:180px; }
  .pipeline-legend { max-height:180px; }
  .pipeline-legend-row { min-height:22px; gap:5px; }
  .pipeline-legend-row > span,.pipeline-legend-row > strong { font-size:8px; }
  .mini-calendar-grid { gap:3px; }
  .mini-calendar-day { max-height:39px; font-size:10px; }
  .calendar-event-list { min-height:42px; }
  .council-list-heading,.council-row { grid-template-columns:minmax(0,1.15fr) minmax(0,.8fr) minmax(78px,.9fr); gap:5px; }
  .council-row strong,.dashboard-deadline-copy strong,.dashboard-activity-copy strong { font-size:9px; }
  .dashboard-activity-row { min-height:61px; }
  .dashboard-activity-copy strong,.dashboard-activity-copy small { white-space:normal; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
  .dashboard-activity-trend summary { padding:10px 12px; }
}
@media(max-width:520px) {
  .sa-sidebar { position:fixed; left:0; right:0; bottom:0; top:auto; width:100%; height:104px; flex-basis:104px; display:block; padding:5px 3px; border-top:1px solid #35414c; border-right:0; }
  .sa-sidebar .brand,.sa-sidebar .nav-heading,.sa-sidebar .side-foot { display:none; }
  .sa-sidebar .nav-scroll { height:94px; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); grid-template-rows:repeat(2,45px); align-content:center; gap:1px; overflow:visible; }
  .sa-sidebar .nav-group { display:contents; }
  .sa-sidebar .nav-link { width:100%; min-width:0; height:44px; display:flex; flex-direction:column; justify-content:center; gap:2px; padding:3px 1px; }
  .sa-sidebar .nav-link span { max-width:100%; display:block; overflow:hidden; color:inherit; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
  .sa-sidebar .nav-link svg { width:17px; height:17px; }
  .sa-sidebar.collapsed { width:100%; }
  .main-area { padding-bottom:104px; }
  .sa-topbar { height:54px; padding:0 8px; }
  .sa-search { width:min(250px,57vw); height:34px; }
  .sa-search kbd,.top-date,.topbar-help { display:none; }
  .topbar-theme { padding:2px; }
  .topbar-theme .icon-btn { width:25px; height:24px; }
  .sa-profile-trigger { height:35px; padding:0 2px; }
  .sa-profile-avatar { width:29px; height:29px; }
  .sa-app-shell .page-wrap { padding:10px 8px 18px; }
  .dashboard-hero,.dashboard-greeting { min-height:238px; }
  .dashboard-greeting { padding:14px 12px; }
  .dashboard-greeting h1 { font-size:21px; }
  .dashboard-greeting p { max-width:74%; }
  .dashboard-hero-controls { left:9px; right:9px; bottom:9px; }
  .dashboard-workspace-picker { width:100%; }
  .dashboard-workspace-picker select { max-width:none; width:100%; min-height:31px; }
  .dashboard-quick-button { min-height:32px; padding:0 7px; font-size:8px; }
  .dashboard-quick-button svg { display:none; }
  .dashboard-kpi-card { min-height:79px; gap:7px; padding:8px; }
  .dashboard-kpi-icon { width:34px; height:34px; }
  .dashboard-kpi-copy > span { font-size:8px; }
  .dashboard-kpi-copy > strong { font-size:19px; }
  .dashboard-kpi-copy > small { max-width:100px; font-size:7px; }
  .dashboard-kpi-arrow { display:none; }
  .pipeline-content { grid-template-columns:minmax(100px,39%) minmax(0,1fr); gap:5px; }
  .pipeline-chart { height:160px; }
  .pipeline-legend { max-height:160px; }
  .pipeline-legend-row > span { font-size:7px; }
  .pipeline-legend-row > strong { gap:3px; font-size:7px; }
  .pipeline-legend-row > strong small { font-size:7px; }
  .dashboard-action-due { max-width:65px; padding:4px; font-size:7px; }
  .council-list-heading { font-size:7px; }
  .council-status { max-width:86px; padding:4px 5px; font-size:7px; }
  .dashboard-trend-tools { padding:0 12px; }
  .dashboard-trend-chart { height:155px; padding:8px 4px 9px; }
}

/* Dashboard refinement: photo hero, stronger semantic colour and compact density. */
.sa-dashboard { gap:10px; }
.dashboard-hero {
  min-height:158px;
  background-color:#e8edf1;
  background-image:linear-gradient(90deg,#f7f8f9 0%,#f7f8f9e8 24%,#f7f8f99c 42%,#f7f8f930 60%,#f7f8f908 78%),url("/sa-plans-dashboard-architecture.png");
  background-size:cover;
  background-position:center 54%;
}
.dashboard-architecture-art { display:none; }
.dashboard-hero-shade { background:linear-gradient(90deg,#f7f8f9 0%,#f7f8f9e4 23%,#f7f8f982 41%,#f7f8f916 58%,transparent 78%); }
.dashboard-greeting { min-height:158px; padding:15px 19px; }
.dashboard-greeting h1 { font-size:27px; }
.dashboard-greeting p { font-size:13px; }
.dark .dashboard-hero {
  background-color:#202832;
  background-image:linear-gradient(90deg,#202832 0%,#202832e8 25%,#202832a0 43%,#20283238 62%,#20283212 82%),url("/sa-plans-dashboard-architecture.png");
  background-position:center 54%;
}
.dark .dashboard-hero-shade { background:linear-gradient(90deg,#202832 0%,#202832e4 23%,#2028328e 42%,#20283220 61%,transparent 80%); }
.dashboard-kpis { gap:10px; }
.dashboard-kpi-card { min-height:88px; gap:12px; padding:12px 14px; border-radius:14px; box-shadow:0 4px 12px #1b273316; }
.dashboard-kpi-card::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; opacity:.82; }
.dashboard-kpi-card.violet { background:linear-gradient(118deg,#fff 0%,#faf6ff 54%,#eee2ff 100%); border-color:#dfd0f5; }
.dashboard-kpi-card.violet::before { background:#8e4ce2; }
.dashboard-kpi-card.green { background:linear-gradient(118deg,#fff 0%,#f4fbf1 54%,#dff2d9 100%); border-color:#cfe6c7; }
.dashboard-kpi-card.green::before { background:#45a83c; }
.dashboard-kpi-card.orange { background:linear-gradient(118deg,#fff 0%,#fff8eb 54%,#ffe7bd 100%); border-color:#f1dcb5; }
.dashboard-kpi-card.orange::before { background:#ed9410; }
.dashboard-kpi-card.blue { background:linear-gradient(118deg,#fff 0%,#f1f7ff 54%,#d9eaff 100%); border-color:#cfdef1; }
.dashboard-kpi-card.blue::before { background:#338fe4; }
.dashboard-kpi-card.violet .dashboard-kpi-icon { background:linear-gradient(145deg,#a66aee,#7735cc); }
.dashboard-kpi-card.green .dashboard-kpi-icon { background:linear-gradient(145deg,#69c654,#329b2c); }
.dashboard-kpi-card.orange .dashboard-kpi-icon { background:linear-gradient(145deg,#ffbf3f,#ec8b00); }
.dashboard-kpi-card.blue .dashboard-kpi-icon { background:linear-gradient(145deg,#58aff7,#237fdb); }
.dashboard-kpi-icon { width:50px; height:50px; border:1px solid #ffffff66; box-shadow:inset 0 1px #ffffff85,0 4px 10px #263b5428; }
.dashboard-kpi-icon svg { width:25px; height:25px; stroke-width:2; }
.dashboard-kpi-copy > span { font-size:12px; }
.dashboard-kpi-copy > strong { font-size:30px; font-weight:800; }
.dashboard-kpi-copy > small { font-size:10px; }
.dark .dashboard-kpi-card.violet { background:linear-gradient(118deg,#262431,#30273f); border-color:#4b3b60; }
.dark .dashboard-kpi-card.green { background:linear-gradient(118deg,#222c28,#253a2d); border-color:#35533d; }
.dark .dashboard-kpi-card.orange { background:linear-gradient(118deg,#302a20,#40311d); border-color:#5b482a; }
.dark .dashboard-kpi-card.blue { background:linear-gradient(118deg,#222b36,#243a50); border-color:#344c64; }
.dashboard-grid-premium { gap:10px; }
.dashboard-grid-top,.dashboard-grid-bottom { align-items:stretch; }
.dashboard-panel { height:100%; }
.dashboard-panel { border-radius:14px; box-shadow:0 2px 7px #2330460a,0 5px 15px #23304608; }
.dashboard-panel-heading { min-height:42px; padding:9px 13px 6px; }
.dashboard-panel-heading h2 { gap:8px; font-size:15px; }
.dashboard-panel-heading h2 > span { color:#344052; }
.dark .dashboard-panel-heading h2 > span { color:#e0e8ef; }
.dashboard-panel-content { padding:2px 12px 9px; }
.dashboard-panel-content small,.dashboard-panel-content p { font-size:max(10px,1em); }
.dashboard-view-link { font-size:10px; }
.pipeline-content { min-height:174px; grid-template-columns:minmax(132px,45%) minmax(0,1fr); gap:7px; }
.pipeline-chart { height:170px; }
.pipeline-total strong { font-size:28px; font-weight:800; }
.pipeline-total span { font-size:11px; }
.pipeline-legend { max-height:174px; gap:1px; }
.pipeline-legend-row { min-height:22px; gap:7px; }
.pipeline-legend-row > i { width:9px; height:9px; box-shadow:0 0 0 2px var(--surface),0 1px 4px #1b273333; }
.pipeline-legend-row > span { color:var(--text); font-size:10px; font-weight:550; }
.pipeline-legend-row > strong { font-size:10px; }
.pipeline-legend-row > strong small { font-size:9px; }
.dashboard-action-row { min-height:47px; padding:5px 6px; }
.dashboard-action-icon { width:29px; height:29px; box-shadow:inset 0 1px #ffffff88; }
.dashboard-action-copy strong { font-size:11px; }
.dashboard-action-copy small { font-size:10px; }
.dashboard-action-due { font-size:9px; }
.mini-calendar-head { margin-bottom:4px; }
.mini-calendar-head strong { font-size:12px; }
.mini-calendar-grid { gap:1px; }
.mini-calendar-weekday { padding:3px 0; font-size:9px; }
.mini-calendar-day { max-height:22px; font-size:10px; }
.calendar-event-list { min-height:42px; gap:2px; margin-top:5px; padding-top:4px; }
.calendar-event-list button strong { font-size:10px; }
.calendar-event-list button small,.calendar-event-list > p { font-size:9px; }
.dashboard-team-row { min-height:56px; gap:8px; padding:5px 2px; }
.dashboard-avatar { width:35px; height:35px; color:#fff; box-shadow:0 2px 6px #1f293326; }
.dashboard-team-copy { gap:5px; }
.dashboard-team-copy > strong { font-size:11px; }
.dashboard-team-copy > strong small { font-size:9px; }
.dashboard-meter { height:8px; }
.dashboard-team-stat strong { font-size:11px; }
.dashboard-team-stat small { font-size:9px; }
.council-list-heading { color:#344054; font-size:10px; }
.dark .council-list-heading { color:#e1e8ef; background:#303a45; }
.council-row { min-height:38px; }
.council-row strong { font-size:10px; }
.council-row small,.council-row > span:nth-child(2) { font-size:9px; }
.council-status { padding:4px 7px; font-size:9px; }
.dashboard-deadline-row { min-height:49px; gap:8px; }
.deadline-date-chip { width:36px; height:36px; box-shadow:inset 0 1px #ffffff9c; }
.deadline-date-chip strong { font-size:15px; }
.deadline-date-chip small { font-size:9px; }
.dashboard-deadline-copy { gap:3px; }
.dashboard-deadline-copy strong { font-size:10px; }
.dashboard-deadline-copy small { font-size:9px; }
.dashboard-activity-row { min-height:50px; gap:9px; padding:5px 3px; }
.dashboard-activity-icon { width:33px; height:33px; box-shadow:inset 0 1px #ffffff8a; }
.dashboard-activity-icon.is-upload { color:#248647; background:#e4f4e7; }
.dashboard-activity-icon.is-note { color:#8046c4; background:#f1e7fb; }
.dashboard-activity-icon.is-action { color:#328bdf; background:#e6f2ff; }
.dashboard-activity-icon.is-council { color:#168a88; background:#e1f5f2; }
.dashboard-activity-icon.is-task { color:#c36a17; background:#fff0de; }
.dashboard-activity-icon.is-workflow { color:#c28a13; background:#fff5d8; }
.dashboard-activity-copy strong { font-size:11px; }
.dashboard-activity-copy small { font-size:10px; }
.dashboard-activity-trend summary { min-height:39px; font-size:12px; }

/* Shared Phase 6 visual language for the existing application modules. */
.sa-app-shell {
  --muted:#586575;
  --surface-soft:#f2f4f7;
  --line:#dce2e8;
}
.dark .sa-app-shell {
  --muted:#b4bfcc;
  --surface-soft:#28323d;
  --line:#3a4652;
}
.sa-app-shell .page-heading { align-items:center; margin-bottom:18px; }
.sa-app-shell .eyebrow { color:var(--accent); font-size:10px; font-weight:700; letter-spacing:.1em; }
.sa-app-shell .page-title { color:var(--text); font-size:25px; font-weight:740; letter-spacing:-.035em; }
.sa-app-shell .page-subtitle { max-width:76ch; color:var(--muted); font-size:12px; line-height:1.55; }
.sa-app-shell .card { background:var(--surface); border-color:var(--line); }
.sa-app-shell .card-head { gap:12px; }
.sa-app-shell .card-title { color:var(--text); font-size:14px; font-weight:720; }
.sa-app-shell .card-note,.sa-app-shell .cell-sub,.sa-app-shell .activity-meta,.sa-app-shell .info-label { color:var(--muted); font-size:10px; line-height:1.5; }
.sa-app-shell .data-table { min-width:700px; }
.sa-app-shell .data-table th { color:#4d5b6b; font-size:10px; font-weight:700; background:var(--surface-soft); }
.dark .sa-app-shell .data-table th { color:#e0e7ef; background:#303a45; }
.sa-app-shell .data-table td { color:var(--text); font-size:11px; }
.sa-app-shell .cell-title { color:var(--text); font-size:11px; font-weight:650; }
.sa-app-shell .btn { min-height:37px; padding-inline:13px; font-weight:650; }
.sa-app-shell .btn:not(.primary):not(.danger) { background:var(--surface); color:var(--text); border-color:var(--line); }
.sa-app-shell .btn:not(.primary):not(.danger):hover { background:var(--surface-soft); }
.sa-app-shell .input,.sa-app-shell .select,.sa-app-shell .textarea { min-height:38px; color:var(--text); background:var(--surface); border-color:var(--line); }
.sa-app-shell .textarea { min-height:92px; }
.sa-app-shell .input::placeholder,.sa-app-shell .textarea::placeholder { color:var(--muted); opacity:1; }
.sa-app-shell .field label { color:var(--text); font-size:11px; font-weight:650; }
.sa-app-shell .tabs { gap:5px; border-color:var(--line); }
.sa-app-shell .tab { padding:11px 13px; color:var(--muted); font-size:11px; font-weight:600; }
.sa-app-shell .tab.active { color:var(--text); border-bottom-color:#c49a3a; }
.sa-app-shell .pill { font-size:10px; font-weight:650; }
.sa-app-shell .modal { border-radius:14px; }
.sa-app-shell .modal-head h2 { color:var(--text); font-size:17px; }
.sa-app-shell .modal-head p { color:var(--muted); font-size:11px; }
.sa-app-shell .empty { color:var(--muted); }
.sa-app-shell .activity-row,.sa-app-shell .deadline-row { border-color:var(--line); }
.sa-app-shell .kanban-col { border-radius:12px; background:var(--surface-soft); }
.sa-app-shell .kanban-card { border-radius:10px; box-shadow:0 2px 7px #1b27330c; }
.sa-app-shell :focus-visible { outline:2px solid #d0a23d; outline-offset:2px; }
.sa-app-shell .project-documents { min-width:0; }
.sa-app-shell .project-documents .data-table th { white-space:normal; }
.sa-app-shell .table-wrap { border-radius:10px; }
.sa-app-shell .auth-form { gap:16px; margin-top:14px; }
.sa-app-shell .auth-form .field { color:var(--text); font-size:11px; }
.sa-app-shell .field-label { color:var(--muted); font-size:10px; font-weight:650; }
.sa-app-shell .text-button { min-height:32px; display:inline-flex; align-items:center; justify-content:center; padding:5px 9px; border:1px solid transparent; border-radius:7px; color:#8a6418; background:transparent; font-size:11px; font-weight:650; }
.sa-app-shell .text-button:hover { border-color:var(--line); background:var(--surface-soft); }
.dark .sa-app-shell .text-button { color:#e3bd63; }
.sa-app-shell .badge { border-radius:999px; font-size:10px; font-weight:700; }
.sa-app-shell .notice { border-radius:10px; color:#72530f; background:#f7edcf; border-color:#e4cf91; font-size:11px; }
.dark .sa-app-shell .notice { color:#f0d995; background:#3a3323; border-color:#67562f; }
  .sa-app-shell .form-error { color:#a63337; }
  .sa-app-shell [role="alert"] { color:#a63337; }
.sa-app-shell .activity-list { min-width:0; }
.sa-app-shell .activity-list > .card { box-shadow:0 2px 8px #1723330b; }
.sa-app-shell .detail-grid { align-items:start; gap:14px; }
.sa-app-shell .detail-grid > * { min-width:0; }
.sa-app-shell .sa-project-workspace { display:grid; min-width:0; gap:0; }
.sa-project-workspace .page-heading { align-items:center; }
.sa-project-workspace .detail-hero { align-items:center; }
.sa-project-workspace .detail-meta { color:var(--muted); font-size:11px; }
.sa-project-workspace .tabs { margin-top:4px; margin-bottom:17px; }
.sa-project-workspace .detail-grid { grid-template-columns:minmax(0,1.45fr) minmax(290px,.9fr); }
.sa-project-workspace .info-grid { gap:18px 24px; }
.sa-project-workspace .info-value { color:var(--text); font-size:12px; line-height:1.5; }
.sa-project-workspace .activity-row { padding:12px 0; }
.sa-app-shell .document-checklist-table .select,.sa-app-shell .document-checklist-table .input { min-width:140px; }
.sa-app-shell input[type="file"] { max-width:100%; padding:6px; border:1px dashed var(--line); border-radius:8px; color:var(--muted); background:var(--surface-soft); }
.sa-app-shell input[type="color"] { width:46px; height:36px; padding:3px; border:1px solid var(--line); border-radius:8px; background:var(--surface); }
.sa-app-shell :disabled { cursor:not-allowed; }
.sa-app-shell .table-select { color:var(--text); }
.dark .sa-app-shell .table-select { color:var(--text); }
.dark .sa-app-shell .data-table tbody tr:hover { background:#303a45; }
.dark .sa-app-shell .data-table td { color:#e5ebf1; }
.dark .sa-app-shell .cell-sub,.dark .sa-app-shell .card-note,.dark .sa-app-shell .activity-meta,.dark .sa-app-shell .info-label { color:#b4bfcc; }
.sa-app-shell .card-note,.sa-app-shell .cell-sub { line-height:1.55; }
.sa-app-shell .loading { min-height:180px; height:auto; color:var(--muted); }
.sa-app-shell .stats-grid > * { min-height:92px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.sa-app-shell .stat-label { color:var(--muted); font-size:11px; }
.sa-app-shell .stat-value { color:var(--text); font-size:26px; font-weight:760; }
.sa-app-shell .referring-company-manager,.sa-app-shell .numbering-builder { gap:14px; }
.sa-app-shell .numbering-template-layout { gap:14px; }
.sa-app-shell .numbering-template-list,.sa-app-shell .numbering-rules-panel { border-color:var(--line); border-radius:12px; background:var(--surface); }
.sa-app-shell .numbering-template-option { border-radius:9px; }
.sa-app-shell .numbering-template-option:hover,.sa-app-shell .numbering-template-option[aria-pressed="true"] { background:var(--surface-soft); border-color:var(--line); }
.sa-app-shell .persistent-layout { min-width:0; }
.sa-app-shell .project-documents > section { min-width:0; }

@media(max-width:1000px) {
  .sa-app-shell .page-wrap { padding:18px 15px 28px; }
  .sa-app-shell .page-heading { align-items:flex-start; }
  .sa-app-shell .detail-grid { grid-template-columns:minmax(0,1fr); }
  .sa-project-workspace .detail-grid { grid-template-columns:minmax(0,1fr); }
  .sa-app-shell .project-documents { grid-template-columns:minmax(0,1fr); }
  .sa-app-shell .project-documents > :last-child { grid-column:auto; }
}
@media(max-width:690px) {
  .sa-app-shell .page-wrap { padding:14px 10px 22px; }
  .sa-app-shell .page-heading { display:grid; gap:11px; margin-bottom:14px; }
  .sa-app-shell .page-title { font-size:21px; }
  .sa-app-shell .page-subtitle { font-size:12px; }
  .sa-app-shell .page-heading > .actions { width:100%; justify-content:flex-start; }
  .sa-app-shell .actions > .btn,.sa-app-shell .actions > a.btn { flex:0 1 auto; }
  .sa-app-shell .form-grid { grid-template-columns:minmax(0,1fr); }
  .sa-app-shell .field.full { grid-column:auto; }
  .sa-app-shell .detail-hero { flex-direction:column; }
  .sa-project-workspace .page-heading { gap:13px; }
  .sa-project-workspace .page-heading > .actions { display:flex; flex-wrap:wrap; }
  .sa-project-workspace .page-heading > .actions .select { flex:1 1 100%; width:100%; }
  .sa-app-shell .info-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
  .sa-app-shell .card-head { align-items:flex-start; flex-wrap:wrap; padding:13px 13px 10px; }
  .sa-app-shell .card-body { padding-inline:13px; }
  .sa-app-shell .tabs { margin-right:-10px; padding-right:10px; }
  .sa-app-shell .kanban { grid-auto-columns:minmax(240px,84vw); }
  .sa-app-shell .modal-backdrop { align-items:end; padding:0; }
  .sa-app-shell .modal { width:100%; max-height:92dvh; border-radius:16px 16px 0 0; }
  .sa-app-shell .modal-head,.sa-app-shell .modal-body,.sa-app-shell .modal-foot { padding-left:15px; padding-right:15px; }
  .sa-app-shell .data-table { min-width:650px; }
  .sa-app-shell .project-documents .data-table { min-width:0; }
  .sa-app-shell .filter-row > .input,.sa-app-shell .filter-row > .select { width:100%; max-width:100%; flex:1 1 100%; }
}

/* Compact desktop density keeps the full dashboard useful within a normal browser viewport. */
@media (min-width:1181px) and (max-height:1000px) {
  .dashboard-hero,.dashboard-greeting { min-height:136px; }
  .dashboard-kpi-card { min-height:82px; padding:10px 12px; }
  .dashboard-panel-heading { min-height:37px; padding:7px 12px 5px; }
  .dashboard-panel-content { padding:1px 11px 7px; }
  .pipeline-content { min-height:150px; }
  .pipeline-chart { height:146px; }
  .pipeline-legend { max-height:150px; }
  .pipeline-legend-row { min-height:19px; }
  .mini-calendar-day { max-height:17px; }
  .mini-calendar-weekday { padding:2px 0; }
  .calendar-event-list { min-height:30px; margin-top:3px; padding-top:3px; }
  .dashboard-team-row { min-height:48px; padding:3px 2px; }
  .council-row { min-height:34px; }
  .dashboard-deadline-row { min-height:44px; }
  .dashboard-activity-row { min-height:46px; padding:4px 3px; }
}

@media(max-width:1180px) {
  .dashboard-hero,.dashboard-greeting { min-height:150px; }
  .dashboard-panel-calendar .mini-calendar-grid { max-width:none; }
}
@media(max-width:760px) {
  .dashboard-hero,.dashboard-greeting { min-height:194px; }
  .dashboard-greeting { padding:15px 14px; }
  .dashboard-greeting h1 { font-size:23px; }
  .dashboard-greeting p { max-width:70%; font-size:11px; }
  .dashboard-hero-controls { right:10px; left:10px; bottom:10px; gap:6px; }
  .dashboard-quick-button { min-height:34px; padding:0 9px; font-size:9px; }
  .dashboard-kpis { gap:8px; }
  .dashboard-kpi-card { min-height:78px; gap:8px; padding:9px; }
  .dashboard-kpi-icon { width:38px; height:38px; }
  .dashboard-kpi-icon svg { width:19px; height:19px; }
  .dashboard-kpi-copy > span { font-size:10px; }
  .dashboard-kpi-copy > strong { font-size:24px; }
  .dashboard-kpi-copy > small { font-size:9px; }
  .pipeline-content { grid-template-columns:minmax(112px,40%) minmax(0,1fr); min-height:165px; }
  .pipeline-chart { height:160px; }
  .pipeline-legend { max-height:165px; }
  .pipeline-legend-row > span,.pipeline-legend-row > strong { font-size:9px; }
  .mini-calendar-day { max-height:32px; }
  .dashboard-activity-copy strong,.dashboard-activity-copy small { white-space:normal; }
}
@media(max-width:520px) {
  .dashboard-hero,.dashboard-greeting { min-height:198px; }
  .dashboard-greeting h1 { font-size:21px; }
  .dashboard-greeting p { max-width:78%; }
  .dashboard-hero-controls { left:8px; right:8px; bottom:8px; }
  .dashboard-quick-button { min-height:31px; padding:0 7px; font-size:8px; }
  .dashboard-kpi-card { min-height:74px; gap:6px; padding:7px; }
  .dashboard-kpi-icon { width:32px; height:32px; border-radius:9px; }
  .dashboard-kpi-copy > span { font-size:9px; }
  .dashboard-kpi-copy > strong { font-size:21px; }
  .dashboard-kpi-copy > small { font-size:8px; }
  .dashboard-panel-heading h2 { font-size:14px; }
  .pipeline-content { grid-template-columns:minmax(104px,39%) minmax(0,1fr); }
  .pipeline-chart { height:145px; }
  .pipeline-legend { max-height:150px; }
  .pipeline-legend-row { grid-template-columns:8px minmax(0,1fr) auto; gap:5px; min-height:20px; }
  .pipeline-legend-row > span,.pipeline-legend-row > strong { font-size:8px; }
}
.sa-app-shell .project-register-table { min-width:1180px; table-layout:fixed; }
.sa-app-shell .project-register-table th:nth-child(1) { width:112px; }
.sa-app-shell .project-register-table th:nth-child(2) { width:170px; }
.sa-app-shell .project-register-table th:nth-child(3),.sa-app-shell .project-register-table th:nth-child(4) { width:135px; }
.sa-app-shell .project-register-table th:nth-child(5) { width:155px; }
.sa-app-shell .project-register-table th:nth-child(6) { width:70px; }
.sa-app-shell .project-register-table th:nth-child(10) { width:112px; }
.sa-app-shell .project-register-table th:nth-child(11) { width:88px; }
.sa-app-shell .project-register-table th:nth-child(15) { width:86px; }
.sa-app-shell .project-register-table td { overflow-wrap:anywhere; }
.sa-app-shell .project-register-table .table-select { max-width:100%; white-space:normal; }
.sa-app-shell .priority-low { color:#267248; background:#e4f3e9; }
.sa-app-shell .priority-normal { color:#765510; background:#fff2ce; }
.sa-app-shell .priority-high { color:#a34a14; background:#ffeadb; }
.sa-app-shell .priority-urgent { color:#a12634; background:#fde2e5; }
.dark .sa-app-shell .priority-low { color:#a7e2bb; background:#214230; }
.dark .sa-app-shell .priority-normal { color:#f1d27d; background:#493b1d; }
.dark .sa-app-shell .priority-high { color:#ffc195; background:#4d3022; }
.dark .sa-app-shell .priority-urgent { color:#ffadb5; background:#51272e; }
.sa-app-shell .workflow-status-active { color:#286b9c; background:#e7f3fc; }
.sa-app-shell .workflow-status-on_hold { color:#8d5b0c; background:#fff2d4; }
.sa-app-shell .workflow-status-completed { color:#267248; background:#e4f3e9; }
.sa-app-shell .workflow-status-cancelled { color:#a12634; background:#fde2e5; }
.dark .sa-app-shell .workflow-status-active { color:#a9d8fa; background:#223b50; }
.dark .sa-app-shell .workflow-status-on_hold { color:#f1d27d; background:#493b1d; }
.dark .sa-app-shell .workflow-status-completed { color:#a7e2bb; background:#214230; }
.dark .sa-app-shell .workflow-status-cancelled { color:#ffadb5; background:#51272e; }
.sa-app-shell .task-filters,.sa-app-shell .instruction-filters,.sa-app-shell .notification-filters { margin:14px 0; flex-wrap:wrap; }
.sa-app-shell .task-filter { border-color:var(--line); color:var(--muted); background:var(--surface); }
.sa-app-shell .task-filter.active,.sa-app-shell .task-filter[aria-pressed="true"] { color:#fff; background:#263342; border-color:#263342; box-shadow:0 0 0 2px #d2aa5145; }
.dark .sa-app-shell .task-filter.active,.dark .sa-app-shell .task-filter[aria-pressed="true"] { color:#151a20; background:#e0b64f; border-color:#e0b64f; }
.sa-app-shell .task-row-overdue td { background:#fff4f1; }
.dark .sa-app-shell .task-row-overdue td { background:#39272a; }
.sa-app-shell .task-overdue-label { margin-left:7px; color:#9e313b; background:#fde2e5; }
.dark .sa-app-shell .task-overdue-label { color:#ffb6bd; background:#51272e; }
.sa-app-shell .task-status-completed { color:#267248; background:#e4f3e9; }
.sa-app-shell .task-status-in-progress { color:#286b9c; background:#e7f3fc; }
.sa-app-shell .task-status-to-do,.sa-app-shell .task-status-todo { color:#765510; background:#fff2ce; }
.dark .sa-app-shell .task-status-completed { color:#a7e2bb; background:#214230; }
.dark .sa-app-shell .task-status-in-progress { color:#a9d8fa; background:#223b50; }
.dark .sa-app-shell .task-status-to-do,.dark .sa-app-shell .task-status-todo { color:#f1d27d; background:#493b1d; }
.sa-app-shell .action-summary-grid,.sa-app-shell .council-summary-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:9px; margin:0 0 14px; }
.sa-app-shell .council-summary-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.sa-app-shell .action-summary-card,.sa-app-shell .council-summary-card { min-width:0; display:flex; align-items:center; justify-content:space-between; gap:8px; border:1px solid var(--line); border-radius:11px; padding:12px 13px; background:var(--surface); }
.sa-app-shell .action-summary-card span,.sa-app-shell .council-summary-card span { color:var(--muted); font-size:11px; font-weight:650; }
.sa-app-shell .action-summary-card strong,.sa-app-shell .council-summary-card strong { font-size:23px; line-height:1; }
.sa-app-shell .action-summary-card.gold { background:linear-gradient(120deg,#fff9e9,#fff); border-color:#ead8a8; }
.sa-app-shell .action-summary-card.blue,.sa-app-shell .council-summary-card.blue { background:linear-gradient(120deg,#edf7ff,#fff); border-color:#c9e2f4; }
.sa-app-shell .action-summary-card.violet,.sa-app-shell .council-summary-card.violet { background:linear-gradient(120deg,#f5efff,#fff); border-color:#ddcff5; }
.sa-app-shell .action-summary-card.orange,.sa-app-shell .council-summary-card.orange { background:linear-gradient(120deg,#fff2e6,#fff); border-color:#f0d2b6; }
.sa-app-shell .action-summary-card.green,.sa-app-shell .council-summary-card.green { background:linear-gradient(120deg,#edf8ef,#fff); border-color:#cbe5d0; }
.dark .sa-app-shell .action-summary-card,.dark .sa-app-shell .council-summary-card { background:var(--surface); border-color:var(--line); }
.dark .sa-app-shell .action-summary-card.gold { background:linear-gradient(120deg,#393325,#262a2e); }
.dark .sa-app-shell .action-summary-card.blue,.dark .sa-app-shell .council-summary-card.blue { background:linear-gradient(120deg,#233341,#20272e); }
.dark .sa-app-shell .action-summary-card.violet,.dark .sa-app-shell .council-summary-card.violet { background:linear-gradient(120deg,#30283b,#20272e); }
.dark .sa-app-shell .action-summary-card.orange,.dark .sa-app-shell .council-summary-card.orange { background:linear-gradient(120deg,#3d3025,#20272e); }
.dark .sa-app-shell .action-summary-card.green,.dark .sa-app-shell .council-summary-card.green { background:linear-gradient(120deg,#273a2e,#20272e); }
.sa-app-shell .action-instruction-card { margin-bottom:10px; padding:14px; }
.sa-app-shell .notification-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:11px 4px; border-bottom:1px solid var(--line); }
.sa-app-shell .notification-row.unread { border-left:3px solid #d6a12d; padding-left:10px; background:color-mix(in srgb,#edc45b 8%,transparent); }
.sa-app-shell .notification-row.read { opacity:.78; }
.sa-app-shell .council-filters,.sa-app-shell .document-search { margin:12px 0; }
.sa-app-shell .council-status-submitted,.sa-app-shell .council-status-busy-with-scrutiny { color:#275f8b; background:#e7f3fc; }
.sa-app-shell .council-status-amendments-required { color:#9e4d12; background:#ffeadb; }
.sa-app-shell .council-status-resubmitted { color:#63449b; background:#eee7fb; }
.sa-app-shell .council-status-approved { color:#267248; background:#e4f3e9; }
.dark .sa-app-shell .council-status-submitted,.dark .sa-app-shell .council-status-busy-with-scrutiny { color:#a9d8fa; background:#223b50; }
.dark .sa-app-shell .council-status-amendments-required { color:#ffc195; background:#4d3022; }
.dark .sa-app-shell .council-status-resubmitted { color:#d0b9ff; background:#382b4c; }
.dark .sa-app-shell .council-status-approved { color:#a7e2bb; background:#214230; }
.sa-app-shell .calendar-legend { display:flex; flex-wrap:wrap; gap:14px; margin:0 0 10px; color:var(--muted); font-size:11px; }
.sa-app-shell .calendar-legend span { display:inline-flex; align-items:center; gap:6px; }
.sa-app-shell .calendar-dot { width:9px; height:9px; border-radius:50%; }
.sa-app-shell .calendar-dot.project { background:#bc8b20; }
.sa-app-shell .calendar-dot.task { background:#3988c5; }
.sa-app-shell .calendar-dot.council { background:#8c65c2; }
.sa-app-shell .calendar-weekdays,.sa-app-shell .calendar-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.sa-app-shell .calendar-weekdays { text-align:center; color:var(--muted); background:var(--surface-soft); border-bottom:1px solid var(--line); font-size:10px; font-weight:700; }
.sa-app-shell .calendar-weekdays > div { padding:10px 4px; }
.sa-app-shell .calendar-date-cell { min-width:0; min-height:98px; padding:7px; overflow:hidden; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.sa-app-shell .calendar-date-cell.outside { background:color-mix(in srgb,var(--surface-soft) 65%,transparent); }
.sa-app-shell .calendar-date-cell.today { background:color-mix(in srgb,#e2b94b 13%,var(--surface)); box-shadow:inset 0 0 0 2px #c99a29; }
.sa-app-shell .calendar-date-number { display:flex; justify-content:space-between; align-items:center; margin-bottom:5px; font-size:11px; font-weight:700; }
.sa-app-shell .calendar-date-number span { color:#8a6418; font-size:9px; }
.dark .sa-app-shell .calendar-date-number span { color:#f0ce75; }
.sa-app-shell .calendar-event { display:block; min-width:0; margin:3px 0; overflow:hidden; border-radius:5px; padding:4px 6px; text-overflow:ellipsis; white-space:nowrap; font-size:9px; text-decoration:none; }
.sa-app-shell .calendar-event.project { color:#72530f; background:#f7edcf; }
.sa-app-shell .calendar-event.task { color:#205b88; background:#e7f3fc; }
.sa-app-shell .calendar-event.council { color:#63449b; background:#eee7fb; }
.dark .sa-app-shell .calendar-event.project { color:#f0d995; background:#493b1d; }
.dark .sa-app-shell .calendar-event.task { color:#a9d8fa; background:#223b50; }
.dark .sa-app-shell .calendar-event.council { color:#d0b9ff; background:#382b4c; }
.sa-app-shell .council-filters .search-box,.sa-app-shell .document-search .search-box { min-width:min(100%,340px); }
.sa-app-shell .filter-row > .btn.active { color:#fff; background:#263342; border-color:#263342; box-shadow:0 0 0 2px #d2aa5145; }
.dark .sa-app-shell .filter-row > .btn.active { color:#151a20; background:#e0b64f; border-color:#e0b64f; }
.sa-app-shell .sa-project-workspace > .page-heading { align-items:center; padding:18px 20px; border:1px solid var(--line); border-radius:14px; background:linear-gradient(120deg,var(--surface),var(--surface-soft)); }
.sa-app-shell .sa-project-workspace > .page-heading .page-title { margin:4px 0 0; font-size:26px; }
.sa-app-shell .sa-project-workspace > .page-heading .detail-meta { font-size:12px; }
.sa-app-shell .sa-project-workspace > .detail-meta { padding:10px 13px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.sa-app-shell .sa-project-workspace > .tabs { margin-top:14px; }
.sa-app-shell .sa-project-workspace .info-grid { gap:16px 22px; }
.sa-app-shell .sa-project-workspace .info-value { overflow-wrap:anywhere; }
@media(max-width:760px) { .sa-app-shell .project-register-table { min-width:1120px; }.sa-app-shell .action-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.sa-app-shell .council-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.sa-app-shell .notification-row { align-items:flex-start; flex-direction:column; }.sa-app-shell .calendar-date-cell { min-height:78px; padding:4px; }.sa-app-shell .calendar-event { font-size:8px; padding:3px; }.sa-app-shell .sa-project-workspace > .page-heading { align-items:flex-start; padding:14px; }.sa-app-shell .sa-project-workspace > .page-heading .page-title { font-size:21px; } }
@media(max-width:760px) { .sa-app-shell .action-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.sa-app-shell .council-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.sa-app-shell .project-register-table { min-width:1120px; }.sa-app-shell .notification-row { align-items:flex-start; flex-direction:column; }.sa-app-shell .calendar-date-cell { min-height:78px; padding:4px; }.sa-app-shell .calendar-event { font-size:8px; padding:3px; } }
