/* RELVIST: shared tokens, components, then responsive adaptations. */
@font-face {
  font-family: "Manrope";
  src: url("vendor/fonts/Manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --font: "Manrope", "Segoe UI", sans-serif;
  --bg: #f3f6fa;
  --card: #ffffff;
  --surface: #f7f9fc;
  --surface-hover: #eef3f8;
  --field: #ffffff;
  --ink: #192c40;
  --muted: #596b7d;
  --line: #dbe3ec;
  --field-line: #bac8d6;
  --accent: #11678e;
  --accent-strong: #075374;
  --accent-3: #147da4;
  --accent-2: #a06c17;
  --accent-soft: #e8f3f9;
  --accent-line: #b6d9e9;
  --on-accent: #ffffff;
  --danger: #b63646;
  --danger-soft: #fff0f1;
  --success: #176c52;
  --success-soft: #e9f6ef;
  --warning: #80570e;
  --warning-soft: #fcf3df;
  --shadow: 0 4px 20px rgba(26, 48, 73, 0.045);
  --modal-shadow: 0 24px 80px rgba(8, 24, 42, 0.22);
  --ring: 0 0 0 3px rgba(20, 125, 164, 0.17);
  --radius: 14px;
  --touch-min: 44px;
}
body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1724;
  --card: #182334;
  --surface: #1c2a3d;
  --surface-hover: #24364b;
  --field: #131f30;
  --ink: #ecf2f8;
  --muted: #a7b7ca;
  --line: #2c3c51;
  --field-line: #41556c;
  --accent: #82cce9;
  --accent-strong: #b0e5fa;
  --accent-3: #167fa5;
  --accent-2: #ebc16d;
  --accent-soft: #1c3548;
  --accent-line: #345e76;
  --danger: #f59aab;
  --danger-soft: #3e2635;
  --success: #92d7b6;
  --success-soft: #1c3835;
  --warning: #ebc779;
  --warning-soft: #3a3225;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --modal-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
html { min-width: 300px; scroll-padding-top: 150px; scrollbar-width: thin; }
html:has(body[data-theme="dark"]) { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(ellipse at 85% 0%, rgba(23, 127, 170, 0.06), transparent 55%), var(--bg);
  font: 500 14px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body.auth-lock, body.blocked-lock, body:has(.signature-modal.active) { overflow: hidden; }
::selection { color: var(--ink); background: var(--accent-line); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.3; letter-spacing: -0.025em; overflow-wrap: anywhere; }
h1 { font-size: clamp(25px, 3vw, 32px); }
h2 { font-size: 23px; }
h3 { font-size: 19px; }
h4 { font-size: 15px; font-weight: 750; }
img, canvas { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, label, input, select, textarea { min-width: 0; }
button { touch-action: manipulation; }
a { color: var(--accent); }
.muted { color: var(--muted); font-size: 13px; line-height: 1.6; }
.ambient, .storage { display: none; }

/* Controls: one size scale for every screen and both themes. */
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch-min);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
button.primary, button.profile-btn { background: #116f96; color: var(--on-accent); border-color: transparent; }
button.ghost { background: var(--surface); color: var(--ink); }
button.danger { background: #b52e43; color: #fff; border-color: transparent; }
button.logout-btn { color: var(--danger); background: var(--danger-soft); }
button.full { width: 100%; }
button:disabled { opacity: 0.48; cursor: not-allowed; }
button:active:not(:disabled) { filter: brightness(0.94); }
button[data-action="delete"], button[data-client-action="delete"], .plano-catalog-delete { color: var(--danger); }
@media (hover: hover) {
  button:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--field-line); }
  button.primary:hover:not(:disabled), button.profile-btn:hover:not(:disabled) { background: #085c82; border-color: transparent; }
  button.danger:hover:not(:disabled) { background: #992039; border-color: transparent; }
  button[data-action="delete"]:hover, button[data-client-action="delete"]:hover, .logout-btn:hover { background: var(--danger-soft); }
}
label { display: grid; align-content: start; gap: 7px; font-size: 13px; font-weight: 650; }
.contractor-logo-field { display: grid; align-content: start; gap: 7px; font-size: 13px; font-weight: 650; }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 11px 13px;
  border: 1px solid var(--field-line); border-radius: 9px;
  background: var(--field); color: var(--ink);
  font-size: 15px; font-weight: 500; line-height: 1.5;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.8; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: var(--ring); }
input:disabled, select:disabled, textarea:disabled { opacity: 0.65; cursor: not-allowed; }
textarea { resize: vertical; }
select { padding-right: 28px; text-overflow: ellipsis; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; min-height: 22px; padding: 0; margin: 0; accent-color: var(--accent-3); flex-shrink: 0; }
input[type="checkbox"]:focus, input[type="radio"]:focus { box-shadow: none; }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.input-with-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.logo-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.logo-preview { width: 160px; height: 90px; object-fit: contain; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }

/* Navigation never overlays the brand or the inspection actions. */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 80px; padding: 14px max(24px, calc((100vw - 1184px) / 2));
  padding-top: max(14px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line); background: var(--card);
}
/* Keep the sticky header from blocking form controls that scroll beneath it. */
body.form-active .topbar { pointer-events: none; }
body.form-active .topbar button { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.logo { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; overflow: hidden; color: #fff; background: #135a86; font-size: 28px; font-weight: 800; }
.logo img { display: none; width: 100%; height: 100%; object-fit: contain; }
.logo.has-image img { display: block; }
.logo.has-image span { display: none; }
.app-wordmark { display: flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 800; letter-spacing: 0.09em; line-height: 1.1; }
.beta-badge { padding: 5px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.info-button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; }
.info-button span { display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid currentColor; border-radius: 50%; font-size: 13px; font-weight: 800; line-height: 1; }
.top-icon-btn { min-width: 84px; }
.menu-toggle { position: relative; flex: 0 0 44px; flex-direction: column; width: 44px; height: 44px; padding: 11px; gap: 5px; }
.menu-toggle span { display: block; width: 21px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 150ms ease, opacity 150ms ease; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.app-menu {
  position: absolute; top: calc(100% + 8px); right: max(24px, calc((100vw - 1184px) / 2));
  width: 320px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 180px);
  overflow-y: auto; overscroll-behavior: contain; padding: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--modal-shadow); animation: reveal 160ms ease-out;
}
.app-menu-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 4px 12px; }
.app-menu-heading strong { font-size: 16px; }
.app-menu-heading span { font-size: 11px; color: var(--muted); }
.app-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.app-menu .menu-item { min-height: 52px; padding: 10px 8px; font-size: 11px; letter-spacing: 0.035em; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.app-menu .logout-btn { color: var(--danger); }

/* Home and project overview. */
.app { width: min(1184px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 max(48px, env(safe-area-inset-bottom)); }
.view { display: none; }
.view.active { display: grid; gap: 24px; animation: reveal 180ms ease-out; }
.home-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.home-intro { display: grid; gap: 5px; }
#newProject { min-width: 170px; min-height: 48px; }
#newProject::before { content: "+"; font-size: 22px; font-weight: 500; line-height: 1; }
.home-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric-card { display: flex; flex-wrap: wrap; align-items: baseline; align-content: start; gap: 5px 8px; min-width: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.metric-label { flex-basis: 100%; color: var(--muted); font-size: 12px; font-weight: 650; }
.metric-value { font-size: 32px; font-weight: 800; line-height: 1.4; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.projects-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 12px; }
.projects-header h2 { margin-bottom: 4px; }
.projects-tools { display: grid; flex: 1 1 auto; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; min-width: 0; }
.project-search-field { display: block; min-width: 0; }
.project-search-field input { min-height: 46px; }
.project-search-field input::placeholder { color: var(--muted); }
.project-filters, .auth-mode-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.filter-btn, .auth-mode-btn { border-color: transparent; background: transparent; color: var(--muted); padding: 8px 16px; }
.filter-btn.active, .auth-mode-btn.active { background: var(--card); color: var(--accent); border-color: var(--line); box-shadow: 0 2px 4px rgba(8, 24, 42, 0.04); }
.project-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.project-card { display: grid; grid-template-rows: 1fr auto auto; gap: 16px; padding: 22px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.project-card h3 { font-size: 17px; line-height: 1.5; letter-spacing: -0.02em; }
.project-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 7px; color: var(--muted); font-size: 12px; }
.project-meta span + span { border-left: 1px solid var(--line); padding-left: 12px; }
.tag { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px; border-radius: 6px; color: var(--accent); background: var(--accent-soft); font-size: 11px; font-weight: 750; }
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag-draft { color: var(--warning); background: var(--warning-soft); }
.tag-final { color: var(--success); background: var(--success-soft); }
.card-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.card-actions button { padding: 9px 8px; font-size: 12px; }
.card-actions [data-action="edit"], .client-item-actions [data-client-action="use"] { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.empty-state, .photo-empty, .gallery-empty, .plano-topic-empty { padding: 36px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; background: var(--surface); }
.empty-state h3 { margin-bottom: 6px; color: var(--ink); }

/* Inspection forms and records. */
#formView { max-width: 1040px; margin: 0 auto; }
.form-meta-inline { padding: 4px 0 8px; }
.form-meta-inline h2 { margin-bottom: 6px; font-size: clamp(22px, 3vw, 28px); }
.panel { display: grid; gap: 20px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.panel-header, .section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-header-copy { display: grid; gap: 4px; min-width: 0; }
.panel-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-inline-actions button { font-size: 12px; }
.panel-footer { display: flex; justify-content: flex-end; }
.grid, .clients-editor, .auth-grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-approval-groups { display: grid; gap: 24px; }
.project-approval-group { display: grid; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.project-approval-group:first-child { padding-top: 0; border-top: 0; }
.project-approval-group h4 { color: var(--accent); }
.project-approval-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.table, #checklist { display: grid; min-width: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 0.8fr) 44px; gap: 12px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row.head { padding: 0 0 10px; font-size: 11px; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.row > * { min-width: 0; }
.item-name, .item-custom {
  min-height: 54px;
  resize: vertical;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.item-answer { display: grid; gap: 8px; }
.answer-options { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 4px; }
.choice-btn { min-height: 44px; padding: 8px; font-size: 12px; }
.choice-btn.active { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.checklist-text-only .answer-options { display: none; }
.icon.remove { padding: 0; width: 44px; height: 44px; color: var(--danger); background: transparent; font-size: 24px; }
.photo-actions, .signature-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photo-list { display: grid; gap: 20px; }
.photo-card { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.photo-preview { display: grid; place-items: center; min-height: 180px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--field); }
.photo-preview img { display: block; width: 100%; max-height: 320px; object-fit: contain; }
.photo-fields { display: grid; gap: 12px; }
.photo-buttons { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photo-add-slot-wrap { display: flex; justify-content: center; }
.photo-add-slot-wrap button { border-style: dashed; width: 100%; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.photo-grid figure { display: grid; gap: 8px; }
.photo-grid img { max-height: 300px; object-fit: contain; }
.signature-block { display: grid; gap: 12px; }
.signature-block + label, .signature-block + .signature-block { padding-top: 18px; border-top: 1px solid var(--line); }
.signature-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
/* Signature ink and document pages must stay on white, including dark mode. */
.signature-pad { padding: 8px; border: 1px solid var(--field-line); border-radius: 10px; background: #fff; }
.signature-pad canvas { display: block; width: 100%; height: 200px; background: #fff; border-radius: 6px; touch-action: none; }
.signature-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; padding: 0; background: transparent; box-shadow: none; border: 0; }

/* Dialogs share a scroll-safe title and close button. */
.signature-modal, .auth-gate {
  position: fixed; inset: 0; z-index: 50; display: none;
  align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(5, 15, 28, 0.62); overscroll-behavior: contain;
}
.signature-modal.active, .auth-gate.active { display: flex; }
.signature-modal-card {
  position: relative; display: flex; flex-direction: column; gap: 20px;
  width: min(460px, 100%); max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  min-width: 0; padding-bottom: 24px; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--card); box-shadow: var(--modal-shadow);
  scrollbar-width: thin; scrollbar-color: var(--field-line) transparent;
  animation: reveal 160ms ease-out;
}
.signature-modal-card > * { flex-shrink: 0; min-width: 0; margin-inline: 24px; }
.signature-modal-card > :first-child:not(.modal-heading) { margin-top: 24px; }
.signature-modal-card > :last-child { margin-bottom: 0; }
.signature-modal-card .modal-heading {
  position: sticky; top: 0; z-index: 5; display: flex;
  align-items: flex-start; justify-content: space-between; gap: 16px;
  margin: 0; padding: 18px 20px 18px 24px;
  border-bottom: 1px solid var(--line); background: var(--card);
}
.modal-heading > :first-child { align-self: center; min-width: 0; flex: 1; }
.modal-heading h3 { font-size: 20px; }
.modal-close-x { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.signature-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.signature-modal-actions > button { flex: 1 1 140px; }
.signature-modal-card > .signature-modal-actions:has(> button:only-child) { display: none; }
.settings-card { width: min(680px, 100%); }
.app-info-card { width: min(760px, 100%); }
.logs-card { width: min(860px, 100%); }
.logs-toolbar { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(150px, 0.7fr); gap: 12px; }
.logs-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.logs-summary-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.logs-summary-actions button { min-height: 38px; padding: 8px 12px; font-size: 12px; }
.logs-list { display: grid; gap: 8px; max-height: 48vh; overflow-y: auto; padding: 2px 4px 2px 1px; scrollbar-width: thin; }
.log-entry { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--surface); }
.log-entry.log-level-warn { border-left-color: #d59d36; }
.log-entry.log-level-error { border-left-color: var(--danger); }
.log-entry-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.log-entry-head strong { overflow-wrap: anywhere; font-size: 12px; }
.log-entry-head time, .log-entry small { color: var(--muted); font-size: 11px; }
.log-entry p { margin: 0; color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }
.log-level-badge { width: max-content; padding: 3px 6px; border-radius: 5px; color: #d7f4ff; background: rgba(23, 143, 189, 0.24); font-size: 9px; font-weight: 800; letter-spacing: 0.05em; }
.log-level-warn .log-level-badge { color: #ffe6aa; background: rgba(213, 157, 54, 0.2); }
.log-level-error .log-level-badge { color: #ffd3da; background: var(--danger-soft); }
.logs-empty { padding: 28px 8px; text-align: center; }
.app-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.app-info-item { display: grid; gap: 3px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.app-info-item span { color: var(--muted); font-size: 11px; }
.app-info-item strong { font-size: 14px; }
.app-info-section { display: grid; gap: 5px; }
.app-info-section h4 { color: var(--accent); }
.app-info-section p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.clients-card, .client-history-card { width: min(960px, 100%); }
.clients-card:has(#clientsEditorBlock:not([hidden])) { width: min(720px, 100%); }
.confirm-card { width: min(480px, 100%); }
#confirmModal { z-index: 90; }
#signatureModal { z-index: 95; }
.personalized-recovery { z-index: 100; }
.clients-title-row, .gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.clients-db-status, .gallery-count { display: inline-flex; align-items: center; color: var(--accent); background: var(--accent-soft); padding: 4px 9px; border-radius: 6px; font-size: 11px; font-weight: 750; }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.clients-title-row .eyebrow { margin-bottom: 4px; }

/* Management and editing remain independent views. */
#clientsManagementBlock, #clientsEditorBlock { display: grid; gap: 20px; }
.clients-toolbar { display: grid; grid-template-columns: minmax(200px, 1.6fr) minmax(145px, 1fr) minmax(135px, 0.95fr) auto; align-items: end; gap: 10px; }
.clients-toolbar label { font-size: 11px; }
.clients-toolbar input, .clients-toolbar select { font-size: 13px; }
#clientNew { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); min-height: 46px; }
.clients-list, .client-history-list { display: grid; align-content: start; gap: 10px; max-height: 48vh; overflow-y: auto; overscroll-behavior: contain; padding: 1px 4px 1px 1px; scrollbar-width: thin; scrollbar-color: var(--field-line) transparent; }
.client-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; }
.client-item-main { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.client-item-main strong { font-size: 13px; line-height: 1.5; }
.client-item-main .muted, .client-item-meta { color: var(--muted); font-size: 11px; }
.client-item-actions { display: grid; grid-template-columns: repeat(4, auto); gap: 5px; }
.client-item-actions button { padding: 9px; font-size: 11px; }
.client-notes-field, .client-editor-help { grid-column: 1 / -1; }
.client-editor-help { padding: 10px 12px; border-left: 2px solid var(--accent-line); background: var(--surface); font-size: 12px; }
.clients-editor label > .muted { display: contents; font-size: inherit; }
.clients-editor textarea { min-height: 90px; }
.client-history-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.client-history-item > div { display: grid; gap: 4px; }
.client-history-item span { font-size: 12px; color: var(--muted); }

/* Backup and gallery. Plain checkboxes, no decorative selection cards. */
.backup-card { width: min(700px, 100%); }
.backup-selection { display: grid; gap: 18px; }
.backup-selection-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.backup-selection-head h4 { margin-bottom: 4px; }
.backup-selection-head p { font-size: 12px; }
.backup-selection-actions { display: flex; flex-shrink: 0; gap: 6px; }
.backup-selection-actions button { padding: 8px 10px; font-size: 11px; }
.backup-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.backup-option { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.backup-option input { appearance: none; -webkit-appearance: none; position: relative; width: 22px; height: 22px; border: 1.5px solid var(--field-line); border-radius: 6px; background: var(--field); }
.backup-option input:checked { border-color: #147da4; background: #147da4; }
.backup-option input:checked::after { content: ""; position: absolute; top: 3px; left: 7px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.backup-option span { display: grid; gap: 2px; min-width: 0; }
.backup-option strong { font-size: 13px; line-height: 1.4; }
.backup-option small { color: var(--muted); font-size: 11px; font-weight: 500; overflow-wrap: anywhere; }
.backup-selection-status, .backup-note { color: var(--muted); font-size: 12px; }
.backup-note { padding: 12px; background: var(--surface); border-radius: 8px; }
.backup-import-status { color: var(--accent); font-size: 12px; overflow-wrap: anywhere; }
.backup-import-status:empty { display: none; }
.backup-card > .signature-modal-actions { display: grid; grid-template-columns: 1fr 1fr; }
.gallery-card { width: min(980px, 100%); }
.gallery-head > div { min-width: 0; }
.gallery-head p { margin-top: 5px; }
.gallery-search-label { gap: 6px; }
.gallery-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 14px; max-height: 55vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 1px 4px 1px 1px; }
.gallery-empty { grid-column: 1 / -1; }
.gallery-item { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); content-visibility: auto; contain-intrinsic-size: 280px; }
.gallery-item-preview { display: grid; place-items: center; height: 160px; background: var(--field); }
.gallery-item-preview img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item-info { display: grid; gap: 3px; padding: 12px; }
.gallery-item-title { font-weight: 750; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-item-source { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.gallery-item-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 12px 12px; margin-top: auto; }
.gallery-item-actions button { font-size: 11px; padding: 8px; }

/* PDF pages keep native paper colors and independent scrolling. */
.pdf-preview-card { width: min(1000px, 100%); }
.pdf-preview-head { display: grid; gap: 5px; }
.pdf-preview-head p { overflow-wrap: anywhere; font-size: 12px; }
.pdf-preview-frame-wrap { min-height: 180px; height: 58vh; height: 58dvh; flex-shrink: 1; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.pdf-preview-pages { display: grid; gap: 16px; align-content: start; min-height: 100%; padding: 16px; }
.pdf-preview-page { width: min(100%, 760px); margin: 0 auto; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.pdf-preview-page canvas { display: block; width: 100%; height: auto; }
.pdf-preview-error, .pdf-preview-loading { display: grid; place-items: center; min-height: 200px; padding: 24px; color: var(--muted); text-align: center; }

/* Master plans and document templates. */
.plano-catalog-card { width: min(900px, 100%); }
.plano-diretor-card { width: min(1000px, 100%); }
.plano-catalog-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.plano-catalog-list, .plano-diretor-list { display: grid; gap: 10px; align-content: start; max-height: 48vh; overflow-y: auto; overscroll-behavior: contain; padding: 1px 4px 1px 1px; scrollbar-width: thin; }
.plano-catalog-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.plano-catalog-item.active { border-color: var(--accent-line); background: var(--accent-soft); }
.plano-catalog-text { display: grid; gap: 6px; min-width: 0; }
.plano-catalog-name { font-size: 14px; font-weight: 750; overflow-wrap: anywhere; }
.plano-catalog-title-row { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.plano-catalog-mini-actions { display: flex; gap: 5px; }
.plano-catalog-mini-actions button { padding: 8px; font-size: 11px; }
.plano-catalog-source, .plano-catalog-meta { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.plano-catalog-badges, .plano-topic-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.plano-catalog-badge, .plano-topic-badge { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 5px; background: var(--surface-hover); color: var(--muted); font-size: 10px; font-weight: 750; }
.plano-topic-badge.favorite { color: var(--accent); background: var(--accent-soft); }
.plano-topic-badge.recent { color: var(--success); background: var(--success-soft); }
.plano-topic-badge.warning, .plano-catalog-badge.warning { color: var(--warning); background: var(--warning-soft); }
.plano-diretor-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.plano-diretor-stats { font-size: 12px; color: var(--muted); }
.plano-diretor-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.plano-filter-btn { font-size: 11px; padding: 8px 12px; }
.plano-filter-btn.active { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.plano-topic-group { position: sticky; top: 0; z-index: 1; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 12px; font-weight: 800; }
.plano-topic-item { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; }
.plano-topic-item.favorite { border-color: var(--accent-line); }
.plano-topic-item.noisy { border-color: var(--warning); }
.plano-topic-text { display: grid; gap: 6px; cursor: pointer; overflow-wrap: anywhere; font-size: 13px; }
.plano-topic-context { color: var(--muted); font-size: 11px; }
.plano-topic-id { color: var(--accent); font-weight: 750; }
.plano-topic-body { line-height: 1.7; }
.plano-topic-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plano-topic-actions button { font-size: 12px; }
.template-options { display: grid; gap: 10px; }
.template-option { position: relative; display: grid; gap: 5px; padding: 16px 16px 16px 52px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; }
.template-option input { position: absolute; left: 16px; top: 18px; }
.template-option h4 { font-size: 14px; }
.template-option p { font-size: 12px; color: var(--muted); font-weight: 500; }
.template-option.selected { border-color: var(--accent); background: var(--accent-soft); }
.template-option:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.guide-card { width: min(720px, 100%); }
.guide-list { display: grid; gap: 16px; padding-left: 24px; font-size: 13px; }
.guide-list li { padding-left: 5px; }
.guide-list li::marker { color: var(--accent); font-weight: 800; }
.guide-list strong { color: var(--ink); }

/* Authentication, feedback and accessibility. */
.blocked-gate { position: fixed; inset: 0; z-index: 140; display: none; align-items: center; justify-content: center; min-height: 100dvh; padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; background: radial-gradient(circle at 50% 0%, rgba(19, 115, 155, .24), transparent 48%), #071421; }
.blocked-gate.active { display: flex; }
.blocked-card { display: grid; gap: 17px; width: min(510px, 100%); padding: clamp(28px, 6vw, 48px); color: var(--ink); background: linear-gradient(145deg, var(--card), var(--surface)); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 100px rgba(0, 0, 0, .4); text-align: center; animation: reveal 180ms ease-out; }
.blocked-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 3px; color: #fff; background: var(--danger); border-radius: 50%; font-size: 28px; font-weight: 800; box-shadow: 0 0 0 8px var(--danger-soft); }
.blocked-card .auth-overline { margin: 0; color: var(--danger); }
.blocked-card h3 { font-size: clamp(25px, 5vw, 34px); }
.blocked-lead { color: var(--muted); font-size: 14px; }
.blocked-reason { display: grid; gap: 7px; padding: 15px; border: 1px solid var(--line); border-left: 3px solid var(--danger); border-radius: 10px; background: var(--surface); text-align: left; }
.blocked-reason span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.blocked-reason strong { color: var(--ink); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.blocked-status { min-height: 20px; color: var(--muted); font-size: 12px; }
.auth-gate { z-index: 70; }
.auth-card { display: grid; gap: 18px; width: min(500px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 28px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--modal-shadow); }
.auth-brand { display: flex; align-items: center; gap: 14px; padding-bottom: 4px; }
.auth-brand img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 20px rgba(0, 0, 0, .22); }
.auth-brand div { display: grid; gap: 5px; }
.auth-brand strong { color: var(--ink); font-size: 23px; letter-spacing: .12em; }
.auth-brand span { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.auth-head { display: grid; gap: 6px; }
.auth-overline { color: var(--accent); text-transform: uppercase; font-size: 11px; font-weight: 750; letter-spacing: 0.06em; }
.auth-mode-btn { flex: 1; }
#authNameWrap, #authProfessionWrap, #authPhoneWrap, #authCompanyWrap { display: none; }
.auth-card.create-mode #authNameWrap, .auth-card.create-mode #authProfessionWrap, .auth-card.create-mode #authPhoneWrap, .auth-card.create-mode #authCompanyWrap { display: grid; }
.auth-password-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border: 1px solid var(--field-line); border-radius: 9px; background: var(--field); padding-right: 4px; }
.auth-password-field input { border: 0; background: transparent; }
.auth-password-field input:focus { box-shadow: none; }
.auth-password-field:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.auth-password-toggle { font-size: 11px; padding: 8px 10px; border: 0; }
.auth-terms { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.auth-checkline { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.auth-checkline input { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); }
.auth-terms-link { padding: 5px 0; border: 0; color: var(--accent); background: transparent; font-size: 11px; font-weight: 800; white-space: nowrap; }
.auth-terms-link:hover { color: var(--ink); }
.signature-modal#appInfoModal { z-index: 160; }
.auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-actions .primary, #authGoLoginBtn { grid-column: 1 / -1; }
.toast { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; z-index: 120; width: max-content; max-width: min(560px, calc(100% - 32px)); padding: 13px 20px; border-radius: 10px; background: #075374; color: #fff; font-size: 13px; box-shadow: var(--modal-shadow); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.success { background: #176c52; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.printable-only { display: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Tablet: simplify columns before content becomes cramped. */
@media (max-width: 1000px) {
  .clients-toolbar { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
  .clients-toolbar > :first-child { grid-column: 1 / -1; }
  .client-item { grid-template-columns: 1fr; gap: 12px; }
  .client-item-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .project-approval-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-header { flex-wrap: wrap; }
}

/* Mobile: compact header, balanced summaries, full-width forms. */
@media (max-width: 680px) {
  html { scroll-padding-top: 145px; }
  .topbar { min-height: 72px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); gap: 12px; }
  .logo { width: 42px; height: 42px; flex-basis: 42px; border-radius: 11px; }
  .brand { gap: 10px; }
  .app-wordmark { font-size: 18px; gap: 10px; }
  .beta-badge { font-size: 8px; padding: 4px 5px; }
  .app-menu { right: 12px; }
  body.form-active .topbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
  body.form-active .brand { grid-column: 1 / 3; grid-row: 1; }
  body.form-active .topbar-actions { display: contents; }
  body.form-active .menu-toggle { grid-column: 3; grid-row: 1; justify-self: end; }
  body.form-active .beta-badge { display: none; }
  #topBackHome { grid-column: 1; grid-row: 2; }
  #topSaveDraft { grid-column: 2; grid-row: 2; }
  #topSaveFinal { grid-column: 3; grid-row: 2; }
  .top-icon-btn { min-width: 0; width: 100%; padding: 9px 6px; font-size: 12px; }
  .app { width: calc(100% - 32px); padding-top: 24px; }
  .view.active { gap: 20px; }
  .home-actions { align-items: start; gap: 16px; flex-wrap: wrap; }
  .home-intro { gap: 4px; }
  .home-intro .muted { font-size: 12px; }
  #newProject { width: 100%; min-height: 46px; }
  .home-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric-card { padding: 15px 16px; border-radius: 12px; }
  .metric-label { font-size: 11px; }
  .metric-value { font-size: 28px; }
  .projects-header { align-items: stretch; flex-direction: column; gap: 14px; margin-top: 8px; }
  .projects-header h2 { font-size: 21px; }
  .projects-header .muted { font-size: 12px; }
  .projects-tools { grid-template-columns: 1fr; min-width: 0; gap: 10px; }
  .project-search-field input { min-height: 44px; }
  .project-filters { width: 100%; }
  .filter-btn { flex: 1; padding: 8px 6px; font-size: 12px; }
  .project-list { grid-template-columns: 1fr; gap: 12px; }
  .project-card { padding: 18px; gap: 14px; }
  .project-card h3 { font-size: 16px; }
  .project-meta { gap: 3px 8px; font-size: 11px; }
  .project-meta span + span { padding-left: 8px; }
  .card-actions { gap: 6px; padding-top: 14px; }
  .card-actions button { font-size: 11px; padding: 8px 3px; }
  .panel { padding: 18px; gap: 18px; }
  .panel h3 { font-size: 17px; }
  .panel-header { align-items: stretch; gap: 12px; }
  .panel-inline-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .grid, .clients-editor, .auth-grid-two { grid-template-columns: 1fr; gap: 16px; }
  .project-approval-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  input, select, textarea { font-size: 16px; }
  .clients-toolbar input, .clients-toolbar select { font-size: 16px; }
  .row { grid-template-columns: minmax(0, 1fr) 44px; gap: 10px; padding: 16px 0; }
  .row.head { display: none; }
  .row .item-name { grid-column: 1; grid-row: 1; }
  .row .item-answer { grid-column: 1 / -1; grid-row: 2; }
  .row .remove { grid-column: 2; grid-row: 1; }
  .photo-card { grid-template-columns: 1fr; padding: 12px; }
  .photo-preview { min-height: 160px; }
  .photo-actions, .signature-options { grid-template-columns: 1fr; }
  .photo-buttons { gap: 5px; }
  .photo-buttons button { font-size: 11px; padding: 8px 5px; }
  .signature-actions > button { flex: 1; font-size: 12px; }
  .signature-pad canvas { height: 180px; }
  .signature-modal, .auth-gate { padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
  .signature-modal-card { gap: 18px; padding-bottom: 18px; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border-radius: 15px; }
  .signature-modal-card > * { margin-inline: 18px; }
  .signature-modal-card > :last-child { margin-bottom: 0; }
  .signature-modal-card .modal-heading { padding: 14px 14px 14px 18px; gap: 10px; }
  .modal-heading h3 { font-size: 18px; }
  .signature-modal-actions { gap: 8px; }
  .signature-modal-actions > button { flex-basis: 110px; }
  .clients-toolbar { grid-template-columns: 1fr 1fr; gap: 12px; }
  .clients-toolbar > button { grid-column: 1 / -1; }
  .clients-list, .client-history-list { max-height: 42dvh; padding-right: 2px; }
  .client-item { padding: 12px; }
  .client-item-actions { gap: 5px; }
  .client-item-actions button { padding: 8px 4px; font-size: 11px; }
  .client-history-item { grid-template-columns: 1fr; }
  .backup-selection-head { flex-direction: column; gap: 12px; }
  .backup-selection-actions { width: 100%; }
  .backup-selection-actions button { flex: 1; }
  .backup-options { grid-template-columns: 1fr; }
  .backup-option { min-height: 66px; }
  .backup-card > .signature-modal-actions { grid-template-columns: 1fr; }
  .gallery-head { display: grid; }
  .gallery-count { justify-self: start; }
  .app-info-grid { grid-template-columns: 1fr; }
  .logs-toolbar { grid-template-columns: 1fr; }
  .logs-summary { align-items: stretch; flex-direction: column; }
  .logs-summary-actions { width: 100%; }
  .logs-summary-actions button { flex: 1; }
  .log-entry-head { grid-template-columns: auto minmax(0, 1fr); }
  .log-entry-head time { grid-column: 2; }
  .gallery-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 46dvh; }
  .gallery-item-preview { height: 120px; }
  .gallery-item-info { padding: 10px; }
  .gallery-item-actions { grid-template-columns: 1fr; padding: 0 10px 10px; }
  .pdf-preview-pages { padding: 6px; gap: 10px; }
  .pdf-preview-card > .pdf-preview-frame-wrap { margin-inline: 10px; height: 54dvh; }
  .plano-catalog-toolbar { grid-template-columns: 1fr; }
  .plano-catalog-item { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
  .plano-catalog-title-row { flex-direction: column; }
  .plano-diretor-filters { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plano-filter-btn { padding: 8px 4px; }
  .plano-topic-item { padding: 12px; }
  .plano-diretor-list, .plano-catalog-list { max-height: 42dvh; }
  .template-option { padding: 14px 12px 14px 44px; }
  .template-option input { left: 12px; top: 14px; }
  .auth-card { padding: 22px; }
}

/* Tablets use a wide viewport, but still need the touch-friendly project toolbar. */
@media (hover: none) and (pointer: coarse) and (min-width: 681px) {
  .projects-header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .projects-tools {
    width: 100%;
  }

  .project-search-field input {
    min-width: 0;
  }
}
@media (max-width: 360px) {
  .beta-badge { display: none; }
  .app { width: calc(100% - 24px); }
  .metric-card { padding: 12px; }
  .card-actions { grid-template-columns: 1fr 1fr; }
  .project-approval-grid { grid-template-columns: 1fr; }
  .signature-modal-card > * { margin-inline: 14px; }
  .input-with-action { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: #fff; color: #000; }
  .topbar, .panel button, .photo-actions, .photo-list, .signature-block, .toast, .signature-modal, .actions, .home-actions { display: none !important; }
  .app { width: 100%; padding: 0; }
  .panel { box-shadow: none; background: #fff; border: 1px solid #ccc; break-inside: avoid; }
  .printable-only { display: block; }
}

/* An inspection is a focused workspace: only its save/exit actions remain. */
body.form-active .menu-toggle { display: none !important; }
body.form-active #topBackHome { font-size: 0; }
body.form-active #topBackHome::before { content: "×"; font-size: 28px; font-weight: 400; line-height: 1; }
