/* The phone page (/field/, H117). Phone first: one column, big tap targets
   (48 px and up, H133: a button, a link row, a field, a tick box's label),
   the same colours as the desktop portal. The photo strip
   and viewer come from /pm/css/photos.css. */
:root{
  --ink:#1c231f; --ink-faint:#5d6862; --surface:#fff; --bg:#f4f5f3; --line:#dde1db;
  --accent:#2f6f5e; --accent-ink:#fff; --danger:#b3261e; --warn-bg:#fdf7e8; --warn-ink:#5c4410;
  --ok-bg:#e8f3ee; --ok-ink:#1f5a49;
}
*{box-sizing:border-box;}
[hidden]{display:none !important;}
html,body{margin:0;}
body{
  font:16px/1.45 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color:var(--ink); background:var(--bg); -webkit-text-size-adjust:100%;
  padding-bottom:env(safe-area-inset-bottom, 0px);
}
a{color:var(--accent);}
button,input,select,textarea{font:inherit; color:inherit;}
:focus-visible{outline:3px solid #4c97a8; outline-offset:2px;}

.f-demo{background:var(--warn-bg); color:var(--warn-ink); font-size:13px; padding:6px 16px; border-bottom:1px solid #e3c787;}
.f-top{
  position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:8px;
  background:var(--surface); border-bottom:1px solid var(--line); padding:8px 12px; padding-top:max(8px, env(safe-area-inset-top, 0px));
  min-height:56px;
}
.f-back, .f-menu-btn{
  flex:none; width:48px; height:48px; border:1px solid var(--line); border-radius:10px; background:var(--surface);
  font-size:26px; line-height:1; cursor:pointer;
}
.f-menu-btn{font-size:20px;}
/* H195: the Back button carries a word ("‹ Safety"). 48px tall and wide at least; it never shrinks, the title next to it does. */
.f-back{width:auto; min-width:48px; max-width:44vw; padding:0 12px; font-size:16px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.f-title-wrap{flex:1; min-width:0;}
.f-title{font-weight:700; font-size:18px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.f-sub{font-size:13px; color:var(--ink-faint); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.f-menu{
  position:absolute; right:12px; top:calc(100% + 4px); background:var(--surface); border:1px solid var(--line); border-radius:12px;
  box-shadow:0 10px 28px rgba(0,0,0,.18); padding:6px; display:flex; flex-direction:column; min-width:220px;
}
.f-menu button, .f-menu a{
  display:flex; align-items:center; min-height:48px;
  text-align:left; border:0; background:none; padding:12px; border-radius:8px; font-size:16px; color:var(--ink); text-decoration:none; cursor:pointer;
}
.f-menu button:hover, .f-menu a:hover{background:var(--bg);}
.f-menu-who{font-size:13px; color:var(--ink-faint); padding:8px 12px 6px; border-bottom:1px solid var(--line); margin-bottom:4px;}

.f-main{max-width:640px; margin:0 auto; padding:12px 12px 32px; display:flex; flex-direction:column; gap:12px;}
.f-loading, .f-empty, .f-note{color:var(--ink-faint); margin:4px 2px;}
.f-note{font-size:14px;}
.f-howlink{display:block; padding:12px 4px; min-height:48px; box-sizing:border-box; color:var(--accent); font-weight:600; text-decoration:underline;}
.f-card{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:14px; display:flex; flex-direction:column; gap:8px;}
.f-label{font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-faint);}
.f-pad{margin:4px 2px 0;}
.f-msg{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:16px;}
.f-msg p{margin:0 0 10px;}
.f-error{color:var(--danger); font-size:14px;}
.f-error:empty, .f-ok:empty{display:none;}
.f-ok{color:var(--ok-ink); font-size:14px;}
.f-flash{background:var(--ok-bg); border-radius:10px; padding:10px 12px;}
.f-flash.f-error{background:#fde9e6;}

.f-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:8px 16px;
  border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--ink); font-weight:600;
  text-decoration:none; cursor:pointer;
}
.f-btn:disabled{opacity:.55; cursor:default;}
.f-primary{background:var(--accent); border-color:var(--accent); color:var(--accent-ink);}
.f-new{align-self:stretch;}
.f-link{align-self:center; min-height:48px; min-width:48px; border:0; background:none; color:var(--accent); font-weight:600; padding:10px 14px; cursor:pointer;}
.f-actions{display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap;}

/* forms */
.f-card label, .f-signin label{font-size:14px; font-weight:600; margin-top:4px;}
input[type=text], input[type=password], input:not([type]), select, textarea{
  width:100%; min-height:48px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--bg); font-size:16px;
}
textarea{min-height:88px; resize:vertical;}
.f-check{display:flex; align-items:center; gap:10px; min-height:48px; font-weight:400 !important;}
.f-check input{width:22px; height:22px;}
.f-field{display:flex; flex-direction:column; gap:6px;}

/* lists */
.f-list{display:flex; flex-direction:column; gap:8px;}
.f-row{
  display:flex; flex-direction:column; gap:2px; text-align:left; width:100%; min-height:56px; padding:12px 14px;
  background:var(--surface); border:1px solid var(--line); border-radius:12px; color:var(--ink); text-decoration:none; cursor:pointer;
}
.f-row:active{background:var(--bg);}
.f-row-top{display:flex; justify-content:space-between; align-items:center; gap:8px;}
.f-row-main{font-weight:700;}
.f-row-sub{font-size:14px; color:var(--ink-faint);}
.f-row-desc{font-size:14px; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;}
.f-here{
  display:flex; flex-direction:column; gap:2px; text-align:left; width:100%; padding:16px; border-radius:14px; cursor:pointer;
  border:2px solid var(--accent); background:var(--ok-bg); color:var(--ink);
}
.f-here-lbl{font-size:13px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--accent);}
.f-here-name{font-size:20px; font-weight:700;}
.f-flag{border-left:5px solid #c98a4b;}
.f-flag-red{border-left-color:var(--danger);}
.f-flag-text{font-size:13px; font-weight:700; color:var(--danger);}

/* tabs */
.f-tabs{display:flex; gap:6px; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:4px;}
.f-tab{flex:1; min-width:0; overflow-wrap:anywhere; text-align:center; padding:10px 6px; border-radius:9px; text-decoration:none; color:var(--ink); font-weight:600; min-height:48px; display:flex; align-items:center; justify-content:center;}
.f-tab.on{background:var(--accent); color:var(--accent-ink);}

/* a job */
.f-chips{display:flex; gap:6px; flex-wrap:wrap;}
.f-chip{font-size:12.5px; font-weight:700; padding:3px 9px; border-radius:999px; background:var(--bg); border:1px solid var(--line); white-space:nowrap;}
.f-chip.wo-sev-critical{background:#fde9e6; border-color:#e8a59c; color:#8c1d14;}
.f-chip.wo-sev-high{background:#fdf0e1; border-color:#e8bf8a; color:#7a4a0c;}
.f-chip.wo-sev-medium{background:#eef3f8; border-color:#b9cbe0; color:#2f4f75;}
.f-chip.wo-sev-low{background:#eef4ef; border-color:#bcd3c2; color:#2f5a3c;}
.f-where{font-weight:700; font-size:17px;}
.f-desc{margin:0; white-space:pre-wrap;}
.f-tenant{font-weight:700; font-size:17px;}
.f-contact{border-top:1px solid var(--line); padding-top:8px; display:flex; flex-direction:column; gap:6px;}
.f-contact-who{font-size:14px; color:var(--ink-faint);}
.f-contact-acts{display:flex; gap:8px; flex-wrap:wrap;}
.f-hist{border-top:1px solid var(--line); padding-top:8px;}
.f-undo{display:block; padding-left:0; text-decoration:underline;}
.f-signin{margin-top:12px;}

/* the photo viewer (photos.js) borrows these desktop names */
.modal-overlay{position:fixed; inset:0; display:flex; align-items:center; justify-content:center;}
.modal-overlay[hidden]{display:none;}
.modal-head{display:flex; justify-content:space-between; align-items:center; gap:8px;}
.modal-head h3{margin:0;}
.edit-close{width:48px; height:48px; border:1px solid var(--line); border-radius:10px; background:var(--surface); font-size:22px; cursor:pointer;}
.tc-btn{min-height:48px; padding:6px 14px; border:1px solid var(--line); border-radius:8px; background:var(--surface); font-weight:600; cursor:pointer;}
.tc-btn-danger{color:var(--danger); border-color:#e8a59c;}
.photo-tile, .photo-add{width:84px; height:84px;}

/* Photos waiting to send (photos.js keeps them on the phone until sent) */
.f-outbox{display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#eef3f8; color:#2f4f75; border-bottom:1px solid #b9cbe0; font-size:14px; padding:8px 16px;}
.f-outbox.f-outbox-bad{background:var(--warn-bg); color:var(--warn-ink); border-color:#e3c787;}
.f-outbox .f-btn{min-height:48px; padding:4px 14px; font-size:15px;}
.f-later-head{display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
.photo-btn.f-btn.open{border-color:var(--accent); color:var(--accent);}

/* Safety & Systems (H117 step 4): the item's mark, as on the map. */
.f-item-name{display:flex; align-items:center; gap:8px; min-width:0;}
.f-item-type{font-weight:700;}
.f-mark{display:block; flex:none;}
.f-chip-late, .f-late{background:var(--warn-bg); color:var(--warn-ink);}
.f-late{border-radius:8px; padding:6px 8px;}
.f-age{margin-top:6px; font-size:15px; color:var(--muted, #5b5b5b);}   /* H93 */
.f-age-aging{color:#8a5200; font-weight:600;}
.f-age-past{color:#a1322b; font-weight:600;}
.f-pm{background:#ece7f3; color:#4b3770;}
.f-pair{display:flex; align-items:center; min-height:48px; text-decoration:none;}
.f-item-acts{display:flex; gap:8px; flex-wrap:wrap;}
.f-item-acts > *{flex:1 1 140px;}

/* The walk-around (H117 step 4) */
.f-walk-start{border-color:var(--accent);}
.f-walk-row{cursor:default;}
.f-walk-name{display:flex; flex-direction:column; justify-content:center; gap:2px; min-height:48px; text-decoration:none; color:var(--ink);}
.f-walk-status{font-size:14px; border-radius:8px; padding:4px 8px; align-self:flex-start;}
.f-walk-next{border:2px solid var(--accent); box-shadow:0 0 0 3px var(--ok-bg);}
.f-walk-done{background:var(--bg);}
.f-walk-done .f-walk-status{color:var(--ok-ink);}
.f-walk-row .photo-strip{margin-top:4px;}
.f-walk-photos{font-size:16px; font-weight:600;}
/* A tech's jobs (H118): one waiting for the property manager to confirm is
   quieter (nothing more to do on it unless it comes back). */
.f-waiting{opacity:.75;}
.f-waiting .f-row-sub{font-style:italic;}
.f-done{min-width:8em;}

/* Finished the job? (H119 follow-up, 2026-10-15): Done on its own, at the
   bottom, away from Save note. */
.f-done-card{border-top:3px solid #2f6f5e;}
/* How is this being paid? (H122): big tap targets, one choice per line. */
.f-pay{border:0; margin:8px 0; padding:0;}
.f-pay legend{font-weight:600; padding:0; margin-bottom:4px;}
.f-pay-choice{display:flex; align-items:center; gap:8px; min-height:48px;}
.f-pay-choice input{width:20px; height:20px; flex:none; margin:0;}
.f-pay-detail{margin:4px 0 4px 28px;}
.f-pay-detail[hidden]{display:none;}
.f-pay-amount-label{display:block; font-weight:600;}
.f-pay-amount{display:block; width:100%; max-width:14em; min-height:48px; font-size:16px; margin-top:4px; box-sizing:border-box;}
/* "N characters left" under a limited text box (H124, utils.js limitBox) */
.char-count{font-size:12px; color:var(--ink-faint); margin:2px 2px 8px; text-align:right;}
.char-count.char-count-low{color:var(--warn-ink); font-weight:700;}

/* H131: the property manager's send-back note on a vendor's job link */
.f-sentback{border-color:#e0b24a; background:#fdf0d5;}
.f-sentback .f-label{color:#7a4c00;}
.f-sentback-note{margin:0; font-size:15px; color:#3d2a00; white-space:pre-wrap; word-break:break-word;}
body.cb-colors .f-sentback{background:#FDD49E; border-color:#9a5b00;}
body.cb-colors .f-sentback .f-label, body.cb-colors .f-sentback-note{color:#4A2800;}

/* H133: icons next to words. Each icon is an inline SVG (icons.js), aria-hidden;
   the word beside it says the same thing. */
.f-ic{flex:none; display:inline-block; vertical-align:middle;}
.f-trade{display:inline-flex; align-items:center; gap:8px; min-width:0;}
.f-trade .f-ic{color:var(--accent);}
.f-trade-head{font-size:19px; margin-bottom:2px;}
.f-trade-head .f-ic{width:30px; height:30px;}
.f-trade-pick{margin:2px 2px 6px;}
.f-cat{display:flex; align-items:center; gap:8px;}
.f-icon-line{display:flex; align-items:center; gap:8px;}
.f-chip{display:inline-flex; align-items:center; gap:5px;}
.f-walk-status{display:inline-flex; align-items:center; gap:6px;}
.f-item-name .f-ic{color:var(--ink);}
.f-btn .f-ic{width:24px; height:24px;}
.f-done .f-ic{width:26px; height:26px;}

/* The shared photo strip and viewer (photos.css) are made for a mouse too;
   on this page their small controls grow to 48 px (H133). */
.photo-retry, .photo-discard{min-height:48px; min-width:48px; font-size:14px; padding:4px 8px;}
.photo-discard-staged{width:48px; height:48px; font-size:22px;}
.pv-nav{width:48px; height:64px;}
.pv-attach-select{min-height:48px;}
.pv-caption{min-height:48px;}
.pv-download{min-height:48px; padding:6px 14px;}
.photo-undo-btn{min-height:48px; padding:6px 14px;}
@media (max-width:767px){ .pv-nav{width:48px; height:64px;} }

/* move-in / move-out inspections (H68). Every button and field is 48 px or
   more; a condition is always said in words on its button, never by colour alone. */
.f-insp-card, .f-insp-body{display:flex; flex-direction:column; gap:8px;}
/* Start buttons, and the no-Tenant question that takes their place (H154). */
.f-insp-starts, .f-insp-ask{display:flex; flex-direction:column; gap:8px;}
.f-insp-starts[hidden], .f-insp-ask[hidden]{display:none;}
.f-insp-ask-text{margin:0;}
/* Routine inspection (H153): its own box under the move-in / move-out buttons. */
.f-insp-routine{display:flex; flex-direction:column; gap:8px; margin-top:8px; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--surface);}
.f-insp-routine-title{font-weight:700;}
.f-insp-head, .f-insp-sum, .f-item-card{
  background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:12px 14px; display:flex; flex-direction:column; gap:6px;
}
.f-insp-room{flex-direction:row; justify-content:space-between; align-items:center; gap:10px;}
.f-insp-room .f-row-side{color:var(--ink-faint); font-size:14px; white-space:nowrap;}
.f-insp-looked .f-row-side{color:var(--ok-ink); font-weight:600;}
.f-insp-finish{align-self:stretch;}
.f-insp-discard{display:flex; flex-direction:column; gap:8px; margin-top:24px;}
.f-insp-discard-top{margin-top:12px;}
.f-insp-why{display:flex; flex-direction:column; gap:2px;}
.f-insp-why-row{display:flex; align-items:center; gap:10px; min-height:44px; cursor:pointer;}
.f-insp-why-row input{width:22px; height:22px; margin:0; flex:none;}
.f-insp-why-note{width:100%; box-sizing:border-box;}
.f-insp-discard .f-insp-ask .f-btn{align-self:stretch;}
.f-item-name{font-weight:700;}
.f-atmovein{margin:0;}
.f-cond-row{display:flex; flex-wrap:wrap; gap:6px;}
.f-cond{flex:1 1 auto; min-width:52px; padding:8px 4px; font-size:14px;}
.f-cond-on{background:var(--accent); border-color:var(--accent); color:var(--accent-ink);}
.f-cond-on.f-cond-worn{background:#8a5a16; border-color:#8a5a16;}
.f-cond-on.f-cond-damaged, .f-cond-on.f-cond-missing, .f-cond-on.f-charge-tenant{background:var(--danger); border-color:var(--danger);}
.f-cond-on.f-cond-na{background:#5d6862; border-color:#5d6862;}
.f-item-status{font-size:13px; min-height:18px; color:var(--ink-faint);}
.f-item-status.f-error{color:var(--danger);}
.f-cost{display:flex; flex-direction:column; gap:4px; margin-top:6px;}
.f-insp-noted{padding:6px 2px; border-bottom:1px solid var(--line);}
.f-insp-block{background:#fde9e6; border:1px solid #e9b5ad; border-radius:10px; padding:10px 14px; color:#6e1a14;}
.f-insp-warn{background:var(--warn-bg); border:1px solid #e3c787; border-radius:10px; padding:10px 14px; color:var(--warn-ink);}
.f-insp-block ul, .f-insp-warn ul{margin:4px 0 0; padding-left:20px;}
.f-insp-block li, .f-insp-warn li{min-height:24px;}

/* Signing a completed inspection on the inspector's phone (H160). One hand: every target is 48 px or more
   (the finger box 64, the sign button 56), the sign button stays at the bottom edge, and the signature pad is a
   full-screen white box whose buttons sit at the bottom where a thumb reaches. */
.f-insp-sign, .f-insp-paper, .f-insp-copy{display:flex; flex-direction:column; gap:8px;}
.f-insp-paper{padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--surface);}
.f-sign-line{overflow-wrap:anywhere;}
.f-sign-list{display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line); border-radius:12px;}
.f-sign-item{display:flex; align-items:flex-start; gap:12px; padding:12px 14px; border-bottom:1px solid var(--line); min-height:48px;}
.f-sign-item:last-child{border-bottom:0;}
.f-sign-check{display:none; flex:none; width:28px; height:28px; margin:2px 0 0;}
.f-sign-picking .f-sign-check{display:block;}
.f-sign-picking .f-sign-item{cursor:pointer;}
.f-sign-item-text{display:flex; flex-direction:column; gap:2px; min-width:0; overflow-wrap:anywhere;}
.f-sign-none{margin:0; padding:12px 14px;}
.f-sign-choices, .f-sign-dissent, .f-sign-sig{display:flex; flex-direction:column; gap:8px;}
.f-sign-choice{text-align:left;}
.f-sign-open{border-style:dashed; min-height:64px;}
.f-sign-preview{display:block; width:100%; max-width:360px; align-self:flex-start; background:#fff; border:1px solid var(--line); border-radius:10px;}
.f-sign-bar{position:sticky; bottom:0; display:flex; flex-direction:column; gap:6px; padding:10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); background:var(--bg);}
.f-sign-bar .f-btn{min-height:56px; font-size:18px;}
html.f-sigpad-open, html.f-sigpad-open body{overflow:hidden; overscroll-behavior:none;}
.f-sigpad{position:fixed; inset:0; z-index:1000; display:flex; flex-direction:column; gap:8px; padding:12px 12px calc(12px + env(safe-area-inset-bottom, 0px)); background:var(--bg);}
.f-sigpad-title{font-weight:700; font-size:18px;}
.f-sigpad-help{color:var(--ink-faint); font-size:14px;}
.f-sigpad-wrap{flex:1; min-height:0; display:flex; align-items:center; justify-content:center;}
.f-sigpad-canvas{background:#fff; border:2px solid var(--ink-faint); border-radius:10px; touch-action:none; -webkit-user-select:none; user-select:none; cursor:crosshair;}
.f-sigpad-err{color:var(--danger); font-weight:600;}
.f-sigpad-buttons{display:flex; gap:8px;}
.f-sigpad-buttons .f-btn{flex:1; min-height:60px; font-size:18px;}
@media (orientation:landscape) and (max-height:480px){ .f-sigpad{padding:8px;} .f-sigpad-help{display:none;} }

/* H162 PR 2: mark a site item / fix the location. 48 px targets, words beside icons. */
.f-mark-new{gap:8px;}
.f-fix-btn{align-self:stretch;}
.f-mark-btn{align-self:stretch; min-height:56px; font-size:18px;}
.f-mark-live{font-size:15px; min-height:22px;}
.f-mark-band{display:flex; align-items:flex-start; gap:10px; padding:10px 12px; border-radius:10px; border:1px solid var(--line);}
.f-band-head{font-weight:700;}
.f-band-good{background:var(--ok-bg); border-color:#a9d3c3; color:var(--ok-ink);}
.f-band-fair, .f-band-poor{background:var(--warn-bg); border-color:#e3c787; color:var(--warn-ink);}
.f-band-poor{border-width:2px; border-color:#c98a4b;}
.f-card-warn{border-color:#c98a4b; background:var(--warn-bg);}
/* H209: Leaflet gives its panes and controls z-index 400–1000. Each map box is its own stacking layer, so those numbers
   stay inside the map and the header's ☰ menu (z-index 20) always opens on top of it. */
.f-mark-map, .f-where-map{position:relative; z-index:0; isolation:isolate;}
.f-mark-map{width:100%; height:300px; border-radius:10px; border:1px solid var(--line); overflow:hidden; background:#dfe5e0;}
.f-mark-base{display:flex; gap:8px;}
.f-base-btn{flex:1;}
.f-base-btn.on{background:var(--accent); border-color:var(--accent); color:var(--accent-ink);}
.f-markpin{background:none; border:0;}
.f-markpin span{display:block; width:30px; height:30px; margin:2px; border-radius:50%; background:#e8531d; border:3px solid #fff; box-shadow:0 1px 6px rgba(0,0,0,.6);}
/* "Where it is" (H186): about a third of the screen high; 48 px zoom buttons; the marks have a 48 px tap square */
.f-where-map{width:100%; height:33vh; min-height:220px; max-height:380px; border-radius:10px; border:1px solid var(--line); overflow:hidden; background:#dfe5e0;}
.f-where-map.leaflet-touch .leaflet-bar a{width:48px; height:48px; line-height:48px; font-size:24px;}
/* H187: + / - at the bottom right, tight to the corner and lifted above the credit line; the credit small, across the bottom (Esri's full required text is wider than the map, so it wraps to two short lines) */
.f-where-map .leaflet-bottom.leaflet-right .leaflet-control{margin:0 6px 30px 0;}
.f-where-map .leaflet-bottom.leaflet-left{right:0;}
.f-where-map .leaflet-bottom.leaflet-left .leaflet-control{margin:0; width:100%; box-sizing:border-box; font-size:9px; line-height:1.3; padding:1px 4px;}
.f-where-keybtn{align-self:flex-start; min-height:48px;}
.f-where-keybtn.on{background:var(--accent); border-color:var(--accent); color:var(--accent-ink);}
.f-wpop{min-height:48px; min-width:48px; padding:0 14px; font:inherit; font-weight:700; font-size:15px; background:#fff; color:#1b1b1b; border:0; border-radius:8px;}
.f-wpop-name{display:inline-flex; align-items:center;}
.f-job-spot{font-weight:700;}
/* The building and its address on a job (2026-10-26): right under the unit, so
   a vendor opening a job link sees where to drive without hunting the header. */
.f-job-building{font-weight:600; font-size:15px; margin-top:2px;}
.f-wpopup .leaflet-popup-content-wrapper{padding:0; border-radius:8px;}
.f-wpopup .leaflet-popup-content{margin:0;}
.f-where-keybox{display:flex; flex-direction:column; gap:6px;}
.f-where-key{display:flex; flex-direction:column; gap:2px;}
.f-where-keyrow{display:flex; align-items:center; gap:10px; min-height:28px; font-size:15px;}
.f-where-line{margin:4px 2px;}
.f-wmark{background:none; border:0;}
.f-wmark-in{display:flex; align-items:center; justify-content:center; width:48px; height:48px;}
.f-wmark-dim svg{opacity:.6;}
.f-wmark-hl svg{border-radius:50%; border:3px solid #fff; box-shadow:0 0 0 2px #1b1b1b, 0 2px 8px rgba(0,0,0,.6); box-sizing:content-box;}
.f-how-main{font-weight:700;}
.f-role-row{display:flex; gap:10px;}
.f-role-photo{flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:4px; text-decoration:none; color:var(--ink);}
.f-role-photo img{width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:10px; border:1px solid var(--line); background:var(--bg);}
.f-menu-offset{border-top:1px solid var(--line); margin-top:4px; padding-top:2px; display:flex; flex-direction:column;}
.f-menu-offset[hidden]{display:none;}
/* The red band under the header, on every screen, while the demo-only test offset is on. */
.f-offset-band{position:sticky; top:56px; z-index:19; display:block; width:100%; min-height:48px; border:0; font-family:inherit; cursor:pointer; background:#b3261e; color:#fff; font-weight:800; letter-spacing:.04em; text-align:center; padding:6px 16px; font-size:14px;}
.f-offset-band[hidden]{display:none;}
.f-btn.f-danger{color:var(--danger); border-color:#e8a59c;}
.f-menu-note{font-size:13px; color:var(--ink-faint); padding:4px 12px 6px;}
.f-offset-guide p{margin:6px 0;}
.f-offset-step{font-size:17px; margin:0 0 6px;}
.f-resumed{display:flex; align-items:center; justify-content:space-between; gap:8px; background:var(--ok-bg); border-color:#a9d3c3; color:var(--ok-ink);}
/* H220: the appointment on a job. */
.f-appt-now{font-weight:700; font-size:17px; margin:2px 0 4px;}
.f-appt-form{display:flex; flex-direction:column; gap:6px; margin-top:6px;}
.f-appt-times{display:flex; gap:10px;}
.f-appt-times > div{flex:1 1 0; display:flex; flex-direction:column; gap:4px; min-width:0;}
.f-appt-form input[type=date], .f-appt-form input[type=time]{font-size:16px; padding:8px; width:100%; box-sizing:border-box;}
.f-appt-ask{background:#fdf0d5; color:#4a2800; border-radius:8px; padding:8px 10px;}
.f-appt-ask p{margin:0 0 8px;}
.f-appt-sub{color:#1f4e79; font-weight:600;}
/* H89: Getting in on a job. */
.f-getin-flags{list-style:none; padding:0; margin:4px 0 8px; display:flex; flex-wrap:wrap; gap:6px;}
.f-getin-flag{background:#fdf0d5; color:#4a2800; border-radius:999px; padding:4px 10px; font-weight:700;}
.f-getin-row{border-top:1px solid #e3e5e1; padding:8px 0;}
.f-getin-top{display:flex; justify-content:space-between; gap:8px; align-items:baseline;}
.f-getin-kind{font-weight:700;}
.f-getin-level{font-size:12px; color:#555; text-transform:uppercase; letter-spacing:.04em;}
.f-getin-code{font-family:ui-monospace, Menlo, Consolas, monospace; font-size:24px; font-weight:800; letter-spacing:.06em; margin:2px 0;}

/* H247: the job's floor on the "Where it is" map. Each name is a small solid tag in the middle of its room: dark
   with white text, the job's room orange with dark text and always shown, the others only when zoomed in (the map
   box gets .f-far when it is not). A name that would sit on top of another is left out (.f-label-off); the job's
   room always wins. ".leaflet-tooltip" is in the selectors because Leaflet's own sheet loads after this one and
   its white tooltip box would otherwise win (that made the names look fuzzy, John 2026-10-28). */
.leaflet-tooltip.f-room-label { background: rgba(20, 20, 20, .85); border: 0; border-radius: 3px; box-shadow: none; padding: 1px 5px;
  color: #fff; font: 600 12px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-shadow: none; white-space: nowrap; }
.leaflet-tooltip.f-room-label::before { display: none; }
.leaflet-tooltip.f-room-label-job { background: #ff6b2c; color: #1b1b1b; font-size: 13px; font-weight: 800; }
.f-where-map.f-far .leaflet-tooltip.f-room-label:not(.f-room-label-job) { display: none; }
.leaflet-tooltip.f-room-label.f-label-off { visibility: hidden; }
