/* TACON admin site (layout approved 2026-11-12): navy top bar with modules, side menu for the current module.
   Colours from the TACON logo and the TACON Verify app: navy #102A43, teal #0F766E / #14B8A6. */
:root {
  --navy: #102A43;
  --navy-2: #1A3A5A;
  --navy-muted: #93A7BC;
  --teal: #0F766E;
  --teal-dark: #0B5E58;
  --teal-bright: #5EEAD4;
  --teal-soft: #D5F5EF;
  --bg: #F2F5F8;
  --surface: #FFFFFF;
  --surface-2: #F7F9FB;
  --border: #DCE3EA;
  --line: #E9EEF3;
  --text: #102A43;
  --muted: #5B6B7C;
  --faint: #8A99A8;
  --pass: #15803D; --pass-bg: #DCFCE7;
  --warn: #92400E; --warn-bg: #FEF3C7;
  --danger: #C2410C; --danger-bg: #FFEDD5;
  --info: #1D4ED8; --info-bg: #DBEAFE;
  --off: #64748B; --off-bg: #E9EEF3;
  --bar-device: #7C93AB;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16,42,67,.05), 0 4px 14px rgba(16,42,67,.05);
  --top-h: 58px;
  --side-w: 248px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--teal); }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: 13px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- app shell ---------- */
body.app {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  grid-template-rows: var(--top-h) 1fr;
  grid-template-areas: "top top" "side main";
  min-height: 100vh;
}
.topbar {
  grid-area: top; position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px; padding: 0 18px;
  background: var(--navy); color: #fff;
}
.burger { display: none; background: none; border: 0; color: #fff; font-size: 20px; width: 38px; height: 38px;
          border-radius: 8px; cursor: pointer; }
.burger:hover { background: var(--navy-2); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none;
         font-weight: 700; letter-spacing: .08em; font-size: 17px; }
.modules { display: flex; align-self: stretch; gap: 2px; margin-left: 8px; }
.modules a { position: relative; display: flex; align-items: center; padding: 0 14px; color: var(--navy-muted);
             text-decoration: none; font-weight: 600; }
.modules a:hover { color: #fff; background: var(--navy-2); }
.modules a.on { color: #fff; }
.modules a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px;
                       border-radius: 3px 3px 0 0; background: var(--teal-bright); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.search-btn { display: flex; align-items: center; gap: 10px; height: 36px; min-width: 240px; padding: 0 10px 0 12px;
              background: var(--navy-2); color: var(--navy-muted); border: 1px solid transparent; border-radius: 9px;
              font: inherit; font-size: 14px; cursor: pointer; }
.search-btn:hover { border-color: var(--navy-muted); }
.search-btn kbd { margin-left: auto; font-family: Consolas, monospace; font-size: 11px; border: 1px solid var(--navy-muted);
                  border-radius: 5px; padding: 1px 5px; }
.co { margin: 0; }
.co label { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--navy-2);
            border-radius: 9px; }
.co label > span { font-size: 11px; color: var(--navy-muted); text-transform: uppercase; letter-spacing: .06em; }
.co select { background: transparent; color: #fff; border: 0; font: inherit; font-weight: 600; max-width: 190px; cursor: pointer; }
.co select option { color: var(--text); }
.me { position: relative; }
.me summary { list-style: none; display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 4px 6px;
              border-radius: 9px; }
.me summary::-webkit-details-marker { display: none; }
.me summary:hover { background: var(--navy-2); }
.av { width: 32px; height: 32px; border-radius: 50%; background: var(--teal-bright); color: var(--navy);
      display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.who { display: flex; flex-direction: column; line-height: 1.15; }
.who small { color: var(--navy-muted); font-size: 12px; }
.me-menu { position: absolute; right: 0; top: 46px; background: var(--surface); border: 1px solid var(--border);
           border-radius: 10px; box-shadow: var(--shadow); padding: 6px; min-width: 180px; display: grid; }
.me-menu a, .me-menu button { display: block; text-align: left; padding: 9px 12px; border-radius: 7px; color: var(--text);
                               text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; width: 100%; }
.me-menu a:hover, .me-menu button:hover { background: var(--surface-2); }
.me-menu form { margin: 0; }

.sidebar {
  grid-area: side; background: var(--surface); border-right: 1px solid var(--border);
  padding: 14px 10px 24px; position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto;
}
.side-mods { display: none; }
.side-head { font-size: 17px; font-weight: 700; padding: 4px 10px 12px; }
.nav-group { margin-bottom: 10px; }
.nav-title { padding: 8px 10px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
             color: var(--faint); }
.nav-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px;
            border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; }
.nav-item:hover { background: var(--surface-2); }
.nav-item.active { background: var(--teal-soft); color: var(--teal-dark); font-weight: 600; }
.count { font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 1px 8px; line-height: 18px; white-space: nowrap; }
.count.bad { background: var(--danger-bg); color: var(--danger); }
.count.warn { background: var(--warn-bg); color: var(--warn); }
.count.info { background: var(--info-bg); color: var(--info); }
.side-note { margin: 16px 10px 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.scrim { position: fixed; inset: 0; background: rgba(5,13,21,.45); z-index: 35; }

.content { grid-area: main; padding: 22px 28px 28px; min-width: 0; max-width: 1360px; width: 100%; }
.crumbs { color: var(--muted); font-size: 12.5px; margin-bottom: 2px; }
.crumbs span { margin: 0 4px; color: var(--faint); }
.page-title { margin: 0 0 18px; font-size: 25px; font-weight: 650; letter-spacing: -.01em; }
.page-head .sub { margin: 4px 0 0; color: var(--muted); }
.intro { color: var(--muted); margin: -8px 0 16px; max-width: 80ch; }

/* ---------- search (Ctrl+K) ---------- */
dialog.search { width: min(620px, calc(100% - 32px)); margin-top: 12vh; padding: 0; border: 1px solid var(--border);
                border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: hidden; }
dialog.search::backdrop { background: rgba(5,13,21,.45); }
.search input { width: 100%; border: 0; border-bottom: 1px solid var(--border); padding: 16px 18px; font: inherit;
                font-size: 16px; outline: none; }
.search ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.search li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.search li.sel, .search li[data-i]:hover { background: var(--teal-soft); }
.search li.none { color: var(--muted); cursor: default; }
.search .k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); width: 76px; flex: none; }
.search small { margin-left: auto; color: var(--muted); }
.search-hint { margin: 0; padding: 8px 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }

/* ---------- dashboard ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
        padding: 15px 18px; display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
a.tile:hover { border-color: var(--teal); }
.tile.alert { border-left: 4px solid var(--danger); }
.tile.alert .tile-value { color: var(--danger); }
.tile-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.tile-value { font-size: 30px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tile-value small { font-size: 18px; color: var(--muted); font-weight: 500; }
.tile-sub { color: var(--muted); font-size: 13px; }
.dash { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dash .panel + .panel { margin-top: 0; }
.legend { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.lg-phone, .bar-phone { background: var(--teal); fill: var(--teal); }
.lg-device, .bar-device { background: var(--bar-device); fill: var(--bar-device); }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart .gridline { stroke: var(--line); }
.attn { list-style: none; margin: 0; padding: 0; }
.attn li { display: flex; gap: 12px; align-items: center; padding: 11px 0 11px 14px; border-bottom: 1px solid var(--line);
           border-left: 4px solid var(--warn); margin-bottom: 6px; border-radius: 2px; }
.attn li:last-child { border-bottom: 0; }
.attn li.bad { border-left-color: var(--danger); }
.attn li.info { border-left-color: var(--info); }
.attn b { display: block; font-weight: 600; }
.attn small { color: var(--muted); }
.attn a { margin-left: auto; color: var(--teal); font-weight: 600; text-decoration: none; white-space: nowrap; }
.more { display: inline-block; margin-top: 6px; color: var(--teal); font-weight: 600; text-decoration: none; }
.all-good { color: var(--pass); font-weight: 600; margin: 0; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
         padding: 18px 20px; }
.panel h2 { margin: 0 0 12px; font-size: 16px; }
.empty { color: var(--muted); margin: 0; }

/* ---------- data grids ---------- */
.grid { width: 100%; border-collapse: collapse; }
.grid th, .grid td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.grid th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
           background: var(--surface-2); font-weight: 700; border-bottom-color: var(--border); }
.grid tbody tr:hover { background: var(--surface-2); }
.nowrap { white-space: nowrap; }
.details-cell span { display: inline-block; margin-right: 10px; }

/* ---------- filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 12px; }
.chips-label { font-size: 12px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin: 0 2px 0 8px; }
.chips-label:first-child { margin-left: 0; }
.chip { height: 30px; display: inline-flex; align-items: center; border-radius: 99px; border: 1px solid var(--border);
        background: var(--surface); padding: 0 12px; font-size: 13px; color: var(--muted); text-decoration: none; font-weight: 500; }
.chip:hover { border-color: var(--faint); }
.chip.on { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-dark); font-weight: 600; }

/* ---------- sign-in / password pages ---------- */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px;
            background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #0E5E5A 100%); }
.auth-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: 12px;
             padding: 28px 28px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.auth-name { font-weight: 700; letter-spacing: .1em; color: var(--navy); }
.auth-sub { color: var(--muted); font-size: 13px; }
.auth-card h1 { font-size: 20px; margin: 0 0 14px; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.auth-card label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.auth-card input { font: inherit; padding: 9px 11px; border: 1px solid var(--border); border-radius: 6px; }
.auth-card input:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.auth-foot { text-align: center; color: var(--muted); font-size: 12px; margin: 18px 0 0; }
.hint { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.alert { background: var(--danger-bg); color: var(--danger); border-radius: 8px; padding: 9px 12px;
         font-size: 14px; margin: 0 0 12px; }

.btn { font: inherit; font-weight: 600; border-radius: 8px; padding: 8px 14px; cursor: pointer; border: 1px solid var(--border);
       background: var(--surface); color: var(--text); }
.btn:hover { border-color: var(--faint); background: var(--surface-2); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-dark); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.danger { color: var(--danger); border-color: #F5C4A8; }
.btn.danger:hover { background: var(--danger-bg); }
a.btn { display: inline-block; text-decoration: none; color: var(--text); }
a.btn.primary { color: #fff; }

/* ---------- page header, notices ---------- */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .page-title { margin: 0; }
.crumb { font-size: 13px; margin-bottom: 4px; }
.crumb a { text-decoration: none; }
.notice { background: var(--teal-soft); color: var(--teal-dark); border: 1px solid #A7E8DC; border-radius: 8px; padding: 9px 12px;
          margin: 0 0 16px; font-size: 14px; }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- filters and forms ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.filters label, .form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.filters input, .filters select, .form input, .form select {
  font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; min-width: 150px; }
.filters input:focus, .filters select:focus, .form input:focus, .form select:focus {
  outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.form { display: grid; gap: 14px; max-width: 520px; }
.form .help { font-weight: 400; color: var(--muted); font-size: 12px; }
.form .actions { display: flex; gap: 10px; }
.inline { display: inline; margin: 0; }
.inline-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.inline-form input { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; width: 150px; }

/* ---------- parameters ---------- */
.params { max-width: 860px; }
.params fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 16px 0 6px; }
.params legend { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); padding: 0 8px 0 0; }
.param { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 6px 18px; align-items: center; margin: 8px 0 12px; }
.param > label { font-weight: 600; text-align: right; }
.param .field { display: flex; align-items: center; gap: 8px; }
.param input { font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; width: 130px; }
.param input:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.param .help { grid-column: 2; margin: 0; color: var(--muted); font-size: 13px; max-width: 70ch; }
.req { color: var(--danger); }
.warn-text { color: var(--warn) !important; font-weight: 600; }
.params .actions { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- public holidays ---------- */
.check-panel { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
               border-left: 4px solid var(--warn); }
.check-panel p { margin: 4px 0 0; }
.check-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.check-actions form { margin: 0; }
.actions-cell { display: flex; gap: 6px; justify-content: flex-end; }
.filters label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.filters label.check input[type=checkbox] { min-width: 0; }
.filters label.check input[type=time] { min-width: 0; width: 110px; }
tr.muted td { color: var(--faint); }
.holiday-banner { background: var(--info-bg); color: var(--info); border-radius: 10px; padding: 10px 14px; margin: 0 0 16px;
                  font-weight: 600; }

/* ---------- shifts, timesheet ---------- */
.inline-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.days-grid { max-width: 520px; }
.days-grid td, .days-grid th { padding: 6px 10px; }
.days-grid input[type=time] { font: inherit; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; }
.days-grid input[type=time]:disabled { opacity: .4; }
.inline-form select { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; }
.timesheet td.num { text-align: right; font-variant-numeric: tabular-nums; }
.timesheet .emp-row td { background: var(--surface-2); border-top: 2px solid var(--border); padding-top: 12px; }
.timesheet .total-row td { font-weight: 700; border-bottom: 2px solid var(--border); }
.ts-banner { background: var(--warn-bg); color: var(--warn); border-left: 4px solid var(--warn); border-radius: 8px;
             padding: 10px 14px; margin: 0 0 16px; font-size: 14px; }
.ts-banner a { color: inherit; }
.ts-person { align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.ts-person h2 { margin: 6px 0 2px; }
.ts-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ts-chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; border: 1px solid var(--border);
           background: var(--surface); padding: 4px 12px; font-size: 13px; color: var(--muted); }
.ts-chip b { color: var(--text); }
.ts-chip.bad { background: var(--danger-bg); border-color: transparent; color: var(--danger); }
.ts-chip.warn { background: var(--warn-bg); border-color: transparent; color: var(--warn); }
.ts-chip.teal { background: var(--teal-soft); border-color: transparent; color: var(--teal-dark); }
.ts-chip.bad b, .ts-chip.warn b, .ts-chip.teal b { color: inherit; }
.ts-summary tr.clickable { cursor: pointer; }
.ts-summary tr.clickable:hover td { background: var(--surface-2); }
.ts-summary th.num { text-align: right; }
.params select { font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }

/* ---------- badges ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
         background: var(--off-bg); color: #475569; white-space: nowrap; }
.badge.on { background: var(--pass-bg); color: var(--pass); }
.badge.off { background: var(--off-bg); color: var(--off); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--danger-bg); color: var(--danger); }
.badge.teal { background: var(--teal-soft); color: var(--teal-dark); }
.badge.info-badge { background: var(--info-bg); color: var(--info); }

/* ---------- pagination, footer, terms ---------- */
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: 14px; }
.table-wrap { overflow-x: auto; }
.site-foot { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted);
             font-size: 12px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
.auth-foot a { color: var(--muted); }
body.doc { background: var(--bg); }
.doc-card { max-width: 820px; margin: 32px auto; background: #fff; border: 1px solid var(--border); border-radius: 12px;
            padding: 28px 34px; line-height: 1.55; }
.doc-card h1 { font-size: 22px; margin: 0 0 4px; }
.doc-card h2 { font-size: 15px; margin: 22px 0 6px; }
.doc-card p { margin: 0 0 8px; }
.owner { background: #F1F5F9; border-left: 4px solid var(--teal); padding: 10px 14px; border-radius: 4px; font-weight: 600; }

/* ---------- smaller screens ---------- */
@media (max-width: 1200px) {
  .search-btn { min-width: 0; }
  .search-btn .lbl, .search-btn kbd { display: none; }
  .who { display: none; }
}
@media (max-width: 1000px) { .dash { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 880px) {
  body.app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main"; }
  .modules, .co { display: none; }
  .burger { display: grid; place-items: center; }
  .topbar { gap: 10px; padding: 0 12px; }
  .sidebar { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; height: auto; width: min(300px, 86%);
             transform: translateX(-100%); transition: transform .2s; box-shadow: 8px 0 32px rgba(0,0,0,.2); }
  .sidebar.open { transform: none; }
  .side-mods { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
  .content { padding: 16px; }
  .param { grid-template-columns: minmax(0, 1fr); }
  .param > label { text-align: left; }
  .param .help { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }

/* ---------- employee page: reference photo ---------- */
.split { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 16px; align-items: start; }
.split .panel + .panel { margin-top: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ref-photo { display: block; width: 100%; max-width: 300px; aspect-ratio: 3 / 4; object-fit: cover;
             border-radius: 8px; border: 1px solid var(--border); background: var(--bg); }
.ref-photo.none { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.form input[type=file] { padding: 6px; }
.grid.details th { width: 40%; font-weight: 600; color: var(--muted); background: transparent; text-transform: none;
                   letter-spacing: 0; font-size: 14px; }
.photo-history { display: flex; flex-wrap: wrap; gap: 14px; }
.photo-history figure { margin: 0; width: 120px; }
.photo-history img { width: 120px; height: 160px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.thumb { width: 32px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); vertical-align: middle; }
code.big { font-size: 18px; padding: 2px 8px; background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.photo-pair { display: flex; flex-wrap: wrap; gap: 20px; }
.photo-pair figure { margin: 0; width: 260px; max-width: 100%; }
.photo-pair img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: #F1F5F9; }
.photo-pair .ref-photo.none { width: 100%; aspect-ratio: 3 / 4; }
