/* Concept 2, tuned for daily use: shared density across every workspace. */
:root {
  --teal:#07533f; --pale:#e3ecd9; --ink:#073c39; --muted:#536663;
  --line:#dce1d8; --rail-width:208px; --space:16px; --radius:14px;
  font-family:'Segoe UI',Arial,sans-serif; font-size:14px; color:var(--ink); background:#faf7f1;
}
* { box-sizing:border-box; }
body { margin:0; background:#faf7f1; }
button,input,select { font:inherit; }
button { cursor:pointer; }
.shell { height:100dvh; min-height:0; overflow:hidden; }
.menu { position:fixed; bottom:0; left:0; width:var(--rail-width); height:26px; gap:18px; padding:0 16px; border:0; z-index:8; background:#dde8ce; color:#385449; font-size:11px; }
.brand { position:absolute; top:0; left:0; width:var(--rail-width); height:96px; z-index:7; border:0; padding:20px 16px; background:transparent; gap:10px; align-items:center; }
.brand .mark { background:none; border-radius:0; color:var(--ink); font:52px/1 Georgia,serif; width:51px; height:52px; border-right:1px solid #91a789; padding-right:10px; }
.brand strong { font:22px/1.05 Georgia,serif; color:var(--ink); max-width:122px; }
.rail { width:var(--rail-width); padding:106px 10px 34px; gap:6px; align-items:stretch; background:linear-gradient(130deg,#dce7ce,#e5ecd9 65%,#d9e5ca); overflow:auto; }
.rail button { display:flex; align-items:center; gap:12px; width:100%; height:44px; min-height:40px; flex-shrink:0; padding:10px 12px; color:var(--ink); font:600 15px/1.2 'Segoe UI',Arial,sans-serif; border-radius:10px; text-align:left; }
.rail svg { width:22px; height:22px; flex:none; stroke-width:1.8; }
.rail button:hover { background:#cfdfbf; }
.rail button.active { background:#07533f; color:white; box-shadow:0 2px 4px #164e3614; }
.rail button[data-view=dashboard] svg { fill:none; stroke:currentColor; }
.rail button[data-tooltip]:is(:hover,:focus-visible)::before,.rail button[data-tooltip]:is(:hover,:focus-visible)::after { display:none; }
.rail-divider { width:100%; background:#a4b79a; margin:8px 0 4px; }
.rail .avatar { border-radius:12px; background:#cbdcba; width:100%; height:50px; min-height:50px; margin:4px 0; font-size:15px; gap:10px; padding:6px 10px; }
.avatar img { width:36px; height:36px; border-radius:50%; object-fit:cover; border:2px solid #e7eddf; }
.profile-chevron { margin-left:auto; }
.rail .utility { height:32px; min-height:32px; font-size:12px; padding:6px 12px; }
.work { flex:1; min-width:0; min-height:0; padding:20px; background:#faf7f1; overflow:auto; container-type:inline-size; }
.work h1 { color:var(--ink); font-size:28px; font-weight:700; line-height:1.2; letter-spacing:-.6px; margin:0 0 5px; overflow-wrap:anywhere; }
.sub { font-size:14px; color:var(--muted); line-height:1.4; }
.toolbar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.toolbar>div { min-width:0; }
.task-toolbar { position:sticky; top:-20px; z-index:3; padding:14px 0; background:#faf7f1; border-bottom:1px solid var(--line); }
.task-actions { flex-wrap:wrap; align-items:center; margin-left:auto; }
.task-actions button { white-space:nowrap; }
.card { border:1px solid var(--line); border-radius:var(--radius); padding:16px; margin-bottom:16px; background:#ffffffd9; box-shadow:0 1px 2px #18342308; }
.card h2,.list h2 { font-size:18px; line-height:1.3; margin:0 0 14px; color:var(--ink); }
.grid { gap:8px 20px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.field { padding:8px 0; line-height:1.5; font-size:14px; min-width:0; overflow-wrap:anywhere; }
.field b { display:block; min-width:0; color:var(--muted); font-size:12px; font-weight:600; margin-bottom:3px; }
.grid label { display:grid; gap:5px; font-size:12px; color:var(--muted); }
input:not([type=checkbox]),select { border:1px solid #b8c7b9; border-radius:8px; background:white; color:var(--ink); min-height:36px; padding:7px 10px; min-width:0; max-width:100%; }
.primary,.secondary { min-height:36px; padding:7px 12px; border-radius:8px; font-size:14px; line-height:20px; }
.primary { background:var(--teal); color:white; }
.secondary { background:white; color:var(--teal); }
.primary:hover { background:#063f32; }
.secondary:hover { background:#e5eddb; }
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline:3px solid #b07619; outline-offset:2px; }
.list { background:#f7f8f2; width:260px; min-width:230px; max-width:40%; padding:20px 14px; border-right:1px solid var(--line); min-height:0; overflow:auto; }
.list .toolbar { gap:8px; margin-bottom:12px; align-items:center; }
.list .toolbar h2 { margin:0; }
.list input { width:100%; padding:8px 10px; margin-bottom:12px; font-size:13px; }
.list .primary { padding:6px 9px; font-size:12px; }
.list .item { border-color:#d9dfd4; border-radius:10px; padding:11px 12px; margin-bottom:8px; line-height:1.5; overflow-wrap:anywhere; }
.list .item strong { font-size:14px; }
.list .item span,.list .item small { font-size:12px; color:#536663; }
.list .item.selected,.admin-item.selected { background:#e3ecd9; border-color:#8aa783; color:#174b3b; }
.preview { position:fixed; top:0; right:0; z-index:12; height:100dvh; width:360px; min-width:0; max-width:90vw; padding:18px; background:#f9faf5; border-left:1px solid var(--line); box-shadow:-8px 0 25px #17382c22; overflow:auto; }
.preview header { position:sticky; top:-18px; z-index:1; padding:12px 0; gap:12px; align-items:center; background:#f9faf5; }
.preview h2 { font-size:18px; margin:0; }
.preview .paper { padding:20px; }
.preview .paper.document-sheet { padding:22px; }
.document-sheet .letterhead { font-size:22px; }
.admin-detail { max-width:1050px; }
.admin-detail .card { margin-top:0; }
.admin-detail dl { grid-template-columns:150px minmax(0,1fr); gap:0 16px; font-size:14px; }
.admin-detail dt,.admin-detail dd { padding:10px 0; overflow-wrap:anywhere; }
.admin-heading { padding:10px 8px; font-size:13px; }
.admin-item { padding:8px 10px; font-size:13px; }
.admin-detail .note,.admin-hint { font-size:12px; line-height:1.5; }
.fee-table { table-layout:fixed; font-size:13px; }
.fee-table th,.fee-table td { padding:10px; overflow-wrap:anywhere; }
.channel-segments { height:36px; }
.channel-segments button { min-width:58px; font-size:12px; }
.admin-filter { height:34px; margin:0 0 12px; }
.admin-filter button { min-width:0; padding:0 4px; font-size:11px; }
.inquiry-toolbar { gap:12px; }
.inquiry-actions { gap:8px; }
.inquiry-actions select { min-width:135px; height:36px; font-size:13px; }
.inquiry-actions .primary { height:36px; }
.summary-previews { gap:8px; margin-top:10px; }
.summary-previews button { min-width:0; padding:6px 12px; font-size:13px; }
.proforma-intro { align-items:start; gap:12px; flex-wrap:wrap; }
.proforma-intro h2 { margin-bottom:4px; }
.proforma-intro p { font-size:12px; line-height:1.5; }
.proforma-controls .secondary { padding:6px 10px; font-size:12px; }
.proforma-grid { grid-template-columns:1fr; gap:12px; }
.proforma-column { gap:10px; }
.proforma-section { border-radius:10px; }
.proforma-section>summary { padding:11px 12px; align-items:center; font-size:13px; }
.group-title,.proforma-label { min-width:0; overflow-wrap:anywhere; }
.proforma-item>summary { padding:10px 12px; font-size:13px; }
.proforma-section .group-progress { min-width:100px; font-size:10px; padding:5px 8px; }
.proforma-section .group-progress .progress-blocks i { width:11px; height:7px; }
.item-progress { gap:6px; font-size:11px; padding:5px 8px; }
.item-progress .progress-blocks i { width:11px; height:7px; }
.proforma-tasks { padding:0 12px 10px 30px; }
.proforma-tasks li { font-size:12px; line-height:1.5; }
.section-chevron { width:28px; height:28px; }
.proforma-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
@container (min-width:1050px) { .proforma-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
/* Dashboard overview: one screen at normal laptop sizes, no clipped content. */
.work.dashboard { background:#faf7f1 url('assets/neighbourhood.svg') no-repeat right top; background-size:340px 100px; }
.dashboard-head { display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:14px; margin-bottom:16px; }
.welcome { color:#678a64; font-size:14px; font-weight:600; margin:0 0 4px; }
.dashboard-head h1 { font-size:28px; margin:0 0 4px; }
.dashboard-head .sub { font-size:14px; }
.dashboard-filters { display:flex; align-items:center; gap:14px; margin:0; padding:6px 0 0; }
.reporting-period { font-size:12px; color:var(--muted); }
.periods { height:36px; border:1px solid #bac8b9; border-radius:9px; background:white; box-shadow:none; }
.periods button { min-width:56px; padding:0 10px; font-size:13px; border-radius:0; border-right:1px solid #d8dcda; color:#183634; }
.periods button.active { background:#225b4f; color:white; }
.dashboard-filters label { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted); border-left:1px solid #c6d1c0; padding-left:14px; }
.dashboard-filters select { height:36px; min-width:136px; font-size:13px; border-radius:9px; box-shadow:none; }
.dashboard-grid { display:grid; grid-template-columns:repeat(24,minmax(0,1fr)); gap:14px; }
.metric { grid-column:span 6; position:relative; border:0; border-radius:var(--radius); min-height:110px; padding:14px 16px; background:linear-gradient(120deg,#e7efdf,#e1ebd7); color:var(--ink); }
.metric.featured { background:linear-gradient(120deg,#e6eddc,#dce8ce); color:var(--ink); }
.metric:nth-child(3) { background:linear-gradient(120deg,#fce7d7,#fbdcc7); }
.metric:nth-child(4) { background:linear-gradient(120deg,#fff3cc,#fff0bf); }
.metric .eyebrow { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; opacity:1; }
.ui-icon { display:inline-flex; align-items:center; justify-content:center; flex:none; }
.ui-icon svg { width:22px; height:22px; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; fill:none; }
.metric strong { font-size:38px; letter-spacing:-1px; margin:5px 0 2px; line-height:1.1; }
.metric small { font-size:12px; opacity:1; line-height:1.4; }
.dash-card { border:1px solid #dededa; border-radius:var(--radius); padding:16px; background:#ffffffd9; box-shadow:0 1px 2px #403c2810; min-width:0; }
.dash-card h2 { display:flex; align-items:center; gap:8px; font-size:18px; letter-spacing:-.25px; color:#0a3940; margin:0 0 14px; line-height:1.3; }
.dash-card.activity { grid-column:span 10; }
.dash-card.offices,.dash-card.mix { grid-column:span 7; }
.dash-card.attention { grid-column:span 24; }
.bar-row { display:grid; grid-template-columns:120px minmax(0,1fr) 24px; font-size:13px; gap:10px; margin:10px 0; line-height:1.3; }
.bar { height:14px; border-radius:5px; background:transparent; }
.bar i { background:#225e4b; border-radius:5px; }
.bar-row:nth-of-type(2) .bar i { background:#709d75; }
.bar i.light { background:#a4bf97; }
.bar-row:nth-of-type(4) .bar i.light { background:#90b28a; }
.legend { display:none; }
.dash-card.offices .bar-row { grid-template-columns:1fr 24px; font-size:13px; padding:7px 10px; margin:0; border-bottom:1px solid #d9dfd6; }
.dash-card.offices .bar-row:first-of-type { border:0; border-radius:8px; background:#e3ecd9; }
.dash-card.offices .bar { display:none; }
.office-total { display:flex; justify-content:space-between; gap:8px; background:#e0ebd5; border:0; border-radius:8px; padding:9px 10px; margin-top:10px; font-size:13px; }
.office-row { display:flex; justify-content:space-between; gap:10px; font-size:14px; border:0; border-radius:8px; background:#eaf1e4; margin:10px 0; padding:12px; }
.office-row strong,.office-total strong { color:#123f35; }
.attention-row { display:grid; grid-template-columns:34px minmax(190px,1fr) 40px minmax(200px,1.25fr) 138px; align-items:center; gap:12px; padding:8px 0; font-size:14px; border-top:1px solid #d9ddd8; background:none; }
.attention-row:first-of-type { border-top:0; }
.attention-icon { width:34px; height:34px; border-radius:50%; background:#ffe1cf; color:#754016; }
.attention-row:last-child .attention-icon { background:#ffedb8; color:#65430b; }
.attention-label { font-weight:600; color:#172b2b; }
.attention-row em { background:#ffd8c4; color:#69330d; text-align:center; font-size:15px; font-weight:700; padding:3px 8px; border-radius:16px; font-style:normal; }
.attention-row:last-child em { background:#ffecb5; }
.attention-description { font-size:12px; color:#536663; line-height:1.4; }
.attention-row .primary { padding:6px 10px; border-radius:8px; font-size:13px; min-height:34px; font-weight:600; }
.attention-row .primary span { float:right; }
.dash-note { font-size:11px; color:#526663; margin:10px 0 0; }
@container (max-width:600px) {
  .grid,.proforma-fields { grid-template-columns:1fr; }
  .admin-detail dl { grid-template-columns:110px minmax(0,1fr); }
  .inquiry-actions { flex-wrap:wrap; }
}
@media(max-width:1199px) {
  .dashboard-filters { flex-wrap:wrap; }
  .reporting-period { display:none; }
  .metric { grid-column:span 12; }
  .dash-card.activity,.dash-card.offices { grid-column:span 12; }
  .dash-card.mix,.dash-card.attention { grid-column:span 24; }
  .dash-card.mix .office-row { display:inline-flex; gap:40px; margin-right:12px; }
  .attention-row { grid-template-columns:34px 1fr 40px 130px; }
  .attention-description { grid-column:2/4; grid-row:2; }
  .attention-row button { grid-column:4; grid-row:1/3; }
}
@media(max-width:760px) {
  :root { --rail-width:64px; }
  .shell { flex-direction:column; padding-left:64px; }
  .brand { position:fixed; width:64px; height:76px; padding:14px 12px; }
  .brand .mark { font-size:42px; border:0; padding:0; width:40px; height:44px; }
  .brand strong,.nav-label,.rail .avatar>span { display:none; }
  .rail { position:fixed; left:0; top:0; height:100dvh; width:64px; padding:84px 6px 30px; gap:6px; }
  .rail button { justify-content:center; padding:10px; width:52px; height:44px; }
  .rail .avatar { width:52px; padding:6px; }
  .rail button[data-tooltip]:is(:hover,:focus-visible)::after { display:block; left:calc(100% + 8px); font-size:13px; }
  .rail .utility { height:32px; min-height:32px; }
  .menu { justify-content:center; padding:0; }
  .menu span:not(:last-child) { display:none; }
  .list { width:100%!important; max-width:none; min-width:0; max-height:220px; flex:none; padding:14px; border-right:0; border-bottom:1px solid var(--line); }
  .list .toolbar { flex-wrap:nowrap; }
  .work,.work:not(.dashboard) { min-width:0; width:100%; padding:16px 12px; }
  .work.dashboard { background-image:none; }
  .work h1,.dashboard-head h1 { font-size:26px; }
  .dashboard-head { align-items:start; margin-bottom:14px; }
  .dashboard-filters { gap:10px; width:100%; }
  .periods button { min-width:0; padding:0 11px; font-size:12px; }
  .dashboard-filters label { border:0; padding-left:0; }
  .metric,.dash-card.activity,.dash-card.offices,.dash-card.mix,.dash-card.attention { grid-column:span 24; }
  .dashboard-grid { gap:12px; }
  .metric { min-height:110px; }
  .dash-card { padding:14px; }
  .dash-card h2 { font-size:17px; }
  .bar-row { grid-template-columns:100px minmax(0,1fr) 24px; gap:8px; font-size:12px; }
  .attention-row { grid-template-columns:32px minmax(0,1fr) 32px; gap:8px; font-size:13px; }
  .attention-row .attention-description { grid-column:2/4; grid-row:auto; }
  .attention-row button { grid-column:2/4; grid-row:auto; }
  .attention-icon { width:32px; height:32px; }
  .preview { width:calc(100% - 64px); max-width:none; padding:14px; }
  .preview header { top:-14px; }
  .toolbar { align-items:start; }
  .proforma-section>summary { gap:6px; padding:10px 8px; flex-wrap:wrap; }
  .proforma-item>summary { flex-wrap:wrap; gap:6px; padding:10px 8px; }
  .item-progress { max-width:100%; }
  .proforma-tasks { padding-left:16px; }
  .admin-detail dl { grid-template-columns:1fr; gap:0; }
  .admin-detail dt { padding:10px 0 0; border-bottom:0; }
  .admin-detail dd { padding:4px 0 10px; }
  .fee-table { font-size:12px; }
  .fee-table th,.fee-table td { padding:7px 5px; }
  .admin-filter { max-width:100%; }
  .channel-segments button { min-width:0; }
}

/* Allocate space by label length so Documents remains fully readable. */
.admin-filter { display:grid; grid-template-columns:.7fr 1fr 1.45fr .85fr; }
.admin-filter button { width:100%; padding:0 2px; }
.proforma-tasks li { font-size:13px; }
/* On laptops the inspector reserves its own space; narrow screens use a drawer. */
@media(min-width:1200px) {
  .preview { position:relative; top:auto; right:auto; width:340px; max-width:40%; flex:none; box-shadow:-3px 0 12px #17382c12; }
}
/* Keep filters left-aligned below the title, clear of the header illustration. */
.dashboard-head { align-items:flex-start; flex-direction:column; gap:10px; }
.dashboard-filters { justify-content:flex-start; padding-top:0; }
/* Document buttons follow their task names instead of the far edge of the row. */
.task-text { flex:0 1 auto; min-width:0; }
/* Separators live outside scrolling panels, so the handles are always reachable. */
.panel-divider { position:relative; width:8px; flex:0 0 8px; align-self:stretch; cursor:col-resize; touch-action:none; background:transparent; z-index:6; }
.panel-divider::after { content:''; position:absolute; left:3px; top:calc(50% - 22px); width:2px; height:44px; border-radius:3px; background:#a7b9a2; }
.panel-divider:hover,.panel-divider:focus-visible { background:#dce8d2; outline:0; }
.panel-divider:hover::after,.panel-divider:focus-visible::after { background:#07533f; width:3px; }
.list { max-width:none; min-width:200px; border-right:0; }
.list.hidden + .panel-divider,.shell:has(.preview[hidden]) #previewGrip { display:none; }
.resizing-panels,.resizing-panels * { cursor:col-resize!important; user-select:none; }
@media(min-width:761px) and (max-width:1199px) {
  #previewGrip { position:fixed; right:var(--preview-width,340px); top:0; bottom:0; width:8px; z-index:14; }
}
@media(max-width:760px) {
  .panel-divider { display:none!important; }
  .preview { width:calc(100% - 64px)!important; }
}
/* Retain the one-screen laptop overview after adding the filter row. */
.dashboard-grid { row-gap:12px; }
.dash-card.attention { padding:12px 16px; }
.dash-card.attention h2 { margin-bottom:10px; }
.attention-row { padding-top:6px; padding-bottom:6px; }
@media(min-width:1200px) { .preview { max-width:none; } }
/* Softer concept-2 controls, with the same compact sizes and clear focus states. */
.dashboard-head { gap:10px; }
.dashboard-head h1 { letter-spacing:-.4px; }
.welcome { color:#6c8a64; font-weight:500; }
.work.dashboard { background-color:#faf7f1; background-size:400px auto; background-position:right 2px top 0; }
.primary,.secondary { border-radius:12px; }
.primary { background:linear-gradient(110deg,#276254,#12513e); border-color:#245e4c; box-shadow:0 2px 4px #314a3020; }
.primary:hover { background:#154c3a; }
.secondary { border-color:#bbcbbb; background:linear-gradient(#fff,#fafcf7); box-shadow:0 1px 3px #314a3010; }
input:not([type=checkbox]),select { border-color:#d1d9cd; border-radius:12px; background-color:#fffefa; box-shadow:0 2px 4px #314a3010; }
.periods { border:0; background:transparent; box-shadow:none; overflow:visible; gap:2px; }
.periods button { border:1px solid #d9ddd5; border-radius:13px; background:linear-gradient(#fff,#fafbf8); box-shadow:0 2px 4px #314a3018; }
.periods button:last-child { border-right:1px solid #d9ddd5; }
.periods button.active { border-color:#3b7060; background:linear-gradient(110deg,#356d5e,#205747); box-shadow:0 2px 5px #314a3030; }
.periods button:hover:not(.active) { background:#edf3e7; }
.dashboard-filters { gap:16px; }
.dashboard-filters select { border-radius:14px; border-color:#d1d9cd; background-color:#fffefa; box-shadow:0 2px 4px #314a3018; }
.attention-row .primary { border-radius:12px; }
.rail button.active { background:linear-gradient(110deg,#276254,#12513e); }
.channel-segments { border-radius:12px; border-color:#cbd6c5; }
@media(max-width:760px) { .work.dashboard { background-image:none; } }
.work.dashboard { background-image:url("assets/neighbourhood-soft.png"); }
@media(max-width:760px) { .work.dashboard { background-image:none; } }
/* One continuous, softly rounded reporting-period control. */
.periods { gap:0; overflow:hidden; border:1px solid #ced8c8; border-radius:14px; background:#fffefa; box-shadow:0 2px 4px #314a3018; }
.periods button { border:0; border-right:1px solid #dce2d7; border-radius:0; background:transparent; box-shadow:none; font-weight:600; }
.periods button:last-child { border:0; }
.periods button.active { border:0; border-radius:11px; background:linear-gradient(110deg,#356d5e,#205747); box-shadow:inset 0 0 0 1px #396a59; }
/* Stronger everyday reading weight, while preserving the compact type scale. */
body { font-weight:500; }
.sub,.welcome,.metric small,.bar-row,.office-row,.office-total,.attention-description,.dash-note { font-weight:600; }
.reporting-period,.dashboard-filters label,.grid label,.field b,.inquiry-actions label,.channel-field,.admin-detail dt,.proforma-fields .field b { font-weight:600; color:#415b50; }
.metric .eyebrow,.attention-label,.list .item strong,.admin-heading,.admin-item,.task-text,.proforma-label { font-weight:600; }
.list .item span,.list .item small,.admin-detail dd,.field,.proforma-intro p,.admin-hint,.admin-detail .note { font-weight:500; }
button,input,select { font-weight:600; }
/* Three-dot concept: quiet visible grips, with the full 12px drag targets retained. */
.panel-divider { width:12px; flex-basis:12px; border:0; background:linear-gradient(to right,transparent 5px,#d8e2d1 5px,#d8e2d1 6px,transparent 6px); }
.panel-divider::after { content:''; position:absolute; left:calc(50% - 4px); top:calc(50% - 13px); width:8px; height:26px; border:0; border-radius:0; color:#9caf91; background:radial-gradient(circle at 50% 5px,currentColor 2px,transparent 2.2px),radial-gradient(circle at 50% 13px,currentColor 2px,transparent 2.2px),radial-gradient(circle at 50% 21px,currentColor 2px,transparent 2.2px); box-shadow:none; pointer-events:none; }
.panel-divider:hover,.panel-divider:focus-visible { background:#eaf2e3 linear-gradient(to right,transparent 5px,#bfd1b4 5px,#bfd1b4 6px,transparent 6px); }
.panel-divider:hover::after,.panel-divider:focus-visible::after { width:8px; color:#2c7859; background:radial-gradient(circle at 50% 5px,currentColor 2px,transparent 2.2px),radial-gradient(circle at 50% 13px,currentColor 2px,transparent 2.2px),radial-gradient(circle at 50% 21px,currentColor 2px,transparent 2.2px); }
.panel-divider:focus-visible { outline:2px solid #8a621b; outline-offset:-2px; }
@media(min-width:761px) and (max-width:1199px) { #previewGrip { width:12px; } }
/* Navigation is the first resizable column; branding follows the chosen width. */
.rail .nav-label { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.brand .mark { flex:none; }
.brand strong { min-width:0; overflow-wrap:anywhere; }
@media(max-width:760px) {
  :root { --rail-width:64px!important; }
}
.panel-divider { z-index:13; }
/* Brighter concept greens and one softly rounded outline icon family. */
:root { --teal:#09634b; --pale:#e4efd9; --ink:#0a423c; }
.icon-sprite { position:absolute; width:0; height:0; overflow:hidden; pointer-events:none; }
.rail { background:linear-gradient(125deg,#dfecd2,#e9f1df 65%,#dceacd); }
.rail button.active { background:linear-gradient(110deg,#096b55,#075b45); }
.rail button:hover:not(.active) { background:#d2e4c3; }
.rail .avatar { background:#d0e2be; }
.rail svg,.ui-icon svg,.document-button svg,.section-chevron svg,.item-chevron svg { stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; fill:none; }
.primary { background:linear-gradient(110deg,#13715a,#095e46); border-color:#176b51; }
.primary:hover { background:#095c43; }
.periods button.active { background:linear-gradient(110deg,#24735e,#17634d); box-shadow:inset 0 0 0 1px #28715a; }
.metric,.metric.featured { background:linear-gradient(120deg,#e7f0de,#dcebcf); }
.metric:nth-child(3) { background:linear-gradient(120deg,#fce7d7,#fbdcc7); }
.metric:nth-child(4) { background:linear-gradient(120deg,#fff3cc,#fff0bf); }
.bar i { background:#22714f; }
.bar-row:nth-of-type(2) .bar i { background:#78a97b; }
.bar i.light { background:#afcda0; }
.bar-row:nth-of-type(4) .bar i.light { background:#98be8c; }
.dash-card.offices .bar-row:first-of-type,.office-total { background:#e2efd5; }
.office-row { background:#edf5e6; }
.document-button { border-radius:50%; background:#f0f8eb; border-color:#acc7a5; }
@media(min-width:761px) { .work.dashboard { background-image:url("assets/neighbourhood-fresh.png"); } }
.admin-heading svg { stroke-linecap:round; stroke-linejoin:round; }
.enquiry-status-filter { width:100%; margin:0 0 12px; }
.enquiry-status-filter button { flex:1; min-width:0; padding:0 7px; }
.empty-enquiries { color:var(--muted); font-size:13px; line-height:1.5; }
.queue-office { display:grid; gap:5px; margin:0 0 8px; font-size:12px; font-weight:600; }
.queue-office select { width:100%; padding:7px 10px; border:1px solid #c2d2b9; border-radius:10px; background:#fff; color:var(--ink); font-weight:600; }
.queue-member-group { margin:0 0 18px; }
.list .queue-member-heading { display:flex; align-items:center; gap:8px; margin:4px 0 8px; padding:8px 2px; color:var(--ink); font-size:14px; font-weight:700; cursor:pointer; list-style:none; border-radius:6px; }
.queue-member-heading::-webkit-details-marker { display:none; }
.queue-member-heading::before { content:'›'; flex:none; width:12px; text-align:center; font-size:20px; line-height:1; transition:transform .12s; }
.queue-member-group[open]>.queue-member-heading::before { transform:rotate(90deg); }
.queue-member-heading:focus-visible { outline:2px solid var(--teal); outline-offset:2px; }
.queue-member-heading>span:first-child { flex:1; min-width:0; overflow-wrap:anywhere; }
.queue-member-count { flex:none; color:var(--muted); font-size:11px; font-weight:600; white-space:nowrap; }
/* The brand is also the keyboard-accessible home action. */
button.brand { text-align:left; cursor:pointer; }
button.brand:focus-visible { outline:3px solid #8a621b; outline-offset:-4px; border-radius:10px; }
/* Review user views and compact enquiry quote-status labels. */
.rail [data-view][hidden],.profile-initials[hidden],.avatar img[hidden] { display:none; }
.profile-initials { display:grid; place-items:center; width:36px; height:36px; flex:none; border-radius:50%; background:#f5faef; color:#175640; border:1px solid #afc79e; font-size:13px; font-weight:700; }
.profile-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.list .item .enquiry-quote-status { display:inline-block; width:fit-content; padding:2px 8px; margin-top:6px; border-radius:12px; font-size:11px; font-weight:600; }
.enquiry-quote-status.needs { background:#ffedc9; color:#775010; }
.enquiry-quote-status.sent { background:#dceecf; color:#21583a; }
.user-dialog { width:min(430px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); overflow:auto; margin:auto; padding:22px; border:1px solid #c5d4bd; border-radius:18px; background:#faf9f3; color:var(--ink); box-shadow:0 16px 64px #123d3330; }
.user-dialog::backdrop { background:#153d3547; }
.user-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.user-dialog h2 { font-size:22px; margin:0; }
.user-dialog>p { color:#536650; font-size:13px; line-height:1.5; }
.user-view-option { display:flex; flex-direction:column; align-items:flex-start; gap:5px; width:100%; padding:14px; margin-top:12px; border:1px solid #d3dfca; border-radius:12px; background:white; color:var(--ink); text-align:left; }
.user-view-option strong { font-size:16px; }
.user-view-option span,.user-view-option small { font-size:12px; font-weight:500; }
.user-view-option[aria-pressed=true] { background:#e5f1d9; border-color:#8bae76; }
.user-view-option:hover { background:#edf6e4; }
.staff-dashboard-grid .metric { grid-column:span 8; }
.personal-queue-card { grid-column:span 24; }
.personal-queue-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.personal-queue-heading h2 { margin:0; }
.personal-task { display:flex; justify-content:space-between; align-items:center; gap:16px; width:100%; padding:14px 10px; background:none; border:0; border-top:1px solid #e0e8d9; color:var(--ink); text-align:left; }
.personal-task strong { display:block; font-size:14px; margin-bottom:5px; }
.personal-task span span { display:block; font-size:13px; font-weight:500; }
.personal-task:hover { background:#f0f6e9; }
.task-due { font-size:12px; border-radius:10px; padding:4px 8px; background:#e8f1de; white-space:nowrap; }
@media(max-width:760px) {
  .rail .avatar>.profile-initials:not([hidden]) { display:grid; }
  .staff-dashboard-grid .metric { grid-column:span 24; }
  .personal-queue-heading { flex-wrap:wrap; }
  .personal-task { align-items:flex-start; }
}
/* Enquiry quote status sits beside the name at the top right of each card. */
.list .item:has(.enquiry-quote-status) { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:8px; row-gap:2px; align-items:start; }
.list .item:has(.enquiry-quote-status)>strong { grid-column:1; grid-row:1; min-width:0; }
.list .item:has(.enquiry-quote-status)>span:not(.enquiry-quote-status) { grid-column:1/-1; }
.list .item .enquiry-quote-status { grid-column:2; grid-row:1; justify-self:end; margin-top:0; white-space:nowrap; }
.list .item .enquiry-received { color:#526650; font-size:11px; font-weight:600; line-height:1.5; margin-top:3px; }
