/* Development Desk styles. One file: tokens and base, layout, components, then page-specific rules, in cascade order. */
/* ==== Color tokens: every color below refers to these by name ==== */
:root {
  --surface: #ffffff;
  --ground: #f3f6f7;
  --subtle: #f8fafb;
  --fill: #eef2f4;
  --fill-strong: #e3e8eb;
  --line: #b4c0c8;
  --line-control: #7b8c96;
  --muted: #4b5b66;
  --ink-soft: #33434e;
  --ink: #14212b;
  --heading: #10263a;
  --black: #000000;
  --navy: #0c2a43;
  --rail-text: #d5e2e8;
  --rail-muted: #a7bdcb;
  --teal: #0f766e;
  --teal-dark: #0b5f58;
  --teal-tint: #eef7f4;
  --teal-line: #8fc9bd;
  --teal-ink: #1f3d33;
  --focus: #b27b22;
  --current: #c2410c;
  --blue: #1d5fa8;
  --blue-ink: #1b3a5c;
  --info-bg: #eaf2fb;
  --blue-line: #9cc0e3;
  --green: #1f7a4c;
  --green-ink: #14532d;
  --green-bg: #e8f5ee;
  --green-line: #9fd1b4;
  --amber: #a15c00;
  --amber-ink: #4d3500;
  --amber-bg: #fdf3e1;
  --amber-line: #e0bd78;
  --amber-fill: #e9a23b;
  --red: #b3261e;
  --red-ink: #7f1d1d;
  --red-bg: #fdecea;
  --red-line: #e7938b;
}


/* ==== from desk.css ==== */
:root{font:16px/1.5 var(--ui);color:var(--navy);background:var(--ground);}*{box-sizing:border-box}body{margin:0}header{background:white;border-bottom:1px solid var(--line)}.bar,main,footer{max-width:1320px;margin:auto;padding-inline:clamp(16px,4vw,58px)}.bar{display:flex;gap:22px;align-items:center;min-height:74px}.brand{display:flex;gap:10px;align-items:center;font-size:23px;font-weight:800;color:var(--navy);text-decoration:none;line-height:1}.brand img{width:40px;height:40px;object-fit:contain}.brand small{color:var(--navy);font-weight:650;font-size:13px;letter-spacing:.04em}.product{border-left:1px solid var(--line);padding-left:22px;font-weight:650}.bar nav{display:flex;gap:20px;margin-left:auto}.bar a:not(.brand),.quiet,.back{font-size:14px;font-weight:600;color:var(--navy)}.bar nav a{text-decoration:none}.quiet{background:transparent;border:1px solid var(--line);padding:7px 12px}main{padding-block:26px 40px;min-height:77vh}.hero{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(105deg,#123951,#144e63 64%,var(--teal));border-radius:12px;padding:clamp(24px,3vw,44px);color:white}.hero:before{position:absolute;content:"";inset:0 0 0 40%;background:url(orw_home_topography.svg) center/cover;opacity:.6;z-index:-1}.hero h1{font-size:clamp(32px,4vw,52px);letter-spacing:-.01em;margin:5px 0;line-height:1.1}.hero p{color:var(--fill);max-width:62ch;margin:10px 0}.button,button{display:inline-block;border:0;border-radius:6px;padding:10px 16px;background:var(--teal);color:white;font:600 14px/1.4 inherit;font-family:inherit;font-weight:650;cursor:pointer;text-decoration:none}.panel{background:white;padding:clamp(16px,2.2vw,30px);border:1px solid var(--line);border-radius:10px;margin-top:18px;min-width:0}h2{font-size:23px;line-height:1.24;letter-spacing:-.01em;margin:4px 0 14px}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:10px}.sectionhead>span,small,dt{font-size:13px;color:var(--muted)}small{display:block}label{display:block;font-size:14px;font-weight:650;margin:12px 0}input,select,textarea{display:block;width:100%;margin-top:5px;border:1px solid var(--line-control);border-radius:5px;padding:9px 10px;background:var(--surface);color:inherit;font:inherit;font-weight:400}textarea{min-height:78px}form button{margin:6px 0}.filters{display:flex;gap:10px;align-items:end;margin-bottom:20px}.filters label{margin:0}.filters label:first-child{flex:1}.filters button,.filters a{margin:0 0 1px}.scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:13px;letter-spacing:.04em;background:var(--fill);color:var(--muted)}th,td{padding:12px;border-bottom:1px solid var(--line)}td{font-size:14px}td small{font-size:13px}.projectname{display:block;font-size:17px;font-weight:700;color:#184b62;text-decoration:none}a:hover{text-decoration:none;color:#164f46}.projectname:hover{color:#164f46}.pill{background:var(--green-bg);color:var(--teal-dark);font-size:13px;font-weight:700;padding:4px 9px;border-radius:20px;white-space:nowrap}.s0{background:var(--fill);color:#515975}.s1{background:var(--info-bg);color:#225d7b}.s3{background:var(--amber-bg);color:#79571c}.s4{background:var(--info-bg);color:#614d7a}.back{display:inline-block;margin-bottom:12px}.checklist,.timeline{padding:0;list-style:none}.checklist li{display:flex;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}.check{color:var(--teal);font-weight:bold}.timeline li{border-left:2px solid #95bcb5;padding:0 0 16px 14px;overflow-wrap:anywhere}.pre{white-space:pre-wrap}.panel{overflow-wrap:anywhere}details{border-top:1px solid var(--line);padding:12px 0}summary{font-weight:650;color:var(--navy);cursor:pointer}progress{accent-color:var(--teal);width:100%;height:10px}dd{margin:0 0 12px;font-weight:600}.narrow{max-width:660px}.notice{background:var(--amber-bg);color:#624214;padding:14px;border-left:4px solid var(--focus)}.skip{position:absolute;left:-9999px}.skip:focus{left:8px;top:5px;background:white;z-index:5}a{color:var(--teal-dark);text-decoration:none;font-weight:600}.back{color:#38534f}a:focus-visible{border-radius:3px}:focus-visible{outline:3px solid var(--focus);outline-offset:3px}footer{display:flex;justify-content:space-between;color:var(--muted);font-size:13px;padding-block:20px;border-top:1px solid var(--line)}
@media(max-width:720px){.bar{gap:10px;flex-wrap:wrap;padding-block:9px}.bar nav{gap:12px}.product{display:none}.filters{flex-wrap:wrap}.filters label:first-child{flex-basis:100%}.hero:before{inset:0 0 0 55%}footer{display:block}footer span{display:block}th,td{padding:9px}.scroll table{min-width:600px}}.brand img{background:var(--blue-ink);padding:5px;border-radius:8px}


/* ==== from workspace.css ==== */
.workspace-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:10px 0 20px}.workspace-title h1{margin:4px 0;font-size:clamp(27px,3vw,42px);line-height:1.12;letter-spacing:-.01em;overflow-wrap:anywhere}.workspace-title p{color:var(--muted);margin:8px 0}.workspace-links{display:flex;align-items:center;gap:15px}.library-layout,.review-layout,.map-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);gap:16px;align-items:start}.library-layout .panel,.review-layout .panel,.map-layout .panel{margin:0}.file-row{display:flex;gap:12px;align-items:center;text-decoration:none;padding:16px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.file-icon{border:1px solid var(--line);color:var(--teal-dark);font-size:13px;letter-spacing:.04em;font-weight:750;padding:7px 4px;min-width:39px;text-align:center;border-radius:4px;background:var(--teal-tint)}.file-state{margin-left:auto;font-size:13px}.hint,.preview-label{font-size:13px;color:var(--muted)}.sheet-desk,.map-board{border:1px solid var(--line);border-radius:10px;min-width:0;overflow:hidden;background:white}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#153f50;color:white;padding:12px 16px}.pager a{color:white;padding:5px 10px}.drawing-controls{display:flex;justify-content:space-between;gap:10px;padding:0 14px;background:var(--fill)}.drawing-controls label{display:flex;align-items:center;gap:8px;font-size:13px}.drawing-controls select{margin:0;width:auto}.sheet-scroll{overflow:auto;background:var(--fill-strong);padding:12px;max-height:78vh}.sheet-scroll #paper{position:relative;width:100%;margin:auto;box-shadow:0 2px 8px #2343}.sheet-scroll img{width:100%;display:block}.sheet-scroll svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.sheet-scroll svg a{pointer-events:auto}.sheet-scroll svg.drawing-mode{pointer-events:all;touch-action:none;cursor:crosshair}.mark{stroke:#cf4c26;fill:#f3873918;stroke-width:3;vector-effect:non-scaling-stroke}.mark.highlight{fill:#ffc92870;stroke:var(--focus);stroke-width:1}.mark.pin{fill:#ce4f30;stroke:white;stroke-width:2}.mark.closed{stroke-dasharray:4 2}.threads h2 small{display:inline;font-weight:450}.thread{border-top:1px solid var(--line);padding:14px 0}.thread p,blockquote p{white-space:pre-wrap;margin:5px 0}.thread:target{background:var(--amber-bg)}.thread blockquote{border-left:2px solid var(--teal-line);margin:10px 0 10px 4px;padding-left:12px}.doc-text,.preview-label,.preview-error{padding:12px 18px}.doc-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:72vh;overflow:auto;font:inherit}.grid-preview{overflow:auto;max-height:72vh}.grid-preview td{white-space:pre;border:1px solid var(--line)}.map-layout{grid-template-columns:minmax(220px,290px) minmax(0,1fr)}#map{height:clamp(360px,52vh,590px);background:var(--green-bg)}.map-index ul{list-style:none;margin:0;padding:0}.map-entry{background:transparent;color:var(--ink-soft);text-align:left;padding:12px 6px;width:100%;border-bottom:1px solid var(--line);border-radius:0}.map-entry[aria-pressed=true]{background:var(--green-bg);box-shadow:inset 0 0 0 2px var(--teal)}.map-entry small{font-weight:400}.dev-marker{display:grid;place-items:center;background:var(--teal-dark);color:white;border:2px solid white;border-radius:50%;font:700 13px/1 var(--ui);box-shadow:0 2px 6px #2345}.dev-marker.chosen{background:#a34a22;outline:3px solid #b56d3770}.place-label{text-align:center;color:#5b706d;text-shadow:0 1px 2px white;font:600 13px/18px var(--ui)}.pick-mode{cursor:crosshair!important}#map-detail,#pin-editor{padding:14px 18px}#map-detail a{margin-right:18px}#map-detail h2{margin-bottom:2px}#map-detail p{margin-top:4px}#map-count{font-size:13px;color:var(--muted)}#coordinates{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.toolbar .quiet{background:white}#pin-editor[hidden]{display:none}.leaflet-container{font-family:inherit}
@media(max-width:800px){.library-layout,.review-layout,.map-layout{grid-template-columns:minmax(0,1fr)}.workspace-title{align-items:flex-start;flex-direction:column}.map-index ul{display:flex;overflow:auto}.map-index li{flex:0 0 170px}.map-entry{min-height:60px}.threads{max-height:none}.bar nav{flex-wrap:wrap;gap:10px}.sheet-scroll{padding:4px}.file-state{font-size:13px}.workspace-links{flex-wrap:wrap}}



/* ==== from stages.css ==== */
.workflow{display:grid;grid-template-columns:minmax(215px,27%) minmax(0,1fr);gap:18px;align-items:start;margin:18px 0;scroll-margin-top:12px}.phase-rail,.phase-body{min-width:0;border:1px solid var(--line);border-radius:12px;background:white;padding:clamp(16px,2vw,28px)}.phase-rail h2{margin:4px 0;font-size:25px}.phase-rail p{font-size:13px;color:var(--muted);margin:8px 0}.phase-rail nav{padding-top:12px}.phase-link{display:flex;align-items:center;gap:10px;border-radius:6px;padding:12px 8px;text-decoration:none;color:var(--ink-soft)}.phase-link[aria-current]{background:var(--green-bg)}.phase-num{box-sizing:border-box;display:grid;place-items:center;flex:none;height:29px;width:29px;border-radius:50%;border:1px solid #9eb9b2;color:var(--teal-dark);font-weight:700}.phase-link[aria-current] .phase-num{background:var(--teal-dark);color:white;border-color:var(--teal-dark)}.phase-link small,.task-label small{display:block;font-size:13px;font-weight:450}.phase-body>p{margin:8px 0 16px}.next-step,.evidence-receipt,.rule{background:var(--teal-tint);border:1px solid #b9d3cc;border-radius:6px;padding:11px 14px}.next-step strong{display:block}.rule{font-size:14px;background:var(--teal-tint);border-color:#b79b55}.milestones{margin:16px 0}.milestone{padding:0}.milestone>summary{display:flex;align-items:center;gap:10px;padding:14px 0}.milestone>summary:after{content:'+';font-size:18px;color:#396363}.milestone[open]>summary:after{content:'−'}.evidence-receipt{margin:9px 0;font-size:14px}
@media(max-width:740px){.workflow{grid-template-columns:minmax(0,1fr);gap:10px}.phase-rail nav{display:flex;overflow:auto;gap:4px}.phase-link{min-width:150px}.phase-rail h2{font-size:20px}.phase-body,.phase-rail{padding:15px}.phase-link[aria-current]{box-shadow:inset 0 -3px var(--teal)}}



/* ==== from suite.css ==== */
.suite-shell{--rail:15.5rem;--rail-ink:#0c2a43}.suite-shell main,.suite-shell footer{max-width:none;margin-left:var(--rail);padding-inline:clamp(16px,2.3vw,38px)}#suite-sidebar{position:fixed;z-index:1050;inset:0 auto 0 0;width:var(--rail);display:flex;flex-direction:column;background:var(--rail-ink);color:var(--rail-text)}.suite-brand{min-height:64px;padding:9px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff22}.suite-brand a,.mobile-bar a{display:flex;gap:11px;align-items:center;text-decoration:none;color:inherit}.suite-brand img,.mobile-bar img{height:36px;width:36px;object-fit:contain;background:#136384;border-radius:6px;padding:3px}.suite-brand span{font:800 20px/1.05 var(--display);letter-spacing:-.01em;color:white}.suite-brand small{font:500 13px/1.45 var(--display);color:#b2d2d7}.suite-links{flex:1;overflow:auto;padding:16px 12px}.suite-links a,.suite-switch a{display:flex;align-items:center;gap:12px;color:var(--rail-text);text-decoration:none;border-radius:6px;min-height:40px;padding:8px 12px;font-size:15px;font-weight:550}.suite-links a:hover,.suite-switch a:hover{background:#ffffff14;color:white}.suite-links a[aria-current]{background:var(--teal);color:white}.suite-shell svg:not(#overlay):is(.suite-shell nav svg,.suite-foot svg){width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.nav-group{margin-top:24px}.nav-group>small,.suite-switch>small{font-size:13px;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:var(--rail-muted);padding:0 12px}.nav-group>strong{display:block;padding:4px 12px 9px;color:white;overflow-wrap:anywhere}.suite-foot{padding:12px;border-top:1px solid #ffffff25}.suite-account{display:flex;align-items:center;gap:8px;margin-top:8px;padding:10px 4px 0;border-top:1px solid #ffffff22}.suite-account strong,.suite-account small{display:block;color:var(--fill);font-size:13px}.suite-account small{color:var(--line)}.suite-account form{margin-left:auto}.avatar{display:grid;place-items:center;width:30px;height:30px;background:#29556b;border-radius:50%;font-weight:700}.suite-account button,#close-nav,.mobile-bar button{background:transparent;color:inherit;border:0;padding:8px}.mobile-bar,#close-nav,#nav-scrim{display:none}.suite-shell .skip{z-index:1200}.suite-shell .workflow{grid-template-columns:minmax(0,1fr);gap:0}.suite-shell .phase-rail{border-radius:10px 10px 0 0;background:var(--subtle);padding:14px 18px}.suite-shell .phase-rail>h2,.suite-shell .phase-rail>p,.suite-shell .phase-rail>progress{display:none}.suite-shell .phase-rail nav{display:flex;gap:4px;overflow:auto;padding-top:7px}.suite-shell .phase-link{flex:1;min-width:118px;font-size:14px;padding:9px 6px}.suite-shell .phase-link[aria-current]{box-shadow:inset 0 -3px var(--teal)}.suite-shell .phase-body{border-radius:0 0 10px 10px;border-top:0}.suite-shell .hero h1{font-size:clamp(28px,3.2vw,44px)}.suite-shell .hero{padding:24px 28px}
@media(max-width:63.999rem){.suite-shell main,.suite-shell footer{margin-left:0}.suite-shell main{padding-top:16px}.mobile-bar{position:sticky;top:0;z-index:1002;display:flex;align-items:center;gap:10px;min-height:54px;background:white;color:#133d52;border-bottom:1px solid var(--line);padding:5px 12px}.mobile-bar a{gap:6px}.mobile-bar button{font-size:21px}.mobile-bar img{width:28px;height:28px}.suite-shell #suite-sidebar{transform:translateX(-100%);visibility:hidden;max-width:85vw;transition:transform .2s}.drawer-open #suite-sidebar{transform:none;visibility:visible}.drawer-open{overflow:hidden}#nav-scrim:not([hidden]){display:block;position:fixed;inset:0;background:#0c233b80;border:0;border-radius:0;z-index:1040}#close-nav{display:block;font-size:24px}.suite-shell .phase-link{min-width:142px}.suite-shell :is(#requirements,.case-tools [id]){scroll-margin-top:60px}}
@media(prefers-reduced-motion:reduce){#suite-sidebar{transition:none!important}}

.suite-signin{max-width:940px;margin:clamp(24px,9vh,100px) auto;display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:white}.suite-signin .hero{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;background-color:var(--navy);border:0;border-radius:0}.suite-signin .panel{border:0;margin:0;padding:clamp(22px,4vw,46px);box-shadow:none}.suite-signin .hero h1{font-size:clamp(30px,3vw,42px)}@media(max-width:740px){.suite-signin{grid-template-columns:1fr;margin:8px auto}.suite-signin .hero{padding:20px}.suite-signin .hero img{display:none}}
/* Plain register styling: flat brand panel, sentence-case labels, square status tags. */
.pill{border-radius:3px;font-weight:600;padding:2px 7px}
.hero{background-image:none;background-color:var(--navy);border-left:0}
.page-head{background:none;display:flex;align-items:flex-end;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;padding:6px 0 14px;border-bottom:2px solid var(--navy);margin-bottom:16px}
.page-head h1{margin:0;font-size:28px;line-height:1.2;letter-spacing:-.01em;color:var(--navy)}
.page-head p{margin:4px 0 0;color:var(--muted)}
.stage-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border:1px solid var(--line);background:white;margin:0 0 16px}
.stage-strip a{display:flex;justify-content:space-between;align-items:baseline;gap:8px;min-height:44px;padding:10px 12px;border-right:1px solid var(--line);color:inherit;text-decoration:none;font-size:14px}
.stage-strip a:last-child{border-right:0}
.stage-strip a:hover{background:var(--ground)}
.stage-strip a[aria-current]{box-shadow:inset 0 -3px var(--teal);font-weight:600}
.stage-strip strong{font-size:18px;font-variant-numeric:tabular-nums}
@media(max-width:900px){.stage-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.stage-strip a{border-bottom:1px solid var(--line)}.stage-strip a:nth-child(2n){border-right:0}}
/* Sidebar project search with Ctrl+K hint. */
.suite-search{position:relative;margin:4px 12px 10px}
.suite-search input{width:100%;box-sizing:border-box;min-height:38px;margin:0;padding:8px 64px 8px 12px;border:1px solid #ffffff30;border-radius:6px;background:#ffffff14;color:white;font:inherit;font-size:14px}
.suite-search input::placeholder{color:var(--rail-text)}
.suite-search input:focus-visible{outline:2px solid #b9d7f0;outline-offset:1px}
.suite-search kbd{position:absolute;right:10px;top:50%;transform:translateY(-50%);font:12px/1 inherit;font-family:inherit;color:var(--line);pointer-events:none}
.tag-blocked{border-color:#e2a29a;background:var(--red-bg);color:#8a2416}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Neutral dark rail; Pineview teal stays as the active marker. */
.suite-shell{--rail-ink:#1b2329}
.suite-foot>a{display:flex;align-items:center;gap:12px;color:var(--rail-text);text-decoration:none;border-radius:6px;min-height:40px;padding:8px 12px;font-size:15px;font-weight:550}
.suite-foot>a:hover{background:#ffffff14;color:white}
.suite-foot>a[aria-current]{background:var(--teal);color:white}
#collapse-nav{display:none}
@media(min-width:64rem){
#collapse-nav{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--rail-text);cursor:pointer}
#collapse-nav:hover{background:#ffffff14;color:white}
#collapse-nav svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rail-collapsed{--rail:4.5rem}
.rail-collapsed .suite-brand{flex-direction:column;justify-content:center;gap:8px;padding:10px 0}
.rail-collapsed .suite-brand span,.rail-collapsed .suite-search,.rail-collapsed .nav-group>small,.rail-collapsed .nav-group>strong,.rail-collapsed .suite-switch>small,.rail-collapsed .suite-account>div{display:none}
.rail-collapsed :is(.suite-links,.suite-switch,.suite-foot) a span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.rail-collapsed :is(.suite-links,.suite-foot){padding-inline:10px}
.rail-collapsed :is(.suite-links a,.suite-switch a,.suite-foot>a){justify-content:center;padding:8px 0}
.rail-collapsed .nav-group{margin-top:12px;padding-top:12px;border-top:1px solid #ffffff22}
.rail-collapsed .suite-account{flex-direction:column;gap:4px}
.rail-collapsed .suite-account form{margin:0}
}
/* Person avatars: six fixed shades, all with white text above 4.5:1. */
.avatar-sm{display:inline-grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;color:var(--surface);font-size:13px;font-weight:700;line-height:1;vertical-align:middle;margin-right:8px}
.avatar-c0{background:var(--navy)}.avatar-c1{background:var(--teal)}.avatar-c2{background:#7a3e9d}.avatar-c3{background:#9a4a12}.avatar-c4{background:var(--blue)}.avatar-c5{background:var(--muted)}
.person{display:inline-flex;align-items:center}
.help-list{margin:0;padding-left:20px}.help-list li{margin:6px 0}
.help-stage{border-top:1px solid var(--line);padding:6px 0}.help-stage>summary{display:flex;align-items:center;gap:10px;font-weight:600;font-size:16px}
.help-stage .phase-num{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--fill);font-size:13px}
.help-stage table small{display:block;color:#59645e}
kbd{display:inline-block;padding:1px 5px;border:1px solid #c4ccc8;border-radius:4px;background:var(--subtle);font:12px/1.4 inherit;font-family:inherit}
.suite-search kbd{border:0;background:none;padding:0}
@media(min-width:64rem){.suite-brand{padding:9px 8px 9px 14px;gap:6px}.suite-brand a{gap:9px}.suite-brand small{white-space:nowrap}.rail-collapsed .suite-brand{padding:10px 0}}
@media(min-width:64rem){body.suite-shell.rail-collapsed{--rail:4.5rem}}


/* ==== from record.css ==== */
.record-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(265px,320px);background:white;border:1px solid var(--line);border-radius:8px;min-height:79vh;font-size:14px}
.suite-shell:has(.record-shell){--rail:13.125rem}.suite-shell main:has(.record-shell){padding:12px 16px 24px}
.record-main,.record-workflow{min-width:0}.record-workflow{border-left:1px solid var(--line);padding:12px}.record-main>section{margin:18px 24px}.record-main .panel{box-shadow:none}
.record-crumb{padding:10px 24px;border-bottom:1px solid var(--line);display:flex;gap:9px;color:var(--muted)}.record-title{padding:16px 24px 10px;border:0}.record-title h1,.editor-header h1{margin:0;font-size:23px;line-height:1.25}.record-title p{margin:4px 0;color:var(--muted)}
.record-tabs{display:flex;gap:20px;padding:0 24px;overflow:auto;border-bottom:1px solid var(--line)}.record-tabs a{padding:10px 1px;border-bottom:2px solid transparent;text-decoration:none;color:var(--muted);white-space:nowrap}.record-tabs a[aria-current]{color:var(--teal-dark);border-bottom-color:var(--teal-dark);font-weight:700}
.record-overview h2,.record-main .panel h2{font-size:16px;margin:18px 0 8px;letter-spacing:-.01em}.record-facts,.record-log,.record-table{border:1px solid var(--line);margin:8px 0 12px}.record-facts{display:grid;grid-template-columns:minmax(115px,25%) minmax(0,1fr)}.record-facts dt,.record-facts dd{margin:0;padding:8px 10px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.record-facts dt{background:var(--ground)}.record-log{list-style:none;padding:0}.record-log li{display:flex;justify-content:space-between;gap:10px;padding:8px 10px;border-bottom:1px solid var(--line)}.record-log li:last-child,.record-facts :nth-last-child(-n+2){border:0}.record-log time,.record-log small{color:var(--muted);flex-shrink:0}.record-table :is(td,th){padding:7px 9px}.record-section-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.record-section-header form{display:flex;align-items:center;gap:8px}.record-section-header select{width:auto;margin:0;padding:4px 6px}.record-workflow .workflow{margin:0}.record-workflow .phase-rail,.record-workflow .phase-body{padding:10px;border:0}.suite-shell .record-workflow .phase-rail nav{display:grid;overflow:visible}.suite-shell .record-workflow .phase-rail>p,.suite-shell .record-workflow .phase-rail>progress{display:block}.record-workflow .phase-link{padding:6px 8px}.record-workflow .milestone>summary{padding:8px 0}
[data-record-panel]{display:none}
[data-tab=details] [data-record-panel=details],[data-tab=files] [data-record-panel=files],[data-tab=inspections] [data-record-panel=inspections],[data-tab=property] [data-record-panel=property],[data-tab=contacts] [data-record-panel=contacts],[data-tab=fees] [data-record-panel=fees],[data-tab=activity] [data-record-panel=activity]{display:block}
.editor-shell main{max-width:none;padding:0}.editor-header{display:flex;align-items:center;gap:14px;padding:9px 16px;background:white;border-bottom:1px solid var(--line)}.editor-header h1{font-size:16px;overflow-wrap:anywhere}.editor-header small{font-size:13px}.editor-actions,.editor-actions label{display:flex;align-items:center;gap:12px}.editor-actions{margin-left:auto;font-size:13px}.editor-actions select{margin:0;padding:4px 7px}.editor-actions label{margin:0}.editor-layout{grid-template-columns:minmax(0,1fr) minmax(275px,340px);gap:0;height:calc(100dvh - 62px);background:var(--fill)}.editor-layout .sheet-desk{position:relative;height:100%;display:flex;flex-direction:column;background:transparent;border:0;border-radius:0}.editor-layout .toolbar{background:var(--fill);color:var(--ink-soft);padding:5px 14px;justify-content:center}.editor-layout .pager a{color:#155d74}.editor-layout .preview-heading{display:none}.editor-layout .sheet-scroll{flex:1;max-height:none;min-height:0;background:transparent;padding:10px 16px 74px}.editor-layout #paper{max-width:100%;width:max-content}.editor-layout #drawing{width:auto;max-width:100%;max-height:calc(100dvh - 160px);margin:auto;object-fit:contain}.editor-layout #paper.zoomed{max-width:none}.editor-layout .zoomed #drawing{width:100%;max-height:none}.editor-layout .drawing-controls{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);z-index:2;background:white;border:1px solid var(--rail-text);border-radius:7px;align-items:center;gap:8px;box-shadow:0 2px 6px #142b4320;white-space:nowrap}.editor-layout .drawing-controls label{margin:6px 0}.editor-layout .threads{height:100%;overflow:auto;background:white;border-radius:0;border-width:0 0 0 1px;padding:0 14px;font-size:14px}.inspector-tabs{position:sticky;top:0;display:flex;background:white;border-bottom:1px solid var(--line);z-index:1}.inspector-tabs button{flex:1;padding:9px 4px;color:var(--ink-soft);background:none;border-radius:0}.inspector-tabs button[aria-pressed=true]{border-bottom:2px solid var(--teal)}.inspector-tabs small{display:inline}.threads [data-inspector-panel]{padding:7px 0}.editor-layout #feedback{background:white}.editor-layout #feedback.anchored{position:absolute;left:var(--anchor-x);top:var(--anchor-y);width:min(305px,85%);padding:10px 12px;border:1px solid #9fb9b7;border-radius:6px;box-shadow:0 3px 12px #19334626;z-index:3}.editor-layout #feedback.anchored textarea{min-height:56px}
@media(max-width:850px){.record-shell{grid-template-columns:minmax(0,1fr)}.record-workflow{border:0;border-top:1px solid var(--line)}.record-main>section{margin:12px}.record-tabs,.record-title,.record-crumb{padding-inline:12px}.record-log li{flex-wrap:wrap}.editor-header{flex-wrap:wrap}.editor-actions{margin-left:0;flex-wrap:wrap}.editor-layout{display:block;height:auto}.editor-layout .sheet-desk{min-height:390px}.editor-layout .threads{border-width:1px 0 0}.editor-layout .sheet-scroll{padding-bottom:64px}.editor-layout #drawing{max-height:65vh}}
.sheet-scroll svg a.selected .mark{stroke:var(--blue-ink);stroke-width:4}.record-shell a:focus-visible,.editor-shell a:focus-visible,.editor-shell button:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.record-workflow .workflow-stage .phase-body{background:white;border:1px solid var(--line);border-radius:5px;margin:3px 0 8px}
.markup-buttons{display:none}.has-tool-buttons .markup-buttons{display:flex;align-items:center;gap:3px}.has-tool-buttons .editor-tool-select{display:none}.markup-buttons button{background:white;color:var(--ink-soft);font-size:20px;line-height:1;padding:6px 8px;margin:0}.markup-buttons button[aria-pressed=true]{background:var(--green-bg);color:var(--teal-dark)}
.editor-layout.has-file-navigator{grid-template-columns:190px minmax(0,1fr) minmax(270px,310px)}
.editor-files{background:white;border-right:1px solid var(--line);overflow:auto;padding:10px;font-size:13px;min-width:0}
.editor-files h2{font-size:15px;margin:0}.editor-files h2 small{display:inline}.editor-files label{margin:7px 0}.editor-file-list,.editor-thumbnails{padding:0;list-style:none;margin:5px 0}.editor-file-list li{padding:6px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.editor-files a[aria-current]{color:var(--teal-dark);font-weight:700}.editor-file-list small{font-size:13px}
.editor-page-jump{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.editor-page-jump label{display:flex;align-items:center;gap:5px}.editor-page-jump input{width:55px;margin:0;padding:3px}.editor-page-jump button{padding:4px 8px}
.editor-thumbnails a{display:grid;gap:4px;text-align:center;padding:6px;border:1px solid var(--line);border-radius:5px;margin:6px 0;text-decoration:none}.editor-thumbnails a[aria-current]{border:2px solid var(--teal)}.editor-thumbnails img{width:100%;object-fit:contain;max-height:110px}
#submit-findings{width:min(460px,calc(100vw - 24px));padding:18px;border:1px solid var(--line);border-radius:8px;color:inherit}#submit-findings::backdrop{background:#142f4490}
@media(max-width:1000px){.editor-layout.has-file-navigator{grid-template-columns:145px minmax(0,1fr) 250px}}
@media(max-width:850px){.editor-files{border:0;border-bottom:1px solid var(--line);max-height:245px}.editor-thumbnails{display:flex;gap:5px;overflow:auto}.editor-thumbnails a{width:82px}}
.record-log li > :first-child { min-width: 0; overflow-wrap: anywhere; }
#current-work { scroll-margin-top: 64px; }

/* Links follow the control they represent: navigation, files, or actions. */
.record-crumb a {
  color: #53635f;
  border-radius: 4px;
  padding: 2px 5px;
  margin: -2px -5px;
}
.record-crumb a:hover { background: var(--fill); color: var(--teal-ink); }
.record-log li:has(> a):hover { background: var(--ground); }
.record-log li > a { color: var(--teal-ink); font-weight: 600; }
.record-log li > a:hover { color: #17614e; }
.record-facts a {
  display: inline-block;
  color: #2d5548;
  border-radius: 4px;
  padding-inline: 4px;
  margin-inline: -4px;
}
.record-facts a:hover { background: var(--green-bg); }
.record-overview > a,.editor-actions > a,.editor-header > a{
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--fill-strong);
  border-radius: 5px;
  color: #354d41;
  background: var(--ground);
  font-weight: 600;
}
.record-overview > a:hover,.editor-actions > a:hover,.editor-header > a:hover{
  background: var(--green-bg);
  border-color: #b7cbbd;
}
.editor-file-list a { color: var(--teal-ink); }
.editor-file-list li:has(a):hover { background: var(--teal-tint); }
#reviews form, #upload-support form { max-width: 700px; }
#reviews > details[open], #upload-support[open] {
  padding: 16px;
  margin-block: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--subtle);
}
#reviews > details[open] > summary { margin-bottom: 16px; }
.record-log li > small { font-size: 13px; }
.record-log li { align-items: baseline; padding-block: 12px; }


/* ==== from case-layout.css ==== */
/* Case record: same suite shell, sidebar and type as every other page. */
.suite-shell main:has(.record-shell) { padding-top: 24px; padding-bottom: 40px; }
.record-shell {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 32%);
  gap: 0 32px;
  padding: 20px 20px 28px;
  min-height: 80vh;
  font-size: 14px;
  line-height: 1.45;
}
.record-top { grid-column: 1 / -1; padding: 0 0 28px; }
.next-step { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 18px 12px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--subtle); }
.next-step.is-yours { border-color: var(--teal-line); background: var(--teal-tint); }
.next-step h2 { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: #4d5a53; letter-spacing: -.01em; }
.next-step h2 span { font-weight: 400; margin-left: 6px; }
.next-step strong { display: block; font-size: 17px; color: #151816; }
.next-step p { margin: 4px 0 0; max-width: 62ch; color: #3f4a44; }
.record-shell .next-step .button { flex: none; min-height: 40px; padding: 9px 16px; background: var(--teal); border-color: var(--teal); color: var(--surface); font-weight: 600; }
.record-shell .next-step .button:hover { background: var(--teal-dark); }
.your-turn { display: block; color: var(--teal-dark); }
.record-crumb { border: 0; padding: 0 12px; font-size: 13px; color: #6c716d; }
.record-title { padding: 10px 12px 0; }
.record-title h1 { font-size: 25px; font-weight: 600; color: #151816; }
.record-title p { margin-top: 5px; color: #526259; font-size: 14px; }
.record-main > section{ margin: 20px 12px; }
.record-tabs { gap: 4px; padding: 0 12px; }
.record-tabs a { padding: 12px; color: #303430; font-weight: 400; font-size: 15px; }
.record-tabs a[aria-current] { color: #151816; border-color: #ef662d; }
.record-overview h2 { margin: 28px 0 12px; font-size: 18px; font-weight: 600; }
.record-section-header { min-height: 40px; margin-bottom: 18px; }
.record-section-header label { font-size: 18px; margin: 0 8px 0 0; }
.record-section-header select { min-width: 175px; border-color: #c9ccc9; border-radius: 5px; padding: 6px 10px; }
.record-shell .button, .record-shell .quiet, .file-view {
  padding: 6px 12px;
  border: 1px solid var(--line-control);
  border-radius: 5px;
  background: white;
  color: #242b26;
  box-shadow: 0 1px 2px #14241708;
}
.record-shell .button:hover, .file-view:hover { background: var(--ground); }
.count { display: inline-block; margin-left: 5px; padding: 0 6px; font-size: 13px; font-weight: 400; border: 1px solid var(--fill-strong); border-radius: 3px; background: var(--ground); }
.record-table { border: 1px solid var(--fill); border-radius: 7px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.record-table th { background: var(--ground); color: #555; font-size: 13px; font-weight: 400; letter-spacing: 0; }
.record-table td, .record-table th { padding: 10px 12px; }
.record-table tr:last-child td { border-bottom: 0; }
.file-table td:nth-child(2) { width: 45%; overflow-wrap: anywhere; }
.file-table td:nth-child(4), .file-table td:last-child { white-space: nowrap; }
.file-table a { color: var(--teal-ink); font-weight: 400; }
.file-status { font-size: 13px; color: #5d665f; }
.review-status { margin: 10px 0; }
.record-workflow { padding: 0 0 0 20px; border-color: var(--fill); }
.record-workflow .phase-rail { background: white; padding: 16px 0; }
.record-workflow .workflow-heading { font-size: 17px; margin: 0 0 6px; color: #222; letter-spacing: -.01em; }
.record-workflow .phase-rail > p { font-size: 13px; margin: 0 0 18px; color: #555c56; }
.record-workflow .phase-rail > progress { display: none; }
.record-workflow .phase-rail nav { gap: 12px; padding: 0; }
.workflow-stage { border: 1px solid var(--line); border-radius: 8px; background: var(--subtle); overflow: hidden; }
.workflow-stage:has(.phase-link[aria-current]) { background: white; }
.record-workflow .phase-link { padding: 15px 16px; min-width: 0; gap: 12px; color: #242824; }
.record-workflow .phase-link[aria-current] { background: white; box-shadow: none; }
.record-workflow .phase-link strong { font-weight: 500; }
.record-workflow .phase-link[aria-current] strong { font-weight: 600; }
.record-workflow .phase-num { border: 0; color: #353b36; font-weight: 400; }
.record-workflow .phase-link[aria-current] .phase-num { background: var(--current); color: white; border: 0; }
.record-workflow .phase-link small { font-size: 13px; color: #555c56; margin-top: 3px; }
.workflow-context { padding: 0 16px 8px; font-size: 13px; }
.workflow-context p { margin: 0 0 3px; color: #626b64; }
.workflow-context strong { font-weight: 500; }
.record-workflow .workflow-stage .phase-body { border: 0; border-top: 1px solid var(--fill); border-radius: 0; padding: 12px 16px; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1000px) {
  .record-shell { grid-template-columns: minmax(0, 1fr) 290px; gap: 0 16px; }
  .suite-shell main:has(.record-shell) { padding-inline: 12px; }
}
@media (max-width: 760px) {
  .record-shell { display: block; padding: 8px 0 20px; }
  .record-workflow { border: 0; border-top: 1px solid var(--fill); padding: 16px 12px; }
  .record-top { padding-bottom: 16px; }
  .file-table { min-width: 620px; }
}
/* Accessibility: every control at least 24px tall (WCAG 2.2 target size), 44px for the case tabs. */
main summary { padding-block: 6px; cursor: pointer; }
.record-crumb a, .thread small a { display: inline-block; padding: 4px 2px; }
.record-tabs { scrollbar-width: none; }
.record-tabs::-webkit-scrollbar { display: none; }
.record-tabs a { display: inline-flex; align-items: center; min-height: 44px; }
#overlay .mark-hit { fill: transparent; stroke: none; pointer-events: all; }
/* Case header: typed case number, street address, quick actions. */
.record-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.record-heading { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.case-icon { width: 26px; height: 26px; margin-top: 4px; flex: none; fill: none; stroke: var(--teal-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.case-no { font-weight: 600; color: var(--teal-ink); white-space: nowrap; }
.case-address { display: inline-block; margin-top: 2px; font-size: 17px; color: #0b5c8e; text-decoration: none; }
.case-address:hover { text-decoration: underline; }
.record-actions { display: flex; gap: 4px; flex: none; }
.record-actions a, .icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; color: var(--teal-ink); }
.record-actions a:hover, .icon-button:hover { background: var(--fill); }
.record-actions svg,.icon-button svg,.plan-meta svg{ width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* Files tab: plan set block, review tags, supporting files. */
.plan-actions { display: flex; align-items: center; gap: 6px; }
.plan-meta { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 6px 0 22px; align-items: center; }
.plan-meta dt { margin: 0; color: #59645e; }
.plan-meta dd { margin: 0; display: flex; align-items: center; gap: 8px; }
.tag { display: inline-block; padding: 1px 7px; border: 1px solid var(--blue-line); border-radius: 3px; background: var(--info-bg); color: #174a7c; font-size: 13px; white-space: nowrap; }
.tag-in-progress { border-color: var(--amber-line); background: var(--amber-bg); color: #6b4a07; }
.tag-complete { border-color: var(--green-line); background: var(--green-bg); color: var(--green-ink); }
.empty-state { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 20px; padding: 16px; border: 1px dashed #c4ccc8; border-radius: 6px; background: var(--subtle); }
.empty-state p { margin: 0; max-width: 60ch; }
.row-actions { white-space: nowrap; text-align: right; }
.file-table small.file-status { display: block; margin-top: 2px; }
@media (max-width: 760px) { .case-icon { display: none; } .record-title h1 { font-size: 22px; } }
[hidden] { display: none !important; }
.record-shell .plan-actions .button { background: var(--teal); border-color: var(--teal); color: var(--surface); font-weight: 600; min-height: 36px; }
.record-shell .plan-actions .button:hover { background: var(--teal-dark); }


/* ==== from refresh.css ==== */
/* Visual refresh, loaded last: crisp system type, real chevrons, status color, dialogs and feedback. */
:root {
  --ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}

/* Type: system UI fonts render with ClearType on Windows instead of the jagged bundled TTFs. */
body { font-family: var(--ui); color: var(--ink); font-size: 15px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -0.01em; }
.page-head h1 { font-family: var(--display); }
.leaflet-control-zoom a { font-family: inherit; }
.record-shell { font-size: 15px; }
small, dt, .sectionhead > span { color: var(--muted); }
a { color: var(--blue); }

/* Chevrons: one SVG set for selects and every remaining disclosure. */
select { appearance: none; -webkit-appearance: none; background: var(--surface) url(chevron-down.svg) no-repeat right 10px center / 16px 16px; padding-right: 34px; }
.record-shell .record-section-header select { padding-right: 34px; }
summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; flex: none; width: 16px; height: 16px; background: url(chevron-right.svg) center / 16px no-repeat; transition: transform 0.15s; }
details[open] > summary::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { summary::before { transition: none; } }
.glyph, .crumb-sep { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.mobile-bar button svg, #close-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; display: block; }
[data-mark-tool] svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* Feedback after every action. */
.notice { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; padding: 12px 14px; border: 1px solid; border-radius: 6px; font-size: 15px; transition: opacity 0.5s; }
.notice p { margin: 0; flex: 1; }
.notice svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notice-success { background: var(--green-bg); border-color: var(--green-line); border-left-color: var(--green); color: var(--green-ink); }
.notice-error { background: var(--red-bg); border-color: #f1b0aa; border-left-color: var(--red); color: var(--red-ink); }
.notice .notice-close { min-height: 0; padding: 2px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.notice.is-fading { opacity: 0; }

/* Buttons. */
.action-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 7px 14px; border: 1px solid var(--line-control); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.action-btn:hover { background: var(--ground); }
.action-btn.primary, button.primary { background: var(--teal); border: 1px solid var(--teal); color: var(--surface); }
.action-btn.primary:hover, button.primary:hover { background: var(--teal-dark); }
.action-btn.danger { border-color: #e3a8a3; color: var(--red); }
.action-btn.warn { border-color: #e0c28a; color: #7a4a00; }
button.primary.danger { background: var(--red); border-color: var(--red); }
button.primary.warn { background: var(--amber); border-color: var(--amber); }
button.quiet { border: 1px solid var(--line-control); background: var(--surface); color: var(--ink); }
button[aria-disabled="true"] { opacity: 0.7; cursor: progress; }

/* Action dialogs: say what will happen, collect the fields, confirm. */
.action-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 10px; box-shadow: 0 20px 50px #0f1e2a40; color: var(--ink); }
.action-dialog::backdrop { background: #0f1e2a66; }
.action-dialog form { display: block; margin: 0; }
.action-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; border: 0; background: none; }
.action-dialog h2 { margin: 0; font-size: 19px; }
.action-dialog .dialog-x { min-height: 0; padding: 6px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.action-dialog .dialog-x:hover { background: var(--fill); }
.dialog-x svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dialog-lede { margin: 10px 20px 0; padding: 10px 12px; border-radius: 6px; background: var(--info-bg); color: var(--blue-ink); font-size: 14px; }
.action-dialog.danger .dialog-lede { background: var(--red-bg); color: var(--red-ink); }
.action-dialog.warn .dialog-lede { background: var(--amber-bg); color: #6b4500; }
.dialog-body { display: grid; gap: 12px; padding: 14px 20px 4px; }
.dialog-body label { display: grid; gap: 6px; margin: 0; font-size: 14px; font-weight: 600; }
.dialog-body :is(input:not([type=hidden]), select, textarea) { width: 100%; box-sizing: border-box; margin: 0; font-weight: 400; }
.dialog-body textarea { min-height: 96px; }
.dialog-body small { color: var(--muted); }
.action-dialog footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; padding: 14px 20px 18px; border-top: 1px solid var(--line); background: none; color: inherit; max-width: none; }

/* Requirement cards in the workflow rail: visible, color-coded, actions inline. */
.milestones { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.milestones { gap: 0; border-top: 1px solid var(--line); }
.milestone { padding: 10px 4px; border-bottom: 1px solid var(--line); background: none; }
.milestone-head { display: flex; align-items: flex-start; gap: 10px; }
.task-status-icon { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--line-control); }
.task-label { flex: 1; min-width: 0; }
.task-label strong { display: block; font-size: 14.5px; font-weight: 600; }
.task-label small { display: block; margin-top: 1px; }
.state-tag { flex: none; padding: 2px 7px; border-radius: 4px; background: var(--fill); color: var(--ink-soft); font-size: 13px; font-weight: 600; white-space: nowrap; }
.task-guidance { margin: 8px 0 0; color: var(--ink-soft); font-size: 13.5px; }
.task-block { margin: 6px 0 0; color: #6b4500; font-size: 13px; }
.task-done { margin: 6px 0 0; color: var(--green-ink); font-size: 13px; }
.task-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.task-actions:not(:has(*)) { display: none; }
.task-link { font-size: 14px; font-weight: 600; }
.correction-note { color: var(--red-ink); }

.milestone.state-verified .task-status-icon, .milestone.state-not-required .task-status-icon { color: var(--green); }
.milestone.state-verified .state-tag, .milestone.state-not-required .state-tag { background: var(--green-bg); color: var(--green-ink); }
.milestone.state-pending .task-status-icon { color: var(--blue); }
.milestone.state-pending .state-tag { background: var(--info-bg); color: var(--blue-ink); }
.milestone.state-awaiting-verification .task-status-icon { color: var(--amber); }
.milestone.state-awaiting-verification .state-tag { background: var(--amber-bg); color: #6b4500; }
.milestone.state-changes-requested .task-status-icon { color: var(--red); }
.milestone.state-changes-requested .state-tag { background: var(--red-bg); color: var(--red-ink); }
.record-workflow .phase-body { padding: 4px 0 12px; border: 0; }
.rule { margin: 0 0 10px; padding: 10px 12px; border-radius: 6px; background: var(--info-bg); color: var(--blue-ink); font-size: 13.5px; }
.phase-num svg { width: 22px; height: 22px; display: block; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.workflow-stage:has(.phase-link[aria-current]) { border-color: var(--teal-line); box-shadow: 0 1px 3px #0f766e1a; }

/* Activity composer. */
.composer { display: grid; gap: 8px; margin: 12px 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--subtle); }
.composer > label { font-weight: 600; }
.composer textarea { min-height: 84px; margin: 0; }
.composer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.audience { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; padding: 0; border: 0; }
.audience legend { float: left; margin-right: 4px; padding: 0; font-size: 13px; font-weight: 600; }
.audience label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 400; }

/* Case administration on the Details tab. */
.section-note { margin: 0; color: var(--muted); font-size: 14px; }
.action-grid, .section-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.access-list { margin: 8px 0 14px; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 8px; }
.access-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.access-list li:last-child { border-bottom: 0; }
.access-list .person { flex: 1; }

/* Clearer hierarchy: headings, tables and facts get color and weight instead of flat gray. */
.record-overview h2, .panel h2, .record-shell h2 { color: var(--heading); }
.record-table th, .panel table th { background: var(--fill); color: var(--ink-soft); font-weight: 600; }
.record-facts dt { background: var(--ground); color: var(--ink-soft); }
.record-facts dd { color: var(--ink); }
.record-tabs a[aria-current] { color: var(--heading); font-weight: 600; }
/* Notices float in view so feedback is seen even when the page scrolls to the workflow after saving. */
main > .notice { position: fixed; top: 16px; right: 16px; z-index: 2000; width: min(420px, calc(100vw - 32px)); margin: 0; box-shadow: 0 10px 30px #0f1e2a2e; }
main > .notice + .notice { top: 96px; }
@media (max-width: 63.999rem) { main > .notice { top: 64px; } main > .notice + .notice { top: 144px; } }
/* Upload drop zone: the whole area is the file picker and a drop target. */
label.dropzone { position: relative; display: grid; justify-items: center; gap: 6px; padding: 22px 16px; border: 2px dashed var(--line); border-radius: 10px; background: var(--subtle); text-align: center; font-weight: 400; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.dropzone > svg { width: 28px; height: 28px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dropzone-title { font-size: 15px; color: var(--ink); }
.dropzone-title strong { color: var(--teal); }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone:hover, .dropzone.is-dragging, .dropzone:focus-within { border-color: var(--teal); background: var(--teal-tint); }
.dropzone:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.dropzone-file:empty { display: none; }
.dropzone-file { margin-top: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.dropzone.has-file { border-style: solid; border-color: var(--green); background: var(--green-bg); }
.dropzone.has-file .dropzone-file { background: var(--surface); color: var(--green-ink); }
.dropzone.is-invalid { border-style: solid; border-color: var(--red); background: var(--red-bg); }
.dropzone.is-invalid .dropzone-file { background: var(--surface); color: var(--red-ink); }

/* Scan status page. */
.scan-status { display: flex; gap: 16px; align-items: flex-start; max-width: 640px; margin: 18px 0; padding: 20px; border: 1px solid var(--blue-line); border-radius: 10px; background: var(--surface); }
.scan-status h2 { margin: 0 0 6px; font-size: 19px; }
.scan-status p { margin: 0 0 10px; color: var(--ink-soft); }
.scan-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scan-status:not(.stalled):not(.blocked) .scan-icon svg { animation: scan-pulse 1.6s ease-in-out infinite; }
@keyframes scan-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .scan-status .scan-icon svg { animation: none !important; } }
.scan-status.stalled { border-color: var(--amber-line); }
.scan-status.stalled .scan-icon svg { stroke: var(--amber); }
.scan-status.blocked { border-color: var(--red-line); }
.scan-status.blocked .scan-icon svg { stroke: var(--red); }
.waiting-note { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; padding: 12px 14px; border: 1px solid var(--amber-line); border-radius: 6px; background: var(--amber-bg); color: var(--amber-ink); font-size: 14px; }
.waiting-note p { margin: 0; }
.waiting-note svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; }


/* ==== Multi-person sign-offs ==== */
.signoff-block { margin: 12px 0 18px; }
.signoff-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 6px; }
.signoff-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--heading); }
.signoff-progress { font-size: 13px; font-weight: 600; color: var(--amber); }
.signoff-block.is-done .signoff-progress { color: var(--green); }
.signoff-table td { vertical-align: middle; }
.signoff-table tr.is-mine > td { background: var(--teal-tint); }
.signoff-table td.row-actions { width: 1%; text-align: right; white-space: normal; }
.signoff-table td.row-actions > button { display: flex; margin: 3px 0 3px auto; white-space: nowrap; }
.signoff-table td:nth-child(2) { min-width: 140px; }
.more-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 4px 10px; border: 1px solid var(--line-control); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.more-btn:hover { background: var(--ground); }
.more-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.more-btn[aria-expanded="true"] svg { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .more-btn svg { transition: none; } }
.more-row > td { background: var(--subtle); padding: 10px 14px 12px; }
.more-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; font-size: 14px; }
.more-facts dt { margin: 0; color: var(--muted); }
.more-facts dd { margin: 0; }
.more-row .section-actions { margin: 10px 0 0; }
.signoff-summary { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; border: 1px solid #c9dfd9; border-radius: 6px; background: var(--teal-tint); color: var(--green-ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.signoff-summary.is-waiting { border-color: #e8cf9c; background: var(--amber-bg); color: var(--amber-ink); }
.signoff-summary small { display: block; font-weight: 400; color: inherit; }
.avatar-stack { display: inline-flex; flex: none; }
.avatar-stack .avatar-sm { margin-right: -6px; box-shadow: 0 0 0 2px var(--surface); }
.avatar-stack .avatar-sm:last-child { margin-right: 0; }
.signoff-table td:nth-child(4), .signoff-table td:nth-child(5) { white-space: nowrap; }
.signoff-table td, .signoff-table th { padding: 8px 10px; }
.signoff-table .mine-action { display: flex; margin-top: 6px; }
.also-parts { margin: 10px 0 0; padding: 8px 10px; list-style: none; border-top: 1px dashed #b9d3cc; font-size: 13px; }
.also-parts li { margin: 2px 0; }
.also-parts .also-label { font-weight: 600; color: var(--green-ink); }
.also-parts a { font-weight: 600; }
.also-parts small { display: block; color: var(--muted); }

/* ==== Highlight what an in-page link jumped to ==== */
.just-revealed { animation: reveal-flash 2.2s ease-out; border-radius: 8px; }
@keyframes reveal-flash {
  0%, 35% { box-shadow: 0 0 0 4px #0f766e99; background-color: #fff6d6; }
  100% { box-shadow: 0 0 0 4px #0f766e00; }
}
.just-revealed:focus { outline: none; }



/* ==== Errors inside a reopened dialog ==== */
.dialog-error { display: flex; gap: 10px; align-items: flex-start; margin: 10px 20px 0; padding: 10px 12px; border: 1px solid var(--red-line); border-radius: 6px; background: var(--red-bg); color: var(--red-ink); font-size: 14px; }
.dialog-error p { margin: 0; }
.dialog-error svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ==== Focus never hidden under the sticky phone bar ==== */
@media (max-width: 63.999rem) { html { scroll-padding-top: 72px; } }
.record-actions button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--teal-ink); cursor: pointer; }
.record-actions button:hover { background: var(--fill); }
.record-actions button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ==== Print: the whole case on paper, without navigation or controls ==== */
@media print {
  @page { margin: 1.6cm 1.4cm; }
  body, .suite-shell main, .record-shell { background: var(--surface) !important; color: var(--black); }
  #suite-sidebar, .mobile-bar, #nav-scrim, .skip, footer, .record-tabs, .record-actions, .record-crumb,
  .notice, dialog, .action-btn, .more-btn, .composer, .stage-footer, .task-actions, .section-actions,
  .action-grid, .workflow-go, .next-step, .row-actions, .icon-button, .file-view, .plan-actions, .also-parts { display: none !important; }
  .suite-shell main, .suite-shell footer { margin: 0 !important; padding: 0 !important; }
  .record-shell { display: block !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
  [data-record-panel] { display: block !important; }
  .more-row { display: table-row !important; }
  .record-workflow { border: 0 !important; padding: 12px 0 0 !important; break-before: page; }
  .milestone, .signoff-block, .record-facts, tr, .evidence-receipt { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; color: var(--black); }
  a { color: var(--black); text-decoration: none; }
  .case-address::after { content: ""; }
  .tag, .state-tag, .pill { border: 1px solid #555 !important; background: var(--surface) !important; color: var(--black) !important; }
  .record-table th, .record-facts dt { background: var(--fill) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ==== Overall progress in the workflow rail ==== */
.overall-progress { margin: 0 0 16px; padding: 12px 12px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.op-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin-bottom: 8px; }
.op-head strong { font-size: 14px; color: var(--heading); }
.op-head span { font-size: 13px; color: var(--muted); }
.op-head b { font-size: 16px; color: var(--ink); }
.op-track { display: flex; gap: 2px; height: 14px; }
.op-cell { flex: 1; border-radius: 3px; background: var(--fill-strong); }
.op-cell.stage-start { margin-left: 6px; }
.op-cell.is-pending { background: var(--amber-fill); }
.op-cell.is-done { background: var(--green); }
.op-stages { display: flex; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; }
.op-stages span { flex: 1; }
.op-stages .is-current { color: #174a7c; }
.op-stages .is-done { color: var(--green); }
.op-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-soft); }
.op-legend li { display: inline-flex; align-items: center; gap: 5px; }
.op-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--fill-strong); }
.op-legend i.is-done { background: var(--green); }
.op-legend i.is-pending { background: var(--amber-fill); }

/* ==== Calmer requirement list ==== */
.milestone.state-verified, .milestone.state-not-required { padding: 7px 4px; }
.milestone.state-verified .task-label small, .milestone.state-not-required .task-label small { display: none; }
.milestone.state-verified .task-done, .milestone.state-not-required .task-done { margin: 2px 0 0 30px; }
.milestone.state-verified .state-tag { background: none; padding: 0; }
.milestone.is-next { margin: 0 -10px; padding: 12px 14px; background: var(--teal-tint); }
.milestone .task-block { margin: 4px 0 0 30px; font-size: 13px; }
.milestone:not(.is-next) .task-actions { margin-top: 8px; }

/* ==== Browser surfaces in the Pineview palette ==== */
::selection { background: #bfe0d8; color: var(--heading); }
:root { accent-color: var(--teal); scrollbar-color: #9aa9b2 transparent; }
td, .tag, .state-tag, .op-head, .signoff-progress, .record-facts dd, time, .count { font-variant-numeric: tabular-nums; }
.meta-line { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
/* Stage label widths follow each stage's requirement count (class built in stages.html). */
.op-stages .op-span-1 { flex-grow: 1; } .op-stages .op-span-2 { flex-grow: 2; } .op-stages .op-span-3 { flex-grow: 3; } .op-stages .op-span-4 { flex-grow: 4; }
.op-stages .op-span-5 { flex-grow: 5; } .op-stages .op-span-6 { flex-grow: 6; } .op-stages .op-span-7 { flex-grow: 7; }

/* ==== Recent cases in the sidebar: always present once a case is opened ==== */
.suite-links a.recent-case span { display: block; min-width: 0; line-height: 1.25; }
.suite-links a.recent-case span small { display: block; margin-top: 1px; font-size: 13px; font-weight: 500; color: var(--rail-muted); }
.suite-links a.recent-case[aria-current] span small { color: var(--rail-text); }
.suite-links a.recent-case span { overflow: hidden; text-overflow: ellipsis; }

/* ==== Disabled controls look and behave unavailable ==== */
button:disabled, .button[aria-disabled="true"], .action-btn:disabled { opacity: 0.55; cursor: not-allowed; }
input:disabled, select:disabled, textarea:disabled { background: var(--fill); color: var(--muted); cursor: not-allowed; }

/* ==== Batch 4 ==== */
/* Absolutely positioned children (screen-reader labels) stay inside the scroll box instead of widening the page. */
.scroll { position: relative; }
/* Register: seven stage tabs, including Closed. */
.stage-strip { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stage-strip a { border-bottom: 1px solid var(--line); margin-bottom: -1px; }
/* Plain sign-in page. */
.signin { max-width: 520px; margin: clamp(24px, 8vh, 90px) auto; }
.signin-head { background: none; border: 0; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 4px; }
.signin-head img { flex: none; padding: 5px; border-radius: 8px; background: var(--navy); }
.signin-head h1 { margin: 0 0 4px; font-size: 26px; line-height: 1.2; color: var(--heading); }
.signin-head p { margin: 0; color: var(--muted); }
.signin .panel { margin-top: 18px; }
.signin .meta-line { margin-top: 14px; }
.form-error { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; padding: 10px 12px; border: 1px solid var(--red-line); border-radius: 6px; background: var(--red-bg); color: var(--red-ink); font-size: 14px; }
.form-error p { margin: 0; }
.form-error svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ==== Batch 5 ==== */
/* My tasks count in the sidebar. */
.suite-links a .nav-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 10px; background: var(--amber-fill); color: var(--black); font-size: 13px; font-weight: 700; line-height: 18px; text-align: center; }
/* Items waiting five days or more stand out in My tasks. */
td.is-overdue { color: var(--red-ink); font-weight: 700; }
/* The finished case gets its own banner instead of none. */
.next-step.is-complete { border-color: var(--green-line); background: var(--green-bg); }
.next-step.is-complete h2 { display: flex; align-items: center; gap: 6px; color: var(--green-ink); }
.next-step.is-complete h2 svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ==== Identity: public-works lettering and a plan-sheet title block ==== */
/* Barlow is modeled on California highway signage; the semi-condensed cut sets headings and the title block. */
@font-face { font-family: "Barlow"; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url(fonts/barlow-semi-condensed-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url(fonts/barlow-semi-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
:root {
  --ui: "Barlow", "Segoe UI", system-ui, sans-serif;
  --display: "Barlow Semi Condensed", "Barlow", "Segoe UI", system-ui, sans-serif;
  /* Utility locate-marking blue (the paint color for water lines): the one accent, for "you are here". */
  --locate: #0b63b6;
  --current: var(--locate);
  --paper: #f5f7f6;
  --ground: var(--paper);
}
body { font-family: var(--ui); font-size: 16px; }
h1, h2, h3, .suite-brand span, .stage-strip strong, .title-block { font-family: var(--display); }
h1 { font-weight: 600; letter-spacing: 0; }
h2 { font-weight: 600; letter-spacing: 0; }
.page-head h1 { font-size: 36px; line-height: 1.1; }
.panel h2, .record-overview > h2, .record-section-header h2 { font-size: 21px; }
td { font-size: 15px; }
.projectname, .case-address { color: var(--locate); }

/* Title block: ruled cells, square corners, labels above values like a drawing's title block.
   Row 1: name | case | stage. Row 2: type | phase | parcel | now. A heavier rule frames the block
   and separates the fixed facts (left) from where the case stands (right). */
.record-title { align-items: stretch; padding: 12px 24px 4px; }
.title-block { flex: 1; min-width: 0; display: grid; border: 1.5px solid var(--navy); background: var(--surface);
  grid-template-columns: repeat(3, minmax(0, 0.8fr)) repeat(2, minmax(0, 1fr));
  grid-template-areas: "name name name case stage" "type phase parcel now now"; }
.title-block dl { display: contents; }
.title-block dl > div, .tb-name { min-width: 0; padding: 8px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tb-name { grid-area: name; border-right-color: var(--navy); }
.tb-case { grid-area: case; }
.tb-stage { grid-area: stage; border-right: 0; }
.tb-type { grid-area: type; border-bottom: 0; }
.tb-phase { grid-area: phase; border-bottom: 0; }
.title-block .tb-parcel { grid-area: parcel; border-bottom: 0; border-right-color: var(--navy); }
.title-block .tb-now { grid-area: now; border: 0; }
.title-block dt { margin: 0 0 1px; font-family: var(--ui); font-size: 13px; color: var(--muted); }
.title-block dd { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.title-block dd small { display: block; font-family: var(--ui); font-size: 13px; font-weight: 400; color: var(--muted); }
.title-block .tb-name h1 { margin: 0; font-size: 30px; line-height: 1.1; color: var(--heading); }
.title-block .case-address { display: inline-block; margin-top: 3px; font-family: var(--ui); font-size: 16px; }
.title-block .tb-case dd, .title-block .tb-stage dd { font-size: 21px; }
.title-block .tb-now dd { color: var(--heading); }
@media (max-width: 760px) {
  .record-title { flex-direction: column-reverse; }
  .title-block { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "name name" "case stage" "type phase" "parcel parcel" "now now"; }
  .title-block dl > div, .title-block .tb-name, .title-block .tb-parcel { border-right: 0; border-bottom: 1px solid var(--line); }
  .title-block .tb-case, .title-block .tb-type { border-right: 1px solid var(--line); }
  .title-block .tb-now { border-bottom: 0; }
  .title-block .tb-name h1 { font-size: 26px; }
}
/* Corners carry meaning: drawings and data are square, things you press keep a small radius. */
.title-block, table, .record-table, .scroll { border-radius: 0; }

/* ==== My tasks: one list ==== */
.task-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.task-item { overflow-wrap: normal; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr) minmax(96px, 0.7fr) 150px 112px; gap: 16px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.task-item small { display: block; color: var(--muted); font-size: 13px; }
.ti-main strong { display: block; font-size: 16px; color: var(--ink); }
.ti-kind { display: inline-block; margin-bottom: 3px; padding: 1px 7px; border-radius: 4px; background: var(--fill); color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.ti-who small, .ti-when small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ti-when { font-weight: 600; white-space: nowrap; }
.task-item.is-late .ti-when { color: var(--red-ink); }
.ti-go { justify-self: end; white-space: nowrap; }
@media (max-width: 900px) {
  .task-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; }
  .ti-main, .ti-case { grid-column: 1 / -1; }
  .ti-who small, .ti-when small { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .ti-go { grid-column: 1 / -1; justify-self: start; }
}

/* ==== People ==== */
.notice-inline { margin: 0 0 4px; padding: 10px 12px; border: 1px solid var(--amber-line); border-radius: 6px; background: var(--amber-bg); color: var(--amber-ink); font-size: 14px; }
.people-list .task-item { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 150px minmax(0, 1.4fr); }
.people-actions form { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin: 0; }
.people-actions button { margin: 0; }
button.danger-text { color: var(--red); }
.choice { margin: 12px 0; padding: 0; border: 0; }
.choice legend { padding: 0; font-size: 14px; font-weight: 650; }
.choice label { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-weight: 400; }
.choice input { width: auto; margin: 0; }
.ti-main .you { display: inline; font-weight: 400; }
label > small { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); }
@media (max-width: 900px) { .people-list .task-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .people-actions form { justify-content: flex-start; } }
.dialog-body .choice label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.dialog-body .choice input { width: auto; flex: none; margin: 0; }

/* ==== Sign-in pages: the Parcels and Water Orders split card, in the desk's deep teal ==== */
.auth-page { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: #eaf1f0; font-family: var(--ui); color: var(--ink); }
.auth-panel { width: min(1060px, 100%); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); overflow: hidden; border-radius: 22px; background: var(--surface); box-shadow: 0 24px 64px rgba(12, 42, 67, .08); }
.auth-identity { display: flex; flex-direction: column; min-height: 600px; background: #0c3b39; color: #fff; }
.auth-brand { display: flex; align-items: center; gap: 10px; padding: 40px 40px 0; font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.05; }
.auth-brand img { padding: 4px; border-radius: 7px; background: #fff; }
.auth-brand span { display: block; font-family: var(--ui); font-size: 13px; font-weight: 600; color: #bfe0da; }
.auth-name { margin: 44px 40px 32px; font-family: var(--display); font-size: 52px; font-weight: 600; line-height: 1.02; letter-spacing: -.5px; }
.auth-valley { position: relative; flex: 1; min-height: 300px; }
.auth-valley-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 48px; }
.auth-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--teal); }
.auth-form h1 { margin: 0 0 22px; font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--heading); }
.auth-fields label { display: block; margin: 0 0 16px; font-size: 14px; font-weight: 600; color: var(--ink); }
.auth-fields label small { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); }
.auth-fields input, .auth-fields select { height: 50px; margin-top: 6px; padding: 0 14px; border: 1px solid var(--line-control); border-radius: 6px; background: #f8fafb; font-size: 16px; }
.auth-fields input:focus, .auth-fields select:focus { background: var(--surface); }
.auth-primary { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin: 6px 0 0; border: 0; border-radius: 6px; background: var(--teal); color: #fff; font: 600 16px/1 var(--ui); text-decoration: none; cursor: pointer; }
.auth-primary:hover { background: var(--teal-dark); color: #fff; }
.auth-link { align-self: center; margin-top: 16px; font-size: 14px; color: var(--teal-dark); }
.auth-after { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.auth-secondary { display: flex; align-items: center; justify-content: center; height: 46px; border: 1px solid var(--line-control); border-radius: 6px; color: var(--ink); font-weight: 600; text-decoration: none; }
.auth-secondary:hover { background: var(--subtle); color: var(--ink); }
.auth-note { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center; }
.auth-note a { color: var(--teal-dark); font-weight: 600; white-space: nowrap; }
.auth-text { margin: 0 0 14px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.auth-message { margin: 0 0 16px; padding: 11px 14px; border-radius: 6px; font-size: 14px; line-height: 1.45; }
.auth-message.is-error { border: 1px solid var(--red-line); background: var(--red-bg); color: var(--red-ink); }
.auth-message.is-success { border: 1px solid var(--green-line); background: var(--green-bg); color: var(--green-ink); }
@media (max-width: 820px) {
  .auth-page { padding: 0; place-items: stretch; }
  .auth-panel { grid-template-columns: minmax(0, 1fr); border-radius: 0; box-shadow: none; }
  .auth-identity { min-height: 0; }
  .auth-name { margin: 18px 24px 18px; font-size: 34px; }
  .auth-brand { padding: 24px 24px 0; }
  .auth-valley { min-height: 120px; }
  .auth-form { padding: 28px 24px 36px; }
}
/* The page-wide main rules (max width, padding, min height) do not apply to the sign-in card. */
main.auth-panel { max-width: none; margin: 0; padding: 0; min-height: 0; }
