  /* ===== bug fixes (Nov 6) ===== */
  /* Hermes's / Video computer viewer: a slim one-line bar on phones so the screen gets the room */
  @media (max-width: 1000px) {
    .box-bar { padding: 4px 8px; gap: 6px; min-height: 0; }
    .box-title { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
    .box-title small { display: none !important; }
    .box-acts { gap: 4px; flex: none; }
    .box-acts button { display: inline-flex !important; flex-direction: row !important; align-items: center; justify-content: center; gap: 5px;
                       height: 36px !important; min-height: 36px !important; min-width: 36px !important; padding: 0 9px !important; font-size: 13px !important; line-height: 1 !important; }
    .box-acts button .hig-i { width: 18px !important; height: 18px !important; }
    #boxZoom, #boxPadBtn, #boxKb { font-size: 0 !important; }        /* icon only */
    #boxZoom .hig-i, #boxPadBtn .hig-i, #boxKb .hig-i { font-size: 13px; }
    .pad-btns { padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 6px; }
    .pad-btns button { padding: 10px 4px !important; min-height: 0 !important; font-size: 14px !important; }
  }

  /* Finance: little "this month" tags never break in half or sit on top of the text */
  .chip { white-space: nowrap; }
  .nextoff.extra > div > div:not(.small) { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; line-height: 1.35; margin: 3px 0; }
  .nextoff.extra .chip { margin: 0; }
  .dfoot { flex-wrap: wrap; gap: 4px 10px; } .dfoot > span { min-width: 0; }

  /* Home: each computer gets its own card with Watch / Files / Restart underneath it */
  #homeExtras .box-open, #homeExtras .row:has(#boxRestartH) { display: none !important; }
  .zx-comps { display: grid; gap: 10px; margin: 10px 0 4px; }
  .zx-comp { border-radius: 20px; border: 1px solid var(--line); background: rgba(14, 30, 52, .6); padding: 14px; }
  html[data-theme="light"] .zx-comp { background: #fff; }
  .zx-comp .hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 600 16px var(--body); color: var(--text); }
  .zx-comp .hd svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .zx-comp .hd small { display: block; font: 13px var(--body); color: var(--muted); }
  .zx-comp .acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .zx-comp .acts button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px !important; padding: 8px 4px !important;
                          border-radius: 14px !important; font: 600 13px var(--body) !important; color: var(--text) !important; background: rgba(255,255,255,.05) !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
  html[data-theme="light"] .zx-comp .acts button { background: #f4f6fa !important; }
  .zx-comp .acts button svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .zx-comp .acts button.restart svg { stroke: var(--warn-c); }
  @media (min-width: 900px) { .zx-comps { grid-template-columns: 1fr 1fr; } }

  /* picture viewer: our own pinch-zoom (the page itself no longer zooms, which is what crashed the iPhone) */
  #imgView { touch-action: none; overflow: hidden; }
  #imgView img { touch-action: none !important; transform-origin: 0 0; will-change: transform; user-select: none; -webkit-user-select: none; -webkit-touch-callout: default; }
  body.iv-open main, body.iv-open nav.tabs, body.iv-open #fx { visibility: hidden; }


/* Receipt scan is switched off (Nov 2026): not used. Delete this rule to bring it back. Saved receipts stay on disk. */
#logsSeg button[data-v="receipts"], #camAsReceipt, #spCam { display: none !important; }

/* 📍 "Open in Maps" buttons under an answer (places Zumbrix found) */
.maplink { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin-top: 10px; padding: 12px 14px; border-radius: 14px;
  text-decoration: none; color: inherit; background: rgba(94, 200, 255, .10); border: 1px solid rgba(94, 200, 255, .35); min-height: 44px; }
.maplink b { font-weight: 600; } .maplink span { text-align: right; font-weight: 600; white-space: nowrap; }
.maplink small { grid-column: 1 / -1; opacity: .75; font-size: 13px; }
.maplink em { grid-column: 1 / -1; font-style: normal; font-size: 13px; color: #5ec8ff; }
.maplink:active { transform: scale(.985); }

/* the same buttons on the talking screen */
.vplaces { width: min(92vw, 400px); margin: 10px auto 2px; text-align: left; max-height: 36vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.vplaces:empty { display: none; }
.vplaces .maplink { margin-top: 8px; padding: 10px 14px; }
body.voice-open .voice-card:has(.vplaces:not(:empty)) .reactor.voice { width: 150px; height: 150px; }
body.voice-open .voice-card:has(.vplaces:not(:empty)) .reactor.voice .r2 { inset: 12px; }
body.voice-open .voice-card:has(.vplaces:not(:empty)) .reactor.voice .r3 { inset: 24px; }
body.voice-open .voice-card:has(.vplaces:not(:empty)) .reactor.voice .core { inset: 40px; }
body.voice-open .voice-card:has(.vplaces:not(:empty)) .heard { min-height: 0; font-size: 17px; }
