/* Farm Ledger V6 — field tools, capture, live map and sharing. Uses the design tokens of app/v4/design.css (light, dark and
   high-contrast themes come from there). Phone first: everything works at 360 px wide; touch targets at least 44 px. */

/* status words: the same colour families as the V4 badges */
.badge.ok{background:var(--pasture-100);color:var(--pasture-700);}
.badge.idle,.badge.warn{background:var(--amber-100);color:var(--amber-700);}
.badge.bad{background:var(--red-100);color:var(--red-700);}
.badge.off{background:var(--grey-100);color:var(--grey-700);}
.badge.sos{background:var(--purple-100);color:var(--purple-700);}

/* the field-tools block in the map's side panel */
.ff{margin:12px 0 14px;padding:12px 0 0;border-top:1px solid var(--border);}
.ff h4{margin:0 0 8px;font:600 15px var(--font-ui);}
.ff h5{margin:12px 0 6px;font:600 13.5px var(--font-ui);}
.ff-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;}
.ff-unit{font-size:12.5px;color:var(--text-2);display:inline-flex;gap:6px;align-items:center;}
.ff-unit select{min-height:36px;}
.ff-kv{display:grid;grid-template-columns:minmax(96px,auto) 1fr;gap:4px 12px;margin:0 0 8px;font-size:13.5px;}
.ff-kv dt{color:var(--text-2);}
.ff-kv dd{margin:0;font-variant-numeric:tabular-nums;}
.ff-method summary{cursor:pointer;font-size:12.5px;color:var(--text-2);min-height:44px;display:flex;align-items:center;}
.ff-method p{font-size:12.5px;color:var(--text-2);margin:4px 0 8px;}
.ff-tools{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 4px;}
.ff-tools .btn{min-height:44px;}
.ff-out{margin-top:10px;padding:10px 12px;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--r-md);}
.ff-out[hidden]{display:none;}
.ff-list{list-style:none;margin:0 0 8px;padding:0;}
.ff-list li{padding:6px 0;border-bottom:1px solid var(--border);font-size:13.5px;}
.ff-list li:last-child{border-bottom:0;}
.ff-sw{display:inline-block;width:10px;height:10px;margin-right:6px;border:2px dashed #7E57C2;border-radius:2px;vertical-align:-1px;}
.ff-issues{margin:6px 0 8px;padding-left:18px;font-size:13px;}
.ff-issues li.error{color:var(--red-700);}
.ff-issues li.warning{color:var(--amber-700);}
.ff-warn{color:var(--red-700);font-size:13.5px;margin:6px 0;}
.ff-note{color:var(--amber-700);font-size:13px;margin:6px 0;}
.ff-ok{color:var(--pasture-700);font-size:13.5px;margin:6px 0;}
.ff-grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;}
@media (max-width:420px){ .ff-grid2{grid-template-columns:1fr;} }
.ff-table{font-size:13px;width:100%;}
.ff-table input{min-height:40px;}
.ff-scroll{max-height:55vh;overflow:auto;}
.ff-working{font-size:12.5px;color:var(--text-2);padding-left:20px;}
.ff-mode{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px;}
.ff-mode input{width:20px;height:20px;}

/* walk / drive capture: docked over the bottom of the map */
.ff-dock{position:absolute;left:8px;right:8px;bottom:8px;z-index:1000;max-height:58%;overflow:auto;background:var(--surface);color:var(--text);
  border:1px solid var(--border-strong);border-radius:var(--r-lg);box-shadow:var(--shadow-pop);padding:10px 12px;}
.ff-dock-h{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:14.5px;}
.ff-kv-dock{grid-template-columns:repeat(2,auto 1fr);margin-top:6px;}
@media (max-width:420px){ .ff-kv-dock{grid-template-columns:auto 1fr;} }
.ff-dock .btn{min-height:44px;}
.ff-fix{margin:6px 0;padding:6px 8px;border-radius:var(--r-sm);font-size:13.5px;background:var(--surface-2);border-left:4px solid var(--grey-700);}
.ff-fix.lvl-rtk_fixed{border-left-color:var(--pasture-700);}
.ff-fix.lvl-rtk_float,.ff-fix.lvl-dgps{border-left-color:var(--blue-700);}
.ff-fix.lvl-phone,.ff-fix.lvl-standalone{border-left-color:var(--amber-700);}
.ff-fix.lvl-degraded,.ff-fix.lvl-stale,.ff-fix.lvl-none{border-left-color:var(--red-700);}

/* the live map: a full-screen layer over the app */
.ff-overlay{position:fixed;inset:0;z-index:2000;display:flex;flex-direction:column;background:var(--bg);color:var(--text);}
.ff-ov-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 12px;background:var(--surface);border-bottom:1px solid var(--border);}
.ff-ov-h h2{margin:0;font:600 17px var(--font-ui);flex:1 1 auto;}
.ff-ov-tabs{display:flex;gap:4px;}
.ff-ov-tabs button{min-height:44px;padding:0 12px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);border-radius:var(--r-sm);font:500 14px var(--font-ui);}
.ff-ov-tabs button[aria-selected="true"]{background:var(--primary);color:var(--on-primary);border-color:var(--primary);}
.ff-conn{font-size:12.5px;padding:3px 8px;border-radius:12px;background:var(--grey-100);color:var(--grey-700);}
.ff-conn.ok{background:var(--pasture-100);color:var(--pasture-700);}
.ff-conn.bad{background:var(--amber-100);color:var(--amber-700);}
.ff-ov-b{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:1fr 360px;}
.ff-ov-map{min-height:0;}
.ff-ov-side{overflow:auto;padding:10px 14px;background:var(--surface);border-left:1px solid var(--border);}
@media (max-width:760px){ .ff-ov-b{grid-template-columns:1fr;grid-template-rows:55vh auto;overflow:auto;} .ff-ov-side{border-left:0;border-top:1px solid var(--border);} }
.ff-filter{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px;}
.ff-filter .chip{min-height:44px;padding:0 10px;border:1px solid var(--border);border-radius:20px;background:var(--surface-2);color:var(--text);font:500 13px var(--font-ui);}
.ff-filter .chip.on{background:var(--primary);border-color:var(--primary);color:var(--on-primary);}
.ff-devlist{list-style:none;margin:0;padding:0;}
.ff-devlist button{display:flex;gap:10px;align-items:flex-start;width:100%;min-height:52px;padding:8px 4px;border:0;border-bottom:1px solid var(--border);background:none;color:var(--text);text-align:left;font:14px var(--font-ui);cursor:pointer;}
.ff-devlist button:hover{background:var(--surface-2);}
.ff-dot{flex:none;width:14px;height:14px;margin-top:3px;border-radius:50%;border:3px solid var(--grey-700);display:inline-block;vertical-align:-2px;margin-right:6px;}
.ff-dot.b-green{border-color:#2E7D32;background:#2E7D32;} .ff-dot.b-yellow{border-color:#F9A825;background:#F9A825;}
.ff-dot.b-amber{border-color:#EF6C00;background:transparent;} .ff-dot.b-red{border-color:#C62828;background:transparent;}
.ff-dot.b-grey{border-color:#78909C;background:transparent;} .ff-dot.b-purple{border-color:#6A1B9A;background:#6A1B9A;}
.ff-alerts{list-style:none;margin:0;padding:0;}
.ff-alerts li{padding:8px 0;border-bottom:1px solid var(--border);font-size:13.5px;}
.ff-alerts li.acked{opacity:.65;}
.ff-alerts li.k-sos_user b,.ff-alerts li.k-sos_device b{color:var(--purple-700);}
.ff-slide-l{display:block;font-size:13px;margin-top:8px;}

/* sharing banner: always visible while this phone shares its location */
.ff-sharebar{position:fixed;left:8px;right:8px;bottom:calc(var(--tabbar-h, 64px) + 8px);z-index:2100;display:flex;gap:10px;align-items:center;padding:8px 12px;
  background:var(--forest-800);color:#fff;border-radius:var(--r-lg);box-shadow:var(--shadow-pop);font-size:13.5px;}
.ff-sharebar span:nth-child(2){flex:1 1 auto;}
.ff-pulse{width:12px;height:12px;border-radius:50%;background:#7CFC9A;flex:none;animation:ffPulse 1.6s ease-in-out infinite;}
@keyframes ffPulse{50%{opacity:.35;}}
@media (prefers-reduced-motion:reduce){ .ff-pulse{animation:none;} }
#fmSos{min-height:52px;width:100%;}
#fmSos.holding{outline:4px solid var(--red-700);outline-offset:2px;}
@media print{ .ff-dock,.ff-sharebar,.ff-tools{display:none !important;} }

/* job clock */
.jc-tasks{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:8px 0 12px;}
.jc-tasks .btn{min-height:52px;white-space:normal;}
.jc-time{font:600 28px var(--font-ui);font-variant-numeric:tabular-nums;margin:4px 0 10px;}
.jc-bar{position:fixed;right:8px;top:calc(var(--appbar-h, 56px) + 8px);z-index:1500;display:inline-flex;align-items:center;gap:6px;min-height:44px;max-width:calc(100vw - 16px);
  padding:6px 12px;border:1px solid var(--border-strong);border-radius:22px;background:var(--surface);color:var(--text);box-shadow:var(--shadow-pop);font:500 13.5px var(--font-ui);cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.jc-bar .ff-dot{margin:0;}
/* problems: voice notes */
.btn.rec-on{background:var(--red-700);border-color:var(--red-700);color:#fff;}
.iss-voice audio{width:100%;max-width:420px;margin:6px 0;}

/* review fixes (V6 usability review) */
/* dialogs and messages opened from the live map appear above it */
body.ff-ov-open .modal-back{z-index:2200;}
body.ff-ov-open #toastBar{z-index:2300 !important;}
/* the sharing banner never covers a dialog (the SOS is at the top of its dialog, and the dialog leaves room below) */
body.modal-open .ff-sharebar{z-index:60;}
body.ff-sharing .modal-body,body.ff-sharing #modalBody{padding-bottom:96px;}
.ff-sos{padding:4px 0 2px;}
.ff-sos h4{margin:0 0 4px;}
.sr-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);}
.ff-sos-confirm{position:fixed;left:12px;right:12px;top:20%;z-index:2400;max-width:420px;margin:0 auto;padding:16px;background:var(--surface);color:var(--text);border:2px solid var(--red-700);border-radius:var(--r-lg);box-shadow:var(--shadow-pop);}
.ff-sos-confirm .btn{min-height:52px;}
/* an SOS on any screen */
.ff-sosbar{position:fixed;left:8px;right:8px;top:calc(var(--appbar-h, 56px) + 8px);z-index:2350;padding:10px 12px;background:var(--red-700);color:#fff;border-radius:var(--r-lg);box-shadow:var(--shadow-pop);font-size:14px;}
/* the bar's buttons in every theme (the dark theme's own button rules are more specific, so these are marked important) */
.ff-sos-list{list-style:none;margin:0 0 6px;padding:0;max-height:min(40vh,320px);overflow:auto;} .ff-sos-list li{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:4px 0;border-bottom:1px solid rgba(255,255,255,.25);} .ff-sos-n{font-weight:700;margin-bottom:4px;}
/* V9 (fix list #12): with the SOS bar showing, the History and live pages start below it, so it never covers their buttons */
body.ff-sos-on .lh-wrap, body.ff-sos-on #liveworkHost{margin-top:calc(var(--ff-sosbar-h, 90px) + 8px);}
body.ff-sos-on .lh-wrap{height:calc(100vh - var(--appbar-h) - 48px - var(--ff-sosbar-h, 90px) - 8px);}
@media (max-width:640px){ body.ff-sos-on .lh-wrap{height:calc(100dvh - var(--appbar-h) - var(--tabbar-h, 0px) - 36px - var(--ff-sosbar-h, 90px) - 8px);min-height:360px;} }
.ff-sosbar .btn.ghost{background:transparent !important;color:#fff !important;border-color:#fff !important;}
.ff-sosbar .btn:not(.ghost){background:#fff !important;color:#8E1A12 !important;border-color:#fff !important;}
/* while an SOS bar shows, dialogs sit below it */
body.ff-sos-on .modal-back.open{padding-top:calc(var(--appbar-h, 56px) + var(--ff-sosbar-h, 90px) + 16px);}
body.ff-sos-on .modal{max-height:calc(100vh - var(--appbar-h, 56px) - var(--ff-sosbar-h, 90px) - 28px) !important;max-height:calc(100dvh - var(--appbar-h, 56px) - var(--ff-sosbar-h, 90px) - 28px) !important;}
body.ff-sos-on .ff-overlay{padding-top:calc(var(--appbar-h, 56px) + var(--ff-sosbar-h, 90px) + 16px);}
/* on the live map the sharing banner stays visible (above the map, below any dialog), and the list leaves room for it */
body.ff-ov-open .ff-sharebar{z-index:2150;}
body.ff-sharing .ff-ov-side{padding-bottom:96px;}
@media (max-width:760px){ body.ff-sharing .ff-ov-b{padding-bottom:80px;} }
html[data-theme="dark"] .ff-sosbar{background:#8E1A12;}
/* the capture dock: controls first, compact figures */
.ff-dock-ctl .btnrow{margin:6px 0;}
.ff-dock .ff-kv-dock{font-size:12.5px;gap:2px 10px;}
/* V6: Import season reports */
.si-step{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:10px 0;}
.si-step label{font-weight:600;max-width:60ch;}
.si-step select,.si-step input[type=file]{min-height:44px;max-width:100%;}
.si-h{font-size:18px;margin:18px 0 6px;}
.si-sec{margin:12px 0;padding:10px 12px;border:1px solid var(--border);border-radius:var(--r-lg);background:var(--surface);}
.si-sec h3{font-size:15px;margin:0 0 4px;}
.si-pick{display:flex;gap:8px;align-items:flex-start;min-height:44px;}
.si-pick input{width:22px;height:22px;flex:none;margin-top:1px;}
.si-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;}
.si-table{border-collapse:collapse;font-size:13px;width:100%;min-width:520px;}
.si-table th,.si-table td{text-align:left;padding:4px 6px;border-bottom:1px solid var(--border);vertical-align:top;}
.si-table td small{color:var(--text-2);word-break:break-word;}
.si-warn{color:var(--amber-700);}
.si-flag td{background:var(--surface-2);}
.si-flag td:last-child{color:var(--red-700);font-weight:600;}
.si-det{margin:10px 0;}
.si-det summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600;}
.si-det li{margin:2px 0;word-break:break-word;}
/* (farm review F-10) the walk/drive dock: figures in one line at the top of its information, and never more than about a third
   of a phone's map */
.ff-dock-fig{margin:2px 0 4px;font-size:13px;font-variant-numeric:tabular-nums;}
.ff-dock-fig .ff-ok{color:#2e7d32;font-weight:600;}
.ff-dock-fig .ff-warn-t{color:var(--amber-700);font-weight:600;}
@media (max-width:760px){ .ff-dock{max-height:36%;} .ff-dock .ff-kv-dock{display:none;} }
@media (max-width:760px){ .ff-dock .ff-dock-h{font-size:13.5px;} .ff-dock .ff-dock-ctl .btnrow{margin:4px 0;gap:4px;} .ff-dock .ff-dock-ctl .btn{min-height:40px;padding:4px 10px;} .ff-dock .ff-fix{font-size:12px;} }

/* ===== V7 timesheets (app/v7/timesheets.js): phone first, big targets, plain status colours ===== */
.ts-wrap{max-width:760px;margin:0 auto;padding:0 4px 40px}
.ts-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.ts-head h2{margin:8px 0}
.ts-farm{font-weight:700;padding:2px 10px;border-radius:999px;background:var(--surface-2,#eef2ea)}
.ts-lead{margin:0 0 10px}
.ts-bar{display:flex;align-items:center;gap:8px;margin:8px 0}
.ts-week{flex:1;display:flex;flex-direction:column;align-items:center;line-height:1.25}
.ts-nav{min-width:52px;min-height:48px;font-size:1.5rem}
.ts-person{display:flex;gap:8px;align-items:center;margin:6px 0}.ts-person select{min-height:48px;flex:1;font-size:1rem}
.ts-status{margin:6px 0 10px}
.ts-days{display:grid;gap:10px}
.ts-day{border:1px solid var(--line,#d8ddd2);border-radius:12px;padding:10px}
.ts-dayhead{display:flex;gap:8px;align-items:baseline}.ts-daytot{margin-left:auto;font-weight:700;font-size:1.1rem}
.ts-seg{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:8px 0}
.ts-segb{min-height:48px;border:1px solid var(--line,#c9d0c2);border-radius:10px;background:transparent;font:inherit;font-weight:600}
.ts-segb.on{background:var(--ink,#1f3a24);color:#fff;border-color:transparent}
.ts-shift{display:flex;gap:8px;align-items:end;margin:6px 0}.ts-shift label{flex:1;display:flex;flex-direction:column;font-size:.85rem}
.ts-shift input[type=time]{min-height:48px;font-size:1.15rem;width:100%}
.ts-x{min-width:48px;min-height:48px}.ts-add{min-height:44px;width:100%}
.ts-written{display:flex;gap:8px;align-items:center;margin-top:6px;font-size:.9rem}.ts-written input{width:6em;min-height:40px}
.ts-note{width:100%;min-height:44px;margin-top:6px;box-sizing:border-box}
.ts-flags{margin:6px 0 0;padding-left:18px;font-size:.9rem}
.ts-f-error{color:#a11}.ts-f-diff{color:#9a4b00;font-weight:600}.ts-f-check{color:#6b5b00}.ts-f-look{color:inherit}
.ts-total{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;margin:14px 0 6px;padding:12px;border-radius:12px;background:var(--surface-2,#eef2ea)}
.ts-total b{font-size:1.5rem;margin:0 6px}.ts-total input{width:6em;min-height:40px}
.ts-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.ts-actions .btn{min-height:48px;flex:1 1 200px}
.ts-team{width:100%;border-collapse:collapse;font-size:.92rem}.ts-team th,.ts-team td{text-align:left;padding:6px;border-bottom:1px solid var(--line,#e2e6dc);vertical-align:top}
.ts-import{margin-top:18px}.ts-import textarea{width:100%;box-sizing:border-box;font-family:ui-monospace,monospace}
.ts-farmsel{display:flex;flex-wrap:wrap;gap:8px 16px;margin:6px 0 10px}.ts-farmsel select{min-height:40px}
.ts-st-approved{background:#dcefdc}.ts-st-submitted{background:#fff1cc}
.ts-src{display:flex;gap:8px;align-items:center;margin:8px 0}
.linkish{background:none;border:0;padding:0;color:inherit;text-decoration:underline;font:inherit;cursor:pointer}
.ts-segb small{display:block;font-weight:400;font-size:.72rem;opacity:.8}
.ts-next{display:flex;gap:6px;align-items:center;font-size:.85rem;margin:-2px 0 4px}
.ts-addrow{display:flex;gap:6px}.ts-addrow .btn{flex:1}

/* V9 fix list #24: Spanish under the worker's timesheet words (as on the day buttons) */
.ts-es{display:block;font-size:12px;font-weight:500;opacity:.85;line-height:1.25;margin:0;}
.ts-next{align-items:flex-start;} .ts-next>span{display:flex;flex-direction:column;}
.ts-add,.ts-actions .btn{flex-direction:column;justify-content:center;gap:0;}
.ts-add .ts-es,.ts-actions .btn .ts-es{font-weight:500;}
/* V9 fix list #53: a paper sheet's review */
.ts-paper{margin:14px 0;padding:12px 0 0;border-top:1px solid var(--border);}
.ts-paper h3{margin:0 0 8px;font:600 15px var(--font-ui);}
.ts-pp{display:inline-flex;flex-direction:column;gap:4px;align-items:flex-start;}
.ts-pprow{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0;}
.ts-pprow select{min-height:44px;max-width:100%;}
.ts-pc{margin:8px 0;}
.ts-pc-verified{background:var(--pasture-100);color:var(--pasture-700);}
.ts-pc-corrected{background:var(--amber-100);color:var(--amber-700);}
.ts-pc-uncertain{background:var(--red-100);color:var(--red-700);}
.ts-pcform{border:1px solid var(--border);border-radius:8px;padding:8px 12px 12px;margin:8px 0;}
.ts-pcform legend{font-weight:600;padding:0 4px;}
.ts-pcopt{display:flex;gap:8px;align-items:center;min-height:44px;}
.ts-pcwhy{display:flex;flex-direction:column;gap:4px;margin:6px 0 10px;}
.ts-pcwhy input{min-height:44px;}
/* V9 fix list #54: worker profiles */
.pf-gaps{margin:4px 0 10px;padding-left:20px;color:var(--amber-700);}
.pf-kv{display:grid;grid-template-columns:max-content 1fr;gap:4px 14px;margin:6px 0 10px;}
.pf-kv dt{color:var(--text-2);}
.pf-kv dd{margin:0;}
.pf-sub{margin:10px 0 4px;font-weight:600;}
.pf-quals{margin:0;padding-left:20px;}
.pf-quals li{margin:4px 0;}
.pill.pf-bad{background:var(--red-100);color:var(--red-700);}
.pill.pf-warn{background:var(--amber-100);color:var(--amber-700);}
.pill.pf-ok{background:var(--pasture-100);color:var(--pasture-700);}
/* V9 fix list #58: jobs and problems on the live map; what playback recorded; a paddock's whole history */
.fc-wk span{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:5px;color:#fff;font:700 12px/1 var(--font-ui);border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.35);}
.fc-wk-problem span{border-radius:50%;}
.fc-rec{display:flex;gap:1px;margin:6px 0 2px;height:14px;}
.fc-rec span{flex:1;border-radius:2px;}
.fc-rec-complete{background:#2E7D32;}
.fc-rec-partial{background:#F9A825;}
.fc-rec-missing{background:#C62828;opacity:.55;}
.fc-rec-future{background:var(--grey-100);}
.ph-ul{list-style:none;padding:0;margin:0 0 10px;}
.ph-ul li{padding:4px 0;border-bottom:1px solid var(--border);}
.ph-d{display:inline-block;min-width:92px;color:var(--text-2);}
/* V9 fix list #59: timelines */
.tl9{list-style:none;padding:0;margin:0;}
.tl9 li{padding:5px 0;border-bottom:1px solid var(--border);}
.tl9-at{display:inline-block;min-width:150px;color:var(--text-2);font-size:13px;}
/* V9 fix list #60: feed budget, break planner, animal card */
.f9-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px 14px;margin:6px 0 10px;}
.f9{display:flex;flex-direction:column;gap:3px;font-size:14px;}   /* (V9: 14 px — the phone readability rule, ui5 UX-1) */
.f9 input,.f9 select{min-height:44px;}
.f9-t{max-width:420px;}
.an9 ul{margin:2px 0 8px;padding-left:20px;}
/* V9 fix list #61: the check-in bar */
.ci-bar{position:sticky;top:0;z-index:900;display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:8px 12px;background:#E3F0E6;color:#1F4D2C;border-bottom:1px solid #9CC3A6;}
.ci-bar span{flex:1 1 220px;}
.ci-bar.ci-due{background:#FCEFD9;color:#6B4510;border-color:#E2B566;}
.ci-bar.ci-overdue{background:#F6DED6;color:#7A2A12;border-color:#D98B70;}
/* V9 fix list #62: visitors */
.vs-q{border:1px solid var(--border);border-radius:8px;padding:6px 10px;margin:6px 0;}
.vs-q legend{font-weight:600;padding:0 4px;}
.vs-ind{max-height:46vh;overflow:auto;border:1px solid var(--border);border-radius:8px;padding:6px 12px;margin-bottom:10px;}
.vs-on li{margin:6px 0;}
/* V9 fix list #65: Spanish under the English */
.es9{display:block;font-size:.82em;font-weight:400;color:var(--text-2);line-height:1.2;}
.cat-btn .es9{margin-top:2px;}
/* V9 fix list #48: the roster */
.rs-grid td{vertical-align:top;min-width:96px;}
.rs-shift{display:block;width:100%;text-align:left;margin:2px 0;padding:4px 6px;border:1px solid var(--border);border-radius:6px;background:var(--pasture-100);font:inherit;font-size:12.5px;cursor:pointer;}
.rs-shift small{display:block;color:var(--text-2);}
.rs-unfilled{background:var(--amber-100);}
.rs-leave{display:block;margin:2px 0;padding:4px 6px;border-radius:6px;background:var(--grey-100);font-size:12.5px;}
.rs-add{min-width:32px;min-height:32px;border:1px dashed var(--border);border-radius:6px;background:none;cursor:pointer;}
.sc-res{max-width:560px;}
/* review R6-F5: on a phone the roster's week becomes a card per person — each day says which day it is */
@media (max-width:640px){ .rs-grid td[data-day]::before{content:attr(data-day);display:block;font-size:14px;font-weight:600;color:var(--text-2);margin-top:6px;} }
/* V10 (#93): a drill on the SOS bar is marked as practice */
.ff-sos-list li.ff-drill{border-left:4px dashed #fff;padding-left:8px;} .ff-drill-tag{display:inline-block;background:#fff;color:var(--red-700);font-weight:800;border-radius:4px;padding:0 6px;margin-right:4px;text-transform:uppercase;font-size:12px;letter-spacing:.04em;}
/* V10 (#169): pause sharing for a break */
.ff-pause{display:inline-flex;flex-wrap:wrap;gap:4px;align-items:center;margin-left:auto;} .ff-pause>span{font-size:13px;opacity:.9;}
.ff-pausebar{background:var(--surface-2,#eee);color:var(--text,#222);}
.ff-sharebar .ff-pause .btn{min-height:36px;}
.ff-sharebar{flex-wrap:wrap;row-gap:6px;}
/* V10 (#170): what was recorded about me, day by day */
.ff-days{border-collapse:collapse;margin:6px 0;font-size:13px;} .ff-days th,.ff-days td{padding:3px 8px;border-bottom:1px solid var(--border);text-align:left;}
