@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('/vendor/fonts/files/archivo-latin-wdth-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('/vendor/fonts/files/archivo-latin-ext-wdth-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f6f7f5; --stone: #eceeeb; --stone-2: #dde1dd; --line: #c5ccc7; --ink: #1d2b34; --muted: #56656d;
  --primary: #1d6a5f; --primary-d: #14504a; --primary-t: #dcebe7;
  --lead: #c8402a; --ochre: #d98a1e; --slate: #6f7f88;
  --radius: 4px; --gutter: clamp(16px, 4vw, 40px);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #161e24; --stone: #1d272e; --stone-2: #26323a; --line: #35444d; --ink: #e8ecea; --muted: #9aa9b0; --primary: #4bb3a1; --primary-d: #72cbbb; --primary-t: #1b3a37; --lead: #ee7a63; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--font); background: var(--paper); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
#app { display: flex; flex-direction: column; flex: 1; min-height: 100vh; }
main { flex: 1; outline: none; display: flex; flex-direction: column; }
h1, h2, h3 { font-stretch: 112%; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 3.2vw + .8rem, 2.8rem); }
h2 { font-size: 1.35rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--primary-d); text-underline-offset: 2px; }
a:hover { color: var(--primary); }
small, .small { font-size: .85rem; } .muted, .hint { color: var(--muted); } .hint { font-size: .85rem; margin: .3em 0 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
[hidden] { display: none !important; }
.loading { padding: var(--gutter); color: var(--muted); }

/* header */
.site-header { display: flex; align-items: center; gap: 20px; padding: 10px var(--gutter); background: var(--ink); color: #eef1ef; position: sticky; top: 0; z-index: 30; flex-wrap: wrap; }
.site-header a { color: inherit; text-decoration: none; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-name { font-stretch: 118%; font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-right { margin-left: auto; }
.navlink { padding: 6px 10px; border-radius: var(--radius); font-size: .95rem; }
.navlink:hover { background: rgba(255,255,255,.1); color: #fff; }
.navlink[aria-current="page"] { box-shadow: inset 0 -2px 0 #6fd0bd; }
.site-header .btn { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.site-header .btn.primary { background: #3aa592; border-color: #3aa592; color: #072b26; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 8px; z-index: 99; }
.site-footer { border-top: 1px solid var(--line); padding: 18px var(--gutter); background: var(--stone); font-size: .88rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.footer-inner p { margin: 0; } .footer-inner nav { display: flex; gap: 16px; }
body.is-workspace .site-footer { display: none; }

/* layout */
.page { width: 100%; max-width: 1040px; margin: 0 auto; padding: 28px var(--gutter) 56px; }
.page.wide { max-width: 1240px; } .page.narrow { max-width: 480px; } .page.narrow-ish { max-width: 760px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.lede { font-size: 1.15rem; color: var(--muted); }

/* buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: .95rem; padding: 8px 16px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; line-height: 1.25; }
.btn:hover { background: var(--stone-2); color: var(--ink); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; } .btn.primary:hover { background: var(--primary-d); border-color: var(--primary-d); color: #fff; }
.btn.danger { background: var(--lead); border-color: var(--lead); color: #fff; } .btn.danger:hover { filter: brightness(.92); }
.btn.quiet { border-color: transparent; } .btn.sm { padding: 3px 10px; font-size: .82rem; } .btn.lg { padding: 13px 24px; font-size: 1.05rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { font: inherit; color: inherit; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 7px 10px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--primary); }
textarea { resize: vertical; line-height: 1.4; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.field { flex: 1; min-width: 0; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0; min-width: 0; }
legend { font-weight: 700; padding: 0 6px; font-size: .95rem; }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; } .row > .field { min-width: 140px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .95rem; margin: 6px 0; } .check input { margin-top: 5px; }
.check small { color: var(--muted); }
.form-error { color: #8c2412; background: #fbe4df; border-left: 4px solid var(--lead); padding: 8px 12px; margin: 0; max-width: none; }
@media (prefers-color-scheme: dark) { .form-error { color: #ffd2c8; background: #3b1e18; } }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.card { background: var(--stone); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.notice { background: var(--primary-t); border-left: 4px solid var(--primary); padding: 10px 14px; max-width: none; }
.empty { padding: 36px 20px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius); } .empty p { margin-inline: auto; }
.danger-zone { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; }
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.choice { display: flex; gap: 10px; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px; cursor: pointer; align-items: flex-start; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-t); }
.choice span { display: flex; flex-direction: column; } .choice small { color: var(--muted); }
dl { margin: 0; } dt { font-weight: 700; font-size: .85rem; color: var(--muted); margin-top: 12px; } dd { margin: 2px 0 0; }

/* pills, balloons */
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--stone-2); color: var(--ink); margin-left: 6px; white-space: nowrap; }
.pill.s-published { background: var(--primary-t); color: var(--primary-d); } .pill.s-awarded { background: var(--primary); color: #fff; } .pill.s-draft, .pill.s-closed { background: var(--stone-2); color: var(--muted); }
.balloon { --c: var(--ink); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: var(--c); color: #fff; font: 700 12px/1 var(--font); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.45); padding: 0; will-change: transform; }
.balloon.static { position: static; width: 24px; height: 24px; box-shadow: none; cursor: pointer; display: inline-grid; }
.balloon.is-selected { outline: 3px solid var(--ink); outline-offset: 1px; z-index: 5; width: 30px; height: 30px; font-size: 14px; }
.balloon.is-suggested { border-style: dashed; }
.balloon.is-behind { opacity: .35; }

/* tables */
.table-wrap, .table-scroll { overflow-x: auto; }
table.plain { width: 100%; border-collapse: collapse; } table.plain th, table.plain td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain thead th { font-size: .8rem; color: var(--muted); font-weight: 700; } table.plain th[scope=row] small { display: block; color: var(--muted); font-weight: 400; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
td.num, input.num { text-align: right; }

/* welcome */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: 28px 0 40px; }
.hero h1 { font-stretch: 120%; max-width: 16em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-fig { margin: 0; background: var(--stone); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.gable { width: 100%; height: auto; display: block; max-height: 340px; }
.g-balloon { cursor: pointer; outline: none; } .g-balloon circle { stroke: #fff; stroke-width: 2.5; transition: r .12s; } .g-balloon.is-on circle, .g-balloon:focus-visible circle { r: 16; stroke: var(--ink); }
.hero-fig figcaption { font-size: .8rem; color: var(--muted); margin: 8px 0 10px; }
.ex-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ex-row { display: flex; gap: 10px; padding: 8px; border-radius: var(--radius); align-items: flex-start; font-size: .88rem; border: 1px solid transparent; }
.ex-row.is-on { background: var(--paper); border-color: var(--line); }
.ex-text { display: flex; flex-direction: column; } .ex-text span { color: var(--muted); }
.band { border-top: 1px solid var(--line); padding: 36px 0; } .band.quiet { text-align: center; } .band.quiet p { margin-inline: auto; color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 48px; }
.fee .big { font-stretch: 112%; font-weight: 700; font-size: 1.5rem; line-height: 1.2; margin-bottom: .4em; }
.steps { padding: 36px 0; border-top: 1px solid var(--line); }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; counter-reset: s; }
.step-list li { counter-increment: s; border-top: 3px solid var(--primary); padding-top: 12px; }
.step-list h3::before { content: counter(s) '. '; color: var(--primary); }
.step-list p { font-size: .95rem; color: var(--muted); }

/* market */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; } .filters input[type=search] { width: 240px; } .filters select { width: auto; } .filters .muted { margin: 0 0 0 auto; }
.filter { position: relative; } .filter summary { cursor: pointer; padding: 7px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); list-style: none; } .filter summary::after { content: ' ▾'; }
.filter[open] .spec-grid { position: absolute; z-index: 20; top: 100%; left: 0; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 16px; width: min(760px, 90vw); max-height: 60vh; overflow: auto; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; } .spec-grid fieldset { border: 0; padding: 0; } .spec-grid legend { padding: 0; margin-bottom: 4px; }
.market { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.map { background: var(--stone-2); border: 1px solid var(--line); border-radius: var(--radius); z-index: 1; } .map-tall { height: min(68vh, 640px); } .map-short { height: 280px; margin: 12px 0 4px; }
.map-pin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--primary); color: #fff; font: 700 12px var(--font); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.map-pin:empty::after { content: ''; width: 8px; height: 8px; background: #fff; border-radius: 50%; }
.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: min(68vh, 640px); overflow: auto; }
.job a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--stone); text-decoration: none; color: var(--ink); } .job a:hover { border-color: var(--primary); }
.meta { font-size: .85rem; color: var(--muted); }

/* workspace */
body.is-workspace main { height: calc(100vh - 56px); overflow: hidden; } body.is-workspace .page { display: flex; flex-direction: column; max-width: none; padding: 0; flex: 1 1 0; min-height: 0; }
.ws-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px var(--gutter); background: var(--stone); border-bottom: 1px solid var(--line); }
.ws-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .ws-title h1 { font-size: 1.25rem; margin: 0; } .crumb { font-size: .85rem; } .ws-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.workspace { display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: var(--split, 46%) 8px minmax(0, 1fr); flex: 1; min-height: 0; }
.pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.splitter { background: var(--line); cursor: col-resize; position: relative; touch-action: none; } .splitter::after { content: ''; position: absolute; inset: 50% 2px auto; height: 40px; margin-top: -20px; background: var(--muted); border-radius: 2px; } .splitter:hover, .splitter:focus-visible { background: var(--primary); }
.ws-tabs { display: none; }
.toolbar { display: flex; gap: 8px 14px; flex-wrap: wrap; padding: 8px 10px; background: var(--paper); border-bottom: 1px solid var(--line); align-items: center; }
.tool-group { display: flex; gap: 4px; }
.tool { font: inherit; font-size: .88rem; font-weight: 600; padding: 6px 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: var(--radius); cursor: pointer; } .tool.sm { padding: 5px 8px; font-weight: 500; }
.tool:hover { border-color: var(--ink); } .tool.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); } .tool:disabled { opacity: .45; cursor: not-allowed; }
.legend { display: flex; gap: 12px; font-size: .8rem; margin-left: auto; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.viewer { position: relative; flex: 1; min-height: 240px; background: #e3e8e5; overflow: hidden; }
.viewer-canvas { width: 100%; height: 100%; display: block; touch-action: none; outline-offset: -3px; }
.viewer-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; } .viewer-labels .balloon { pointer-events: auto; }
.viewer-hint { margin: 0; padding: 6px 12px; font-size: .85rem; background: var(--primary-t); max-width: none; } .viewer-hint:empty { display: none; }
.viewer-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--paper); padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 4; max-width: 80%; } .viewer-status.is-error { border-color: var(--lead); }
.model-pane { background: var(--paper); position: relative; }
.upload-card { margin: 32px auto; max-width: 540px; padding: 0 20px; display: grid; gap: 14px; }
.drop { border: 2px dashed var(--muted); border-radius: var(--radius); padding: 40px 20px; text-align: center; cursor: pointer; display: grid; gap: 6px; background: var(--stone); } .drop.is-over, .drop:hover { border-color: var(--primary); background: var(--primary-t); } .drop span { color: var(--muted); font-size: .9rem; }
progress { width: 100%; accent-color: var(--primary); } details ul { padding-left: 1.2em; font-size: .9rem; } summary { cursor: pointer; font-weight: 600; }
.schedule-pane { background: var(--paper); }
.subtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 10px; background: var(--stone); }
.subtabs button { font: inherit; font-weight: 600; background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; } .subtabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--primary); }
.panel { flex: 1; min-height: 0; overflow: auto; } .schedule-wrap { display: flex; flex-direction: column; min-height: 100%; } .panel > .qa, .panel > .about, .panel > .awarded { padding: 18px; max-width: 720px; }
.table-scroll { flex: 1; }
table.schedule { border-collapse: separate; border-spacing: 0; font-size: .88rem; min-width: 100%; }
.schedule th, .schedule td { padding: 6px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; text-align: left; background: var(--paper); }
.schedule thead th { position: sticky; top: 0; z-index: 3; background: var(--stone); font-size: .78rem; font-weight: 700; } .schedule thead tr.groups th { font-stretch: 112%; letter-spacing: .01em; top: 0; padding: 5px 8px; } .schedule thead tr:nth-child(2) th { top: 27px; }
.g-visible { background: var(--primary-t) !important; color: var(--primary-d); } .g-quotes { background: #efe3c9 !important; color: #5a4210; } @media (prefers-color-scheme: dark) { .g-quotes { background: #3b3320 !important; color: #e8d6a6; } }
.g-hidden { background: var(--stone-2) !important; color: var(--ink); background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0,0,0,.07) 6px 8px) !important; }
.is-hidden-col { background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(100,110,115,.1) 8px 10px); }
.c-seq { width: 54px; text-align: center !important; position: sticky; left: 0; z-index: 2; } thead .c-seq { z-index: 4; } .c-seq small { display: block; color: var(--muted); font-size: .7rem; font-weight: 400; }
.c-wide { min-width: 180px; } .c-mid { min-width: 110px; } .c-narrow { min-width: 80px; } .c-quote { min-width: 120px; } .c-act { width: 34px; }
.schedule textarea, .schedule input, .schedule select { padding: 4px 6px; font-size: .88rem; border-color: transparent; background: transparent; } .schedule textarea:hover, .schedule input:hover, .schedule select:hover { border-color: var(--line); } .schedule textarea:focus, .schedule input:focus, .schedule select:focus { border-color: var(--primary); background: var(--paper); }
.schedule textarea:disabled, .schedule input:disabled, .schedule select:disabled { color: var(--ink); opacity: .75; cursor: not-allowed; }
.schedule td.ro { white-space: pre-wrap; padding: 8px; }
.schedule tr.is-selected td, .schedule tr.is-selected th { background: #e5efe9; } @media (prefers-color-scheme: dark) { .schedule tr.is-selected td, .schedule tr.is-selected th { background: #1f3a37; } }
.schedule tr.is-awarded td { box-shadow: inset 0 0 0 999px rgba(29,106,95,.07); }
.schedule tr.saved td { transition: background .3s; background: #dcefd9; } .schedule tr.error td { background: #fbe4df; }
.q-cell { min-width: 120px; } .q-cell .amount { display: block; font-variant-numeric: tabular-nums; font-weight: 700; } .q-cell.is-lowest .amount { color: var(--primary-d); } .q-cell.is-lowest .amount::after { content: ' lowest'; font-size: .7rem; font-weight: 600; } .q-cell.q-rejected .amount { text-decoration: line-through; color: var(--muted); font-weight: 400; } .q-cell small { display: block; color: var(--muted); } .q-cell.empty { color: var(--muted); text-align: center; }
.q-cell .btn { margin-top: 4px; }
.schedule tfoot td, .schedule tfoot th { position: sticky; bottom: 0; background: var(--stone); font-variant-numeric: tabular-nums; z-index: 2; }
.icon-btn { background: none; border: 0; font-size: 1.2rem; color: var(--muted); cursor: pointer; padding: 2px 8px; } .icon-btn:hover:not(:disabled) { color: var(--lead); } .icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.left-tools { justify-content: flex-start; } .inline { display: inline-flex; gap: 8px; align-items: center; font-size: .88rem; } .inline select { width: auto; }
.quote-summary { padding: 10px 14px; border-top: 1px solid var(--line); background: var(--stone); } .quote-summary p { margin: 0 0 4px; max-width: none; }
.qa-item { padding: 12px 0; border-bottom: 1px solid var(--line); } .qa-item .q { font-weight: 600; margin: 0 0 2px; } .qa-item .a { border-left: 3px solid var(--primary); padding-left: 10px; margin: 8px 0 0; } .qa-form { display: grid; gap: 8px; margin-top: 12px; justify-items: start; }
.award-card { border: 1px solid var(--line); background: var(--stone); padding: 16px; border-radius: var(--radius); margin-bottom: 12px; }
.summary-line { font-size: 1.1rem; } .gloss section { margin-top: 24px; } .gloss dt { color: var(--ink); font-size: 1rem; margin-top: 10px; } .gloss dd { color: var(--muted); max-width: 65ch; }

/* modal and toast */
dialog.modal { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); max-width: 520px; width: calc(100% - 32px); padding: 22px; } dialog::backdrop { background: rgba(10,18,22,.55); }
.modal h2 { margin-bottom: .6em; } .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toasts { position: fixed; top: 68px; right: 16px; z-index: 100; display: grid; gap: 8px; width: min(380px, calc(100% - 32px)); pointer-events: none; } .toast { pointer-events: auto; }
.toast { background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,.3); } .toast-error { background: #8c2412; color: #fff; }

/* narrow screens */
@media (max-width: 900px) {
  .hero, .market { grid-template-columns: 1fr; }
  .ws-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--stone); } .ws-tab { flex: 1; font: inherit; font-weight: 700; padding: 11px; border: 0; background: none; border-bottom: 3px solid transparent; color: var(--muted); } .ws-tab[aria-selected=true] { color: var(--ink); border-bottom-color: var(--primary); }
  .workspace { display: block; } .workspace > .pane { height: 100%; } .splitter { display: none; }
  .workspace[data-tab=left] > .ws-right, .workspace[data-tab=right] > .ws-left { display: none; }
  body.is-workspace main { height: auto; min-height: calc(100vh - 100px); } body.is-workspace .page { flex: none; height: calc(100vh - 110px); }
  .site-header { gap: 8px 12px; } .nav-right { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.empty-row td { padding: 0; } .empty-row .empty { position: sticky; left: 0; width: min(100%, 560px); border: 0; }
@media (max-width: 900px) {
  .site-header { padding: 6px var(--gutter); gap: 4px 12px; } .brand-name { font-size: 1rem; } .navlink { padding: 4px 8px; font-size: .9rem; }
  .ws-head { padding: 6px var(--gutter); gap: 6px; } .ws-title h1 { font-size: 1.05rem; } .ws-head .btn { padding: 5px 10px; font-size: .85rem; }
  .toolbar { padding: 6px; gap: 6px; } .tool { padding: 5px 9px; font-size: .82rem; }
}

.map-pin b { transform: rotate(45deg); font-weight: 700; } .c-trade { min-width: 170px; }

/* photos, filters, team, done marks */
.modal-wide { max-width: 860px !important; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 12px 0; }
.photo { margin: 0; display: grid; gap: 6px; justify-items: start; } .photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--stone-2); display: block; }
.photo-btn { white-space: nowrap; border-color: var(--line); font-weight: 500; } .photo-btn.has { border-color: var(--primary); color: var(--primary-d); font-weight: 600; }
.filterbar { gap: 8px; } .filterbar input[type=search] { width: 180px; padding: 5px 8px; font-size: .88rem; } .filterbar select { width: auto; padding: 5px 8px; font-size: .88rem; } .filter-count { margin-left: auto; font-size: .85rem; }
.balloon.is-done { background: var(--paper); color: var(--c); border-color: var(--c); }
.balloon.is-done::after { content: ''; position: absolute; right: -4px; bottom: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; }
.balloon.static.is-done { position: relative; }
.team { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; } .team-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; } .team-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); } .team-list li > span:first-child { flex: 1; min-width: 180px; overflow-wrap: anywhere; }
.team-add { margin-top: 12px; } .team-add .field:first-child { flex: 2; }
.schedule .muted { display: block; font-size: .72rem; }

/* report */
.print-only { display: none; }
.report-viewer { height: 440px; border: 1px solid var(--line); border-radius: var(--radius); flex: none; }
.report-head h1 { margin-bottom: .2em; } .report-table { font-size: .9rem; } .report-table th[scope=row] { width: 44px; } .report-table tfoot th, .report-table tfoot td { font-weight: 700; border-top: 2px solid var(--ink); }
.photo-row td { padding-top: 0 !important; } .photo-row img { height: 110px; width: auto; margin: 0 8px 8px 0; border: 1px solid var(--line); border-radius: 2px; }
.report .page-head .actions { gap: 16px; } .report .check { margin: 0; align-items: center; } .report .check input { margin: 0; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .site-header, .site-footer, .no-print, .toasts { display: none !important; }
  .print-only { display: block; } .report-shot { width: 100%; height: auto; margin: 4mm 0; border: 1px solid #999; }
  .page { max-width: none; padding: 0; } .table-wrap { overflow: visible; }
  .report-table tr { break-inside: avoid; } .report-table thead { display: table-header-group; }
  .balloon { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
}

.schedule textarea { field-sizing: content; min-height: 44px; max-height: 220px; resize: none; }
.subtabs { overflow-x: auto; } .subtabs button { white-space: nowrap; }
@media (max-width: 900px) {
  .site-header { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .site-header::-webkit-scrollbar { display: none; }
  .site-header .nav { flex-wrap: nowrap; white-space: nowrap; } .nav-right { margin-left: auto; }
  .filterbar select { max-width: 150px; } .filterbar input[type=search] { width: 140px; }
  body.is-workspace .page { height: calc(100dvh - 46px); } body.is-workspace main { min-height: 0; }
  .toasts { top: auto; bottom: 12px; right: 16px; }
}
@media (max-width: 520px) { .brand-name { display: none; } .ws-title .crumb { display: none; } }

.user-name { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .site-header { gap: 2px 6px; padding-inline: 10px; } .navlink { padding: 4px 6px; font-size: .84rem; } .user-name { max-width: 8ch; } .site-header .btn { padding: 5px 8px; font-size: .84rem; } }
