:root {
  --green: #164d39;
  --green-2: #236248;
  --mint: #eaf0e7;
  --paper: #f5f6f2;
  --ink: #193d31;
  --muted: #5c6c62;
  --line: #dce5dc;
  --white: #fff;
  --amber: #845715;
  --amber-bg: #fff3d8;
  --red: #a33830;
  --red-bg: #fff0ee;
  --radius: 16px;
  --shadow: 0 5px 20px #1e423008;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: var(--green); }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #b38616;
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 3vw, 2.15rem); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; }
h2 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; }
small { font-size: .8rem; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .73rem; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.small { font-size: .86rem; }
.mono { font-family: Consolas, monospace; font-size: .8rem; overflow-wrap: anywhere; }
.skip-link { position: absolute; left: 12px; top: -80px; padding: 10px 16px; background: white; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 10px; }

/* Shared shell: the station remains visible throughout field work. */
.topbar { background: var(--green); color: white; }
.topbar-inner { max-width: 1440px; margin: auto; padding: 18px 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: white; text-decoration: none; display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-mark { font-size: 28px; line-height: 1; font-weight: 750; letter-spacing: -1.5px; flex: none; }
.brand-mark span { display: none; }
.brand-caption { font-size: .94rem; font-weight: 500; border-left: 1px solid #ffffff50; padding-left: 18px; }
.brand-caption small { display: block; color: #d3e4d7; font-size: 11px; font-weight: 400; margin-top: 3px; }
#identity { min-width: 0; }
.identity { display: flex; align-items: center; gap: 11px; text-align: right; min-width: 0; }
.identity > div { min-width: 0; }
.identity .caption { font-size: 11px; color: #d3e4d7; }
.identity strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.identity .text-button { color: #fff; font-size: 12px; min-height: 32px; }
.station-dot { width: 32px; height: 32px; background: #ffffff12; border: 1px solid #ffffff38; display: grid; place-items: center; border-radius: 50%; flex: none; }
.demo-bar { background: #edf0e6; color: #59694c; font-size: 11px; padding: 7px 20px; text-align: center; }
.demo-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #8b702d; margin-right: 7px; vertical-align: 2px; }
.connection { background: var(--amber-bg); color: var(--amber); padding: 12px 20px; text-align: center; font-size: .86rem; }
.app-layout { max-width: 1180px; margin: 0 auto; padding: 0 30px; }
#navigation { display: flex; gap: 6px; padding: 18px 0 14px; border-bottom: 1px solid var(--line); }
.nav-link { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 9px; text-decoration: none; font-size: .88rem; color: var(--muted); font-weight: 500; }
.nav-link:hover { background: var(--mint); color: var(--ink); }
.nav-link.active { background: var(--mint); color: var(--ink); font-weight: 600; }
.nav-count { min-width: 20px; padding: 1px 6px; border-radius: 10px; background: #dce8d7; color: var(--ink); font-size: 11px; text-align: center; }
main { min-width: 0; margin: 28px 0 60px; min-height: 55vh; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading > div { min-width: 0; }
.page-heading p { margin-top: 9px; max-width: 620px; color: var(--muted); font-size: .9rem; }
.panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.panel-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.panel-head p { font-size: .84rem; color: var(--muted); margin-top: 5px; }
.section-number { width: 29px; height: 29px; background: var(--mint); color: var(--green); font-size: 13px; font-weight: 600; border-radius: 50%; display: grid; place-items: center; flex: none; }
.subtle-panel { background: var(--mint); border: 1px solid var(--line); border-radius: 12px; padding: 17px; min-width: 0; }
.two-col, .capture-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.welcome { max-width: 620px; margin: 42px auto; display: grid; gap: 22px; }
.welcome .panel { padding: 32px; }
.welcome .intro { color: var(--muted); margin: 15px 0 24px; max-width: 450px; }
.station-options { display: grid; gap: 11px; }
.station-option { text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px; min-height: 72px; border: 1px solid var(--line); background: var(--white); border-radius: 11px; color: var(--ink); }
.station-option:hover { background: var(--mint); border-color: #8ba896; }
.station-option strong, .station-option small { display: block; }
.station-option small { color: var(--muted); margin-top: 4px; }
.welcome-foot { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .84rem; }

/* Controls retain a useful touch target even when visually secondary. */
.button { border: 1px solid transparent; border-radius: 11px; padding: 12px 18px; min-height: 48px; font-size: .91rem; font-weight: 600; display: inline-flex; gap: 9px; align-items: center; justify-content: center; text-decoration: none; line-height: 1.35; text-align: center; background: var(--green); color: white; overflow-wrap: anywhere; }
.button:hover:not(:disabled) { background: var(--green-2); }
.button.secondary { background: white; border-color: var(--line); color: var(--ink); }
.button.secondary:hover:not(:disabled) { background: var(--mint); border-color: #bccfbe; }
.button.quiet { background: var(--mint); color: var(--ink); }
.button.quiet:hover:not(:disabled) { background: #dce8d7; }
.button.warning { background: var(--amber-bg); color: var(--amber); border-color: #ead9aa; }
.button.warning:hover:not(:disabled) { background: #f8e7b9; }
.button.danger { background: var(--red-bg); color: var(--red); border-color: #edc7c0; }
.button.danger:hover:not(:disabled) { background: #ffe2dc; }
.button.compact { min-height: 44px; padding: 9px 13px; font-size: .83rem; }
.button.wide { width: 100%; }
.text-button { border: 0; padding: 9px 2px; min-height: 44px; background: none; text-decoration: underline; text-underline-offset: 3px; font-size: .83rem; color: var(--green); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; min-width: 0; }
.actions > .button, .actions > span { flex: 1 1 145px; min-width: 0; }
.actions > span .button { width: 100%; }
.tag { border-radius: 6px; background: var(--mint); color: var(--ink); padding: 4px 8px; font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; max-width: 100%; }
.tag.warning { background: var(--amber-bg); color: var(--amber); }
.tag.neutral { background: #edf0eb; color: var(--muted); }
.tag.success { background: #e9f0e5; color: #35613c; }
.tag.red { background: var(--red-bg); color: var(--red); }
.notice { border: 1px solid var(--line); background: #f1f5ec; border-radius: 10px; padding: 12px 14px; color: #526344; font-size: .86rem; line-height: 1.55; overflow-wrap: anywhere; }
.notice.warning { border-color: #eadbb8; background: var(--amber-bg); color: var(--amber); }
.notice.error { border-color: #edc7c1; background: var(--red-bg); color: var(--red); }
.notice.success { border-color: #c7dcc1; background: #eaf4e8; color: #345e38; }
.notice strong { display: block; margin-bottom: 3px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field-label { font-size: .8rem; color: var(--muted); font-weight: 500; }
.field small { color: var(--muted); font-size: .76rem; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; min-width: 0; min-height: 46px; padding: 10px 11px; border: 1px solid #cad8ca;
  border-radius: 9px; background: white; color: var(--ink);
}
textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
input[readonly], input:disabled, select:disabled, textarea:disabled { background: #f0f3ed; color: #5c6c62; }
input[type=checkbox], input[type=radio] { accent-color: var(--green); width: 20px; height: 20px; flex: none; margin: 1px 0 0; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; padding: 12px 0; min-height: 44px; }
.checkbox span { display: block; min-width: 0; }
.checkbox small { color: var(--muted); display: block; margin-top: 4px; font-size: .76rem; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Direct capture is the selected home screen; it carries no simulated progress. */
.capture-home { max-width: 650px; margin: 0 auto; }
.capture-home .page-heading { margin-bottom: 22px; }
.capture-primary { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.capture-primary .camera-symbol { margin: 0 0 20px; width: 58px; height: 58px; background: var(--mint); border: 0; border-radius: 17px; }
.capture-primary h2 { font-size: 1.12rem; }
.capture-primary p { margin-top: 8px; font-size: .89rem; color: var(--muted); }
.capture-primary .actions { flex-direction: column; }
.capture-primary .actions > .button, .capture-primary .actions > span { flex: none; }
.capture-primary .actions .button { width: 100%; }
.capture-guidance { padding: 18px 0; color: var(--muted); font-size: .86rem; }
.capture-guidance > summary { font-weight: 600; }
.station-overview { margin-top: 24px; }
.station-overview > h2 { font-size: 1.08rem; margin-bottom: 5px; }
.station-overview-item { display: flex; align-items: center; justify-content: space-between; gap: 13px; min-width: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.station-overview-item:last-child { border-bottom: 0; }
.station-overview-item > div { min-width: 0; flex: 1; }
.station-overview-item strong { display: block; font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.station-overview-item small { display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; }
.pending-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 16px; margin-top: 16px; background: var(--amber-bg); color: var(--amber); border: 1px solid #eadbb8; border-radius: 11px; text-decoration: none; font-size: .87rem; }
.pending-link:hover { background: #f8e7b9; }
.steps { display: flex; align-items: center; gap: 10px; margin: 18px 0 24px; padding: 0; list-style: none; }
.steps li { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); }
.steps li:not(:last-child)::after { content: ""; width: 22px; height: 1px; background: #cbd7ca; margin-left: 5px; }
.steps .step-dot { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid #cad7c8; border-radius: 50%; font-size: 11px; flex: none; }
.steps .active { color: var(--green); font-weight: 600; }
.steps .active .step-dot { background: var(--green); color: white; border-color: var(--green); }
.drop-zone { background: #f6f8f2; border: 1px solid var(--line); border-radius: 13px; padding: 32px 22px; text-align: center; }
.camera-symbol { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 18px; background: var(--mint); border-radius: 17px; color: var(--green); font-size: 28px; }
.drop-zone h2 { font-size: 1.12rem; }
.drop-zone p { font-size: .86rem; color: var(--muted); margin: 8px auto 22px; max-width: 330px; }
.drop-zone .actions { justify-content: center; }
.photo-preview { width: 100%; max-height: 490px; object-fit: contain; background: #e9eee5; border-radius: 11px; display: block; border: 1px solid var(--line); }
.photo-caption { margin-top: 9px; font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.capture-info { display: flex; flex-direction: column; gap: 14px; }
.tip-list { padding: 0; list-style: none; display: grid; gap: 17px; margin: 18px 0 0; }
.tip-list li { display: flex; gap: 12px; color: var(--muted); font-size: .87rem; }
.tip-list strong { color: var(--ink); display: block; font-weight: 600; margin-bottom: 4px; }
.tip-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--mint); color: #536b43; display: grid; place-items: center; flex: none; font-size: 12px; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.candidate-list { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.candidate { display: flex; align-items: flex-start; gap: 10px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; min-width: 0; }
.candidate > span:not(.distance) { flex: 1; min-width: 0; }
.candidate:has(input:checked) { background: #f1f6ec; border-color: #376a4d; box-shadow: inset 2px 0 #376a4d; }
.candidate strong { font-size: .87rem; font-weight: 600; display: block; overflow-wrap: anywhere; }
.candidate small { display: block; font-size: .76rem; color: var(--muted); margin-top: 3px; }
.candidate .distance { margin-left: auto; font-size: 11px; color: var(--green); white-space: nowrap; padding-top: 2px; }
.price-editor { display: grid; gap: 13px; min-width: 0; }
.price-row { padding: 15px; background: #fafbf7; border: 1px solid var(--line); border-radius: 11px; display: grid; gap: 11px; min-width: 0; }
.price-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.price-row-head select { font-weight: 600; flex: 1; }
.price-row .remove-price { width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--red); font-size: 24px; line-height: 1; }
.price-row .remove-price:hover { background: var(--red-bg); }
.price-fields { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr) minmax(0, .85fr); gap: 10px; }
.price-fields input { font-size: 1.45rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.price-fields .full { grid-column: 1 / -1; }
.price-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; align-items: start; }
.price-main input { font-size: 1.65rem; line-height: 1.2; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; padding: 9px 10px; min-height: 48px; }
.price-main select { min-height: 48px; }
.price-settings { border-top: 1px solid var(--line); padding-top: 1px; }
.price-settings > summary { font-size: .8rem; color: var(--muted); }
.price-settings[open] > summary { color: var(--ink); }
.price-settings .price-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 4px 0 2px; }
.price-settings .price-fields > :last-child { grid-column: 1 / -1; }
.editor-section, .review-section { display: flex; flex-direction: column; gap: 15px; min-width: 0; }
.editor-section + .editor-section, .review-section + .review-section { padding-top: 23px; border-top: 1px solid var(--line); }
.section-title { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.submit-requirements { color: var(--muted); font-size: .82rem; line-height: 1.55; padding: 12px 14px; margin-top: 16px; background: #f2f5ee; border-radius: 9px; }
.submit-requirements:empty { display: none; }
.submit-requirements ul { margin: 0; padding-left: 18px; }
.sticky-photo { position: sticky; top: 20px; min-width: 0; }

/* Received observations and the durable local outbox share the same clear cards. */
.empty, .empty-detail { text-align: center; padding: 42px 24px; background: white; border: 1px dashed #cbd9c7; border-radius: var(--radius); color: var(--muted); }
.empty h2, .empty-detail h2 { color: var(--ink); margin: 8px 0; }
.empty p, .empty-detail p { max-width: 460px; margin: 8px auto 20px; font-size: .9rem; }
.empty .empty-icon { font-size: 30px; color: #648658; }
.observation-list { display: grid; gap: 12px; min-width: 0; }
.observation-card { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 17px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 13px; background: white; min-width: 0; }
.observation-card img { width: 72px; height: 66px; border-radius: 9px; object-fit: cover; background: var(--mint); }
.observation-card h3 { font-size: .97rem; overflow-wrap: anywhere; }
.observation-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 7px; color: var(--muted); font-size: .78rem; }
.observation-card .card-end { display: flex; flex-direction: column; gap: 9px; align-items: flex-end; min-width: 0; }
.filterbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 20px; min-width: 0; }
.filterbar .field { max-width: 280px; flex: 1 1 150px; }
.count-note { color: var(--muted); font-size: .8rem; margin-left: auto; }
.queue-card { border-left: 3px solid #bd8f29; }
.queue-card .local-thumb { width: 72px; height: 66px; background: #edf0df; display: grid; place-items: center; border-radius: 9px; font-size: 25px; color: #607c4d; }
.receipt { max-width: 600px; margin: 35px auto; text-align: center; }
.receipt .receipt-icon { width: 66px; height: 66px; display: grid; place-items: center; background: #e5f0df; color: #3f6e3b; border: 1px solid #c2d8ba; border-radius: 50%; font-size: 28px; margin: 0 auto 22px; }
.receipt h1 { font-size: 1.9rem; }
.receipt p { color: var(--muted); margin: 13px 0; }
.receipt .receipt-id { background: #f1f5eb; border-radius: 10px; padding: 15px; margin: 22px 0; text-align: left; }
.receipt .receipt-id small { display: block; margin-bottom: 5px; color: var(--muted); }
.definition-list { display: grid; grid-template-columns: minmax(85px, .65fr) minmax(0, 1fr); gap: 9px 15px; font-size: .84rem; margin: 0; }
.definition-list dt { color: var(--muted); }
.definition-list dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.history { display: flex; flex-direction: column; gap: 16px; }
.history-item { padding-left: 13px; border-left: 2px solid #cbdac5; min-width: 0; }
.history-item p { font-size: .86rem; margin: 5px 0; overflow-wrap: anywhere; }
.history-item small { color: var(--muted); }
.history-details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 5px; }
.history-details > summary { font-weight: 600; }
.history-details .history { padding-top: 10px; }
.read-prices { width: 100%; border-collapse: collapse; font-size: .85rem; }
.read-prices th { text-align: left; color: var(--muted); font-size: .76rem; font-weight: 500; padding: 10px 5px; border-bottom: 1px solid var(--line); }
.read-prices td { padding: 13px 5px; border-bottom: 1px solid var(--line); vertical-align: top; }
.read-prices .number, .price-value { font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.read-prices td:nth-child(2) small { display: block; font-size: .75rem; color: var(--muted); }
.price-summary { display: grid; gap: 0; min-width: 0; }
.price-summary > * { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; max-width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; }
.analysis-table { width: 100%; border-collapse: collapse; background: white; font-size: .85rem; min-width: 720px; }
.analysis-table th { padding: 13px 16px; background: #edf2e9; text-align: left; font-size: .76rem; color: var(--muted); font-weight: 500; }
.analysis-table td { padding: 16px; border-bottom: 1px solid var(--line); }
.analysis-table .number { font-size: 1.3rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.table-panel { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: white; min-width: 0; }
.table-panel.table-wrap { overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.stat { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 18px; min-width: 0; }
.stat strong { display: block; font-size: 1.7rem; color: var(--green); font-weight: 600; }
.stat small { color: var(--muted); }

/* Office list, evidence, review and history stay in one workspace. */
.office-workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; min-width: 0; }
.office-list { display: grid; gap: 10px; min-width: 0; align-content: start; }
.office-list-card { display: grid; gap: 8px; width: 100%; min-width: 0; text-align: left; background: white; color: var(--ink); padding: 17px; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; }
.office-list-card:hover { background: #f7faf3; border-color: #bdcebb; }
.office-list-card[aria-current="true"], .office-list-card[aria-current="page"] { border-color: var(--green); box-shadow: inset 3px 0 var(--green); background: #f4f8f0; }
.office-list-card strong { font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.office-list-card small { display: block; color: var(--muted); font-size: .77rem; }
.office-list-card .tag { justify-self: start; }
.office-detail { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 21px; }
.office-detail .panel { box-shadow: none; }
.office-detail > .panel.observation-detail { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.detail-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 17px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.detail-header p { margin-top: 6px; color: var(--muted); font-size: .81rem; }
.detail-header h2 { font-size: 1.12rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.detail-layout > *, .detail-evidence, .detail-content { min-width: 0; }
.detail-evidence .photo-preview { max-height: 420px; }
.detail-evidence .definition-list { font-size: .79rem; }
.office-filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; align-items: center; }
.office-filter-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 9px 12px; background: white; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: .83rem; }
.office-filter-tab:hover { background: var(--mint); color: var(--ink); }
.office-filter-tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: white; }
.office-detail .price-row { padding: 12px; }
.office-detail .price-fields { gap: 8px; }
.office-detail .price-fields select { padding-left: 7px; padding-right: 7px; }
.office-detail .editor-section h2, .office-detail .review-section h2 { font-size: 1.05rem; }
.office-detail .actions > .button { flex-basis: 150px; }

.footer { max-width: 1440px; margin: auto; padding: 20px 30px 28px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: .76rem; }
.footer .text-button { font-size: .76rem; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 99; width: max-content; max-width: calc(100vw - 30px); padding: 14px 18px; background: #223f32; color: white; box-shadow: 0 8px 30px #0003; border-radius: 11px; font-size: .86rem; overflow-wrap: anywhere; }
.toast.error { background: #8d352e; }
.loading { text-align: center; padding: 80px 20px; color: var(--muted); }
.spinner { display: inline-block; width: 22px; height: 22px; border: 2px solid #bfd0b9; border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; margin-bottom: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.busy { pointer-events: none; opacity: .65; }
details > summary { cursor: pointer; color: var(--green); font-size: .85rem; min-height: 44px; padding: 11px 0; }
details pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .75rem; background: #f2f5ed; padding: 14px; border-radius: 9px; max-height: 280px; overflow: auto; }
.replace-dialog { max-width: 520px; width: calc(100% - 32px); border: 1px solid var(--line); border-radius: 17px; padding: 26px; color: var(--ink); background: white; box-shadow: 0 20px 80px #0004; }
.replace-dialog::backdrop { background: #102c2480; }
.replace-dialog p { margin-top: 14px; font-size: .9rem; }
.mt14 { margin-top: 14px; }
.mt16 { margin-top: 16px; }
.mt18 { margin-top: 18px; }
.mt20 { margin-top: 20px; }
.mb15 { margin-bottom: 15px; }
.mb20 { margin-bottom: 20px; }

@media (min-width: 1100px) {
  .office-mode .app-layout { max-width: 1440px; padding: 0; display: grid; grid-template-columns: 172px minmax(0, 1fr); min-height: calc(100vh - 180px); }
  .office-mode #navigation { flex-direction: column; align-items: stretch; padding: 26px 12px; border-bottom: 0; border-right: 1px solid var(--line); background: white; }
  .office-mode #navigation::before { content: "Работно място"; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; padding: 0 11px 9px; }
  .office-mode .nav-link { font-size: .83rem; padding: 11px; }
  .office-mode main { margin: 0; padding: 28px 26px 56px; }
  .office-mode .page-heading h1 { font-size: 1.9rem; }
  .office-mode .office-list { max-height: calc(100vh - 285px); overflow-y: auto; padding: 1px 3px 1px 1px; position: sticky; top: 20px; }
}
@media (min-width: 1200px) {
  .office-mode .detail-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; }
}
@media (max-width: 900px) {
  .app-layout { padding: 0 24px; }
  .two-col, .capture-layout { grid-template-columns: minmax(0, 1fr); }
  .sticky-photo { position: static; }
  .two-col > .sticky-photo .photo-preview { max-height: 360px; }
  .panel { padding: 22px; }
  .page-heading { margin-bottom: 22px; }
  .photo-preview { max-height: 400px; }
  .office-workspace { grid-template-columns: 200px minmax(0, 1fr); gap: 15px; }
  .office-detail { padding: 18px; }
}
@media (max-width: 700px) {
  :root { font-size: 14px; }
  .topbar-inner { display: block; padding: 0; }
  .brand { padding: 20px; gap: 14px; }
  .brand-mark { font-size: 27px; }
  .brand-caption { font-size: 13px; padding-left: 14px; }
  #identity:empty { display: none; }
  .identity { background: white; color: var(--ink); padding: 12px 20px; text-align: left; gap: 10px; border-bottom: 1px solid var(--line); }
  .identity > div { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 12px; }
  .identity .caption { color: var(--muted); font-size: 11px; grid-column: 1; }
  .identity strong { font-size: 13px; grid-column: 1; }
  .identity .text-button { color: var(--ink); font-size: 12px; grid-column: 2; grid-row: 1 / 3; min-height: 44px; }
  .station-dot { color: var(--green); background: var(--mint); border: 0; width: 31px; height: 31px; }
  .demo-bar { font-size: 11px; padding: 7px 16px; line-height: 1.45; }
  .app-layout { padding: 0 20px; }
  main { margin: 24px 0 34px; }
  .page-heading { flex-direction: column; gap: 14px; }
  .page-heading p { font-size: .92rem; }
  h1 { font-size: 1.9rem; }
  .eyebrow { font-size: 11px; }
  body:not(.office-mode) { padding-bottom: calc(77px + env(safe-area-inset-bottom)); }
  body:not(.office-mode) #navigation:not([hidden]) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: white; border-top: 1px solid var(--line); border-bottom: 0; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); margin: 0; gap: 5px; justify-content: center; }
  body:not(.office-mode) .nav-link { flex: 1; max-width: 210px; min-height: 50px; padding: 10px 7px; justify-content: center; font-size: 12px; }
  body:not(.office-mode) .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .office-mode #navigation { padding-top: 12px; gap: 5px; }
  .office-mode .nav-link { flex: 1; justify-content: center; padding: 9px; font-size: 12px; }
  .panel, .capture-primary { padding: 20px; border-radius: 15px; }
  .capture-primary .camera-symbol { margin-bottom: 18px; }
  .capture-home .page-heading p { max-width: 360px; }
  .welcome { margin: 24px 0; }
  .welcome .panel { padding: 22px; }
  .capture-primary h2 { font-size: 1.12rem; }
  .capture-primary .actions { margin-top: 21px; }
  .capture-guidance { padding-top: 14px; }
  .steps { gap: 7px; }
  .steps li { gap: 6px; font-size: 11px; }
  .steps li:not(:last-child)::after { width: 13px; margin-left: 1px; }
  .drop-zone { padding: 25px 16px; }
  .drop-zone .actions { flex-direction: column; }
  .drop-zone .actions > .button, .drop-zone .actions > span { flex: none; }
  .actions { gap: 9px; }
  input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { font-size: 16px; }
  .price-row { padding: 12px; }
  .price-fields { gap: 8px; }
  .price-fields select { font-size: 14px; padding-left: 7px; padding-right: 7px; }
  .price-fields input { font-size: 23px; }
  .price-main { gap: 8px; }
  .price-main input { font-size: 24px; }
  .price-main select { font-size: 14px; padding-left: 8px; padding-right: 8px; }
  .candidate { padding: 13px 11px; }
  .candidate strong { font-size: 13px; }
  .candidate small { font-size: 11px; }
  .candidate .distance { font-size: 11px; }
  .observation-card { grid-template-columns: 50px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .observation-card img, .queue-card .local-thumb { width: 50px; height: 55px; }
  .observation-card .card-end { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
  .observation-card h3 { font-size: .96rem; }
  .observation-meta { font-size: 11px; gap: 5px 10px; }
  .count-note { width: 100%; margin: 0; }
  .definition-list { font-size: .83rem; gap: 9px 12px; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .stat { padding: 15px; }
  .stat:last-child { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
  .stat strong { font-size: 1.6rem; }
  .office-workspace { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .office-list { grid-template-columns: minmax(0, 1fr); }
  .office-list-card { padding: 14px; }
  .office-detail { padding: 17px; }
  .office-filter-tabs { gap: 7px; }
  .office-filter-tab { font-size: 12px; padding: 9px 10px; flex: 1 1 auto; justify-content: center; }
  .office-detail .actions { flex-direction: column; }
  .office-detail .actions > .button { flex: none; width: 100%; }
  .office-detail .price-fields input { font-size: 22px; }
  .office-detail .photo-preview { max-height: 360px; }
  .footer { flex-direction: column; align-items: flex-start; padding: 18px 20px 24px; gap: 7px; font-size: 11px; }
  .footer .text-button { font-size: 11px; }
  .toast { bottom: 15px; font-size: .9rem; }
  .receipt { margin: 25px auto; }
  .receipt h1 { font-size: 1.8rem; }
  .form-grid { gap: 10px; }
  .field label, .field-label { font-size: 11px; }
  .field small { font-size: 11px; }
  .checkbox small, .photo-caption { font-size: 11px; }
}
@media (max-width: 360px) {
  .app-layout { padding-left: 15px; padding-right: 15px; }
  .brand { padding-left: 16px; padding-right: 16px; }
  .identity { padding-left: 16px; padding-right: 16px; }
  .panel, .capture-primary { padding: 17px; }
  .office-detail { padding: 15px; }
  .price-fields { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) minmax(0, .85fr); gap: 6px; }
  .price-fields input { font-size: 21px; padding-left: 7px; padding-right: 7px; }
  .price-fields select { padding-left: 5px; padding-right: 5px; font-size: 13px; }
  .office-detail .price-fields input { font-size: 20px; }
  .price-main { grid-template-columns: minmax(0, 1fr); }
  .price-main select { font-size: 16px; }
  .candidate { flex-wrap: wrap; }
  .candidate .distance { margin-left: 30px; }
  .read-prices { font-size: .82rem; }
  .read-prices .number { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
