  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

  :root {
    /* On brand with LVC Solutions (lvcsolutions.co.uk): deep forest green + orange.
       Variable names kept as --navy/--gold to avoid a churny rename; the values are LVC's. */
    --navy: #1B4332;        /* LVC deep green — primary brand dark (topbar, buttons) */
    --navy-dark: #12301F;   /* darker green — hovers/pressed */
    --navy-mid: #2D6A4F;    /* LVC mid green */
    --gold: #E8500A;        /* LVC orange — accent + primary CTA */
    --gold-light: #FBE7D6;  /* pale orange tint */
    --gold-dark: #C43F05;   /* darker orange — hover/active */
    --white: #FFFFFF;
    --off: #F5F7F5;
    --border: #E4E8E4;
    --text: #16261D;
    --muted: #667069;
    --danger: #B42318;
    --danger-bg: #FEF3F2;
    --warning: #9A5B0B;
    --warning-bg: #FEF6EA;
    --success: #157347;
    --success-bg: #ECF8F1;
    --info: #1B52A4;
    --info-bg: #EEF3FB;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(16,24,40,0.05);
    --shadow-md: 0 1px 3px rgba(16,24,40,0.08), 0 1px 2px rgba(16,24,40,0.04);
    --shadow-lg: 0 8px 24px rgba(16,24,40,0.10);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
  html, body { height: 100%; background: var(--navy);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

  /* Numbers that carry meaning — the clock, the counts — line up in columns. */
  .stat-val, .clock-lbl, .detail-stat-val, .success-ref, .badge-pill, #live-time {
    font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

  /* Line icons inherit colour from the text around them and never render as OS emoji. */
  .ico { width: 16px; height: 16px; flex: 0 0 auto; vertical-align: -3px; }
  .ico-lg { width: 26px; height: 26px; }
  .ico-xl { width: 52px; height: 52px; stroke-width: 1.6; }

  /* Visible keyboard focus — the quality floor. */
  :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
  .form-input:focus-visible { outline-offset: 0; }

  /* ── APP SHELL ─────────────────────────────────────── */
  #app { max-width: 430px; margin: 0 auto; height: 100dvh; display: flex; flex-direction: column; background: var(--white); position: relative; overflow: hidden; }
  .screen { display: none; flex-direction: column; flex: 1; overflow: hidden; }
  .screen.active { display: flex; }
  .scroll-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

  /* ── TOP BAR ───────────────────────────────────────── */
  .topbar { background: var(--navy); padding: 14px 16px 12px; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
  .topbar-logo { font-size: 18px; font-weight: 700; color: var(--white); letter-spacing: -0.3px; }
  .topbar-logo span { color: var(--gold); }
  .topbar-title { font-size: 16px; font-weight: 600; color: var(--white); flex: 1; }
  .topbar-back { font-size: 22px; color: var(--gold); cursor: pointer; padding: 2px 8px 2px 0; line-height: 1; }
  .topbar-action { font-size: 13px; color: var(--gold); cursor: pointer; font-weight: 600; }
  .badge-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: var(--danger); color: #fff; }

  /* ── BOTTOM NAV ────────────────────────────────────── */
  .bottom-nav { display: flex; background: var(--white); border-top: 1px solid var(--border); padding-bottom: var(--safe-bottom); flex-shrink: 0; }
  .nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 4px 6px; cursor: pointer; gap: 3px; }
  .nav-icon { font-size: 22px; color: var(--muted); transition: color 0.15s; }
  .nav-label { font-size: 10px; color: var(--muted); font-weight: 500; transition: color 0.15s; }
  .nav-item.active .nav-icon, .nav-item.active .nav-label { color: var(--navy); }
  .nav-item.active .nav-icon { position: relative; }
  .nav-item.active .nav-icon::after { content: ''; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

  /* ── CARDS ─────────────────────────────────────────── */
  .card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
  .card-danger { border-left: 3px solid var(--danger); }
  .card-warning { border-left: 3px solid var(--gold); }
  .card-success { border-left: 3px solid var(--success); }

  /* ── STAT GRID ─────────────────────────────────────── */
  .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px; }
  .stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 12px; box-shadow: var(--shadow-sm); }
  .stat-val { font-size: 27px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
  .stat-lbl { font-size: 11px; color: var(--muted); margin-top: 3px; }
  .stat-val.danger { color: var(--danger); }
  .stat-val.warning { color: var(--warning); }
  .stat-val.success { color: var(--success); }

  /* ── SECTION HEADER ────────────────────────────────── */
  .section-hdr { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 10px 16px 4px; }

  /* ── CASE CARD ─────────────────────────────────────── */
  .case-item { background: var(--white); border-bottom: 1px solid var(--border); padding: 13px 16px; cursor: pointer; transition: background 0.12s; }
  .case-item:hover { background: var(--off); }
  .case-item:active { background: var(--off); }
  .case-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 3px; }
  .case-addr { font-size: 14.5px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
  .case-ref { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
  .case-type { font-size: 12px; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
  .case-type .ico { color: var(--navy-mid); }
  .status-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 10px; white-space: nowrap; flex-shrink: 0; }
  .tag-danger { background: var(--danger-bg); color: var(--danger); }
  .tag-warning { background: var(--warning-bg); color: var(--warning); }
  .tag-success { background: var(--success-bg); color: var(--success); }
  .tag-info { background: var(--info-bg); color: var(--info); }
  .tag-navy { background: var(--navy); color: var(--gold); }

  /* ── CLOCK BAR ─────────────────────────────────────── */
  .clock-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
  .clock-track { flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
  .clock-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
  .clock-fill.red { background: var(--danger); }
  .clock-fill.amber { background: var(--gold); }
  .clock-fill.green { background: var(--success); }
  .clock-lbl { font-size: 11px; font-weight: 600; min-width: 72px; text-align: right; }
  .clock-lbl.danger { color: var(--danger); }
  .clock-lbl.warning { color: var(--warning); }

  /* ── STAGE PILLS ───────────────────────────────────── */
  .stage-row { display: flex; gap: 4px; flex-wrap: wrap; }
  .stage-pip { font-size: 10px; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--border); color: var(--muted); }
  .stage-pip.done { background: var(--success-bg); color: var(--success); border-color: transparent; }
  .stage-pip.active { background: var(--info-bg); color: var(--info); border-color: transparent; }
  .stage-pip.overdue { background: var(--danger-bg); color: var(--danger); border-color: transparent; }

  /* ── EXPANDED CASE ─────────────────────────────────── */
  .case-detail { display: none; background: var(--off); border-bottom: 1px solid var(--border); padding: 12px 16px; }
  .case-detail.open { display: block; }
  .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
  .detail-stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; }
  .detail-stat-val { font-size: 16px; font-weight: 700; color: var(--text); }
  .detail-stat-lbl { font-size: 11px; color: var(--muted); margin-top: 1px; }
  .btn-row { display: flex; gap: 8px; }
  .btn { flex: 1; padding: 10px 8px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; border: 1px solid var(--border); background: var(--white); color: var(--text); }
  .btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
  .btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
  .btn-danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }

  /* ── FORMS ─────────────────────────────────────────── */
  .form-body { padding: 16px; }
  .form-group { margin-bottom: 16px; }
  .form-label { font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 6px; display: block; }
  .form-input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 15px; color: var(--text); background: var(--white); appearance: none; outline: none; }
  .form-input:focus { border-color: var(--navy); }
  textarea.form-input { min-height: 80px; resize: vertical; }
  .form-select { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 15px; color: var(--text); background: var(--white); appearance: none; outline: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6480' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

  /* ── HAZARD GRID ───────────────────────────────────── */
  .haz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
  .haz-btn { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 8px; text-align: center; font-size: 12px; font-weight: 600; color: var(--text); background: var(--white); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; }
  .haz-btn .haz-icon { font-size: 24px; }
  .haz-btn.selected { border-color: var(--navy); background: var(--navy); color: var(--white); }
  .haz-btn.selected .haz-icon { filter: brightness(2); }

  /* ── URGENCY BUTTONS ───────────────────────────────── */
  .urg-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 4px; }
  .urg-btn { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 6px; font-size: 11px; font-weight: 600; text-align: center; cursor: pointer; background: var(--white); color: var(--text); }
  .urg-btn .urg-icon { font-size: 20px; display: block; margin-bottom: 4px; }
  .urg-btn.sel-emergency { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
  .urg-btn.sel-significant { border-color: var(--warning); background: var(--warning-bg); color: var(--warning); }
  .urg-btn.sel-low { border-color: var(--success); background: var(--success-bg); color: var(--success); }

  /* ── DEADLINE NOTICE ───────────────────────────────── */
  .deadline-notice { border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; }
  .deadline-notice.dn-warn { background: var(--warning-bg); border: 1px solid #E8A020; }
  .deadline-notice.dn-danger { background: var(--danger-bg); border: 1px solid var(--danger); }
  .deadline-notice.dn-info { background: var(--info-bg); border: 1px solid #90B4E4; }
  .dn-title { font-size: 12px; font-weight: 700; margin-bottom: 3px; }
  .dn-body { font-size: 12px; line-height: 1.5; }

  /* ── TOGGLE ────────────────────────────────────────── */
  .toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .toggle-row:last-child { border-bottom: none; }
  .toggle-label { font-size: 13px; color: var(--text); }
  .toggle-sw { width: 40px; height: 22px; border-radius: 11px; background: var(--border); border: none; cursor: pointer; position: relative; flex-shrink: 0; transition: background 0.2s; }
  .toggle-sw.on { background: var(--navy); }
  .toggle-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; transition: transform 0.2s; }
  .toggle-sw.on::after { transform: translateX(18px); }

  /* ── PHOTO UPLOAD ──────────────────────────────────── */
  .photo-zone { border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 24px; text-align: center; cursor: pointer; margin-bottom: 12px; }
  .photo-zone-icon { font-size: 32px; margin-bottom: 6px; }
  .photo-zone-text { font-size: 13px; color: var(--muted); }
  .photo-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
  .photo-thumb { width: 68px; height: 68px; border-radius: var(--radius-sm); background: var(--off); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 24px; position: relative; cursor: pointer; }
  .photo-del { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: white; font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: 700; }

  /* ── TIMELINE ──────────────────────────────────────── */
  .timeline { padding: 8px 16px 16px; }
  .tl-item { display: flex; gap: 12px; }
  .tl-left { display: flex; flex-direction: column; align-items: center; width: 32px; flex-shrink: 0; }
  .tl-dot { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
  .tl-dot.reported { background: var(--info-bg); }
  .tl-dot.inspect { background: var(--success-bg); }
  .tl-dot.overdue { background: var(--danger-bg); }
  .tl-dot.photo { background: var(--off); }
  .tl-dot.pending { background: var(--warning-bg); }
  .tl-line { width: 1px; flex: 1; background: var(--border); margin: 3px 0; min-height: 16px; }
  .tl-body { padding: 3px 0 16px; flex: 1; }
  .tl-title { font-size: 13px; font-weight: 600; color: var(--text); }
  .tl-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
  .tl-note { font-size: 12px; color: var(--text); background: var(--off); border-radius: 6px; padding: 8px 10px; margin-top: 6px; line-height: 1.5; }
  .tl-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 8px; margin-top: 5px; }
  .tl-tag.success { background: var(--success-bg); color: var(--success); }
  .tl-tag.danger { background: var(--danger-bg); color: var(--danger); }
  .tl-tag.warning { background: var(--warning-bg); color: var(--warning); }

  /* ── STAGE TRACKER (horizontal) ───────────────────── */
  .stage-track { display: flex; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .st-node { display: flex; flex-direction: column; align-items: center; flex: 1; }
  .st-dot2 { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
  .st-dot2.done { background: var(--success); color: white; }
  .st-dot2.active { background: var(--gold); color: var(--navy); }
  .st-dot2.overdue { background: var(--danger); color: white; }
  .st-dot2.todo { background: var(--border); color: var(--muted); }
  .st-label2 { font-size: 9px; color: var(--muted); margin-top: 4px; text-align: center; line-height: 1.3; max-width: 52px; }
  .st-line2 { flex: 1; height: 2px; background: var(--border); margin-top: 11px; }
  .st-line2.done { background: var(--success); }

  /* ── COMPLIANCE BARS ───────────────────────────────── */
  .comp-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
  .comp-label { font-size: 12px; color: var(--text); width: 130px; flex-shrink: 0; }
  .comp-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
  .comp-fill { height: 100%; border-radius: 4px; }
  .comp-pct { font-size: 12px; font-weight: 700; width: 34px; text-align: right; }

  /* ── WRITTEN SUMMARY ───────────────────────────────── */
  .doc-preview { background: var(--off); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; font-size: 12px; line-height: 1.7; color: var(--text); }
  .doc-hdr { font-size: 11px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
  .doc-ref { font-size: 12px; font-weight: 700; color: var(--navy); }
  .doc-finding { display: flex; gap: 8px; margin-bottom: 8px; padding: 8px; background: white; border-radius: 6px; border: 1px solid var(--border); }
  .doc-finding-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

  /* ── HERO / SPLASH ─────────────────────────────────── */
  .splash { display: flex; flex-direction: column; background: var(--navy); padding: 40px 24px 32px; }
  .splash-logo { font-size: 32px; font-weight: 800; color: white; letter-spacing: -1px; margin-bottom: 4px; }
  .splash-logo span { color: var(--gold); }
  .splash-sub { font-size: 14px; color: #9AAFC8; margin-bottom: 32px; }
  .splash-btn { width: 100%; padding: 16px; border-radius: var(--radius); font-size: 16px; font-weight: 700; border: none; cursor: pointer; margin-bottom: 12px; }
  .splash-btn-primary { background: var(--gold); color: #fff; }
  .splash-btn-secondary { background: transparent; color: var(--gold); border: 2px solid var(--navy-mid); }
  .splash-btn-ghost { background: transparent; color: #9DBBAC; border: 1px solid var(--navy-mid); font-weight: 500; font-size: 14px; padding: 12px; }

  /* ── PROGRESS BAR ──────────────────────────────────── */
  .progress-strip { display: flex; gap: 4px; padding: 10px 16px 0; background: var(--navy); }
  .prog-seg { height: 3px; flex: 1; border-radius: 2px; background: rgba(255,255,255,0.2); }
  .prog-seg.done { background: var(--gold); }
  .prog-seg.active { background: rgba(201,168,76,0.5); }

  /* ── REPORT SUCCESS ────────────────────────────────── */
  .success-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; text-align: center; flex: 1; }
  .success-icon { font-size: 56px; margin-bottom: 16px; }
  .success-title { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
  .success-body { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
  .success-ref { font-size: 18px; font-weight: 700; color: var(--navy); background: var(--gold-light); border: 1px solid var(--gold); border-radius: var(--radius-sm); padding: 10px 20px; margin-bottom: 24px; }

  /* ── VULN SECTION ──────────────────────────────────── */
  .vuln-box { background: var(--off); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 12px; }

  /* ── GENERAL UTILS ─────────────────────────────────── */
  .pad { padding: 16px; }
  .divider { height: 1px; background: var(--border); margin: 0 16px; }
  .text-danger { color: var(--danger); }
  .text-success { color: var(--success); }
  .text-warning { color: var(--warning); }
  .full-btn { width: 100%; padding: 14px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; border: none; cursor: pointer; box-shadow: var(--shadow-sm); transition: filter 0.12s, transform 0.06s; }
  .full-btn:hover { filter: brightness(0.96); }
  .full-btn:active { transform: translateY(1px); }
  .full-btn-primary { background: var(--navy); color: var(--white); }
  .full-btn-gold { background: var(--gold); color: #fff; }
  .full-btn-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger); box-shadow: none; }
  .info-list dt { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
  .info-list dd { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
  .section-label-inline { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; display: block; }
  .empty-state { text-align: center; padding: 40px 24px; color: var(--muted); font-size: 14px; }
  .empty-icon { font-size: 40px; margin-bottom: 12px; }
  .filter-row { display: flex; gap: 6px; padding: 10px 16px; overflow-x: auto; flex-shrink: 0; }
  .filter-row::-webkit-scrollbar { display: none; }
  .f-chip { border: 1px solid var(--border); border-radius: 20px; padding: 5px 13px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--white); cursor: pointer; white-space: nowrap; flex-shrink: 0; }
  .f-chip.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
  input[type=file] { display: none; }

  /* ── ICON POLISH (line icons in place of emoji) ────── */
  .splash-sub { color: #9DBBAC; }
  .haz-icon { display: flex; align-items: center; justify-content: center; }
  .haz-icon .ico { width: 26px; height: 26px; color: var(--navy-mid); }
  .haz-btn.selected .haz-icon .ico { color: #fff; }
  .urg-icon { display: inline-flex; }
  .urg-icon .ico { width: 22px; height: 22px; }
  .success-icon { color: var(--success); display: flex; justify-content: center; }
  .dn-title { display: flex; align-items: center; gap: 6px; }
  .dn-title .ico { flex: 0 0 auto; }
  .dn-emergency .dn-title .ico, .dn-danger .dn-title .ico { color: var(--danger); }
  .status-tag { display: inline-flex; align-items: center; gap: 4px; }
  .vuln-tag { display: inline-flex; align-items: center; }
  /* Filter chips: a touch more breathing room, active chip in brand green */
  .f-chip { padding: 6px 14px; }
  .toast { box-shadow: var(--shadow-lg); }

  /* Photo capture (tenant step 3) */
  .photo-zone-icon { display: flex; justify-content: center; }
  .photo-zone-icon .ico { width: 30px; height: 30px; color: var(--navy-mid); }
  .photo-zone { transition: border-color 0.12s, background 0.12s; }
  .photo-zone:hover, .photo-zone:focus-visible { border-color: var(--navy-mid); background: var(--off); }
  .photo-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
  .photo-del { cursor: pointer; z-index: 1; }

  /* ── DESKTOP (officer dashboard + compliance) ──────────
     Only pages tagged .app-wide widen. The tenant report flow and login stay a
     centred phone-width column on purpose: a wizard reads better narrow, and tenants
     are on a phone. Officers work at a desk, so their queue earns the width. */
  @media (min-width: 960px) {
    #app.app-wide { max-width: 1080px; }

    /* Four stat tiles in a row instead of 2x2. */
    #app.app-wide .stat-grid { grid-template-columns: repeat(4, 1fr); }

    /* The case queue becomes two columns; section headers span both. Sorted by nearest
       breach, so reading top-left to bottom-right still runs most-urgent first. */
    #app.app-wide #case-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; align-items: start; padding: 0 6px; }
    #app.app-wide #case-list > .section-hdr { grid-column: 1 / -1; padding-left: 10px; }
    #app.app-wide .case-cell { min-width: 0; }

    /* Compliance: KPI tiles in one row. */
    #app.app-wide .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  }
