/* IDG Inspections, design v2 (design/v2/README.md and the mockups of design/v2/tirages).
   Identity: the green of the logo letters, the two greens of its leaves, pale leaves behind every screen, white cards
   with soft shadows, Poppins (local). Phone up to 599 px, iPad portrait 600 to 999, iPad landscape 1000 to 1299,
   computer from 1300. */

@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --g900: #12382a;          /* logo letters, headings */
  --g800: #1a4b31;          /* primary buttons, active tab */
  --g700: #235d3c;
  --g600: #2a7a3b;          /* links, "ready" */
  --leaf: #6ba749;
  --leaf-2: #98c337;
  --ink: #15261f;
  --text: #2e3d37;
  --muted: #4f5d57;         /* secondary text: AA on white and on the pale panels (outdoor use) */
  --faint: #5f6d67;
  --field: #7f9088;         /* the edge of what can be typed in or tapped: 3:1 on white */
  --line: #e2e9e5;
  --line-2: #cfdad4;
  --bg: #f5f8f6;
  --panel: #eef4f0;
  --panel-2: #f6f9f7;
  --mint: #e6f2e8;
  --card: #ffffff;
  --ok: #2e8540; --ok-bg: #e2f2e4; --ok-ink: #1d6b2e;
  --amber: #e8a317; --fair-bg: #fdf3d9; --fair-ink: #8a5800; --fair-line: #f3dca2;
  --red: #d1242a; --bad-bg: #fde7e6; --bad-ink: #b3151b; --bad-line: #f6c4c2;
  --blue-bg: #e6eefb; --blue-ink: #2b5fb4;
  --grey-bg: #edf0ee; --grey-ink: #55635d;
  --r: 14px; --r-lg: 18px; --r-sm: 10px;
  --sh: 0 1px 2px rgba(18, 56, 42, .05), 0 6px 18px rgba(18, 56, 42, .06);
  --sh-lg: 0 10px 40px rgba(18, 56, 42, .16);
  --tap: 48px;
  --pad: 32px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--g700); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased; }
/* The pale leaves behind every screen (fixed: iOS ignores background-attachment: fixed). */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: var(--bg) url('../assets/brand/leaves-wide.jpg') right bottom / cover no-repeat; pointer-events: none; }
@media (max-aspect-ratio: 1/1) { body::before { background-image: url('../assets/brand/leaves-tall.jpg'); } }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.2; font-weight: 600; }
h1 { font-size: 36px; letter-spacing: -.01em; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { margin: 0 0 10px; }
a { color: var(--g600); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 22px; height: 22px; flex: none; }
.chev { width: 20px; height: 20px; flex: none; color: var(--ink); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0; }
.note { color: var(--muted); font-size: 15px; }
.center { text-align: center; justify-content: center; }
.grow { flex: 1; min-width: 0; }
.urgent-word { color: var(--bad-ink); font-weight: 600; }
.spin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--g600); animation: spin .8s linear infinite; flex: none; }
.spin.big { width: 34px; height: 34px; border-width: 3.5px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- the logo */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--g900); }
.logo img { display: block; height: 40px; width: auto; }
.logo-sub { display: block; font-weight: 600; text-transform: uppercase; color: var(--g900); white-space: nowrap; }
.logo-bar .logo-sub { font-size: 11px; letter-spacing: .2em; margin: 5px 0 0 .2em; }
.logo-hero img { height: 116px; }
.logo-hero .logo-sub { font-size: 25px; letter-spacing: .34em; margin: 16px 0 0 .34em; }
.brandlogo img { display: block; height: 46px; width: auto; }
.logo-old { max-width: 280px; }
.motto { margin: 36px 0 0; text-align: center; text-transform: uppercase; letter-spacing: .3em; font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.75; }
.motto::after { content: ''; display: block; width: 44px; height: 2px; background: var(--leaf); margin: 18px auto 0; border-radius: 2px; }

/* ---------------------------------------------------------------- boot */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; }
.boot img { width: 190px; height: auto; }
.boot img.b-client { width: 64px; }
.boot p { margin: 0; text-transform: uppercase; letter-spacing: .34em; font-size: 15px; font-weight: 600; color: var(--g900); }
html[data-brand="client"] .boot .b-idg, html:not([data-brand="client"]) .boot .b-client { display: none; }

/* ---------------------------------------------------------------- buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: var(--tap); padding: 0 20px; border-radius: 12px; border: 1.5px solid var(--g800); background: var(--card); color: var(--g800);
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--mint); }
.btn:disabled { opacity: .5; cursor: default; }
.btn .ic { width: 20px; height: 20px; }
.btn.primary, .btn.dark { background: var(--g800); border-color: var(--g800); color: #fff; box-shadow: 0 2px 8px rgba(26, 75, 49, .18); }
.btn.primary:hover, .btn.dark:hover { background: var(--g700); }
.btn.ghost { border-color: var(--field); color: var(--ink); background: var(--card); }
.btn.ghost:hover { background: var(--panel-2); }
.btn.danger { border-color: #e7a9a6; color: var(--bad-ink); background: var(--card); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.wide-btn { width: 100%; }
.link { background: none; border: 0; padding: 0; min-height: 44px; color: var(--g600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.actions-row.with-hint .hint { margin: 0 0 0 8px; padding-left: 20px; border-left: 1px solid var(--line-2); }

.f { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; color: var(--text); min-width: 0; }
.fl { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.in { width: 100%; min-height: var(--tap); padding: 10px 14px; border: 1.5px solid var(--field); border-radius: 12px; background: var(--card); font-size: 16px; font-weight: 400; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.in::placeholder { color: var(--faint); }
.in:focus { outline: none; border-color: var(--g600); box-shadow: 0 0 0 3px rgba(42, 122, 59, .15); }
select.in { appearance: none; -webkit-appearance: none; padding-right: 42px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315261f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
textarea.in { resize: vertical; line-height: 1.45; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; }
form .grid2 + .f, form .f + .actions-row, .f-block { margin-top: 14px; }

/* ---------------------------------------------------------------- the bar at the top */
#app { min-height: 100vh; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 0 28px; padding: 12px var(--pad); padding-top: max(12px, env(safe-area-inset-top));
  background: #fff; border-bottom: 1px solid var(--line); }
/* Opaque: a frosted bar let the page's words read through it where the blur is not drawn (seen on iPhone, 21/11/2026). */
.brand { display: flex; align-items: center; text-decoration: none; flex: none; min-height: 44px; }
.nav { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nav a { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px; border-radius: 14px; color: var(--ink); font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap; transition: background .15s; }
.nav a:hover { background: var(--panel); }
.nav a .ic { width: 23px; height: 23px; }
.nav a[aria-current="page"] { background: var(--g800); color: #fff; font-weight: 600; box-shadow: 0 3px 10px rgba(26, 75, 49, .22); }
.nav .badge { position: absolute; top: 2px; right: 2px; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; line-height: 1; }
.top-break { display: none; }
.top-end { display: flex; align-items: center; gap: 18px; margin-left: auto; min-width: 0; }
.vsep { width: 1px; height: 38px; background: var(--line-2); }
.pill { display: inline-flex; align-items: center; gap: 8px; color: var(--g600); font-weight: 500; font-size: 15px; white-space: nowrap; min-width: 0; }
.pill .ic { width: 22px; height: 22px; }
.pill .saved { width: 24px; height: 24px; color: var(--g800); }
.pill.warn { color: var(--fair-ink); }
.pill.bad { color: var(--bad-ink); }
.pill > span { overflow: hidden; text-overflow: ellipsis; }
.who { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 4px; border: 0; background: none; cursor: pointer; color: var(--ink); font-weight: 500; font-size: 16px; }
.av, .avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--g800); color: #fff; font-weight: 600; font-size: 16px; flex: none; letter-spacing: .02em; }
.who .down { width: 20px; height: 20px; }
.who .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.who { min-width: 0; }
/* the offline state can fold to its icon where the bar is short of room; its words stay for screen readers */
.pill.icon-only > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* During an inspection: the way back, the logo, the save state (decision 2). */
.top.for-inspect { display: grid; grid-template-columns: 1fr auto 1fr; }
.top.for-inspect .crumb { margin: 0; justify-self: start; }
.top.for-inspect .pill { justify-self: end; background: var(--ok-bg); color: var(--ok-ink); padding: 0 16px; min-height: 44px; border-radius: 12px; }
.top.for-inspect .pill.warn { background: var(--fair-bg); color: var(--fair-ink); }
.top.for-inspect .pill.bad { background: var(--bad-bg); color: var(--bad-ink); }
.top.for-inspect .pill:not(.ok):not(.warn):not(.bad) { background: var(--panel); color: var(--muted); }
.top.for-inspect .pill .saved { color: var(--ok-ink); }
.top.for-inspect .pill > span { white-space: nowrap; }
.defs-block h3 small { white-space: nowrap; }

/* ---------------------------------------------------------------- banners and toasts */
#banners.has { padding: 14px var(--pad) 0; display: grid; gap: 10px; max-width: 1380px; margin: 0 auto; }
.banner { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); font-size: 15px; }
.banner::before { content: ''; flex: none; width: 10px; align-self: stretch; border-radius: 6px; background: var(--g600); }
.banner.warn { background: #fffaf0; border-color: var(--fair-line); }
.banner.warn::before { background: var(--amber); }
.banner.bad { background: #fff6f5; border-color: var(--bad-line); }
.banner.bad::before { background: var(--red); }
.banner.info { background: #f6fbf7; border-color: #cfe5d4; }
.banner.inline { margin-bottom: 16px; }
.banner .btn { flex: none; }
/* a banner of one line whose detail opens on demand (the storage warning) */
.banner.slim { padding-top: 8px; padding-bottom: 8px; }
.banner details summary { list-style: none; cursor: pointer; min-height: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.banner details summary::-webkit-details-marker { display: none; }
.banner details .more { color: var(--g600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.banner details[open] .more { display: none; }
.banner details p { margin: 6px 0 2px; }
#toasts { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; display: grid; gap: 10px; width: min(560px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r); background: var(--g900); color: #fff; font-size: 15px; font-weight: 500; box-shadow: var(--sh-lg); animation: rise .2s ease-out; }
.toast::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--leaf-2); }
.toast.bad { background: #7d1b17; }
.toast.bad::before { background: #ffb1ab; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------------------------------------------------------------- page frame */
main { max-width: 1440px; margin: 0 auto; padding: 24px var(--pad) 56px; }
#view.wide main { max-width: 1440px; }
.crumb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--g600); font-weight: 500; font-size: 17px; text-decoration: none; margin: -6px 0 2px; }
.crumb .ic { width: 22px; height: 22px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 22px; }
.page-head > div:first-child { min-width: 0; }
.page-head p { margin: 6px 0 0; font-size: 18px; color: var(--muted); }
.page-head .actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.page-head .actions .btn { min-height: 54px; font-size: 17px; padding: 0 24px; }
.dot-sep { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin: 0 10px; vertical-align: middle; opacity: .8; }
.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 20px 22px; margin-bottom: 18px; }
.card > h2, .panel > h2 { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.card > h2 .ic, .panel > h2 .ic { width: 24px; height: 24px; color: var(--g800); }
.panel { padding: 0; overflow: hidden; background: rgba(236, 242, 238, .92); border-color: #e1e9e4; }
.panel.alert { background: rgba(236, 242, 238, .92); border-color: #e1e9e4; }
.panel .row-link { border-color: transparent; box-shadow: 0 1px 2px rgba(18, 56, 42, .04); }
.panel.alert .row-link.def { background: var(--card); border-color: transparent; }
.panel > h2 { margin: 0; padding: 16px 22px; font-size: 19px; }
.panel.alert > h2 { color: var(--ink); }
.panel-body { padding: 0 12px 12px; }
.panel-sub { color: var(--muted); margin: -4px 22px 14px; font-size: 15px; }
.none-open { padding: 0 22px 18px; margin: 0; }
.card.empty { text-align: center; padding: 34px 22px; color: var(--muted); }
.card.empty > .ic { width: 36px; height: 36px; color: var(--g600); margin-bottom: 6px; }
.card.empty h2 { justify-content: center; }
.card.empty.bad > .ic { color: var(--red); }
.loading { padding: 20px 0; }
.list { display: grid; gap: 8px; }
.row-link { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
a.row-link:hover { border-color: var(--line-2); background: var(--panel-2); }
.row-link.wrap { flex-wrap: wrap; }
.dl-t { display: block; color: var(--ink); line-height: 1.35; }
.dl-m { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.dl-err { display: block; }
.tile-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--panel); color: var(--g800); flex: none; }
.tile-ic .ic { width: 22px; height: 22px; }
.row-btns { display: flex; gap: 8px; flex: none; }
.practice { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); font-size: 14px; font-weight: 600; vertical-align: middle; letter-spacing: 0; }
h1 .practice { font-size: 15px; margin-left: 8px; }

/* chips and tags */
.chip, .prio-tag, .status-tag, .rstat { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 4px 14px; min-height: 30px; border-radius: 8px; font-size: 15px; font-weight: 600; white-space: nowrap; line-height: 1.2; }
.chip .ic, .prio-tag .ic { width: 18px; height: 18px; }
.chip.good { background-color: var(--ok-bg); color: var(--ok-ink); }
.chip.fair { background-color: var(--fair-bg); color: var(--fair-ink); }
.chip.poor { background-color: var(--bad-bg); color: var(--bad-ink); }
.chip.none { background-color: var(--grey-bg); color: var(--grey-ink); font-weight: 500; }
/* one pill per priority, the same everywhere (U.prioTag): filled, square corners, its icon */
.prio-tag.urgent { background-color: var(--bad-bg); color: var(--bad-ink); }
.prio-tag.repair { background-color: var(--fair-bg); color: var(--fair-ink); }
.prio-tag.monitor { background-color: var(--blue-bg); color: var(--blue-ink); }
.prio-tag.none { background-color: var(--grey-bg); color: var(--grey-ink); font-weight: 500; }
.prio-tag.repair .ic { color: #a86a00; }
.prio-tag.monitor .ic { color: var(--blue-ink); }
/* where a piece of work stands (a deficiency's status, a report's review): round, white, a colored dot; never
   mistaken for a condition or a priority. Open is neutral. */
.status-tag, .rstat { border-radius: 999px; background-color: var(--card); border: 1.5px solid var(--line-2); color: var(--ink); font-weight: 500; }
.status-tag::before, .rstat::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status-tag.needs_estimate::before, .status-tag.quoted::before { background: var(--amber); }
.status-tag.approved::before { background: var(--blue-ink); }
.status-tag.repaired::before, .status-tag.closed::before { background: var(--ok); }
.status-tag.dismissed { color: var(--grey-ink); }
.rstat.to_review { border-color: var(--g700); color: var(--g800); font-weight: 600; }
.rstat.to_review::before { background: var(--g700); }
.rstat.reviewed { color: var(--grey-ink); }
.rstat.reviewed::before { background: var(--ok); }
/* the status of a deficiency, changed from the list: a real menu (its border and its arrow) */
select.status-tag { width: auto; min-width: 170px; min-height: 44px; font-size: 16px; border: 1.5px solid var(--field); border-radius: 12px; padding: 0 40px 0 16px; text-align: left; justify-content: flex-start; background-color: var(--card); font-weight: 600; }
select.status-tag.needs_estimate, select.status-tag.quoted { background-color: var(--fair-bg); }
select.status-tag.approved { background-color: var(--blue-bg); }
select.status-tag.repaired, select.status-tag.closed { background-color: var(--mint); }
select.status-tag.dismissed { background-color: var(--grey-bg); }
.state { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.state i { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.state.saved i { background: var(--amber); }
.state.waiting { color: var(--fair-ink); }
.state.waiting i { background: var(--amber); animation: pulse 1.4s ease-in-out infinite; }
.state.failed { color: var(--bad-ink); }
.state.failed i { background: var(--red); }
.state.received i, .state.reviewed i { background: var(--ok); }
.state.reviewed { color: var(--ok-ink); }
.state.plain { color: var(--text); white-space: normal; }
.state.plain i { display: none; }
@keyframes pulse { 50% { opacity: .35; } }
.bar { display: block; height: 12px; border-radius: 999px; background: #dfe5e2; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--g700); min-width: 12px; }

/* ---------------------------------------------------------------- sign-in, install, signing in */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; background: #e6efe3; overflow: hidden; }
.hero-photo { position: absolute; top: 0; bottom: 0; right: 0; left: 30%; background: url('../assets/brand/signin-photo.jpg') center / cover no-repeat; }
.hero-panel { position: relative; z-index: 1; width: 58%; min-height: 100%; display: flex; align-items: center; justify-content: center;
  border-radius: 0 12% 5% 0 / 0 66% 34% 0; box-shadow: 18px 0 60px rgba(18, 56, 42, .14);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 600'%3E%3Cg fill='%23cfe3c3' fill-opacity='.62'%3E%3Cpath d='M150 600 Q125 380 30 240 Q175 370 205 600Z'/%3E%3Cpath d='M205 600 Q205 320 300 110 Q262 360 252 600Z'/%3E%3Cpath d='M255 600 Q285 420 395 330 Q318 450 296 600Z'/%3E%3Cpath d='M95 600 Q55 480 0 430 Q85 480 140 600Z'/%3E%3C/g%3E%3C/svg%3E") right 4% bottom -4% / auto 74% no-repeat,
    linear-gradient(160deg, #f8fbf7 0%, #eef5ec 55%, #e6f0e3 100%); }
.hero-in { width: min(500px, 82%); padding: 48px 0; }
.hero .logo-hero { display: flex; margin: 0 auto 38px; width: max-content; }
.hero .logo-old { display: block; margin: 0 auto 32px; }
.hero .lead { font-size: 20px; line-height: 1.5; color: var(--ink); margin: 0 0 26px; }
.hero .code-f > span { font-size: 17px; color: var(--ink); }
.hero .code-in { min-height: 58px; font-size: 20px; letter-spacing: .06em; border-radius: 12px; text-transform: uppercase; }
.hero .code-in::placeholder { letter-spacing: .06em; }
.hero #signin .btn { margin-top: 18px; min-height: 58px; font-size: 20px; border-radius: 12px; }
.hero .note { margin: 16px 0 0; text-align: center; }
.signin-msg { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 0 0 18px; border-radius: 12px; background: var(--bad-bg); color: var(--bad-ink); font-weight: 500; }
.signin-msg .ic { margin-top: 1px; }
.h-wait { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 26px; text-align: center; margin-bottom: 14px; }
/* the logo stands at the same place on sign-in and on install: both start from the top, logo centered */
@media (min-width: 1000px) {
  .hero.signin .hero-panel, .hero.install .hero-panel, .hero.joining .hero-panel { align-items: flex-start; }
  .hero.signin .hero-in, .hero.install .hero-in, .hero.joining .hero-in { padding-top: max(48px, 11vh); }
}
.share-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--card); border: 1px solid var(--line-2); vertical-align: -8px; color: #1a73e8; }
.share-ic .ic { width: 20px; height: 20px; }
.share-ic.menu { color: var(--ink); }
/* where Share hides, by Safari version: said under the step, smaller, so the step itself stays one line to follow */
.step-hint { display: block; margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.step-hint .share-ic { width: 26px; height: 26px; vertical-align: -7px; }
.step-hint .share-ic .ic { width: 18px; height: 18px; }
.h-install { display: flex; gap: 18px; align-items: flex-start; font-size: 30px; line-height: 1.25; margin-bottom: 26px; }
.done-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--g800); color: #fff; flex: none; }
.done-ic .ic { width: 26px; height: 26px; }
.steps { list-style: none; margin: 0 0 22px; padding: 0; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding-left: 68px; font-size: 19px; line-height: 1.45; color: var(--ink); min-height: 40px; }
.steps li::before { content: counter(s); position: absolute; left: 6px; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--g800); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 17px; }
.steps b { font-weight: 600; }
.codebox-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 6px 6px 18px; background: var(--card); border: 1.5px solid var(--field); border-radius: 14px; width: max-content; max-width: 100%; }
.codebox-row .codebox { border: 0; padding: 0; margin: 0; background: none; font-size: 20px; word-break: normal; overflow-wrap: normal; white-space: nowrap; }
.codebox { font-family: var(--font); font-weight: 600; font-size: 19px; letter-spacing: .06em; color: var(--ink); background: var(--panel-2); border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 12px 16px; margin: 0 0 12px; word-break: break-all; user-select: all; -webkit-user-select: all; }
.codebox.link-box { font-size: 15px; letter-spacing: 0; font-weight: 500; }
.skip-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 18px; color: var(--g700); text-underline-offset: 5px; }
.skip-link .chev { color: var(--g700); }
.hero.install .motto { margin-top: 30px; }

/* ---------------------------------------------------------------- properties (technician home) */
.prop-list { display: grid; gap: 18px; }
.prop-row { display: flex; align-items: center; gap: 30px; padding: 18px 28px 18px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); text-decoration: none; color: var(--text); transition: box-shadow .15s, border-color .15s; }
.prop-row:hover { border-color: var(--line-2); box-shadow: 0 2px 4px rgba(18, 56, 42, .06), 0 12px 28px rgba(18, 56, 42, .09); }
.cover { flex: none; width: 272px; aspect-ratio: 272 / 127; border-radius: 10px; overflow: hidden; background: var(--panel); }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.prop-main { flex: 1; min-width: 0; display: grid; gap: 14px; }
.prop-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.prop-name b { font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1.15; }
.prop-name .practice { font-size: 16px; padding: 5px 16px; }
.prop-addr { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; margin-top: -8px; }
.prop-addr .ic { width: 18px; height: 18px; }
.stats { display: flex; flex-wrap: wrap; align-items: center; }
.stat { display: inline-flex; align-items: center; gap: 10px; padding: 2px 24px; font-size: 18px; color: var(--text); border-left: 1px solid var(--line-2); white-space: nowrap; }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat b { font-weight: 400; }
.stat b + span { margin-left: -4px; }
.stat .ic { width: 28px; height: 28px; }
.stat.ctls .ic { color: var(--faint); }
.stat .w-s { display: none; }
.stat.urgent { color: var(--bad-ink); font-weight: 500; }
.stat.urgent b { font-weight: 500; }
.stat.urgent.zero { color: var(--muted); font-weight: 400; }
.stat.urgent.zero b { font-weight: 400; }
.stat.ok.zero .ic { color: var(--faint); }
.ring-ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #9aa6a1; color: #fff; }
.ring-ic .ic { width: 18px; height: 18px; }
.stat.zero { color: var(--muted); }
.drafts-panel { margin-top: 22px; }

/* ---------------------------------------------------------------- a property */
.prop-head { align-items: center; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 44px; }
/* the progress of the initial inspection heads the controllers it counts, apart from the monthly inspection's button */
.prop-areas > .ph-progress { display: grid; grid-template-columns: auto minmax(160px, 1fr); align-items: center; gap: 8px 20px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); }
.prop-areas > .ph-progress p { margin: 0; }
.prop-head h1 { font-size: 44px; }
.prop-head .ph-title p { font-size: 18px; }
.ph-progress p { margin: 0 0 10px; font-size: 17px; color: var(--text); }
.ph-progress b { font-weight: 600; color: var(--ink); }
.prop-head .actions .btn { min-height: 58px; font-size: 18px; padding: 0 26px; }
.prop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 24px; align-items: start; }
.prop-areas { display: grid; gap: 14px; }
.area { background: rgba(236, 242, 238, .85); border-radius: var(--r-lg); padding: 14px 12px 12px; }
.area h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 6px 12px; font-size: 22px; }
.area h2 small { font-size: 17px; font-weight: 400; color: var(--muted); }
/* a fixed number of columns, so an area of six controllers fills whole rows: six on a computer, three on an iPad */
.ctl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ctl { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 14px 8px 12px; min-height: 128px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s; }
.ctl:hover { box-shadow: var(--sh); }
.ctl > .chev { display: none; }
.ctl-t { display: grid; line-height: 1.3; }
.ctl-t b { font-weight: 600; color: var(--ink); font-size: 16px; }
.ctl-t small { font-size: 14px; color: var(--muted); }
.ctl.todo .ctl-t small { display: none; }
.ctl-ic { display: grid; place-items: center; height: 36px; }
.ctl-ic .ic { width: 32px; height: 32px; }
.ctl-ic .ic.draft-ic, .ctl.draft .ctl-ic { color: var(--amber); }
.cond { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 32px; border-radius: 6px; font-weight: 500; font-size: 16px; }
.cond .ic { display: none; }
.cond.good { background: var(--ok-bg); color: var(--ok-ink); }
.cond.fair { background: #fbe8b8; color: #7a4f00; }
.cond.poor { background: #fbd5d3; color: var(--bad-ink); }
.cond.todo, .cond.draft { color: var(--muted); font-weight: 400; }
.cond.draft { color: var(--fair-ink); font-size: 14px; }
.ctl.fair { background: #fef8ea; border-color: #f5e3b5; }
.ctl.poor { background: #fdf0ef; border-color: #f7cdca; }
.tagline { font-size: 13px; color: var(--bad-ink); font-weight: 500; margin-top: -4px; }
.tagline.open { color: var(--fair-ink); }
.prop-side { display: grid; gap: 18px; position: sticky; top: 104px; }
.map-panel { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); background: var(--panel); }
.map-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.map-open img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.map-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 16px; background: var(--card); border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.map-h > span { display: inline-flex; align-items: center; gap: 8px; }
.map-h .ic { width: 20px; height: 20px; color: var(--g800); }
.defs-card { padding: 18px 16px 16px; }
.defs-card h2 { display: block; font-size: 19px; padding: 0 4px; }
.defs-card h2 em, .panel.alert h2 em { font-style: normal; color: var(--red); margin-left: 4px; }
.defs-card .none-open { padding: 0 4px; }
.row-link.def { align-items: flex-start; padding: 14px 14px 14px 16px; min-height: 64px; }
/* the row stays white: its priority pill carries the color */
.def-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--panel); color: var(--muted); flex: none; margin-top: 0; }
.def-ic .ic { width: 20px; height: 20px; }
.row-link.def.urgent .def-ic { background: var(--bad-bg); color: var(--bad-ink); }
.row-link.def.repair .def-ic { background: var(--fair-bg); color: #8a5800; }
.find-ref { margin: -4px 0 10px; font-size: 14px; color: var(--muted); }
.row-link.def .dl-t { font-size: 16px; }
.row-link.def .where { font-weight: 600; color: var(--ink); }
.row-link.def .prio-tag { margin-top: 2px; }
.row-link.def > .chev { align-self: center; }
.mon-ic { display: grid; place-items: center; border-radius: 50%; background: var(--blue-bg); color: var(--blue-ink); flex: none; }
.mon-ic .ic { width: 18px; height: 18px; }
.add-ctl { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }

/* ---------------------------------------------------------------- a controller */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.col { display: grid; gap: 20px; }
.col > .panel, .two-col > .panel { margin: 0; }
.kv { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 0; margin: 0; }
dl.kv dt, dl.kv dd { padding: 13px 10px; border-bottom: 1px solid var(--line); margin: 0; }
dl.kv dt { color: var(--muted); font-size: 15px; }
dl.kv dd { color: var(--ink); font-weight: 400; }
.panel dl.kv { background: var(--card); border-radius: 12px; padding: 4px 16px; }
.reg-empty { display: flex; gap: 10px; align-items: flex-start; margin: 10px 4px 2px; color: var(--muted); font-size: 15px; }
.reg-empty .ic { width: 20px; height: 20px; flex: none; margin-top: 2px; }
dl.kv dt:last-of-type, dl.kv dd:last-of-type { border-bottom: 0; }
.insp-row .cond-l { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.insp-row .cond-l .w-l { display: none; }
.insp-row .cond-l .chip { min-width: 110px; min-height: 36px; }
.rep-tags { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.insp-row .dl-t { font-size: 17px; }

/* ---------------------------------------------------------------- the inspection */
#view.wide .insp { max-width: 1480px; margin: 0 auto; }
.insp { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 24px; padding: 20px var(--pad) 48px; align-items: start; }
.iside { position: sticky; top: 92px; display: grid; gap: 16px; max-height: calc(100vh - 110px); overflow: auto; padding: 4px 2px 8px; }
.ihead h1 { font-size: 34px; line-height: 1.15; }
.i-pre { display: block; font-size: 22px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.i-comma { display: none; }
.i-form { margin: 8px 0 12px; color: var(--muted); font-size: 18px; line-height: 1.35; }
.i-meta { display: grid; gap: 8px; margin: 0; font-size: 16px; color: var(--text); }
.i-meta span { display: inline-flex; align-items: center; gap: 10px; }
.i-meta .ic { color: var(--ink); width: 22px; height: 22px; }
.rail { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.rail button { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 14px; border: 1px solid transparent; background: var(--panel); color: var(--ink); text-align: left; cursor: pointer; font-weight: 500; font-size: 16px; line-height: 1.3; }
.rail button:hover { border-color: var(--line-2); }
/* a step's dot tells its state: to do (empty ring), started (half), complete (tick), a deficiency or missing details (!) */
.dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 17px; flex: none; box-sizing: border-box; }
.dot .ic { width: 20px; height: 20px; }
.dot.todo, .rail .todo .dot { background: var(--card); border: 2.5px solid var(--field); }
.dot.part, .rail .part .dot { background: linear-gradient(90deg, var(--g700) 50%, var(--card) 50%); border: 2.5px solid var(--g700); }
.dot.done, .rail .done .dot { background: var(--ok); }
.dot.warn, .rail .warn .dot { background: var(--amber); color: #3b2600; }
.rail button.done { background: #e5f1e7; }
.rail small { font-size: 15px; color: var(--text); white-space: nowrap; text-align: right; line-height: 1.25; }
.rail small em, .sec-p em { font-style: normal; font-weight: 600; color: var(--fair-ink); }
.rail button[aria-current="true"] small em { color: #ffe3a3; }
.railfold { display: none; }
/* in the column of steps beside the checklist, the count goes under its title (beside it, a long one ran over the title) */
@media (min-width: 1000px) {
  .rail button { grid-template-columns: 34px minmax(0, 1fr) 18px; grid-template-areas: 'd t c' 'd s c'; row-gap: 2px; }
  .rail button > .dot { grid-area: d; }
  .rail button > .rt { grid-area: t; }
  .rail button > small { grid-area: s; text-align: left; white-space: normal; font-size: 14px; }
  .rail button > .chev { grid-area: c; }
}
.rail .chev { width: 18px; height: 18px; }
.rail button[aria-current="true"] { background: var(--g800); color: #fff; box-shadow: 0 6px 16px rgba(26, 75, 49, .22); }
.rail button[aria-current="true"] .dot { border-color: #fff; }
.rail button[aria-current="true"].todo .dot { background: transparent; }
.rail button[aria-current="true"].part .dot { background: linear-gradient(90deg, #fff 50%, transparent 50%); }
.rail button[aria-current="true"] small, .rail button[aria-current="true"] .chev { color: #fff; }
.pane { min-width: 0; }
.sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); overflow: hidden; margin-bottom: 18px; }
.sec-h { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: #e8f1ea; border-bottom: 1px solid var(--line); font-size: 20px; }
.sec-h .dot { width: 38px; height: 38px; }
.sec-t { flex: 1; min-width: 0; }
.sec-p { font-size: 17px; font-weight: 500; color: var(--text); white-space: nowrap; }
.req { color: var(--bad-ink); font-weight: 600; margin-left: 6px; }
/* a detail a line marked Done still needs (manufacturer, model): an amber edge and the word */
.need-t { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: var(--fair-bg, #fdf3dc); color: var(--fair-ink); font-weight: 600; font-size: 13px; line-height: 22px; }
.in.need { border-color: var(--amber); background: #fffbf0; }
.sec-body { padding: 4px 0; }
.sec-foot { margin: -6px 4px 18px; }
/* a checklist row (a_inspect_tab): number and label, the answers in one group, the camera; notes under it */
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto 52px; grid-template-areas: 'q a c' 'n n n'; align-items: center; gap: 10px 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
/* the answers and the camera travel together; below 1000 px they are placed by the grid above as before */
.ac { display: contents; }
/* Placed by name in a checklist row only. Named for every .answers and .cam, these areas made columns of their own in
   the grids that have none (a deficiency already open, a station): its notes ended one letter wide. */
.line > .q { grid-area: q; }
.line > .ac > .answers { grid-area: a; }
.line > .ac > .cam { grid-area: c; }
.line > .notes { grid-area: n; }
/* Beside the steps (1000 px and more) the room left for a row depends on the iPad and on how many answers the check has:
   the question keeps at least 220 px, otherwise its answers and camera go under it and take the whole row. (A check with
   four answers used to push its question under the buttons on an iPad in landscape: seen on the demo film.) */
@media (min-width: 1000px) {
  .line { display: flex; flex-wrap: wrap; }
  .line > .q { flex: 999 1 220px; min-width: 0; }
  .line > .ac { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; min-width: 0; max-width: 100%; }
  .line > .ac > .answers { flex: 1 1 auto; min-width: 0; }
  /* a button never gets narrower than its longest word: the answers of several words give way first, on two lines */
  .line > .ac .ans { flex: 1 1 auto; min-width: min-content; white-space: normal; line-height: 1.2; padding-top: 6px; padding-bottom: 6px; }
  .line > .ac > .cam { flex: none; }
  .line > .notes, .line > .fields, .line > .defect, .line > .thumbs { flex: 1 1 100%; min-width: 0; }
}
/* the narrowest rows beside the steps (an iPad Pro 13" held upright): four answers and the camera need tighter buttons */
@media (min-width: 1000px) and (max-width: 1099px) { .line > .ac { gap: 10px; } .line > .ac .ans { padding: 6px 9px; gap: 6px; font-size: 15px; } .line > .ac .ans::before { width: 20px; height: 20px; } }
.line.is-issue { background: #fffdfd; }
.q { display: flex; gap: 14px; align-items: baseline; color: var(--ink); font-size: 17px; line-height: 1.35; }
.q .no { flex: none; min-width: 34px; font-weight: 600; }
.answers { display: flex; border: 1.5px solid var(--field); border-radius: 12px; overflow: hidden; background: var(--card); align-self: center; }
.ans { display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 0 16px; border: 0; border-left: 1.5px solid var(--field); background: var(--card); color: var(--ink); font-size: 16px; font-weight: 500; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.ans:first-child { border-left: 0; }
.ans::before { content: ''; flex: none; width: 22px; height: 22px; background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat; }
.ans.ok::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M7.6 12.3l3 3 5.8-6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M7.6 12.3l3 3 5.8-6'/%3E%3C/svg%3E"); }
.ans.issue::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.2v6'/%3E%3Ccircle cx='12' cy='16.6' r='.6' fill='%23000'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.2v6'/%3E%3Ccircle cx='12' cy='16.6' r='.6' fill='%23000'/%3E%3C/svg%3E"); }
.ans:hover { background: var(--panel-2); }
.ans[aria-pressed="true"] { font-weight: 600; color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 2px var(--field); }
.ans[aria-pressed="true"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cmask id='m'%3E%3Crect width='24' height='24' fill='%23fff'/%3E%3Ccircle cx='12' cy='12' r='4' fill='%23000'/%3E%3C/mask%3E%3Ccircle cx='12' cy='12' r='10.5' fill='%23000' mask='url(%23m)'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cmask id='m'%3E%3Crect width='24' height='24' fill='%23fff'/%3E%3Ccircle cx='12' cy='12' r='4' fill='%23000'/%3E%3C/mask%3E%3Ccircle cx='12' cy='12' r='10.5' fill='%23000' mask='url(%23m)'/%3E%3C/svg%3E"); background: var(--muted); }
.ans.ok[aria-pressed="true"] { background: var(--ok-bg); color: var(--ok-ink); box-shadow: inset 0 0 0 2px #8cc897; }
.ans.ok[aria-pressed="true"]::before { background: var(--ok); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cmask id='m'%3E%3Crect width='24' height='24' fill='%23fff'/%3E%3Cpath d='M7.2 12.4l3.2 3.2 6.4-6.6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Ccircle cx='12' cy='12' r='11' fill='%23000' mask='url(%23m)'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cmask id='m'%3E%3Crect width='24' height='24' fill='%23fff'/%3E%3Cpath d='M7.2 12.4l3.2 3.2 6.4-6.6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Ccircle cx='12' cy='12' r='11' fill='%23000' mask='url(%23m)'/%3E%3C/svg%3E"); }
.ans.issue[aria-pressed="true"] { background: var(--bad-bg); color: var(--bad-ink); box-shadow: inset 0 0 0 2px #f0a19d; }
.ans.issue[aria-pressed="true"]::before { background: var(--red); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cmask id='m'%3E%3Crect width='24' height='24' fill='%23fff'/%3E%3Cpath d='M12 6.6v7.2' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.3' r='1.5' fill='%23000'/%3E%3C/mask%3E%3Ccircle cx='12' cy='12' r='11' fill='%23000' mask='url(%23m)'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cmask id='m'%3E%3Crect width='24' height='24' fill='%23fff'/%3E%3Cpath d='M12 6.6v7.2' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.3' r='1.5' fill='%23000'/%3E%3C/mask%3E%3Ccircle cx='12' cy='12' r='11' fill='%23000' mask='url(%23m)'/%3E%3C/svg%3E"); }
.ans.absent[aria-pressed="true"] { background: var(--blue-bg); color: var(--blue-ink); box-shadow: inset 0 0 0 2px #b9cdf0; }
.ans.absent[aria-pressed="true"]::before { background: var(--blue-ink); }
.cam { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; border: 1.5px solid var(--field); background: var(--card); color: var(--ink); cursor: pointer; justify-self: end; }
.cam:hover { background: var(--panel-2); }
.cam .ic { width: 26px; height: 26px; }
.cam input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.cam .badge { position: absolute; top: -8px; right: -8px; background: var(--ok); border: 2px solid #fff; height: 24px; min-width: 24px; }
.notes { padding-left: 48px; }
.notes .in { min-height: 46px; padding: 10px 14px; border-radius: 10px; background: var(--panel-2); border-color: var(--line); }
.notes .in:focus { background: #fff; }
.fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; padding-left: 48px; }
.choice { grid-column: 1 / -1; }
.other-in { margin-top: 10px; }
.defect { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 18px; margin-left: 48px; padding: 16px 18px; border-radius: 14px; background: #f2f5f3; border: 1px solid var(--line); }
.defect .f { font-size: 14px; color: var(--muted); }
.defect .wide, .defect .ph-f, .defect .geo-row, .defect .hint.wide { grid-column: 1 / -1; }
.prio-f select { font-weight: 500; }
.ph-f .hint { margin: 0; }
.geo-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.geo { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--field); font-weight: 500; color: var(--ink); font-size: 15px; }
.geo .ic { width: 22px; height: 22px; color: var(--g800); }
.geo.ok { background: var(--mint); border-color: #bfe0c6; }
.geo.rough { background: var(--fair-bg); border-color: var(--fair-line); }
.geo.off { color: var(--muted); }
.geo.off .ic { color: var(--faint); }
.geo.wait { color: var(--muted); border-style: dashed; }
.thumbs { display: flex; flex-wrap: wrap; gap: 12px; }
.thumbs:empty { display: none; }
.line > .thumbs { grid-column: 1 / -1; padding-left: 48px; }
.thumb { position: relative; display: block; width: 150px; height: 112px; }
.ph-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--panel); cursor: zoom-in; }
.ph-open img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-del { position: absolute; top: -10px; right: -10px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: var(--g900); color: #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.ph-del .ic { width: 16px; height: 16px; }
/* other blocks of a section: choices as tiles, text, tables, the summary */
.block { padding: 16px 18px; margin: 14px 16px; background: #f1f6f2; border: 1px solid #e3ebe6; border-radius: 14px; }
.sec-body > .block:last-child { margin-bottom: 16px; }
.line + .block { margin-top: 16px; }
.block > h3, .block > label > h3 { margin-bottom: 12px; font-size: 18px; }
.block > h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.block > h3 small { font-size: 15px; font-weight: 400; color: var(--muted); }
.block .val { margin: 0; font-size: 17px; color: var(--ink); }
.block .date-in { max-width: 280px; }
.legend .hint { margin: 2px 0; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.seg button { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 16px; border-radius: 12px; border: 1.5px solid var(--field); background: var(--card); color: var(--ink); font-size: 16px; font-weight: 500; text-align: left; cursor: pointer; line-height: 1.25; }
.seg button::before { content: ''; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--field); background: #fff; box-sizing: border-box; }
/* Four choices with a long word go two by two up to 1299 px: beside the steps (iPad in landscape) four across left
   "Repair recommended" touching the edge of its button. */
@media (min-width: 600px) and (max-width: 1299px) { .seg.long { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seg button:hover { background: var(--panel-2); }
.seg button[aria-pressed="true"] { background: var(--mint); border-color: #a9d3b2; font-weight: 600; }
.seg button[aria-pressed="true"]::before { border: 7px solid var(--g800); }
.cond-seg button[aria-pressed="true"][data-o="fair"], .prio-seg button[aria-pressed="true"][data-o^="repair"] { background: var(--fair-bg); border-color: var(--fair-line); }
.cond-seg button[aria-pressed="true"][data-o="poor"], .cond-seg button[aria-pressed="true"][data-o="not-operational"], .prio-seg button[aria-pressed="true"][data-o="urgent"] { background: var(--bad-bg); border-color: var(--bad-line); }
.cond-seg button[aria-pressed="true"][data-o="poor"]::before, .cond-seg button[aria-pressed="true"][data-o="not-operational"]::before, .prio-seg button[aria-pressed="true"][data-o="urgent"]::before { border-color: var(--red); }
.exlist { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.exlist.numbered { list-style: none; padding: 0; counter-reset: e; gap: 10px; margin-bottom: 14px; }
.exlist.numbered li { counter-increment: e; position: relative; padding: 12px 16px 12px 60px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 16px; }
.exlist.numbered li::before { content: counter(e); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 8px; background: var(--panel); display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.trow { margin: 12px 0 0 0; background: var(--panel-2); }
.trow-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.trow-h b { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.rn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--g800); color: #fff; font-size: 14px; }
.trow-acts { display: flex; gap: 10px; align-items: center; }
.trow-acts .cam { width: 48px; height: 48px; }
.block > .actions-row { margin-top: 14px; }
/* stations */
.st-body { padding: 16px 20px 20px; }
.count-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.count-row .f { width: 220px; }
.count-row .grow { flex: 1; min-width: 200px; }
.check { display: inline-flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--field); background: var(--card); color: var(--ink); font-weight: 500; cursor: pointer; }
.check .box, .acc .box { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--field); background: #fff; color: #fff; flex: none; }
.check[aria-pressed="true"] { background: var(--mint); border-color: #a9d3b2; }
.check[aria-pressed="true"] .box, .acc[aria-pressed="true"] .box { background: var(--g800); border-color: var(--g800); }
.check .box .ic, .acc .box .ic { width: 16px; height: 16px; }
.stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; margin: 14px 0; }
.st { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 72px; padding: 6px; border-radius: 12px; border: 1.5px solid var(--field); background: var(--card); color: var(--ink); font-weight: 600; font-size: 20px; cursor: pointer; line-height: 1.1; }
.st small { font-size: 12px; font-weight: 500; color: var(--muted); text-align: center; }
.st.ok { background: var(--ok-bg); border-color: #a8d6b1; color: var(--ok-ink); }
.st.ok small { color: var(--ok-ink); }
.st.issue { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad-ink); }
.st.issue small { color: var(--bad-ink); }
.st.exception { background: var(--fair-bg); border-color: var(--fair-line); color: var(--fair-ink); }
.st.absent { background: var(--grey-bg); color: var(--grey-ink); }
.st[aria-pressed="true"] { border-color: var(--g800); box-shadow: 0 0 0 3px rgba(26, 75, 49, .22); }
.st-panel { padding: 18px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); display: grid; gap: 14px; }
.st-panel h3 { font-size: 18px; }
.st-panel .answers { justify-self: start; max-width: 100%; }
.st-panel .defect { margin-left: 0; }
/* Checklist version 2 (mockups design/v2/tirages/h_multidef_*, h_ohms_*, h_safety_*). */
.def-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.def-h b { color: var(--bad-ink); font-size: 16px; }
.defect.more-def { background: var(--fair-bg); border-color: var(--fair-line); margin-top: 10px; }
.defect.more-def .def-h b { color: var(--fair-ink); }
.defect.safety-def { background: var(--card); border-color: var(--line); margin-left: 0; margin-top: 12px; }
.defect.safety-def .def-h b { color: var(--ink); }
.safety-body .add-def { margin-left: 0; }
.del-def { color: var(--bad-ink); }
.add-def { grid-column: 1 / -1; margin: 10px 0 0 48px; }
@media (min-width: 1000px) { .line > .add-def, .line > .more-def { flex: 1 1 100%; min-width: 0; } }
.safety-body { padding: 16px 20px 20px; }
.fields.equip { margin-left: 48px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding-left: 14px; }
.add-def .btn { width: 100%; justify-content: center; border-style: solid; color: var(--g800); }
.st-panel .add-def, .st-panel .more-def { margin-left: 0; }
.fields.equip { padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.ohm-in { display: flex; align-items: stretch; }
.ohm-in .in { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; width: 100%; }
.ohm-u { display: grid; place-items: center; min-width: 44px; padding: 0 10px; border: 1.5px solid var(--field); border-left: 0; border-radius: 0 12px 12px 0; background: var(--panel-2); color: var(--muted); font-weight: 600; }
.ohm-n { margin-left: 6px; color: var(--muted); font-weight: 500; }
.ohms-all { display: grid; gap: 10px; }
.ohms-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ohms-h h3 { font-size: 19px; }
.ohm-count { color: var(--muted); font-weight: 600; }
.ohms-t { width: 100%; border-collapse: collapse; }
.ohms-t th, .ohms-t td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ohms-t thead th { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ohms-t tbody th { width: 64px; font-weight: 700; color: var(--ink); }
.ohms-t td:last-child { width: 200px; }
.ohms-done { justify-self: stretch; min-height: 54px; font-size: 18px; justify-content: center; }
.safety-body > .hint { margin: 0 0 4px; }
.safety-tag { display: inline-block; margin: 0 8px 4px 0; padding: 2px 9px; border-radius: 999px; background: var(--bad-bg); color: var(--bad-ink); border: 1px solid var(--bad-line); font-size: 12.5px; font-weight: 700; }
.st-note { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 10px; align-items: start; }
.st-note .cam { justify-self: auto; }
/* A station answered "Deficiency": its finding is the card's first field, its camera sits beside its photos in the card. */
.ph-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.ph-row .cam { flex: none; justify-self: auto; }
.ph-row .hint { margin: 0; }
/* 2.8 and 2.9: a location is a phrase, it takes the whole row of details (it was cut to a quarter of it). */
.fields .loc-f { grid-column: 1 / -1; }
/* 1.1 read from the register ("On file", R9): a state of its own, in blue, neither Done (green) nor an exception (amber). */
.line > .onfile { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; padding-left: 48px; }
.onfile-state { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 13px 0 10px; border-radius: 999px; background: var(--blue-bg); color: var(--blue-ink); border: 1px solid #b9cdf0; font-weight: 600; font-size: 14.5px; }
.onfile-state .ic { width: 18px; height: 18px; }
.onfile-t { flex: 1 1 260px; min-width: 0; color: var(--muted); font-size: 14.5px; line-height: 1.35; }
@media (min-width: 1000px) { .line > .onfile { flex: 1 1 100%; min-width: 0; } }
/* A safety issue in the summary's list and among the deficiencies already open: the mark the report and the office show. */
.exlist .safety-tag { margin: 0 8px 0 0; vertical-align: 1px; }
.known .what .safety-tag { margin: 0 0 4px; }
/* deficiencies already open */
/* A deficiency already open: what it is keeps at least 260 px, otherwise its answers go under it and take the row
   (beside three answers it was left with a few pixels on an iPad held upright). */
.known { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.known > .what { flex: 999 1 260px; min-width: 0; }
.known > .answers { flex: 1 1 auto; max-width: 100%; }
.known > .answers .ans { flex: 1 1 auto; }
.known > .more, .known > .thumbs { flex: 1 1 100%; min-width: 0; }
.known:last-child { border-bottom: 0; }
.known .what b { display: block; color: var(--ink); font-weight: 600; }
.known .what .small { display: block; margin-top: 2px; }
.known .more { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 10px; }
.known .more .cam { justify-self: auto; }
/* next and submit */
.nextbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 4px; }
.nextbar .btn.ghost { min-height: 52px; }
.nextbar .btn.next { min-height: 62px; padding: 0 34px; font-size: 21px; border-radius: 14px; min-width: min(360px, 60%); justify-content: space-between; gap: 18px; }
.nextbar .btn.next .ic { width: 24px; height: 24px; min-width: 0; }
.finish { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 22px; margin-bottom: 18px; }
.finish h3 { font-size: 20px; margin-bottom: 10px; }
.finish p { color: var(--text); }
.send-btn { width: 100%; min-height: 66px; margin-top: 18px; font-size: 21px; border-radius: 14px; }
.send-btn .ic { width: 26px; height: 26px; }
.finish .hint.center { text-align: center; margin-top: 12px; }
.finish .actions-row { margin-top: 6px; }
.dialog.making { text-align: center; display: grid; justify-items: center; gap: 10px; }

/* ---------------------------------------------------------------- a report */
/* the review beside the report, from the top of the page: "Mark as reviewed" is on screen without scrolling */
.rp.with-review { display: grid; grid-template-columns: minmax(0, 1fr) 420px; column-gap: 22px; align-items: start; }
.rp.with-review > .rp-head, .rp.with-review > .rp-body { grid-column: 1; min-width: 0; }
.rp.with-review > .review-panel { grid-column: 2; grid-row: 1 / span 2; }
.rp-main { min-width: 0; }
.rp .page-head h1 { font-size: 38px; }
.facts { display: grid; gap: 14px; margin-bottom: 18px; }
.fact { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.fact > .ic { width: 28px; height: 28px; color: var(--ink); flex: none; margin-top: 2px; }
.fact-b { min-width: 0; display: grid; gap: 4px; }
.fact .fl { margin: 0; font-size: 14px; color: var(--muted); font-weight: 500; }
.fn { font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.fv { color: var(--ink); font-size: 15px; }
.fact-list { margin: 4px 0 0; padding-left: 18px; font-size: 15px; color: var(--text); display: grid; gap: 4px; }
.facts.lead { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) minmax(0, 2.9fr); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 18px 6px; }
.facts.lead .fact { padding: 0 18px; border-left: 1px solid var(--line); }
.facts.lead .fact:first-child { border-left: 0; }
.counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.cnt { display: grid; align-content: start; gap: 4px; padding: 0 16px; min-width: 0; }
.cnt + .cnt { border-left: 1px solid var(--line); }
.cnt b { font-size: 28px; font-weight: 600; line-height: 1.05; color: var(--ink); }
.cnt span { font-size: 14px; line-height: 1.3; color: var(--muted); font-weight: 500; }
.cnt em { display: block; margin-top: 2px; font-style: normal; font-weight: 600; color: var(--bad-ink); }
.cnt.hot b { color: #8a5800; }
.cnt.zero b { color: var(--muted); font-weight: 500; }
.cnt.light b { font-size: 22px; font-weight: 500; color: var(--text); margin-top: 4px; }
.facts.lead .fact > .ic { display: none; }
.status-fact .fact-b { grid-template-columns: auto auto; justify-content: start; column-gap: 12px; align-items: center; }
.status-fact .fl { grid-column: 1 / -1; }
.status-fact .state.plain { font-size: 15px; display: block; color: var(--ink); }
.st-when { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.status-fact .rstat { align-self: start; }
/* beside the review panel the band is narrower: the counts take a row of their own under status and condition */
@media (min-width: 1000px) {
  .rp.with-review .facts.lead { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); row-gap: 16px; }
  .rp.with-review .counts { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; margin: 0 6px; }
  .rp.with-review .cnt:first-child { padding-left: 12px; }
}
.finds { padding: 18px 20px 6px; }
.finds > h2 { font-size: 22px; }
.find { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.finds > h2 + .find { border-top: 0; padding-top: 4px; }
.fnum { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--panel); font-weight: 600; font-size: 18px; color: var(--ink); }
.find-b h3 { font-size: 18px; margin-bottom: 8px; }
.find-b .prio-tag { margin-bottom: 10px; }
.find-b .fl { margin: 6px 0 2px; font-size: 14px; }
.fact-act { margin: 0 0 6px; color: var(--ink); }
.find-geo { display: grid; grid-template-columns: 20px auto auto; justify-content: start; align-items: center; gap: 4px 10px; margin: 6px 0 0; font-size: 15px; }
.find-geo > .ic { width: 20px; height: 20px; color: var(--g800); }
.maplink { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.maplink .ic { width: 18px; height: 18px; }
.find-ph { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; max-width: 480px; }
.ph { display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--panel); cursor: zoom-in; width: 226px; aspect-ratio: 4 / 3; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.facts.details { display: flex; flex-wrap: wrap; }
.facts.details > .fact { flex: 1 1 240px; min-width: 0; }
.facts.details > .long { order: 1; }
.facts.details > .photos-fact { order: 2; }
.facts.details .fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 18px 20px; }
.facts.details .fact > .ic { display: none; }
.facts.details .fn { font-size: 24px; }
.photos-fact, .facts.details .long { grid-column: 1 / -1; flex-basis: 100% !important; }
.facts.details .long .fact-list { columns: 2 280px; column-gap: 36px; display: block; }
.facts.details .long .fact-list li { break-inside: avoid; margin-bottom: 4px; }
.photos-fact .fn { display: none; }
.strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.strip .ph { width: 140px; }
.strip .more { display: grid; place-items: center; width: 90px; border-radius: 10px; background: var(--panel); font-size: 20px; font-weight: 500; color: var(--muted); }
.facts.deliv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts.deliv .fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.facts.deliv .fact > .ic { width: 22px; height: 22px; color: var(--g800); }
/* the manager review */
.review-panel { position: sticky; top: 100px; padding: 20px 22px; margin: 0; }
.review-panel h2 { margin-bottom: 8px; }
#rvform h2 { font-size: 22px; margin-bottom: 16px; }
.rv-items { display: grid; }
.rv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.rv-q { font-size: 15px; color: var(--ink); }
.rv-yn { display: flex; border: 1.5px solid var(--field); border-radius: 10px; overflow: hidden; flex: none; }
.yn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-left: 1.5px solid var(--field); background: var(--card); color: var(--text); font-size: 15px; cursor: pointer; }
.yn:first-child { border-left: 0; }
.yn i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--field); box-sizing: border-box; }
.yn[aria-pressed="true"] { background: var(--mint); color: var(--g800); font-weight: 600; }
.yn[aria-pressed="true"] i { border: 6px solid var(--g800); }
.rv-fields { display: grid; gap: 10px; margin-top: 12px; }
.rv-fields .f { font-weight: 600; color: var(--ink); }
.rv-fields .btn { min-height: 54px; font-size: 18px; }
.rv-info { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: #eef4fb; }
.rv-info .ic { color: var(--blue-ink); margin-top: 2px; }
.rv-info .hint { margin: 0; color: var(--text); font-size: 15px; }

/* ---------------------------------------------------------------- tables (office) */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 14px; flex: 1; min-width: 0; }
.filters .in { width: 280px; max-width: 100%; }
.toolbar.filters { flex: none; }
.defs-bar { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.viewseg { display: flex; grid-template-columns: none; gap: 0; border: 1px solid var(--field); border-radius: 12px; overflow: hidden; background: var(--card); }
.viewseg button { min-height: 48px; padding: 0 22px; border: 0; border-radius: 0; gap: 10px; font-weight: 500; }
.viewseg button::before { display: none; }
.viewseg button[aria-pressed="true"] { background: var(--g800); color: #fff; }
.viewseg button .ic { width: 22px; height: 22px; }
.tablewrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); overflow-x: auto; margin-bottom: 22px; }
.tablewrap.inner { border-radius: var(--r); box-shadow: none; margin-bottom: 0; }
table.t { width: 100%; border-collapse: collapse; font-size: 16px; }
table.t th { text-align: left; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f3f6f4; padding: 16px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink); }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: #fbfcfb; }
table.t td a { color: var(--ink); text-decoration: none; font-weight: 500; }
table.t td a:hover { color: var(--g600); text-decoration: underline; }
table.t .maplink { color: var(--g600); font-weight: 500; }
.m-l, .m-where, .m-date, .m-chev, .m-ic { display: none; }
.cbx-cell { width: 56px; }
.cbx-cell label { display: grid; place-items: center; min-height: 44px; min-width: 44px; cursor: pointer; }
.cbx { width: 22px; height: 22px; accent-color: var(--g800); cursor: pointer; }
.c-prob { min-width: 220px; }
.c-prob > a, .c-prob > span { display: block; }
/* the "Safety issue" pill stays a pill (as wide as its word), not a band across the column */
.c-prob > .safety-tag { display: block; width: fit-content; max-width: 100%; }
.c-prob > .m-where { display: none; color: var(--ink); font-weight: 600; }
.mid { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); margin: 0 8px; vertical-align: middle; }
.c-prob > a { font-weight: 400; }
.c-prob .small { margin-top: 2px; }
.c-ctl, .c-found, .c-date { white-space: nowrap; }
.ph-btn { display: block; padding: 0; border: 0; background: none; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.ph-thumb { display: block; width: 150px; height: 66px; object-fit: cover; border-radius: 8px; }
.nophoto { display: grid; place-items: center; width: 150px; height: 66px; border-radius: 8px; background: var(--panel); color: var(--faint); }
.nophoto .ic { width: 30px; height: 30px; }
.insp-t .c-n { text-align: center; }
.insp-t .c-m { display: none; }
.mid-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin: 0 8px; vertical-align: middle; opacity: .7; }
.insp-t .c-n b { font-weight: 400; }
.insp-t th { white-space: normal; }
@media (min-width: 1000px) {
  table.insp-t { font-size: 15px; }
  table.insp-t th { font-size: 12px; padding: 14px 8px; }
  table.insp-t td { padding: 14px 8px; }
  table.insp-t th:first-child, table.insp-t td:first-child { padding-left: 18px; }
  table.insp-t th:last-child, table.insp-t td:last-child { padding-right: 18px; }
  .insp-t .c-cond .chip { white-space: normal; text-align: center; }
  .insp-t .dl { white-space: normal; align-items: flex-start; line-height: 1.3; margin: 2px 0; }
  .insp-t .dl i { margin-top: 5px; }
  table.insp-t th { white-space: normal; }
  .insp-t .c-defs .small { display: block; }
  .insp-t .acts .btn { min-width: 0; padding: 0 14px; }
}
@media (min-width: 1300px) {
  .insp-t .c-insp { white-space: nowrap; }
}
.dl { display: flex; align-items: center; gap: 7px; font-size: 15px; white-space: nowrap; color: var(--text); }
.dl .ic { flex: none; width: 18px; height: 18px; }
.dl i { flex: none; width: 9px; height: 9px; margin: 0 4px; border-radius: 50%; background: var(--faint); }
.dl.bad { color: var(--bad-ink); }
.acts { display: flex; gap: 8px; }
.acts .btn { min-width: 92px; }
table.drafts-t td { padding: 14px 18px; }
#drafts { padding-bottom: 18px; }
#drafts .tablewrap { margin: 0 22px; }
.rv-aside { margin-top: 4px; }
.rv-aside > h2 { padding-bottom: 8px; font-size: 22px; }
.rv-list { margin: 0 22px 20px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
/* the inspections waiting for review: the same card at every width (what, when and who, condition, actions) */
.rv-head { display: none; }
.rv-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto auto; align-items: center; gap: 14px 18px; padding: 12px 18px; }
.rv-card + .rv-card { border-top: 1px solid var(--line); }
.rv-who, .rv-when { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: center; }
.rv-who b { font-weight: 600; color: var(--ink); }
.rv-k, .rv-t { color: var(--muted); }
.rv-acts { display: flex; gap: 10px; justify-content: flex-end; }
.props-t .c-act { text-align: left; }
.props-t .c-name a { font-size: 17px; }
.props-t .c-name b, .props-t .c-n b { font-weight: 400; }
.props-t .c-act { width: 1%; white-space: nowrap; }
table.stack td[data-l] { vertical-align: middle; }
.area-sel { min-width: 180px; }
.row-acts { white-space: nowrap; text-align: right; }
.row-acts .btn { margin-left: 6px; }

/* ---------------------------------------------------------------- the deficiencies map */
.defmap-wrap { position: relative; }
.defmap { height: min(70vh, 680px); min-height: 420px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh); background: #e8ede9; }
.map-banner { position: absolute; left: 76px; right: 16px; top: 16px; z-index: 500; }
.map-fail { padding: 18px; }
#mapnote { margin: 12px 4px 22px; }
.defpin { background: none; border: 0; }
.defpin > span { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #8d9894; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); color: #fff; font-weight: 700; font-size: 16px; }
.defpin > span::after { content: ''; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); border: 7px solid transparent; border-top: 9px solid #fff; border-bottom: 0; }
.defpin > span svg { width: 22px; height: 22px; }
.defpin.urgent > span { background: var(--red); }
.defpin.repair > span { background: #e3a008; }
.defpin.monitor > span { background: #2e7d32; }
.defpin b { line-height: 1; }
.leaflet-popup-content-wrapper { border-radius: 16px !important; box-shadow: 0 10px 34px rgba(0, 0, 0, .22) !important; padding: 4px !important; }
.leaflet-popup-content { margin: 14px 16px !important; font-family: var(--font); font-size: 15px; line-height: 1.4; }
.leaflet-container { font-family: var(--font); }
.leaflet-container a.leaflet-popup-close-button { width: 32px; height: 32px; font-size: 22px; top: 6px; right: 6px; color: var(--muted); }
.leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; color: var(--ink); }
.leaflet-touch .leaflet-bar { border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.defpop { display: grid; gap: 12px; }
.defpop-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.defpop-item + .defpop-item { padding-top: 12px; border-top: 1px solid var(--line); }
.defpop-ph { width: 120px; height: 100px; object-fit: cover; border-radius: 10px; display: block; }
.defpop-b { display: grid; gap: 4px; min-width: 0; padding-right: 18px; }
.defpop-where { font-weight: 600; color: var(--ink); font-size: 16px; }
.defpop-b > a { color: var(--text); text-decoration: none; }
.defpop-b > a:hover { text-decoration: underline; color: var(--g600); }
.defpop-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.defpop-tags .prio-tag, .defpop-tags .status-tag { min-height: 26px; padding: 2px 10px; font-size: 14px; }
.defpop-date { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); }
.defpop-date .ic { width: 18px; height: 18px; }
.defpop > .maplink { font-size: 14px; color: var(--g600) !important; }

/* ---------------------------------------------------------------- one deficiency */
.d-layout.with-office { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 26px; align-items: start; }
.d-main { min-width: 0; }
.d-layout .page-head h1 { font-size: 40px; }
.d-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px !important; }
.d-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.dfact { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); min-width: 0; }
.dfact > .ic { width: 28px; height: 28px; color: var(--g800); margin-top: 2px; }
.dfact h3 { font-size: 17px; margin-bottom: 4px; }
.dfact p { margin: 0 0 6px; color: var(--text); overflow-wrap: anywhere; }
.dfact .btn { margin-top: 8px; }
.dfact.d-action { grid-column: 1 / -1; background: #eaf3ec; border-color: #d3e6d8; }
.d-ph { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.d-ph .ph-btn { max-width: 520px; }
.d-ph .ph-thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 10px; }
.d-office { position: sticky; top: 104px; display: grid; gap: 16px; margin: 0; }
.d-office h2 { margin: 0; font-size: 24px; }
.d-office .hint { margin: -6px 0 0; }
#noteform { display: grid; gap: 14px; margin-top: 4px; }
.events { list-style: none; margin: 0; padding: 0; display: grid; }
.events li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); }
.events li:last-child { border-bottom: 0; }
.events li::before { content: ''; position: absolute; left: 4px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); }
.events b { color: var(--ink); font-weight: 600; }
.ev-note { display: block; margin-top: 4px; color: var(--text); font-size: 15px; }

/* ---------------------------------------------------------------- properties of the office and their register */
.pe-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pe-two > .card { margin-bottom: 18px; }
.pe-cover { display: block; width: 100%; aspect-ratio: 272 / 127; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.pe-map { margin-bottom: 12px; border-radius: 12px; overflow: hidden; }
.pe-map img { margin: 0; }
.upload { position: relative; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.conflicts { border: 2px solid var(--fair-line); background: #fffcf4; }
.list.scroll { max-height: 50vh; overflow: auto; }
.f-num { width: 160px; }
.f-area { min-width: 200px; }

/* ---------------------------------------------------------------- team */
.team { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); overflow: hidden; margin-bottom: 22px; }
/* one compact row per person; their devices fold under the row, opened on demand */
.team-head, .person { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(90px, .55fr) minmax(110px, .7fr) minmax(170px, 1fr) minmax(170px, .9fr) minmax(200px, 1.1fr); gap: 18px; padding: 18px 24px; align-items: center; }
.team-head { background: #f3f6f4; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: 16px; padding-bottom: 16px; }
.person { border-top: 1px solid var(--line); align-items: start; }
.person.off { background: #fafafa; }
.person.off h2 { color: var(--muted); }
.p-id { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.p-id .avatar { display: none; }
.p-id h2 { font-size: 17px; }
.p-sub { margin: 2px 0 0; font-size: 14px; color: var(--muted); display: grid; }
.p-role-m { display: none; }
.p-mail { overflow-wrap: anywhere; }
.person .fl { display: none; }
.p-role, .p-seen { color: var(--ink); }
.accs { display: flex; flex-wrap: wrap; gap: 8px; }
.acc { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--field); background: var(--card); color: var(--muted); font-size: 15px; font-weight: 500; cursor: pointer; }
.acc[aria-pressed="true"] { background: var(--ok-bg); border-color: #b7dcbf; color: var(--ok-ink); }
.p-devs { min-width: 0; }
.dev-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--field); background: var(--card); color: var(--ink); font-weight: 500; font-size: 15px; cursor: pointer; text-align: left; }
.dev-toggle .ic { width: 20px; height: 20px; }
.dev-toggle .dt-l { display: grid; line-height: 1.2; padding: 4px 0; }
.dev-toggle .dt-l small { font-size: 13px; font-weight: 400; color: var(--muted); }
.dev-toggle .down { width: 18px; height: 18px; transition: transform .15s; }
.dev-toggle[aria-expanded="true"] .down { transform: rotate(180deg); }
.p-devl { grid-column: 1 / -1; display: grid; gap: 8px; min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.dev.here { padding: 6px 8px; margin: -6px -8px; border-radius: 10px; background: var(--mint); }
.here-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--g800); color: #fff; font-size: 12px; font-weight: 600; vertical-align: 1px; }
.dev { display: flex; align-items: center; gap: 12px; }
.dev .ic { width: 24px; height: 24px; color: var(--ink); }
.dev .grow b { display: block; font-weight: 400; color: var(--ink); }
.dev .grow .small { display: block; }
.dev .btn { min-width: 0; flex: none; }
.p-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.p-locked { margin: 0; max-width: 240px; text-align: right; }
.p-acts .btn.danger .ic { color: var(--red); }
.inline-save { display: flex; gap: 16px; align-items: flex-end; }
.inline-save .f { flex: 1; }

/* ---------------------------------------------------------------- layers: dialogs and viewers */
#overlay:empty { display: none; }
.layer { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(12, 32, 24, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } }
.dialog { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--card); border-radius: 20px; padding: 26px 26px 22px; box-shadow: var(--sh-lg); }
.dialog h2 { font-size: 22px; margin-bottom: 12px; }
.dialog p { color: var(--text); }
.dialog .actions-row { justify-content: flex-end; margin-top: 20px; }
.dialog .f { margin-top: 10px; }
.dlg-who { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.dlg-who .avatar { width: 54px; height: 54px; font-size: 19px; }
.dlg-who h2 { margin: 0; }
.dlg-who p { margin: 2px 0 0; color: var(--muted); }
/* the account menu: a quiet cross to close, the state in lines with their icon, signing out apart at the bottom */
.menu-dlg { position: relative; }
.dlg-x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.dlg-x:hover { background: var(--panel); color: var(--ink); }
.menu-dlg .dlg-who { padding-right: 40px; }
.menu-line { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; }
.menu-line .ic { width: 20px; height: 20px; margin-top: 2px; }
.menu-line.muted .ic { color: var(--muted); }
.dialog .menu-acts { justify-content: flex-start; margin-top: 16px; }
.menu-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.danger-link { color: var(--bad-ink); }
/* a destructive action, alone at the end of its page (never beside Save) */
.danger-zone { border-color: var(--bad-line); }
.danger-zone > h2 .ic { color: var(--bad-ink); }
.menu-foot .ver { font-size: 12.5px; color: var(--muted); }
.menu-dlg .actions-row { justify-content: space-between; }
.viewer { position: fixed; inset: 0; display: flex; flex-direction: column; background: #10251c; }
.vbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--g900); color: #fff; }
.vbar .title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.vbar .btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #fff; box-shadow: none; }
.vbar .btn:hover { background: rgba(255, 255, 255, .2); }
.vbar .btn.danger { border-color: #ffb1ab; color: #ffd3cf; }
.vbody { flex: 1; overflow: auto; padding: 14px; display: grid; justify-items: center; align-content: start; gap: 14px; -webkit-overflow-scrolling: touch; }
.vbody canvas { background: #fff; max-width: 100%; height: auto; box-shadow: 0 4px 18px rgba(0, 0, 0, .4); border-radius: 4px; }
.vbody .msg { color: #fff; margin-top: 40px; text-align: center; }
.photo-body { place-items: center; align-content: center; }
.photo-body img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 6px; }
.mapbody { flex: 1; overflow: auto; background: #fff; }
.mapbody img { display: block; max-width: none; }

/* ---------------------------------------------------------------- iPad landscape and small computers */
@media (max-width: 1299px) {
  :root { --pad: 24px; }
  .top { gap: 0 18px; }
  .nav a { padding: 0 14px; }
  .top.for-office .pill > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top.for-office .who .nm { max-width: 150px; }
  .top.for-office .nav a { padding: 0 12px; gap: 7px; font-size: 15px; }
  .top.for-office .nav a .ic { width: 21px; height: 21px; }
  .top-end { gap: 14px; }
  .prop-layout { grid-template-columns: minmax(0, 1fr) 370px; }
  .prop-head { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; }
  .ctl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding: 2px 16px; font-size: 17px; gap: 8px; }
  .stat .ic, .stat .ring-ic { width: 24px; height: 24px; }
  .prop-head h1 { font-size: 40px; }
  .prop-head .actions .btn { min-height: 54px; font-size: 17px; padding: 0 18px; }
  .ctl-t b { font-size: 15px; }
  .rp.with-review { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 18px; }
  .rv-q { font-size: 14.5px; }
  .yn { padding: 0 11px; }
  .facts.lead .fact { padding: 0 12px; }
  /* the photo stays to the right of its deficiency, as on a computer (it used to drop under, leaving a void) */
  .find-ph { max-width: 230px; }
  .ph { width: 200px; }
  .insp { grid-template-columns: 300px minmax(0, 1fr); gap: 20px; }
  .ans { padding: 0 11px; gap: 7px; font-size: 15px; }
  .ans::before { width: 20px; height: 20px; }
  .line { gap: 10px 12px; }
  .team-head { display: none; }
  .person { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 24px; }
  .person .fl { display: block; }
  .p-id { grid-column: 1 / -1; }
  .p-id .avatar { display: inline-grid; }
  .p-role { display: none; }
  .p-role-m { display: inline; }
  .p-acts { justify-content: flex-start; }
  .d-layout.with-office { grid-template-columns: minmax(0, 1fr) 340px; }
  .defs-t th:nth-child(3), .defs-t td.c-prop, .defs-t th:nth-child(4), .defs-t td.c-ctl, .defs-t th:nth-child(5), .defs-t td.c-st { display: none; }
  .defs-t .c-prob > .m-where { display: block; }
  .filters .in { width: auto; flex: 1 1 170px; max-width: 250px; }
  select.status-tag { min-width: 150px; }
}

/* ---------------------------------------------------------------- iPad landscape only: tables fit without scrolling */
@media (max-width: 1299px) and (min-width: 1000px) {
  .defs-t .ph-thumb, .defs-t .nophoto { width: 120px; height: 60px; }
  table.insp-t th, table.insp-t td { padding: 12px 8px; }
  table.insp-t th { font-size: 12px; letter-spacing: .02em; }
  .insp-t .c-tech, .insp-t th:nth-child(4) { display: none; }
  .insp-t .yr { display: none; }
  .insp-t .c-deliv { min-width: 120px; }
  .insp-t .dl { white-space: normal; font-size: 14px; align-items: flex-start; line-height: 1.3; margin: 2px 0; }
  .insp-t .acts .btn { min-width: 0; padding: 0 12px; }
}

/* ---------------------------------------------------------------- iPad portrait and narrower */
@media (max-width: 999px) {
  :root { --pad: 20px; }
  /* the bar: the offline state folds to its icon (its words stay for screen readers); the person keeps their name */
  .top { gap: 0 14px; }
  .top:not(.for-inspect) .pill > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top-end { gap: 10px; }
  .top-end .vsep { display: none; }
  .who { gap: 10px; }
  .who .nm { max-width: 130px; }
  .nav a { padding: 0 12px; gap: 7px; font-size: 15px; }
  .nav a .ic { width: 21px; height: 21px; }
  /* the technician's three tabs fit beside the logo: one row; the office's five go to a second row, icons kept */
  .top.for-office { flex-wrap: wrap; row-gap: 6px; }
  .top.for-office .nav { order: 3; width: 100%; }
  h1, .rp .page-head h1, .d-layout .page-head h1 { font-size: 32px; }
  .prop-head h1 { font-size: 36px; }
  .prop-head { grid-template-columns: minmax(0, 1fr) auto; }

  .prop-head .actions { grid-column: 2; grid-row: 1; }
  .prop-row { gap: 22px; padding: 16px 20px 16px 16px; }
  .cover { width: 210px; }
  .prop-name b { font-size: 26px; }
  .stat { padding: 2px 14px; font-size: 16px; }
  .stat .ic, .ring-ic { width: 24px; height: 24px; }
  .prop-layout { grid-template-columns: minmax(0, 1fr); }
  .prop-side { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .prop-side .defs-card:only-child { grid-column: 1 / -1; }
  .prop-head .actions .btn { min-height: 52px; font-size: 17px; padding: 0 18px; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  /* a controller on one column: its open deficiencies before its details */
  .ctl-cols { display: flex; flex-direction: column; gap: 18px; }
  .ctl-cols > .col { display: contents; }
  .ctl-cols > .col > .panel:first-child { order: -1; }
  .rp.with-review { display: block; }
  .review-panel { position: static; }
  .facts.details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts.lead { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); row-gap: 16px; }
  .counts { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; margin: 0 6px; }
  .cnt:first-child { padding-left: 12px; }
  /* the inspection: the steps as a row of chips above the checks */
  .insp { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 14px; }
  .iside { position: static; max-height: none; overflow: visible; padding: 0; gap: 12px; }
  .ihead h1 { font-size: 30px; }
  .i-pre { display: inline; font-size: inherit; font-weight: inherit; color: inherit; }
  .i-comma { display: inline; }
  .i-form { margin: 4px 0 6px; font-size: 18px; }
  .i-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); }
  .i-meta .ic { display: none; }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px 0 4px; }
  .rail button { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; min-height: 60px; padding: 8px 14px 8px 10px; font-size: 15.5px; }
  .rail .dot { width: 30px; height: 30px; font-size: 15px; }
  .rail .chev { display: none; }
  .line { grid-template-columns: minmax(0, 1fr) 52px; grid-template-areas: 'q c' 'a a' 'n n'; }
  .answers { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
  .ans { justify-content: center; white-space: normal; line-height: 1.2; padding: 6px 10px; gap: 8px; }
  .notes, .fields, .line > .thumbs, .line > .onfile { padding-left: 0; }
  .defect { margin-left: 0; }
  .add-def { margin-left: 0; }
  /* one column: the office's controls come right under the title, before the facts and photos */
  .d-layout.with-office { display: flex; flex-direction: column; }
  .d-layout.with-office > .d-main { display: contents; }
  .d-layout.with-office .d-main > * { order: 2; }
  .d-layout.with-office .d-main > .crumb, .d-layout.with-office .d-main > .page-head { order: 0; }
  .d-office { position: static; order: 1; margin-bottom: 18px; }
  .pe-two { grid-template-columns: minmax(0, 1fr); }
  .toolbar .filters .in { width: auto; flex: 1; min-width: 160px; }
  .defs-bar { margin-left: 0; }
  /* office inspections: one card per report */
  .insp-t thead { display: none; }
  .insp-t, .insp-t tbody { display: block; }
  .insp-t tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .insp-t tr:last-child { border-bottom: 0; }
  table.insp-t td { display: block; padding: 0; border: 0; }
  .insp-t tbody tr:hover td { background: none; }
  .insp-t .c-prop { grid-column: 1; grid-row: 1; font-weight: 600; font-size: 17px; }
  .insp-t .c-date { grid-column: 1; grid-row: 2; color: var(--muted); }
  .insp-t .c-insp { grid-column: 1; grid-row: 3; }
  .insp-t .c-tech { grid-column: 1; grid-row: 4; color: var(--muted); }
  .insp-t .c-cond { grid-column: 2; grid-row: 1; justify-self: end; }
  .insp-t .c-status { grid-column: 2; grid-row: 2; justify-self: end; }
  .insp-t .c-n { display: inline-flex; gap: 6px; align-items: baseline; grid-column: 1 / -1; text-align: left; }
  .insp-t .c-defs { grid-row: 5; }
  .insp-t .c-exc { grid-row: 6; }
  .insp-t .c-ph { grid-row: 7; }
  .insp-t .m-l { display: inline; color: var(--muted); order: -1; }
  .insp-t .m-l::after { content: ':'; }
  .insp-t .c-deliv { grid-column: 1 / -1; grid-row: 8; display: flex; gap: 16px; flex-wrap: wrap; }
  .insp-t .c-act { grid-column: 1 / -1; grid-row: 9; margin-top: 6px; }
  .insp-t .acts .btn { flex: 1; }
  .rv-card { grid-template-columns: 1fr 1fr; }
  .rv-cond { justify-self: start; }
  .rv-acts { grid-column: 1 / -1; justify-content: stretch; }
  .rv-acts .btn { flex: 1; }
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr { display: block; }
  table.stack tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; padding: 6px 16px; border: 0; align-items: center; }
  table.stack td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: 14px; }
  table.stack td.row-acts, table.stack td:not([data-l]) { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; text-align: left; }
  .row-acts .btn { margin-left: 0; }
  .props-t th:nth-child(4), .props-t td:nth-child(4) { display: none; }
}

/* ---------------------------------------------------------------- sign-in on iPad portrait: the photo at the bottom */
@media (max-width: 999px) and (min-width: 600px) {
  .insp-t tr { grid-template-columns: auto auto auto minmax(0, 1fr) auto auto; gap: 8px 22px; align-items: center; }
  .insp-t .c-prop { grid-column: 1 / 5; grid-row: 1; }
  .insp-t .c-cond { grid-column: 5; grid-row: 1; }
  .insp-t .c-status { grid-column: 6; grid-row: 1; }
  .insp-t .c-insp { grid-column: 1; grid-row: 2; font-weight: 500; }
  .insp-t .c-date { grid-column: 2; grid-row: 2; }
  .insp-t .c-tech { grid-column: 3; grid-row: 2; }
  .insp-t .c-defs { grid-column: 1; grid-row: 3; }
  .insp-t .c-exc { grid-column: 2; grid-row: 3; }
  .insp-t .c-ph { grid-column: 3; grid-row: 3; }
  .insp-t .c-deliv { grid-column: 1 / 5; grid-row: 4; }
  .insp-t .c-act { grid-column: 5 / -1; grid-row: 2 / 5; margin-top: 0; align-self: center; }
  .insp-t .acts .btn { flex: none; min-width: 96px; }
  /* the filters on one row, then the export and the List / Map switch */
  .toolbar > .filters { flex: 1 1 100%; }
  .toolbar .filters .in { flex: 1 1 0; min-width: 0; max-width: none; }
  .defs-bar { width: 100%; justify-content: space-between; margin-left: 0; }
  /* deficiencies: the rows of f_deficiencies_tel (photo, priority, where, problem; date and status on the right) */
  .defs-t thead { display: none; }
  .defs-t, .defs-t tbody { display: block; }
  .defs-t tr { display: grid; grid-template-columns: 32px 128px minmax(0, 1fr) auto; grid-template-areas: 'x p r s' 'x p b s'; gap: 6px 18px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: center; }
  .defs-t tbody tr:last-child { border-bottom: 0; }
  table.defs-t td { display: block; padding: 0; border: 0; }
  .defs-t tbody tr:hover td { background: none; }
  .defs-t .cbx-cell { grid-area: x; width: auto; }
  .defs-t .c-photo { grid-area: p; }
  .defs-t .ph-thumb, .defs-t .nophoto { width: 128px; height: 96px; border-radius: 10px; }
  .defs-t .c-prio { grid-area: r; align-self: end; }
  .defs-t .c-prob { grid-area: b; min-width: 0; align-self: start; }
  .defs-t .c-prob > .m-where { display: block; color: var(--ink); font-size: 17px; font-weight: 500; }
  .defs-t .c-prob > a:not(.maplink) { color: var(--muted); font-weight: 400; }
  .defs-t td.c-found, .defs-t td.c-st, .defs-t td.c-ctl, .defs-t td.c-prop { display: none; }
  .defs-t .c-status { grid-area: s; display: grid; grid-template-columns: auto 36px; align-items: center; gap: 8px 4px; }
  .defs-t .m-date { display: block; grid-column: 1; justify-self: center; color: var(--muted); font-size: 15px; }
  .defs-t select.status-tag { grid-column: 1; min-width: 150px; }
  .defs-t .m-chev { display: grid; place-items: center; width: 36px; height: 44px; grid-column: 2; grid-row: 1 / 3; color: var(--muted); }
}
@media (max-width: 999px) and (max-aspect-ratio: 1/1) {
  .hero { align-items: flex-start; }
  .hero-photo { left: 0; background-image: url('../assets/brand/signin-photo-portrait.jpg'); background-position: center bottom; }
  /* a_signin_tel: a tall pale lens on the left, the photo on its right and under it */
  .hero-panel { width: 88%; min-height: 92vh; min-height: 92dvh; align-self: flex-start; align-items: flex-start; justify-content: flex-start;
    border-radius: 0 30% 72% 0 / 0 45% 55% 0; padding-bottom: 12vh; box-shadow: 10px 0 40px rgba(18, 56, 42, .12);
    background-position: left -12% bottom 0, 0 0; background-size: auto 46%, auto; }
  .hero-panel::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 255, 255, .25); pointer-events: none; }
  .hero-in { position: relative; width: 70%; margin-left: 14%; padding-top: 8vh; }
}

/* ---------------------------------------------------------------- phone */
@media (max-width: 599px) {
  :root { --pad: 16px; --tap: 48px; }
  h1, .rp .page-head h1, .d-layout .page-head h1, .prop-head h1 { font-size: 28px; }
  h2 { font-size: 18px; }
  /* one bar for both roles: logo, offline state and person on the first row; the tabs share the second row in equal
     columns, icon above the word, never against the edge of the screen */
  .top { padding: 8px 16px 8px; gap: 0 10px; row-gap: 8px; flex-wrap: wrap; }
  .logo-bar img { height: 32px; }
  .logo-bar .logo-sub { display: none; }
  .top-break { display: none; }
  .top-end { order: 2; margin-left: auto; gap: 8px; }
  .top:not(.for-inspect) .pill > span { position: static; width: auto; height: auto; clip: auto; max-width: 200px; }
  .pill { font-size: 14px; }
  .who { gap: 6px; font-size: 15px; }
  .who .nm { display: none; }
  .av { width: 40px; height: 40px; font-size: 14px; }
  /* tabs share the width equally when they can; a longer word ("Deficiencies") takes what it needs, never cut */
  .nav, .top.for-office .nav { order: 3; width: 100%; margin: 0; display: flex; gap: 2px; }
  .nav a, .top.for-office .nav a { flex: 1 1 0; min-width: max-content; flex-direction: column; justify-content: center; gap: 3px; min-height: 54px; padding: 4px 6px; font-size: 12px; line-height: 1.1; border-radius: 12px; }
  .nav a .ic, .top.for-office .nav a .ic { display: block; width: 22px; height: 22px; }
  .nav .badge { top: 2px; right: calc(50% - 26px); }
  .top.for-inspect { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
  .top.for-inspect .crumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
  .top.for-inspect .pill { padding: 4px 10px; font-size: 13px; white-space: normal; line-height: 1.15; text-align: center; max-width: 128px; }
  .top.for-inspect .pill > span { overflow: visible; }
  .top.for-inspect .logo-bar img { height: 28px; }
  .top.for-inspect .pill .saved { width: 20px; height: 20px; }
  #banners.has { padding: 10px 16px 0; }
  .banner { flex-wrap: wrap; font-size: 14px; }
  main { padding: 18px 16px 40px; }
  .page-head { margin-bottom: 16px; }
  .page-head p { font-size: 16px; }
  .page-head .actions, .page-head .actions .btn { width: 100%; }
  .card { padding: 16px; }
  .panel > h2 { padding: 14px 16px; font-size: 17px; }
  .panel-body { padding: 0 8px 8px; }
  .panel-sub { margin: -6px 16px 12px; }
  .none-open { padding: 0 16px 14px; }
  .row-link { padding: 10px 12px; gap: 12px; }
  /* sign-in */
  .hero-panel { width: 90%; }
  .hero-in { width: 76%; margin-left: 12%; padding-top: 40px; }
  .hero .code-in { letter-spacing: .02em; }
  .hero .code-in::placeholder { letter-spacing: .02em; }
  .logo-hero img { height: 84px; }
  .logo-hero .logo-sub { font-size: 18px; margin-top: 12px; }
  .hero .logo-hero { margin-bottom: 28px; }
  .hero .lead { font-size: 17px; margin-bottom: 20px; }
  .hero .code-in { font-size: 18px; min-height: 54px; }
  .hero #signin .btn { min-height: 54px; font-size: 18px; }
  .motto { margin-top: 28px; font-size: 11px; }
  .h-install { font-size: 22px; gap: 12px; }
  .done-ic { width: 40px; height: 40px; }
  .steps li { padding-left: 50px; font-size: 16px; }
  /* the steps never grow wider than the pale panel (the code, on one line, used to widen them onto the photograph) */
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps .codebox-row { margin-left: -50px; width: calc(100% + 50px); max-width: none; }
  .steps li::before { left: 0; width: 34px; height: 34px; font-size: 15px; }
  /* the code keeps its four groups on one line, the Copy button under it */
  .codebox-row { width: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; }
  /* a code of wide letters (W, M) is wider than a phone: it goes on two lines between its groups, never inside one */
  .codebox-row .codebox { font-size: 17px; letter-spacing: .03em; text-align: center; white-space: normal; }
  .codebox-row .codebox .cg { white-space: nowrap; display: inline-block; }
  .codebox-row .btn { width: 100%; }
  /* properties */
  /* f_properties_tel: the photo on the left, the name beside it, the four counters under a rule */
  .prop-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) 18px; grid-template-areas: 'c n v' 'c a v' 's s s'; gap: 4px 14px; padding: 12px 12px 14px; }
  .prop-main { display: contents; }
  .cover { grid-area: c; width: 100px; aspect-ratio: 1; }
  .prop-name { grid-area: n; align-self: end; gap: 6px 10px; }
  .prop-addr { grid-area: a; align-self: start; margin: 0; }
  .prop-row > .chev { grid-area: v; }
  .prop-name b { font-size: 21px; }
  .prop-name .practice { font-size: 14px; padding: 3px 12px; }
  .stats { grid-area: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
  .stat { display: grid; justify-items: center; gap: 2px; padding: 0 2px; border-left: 1px solid var(--line); font-size: 13px; text-align: center; white-space: normal; }
  .stat:first-child { padding-left: 2px; }
  .stat b { font-size: 20px; font-weight: 600; color: var(--ink); }
  .stat.urgent b { color: var(--bad-ink); }
  .stat.zero b, .stat.urgent.zero b { color: var(--muted); font-weight: 500; }
  .stat .w-l { display: none; }
  .stat .w-s { display: inline; color: var(--muted); }
  .stat .ic, .ring-ic { width: 22px; height: 22px; }
  .stat.urgent.zero { display: grid; }
  /* a property: controllers as rows */
  .prop-head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .prop-head .actions { grid-column: 1; grid-row: auto; }
  .prop-areas > .ph-progress { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
  .prop-head .actions .btn { flex: 1; }
  /* a_property_tel: each area a band over one white list, one row per controller */
  .prop-head .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .prop-head .actions .btn { width: auto; white-space: normal; text-align: center; line-height: 1.2; font-size: 15px; padding: 6px 10px; min-height: 54px; gap: 8px; }
  .area { padding: 0; overflow: hidden; border: 1px solid var(--line); }
  .area h2 { font-size: 17px; padding: 12px 14px; margin: 0; }
  .area h2 small { display: none; }
  .ctl-grid { grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--card); }
  .ctl { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 18px; grid-template-areas: 't i s c' 't g g c'; align-items: center; text-align: left; min-height: 64px; padding: 10px 14px; gap: 0 8px;
    border: 0; border-radius: 0; border-top: 1px solid var(--line); background: var(--card); }
  .ctl:first-child { border-top: 0; }
  .ctl.fair, .ctl.poor { background: var(--card); border-color: var(--line); }
  .ctl > .chev { display: block; grid-area: c; width: 18px; height: 18px; }
  .ctl-t { grid-area: t; }
  .ctl-ic { grid-area: i; height: auto; }
  .ctl-ic .ic { width: 24px; height: 24px; }
  .cond { grid-area: s; width: auto; padding: 0 12px; min-height: 30px; font-size: 15px; border-radius: 999px; }
  .cond.todo { padding: 0; }
  .tagline { grid-area: g; margin: 0; text-align: right; font-size: 12.5px; }
  .prop-side { grid-template-columns: minmax(0, 1fr); }
  .row-link.def { flex-wrap: wrap; }
  .row-link.def .grow { flex-basis: calc(100% - 90px); }
  .row-link.def > .chev { display: none; }
  .row-link.def .prio-tag { margin-left: 44px; }
  /* a controller */
  .kv { grid-template-columns: minmax(0, 1fr); }
  dl.kv dt { padding: 10px 6px 0; border: 0; font-size: 14px; }
  dl.kv dd { padding: 2px 6px 10px; }
  /* the register of a controller: label and value side by side, as in f_controller_tel */
  .panel dl.kv { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); padding: 2px 12px; }
  .panel dl.kv dt, .panel dl.kv dd { padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .panel dl.kv dt:last-of-type, .panel dl.kv dd:last-of-type { border-bottom: 0; }
  .insp-row { flex-wrap: wrap; }
  .insp-row .w-l { display: none; }
  .insp-row .dl-t { font-size: 16px; }
  .insp-row > .grow { min-width: 0; }
  /* the office's inspections on a phone: a compact card (what, when and who, the counts in one line) */
  .insp-t tr { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 16px; }
  .insp-t .c-prop, .insp-t .c-insp, .insp-t .c-date, .insp-t .c-tech, .insp-t .c-n { display: none !important; }
  table.insp-t td.c-m { display: grid; gap: 3px; grid-column: 1; grid-row: 1 / 3; min-width: 0; }
  .insp-t .c-m > b { font-size: 16px; font-weight: 600; color: var(--ink); }
  .insp-t .c-m > b a { color: var(--g700); }
  .insp-t .c-m > span { color: var(--muted); font-size: 14px; }
  .insp-t .c-m .c-m-n { color: var(--text); }
  .insp-t .c-m-n b { font-weight: 600; }
  .insp-t .c-cond { grid-column: 2; grid-row: 1; }
  .insp-t .c-status { grid-column: 2; grid-row: 2; }
  .insp-t .c-deliv { grid-row: 3; font-size: 14px; }
  .insp-t .c-act { grid-row: 4; margin-top: 2px; }
  /* an empty cell of a table shown as cards says nothing: it is not shown (a lone "-" used to float there) */
  table.t td.empty { display: none; }
  .rep-row { display: grid; grid-template-columns: minmax(0, 1fr) 20px; grid-template-areas: 't c' 'g c'; gap: 8px 10px; align-items: center; }
  .rep-row > .tile-ic { display: none; }
  .rep-row > .grow { grid-area: t; }
  .rep-row > .rep-tags { grid-area: g; }
  .rep-row > .chev { grid-area: c; }
  .rep-row .dl-m { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .insp-row .cond-l .chip { min-width: 0; }
  /* the inspection: the sections stacked as in f_inspect_tel (no sideways rail on a phone) */
  .railfold { display: block; }
  .rail-fold { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 14px; border-radius: 14px; border: 1.5px solid var(--field); background: var(--card); color: var(--ink); font-weight: 600; font-size: 16px; cursor: pointer; text-align: left; }
  .rf-dots { display: inline-flex; gap: 5px; flex: 1; }
  .rf-dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--field); box-sizing: border-box; }
  .rf-dots i.part { border-color: var(--g700); background: linear-gradient(90deg, var(--g700) 50%, transparent 50%); }
  .rf-dots i.done { border-color: var(--ok); background: var(--ok); }
  .rf-dots i.warn { border-color: var(--amber); background: var(--amber); }
  .rf-dots i.cur { outline: 2px solid var(--g800); outline-offset: 2px; }
  .rf-all { font-weight: 500; font-size: 15px; color: var(--g600); }
  .rail-fold .ic { width: 18px; height: 18px; color: var(--g600); transition: transform .15s; }
  .rail-fold[aria-expanded="true"] .ic { transform: rotate(180deg); }
  .rail { grid-template-columns: minmax(0, 1fr); gap: 6px; overflow: visible; padding: 8px 0 0; border-top: 0; }
  .rail:not(.open) { display: none; }
  .rail button { grid-template-columns: 30px minmax(0, 1fr) auto 16px; gap: 10px; min-height: 52px; max-width: none; padding: 6px 12px 6px 10px; font-size: 15px; }
  .rail .rt { white-space: normal; }
  .rail .chev { display: block; width: 16px; height: 16px; }
  .rail small { font-size: 14px; }
  .insp { padding: 12px 16px 32px; }
  .ihead h1 { font-size: 24px; }
  .i-form { display: none; }
  .i-meta { font-size: 14px; margin-top: 4px; }
  .iside { gap: 10px; }
  .sec-h { padding: 12px 14px; font-size: 17px; gap: 10px; }
  .sec-h .dot { width: 30px; height: 30px; font-size: 15px; }
  .sec-p { font-size: 15px; }
  .line { padding: 14px; gap: 10px; }
  .q { font-size: 16px; gap: 10px; }
  .answers { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
  .ans { flex-direction: column; justify-content: center; gap: 4px; padding: 6px 4px; min-height: 64px; white-space: normal; text-align: center; font-size: 14px; line-height: 1.2; }
  .defect { padding: 14px; grid-template-columns: minmax(0, 1fr); }
  .block { padding: 16px 14px; }
  .seg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .seg button { min-height: 54px; padding: 8px 12px; gap: 10px; font-size: 15px; }
  .seg button::before { width: 22px; height: 22px; }
  .seg.long { grid-template-columns: minmax(0, 1fr); }
  .thumb { width: 120px; height: 90px; }
  .st-body { padding: 14px; }
  .count-row .f { width: 100%; }
  .stations { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .st { min-height: 64px; font-size: 18px; }
  .st small { font-size: 11px; }
  .st-panel { padding: 14px; }
  .st-panel .answers { width: 100%; }
  .add-def { margin-left: 0; }
  .safety-body { padding: 14px; }
  .fields.equip { margin-left: 0; }
  .ohms-t td:last-child { width: 132px; }
  .ohms-t tbody th { width: 40px; }
  .known { padding: 14px; }
  .known .answers { width: 100%; }
  .nextbar { flex-direction: column-reverse; align-items: stretch; }
  .nextbar .btn.next { width: 100%; min-width: 0; font-size: 19px; padding: 0 24px; }
  .nextbar > span:empty { display: none; }
  .send-btn { font-size: 18px; min-height: 60px; }
  .finish { padding: 18px 16px; }
  /* a report */
  .facts.lead { grid-template-columns: 1.25fr 1fr .9fr; padding: 14px 4px; }
  .facts.lead .fact { padding: 0 10px; }
  .facts.lead { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; margin: 0 4px; padding-top: 12px; }
  .cnt { padding: 0 10px; }
  .cnt:nth-child(3) { border-left: 0; }
  .cnt b { font-size: 24px; }
  .cnt span { font-size: 13px; }
  .facts.lead .fl { font-size: 13px; line-height: 1.3; }
  .status-fact .fact-b { grid-template-columns: minmax(0, 1fr); }
  .status-fact .state.plain { font-size: 14px; line-height: 1.3; }
  .status-fact .rstat { justify-self: start; margin-top: 4px; font-size: 14px; padding: 2px 10px; min-height: 26px; }
  .facts.lead .chip { font-size: 14px; padding: 2px 12px; min-height: 28px; }
  .find-geo { grid-template-columns: 20px minmax(0, 1fr); }
  .find-geo .maplink { grid-column: 2; }
  .facts.details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 4px 16px; }
  .facts.details .fact { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 12px 0; background: none; }
  .facts.details .fact:last-child { border-bottom: 0; }
  .facts.details .fact > .ic { display: block; width: 24px; height: 24px; }
  .facts.details .fn { font-size: 18px; }
  .photos-fact .fn { display: block; }
  .strip .ph { width: calc((100vw - 120px) / 3); }
  .finds { padding: 16px 14px 4px; }
  .find { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .fnum { width: 34px; height: 34px; font-size: 16px; }
  .find-ph { grid-column: 1 / -1; }
  .ph { width: calc(50% - 6px); }
  .facts.deliv { grid-template-columns: minmax(0, 1fr); }
  .review-panel { padding: 16px; }
  .rv-row { flex-wrap: wrap; }
  .rv-yn { width: 100%; }
  .yn { flex: 1; justify-content: center; }
  /* office */
  .toolbar { gap: 10px; }
  .filters { gap: 8px; }
  .toolbar .filters .in, .filters .in { min-width: 0; max-width: none; flex: 1 1 140px; padding-left: 12px; padding-right: 34px; background-position: right 10px center; font-size: 16px; }
  .defs-bar { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .viewseg button { flex: 1; justify-content: center; }
  .tablewrap { overflow: visible; }
  /* deficiencies: one card per deficiency (f_deficiencies_tel) */
  .defs-t thead { display: none; }
  .defs-t, .defs-t tbody { display: block; }
  .defs-t tr { display: grid; grid-template-columns: 36px 88px minmax(0, 1fr); grid-template-areas: 'x p r' 'x p b' 's s s'; gap: 4px 12px; padding: 14px 12px; border-bottom: 1px solid var(--line); align-items: center; }
  .defs-t tbody tr:last-child { border-bottom: 0; }
  table.defs-t td { display: block; padding: 0; border: 0; }
  .defs-t tbody tr:hover td { background: none; }
  .defs-t .cbx-cell { grid-area: x; width: auto; }
  .defs-t .c-photo { grid-area: p; }
  .defs-t .ph-thumb, .defs-t .nophoto { width: 88px; height: 76px; border-radius: 10px; }
  .defs-t .c-prio { grid-area: r; align-self: end; }
  .defs-t .c-prob { grid-area: b; min-width: 0; align-self: start; }
  .defs-t .c-prio .prio-tag { min-height: 28px; padding: 2px 12px; }
  .defs-t .m-where { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
  .defs-t .c-prob > a { color: var(--muted); font-weight: 400; }
  .defs-t td.c-found, .defs-t td.c-st, .defs-t td.c-ctl, .defs-t td.c-prop { display: none; }
  .defs-t .c-status { grid-area: s; display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
  .defs-t .m-date { display: inline; margin-right: auto; color: var(--muted); font-size: 14px; }
  .defs-t .m-chev { display: grid; place-items: center; width: 44px; height: 44px; }
  .defs-t select.status-tag { min-width: 0; width: 180px; }
  .rv-list { margin: 0 12px 14px; }
  .rv-card { grid-template-columns: minmax(0, 1fr) auto; padding: 14px; gap: 10px 14px; }
  .rv-when { white-space: nowrap; text-align: right; justify-items: end; }
  .rv-cond { justify-self: start; }
  .rv-acts { flex-wrap: wrap; }
  #drafts .tablewrap { margin: 0 12px; }
  .drafts-t thead { display: none; }
  .drafts-t, .drafts-t tbody, .drafts-t tr { display: block; }
  .drafts-t tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.drafts-t td { display: inline; padding: 0; border: 0; }
  .drafts-t .c-prop { font-weight: 600; }
  .drafts-t .c-insp::before, .drafts-t .c-tech::before { content: ', '; }
  .drafts-t .c-when { display: block; color: var(--muted); font-size: 14px; }
  .drafts-t .c-when .m-l { display: inline; }
  .drafts-t .c-when .m-l::after { content: ': '; }
  .props-t thead { display: none; }
  .props-t, .props-t tbody { display: block; }
  .props-t tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.props-t td { display: block; padding: 0; border: 0; }
  .props-t .c-addr { grid-column: 1; color: var(--muted); }
  .props-t .c-n { grid-column: 1; }
  .props-t .m-l { display: inline; }
  .props-t .c-act { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  table.stack td { grid-template-columns: 110px minmax(0, 1fr); padding: 6px 12px; }
  .actions-row.with-hint .hint { margin: 0; padding: 0; border: 0; }
  .d-facts { grid-template-columns: minmax(0, 1fr); }
  .dfact { padding: 14px 16px; }
  .d-ph { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .defmap { min-height: 380px; height: 62vh; }
  .defpop-ph { width: 64px; height: 56px; border-radius: 8px; }
  .defpop-small .leaflet-popup-content { margin: 10px 12px !important; font-size: 14px; }
  .defpop-small .defpop { gap: 8px; }
  .defpop-small .defpop-item { gap: 10px; }
  .defpop-small .defpop-where { font-size: 14.5px; }
  .defpop-small .defpop-date { display: none; }
  .defpop-small .defpop-b { padding-right: 22px; }
  .person { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .dev { flex-wrap: wrap; }
  .dev .btn { min-width: 0; width: 100%; }
  .p-acts .btn { flex: 1; }
  .inline-save { flex-direction: column; align-items: stretch; }
  .dialog { padding: 20px 18px 18px; border-radius: 18px; }
  .dialog .actions-row .btn { flex: 1; }
  .menu-dlg .actions-row { flex-direction: column; align-items: stretch; }
  .count-row .btn, .count-row .check { width: 100%; }
  .f-num, .f-area { width: 100%; min-width: 0; }
  .vbar { flex-wrap: wrap; }
  .vbar .title { order: -1; flex-basis: 100%; }
}

@media (max-width: 380px) {
  .nav a, .top.for-office .nav a { font-size: 11px; padding: 4px 4px; }
}

/* ---------------------------------------------------------------- "Report a problem" (js/help.js)
   design/v2/tirages g_problem_tab_1: a window over the screen, the three choices side by side, Cancel and Send report
   side by side; g_problem_tel_2 on a phone: a sheet from the bottom, the choices one under the other, the count of
   characters, "No signal" in an amber box, Send report above Cancel. The way in: the inspection's header (top right),
   the account menu, and the screen that says something went wrong. */
.help-btn { border-color: var(--field); color: var(--ink); background: var(--card); }
.help-btn .ic { color: var(--ink); }
.ihead { position: relative; }
.ihead .i-help { display: flex; width: fit-content; margin: 0 0 12px auto; }
.err-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.help-layer { z-index: 85; }
.help-dlg { position: relative; width: min(660px, 100%); padding: 30px 32px 26px; }
.help-dlg .grab { display: none; }
.help-dlg h2 { font-size: 28px; margin: 0 48px 6px 0; }
.help-dlg .help-lead { margin: 0 0 20px; color: var(--muted); font-size: 17px; }
.help-cats { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.help-cats legend { padding: 0; margin-bottom: 12px; font-weight: 600; font-size: 17px; color: var(--ink); }
.help-cat { position: relative; display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel-2);
  cursor: pointer; font-size: 16px; line-height: 1.25; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.help-cat input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.help-cat .dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--faint); background: var(--card); }
.help-cat:has(input:checked) { border-color: var(--g700); background: var(--mint); }
.help-cat input:checked + .dot { border-color: var(--g800); background: radial-gradient(circle, var(--g800) 0 5px, var(--card) 5.5px); }
.help-cat input:focus-visible + .dot { outline: 3px solid var(--g700); outline-offset: 2px; }
.help-dlg .help-more { margin-top: 20px; font-weight: 600; font-size: 17px; color: var(--ink); }
.help-more textarea { min-height: 96px; resize: vertical; }
.help-dlg .help-count { display: none; margin: 6px 0 0; text-align: right; font-size: 14px; color: var(--muted); }
.help-dlg .help-note, .help-dlg .help-off { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.help-note .ic, .help-off .ic { flex: none; width: 24px; height: 24px; margin-top: 1px; }
.help-off b { color: var(--ink); }
.help-off .ic { color: var(--bad-ink); }
.help-dlg .help-err { margin: 10px 0 0; color: var(--bad-ink); font-weight: 600; }
.help-dlg [hidden] { display: none; }
.help-dlg .help-acts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 26px; }
.help-acts .btn { min-height: 56px; font-size: 18px; }
.help-acts .help-cancel { background: var(--panel-2); }
@media (min-width: 600px) and (max-width: 999px) {
  .ihead .i-help { position: absolute; top: 0; right: 0; margin: 0; }
  .ihead .i-help ~ h1 { padding-right: 210px; }
}
@media (max-width: 599px) {
  .help-layer { place-items: end stretch; padding: 0; }
  .help-dlg { width: 100%; max-height: calc(100vh - 24px); border-radius: 22px 22px 0 0; padding: 10px 18px max(18px, env(safe-area-inset-bottom)); }
  .help-dlg .grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 16px; }
  .help-dlg .dlg-x { top: 24px; right: 10px; }
  .help-dlg h2 { font-size: 25px; }
  .help-cats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .help-cat { min-height: 56px; font-size: 17px; }
  .help-dlg .help-count { display: block; }
  .help-dlg .help-off { padding: 12px 14px; border: 1px solid var(--fair-line); border-radius: 12px; background: var(--fair-bg); color: var(--fair-ink); }
  .help-off b, .help-off .ic { color: var(--fair-ink); }
  .help-dlg .help-acts { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 20px; }
  .help-acts .help-send { order: -1; }
  .help-acts .help-cancel { background: var(--grey-bg); border-color: var(--grey-bg); }
  .ihead .i-help { position: absolute; top: 0; right: 0; margin: 0; width: 44px; padding: 0; }
  .ihead .i-help span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ihead .i-help ~ h1 { padding-right: 52px; }
}

/* During an inspection on a phone: the save state says "Saved" on one line; "on this iPhone" stays for screen readers. */
@media (max-width: 599px) {
  .top.for-inspect .pill { padding: 0 12px; }
  .top.for-inspect .pill .more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Egnyte, on Team under "Report emails" (design/v2/tirages g_egnyte_connecte_desk/_tel, g_egnyte_dossier_desk/_tel).
   Daily state: facts on the left, the two actions on the right; choosing the folder: where we are, the folders, what a
   report's path will be. A phone stacks everything, the two actions side by side. */
.card.eg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 240px); gap: 18px 32px; align-items: start; }
.eg h2 { margin-bottom: 2px; }
.eg-sub { color: var(--muted); margin: 0 0 14px; }
.eg-note { margin: 0; }
.eg-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.eg-facts li { display: flex; align-items: center; gap: 14px; min-height: 30px; flex-wrap: wrap; }
.eg-facts li > .ic, .eg-conn > .ic { width: 26px; height: 26px; flex: none; color: var(--g900); }
.eg-facts li > span { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.eg-facts li > .ic + span:last-child { flex: 1 1 200px; }
.eg-facts li > .btn { flex: none; }
.eg-facts .eg-wait > .ic { color: var(--amber); }
.eg-facts .eg-fail { color: var(--bad-ink); }
.eg-acts { display: grid; gap: 12px; align-self: center; }
.eg-acts .btn { width: 100%; }
.eg-acts .btn.primary .ic { width: 24px; height: 24px; }
.eg-alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); margin: 0 0 14px; }
.eg-alert > .ic { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.eg-alert p { margin: 0; }
.eg-alert.bad { background: #fff6f5; border: 1px solid var(--bad-line); }
.eg-alert.warn { background: #fffaf0; border: 1px solid var(--fair-line); }
.eg-conn { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--g700); overflow-wrap: anywhere; font-size: 15px; }
.eg-choose { font-size: 16px; font-weight: 500; color: var(--text); margin: 0 0 10px; }
.card.eg.picking { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .95fr); gap: 18px 24px; }
.eg-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.eg-crumbs > .chev { width: 18px; height: 18px; color: var(--g900); flex: none; }
.eg-crumb { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; border: 0; background: none; font: inherit; color: var(--g900); cursor: pointer; border-radius: var(--r-sm); }
.eg-crumb .ic { width: 24px; height: 24px; }
.eg-crumb:hover { background: var(--panel-2); }
.eg-crumb[aria-current] { font-weight: 500; }
.eg-list { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; align-self: stretch; min-height: 120px; }
.eg-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.eg-row:last-child { border-bottom: 0; }
.eg-row.on { background: var(--mint); }
.eg-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; min-height: 46px; padding: 0 12px 0 16px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.eg-pick span { overflow-wrap: anywhere; }
.eg-pick .ic { width: 24px; height: 24px; flex: none; color: var(--g900); }
.eg-row.on .eg-pick { font-weight: 500; }
.eg-open { flex: none; width: 48px; min-height: 46px; border: 0; background: none; color: var(--faint); cursor: pointer; display: grid; place-items: center; }
.eg-open .chev { width: 20px; height: 20px; }
.eg-row.on .eg-open, .eg-open:hover { color: var(--g900); }
.eg-empty { padding: 16px; margin: 0; }
.eg-empty.bad { color: var(--bad-ink); }
.eg-side { display: grid; gap: 10px; align-content: start; }
.eg-prev-l { margin: 4px 0 0; color: var(--muted); }
.eg-prev { margin: 0; padding: 12px 14px; background: var(--panel); border-radius: var(--r-sm); color: var(--text); overflow-wrap: anywhere; font-size: 15px; }
.eg-side-acts { display: grid; gap: 10px; }
.eg-side-acts .btn { width: 100%; }
@media (max-width: 999px) {
  .card.eg.picking { grid-template-columns: minmax(0, 1fr); }
  .card.eg.picking .eg-list { min-height: 0; }
}
@media (max-width: 699px) {
  .card.eg { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .eg-acts { grid-template-columns: 1fr 1fr; align-self: stretch; }
  .eg-acts .btn { padding: 0 10px; }
  .eg-acts .btn:only-child { grid-column: 1 / -1; }
  .eg-facts { font-size: 15px; gap: 8px; }
  .eg-facts li > span { flex: 1 1 160px; }
  .eg-facts li > .btn { margin-left: auto; }
  .eg-crumbs { border: 0; padding: 0; background: none; }
  .eg-crumb { color: var(--g600); font-size: 17px; padding: 0 6px; }
  .eg-crumb .ic { display: none; }
  .eg-pick { min-height: 58px; }
  .eg-open { min-height: 58px; }
}

/* ---------------------------------------------------------------- The Irri Group (G6: the shell of the reference host)
   design/groupe/README.md and its mockups (signin_*, office_*, tech_*). Only under html[data-shell="group"], which
   js/brand.js sets on the reference host alone: the old host and a sleeping setting never read a line of it. The colours
   are the client's logo (its blue, its green, the navy of its medallion); the report PDF and email are not made here. */
html[data-shell="group"] {
  --g900: #13214a; --g800: #0b5ccc; --g700: #0a4fb0; --g600: #0b5ccc;
  --leaf: #5fa832; --leaf-2: #8cc63f;
  --ink: #111a2b; --text: #2c3647; --muted: #4e5a6b; --faint: #5d6979; --field: #7c8798;
  --line: #e2e7ee; --line-2: #ccd5e1; --bg: #f5f7fa; --panel: #edf2f8; --panel-2: #f5f8fc; --mint: #e8f0fd;
  --sh: 0 1px 2px rgba(17, 26, 43, .05), 0 6px 18px rgba(17, 26, 43, .06);
  --sh-lg: 0 10px 40px rgba(17, 26, 43, .16);
}
html[data-shell="group"] body::before { background: var(--bg); }
html[data-shell="group"] :focus-visible { outline-color: var(--g700); }
html[data-shell="group"] .btn.primary, html[data-shell="group"] .btn.dark { box-shadow: 0 2px 8px rgba(11, 92, 204, .2); }
html[data-shell="group"] .in:focus { box-shadow: 0 0 0 3px rgba(11, 92, 204, .16); }
html[data-shell="group"] .nav a[aria-current="page"] { background: #e7effc; color: var(--g800); box-shadow: none; }
html[data-shell="group"] .av, html[data-shell="group"] .avatar { background: #1b2a6b; }
html[data-shell="group"] .banner::before { background: var(--g600); }
html[data-shell="group"] .banner.info { background: #f4f8fe; border-color: #cfdcf1; }
html[data-shell="group"] .boot .b-idg, html[data-shell="group"] .boot .b-client, html[data-shell="group"] .boot .b-word { display: none; }
.boot .b-group { display: none; }
html[data-shell="group"] .boot .b-group { display: block; width: 275px; }

/* the bar: the full logo, its medallion alone where the bar is short of room */
.glogo { display: flex; align-items: center; }
.glogo img { display: block; width: auto; }
.glogo .g-full { height: 44px; }
.glogo .g-mark { display: none; height: 40px; }
.top.no-tabs .top-end { margin-left: auto; }
@media (max-width: 1299px) and (min-width: 1000px) { .top.for-office:not(.few-tabs):not(.no-tabs) .glogo .g-full { display: none; } .top.for-office:not(.few-tabs):not(.no-tabs) .glogo .g-mark { display: block; } }
/* the group's logo is wider than IDG's: the office's six tabs keep their room by folding the offline state to its icon,
   and the technician's three tabs go to their own row on an iPad in portrait, as the office's do */
@media (max-width: 1499px) and (min-width: 1300px) {
  html[data-shell="group"] .top.for-office .pill > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html[data-shell="group"] .top.for-office .glogo .g-full { height: 40px; }
}
@media (max-width: 999px) and (min-width: 600px) {
  html[data-shell="group"] .glogo .g-full { height: 38px; }
  html[data-shell="group"] .top.for-tech { flex-wrap: wrap; row-gap: 6px; }
  html[data-shell="group"] .top.for-tech .nav { order: 3; width: 100%; }
}
@media (max-width: 599px) {
  /* the group's logo, wider than IDG's, keeps the person on its row: the offline state folds to its icon (words kept for screen readers) */
  html[data-shell="group"] .top:not(.for-inspect) .pill > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .glogo .g-full { height: 30px; }
  .top.for-inspect .glogo .g-full { display: none; }
  .top.for-inspect .glogo .g-mark { display: block; height: 34px; }
}
@media (max-width: 380px) { .glogo .g-full { display: none; } .glogo .g-mark { display: block; height: 36px; } }

/* sign-in, install, signing in (signin_desk_2, signin_tab_2, signin_tel_2): the logo and the form centred on a pale sky,
   the photograph of the lawn and its sprinkler rising from the bottom of the screen */
html[data-shell="group"] .hero { flex-direction: column; align-items: stretch; background: #fff; }
html[data-shell="group"] .hero-photo { left: 0; right: 0; top: auto; bottom: 0; height: 46%; background: url('../assets/brand/signin-photo.jpg') center 72% / cover no-repeat; }
html[data-shell="group"] .hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .7) 34%, rgba(255, 255, 255, .12) 70%, rgba(255, 255, 255, 0) 100%); }
html[data-shell="group"] .hero-panel { width: 100%; min-height: 0; flex: 1; border-radius: 0; box-shadow: none; background: linear-gradient(180deg, #f3f8fe 0%, #fff 60%, rgba(255, 255, 255, 0) 100%); align-items: flex-start; justify-content: center; }
html[data-shell="group"] .hero-in { width: min(560px, 88%); margin: 0 auto; padding: max(48px, 9vh) 0 calc(46vh - 40px); text-align: center; }
html[data-shell="group"] .hero .lead { font-size: 19px; }
html[data-shell="group"] .hero .code-f { text-align: left; }
html[data-shell="group"] .hero .note { text-align: center; }
html[data-shell="group"] .hero .steps, html[data-shell="group"] .hero .h-install { text-align: left; }
html[data-shell="group"] .hero.install .hero-in, html[data-shell="group"] .hero.blocked .hero-in { width: min(640px, 90%); }
html[data-shell="group"] .hero.install .hero-in { padding-bottom: 40px; }
html[data-shell="group"] .hero.install .hero-photo { height: 26%; }
.glogo-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 auto 34px; }
.glogo-hero img { display: block; width: min(460px, 100%); height: auto; }
.glogo-hero .g-motto { font-size: 21px; font-weight: 500; letter-spacing: .04em; color: var(--ink); padding-left: 21%; white-space: nowrap; }
@media (max-width: 999px) and (min-width: 600px) { html[data-shell="group"] .hero-photo { height: 30%; } html[data-shell="group"] .hero-in { padding-bottom: calc(30vh - 20px); } }
@media (max-width: 599px) {
  html[data-shell="group"] .hero-panel { width: 100%; }
  html[data-shell="group"] .hero-in { width: auto; margin: 0 16px; padding: 44px 0 calc(24vh + 10px); }
  html[data-shell="group"] .hero-photo { height: 24%; }
  html[data-shell="group"] .hero .lead { font-size: 17px; }
  .glogo-hero { margin-bottom: 26px; gap: 6px; }
  .glogo-hero img { width: min(320px, 100%); }
  .glogo-hero .g-motto { font-size: 14px; padding-left: 20%; }
}

/* the business above its properties (office_*, tech_*): its own logo, and the way back to the choice */
.co-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 4px 0 18px; }
.co-logo { display: block; height: 96px; width: auto; }
.co-name { font-size: 24px; font-weight: 600; color: var(--ink); }
.co-switch { flex: none; }
@media (max-width: 999px) { .co-logo { height: 80px; } }
@media (max-width: 599px) { .co-logo { height: 64px; } .co-head { margin-bottom: 12px; } }

/* the group's home: one card per business, what it opens listed under its name */
.biz-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; align-items: start; }
.biz-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); overflow: hidden; }
.biz-head { display: flex; align-items: center; gap: 20px; padding: 22px 24px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); min-height: 44px; }
.biz-head:hover, .biz-door:hover { background: var(--panel-2); }
.biz-head b { display: block; font-size: 22px; font-weight: 600; line-height: 1.2; }
.biz-head small { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }
.biz-logo { display: block; height: 72px; width: auto; flex: none; }
.biz-mono { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--panel); color: var(--g900); flex: none; }
.biz-mono .ic { width: 34px; height: 34px; }
.biz-doors { display: grid; padding: 8px; }
.biz-door { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--text); }
.biz-door b { display: block; color: var(--ink); font-weight: 600; font-size: 17px; }
.biz-door small { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }
@media (max-width: 599px) {
  .biz-head { padding: 16px; gap: 14px; }
  .biz-head b { font-size: 19px; }
  .biz-logo { height: 54px; }
  .biz-mono { width: 54px; height: 54px; }
}

/* the old host (G9; move_*, finish_*): the app's new address, in a card of its own, never closed. Drawn on the old host,
   whatever its shell: the group's logo says where the app went. */
.move-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 28px; padding: 20px 24px; border-radius: var(--r-lg); background: #eef4fd; border: 1px solid #cfdcf1; box-shadow: var(--sh); }
.move-card.finish { background: #fff8e6; border-color: var(--fair-line); }
.mv-logo { display: block; height: 58px; width: auto; }
.mv-t { margin: 0 0 4px; font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.mv-t b { color: #0b5ccc; font-weight: 600; overflow-wrap: anywhere; }
.mv-b { margin: 0; font-size: 16px; color: var(--text); }
.mv-acts { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.move-card .btn.primary { background: #0b5ccc; border-color: #0b5ccc; box-shadow: 0 2px 8px rgba(11, 92, 204, .2); }
.move-card .btn.primary:hover { background: #0a4fb0; }
.move-card .btn { white-space: normal; text-align: center; }
@media (max-width: 1099px) {
  .move-card { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .mv-acts { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 599px) {
  .move-card { padding: 16px; justify-items: center; text-align: center; }
  .mv-logo { height: 44px; }
  .mv-t { font-size: 18px; }
  .mv-b { font-size: 15px; }
  .mv-acts { width: 100%; flex-direction: column; }
}
