/* Workspace styling follows the user's local dashboard reference. Instrument Sans
   is bundled unmodified under the SIL OFL in fonts/instrument-sans/. */
@font-face{font-family:'Instrument Sans';src:url('fonts/instrument-sans/InstrumentSans-Variable.ttf') format('truetype');font-style:normal;font-weight:400 700;font-display:swap}
.region-groups{margin:20px 0;border-block:1px solid var(--line);padding:15px 0}.region-groups summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--text-strong)}.region-groups>p{font-size:11px;line-height:1.7;margin:12px 0}.region-groups fieldset{min-width:0;border:1px solid var(--line);border-radius:5px;padding:12px}.region-groups legend{font-size:11px;padding:0 4px}.region-groups legend span{color:var(--text-muted);font-weight:400}.region-groups .region-choice{align-items:flex-start;margin:9px 0;font-size:11px}.region-choice span{overflow-wrap:anywhere}.region-groups .check{line-height:1.6;align-items:flex-start}.region-groups [data-regions=choices]{max-height:220px;overflow-y:auto}.region-groups [data-regions=empty],.region-groups [data-regions=status]{font-size:11px;line-height:1.7}.region-groups [data-regions=records] article{border-top:1px solid var(--line);margin-top:18px;padding-top:16px;font-size:11px}.region-groups h3{font-size:14px;overflow-wrap:anywhere}.region-groups .region-total{font-size:21px;font-weight:600;color:var(--text-strong);margin:8px 0}.region-groups .region-stale{border-left:3px solid #ae741d;background:#fff6e6;padding:9px 11px;color:#704900;line-height:1.65}.region-groups article button{margin:4px 4px 0 0}
/* Survey Nest, by Surveys Ltd (PRODUCT-DEFINITION P7, P8, P9): deep teal for the brand, duck egg for the thing kept
   safe, Source Serif 4 headings and IBM Plex Sans text (fonts in tokens.css). White on the teal is 11.9:1.
   These portal-only tokens retain the selected dashboard layout. */
:root,:root[data-theme="light"]{
  --font-body:'IBM Plex Sans',sans-serif;--font-display:'Source Serif 4',Georgia,serif;
  --bg:#f6f8f7;--surface-card:#ffffff;--surface-inset:#edf2f0;
  --surface-sidebar:#f0f4f2;--surface-hover:#e5eeeb;--pane-bg:#e8eeec;
  --line:#d6dedb;--line-card:#d6dedb;--line-bright:#7b8c88;
  --text-strong:#121a19;--text-body:#3e4a47;--text-muted:#56625f;
  --accent:#1e3b38;--accent-hover:#142926;--on-accent:#ffffff;
  --accent-strong:#1e3b38;--selection-bg:#dcebe7;--selection-fg:#142926;
  --focus:#3c7a70;--tone-progress:#b8571f;
  --radius-card:8px;--scroll-thumb:#9b8b7d;--scroll-track:transparent;
  --caption-bg:#fffffff2;--caption-fg:var(--text-body);
}
::selection{background:var(--selection-bg);color:var(--text-strong)}
*{box-sizing:border-box}html{scroll-padding-top:100px}body{margin:0;background:var(--bg);color:var(--text-strong);font:400 14px/1.6 var(--font-body);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--font-display);font-weight:600;letter-spacing:-.01em;line-height:1.15}h1{font-size:36px}h2{font-size:23px}h3{font-size:18px}p{color:var(--text-body)}a{color:inherit;text-underline-offset:4px}small{color:var(--text-muted)}[hidden]{display:none!important}
header{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:80px;padding:16px 30px;border-bottom:1px solid var(--line);background:var(--surface-card)}.workspace-topbar{position:sticky;top:0;z-index:20}.brand{display:inline-flex;align-items:center;gap:10px;font-family:var(--font-display);font-weight:600;font-size:24px;letter-spacing:-.01em;color:var(--text-strong);text-decoration:none;flex-shrink:0}.brand>.brand-by{font-family:var(--font-body);font-size:12px;font-weight:400;letter-spacing:0;color:var(--text-muted);align-self:flex-end;margin:0 0 4px 2px}.brand-mark .mark-n,.brand-mark .needle{fill:currentColor}.brand-mark .needle-egg{fill:#3c7a70}.brand-mark{display:flex;color:var(--accent);width:28px;height:28px}.brand-mark svg{width:100%;height:100%}.brand>span:not(.brand-mark):not(.brand-name):not(.brand-by){font-size:13px;font-weight:400;letter-spacing:0;color:var(--text-muted);margin-left:20px}.topbar-context{border-left:1px solid var(--line);padding-left:25px;margin-left:30px;margin-right:auto}.topbar-context span{display:block;font-size:9px;letter-spacing:.09em;color:var(--text-muted)}.topbar-context strong{display:block;margin-top:3px;font-size:13px;font-weight:500}.workspace-topbar #signout{padding:7px 13px;font-size:12px}
main{max-width:1760px;margin:auto;padding:28px 32px 60px}.portal-page:has(#workspace:not([hidden])) main{margin-left:235px;max-width:none;padding:28px clamp(24px,2.5vw,44px) 60px}.workspace-content{max-width:1640px;margin:0 auto;min-width:0}.breadcrumb{font-size:11px;color:var(--text-muted);display:flex;gap:15px;align-items:center;margin-bottom:28px}.breadcrumb span{color:var(--text-muted)}.heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:20px 0}.heading>div:first-child{min-width:0}.workspace-heading{margin:0 0 28px;align-items:flex-start}.workspace-heading h1{margin:12px 0 10px}.workspace-heading p:not(.eyebrow){font-size:13px}.workspace-heading>button{flex-shrink:0;margin-top:28px}.eyebrow{font:500 10px var(--font-body);color:var(--text-muted);letter-spacing:.12em;text-transform:uppercase;display:flex;align-items:center;gap:9px}.eyebrow:before{content:'';width:6px;height:6px;background:var(--accent);border-radius:50%;flex-shrink:0}
.workspace-sidebar{position:fixed;left:0;top:80px;bottom:0;width:235px;background:var(--surface-sidebar);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:27px 18px 24px;gap:28px;z-index:10}.sidebar-label{font-size:9px;font-weight:500;letter-spacing:.11em;margin:0 14px 14px;color:var(--text-muted)}.workspace-home,.operator-link{display:flex;align-items:center;gap:11px;padding:11px 13px;border-radius:6px;font-size:12px;text-decoration:none}.workspace-home{background:var(--selection-bg);color:var(--selection-fg);font-weight:550}.workspace-home span,.operator-link span{font-size:18px;line-height:1}.operator-link{padding:10px 0;font-size:11px}.operator-link:hover{color:var(--accent-strong)}.sidebar-projects{flex:1;min-height:0;display:flex;flex-direction:column}#projects{display:flex;flex-direction:column;gap:6px;overflow-y:auto;margin:0 -4px 0 0;padding-right:4px;scrollbar-width:thin}#projects button{display:block;flex-shrink:0;width:100%;min-width:0;max-width:none;text-align:left;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.5;padding:12px 13px;background:transparent;border:1px solid transparent;border-radius:6px;font-weight:450}#projects button:hover{background:var(--surface-hover)}#projects button[aria-current=true]{border-color:var(--accent);background:var(--selection-bg);color:var(--selection-fg)}#projects small{display:block;font-size:10px;margin-top:5px;font-weight:400;color:var(--text-muted)}.sidebar-footer{padding:14px 13px 0;border-top:1px solid var(--line);flex-shrink:0}.sidebar-footer p{font-size:11px;line-height:1.7;margin-top:10px}.portal-page:has(#operator[hidden]) .operator-link{display:none}
button,.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line-bright);border-radius:5px;background:var(--surface-card);color:var(--text-strong);padding:9px 14px;font-size:12px;font-weight:500;line-height:1.45;cursor:pointer;text-decoration:none;transition:background .15s,border-color .15s}button:hover,.button:hover{background:var(--surface-hover);border-color:var(--accent)}button:disabled{opacity:.45;cursor:default}.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}label{display:grid;gap:7px;position:relative;font-size:11px;font-weight:500;color:var(--text-body)}input,textarea,select{width:100%;min-width:0;padding:10px 11px;border:1px solid var(--line-bright);border-radius:5px;background:#fff;color:var(--text-strong);font-size:13px;font-weight:400;line-height:1.45}textarea{resize:vertical}input[type=checkbox]{accent-color:var(--accent)}input[type=file]{padding:8px;font-size:12px}input[type=file]::file-selector-button{font:inherit;border:0;border-radius:3px;background:var(--surface-inset);color:var(--text-strong);padding:6px 9px;margin-right:9px}.optional{position:absolute;right:0;top:0;font-size:10px;color:var(--text-muted);font-weight:400}form{display:grid;gap:16px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.card{background:var(--surface-card);border:1px solid var(--line-card);border-radius:8px;padding:24px}.skip-link{position:absolute;left:20px;top:-80px;padding:10px 15px;color:white;background:var(--text-strong);z-index:100}.skip-link:focus{top:12px}.login{max-width:450px;margin:9vh auto;padding:36px}.login .eyebrow{margin-bottom:20px}.login h1{font-size:32px;max-width:320px}.login>p:not(.eyebrow){font-size:13px;margin:14px 0 26px}.login form{gap:20px}.login .primary{margin-top:4px;padding:12px}#notice:empty{display:none}#notice{background:var(--surface-inset);border-radius:6px;padding:13px 17px;border-left:3px solid var(--accent);font-size:13px;margin:0 0 20px}
.operator{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0;margin:0 0 28px;overflow:hidden}.operator details{min-width:0}.operator details+details{border-left:1px solid var(--line)}.operator summary{display:flex;align-items:center;gap:9px;list-style:none;padding:15px 19px;font-size:12px;font-weight:550;cursor:pointer}.operator summary::-webkit-details-marker{display:none}.operator summary:after{content:'+';margin-left:auto;color:var(--text-muted);font-size:16px;font-weight:400}.operator summary:hover{background:var(--surface-sidebar)}.operator details[open]{grid-column:1/-1;border-left:0}.operator details[open] summary{background:var(--surface-sidebar);border-bottom:1px solid var(--line)}.operator details[open] summary:after{content:'−'}.operator:has(details[open]) details+details{border-top:1px solid var(--line)}.operator:has(details[open]) details{grid-column:1/-1;border-left:0}.setup-icon{color:var(--accent);font-size:18px;line-height:1}.operator-content{padding:24px;max-width:1040px}.operator-content>p{font-size:13px;max-width:760px;line-height:1.75}.operator-content h2{font-size:23px;margin-bottom:10px}.operator form{grid-template-columns:1fr 1fr;margin-top:23px;gap:18px 24px;max-width:880px}.operator form .actions,.operator progress,#import-status,#project-status{grid-column:1/-1}.operator progress{width:100%;height:8px;accent-color:var(--accent)}#project-status:empty,#import-status:empty{display:none}#project-status,#import-status{font-size:12px}.review{margin-bottom:22px;grid-template-columns:1fr 1fr;gap:12px 24px;padding:20px 24px}.review h3,.review>p{grid-column:1/-1}.review>p{font-size:12px;margin-bottom:2px}.review>label:not(.check){grid-column:1/-1}.review>button{justify-self:start;align-self:end}.check{display:flex;align-items:center;gap:9px;font-size:12px}.check input{width:15px;height:15px;flex-shrink:0}#jobs article{padding:16px 0;border-bottom:1px solid var(--line);font-size:12px}#jobs article:first-child{padding-top:0}#jobs p{margin:5px 0}#jobs progress{width:min(100%,400px);accent-color:var(--accent)}#jobs-reload{margin-top:16px}
#publication>.heading{align-items:flex-start;margin:26px 0 20px}#publication>.heading h2{font-size:25px;overflow-wrap:anywhere}#publication>.heading p{font-size:11px;line-height:1.7;margin-top:8px;max-width:690px}#publication>.heading>.actions{justify-content:flex-end;flex-shrink:0;max-width:360px}.model-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}.model-wrap{height:640px;min-height:380px;position:relative;background:var(--pane-bg);border:1px solid var(--line);border-radius:8px;overflow:hidden}#model{position:absolute;inset:0}#model-status{position:absolute;left:16px;top:16px;background:var(--caption-bg);border:1px solid var(--line);padding:7px 11px;border-radius:5px;pointer-events:none;font-size:11px}.model-help{position:absolute;bottom:14px;left:16px;right:16px;width:fit-content;max-width:calc(100% - 32px);font-size:10px;line-height:1.6;background:var(--caption-bg);border:1px solid var(--line);border-radius:4px;padding:5px 9px;pointer-events:none}.model-layout>aside{max-height:640px;overflow-y:auto;padding:22px;scrollbar-width:thin}.model-layout aside h2{font-size:19px;margin-bottom:10px}.model-layout aside>p,#surface-analysis>p{font-size:11px;line-height:1.7;margin-bottom:18px}.model-layout aside form{gap:14px}.model-layout aside button,.model-layout aside .button{font-size:11px;padding:8px 10px}.model-layout aside textarea,.model-layout aside select,.model-layout aside input{font-size:12px}.model-layout aside .actions{gap:6px}.model-layout aside [data-analysis=save]{width:100%;margin-top:2px}#surface-analysis{border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:24px}#surface-analysis [data-analysis=exports]{margin:0 0 20px;padding-bottom:18px;border-bottom:1px solid var(--line)}#surface-analysis [data-analysis=status],#anchor-status{font-size:11px;padding:10px 12px;background:var(--surface-inset);border-radius:5px;line-height:1.65}#surface-analysis [data-analysis=volume-options]{display:grid;gap:14px}#surface-analysis article,#annotations article{padding:17px 0;border-top:1px solid var(--line);margin-top:17px;font-size:12px}#surface-analysis article p,#annotations article p{white-space:pre-wrap;overflow-wrap:anywhere}#surface-analysis article button{margin:5px 3px 0 0;padding:5px 7px;font-size:10px}#surface-analysis dl{display:grid;grid-template-columns:1fr auto;gap:5px;font-size:11px;padding:12px 0}#surface-analysis dt{text-transform:capitalize}#surface-analysis dd{margin:0;font-variant-numeric:tabular-nums}.analysis-basis{font-size:10px!important;line-height:1.7;overflow-wrap:anywhere}.analysis-history{background:var(--surface-sidebar);padding:12px;border-radius:5px;margin-top:12px}
.collaboration{margin-top:24px}.collaboration h2{font-size:21px;margin-bottom:10px}.collaboration>p{font-size:12px;line-height:1.7;max-width:760px;margin-bottom:20px}.collaboration form{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.collaboration label:first-child{min-width:220px;flex:1}.collaboration label:nth-child(2){min-width:130px}#share-result{overflow-wrap:anywhere;margin-top:18px;font-size:12px}#shares>div{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}
.report-page main{padding-top:32px}.report-page .report-tools{justify-content:space-between;margin-bottom:30px;font-size:12px}.report-page #status{font-size:13px}.report-page #report{background:var(--surface-card);border:1px solid var(--line);border-radius:8px;padding:36px;margin-top:24px}.report-page #report>.eyebrow{margin-bottom:20px}.report-page #title{font-size:34px}.report-page #version{font-size:12px;margin-top:12px}.report-page .report-note{font-size:12px;line-height:1.7;margin:24px 0}.report-page .report-record p{font-size:13px;margin:12px 0}.report-page .report-record dl{font-size:12px}.report-page .report-provenance{margin-top:20px;color:var(--text-muted)}.report-page .report-provenance summary{cursor:pointer}.report-page .report-provenance p{margin-top:14px}
@media(min-width:1700px){.model-layout{grid-template-columns:minmax(0,1fr) 340px}.model-wrap{height:700px}.model-layout>aside{max-height:700px}}
@media(max-width:1180px){.portal-page:has(#workspace:not([hidden])) main{margin-left:215px;padding-inline:24px}.workspace-sidebar{width:215px;padding-inline:14px}.model-layout{grid-template-columns:minmax(0,1fr) 285px;gap:16px}.model-layout>aside{padding:18px}.topbar-context{margin-left:14px}.heading{gap:16px}#publication>.heading{display:block}#publication>.heading>.actions{justify-content:flex-start;max-width:none;margin-top:14px}.operator summary{padding:14px 13px}.workspace-heading h1{font-size:32px}}
@media(max-width:1000px){.model-layout{grid-template-columns:1fr}.model-wrap{height:540px}.model-layout>aside{max-height:none}.model-layout>aside #surface-analysis{display:block}.model-layout aside [data-analysis=save]{width:auto}.model-layout aside .actions{gap:8px}.model-layout aside h2{font-size:22px}.model-layout aside>p,#surface-analysis>p{font-size:13px}.model-layout aside input,.model-layout aside select,.model-layout aside textarea{font-size:14px}.model-layout aside button,.model-layout aside .button{font-size:12px}.workspace-heading{flex-direction:column;gap:16px}.workspace-heading>button{margin-top:0}.review{grid-template-columns:1fr}.review>*{grid-column:1!important}}
@media(max-width:760px){html{scroll-padding-top:85px}header{min-height:70px;padding:15px 20px;gap:14px}.brand{font-size:22px}.brand-mark{width:23px;height:23px}.topbar-context{display:none}.workspace-topbar #signout{margin-left:auto}.portal-page:has(#workspace:not([hidden])) main{margin-left:0;padding:0 20px 40px}.workspace-sidebar{position:static;width:auto;margin:0 -20px 24px;border-right:0;border-bottom:1px solid var(--line);padding:18px 20px;gap:16px;display:grid;grid-template-columns:1fr auto}.sidebar-intro .sidebar-label{display:none}.workspace-home{font-size:12px;width:fit-content;padding:8px 11px}.sidebar-projects{grid-column:1/-1;grid-row:2;min-width:0}.sidebar-projects>.sidebar-label{font-size:9px;margin:0 0 9px}#projects{flex-direction:row;overflow-y:hidden;overflow-x:auto;margin:0;padding:0 0 3px;gap:8px}#projects button{width:220px;padding:10px 12px;border-color:var(--line);background:var(--surface-card);font-size:11px}#projects small{font-size:9px}.sidebar-footer{padding:0;border:0;grid-column:2;grid-row:1;align-self:center}.sidebar-footer p{display:none}.operator-link{font-size:10px;gap:5px}.operator-link span{font-size:16px}.breadcrumb{margin-bottom:22px;font-size:10px}.workspace-heading{gap:18px;margin-bottom:24px}.workspace-heading h1{font-size:32px}.workspace-heading>button{font-size:11px}.operator{grid-template-columns:1fr;margin-bottom:24px}.operator details+details{border-left:0;border-top:1px solid var(--line)}.operator summary{padding:14px 16px}.operator-content{padding:20px}.operator form{grid-template-columns:1fr;gap:16px}.operator form .actions{margin-top:3px}.operator-content>p{font-size:12px}.model-wrap{height:440px;min-height:340px}.model-help{font-size:9px;left:10px;bottom:10px;right:10px;max-width:calc(100% - 20px)}#publication>.heading h2{font-size:24px}#publication>.heading p{font-size:11px}.card{padding:20px}.operator{padding:0}.review{padding:18px}.collaboration form{display:grid;grid-template-columns:1fr;width:100%}.collaboration label:first-child{min-width:0}.collaboration button{justify-self:start}#shares>div{align-items:flex-start;flex-direction:column}main{padding:24px 20px 40px}.login{margin:6vh auto;padding:28px}.login h1{font-size:30px}.report-page .brand>span{font-size:11px;margin-left:8px}.report-page #report{padding:24px}.report-page #title{font-size:29px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{.report-page main{max-width:none;padding:0}.report-page #report{padding:0;border:0;margin:0}.report-page .eyebrow:before{display:none}}

#surface-analysis [data-analysis=mesh-area-options]{display:grid;gap:12px}.model-area-coordinates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.model-area-coordinates input{min-width:0;width:100%}[data-model-area=status]{font-size:11px;line-height:1.6;overflow-wrap:anywhere}
/* Lane A A16: the client view (no Surveys Ltd staff role) shows the survey, notes and sharing, not the staff workbench. */
.client-view [data-inspection-tool]:not([data-inspection-tool="select"]),.client-view #surface-analysis,.client-view #publication-review,
.client-view #open-vision,.client-view #raster-tools{display:none !important}
.shares-stopped{margin:.5em 0 0;color:var(--muted,#6b6b6b);font-size:.9em}

/* A16: a client opening their survey, and the demo screen (?present), show the whole model on a laptop screen: the breadcrumb and the workspace heading (the sidebar already names both) step aside while a survey is open; with nothing open, the heading stays so the page is never blank. */
.present-view #workspace:has(#publication:not([hidden])) :is(.breadcrumb,#workspace-heading){display:none}
/* A client keeps a slim heading while a survey is open (its title and the Refresh button), and the model area fits the rest
   of the screen. */
.client-view:not(.present-view) #workspace:has(#publication:not([hidden])) :is(.breadcrumb,#workspace-heading .eyebrow,#workspace-heading h1 + p){display:none}
.client-view:not(.present-view) #workspace:has(#publication:not([hidden])) #workspace-heading{margin-bottom:10px;align-items:center}
.client-view:not(.present-view) #workspace:has(#publication:not([hidden])) #workspace-heading h1{font-size:24px;margin:0}
.client-view #inspection-workbench:not(.inspection-focused) .model-wrap{height:clamp(420px,calc(100vh - 355px),640px)}
.publish-checks{display:flex;flex-wrap:wrap;gap:6px 18px;list-style:none;margin:-8px 0 18px;padding:0;font-size:11px;color:var(--text-muted)}.publish-checks li::before{content:"\2713\00a0";color:var(--accent);font-weight:600}.publish-checks li.todo{color:var(--text-strong)}.publish-checks li.todo::before{content:"\25CB\00a0";color:var(--text-muted)}
