/* Fleet — plain, sturdy, readable in an office or in a vehicle. Codes and readings in a monospace, like a logbook. */
:root {
  --paper: #eef0ec;
  --surface: #ffffff;
  --ink: #1d2a2e;
  --ink-soft: #33454a;
  --muted: #5b686b;
  --rule: #d3d8d2;
  --rule-strong: #b3bcb6;
  --accent: #0f5c6e;
  --accent-deep: #0a4553;
  --accent-tint: #e3eff1;
  --mark: #f2c14e;           /* safety yellow: the one bright colour, for the main action */
  --ok: #2f6b4f;
  --ok-tint: #e5f0e9;
  --warn: #7d5200;
  --warn-tint: #fbf1dc;
  --danger: #9b2c2c;
  --danger-tint: #f8e7e7;
  --focus: #2d6cdf;
  --brand: var(--ink);
  --brand-ink: #ffffff;
  --font: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r-sm: 3px;
  --r-md: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1em; }
.lede { font-size: 1.0625rem; color: var(--ink-soft); max-width: 66ch; }
.muted { color: var(--muted); }
.small { font-size: .8125rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { background: var(--paper); padding: 1px 5px; border-radius: var(--r-sm); font-size: .9em; }
.code, .qty { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.code { font-weight: 600; letter-spacing: .01em; }
td.code { white-space: nowrap; }
.count { font-family: var(--mono); font-size: 1rem; color: var(--muted); font-weight: 500; vertical-align: middle; }
.req { color: var(--danger); }

/* ---------- Shell ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.main { padding-top: 28px; padding-bottom: 48px; }
.topbar { background: var(--surface); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 20px; height: 20px; background: var(--accent); border-radius: 2px; box-shadow: inset 0 0 0 3px var(--accent-deep), inset 0 -8px 0 0 var(--mark); }
.brand-logo { max-height: 36px; max-width: 160px; display: block; }
.brand-sub { font-weight: 400; color: var(--muted); margin-left: 8px; }
.topbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.who { text-decoration: none; color: var(--ink-soft); font-size: .9375rem; }
.who:hover { color: var(--ink); }
.role-tag { font-size: .75rem; color: var(--muted); border: 1px solid var(--rule-strong); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.lang-switch { display: flex; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); overflow: hidden; }
.lang-switch a { text-decoration: none; padding: 4px 9px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.lang-switch a.is-current { background: var(--ink); color: #fff; }
.navbar { background: var(--brand); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; min-height: 46px; }
.nav a { text-decoration: none; padding: 12px 12px; color: var(--brand-ink); opacity: .82; font-size: .9375rem; }
.nav a:hover { opacity: 1; color: var(--brand-ink); }
.nav a.is-active { opacity: 1; font-weight: 600; box-shadow: inset 0 -3px 0 var(--mark); }
.nav .nav-cta { margin-left: auto; background: var(--mark); color: #1d2a2e; opacity: 1; font-weight: 700; padding: 7px 14px; border-radius: var(--r-sm); }
.nav .nav-cta-out { margin-left: 8px; background: transparent; color: var(--brand-ink); box-shadow: inset 0 0 0 2px var(--mark); }
.nav .nav-cta-out:hover, .nav .nav-cta-out.is-active { background: rgba(242, 193, 78, .18); color: var(--brand-ink); }
.cell-desc { min-width: 200px; }
.nav .nav-cta:hover, .nav .nav-cta.is-active { color: #1d2a2e; box-shadow: none; background: #ffd36a; }
.footer { color: var(--muted); font-size: .8125rem; padding-bottom: 32px; }

.page-head, .row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.page-head { margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.crumb { color: var(--muted); font-size: .875rem; margin-bottom: 6px; }
.crumb a { color: var(--muted); }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.doc-head h1 { margin-bottom: 6px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-soft); margin: 0; }
.balance-box { display: flex; flex-direction: column; align-items: flex-end; padding: 10px 16px; background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: var(--r-sm); }
.balance-box strong { font-size: 1.75rem; line-height: 1.1; }

/* ---------- Panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 18px; }
.panel > h2:first-child, .panel .row-between h2 { margin-bottom: .6em; }
.panel-accent { border-color: var(--accent); border-left-width: 4px; }
.empty { background: var(--surface); border: 1px dashed var(--rule-strong); border-radius: var(--r-md); padding: 36px 24px; max-width: 680px; margin-bottom: 18px; }
.danger-zone { border-color: #e2c4c4; }
.danger-zone summary { cursor: pointer; font-weight: 600; color: var(--danger); }
.danger-zone[open] summary { margin-bottom: 12px; }

/* ---------- Notices & pills ---------- */
.notice { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 18px; border-left: 4px solid; background: var(--surface); }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.notice-ok { border-color: var(--ok); background: var(--ok-tint); }
.notice-error { border-color: var(--danger); background: var(--danger-tint); }
.notice-warn { border-color: #c48a17; background: var(--warn-tint); color: var(--warn); }
.notice-warn a { color: var(--warn); }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: 1px 8px; border-radius: 99px; border: 1px solid; white-space: nowrap; font-family: var(--font); vertical-align: middle; }
.pill-ok { color: var(--ok); border-color: var(--ok); background: var(--ok-tint); }
.pill-warn { color: var(--warn); border-color: #c48a17; background: var(--warn-tint); }
.pill-danger { color: #fff; border-color: var(--danger); background: var(--danger); }
.pill-dark { color: #fff; border-color: var(--ink); background: var(--ink); }
.pill-neutral { color: var(--muted); border-color: var(--rule-strong); }
.tag { display: inline-block; font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 0 6px; border-radius: 2px; margin-top: 3px; }
.tag-core { background: var(--ink); color: #fff; }
.tag-builtin { background: var(--accent-tint); color: var(--accent-deep); }
.tag-custom { background: #fff2c9; color: #6a4b00; }

/* ---------- Forms ---------- */
.form label { display: block; margin-bottom: 14px; font-weight: 500; font-size: .9375rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .8125rem; margin-left: 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input[type=search], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 5px;
  font: inherit; font-weight: 400; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
  padding: 8px 10px; min-height: 40px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid rgba(45, 108, 223, .22); outline-offset: 0; }
input[readonly] { background: var(--paper); }
.input-short { max-width: 140px; }
.input-medium { max-width: 280px; }
.input-num { text-align: right; font-family: var(--mono); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.checkbox { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.checkbox input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.choice { border: 0; padding: 0; margin: 0 0 14px; }
.choice legend { font-weight: 500; font-size: .9375rem; margin-bottom: 6px; padding: 0; }
.radio { display: flex !important; gap: 10px; align-items: flex-start; padding: 11px 14px; border: 1px solid var(--rule); border-radius: var(--r-sm); margin-bottom: 8px !important; font-weight: 400 !important; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--accent); background: #f6fafa; }
.radio input { margin-top: 4px; accent-color: var(--accent); }
.form-actions, .inline-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-actions { margin-top: 6px; }
.sticky-actions { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0; border-top: 1px solid var(--rule); z-index: 5; }
.filters { display: flex; gap: 8px 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters label { margin: 0; }
.filters input, .filters select { margin-top: 0; min-width: 0; }
.filters select { max-width: 240px; }
.filters input[type=search] { width: 280px; max-width: 100%; }
.filters .checkbox { align-items: center; }
.filters .checkbox input { margin-top: 0; }
.inline-label { display: flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--muted); }
.copy-row { display: flex; gap: 8px; }
.copy-row .grow { flex: 1; margin: 0; }
.copy-row input { margin-top: 0; font-family: var(--mono); font-size: .8125rem; }
.file-drop { display: inline-flex !important; align-items: center; gap: 12px; padding: 12px 16px; border: 1px dashed var(--rule-strong); border-radius: var(--r-sm); background: var(--paper); cursor: pointer; }
.file-drop input { font: inherit; font-size: .875rem; }
.logo-preview { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.logo-preview img { max-height: 56px; max-width: 220px; border: 1px solid var(--rule); padding: 6px; background: #fff; }
.color-row { display: flex; align-items: center; gap: 14px; }
.color-row input[type=color] { width: 56px; height: 40px; padding: 2px; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: #fff; }
.switch input { width: 20px; height: 20px; accent-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .9375rem; line-height: 1; padding: 11px 16px; min-height: 42px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--rule-strong); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #7d2222; color: #fff; }
.btn-small { padding: 6px 10px; min-height: 32px; font-size: .8125rem; }
.btn-icon { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .9375rem; width: 32px; height: 32px; border-radius: var(--r-sm); }
.btn-icon:hover { background: var(--danger-tint); color: var(--danger); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -2px 6px; position: relative; }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th { text-align: left; font-weight: 600; font-size: .8125rem; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.table td { padding: 10px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table.compact td { padding: 7px 8px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions form { display: inline; }
tr.is-off td { color: var(--muted); }
tr.is-off td a { color: var(--muted); }
td.owners { font-size: .875rem; white-space: nowrap; }
.copy-row .grow input { font-family: var(--font); font-size: inherit; }
.qty.is-low { color: var(--warn); font-weight: 600; }
.qty.in { color: var(--ok); }
.qty.out { color: var(--danger); }
.field-table td { vertical-align: middle; }
.field-table input { margin-top: 0; min-width: 150px; }
.field-table .input-order { width: 64px; min-width: 64px; text-align: right; }
.options-box { margin: 6px 0 0 !important; font-weight: 400 !important; }
.options-box textarea { min-width: 160px; font-size: .875rem; }

/* Stock-in lines */
.lines-table th { white-space: normal; min-width: 70px; vertical-align: bottom; }
.lines-table td { padding: 5px 4px; vertical-align: top; }
.lines-table input, .lines-table select, .lines-table textarea { margin-top: 0; min-height: 36px; padding: 6px 8px; font-size: .9375rem; }
.lines-table .line-no { padding-top: 12px; color: var(--muted); font-family: var(--mono); }
.input-code { min-width: 120px; font-family: var(--mono); }
.input-desc { min-width: 220px; }
.input-unit { min-width: 70px; max-width: 90px; }
.input-cat { min-width: 130px; }
.lines-table .input-num { min-width: 90px; }
.lines-table input[type=date] { min-width: 140px; }
.lines-table select { min-width: 110px; }
.lines-table td > input:not(.input-code):not(.input-desc):not(.input-unit):not(.input-num):not([type=date]) { min-width: 110px; }
.line-hint { display: block; font-size: .75rem; color: var(--muted); margin-top: 2px; min-height: 1em; }
.line-hint.is-new { color: var(--warn); }
.is-known { background: var(--paper) !important; }

/* Facts (definition list) */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 24px; margin: 0; }
.facts div.wide { grid-column: 1 / -1; }
.facts dt { font-size: .8125rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 500; }

/* Dashboard */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--accent); color: var(--ink); }
.tile-num { font-family: var(--mono); font-size: 1.875rem; font-weight: 600; line-height: 1; }
.tile-label { font-size: .875rem; color: var(--muted); }
.tile-warn { border-top-color: #c48a17; }
.tile-danger { border-top-color: var(--danger); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.setup-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; }
.setup-steps li { display: flex; gap: 10px; align-items: flex-start; }
.step-mark { flex: none; width: 22px; height: 22px; border: 2px solid var(--rule-strong); border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; margin-top: 1px; }
.setup-steps li.is-done .step-mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.setup-steps li.is-done a { color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule-strong); margin-bottom: 14px; flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: 8px 14px; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.is-active { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.import-box summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.import-box[open] summary { margin-bottom: 10px; }
.import-steps { margin: 0 0 12px; padding-left: 22px; }
.import-steps li { margin-bottom: 10px; }
.import-steps label { margin: 6px 0 0 !important; font-weight: 400 !important; }
.revision { border-top: 1px solid var(--rule); padding: 12px 0 4px; }
.revision p { margin-bottom: .4em; }
.changes { margin: 0 0 6px; padding-left: 20px; font-size: .9375rem; }
.log { list-style: none; padding: 0; margin: 0; }
.log li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.log li:last-child { border-bottom: 0; }

/* Installer checks */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 10px; padding: 6px 0; }
.check-mark { font-weight: 700; width: 18px; }
.checks .ok .check-mark { color: var(--ok); }
.checks .fail .check-mark { color: var(--danger); }

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .setup-steps { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav .nav-cta { margin-left: 0; }
  .filters input[type=search] { width: 100%; }
  .balance-box { align-items: flex-start; }
}
@media print {
  .topbar-right, .navbar, .footer, .no-print, .filters, .notice, .btn, form { display: none !important; }
  body { background: #fff; }
  .panel { border: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* Searchable item list (stock out) */
.combo-pop { position: fixed; z-index: 50; width: 430px; max-width: calc(100vw - 16px); overflow-y: auto; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r-sm); box-shadow: 0 8px 24px rgba(29, 42, 46, .18); }
.combo-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--rule); font-size: .9375rem; }
.combo-opt:last-child { border-bottom: 0; }
.combo-opt:hover, .combo-opt.is-active { background: var(--accent-tint); }
.combo-code { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.combo-desc { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-qty { font-family: var(--mono); color: var(--accent-deep); white-space: nowrap; }
.combo-empty { padding: 10px 12px; color: var(--muted); font-size: .875rem; }

/* Public demo login on the sign-in page */
.demo-box { border-left: 4px solid var(--accent, #0f5c6e); }
.demo-box h2 { margin-top: 0; }
.demo-creds { display: flex; flex-wrap: wrap; gap: 6px 20px; font-family: 'IBM Plex Mono', monospace; font-size: 14px; }

/* ---------- Fleet additions ---------- */
input[type=tel], input[type=number], input[type=datetime-local], input[type=file] { font: inherit; }
input[type=tel], input[type=datetime-local] {
  display: block; width: 100%; margin-top: 5px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: var(--r-sm); padding: 8px 10px; min-height: 40px;
}
.receipt-img { max-width: 100%; max-height: 520px; border: 1px solid var(--rule); border-radius: var(--r-sm); display: block; }
.inline-details { display: inline-block; vertical-align: middle; }
.inline-details summary { list-style: none; }
.inline-details summary::-webkit-details-marker { display: none; }
.inline-details[open] form { margin-top: 6px; }
.inline-details input { margin-top: 0; min-width: 180px; }
.tiles .tile-label { line-height: 1.3; }

/* ---------- Mobile app ---------- */
.mode-field { background: var(--paper); font-size: 17px; }
.field-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 12px; padding-top: env(safe-area-inset-top); background: var(--brand); color: var(--brand-ink); }
.field-back { color: var(--brand-ink); text-decoration: none; font-size: 2rem; line-height: 1; padding: 0 8px 4px 0; }
.field-back:hover { color: var(--mark); }
.field-title { font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field-who { color: var(--brand-ink); opacity: .8; text-decoration: none; font-size: .875rem; white-space: nowrap; }
.field-who:hover { color: var(--brand-ink); opacity: 1; }
.field-main { max-width: 560px; margin: 0 auto; padding: 16px 14px calc(40px + env(safe-area-inset-bottom)); }
.field-hero { text-align: center; padding: 18px 0 8px; }
.field-hero .brand-mark { display: inline-block; width: 36px; height: 36px; margin-bottom: 10px; }
.field-hero h1 { font-size: 1.5rem; margin-bottom: 4px; }
.field-form label { display: block; font-weight: 600; margin-bottom: 16px; }
.field-form input, .field-form select, .field-form textarea { min-height: 50px; font-size: 1.0625rem; }
.field-form .checkbox { font-weight: 500 !important; align-items: center; min-height: 40px; }
.field-form .checkbox input { width: 24px; height: 24px; margin-top: 0; min-height: 0; }
.field-num { font-family: var(--mono); font-size: 1.375rem !important; letter-spacing: .02em; }
.pin-input { font-family: var(--mono); font-size: 1.75rem !important; letter-spacing: .5em; text-align: center; max-width: 220px; }
.field-filter { margin-bottom: 6px; }
.field-hint { display: block; font-weight: 400; font-size: .875rem; color: var(--muted); margin-top: 4px; min-height: 1.2em; }
.field-file { padding: 10px; background: var(--surface); border: 1px dashed var(--rule-strong); border-radius: var(--r-sm); width: 100%; margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.field-confirm { padding: 10px 12px; border-radius: var(--r-sm); border-left: 4px solid #c48a17; }
.field-more { margin: 4px 0 16px; }
.field-more summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 6px 0; }
.field-more[open] summary { margin-bottom: 10px; }
.field-note { text-align: center; margin-top: 18px; }
.btn-block { width: 100%; min-height: 56px; font-size: 1.125rem; }
.field-summary { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: var(--r-sm); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.field-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 118px; padding: 14px 10px; text-align: center;
  background: var(--surface); border: 1px solid var(--rule-strong); border-bottom: 4px solid var(--accent); border-radius: var(--r-md); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.0625rem; line-height: 1.25; }
.field-btn:hover, .field-btn:active { border-color: var(--accent); color: var(--ink); background: var(--accent-tint); }
.field-btn-quiet { border-bottom-color: var(--rule-strong); font-weight: 600; color: var(--ink-soft); }
.field-icon { font-size: 2rem; line-height: 1; }
.field-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; margin-bottom: 14px; border-radius: var(--r-md); text-decoration: none; }
.field-card-open { background: var(--mark); color: #1d2a2e; box-shadow: 0 2px 0 #c99a2e; }
.field-card-open:hover, .field-card-open:active { color: #1d2a2e; background: #ffd36a; }
.field-card-label { font-size: .9375rem; font-weight: 600; }
.field-card-big { font-size: 1.5rem; font-weight: 700; }
.field-card-sub { font-size: .875rem; }
.field-section { margin-top: 8px; }
.field-section h2 { font-size: 1rem; color: var(--muted); margin-bottom: 6px; }
.field-list { list-style: none; margin: 0 0 16px; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-sm); }
.field-list li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.field-list li:last-child { border-bottom: 0; }
@media (max-width: 380px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Part 2 ---------- */
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tiles-4 { grid-template-columns: repeat(4, 1fr); }
.tiles-alert .tile-num { font-size: 1.5rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--rule); border-radius: var(--r-sm); display: block; }
.field-btn-alert { border-bottom-color: var(--danger); }
.field-btn-alert:hover, .field-btn-alert:active { border-color: var(--danger); background: var(--danger-tint); }
.check-all { margin-bottom: 12px; }
.check-list { list-style: none; margin: 0 0 16px; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-sm); }
.check-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.check-item:last-child { border-bottom: 0; }
.check-item.has-problem { background: var(--danger-tint); }
.check-name { font-weight: 500; }
.check-toggle { display: flex; gap: 6px; }
.check-note { display: none !important; grid-column: 1 / -1; margin-top: 0 !important; min-height: 44px !important; }
.check-item.has-problem .check-note { display: block !important; }
.tog { position: relative; display: inline-flex !important; margin: 0 !important; cursor: pointer; }
.tog input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tog span { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--surface); font-weight: 600; font-size: .9375rem; }
.tog input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.tog-ok input:checked + span { background: var(--ok); border-color: var(--ok); color: #fff; }
.tog-bad input:checked + span { background: var(--danger); border-color: var(--danger); color: #fff; }
.field-yn { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.field-yn legend { font-weight: 600; margin-bottom: 6px; padding: 0; width: 100%; }
@media (max-width: 900px) { .tiles-3, .tiles-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .check-item { grid-template-columns: 1fr; } }

.gps-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; margin: -6px 0 16px; background: var(--surface); border: 1px dashed var(--rule-strong); border-radius: var(--r-sm); font-size: .9375rem; }
.gps-box.is-ok { border-style: solid; border-color: var(--ok); background: var(--ok-tint); }

.field-logo { display: block; max-height: 64px; max-width: 220px; margin: 0 auto 10px; }
.brand-preview { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0 14px; }
.brand-swatch { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-sm); font-weight: 600; }
.lang-switch-field { border-color: currentColor; opacity: .9; flex: none; }
.lang-switch-field a { color: var(--brand-ink); padding: 3px 7px; font-size: .75rem; }
.lang-switch-field a.is-current { background: var(--brand-ink); color: var(--brand); }
.mode-public .topbar-right .lang-switch, .mode-admin .topbar-right .lang-switch { margin-left: 4px; }
