/* Wayfinder — UI styles */
:root { /* the Linen look: cream paper, forest green, espresso ink. One look, day or night, on every screen. */
  --bg: #FFFDF8;
  --bg2: #F7F2E8;
  --surface: #FFFDF8; /* the Linen surface: cards and boxes sit on it (30 rules asked for it and it was never set, so they came out see-through) */
  --sand: #F1EADB;
  --ink: #2A2420;
  --ink2: #5E554B;
  --line: #E0D6C3;
  --accent: #2F5D50;
  --accent-ink: #ffffff;
  --hot: #B4532A;
  --shadow: 0 2px 10px rgba(42, 36, 32, .18);
  --radius: 16px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}
@font-face { font-family: 'Fraunces'; font-weight: 100 900; font-display: swap; src: url('assets/fonts/linen/fraunces.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url('assets/fonts/linen/inter.woff2') format('woff2'); }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body {
  font: 15px/1.4 var(--sans);
  color: var(--ink); background: var(--bg2);
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
.hidden { display: none !important; }

#map { position: fixed; inset: 0; }

/* ---------- search ---------- */
#topbar {
  position: fixed; z-index: 5;
  top: calc(10px + var(--safe-t)); left: calc(10px + var(--safe-l));
  width: min(400px, calc(100vw - 20px - var(--safe-l) - var(--safe-r)));
}
.searchbox {
  display: flex; align-items: center; gap: 2px;
  background: var(--bg); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 4px 6px; height: 50px;
}
.searchbox input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 16px; padding: 8px 4px;
}
.searchbox input::-webkit-search-cancel-button { display: none; }
.iconbtn {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer; display: grid; place-items: center;
}
.iconbtn:hover { background: var(--bg2); }
.iconbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn.accent { color: var(--accent); }

.results {
  list-style: none; margin: 6px 0 0; padding: 4px;
  background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow);
  max-height: min(55vh, 420px); overflow: auto;
}
.results li {
  padding: 9px 10px; border-radius: 9px; cursor: pointer;
  display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start;
}
.results li:hover, .results li.active { background: var(--bg2); }
.results .ico { color: var(--ink2); font-size: 14px; line-height: 20px; text-align: center; }
.results b { display: block; font-weight: 600; }
.results small { color: var(--ink2); }
.results .empty { cursor: default; color: var(--ink2); grid-template-columns: 1fr; }

/* ---------- basemap switch ---------- */
#layerSwitch {
  position: fixed; z-index: 4;
  left: calc(10px + var(--safe-l)); bottom: calc(34px + var(--safe-b));
  display: flex; background: var(--bg); border-radius: 12px; box-shadow: var(--shadow); padding: 3px;
}
#layerSwitch button {
  border: 0; background: transparent; padding: 8px 12px; border-radius: 9px; cursor: pointer;
  font-weight: 600; font-size: 13px; color: var(--ink2);
}
#layerSwitch button.on { background: var(--accent); color: var(--accent-ink); }

#netBadge {
  position: fixed; z-index: 4; left: 50%; transform: translateX(-50%);
  top: calc(68px + var(--safe-t));
  background: var(--hot); color: #fff; font-weight: 600; font-size: 13px;
  padding: 5px 12px; border-radius: 99px; box-shadow: var(--shadow); white-space: nowrap;
}
/* the little note at the bottom (app.js toast): a Linen card that slides up, a mark for the kind of note, an ✕ and a bar for its time */
#toast {
  position: fixed; z-index: 9; left: 50%; transform: translate(-50%, 0);
  bottom: calc(90px + var(--safe-b)); width: max-content; max-width: min(calc(100vw - 32px), 480px);
  display: flex; align-items: center; gap: 12px; overflow: hidden;
  background: #FFFDF8; color: #2A2420; border: 1px solid #E0D6C3; border-radius: 16px; padding: 12px 10px 14px 12px;
  box-shadow: 0 10px 30px rgba(42,36,32,.16), 0 2px 6px rgba(42,36,32,.08);
  font: 500 14px/1.4 var(--sans); text-align: left; --tc: #2F5D50;
  transition: opacity .22s ease, transform .3s cubic-bezier(.2,1.25,.4,1);
}
#toast.hidden { display: flex !important; opacity: 0; transform: translate(-50%, 18px) scale(.97); pointer-events: none; }
#toast.tst-bad { --tc: #C0533A; } #toast.tst-ok { --tc: #2F5D50; } #toast.tst-tip { --tc: #3FA77F; }
/* mini Cami: her pale green core beating, three specks drifting round it. On every tip (the note at the bottom, the sketch's tip strip) */
.miniCami { flex: none; position: relative; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #d8eee4 0 36%, #eef6f1 58%, transparent 72%); }
.miniCami::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #e9f7f0, #9fd3bf 60%, #6fbf9f); box-shadow: 0 0 7px rgba(111,191,159,.9); animation: tstBeat 1.15s ease-in-out infinite; }
.miniCami i { position: absolute; width: 3.6px; height: 3.6px; border-radius: 50%; background: #3FA77F; animation: tstSpeck 2.4s ease-in-out infinite; }
.miniCami i:nth-child(1) { left: 4px; top: 8px; } .miniCami i:nth-child(2) { right: 5px; top: 4px; animation-delay: -.8s; } .miniCami i:nth-child(3) { right: 7px; bottom: 4px; animation-delay: -1.6s; }
@keyframes tstSpeck { 50% { transform: translate(1px, -2px); opacity: .45; } }
@keyframes tstBeat { 15% { transform: scale(1.25); } 30% { transform: scale(1); } }
#toast .tBadge { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; background: var(--tc); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px #FFFDF8; z-index: 1; }
#toast .tBadge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
#toast .tTx { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#toast .tX { flex: none; border: 0; background: none; color: #8A7F72; font-size: 13px; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; } #toast .tX:hover { background: #F1EADB; color: #2A2420; }
#toast .tBar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--tc); opacity: .55; transform-origin: left; animation: tstTime linear forwards; }
#toast.held .tBar { animation-play-state: paused; }
@keyframes tstTime { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { #toast, #toast * { animation: none !important; transition: none !important; } }

/* ---------- panel ---------- */
#panel {
  position: fixed; z-index: 6; background: var(--bg); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  top: calc(70px + var(--safe-t)); left: calc(10px + var(--safe-l));
  width: min(400px, calc(100vw - 20px));
  max-height: calc(100vh - 150px - var(--safe-t) - var(--safe-b));
  border-radius: var(--radius);
}
.panelhead {
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 6px 16px;
  border-bottom: 1px solid var(--line);
}
.panelhead h2 { flex: 1; margin: 0; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
#panelBody { padding: 12px 16px 16px; overflow: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 640px) {
  #panel {
    top: auto; left: 0; right: 0; bottom: 0; width: auto;
    max-height: 58vh; border-radius: 18px 18px 0 0;
    padding-bottom: var(--safe-b);
  }
  body.panel-open #layerSwitch { display: none; }
  body.panel-open .maplibregl-ctrl-bottom-right, body.panel-open .maplibregl-ctrl-bottom-left { display: none; }
}

.muted { color: var(--ink2); }
.small { font-size: 13px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btn {
  border: 1px solid var(--line); background: var(--bg); border-radius: 10px;
  padding: 9px 14px; cursor: pointer; font-weight: 600;
}
.btn:hover { background: var(--bg2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--hot); }
.btn:disabled { opacity: .5; cursor: default; }

.field { display: block; margin-top: 10px; }
.field span { display: block; font-size: 12px; font-weight: 600; color: var(--ink2); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  padding: 9px 10px; font-size: 16px; outline: 0;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 78px; resize: vertical; }
.fieldwrap { position: relative; }
.fieldwrap .results { position: absolute; left: 0; right: 0; top: 100%; z-index: 3; max-height: 220px; }

.swatches { display: flex; gap: 8px; margin-top: 6px; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.swatches button.on { border-color: var(--ink); }

.modes { display: flex; gap: 6px; margin-top: 12px; }
.modes button { flex: 1; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 8px 4px; cursor: pointer; font-weight: 600; }
.modes button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.summary { margin-top: 14px; padding: 10px 12px; background: var(--bg2); border-radius: 10px; }
.summary strong { font-size: 20px; }
ol.steps { list-style: none; margin: 10px 0 0; padding: 0; }
ol.steps li { padding: 9px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 10px; cursor: pointer; }
ol.steps li:last-child { border-bottom: 0; }
ol.steps small { color: var(--ink2); white-space: nowrap; }

ul.pins { list-style: none; margin: 8px 0 0; padding: 0; }
ul.pins li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: start; }
ul.pins li:hover { background: var(--bg2); }
ul.pins .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; }
ul.pins b { display: block; }
ul.pins small { color: var(--ink2); display: block; white-space: pre-wrap; overflow-wrap: anywhere; }

h3.sec { margin: 18px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); }
progress { width: 100%; height: 10px; margin-top: 10px; accent-color: var(--accent); }

/* ---------- map furniture ---------- */
.pin { cursor: pointer; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.pin svg { display: block; width: 30px; height: 40px; }
.pin.temp svg { width: 34px; height: 46px; }
.maplibregl-ctrl-bottom-right { bottom: calc(24px + var(--safe-b)); right: var(--safe-r); }
.maplibregl-ctrl-bottom-left { bottom: calc(84px + var(--safe-b)); left: var(--safe-l); }
.maplibregl-ctrl-group { border-radius: 12px !important; overflow: hidden; }
.maplibregl-ctrl-group button { width: 40px; height: 40px; }

/* ---------- options ---------- */
.toggle { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-weight: 600; }
.toggle input { width: 20px; height: 20px; accent-color: var(--accent); }

.field select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 9px 10px; font-size: 16px; }
.linelook { display: grid; grid-template-columns: 44px 1fr 1fr auto; gap: 8px; align-items: center; margin: 2px 0 10px 30px; }
.linelook input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); cursor: pointer; }
.linelook select { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 7px 6px; font-size: 14px; min-width: 0; }
.linelook input[type=range] { width: 100%; min-width: 0; accent-color: var(--accent); }
.linelook .btn { padding: 6px 10px; font-size: 13px; }

/* ---------- field sketch ---------- */
#skSvg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 2; pointer-events: none; overflow: hidden; }
#skSvg .skHit, #skSvg .skHandle { pointer-events: all; cursor: move; touch-action: none; }
#skSvg .skHandle { cursor: grab; }
body.sk-drawing #skSvg .skHit, body.sk-drawing #skSvg .skHandle { pointer-events: none; }
body.sk-drawing .maplibregl-canvas { cursor: crosshair; }
body.sk-dragging, body.sk-dragging * { cursor: grabbing !important; }
#skFrame, #skDock, #skHint { display: none; }
body.sketching #skFrame { display: block; position: fixed; z-index: 2; pointer-events: none; border: 1.5px dashed rgba(14, 94, 88, .75); box-shadow: 0 0 0 100vmax rgba(20, 30, 28, .10); }
#skFrame span { position: absolute; left: 6px; top: -20px; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--bg); padding: 1px 6px; border-radius: 6px; }

/* the toolbar: tools on top, then a library of structures and lines to drag onto the sketch */
body.sketching #skDock {
  display: flex; flex-direction: column; position: fixed; z-index: 5;
  left: calc(10px + var(--safe-l)); top: calc(70px + var(--safe-t)); bottom: calc(90px + var(--safe-b)); width: 268px;
  background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.skHead { display: flex; align-items: baseline; gap: 8px; padding: 9px 12px 6px; border-bottom: 1px solid var(--line); }
.skHead b { flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skHead span { font-size: 11px; color: var(--ink2); white-space: nowrap; }
.skTools { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); }
.skTools button { border: 0; background: transparent; border-radius: 9px; padding: 5px 0 4px; cursor: pointer; display: grid; place-items: center; gap: 1px; color: var(--ink); min-width: 0; }
.skTools button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skTools button span { font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.skTools button:hover { background: var(--bg2); }
.skTools button.on { background: var(--accent); color: var(--accent-ink); }
.skTools button:disabled { opacity: .35; cursor: default; }
.skTools .skPhone { display: none; }
.skLib { flex: 1; overflow-y: auto; padding: 8px 8px 12px; -webkit-overflow-scrolling: touch; }
.skLib input { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); padding: 7px 9px; font-size: 14px; outline: 0; }
.skLib input:focus { border-color: var(--accent); }
.skTip { margin: 6px 2px 0; font-size: 11px; color: var(--ink2); }
.skLib h4 { margin: 12px 2px 5px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); position: sticky; top: -8px; background: var(--bg); padding: 4px 0; z-index: 1; }
.skTiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.skTile {
  border: 1px solid var(--line); background: #ffffff; color: #1c2422; border-radius: 9px; padding: 5px 3px 4px; cursor: grab;
  display: grid; justify-items: center; align-content: start; gap: 2px; min-height: 66px; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.skTile svg { pointer-events: none; }
.skTile span { font-size: 9.5px; line-height: 1.15; font-weight: 600; text-align: center; overflow-wrap: anywhere; pointer-events: none; }
.skTile:hover { border-color: var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.skTile.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
#skGhost { position: fixed; z-index: 30; pointer-events: none; transform: translate(-50%, -50%); background: rgba(255, 255, 255, .9); border: 1.5px solid #0e5e58; border-radius: 10px; padding: 4px 6px; box-shadow: var(--shadow); }
ul.pins li:has(.skDelSk) { grid-template-columns: 14px 1fr auto; }

body.sketching #skHint:not(.hidden) {
  display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px 10px; position: fixed; z-index: 6; left: 50%; transform: translateX(-50%);
  bottom: calc(30px + var(--safe-b)); max-width: min(92vw, 660px); background: #1c2422; color: #fff; padding: 7px 10px 7px 14px; border-radius: 12px; box-shadow: var(--shadow); font-size: 13px;
}
#skHint .btn { padding: 6px 12px; flex: none; }
#skHintX { flex: none; background: transparent; border: 0; color: #fff; opacity: .75; font-size: 15px; line-height: 1; padding: 6px 8px; cursor: pointer; }
#skHintX:hover, #skHintX:focus-visible { opacity: 1; }
#skHint .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.skGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.skPick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.skPickBtn { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 6px; text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 7px 8px; cursor: pointer; font-size: 12.5px; font-weight: 600; min-height: 46px; }
.skPickBtn:hover { background: var(--bg2); }
.skPickBtn svg { justify-self: center; }
p.summary { margin: 10px 0 0; }
@media (min-width: 641px) {
  /* properties open on the right, like drawing software: toolbar left, details right */
  body.sketching #panel { left: auto; right: calc(10px + var(--safe-r)); width: min(360px, calc(100vw - 310px)); max-height: calc(100vh - 290px - var(--safe-t)); }
  body.sketching #layerSwitch { left: calc(10px + var(--safe-l)); }
  body.sketching .maplibregl-ctrl-bottom-left { left: 280px; bottom: calc(24px + var(--safe-b)); }
}
@media (max-width: 640px) {
  /* phones: one row of tools; Line and Structure open a pick list instead of the drag library */
  body.sketching #skDock { left: 10px; right: 10px; top: calc(66px + var(--safe-t)); bottom: auto; width: auto; }
  .skHead, .skLib { display: none; }
  .skTools { display: flex; overflow-x: auto; border-bottom: 0; }
  .skTools button { flex: none; width: 54px; }
  .skTools .skPhone { display: grid; }
  body.sketching #netBadge { top: calc(132px + var(--safe-t)); }
  body.sketching #skHint:not(.hidden) { bottom: calc(60px + var(--safe-b)); }
  body.sketching.panel-open #skHint { display: none; }
}

/* hint bar extras, the floating action bar, small form rows */
#skOffBox { display: inline-flex; gap: 6px; align-items: center; }
#skOffBox input { width: 64px; }
#skOffBox input, #skOffBox select { border: 0; border-radius: 8px; padding: 6px 8px; font-size: 14px; background: #fff; color: #111; }
#skBar { position: fixed; z-index: 7; transform: translateX(-50%); display: flex; gap: 2px; background: var(--bg); border-radius: 11px; box-shadow: var(--shadow); padding: 4px; white-space: nowrap; }
#skBar.hidden { display: none; }
#skBar button { border: 0; background: transparent; color: var(--ink); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
#skBar button:hover { background: var(--bg2); }
#skBar button.danger { color: var(--hot); }
.skColorRow { display: flex; gap: 8px; align-items: center; }
.skColorRow input[type=color] { width: 52px; height: 38px; padding: 2px; flex: none; }
.skColorRow input:not([type=color]) { flex: 1; min-width: 0; }
.skColorRow .btn { padding: 8px 10px; font-size: 13px; white-space: nowrap; }
#skSvg .skRot { cursor: grab; }
#skSvg .skPlus { cursor: pointer; }

/* question card, pop-up tips, drop preview caption, connection rows */
#skAsk { position: fixed; z-index: 12; transform: translateX(-50%); background: var(--bg); color: var(--ink); border-radius: 13px; box-shadow: 0 4px 22px rgba(0, 0, 0, .32); padding: 12px 14px; min-width: 210px; max-width: 300px; border: 2px solid var(--accent); }
#skAsk.hidden, #skTip.hidden { display: none; }
#skAsk b { display: block; font-size: 15px; }
#skAsk small { display: block; color: var(--ink2); margin-top: 2px; font-size: 12px; line-height: 1.3; }
#skAsk div { display: flex; gap: 8px; margin-top: 10px; }
#skAsk .btn { flex: 1; padding: 9px 10px; }
#skTip { position: fixed; z-index: 11; width: 250px; background: #1c2422; color: #fff; border-radius: 11px; padding: 10px 12px; box-shadow: var(--shadow); pointer-events: none; font-size: 12.5px; line-height: 1.4; }
#skTip b { display: block; font-size: 13.5px; margin-bottom: 3px; }
#skTip span { display: block; color: #d5dedb; }
#skGhost { display: grid; justify-items: center; }
#skGhostCap { font-size: 11px; font-weight: 700; color: #0e5e58; white-space: nowrap; }
#skGhostCap:empty { display: none; }
.skLink { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.skLink span { flex: 1; min-width: 0; }
.skLink .btn { padding: 5px 10px; font-size: 12.5px; }
.skLink select { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 6px; font-size: 13px; }

/* freestyle drawing, locks, and the size box in a question card */
body.sk-free .maplibregl-canvas-container, body.sk-free .maplibregl-canvas { touch-action: none; cursor: crosshair; }
#skHint #skFreeAs { flex: none; max-width: 190px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; background: #2b3432; color: #fff; padding: 6px 8px; font-size: 13px; }
#skAsk { max-width: 330px; }
#skAsk div { flex-wrap: wrap; }
#skAsk .btn { white-space: nowrap; }
#skAsk input { display: block; width: 100%; box-sizing: border-box; margin-top: 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); padding: 9px 10px; font-size: 15px; }

/* v13: toolbox tabs, undo pill, armed pointer preview, layers */
#skRole { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: var(--bg2); color: var(--ink); padding: 6px 8px; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
#skTabs { display: flex; flex-wrap: wrap; gap: 3px 2px; margin: 9px 0 0; padding: 0 2px; border-bottom: 2px solid var(--accent); }
.skTab { border: 1px solid var(--line); border-bottom: 0; background: var(--bg2); color: var(--ink2); border-radius: 8px 8px 0 0; padding: 5px 9px; font-size: 11.5px; font-weight: 700; cursor: pointer; touch-action: none; user-select: none; }
.skTab:hover { color: var(--ink); }
.skTab.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.skTab.add { padding: 5px 9px; }
.skTab.drop, .skTile.drop { outline: 2px dashed #e85d2f; outline-offset: 1px; }
#skShelf { margin-top: 8px; }
#skUR { display: none; }
body.sketching #skUR { display: flex; gap: 2px; position: fixed; z-index: 5; top: calc(12px + var(--safe-t)); left: calc(424px + var(--safe-l)); background: var(--bg); border-radius: 12px; box-shadow: var(--shadow); padding: 4px; }
#skUR button { border: 0; background: transparent; color: var(--ink); border-radius: 9px; padding: 6px 10px; cursor: pointer; display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; }
#skUR button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#skUR button:hover { background: var(--bg2); }
#skUR button:disabled { opacity: .35; cursor: default; }
#skGhost.armed { transform: none; padding: 2px 5px; border-radius: 9px; animation: skBob .9s ease-in-out infinite; }
#skGhost.armed.line path { stroke-dasharray: 7 4; animation: skFlow .5s linear infinite; }
@keyframes skBob { 0%, 100% { margin-top: 0; } 50% { margin-top: -5px; } }
@keyframes skFlow { to { stroke-dashoffset: -11; } }
.skLay { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.skLay .toggle { margin: 0; }
.skLay small { color: var(--ink2); font-weight: 400; margin-left: 4px; }
.skLay .btn { padding: 4px 10px; font-size: 12px; }
.skLay input[type=range] { grid-column: 1 / -1; width: 100%; }
#skHint #skFreeSet { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
@media (max-width: 640px) {
  body.sketching #skUR { left: auto; right: calc(10px + var(--safe-r)); top: auto; bottom: calc(118px + var(--safe-b)); }
  #skUR button span { display: none; }
}
/* the strip of hints at the bottom never blocks the sketch: only its buttons and boxes take clicks */
body.sketching #skHint { pointer-events: none; }
body.sketching #skHint button, body.sketching #skHint select, body.sketching #skHint input { pointer-events: auto; }
/* v14: the question mark that waits at an unanswered crossing */
.skQ { pointer-events: all; cursor: pointer; }
body.sk-drawing .skQ { pointer-events: none; }
/* search results always open on top of whatever panel is showing */
#topbar { z-index: 7; }

/* v16: north arrow, landing preview, multi-select shape, most-used tab */
#skNorth { display: none; }
body.sketching #skNorth { display: block; position: fixed; z-index: 4; cursor: grab; touch-action: none; user-select: none; }
#skNorth:active { cursor: grabbing; }
#skNorth svg { display: block; }
.skNStyles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 10px; }
.skNStyle { border: 2px solid var(--line); background: var(--bg); border-radius: 11px; padding: 6px 2px 5px; cursor: pointer; display: grid; justify-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--ink); }
.skNStyle.on { border-color: var(--accent); background: var(--bg2); }
.skPreview { animation: skPulse 1s ease-in-out infinite; }
@keyframes skPulse { 0%, 100% { opacity: .45; } 50% { opacity: .85; } }
#skGhost.cap > svg { display: none; }
#skGhost.cap { margin-top: 26px; background: transparent; box-shadow: none; }
#skGhost.armed.line path { animation: none; stroke-dasharray: none; }
#skGhost.armed.line path:first-child { stroke-dasharray: 7 4; animation: skFlow .5s linear infinite; }
#skHint #skMultiKind { flex: none; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; background: #2b3432; color: #fff; padding: 6px 8px; font-size: 13px; }

/* v17: the section view */
#skSect { position: fixed; z-index: 6; left: calc(290px + var(--safe-l)); right: 70px; bottom: calc(84px + var(--safe-b)); max-width: 940px; margin: 0 auto; background: var(--bg); color: var(--ink); border-radius: var(--radius); box-shadow: 0 6px 26px rgba(0, 0, 0, .3); border: 2px solid var(--accent); overflow: hidden; }
#skSect.hidden { display: none; }
.skSectHead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 7px 8px 7px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.skSectHead b { font-size: 15px; }
.skSectHead .grow { flex: 1; }
.skSectHead .btn { padding: 5px 10px; font-size: 12.5px; }
.skSectHead label { display: flex; align-items: center; gap: 5px; font-size: 12.5px; white-space: nowrap; }
#skSect { max-width: 1120px; }
#skSectRoad { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 7px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; background: var(--sand, #F1EADB); }
#skSectRoad.hidden { display: none; }
#skSectRoad i { font-style: normal; color: var(--ink2); margin-right: 6px; font-weight: 600; }
.skSeg { display: inline-flex; align-items: center; }
.skSeg button { border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 6px 10px; font-size: 12.5px; cursor: pointer; min-height: 32px; }
.skSeg button:first-of-type { border-radius: 9px 0 0 9px; } .skSeg button:last-of-type { border-radius: 0 9px 9px 0; } .skSeg button + button { border-left: 0; }
.skSeg button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.skStep { display: inline-flex; align-items: center; }
.skStep button { width: 30px; height: 32px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1; cursor: pointer; border-radius: 9px 0 0 9px; }
.skStep button:last-of-type { border-radius: 0 9px 9px 0; }
.skStep input { width: 42px; height: 32px; border: 1px solid var(--line); border-left: 0; border-right: 0; text-align: right; padding: 0 2px 0 0; font-size: 13.5px; background: #fff; color: var(--ink); border-radius: 0; }
.skStep em { font-style: normal; height: 32px; line-height: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding-right: 5px; color: var(--ink2); }
#skSectBody.zoomed { cursor: grab; }
.skZoom { display: inline-flex; } .skZoom .btn { border-radius: 0; min-width: 34px; } .skZoom .btn:first-child { border-radius: 9px 0 0 9px; } .skZoom .btn:last-child { border-radius: 0 9px 9px 0; } .skZoom .btn + .btn { border-left: 0; }
#skSectLook { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg); font-size: 12.5px; max-height: 38vh; overflow: auto; }
#skSectLook.hidden { display: none; }
#skSectLook b { display: block; margin-bottom: 4px; }
.skLkCol { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.skLk { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 8px; } .skLk.c { grid-template-columns: auto 1fr; }
.skLk input[type=range] { width: 100%; accent-color: var(--accent); }
.skLkColors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; }
.skLkColors label { display: flex; align-items: center; gap: 6px; min-width: 0; }
.skLkColors input { width: 30px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; }
@media (max-width: 760px) { #skSectLook { grid-template-columns: 1fr; } .skSectHead { flex-wrap: wrap; } }
.skSheeted { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; }
#skSectBody { background: #fff; touch-action: none; user-select: none; }
#skSectBody svg { display: block; }
#skSectFoot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 7px 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink2); min-height: 44px; }
#skSectFoot b { color: var(--ink); }
#skSectFoot input { width: 86px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); padding: 6px 8px; font-size: 14px; }
#skSectFoot .btn { padding: 5px 11px; font-size: 12.5px; }
@media (max-width: 640px) {
  #skSect { left: 6px; right: 6px; bottom: calc(112px + var(--safe-b)); }
  .skSectHead .btn { padding: 5px 7px; font-size: 11.5px; }
}


/* v18: the big pencil, and the welcome screen */
#layerSwitch [data-base="plate"] { display: none; }
#btnPencil { position: fixed; z-index: 5; top: calc(10px + var(--safe-t)); right: calc(14px + var(--safe-r)); width: 62px; height: 62px; border-radius: 50%; border: 3px solid #fff; background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 16px rgba(0, 0, 0, .35); cursor: pointer; display: grid; place-items: center; align-content: center; gap: 0; transition: transform .15s; }
#btnPencil:hover { transform: scale(1.07); }
#btnPencil svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#btnPencil span { font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-top: -1px; }
body.sketching #btnPencil { background: #e85d2f; }
body.sketching #btnPencil span { font-size: 0; }
body.sketching #btnPencil span::after { content: 'Done'; font-size: 9.5px; }
@media (max-width: 640px) { #btnPencil { top: calc(68px + var(--safe-t)); right: calc(10px + var(--safe-r)); width: 54px; height: 54px; } }

html.no-landing #landing { display: none; }
#landing { position: fixed; inset: 0; z-index: 50; background: #03050b; color: #eaf6ff; overflow: hidden; transition: opacity .6s ease, transform .6s ease; font-family: inherit; }
#landing.out { opacity: 0; transform: scale(1.06); pointer-events: none; }
#landMap, #landFx { position: absolute; inset: 0; width: 100%; height: 100%; }
#landFx { display: none; touch-action: none; }
.landShade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, rgba(3, 5, 11, .94) 0%, rgba(3, 5, 11, .72) 30%, rgba(3, 5, 11, 0) 62%), radial-gradient(120% 90% at 70% 45%, rgba(3, 5, 11, 0) 55%, rgba(3, 5, 11, .85) 100%); }
.landBrand { position: absolute; top: calc(26px + var(--safe-t)); left: calc(34px + var(--safe-l)); display: flex; align-items: center; gap: 12px; pointer-events: none; }
.landBrand svg { width: 34px; height: 34px; fill: #49c3f2; filter: drop-shadow(0 0 10px rgba(73, 195, 242, .8)); }
.landBrand b { display: block; font-size: 21px; letter-spacing: .32em; font-weight: 800; }
.landBrand span { display: block; font-size: 12px; color: #8fb6cf; letter-spacing: .04em; margin-top: 2px; }
.landCard { position: absolute; left: calc(34px + var(--safe-l)); top: 50%; transform: translateY(-46%); width: min(440px, calc(100vw - 40px)); max-height: calc(100vh - 150px); overflow: auto; padding: 24px; border-radius: 20px; background: rgba(8, 18, 32, .62); border: 1px solid rgba(73, 195, 242, .28); box-shadow: 0 20px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: landIn .8s ease both; }
@keyframes landIn { from { opacity: 0; transform: translateY(-40%); } }
.landCard h1 { margin: 0 0 14px; font-size: 25px; line-height: 1.15; font-weight: 800; }
.landSearch { display: flex; gap: 8px; }
.landSearch input { flex: 1; min-width: 0; border: 1px solid rgba(73, 195, 242, .4); background: rgba(3, 8, 16, .7); color: #fff; border-radius: 12px; padding: 13px 14px; font-size: 16px; outline: none; }
.landSearch input:focus { border-color: #49c3f2; box-shadow: 0 0 0 3px rgba(73, 195, 242, .22); }
.landSearch .landDrive { background: transparent; color: #49c3f2; border: 1px solid rgba(73, 195, 242, .6); white-space: nowrap; padding: 0 14px; }
.landSearch button { border: 0; border-radius: 12px; padding: 0 20px; font-weight: 800; font-size: 15px; background: #49c3f2; color: #03101c; cursor: pointer; }
.landChips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.landChips button { border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: #cfe6f5; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.landChips button:hover, .landList button:hover, .landBig:hover { border-color: #49c3f2; background: rgba(73, 195, 242, .12); }
.landActions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.landBig { text-align: left; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: #fff; border-radius: 14px; padding: 13px 14px; cursor: pointer; }
.landBig b { display: block; font-size: 14.5px; }
.landBig span { display: block; font-size: 12px; color: #8fb6cf; margin-top: 4px; line-height: 1.3; }
#landResume { border-color: rgba(255, 157, 60, .55); background: rgba(255, 157, 60, .1); }
#landProjects h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8fb6cf; margin: 20px 0 6px; }
.landList { max-height: 190px; overflow: auto; display: grid; gap: 6px; padding-right: 2px; }
.landList h3 { font-size: 13px; margin: 6px 0 0; color: #ffd29a; }
.landList button { text-align: left; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: #fff; border-radius: 11px; padding: 9px 12px; cursor: pointer; }
.landList b { display: block; font-size: 14px; }
.landList span { display: block; font-size: 11.5px; color: #8fb6cf; margin-top: 2px; }
.landCard footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 12px; color: #8fb6cf; }
.landCard footer label { display: flex; align-items: center; gap: 6px; }
.landLink { border: 0; background: none; color: #49c3f2; font-weight: 700; font-size: 13px; cursor: pointer; padding: 0; }
.landHint, .landCredit { position: absolute; bottom: calc(14px + var(--safe-b)); margin: 0; font-size: 11.5px; color: #6f93ab; pointer-events: none; }
.landHint { right: 24px; }
.landCredit { left: calc(34px + var(--safe-l)); }
@media (max-width: 640px) {
  .landShade { background: linear-gradient(180deg, rgba(3, 5, 11, .5) 0%, rgba(3, 5, 11, .2) 30%, rgba(3, 5, 11, .92) 62%); }
  .landBrand { left: 18px; top: calc(16px + var(--safe-t)); }
  .landCard { left: 10px; right: 10px; width: auto; top: auto; bottom: calc(34px + var(--safe-b)); transform: none; max-height: 66vh; padding: 18px; animation: none; }
  .landCard h1 { font-size: 21px; }
  .landActions { grid-template-columns: 1fr; }
  .landHint { display: none; }
  .landCredit { left: 18px; bottom: calc(10px + var(--safe-b)); }
}

/* v19: sign-in on the front door */
.landCard[hidden] { display: none; }
.landWho { margin: 0 0 12px; font-size: 12.5px; color: #8fb6cf; line-height: 1.5; }
.landWho b { color: #fff; }
.landForm { display: grid; gap: 10px; margin-top: 4px; }
.landForm label { display: grid; gap: 5px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #8fb6cf; font-weight: 700; }
.landForm input { border: 1px solid rgba(73, 195, 242, .4); background: rgba(3, 8, 16, .7); color: #fff; border-radius: 12px; padding: 12px 14px; font-size: 16px; outline: none; text-transform: none; letter-spacing: 0; font-weight: 400; }
.landForm input:focus { border-color: #49c3f2; box-shadow: 0 0 0 3px rgba(73, 195, 242, .22); }
.landPrimary { border: 0; border-radius: 12px; padding: 13px; font-weight: 800; font-size: 15.5px; background: #49c3f2; color: #03101c; cursor: pointer; }
.landKey { width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid rgba(255, 157, 60, .6); background: rgba(255, 157, 60, .1); color: #fff; border-radius: 12px; padding: 12px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.landKey svg { width: 22px; height: 22px; fill: none; stroke: #ffb866; stroke-width: 1.7; stroke-linecap: round; }
.landKey:hover { background: rgba(255, 157, 60, .2); }
.landErr { min-height: 18px; margin: 0; font-size: 13px; color: #ffb199; }
.landNote { margin: 0 0 10px; font-size: 12.5px; color: #ffd29a; line-height: 1.4; }
.landSwap { margin: 14px 0 0; font-size: 13px; color: #8fb6cf; }
.landShade { background: linear-gradient(100deg, rgba(3, 5, 11, .9) 0%, rgba(3, 5, 11, .55) 28%, rgba(3, 5, 11, 0) 58%), radial-gradient(120% 90% at 70% 45%, rgba(3, 5, 11, 0) 60%, rgba(3, 5, 11, .7) 100%); }


/* v20: live weather on the front door */
#landWx { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; }
#landFlash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(90% 70% at 65% 0%, rgba(214, 228, 255, .95), rgba(160, 190, 255, .25) 55%, rgba(160, 190, 255, 0) 80%); mix-blend-mode: screen; }
#landFlash.go { animation: landBolt 1.1s ease-out; }
@keyframes landBolt { 0% { opacity: 0; } 4% { opacity: .9; } 9% { opacity: .15; } 14% { opacity: .75; } 30% { opacity: .1; } 100% { opacity: 0; } }
#landing.wx-fog #landMap, #landing.wx-fog #landFx { filter: blur(1.2px) brightness(1.15) contrast(.82); }
#landing.wx-fog .landShade { background: linear-gradient(100deg, rgba(3, 5, 11, .88) 0%, rgba(20, 26, 36, .5) 30%, rgba(40, 48, 62, .28) 100%); }
#landing.wx-cloud #landMap, #landing.wx-rain #landMap, #landing.wx-storm #landMap { filter: brightness(.9) contrast(.96); }
.landWxChip { position: absolute; top: calc(24px + var(--safe-t)); right: calc(24px + var(--safe-r)); display: grid; grid-template-columns: auto auto; column-gap: 9px; align-items: center; padding: 9px 14px; border-radius: 14px; background: rgba(8, 18, 32, .62); border: 1px solid rgba(73, 195, 242, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; color: #eaf6ff; pointer-events: none; }
.landWxChip[hidden] { display: none; }
.landWxChip span { grid-row: 1 / 3; font-size: 24px; color: #49c3f2; }
.landWxChip b { font-weight: 800; margin-right: 5px; }
.landWxChip small { grid-column: 2; font-size: 11px; color: #8fb6cf; }
@media (max-width: 640px) { .landWxChip { top: calc(14px + var(--safe-t)); right: 12px; padding: 7px 10px; font-size: 12.5px; } .landWxChip span { font-size: 19px; } }


/* v21: the city comes up behind a curtain, password eye, password rules */
#landMap, #landFx { opacity: 0; transition: opacity 1.6s ease; }
#landing.lit #landMap, #landing.lit #landFx { opacity: 1; }
#landLoad { position: absolute; right: 9%; top: 50%; transform: translateY(-50%); display: grid; justify-items: center; gap: 14px; color: #8fb6cf; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
#landLoad[hidden] { display: none; }
#landLoad i { width: 160px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(73, 195, 242, 0), #49c3f2, rgba(73, 195, 242, 0)); background-size: 50% 100%; background-repeat: no-repeat; animation: landSweep 1.5s ease-in-out infinite; box-shadow: 0 0 12px rgba(73, 195, 242, .6); }
@keyframes landSweep { 0% { background-position: -100% 0; } 100% { background-position: 300% 0; } }
.landPw { position: relative; display: block; }
.landPw input { width: 100%; box-sizing: border-box; padding-right: 48px; }
.landEye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 9px; }
.landEye:hover { background: rgba(255, 255, 255, .08); }
.landEye svg { width: 21px; height: 21px; fill: none; stroke: #8fb6cf; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.landEye .slash { display: none; }
.landEye.on svg { stroke: #49c3f2; }
.landEye.on .slash { display: block; }
.landReq { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 12.5px; color: #8fb6cf; }
.landReq li::before { content: '○'; display: inline-block; width: 18px; }
.landReq li.ok { color: #7fe3a8; }
.landReq li.ok::before { content: '✓'; }
@media (max-width: 640px) { #landLoad { right: 50%; top: 22%; transform: translateX(50%); } }


/* v22: email confirmation and password reset cards */
.landLead { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; color: #cfe6f5; }
.landLead b { color: #fff; }
.landErr.good { color: #7fe3a8; }
.landForgot { margin: -4px 0 0; text-align: right; font-size: 12.5px; }
.landWarn { color: #ffd29a; }
#landGate > .landPrimary { width: 100%; }


/* v23: the drawn skyline (no 3D): flat layers, time of day, weather */
#landScene { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .9s ease; --look: 0; }
#landing.lit #landScene { opacity: 1; }
#landScene canvas { position: absolute; top: 0; height: 100%; }
#landSky, #landStars { left: 0; width: 100%; }
#landStars { transition: opacity 2s; animation: landTwinkle 5s ease-in-out infinite; }
@keyframes landTwinkle { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(.6); } }
#landClouds { left: 0; width: 200%; animation: landDrift 240s linear infinite; transition: opacity 2s; }
@keyframes landDrift { to { transform: translateX(-50%); } }
.landRow { left: -7%; width: 114%; transition: transform .6s ease-out; will-change: transform; }
#landFar { transform: translateX(calc(var(--look) * -1.2%)); }
#landMid { transform: translateX(calc(var(--look) * -2.6%)); }
#landNear { transform: translateX(calc(var(--look) * -4.5%)); }
#landing.wx-fog #landScene { filter: blur(1.4px) contrast(.8); }
#landing:not(.land-dark) .landShade { background: linear-gradient(100deg, rgba(3, 8, 16, .5) 0%, rgba(3, 8, 16, .22) 32%, rgba(3, 8, 16, 0) 60%); }
#landing:not(.land-dark) .landBrand span, #landing:not(.land-dark) .landCredit { color: #eaf4fb; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
#landing:not(.land-dark) .landBrand b { text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
#landing:not(.land-dark) .landCard, #landing:not(.land-dark) .landWxChip { background: rgba(8, 18, 32, .78); }
@media (prefers-reduced-motion: reduce) { #landClouds, #landStars { animation: none; } .landRow { transition: none; } }

.landHello { margin: 0 0 6px; }
.landHello[hidden] { display: none; }
.landHello b { display: block; font-size: 22px; font-weight: 800; color: #fff; line-height: 1.2; }
.landHello span { display: block; font-size: 14px; color: #ffd29a; margin-top: 4px; }
.landNote.small { font-size: 12px; margin: -4px 0 0; color: #8fb6cf; }
#landWork h1 { font-size: 19px; color: #cfe6f5; font-weight: 700; }

/* v24: the pencil sits under the search bar, top left, where the eye already goes. If the side panel is open it steps just to the right of it. */
#btnPencil { top: calc(70px + var(--safe-t)); left: calc(14px + var(--safe-l)); right: auto; transition: left .22s ease, transform .12s ease; }
@media (min-width: 641px) { body.panel-open #btnPencil { left: calc(min(400px, 100vw - 20px) + 22px + var(--safe-l)); } }
@media (max-width: 640px) { #btnPencil { top: calc(68px + var(--safe-t)); left: calc(10px + var(--safe-l)); right: auto; } }
@media (min-width: 641px) { body.sketching #btnPencil, body.sketching.panel-open #btnPencil { left: calc(290px + var(--safe-l)); } }
@media (max-width: 640px) { body.sketching #btnPencil { top: calc(130px + var(--safe-t)); left: auto; right: calc(10px + var(--safe-r)); z-index: 8; } }

/* v25: "Use my location" on the front door */
.landHere { display: flex; align-items: center; gap: 12px; width: 100%; margin: 10px 0 2px; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(73,195,242,.55); background: rgba(73,195,242,.13); color: #fff; cursor: pointer; text-align: left; font: inherit; }
.landHere:hover { background: rgba(73,195,242,.24); }
.landHere svg { width: 26px; height: 26px; flex: none; fill: none; stroke: #49c3f2; stroke-width: 2; stroke-linecap: round; }
.landHere b { display: block; font-size: 15px; } .landHere small { display: block; font-size: 12px; color: #a9c9dc; margin-top: 1px; }

/* v26: no blue GPS dot on a sketch */
body.sketching .maplibregl-user-location-dot, body.sketching .maplibregl-user-location-accuracy-circle, body.sketching .maplibregl-user-location-heading { display: none !important; }

/* v27: turn-by-turn */
.navStart { width: 100%; margin: 12px 0 2px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; padding: 12px; }
.navStart svg { width: 18px; height: 18px; fill: currentColor; }
#navBar { position: fixed; z-index: 9; top: calc(10px + var(--safe-t)); left: 50%; transform: translateX(-50%); width: min(520px, calc(100vw - 20px)); background: #0f4f49; color: #fff; border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.35); overflow: hidden; font-family: inherit; }
.navTurn { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.navTurn b { font-size: 44px; line-height: 1; width: 52px; text-align: center; flex: none; }
.navTurn strong { display: block; font-size: 22px; font-weight: 800; }
.navTurn span { display: block; font-size: 15px; opacity: .92; margin-top: 2px; }
.navFoot { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(0,0,0,.25); font-size: 14px; }
.navFoot span { flex: 1; font-weight: 600; }
.navFoot button { border: 0; border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; background: rgba(255,255,255,.16); color: #fff; }
.navFoot button[hidden] { display: none; }
#navEnd { background: #d84315; }
.navMe { width: 34px; height: 34px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); display: grid; place-items: center; }
.navMe svg { width: 18px; height: 18px; fill: #fff; }
body.navving #topbar, body.navving #btnPencil, body.navving #layerSwitch { display: none; }

/* v31: the tool wheel — small, flat and light. The toolbox fans out around it; settings slide out of its side. */
#skDial { --D: 200px; --ink: #1d1d1f; --line: #dfe2e5; --mid: #d5d7da; position: fixed; z-index: 6; width: var(--D); height: var(--D); touch-action: none; user-select: none; -webkit-user-select: none; pointer-events: none; font-family: inherit; color: var(--ink); transition: opacity .18s ease; }
#skDial.hidden { display: none; }
#skDial.away { transition: transform .28s cubic-bezier(.5,0,.9,.4), opacity .28s ease; opacity: 0; pointer-events: none; }
#skDial.away.to-l { transform: translateX(-120%); } #skDial.away.to-r { transform: translateX(120%); } #skDial.away.to-t { transform: translateY(-120%); } #skDial.away.to-b { transform: translateY(120%); }
#skDialTab { position: fixed; z-index: 7; width: 30px; height: 44px; border: 0; padding: 0; background: #fff; color: #1d1d1f; box-shadow: 0 2px 10px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; cursor: pointer; }
#skDialTab svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
#skDialTab.hidden, body:not(.sk-dial) #skDialTab { display: none; }
#skDialTab.at-l { left: 0; border-radius: 0 22px 22px 0; } #skDialTab.at-r { right: 0; border-radius: 22px 0 0 22px; }
#skDialTab.at-t, #skDialTab.at-b { left: 50% !important; top: auto; transform: translateX(-50%); width: 44px; height: 30px; }
#skDialTab.at-t { top: 60px !important; border-radius: 0 0 22px 22px; } #skDialTab.at-b { top: auto !important; bottom: 0; border-radius: 22px 22px 0 0; }
#skDial.ghost { opacity: .14; }
#skDial.ghost * { pointer-events: none !important; }
.dWheel { position: absolute; inset: -6%; width: 112%; height: 112%; overflow: visible; pointer-events: auto; filter: drop-shadow(0 5px 14px rgba(0,0,0,.16)); transform: scale(.5); opacity: 0; transition: transform .32s cubic-bezier(.3,1.3,.5,1), opacity .2s ease; cursor: grab; }
#skDial.open .dWheel { transform: none; opacity: 1; }
#skDial.grab .dWheel, #skDial.grab .dFan { cursor: grabbing; }
.dRim { fill: #fff; stroke: var(--line); stroke-width: 1; }
.dWedge { fill: #fff; stroke: var(--line); stroke-width: 1; transition: fill .12s ease; cursor: pointer; }
.dSlot:hover .dWedge { fill: #f1f3f4; }
.dSlot.on .dWedge { fill: var(--ink); stroke: var(--ink); }
.dSlot.pick .dWedge { fill: #bfe9e2; animation: dPulse .7s ease-in-out infinite alternate; }
@keyframes dPulse { to { fill: #eef9f7; } }
.dChip { fill: #fff; }
.dPlus { stroke: #a3a9af; stroke-width: 1.800; stroke-linecap: round; fill: none; }
.dToolIc { fill: none; stroke: var(--ink); stroke-width: 1.900; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.dSlot.on .dToolIc { stroke: #fff; }
.dBed2 { fill: var(--mid); }
.dSetOn { fill: #bfc2c6; }
.dSetSeg { cursor: pointer; }
.dSetSeg text { font: 600 9.500px/1 Helvetica, Arial, sans-serif; fill: var(--ink); }
.dSetSeg.sel text { fill: #0b6b62; font-weight: 800; }
.dSetIc { stroke: var(--ink); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dHub { cursor: pointer; }
.dHubFace { fill: #fff; transition: r .15s ease; }
.dHub:hover .dHubFace { fill: #f4f6f7; }
.dHub.open .dHubFace { stroke: var(--ink); stroke-width: 2; }
/* undo and redo beside it, plain buttons under it, the name tag over it */
.dSide { position: absolute; left: -38px; top: calc(50% - 36px); display: flex; flex-direction: column; gap: 6px; pointer-events: auto; opacity: 0; transition: opacity .25s ease .1s; }
#skDial.flip .dSide { left: auto; right: -38px; }
#skDial.open .dSide { opacity: 1; }
.dSide button { width: 32px; height: 32px; border: 0; background: none; padding: 0; cursor: pointer; }
.dSide svg { width: 26px; height: 26px; fill: var(--ink); filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 2px #fff); }
.dSide button:disabled { opacity: .25; cursor: default; }
.dUnder { position: absolute; left: 4px; top: calc(100% + 14px); display: flex; flex-direction: column; gap: 2px; align-items: flex-start; pointer-events: auto; opacity: 0; transition: opacity .25s ease .1s; }
#skDial.open .dUnder { opacity: 1; }
#skDial.lib .dUnder, #skDial.lib .dSide { opacity: 0; pointer-events: none; }
.dUnder button { display: flex; align-items: center; gap: 8px; border: 0; background: rgba(255,255,255,.82); border-radius: 6px; padding: 5px 9px 5px 6px; font: inherit; font-size: 12.500px; font-weight: 600; color: var(--ink); cursor: pointer; }
.dUnder button:hover { background: #fff; }
.dUnder svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
.dLabel { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: #fff; font-size: 11.500px; font-weight: 600; padding: 4px 9px; border-radius: 4px; opacity: 0; transition: opacity .12s ease; pointer-events: none; z-index: 5; }
.dLabel.show { opacity: 1; }
/* a setting: a flat tab out of the side of the wheel */
.dSet { position: absolute; left: 50%; top: calc(50% - 52px); width: calc(var(--D) / 2 + 306px); box-sizing: border-box; padding: 10px 14px 9px calc(var(--D) / 2 + 22px); min-height: 104px; background: var(--mid); border-radius: 8px; pointer-events: auto; touch-action: auto; animation: dSetIn .22s cubic-bezier(.3,1.2,.5,1); transform-origin: left center; box-shadow: 0 5px 14px rgba(0,0,0,.14); }
.dSet.left { left: auto; right: 50%; padding: 10px calc(var(--D) / 2 + 22px) 9px 14px; transform-origin: right center; }
.dSet.hidden { display: none; }
@keyframes dSetIn { from { transform: scaleX(.3); opacity: 0; } }
.dChips { display: flex; flex-wrap: wrap; gap: 2px 3px; }
.dChips button { border: 0; background: none; border-radius: 4px; padding: 5px 8px; font: inherit; font-size: 12.500px; color: var(--ink); cursor: pointer; }
.dChips button:hover { background: rgba(255,255,255,.5); } .dChips button.on { background: #fff; font-weight: 700; }
.dTrack { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.dTrack button { border: 0; background: none; font-size: 17px; line-height: 1; width: 20px; height: 22px; padding: 0; cursor: pointer; color: var(--ink); }
.dRail { position: relative; flex: 1; height: 22px; cursor: pointer; touch-action: none; }
.dRail::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 1.500px; background: var(--ink); }
.dRail i { position: absolute; top: 6px; width: 1.500px; height: 9px; background: var(--ink); opacity: .55; }
.dRail b { position: absolute; top: 5px; width: 11px; height: 11px; margin-left: -6px; border-radius: 50%; background: #fff; border: 1.500px solid var(--ink); box-sizing: border-box; }
.dRail b.none { opacity: .35; }
.dSetFoot { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 10.500px; }
.dSetFoot span { font-weight: 700; letter-spacing: .8px; } .dSetFoot em { flex: 1; font-style: normal; color: #5d6268; }
.dClear { border: 0; background: none; font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; color: var(--ink); padding: 0; }
/* the toolbox fan */
.dFan { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; transform: scale(.35) rotate(-50deg); opacity: 0; visibility: hidden; transition: transform .38s cubic-bezier(.3,1.25,.5,1), opacity .2s ease, visibility 0s .3s; cursor: grab; }
#skDial.lib .dFan { transform: none; opacity: 1; visibility: visible; transition: transform .38s cubic-bezier(.3,1.25,.5,1), opacity .2s ease; }
.fDisc { position: absolute; left: calc(var(--D) * -0.850); top: calc(var(--D) * -0.850); width: calc(var(--D) * 1.700); height: calc(var(--D) * 1.700); overflow: visible; filter: drop-shadow(0 6px 18px rgba(0,0,0,.14)); }
#skDial.lib .fDisc, #skDial.lib .fTile { pointer-events: auto; }
.fPlate { fill: rgba(255,255,255,.96); stroke: var(--line); stroke-width: .700; }
.fSeg { fill: #eceef0; cursor: pointer; } .fSeg.alt { fill: #dde0e3; } .fSeg.on { fill: var(--ink); }
.fName { font: 700 7.600px/1 Helvetica, Arial, sans-serif; letter-spacing: .9px; fill: #4c5157; pointer-events: none; } .fName.on { fill: #fff; }
.fTiles { position: absolute; left: 0; top: 0; }
.fTile { position: absolute; left: 0; top: 0; width: calc(var(--D) * 0.196); height: calc(var(--D) * 0.196); margin: calc(var(--D) * -0.098) 0 0 calc(var(--D) * -0.098); padding: 0; border: 0; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 4px rgba(0,0,0,.1); cursor: pointer; will-change: transform; }
.fTile i { display: grid; place-items: center; width: 100%; height: 100%; }
.fTile svg { max-width: 86%; max-height: 74%; display: block; }
.fTool svg { width: 52%; height: 52%; max-height: none; fill: none; stroke: var(--ink); stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
.fTile:hover { box-shadow: 0 0 0 2px var(--ink), 0 2px 8px rgba(0,0,0,.2); z-index: 2; }
.fTile.on { box-shadow: 0 0 0 2.500px var(--ink); background: #f1f3f4; }
.fTile.off { opacity: .35; }
body.sk-dial #skDock { display: none; }
@media (min-width: 641px) { body.sk-dial.sketching #btnPencil, body.sk-dial.sketching.panel-open #btnPencil { left: auto; right: calc(86px + var(--safe-r)); top: calc(12px + var(--safe-t)); } }
@media (max-width: 640px) { body.sk-dial.sketching #btnPencil { top: calc(68px + var(--safe-t)); left: auto; right: calc(10px + var(--safe-r)); } .dSet { width: calc(var(--D) / 2 + 190px); } }
@media (prefers-reduced-motion: reduce) { .dWheel, .dFan { transition: none; } .dSlot.pick .dWedge, .dSet { animation: none; } }

/* v30: first-time tips — a small card with a looping animation of the tool in use */
#skCoach { position: fixed; z-index: 8; left: calc(292px + var(--safe-l)); bottom: calc(64px + var(--safe-b, 0px)); width: 300px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(14,94,88,.18), 0 14px 36px rgba(0,0,0,.28); opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .22s ease, transform .3s cubic-bezier(.34,1.4,.5,1); }
#skCoach.in { opacity: 1; transform: none; }
#skCoach.hidden { display: none; }
body.sk-dial #skCoach { left: calc(14px + var(--safe-l)); }
body:not(.sketching) #skCoach { display: none; }
.cStage { background: #f4f6f7; border-bottom: 1px solid #e3e7ea; } .cStage svg { display: block; width: 100%; height: 138px; }
.cBody { padding: 10px 14px 12px; } .cBody b { font-size: 14.5px; color: #0e5e58; } .cBody p { margin: 4px 0 10px; font-size: 13px; line-height: 1.4; color: #2b3437; }
.cFoot { display: flex; align-items: center; gap: 10px; } .cFoot label { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #5c686d; cursor: pointer; }
.cFoot input { accent-color: #0e5e58; width: 15px; height: 15px; margin: 0; }
.cFoot button { border: 0; border-radius: 10px; background: #0e5e58; color: #fff; font: inherit; font-size: 13px; font-weight: 700; padding: 7px 14px; cursor: pointer; }
@media (max-width: 640px) { #skCoach, body.sk-dial #skCoach { left: 10px; right: 10px; width: auto; bottom: auto; top: calc(128px + var(--safe-t)); } .cStage svg { height: 110px; } }
#skCoach { pointer-events: none; } #skCoach .cFoot { pointer-events: auto; }
.fHit { fill: transparent; }

/* v32: sketch mode goes flat and light to match the tool wheel — white surfaces, thin grey lines, black for whatever is on */
body.sketching { --bg: #ffffff; --bg2: #f1f3f4; --ink: #1d1d1f; --ink2: #62686e; --line: #dfe2e5; --accent: #1d1d1f; --accent-ink: #ffffff; --shadow: 0 4px 14px rgba(0, 0, 0, .13); --radius: 10px; }
body.sketching #skDock { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
body.sketching #topbar, body.sketching #panel, body.sketching #skBar, body.sketching #skAsk, body.sketching #skSect, body.sketching #layerSwitch, body.sketching #skUR { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
body.sketching #skFrame span { color: #0e5e58; }
.skHead { padding: 11px 14px 8px; } .skHead b { font-size: 14.5px; font-weight: 700; letter-spacing: -.1px; }
body.sketching .skTools { gap: 1px; padding: 6px 7px; }
body.sketching .skTools button { border-radius: 6px; padding: 6px 0 5px; }
body.sketching .skTools button svg { stroke-width: 1.6; }
body.sketching .skTools button span { font-weight: 500; font-size: 9.5px; color: var(--ink2); }
body.sketching .skTools button.on span { color: #fff; }
body.sketching #skRole, body.sketching #skFind { border-radius: 6px; background: #fff; font-weight: 500; }
body.sketching #skTabs { border-bottom: 1px solid var(--line); gap: 0 2px; padding: 0; }
body.sketching .skTab { border: 0; background: none; border-radius: 0; padding: 7px 8px 6px; font-size: 12px; font-weight: 600; color: var(--ink2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
body.sketching .skTab:hover { color: var(--ink); }
body.sketching .skTab.on { background: none; color: var(--ink); border-bottom-color: var(--ink); }
body.sketching .skTile { border-radius: 6px; border-color: var(--line); color: var(--ink); box-shadow: none; }
body.sketching .skTile span { font-weight: 500; color: #3a3f44; }
body.sketching .skTile:hover { border-color: #b9bec4; box-shadow: 0 1px 5px rgba(0, 0, 0, .1); }
body.sketching .skTile.on { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
/* buttons, fields, the details panel */
body.sketching .btn { border-radius: 6px; font-weight: 600; }
body.sketching .field span { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; color: var(--ink2); }
body.sketching .field input, body.sketching .field textarea, body.sketching .field select, body.sketching #skAsk input, body.sketching #skSectFoot input { border-radius: 6px; background: #fff; }
body.sketching .field input:focus, body.sketching .field textarea:focus, body.sketching .field select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 2px rgba(29, 29, 31, .1); }
/* the little bars that float over the sketch */
body.sketching #skBar { border-radius: 8px; padding: 3px; } body.sketching #skBar button { border-radius: 5px; font-weight: 600; }
body.sketching #skUR { border-radius: 8px; } body.sketching #skUR button { border-radius: 5px; font-weight: 600; }
body.sketching #skAsk { border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, .2); padding: 14px 16px; }
body.sketching #skAsk b { font-size: 15px; font-weight: 700; }
body.sketching #skHint:not(.hidden) { background: #fff; color: var(--ink); border-radius: 8px; box-shadow: 0 0 0 1px var(--line), var(--shadow); font-weight: 500; }
body.sketching #skHint .btn:not(.primary), body.sketching #skHint #skFreeSet { color: var(--ink); border-color: var(--line); background: #fff; }
body.sketching #skHint #skFreeAs, body.sketching #skHint #skMultiKind { background: #fff; color: var(--ink); border-color: var(--line); border-radius: 6px; }
body.sketching #skTip { background: var(--ink); border-radius: 6px; }
body.sketching #skCoach { border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, .18); }
body.sketching .cBody b { color: var(--ink); } body.sketching .cFoot button { background: var(--ink); border-radius: 6px; } body.sketching .cFoot input { accent-color: var(--ink); }
body.sketching #layerSwitch button.on, body.sketching #layerSwitch .on { background: var(--ink); }
body.sketching #skAsk { border: 0; outline: 0; }

/* v33: duct bank editor, its bubble, and the settings cog */
#skBank { position: fixed; z-index: 13; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(380px, calc(100vw - 20px)); background: #fff; color: #1d1d1f; border-radius: 10px; box-shadow: 0 0 0 1px #dfe2e5, 0 14px 40px rgba(0,0,0,.25); padding: 12px 14px 12px; }
#skBank.hidden, #skBankBub.hidden { display: none; }
.bkHead { display: flex; align-items: baseline; gap: 8px; } .bkHead b { font-size: 15px; } .bkHead span { flex: 1; font-size: 11.500px; color: #62686e; } .bkHead button { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; }
.bkRow { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.bkRow label { flex: 1; display: grid; gap: 3px; font-size: 11.500px; font-weight: 600; color: #62686e; min-width: 0; }
.bkRow label:first-child { flex: 1.800; }
.bkRow input, .bkRow select { width: 100%; box-sizing: border-box; border: 1px solid #dfe2e5; border-radius: 6px; padding: 7px 8px; font: inherit; font-size: 14px; background: #fff; color: #1d1d1f; }
.bkGrid { align-items: center; font-size: 12.500px; font-weight: 600; } .bkGrid span { display: flex; align-items: center; gap: 4px; } .bkGrid i { font-style: normal; min-width: 14px; text-align: center; } .bkGrid em { flex: 1; text-align: right; font-style: normal; font-weight: 400; font-size: 11px; color: #62686e; }
.bkGrid button { width: 24px; height: 24px; border: 1px solid #dfe2e5; background: #fff; border-radius: 5px; cursor: pointer; font-size: 15px; line-height: 1; padding: 0; }
.bkView { display: block; width: 100%; margin-top: 10px; background: #fafbfb; border: 1px solid #eceef0; border-radius: 6px; font-family: Helvetica, Arial, sans-serif; } .bkCell { cursor: pointer; } .bkCell:hover circle { stroke: #1d1d1f; }
.bkFoot { display: flex; align-items: center; gap: 8px; margin-top: 10px; } .bkFoot span { flex: 1; font-size: 12.500px; font-weight: 700; } .bkFoot .btn { padding: 8px 14px; border-radius: 6px; } .bkFoot .btn.primary { background: #1d1d1f; border-color: #1d1d1f; color: #fff; }
#skBankBub { position: fixed; z-index: 9; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; background: #1d1d1f; color: #fff; font: inherit; font-size: 13px; font-weight: 700; padding: 8px 14px 8px 10px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.3); animation: bkPop .3s cubic-bezier(.3,1.5,.5,1); }
#skBankBub svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.600; }
@keyframes bkPop { from { transform: translateX(-50%) scale(.5); opacity: 0; } }
body:not(.sketching) #skBank, body:not(.sketching) #skBankBub { display: none; }
#btnSettings svg { stroke-width: 1.700; }
#mnSet .field select { font-size: 14px; }
body.navving #btnSettings { display: none; }

/* v34: right-click menu, Done, the pencil hands over to the sketch tools */
body.sketching #btnPencil { opacity: 0; pointer-events: none; transform: scale(.4); transition: opacity .25s ease, transform .3s ease; }
#skDoneBtn { border: 0; border-radius: 6px; background: #f2672e; color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 12px; cursor: pointer; margin-left: 4px; }
#skDoneBtn:hover { background: #d9541f; }
.skHead { align-items: center; }
.dUnder .dDone { background: #f2672e; color: #fff; } .dUnder .dDone:hover { background: #d9541f; } .dUnder .dDone svg { stroke: #fff; stroke-width: 2.4; }
body.sketching .skTools button span { white-space: normal; line-height: 1.05; text-align: center; }
#skDone { position: fixed; inset: 0; z-index: 14; background: rgba(20,22,24,.32); display: grid; place-items: center; }
#skDone.hidden, #skCtx.hidden { display: none; }
body:not(.sketching) #skDone, body:not(.sketching) #skCtx { display: none; }
.dnCard { width: min(400px, calc(100vw - 24px)); background: #fff; color: #1d1d1f; border-radius: 12px; padding: 18px 18px 16px; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.dnCard b { font-size: 17px; } .dnCard p { margin: 6px 0 12px; font-size: 13px; line-height: 1.4; color: #62686e; }
.dnCard label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: #62686e; }
.dnCard input { border: 1px solid #dfe2e5; border-radius: 6px; padding: 10px 11px; font: inherit; font-size: 15px; color: #1d1d1f; } .dnCard input:focus { outline: none; border-color: #1d1d1f; box-shadow: 0 0 0 2px rgba(29,29,31,.1); }
.dnRow { display: flex; gap: 8px; margin-top: 10px; } .dnRow .btn { flex: 1; border-radius: 6px; padding: 10px 8px; font-size: 13px; } .dnRow .btn.primary { background: #1d1d1f; border-color: #1d1d1f; color: #fff; }
#skCtx { position: fixed; z-index: 15; min-width: 210px; max-width: 290px; background: #fff; color: #1d1d1f; border-radius: 10px; padding: 5px; box-shadow: 0 0 0 1px #dfe2e5, 0 12px 34px rgba(0,0,0,.22); animation: cxIn .12s ease; font-family: inherit; }
@keyframes cxIn { from { opacity: 0; transform: scale(.96); } }
.cxTitle { padding: 6px 10px 5px; font-size: 11.5px; font-weight: 700; color: #62686e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#skCtx > button { display: block; width: 100%; border: 0; background: none; border-radius: 6px; padding: 8px 10px; font: inherit; font-size: 13.5px; text-align: left; color: #1d1d1f; cursor: pointer; }
#skCtx > button:hover { background: #f1f3f4; } #skCtx > button.danger { color: #d43d1a; }
#skCtx hr { border: 0; border-top: 1px solid #eceef0; margin: 4px 2px; }
.cxChips { display: flex; gap: 3px; padding: 3px 5px; } .cxChips button { flex: 1; border: 0; background: #f1f3f4; border-radius: 5px; padding: 6px 2px; font: inherit; font-size: 11px; font-weight: 600; color: #1d1d1f; cursor: pointer; } .cxChips button.on { background: #1d1d1f; color: #fff; }
.cxTools { display: flex; gap: 2px; padding: 2px 4px; } .cxTools button { flex: 1; border: 0; background: none; border-radius: 6px; padding: 6px 0; cursor: pointer; display: grid; place-items: center; } .cxTools button:hover { background: #f1f3f4; }
.cxTools svg { width: 19px; height: 19px; fill: none; stroke: #1d1d1f; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* v35: text box looks */
.skLooks { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; } .skLooks .btn { padding: 6px 11px; font-size: 12.5px; border-width: 1.5px; }
.skGrid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .skGrid3 input[type=color] { width: 100%; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }


/* ---- v37: report pages (notes + photos) ---- */
#panel textarea#rpNarr, #panel textarea#rpQty { width: 100%; font: inherit; padding: 9px 10px; border: 1px solid #d5d9de; border-radius: 10px; resize: vertical; background: #fff; color: inherit; }
.rpRow { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid #e6e9ed; }
.rpRow img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: #eef1f3; }
.rpTop { display: grid; grid-template-columns: 1fr 1fr 34px 34px 34px; gap: 5px; margin-bottom: 5px; }
.rpTop input, .rpBody textarea { font: inherit; font-size: 13.5px; padding: 6px 8px; border: 1px solid #d5d9de; border-radius: 8px; width: 100%; min-width: 0; background: #fff; color: inherit; }
.rpBody textarea { resize: vertical; }
.rpTop button { height: 32px; border: 1px solid #d5d9de; border-radius: 8px; background: #f4f6f7; font-size: 15px; cursor: pointer; color: inherit; }
.rpTop button:disabled { opacity: .35; cursor: default; }
.rpTop button[data-a="rm"] { color: #b3261e; }


/* ---- v38: color palette in the properties box ---- */
.skSwatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin-bottom: 7px; }
.skSw { height: 26px; border-radius: 7px; border: 1px solid rgba(0, 0, 0, .28); cursor: pointer; padding: 0; }
.skSw.on { outline: 2.5px solid #0e5e58; outline-offset: 1.5px; }


/* ---- v38: the guide character ---- */
#skGuide { position: fixed; z-index: 9; left: 50%; top: 50%; width: 0; height: 0; transition: left .75s cubic-bezier(.45,.05,.3,1), top .75s cubic-bezier(.45,.05,.3,1); pointer-events: none; }
#skGuide.hidden, body:not(.sketching) #skGuide { display: none; }
#skGuide .gGuy { position: absolute; left: 6px; top: 8px; width: 64px; height: 72px; transform-origin: 50% 100%; filter: drop-shadow(0 3px 5px rgba(0,0,0,.25)); }
#skGuide.hop .gGuy { animation: gHop .75s ease-out 1, gBob 2.2s ease-in-out .75s infinite; }
#skGuide .gArm { transform-origin: 22px 44px; animation: gPoint 1.1s ease-in-out infinite; }
#skGuide .gEye { animation: gBlink 3.6s infinite; transform-box: fill-box; transform-origin: center; }
#skGuide .gSay { position: absolute; left: 76px; top: 14px; width: 232px; background: #fff; border-radius: 14px; padding: 10px 12px 9px; box-shadow: 0 0 0 1px rgba(14,94,88,.2), 0 10px 28px rgba(0,0,0,.26); pointer-events: auto; font-size: 13.5px; line-height: 1.4; color: #1d1d1f; }
#skGuide .gSay::before { content: ""; position: absolute; left: -7px; top: 22px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); box-shadow: -1px 1px 0 rgba(14,94,88,.2); }
#skGuide .gSay p { margin: 0 0 8px; }
#skGuide .gFoot { display: flex; align-items: center; gap: 6px; }
#skGuide #skGuideDots { flex: 1; display: flex; gap: 4px; } #skGuide #skGuideDots i { width: 6px; height: 6px; border-radius: 50%; background: #cfd6d9; } #skGuide #skGuideDots i.on { background: #0e5e58; }
#skGuide .gFoot button { border: 0; border-radius: 9px; padding: 6px 11px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; background: #eef1f3; color: #1d1d1f; }
#skGuide .gFoot .gNext { background: #0e5e58; color: #fff; }
#skGuide .gSay label { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11.5px; color: #5c686d; cursor: pointer; }
#skGuide.flip .gGuy { left: -70px; transform: scaleX(-1); } #skGuide.flip.hop .gGuy { animation: gHopF .75s ease-out 1; }
#skGuide.flip .gSay { left: auto; right: 80px; } #skGuide.flip .gSay::before { left: auto; right: -7px; box-shadow: 1px -1px 0 rgba(14,94,88,.2); }
#skGuide.low .gGuy { top: -86px; } #skGuide.low .gSay { top: -150px; } #skGuide.low .gArm { transform: rotate(-62deg); animation: none; }
#skGuide .gDemo { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #e85d2f; box-shadow: 0 0 0 3px rgba(232,93,47,.22); }
#skGuide[data-demo="tap"] .gDemo { animation: gTap 1.1s ease-out infinite; }
#skGuide[data-demo="drag"] .gDemo { animation: gDrag 2.2s ease-in-out infinite; }
#skGuide[data-demo="spin"] .gDemo { animation: gSpin 2.4s ease-in-out infinite; transform-origin: 13px 60px; }
@keyframes gHop { 0% { transform: translateY(-26px) scale(.9, 1.1); } 55% { transform: translateY(0) scale(1.1, .88); } 100% { transform: none; } }
@keyframes gHopF { 0% { transform: scaleX(-1) translateY(-26px); } 100% { transform: scaleX(-1); } }
@keyframes gBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes gPoint { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-9deg) translate(-2px, -2px); } }
@keyframes gBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes gTap { 0% { transform: scale(1.5); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 55% { transform: scale(.78); } 100% { transform: scale(1); opacity: 1; } }
@keyframes gDrag { 0%, 15% { transform: translate(0, 0) scale(1); } 22% { transform: translate(0, 0) scale(.8); } 60% { transform: translate(34px, -22px) scale(.8); } 70% { transform: translate(34px, -22px) scale(1); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes gSpin { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(38deg); } }
@media (prefers-reduced-motion: reduce) { #skGuide, #skGuide * { animation: none !important; transition: none !important; } }
#skHint #skShowMe { display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 9px; padding: 4px 9px 4px 6px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; flex: none; }
#skHint #skShowMe.hidden { display: none; }


/* ---- v39: shapes ---- */
.skSw.skNoFill { background: linear-gradient(to top right, #fff calc(50% - 1.5px), #d32f2f calc(50% - 1.5px), #d32f2f calc(50% + 1.5px), #fff calc(50% + 1.5px)); }

/* ---- v41 Object Creator: photo -> line art, full screen, big thumb-size controls ---- */
#crt { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); padding: var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l); }
#crt.hidden { display: none; }
body.crt-open { overflow: hidden; }
.crtTop { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.crtTop .crtSay { flex: 1; font-size: 18px; line-height: 1.25; }
.crtMascot { width: 34px; height: 38px; flex: none; transform-origin: 50% 100%; }
.crtMascot svg { width: 100%; height: 100%; display: block; }
#crt.busy .crtMascot { animation: crtHop .55s ease-in-out infinite; }
@keyframes crtHop { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-7px) rotate(-6deg); } 60% { transform: translateY(0) rotate(5deg); } }
.crtX { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 20px; cursor: pointer; }
.crtStage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 10px; overflow: hidden; background: #f1efe9; }
.crtSvg { width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.crtSvg .crtHandle { cursor: grab; }
.crtSvg .crtBox { cursor: move; }
.crtSvg .crtFeat { transform-box: fill-box; transform-origin: center; }
#crt:not(.busy) .crtSvg .crtFeat { cursor: pointer; }
#crt:not(.busy) .crtSvg .crtFeat:hover { opacity: .65; }
.crtScan { position: absolute; left: 0; right: 0; top: 0; height: 22%; pointer-events: none; background: linear-gradient(to bottom, rgba(255, 214, 0, 0), rgba(255, 214, 0, .55) 85%, #ffd600 100%); mix-blend-mode: multiply; }
.crtScan.hidden { display: none; }
.crtScan.go { animation: crtScan 1.25s cubic-bezier(.5,0,.5,1) 1 forwards; }
@keyframes crtScan { from { transform: translateY(-100%); } to { transform: translateY(460%); } }
.crtFx { position: absolute; left: 0; right: 0; top: 30%; height: 0; pointer-events: none; }
.crtFx i { position: absolute; width: 9px; height: 14px; border-radius: 2px; }
.crtPanel { padding: 12px 14px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; max-height: 52vh; overflow: auto; }
.crtTip { margin: 0; font-size: 15px; line-height: 1.4; opacity: .85; }
.crtBig { display: flex; gap: 10px; flex-wrap: wrap; }
.crtBig button, .crtSeg button { flex: 1 1 0; min-height: 56px; min-width: 110px; border-radius: var(--radius); border: 2px solid var(--line); background: transparent; color: var(--ink); font-size: 17px; font-weight: 700; cursor: pointer; padding: 8px 12px; }
.crtBig button:disabled { opacity: .4; cursor: default; }
.crtBig .crtGo { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.crtSeg { display: flex; gap: 10px; }
.crtSeg button { display: flex; align-items: center; justify-content: center; gap: 8px; }
.crtSeg button svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.crtSeg button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.crtNum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 17px; font-weight: 700; }
.crtNum > span:first-child { min-width: 64px; }
.crtNum input { width: 7.5ch; font-size: 30px; font-weight: 800; padding: 6px 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); }
.crtNum input.crtNeed { border-color: var(--hot); animation: crtShake .35s; }
@keyframes crtShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.crtUnit { display: inline-flex; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.crtUnit button { min-width: 52px; min-height: 48px; border: 0; background: transparent; color: var(--ink); font-size: 17px; font-weight: 700; cursor: pointer; }
.crtUnit button.on { background: var(--accent); color: var(--accent-ink); }
.crtAuto { font-size: 14px; font-weight: 500; opacity: .7; }
.crtProgress { display: flex; flex-direction: column; gap: 8px; }
.crtCount { font-size: 18px; }
.crtBar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.crtBar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s ease; }
.crtRow { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.crtRow input { flex: 1; height: 32px; accent-color: var(--accent); }
.crtChecks { display: flex; gap: 18px; flex-wrap: wrap; font-size: 16px; }
.crtChecks input { width: 22px; height: 22px; vertical-align: -5px; accent-color: var(--accent); }
.crtName { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.crtName input { flex: 1; font-size: 18px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); }
@media (min-width: 900px) { #crt { flex-direction: row; flex-wrap: wrap; } .crtTop { flex: 1 0 100%; } .crtStage { flex: 1 1 60%; height: calc(100% - 66px); } .crtPanel { flex: 0 0 380px; max-height: none; border-top: 0; border-left: 1px solid var(--line); } }
/* the toolbox button that opens it */
.skCreate { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin: 0 0 8px; border-radius: 12px; border: 2px dashed var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.skCreate svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; }

/* ---- v42 Object Creator: anything, from any side, in 3D ---- */
.crtTg { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 18px; cursor: pointer; opacity: .55; }
.crtTg.on { opacity: 1; border-color: var(--accent); }
.crtKinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.crtKind { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 10px 12px; min-height: 72px; border-radius: var(--radius); border: 2px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.crtKind svg { grid-row: 1 / 3; width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.crtKind b { font-size: 15px; line-height: 1.2; }
.crtKind span { font-size: 12.5px; opacity: .7; line-height: 1.25; }
.crtKind:active, .crtKind:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.crtH { margin: 4px 0 0; font-size: 15px; }
.crtShelf { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.crtMine { position: relative; flex: none; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: #1b1b1b; font-size: 12px; cursor: pointer; }
.crtMine span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crtMine i { position: absolute; top: 4px; right: 4px; font-style: normal; font-size: 10px; font-weight: 800; background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 1px 5px; }
.crtSvg .crtBigIcon { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.crtSvg.hidden { display: none; }
.crt3d { position: absolute; inset: 10px; border-radius: 12px; overflow: hidden; background: linear-gradient(#f7fbff, #e3eef9); }
.crt3d.hidden { display: none; }
.crt3d .c3dCanvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.crtTabs { display: flex; gap: 6px; }
.crtTabs button { flex: 1; min-height: 44px; border-radius: 12px; border: 2px solid var(--line); background: transparent; color: var(--ink); font-size: 16px; font-weight: 700; cursor: pointer; }
.crtTabs button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.crtChips { display: flex; gap: 6px; flex-wrap: wrap; }
.crtChips button { min-height: 36px; padding: 4px 12px; border-radius: 18px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font-size: 14px; cursor: pointer; }
.crtChips button.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.crtMascot.cheer { animation: crtCheer 1.2s cubic-bezier(.3,1.6,.5,1) 1; }
@keyframes crtCheer { 0% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-16px) rotate(-18deg) scale(1.15); } 50% { transform: translateY(-20px) rotate(200deg) scale(1.15); } 75% { transform: translateY(-6px) rotate(360deg); } 100% { transform: translateY(0) rotate(360deg); } }
.crtMascot.oops { animation: crtOops .6s ease-in-out 2; }
@keyframes crtOops { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@media (max-width: 380px) { .crtKinds { grid-template-columns: 1fr; } }
.crtBrush button { font-size: 15px; min-width: 0; }
.crtSvg .crtFloat { animation: crtFloat 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes crtFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.crtSvg text.crtHello { fill: var(--ink); }

/* v43: scan it live + tap to pick */
.crtCam { position: absolute; inset: 0; background: #000; touch-action: none; z-index: 2; }
.crtCam.hidden { display: none; }
.crtCam video, .crtCam canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.crtCam video { object-fit: cover; }
.crtCam canvas { cursor: crosshair; }
.crtTray { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.crtTray img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; border: 3px solid #ffd600; box-shadow: 0 3px 10px rgba(0,0,0,.45); animation: crtFly .5s cubic-bezier(.2,1.5,.4,1); }
@keyframes crtFly { from { transform: translate(0, -180px) scale(2.6) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.crtTapRing { transform-box: fill-box; transform-origin: center; animation: crtRing 1.3s ease-out infinite; }
@keyframes crtRing { from { transform: scale(.55); opacity: .95; } to { transform: scale(1.7); opacity: 0; } }
.crtBig .crtWide { flex-basis: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.crtBig .crtWide small { font-size: 13px; font-weight: 600; opacity: .85; }
.crtChk { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; margin: 4px 0 10px; }
.crtChk input { width: 22px; height: 22px; accent-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .crtTapRing, .crtTray img { animation: none; } }
.crtFlash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.crtFlash.go { animation: crtFlash .28s ease-out 1 forwards; }
@keyframes crtFlash { from { opacity: .7; } to { opacity: 0; } }

/* v44: the helper (mascot, ask, dev notes) and project pins */
#hlpBtn { position: fixed; right: 12px; bottom: 224px; z-index: 40; } .hlpDock { clear: both; } .hlpDock #hlpBtn { position: relative; right: auto; bottom: auto; display: block; width: 54px; height: 54px; border-radius: 50%; border: 0; padding: 4px; background: var(--bg); box-shadow: 0 4px 14px rgba(0,0,0,.22), 0 0 0 2px var(--accent) inset; cursor: pointer; transition: transform .15s; }
#hlpBtn:hover { transform: translateY(-2px) scale(1.04); }
#hlpBtn.on { box-shadow: 0 4px 14px rgba(0,0,0,.22), 0 0 0 3px #f26a2e inset; }
#hlpBtn svg { width: 100%; height: 100%; display: block; }
#hlpBtn .hlpDot { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #f26a2e; border: 2px solid var(--bg); }
.hlpEyes { animation: hlpBlink 5s infinite; transform-origin: 32px 42px; }
@keyframes hlpBlink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
#hlp { position: fixed; right: 12px; bottom: 12px; z-index: 60; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100vh - 90px)); display: flex; flex-direction: column; background: var(--bg); color: var(--ink); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.3); overflow: hidden; animation: hlpIn .2s ease-out; }
#hlp.hidden { display: none; }
#hlp.hlpGhost { visibility: hidden; }
@keyframes hlpIn { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
#hlp header { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px 12px; border-bottom: 1px solid rgba(127,127,127,.18); flex-wrap: wrap; }
#hlp header > b { font-size: 16px; }
#hlp .hlpFace svg { width: 32px; height: 32px; display: block; }
#hlp nav { display: flex; gap: 4px; margin-left: auto; }
#hlp nav button { border: 0; background: transparent; color: var(--ink2); font: inherit; font-size: 13.5px; font-weight: 700; padding: 6px 10px; border-radius: 999px; cursor: pointer; position: relative; }
#hlp nav button.on { background: var(--accent); color: var(--accent-ink); }
.hlpCnt { font-style: normal; display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 3px; border-radius: 9px; background: #f26a2e; color: #fff; font-size: 11.5px; line-height: 18px; }
.hlpCnt.hidden { display: none; }
#hlp .hlpX { border: 0; background: transparent; color: var(--ink2); font-size: 18px; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.hlpPane { flex: 1; overflow-y: auto; padding: 12px; }
.hlpPane.hidden { display: none; }
.hlpMsg { max-width: 88%; margin: 0 0 10px; padding: 9px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; background: rgba(127,127,127,.12); }
.hlpMsg.me { margin-left: auto; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.hlpMsg.bot { border-bottom-left-radius: 4px; }
.hlpMsg ul { margin: 4px 0; padding-left: 18px; }
.hlpMsg .btn { margin-top: 2px; }
.hlpThumbs { display: flex; gap: 4px; flex-wrap: wrap; } .hlpThumbs img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.hlpTyping { display: inline-flex; gap: 4px; } .hlpTyping i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink2); animation: hlpDots 1s infinite; } .hlpTyping i:nth-child(2) { animation-delay: .15s; } .hlpTyping i:nth-child(3) { animation-delay: .3s; }
@keyframes hlpDots { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
#hlp footer { border-top: 1px solid rgba(127,127,127,.18); padding: 8px; }
.hlpPics { display: flex; gap: 6px; flex-wrap: wrap; } .hlpPics:empty { display: none; } .hlpPics span { position: relative; } .hlpPics img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 6px; }
.hlpPics button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #1c2422; color: #fff; font-size: 11px; cursor: pointer; }
.hlpRow { display: flex; align-items: flex-end; gap: 6px; }
.hlpRow textarea { flex: 1; resize: none; min-height: 40px; max-height: 140px; padding: 9px 12px; border-radius: 20px; border: 1px solid rgba(127,127,127,.35); background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.35; }
.hlpRow button { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(127,127,127,.14); font-size: 18px; cursor: pointer; color: var(--ink); }
.hlpRow button.hidden { display: none; }
.hlpRow .hlpSend { background: var(--accent); color: var(--accent-ink); }
.hlpRow .hlpMic.on { background: #e53935; color: #fff; animation: hlpPulse 1.2s infinite; }
@keyframes hlpPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229,57,53,.5); } 50% { box-shadow: 0 0 0 8px rgba(229,57,53,0); } }
.hlpNotes { list-style: none; padding: 0; margin: 10px 0; }
.hlpNotes li { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border-radius: 10px; background: rgba(127,127,127,.1); margin-bottom: 6px; }
.hlpNotes li img { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
.hlpNotes li span { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; } .hlpNotes small, .hlpSent small { color: var(--ink2); font-size: 12px; }
.hlpDel { border: 0; background: transparent; color: var(--ink2); cursor: pointer; font-size: 14px; }
.hlpEmpty { color: var(--ink2); font-size: 14px; }
.hlpSent { list-style: none; padding: 0; } .hlpSent li { padding: 8px 10px; border-left: 3px solid #f9a825; background: rgba(127,127,127,.08); border-radius: 8px; margin-bottom: 8px; font-size: 14px; }
.hlpSent li.closed { border-left-color: #2e7d32; } .hlpFirst { display: block; margin: 2px 0 4px; }
/* v47: where each work order stands, at a glance: green done, red didn't go through, blue question */
.hlpSent li.good { border-left-color: #2e7d32; } .hlpSent li.bad { border-left-color: #d32f2f; } .hlpSent li.ask { border-left-color: #1e88e5; }
.hlpStat { margin: 3px 0 2px; font-weight: 600; font-size: 13.5px; } .hlpSent li.bad .hlpStat { color: #e57373; } .hlpSent li.good .hlpStat { color: #66bb6a; } .hlpSent li.ask .hlpStat { color: #64b5f6; }
.hlpReply.card { border: 1px solid rgba(102,187,106,.45); line-height: 1.45; }
.hlpReply { margin: 6px 0 0; padding: 7px 9px; border-radius: 8px; background: var(--bg); font-size: 13.5px; } .hlpReply.mine { background: rgba(14,94,88,.12); }
.hlpAns { display: flex; gap: 6px; margin-top: 6px; } .hlpAns input { flex: 1; padding: 7px 10px; border-radius: 8px; border: 1px solid rgba(127,127,127,.35); background: var(--bg); color: var(--ink); font: inherit; }
.hlpPin { border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; background: transparent; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.hlpPin b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #f26a2e; color: #fff; border: 2px solid #fff; font-size: 13px; }
.hlpPin b i { transform: rotate(45deg); font-style: normal; } .hlpPin span { margin-top: 3px; font-size: 11px; font-weight: 800; color: #fff; background: #1c2422; border-radius: 6px; padding: 0 5px; }
.hlpPin.on b { background: var(--accent); transform: rotate(-45deg) scale(1.2); }
.hlpNum { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #f26a2e; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.hlpSites li, .hlpDays li { cursor: pointer; }
@media (max-width: 640px) {
  #hlpBtn { width: 50px; height: 50px; }
  #hlp { right: 0; left: 0; bottom: 0; width: 100%; height: 78vh; border-radius: 18px 18px 0 0; }
}
@media (prefers-reduced-motion: reduce) { #hlp, .hlpEyes, .hlpTyping i, .hlpRow .hlpMic.on { animation: none; } }
.hlpTxt { cursor: text; } .hlpPen { font-style: normal; color: var(--ink2); font-size: 12px; }
.hlpEdit { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(127,127,127,.4); background: var(--bg); color: var(--ink); }
.hlpRevHead { margin: 0 0 8px; } .hlpRevHead small { color: var(--ink2); }
.hlpRev textarea { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(127,127,127,.3); background: var(--bg); color: var(--ink); }
.hlpChip { border: 0; border-radius: 999px; padding: 2px 9px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; margin-right: 4px; color: #fff; }
.hlpChip.m-haiku { background: #2e7d32; } .hlpChip.m-sonnet { background: #1565c0; } .hlpChip.m-opus { background: #6a1b9a; } .hlpChip.m-fable { background: #c62828; }
.hlpSum { margin: 10px 0; padding: 9px 11px; border-radius: 10px; background: rgba(242,106,46,.1); font-size: 14px; } .hlpSum small { color: var(--ink2); }

/* CAMI Sketch brand: Barlow (OFL), born from highway signage */
@font-face { font-family: 'CamiBrand'; font-weight: 800; font-display: swap; src: url('assets/fonts/brand/barlow-800.woff2') format('woff2'); }
@font-face { font-family: 'CamiBrandCond'; font-weight: 800; font-display: swap; src: url('assets/fonts/brand/barlow-condensed-800.woff2') format('woff2'); }
.camiLogo { display: block; width: 100%; height: auto; overflow: visible; }

/* the landing's CAMI Sketch sign plate (the animated logo plays on it when the app opens) */
.landBrand { flex-direction: column; align-items: flex-start; gap: 8px; }
.landPlate { background: #111111; border-radius: 12px; padding: 10px 14px 8px; box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.9), inset 0 0 0 4px #111111; }
.landLogo { width: 250px; aspect-ratio: 680 / 420; }
.landBrand > span { font-family: 'CamiBrandCond', 'Arial Narrow', sans-serif; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 12.5px; }
@media (max-width: 640px) { .landLogo { width: 176px; } .landBrand > span { font-size: 11px; } }
.landBrand .landLogo svg { width: 100%; height: 100%; fill: none; filter: none; }

/* 💡 the idea bulb: above everything in the app, always */
#hlpBulb { position: fixed; right: 14px; top: 38%; z-index: 2147483600; width: 46px; height: 46px; border-radius: 50%; border: 2px solid #111; background: #ffd21f; box-shadow: 0 4px 14px rgba(0,0,0,.3); cursor: pointer; padding: 0; touch-action: none; display: grid; place-items: center; transition: transform .12s; }
#hlpBulb:hover { transform: scale(1.06); } #hlpBulb:active { transform: scale(.94); }
#hlpBulb svg { width: 26px; height: 26px; fill: #fff7c2; stroke: #111; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hlpBulbN { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #F26A2E; color: #fff; font: 800 11px/18px system-ui, sans-serif; font-style: normal; border: 2px solid #fff; }
.hlpBulbN.hidden { display: none; }
#hlpQuick { position: fixed; z-index: 2147483601; right: 14px; top: 50%; transform: translateY(-50%); width: min(340px, calc(100vw - 28px)); background: var(--bg, #fff); color: var(--ink, #111); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.4); padding: 12px; display: flex; flex-direction: column; gap: 8px; border-top: 5px solid #ffd21f; }
#hlpQuick.hidden { display: none; }
.hlpQShot { height: 120px; border-radius: 10px; overflow: hidden; background: rgba(127,127,127,.15); display: grid; place-items: center; font-size: 13px; color: var(--ink2, #555); }
.hlpQShot img { width: 100%; height: 100%; object-fit: contain; background: #222; }
#hlpQuick textarea { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(127,127,127,.35); background: var(--bg, #fff); color: var(--ink, #111); }
.hlpQRow { display: flex; gap: 6px; align-items: center; } .hlpQRow span { flex: 1; }
.hlpQMic { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(127,127,127,.15); font-size: 17px; cursor: pointer; } .hlpQMic.on { background: #e53935; } .hlpQMic.hidden { display: none; }
@media (max-width: 640px) { #hlpQuick { left: 14px; right: 14px; width: auto; top: auto; bottom: 14px; transform: none; } }
/* Talk in a dev note: the note window steps aside for this small sound meter, then the text comes back */
#hlpListen { position: fixed; z-index: 2147483601; left: 50%; transform: translateX(-50%); bottom: calc(18px + var(--safe-b, 0px)); display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--bg, #fff); color: var(--ink, #111); box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 14px; white-space: nowrap; cursor: pointer; }
#hlpListen.hidden { display: none; }
.hlpBars { display: flex; align-items: center; gap: 3px; height: 26px; }
.hlpBars i { display: block; width: 4px; height: 6px; border-radius: 2px; background: #e53935; }
#hlpListen.talk .hlpBars i { animation: hlpBar .5s ease-in-out infinite alternate; }
#hlpListen.talk .hlpBars i:nth-child(2n) { animation-duration: .75s; }
#hlpListen.talk .hlpBars i:nth-child(3n) { animation-duration: .3s; }
@keyframes hlpBar { from { height: 6px; } to { height: 26px; } }
@media print { #hlpBulb, #hlpQuick, #hlpListen { display: none !important; } }

/* Work day tracker */
#dayAsk { position: fixed; z-index: 2147483500; left: 50%; top: 14px; transform: translateX(-50%); width: min(420px, calc(100vw - 24px)); background: #111; color: #fff; border-radius: 16px; padding: 14px 16px 12px; box-shadow: 0 18px 50px rgba(0,0,0,.45); border-left: 6px solid #F26A2E; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; animation: hlpIn .2s ease-out; }
#dayAsk.hidden { display: none; }
#dayAsk .dayAskIc { grid-row: span 3; font-size: 28px; line-height: 1.2; }
#dayAsk b { font-size: 16.5px; line-height: 1.3; } #dayAsk p { margin: 0; color: #cfcfcf; font-size: 14px; }
.dayAskBtns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .dayAskBtns .btn { background: #2a2a2a; color: #fff; border-color: #444; } .dayAskBtns .btn.primary { background: #F26A2E; border-color: #F26A2E; color: #111; }
.dayAskT { grid-column: 2; color: #9a9a9a; font-size: 12px; }
#dayChip { position: fixed; z-index: 45; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b, 0px)); border: 0; border-radius: 999px; background: #111; color: #fff; padding: 7px 14px; display: flex; gap: 8px; align-items: center; font: inherit; font-size: 13px; box-shadow: 0 6px 18px rgba(0,0,0,.3); cursor: pointer; max-width: calc(100vw - 180px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dayChip.hidden { display: none; } #dayChip span { color: #F9B48F; overflow: hidden; text-overflow: ellipsis; }
.dayStats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 10px 0; }
.dayStats div { background: rgba(127,127,127,.1); border-radius: 10px; padding: 8px; } .dayStats b { display: block; font-size: 18px; } .dayStats small { color: var(--ink2); font-size: 11.5px; }
.dayWarn { background: rgba(242,106,46,.12); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.dayStops { padding-left: 20px; } .dayStops li { margin-bottom: 8px; } .dayStops small { display: block; color: var(--ink2); } .dayAct { display: flex; gap: 10px; }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-size: 12.5px; cursor: pointer; text-decoration: underline; }
.dayLegs, .dayExps { list-style: none; padding: 0; } .dayLegs li { display: grid; grid-template-columns: 1fr 64px auto 70px; gap: 6px; align-items: center; margin-bottom: 6px; font-size: 13.5px; }
.dayLegs input, .daySetup input { padding: 5px 7px; border-radius: 7px; border: 1px solid rgba(127,127,127,.35); background: var(--bg); color: var(--ink); font: inherit; font-size: 13.5px; min-width: 0; }
.dayKind { border: 0; border-radius: 999px; padding: 3px 9px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; background: rgba(127,127,127,.15); color: var(--ink); } .dayKind.k-work { background: #F26A2E; color: #111; } .dayKind.k-pending { background: #ffd21f; color: #111; }
.dayExps li { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; font-size: 14px; } .dayExps li span { flex: 1; } .dayExps small { display: block; color: var(--ink2); } .dayExps img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.daySetup { margin-top: 14px; } .daySetup summary { cursor: pointer; font-weight: 700; }

/* Object Creator quick-launch: one tap from the sketch, low on the right where a thumb lands */
#skQuickMake { display: none; }
body.sketching #skQuickMake { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; position: fixed; z-index: 7; right: calc(12px + var(--safe-r)); bottom: calc(150px + var(--safe-b)); width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px rgba(0,0,0,.3); cursor: pointer; }
body.sketching #skQuickMake svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.sketching #skQuickMake span { font-size: 10.5px; font-weight: 700; }
body.sketching.panel-open #skQuickMake, body.sketching.hlp-open #skQuickMake { display: none; }
@media (min-width: 641px) { body.sketching #skQuickMake { bottom: calc(100px + var(--safe-b)); } }
/* the photo dump button: same round button, just left of Make (above it would cover the map's my-location button) */
#skQuickPhotos { display: none; }
body.sketching #skQuickPhotos { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; position: fixed; z-index: 7; right: calc(80px + var(--safe-r)); bottom: calc(162px + var(--safe-b)); width: 58px; height: 58px; border-radius: 50%; border: 0; background: #1f6fb2; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.3); cursor: pointer; }
body.sketching #skQuickPhotos svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.sketching #skQuickPhotos span { font-size: 10.5px; font-weight: 700; }
body.sketching.panel-open #skQuickPhotos, body.sketching.hlp-open #skQuickPhotos { display: none; }
@media (min-width: 641px) { body.sketching #skQuickPhotos { bottom: calc(100px + var(--safe-b)); } }

/* helper show-me walkthrough: a glowing ring on the real button and a small card with the step */
#wkRing { position: fixed; z-index: 90; display: none; border-radius: 14px; border: 3px solid #ffd21f; box-shadow: 0 0 0 4000px rgba(0,0,0,.35), 0 0 14px 4px rgba(255,210,31,.8); pointer-events: none; animation: wkPulse 1.2s ease-in-out infinite; }
@keyframes wkPulse { 50% { border-color: #f26a2e; } }
#wkCard { position: fixed; z-index: 91; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b)); width: min(380px, calc(100vw - 20px)); box-sizing: border-box; padding: 12px 14px; border-radius: 14px; background: #1f2a28; color: #fff; box-shadow: 0 6px 22px rgba(0,0,0,.45); }
#wkCard.top { bottom: auto; top: calc(14px + var(--safe-t)); }
#wkCard small { color: #ffd21f; font-weight: 700; font-size: 12px; } #wkCard p { margin: 4px 0 10px; font-size: 15px; line-height: 1.4; }
#wkCard div { display: flex; gap: 8px; justify-content: flex-end; }
#wkCard button { border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; border-radius: 9px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; min-height: 40px; }
#wkCard button.primary { background: #f26a2e; border-color: #f26a2e; } #wkCard button:disabled { opacity: .35; } #wkCard button[data-k="x"] { margin-right: auto; }
@media (prefers-reduced-motion: reduce) { #wkRing { animation: none; } }
/* Today's photos: the day's camera roll sorted into job-site piles, checked before saving */
.phWork { padding: 18px 4px; font-weight: 600; }
.phGroup { border: 1px solid var(--line, rgba(127,127,127,.25)); border-left: 4px solid #F26A2E; border-radius: 10px; padding: 8px 10px 10px; margin: 0 0 10px; }
.phGroup.off { opacity: .45; border-left-color: #888; }
.phGroup header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 6px; }
.phGroup header small { color: var(--ink2); font-size: 12px; flex-basis: 100%; }
.phGroup header .phSkip { margin-left: auto; padding: 4px 10px; font-size: 12.5px; }
.phKind { font-size: 12px; font-weight: 700; color: #F26A2E; }
.phName { font-size: 15px; } .phName[contenteditable]:focus { outline: 2px solid #F26A2E; border-radius: 4px; padding: 0 3px; }
.phGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 4px; }
.phPic { position: relative; padding: 0; border: 0; background: #222; aspect-ratio: 1; border-radius: 6px; overflow: hidden; cursor: pointer; }
.phPic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phPic i { position: absolute; left: 0; right: 0; bottom: 0; font: 600 10.5px/1.5 system-ui, sans-serif; font-style: normal; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); padding: 6px 3px 1px; text-align: left; }
.phPic.on { outline: 3px solid #F26A2E; outline-offset: -3px; } .phPic.on::after { content: '✓'; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #F26A2E; color: #fff; font: 700 13px/20px system-ui; text-align: center; }
.phAsk { margin: 0 0 6px; font-size: 13px; }
.phIds { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 8px; }
.phIds label { flex: 1 1 140px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--ink2); }
.phIds input { padding: 8px; font-size: 15px; border-radius: 6px; border: 1px solid var(--line, rgba(127,127,127,.4)); }
.phGroup.need { border-left-color: #d32f2f; box-shadow: 0 0 0 2px #d32f2f inset; }
.phBar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0 4px; background: var(--bg, #fff); border-top: 1px solid var(--line, rgba(127,127,127,.25)); }
.phBar select { flex: 1; min-width: 140px; padding: 8px; }
.phView { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; }
.phView img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; } .phView p { color: #ddd; font-size: 13px; margin: 8px 0 0; }

/* phone alerts switch in Dev notes, and the work order an alert opened */
.hlpPush { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 6px; }
.hlpSent li.hlpFlash { animation: hlpFlash 2.4s ease-out; } @keyframes hlpFlash { 0%, 40% { box-shadow: 0 0 0 3px #F26A2E; } 100% { box-shadow: 0 0 0 0 transparent; } }
.phGuess { font-size: 12.5px; margin: 0 0 6px; padding: 6px 8px; border-radius: 6px; background: rgba(242,106,46,.1); }


/* ============================================================ v55: the Linen look and the day flow (flow.js, capture.js) */
.panelhead h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }

/* the front door, in daylight: no night skyline, cream paper */
#landing { background: var(--bg2); color: var(--ink); font-family: var(--sans); }
#landing #landScene, #landing .landShade, #landing #landMap, #landing #landFx { display: none; }
#landing .landBrand span, #landing:not(.land-dark) .landBrand span { color: var(--ink2); text-shadow: none; }
#landing .landCredit, #landing:not(.land-dark) .landCredit { color: #9A8F80; text-shadow: none; }
#landing .landPlate { box-shadow: 0 8px 22px rgba(42,36,32,.18), inset 0 0 0 2px rgba(255,255,255,.9), inset 0 0 0 4px #111; }
#landing .landCard, #landing:not(.land-dark) .landCard { background: var(--bg); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(42,36,32,.12); backdrop-filter: none; -webkit-backdrop-filter: none; }
#landing .landCard h1, #landing #landWork h1 { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
#landing .landLead, #landing .landHello span { color: var(--ink2); }
#landing .landHello b, #landing .landWho b { color: var(--ink); }
#landing .landWho, #landing .landSwap, #landing .landReq, #landing .landCard footer, #landing .landNote.small, #landing .landForm label, #landing #landProjects h2, #landing .landBig span, #landing .landList span, #landing .landHere small { color: var(--ink2); }
#landing .landForm input, #landing .landSearch input { background: #fff; color: var(--ink); border: 1px solid var(--line); }
#landing .landForm input:focus, #landing .landSearch input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,93,80,.18); }
#landing .landPrimary, #landing .landSearch button { background: var(--accent); color: #fff; }
#landing .landSearch .landDrive { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
#landing .landLink { color: var(--accent); }
#landing .landKey, #landing .landBig, #landing #landResume, #landing .landList button, #landing .landChips button, #landing .landHere { background: var(--sand); color: var(--ink); border: 1px solid var(--line); }
#landing .landKey svg, #landing .landHere svg { stroke: var(--accent); }
#landing .landErr { color: #A33A1E; } #landing .landNote, #landing .landWarn, #landing .landList h3 { color: #8A5A16; }
#landing .landEye svg { stroke: var(--ink2); }
#landing .landWxChip, #landing:not(.land-dark) .landWxChip { background: var(--bg); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }

/* the Today sheet */
#fl { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; background: var(--bg2); color: var(--ink); border-radius: 22px 22px 0 0; box-shadow: 0 -6px 26px rgba(42,36,32,.16); border-top: 1px solid var(--line); padding: 0 14px calc(6px + var(--safe-b)); font-family: var(--sans); }
#fl svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#flGrip { display: block; width: 100%; height: 20px; border: 0; background: none; cursor: pointer; padding: 0; }
#flGrip i { display: block; width: 40px; height: 4px; border-radius: 4px; background: #D9CFBD; margin: 8px auto 0; }
#flTop { cursor: pointer; padding: 0 4px 10px; }
#flTop small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
#flTop h2 { margin: 2px 0 0; font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.flProj { display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink2); background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.flLink { border: 0; background: none; padding: 6px 0 0; color: var(--accent); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
#flBody { display: none; }
#fl.open #flBody { display: block; }
.flBig { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; border-radius: 18px; background: var(--accent); color: #fff; padding: 16px 18px; text-align: left; cursor: pointer; box-shadow: 0 6px 16px rgba(47,93,80,.28); }
.flBig svg { width: 30px !important; height: 30px !important; }
.flBig b { display: block; font-size: 18px; font-weight: 700; } .flBig small { display: block; font-size: 12.5px; opacity: .86; margin-top: 2px; line-height: 1.3; }
.flTwo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.flTwo button { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--ink); padding: 13px 14px; text-align: left; cursor: pointer; }
.flTwo svg { color: var(--accent); width: 26px !important; height: 26px !important; }
.flTwo b { display: block; font-size: 16px; } .flTwo small { display: block; font-size: 12px; color: var(--ink2); }
#flHere { display: flex; align-items: baseline; gap: 8px; width: 100%; margin-top: 10px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); padding: 11px 4px 9px; text-align: left; cursor: pointer; font-size: 13.5px; }
#flHere b { font-weight: 700; white-space: nowrap; } #flHere span { flex: 1; color: var(--ink2); } #flHere i { font-style: normal; color: var(--ink2); font-size: 18px; }
.flCard { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px 8px; margin-bottom: 10px; }
.flCard > b { font-family: var(--serif); font-size: 18px; font-weight: 600; } .flCard p { margin: 3px 0 8px; font-size: 13px; color: var(--ink2); line-height: 1.4; }
.flCard button[data-go] { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-top: 1px solid var(--line); background: none; padding: 10px 0; text-align: left; cursor: pointer; color: var(--ink); }
.flCard button[data-go] span { flex: 1; min-width: 0; } .flCard button[data-go] b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .flCard button[data-go] small { color: var(--ink2); font-size: 12px; }
.flCard em { font-style: normal; font-weight: 700; font-size: 12.5px; color: #fff; background: var(--accent); border-radius: 999px; padding: 6px 11px; white-space: nowrap; }
#flNav { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 -6px; border-top: 1px solid var(--line); }
#fl.open #flNav { margin-top: 0; }
#flNav button { display: grid; justify-items: center; gap: 2px; border: 0; background: none; padding: 8px 0 4px; color: var(--ink2); font-size: 11px; font-weight: 600; cursor: pointer; }
#flNav button.on { color: var(--accent); }
/* it steps aside for the drawing board, turn-by-turn, and (on a phone) an open panel */
body.sketching #fl, body.navving #fl, body.cap-open #fl { display: none; }
body.cami-flow #dayChip { display: none; }
body.cami-simple:not(.sketching) #layerSwitch { display: none; }
@media (max-width: 640px) {
  body.panel-open #fl { display: none; }
  body.cami-flow:not(.sketching):not(.panel-open) .maplibregl-ctrl-bottom-right { bottom: calc(var(--flH, 0px) + 8px); }
  body.cami-flow:not(.sketching):not(.panel-open) .maplibregl-ctrl-bottom-left { bottom: calc(var(--flH, 0px) + 52px); }
  body.cami-flow:not(.sketching):not(.panel-open) #layerSwitch { bottom: calc(var(--flH, 0px) + 8px); }
  body.cami-flow:not(.sketching):not(.panel-open) #toast { bottom: calc(var(--flH, 0px) + 14px); }
}
@media (min-width: 641px) { /* tablet and computer: the sheet is a card docked bottom-left, so the middle of the map stays clear */
  #fl { left: calc(12px + var(--safe-l)); right: auto; bottom: 14px; width: 400px; max-height: calc(100vh - 150px); overflow: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 10px 34px rgba(42,36,32,.2); padding-bottom: 6px; }
  body.cami-flow:not(.sketching):not(.navving) .maplibregl-ctrl-bottom-left { left: 416px; }
  body.cami-flow:not(.sketching):not(.navving) #layerSwitch { left: 428px; }
  body.cami-flow.panel-open #fl { display: none; } /* a panel opens on that side: it takes the spot */
}


/* the flow's panels: fields, notes, folders, tiles */
.flField { display: grid; gap: 4px; margin: 0 0 10px; } .flField span { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--ink2); }
.flField input, #ftText, .flAdd input { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); padding: 11px 12px; font: inherit; font-size: 16px; }
#ftText { resize: vertical; margin: 10px 0 4px; line-height: 1.45; }
.flMic { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; border-radius: 16px; background: var(--accent); color: #fff; padding: 16px; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.flMic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.flMic.on { background: #A33A1E; animation: flPulse 1.4s ease-in-out infinite; }
@keyframes flPulse { 50% { box-shadow: 0 0 0 8px rgba(163,58,30,.18); } }
.flH3 { font-family: var(--serif); font-size: 16px; font-weight: 600; margin: 16px 0 6px; }
.flNote { position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 34px 9px 12px; margin: 6px 0; }
.flNote small { color: var(--ink2); font-size: 11.5px; } .flNote p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.flDel { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border: 0; background: none; color: var(--ink2); cursor: pointer; font-size: 13px; }
.flStop { margin: 0 0 14px; } .flStop header { display: grid; margin-bottom: 4px; } .flStop header b { font-family: var(--serif); font-size: 17px; font-weight: 600; } .flStop header small { color: var(--ink2); font-size: 12px; }
.flRow { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); padding: 10px 12px; margin: 6px 0; text-align: left; cursor: pointer; font: inherit; }
.flRow span { flex: 1; min-width: 0; } .flRow b { display: block; font-size: 14.5px; } .flRow small { display: block; color: var(--ink2); font-size: 12px; } .flRow i { font-style: normal; color: var(--ink2); }
.flFolders { list-style: none; margin: 8px 0; padding: 0; }
.flFolders li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); padding: 12px; margin: 6px 0; cursor: pointer; }
.flFolders li.none { cursor: default; color: var(--ink2); font-size: 13.5px; }
.flFolders svg { width: 26px; height: 26px; fill: var(--sand); stroke: var(--accent); stroke-width: 1.6; flex: none; }
.flFolders span { flex: 1; min-width: 0; } .flFolders b { display: block; font-size: 15.5px; } .flFolders small { display: block; color: var(--ink2); font-size: 12px; } .flFolders i { font-style: normal; color: var(--ink2); font-size: 18px; }
.flAdd { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; margin-top: 12px; } .flAdd .btn { grid-column: 1 / -1; }
.flTiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.flTiles button { border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); color: var(--ink); padding: 12px; text-align: left; cursor: pointer; font: inherit; }
.flTiles b { display: block; font-size: 14.5px; } .flTiles small { display: block; color: var(--ink2); font-size: 12px; margin-top: 2px; }
.flSeg { display: flex; background: var(--sand); border-radius: 12px; padding: 3px; } .flSeg button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 9px; font: inherit; font-weight: 600; font-size: 13.5px; color: var(--ink2); cursor: pointer; } .flSeg button.on { background: var(--accent); color: #fff; }

/* first-time setup: one question per screen */
#flSetup { position: fixed; inset: 0; z-index: 70; background: var(--bg2); color: var(--ink); font-family: var(--sans); overflow: auto; padding: var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l); }
.suWrap { min-height: 100%; max-width: 520px; margin: 0 auto; padding: 18px 22px 20px; display: flex; flex-direction: column; }
.suWrap header { display: flex; align-items: center; gap: 14px; }
.suMark { font-family: 'CamiBrand', 'Barlow Condensed', Impact, sans-serif; font-weight: 800; font-size: 26px; letter-spacing: .02em; color: #1A1613; }
.suDots { flex: 1; display: flex; gap: 5px; } .suDots i { flex: 1; height: 4px; border-radius: 4px; background: #E0D6C3; } .suDots i.done { background: #9DB5AC; } .suDots i.on { background: var(--accent); }
#suX { border: 0; background: none; font-size: 18px; color: var(--ink2); cursor: pointer; width: 36px; height: 36px; }
.suWrap main { flex: 1; padding: 9vh 0 20px; }
.suWrap h1 { font-family: var(--serif); font-weight: 600; font-size: 31px; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 10px; }
.suSub { margin: 0 0 22px; color: var(--ink2); font-size: 15.5px; line-height: 1.45; }
.suIn { display: block; width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); padding: 15px 16px; font: inherit; font-size: 18px; margin: 0 0 10px; outline: none; }
.suIn:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,93,80,.16); }
.suPick { display: grid; gap: 10px; margin-bottom: 12px; }
.suPick button { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--ink); padding: 16px 18px; text-align: left; font: inherit; cursor: pointer; }
.suPick b { display: block; font-size: 17px; font-weight: 600; } .suPick small { display: block; color: var(--ink2); font-size: 13px; margin-top: 3px; }
.suPick button.on { border-color: var(--accent); background: #EAF0EC; box-shadow: inset 0 0 0 1px var(--accent); }
.suFind, .suAdd { display: grid; gap: 0; } .suGo { border: 1px solid var(--accent); background: none; color: var(--accent); border-radius: 14px; padding: 13px; font: inherit; font-weight: 700; font-size: 15.5px; cursor: pointer; }
.suFound { min-height: 22px; margin: 12px 0 0; color: var(--ink2); font-size: 14.5px; } .suFound b { color: var(--accent); }
.suJob { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px 10px 14px; margin-bottom: 8px; } .suJob b { font-size: 15.5px; } .suJob span { flex: 1; color: var(--ink2); font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .suJob button { border: 0; background: none; color: var(--ink2); width: 32px; height: 32px; cursor: pointer; }
.suCheck { display: grid; gap: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.suCheck button { display: grid; gap: 1px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); padding: 11px 16px; text-align: left; font: inherit; cursor: pointer; } .suCheck button:last-child { border-bottom: 0; }
.suCheck small { color: var(--ink2); font-size: 12px; } .suCheck b { font-size: 15.5px; font-weight: 600; } .suCheck b i { font-weight: 400; color: #9A8F80; }
.suFine { margin: 14px 2px 0; font-size: 12.5px; color: var(--ink2); line-height: 1.45; }
.suWrap footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; bottom: 0; background: linear-gradient(rgba(247,242,232,0), var(--bg2) 30%); padding-top: 18px; }
.suMain { border: 0; border-radius: 16px; background: var(--accent); color: #fff; padding: 15px 30px; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; min-width: 150px; }
.suGhost { border: 0; background: none; color: var(--ink2); font: inherit; font-size: 15.5px; font-weight: 600; padding: 14px 8px; cursor: pointer; }

/* CAMI's camera */
#cap { position: fixed; inset: 0; z-index: 80; background: #14110F; color: #fff; display: none; font-family: var(--sans); }
#cap.on { display: block; }
#capView { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #14110F; }
#cap.flash #capView { filter: brightness(2.2); }
.capTop { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: calc(12px + var(--safe-t)) 14px 26px; background: linear-gradient(rgba(20,17,15,.72), rgba(20,17,15,0)); }
#capX { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,253,248,.16); color: #fff; font-size: 16px; cursor: pointer; }
.capSite { flex: 1; min-width: 0; } .capSite small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; } .capSite b { display: block; font-family: var(--serif); font-weight: 600; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#capClock { background: #B4321E; border-radius: 999px; padding: 5px 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.capCoach { position: absolute; left: 14px; right: 14px; top: calc(78px + var(--safe-t)); max-width: 440px; margin: 0 auto; background: rgba(255,253,248,.94); color: #2A2420; border-radius: 14px; padding: 10px 14px; font-size: 13px; line-height: 1.4; }
.capCoach b { display: block; font-family: var(--serif); font-size: 16px; font-weight: 600; margin-bottom: 1px; }
#cap.rec .capCoach { opacity: .0; transition: opacity 1.2s ease 4s; }
.capSense { position: absolute; left: 0; right: 0; bottom: calc(212px + var(--safe-b)); text-align: center; font-size: 12px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.capBot { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px calc(14px + var(--safe-b)); background: linear-gradient(rgba(20,17,15,0), rgba(20,17,15,.82) 45%); text-align: center; }
.capModes { display: inline-flex; background: rgba(255,253,248,.14); border-radius: 999px; padding: 3px; margin-bottom: 14px; }
.capModes button { border: 0; background: none; color: #fff; border-radius: 999px; padding: 7px 18px; font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; } .capModes button.on { background: #FFFDF8; color: #2A2420; }
#cap.rec .capModes, #cap.rec .capSide { visibility: hidden; }
.capRow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.capSide { border: 0; background: none; color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; padding: 12px 4px; }
#capGo { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #FFFDF8; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
#capGo i { display: block; width: 58px; height: 58px; border-radius: 50%; background: #FFFDF8; transition: all .18s ease; }
#cap[data-mode="video"] #capGo i { background: #C93A22; } #cap.rec #capGo i { width: 28px; height: 28px; border-radius: 7px; }
.capCount { margin: 10px 0 0; font-size: 12.5px; opacity: .85; min-height: 17px; }
.capMsg { position: absolute; left: 18px; right: 18px; top: 50%; transform: translateY(-60%); max-width: 420px; margin: 0 auto; background: #FFFDF8; color: #2A2420; border-radius: 18px; padding: 18px; }
.capMsg[hidden] { display: none; } .capMsg b { font-family: var(--serif); font-size: 19px; font-weight: 600; } .capMsg p { margin: 6px 0 14px; color: #5E554B; font-size: 14px; line-height: 1.45; } .capMsg div { display: grid; gap: 8px; }
.capBtn { border: 0; border-radius: 14px; background: #2F5D50; color: #fff; padding: 13px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; } .capBtn.ghost { background: #F1EADB; color: #2A2420; }
#cap.nocam .capCoach, #cap.nocam .capSense, #cap.nocam .capModes, #cap.nocam #capGo, #cap.nocam #capRoll, #cap.nocam .capCount { visibility: hidden; }
.capPlay { position: fixed; inset: 0; z-index: 9000; background: rgba(20,17,15,.95); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; }
.capPlay video { max-width: 100%; max-height: 76vh; border-radius: 12px; background: #000; } .capPlay p { margin: 0; font-size: 13px; opacity: .85; }
/* the yellow idea bulb steps out of the way of the setup questions and the camera */
body.su-open #hlpBulb, body.cap-open #hlpBulb { display: none; }
#landing .landWxChip small, #landing .landWxChip i { color: var(--ink2); }
/* setup, round two: your own words, a map to check the home corner, your own start time */
.suFind { position: relative; } .suFind .results { position: absolute; left: 0; right: 0; top: calc(100% - 6px); z-index: 3; max-height: 240px; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(42,36,32,.16); }
.suMap { height: 240px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; margin-top: 12px; } .suMap.hidden, .suFine.hidden { display: none; }
.suLab { display: grid; gap: 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--ink2); } .suLab .suIn { text-transform: none; letter-spacing: 0; font-weight: 400; }
input.suIn[type="time"] { max-width: 220px; font-size: 24px; font-family: var(--serif); }
/* the tour: one thing lit up at a time, a card that says what it is */
#tourShade { position: fixed; inset: 0; z-index: 94; background: transparent; } #tourShade.dim { background: rgba(42,36,32,.38); }
#tourRing { position: fixed; z-index: 95; display: none; border-radius: 18px; border: 3px solid #FFFDF8; box-shadow: 0 0 0 4000px rgba(42,36,32,.46), 0 0 0 6px rgba(47,93,80,.55); pointer-events: none; transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease; }
#tourCard { position: fixed; z-index: 96; left: 50%; transform: translateX(-50%); bottom: calc(18px + var(--safe-b)); width: min(400px, calc(100vw - 24px)); background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px 14px; box-shadow: 0 18px 50px rgba(42,36,32,.32); font-family: var(--sans); }
#tourCard.top { bottom: auto; top: calc(18px + var(--safe-t)); }
#tourCard small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
#tourCard b { display: block; font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 3px 0 4px; } #tourCard p { margin: 0 0 14px; font-size: 15px; line-height: 1.45; color: var(--ink2); }
#tourCard div { display: flex; align-items: center; justify-content: space-between; gap: 10px; } #tourCard div span { display: flex; gap: 6px; }
#tourCard button { border: 0; background: none; color: var(--ink2); font: inherit; font-size: 14px; font-weight: 600; padding: 11px 8px; cursor: pointer; border-radius: 14px; }
#tourCard button.main { background: var(--accent); color: #fff; padding: 11px 24px; font-size: 15.5px; }
body.tour-on #hlpBulb, body.tour-on #dayAsk { display: none; }
@media (prefers-reduced-motion: reduce) { #tourRing { transition: none; } }
/* projects: the form, matches as you type, the facts in a folder */
.pjForm { display: grid; gap: 2px; } .pjForm .suIn { font-size: 16.5px; padding: 12px 14px; }
.pjHits { list-style: none; margin: -6px 0 10px; padding: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(42,36,32,.14); overflow: hidden; } .pjHits.hidden { display: none; }
.pjHits li { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--line); } .pjHits li:last-child { border-bottom: 0; } .pjHits li:hover { background: var(--bg2); }
.pjHits b { display: block; font-size: 15.5px; } .pjHits small { color: var(--ink2); font-size: 12.5px; }
.flFacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 8px 0 12px; } .flFacts span { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: 14px; font-weight: 600; } .flFacts small { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); font-weight: 700; }
#apSay { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); padding: 11px 12px; font: inherit; font-size: 16px; margin: 10px 0 4px; line-height: 1.45; resize: vertical; }
#apOut .flRow i { font-size: 12.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
#tourCard.mid { top: 50%; bottom: auto; transform: translate(-50%, -50%); }
#tourCard.side { transform: none; bottom: auto; }
/* the sign-in cards on cream: the email in "Check your email" was white on white, and good news was showing in the error color */
#landing .landLead b, #landing .landNote b { color: var(--ink); }
#landing .landErr.good { color: var(--accent); }

/* the front door drawing (city.js): a block draws itself behind the sign-in card */
#landBuild { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#landing.build .landBrand, #landing.build .landCard, #landing.build .landCredit { z-index: 1; }

/* setup: picking an answer highlights it; Skip and Next sit together on the right */
.suEnd { display: flex; align-items: center; gap: 6px; }
.suMain:disabled { opacity: .45; cursor: default; }
/* setup, projects: the list on top, one clear "+ Add another project" button, and the blanks in their own card only while adding */
.suLab { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin: 0 0 8px 2px; }
.suMore { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border-style: dashed; margin-top: 4px; } .suMore i { font-style: normal; font-size: 20px; line-height: 1; }
.suNew { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-top: 6px; gap: 4px; }
.suNewT { font-family: var(--serif); font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.suNewB { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 10px; } .suNewB .suGo { flex: 1; background: var(--accent); color: #fff; }
#tourCard small { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#tourCard small button { border: 1px solid var(--line); background: var(--sand); color: var(--ink2); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 600; cursor: pointer; }
/* Cami's blurbs: the tour card is what she's saying, so it gathers out of the air and three puffs of vapor run from it to her */
#tourCard { border-radius: 24px; box-shadow: 0 18px 50px rgba(42,36,32,.28), 0 0 0 6px rgba(143,203,166,.16); }
#tourCard.new { animation: blurbIn .45s ease both; } #tourCard.new p, #tourCard.new b { animation: blurbWords .7s ease both .12s; }
@keyframes blurbIn { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: none; } }
@keyframes blurbWords { from { opacity: 0; filter: blur(5px); letter-spacing: .03em; } to { opacity: 1; filter: none; letter-spacing: 0; } }
#tourTail i { position: fixed; z-index: 96; width: 13px; height: 13px; margin: -6.5px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 0 0 3px rgba(143,203,166,.2); transition: left .5s ease, top .5s ease; pointer-events: none; }
#tourTail i:nth-child(2) { width: 9px; height: 9px; margin: -4.5px; } #tourTail i:nth-child(3) { width: 6px; height: 6px; margin: -3px; }
@media (prefers-reduced-motion: reduce) { #tourCard.new, #tourCard.new p, #tourCard.new b { animation: none; } #tourTail i { transition: none; } }
/* the tour: Cami presses the buttons herself. The button gives under her, and her blurb steps aside while she works */
.camiTap { transform: scale(.94); filter: brightness(1.1); transition: transform .12s ease, filter .12s ease; }
#tourCard { transition: opacity .2s ease; } #tourCard.away { opacity: 0; pointer-events: none; }
#flBuild[hidden] { display: none; }
/* Cami's home in the search bar: a soft round nest she rests in, drawn small */
#camiHome { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: radial-gradient(circle, rgba(143,203,166,.28), rgba(143,203,166,0) 70%); cursor: pointer; padding: 0; }
#camiHome:active { transform: scale(.94); }
/* talking to Cami (cami.js): a small blurb beside her, so the map or the sketch stays in view while she works */
#camiTalk { position: fixed; z-index: 97; left: calc(10px + var(--safe-l)); top: calc(118px + var(--safe-t)); width: min(380px, calc(100vw - 20px)); background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: 12px; box-shadow: 0 18px 50px rgba(42,36,32,.26), 0 0 0 6px rgba(143,203,166,.16); font-family: var(--sans); animation: blurbIn .35s ease both; }
body.sketching #camiTalk { left: calc(292px + var(--safe-l)); }
@media (max-width: 640px) { #camiTalk, body.sketching #camiTalk { left: 10px; right: 10px; width: auto; top: auto; bottom: calc(12px + var(--safe-b)); } }
#camiTalk.hidden, #camiPuffs.hidden, #camiFloat.hidden { display: none; }
.ctLog { max-height: 30vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.ctMsg { font-size: 15px; line-height: 1.4; } .ctMsg.bot { color: var(--ink); animation: blurbWords .5s ease both; } .ctMsg.bot ul { margin: 4px 0 0 18px; padding: 0; }
.ctMsg.me { align-self: flex-end; max-width: 86%; background: var(--sand); color: var(--ink2); border-radius: 14px 14px 4px 14px; padding: 6px 10px; font-size: 13.5px; }
.ctMsg .btn { margin-top: 6px; }
.ctChips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .ctChips:empty { display: none; }
.ctChips button { border: 1px solid var(--line); background: var(--sand); color: var(--ink); border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ctChips button.main { background: var(--accent); border-color: var(--accent); color: #fff; padding: 9px 22px; }
.ctRow { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.ctBox { flex: 1; min-width: 0; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 14px; padding: 11px 12px; font: inherit; font-size: 16px; outline: none; } .ctBox:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,93,80,.16); }
.ctRow button { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--sand); cursor: pointer; padding: 0; display: grid; place-items: center; }
.ctRow svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctRow .ctGo { background: var(--accent); border-color: var(--accent); } .ctRow .ctGo svg { stroke: #fff; } .ctRow .ctX { border-color: transparent; background: none; } .ctRow .ctX svg { stroke: var(--ink2); }
.ctRow .ctMic.on { background: #EAF0EC; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47,93,80,.18); animation: ctHear 1.1s ease-in-out infinite; } .ctRow .ctMic.hidden { display: none; }
@keyframes ctHear { 50% { box-shadow: 0 0 0 9px rgba(47,93,80,.08); } }
#camiTalk.busy .ctGo, #camiTalk.busy .ctMic { opacity: .45; pointer-events: none; }
#camiPuffs i { position: fixed; z-index: 97; width: 13px; height: 13px; margin: -6.5px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 0 0 3px rgba(143,203,166,.2); pointer-events: none; }
#camiPuffs i:nth-child(2) { width: 9px; height: 9px; margin: -4.5px; } #camiPuffs i:nth-child(3) { width: 6px; height: 6px; margin: -3px; }
/* when her home in the search bar is off screen (directions, the camera) she rides the right edge, still one tap away */
#camiFloat { position: fixed; z-index: 2147482000; right: calc(8px + var(--safe-r)); top: 42%; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: radial-gradient(circle, rgba(255,253,248,.95), rgba(255,253,248,.7)); box-shadow: 0 4px 14px rgba(42,36,32,.2); cursor: pointer; padding: 0; }
@media (prefers-reduced-motion: reduce) { #camiTalk, .ctMsg.bot, .ctRow .ctMic.on { animation: none; } }
/* showing Cami instead of telling her: draw right on the sketch with a finger or a pen */
#camiInk { position: fixed; inset: 0; z-index: 98; touch-action: none; cursor: crosshair; background: rgba(47,93,80,.05); }
#camiInk canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.ciBar { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(18px + var(--safe-b)); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: 0 10px 30px rgba(42,36,32,.22); font: 600 14.5px/1.25 var(--sans); color: var(--ink); }
.ciBar button { border: 1px solid var(--line); background: var(--sand); color: var(--ink2); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
#camiTalk.aside { visibility: hidden; pointer-events: none; }
.ciBar { width: max-content; border-radius: 20px; } .ciBar span { flex: 1; min-width: 0; }
/* while she's waiting on "Is that right?" her blurb shrinks to the question and the buttons, and on the sketch it sits low, so what she drew stays in plain view */
#camiTalk.ask .ctLog { max-height: 52px; } #camiTalk.ask .ctRow .ctBox { padding: 8px 12px; }
@media (min-width: 641px) { body.sketching #camiTalk { top: auto; bottom: calc(64px + var(--safe-b)); } }
/* the quick switch on the sketch: one tap picks what the next stroke is. The dot is that facility's mark-out color */
.ctChips.draw { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -12px; padding-right: 12px; } .ctChips.draw::-webkit-scrollbar { display: none; }
.ctChips.draw button { flex: none; display: flex; align-items: center; gap: 7px; padding: 9px 13px; } .ctChips.draw button::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--c, #888); box-shadow: 0 0 0 1px rgba(42,36,32,.25); }
/* Cami took over: the hard hat helper, the yellow idea bulb and the round green sketch button are gone from the day flow. Notes and ideas go through her now. */
body.cami-on #hlpBtn, body.cami-on #hlpBulb, body.cami-on #btnPencil { display: none !important; }
html.cami-boot #hlpBtn, html.cami-boot #hlpBulb, html.cami-boot #btnPencil { display: none !important; } /* from the very first paint, not once the scripts have loaded */
.ctChips.draw button.plain::before { display: none; }

/* ---- driving mode (drive.js): one big screen, nothing small to read or hit */
#drv { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; background: var(--bg2); color: var(--ink); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line); box-shadow: 0 -6px 26px rgba(42,36,32,.16); padding: 18px 16px calc(16px + var(--safe-b, 0px)); font-family: var(--sans); }
#drv > small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
#drv h2 { font-family: var(--serif); font-size: 26px; line-height: 1.15; margin: 4px 0 10px; font-weight: 600; }
#drvSay { font-size: 21px; line-height: 1.35; margin: 0 0 6px; min-height: 28px; } #drvMe { font-size: 15px; color: var(--ink2); margin: 0 0 12px; min-height: 20px; font-style: italic; }
#drvTalk { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 132px; border: 0; border-radius: 20px; background: var(--accent); color: #fff; font: 700 26px var(--sans); cursor: pointer; }
#drvTalk svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#drvTalk.listen { background: var(--bg); color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent); animation: drvBeat 1.4s ease-in-out infinite; } #drvTalk.think { opacity: .6; } #drvTalk.talk { background: var(--bg3, #F1EADB); color: var(--ink); }
@keyframes drvBeat { 50% { box-shadow: inset 0 0 0 7px var(--accent); } }
.drvRow { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 10px; }
.drvRow button { min-height: 62px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--ink); font: 600 18px var(--sans); cursor: pointer; } #drvVoice { font-size: 14px !important; color: var(--ink2) !important; }
body.driving #fl, body.driving #camiHome, body.driving #camiFloat, body.sketching #drv, body.cap-open #drv { display: none; }
.flCard { position: relative; } #flMornX { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; background: none; color: var(--ink2); font-size: 26px; line-height: 1; cursor: pointer; }
@media (min-width: 641px) { #drv { left: calc(12px + var(--safe-l, 0px)); right: auto; bottom: 14px; width: 420px; border-radius: 22px; border: 1px solid var(--line); } }

/* ---- dropping a work-location pin (flow.js): hold the map, slide the pin, save */
.flPinMark { display: grid; justify-items: center; cursor: grab; touch-action: none; filter: drop-shadow(0 3px 5px rgba(42,36,32,.35)); } .flPinMark svg { display: block; }
#flPin { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; background: var(--bg2); color: var(--ink); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line); box-shadow: 0 -6px 26px rgba(42,36,32,.16); padding: 16px 16px calc(14px + var(--safe-b, 0px)); }
#flPin > small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); } #flPin h2 { font-family: var(--serif); font-size: 22px; line-height: 1.2; margin: 3px 0 4px; font-weight: 600; } #flPin p { margin: 0 0 12px; color: var(--ink2); font-size: 14px; }
#flPin .row { display: flex; gap: 10px; } #flPin .btn { min-height: 50px; font-size: 15.5px; } #flPin .btn.primary { flex: 1; }
body.pinning #fl { display: none; }
@media (min-width: 641px) { #flPin { left: calc(12px + var(--safe-l, 0px)); right: auto; bottom: 14px; width: 400px; border-radius: 22px; border: 1px solid var(--line); } }

/* ---- pick lists under Project # and Work order # (flow.js pick) */
.flSug { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 10px; flex-basis: 100%; } .flSug:empty { display: none; } .phIds .flSug { margin: 0 0 4px; }
.flSug button { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); padding: 8px 12px; min-height: 42px; justify-content: center; font: inherit; font-size: 14.5px; cursor: pointer; text-align: left; max-width: 100%; }
.flSug button small { font-size: 11.5px; color: var(--ink2); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .flSug button.on { background: var(--accent); color: #fff; border-color: var(--accent); } .flSug span { font-size: 12.5px; color: var(--ink2); }

.woK { margin: -2px 0 8px !important; } .woMore { display: block; margin: -4px 0 10px; } .woMoreBox { margin: 0 0 10px; } .woMoreBox input { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); padding: 11px 12px; font: inherit; font-size: 16px; margin-bottom: 6px; } .woMoreBox .flSug { margin: 0; }

/* ---- the bar and its drawer (flow.js): his tools on the bottom row, everything else one slide up */
#flNav { touch-action: none; } #flUp { display: block; width: 100%; height: 14px; border: 0; background: none; padding: 0; cursor: pointer; touch-action: none; } #flUp i { display: block; width: 34px; height: 4px; border-radius: 4px; background: #D9CFBD; margin: 4px auto 0; }
#flNav button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#flDrawer { position: fixed; inset: 0; z-index: 9; font-family: var(--sans); color: var(--ink); } .fdBack { position: absolute; inset: 0; background: rgba(42,36,32,.28); }
.fdCard { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow: auto; background: var(--bg2); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(42,36,32,.22); padding: 0 14px calc(16px + var(--safe-b, 0px)); animation: fdUp .22s ease-out; }
@keyframes fdUp { from { transform: translateY(40%); opacity: .4; } }
.fdHead { display: flex; align-items: center; gap: 10px; padding: 22px 2px 10px; position: sticky; top: 0; background: var(--bg2); touch-action: none; } .fdHead i { position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #D9CFBD; } .fdHead b { flex: 1; font-family: var(--serif); font-size: 21px; font-weight: 600; } .fdHead .flLink { padding: 10px 0; }
.fdGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .fdGrid button { display: grid; justify-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--ink); padding: 14px 4px 10px; min-height: 84px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: center; } .fdGrid button:disabled { opacity: .45; }
#flDrawer svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; } .fdGrid em { font-style: normal; font-size: 11.5px; color: var(--accent); font-weight: 700; }
.fdHint { margin: 0 2px 8px; font-size: 13px; color: var(--ink2); } .fdBar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-bottom: 12px; }
.fdSlot { display: grid; justify-items: center; gap: 4px; border: 1.5px solid var(--accent); border-radius: 14px; background: var(--bg); padding: 8px 2px 4px; min-width: 0; } .fdSlot b { font-size: 11px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fdSlot div { display: flex; } .fdSlot div button { width: 22px; height: 40px; border: 0; background: none; color: var(--ink); font-size: 20px; padding: 0; cursor: pointer; } .fdSlot div button:disabled { opacity: .25; }
@media (min-width: 641px) { .fdCard { left: calc(12px + var(--safe-l, 0px)); right: auto; bottom: 14px; width: 420px; border-radius: 22px; border: 1px solid var(--line); } }
/* ---- one box on a phone: the search bar lives in the sheet with Cami in it */
#flAskMic, #flTip { display: none; }
body.bar-ask #topbar { position: relative; top: auto; left: auto; width: auto; z-index: 2; margin: 10px 0 4px; }
body.bar-ask .searchbox { position: relative; height: 58px; border-radius: 999px; border: 1.5px solid var(--accent); box-shadow: none; padding: 0 6px 0 6px; gap: 6px; }
body.bar-ask #btnMenu, body.bar-ask #btnDirections, body.bar-ask #btnSettings { display: none; } body.bar-ask #camiHome { order: -1; width: 46px; height: 46px; }
body.bar-ask #flAskMic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; } #flAskMic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.bar-ask #results { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); margin: 0; max-height: 46vh; border: 1px solid var(--line); }
body.bar-ask #search:not(:focus)::placeholder { color: transparent; }
body.bar-ask #flTip { display: block; position: absolute; left: 62px; right: 62px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink2); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; } #flTip.out { opacity: 0; }
body.bar-ask .searchbox.typed #flTip, body.bar-ask .searchbox:focus-within #flTip { display: none; }
body.bar-ask.asking #flTop, body.bar-ask.asking #flBody, body.bar-ask.asking #flNav, body.bar-ask.asking #flUp, body.bar-ask.asking #flGrip { display: none !important; } body.bar-ask.asking #fl { bottom: var(--kb, 0px); padding-bottom: 8px; }
body.drawer-open #camiFloat { display: none; } body.drawer-open #pulse { opacity: 0; }

/* ---- today's stops stay pinned on the map (flow.js pins) */
.flStopPin { border: 0; background: none; padding: 0; cursor: pointer; position: relative; display: grid; filter: drop-shadow(0 2px 4px rgba(42,36,32,.35)); } .flStopPin svg { display: block; transform-origin: 50% 100%; transform: scale(.82); } .flStopPin.ps-cross svg, .flStopPin.ps-dot svg { transform-origin: 50% 50%; } .flStopPin.on svg { transform: none; }
.flStopPin b { position: absolute; left: 0; right: 0; top: 13px; text-align: center; font: 700 13px var(--sans); color: var(--accent); } .flStopPin.on b { color: #fff; top: 9px; font-size: 15px; }
.flStopPin.ps-cross b, .flStopPin.ps-dot b { top: -4px; left: auto; right: -5px; min-width: 18px; height: 18px; line-height: 18px; border-radius: 9px; background: var(--accent); color: #fff !important; font-size: 11.5px !important; } .flStopPin.ps-flag b { top: 6px !important; left: 22px; right: 2px; font-size: 11px !important; color: #fff !important; }
body.sketching .flStopPin, body.pinning .flStopPin.on { display: none; }
/* ---- the day view (flow.js openToday) */
.fdDays { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; } .fdDays > button:not(.flLink) { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font-size: 22px; cursor: pointer; } .fdDays > button:disabled { opacity: .35; }
.fdDays label { flex: 1; min-width: 0; } .fdDays label span { position: absolute; left: -9999px; } .fdDays input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); padding: 0 10px; font: inherit; font-size: 16px; }
.fdSum { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin: 0 0 12px; padding: 10px 12px; background: var(--bg3, #F1EADB); border-radius: 12px; font-size: 14px; } .fdSum span { color: var(--ink2); white-space: nowrap; }
.fdStop { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); padding: 12px; } .fdStop header { display: flex !important; gap: 10px; align-items: flex-start; margin-bottom: 6px; } .fdStop header div { display: grid; gap: 1px; min-width: 0; } .fdStop header small { color: var(--ink2); font-size: 12.5px; }
.fdN { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.fdPics { display: flex; align-items: center; gap: 6px; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); color: var(--ink); padding: 6px 10px 6px 6px; margin: 6px 0; cursor: pointer; font: inherit; text-align: left; } .fdPics i { flex: none; width: 46px; height: 46px; border-radius: 8px; background: var(--line) center / cover no-repeat; } .fdPics span { flex: 1; min-width: 0; padding-left: 4px; } .fdPics b { display: block; font-size: 14.5px; } .fdPics small { color: var(--ink2); font-size: 12px; } .fdPics em { font-style: normal; color: var(--ink2); font-size: 20px; }
.fdActs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .fdActs button { min-height: 42px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); color: var(--accent); font: 700 13.5px var(--sans); padding: 0 14px; cursor: pointer; }

/* ---- hold a tile in the drawer to sort it (flow.js sortable): the page loosens up, the held tile lifts */
.fdGrid button { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; position: relative; }
.fdGrid.sorting button:not(.lift) { animation: fdWig .26s ease-in-out infinite alternate; } .fdGrid.sorting button:nth-child(2n):not(.lift) { animation-delay: -.13s; animation-duration: .3s; }
@keyframes fdWig { from { rotate: -1.3deg; } to { rotate: 1.3deg; } }
.fdGrid button.lift { z-index: 5; box-shadow: 0 14px 30px rgba(42,36,32,.28); border-color: var(--accent); background: #fff; transition: box-shadow .15s; touch-action: none; }
@media (prefers-reduced-motion: reduce) { .fdGrid.sorting button:not(.lift) { animation: none; opacity: .7; } }

/* ---- any day can be worked on: the calendar, scope of work (flow.js openCal, editScope) */
#fdCal { flex: 1; min-width: 0; height: 44px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); padding: 0 12px; font: 600 15px var(--sans); cursor: pointer; } #fdCal svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fcMonth { flex: 1; text-align: center; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.fcGrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 4px 0 10px; } .fcGrid em { font-style: normal; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink2); padding-bottom: 2px; }
.fcGrid button { position: relative; aspect-ratio: 1; min-height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: 600 15px var(--sans); cursor: pointer; } .fcGrid button:disabled { opacity: .3; }
.fcGrid button.has { background: var(--accent); color: #fff; border-color: var(--accent); } .fcGrid button.now { box-shadow: 0 0 0 2px var(--bg2), 0 0 0 4px var(--accent); } .fcGrid button.on:not(.has) { border: 2px solid var(--accent); }
.fcGrid small { position: absolute; right: 4px; bottom: 2px; font-size: 9.5px; font-weight: 700; opacity: .85; }
.fdScope { display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-left: 0; border-right: 0; border-radius: 0; background: none; color: var(--ink); padding: 8px 0; margin: 2px 0 6px; font: inherit; cursor: pointer; } .fdScope small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--accent); } .fdScope p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.4; white-space: pre-wrap; } .fdScope.none p { color: var(--ink2); }

/* ---- the version tag: on every screen, so a screenshot says which version it is */
#wfVer { position: fixed; z-index: 60; top: calc(3px + var(--safe-t, 0px)); right: calc(6px + var(--safe-r, 0px)); font: 700 10px/1.5 var(--sans); letter-spacing: .04em; color: var(--ink2); background: rgba(255,253,248,.86); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; pointer-events: none; }
/* ---- duct bank: presets and drag to arrange (sketch.js) */
.bkPre { margin-top: 8px; flex-wrap: wrap; gap: 6px; } .bkPre button { flex: 1 1 auto; border: 1px solid #dfe2e5; background: #fff; border-radius: 999px; padding: 6px 10px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; color: #1d1d1f; }
.bkView { touch-action: none; } .bkCell { cursor: grab; } #skBank.dragging .bkCell.src circle { opacity: .25; } #skBank.dragging .bkCell.aim circle { stroke: #1d1d1f; stroke-width: 2.5; stroke-dasharray: none; }
.bkGhost { position: fixed; z-index: 70; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #fff; border: 2.5px solid #b71c1c; box-shadow: 0 6px 16px rgba(0,0,0,.3); pointer-events: none; } .bkGhost.hidden { display: none; }

/* ---- photos placed on the map (place.js) */
.plPic { position: relative; width: 36px; height: 36px; --h: 0deg; --r: 50px; }
.plCam { position: absolute; inset: 0; border: 2px solid #fff; border-radius: 50%; background: var(--accent); color: #fff; padding: 0; cursor: grab; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(42,36,32,.4); z-index: 2; } .plCam svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plCone { display: none; position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--h)); z-index: 0; } .plPic.aim .plCone { display: block; }
.plCone::before { content: ''; position: absolute; left: -20px; top: calc(-1 * var(--r)); border-left: 20px solid transparent; border-right: 20px solid transparent; border-top: var(--r) solid rgba(47,93,80,.3); }
.plPol { position: absolute; left: 50%; top: 50%; width: 34px; height: 40px; padding: 3px 3px 9px; border: 0; border-radius: 3px; background: #fff; box-shadow: 0 2px 7px rgba(42,36,32,.45); cursor: pointer; touch-action: none; z-index: 1; transform: rotate(var(--h)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--h))) translate(-50%, -50%); }
.plPol span { display: block; width: 100%; height: 100%; background: var(--line) center / cover no-repeat; } .plPic.use .plPol { box-shadow: 0 0 0 2.5px var(--accent), 0 2px 7px rgba(42,36,32,.45); } .plPic.far .plPol span { background: var(--bg3, #F1EADB); }
.plPic.big { --r: 118px; z-index: 4; } .plPic.big .plPol { width: 168px; height: 150px; padding: 6px 6px 22px; }
#plCatch { position: fixed; z-index: 31; width: 240px; background: var(--bg); border: 1.5px solid var(--accent); border-radius: 14px; box-shadow: 0 10px 30px rgba(42,36,32,.28); padding: 10px 12px 10px; display: grid; gap: 6px; font-family: var(--sans); color: var(--ink); } #plCatch b { font-size: 14.5px; } #plCatch small { font-size: 12px; color: var(--ink2); line-height: 1.35; }
#plCatch div { height: 54px; border: 2px dashed var(--accent); border-radius: 10px; background: #fff; outline: 0; caret-color: transparent; cursor: context-menu; } #plCatch button { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 20px; color: var(--ink2); cursor: pointer; }
.plFar { background: var(--bg3, #F1EADB); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; color: var(--ink2); margin: 0 0 8px; }
#plMenu { position: fixed; z-index: 30; min-width: 200px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(42,36,32,.25); padding: 5px; display: grid; } #plMenu button { border: 0; background: none; text-align: left; padding: 11px 12px; border-radius: 10px; font: 600 14.5px var(--sans); color: var(--ink); cursor: pointer; } #plMenu button:hover { background: var(--bg2); }
.plImg { display: block; max-width: 100%; max-height: 132px; width: auto; height: auto; margin: 0 auto 8px; border-radius: 10px; box-shadow: 0 1px 4px rgba(42,36,32,.25); } #plWhere span { opacity: .8; }
.plRow { display: grid; grid-template-columns: 1.25fr 1.15fr .8fr; gap: 8px; } .plRow input { min-width: 0; padding-left: 8px !important; padding-right: 6px !important; }
.plDirs { display: grid; grid-template-columns: repeat(3, 46px); gap: 5px; } .plDirs button { height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 700 13px var(--sans); cursor: pointer; } .plDirs button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.plUse { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--accent); border-radius: 14px; padding: 11px 12px; margin: 4px 0 12px; cursor: pointer; } .plUse input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; } .plUse b { display: block; font-size: 15px; } .plUse small { color: var(--ink2); font-size: 12.5px; line-height: 1.35; display: block; }
#flDayPill { position: fixed; z-index: 6; top: calc(66px + var(--safe-t, 0px)); left: 50%; transform: translateX(-50%); border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 700 13px var(--sans); padding: 9px 16px; box-shadow: 0 4px 14px rgba(42,36,32,.25); cursor: pointer; white-space: nowrap; } body.sketching #flDayPill, body.sketching .plPic, body.pinning .plPic { display: none; }
@media (max-width: 640px) { #flDayPill { top: calc(10px + var(--safe-t, 0px)); } }

/* ---- pin styles (flow.js pinArt): .pf fill, .pl line, .pr ring, .ph halo, .pd / .pc dots */
.flPinMark .pf, .flStopPin.on .pf { fill: var(--accent); stroke: #fff; stroke-width: 2; } .flStopPin .pf { fill: var(--bg); stroke: var(--accent); stroke-width: 2.5; } .flStopPin.ps-flag .pf, .flStopPin.ps-dot .pf { fill: var(--accent); stroke: #fff; }
.pl { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; } .pr { fill: rgba(255,253,248,.45); stroke: var(--accent); stroke-width: 3; } .ph { fill: var(--accent); opacity: .2; } .pd { fill: #fff; } .pc { fill: var(--accent); } .flStopPin .pd { display: none; }
.flStopPin.on .pr { stroke-width: 4.5; } .flStopPin.on .ph { opacity: .38; }
.flGrip { display: grid; justify-items: center; height: 74px; } .flGrip::before { content: ''; width: 2px; height: 30px; background: var(--accent); opacity: .7; } .flGrip i { width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--accent); box-shadow: inset 0 0 0 6px var(--bg), inset 0 0 0 9px rgba(47,93,80,.25); }
.flPinMark.ps-cross.grip .flGrip, .flPinMark.ps-dot.grip .flGrip { margin-top: -23px; height: 97px; } .flPinMark.ps-cross.grip .flGrip::before, .flPinMark.ps-dot.grip .flGrip::before { height: 53px; opacity: .45; } .flPinMark.ps-dot.grip .flGrip { margin-top: -19px; height: 93px; } .flPinMark.ps-dot.grip .flGrip::before { height: 49px; }
#fpnStyle { display: block; margin-top: 8px; }
.fpStyles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .fpStyles button { display: grid; justify-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--ink); padding: 16px 8px 12px; font: inherit; cursor: pointer; } .fpStyles button.on { border: 2px solid var(--accent); background: #fff; } .fpStyles b { font-size: 15px; } .fpStyles small { font-size: 12px; color: var(--ink2); text-align: center; line-height: 1.3; } .fpStyles .flPinMark { height: 52px; align-content: end; cursor: inherit; }

.fdPics i.far { background: var(--bg3, #F1EADB); box-shadow: inset 0 0 0 1px var(--line); position: relative; } .fdPics i.far::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 20px; margin: -10px 0 0 -6px; border: 1.5px solid var(--ink2); border-radius: 3px; opacity: .6; }

/* ---- day view: tap a location's header and the map goes to it; Remove on every card */
.fdStop header.go { cursor: pointer; border-radius: 10px; } .fdStop header.go:hover { background: var(--bg2); } .fdStop.at { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.fdActs button.rm { color: var(--ink2); margin-left: auto; }
#drvAuto { display: block; width: 100%; margin-top: 10px; min-height: 48px; border: 0; background: none; color: var(--ink2); font: 600 13.5px var(--sans); text-decoration: underline; cursor: pointer; }

/* ---- setup: Cami has the floor (flow.js step / suCami). Her words come out of her as a blurb and type themselves. */
.suWrap main { padding-top: 11vh; } .suWrap main.hello { padding-top: 26vh; text-align: center; }
.suSay { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px 16px; margin: 0 0 20px; box-shadow: 0 6px 22px rgba(42,36,32,.08); cursor: default; }
.suSay::before { content: ''; position: absolute; width: 16px; height: 16px; background: var(--bg); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); left: -9px; top: 36px; transform: rotate(45deg); }
.suSay .suSub { margin: 0; } .suSay h1 { margin-bottom: 8px; } main.hello .suSay { padding: 26px 24px 22px; } main.hello .suSay h1 { font-size: 40px; } main.hello .suSay .suSub { font-size: 17px; }
main.hello .suSay::before { left: 50%; top: -9px; margin-left: -8px; transform: rotate(135deg); }
@media (max-width: 760px) { .suWrap main { padding-top: 96px; } .suWrap main.hello { padding-top: 30vh; } .suSay::before { left: 32px; top: -9px; transform: rotate(135deg); } }
.suSay .tw { display: inline-block; white-space: nowrap; } .suSay .tw i { font-style: normal; }
main.fresh .suSay { animation: suPop .42s cubic-bezier(.2,1.3,.4,1) .12s both; transform-origin: 0 40px; } main.fresh.hello .suSay { transform-origin: 50% 0; }
main.fresh .suSay .tw i { opacity: 0; animation: suType .01s linear forwards; } main.fresh .suBody { opacity: 0; animation: suIn .45s ease forwards; animation-delay: var(--t, 0ms); }
@keyframes suPop { from { opacity: 0; transform: scale(.82); } } @keyframes suType { to { opacity: 1; } } @keyframes suIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main.fresh .suSay, main.fresh .suSay .tw i, main.fresh .suBody { animation: none; opacity: 1; } }
.suJob { padding: 0 6px 0 0 !important; } .suJobGo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 12px 6px 12px 14px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; border-radius: 12px; } .suJobGo:hover { background: var(--bg2); }
.suJobGo span { flex: 1; min-width: 0; color: var(--ink2); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .suJobGo em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--accent); text-decoration: underline; }
.pjWoRow { margin: 0; } .pjForm > .flLink { display: inline-block; margin: 2px 0 12px; }

/* ---- Settings (settings.js): a list of pages on the left, the page on the right; on a phone one at a time ---- */
#st { position: fixed; inset: 0; z-index: 48; background: rgba(42,36,32,.34); display: flex; align-items: center; justify-content: center; font-family: var(--sans); color: var(--ink); }
.stWin { width: min(980px, calc(100vw - 48px)); height: min(720px, calc(100vh - 64px)); background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 60px rgba(42,36,32,.3); display: grid; grid-template-columns: 264px 1fr; overflow: hidden; }
.stSide { background: var(--sand); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.stSide header, .stMain header { display: flex; align-items: center; gap: 8px; padding: 16px 14px 10px 18px; }
.stSide h2, .stMain h2 { flex: 1; margin: 0; font: 600 21px/1.2 var(--serif); }
.stSide .stX { display: none; }
.stX, .stBack { width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.stBack { display: none; }
.stFind { display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; padding: 0 12px; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.stFind svg, #stNav svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stFind svg { color: var(--ink2); } .stFind input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
#stNav { flex: 1; overflow-y: auto; padding: 0 8px 14px; -webkit-overflow-scrolling: touch; }
#stNav h4 { margin: 14px 10px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
#stNav button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; border: 0; border-radius: 12px; background: none; padding: 8px 10px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
#stNav button svg { color: var(--accent); } #stNav button span { flex: 1; } #stNav button i { display: none; font-style: normal; font-size: 20px; color: var(--ink2); }
#stNav button:hover { background: rgba(255,253,248,.7); } #stNav button.on { background: var(--accent); color: var(--accent-ink); } #stNav button.on svg { color: var(--accent-ink); }
.stMain { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.stMain header { padding: 16px 16px 10px 24px; border-bottom: 1px solid var(--line); }
#stBody { flex: 1; overflow-y: auto; padding: 16px 24px 28px; -webkit-overflow-scrolling: touch; }
.stCard { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.stCard > h3 { margin: 0 0 6px; font: 600 17px/1.25 var(--serif); } .stCard h3.sec:first-child { margin-top: 0; }
.stHint { margin: 0 0 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink2); } .stNone { padding: 14px 10px; }
.stRow { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); min-height: 44px; }
.stCard > h3 + .stRow, .stCard > .stRow:first-child, .stHint + .stRow { border-top: 0; }
.stRow > div { flex: 1; min-width: 0; } .stRow b { font-weight: 600; font-size: 15px; } .stRow small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--ink2); }
.stRow > span { flex: none; max-width: 56%; text-align: right; font-size: 14.5px; color: var(--ink2); overflow-wrap: anywhere; } .stRow > span b { color: var(--ink); } .stRow em { font-style: normal; color: var(--ink2); opacity: .8; } .stWarn { color: var(--hot) !important; opacity: 1 !important; }
.stSw { cursor: pointer; } .stSw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stSw i { flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; }
.stSw i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(42,36,32,.3); transition: transform .15s; }
.stSw input:checked + i { background: var(--accent); } .stSw input:checked + i::after { transform: translateX(20px); } .stSw input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; } .stSw input:disabled + i { opacity: .5; }
.stList { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--ink2); } .stList li { margin: 4px 0; } .stList b { color: var(--ink); }
.stChips { display: flex; flex-wrap: wrap; gap: 6px; } .stChips span { border: 1px solid var(--line); background: var(--sand); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; }
.stEnd { display: flex; justify-content: flex-end; margin: 4px 0 8px; } .stCard .row { margin-top: 10px; } .stCard .toggle { font-size: 15px; } .stCard .fpStyles { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 759px) {
  #st { background: var(--bg2); align-items: stretch; }
  .stWin { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; display: block; position: relative; }
  .stSide, .stMain { position: absolute; inset: 0; border: 0; background: var(--bg2); padding-bottom: var(--safe-b, 0px); }
  .stSide header, .stMain header { padding: calc(24px + var(--safe-t, 0px)) 14px 10px 16px; }
  .stSide .stX { display: block; } .stMain { display: none; } .stBack { display: block; }
  #st.st-detail .stSide { display: none; } #st.st-detail .stMain { display: flex; }
  #stNav { padding: 0 12px 20px; } #stNav h4 { margin-top: 18px; }
  #stNav button { background: var(--bg); border: 1px solid var(--line); border-radius: 0; border-top-width: 0; min-height: 52px; padding: 10px 14px; } #stNav button i { display: block; }
  #stNav h4 + button { border-top-width: 1px; border-radius: 14px 14px 0 0; } #stNav button:has(+ h4), #stNav button:last-child { border-radius: 0 0 14px 14px; } #stNav h4 + button:has(+ h4), #stNav h4 + button:last-child { border-radius: 14px; }
  #stNav button.on { background: var(--bg); color: var(--ink); } #stNav button.on svg { color: var(--accent); }
  #stBody { padding: 14px 14px 28px; } .stCard .fpStyles { grid-template-columns: 1fr 1fr; } .stRow > span { max-width: 50%; }
}
body.st-open #camiFloat { display: none; } body.st-open #pulse { opacity: 0; }

body.drawer-open.cami-show #pulse { opacity: 1; } /* she is showing how: she presses the tile herself */

/* Why Google wouldn't sign him in (photos.js noGoogle): the explainer under Today's photos */
.phWhy { background: var(--sand); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.phWhy h4 { margin: 0 0 6px; font: 600 15.5px/1.3 var(--serif); color: var(--ink); }
.phWhy p, .phWhy ul { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
.phWhy ul { padding-left: 18px; } .phWhy li { margin: 3px 0; }
.phWhy p:last-child { margin-bottom: 0; } .phWhy b { color: var(--ink); }

/* ---- The field book's cover (book.js): the front door and the lock. Drawn at 300 x 480 and scaled to the screen (--k). ---- */
@font-face { font-family: 'Kalam'; font-weight: 400; font-display: swap; src: url('assets/fonts/hand/kalam-400.woff2') format('woff2'); }
@font-face { font-family: 'Kalam'; font-weight: 700; font-display: swap; src: url('assets/fonts/hand/kalam-700.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-weight: 400; font-display: swap; src: url('assets/fonts/hand/caveat-400.woff2') format('woff2'); }
@font-face { font-family: 'Patrick Hand'; font-weight: 400; font-display: swap; src: url('assets/fonts/hand/patrick-hand-400.woff2') format('woff2'); }
@font-face { font-family: 'Architects Daughter'; font-weight: 400; font-display: swap; src: url('assets/fonts/hand/architects-daughter-400.woff2') format('woff2'); }
@font-face { font-family: 'Shadows Into Light'; font-weight: 400; font-display: swap; src: url('assets/fonts/hand/shadows-into-light-400.woff2') format('woff2'); }
@font-face { font-family: 'Indie Flower'; font-weight: 400; font-display: swap; src: url('assets/fonts/hand/indie-flower-400.woff2') format('woff2'); }
@font-face { font-family: 'Gochi Hand'; font-weight: 400; font-display: swap; src: url('assets/fonts/hand/gochi-hand-400.woff2') format('woff2'); }
@font-face { font-family: 'Reenie Beanie'; font-weight: 400; font-display: swap; src: url('assets/fonts/hand/reenie-beanie-400.woff2') format('woff2'); }
@font-face { font-family: 'Nanum Pen Script'; font-weight: 400; font-display: swap; src: url('assets/fonts/hand/nanum-pen-script-400.woff2') format('woff2'); }
@font-face { font-family: 'Permanent Marker'; font-weight: 400; font-display: swap; src: url('assets/fonts/hand/permanent-marker-400.woff2') format('woff2'); }
@font-face { font-family: 'Rock Salt'; font-weight: 400; font-display: swap; src: url('assets/fonts/hand/rock-salt-400.woff2') format('woff2'); }
@font-face { font-family: 'Homemade Apple'; font-weight: 400; font-display: swap; src: url('assets/fonts/hand/homemade-apple-400.woff2') format('woff2'); }
@font-face { font-family: 'Special Elite'; font-weight: 400; font-display: swap; src: url('assets/fonts/hand/special-elite-400.woff2') format('woff2'); }
@font-face { font-family: 'Courier Prime'; font-weight: 400; font-display: swap; src: url('assets/fonts/hand/courier-prime-400.woff2') format('woff2'); }
:root { --hand: 'Kalam', 'Segoe Print', 'Bradley Hand', cursive; --pen: #2B3A67; }
html.book-boot body::before { content: ''; position: fixed; inset: 0; z-index: 57; background: var(--bg2); } /* cream from the first paint, so the map never flashes before the cover is up */
#bk { position: fixed; inset: 0; z-index: 58; background: radial-gradient(ellipse at 50% 38%, #FBF7EE, var(--bg2) 62%, #EFE7D6); display: flex; align-items: center; justify-content: center; font-family: var(--sans); transition: opacity .42s ease; overflow: hidden; }
#bk.out { opacity: 0; pointer-events: none; }
.bkStage { width: calc(300px * var(--k, 1)); height: calc(480px * var(--k, 1)); perspective: 1700px; perspective-origin: 30% 50%; }
.bkBook { width: 300px; height: 480px; position: relative; transform: scale(var(--k, 1)); transform-origin: 0 0; transform-style: preserve-3d; }
.bkInside { position: absolute; inset: 0; border-radius: 7px 13px 13px 7px; background-color: #FFFEFA; background-image: linear-gradient(90deg, transparent 33px, #E3A3A3 33px, #E3A3A3 34px, transparent 34px), repeating-linear-gradient(transparent 0 23px, #BCD6EC 23px 24px); box-shadow: inset 14px 0 16px -10px rgba(42,36,32,.4), 0 12px 26px rgba(42,36,32,.28); }
.bkInside b { position: absolute; left: 150px; right: 14px; top: 150px; font: 700 25px/31px var(--hand); color: var(--pen); }
.bkCover { position: absolute; inset: 0; transform-origin: 0 50%; transition: transform .7s cubic-bezier(.5,0,.25,1); backface-visibility: hidden; filter: drop-shadow(0 14px 18px rgba(42,36,32,.36)); }
#bk.open .bkCover { transform: rotateY(-108deg); }
#bk.open .bkStrap { transition: transform .2s ease-in, opacity .2s; transform: translateX(46px); opacity: 0; }
.bkSkin { position: absolute; inset: 0; width: 300px; height: 480px; display: block; }
.bkPlate { position: absolute; left: 36px; right: 22px; top: 116px; min-height: 118px; box-sizing: border-box; background: #FFFDF8 radial-gradient(rgba(120,100,60,.05) 1px, transparent 1.4px) 0 0 / 3px 3px; border-radius: 6px; padding: 11px 14px 12px; box-shadow: 0 1px 1px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.08); color: var(--pen); font-family: var(--hand); }
.bkPlate small { display: block; font: 700 9.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); margin-bottom: 3px; }
.bkPlate b { display: block; font-size: calc(27px * var(--hs, 1) * var(--ps, 1)); line-height: calc(33px * var(--ps, 1)); font-weight: 700; overflow-wrap: anywhere; }
.bkPlate span { display: block; font-size: calc(14.5px * var(--hs, 1) * var(--ps, 1)); line-height: calc(20px * var(--ps, 1)); } .bkPlate span.co { font-weight: 700; }
.bkPlate.blank i { display: block; height: 25px; border-bottom: 1.5px solid #BCD6EC; }
.bkCyc { position: absolute; left: 36px; right: 22px; top: 246px; height: 64px; text-align: center; color: #EAD9A6; text-shadow: 0 1px 1px rgba(0,0,0,.5); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bkLine { opacity: 0; } .bkLine.in { animation: bkIn .45s ease both; }
@keyframes bkIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bkLine b { display: block; font: 600 16px/1.3 var(--serif); } .bkLine span { display: block; font: 500 12.5px/1.5 var(--sans); opacity: .94; }
.bkDots { display: flex; justify-content: center; gap: 5px; margin-top: 7px; } .bkDots i { width: 5px; height: 5px; border-radius: 50%; background: #EAD9A6; opacity: .3; } .bkDots i.on { opacity: 1; }
.bkStrap { position: absolute; left: 0; right: 0; top: 322px; height: 56px; filter: drop-shadow(0 4px 5px rgba(0,0,0,.45)); }
.bkStrap svg { display: block; width: 300px; height: 56px; }
.bkSnap { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border: 0; border-radius: 50%; cursor: pointer; background: radial-gradient(circle at 34% 28%, #FFF3C4, #E2C067 30%, #C9A24B 58%, #7E6020 88%, #5C4515); box-shadow: 0 4px 8px rgba(0,0,0,.55), inset 0 0 0 2.5px rgba(255,255,255,.28), inset 0 -3px 5px rgba(60,40,5,.5); display: flex; align-items: center; justify-content: center; transition: transform .12s; -webkit-tap-highlight-color: transparent; }
.bkSnap:active { transform: scale(.94); } .bkSnap:focus-visible { outline: 3px solid #FFF3C4; outline-offset: 3px; }
.bkSnap svg { width: 32px; height: 32px; fill: none; stroke: #3A2C10; stroke-width: 1.6; stroke-linecap: round; }
.bkStrap.no, .bkTag.no { animation: bkNo .38s ease; }
@keyframes bkNo { 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-4px); } 100% { transform: none; } }
.bkTag { position: absolute; left: 36px; right: 22px; top: 304px; background: #FFFDF8; border-radius: 6px; padding: 9px 13px 10px; box-shadow: 0 1px 1px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 7px; }
.bkTag.two { top: 250px; } .bkTag[hidden], .bkNew[hidden], .bkStrap[hidden], .bkTag label[hidden], .bkCyc[hidden] { display: none; }
.bkTag label span { display: block; font: 700 9.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); margin-bottom: 4px; }
.bkTag input { width: 100%; box-sizing: border-box; height: 36px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; padding: 0 11px; font: 16px var(--sans); color: var(--ink); }
.bkTag input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.bkGo, .bkNew button { height: 40px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 14.5px var(--sans); cursor: pointer; }
.bkNew { position: absolute; left: 36px; right: 22px; top: 322px; display: flex; flex-direction: column; gap: 9px; }
.bkNew button { background: #FFFDF8; color: var(--accent); height: 46px; font-size: 15px; } .bkNew button.ghost { background: none; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.bkMsg { position: absolute; left: 30px; right: 18px; top: 388px; min-height: 17px; text-align: center; font: 600 12.5px/1.4 var(--sans); color: #EAD9A6; text-shadow: 0 1px 1px rgba(0,0,0,.5); pointer-events: none; }
.bkMsg.bad { color: #FFD9CF; } .bkTag:not([hidden]) ~ .bkMsg { top: auto; bottom: 38px; }
.bkLinks { position: absolute; left: 24px; right: 12px; bottom: 8px; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; color: #EAD9A6; }
.bkLinks button { border: 0; background: none; padding: 6px 2px; font: 600 12.5px var(--sans); color: #EAD9A6; text-decoration: underline; text-shadow: 0 1px 1px rgba(0,0,0,.5); cursor: pointer; } .bkLinks i { font-style: normal; opacity: .7; }
@media (prefers-reduced-motion: reduce) { .bkCover { transition-duration: .01s; } .bkLine.in { animation: none; opacity: 1; } }

/* ---- The open field book (pages.js): the welcome page on ruled paper, where-you-are on the grid ---- */
#pg { position: fixed; inset: 0; z-index: 47; background: #E9E0CE; font-family: var(--sans); color: var(--ink); display: flex; flex-direction: column; padding: var(--safe-t) var(--safe-r) 0 var(--safe-l); }
.pgSpread { flex: 1; min-height: 0; display: flex; }
.pgPage { position: relative; flex: 1 1 50%; box-sizing: border-box; min-width: 0; overflow: auto; -webkit-overflow-scrolling: touch; background-color: var(--bg2); }
.pgL { padding: 30px 18px 20px 46px; background-image: linear-gradient(90deg, transparent 33px, rgba(176,72,60,.34) 33px, rgba(176,72,60,.34) 34px, transparent 34px), repeating-linear-gradient(180deg, transparent 0 27px, rgba(63,95,138,.17) 27px 28px); background-attachment: local; }
.pgR { overflow: hidden; display: flex; flex-direction: column; }
#pg:not(.wide)[data-side="L"] .pgR, #pg:not(.wide)[data-side="R"] .pgL { display: none; }
#pg.wide { padding: 26px 30px 26px; }
#pg.wide .pgSpread { max-width: 1180px; width: 100%; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(42,36,32,.28), 0 2px 0 #CFC4AE; }
#pg.wide .pgL { box-shadow: inset -22px 0 26px -18px rgba(42,36,32,.3); }
#pg.wide .pgR { box-shadow: inset 22px 0 26px -18px rgba(42,36,32,.3); }
#pg.wide .pgSwitch { display: none; }
.pgTop small { font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.pgTop h2 { margin: 6px 0 14px; font: 600 27px/1.12 var(--serif); color: var(--ink); }
.pgSec { margin: 0 0 20px; }
.pgSec header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.pgSec header b { font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.pgSec header i { font: 500 12px/1 var(--sans); font-style: normal; color: var(--ink2); }
.pgSec header button, .pgLink { border: 0; background: none; padding: 8px 2px; font: 600 13px/1 var(--sans); color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pgHand { margin: 0; font: 400 calc(21px * var(--hs, 1))/var(--lh, 28px) var(--hand); color: var(--pen); }
.pgHand b { font-weight: 700; }
.pgHint { margin: 0; font: 400 14px/1.45 var(--sans); color: var(--ink2); }
.pgNotes { display: flex; flex-wrap: wrap; gap: 12px 14px; padding: 4px 2px; }
.pgNote { position: relative; width: 132px; min-height: 92px; padding: 10px 10px 8px; background: #F6E58D; box-shadow: 0 5px 9px -3px rgba(42,36,32,.34); transform: rotate(var(--r)); display: flex; flex-direction: column; }
.pgNote:nth-child(2n) { background: #F4C7B8; } .pgNote:nth-child(3n) { background: #CFE3C4; }
.pgNote p { margin: 0 18px 6px 0; font: 400 calc(17px * var(--hs, 1))/1.15 var(--hand); color: #2A2420; flex: 1; overflow-wrap: anywhere; }
.pgNote small { font: 600 10px/1.2 var(--sans); letter-spacing: .04em; color: rgba(42,36,32,.66); }
.pgNote button { position: absolute; top: 2px; right: 2px; width: 30px; height: 30px; border: 0; background: none; color: rgba(42,36,32,.6); font-size: 15px; cursor: pointer; }
.pgAdd { margin-top: 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.pgAdd input, .pgAdd select, #pgScratch { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 11px 12px; font: 400 16px/1.3 var(--sans); color: var(--ink); }
.pgAdd > div { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pgAdd select { flex: 1 1 110px; width: auto; padding: 9px 8px; font-size: 14px; }
.pgAdd button, .pgChips button, .pgDone { border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 999px; padding: 10px 16px; font: 600 14px/1 var(--sans); cursor: pointer; }
.pgAdd button.ghost, .pgChips button { background: var(--bg2); color: var(--accent); border-color: var(--line); }
#pgScratch { font: 400 calc(19px * var(--hs, 1))/var(--lh, 28px) var(--hand); color: var(--pen); background: rgba(255,253,248,.6); resize: vertical; }
.pgChips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pgChips.big button { flex: 1; padding: 16px 10px; border-radius: 14px; font-size: 15px; }
.pgRow { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 0 0 6px; cursor: pointer; }
.pgRow .pgHand { display: block; } .pgRow small { font: 400 13px/1.3 var(--sans); color: var(--ink2); }
.pgBooks { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; }
.pgBook { flex: 0 0 86px; height: 118px; border: 0; border-radius: 4px 9px 9px 4px; background: linear-gradient(90deg, rgba(0,0,0,.3), rgba(0,0,0,.08) 7px, rgba(255,255,255,.12) 9px, transparent 12px), var(--t, none) center/cover, var(--c); color: #fff; padding: 12px 8px 8px 16px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 5px 10px -3px rgba(42,36,32,.4); cursor: pointer; }
.pgBook b { font: 700 13px/1.2 var(--sans); overflow-wrap: anywhere; } .pgBook small { font: 500 11px/1.2 var(--sans); opacity: .86; }
.pgBook.new { background: none; border: 2px dashed #B9AD96; box-shadow: none; color: var(--ink2); font: 600 12px/1.35 var(--sans); justify-content: center; text-align: center; padding: 8px; }
.pgFoot { margin-top: 8px; padding-bottom: 76px; text-align: center; }
#pg.wide .pgFoot { padding-bottom: 8px; }
.pgEdit { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.pgE { display: flex; align-items: center; gap: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 6px 10px 6px 4px; }
.pgE.off b { color: var(--ink2); font-weight: 500; } .pgE.lift { box-shadow: 0 10px 22px rgba(42,36,32,.24); transform: scale(1.02); }
.pgE b { flex: 1; font: 600 15px/1.2 var(--sans); }
.pgE .grip { width: 40px; height: 44px; display: grid; place-items: center; font-size: 20px; color: var(--ink2); cursor: grab; touch-action: none; user-select: none; }
.pgE .mv button { width: 36px; height: 40px; border: 0; background: none; color: var(--ink2); font-size: 16px; cursor: pointer; }
.pgSw { position: relative; width: 46px; height: 28px; flex: none; } .pgSw input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.pgSw i { position: absolute; inset: 0; border-radius: 999px; background: #CFC4AE; transition: background .15s; pointer-events: none; } .pgSw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.pgSw input:checked + i { background: var(--accent); } .pgSw input:checked + i::after { transform: translateX(18px); } .pgSw input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 2px; }
.pgWx { position: absolute; top: 12px; right: 44px; height: 26px; min-width: 96px; pointer-events: none; }
.pgWx span { position: absolute; right: 0; top: 0; white-space: nowrap; background: rgba(255,253,248,.92); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font: 600 12px/1.2 var(--sans); color: var(--ink); opacity: 0; animation: pgWx 12s infinite; }
.pgWx span:nth-child(2) { animation-delay: 4s; } .pgWx span:nth-child(3) { animation-delay: 8s; }
.pgWx span:only-child { opacity: 1; animation: none; }
@keyframes pgWx { 0%, 3% { opacity: 0; } 6%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
.pgMapWrap { position: absolute; inset: 0; } #pgMap { position: absolute; inset: 0; opacity: .78; } #pgMap.none { display: none; }
.pgGridOver { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(63,95,138,.34) 1px, transparent 1px), linear-gradient(90deg, rgba(63,95,138,.34) 1px, transparent 1px), linear-gradient(rgba(63,95,138,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(63,95,138,.13) 1px, transparent 1px); background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px; background-color: rgba(255,253,248,.3); }
.pgDot { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 7px rgba(47,93,80,.2), 0 2px 5px rgba(0,0,0,.3); }
.pgHere { position: relative; align-self: flex-start; margin: 46px 16px 0; max-width: calc(100% - 32px); background: rgba(255,253,248,.95); border: 1px solid var(--line); border-radius: 14px; padding: 9px 13px; box-shadow: 0 4px 12px rgba(42,36,32,.14); }
.pgHere small { display: block; font: 700 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); margin-bottom: 4px; }
.pgHere b { display: block; font: 700 15px/1.25 var(--sans); } .pgHere span { font: 400 13px/1.3 var(--sans); color: var(--ink2); }
.pgMapBtn { position: relative; align-self: flex-start; margin: 8px 16px 0; border: 1px solid var(--line); background: rgba(255,253,248,.95); color: var(--accent); border-radius: 999px; padding: 9px 14px; font: 600 13px/1 var(--sans); cursor: pointer; }
.pgPlusWrap { position: relative; margin-top: auto; padding: 0 16px 88px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
#pg.wide .pgPlusWrap { padding-bottom: 28px; }
.pgPlus { width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 22px rgba(47,93,80,.42); cursor: pointer; }
.pgPlus svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; } .pgPlus:disabled { opacity: .6; }
.pgPlusLab { font: 700 15px/1.2 var(--sans); background: rgba(255,253,248,.95); border-radius: 999px; padding: 6px 12px; }
.pgLink.dk { background: rgba(255,253,248,.95); border-radius: 999px; padding: 8px 12px; }
.pgSwitch { position: absolute; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translateX(-50%); display: flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: 0 6px 18px rgba(42,36,32,.22); }
.pgSwitch button { border: 0; background: none; border-radius: 999px; padding: 11px 18px; font: 600 14px/1 var(--sans); color: var(--ink2); cursor: pointer; white-space: nowrap; } .pgSwitch button.on { background: var(--accent); color: #fff; }
#pgTab { position: fixed; z-index: 6; left: 0; top: 38%; border: 1px solid var(--line); border-left: 0; background: var(--bg2); color: var(--accent); border-radius: 0 14px 14px 0; padding: 10px 9px 8px 7px; display: flex; flex-direction: column; align-items: center; gap: 3px; font: 700 10px/1 var(--sans); box-shadow: 0 4px 12px rgba(42,36,32,.18); cursor: pointer; }
#pgTab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
body.pg-open #pgTab, body.sketching #pgTab:not(.notes) { display: none; }
#pgTab.notes { z-index: 8; background: var(--accent); color: #fff; border-color: var(--accent); }
#pg button:focus-visible, #pgTab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .pgWx span { animation: none; opacity: 0; } .pgWx span:first-child { opacity: 1; } }
/* the notes page (stage 3): one location, one day, headed contractor / project number / date / location / weather */
#pg.away { display: none; }
.pgL.turn { animation: pgTurn .42s ease-out; transform-origin: right center; }
@keyframes pgTurn { from { transform: perspective(1400px) rotateY(-70deg); opacity: .3; } to { transform: none; opacity: 1; } }
.pgL.ent { padding-top: 44px; }
.pgBar { display: flex; align-items: center; gap: 10px; margin: 0 0 10px -4px; }
.pgBar span { flex: 1; }
.pgPill { border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 999px; padding: 9px 14px; font: 600 13px/1 var(--sans); cursor: pointer; }
.pgHd { display: block; width: 100%; text-align: left; border: 0; border-bottom: 2px solid rgba(42,36,32,.5); background: none; padding: 0 0 4px; margin: 0 0 10px; cursor: pointer; color: inherit; }
.pgF { display: flex; align-items: baseline; gap: 8px; min-height: var(--lh, 28px); }
.pgF small { flex: 0 0 106px; white-space: nowrap; font: 700 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.pgF b { flex: 1; min-width: 0; font: 700 calc(20px * var(--hs, 1))/var(--lh, 28px) var(--hand); color: var(--pen); overflow-wrap: anywhere; }
.pgF b.none, .pgHand.none { font: 400 14px/var(--lh, 28px) var(--sans); color: var(--ink2); }
.pgHdForm label { display: block; font: 600 12px/1.2 var(--sans); color: var(--ink2); margin-bottom: 8px; } .pgHdForm label input { margin-top: 4px; }
.pgAdd textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 10px 12px; font: 400 16px/1.4 var(--sans); color: var(--ink); resize: vertical; }
.pgAdd input + input, .pgAdd select + input, .pgAdd input[hidden] + input { margin-top: 8px; } .pgAdd select#pgWhoRole { width: 100%; }
.pgScope { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 0; margin: 0 0 8px; cursor: pointer; }
.pgScope small { display: block; font: 700 10px/var(--lh, 28px) var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.pgScope .pgHand { display: block; }
.pgLn { position: relative; display: flex; gap: 6px; align-items: flex-start; min-height: var(--lh, 28px); }
.pgLn time { position: absolute; left: -44px; top: 0; width: 40px; text-align: right; font: 600 9.5px/var(--lh, 28px) var(--sans); color: var(--ink2); white-space: nowrap; letter-spacing: -.02em; }
.pgLn.noTm time { display: none; }
.pgLn[data-a="noteTime"] { cursor: pointer; }
.pgLn .pgStamp { position: absolute; left: 0; top: calc(100% - 4px); z-index: 2; background: var(--ink); color: #fff; font: 600 11.5px/1.3 var(--sans); padding: 4px 9px; border-radius: 8px; white-space: nowrap; box-shadow: 0 4px 10px rgba(42,36,32,.2); }
.pgLn .pgStamp[hidden] { display: none; }
.pgLn p { flex: 1; margin: 0; font: 400 calc(21px * var(--hs, 1))/var(--lh, 28px) var(--hand); color: var(--pen); overflow-wrap: anywhere; white-space: pre-wrap; }
.pgLn > button[data-a="delTalk"] { flex: none; width: 32px; height: 28px; border: 0; background: none; color: rgba(42,36,32,.45); font-size: 13px; cursor: pointer; }
.pgPics { display: flex; align-items: center; gap: 4px; border: 0; background: none; padding: 6px 0 10px; cursor: pointer; }
.pgPics i { width: 64px; height: 64px; background: #DDD3BF center/cover; border: 4px solid #fff; border-bottom-width: 9px; box-shadow: 0 4px 8px -2px rgba(42,36,32,.4); transform: rotate(var(--r)); margin-right: -10px; }
.pgPics i.far { background-image: repeating-linear-gradient(45deg, #E6DDCA 0 6px, #DDD3BF 6px 12px); }
.pgPics span { margin-left: 18px; font: 600 13px/1 var(--sans); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pgWrite { margin-top: 12px; background: rgba(255,253,248,.92); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.pgWrite textarea { width: 100%; box-sizing: border-box; border: 0; background: none; padding: 4px 6px; font: 400 calc(20px * var(--hs, 1))/var(--lh, 28px) var(--hand); color: var(--pen); resize: none; outline: none; }
.pgWrite > div { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pgWrite button, .pgBig { border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 999px; padding: 10px 14px; font: 600 14px/1 var(--sans); cursor: pointer; }
.pgWrite button.ghost { background: var(--bg2); color: var(--accent); border-color: var(--line); } .pgWrite button.on { background: var(--hot); border-color: var(--hot); color: #fff; }
.pgBig { padding: 16px 24px; font-size: 16px; box-shadow: 0 10px 22px rgba(47,93,80,.42); }
.pgSlip { position: relative; margin: 0 0 12px; padding: 10px 12px 6px; background: #FFF6C9; border-left: 4px solid #D9B93B; box-shadow: 0 4px 9px -4px rgba(42,36,32,.4); transform: rotate(-.6deg); }
.pgSlip small { font: 700 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(42,36,32,.66); } .pgSlip p { margin: 6px 0 0; font: 400 calc(19px * var(--hs, 1))/1.25 var(--hand); color: #2A2420; white-space: pre-wrap; overflow-wrap: anywhere; }
.pgSheet { position: fixed; inset: 0; z-index: 2; background: rgba(42,36,32,.34); display: flex; align-items: flex-end; justify-content: center; }
.pgSheetIn { width: min(520px, 100%); max-height: 86vh; overflow: auto; box-sizing: border-box; background: var(--bg); border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + var(--safe-b)); box-shadow: 0 -8px 30px rgba(42,36,32,.3); }
#pg.wide .pgSheet { align-items: center; } #pg.wide .pgSheetIn { border-radius: 20px; }
.pgSheetIn h3 { margin: 0 0 8px; font: 600 21px/1.2 var(--serif); }
.pgWho { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pgWho > div { flex: 1 1 130px; min-width: 0; } .pgWho b { display: block; font: 600 16px/1.25 var(--sans); } .pgWho small { font: 400 13px/1.3 var(--sans); color: var(--ink2); }
.pgWho > span { display: flex; gap: 6px; align-items: center; }
.pgWho a { border: 1px solid var(--line); background: var(--bg2); color: var(--accent); border-radius: 999px; padding: 10px 13px; font: 600 13px/1 var(--sans); text-decoration: none; }
.pgWho button { width: 34px; height: 36px; border: 0; background: none; color: var(--ink2); cursor: pointer; }
.pgSheetIn .pgChips { margin-top: 14px; } #pg a:focus-visible, #pg input:focus-visible, #pg select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .pgL.turn { animation: none; } }
/* the sketch page (stage 4): field book grid paper under the drawing, and the picture of the sketch kept for the book */
#pgGrid { position: absolute; width: 400vmax; height: 400vmax; pointer-events: none; background-position: center; background-image: linear-gradient(rgba(63,95,138,.30) 1px, transparent 1px), linear-gradient(90deg, rgba(63,95,138,.30) 1px, transparent 1px), linear-gradient(rgba(63,95,138,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(63,95,138,.12) 1px, transparent 1px); }
#pgGridLab { position: fixed; z-index: 6; left: calc(10px + var(--safe-l)); bottom: calc(128px + var(--safe-b)); font: 600 11px/1 var(--sans); color: var(--ink2); background: rgba(255,253,248,.9); border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; pointer-events: none; }
body:not(.sketching) #pgGridLab, body:not(.sketching) #pgGrid { display: none; }
.pgShotWrap { background-color: var(--bg2); background-image: linear-gradient(rgba(63,95,138,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(63,95,138,.13) 1px, transparent 1px); background-size: 24px 24px; display: flex; align-items: center; justify-content: center; padding: 110px 14px 110px; box-sizing: border-box; }
.pgShot { max-width: 100%; max-height: 100%; background: #fff; box-shadow: 0 8px 22px rgba(42,36,32,.28); border: 1px solid var(--line); }
/* a book per job (stage 5): the job's cover and facts, its pages, and the shelf */
.pgJob { display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 12px; }
.pgCover { flex: 0 0 128px; min-height: 176px; box-sizing: border-box; border-radius: 5px 11px 11px 5px; padding: 16px 10px 12px 20px; color: #fff; background: linear-gradient(90deg, rgba(0,0,0,.34), rgba(0,0,0,.1) 8px, rgba(255,255,255,.14) 11px, transparent 15px), radial-gradient(ellipse at 40% 30%, rgba(255,255,255,.14), transparent 60%), var(--t, none) center/cover, var(--c); box-shadow: 0 8px 16px -4px rgba(42,36,32,.45), 3px 3px 0 #FFFDF8, 5px 5px 0 #D9CDB4; display: flex; flex-direction: column; gap: 6px; }
.pgCover small { font: 700 9px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.pgCover b { font: 800 17px/1.15 var(--sans); color: #F1D98A; text-shadow: -1px -1px 0 rgba(0,0,0,.35); overflow-wrap: anywhere; }
.pgCover span { font: 500 12px/1.25 var(--sans); opacity: .92; overflow-wrap: anywhere; } .pgCover i { margin-top: auto; font: 500 11px/1.25 var(--sans); font-style: normal; opacity: .85; overflow-wrap: anywhere; }
.pgJobFacts { flex: 1; min-width: 0; } .pgJobFacts p { margin: 0 0 8px; font: 500 15px/1.3 var(--sans); overflow-wrap: anywhere; }
.pgJobFacts p small { display: block; font: 700 10px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.pgBooks.wrap { flex-wrap: wrap; overflow: visible; }
.pgShelf { display: flex; align-items: flex-end; gap: 3px; min-height: 150px; padding: 0 8px; border-bottom: 10px solid #8A6A45; box-shadow: 0 6px 8px -4px rgba(42,36,32,.4); overflow-x: auto; }
.pgSpine { flex: 0 0 38px; height: 140px; border: 0; border-radius: 4px 4px 0 0; color: #fff; background: linear-gradient(90deg, rgba(0,0,0,.3), transparent 30%, rgba(255,255,255,.12) 60%, rgba(0,0,0,.2)), var(--t, none) center/cover, var(--c); cursor: pointer; padding: 6px 0; }
.pgSpine:nth-child(3n) { height: 128px; } .pgSpine:nth-child(4n) { height: 146px; }
.pgSpine b { display: block; writing-mode: vertical-rl; font: 700 12px/1 var(--sans); color: #F1D98A; margin: 0 auto; max-height: 120px; overflow: hidden; white-space: nowrap; }
label.pgE { cursor: pointer; padding: 10px 12px; }
/* make it yours (stage 6, mine.js): Settings → My field book */
.mnCover { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; } .mnCover > svg { flex: 0 0 132px; width: 132px; border-radius: 4px 9px 9px 4px; box-shadow: 0 10px 20px -6px rgba(42,36,32,.5), 3px 3px 0 #FFFDF8, 5px 5px 0 #D9CDB4; }
.mnCover > div { flex: 1 1 200px; min-width: 0; }
.mnLab { margin: 12px 0 6px; font: 700 10px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); } .mnCover .mnLab:first-child { margin-top: 0; }
.mnHint { margin: 0 0 10px; font: 400 14px/1.4 var(--sans); color: var(--ink2); } .mnNow { margin: 6px 0 0; font: 600 14px/1.2 var(--sans); }
.mnSw { display: flex; flex-wrap: wrap; gap: 8px; } .mnMat { width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.mnMat.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.mnRow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mnOpt { border: 1px solid var(--line); background: var(--bg2); color: var(--ink); border-radius: 999px; padding: 10px 13px; font: 600 13px/1 var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.mnOpt.on { background: var(--accent); border-color: var(--accent); color: #fff; } .mnOpt i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(42,36,32,.3); }
.mnFonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.mnFont { text-align: left; border: 1px solid var(--line); background: var(--bg2); border-radius: 14px; padding: 10px 12px; cursor: pointer; min-width: 0; }
.mnFont b { display: block; font-weight: 400; line-height: 30px; height: 30px; color: var(--pen); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mnFont small { font: 400 12px/1.3 var(--sans); color: var(--ink2); }
.mnFont.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.mnPaper { margin: 10px 0 2px; height: 118px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; padding-top: 2px; box-sizing: border-box; }
#mnKeep input { flex: 1 1 150px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 10px 12px; font: 400 16px/1.2 var(--sans); color: var(--ink); }
.mnOpt:focus-visible, .mnMat:focus-visible, .mnFont:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* reminders that speak up, and the planner (stage 7, planner.js) */
.pgNote small em { display: block; margin-top: 3px; font: 600 10px/1.2 var(--sans); font-style: normal; color: rgba(42,36,32,.78); } .pgNote.rang { outline: 2px solid var(--hot); outline-offset: 1px; }
.pgOffer { margin-top: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.pgOffer p { margin: 0 0 8px; font: 400 14px/1.4 var(--sans); } .pgOffer > div { display: flex; gap: 8px; flex-wrap: wrap; }
.pgOffer button { border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 999px; padding: 9px 14px; font: 600 13px/1 var(--sans); cursor: pointer; } .pgOffer button.ghost { background: var(--bg2); color: var(--accent); border-color: var(--line); }
#pgRemWhen { margin-top: 8px; } .pgAdd #pgRemAlert { flex: 1 1 150px; }
.plUp { border-left: 4px solid var(--c); padding-left: 10px; margin-bottom: 6px; } .plLeft { margin-top: 4px; } .plLeft b { color: var(--ink); }
.plVac { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 12px 14px 14px; margin: 0 0 14px; cursor: pointer; color: var(--ink); }
.plVac small { display: block; font: 700 10px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); } .plVac b { display: block; margin: 4px 0 2px; font: 600 20px/1.2 var(--serif); } .plVac span { font: 400 13px/1.3 var(--sans); color: var(--ink2); }
.plVac i { display: block; margin-top: 10px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) 0 var(--p), #9DB8AE var(--p) var(--q), var(--sand) var(--q)); }
.plNav { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; } .plNav b { flex: 1; text-align: center; font: 600 17px/1.2 var(--serif); }
.plNav > button:not(.pgLink) { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--bg); border-radius: 50%; font-size: 20px; color: var(--ink); cursor: pointer; }
.plGrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; background: rgba(255,253,248,.82); border: 1px solid var(--line); border-radius: 14px; padding: 8px 6px; }
.plGrid em { text-align: center; font: 700 10px/1.8 var(--sans); font-style: normal; color: var(--ink2); }
.plGrid button { position: relative; min-height: 44px; border: 0; background: none; border-radius: 10px; padding: 4px 0 2px; cursor: pointer; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.plGrid button b { font: 500 14px/20px var(--sans); width: 26px; border-radius: 50%; } .plGrid button.now b { box-shadow: 0 0 0 1.5px var(--accent); } .plGrid button.on { background: var(--sand); } .plGrid button.on b { background: var(--accent); color: #fff; }
.plGrid button.wk b { font-weight: 800; } .plGrid button span { display: flex; gap: 2px; height: 6px; } .plGrid u, .plKey u { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.plKey { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 2px 14px; font: 500 11px/1.4 var(--sans); color: var(--ink2); } .plKey span { display: inline-flex; align-items: center; gap: 5px; }
.plEv { display: flex; align-items: center; gap: 8px; border-left: 4px solid var(--c); background: rgba(255,253,248,.82); border-radius: 0 12px 12px 0; margin-bottom: 6px; padding-right: 8px; }
.plEvMain { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 9px 10px; cursor: pointer; color: var(--ink); } .plEvMain b { display: block; font: 600 15px/1.25 var(--sans); overflow-wrap: anywhere; } .plEvMain small { font: 400 12.5px/1.35 var(--sans); color: var(--ink2); }
.plLab { margin: 0 0 6px; font: 700 10px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); } .plRow { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pgAdd .plKind { background: var(--bg2); color: var(--ink); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 10px; padding: 9px 11px; font: 600 13px/1 var(--sans); } .pgAdd .plKind.on { background: var(--ink); color: #fff; border-color: var(--ink); border-left-color: var(--c); }
.plF { display: block; font: 600 12px/1.3 var(--sans); color: var(--ink2); margin-bottom: 9px; } .plF input, .plF select { display: block; margin-top: 4px; width: 100%; } .plF small { display: block; margin-top: 4px; font: 400 12px/1.35 var(--sans); }
.plTwo { display: flex; gap: 8px; flex-wrap: wrap; } .plTwo > * { flex: 1 1 130px; min-width: 0; }
.plOpt { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font: 600 14px/1 var(--sans); cursor: pointer; background: var(--bg2); } .plOpt:has(input:checked) { background: var(--accent); color: #fff; border-color: var(--accent); } .plOpt input { accent-color: #fff; margin: 0; }
.plPriv { margin: 2px 0 10px; } .plPriv b small { display: block; font: 400 12px/1.3 var(--sans); color: var(--ink2); }
#plAlert { position: fixed; z-index: 57; left: 50%; top: calc(14px + var(--safe-t)); transform: translateX(-50%) rotate(-.6deg); width: min(360px, calc(100vw - 28px)); box-sizing: border-box; background: #F6E58D; color: #2A2420; padding: 12px 14px 10px; box-shadow: 0 12px 28px rgba(42,36,32,.4); font-family: var(--sans); }
#plAlert small { font: 700 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(42,36,32,.7); } #plAlert p { margin: 6px 0 2px; font: 400 calc(20px * var(--hs, 1))/1.2 var(--hand); overflow-wrap: anywhere; } #plAlert span { font: 600 12px/1.3 var(--sans); color: rgba(42,36,32,.75); }
#plAlert div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } #plAlert button { border: 1px solid rgba(42,36,32,.5); background: rgba(255,255,255,.5); color: #2A2420; border-radius: 999px; padding: 9px 13px; font: 600 13px/1 var(--sans); cursor: pointer; } #plAlert button:first-child { background: #2A2420; color: #fff; border-color: #2A2420; }
#plAlert button:focus-visible, .plGrid button:focus-visible, .plVac:focus-visible, .plEvMain:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* the print layout (stage 8, print.js): the sketch on the sheet it will come out on */
#pr { --accent: #2F5D50; /* the sketch screen runs its own ink-black accent: this screen is the app's, so it stays forest green */ position: fixed; inset: 0; z-index: 75; background: var(--bg2); color: var(--ink); font-family: var(--sans); display: flex; flex-direction: column; padding: var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l); }
#pr > header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
#pr > header b { font: 600 20px/1.2 var(--serif); } #pr > header span { flex: 1; min-width: 0; font: 400 13px/1.3 var(--sans); color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#prX { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 16px; cursor: pointer; margin-right: 44px; }
.prBody { flex: 1; min-height: 0; display: flex; }
.prView { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; background: var(--sand); }
.prSheet { max-width: 100%; max-height: calc(100% - 34px); background: #fff; box-shadow: 0 10px 30px rgba(42,36,32,.3); cursor: grab; touch-action: none; overflow: hidden; height: 100%; } .prSheet.grab { cursor: grabbing; }
.prSheet img { display: block; width: 100%; height: 100%; pointer-events: none; user-select: none; }
#prSay { margin: 0; font: 600 12.5px/1.3 var(--sans); color: var(--ink2); text-align: center; } #prSay.bad { color: var(--hot); }
.prSide { flex: 0 0 320px; box-sizing: border-box; overflow: auto; padding: 16px; border-left: 1px solid var(--line); background: var(--bg); }
.prLab { margin: 14px 0 6px; font: 700 10px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.prRow, .prGo, .prCustom > div { display: flex; flex-wrap: wrap; gap: 6px; }
.prOpt { border: 1px solid var(--line); background: var(--bg2); color: var(--ink); border-radius: 999px; padding: 11px 15px; font: 600 14px/1 var(--sans); cursor: pointer; } .prOpt.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.prF { display: block; flex: 1 1 80px; min-width: 0; font: 600 12px/1.3 var(--sans); color: var(--ink2); margin-bottom: 8px; }
.prF select, .prF input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 11px 10px; font: 400 16px/1.2 var(--sans); color: var(--ink); }
.prCustom { border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--bg2); margin-bottom: 6px; }
.prHint { margin: 12px 0 0; font: 400 13px/1.45 var(--sans); color: var(--ink2); } .prLink { border: 0; background: none; padding: 0; font: 600 13px/1.4 var(--sans); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.prGo { margin-top: 16px; } .prBig { flex: 1; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 14px; padding: 16px 10px; font: 700 16px/1 var(--sans); cursor: pointer; } .prBig.ghost { background: var(--bg); color: var(--accent); }
#pr button:focus-visible, #pr select:focus-visible, #pr input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#prOut { display: none; }
@media (max-width: 760px) { .prBody { flex-direction: column; } .prView { flex: 0 0 42%; padding: 12px; } .prSide { flex: 1 1 auto; border-left: 0; border-top: 1px solid var(--line); } }
/* search, the week map and the rest of the welcome page (stage 9, find.js + pages.js) */
.pgFind { display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; border: 1px solid var(--line); background: rgba(255,253,248,.92); border-radius: 999px; padding: 11px 14px; margin: 0 0 16px; font: 400 15px/1.2 var(--sans); color: var(--ink2); cursor: pointer; text-align: left; }
.pgFind svg, .pgFindBox svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pgFindBox { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--accent); background: #fff; border-radius: 999px; padding: 4px 14px; margin-bottom: 12px; color: var(--ink2); }
.pgFindBox input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 9px 0; font: 400 16px/1.2 var(--sans); color: var(--ink); }
.pgHit { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: rgba(255,253,248,.82); padding: 9px 10px; cursor: pointer; color: var(--ink); }
.pgHit em { display: inline-block; font: 700 9.5px/1.5 var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); } .pgHit b { display: block; font: 600 15px/1.3 var(--sans); overflow-wrap: anywhere; } .pgHit small { font: 400 12.5px/1.35 var(--sans); color: var(--ink2); }
.pgHit.ask { margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.pgWk { display: flex; gap: 10px; align-items: baseline; min-height: var(--lh, 28px); } .pgWk b { flex: 0 0 38px; font: 700 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.pgWk span { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 0 12px; } .pgWk i { font: 400 13px/1.4 var(--sans); font-style: normal; color: var(--ink2); } .pgWk .pgLink { padding: 4px 0; font: 400 calc(19px * var(--hs, 1))/var(--lh, 28px) var(--hand); color: var(--pen); text-decoration: none; text-align: left; }
.pgCk { display: flex; align-items: flex-start; gap: 10px; min-height: var(--lh, 28px); cursor: pointer; } .pgCk input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--accent); flex: none; } .pgCk input:checked + span { text-decoration: line-through; opacity: .6; }
.pgCd { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; } .pgCd > b { flex: 0 0 auto; min-width: 46px; text-align: center; font: 600 24px/1 var(--serif); color: var(--accent); }
.pgCd span { flex: 1; min-width: 0; font: 500 15px/1.3 var(--sans); } .pgCd em { font-style: normal; color: var(--ink2); } .pgCd small { display: block; font: 400 12px/1.3 var(--sans); color: var(--ink2); } .pgCd button { width: 36px; height: 36px; border: 0; background: none; color: var(--ink2); cursor: pointer; }
.pgAdd #pgCdDate { margin-top: 8px; }
.pgHrs { display: flex; gap: 2px; align-items: flex-end; background: rgba(255,253,248,.82); border: 1px solid var(--line); border-radius: 14px; padding: 8px 6px 6px; margin-bottom: 6px; overflow: hidden; }
.pgHrs > div { flex: 1 1 0; min-width: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 2px; } .pgHrs small { font: 600 10px/1 var(--sans); color: var(--ink2); } .pgHrs b { font: 600 13px/1.3 var(--sans); }
.pgHrs i { width: 14px; border-radius: 3px 3px 0 0; background: #9DB8AE; margin-top: auto; } .pgHrs .wet i { background: var(--pen); } .pgHrs em { font: 600 9px/1 var(--sans); font-style: normal; color: var(--ink2); height: 9px; }
.pgPhs { display: flex; flex-wrap: wrap; gap: 6px 2px; padding: 4px 0 8px; } .pgPhs button { border: 0; background: none; padding: 0; cursor: pointer; }
.pgPhs i { display: block; width: 78px; height: 78px; background: #DDD3BF center/cover; border: 4px solid #fff; border-bottom-width: 10px; box-shadow: 0 4px 8px -2px rgba(42,36,32,.4); transform: rotate(var(--r)); } .pgPhs i.far { background-image: repeating-linear-gradient(45deg, #E6DDCA 0 6px, #DDD3BF 6px 12px); }
#pgMap.live { opacity: 1; }
.pgWkCard { position: relative; margin: 46px 12px 0; background: rgba(255,253,248,.96); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; box-shadow: 0 4px 12px rgba(42,36,32,.14); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pgWkCard > div:first-child { flex: 1; min-width: 0; } .pgWkCard small { display: block; font: 700 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; } .pgWkCard b { font: 600 15px/1.25 var(--serif); }
.pgWkRow { flex: 1 1 100%; display: flex; gap: 4px; flex-wrap: wrap; } .pgWkRow button { border: 1px solid var(--line); background: var(--bg2); color: var(--ink); border-radius: 999px; padding: 9px 12px; font: 600 12.5px/1 var(--sans); cursor: pointer; } .pgWkRow button.on { background: var(--accent); color: #fff; border-color: var(--accent); } .pgWkRow button:disabled { opacity: .4; }
.pgWkPin { min-width: 30px; height: 30px; padding: 0 7px; border-radius: 999px; border: 2px solid #fff; background: var(--accent); color: #fff; font: 700 13px/1 var(--sans); box-shadow: 0 2px 6px rgba(42,36,32,.45); cursor: pointer; }
.pgFind:focus-visible, .pgHit:focus-visible, .pgWkPin:focus-visible, .pgWkRow button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#pg #pgFindQ:focus-visible { outline: none; } .pgFindBox:focus-within { box-shadow: 0 0 0 2px var(--accent); }
/* the sign-in is written on the nameplate, in his hand (Bryan, Nov 19 2026) */
.bkPlate .bkWrite { display: block; width: 100%; box-sizing: border-box; border: 0; border-bottom: 1.5px solid #BCD6EC; background: none; padding: 2px 0 1px; margin: 2px 0 0; font: 700 calc(25px * var(--hs, 1))/31px var(--hand); color: var(--pen); outline: none; border-radius: 0; }
.bkPlate .bkWrite::placeholder { font: 400 15px/31px var(--sans); color: #9AA7B4; } .bkPlate .bkWrite:focus { border-bottom-color: var(--pen); }
.bkPlate.blank i { height: 22px; }
.daySent { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font: 500 14px/1.3 var(--sans); cursor: pointer; } .daySent input { width: 20px; height: 20px; accent-color: var(--accent); }
.pgAdd .pgPick { width: 100%; margin-bottom: 8px; } .pgUnsent { margin: 6px 0 2px; } .pgUnsent b { color: var(--ink); } .plFile { margin: 0 0 4px; } .plFileSay:empty { display: none; } .plFileSay { margin-bottom: 12px; }
/* gone for good: the hard hat helper, the yellow idea bulb, the round green sketch button. Cami does all of it. They stay in the page only as the hidden works she drives. */
html.no-hat #hlpBtn, html.no-hat #hlpBulb, html.no-hat #btnPencil { display: none !important; }
/* three ways to flip between the notes page and the sketch: the tab, a swipe from the spine, the folded corner */
#pgEdge { position: fixed; z-index: 8; left: 0; top: calc(130px + var(--safe-t)); bottom: calc(96px + var(--safe-b)); width: 20px; touch-action: none; cursor: e-resize; }
#pgEdge i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(5px + var(--pull, 0px)); background: linear-gradient(90deg, rgba(47,93,80,.5), rgba(47,93,80,.12)); border-right: 1.5px dashed rgba(47,93,80,.6); border-radius: 0 6px 6px 0; pointer-events: none; }
#pgCorner, .pgDog { position: fixed; z-index: 8; right: 0; bottom: 0; width: 64px; height: 64px; border: 0; padding: 0; cursor: pointer; background: linear-gradient(315deg, var(--bg2) 0 49%, #CFC4AE 50%, #FFFDF8 52% 100%); clip-path: polygon(100% 0, 100% 100%, 0 100%); filter: drop-shadow(-2px -2px 3px rgba(42,36,32,.3)); }
#pgCorner span, .pgDog span { position: absolute; right: 4px; bottom: 7px; font: 700 10px/1 var(--sans); color: var(--accent); transform: rotate(-45deg); transform-origin: 100% 100%; white-space: nowrap; }
.pgDog { position: sticky; float: right; bottom: 0; margin: 0 -18px -20px 0; background: linear-gradient(315deg, #D9CDB4 0 49%, #BBAE95 50%, #FFFDF8 52% 100%); }
#pg:not(.wide) .pgDog { position: fixed; bottom: 0; right: 0; margin: 0; }
body.pg-corner .maplibregl-ctrl-bottom-right { right: 62px; } /* the map's credit stays reachable beside the corner */
#pgTab.noflip { display: none; }
#pgFlipAsk { position: fixed; z-index: 9; left: 50%; bottom: calc(150px + var(--safe-b)); transform: translateX(-50%); width: min(340px, calc(100vw - 24px)); box-sizing: border-box; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 6px; box-shadow: 0 12px 30px rgba(42,36,32,.3); font-family: var(--sans); color: var(--ink); --accent: #2F5D50; text-align: center; }
#pgFlipAsk b { font: 600 16px/1.25 var(--serif); } #pgFlipAsk p { margin: 4px 0 10px; font: 400 13px/1.4 var(--sans); color: var(--ink2); }
#pgFlipAsk > div, .stFlips { display: flex; gap: 8px; } #pgFlipAsk > div button, .stFlips button { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--bg2); border-radius: 14px; padding: 10px 4px 8px; cursor: pointer; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 12px/1.2 var(--sans); }
#pgFlipAsk svg, .stFlips svg { width: 36px; height: 48px; fill: none; stroke: var(--ink2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } #pgFlipAsk svg .hot, .stFlips svg .hot { stroke: var(--accent); stroke-width: 3; }
.stFlips button.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); } .stFlips small { font: 400 11.5px/1.3 var(--sans); color: var(--ink2); }
#pgFlipAsk button:focus-visible, #pgCorner:focus-visible, .pgDog:focus-visible, .stFlips button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* a location coming up on the map: the pin drops in and takes in what was saved there (four ways, his pick) */
.flStopPin.fd-run > svg, .flStopPin.fd-run > b { visibility: hidden; }
.fdGhost { position: absolute; inset: 0; display: grid; pointer-events: none; }
.fdPin { display: grid; position: relative; transform-origin: 50% 100%; animation: var(--pin) var(--T) both; }
.fdShadow { position: absolute; left: 50%; bottom: -4px; width: 22px; height: 7px; margin-left: -11px; border-radius: 50%; background: rgba(42,36,32,.32); animation: fdShadow var(--T) both; }
.fdRing { position: absolute; left: 50%; bottom: -12px; width: 44px; height: 22px; margin-left: -22px; border: 2px solid var(--accent); border-radius: 50%; opacity: 0; animation: fdRing var(--T) both; }
.fdIc { position: absolute; left: 50%; bottom: 46%; display: flex; align-items: center; gap: 2px; padding: 3px 6px 3px 4px; border-radius: 999px; background: var(--bg); border: 1.5px solid var(--accent); font-style: normal; opacity: 0; animation: fdIc var(--T) both; animation-delay: var(--d); white-space: nowrap; }
.fdIc svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transform: none !important; } .fdIc u { font: 700 11px/1 var(--sans); color: var(--accent); text-decoration: none; }
.fdBadge { position: absolute; right: -9px; top: -9px; min-width: 20px; height: 20px; box-sizing: border-box; padding: 0 5px; border-radius: 10px; background: var(--hot); color: #fff; font: 700 11.5px/20px var(--sans); font-style: normal; text-align: center; border: 1.5px solid #fff; opacity: 0; animation: fdBadge var(--T) both, fdGone .5s calc(var(--T) + 1900ms) forwards; }
.fd-a { --pin: fdPinA; } .fd-b { --pin: fdPinB; } .fd-c { --pin: fdPinC; } .fd-d { --pin: fdPinD; }
@keyframes fdPinA { 0% { transform: translateY(-340px); opacity: 0; } 3% { transform: translateY(-340px); opacity: 1; } 22% { transform: translateY(0) scale(1); } 26% { transform: translateY(0) scale(1.22,.74); } 31% { transform: translateY(-9px) scale(.95,1.06); } 36%, 80% { transform: none; } 85% { transform: scale(1.2,1.12); } 90%, 100% { transform: none; } }
@keyframes fdPinB { 0% { transform: translate(-26px,-340px) rotate(-10deg); opacity: 0; } 3% { opacity: 1; } 12% { transform: translate(20px,-230px) rotate(9deg); } 22% { transform: translate(-14px,-125px) rotate(-7deg); } 31% { transform: translate(7px,-38px) rotate(4deg); } 38% { transform: none; } 41% { transform: scale(1.06,.94); } 44%, 82% { transform: none; } 86% { transform: scale(1.14); } 90%, 100% { transform: none; } }
@keyframes fdPinC { 0% { transform: translate(190px,-330px) rotate(28deg); opacity: 0; } 3% { transform: translate(190px,-330px) rotate(28deg); opacity: 1; } 20% { transform: translate(0,0) rotate(28deg); } 23% { transform: rotate(-8deg) scale(1.25,.7); } 29% { transform: translateY(-6px) rotate(3deg) scale(.96,1.05); } 34%, 76% { transform: none; } 79% { transform: scale(.9,1.12); } 85% { transform: scale(1.24); } 90%, 100% { transform: none; } }
@keyframes fdPinD { 0%, 34% { transform: scale(.2); opacity: 0; } 41% { transform: scale(1.14); opacity: 1; } 46%, 80% { transform: none; opacity: 1; } 85% { transform: scale(1.16); } 90%, 100% { transform: none; } }
@keyframes fdShadow { 0% { transform: scale(.2); opacity: 0; } 22%, 100% { transform: none; opacity: 1; } } .fd-b .fdShadow { animation-name: fdShadowB; } .fd-d .fdShadow { animation-name: fdShadowD; }
@keyframes fdShadowB { 0% { transform: scale(2.6); opacity: 0; } 12% { transform: scale(2.2); opacity: .25; } 38%, 100% { transform: none; opacity: 1; } } @keyframes fdShadowD { 0%, 34% { opacity: 0; } 44%, 100% { opacity: 1; } }
@keyframes fdRing { 0%, 22% { transform: scale(.2); opacity: 0; } 24% { transform: scale(.3); opacity: .9; } 40%, 100% { transform: scale(1.9); opacity: 0; } } .fd-b .fdRing { display: none; }
.fd-c .fdRing { animation-name: fdRingC; } @keyframes fdRingC { 0%, 20% { transform: scale(.2); opacity: 0; } 22% { transform: scale(.4); opacity: 1; border-width: 4px; } 42%, 100% { transform: scale(3); opacity: 0; border-width: 1px; } }
.fd-d .fdRing { animation-name: fdRingD; } @keyframes fdRingD { 0%, 38% { transform: scale(.3); opacity: 0; } 40% { transform: scale(.4); opacity: .5; } 56%, 100% { transform: scale(1.7); opacity: 0; } }
.fdTrail { position: absolute; left: 50%; bottom: 50%; width: 230px; height: 8px; border-radius: 4px; transform-origin: 0 50%; background: linear-gradient(90deg, rgba(47,93,80,.75), rgba(143,211,168,0)); opacity: 0; animation: fdTrail var(--T) both; }
@keyframes fdTrail { 0%, 3% { opacity: 0; transform: rotate(-60deg) scaleX(.2); } 12% { opacity: .9; transform: rotate(-60deg) scaleX(1); } 21% { opacity: .6; transform: rotate(-60deg) scaleX(1); } 30%, 100% { opacity: 0; transform: rotate(-60deg) scaleX(.3); } }
.fdGlow { position: absolute; left: 50%; bottom: 20%; width: 60px; height: 60px; margin-left: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(143,211,168,.9), rgba(201,234,211,0) 70%); opacity: 0; animation: fdGlow var(--T) both; }
@keyframes fdGlow { 0%, 12% { opacity: 0; transform: scale(.4); } 34% { opacity: .9; transform: none; } 46%, 100% { opacity: 0; transform: scale(.5); } }
.fdSp { position: absolute; left: 50%; bottom: 40%; width: 5px; height: 5px; margin-left: -2px; border-radius: 50%; background: var(--accent); opacity: 0; animation: fdSp var(--T) both; animation-delay: var(--d); } .fdSp:nth-of-type(3n) { background: #8FD3A8; }
@keyframes fdSp { 0% { transform: translate(var(--x), -300px); opacity: 0; } 8% { transform: translate(calc(var(--x) * .7), -200px); opacity: 1; } 30% { transform: translate(var(--e), -22px); opacity: 1; } 38%, 100% { transform: translate(0, -18px) scale(.3); opacity: 0; } }
@keyframes fdIc { 0%, 40% { transform: translate(-50%, 0) scale(0); opacity: 0; } 50% { transform: translate(calc(-50% + var(--x)), var(--y)) scale(1.12); opacity: 1; } 54%, 68% { transform: translate(calc(-50% + var(--x)), var(--y)); opacity: 1; } 82%, 100% { transform: translate(-50%, -4px) scale(.2); opacity: 0; } }
@keyframes fdBadge { 0%, 84% { transform: scale(0); opacity: 0; } 89% { transform: scale(1.35); opacity: 1; } 94%, 100% { transform: none; opacity: 1; } } @keyframes fdGone { to { opacity: 0; transform: scale(.4); } }
.fdStage { height: 150px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 22px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--sand); overflow: hidden; } .fdStage .flStopPin { cursor: default; }
.fdPick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .fdPick button { text-align: left; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 14px; padding: 10px 12px; cursor: pointer; font: inherit; }
.fdPick button b { display: block; font: 600 14px/1.25 var(--sans); } .fdPick button small { font: 400 12px/1.3 var(--sans); color: var(--ink2); } .fdPick button.on { border: 2px solid var(--accent); background: var(--bg2); }
@media (prefers-reduced-motion: reduce) { .fdGhost { display: none; } .flStopPin.fd-run > svg, .flStopPin.fd-run > b { visibility: visible; } }

/* ---- the sign-in is the first page of the field book (landing.js, #landing.land-book). The cover swings open onto it
   for a new book, a forgotten password, an email to confirm; with no cover it is simply the page. */
#landing.land-book { background: radial-gradient(ellipse at 50% 38%, #FBF7EE, var(--bg2) 62%, #EFE7D6); display: flex; align-items: center; justify-content: center; overflow: auto; }
#landing.land-book .landBrand, #landing.land-book .landWxChip, #landing.land-book .landCredit, #landing.land-book .landHint, #landing.land-book #landWx, #landing.land-book #landFlash { display: none; }
#landing.land-book .landCard { position: relative; left: auto; top: auto; transform: none; animation: lbIn .5s ease both; width: min(430px, calc(100vw - 26px)); max-height: calc(100vh - 28px - var(--safe-t) - var(--safe-b)); box-sizing: border-box; padding: 26px 24px 22px 50px; border: 0; border-radius: 7px 14px 14px 7px;
  background-color: #FFFEFA; background-image: linear-gradient(90deg, rgba(42,36,32,.13), transparent 13px), linear-gradient(90deg, transparent 35px, #E3A3A3 35px, #E3A3A3 36px, transparent 36px), repeating-linear-gradient(transparent 0 31px, #D5E4F1 31px 32px); background-attachment: local;
  box-shadow: 0 16px 26px rgba(42,36,32,.22), 3px 3px 0 #F4EEDF, 6px 6px 0 #E9E1CF, 0 0 0 1px rgba(42,36,32,.07); }
#landing.land-book .landCard[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; transform: translateX(14px); } }
#landing.land-book .landCard h1 { font: 700 30px/32px var(--hand); color: var(--pen); margin: 0 0 8px; letter-spacing: 0; }
#landing.land-book .landLead { font: 400 18px/32px var(--hand); color: var(--ink); margin: 0 0 0; }
#landing.land-book .landLead b { color: var(--pen); overflow-wrap: anywhere; }
#landing.land-book .landForm { gap: 0; margin: 0; }
#landing.land-book .landForm label { display: block; font: 700 10px/16px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); padding-top: 16px; }
#landing.land-book .landForm input { display: block; width: 100%; box-sizing: border-box; height: 32px; margin: 0; padding: 0 2px; border: 0; border-bottom: 2px solid #9DB9D2; border-radius: 0; background: transparent; box-shadow: none; font: 400 22px/30px var(--hand); color: var(--pen); letter-spacing: 0; text-transform: none; }
#landing.land-book .landForm input:focus { outline: none; border-color: var(--accent); box-shadow: 0 2px 0 var(--accent); }
#landing.land-book .landForm input[type=password] { font-family: var(--sans); font-size: 20px; letter-spacing: .12em; }
#landing.land-book .landForm input::placeholder { color: #B5AC9C; }
#landing.land-book .landPw input { padding-right: 42px; } #landing.land-book .landEye { top: auto; bottom: -2px; transform: none; }
#landing.land-book .landNote, #landing.land-book .landNote.small { font: 500 12.5px/16px var(--sans); margin: 8px 0 0; }
#landing.land-book .landReq { margin: 10px 0 0; line-height: 18px; }
#landing.land-book .landErr { min-height: 16px; margin: 10px 0 6px; font: 600 13px/16px var(--sans); } #landing.land-book .landErr.good { color: var(--accent); }
#landing.land-book .landForgot { margin: 6px 0 0; }
#landing.land-book .landPrimary { width: 100%; height: 48px; padding: 0; border-radius: 999px; font: 600 16px var(--sans); }
#landing.land-book .landKey { height: 46px; padding: 0; border-radius: 999px; background: #FFFDF8; font: 600 15px var(--sans); }
#landing.land-book .landSwap { margin: 14px 0 0; font: 500 13.5px/18px var(--sans); } #landing.land-book .landLink { font-size: 13.5px; padding: 4px 0; }
#bk.away { display: none; }
@media (max-width: 420px) { #landing.land-book .landCard { padding: 22px 16px 18px 46px; } #landing.land-book .landCard h1 { font-size: 27px; } }
/* print layout, true to the printout: the sheet is drawn fresh for each choice */
.prTrue { margin: 0 0 12px; padding: 9px 12px; border-radius: 12px; background: var(--sand); border: 1px solid var(--line); font: 600 13.5px/1.35 var(--sans); color: var(--ink); }
.prZoom { margin-top: 8px; } .prOpt.prWide { width: 100%; margin-top: 8px; }
#pr.prBusy .prSheet { cursor: progress; } #pr.prBusy #prSay::after { content: ' · drawing…'; }
.prSheet img { transition: opacity .15s; } #pr.prBusy .prSheet img { opacity: .82; }

/* ---- closing out a location (closeout.js): Cami's questions, one at a time, then Finalize */
#co { --accent: #2F5D50; position: fixed; inset: 0; z-index: 72; background: rgba(42,36,32,.42); display: flex; align-items: flex-end; justify-content: center; font-family: var(--sans); color: var(--ink); }
.coCard { width: min(560px, 100vw); max-height: min(92vh, 860px); display: flex; flex-direction: column; background: var(--bg2); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px rgba(42,36,32,.3); overflow: hidden; }
@media (min-width: 700px) { #co { align-items: center; } .coCard { border-radius: 20px; } }
.coCard > header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.coCard > header b { font: 600 19px/1.2 var(--serif); } .coCard > header span { flex: 1; min-width: 0; font-size: 13px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coCard > header button { flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 18px; cursor: pointer; }
.coBody { overflow: auto; padding: 14px 14px calc(18px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; }
.coSay { background: var(--bg); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 10px 14px 12px; } .coSay b { display: block; font: 700 11px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); } .coSay p { margin: 2px 0 0; font: 500 17px/1.4 var(--sans); }
.coBig { display: block; width: 100%; min-height: 54px; padding: 12px 16px; text-align: left; border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--ink); font: 600 16px/1.3 var(--sans); cursor: pointer; } .coBig small { display: block; font: 400 13px/1.35 var(--sans); color: var(--ink2); margin-top: 3px; }
.coBig.on, .coItem.on, .coChips button.on { background: var(--accent); color: #fff; border-color: var(--accent); } .coBig.on small, .coItem.on span { color: #fff; }
.coYN { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .coYN .coBig { text-align: center; }
.coGo { width: 100%; min-height: 50px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 600 16px var(--sans); cursor: pointer; } .coGo.ghost { background: var(--bg); color: var(--accent); border: 1.5px solid var(--accent); }
.coLink { align-self: flex-start; border: 0; background: none; padding: 8px 0; color: var(--accent); font: 600 14px/1.35 var(--sans); text-decoration: underline; text-align: left; cursor: pointer; }
.coHint { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--ink2); } .coLab { margin: 6px 0 0; font: 700 11px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.coMsg { margin: 0; min-height: 18px; font: 600 13.5px/1.35 var(--sans); color: #A33A1E; }
.coMath, .coSum { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--sand); border: 1px solid var(--line); font: 500 14px/1.45 var(--sans); } .coSum p { margin: 0 0 5px; white-space: pre-wrap; } .coSum p:last-child { margin: 0; }
.coForm { display: flex; flex-direction: column; gap: 8px; } .coForm label, .coRow label, .coInline { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; font: 600 12px/1.3 var(--sans); color: var(--ink2); }
#co input { width: 100%; box-sizing: border-box; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 0 11px; font: 16px var(--sans); color: var(--ink); } #co input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.coRow { display: flex; align-items: flex-end; gap: 8px; } .coRow label.n { flex: 0 0 92px; } .coRow output { flex: 0 0 auto; min-width: 64px; padding-bottom: 12px; font: 600 14px var(--sans); text-align: right; } .coRow > b { flex: 1; padding-bottom: 12px; font: 600 16px var(--sans); } .coRow i { margin-left: auto; font: 600 13px var(--sans); font-style: normal; color: var(--ink2); } .coRow i.bad { color: #A33A1E; }
.coRow > button:not(.coLink) { flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink2); cursor: pointer; }
.coChips { display: flex; flex-wrap: wrap; gap: 8px; } .coChips button { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: 600 15px var(--sans); cursor: pointer; }
.coList { display: flex; flex-direction: column; gap: 6px; } .coItem { display: flex; gap: 10px; align-items: baseline; width: 100%; min-height: 48px; padding: 10px 14px; text-align: left; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); font: 15px/1.3 var(--sans); cursor: pointer; } .coItem b { flex: none; } .coItem span { color: var(--ink2); }
.coPayRow, .coSplit { padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); } .coPayRow { display: flex; gap: 8px; align-items: center; } .coPayRow p, .coSplit p { flex: 1; margin: 0; font: 15px/1.4 var(--sans); } .coPayRow span { font-size: 13px; color: var(--ink2); } .coPayRow button { flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); cursor: pointer; }
.coPay, .coPlates { display: flex; flex-direction: column; gap: 6px; } .coSplit { display: flex; flex-direction: column; gap: 6px; }
#co button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* on the notes page */
.pgFinal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--accent); background: rgba(47,93,80,.07); font: 14px/1.35 var(--sans); } .pgFinal b { font: 700 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); } .pgFinal span { flex: 1; min-width: 120px; color: var(--ink2); }
.pgFinal.open { border: 1.5px dashed #B4533A; background: rgba(180,83,58,.06); } .pgCloseBtn { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 600 14.5px var(--sans); cursor: pointer; }
.pgSumm { margin: 10px 0 0; } .pgSumm small { display: block; font: 700 10px/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); } .pgSumm p { margin: 0; font: 400 calc(17px * var(--hs, 1)) / var(--lh, 28px) var(--hand); color: var(--pen); white-space: pre-wrap; overflow-wrap: anywhere; }
.pgRow.due small { color: #A33A1E; }
.fcGrid button u { position: absolute; left: 5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #D8452B; box-shadow: 0 0 0 1.5px #fff; }

.bkSnap { touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } .bkSnap.press { transform: scale(.94); } /* held like a fingerprint reader: no long-press menu, no text pick */

/* the sketch's tip strip, as a quiet card in the Linen look (Bryan, Nov 19 2026: the old one looked cheesy and wouldn't go away) */
body.sketching #skHint:not(.hidden) { background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 24px rgba(42,36,32,.14); font: 500 14px/1.4 var(--sans); padding: 8px 6px 8px 14px; transition: opacity .4s ease; }
body.sketching #skHint.tip:not(.hidden) { flex-wrap: nowrap; justify-content: flex-start; max-width: min(calc(100vw - 32px), 460px); }
#skHint .miniCami { display: none; } body.sketching #skHint:not(.hidden) .miniCami { display: grid; align-self: center; margin-right: 2px; } /* Cami hands him every tip (Bryan, Nov 22 2026) */
body.sketching #skHint.fade { opacity: 0; }
body.sketching #skHintX { color: var(--ink2); opacity: 1; width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 15px; }
body.sketching #skHintX:hover, body.sketching #skHintX:focus-visible { background: var(--sand); }

/* the home page date line carries the weather as plain text; the old weather pill is gone */
.pgTop .pgDate { display: block; }
/* the cog on every page of the book: that page's paper, the hand, the pen */
.pgCog { position: absolute; top: 30px; right: 6px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink2); display: grid; place-items: center; cursor: pointer; }
.pgCog svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pgCog:hover, .pgCog:focus-visible { background: rgba(42,36,32,.07); color: var(--ink); }
.pgPage > .pgBar, .pgPage > .pgTop, .pgPage > .pgFindBox { padding-right: 48px; } /* room for the cog */
.pgCogBox { position: fixed; inset: 0; z-index: 4; background: rgba(42,36,32,.34); display: flex; align-items: flex-end; justify-content: center; }
#pg.wide .pgCogBox { align-items: center; } #pg.wide .pgCogBox .pgSheetIn { border-radius: 20px; }
.pgCogHd { display: flex; align-items: flex-start; gap: 10px; } .pgCogHd > div { flex: 1; } .pgCogHd small { font: 700 10px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.pgCogX { flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 16px; cursor: pointer; }
.pgCogBox .mnSel { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 10px; font: 15px var(--sans); color: var(--ink); }
.pgCogBox .pgFoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
/* contractor's work hours on the notes page */
.pgHrsIn { display: flex; align-items: center; gap: 8px; } .pgHrsIn input { flex: 1; min-width: 0; } .pgHrsIn i { font-style: normal; color: var(--ink2); }
/* the offer card has three buttons now */
.pgOffer div { flex-wrap: wrap; }

/* ===== the book, Nov 19 2026 evening (v87) ===== */
/* the spine: the pages curve down into the binding, a soft shadow in the gutter, the thread down the middle */
.pgSpread { position: relative; }
#pg.wide .pgL, #pg.wide .pgR { box-shadow: none; }
.pgGutter { display: none; }
#pg.wide .pgGutter { display: block; position: absolute; top: 0; bottom: 0; left: 50%; width: 120px; margin-left: -60px; pointer-events: none; z-index: 3;
  background: linear-gradient(90deg, transparent 0, rgba(42,36,32,.035) 28%, rgba(42,36,32,.10) 40%, rgba(42,36,32,.20) 46%, rgba(42,36,32,.34) 49.3%, rgba(255,250,238,.35) 50%, rgba(42,36,32,.30) 50.7%, rgba(42,36,32,.17) 54%, rgba(42,36,32,.08) 60%, rgba(42,36,32,.03) 72%, transparent 100%); }
#pg.wide .pgGutter i { position: absolute; top: 18px; bottom: 18px; left: 50%; width: 2px; margin-left: -1px; background: repeating-linear-gradient(180deg, rgba(120,100,70,.55) 0 9px, transparent 9px 22px); opacity: .55; }
#pg.wide .pgSpread::before, #pg.wide .pgSpread::after { content: ''; position: absolute; top: 0; bottom: 0; width: 14px; pointer-events: none; z-index: 3; } /* the page edges curl up a touch at the outside */
#pg.wide .pgSpread::before { left: 0; background: linear-gradient(90deg, rgba(42,36,32,.12), transparent); }
#pg.wide .pgSpread::after { right: 0; background: linear-gradient(270deg, rgba(42,36,32,.12), transparent); }
#pg.wide .pgSpread { box-shadow: 0 18px 50px rgba(42,36,32,.28), 0 2px 0 #CFC4AE, -3px 3px 0 #EDE4D2, 3px 3px 0 #EDE4D2, -6px 6px 0 #E2D7C2, 6px 6px 0 #E2D7C2; overflow: visible; } /* the stack of pages under the open ones */
#pg.wide .pgL { border-radius: 14px 0 0 14px; } #pg.wide .pgR { border-radius: 0 14px 14px 0; }
/* the Book tab on a computer: big enough to find */
@media (min-width: 900px) and (pointer: fine) { #pgTab { padding: 16px 13px 13px 11px; gap: 6px; font-size: 13px; top: 34%; } #pgTab svg { width: 32px; height: 32px; } }
/* Cami rides at the end of the book's search box */
.pgFindRow { position: relative; } .pgFindRow .pgFind { padding-right: 56px; }
.pgCami { position: absolute; right: 4px; top: 50%; margin-top: -30px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; padding: 0; }
.pgFindRow .pgCami { top: 0; margin-top: 2px; }
.pgCami.sm { position: relative; right: auto; top: auto; margin: 0 0 0 auto; flex: none; width: 40px; height: 40px; }
/* groups that fold by their heading, with a count while folded when something needs him */
.pgSec header.fold b { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pgSec header.fold b::after { content: ''; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.pgGrp.shut header.fold b::after { transform: rotate(-45deg); }
.pgGrp.shut > :not(header) { display: none !important; } .pgGrp.shut { margin-bottom: 8px; }
.pgBadge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #B4533A; color: #fff; font: 700 11px/1 var(--sans); font-style: normal; letter-spacing: 0; }
/* buttons that are just words */
.pgTextBtns { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0 0; } .pgTextBtns.c { justify-content: center; }
.pgTextBtns button { border: 0; background: none; padding: 9px 0; font: 600 14px/1.2 var(--sans); color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pgCamiNote { padding: 2px 0 8px; } .pgCamiNote + .pgCamiNote { border-top: 1px dashed var(--line); padding-top: 8px; } .pgCamiNote p { margin: 0; font: 400 calc(18px * var(--hs, 1))/var(--lh, 28px) var(--hand); color: var(--pen); }
/* a sticky note fits its words */
.pgNote { width: fit-content; min-width: 132px; max-width: 210px; } .pgNote p { overflow-wrap: normal; word-break: normal; hyphens: auto; -webkit-hyphens: auto; }
/* the calendar on the home page */
.pgCalHd { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; } .pgCalHd b { font: 600 15px var(--serif); }
.pgCal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 6px; } .pgCal i { font: 700 10px/1.6 var(--sans); font-style: normal; text-align: center; color: var(--ink2); }
.pgCal button { position: relative; height: 38px; border: 1px solid transparent; border-radius: 10px; background: rgba(255,253,248,.6); font: 500 13px var(--sans); color: var(--ink); cursor: pointer; padding: 0; }
.pgCal button.has { background: rgba(47,93,80,.14); font-weight: 700; } .pgCal button.now { border-color: var(--accent); } .pgCal button.on { background: var(--accent); color: #fff; }
.pgCal button u { position: absolute; right: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: #D8452B; box-shadow: 0 0 0 1.5px #fff; }
.pgTiny { min-width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); color: var(--accent); font: 600 14px var(--sans); cursor: pointer; padding: 0 10px; }
/* Change this page: a preview of each one */
.pgE { flex-wrap: wrap; } .pgPrevBtn { flex-basis: 100%; text-align: left; border: 0; background: none; padding: 4px 0 2px 26px; font: 600 12.5px var(--sans); color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pgPrev { flex-basis: 100%; margin: 6px 0 2px; padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); } .pgPrev > p { margin: 0 0 8px; font: 400 13.5px/1.4 var(--sans); color: var(--ink2); }
.pgPrevPage { pointer-events: none; padding: 10px 12px; border-radius: 10px; background: #FFFDF8; border: 1px dashed var(--line); max-height: 260px; overflow: hidden; }
.pgPrevPage header { display: none; }
/* page settings: every choice shows itself */
.mnLive { margin: 4px 0 12px; padding: 10px 12px 12px 16px; border: 1px solid var(--line); border-radius: 12px; line-height: 28px; } .mnLive b { display: block; font-weight: 400; line-height: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mnTiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; } .mnTiles.hands { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.mnTile { display: flex; flex-direction: column; align-items: stretch; gap: 5px; padding: 6px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); cursor: pointer; text-align: center; min-height: 44px; }
.mnTile span { font: 600 12px/1.2 var(--sans); } .mnTile.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; } .mnTile.on span { color: var(--accent); }
.mnPic { display: block; height: 46px; border-radius: 8px; border: 1px solid rgba(42,36,32,.12); }
.mnInk { display: block; font-style: normal; line-height: 1.3; padding: 6px 2px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the right page: the map, live, no grid; an address box; the coordinates in a corner */
#pgMap.live { opacity: 1; }
.pgMapTop { position: relative; z-index: 2; margin: 40px 56px 0 14px; display: flex; flex-direction: column; gap: 6px; }
.pgAddr { position: relative; display: flex; align-items: center; gap: 8px; background: rgba(255,253,248,.97); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; box-shadow: 0 4px 12px rgba(42,36,32,.12); }
.pgAddr svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink2); stroke-width: 1.8; stroke-linecap: round; }
.pgAddr input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; font: 400 15px var(--sans); color: var(--ink); outline: none; }
.pgAddr .results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 4; max-height: 260px; overflow: auto; }
.pgMapLinks { display: flex; gap: 14px; padding-left: 8px; } .pgMapLinks button { border: 0; background: rgba(255,253,248,.85); border-radius: 8px; padding: 6px 8px; font: 600 12.5px var(--sans); color: var(--accent); cursor: pointer; }
.pgMapCap { background: rgba(255,253,248,.95); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; align-self: flex-start; } .pgMapCap small { display: block; font: 700 10px/1.3 var(--sans); letter-spacing: .08em; color: var(--ink2); } .pgMapCap b { font: 600 14px var(--sans); }
.pgCoords { position: absolute; z-index: 2; padding: 4px 6px; font: 500 11px/1 var(--sans); color: #4A4540; letter-spacing: .02em; background: rgba(255,253,248,.55); border-radius: 6px; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
.pgCoords.at-tr { top: 12px; right: 56px; } .pgCoords.at-tl { top: 12px; left: 12px; } .pgCoords.at-br { bottom: 12px; right: 12px; } .pgCoords.at-bl { bottom: 12px; left: 12px; }
.pgCoords.lift { right: auto; bottom: auto; transform: scale(1.12); box-shadow: 0 8px 18px rgba(42,36,32,.3); background: #FFFDF8; cursor: grabbing; transition: transform .12s; }
#pg:not(.wide) .pgCoords.at-tr { top: 12px; right: 64px; }
.pgJobPin { width: 30px; height: 38px; border: 0; padding: 0; background: none; cursor: pointer; } .pgJobPin > span { display: block; animation: pgDrop .55s cubic-bezier(.3,1.4,.5,1) both; }
.pgJobPin i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(42,36,32,.4); font: 700 12px/1 var(--sans); font-style: normal; color: #fff; }
@keyframes pgDrop { from { transform: translateY(-60px); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
/* a job's book */
.pgFact { margin: 0 0 6px; font: 400 15px/1.35 var(--sans); } .pgFact small { display: block; font: 700 10px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.pgLoc { display: flex; align-items: center; gap: 8px; } .pgLoc .pgRow { flex: 1; min-width: 0; }
.pgItem { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(42,36,32,.08); } .pgItem b { flex: none; font: 600 14.5px var(--sans); } .pgItem span { flex: 1; min-width: 0; font: 400 14px/1.35 var(--sans); color: var(--ink2); } .pgItem.done b, .pgItem.done span { text-decoration: line-through; opacity: .6; }
.pgItem label { flex: none; align-self: center; } .pgItem input { width: 20px; height: 20px; accent-color: var(--accent); }
.pgX { flex: none; align-self: center; width: 36px; height: 36px; border: 0; background: none; color: var(--ink2); cursor: pointer; }
.pgMonth { margin: 8px 0; padding: 8px 10px; border-radius: 12px; background: rgba(255,253,248,.75); border: 1px solid var(--line); } .pgMonth > p { margin: 0 0 4px; } .pgMonth > p small { color: var(--ink2); }
.pgPayRow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 2px 0; font: 400 14px/1.35 var(--sans); } .pgPayRow span { flex: 1 1 140px; } .pgPayRow small { flex-basis: 100%; color: var(--ink2); font-size: 12.5px; }
.pgPending { display: block; width: 100%; text-align: left; margin: 8px 0 4px; padding: 10px 12px; border: 1.5px dashed #B4533A; border-radius: 12px; background: rgba(180,83,58,.06); font: 500 14px var(--sans); color: var(--ink); cursor: pointer; }
.pgInline { display: flex; align-items: center; gap: 8px; font: 500 13.5px var(--sans); color: var(--ink2); margin: 0 0 6px; } .pgInline select { height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 14px var(--sans); padding: 0 6px; }
.pgWho .pgEditBtn { width: auto; padding: 0 6px; font: 600 13px var(--sans); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* miles & expenses as pages of the book */
.pgProf label { display: flex; flex-direction: column; gap: 3px; font: 600 12px var(--sans); color: var(--ink2); }
.pgMiles { position: relative; flex: 1; overflow: auto; padding: 72px 22px 24px; background: var(--bg2); } .pgMiHd { display: flex; align-items: center; justify-content: space-between; } .pgMiHd h3 { margin: 0; font: 600 22px var(--serif); }
.pgMiTot { margin: 6px 0 12px; font: 400 15px var(--sans); color: var(--ink2); } .pgMiTot b { font: 700 22px var(--sans); color: var(--ink); }
.pgMiDay { padding: 8px 0; border-bottom: 1px solid var(--line); } .pgMiDay p { display: flex; justify-content: space-between; margin: 0 0 3px; font: 400 calc(18px * var(--hs, 1))/1.3 var(--hand); color: var(--pen); } .pgMiDay small { display: block; font: 400 13px/1.4 var(--sans); color: var(--ink2); }
.pgMiGo { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.pgPrint { position: fixed; inset: 0; z-index: 80; background: #DCD3C2; display: flex; flex-direction: column; }
.pgPrintBar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); } .pgPrintBar b { font: 600 18px var(--serif); } .pgPrintBar span { flex: 1; color: var(--ink2); font-size: 13px; }
.pgPrintStage { flex: 1; overflow: auto; padding: 24px; display: flex; justify-content: center; align-items: flex-start; }
.mpSheet { flex: none; width: 11in; min-height: 8.5in; box-sizing: border-box; padding: .4in; background: #fff; color: #000; font: 10px/1.3 Arial, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.25); transform-origin: top center; }
@media (max-width: 1150px) { .mpSheet { zoom: .62; } } @media (max-width: 700px) { .mpSheet { zoom: .34; } }
.mpSheet h1 { margin: 0 0 14px; font: 700 14px Arial, sans-serif; text-align: center; } .mpRow { display: flex; gap: 24px; margin-bottom: 12px; } .mpF { flex: 1; } .mpF b { display: block; min-height: 15px; border-bottom: 1px solid #000; font: 400 12px Arial; } .mpF small { font-size: 8px; font-weight: 700; }
.mpSheet table { width: 100%; border-collapse: collapse; margin-top: 8px; } .mpSheet th, .mpSheet td { border: 1px solid #000; padding: 3px 4px; text-align: center; font-size: 9.5px; } .mpSheet th { font-size: 8px; background: #F2F2F2; } .mpSheet .ex { text-align: left; width: 42%; } .mpSheet tr.tot td { font-weight: 700; }
.mpDecl { margin: 14px 0 22px; font-size: 9px; font-weight: 700; } .mpSign { display: flex; justify-content: space-between; font-size: 11px; }
@media print { body.mp-print > *:not(.pgPrint) { display: none !important; } body.mp-print .pgPrint { position: static; background: #fff; } body.mp-print .pgPrintBar { display: none; } body.mp-print .pgPrintStage { padding: 0; overflow: visible; } body.mp-print .mpSheet { zoom: 1; box-shadow: none; width: auto; } @page { size: letter landscape; margin: .3in; } }

body.mp-open #pulse, body.mp-open #camiFloat { display: none; } /* not over the print preview */
.pgR .pgPlusWrap .pgTextBtns button { background: rgba(255,253,248,.92); border-radius: 10px; padding: 8px 10px; box-shadow: 0 2px 8px rgba(42,36,32,.12); } /* readable over the map */

/* ---- the cross-section builder: drop-in shelf, the inspector for one part of the drawing, quantities, quick sections */
#skSectPal { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-bottom: 1px solid var(--line); overflow-x: auto; font-size: 12.5px; background: var(--surface, #FFFDF8); }
#skSectPal:empty { display: none; }
#skSectPal > i { font-style: normal; font-weight: 600; color: var(--ink2); margin-right: 2px; flex: none; }
#skSectPal > em { font-style: normal; color: var(--ink2); margin-left: 6px; white-space: nowrap; }
.skDrop { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 6px 11px; font: inherit; cursor: grab; touch-action: none; user-select: none; }
.skDrop span { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.35); }
.skDrop.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.skDropGhost { position: fixed; z-index: 9999; transform: translate(-50%, -130%); pointer-events: none; background: var(--accent); color: #fff; border-radius: 999px; padding: 6px 12px; font: 600 12.5px var(--sans); box-shadow: 0 6px 18px rgba(42,36,32,0.3); }
.skSectMain { display: flex; align-items: stretch; min-height: 0; }
.skSectMain #skSectBody { flex: 1 1 auto; min-width: 0; }
#skSectBody.arming { cursor: crosshair; }
#skSectInsp { flex: 0 0 268px; border-left: 1px solid var(--line); background: var(--bg); padding: 10px 12px; font-size: 12.5px; overflow: auto; max-height: 480px; display: flex; flex-direction: column; gap: 7px; }
#skSectInsp.hidden { display: none; }
#skSectInsp .skLk { grid-template-columns: 1fr; gap: 2px; } #skSectInsp .skLk.c { grid-template-columns: auto 1fr; gap: 8px; }
#skSectInsp .skStep { align-self: flex-start; }
.skInspHead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.skInspHead b { font: 600 15px var(--serif); color: var(--ink); }
.skSub { margin-top: 4px; color: var(--ink); }
.skSpec { display: grid; gap: 5px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.skSpec label { display: grid; grid-template-columns: 1fr 108px; align-items: center; gap: 8px; }
.skSpec input { border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 5px 7px; font: inherit; min-width: 0; }
.skSpec i, #skSectInsp > i { font-style: normal; color: var(--ink2); font-size: 11.5px; }
#skSectQty { border-top: 1px solid var(--line); font-size: 12.5px; } #skSectQty.hidden { display: none; }
.skQtyHead { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: var(--bg); color: var(--ink); padding: 8px 12px; font: inherit; text-align: left; cursor: pointer; }
.skQtyHead span { flex: 1; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .skQtyHead em { font-style: normal; color: var(--accent); }
.skQtyWrap { overflow-x: auto; padding: 0 12px 10px; } .skQtyWrap table { border-collapse: collapse; width: 100%; min-width: 720px; }
.skQtyWrap th, .skQtyWrap td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; } .skQtyWrap th { color: var(--ink2); font-weight: 600; }
.skQtyWrap i { display: block; font-style: normal; color: var(--ink2); padding-top: 6px; }
#skHere { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60; width: min(360px, calc(100vw - 24px)); background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(42,36,32,0.22); padding: 12px 14px; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink2); }
#skHere.hidden, #skQuick.hidden { display: none; } #skHere b { font: 600 16px var(--serif); color: var(--ink); } #skHere .btn.primary { flex: 1; padding: 11px; font-size: 15px; }
#skQuick { position: fixed; inset: 0; z-index: 72; background: rgba(42,36,32,0.28); display: grid; place-items: center; padding: 12px; }
.skQkCard { width: min(460px, 100%); max-height: 86vh; overflow: auto; background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; font-size: 13.5px; color: var(--ink2); }
.skQkHead { display: flex; justify-content: space-between; align-items: center; } .skQkHead b { font: 600 19px var(--serif); color: var(--ink); }
.skQkCard > i { display: block; font-style: normal; font-weight: 600; color: var(--ink); margin: 10px 0 6px; }
.skQkTiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.skQkTiles button { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 14px; padding: 12px 10px; font: 600 13px var(--sans); text-align: left; cursor: pointer; }
.skQkTiles button:hover { border-color: var(--accent); }
@media (max-width: 760px) { .skSectMain { flex-direction: column; } #skSectInsp { flex: none; border-left: 0; border-top: 1px solid var(--line); max-height: 34vh; } }
#skSect { max-height: calc(100vh - 100px); overflow-y: auto; }
@media (max-width: 760px) { #skSect { max-height: calc(100dvh - 176px); } #skSectPal > em { display: none; } }

/* ---- the section on a phone turned sideways: the whole screen, the drawing on the left, the options on the right */
#skSect.full { left: calc(6px + var(--safe-l)); right: calc(6px + var(--safe-r, 0px)); top: calc(6px + var(--safe-t)); bottom: calc(6px + var(--safe-b)); max-width: none; max-height: none; z-index: 68; display: flex; flex-direction: column; overflow: hidden; margin: 0; }
#skSect.full.hidden { display: none; }
#skSect.full .skSectHead, #skSect.full #skSectRoad, #skSect.full #skSectPal, #skSect.full #skSectFoot { flex: none; }
#skSect.full .skSectMain { flex: 1 1 auto; min-height: 0; }
#skSect.full #skSectBody { flex: 1 1 auto; min-height: 0; min-width: 0; overflow: hidden; }
#skSect.full #skSectInsp { max-height: none; }
#skSect.full[data-side=""] #skSectInsp { flex: 0 0 44%; }
#skSect.full #skSectQty { flex: none; max-height: 45%; overflow: auto; }
#skSect.full #skSectLook { flex: none; max-height: 40%; overflow: auto; }
body:has(#skSect.full:not(.hidden)) #camiFloat, body:has(#skSect.full:not(.hidden)) #skBar { display: none; } /* she steps aside: the section has the whole screen */
#skSect.land .skSectHead { flex-wrap: nowrap; overflow-x: auto; padding-top: 4px; padding-bottom: 4px; gap: 6px; } #skSect.land .skSectHead > * { flex: none; } #skSect.land .skSectHead .grow { display: none; } #skSect.land .skSectHead .btn { padding: 5px 9px; font-size: 12px; }
#skSect.land .skSectHead [data-a="close"] { position: sticky; right: 0; background: var(--bg); }
#skSect.land #skSectRoad, #skSect.land #skSectFoot { display: none; }
#skSect.land #skSectPal { padding: 4px 10px; } #skSect.land #skSectPal > em { display: none; } #skSect.land .skDrop { padding: 4px 9px; }
#skSect.land .skSectMain { flex-direction: row; }
#skSect.land #skSectBody { flex: 1 1 58%; }
#skSect.land #skSectInsp { flex: 0 0 42%; max-width: 340px; border-left: 1px solid var(--line); border-top: 0; }
#skSect.short .skQtyHead { padding: 5px 10px; } #skSect.short #skSectQty { max-height: 62%; }
#skTurn { position: fixed; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 95; width: min(270px, 84vw); background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 34px rgba(42,36,32,0.28); padding: 16px 16px 14px; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 13px; color: var(--ink2); transition: opacity .35s; }
#skTurn.out { opacity: 0; pointer-events: none; }
#skTurn b { font: 600 17px var(--serif); color: var(--ink); }
#skTurn svg { width: 74px; height: 74px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#skTurn .ph { transform-origin: 32px 32px; animation: skTurnPh 2.2s ease-in-out infinite; } #skTurn .ar { animation: skTurnAr 2.2s ease-in-out infinite; }
@keyframes skTurnPh { 0%, 18% { transform: rotate(0); } 55%, 88% { transform: rotate(90deg); } 100% { transform: rotate(0); } }
@keyframes skTurnAr { 0%, 12% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #skTurn .ph { animation: none; transform: rotate(90deg); } #skTurn .ar { animation: none; } }
#skTurn svg * { fill: none !important; stroke: var(--accent); }

/* ---- the section's menu: everything in it as a list; the picked row opens its options in place */
#skSect[data-side="l"] #skSectInsp { order: -1; border-left: 0; border-right: 1px solid var(--line); }
#skSect[data-side="l"] #skSectInsp, #skSect[data-side="r"] #skSectInsp { flex: 0 0 292px; max-height: 480px; }
#skSectInsp { gap: 4px; }
.skMenuHead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 4px; }
.skMenuHead b { font: 600 15px var(--serif); color: var(--ink); } .skMenuHead .btn { padding: 4px 8px; font-size: 11.5px; }
.skRow { display: grid; grid-template-columns: 14px 1fr auto 14px; align-items: center; gap: 8px; width: 100%; border: 1px solid var(--line); background: var(--surface, #FFFDF8); color: var(--ink); border-radius: 10px; padding: 8px 9px; font: inherit; text-align: left; cursor: pointer; flex: none; }
.skRow > span { width: 13px; height: 13px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.35); }
.skRow b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--sans); font-size: 12.5px; } .skRow em { font-style: normal; color: var(--ink2); } .skRow u { text-decoration: none; color: var(--ink2); text-align: center; }
.skRow:hover { border-color: var(--accent); }
.skRow.on { background: var(--accent); color: #fff; border-color: var(--accent); border-radius: 10px 10px 0 0; } .skRow.on em, .skRow.on u { color: #fff; }
.skRowBody { display: flex; flex-direction: column; gap: 7px; border: 1px solid var(--accent); border-top: 0; border-radius: 0 0 10px 10px; padding: 9px 9px 10px; margin-top: -4px; background: var(--bg); flex: none; }
.skRowBody > i { font-style: normal; color: var(--ink2); font-size: 11.5px; }
.skItem { display: grid; grid-template-columns: 1fr 76px auto; align-items: center; gap: 6px; } .skItem input { border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 5px 7px; font: inherit; min-width: 0; } .skItem input:only-of-type:last-child { grid-column: 2 / 4; }
#skSectInsp { position: relative; }
.skRow.on b { color: #fff; font: 600 12.5px var(--sans); }
#skSect[data-side="l"] #skSectRoad:not(:has([data-a^="surf"])), #skSect[data-side="r"] #skSectRoad:not(:has([data-a^="surf"])) { display: none; } /* beside the menu the road row would say everything twice */
#skSect.full .skSectHead .btn.hidden { display: none; }
@media (max-width: 760px) { #skSect.full { max-height: none; } #skSect.full #skSectInsp { max-height: none; } }
#skSect.full[data-side=""]:not(.land) #skSectRoad:not(:has([data-a^="surf"])), #skSect.full[data-side=""]:not(.land) #skSectFoot { display: none; } /* upright on a phone: the drawing and the menu get the room */
#skSect.full[data-side=""]:not(.land) .skSectMain { flex-direction: column; } #skSect.full[data-side=""]:not(.land) #skSectInsp { flex: 0 0 46%; border-left: 0; border-top: 1px solid var(--line); }
#skSect.full[data-side="l"] #skSectInsp, #skSect.full[data-side="r"] #skSectInsp { max-height: none; }
#skSect:not(.full) { max-height: calc(100vh - 176px); } /* docked: its top stays under the search bar */
#skSect.land .skSectHead #skSectTitle { order: -2; } #skSect.land .skSectHead [data-a="close"] { order: -1; position: static; }

/* ---- the section: plan beside it, his name and label, items & quantities */
.skSectDraw { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
#skSect.full .skSectDraw #skSectBody { flex: 1 1 auto; min-height: 0; overflow: hidden; }
#skSectPlan { flex: 0 0 42%; min-height: 0; border-bottom: 1px solid var(--line); overflow: hidden; background: #f4f1ea; }
#skSect[data-view="plan"] #skSectPlan { flex: 1 1 auto; border-bottom: 0; }
#skSectPlan.hidden, #skSectBody.hidden, .skViews.hidden { display: none; }
.skViews button.on { background: var(--accent); color: #fff; }
.skThis { display: grid; gap: 5px; padding: 2px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; flex: none; }
.skThis label { display: grid; gap: 2px; } .skThis span { color: var(--ink2); font-size: 11.5px; }
.skThis input { border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 6px 8px; font: inherit; min-width: 0; }
.skThis .btn { padding: 5px 9px; font-size: 11.5px; }
.skItems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 4px 12px 10px; align-items: start; }
.skItemsCol { display: grid; gap: 6px; min-width: 0; } .skItemsCol > b { font: 600 13.5px var(--serif); color: var(--ink); } .skItemsCol > i, .skPayAsk i, #skPayFound i { font-style: normal; color: var(--ink2); font-size: 11.5px; }
.skItemsCol input[type="search"] { border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); padding: 8px 10px; font: inherit; width: 100%; min-width: 0; }
#skPayFound { display: grid; gap: 6px; max-height: 190px; overflow: auto; }
.skPay { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface, #FFFDF8); padding: 7px 9px; }
.skPay p { margin: 0; flex: 1; min-width: 0; font-size: 12px; line-height: 1.35; } .skPay p b { color: #c62828; } .skPay span, .skPay em { color: var(--ink2); font-style: normal; font-size: 11.5px; }
.skPay .btn { flex: none; padding: 6px 9px; font-size: 11.5px; white-space: nowrap; } .skPay label { flex: none; white-space: nowrap; font-size: 12px; } .skPay label input { width: 68px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 6px; font: inherit; background: #fff; color: var(--ink); }
.skPay.on { border-color: #c62828; } .skPay.done { opacity: 0.6; } .skPay.hint { background: var(--bg); border-style: dashed; }
.skPayAsk { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border: 1px solid #c62828; border-radius: 12px; padding: 8px 10px; background: var(--surface, #FFFDF8); font-size: 12.5px; } .skPayAsk b { color: #c62828; } .skPayAsk i { flex-basis: 100%; }
.skQtyHead span u { text-decoration: none; color: #c62828; font-weight: 600; }
#skSect.full #skSectQty { max-height: 46%; }
@media (max-width: 900px) { .skItems { grid-template-columns: 1fr; } }
.prSecOff { display: none; }

/* ---- Print preview in the section window: the sheet as it prints, and everything on it can be worked on */
#skSheetBar { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line); background: var(--sand, #F1EADB); font-size: 12.5px; flex: none; overflow-x: auto; }
#skSheetBar.hidden { display: none; } #skSheetBar > * { flex: none; } #skSheetBar .grow { flex: 1 1 auto; }
#skSheetBar > i { font-style: normal; font-weight: 600; color: var(--ink2); } #skSheetBar em { font-style: normal; color: var(--ink2); }
#skSheetBar select { border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 5px 8px; font: inherit; }
#skSect[data-view="sheet"] #skSectBody { background: #d9d4c7; position: relative; display: grid; place-items: center; }
.skSheetWrap { box-shadow: 0 6px 22px rgba(42,36,32,0.35); background: #fff; line-height: 0; }
.skSheet [data-edit]:hover > rect:first-of-type { fill: #2F5D50; fill-opacity: 0.09; }
#skSheetEdit { position: absolute; z-index: 4; display: flex; align-items: flex-end; gap: 6px; background: var(--surface, #FFFDF8); border: 2px solid var(--accent); border-radius: 12px; padding: 8px 10px; box-shadow: 0 8px 24px rgba(42,36,32,0.3); font-size: 12px; color: var(--ink2); }
#skSheetEdit label { display: grid; gap: 3px; } #skSheetEdit input { width: 210px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; }
#skSect[data-view="sheet"] .skZoom, #skSect[data-view="sheet"] #skSectRoad, #skSect[data-view="sheet"] #skSectFoot, #skSect[data-view="sheet"] [data-a="ex"], #skSect[data-view="sheet"] label:has(#skSectPrint) { display: none; }

/* ---- excavations (v97): the name up top, off curbs, who it is for, put away */
#panelTitle .skNameLb { font: 600 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); display: block; margin-bottom: 2px; }
#panelTitle #skName { width: 100%; max-width: 280px; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px dashed var(--line); border-radius: 0; padding: 0 0 2px; }
#panelTitle #skName:hover, #panelTitle #skName:focus { border-bottom-color: var(--accent); outline: none; }
.skTieRow { display: grid; grid-template-columns: 1fr 76px; gap: 4px 8px; align-items: center; padding: 8px 10px; margin: 0 0 8px; background: var(--sand); border: 1px solid var(--line); border-radius: 14px; }
.skTieRow .skTieNm { font-weight: 700; color: var(--ink); }
.skTieRow input { width: 100%; text-align: right; }
.skTieRow .skTieTx { color: var(--ink2); font-size: 13px; }
.skTieRow .skTieEye { padding: 4px 8px; font-size: 12.5px; }
.skOps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.skOps .skOp { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 13px; }
.skOps .skOp i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); flex: none; }
.skOps .skOp.on { background: var(--accent); color: #fff; border-color: var(--accent); }
#skCutSizes { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
#skAway { position: fixed; z-index: 6; left: 50%; top: 132px; transform: translateX(-50%); font: 600 13px var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; box-shadow: 0 2px 10px rgba(42, 36, 32, .14); cursor: pointer; white-space: nowrap; }
#skAway.on { background: var(--accent); color: #fff; border-color: var(--accent); }
#skAway.hidden { display: none; }
#skSvg [data-h="lb"] .skHit { cursor: grab; }
#skSvg .skTieHit { cursor: pointer; }
@media (max-width: 700px) { #skAway { top: auto; bottom: 150px; } }
/* the cut's menu in sections he can sort (hold the name, slide), voids and pay items */
.skSecs { display: flex; flex-direction: column; }
.skSec { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 6px; background: var(--bg); transition: box-shadow .15s, transform .15s; }
.skSecs > .skSec:first-child { border-top: 0; margin-top: 0; }
.skSecHd { display: flex; align-items: center; justify-content: space-between; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.skSecHd .skGrip { width: 14px; height: 10px; flex: none; opacity: .45; background: radial-gradient(circle, var(--ink2) 1.3px, transparent 1.6px) 0 0 / 5px 5px; }
.skSecs.sorting .skSec { opacity: .75; }
.skSecs.sorting .skSec.lift { opacity: 1; position: relative; z-index: 2; box-shadow: 0 8px 22px rgba(42, 36, 32, .22); transform: scale(1.015); border-radius: 14px; padding: 4px 10px 8px; }
.skSecs.sorting .skSecHd { touch-action: none; }
.skVoid { display: flex; gap: 8px; align-items: flex-start; padding: 7px 10px; margin: 0 0 6px; background: var(--sand); border: 1px solid var(--line); border-radius: 14px; font-size: 13.5px; line-height: 1.35; }
.skVoid input { margin-top: 3px; flex: none; }
.skVoid.skip { opacity: .7; }
.skPayRow { padding: 8px 10px; margin: 0 0 8px; background: var(--sand); border: 1px solid var(--line); border-radius: 14px; font-size: 13.5px; }
.skPayQ { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.skPayQ input { width: 96px; text-align: right; }
.skPayQ .btn { padding: 4px 9px; font-size: 12.5px; margin-left: auto; }
#skCutPayQ { width: 100%; margin: 4px 0 6px; }
.skPayHit { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.skPayHit .btn { padding: 4px 10px; font-size: 12.5px; flex: none; }

/* ---- workspace layouts and the menu card (v99): a top bar of preset layouts, a menu he can size and roll up */
#skRail, #panelRoll, .pGrip { display: none; }
@media (min-width: 900px) {
  body.sketching #skRail { display: flex; align-items: center; gap: 4px; position: fixed; z-index: 6; top: calc(10px + var(--safe-t)); right: calc(76px + var(--safe-r)); padding: 5px 6px 5px 12px; background: var(--bg); border-radius: 16px; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
  #skRail .skRailLb { font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin-right: 4px; }
  #skRail button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 58px; min-height: 44px; padding: 4px 6px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink); font: 600 10.5px var(--sans); cursor: pointer; }
  #skRail button:hover { background: var(--bg2); }
  #skRail button.on { background: var(--bg2); border-color: var(--accent); color: var(--accent); }
  #skRail .skRailSep { width: 1px; align-self: stretch; margin: 4px 4px; background: var(--line); }
  #skRail #skRailRoll svg { transition: transform .2s; }
  #skRail #skRailRoll.on svg { transform: rotate(180deg); }
}
@media (min-width: 900px) and (max-width: 1280px) { #skRail button span { display: none; } #skRail button { min-width: 44px; } }
body.sketching #panelRoll { display: inline-flex; }
#panelRoll svg { transition: transform .2s; }
#panel.rolled #panelRoll svg { transform: rotate(180deg); }
body.sketching #panel.rolled { height: auto !important; max-height: none !important; bottom: auto !important; }
body.sketching #panel.rolled #panelBody, body.sketching #panel.rolled .pGrip { display: none; }
body.sketching #panel.rolled .panelhead { border-bottom: 0; cursor: pointer; }
@media (min-width: 641px) {
  body.sketching #panel { width: var(--pw, min(360px, calc(100vw - 310px))); container-type: inline-size; }
  body.sketching #panel.sized { height: var(--ph); max-height: calc(100vh - 24px - var(--safe-t)); }
  body.sketching #panel #panelBody { flex: 1; min-height: 0; }
  body.sketching .pGrip { display: block; position: absolute; z-index: 2; }
  body.sketching .pGripW { left: -5px; top: 18px; bottom: 18px; width: 10px; cursor: ew-resize; }
  body.sketching .pGripH { left: 18px; right: 18px; bottom: -5px; height: 10px; cursor: ns-resize; }
  body.sketching .pGrip::after { content: ''; position: absolute; border-radius: 3px; background: var(--line); opacity: 0; transition: opacity .15s; }
  body.sketching .pGripW::after { left: 3px; top: 50%; width: 4px; height: 44px; margin-top: -22px; }
  body.sketching .pGripH::after { top: 3px; left: 50%; height: 4px; width: 44px; margin-left: -22px; }
  body.sketching #panel:hover .pGrip::after, body.sketching #panel.sizing .pGrip::after { opacity: 1; }
  body.sketching #panel.sizing { transition: none; user-select: none; }
  /* Side by side: the menu is its own full-height column on the right */
  body.sketching.skL-side #panel { top: calc(74px + var(--safe-t)); bottom: 16px; height: auto; max-height: none; }
  body.sketching.skL-side .pGripH { display: none; }
  /* Menu left: its own column on the left, clear of the Notes tab and the map buttons */
  body.sketching.skL-menuleft #panel { left: calc(92px + var(--safe-l)); right: auto; top: calc(74px + var(--safe-t)); bottom: 84px; height: auto; max-height: none; }
  body.sketching.skL-menuleft .pGripW { left: auto; right: -5px; }
  body.sketching.skL-menuleft .pGripH { display: none; }
}
@container (min-width: 600px) {
  .skSecs { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; align-items: start; }
  .skSecs > .skSec, .skSecs > .skSec:first-child { border: 1px solid var(--line); border-radius: 14px; margin: 0; padding: 2px 12px 10px; }
}

/* ---- v100: depth in feet and inches, turning a cut, pay items up close (payitems.js) */
.skDq { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--ink2); }
.skDq .btn { padding: 4px 10px; min-height: 32px; }
.skTurnRow { align-items: center; gap: 6px; flex-wrap: wrap; }
.skTurnRow .btn { padding: 5px 10px; }
.skPayTop { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.skPayLbl { margin: 12px 0 4px; font: 700 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.skPaySug { background: var(--bg2); border-radius: 10px; padding: 6px 8px; margin-bottom: 6px; }
.skPayNo { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#pyBox { position: fixed; inset: 0; z-index: 9000; background: rgba(42,36,32,.42); display: flex; align-items: center; justify-content: center; padding: 16px; }
#pyBox .pyCard { width: min(680px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg); color: var(--ink); border-radius: 18px; box-shadow: 0 18px 50px rgba(42,36,32,.3); padding: 18px 20px 20px; }
#pyBox.demo .pyCard { width: min(820px, 100%); }
.pyHd { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.pyHd small { font: 700 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.pyHd h3 { margin: 3px 0 4px; font: 600 22px/1.2 var(--serif); }
.pyHd p { margin: 0; font-size: 14px; color: var(--ink2); }
.pyX { flex: none; width: 40px; height: 40px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg2); font-size: 16px; cursor: pointer; color: var(--ink); }
.pyRow { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pyRow .btn { min-height: 42px; }
.pyBook section { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.pyBook h4 { margin: 0 0 2px; font: 600 16px/1.3 var(--serif); }
.pyFrom { margin: 0 0 8px; font-size: 12px; color: var(--ink2); }
.pyText { white-space: pre-wrap; font: 13.5px/1.5 var(--sans); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; max-height: 50vh; overflow: auto; }
.pyStage { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pyStage svg { display: block; width: 100%; height: auto; }
.pyStage [data-s] { opacity: 0; transition: opacity .6s ease, transform .9s ease; }
.pyStage [data-s].on { opacity: 1; }
.pyStage .pyDig, .pyStage .pyFill { transform-box: fill-box; transform-origin: top; transform: scaleY(0); }
.pyStage .pyDig.on, .pyStage .pyFill.on { transform: scaleY(1); }
.pyStage .pyGlow.on { animation: pyGlow 1.4s ease-in-out infinite; }
.pyStage .pyBob.on { animation: pyBob .7s ease-in-out infinite; }
@keyframes pyGlow { 50% { opacity: .35; } }
@keyframes pyBob { 50% { transform: translate(0, 6px); } }
.pyCap { min-height: 3.2em; margin: 12px 2px 4px; font: 600 16px/1.45 var(--sans); }
.pyDots { display: flex; gap: 6px; }
.pyDots button { width: 26px; height: 8px; border: 0; border-radius: 4px; background: var(--line); cursor: pointer; padding: 0; }
.pyDots button.on { background: var(--accent); }
.pyLb { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; font: 600 13px/1.3 var(--sans); }
.pyLb select, .pyLb textarea { font: 14px/1.4 var(--sans); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; background: #fff; color: var(--ink); }
.pyUp { display: inline-flex; align-items: center; cursor: pointer; }
.pyLbl { margin: 14px 0 6px; font: 700 12px/1.2 var(--sans); color: var(--ink2); }
.pyItem { display: grid; grid-template-columns: 24px 96px minmax(0, 1fr) 64px; gap: 6px; align-items: center; margin-bottom: 6px; }
.pyItem input:not([type]) { min-width: 0; font: 13px/1.3 var(--sans); border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; background: #fff; color: var(--ink); }
.pyItem input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
.pyHad { margin: -2px 0 8px 30px; }
@media (max-width: 520px) { .pyItem { grid-template-columns: 24px 80px minmax(0, 1fr); } .pyItem .pyU { grid-column: 3; } #pyBox { padding: 0; align-items: stretch; } #pyBox .pyCard { max-height: none; border-radius: 0; } }
body:has(#pyBox) #camiFloat { display: none; }

/* ---- v101: text links instead of pills, owners, Format shape, name tags, nearby measurements, voids */
.skLink { border: 0; background: none; padding: 6px 0; min-height: 32px; font: 600 13.5px/1.3 var(--sans); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; text-align: left; }
.skLink:hover { color: var(--ink); }
.skLinks { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0; }
.skTieRow .skLink { padding: 4px 2px; }
.skHintBox { position: relative; overflow: hidden; border-radius: 10px; }
.skHintBox input { width: 100%; }
.skHintRoll { position: absolute; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); white-space: nowrap; color: var(--ink2); font: 14px/1.2 var(--sans); pointer-events: none; overflow: visible; }
.skHintRoll.roll { animation: skRoll var(--dur, 12s) ease-in-out 1s infinite alternate; }
@keyframes skRoll { 0%, 12% { transform: translate(0, -50%); } 88%, 100% { transform: translate(calc(-1 * var(--over, 0px)), -50%); } }
.skVoid label { flex: 1; min-width: 0; cursor: pointer; }
.skVoid input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
.skVoidNo { display: flex; flex-direction: column; gap: 2px; flex: none; width: 74px; font: 600 11px/1.2 var(--sans); color: var(--ink2); }
.skVoidNo input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; font: 13px/1.2 var(--sans); background: #fff; color: var(--ink); }
.skHow { margin: 6px 0 4px; padding-left: 20px; font-size: 13px; line-height: 1.45; color: var(--ink); }
.skHow li { margin-bottom: 5px; }
.skShowMe { animation: skShowMe 1s ease-in-out 5; border-radius: 16px; }
@keyframes skShowMe { 50% { box-shadow: 0 0 0 5px rgba(47,93,80,.55), 0 0 22px rgba(47,93,80,.45); } }
#skSvg .skTieFade { animation: skTieOut 1.6s ease-in forwards; }
@keyframes skTieOut { to { opacity: 0; } }
#skSvg .skGapHit { pointer-events: stroke; cursor: context-menu; }
body.sk-drawing #skSvg .skGapHit { pointer-events: none; }
.skOwn { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.skOwnSw { flex: none; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); }
.skOwn .skOwnN { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: 14px/1.2 var(--sans); background: #fff; color: var(--ink); }
.skPct { display: flex; align-items: center; gap: 2px; flex: none; font: 600 13px var(--sans); color: var(--ink2); }
.skPct input { width: 54px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; font: 14px/1.2 var(--sans); text-align: right; background: #fff; color: var(--ink); }
.skOk { color: var(--accent); font-weight: 600; }
.skBad { color: #b3261e; font-weight: 600; }
.skSplit { margin: 2px 0 0; color: var(--ink); font-weight: 600; }
.skFmtHd { margin: 12px 0 4px; font: 700 11.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.skRad { display: inline-flex; align-items: center; gap: 5px; margin: 2px 14px 2px 0; font-size: 13.5px; cursor: pointer; }
.skRad input { accent-color: var(--accent); }
.skPats { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 4px; margin: 8px 0; }
.skPat { aspect-ratio: 1; border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 2px; cursor: pointer; }
.skPat svg { width: 100%; height: 100%; display: block; }
.skPat.on { outline: 2px solid var(--accent); outline-offset: 1px; }
.skFmtRow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 5px 0; font-size: 13.5px; }
.skFmtRow > span:first-child { color: var(--ink); }
.skFmtRow select { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font: 13px var(--sans); background: #fff; color: var(--ink); max-width: 58%; }
.skFmtRow input[type="color"] { width: 44px; height: 30px; border: 1px solid var(--line); border-radius: 6px; padding: 1px; background: #fff; }
.skRng { display: flex; align-items: center; gap: 6px; }
.skRng input { width: 120px; accent-color: var(--accent); }
.skRng output { min-width: 44px; text-align: right; font: 600 12px var(--sans); color: var(--ink2); }
.skChk { display: inline-flex; align-items: center; gap: 5px; margin: 3px 14px 3px 0; font-size: 13.5px; cursor: pointer; }
.skChk input { accent-color: var(--accent); }
.skDet { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.skDet summary { cursor: pointer; font: 700 12px/2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.skFlash { animation: skFlash 1.5s ease; }
@keyframes skFlash { 20% { background: rgba(47,93,80,.12); } }

/* ---- v102: alignment lines, the marching outline, card settings, the north arrow */
#skSvg .skAnts { fill: rgba(47,93,80,.07); stroke: #2F5D50; stroke-width: 2; stroke-dasharray: 7 5; animation: skAnts .6s linear infinite, skAntsGlow 1.3s ease-in-out 2; pointer-events: none; }
@keyframes skAnts { to { stroke-dashoffset: -12; } }
@keyframes skAntsGlow { 50% { stroke-width: 3.5; } }
#panelCog[hidden] { display: none; }
#panelCog { color: var(--ink2); }
#panelCog.on { color: var(--accent); }
#panelCog svg { display: block; }
#panelTitle .skHeadBig { display: block; font: inherit; }
#panelTitle .skHeadUnder { display: block; font: 500 13px/1.3 var(--sans); color: var(--ink2); margin-top: 2px; }
#panelTitle[data-hs="S"] .skHeadBig, #panelTitle[data-hs="S"] #skName.skHeadBig { font-size: 16px; }
#panelTitle[data-hs="L"] .skHeadBig, #panelTitle[data-hs="L"] #skName.skHeadBig { font-size: 28px; }
#panelTitle input.skNameLb { font: 600 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
#panelTitle input.skHeadUnder { font: 500 13px var(--sans); }
.skCard { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.skCtxList { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 8px; }
.skCtxItem { margin: 0; }
.skLevel { display: flex; gap: 12px; align-items: center; }
.skLevelPic { flex: none; width: 120px; height: 70px; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.skLevelTurn { transform-box: view-box; transform-origin: 60px 35px; animation: skLevel 3.6s ease-in-out infinite; }
@keyframes skLevel { 0%, 12% { transform: rotate(-28deg); } 50%, 80% { transform: rotate(0deg); } 100% { transform: rotate(-28deg); } }
@media (prefers-reduced-motion: reduce) { .skLevelTurn, #skSvg .skAnts { animation: none; } }

/* ==== v103: the Corner Office (office.js) and its widgets (work.js) — Bryan, Nov 21, 2026 ==== */
html.office-boot body::before { content: ''; position: fixed; inset: 0; z-index: 57; background: var(--bg2); } /* cream until the office is up, so the map never flashes */
#landing .landOfc { display: none; }
#landing.land-office.land-book { flex-direction: column; gap: 14px; }
#landing.land-office .landOfc { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding-top: calc(10px + var(--safe-t)); }
#landing.land-office .landOfc img { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 8px 22px rgba(42,36,32,.22); margin-bottom: 8px; }
#landing.land-office .landOfc b { font: 700 40px/1 var(--serif); letter-spacing: .14em; color: var(--ink); padding-left: .14em; }
#landing.land-office .landOfc span { font: 600 13px/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--ink2); padding-left: .32em; }
@media (max-height: 640px) { #landing.land-office .landOfc img { width: 60px; height: 60px; } #landing.land-office .landOfc b { font-size: 30px; } }

#of { position: fixed; inset: 0; z-index: 46; background: #1c1712; font-family: var(--sans); color: var(--ink); overflow: hidden; }
body.of-open #camiFloat, body.of-open #flSheet, body.of-open #pgTab { visibility: hidden; }
#ofTab { position: fixed; z-index: 49; left: 0; top: calc(38% - 74px); border: 1px solid var(--line); border-left: 0; background: var(--bg2); color: var(--accent); border-radius: 0 14px 14px 0; padding: 8px 8px 7px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; font: 700 10px/1 var(--sans); box-shadow: 0 4px 12px rgba(42,36,32,.18); cursor: pointer; }
#ofTab[hidden], body.sketching #ofTab, html:not(.no-landing) body:has(#landing:not(.out)) #ofTab { display: none; }
#ofTab:focus-visible, #of button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* the room, drawn at 1440 x 900 and scaled to the screen */
#of .ofRoom { position: absolute; width: 1440px; height: 900px; transform: scale(var(--k)); transform-origin: 0 0; overflow: hidden; color: #2A2420; }
#of .ofRoom span { display: block; }
#of .ofWall { position: absolute; left: 0; top: 0; width: 1250px; height: 210px; background: linear-gradient(#e9e5dc, #d8d2c6); }
#of .ofWallR { position: absolute; left: 1240px; top: 0; width: 200px; height: 900px; background: linear-gradient(90deg, #cfc9bc, #e4dfd4); }
#of .ofDesk { position: absolute; left: 0; top: 210px; width: 1240px; height: 690px; background: repeating-linear-gradient(91deg, rgba(0,0,0,.07) 0 3px, transparent 3px 15px), repeating-linear-gradient(89deg, rgba(255,255,255,.04) 0 1px, transparent 1px 41px), linear-gradient(#6d4a32, #5a3c28); box-shadow: inset 0 16px 20px -10px rgba(0,0,0,.5), inset -16px 0 20px -10px rgba(0,0,0,.5); }
#of .ofHit { position: absolute; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; transition: transform .18s ease, filter .18s ease; z-index: 2; }
#of .ofHit:hover { filter: brightness(1.06) drop-shadow(0 0 10px rgba(255,236,190,.35)); }
#of .ofHit:active { transform: scale(.985); }
#of .ofTag { position: absolute; z-index: 30; font: 600 12px var(--sans); background: rgba(255,253,248,.94); color: var(--ink); padding: 4px 9px; border-radius: 6px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.28); pointer-events: none; }
#of .board { background: #fbfbf8; border: 6px solid #b9bfc3; border-radius: 4px; box-shadow: 0 6px 10px rgba(0,0,0,.3); }
#of .sticky { position: absolute; width: 104px; height: 96px; padding: 13px 9px 8px; font: 15px/1.1 var(--hand); color: #2A2420; box-shadow: 0 5px 8px rgba(0,0,0,.28); overflow: hidden; }
#of .sticky.y { background: #ffe680; } #of .sticky.p { background: #ffc2cf; } #of .sticky.b { background: #bfe0ff; } #of .sticky.g { background: #c9efb4; }
#of .mag { position: absolute; left: 44px; top: -6px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #7fb3e6, #1f4f9a); }
#of .slip { position: absolute; width: 104px; height: 80px; padding: 10px 10px 6px; background: repeating-linear-gradient(#fffdf8 0 17px, #cfe0f2 17px 18px); font: 14px/1.2 var(--hand); color: #1f4f9a; box-shadow: 0 5px 8px rgba(0,0,0,.25); overflow: hidden; }
#of .slip b { display: block; font: 700 9px var(--sans); letter-spacing: .1em; color: #c0392b; text-transform: uppercase; }
#of .spines { position: absolute; left: 14px; bottom: 12px; display: flex; align-items: flex-end; gap: 3px; }
#of .spn { width: 26px; border-radius: 2px 2px 0 0; box-shadow: inset -4px 0 5px rgba(0,0,0,.3); writing-mode: vertical-rl; font: 600 10px var(--sans); color: #fff; display: flex !important; align-items: center; justify-content: center; letter-spacing: .06em; overflow: hidden; }
#of .spn.faint { opacity: .28; }
#of .shelf { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: linear-gradient(#3a3a3a, #1f1f1f); border-radius: 2px; box-shadow: 0 6px 8px rgba(0,0,0,.35); }
#of .rack { position: absolute; inset: 0; background: linear-gradient(#8b8f93, #6c7074); border-radius: 4px; box-shadow: 0 6px 10px rgba(0,0,0,.3), inset 0 -10px 0 rgba(0,0,0,.18); }
#of .tcard { position: absolute; top: 14px; width: 44px; height: 140px; background: #f3ead3; border-top: 8px solid #2F5D50; box-shadow: 0 2px 3px rgba(0,0,0,.3); background-image: repeating-linear-gradient(transparent 0 14px, #d8caa4 14px 15px); }
#of .tcard.mine { width: 84px; top: 6px; height: 156px; padding: 6px 4px; text-align: center; transform: rotate(-2deg); z-index: 1; }
#of .tcard b { display: block; font: 800 9px var(--sans); letter-spacing: .08em; color: #2F5D50; }
#of .tcard i { display: block; font: 700 16px/1.2 var(--hand); color: #7a1f1f; font-style: normal; margin-top: 30px; }
#of .tcard small { display: block; font: 600 9px var(--sans); color: #5E554B; margin-top: 4px; }
#of .frame { padding: 13px; background: linear-gradient(135deg, #c9a36b, #9b7643); border-radius: 3px; box-shadow: 0 10px 16px rgba(0,0,0,.4); }
#of .frame .ph { width: 100%; height: 100%; background: #efe8d8; border: 6px solid #fffdf8; display: flex !important; align-items: center; justify-content: center; font: 600 11px var(--sans); color: #5E554B; text-align: center; overflow: hidden; }
#of .frame .ph img { width: 100%; height: 100%; object-fit: cover; }
#of .win { border: 10px solid #2b2b2b; border-radius: 3px; box-shadow: 0 6px 12px rgba(0,0,0,.35); overflow: hidden; background: linear-gradient(90deg, #7f8b97, #b8c0c7 70%); }
#of .win.night { background: linear-gradient(#0b1220, #233149); }
#of .win svg.sky { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
#of .win .rain { position: absolute; inset: 0; background: repeating-linear-gradient(14deg, rgba(255,255,255,.32) 0 1px, transparent 1px 11px); animation: ofRain .9s linear infinite; }
#of .win .snow { position: absolute; inset: 0; background-image: radial-gradient(#fff 1.4px, transparent 1.6px), radial-gradient(#fff 1px, transparent 1.2px); background-size: 24px 24px, 15px 15px; animation: ofSnow 6s linear infinite; opacity: .8; }
#of .win .mull { position: absolute; inset: 0; background: linear-gradient(transparent calc(50% - 4px), #2b2b2b calc(50% - 4px), #2b2b2b calc(50% + 4px), transparent calc(50% + 4px)); }
#of .win .wx { position: absolute; left: 8px; top: 8px; z-index: 2; background: rgba(255,253,248,.93); border-radius: 8px; padding: 5px 9px; font: 600 12px var(--sans); color: #2A2420; }
@keyframes ofRain { from { background-position: 0 0; } to { background-position: -120px 30px; } }
@keyframes ofSnow { from { background-position: 0 0, 0 0; } to { background-position: 10px 120px, -8px 90px; } }
#of .ofCal { position: absolute; z-index: 2; background: #FFFDF8; border-radius: 4px; display: flex; flex-direction: column; padding: 22px 16px 10px; box-shadow: 0 1px 0 #e0d6c3, 0 16px 26px rgba(25,15,5,.4); transform: rotate(-1.5deg); }
#of .ofCal .rings { position: absolute; left: 30px; right: 30px; top: -10px; height: 22px; background: repeating-linear-gradient(90deg, transparent 0 14px, #8d9095 14px 20px, transparent 20px 34px); }
#of .calHd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#of .calHd h2 { margin: 0; font: 600 26px var(--serif); color: #2A2420; }
#of .calHd button { width: 44px; height: 44px; border: 1px solid #E0D6C3; background: #F7F2E8; border-radius: 50%; font: 600 18px var(--sans); color: #2A2420; cursor: pointer; }
#of .calDow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); font: 700 10px var(--sans); letter-spacing: .1em; color: #5E554B; border-bottom: 2px solid #2A2420; padding: 8px 0 5px; }
#of .calGrid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); border-left: 1px solid #E0D6C3; }
#of .cd { position: relative; border: 0; border-right: 1px solid #E0D6C3; border-bottom: 1px solid #E0D6C3; background: transparent; padding: 4px 6px; text-align: left; font: 600 12px var(--sans); color: #2A2420; cursor: pointer; overflow: hidden; display: flex !important; flex-direction: column; align-items: flex-start; min-height: 0; }
#of .cd .n { display: inline-block; padding: 0 3px; }
#of .cd .nt { font: 400 13px/1.05 var(--hand); color: #1f4f9a; margin-top: 2px; }
#of .cd .dr { position: absolute; right: 4px; bottom: 3px; font: 800 8px var(--sans); letter-spacing: .06em; color: var(--accent); }
#of .cd.w { background: rgba(47,93,80,.08); }
#of .cd.off { background: repeating-linear-gradient(-45deg, rgba(47,93,80,.18) 0 4px, transparent 4px 9px); }
#of .cd.due .n { border: 2px solid #c0392b; border-radius: 50%; transform: rotate(-10deg); color: #c0392b; }
#of .cd.today { box-shadow: inset 0 0 0 2px #2F5D50; }
#of .cd.pick { background: #F1EADB; }
#of .cd.blank { cursor: default; }
#of .fb { width: 230px; height: 330px; border-radius: 5px 14px 14px 5px; background: radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,.18), transparent 55%), repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px), #d4621c; box-shadow: inset 12px 0 10px -8px rgba(0,0,0,.4), 0 18px 26px rgba(25,15,5,.45); transform: rotate(-4deg); }
#of .fb:active { transform: rotate(-4deg) scale(.985); }
#of .fb .st { position: absolute; left: 0; right: 0; top: 50px; text-align: center; font: 800 42px var(--sans); letter-spacing: .2em; padding-left: .2em; color: #17110c; }
#of .fb .dl { position: absolute; left: 52px; right: 52px; top: 108px; height: 10px; border-left: 2px solid #17110c; border-right: 2px solid #17110c; }
#of .fb .dl::after { content: ''; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid #17110c; }
#of .fb .pl { position: absolute; left: 30px; right: 30px; top: 146px; padding: 8px 10px; background: #f4ead2; border-radius: 3px; box-shadow: inset 0 1px 3px rgba(0,0,0,.35); font: 16px/1.2 var(--hand); color: #1f4f9a; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#of .fb .pl small { display: block; font: 600 8px var(--sans); letter-spacing: .12em; color: #5E554B; text-transform: uppercase; }
#of .fb .sp { position: absolute; right: -10px; top: 236px; width: 84px; height: 32px; background: linear-gradient(#6b4528, #4d301b); border-radius: 4px; box-shadow: 0 3px 5px rgba(0,0,0,.35); }
#of .fb .sn { position: absolute; right: 16px; top: 243px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f6dc8a, #a8791d 70%); }
#of .mb { position: absolute; width: 190px; height: 270px; border-radius: 4px 11px 11px 4px; background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px); box-shadow: inset 10px 0 9px -7px rgba(0,0,0,.4), 0 10px 16px rgba(25,15,5,.4); }
#of .mb .lb { position: absolute; left: 22px; right: 22px; top: 96px; padding: 8px; background: #f4ead2; border-radius: 3px; font: 600 15px var(--serif); color: #2A2420; text-align: center; box-shadow: inset 0 1px 2px rgba(0,0,0,.3); overflow-wrap: anywhere; }
#of .mb .lb small { display: block; font: 600 9px var(--sans); letter-spacing: .1em; color: #5E554B; text-transform: uppercase; }
#of .mug { width: 150px; height: 150px; }
#of .mug .cami { transform-box: fill-box; transform-origin: center; animation: ofBeat 2.6s ease-in-out infinite; }
#of .mug .steam { animation: ofRise 3.2s ease-in-out infinite; }
@keyframes ofBeat { 0%, 100% { transform: scale(.92); opacity: .8; } 45% { transform: scale(1.07); opacity: 1; } }
@keyframes ofRise { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .85; } 100% { opacity: 0; transform: translateY(-16px); } }
#of .clip .cb { position: absolute; inset: 0; background: linear-gradient(#c08f57, #a87842); border-radius: 6px; box-shadow: 0 10px 16px rgba(0,0,0,.4); transform: rotate(4deg); }
#of .clip .clamp { position: absolute; left: 40px; top: -8px; width: 58px; height: 20px; border-radius: 5px; background: linear-gradient(#c7ccd1, #8d9399); box-shadow: 0 2px 3px rgba(0,0,0,.35); z-index: 1; }
#of .clip .sh { position: absolute; left: 10px; right: 10px; top: 16px; bottom: 10px; background: #FFFDF8; padding: 8px 9px; background-image: repeating-linear-gradient(transparent 0 19px, #e0d6c3 19px 20px); }
#of .clip .sh b { display: block; font: 800 15px var(--sans); letter-spacing: .12em; color: #2F5D50; }
#of .clip .sh i, #of .clip .sh em { display: block; font: 400 15px/20px var(--hand); color: #1f4f9a; font-style: normal; }
#of .pad { background-color: #eef3e4; background-image: linear-gradient(#c6dcc9 1px, transparent 1px), linear-gradient(90deg, #c6dcc9 1px, transparent 1px), linear-gradient(#9fc2a8 1.5px, transparent 1.5px), linear-gradient(90deg, #9fc2a8 1.5px, transparent 1.5px); background-size: 10px 10px, 10px 10px, 50px 50px, 50px 50px; border-radius: 2px; box-shadow: 0 14px 22px rgba(25,15,5,.42); transform: rotate(3deg); }
#of .pad .bd { position: absolute; left: 0; right: 0; top: 0; height: 22px; background: #2b2b2b; border-radius: 2px 2px 0 0; }
#of .pad svg { position: absolute; left: 15px; top: 40px; }
#of .pad .shot { position: absolute; left: 14px; right: 14px; top: 34px; bottom: 14px; width: calc(100% - 28px); height: calc(100% - 48px); object-fit: contain; mix-blend-mode: multiply; }
#of .pencil { position: absolute; width: 190px; height: 12px; background: linear-gradient(#f6c945, #e0a91f); border-radius: 2px; box-shadow: 0 4px 6px rgba(0,0,0,.35); transform: rotate(-8deg); z-index: 3; }
#of .pencil::after { content: ''; position: absolute; left: -16px; top: 0; width: 16px; height: 12px; background: linear-gradient(#c9ccd0, #8f959b); border-radius: 2px 0 0 2px; }
#of .pencil::before { content: ''; position: absolute; right: -14px; top: 3px; width: 14px; height: 6px; background: #3a3a3a; border-radius: 0 3px 3px 0; }
#of .scale { position: absolute; width: 250px; height: 22px; background: repeating-linear-gradient(90deg, #5E554B 0 1px, transparent 1px 8px) top/100% 7px no-repeat, linear-gradient(#f3efe2, #dcd4bf); border-radius: 2px; box-shadow: 0 4px 6px rgba(0,0,0,.3); transform: rotate(-6deg); z-index: 3; }
#of .tray { width: 150px; height: 175px; border: 7px solid #2f2f2f; border-radius: 6px; background: #3b3b3b; box-shadow: 0 10px 16px rgba(0,0,0,.42); }
#of .tray .pp { position: absolute; left: 9px; right: 9px; height: 118px; background: #fffdf8; border: 1px solid #ddd5c4; box-shadow: 0 1px 2px rgba(0,0,0,.25); padding: 8px; font: 13px/1.1 var(--hand); color: #2A2420; overflow: hidden; }
#of .tray .fr { position: absolute; left: -7px; right: -7px; bottom: -7px; height: 30px; background: #2f2f2f; border-radius: 0 0 6px 6px; font: 700 10px var(--sans); letter-spacing: .14em; color: #e8e2d4; display: flex !important; align-items: center; justify-content: center; }
#of .badge { position: absolute; right: -12px; top: -12px; min-width: 32px; height: 32px; border-radius: 16px; background: #c0392b; color: #fff; font: 700 15px var(--sans); display: flex !important; align-items: center; justify-content: center; z-index: 3; box-shadow: 0 2px 5px rgba(0,0,0,.35); padding: 0 6px; }
#of .stampd { position: absolute; left: 10px; top: 44px; border: 3px solid #2F5D50; color: #2F5D50; font: 800 13px var(--sans); letter-spacing: .12em; padding: 2px 7px; border-radius: 4px; transform: rotate(-12deg); }
#of .env { width: 230px; height: 150px; transform: rotate(-5deg); }
#of .env .rc { position: absolute; width: 68px; height: 110px; background: repeating-linear-gradient(#fff 0 8px, #e7e2d6 8px 9px); box-shadow: 0 2px 4px rgba(0,0,0,.22); }
#of .env .bd2 { position: absolute; inset: 0; background: linear-gradient(#dcb874, #cfa85f); border-radius: 3px; box-shadow: 0 10px 16px rgba(0,0,0,.38); }
#of .env .fl { position: absolute; left: 0; right: 0; top: 0; height: 70px; background: linear-gradient(#e6c688, #d4ad66); clip-path: polygon(0 0, 100% 0, 50% 100%); }
#of .env .tx { position: absolute; left: 16px; bottom: 12px; font: 19px/1.05 var(--hand); color: #2A2420; }
#of .env .tx small { display: block; font: 600 11px var(--sans); color: #5E554B; margin-top: 4px; }
#of .env .sent { position: absolute; right: 12px; bottom: 16px; border: 3px solid #c0392b; color: #c0392b; font: 800 14px var(--sans); letter-spacing: .1em; padding: 2px 7px; transform: rotate(-12deg); border-radius: 4px; opacity: .85; }
#of .calc { width: 96px; height: 136px; background: linear-gradient(#333, #222); border-radius: 10px; box-shadow: 0 10px 14px rgba(0,0,0,.45); transform: rotate(-10deg); padding: 9px; }
#of .calc .dsp { height: 26px; background: #b7d3a2; border-radius: 3px; font: 700 10px/26px var(--sans); letter-spacing: .08em; color: #23361d; text-align: right; padding: 0 5px; box-shadow: inset 0 1px 3px rgba(0,0,0,.4); }
#of .calc .keys { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 7px; }
#of .calc .keys i { height: 18px; border-radius: 3px; background: #d9d4c7; font: 700 10px/18px var(--sans); color: #2a2420; text-align: center; font-style: normal; }
#of .calc .keys i:last-child { background: #2F5D50; color: #fff; }
#of .keys svg { display: block; }
#of .drawer { height: 66px; border-radius: 5px 5px 0 0; box-shadow: 0 -6px 12px rgba(0,0,0,.35); display: flex !important; align-items: center; justify-content: center; gap: 14px; color: #f7f2e8; font: 600 13px var(--sans); letter-spacing: .04em; background: linear-gradient(#7d5840, #5f412d); }
#of .drawer .hd { width: 90px; height: 12px; border-radius: 6px; background: linear-gradient(#ece7db, #a9a395); box-shadow: 0 2px 3px rgba(0,0,0,.4); }

/* a phone: the same widgets as tiles */
#of.tiles { background: var(--bg2); overflow: auto; -webkit-overflow-scrolling: touch; }
#of .ofTiles { padding: calc(14px + var(--safe-t)) 16px calc(24px + var(--safe-b)); max-width: 640px; margin: 0 auto; }
#of .ofTHd { display: flex; align-items: center; gap: 10px; }
#of .ofTHd img { width: 40px; height: 40px; border-radius: 10px; }
#of .ofTHd span { display: flex; flex-direction: column; line-height: 1; }
#of .ofTHd b { font: 700 18px var(--serif); letter-spacing: .12em; } #of .ofTHd small { font: 600 9px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ink2); margin-top: 3px; }
#of .ofTHd em { margin-left: auto; font: 500 12.5px var(--sans); color: var(--ink2); font-style: normal; text-align: right; }
#of .ofTiles h1 { font: 600 26px var(--serif); margin: 16px 0 12px; }
#of .ofTGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#of .ofTile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 12px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 2px 6px rgba(42,36,32,.06); min-height: 118px; }
#of .ofTile b { font: 650 15px var(--sans); } #of .ofTile small { font: 500 12px/1.3 var(--sans); color: var(--ink2); }
#of .ofTile .badge { right: 10px; top: 10px; min-width: 24px; height: 24px; font-size: 12px; }

/* a widget: the bar on top, its name, and the screen */
#of.widget { background: var(--bg2); display: flex; flex-direction: column; padding: var(--safe-t) var(--safe-r) 0 var(--safe-l); }
#of .ofBar { display: flex; gap: 2px; overflow-x: auto; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--surface, #FFFDF8); flex: none; scrollbar-width: thin; }
#of .ofBar button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; border-radius: 12px; padding: 5px 6px 4px; min-width: 58px; cursor: pointer; color: var(--ink2); font: 600 10px/1.1 var(--sans); }
#of .ofBar button:hover { background: var(--bg2); }
#of .ofBar button.on { background: var(--sand, #F1EADB); color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
#of .ofHd { display: flex; align-items: center; gap: 10px; padding: 12px 18px 6px; flex: none; }
#of .ofHd h2 { margin: 0; font: 600 24px var(--serif); }
#of .ofBack { margin-left: auto; border: 0; background: none; color: var(--accent); font: 600 14px var(--sans); cursor: pointer; padding: 6px 2px; }
#of .ofBody { flex: 1; min-height: 0; overflow: auto; padding: 6px 18px calc(30px + var(--safe-b)); -webkit-overflow-scrolling: touch; }
#of .ofBody > * { max-width: 980px; }
@media (max-width: 560px) { #of .ofHd { padding: 10px 14px 4px; } #of .ofHd h2 { font-size: 21px; } #of .ofBack { font-size: 13px; } #of .ofBody { padding: 4px 14px calc(30px + var(--safe-b)); } }

/* the pieces inside the widgets */
:is(#of, .owHost) .owDay { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; font: 600 16px var(--sans); flex-wrap: wrap; }
:is(#of, .owHost) .owNav { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font: 600 18px var(--sans); color: var(--ink); cursor: pointer; }
:is(#of, .owHost) .owTot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 10px; }
:is(#of, .owHost) .owTot span { display: flex; flex-direction: column; } :is(#of, .owHost) .owTot i { font: 600 10px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); font-style: normal; } :is(#of, .owHost) .owTot b { font: 700 17px var(--sans); }
:is(#of, .owHost) .owTot.big b { font-size: 22px; } :is(#of, .owHost) .owTot .net b { color: var(--accent); } :is(#of, .owHost) .owTot.sm b { font-size: 14px; } :is(#of, .owHost) .owTot.sm { margin: 4px 0 0; width: 100%; }
:is(#of, .owHost) .owActs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 8px 0 12px; }
:is(#of, .owHost) .owBtn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 10px 14px; font: 600 14px var(--sans); cursor: pointer; }
:is(#of, .owHost) .owBtn.main { background: var(--accent); border-color: var(--accent); color: #fff; }
:is(#of, .owHost) .skLink { border: 0; background: none; padding: 4px 0; color: var(--accent); font: 600 13.5px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:is(#of, .owHost) .skLink.red { color: #b03a2e; }
:is(#of, .owHost) .owNote { font: 500 12.5px/1.45 var(--sans); color: var(--ink2); margin: 4px 0; }
:is(#of, .owHost) .owWarn { background: #FFF6DA; border: 1px solid #EFD9A0; border-radius: 12px; padding: 8px 12px; font: 600 13px/1.4 var(--sans); color: #6b5310; margin: 6px 0 10px; }
:is(#of, .owHost) .owEmpty { font: 400 18px/1.5 var(--hand); color: var(--ink2); margin: 10px 0; }
:is(#of, .owHost) .owStat { display: inline-block; font: 700 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #8a5a00; border: 1.5px solid currentColor; border-radius: 6px; padding: 2px 7px; }
:is(#of, .owHost) .owStat.sent { color: var(--accent); }
:is(#of, .owHost) .owDar { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin: 0 0 12px; overflow: hidden; }
:is(#of, .owHost) .owDarHd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px; }
:is(#of, .owHost) .owDar.open .owDarHd { border-bottom: 1px solid var(--line); background: #FBF7EE; }
:is(#of, .owHost) .owDarT { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; display: flex; flex-direction: column; color: var(--ink); }
:is(#of, .owHost) .owDarT b { font: 700 17px var(--sans); } :is(#of, .owHost) .owDarT small { font: 500 12.5px var(--sans); color: var(--ink2); }
:is(#of, .owHost) .owDarBd { padding: 10px 14px 6px; }
:is(#of, .owHost) .owDarNo { display: flex; align-items: center; gap: 8px; font: 600 12px var(--sans); color: var(--ink2); }
:is(#of, .owHost) .owDarNo input { width: 200px; max-width: 60vw; }
:is(#of, .owHost) .owTask { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 0 0 10px; background: #fff; }
:is(#of, .owHost) .owTaskTop, :is(#of, .owHost) .owTaskRow { display: flex; flex-wrap: wrap; gap: 4px 22px; }
:is(#of, .owHost) .owTask i { display: block; font: 600 10px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); font-style: normal; }
:is(#of, .owHost) .owTask b { font: 650 14.5px var(--sans); } :is(#of, .owHost) .owTask em { font: 500 12px var(--sans); color: var(--ink2); font-style: normal; margin-left: 6px; }
:is(#of, .owHost) .owTaskRow { margin-top: 6px; } :is(#of, .owHost) .owTaskLoc { margin-top: 6px; } :is(#of, .owHost) .owTaskLoc small { color: var(--ink2); font-size: 12px; }
:is(#of, .owHost) .owTaskCm { font: 400 16px/1.35 var(--hand); color: var(--pen, #1f4f9a); margin: 6px 0 0; }
:is(#of, .owHost) .owTaskFt { display: flex; gap: 16px; margin-top: 6px; }
:is(#of, .owHost) .owForm { border: 1.5px solid var(--accent); border-radius: 16px; padding: 12px 14px; margin: 0 0 12px; background: #fff; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
:is(#of, .owHost) .owForm h3, :is(#of, .owHost) .owForm h4, :is(#of, .owHost) .owForm .owErr, :is(#of, .owHost) .owForm .owActs, :is(#of, .owHost) .owForm .owChk { grid-column: 1 / -1; }
:is(#of, .owHost) .owForm h3 { margin: 0 0 4px; font: 600 18px var(--serif); } :is(#of, .owHost) .owForm h4 { margin: 8px 0 0; font: 700 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
:is(#of, .owHost) .owF { display: flex; flex-direction: column; gap: 3px; font: 600 11.5px var(--sans); color: var(--ink2); min-width: 0; }
:is(#of, .owHost) .owF.wide { grid-column: 1 / -1; }
#of .ofBody input:not([type=checkbox]), #of .ofBody select, #of .ofBody textarea, .owHost input:not([type=checkbox]), .owHost select, .owHost textarea { font: 500 15px var(--sans); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; min-width: 0; box-sizing: border-box; width: 100%; }
#of .ofBody textarea, .owHost textarea { resize: vertical; }
#of .ofBody input:disabled, #of .ofBody textarea:disabled, .owHost input:disabled, .owHost textarea:disabled { background: #F7F2E8; color: var(--ink2); }
:is(#of, .owHost) .owErr { color: #b03a2e; font: 600 13px var(--sans); margin: 4px 0 0; min-height: 0; }
:is(#of, .owHost) .owChk { display: flex; align-items: center; gap: 6px; font: 500 13px var(--sans); color: var(--ink); } :is(#of, .owHost) .owChk.big { font-size: 15px; margin: 10px 0; }
:is(#of, .owHost) .owGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 12px; }
:is(#of, .owHost) .owH { font: 600 18px var(--serif); margin: 16px 0 8px; } :is(#of, .owHost) .owH em { font: 700 12px var(--sans); color: var(--ink2); font-style: normal; margin-left: 4px; }
:is(#of, .owHost) .owRow { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; margin: 0 0 6px; text-align: left; cursor: pointer; color: var(--ink); }
:is(#of, .owHost) .owRow b { font: 650 14.5px var(--sans); } :is(#of, .owHost) .owRow span { font: 500 12.5px var(--sans); color: var(--ink2); flex: 1; min-width: 0; } :is(#of, .owHost) .owRow i { font: 700 11px var(--sans); color: var(--accent); font-style: normal; }
:is(#of, .owHost) .owFar section { border-top: 1px solid var(--line); padding: 10px 0 12px; }
:is(#of, .owHost) .owFar h3 { font: 600 17px var(--serif); margin: 0 0 8px; }
:is(#of, .owHost) .owTbl { border-collapse: collapse; width: 100%; font: 500 13px var(--sans); margin: 4px 0; }
:is(#of, .owHost) .owTbl th { text-align: left; font: 700 10.5px var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink2); padding: 4px 6px; border-bottom: 1px solid var(--line); }
:is(#of, .owHost) .owTbl td { padding: 4px 6px; border-bottom: 1px solid #EEE6D6; vertical-align: top; }
:is(#of, .owHost) .owTbl td input { padding: 5px 6px; font-size: 13px; border-radius: 6px; }
:is(#of, .owHost) .owPay { display: block; overflow-x: auto; }
:is(#of, .owHost) .owNotes summary { cursor: pointer; font: 600 13px var(--sans); color: var(--accent); margin: 6px 0; } :is(#of, .owHost) .owNotes p { font: 400 16px/1.35 var(--hand); color: var(--pen, #1f4f9a); margin: 2px 0; }
:is(#of, .owHost) .owFarFt { border-top: 1px solid var(--line); padding-top: 12px; }
:is(#of, .owHost) .owSet { margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; background: var(--surface); } :is(#of, .owHost) .owSet summary { cursor: pointer; font: 600 14px var(--sans); }
#of .tcGrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
#of .tcCell { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 8px 6px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; text-align: left; min-width: 0; color: var(--ink); }
#of .tcCell.on { background: #EEF4EF; } #of .tcCell.today { box-shadow: inset 0 0 0 2px var(--accent); }
#of .tcCell i { font: 700 10px var(--sans); text-transform: uppercase; color: var(--ink2); font-style: normal; } #of .tcCell b { font: 700 14px var(--sans); } #of .tcCell small { font: 500 10.5px var(--sans); color: var(--ink2); overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { #of .tcGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } :is(#of, .owHost) .owForm { grid-template-columns: minmax(0, 1fr); } }
#of .tcBars { display: flex; flex-direction: column; gap: 6px; }
#of .tcBar { display: grid; grid-template-columns: 78px 1fr 72px; align-items: center; gap: 8px; border: 0; background: none; padding: 2px 0; cursor: pointer; text-align: left; color: var(--ink); }
#of .tcBar i { font: 600 12.5px var(--sans); font-style: normal; } #of .tcBar span { height: 18px; background: #EEE6D6; border-radius: 9px; overflow: hidden; } #of .tcBar em { display: block; height: 100%; background: var(--accent); border-radius: 9px; } #of .tcBar b { font: 700 13px var(--sans); }
#of .tcPunch { max-width: 420px; background: #f3ead3; border: 1px solid #cdbf9f; border-radius: 4px; padding: 12px 14px 16px; box-shadow: 0 8px 18px rgba(42,36,32,.18); background-image: repeating-linear-gradient(transparent 0 27px, #d8caa4 27px 28px); }
#of .tcPunchHd { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid #2F5D50; padding-bottom: 6px; margin-bottom: 4px; } #of .tcPunchHd b { font: 800 16px var(--sans); letter-spacing: .14em; color: #2F5D50; } #of .tcPunchHd span { font: 400 17px var(--hand); color: var(--pen, #1f4f9a); }
#of .tcPunch table { width: 100%; border-collapse: collapse; font: 600 13px 'Courier New', monospace; } #of .tcPunch th { text-align: left; font: 700 10px var(--sans); letter-spacing: .08em; color: #5E554B; padding: 4px 2px; } #of .tcPunch td { padding: 5px 2px; height: 18px; } #of .tcPunch td.stamp { color: #7a1f1f; letter-spacing: .04em; } #of .tcPunch tr[data-a] { cursor: pointer; }
#of .payBox { border-top: 1px solid var(--line); padding: 10px 0; } #of .payBox h3 { font: 600 17px var(--serif); margin: 0 0 6px; } #of .payBox h3 small { font: 500 12px var(--sans); color: var(--ink2); margin-left: 6px; }
#of .payTbl { width: 100%; border-collapse: collapse; font: 500 14px var(--sans); }
#of .payTbl td { padding: 5px 4px; border-bottom: 1px solid #EEE6D6; vertical-align: middle; } #of .payTbl td small { display: block; font-size: 11.5px; color: var(--ink2); }
#of .payTbl td.how { white-space: nowrap; font-size: 12.5px; color: var(--ink2); } #of .payTbl td.how input, #of .payTbl td.how select { width: auto; display: inline-block; padding: 5px 6px; font-size: 13px; margin-right: 4px; }
#of .payTbl td.amt { text-align: right; font-weight: 700; white-space: nowrap; } #of .payTbl tr.tot td { font-weight: 700; border-top: 2px solid var(--ink); }
#of .payNet { font: 700 30px var(--serif); color: var(--accent); margin: 0; }
#of .payStubs .payFit { margin: 6px 0; font-size: 14px; } #of .payStubList small { display: block; color: var(--ink2); font-size: 11.5px; } #of .payStubList td { vertical-align: top; }
#of .payAsk { border-color: #e0c46a; background: #fff9e6; } #of .payQ { padding: 8px 0; border-top: 1px solid var(--line); } #of .payQ:first-of-type { border-top: 0; } #of .payQ p { margin: 0 0 6px; font-weight: 600; }
:is(#of, .owHost) .ow-pay .owChk { display: inline-flex; margin-left: 6px; }
/* the calendar widget: the month and the day picked beside it */
#of .ofCalW { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 16px; max-width: 1200px; align-items: start; }
#of .ofCal.big { position: relative; transform: none; height: min(620px, calc(100vh - 220px)); min-height: 420px; padding: 14px 14px 10px; box-shadow: 0 1px 0 #e0d6c3, 0 10px 22px rgba(42,36,32,.14); }
#of .ofCal.big .cd { font-size: 13px; }
#of .calKey { font: 500 11.5px var(--sans); color: var(--ink2); margin: 6px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#of .calKey span { width: 12px; height: 12px; border-radius: 3px; display: inline-block; } #of .calKey .kw { background: rgba(47,93,80,.18); } #of .calKey .kd { border: 2px solid #c0392b; border-radius: 50%; } #of .calKey .ko { background: repeating-linear-gradient(-45deg, rgba(47,93,80,.3) 0 3px, transparent 3px 6px); }
#of .ofDayP { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
#of .ofDayP h3 { font: 600 19px var(--serif); margin: 0 0 6px; } #of .ofDayP h4 { font: 700 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin: 0 0 6px; }
#of .ofDayP section { border-top: 1px solid var(--line); padding: 10px 0; } #of .ofDayP section:first-of-type { border-top: 0; }
#of .ofDayP section > .owBtn { margin: 4px 8px 0 0; }
@media (max-width: 820px) { #of .ofCalW { grid-template-columns: minmax(0, 1fr); } #of .ofCal.big { height: 430px; } #of .ofCal.big .cd .nt { display: none; } }
:is(#of, .owHost) .owNewCode { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; background: #FBF7EE; border: 1px dashed var(--line); border-radius: 12px; padding: 8px 10px; }
:is(#of, .owHost) .owNewCode[hidden] { display: none; }
:is(#of, .owHost) .owCodeRow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; } :is(#of, .owHost) .owCodeRow b { min-width: 140px; font: 650 14px var(--sans); } :is(#of, .owHost) .owCodeRow select, :is(#of, .owHost) .owCodeRow input { width: auto; flex: 1 1 180px; }
@media (max-width: 560px) { :is(#of, .owHost) .owNewCode { grid-template-columns: minmax(0, 1fr); } }
:is(#of, .owHost) .owSk { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 2px; }
:is(#of, .owHost) .owSkOne { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 108px; text-align: center; }
:is(#of, .owHost) .owSkIc { width: 72px; height: 72px; border: 1px solid var(--line); border-radius: 12px; background: #eef3e4; padding: 0; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(42,36,32,.12); }
:is(#of, .owHost) .owSkIc img { width: 100%; height: 100%; object-fit: cover; } :is(#of, .owHost) .owSkIc svg { width: 56px; height: 56px; }
:is(#of, .owHost) .owSkOne small { font: 500 11px/1.25 var(--sans); color: var(--ink2); max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(#of, .owHost) .owSkOne .skLink { font-size: 13px; }
:is(#of, .owHost) .owDayActs { display: inline-flex; align-items: center; gap: 14px; margin-left: 10px; }
@media (max-width: 560px) { :is(#of, .owHost) .owDayActs { margin-left: 0; width: 100%; } }
:is(#of, .owHost) .owPanel { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px 10px; margin: 8px 0 2px; background: #FBF7EE; min-width: 0; transition: opacity .2s, filter .2s; }
:is(#of, .owHost) .owPanel legend { font: 700 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); padding: 0 6px; }
:is(#of, .owHost) .owPGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; } :is(#of, .owHost) .owPGrid .wide { grid-column: 1 / -1; }
:is(#of, .owHost) .owPanel[disabled] { opacity: .5; filter: grayscale(1); background: #EEEAE2; }
:is(#of, .owHost) .owPanel[disabled] input, :is(#of, .owHost) .owPanel[disabled] button { cursor: not-allowed; }
:is(#of, .owHost) .owOffNote { display: none; margin: 6px 0 0; font: 600 12px var(--sans); color: var(--ink2); } :is(#of, .owHost) .owPanel[disabled] .owOffNote { display: block; }
:is(#of, .owHost) .owExpRow { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 8px; align-items: center; margin: 0 0 6px; }
:is(#of, .owHost) .owExpT { float: right; font: 600 13px var(--sans); color: var(--ink2); } :is(#of, .owHost) .owExpT b { color: var(--ink); margin-left: 6px; }
@media (max-width: 560px) { :is(#of, .owHost) .owPGrid { grid-template-columns: minmax(0, 1fr); } :is(#of, .owHost) .owExpRow { grid-template-columns: minmax(0, 1fr) 84px auto; } }
/* the bookshelf in the office: each job's field book, its number always readable */
#of .ofShelfU { position: absolute; z-index: 2; background: linear-gradient(#cfc6b6, #bdb3a1); border-radius: 4px; box-shadow: inset 0 0 0 5px #8a6a48, inset 0 0 18px rgba(0,0,0,.25), 0 8px 14px rgba(0,0,0,.3); overflow: hidden; }
#of .ofShelfU .board2 { position: absolute; left: 0; right: 0; height: 9px; background: linear-gradient(#a37a50, #7a5634); box-shadow: 0 4px 6px rgba(0,0,0,.35); z-index: 3; }
#of .ofShelfU .bk { position: absolute; border: 0; padding: 0; cursor: pointer; border-radius: 2px 2px 1px 1px; box-shadow: inset -4px 0 5px rgba(0,0,0,.28), inset 2px 0 0 rgba(255,255,255,.18), 0 2px 3px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; overflow: hidden; font-family: var(--sans); z-index: 2; transition: transform .15s ease, filter .15s ease; }
#of .ofShelfU .bk:hover { filter: brightness(1.12); }
#of .ofShelfU .bk .no { font: 800 11px/1 var(--sans); letter-spacing: .04em; white-space: nowrap; }
#of .ofShelfU .bk .no.v { writing-mode: vertical-rl; transform: rotate(180deg); }
#of .ofShelfU .bk.st::after { content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: currentColor; opacity: .35; box-shadow: 0 4px 0 currentColor; }
#of .ofShelfU .bk.flat { border-radius: 1px 3px 3px 1px; box-shadow: inset 0 -3px 4px rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.35); }
#of .ofShelfU .bk.flat .no { font-size: 10px; }
#of .ofShelfU .bk.front { flex-direction: column; justify-content: flex-start; gap: 6px; padding-top: 8px; border-radius: 2px 5px 5px 2px; box-shadow: inset 4px 0 4px -2px rgba(0,0,0,.35), 0 3px 5px rgba(0,0,0,.35); }
#of .ofShelfU .bk.front .cv { font: 800 8px var(--sans); letter-spacing: .18em; opacity: .85; }
#of .ofShelfU .bk.front .pl { background: #f4ead2; color: #1d1a17; font: 800 9.5px var(--sans); padding: 2px 3px; border-radius: 2px; max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#of .ofShelfU .bend { position: absolute; width: 10px; height: 50px; background: linear-gradient(90deg, #3a3d41, #6b7075 60%, #3a3d41); border-radius: 2px 2px 0 0; z-index: 2; box-shadow: 0 2px 3px rgba(0,0,0,.35); }
#of .ofShelfU .bkMore { position: absolute; z-index: 4; border: 0; background: rgba(255,253,248,.92); color: var(--ink); font: 700 10px var(--sans); border-radius: 6px; padding: 3px 6px; cursor: pointer; }
#of .ofShelfU .ofShelfEmpty { position: absolute; left: 0; right: 0; top: 60px; text-align: center; font: 400 16px var(--hand); color: #5E554B; }
/* v105: the day's DAR in a job's book, and the page that turns over to it */
#pg .pgDarStrip { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 8px 0 4px; }
#pg .pgDarIc { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #FFFDF8; border-radius: 12px; padding: 6px 12px 6px 8px; cursor: pointer; text-align: left; color: var(--ink); box-shadow: 0 2px 6px rgba(42,36,32,.08); }
#pg .pgDarIc span { display: flex; flex-direction: column; } #pg .pgDarIc b { font: 700 14px var(--sans); } #pg .pgDarIc small { font: 500 12px var(--sans); color: var(--ink2); }
#pg .pgDarIc:hover { border-color: var(--accent); }
#pg .pgDarPage { position: relative; height: 100%; overflow: auto; padding: 14px 18px 40px 22px; box-sizing: border-box; background: var(--surface); }
#pg .pgDarPage .pgBar { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; } #pg .pgDarT { font: 600 19px var(--serif); }
.pgLeaf { position: absolute; z-index: 30; perspective: 2400px; pointer-events: none; }
.pgLeafIn { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 0 50%; animation: pgTurn .9s cubic-bezier(.45,.05,.2,1) forwards; }
.pgLeafF, .pgLeafB { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.pgLeafF::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.2)); opacity: 0; animation: pgShade .9s ease forwards; }
.pgLeafB { transform: rotateY(180deg); background: linear-gradient(90deg, #f6f0e2, #FBF7EE 70%, #e9e1cf); box-shadow: inset -20px 0 30px rgba(42,36,32,.12); }
@keyframes pgTurn { 0% { transform: rotateY(0); } 100% { transform: rotateY(-180deg); } }
@keyframes pgShade { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 1; } }
/* the photos widget on a field book page: on the notes page or riding the sketch page */
#pg .pgPhW { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,248,.94); padding: 8px 10px 10px; margin: 8px 0 10px; box-shadow: 0 3px 10px rgba(42,36,32,.08); }
#pg .pgPhW.R { position: absolute; z-index: 4; left: 16px; top: 128px; width: min(300px, calc(100% - 32px)); margin: 0; box-shadow: 0 10px 26px rgba(42,36,32,.2); }
#pg .pgPhW header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } #pg .pgPhW header b { font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); } #pg .pgPhW header span { font: 700 12px var(--sans); color: var(--accent); } #pg .pgPhW header .pgLink { margin-left: auto; font-size: 12.5px; }
#pg .pgPhGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
#pg .pgPhT { aspect-ratio: 1; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: #e8e1d1; cursor: pointer; }
#pg .pgPhT i { display: block; width: 100%; height: 100%; background: #e8e1d1 center / cover no-repeat; }
#pg .pgPhT.more { font: 700 13px var(--sans); color: var(--ink2); }
#pg .pgPhAdd { aspect-ratio: 1; border: 1.5px dashed #b9ad93; border-radius: 8px; background: transparent; color: #8a7d63; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; padding: 4px; min-width: 62px; }
#pg .pgPhAdd small { font: 600 10px/1.15 var(--sans); text-align: center; }
#pg .pgPhAdd:hover { border-color: var(--accent); color: var(--accent); }

/* ---- v107: ordering material (order.js), Con Ed's own request forms */
#orBox { position: fixed; inset: 0; z-index: 9000; background: rgba(42,36,32,.42); display: flex; align-items: center; justify-content: center; padding: 16px; }
#orBox .orCard { width: min(760px, 100%); height: min(860px, calc(100vh - 32px)); display: flex; flex-direction: column; background: var(--bg); color: var(--ink); border-radius: 18px; box-shadow: 0 18px 50px rgba(42,36,32,.3); overflow: hidden; }
.orTop { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 20px 6px; }
.orTop small { color: var(--ink2); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; } .orTop h3 { margin: 2px 0 0; font: 600 22px/1.15 var(--serif); }
.orBar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 4px 20px 10px; border-bottom: 1px solid var(--line); }
.orSeg { display: inline-flex; gap: 14px; } .orSeg button { border: 0; background: none; padding: 6px 0; font: 600 15px var(--sans); color: var(--ink2); border-bottom: 2.5px solid transparent; cursor: pointer; }
.orSeg button[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.orJob { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); } .orJob select { font: 600 14px var(--sans); color: var(--ink); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; max-width: 46vw; }
.orBody { flex: 1; overflow: auto; padding: 10px 20px 16px; -webkit-overflow-scrolling: touch; }
.orVh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.orFind input { width: 100%; box-sizing: border-box; font: 16px var(--sans); color: var(--ink); background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.orCats { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 10px 0 4px; }
.orCat { border: 0; background: none; padding: 4px 0; font: 600 13.5px var(--sans); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; } .orCat small { color: var(--ink2); font-weight: 400; text-decoration: none; } .orCat.on { color: var(--ink); }
.orLbl { margin: 14px 0 6px; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink2); font-weight: 600; }
.orList { display: grid; border-top: 1px solid var(--line); }
.orRow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); } .orRow.on .orD b { color: var(--accent); }
.orD { flex: 1; min-width: 0; display: grid; gap: 2px; } .orD b { font: 600 14px/1.35 var(--sans); overflow-wrap: anywhere; } .orD small { color: var(--ink2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.orAdd { flex: none; border: 1px solid var(--accent); background: var(--bg); color: var(--accent); font: 600 14px var(--sans); border-radius: 10px; padding: 9px 12px; min-height: 42px; cursor: pointer; }
.orQty { flex: none; display: inline-flex; align-items: center; gap: 4px; } .orQty button { width: 38px; height: 40px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); border-radius: 10px; font: 600 18px var(--sans); cursor: pointer; }
.orQty input { width: 58px; height: 40px; box-sizing: border-box; text-align: center; font: 600 15px var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); background: var(--bg); border: 1px solid var(--accent); border-radius: 10px; } .orQty small { color: var(--ink2); font-size: 12px; min-width: 22px; }
.orFoot { display: flex; align-items: center; gap: 12px; padding: 12px 20px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--bg2); } .orFoot span { flex: 1; font-size: 14px; } .orFoot b { font-variant-numeric: tabular-nums; }
.orHead { margin-bottom: 8px; } .orHead .skLink small { color: var(--ink2); font-weight: 400; }
.orHd { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 12px; padding: 6px 0 4px; } .orHd label { display: grid; gap: 3px; font-size: 12px; color: var(--ink2); }
.orHd input, .orEx input { font: 15px var(--sans); color: var(--ink); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; min-width: 0; }
.orEx { display: grid; gap: 8px; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; } .orEx > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; } .orRowBtns { display: flex !important; align-items: center; gap: 16px; }
.orGo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 16px 0 6px; } .orGo .btn.primary { padding: 12px 18px; font-size: 15px; border-radius: 12px; }
.orSent { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; } .orSent input { width: 18px; height: 18px; accent-color: var(--accent); }
.orPast { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); } .orPast > span { display: flex; gap: 14px; flex: none; }
.orPastHd { flex: 1; min-width: 0; display: grid; gap: 2px; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); } .orPastHd b { font: 600 15px var(--sans); } .orPastHd small { color: var(--ink2); font-size: 12.5px; }
@media (max-width: 560px) { #orBox { padding: 0; } #orBox .orCard { height: 100%; border-radius: 0; } .orTop, .orBar, .orBody { padding-left: 14px; padding-right: 14px; } .orPast { flex-wrap: wrap; } .orJob select { max-width: 60vw; } }
body:has(#orBox) #camiFloat { display: none; }

/* ---- v109: the Specs & Procedures book (specs.js): the binder on the office wall, the book, the specs on a notes page */
#of .ofHit.specs .hook { position: absolute; left: 44px; top: 0; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #c9ccd0, #7d8186); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
#of .ofHit.specs .bnd { position: absolute; left: 4px; top: 10px; width: 92px; height: 178px; border-radius: 4px 6px 6px 4px; background: linear-gradient(90deg, #24394f 0 12px, #2f4a6b 12px), #2f4a6b; box-shadow: 0 8px 14px rgba(0,0,0,.35), inset -3px 0 0 rgba(0,0,0,.15); transform: rotate(1.5deg); }
#of .ofHit.specs .rg { position: absolute; left: 3px; width: 6px; height: 14px; border-radius: 3px; background: linear-gradient(#e2e4e7, #9a9ea3); }
#of .ofHit.specs .rg:nth-child(1) { top: 26px; } #of .ofHit.specs .rg:nth-child(2) { top: 82px; } #of .ofHit.specs .rg:nth-child(3) { top: 138px; }
#of .ofHit.specs .lb { position: absolute; left: 18px; right: 8px; top: 108px; padding: 6px 4px; background: #f4efe3; border-radius: 2px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
#of .ofHit.specs .lb b { display: block; font: 800 8.5px/1.25 var(--sans); letter-spacing: .06em; color: #2f4a6b; } #of .ofHit.specs .lb i { display: block; font: 600 10px/1 var(--serif); color: #2f4a6b; font-style: italic; }
#of .ofHit.specs .tb { position: absolute; right: -9px; width: 12px; height: 18px; border-radius: 0 3px 3px 0; background: #d9534f; } #of .ofHit.specs .tb.y { background: #e8c547; } #of .ofHit.specs .tb.g { background: #5f9a6e; }
#spBox { position: fixed; inset: 0; z-index: 9000; background: rgba(42,36,32,.42); display: flex; align-items: center; justify-content: center; padding: 16px; }
#spBox .spCard { width: min(860px, 100%); height: min(900px, calc(100vh - 32px)); display: flex; flex-direction: column; background: var(--bg); color: var(--ink); border-radius: 18px; box-shadow: 0 18px 50px rgba(42,36,32,.3); overflow: hidden; }
.spTop { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 20px 10px; border-bottom: 1px solid var(--line); }
.spTop small { color: var(--ink2); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; } .spTop h3 { margin: 2px 0 0; font: 600 22px/1.15 var(--serif); }
.spBody { flex: 1; overflow: auto; padding: 12px 20px 24px; -webkit-overflow-scrolling: touch; }
.spList { display: grid; border-top: 1px solid var(--line); }
.spBook { display: grid; gap: 2px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 10px 2px; cursor: pointer; color: var(--ink); }
.spBook b { font: 600 14.5px/1.35 var(--sans); } .spBook small { color: var(--ink2); font-size: 12.5px; } .spBook:hover b { color: var(--accent); }
.spNo { display: inline-block; margin-right: 8px; font: 700 12.5px var(--sans); color: var(--accent); font-variant-numeric: tabular-nums; }
.spWhy { color: var(--accent); font-size: 12.5px; }
.spTitle { margin: 10px 0 6px; font: 600 20px/1.25 var(--serif); }
.spToc { margin: 6px 0 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); } .spToc summary { cursor: pointer; font: 600 14px var(--sans); }
.spToc .skLink { display: block; text-align: left; padding: 5px 0; }
.spSec { padding: 12px 0; border-top: 1px solid var(--line); scroll-margin-top: 8px; } .spSec.on h5 { color: var(--accent); }
.spSec h5 { margin: 0 0 8px; font: 700 15px/1.3 var(--sans); }
.spText { white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.55 var(--sans); color: var(--ink); max-width: 75ch; }
.spNone { padding: 20px; color: var(--ink2); } .spFoot { margin-top: 18px; }
.spPage { display: grid; gap: 2px; margin: 6px 0 10px; }
.spPage > small { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); font-family: var(--sans); }
.spHit { display: grid; gap: 1px; text-align: left; border: 0; background: none; padding: 5px 0; cursor: pointer; color: var(--ink); font-family: var(--sans); }
.spHit b { font: 600 13.5px/1.3 var(--sans); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; } .spHit span { font-size: 12px; color: var(--ink2); }
@media (max-width: 560px) { #spBox { padding: 0; } #spBox .spCard { height: 100%; border-radius: 0; } .spTop, .spBody { padding-left: 14px; padding-right: 14px; } }
body:has(#spBox) #camiFloat { display: none; }

/* ---- v110: Cami's Training Room (train.js): the door in the office, the room */
#of .ofHit.train .dr { position: absolute; inset: 0 30px 0 30px; border-radius: 6px 6px 0 0; background: linear-gradient(90deg, #7a5b3d, #8a6a48 40%, #7a5b3d); box-shadow: inset 0 0 0 3px #5f452e, 0 -2px 8px rgba(0,0,0,.25); }
#of .ofHit.train .gl { position: absolute; left: 12px; right: 12px; top: 12px; height: 46px; border-radius: 3px; background: linear-gradient(160deg, #e5f0ec, #b9d3ca); display: grid; place-content: center; text-align: center; box-shadow: inset 0 0 0 2px #5f452e; }
#of .ofHit.train .gl b { font: 800 9px/1.1 var(--sans); letter-spacing: .14em; color: #2F5D50; } #of .ofHit.train .gl i { font: 700 9px/1.1 var(--sans); letter-spacing: .14em; color: #2F5D50; font-style: normal; }
#of .ofHit.train .kn { position: absolute; right: 12px; top: 72px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f3d98a, #b8902f); }
/* Cami's Training Room, v111: its own full screen, layout B2 (Bryan, Nov 21 2026) */
#trRoom { position: fixed; inset: 0; z-index: 9000; background: var(--bg); color: var(--ink); display: flex; flex-direction: column; font-family: var(--sans); }
body.tr-open #camiFloat { display: none; } body.tr-open #toast { z-index: 9500; }
#trRoom .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trHdr { display: flex; align-items: center; gap: 10px 22px; padding: 12px 22px; background: var(--bg2); border-bottom: 1px solid var(--line); flex: none; }
.trBrand small { display: block; font: 600 10px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); } .trBrand b { font: 600 23px/1.05 var(--serif); }
.trTabs { display: flex; gap: 18px; } .trTabs button { border: 0; background: none; padding: 6px 0; font: 600 14px var(--sans); color: var(--ink2); border-bottom: 2.5px solid transparent; cursor: pointer; }
.trTabs button[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); }
.trWhereAt { flex: 1; text-align: right; color: var(--ink2); font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .trCount { display: none; }
.trBack { border: 0; background: none; color: var(--accent); font: 600 14px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 0; } .trOff { margin-left: -8px; }
.trMain { flex: 1; min-height: 0; }
.trPage { overflow: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; max-width: 980px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.trPage h2 { margin: 0; font: 600 26px var(--serif); } .trPage h3 { margin: 6px 0 0; font: 600 18px var(--serif); }
.trDump { display: grid; gap: 10px; justify-items: start; } .trDump p { margin: 0; color: var(--ink2); max-width: 62ch; line-height: 1.5; } .trDump .btn { padding: 12px 20px; font-size: 15px; border-radius: 12px; }
.trBusy { color: var(--accent); font-weight: 600; }
.trPiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.trPile { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); color: var(--ink); font: inherit; cursor: pointer; }
.trPile img { width: 84px; height: 60px; object-fit: cover; border-radius: 8px; background: var(--sand); flex: none; } .trPile span { display: grid; gap: 3px; min-width: 0; flex: 1; } .trPile small { color: var(--ink2); }
.trPile:hover { border-color: var(--accent); }
.trBar { display: block; height: 4px; border-radius: 2px; background: var(--sand); } .trBar i { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
.trCols { max-width: 1300px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.trCard { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; } .trCard p { margin: 0; }
.trCardHd { display: flex; align-items: baseline; gap: 8px; } .trCardHd b { font: 600 17px var(--serif); flex: 1; } .trCardHd small { color: var(--ink2); font-size: 12px; }
.trLbl { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); } .trBig { font: 600 34px var(--serif); } .trBig small { font: 13px var(--sans); color: var(--ink2); }
.trHint { margin: 0; color: var(--ink2); font-size: 12.5px; line-height: 1.45; }
.trList { list-style: none; margin: 0; padding: 0; } .trList li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.4; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: start; }
.trList li:first-child { border-top: 0; } .trList li small { grid-column: 1; color: var(--ink2); font-size: 12px; } .trList li .trAct { grid-column: 1 / -1; display: flex; gap: 14px; }
.trNotes .trList li { display: block; } .trList li.new { background: #fff7c9; border-radius: 8px; padding: 8px 10px; border-top: 0; margin: 2px 0; } .trList li.off { opacity: .5; text-decoration: line-through; }
.trX { border: 0; background: none; color: var(--ink2); cursor: pointer; font-size: 13px; padding: 2px 4px; } .trX:hover { color: var(--hot); }
.trRuleAdd { display: flex; gap: 8px; align-items: center; margin-top: 4px; } .trRuleAdd input { flex: 1; min-width: 0; font: 14px var(--sans); padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.trRateCard .trBigRate { display: flex; align-items: center; gap: 12px; } .trBigRate b { font: 600 40px/1 var(--serif); } .trBigRate i, .trRateStrip b i { font: 400 18px var(--serif); color: var(--ink2); font-style: normal; }
.trDots { display: inline-flex; gap: 3px; } .trDots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); } .trDots i.on { background: var(--accent); }
.trTicks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 12.5px; line-height: 1.4; } .trTicks li::before { margin-right: 6px; font-weight: 700; } .trTicks li.ok::before { content: "✓"; color: var(--accent); } .trTicks li.no::before { content: "✕"; color: #b03a2e; }
.trLast { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink2); } .trLast i { width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center; font: 700 11px var(--sans); color: #fff; font-style: normal; background: #b06a12; }
.trLast i.r4, .trLast i.r5 { background: var(--accent); } .trLast i.r1, .trLast i.r2 { background: #b03a2e; } .trLast b { color: var(--ink); } .trGrow { flex: 1; }
/* the photo view: rating / notes / rules | photos upright | tools over the photo | the chat */
.trPhotoView { display: grid; grid-template-columns: 264px 108px minmax(0, 1fr) minmax(320px, 390px); gap: 16px; padding: 16px 20px; box-sizing: border-box; overflow: hidden; }
.trLeft { display: flex; flex-direction: column; gap: 12px; overflow: auto; min-height: 0; }
.trStripV { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; min-height: 0; }
.trStripV small { font: 700 10.5px var(--sans); letter-spacing: .1em; color: var(--ink2); } .trStripV > span { font-size: 12px; color: var(--ink2); }
.trStripIn { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 8px; min-height: 0; }
.trStripIn button { flex: none; width: 88px; height: 62px; padding: 0; border: 2.5px solid transparent; border-radius: 9px; overflow: hidden; position: relative; background: var(--sand); cursor: pointer; opacity: .82; }
.trStripIn button img { width: 100%; height: 100%; object-fit: cover; display: block; } .trStripIn button.on { border-color: var(--accent); opacity: 1; } .trStripIn button:hover { opacity: 1; }
.trStripIn button.read::after { content: "✓"; position: absolute; right: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; color: var(--accent); border: 1.5px solid var(--accent); font: 700 10px/15px var(--sans); text-align: center; }
.trPhStat { position: absolute; left: 10px; top: 10px; z-index: 3; padding: 4px 10px; border-radius: 10px; font: 700 12px var(--sans); box-shadow: 0 2px 6px rgba(0,0,0,.25); pointer-events: none; }
.trPhStat.new { background: rgba(255,253,248,.92); color: var(--ink2); } .trPhStat.read { background: #fff; color: var(--accent); } .trPhStat.done { background: var(--accent); color: #fff; }
.trLooking ~ .trPhStat, .trFrame:has(.trLooking) .trPhStat { display: none; }
.trStripIn button.done::after { content: "✓"; position: absolute; right: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 10px/17px var(--sans); text-align: center; }
.trStageCol { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; align-items: center; }
.trTools { position: relative; display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 3px; padding: 4px 5px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 18px rgba(42,36,32,.1); flex: none; }
.trTool { width: 38px; height: 38px; border-radius: 11px; border: 0; background: none; display: grid; place-items: center; color: var(--ink); cursor: pointer; } .trTool:hover:not(:disabled) { background: var(--sand); }
.trTool.on { background: var(--accent); color: #fff; } .trTool:disabled { opacity: .35; cursor: default; }
.trSep { width: 1px; height: 26px; background: var(--line); margin: 0 2px; } .trPalIn { display: flex; align-items: center; gap: 4px; }
.trSw { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; } .trSw.on { box-shadow: 0 0 0 2.5px var(--ink); }
.trTh { width: 28px; height: 28px; border-radius: 8px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; } .trTh i { width: var(--w); height: var(--w); border-radius: 50%; background: var(--ink); } .trTh.on { background: var(--sand); }
.trPalBtn { display: none; } .trDot { width: 22px; height: 22px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.trPalPop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 24px rgba(42,36,32,.18); }
.trStage { position: relative; flex: 1; width: 100%; min-height: 0; display: flex; align-items: flex-start; justify-content: center; }
.trFrame { position: relative; border-radius: 14px; overflow: hidden; background: #2A2420; touch-action: none; }
.trFrame img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.trMarks { position: absolute; inset: 0; width: 100%; height: 100%; cursor: default; } #trRoom.drawing .trMarks { cursor: crosshair; } .trHandle { cursor: nwse-resize; }
.trAnts { fill: rgba(191,226,201,.18); stroke: #bfe2c9; stroke-width: 4; stroke-dasharray: 10 6; animation: trAnts 1s linear infinite; filter: drop-shadow(0 0 3px rgba(0,0,0,.5)); }
@keyframes trAnts { to { stroke-dashoffset: -32; } }
.trHlTag { position: absolute; z-index: 2; padding: 4px 10px; border-radius: 9px; background: var(--accent); color: #fff; font: 700 13px var(--sans); white-space: nowrap; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.trScan { position: absolute; inset: 0; pointer-events: none; } .trScan i { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(rgba(191,226,201,0), rgba(191,226,201,.35)); border-bottom: 3px solid #bfe2c9; animation: trScan 2.2s ease-in-out infinite alternate; }
@keyframes trScan { from { top: -30%; } to { top: 100%; } }
.trLooking { position: absolute; left: 12px; top: 12px; background: rgba(42,36,32,.78); color: #fff; border-radius: 10px; padding: 6px 10px; font: 600 12.5px var(--sans); }
.trNav { display: none; position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,253,248,.9); color: var(--ink); font: 600 26px/1 var(--sans); box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; z-index: 2; }
.trNav.prev { left: 8px; } .trNav.next { right: 8px; } .trNav:disabled { opacity: .35; } .trPhotoN { display: none; }
.trWhere { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; padding: 10px 12px; width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 14px; background: #fbf3df; }
.trWhere label { display: grid; gap: 3px; font: 600 13px var(--sans); flex: 1 1 200px; } .trWhere input { font: 15px var(--sans); padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); color: var(--ink); }
/* the chat */
.trChatCol { display: flex; flex-direction: column; min-height: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.trChatHd { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); } .trChatHd > b { font: 600 18px var(--serif); flex: 1; }
.trHomeSpot { width: 30px; height: 30px; flex: none; border-radius: 50%; background: radial-gradient(circle, rgba(191,226,201,.55), rgba(191,226,201,0) 70%); }
.trMTabs { display: none; gap: 2px; } .trMTabs button { border: 0; background: none; padding: 6px 8px; font: 600 13px var(--sans); color: var(--ink2); border-bottom: 2px solid transparent; cursor: pointer; } .trMTabs button[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); }
.trSideBack { display: none; } .trRateStrip { display: none; }
.trPane { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; } .trPane[data-pane="notes"], .trPane[data-pane="rules"] { padding: 12px; gap: 12px; }
.trPane .trCard { border: 0; padding: 4px 2px; background: none; }
.trChatLog { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.trMsg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; display: grid; gap: 4px; overflow-wrap: anywhere; }
.trMsg.cami { align-self: flex-start; background: var(--sand); border-bottom-left-radius: 5px; } .trMsg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.trMsg small { font: 700 10.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); } .trMsg.me small { color: #cfe3da; text-transform: none; letter-spacing: 0; font-weight: 500; }
.trMsg .skLink { justify-self: start; font-size: 13px; }
.trSumBox { display: grid; gap: 3px; margin-top: 4px; font-size: 13.5px; } .trSumBox b { font: 600 20px var(--serif); } .trSumBox em { font-style: normal; } .trSumBox em::before { margin-right: 6px; font-weight: 700; }
.trSumBox em.ok::before { content: "✓"; color: var(--accent); } .trSumBox em.no::before { content: "✕"; color: #b03a2e; } .trSumBox span { margin-top: 4px; }
.trTyping { flex-direction: row; display: flex; gap: 5px; padding: 13px 15px; } .trTyping i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink2); animation: trDot 1.2s infinite ease-in-out; } .trTyping i:nth-child(2) { animation-delay: .15s; } .trTyping i:nth-child(3) { animation-delay: .3s; }
@keyframes trDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.trQuick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-left: 4px; font-size: 13.5px; } .trQuick .skLink { font-size: 14px; }
.trRateQ span { width: 100%; font-weight: 600; } .trRateQ small { width: 100%; color: var(--ink2); font-size: 12px; }
.trRateBtn { width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); font: 700 16px var(--sans); color: var(--ink); cursor: pointer; } .trRateBtn:hover { border-color: var(--accent); }
.trSay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--bg); }
.trHear { display: none; width: 100%; font-size: 12.5px; background: var(--sand); border-radius: 10px; padding: 6px 10px; box-sizing: border-box; } .trHear small { color: var(--ink2); }
.trSay input { flex: 1; min-width: 0; font: 15px var(--sans); color: var(--ink); background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 12px 16px; }
.trSend { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg2); color: var(--accent); display: grid; place-items: center; cursor: pointer; flex: none; }
.trMic { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.trMic.on { animation: trMic 1.2s ease-in-out infinite; } .trMic.deaf { background: var(--ink2); }
@keyframes trMic { 0%, 100% { box-shadow: 0 0 0 0 rgba(47,93,80,.35); } 50% { box-shadow: 0 0 0 10px rgba(47,93,80,0); } }
/* v113: zoom, saved notes, answer buttons, failures with a code and Try again, the learning count, the side rail, the photo piles' status */
.trZoomBox { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
/* v114: Analyze, his ask-about-a-spot box, and fixing her box */
.trAway { position: absolute; inset: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px; border: 2px dashed var(--line); border-radius: 16px; background: var(--sand); color: var(--ink2); font: 14px var(--sans); z-index: 5; }
.trAway b { font: 600 18px var(--serif); color: var(--ink); }
.trStage.away .trAnalyze, .trStage.away .trZoomCtl { display: none; }
.trAnalyze { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; min-height: 52px; padding: 0 28px; border: 0; border-radius: 16px; background: var(--accent); color: #fff; font: 600 18px var(--sans); box-shadow: 0 8px 24px rgba(0,0,0,.35); cursor: pointer; }
.trAnalyze:hover { filter: brightness(1.1); } .trAnaBtn { justify-self: start; margin-top: 4px; }
.trPop { position: absolute; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 6px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.3); transform-origin: 0 0; white-space: nowrap; }
.trPopBtn { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--accent); color: #fff; font: 600 13px var(--sans); cursor: pointer; } .trPopBtn.ghost { background: none; color: var(--accent); border: 1.5px solid var(--accent); }
.trPopX { width: 32px; height: 32px; border: 0; background: none; color: var(--ink2); cursor: pointer; border-radius: 8px; } .trPopX:hover { background: var(--sand); }
.trZoomCtl { position: absolute; right: 10px; bottom: 10px; z-index: 3; display: flex; align-items: center; gap: 2px; padding: 3px; background: rgba(255,253,248,.94); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.trZoomCtl button { width: 36px; height: 36px; border: 0; background: none; border-radius: 9px; display: grid; place-items: center; color: var(--ink); cursor: pointer; } .trZoomCtl button:hover:not(:disabled) { background: var(--sand); } .trZoomCtl button:disabled { opacity: .35; }
.trZoomCtl .trZoomN { width: auto; min-width: 46px; font: 600 12.5px var(--sans); }
.trMsg.me.failed { opacity: .7; } .trFail { align-self: flex-end; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #8f2a1f; } .trMsg.cami .trFail { align-self: auto; }
.trFail code { font: 600 11.5px ui-monospace, Consolas, monospace; background: #fbe7e4; color: #8f2a1f; padding: 1px 6px; border-radius: 6px; user-select: all; }
.trSaved { display: grid; gap: 4px; margin-top: 4px; } .trSave { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; line-height: 1.35; background: #fff7c9; border-radius: 8px; padding: 5px 8px; animation: trSave .9s ease-out; }
.trSave.rep { background: #e7f0ec; } .trSave svg { flex: none; margin-top: 1px; color: var(--accent); } @keyframes trSave { 0% { transform: scale(.9); opacity: 0; } 60% { transform: scale(1.03); opacity: 1; } 100% { transform: none; } }
.trChoices { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 4px; } .trChoice { min-height: 40px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--accent); background: var(--bg2); color: var(--accent); font: 600 14px var(--sans); cursor: pointer; } .trChoice:hover { background: var(--accent); color: #fff; }
.trTyping span { font-size: 12px; color: var(--ink2); margin-left: 6px; }
.trLearn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: #fff7c9; border-radius: 10px; padding: 4px 9px; font: 12px var(--sans); color: var(--ink); cursor: pointer; } .trLearn b { font-size: 14px; } .trLearn span { color: var(--ink2); } .trLearn svg { color: var(--accent); }
.trLearn.bump { animation: trBump 1.1s ease-out; } @keyframes trBump { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(224,196,106,.8); } 30% { transform: scale(1.18); } 100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(224,196,106,0); } }
.trRail { display: none; flex-direction: column; gap: 8px; } .trRail button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); color: var(--ink); cursor: pointer; }
.trRail b { font: 600 20px var(--serif); } .trRail small { font: 600 10.5px var(--sans); color: var(--ink2); } .trRail i { position: absolute; top: 4px; right: 5px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--accent); color: #fff; font: 700 10px/16px var(--sans); font-style: normal; text-align: center; } .trRail button:hover { border-color: var(--accent); }
.trLeft { position: relative; } .trMore { display: none; position: sticky; bottom: 0; margin-top: -8px; border: 1px solid var(--line); border-radius: 12px; background: var(--accent); color: #fff; font: 600 13px var(--sans); padding: 8px; cursor: pointer; box-shadow: 0 -8px 16px var(--bg); } .trLeft.more .trMore { display: block; }
.trPile { align-items: flex-start; } .trPileTx { display: grid; gap: 4px; min-width: 0; flex: 1; } .trPileTx b { overflow-wrap: anywhere; } .trPileSt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trSt { font: 700 11px var(--sans); font-style: normal; padding: 2px 8px; border-radius: 8px; } .trSt.new { background: var(--sand); color: var(--ink2); } .trSt.going { background: #fbf1dc; color: #8a520c; } .trSt.done { background: #e7f0ec; color: var(--accent); }
.trPile .trBar { height: 6px; border-radius: 3px; } .trPile .trBar i { border-radius: 3px; }
/* narrower computer: the cards go into the chat's tabs, and a slim rail on the left says they're there */
@media (max-width: 1240px) { .trPhotoView { grid-template-columns: 66px 104px minmax(0, 1fr) minmax(320px, 380px); } .trLeft { display: none; } .trRail { display: flex; } .trMTabs { display: flex; } .trChatHd > b { display: none; } .trStripIn button { width: 80px; height: 56px; } }
/* phone held upright: the full photo up top, one at a time; chat / her notes / rules as tabs */
@media (max-width: 759px) {
  .trHdr { padding: 8px 12px; gap: 8px; } .trBrand small { display: none; } .trBrand b { font-size: 19px; } #trRoom.inPhoto .trTabs, #trRoom.inPhoto .trWhereAt, .trOff { display: none; } #trRoom.inPhoto .trCount { display: block; margin-left: auto; font-size: 12px; color: var(--ink2); }
  #trRoom:not(.inPhoto) .trTabs { overflow-x: auto; gap: 14px; } #trRoom:not(.inPhoto) .trHdr { flex-wrap: wrap; } #trRoom:not(.inPhoto) .trWhereAt { display: none; }
  #trRoom.inPhoto .trHdr { flex-wrap: nowrap; } #trRoom.inPhoto .trBack { order: -1; }
  .trPhotoView { display: flex; flex-direction: column; padding: 0; gap: 0; } .trStripV, .trLeft, .trRail { display: none; } .trLearn span { display: none; }
  .trStageCol { gap: 0; flex: none; } .trTools { border-radius: 0; border-width: 0 0 1px; box-shadow: none; width: 100%; flex-wrap: nowrap; justify-content: space-between; padding: 3px 6px; box-sizing: border-box; }
  .trPalIn { display: none; } .trPalBtn { display: grid; } .trSep { display: none; } .trTool { width: 36px; height: 38px; }
  .trStage { flex: none; height: 33vh; background: #2A2420; } .trFrame { border-radius: 0; } .trNav { display: block; }
  .trPhotoN { display: block; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); background: rgba(42,36,32,.75); color: #fff; border-radius: 10px; padding: 3px 10px; font: 600 12px var(--sans); }
  .trChatCol { flex: 1; border-radius: 0; border-width: 1px 0 0; } .trChatHd { padding: 0 8px; } .trChatHd .trHomeSpot { display: none; } .trMTabs { display: flex; flex: 1; } .trMTabs button { flex: 1; padding: 10px 0; }
  .trRateStrip { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line); font-size: 12px; } .trRateStrip > small { color: var(--ink2); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: 10.5px; }
  .trRateStrip b { font: 600 19px var(--serif); } .trRateStrip .trHomeSpot { width: 24px; height: 24px; } .trRateStrip .trDots i { width: 9px; height: 9px; }
  .trSay { padding: 8px 10px 12px; } .trPage { padding: 16px; } .trWhere { border-radius: 0; }
}
/* phone turned sideways: photo on the left, chat on the right, and talk only (no typing sideways) */
@media (max-height: 520px) and (orientation: landscape) {
  .trHdr { display: none; } .trPhotoView { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding: 0; gap: 0; } .trStripV, .trLeft, .trRail { display: none; } .trLearn span { display: none; }
  .trStageCol { gap: 0; background: #2A2420; } .trTools { border-radius: 0; border-width: 0 0 1px; box-shadow: none; width: 100%; flex-wrap: nowrap; justify-content: space-between; padding: 2px 4px; box-sizing: border-box; }
  .trPalIn { display: none; } .trPalBtn { display: grid; } .trSep { display: none; } .trTool { width: 34px; height: 34px; } .trZoomCtl .trZoomN { display: none; }
  .trStage { height: auto; } .trFrame { border-radius: 0; } .trNav { display: block; } .trPhotoN { display: block; position: absolute; right: 8px; top: 8px; background: rgba(42,36,32,.75); color: #fff; border-radius: 10px; padding: 3px 10px; font: 600 12px var(--sans); }
  .trChatCol { border-radius: 0; border-width: 0 0 0 1px; } .trRateStrip { display: none; } .trChatHd { padding: 4px 10px; } .trChatHd > b { display: none; } .trMTabs { display: flex; flex: 1; } .trSideBack { display: inline; }
  .trChatLog { padding: 8px 10px; } .trMsg { font-size: 13.5px; padding: 8px 11px; }
  .trSay { justify-content: center; padding: 6px 10px 8px; } .trSay input, .trSend { display: none; } .trHear { display: block; flex: 1; width: auto; } .trMic { width: 56px; height: 56px; }
}

/* ---- the sketch's top toolbar (v116, Bryan, Nov 21 2026): three styles to try, switched from its stacked-bars button (sketch.js TOPS) */
#skTop, #skTopPop { display: none; --bg: #FFFDF8; --bg2: #F7F2E8; --ink: #2A2420; --ink2: #5E554B; --line: #E0D6C3; --accent: #2F5D50; } /* the app's own Linen, like the print layout: the sketch screen's ink-black accent stays on the drawing */
body.sketching.skTop #skTop:not([hidden]) { display: flex; flex-direction: column; position: fixed; z-index: 7; left: 0; right: 0; top: 0; padding-top: var(--safe-t); background: var(--bg); box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(42,36,32,.07); font-family: var(--sans); }
body.sketching.skTop #skTopPop:not([hidden]) { display: flex; flex-direction: column; position: fixed; z-index: 9; min-width: 240px; max-width: min(520px, calc(100vw - 16px)); overflow-y: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 34px rgba(42,36,32,.2); padding: 8px; gap: 1px; }
body.skTop #skDock, body.skTop #skDial, body.skTop #skDialTab, body.skTop #skRail, body.skTop #skUR { display: none !important; }
body.sketching.skTop #panel { top: calc(var(--skTopH, 120px) + 10px) !important; max-height: calc(100vh - var(--skTopH, 120px) - 24px - var(--safe-b)); }
body.sketching.skTop.skL-side #panel, body.sketching.skTop.skL-menuleft #panel { bottom: 16px; max-height: none; }
body.sketching.skTop.skL-menuleft #panel { left: calc(10px + var(--safe-l)); }
#skTop .tbBar { display: flex; align-items: center; gap: 2px; padding: 6px max(10px, var(--safe-r)) 6px max(10px, var(--safe-l)); min-height: 52px; }
#skTop .tbApp { padding-right: max(64px, var(--safe-r)); } /* room for the version tag */
#skTop .tbGrow { flex: 1; }
#skTop .tbSep { width: 1px; align-self: stretch; background: var(--line); margin: 6px 6px; flex: none; }
#skTop .tbB { border: 0; background: transparent; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 44px; min-height: 44px; padding: 4px 5px; border-radius: 10px; font: 500 11px var(--sans); cursor: pointer; white-space: nowrap; flex: none; }
#skTop .tbB svg, #skTop .tbS svg, #skTopPop .tbPi > svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#skTop .tbB.big { min-width: 58px; min-height: 64px; } #skTop .tbB.big svg { width: 26px; height: 26px; }
#skTop .tbB.dd span::after { content: " ▾"; font-size: 9px; color: var(--ink2); }
#skTop .tbB:hover:not(:disabled), #skTop .tbS:hover:not(:disabled) { background: var(--bg2); }
#skTop .tbB.on { background: var(--accent); color: #fff; } #skTop .tbB.on span::after { color: #fff; }
#skTop button:disabled { opacity: .35; cursor: default; }
#skTop button:focus-visible, #skTopPop button:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
#skTop .tbFile { border: 0; background: var(--accent); color: #fff; font: 600 14px var(--sans); height: 38px; padding: 0 14px; border-radius: 10px; cursor: pointer; flex: none; margin-right: 6px; }
#skTop .tbBack { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--bg); color: var(--accent); font: 600 13px var(--sans); height: 38px; padding: 0 10px 0 6px; border-radius: 10px; cursor: pointer; flex: none; }
#skTop .tbBack svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
#skTop .tbTitle { display: flex; flex-direction: column; line-height: 1.15; margin: 0 6px; flex: 0 1 auto; min-width: 70px; max-width: 190px; overflow: hidden; }
#skTop .tbTitle b { font: 600 16px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#skTop .tbTitle span { font-size: 11.5px; color: var(--ink2); white-space: nowrap; }
#skTop .tbSlot { width: 300px; height: 50px; flex: 0 1 300px; min-width: 200px; } #skTop .tbSlot.wide { flex-basis: min(440px, 32vw); }
#skTop .tbDone { border: 0; background: var(--accent); color: #fff; font: 600 14px var(--sans); height: 40px; padding: 0 18px; border-radius: 12px; cursor: pointer; flex: none; margin-left: 8px; }
#skTop .tbSw { border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; flex: none; margin-left: 6px; }
#skTop .tbSw svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
#skTop .tbChips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
#skTop .tbChip { --c: var(--ink); display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 600 12px var(--sans); cursor: pointer; white-space: nowrap; }
#skTop .tbChip::before { content: ""; width: 16px; height: 4px; border-radius: 2px; background: var(--c); }
#skTop .tbChip.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
/* the ribbon */
#skTop .tbTabs { display: flex; align-items: center; gap: 2px; padding: 0 12px; border-top: 1px solid var(--line); }
#skTop .tbTabs [role=tab] { border: 0; background: transparent; font: 600 13px var(--sans); color: var(--ink2); padding: 8px 12px 7px; border-bottom: 2.5px solid transparent; cursor: pointer; }
#skTop .tbTabs [aria-selected=true] { color: var(--ink); border-color: var(--accent); }
#skTop .tbFold { border: 0; background: transparent; color: var(--ink2); font: 12px var(--sans); cursor: pointer; padding: 6px; }
#skTop .tbRib[hidden] { display: none; }
#skTop .tbRib { display: flex; align-items: stretch; border-top: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; padding: 0 6px; scrollbar-width: thin; }
#skTop .tbGrp { display: flex; flex-direction: column; padding: 6px 8px 0; border-right: 1px solid var(--line); flex: none; }
#skTop .tbGrp > b { text-align: center; font: 700 10px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink2); padding: 3px 0 5px; }
#skTop .tbRow { display: flex; gap: 2px; align-items: center; flex: 1; }
#skTop .tbGrp .tbChips { max-width: 440px; }
#skTop .tbSmall { display: grid; grid-template-columns: auto auto; gap: 0 4px; }
#skTop .tbSmall .tbB { flex-direction: row; gap: 6px; min-height: 30px; justify-content: flex-start; font-size: 12px; padding: 3px 8px; }
#skTop .tbSmall .tbB svg { width: 16px; height: 16px; }
.tbTiles { gap: 4px !important; }
#skTop .tbTile, #skTopPop .tbTile { border: 1px solid transparent; background: transparent; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 74px; padding: 4px 2px; cursor: pointer; color: var(--ink); }
#skTop .tbTile span, #skTopPop .tbTile span { font: 500 10.5px/1.15 var(--sans); text-align: center; max-height: 2.3em; overflow: hidden; }
#skTop .tbTile:hover, #skTopPop .tbTile:hover { background: var(--bg2); } #skTop .tbTile.on { border-color: var(--accent); background: var(--bg2); }
/* the shelf */
#skTop .tbShelf { border-top: 1px solid var(--line); background: var(--bg2); min-height: 56px; overflow-x: auto; }
/* the bar for what's picked (slim rail, phone) */
#skTop .tbCtx { display: flex; align-items: center; gap: 8px; padding: 5px max(14px, var(--safe-r)) 5px max(14px, var(--safe-l)); border-top: 1px solid var(--line); background: var(--bg2); font-size: 12.5px; overflow-x: auto; min-height: 40px; }
#skTop .tbCtx[hidden] { display: none; }
#skTop .tbCtxN { font: 700 11px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink2); white-space: nowrap; margin-right: 4px; }
#skTop .tbF { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; }
#skTop .tbF input { width: 72px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: 13px var(--sans); padding: 0 8px; }
#skTop .tbS { border: 0; background: transparent; color: var(--ink); display: flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 8px; font: 500 12px var(--sans); cursor: pointer; white-space: nowrap; min-height: 32px; }
#skTop .tbS svg { width: 16px; height: 16px; } #skTop .tbS.danger { color: #b3261e; }
#skTop .tbLink { border: 0; background: transparent; color: var(--accent); font: 600 12.5px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; padding: 4px 6px; }
/* the pop-up lists */
#skTopPop .tbPh { font: 700 10.5px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink2); padding: 8px 10px 3px; }
#skTopPop .tbPs { height: 1px; background: var(--line); margin: 5px 6px; display: block; }
#skTopPop .tbPi { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--ink); text-align: left; padding: 7px 10px; border-radius: 9px; font: 13.5px var(--sans); cursor: pointer; min-height: 38px; }
#skTopPop .tbPi:hover, #skTopPop .tbPi.on { background: var(--bg2); }
#skTopPop .tbPi em { margin-left: auto; font-style: normal; color: var(--ink2); font-size: 12px; }
#skTopPop .tbPiArt svg { width: 34px; height: 20px; display: block; }
#skTopPop .tbSty span { display: flex; flex-direction: column; } #skTopPop .tbSty small { color: var(--ink2); font-size: 12px; }
#skTopPop .tbSty.on { box-shadow: inset 0 0 0 2px var(--accent); }
#skTopPop #tbFind { margin: 2px 2px 4px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 14px var(--sans); padding: 0 10px; }
#skTopPop .tbPgrid { display: grid; grid-template-columns: repeat(auto-fill, 78px); gap: 2px; }
#skTopPop .tbNone { color: var(--ink2); padding: 10px; margin: 0; }
/* the old Layout rail and the wheel's list get a way back to the toolbar */
#skRailTop { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: transparent; color: var(--ink); font: 600 11px var(--sans); cursor: pointer; padding: 2px 6px; border-radius: 10px; }
/* a phone: the job and Done on top, then one strip of tools he slides sideways */
#skTop.tb-phone .tbApp { padding-right: max(10px, var(--safe-r)); min-height: 50px; gap: 4px; }
#skTop.tb-phone .tbTitle { flex: 1; max-width: none; }
#skTop.tb-phone .tbStrip { overflow-x: auto; flex-wrap: nowrap; border-top: 1px solid var(--line); background: var(--bg2); scrollbar-width: none; min-height: 58px; }
#skTop.tb-phone .tbStrip::-webkit-scrollbar { display: none; }
@media (max-width: 640px) {
  body.sketching.skTop #skTop:not([hidden]) { top: calc(66px + var(--safe-t)); padding-top: 0; left: 8px; right: 8px; border-radius: 16px; overflow: hidden; }
  body.sketching.skTop #panel { top: auto !important; }
}
body.skTop.skCtx #skBar { display: none !important; } /* the bar under the rail already has Duplicate / Lock / Delete */
@media (max-width: 1360px) { #skTop.tb-rail .tbApp .tbB span, #skTop.tb-shelf .tbShelf > .tbB span { font-size: 0; } #skTop.tb-rail .tbApp .tbB.dd span::after, #skTop.tb-shelf .tbShelf > .tbB.dd span::after { font-size: 9px; } #skTop.tb-rail .tbApp .tbB, #skTop.tb-shelf .tbShelf > .tbB { min-width: 38px; } #skTop .tbTitle span { display: none; } }
@media (max-width: 1100px) { #skTop .tbSlot, #skTop .tbSlot.wide { flex-basis: 220px; min-width: 160px; } #skTop .tbChip { padding: 0 7px; } #skTop .tbTitle { max-width: 120px; } }
/* Bryan, Nov 21 2026: "all those icons down there in the bottom right corner all have to go" on the sketch pad (zoom with the wheel or two fingers); the map's credit stays, it has to */
body.sketching .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group, body.sketching .maplibregl-ctrl-geolocate, body.sketching #skQuickMake, body.sketching #skQuickPhotos { display: none !important; }
body.sketching #skCreate { display: none; }
body.skTop #topbar[data-tb-seat] { z-index: 8; } /* seated in the toolbar's slot, so it has to sit over the bar */
/* ---- the Reports page (v117): six layouts, the month calendar first (work.js rptListHtml) */
.rpTop { flex-wrap: wrap; gap: 10px; }
.rpViews { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.rpViews button { border: 0; background: transparent; color: var(--ink2); font: 600 12.5px var(--sans); padding: 7px 10px; border-radius: 9px; cursor: pointer; }
.rpViews button[aria-pressed=true] { background: var(--ink); color: #fff; }
.rpNeed { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fbe4e1; border: 1px solid #efc7c1; border-radius: 14px; padding: 10px 14px; margin: 4px 0 12px; font-size: 14px; }
.rpNeed span { color: var(--ink2); flex: 1; min-width: 160px; }
.rpPill { display: inline-block; font: 700 11px var(--sans); padding: 2px 8px; border-radius: 9px; white-space: nowrap; }
.rpPill.todo { color: #b3261e; background: #fbe4e1; } .rpPill.open { color: #8a5a00; background: #fff1d6; } .rpPill.final { color: #2F5D50; background: #E6EFEA; }
.rpDot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; } .rpDot.todo { background: #b3261e; } .rpDot.open { background: #c08a1e; } .rpDot.final { background: #2F5D50; }
.rpShot { width: 92px; height: 62px; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; flex: none; background: #fff; }
.rpShot.none { display: block; background: repeating-linear-gradient(-20deg, #fff 0 14px, #F1EADB 14px 15px); }
/* calendar */
.rpCal { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.rpMonth, .rpDay { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.rpMh { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; } .rpMh b { font: 600 20px var(--serif); }
.rpNav { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 4px 10px; font: 600 13px var(--sans); cursor: pointer; color: var(--ink); }
.rpDows, .rpGrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; } .rpDows i { font: 700 11px var(--sans); font-style: normal; color: var(--ink2); text-align: center; padding: 3px 0; }
.rpCd { position: relative; min-height: 78px; border: 1px solid var(--line); background: var(--bg2); border-radius: 11px; padding: 5px 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; cursor: pointer; font-style: normal; color: var(--ink); text-align: left; }
.rpCd b { font: 600 14px var(--serif); } .rpCd.wk { background: #F2ECE0; } .rpCd.off { border-color: transparent; background: transparent; cursor: default; }
.rpCd.today { box-shadow: inset 0 0 0 2px var(--ink); } .rpCd.sel { box-shadow: 0 0 0 3px var(--accent); background: var(--surface); }
.rpChip { font: 700 10px var(--sans); padding: 2px 5px; border-radius: 6px; } .rpChip.todo { color: #b3261e; background: #fbe4e1; } .rpChip.final { color: #2F5D50; background: #E6EFEA; }
.rpCd em { position: absolute; right: 5px; top: 5px; font: 700 10px/17px var(--sans); font-style: normal; min-width: 17px; text-align: center; border-radius: 9px; background: #b3261e; color: #fff; }
.rpDay { display: flex; flex-direction: column; gap: 8px; } .rpDay > small, .rpTot small, .rpRow3 small, .rpHero small { font: 700 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.rpDay > b { font: 600 19px var(--serif); }
.rpDc { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px; text-align: left; cursor: pointer; color: var(--ink); }
.rpDc > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .rpDc i { font-style: normal; font-size: 12px; color: var(--ink2); }
.rpTot { display: flex; flex-wrap: wrap; gap: 6px; } .rpTot small { width: 100%; } .rpTot span, .rpRow3 > div > span { flex: 1; background: var(--bg2); border-radius: 10px; padding: 8px 10px; font-size: 12px; color: var(--ink2); display: flex; flex-direction: column; } .rpTot b, .rpRow3 b { font: 600 20px var(--serif); color: var(--ink); }
/* inbox */
.rpInbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 14px; align-items: start; }
.rpList, .rpPv { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.rpTabs { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); } .rpTabs button { border: 0; background: transparent; font: 600 12.5px var(--sans); color: var(--ink2); padding: 6px 9px; border-radius: 8px; cursor: pointer; } .rpTabs button[aria-pressed=true] { background: var(--ink); color: #fff; }
.rpIb { display: flex; gap: 10px; align-items: center; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 10px 12px; text-align: left; cursor: pointer; color: var(--ink); }
.rpIb > span { display: flex; flex-direction: column; min-width: 0; } .rpIb i { font-style: normal; font-size: 12px; color: var(--ink2); } .rpIb.on { background: #E6EFEA; box-shadow: inset 4px 0 0 var(--accent); }
.rpPvh { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; } .rpPvh b { font: 600 21px var(--serif); } .rpPvh span { font-size: 13px; color: var(--ink2); }
.rpPvb { display: flex; gap: 14px; padding: 14px 16px; background: var(--sand); flex-wrap: wrap; }
.rpSheet { flex: 1 1 260px; background: #fff; border-radius: 6px; box-shadow: 0 3px 12px rgba(42,36,32,.12); padding: 16px 18px; font-size: 13px; line-height: 1.5; } .rpSheet > b { display: block; letter-spacing: .08em; border-bottom: 2px solid var(--ink); padding-bottom: 3px; margin-bottom: 6px; } .rpSheet i { font-style: normal; font-weight: 700; }
.rpPvs { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink2); } .rpPvs .rpShot { width: 220px; height: 150px; }
.rpPvf { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); }
/* folder per job */
.rpFold { position: relative; padding-top: 16px; margin-bottom: 16px; } .rpTab { position: absolute; left: 18px; top: 0; width: 140px; height: 22px; border-radius: 10px 10px 0 0; }
.rpFb { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 0 16px 16px 16px; padding: 12px 16px; box-shadow: 0 4px 0 #EFE7D5; }
.rpFh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13px; color: var(--ink2); } .rpFh > b { font: 600 20px var(--serif); color: var(--ink); }
.rpFr { display: grid; grid-template-columns: 80px minmax(0, 1fr) 70px 100px; gap: 10px; align-items: center; width: 100%; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 9px 0; text-align: left; cursor: pointer; color: var(--ink); font-size: 14px; }
/* table */
.rpTblActs { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.rpTblWrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.rpTbl { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 13.5px; min-width: 760px; }
.rpTbl th { text-align: left; font: 700 10.5px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink2); background: var(--sand); padding: 10px 12px; }
.rpTbl td { padding: 10px 12px; border-top: 1px solid var(--line); } .rpTbl .n { text-align: right; font-variant-numeric: tabular-nums; } .rpTbl tfoot td { background: var(--sand); }
/* map */
.rpMapW { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.rpMap { position: relative; height: 460px; border-radius: 16px; border: 1px solid var(--line); background-color: #ECE6D8; background-image: linear-gradient(#FFFDF8 2px, transparent 2px), linear-gradient(90deg, #FFFDF8 2px, transparent 2px); background-size: 46px 46px; overflow: hidden; }
.rpPin { position: absolute; width: 30px; height: 30px; margin: -30px 0 0 -15px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.25); cursor: pointer; padding: 0; }
.rpPin span { display: block; transform: rotate(45deg); color: #fff; font: 700 12px/26px var(--sans); }
.rpPin.todo { background: #b3261e; } .rpPin.open { background: #c08a1e; } .rpPin.final { background: #2F5D50; } .rpPin.on { box-shadow: 0 0 0 4px rgba(47,93,80,.35), 0 3px 8px rgba(0,0,0,.25); }
.rpLg { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 12px; background: var(--surface); border-radius: 10px; padding: 6px 10px; font-size: 12px; } .rpLg .rpDot { margin-right: 5px; }
.rpMl { display: flex; flex-direction: column; gap: 6px; }
.rpMr { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 10px; text-align: left; cursor: pointer; color: var(--ink); } .rpMr > span { display: flex; flex-direction: column; } .rpMr i { font-style: normal; font-size: 12px; color: var(--ink2); } .rpMr.on { box-shadow: inset 4px 0 0 var(--accent); }
.rpN { width: 26px; height: 26px; border-radius: 50%; color: #fff; font: 700 12px/26px var(--sans) !important; text-align: center; flex: none; } .rpN.todo { background: #b3261e; } .rpN.open { background: #c08a1e; } .rpN.final { background: #2F5D50; }
/* today first */
.rpHero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(110deg, #E6EFEA, var(--surface) 60%); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-bottom: 12px; }
.rpHero > div:first-child { flex: 1; min-width: 220px; } .rpHero b { display: block; font: 600 30px/1.1 var(--serif); margin: 3px 0 4px; } .rpHero p { margin: 0; font-size: 14px; }
.rpRun { display: grid; grid-template-columns: repeat(7, 18px); gap: 4px; } .rpRun i { width: 18px; height: 18px; border-radius: 5px; background: var(--sand); } .rpRun i.on { background: var(--accent); }
.rpCards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-bottom: 12px; }
.rpCard { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; } .rpCard > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; } .rpCard b { font: 600 17px var(--serif); } .rpCard span { font-size: 12.5px; color: var(--ink2); }
.rpCard .rpShot { width: 130px; height: 88px; }
.rpRow3 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; } .rpRow3 > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; } .rpRow3 small { width: 100%; }
.rpRr { width: 100%; display: flex; justify-content: space-between; border: 0; background: transparent; padding: 5px 0; cursor: pointer; color: var(--ink); font-size: 13.5px; } .rpRr span { color: var(--ink2); }
@media (max-width: 760px) {
  .rpCal, .rpInbox, .rpMapW, .rpRow3 { grid-template-columns: 1fr; }
  .rpViews { margin-left: 0; width: 100%; } .rpCd { min-height: 54px; } .rpChip { display: none; } .rpMap { height: 300px; }
  .rpFr { grid-template-columns: 64px minmax(0, 1fr) 90px; } .rpFr > span:nth-child(3) { display: none; }
}

/* Cami's sound themes (Settings → Cami, sounds.js): one row per theme, tap to pick, Play hears the set */
.stThemeList { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; }
.stTheme { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.stTheme.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.stTheme input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.stTheme > span { flex: 1; min-width: 0; } .stTheme b { display: block; font-weight: 600; font-size: 14.5px; } .stTheme small { display: block; font-size: 12.5px; color: var(--ink2); line-height: 1.35; }
.stPlay { border: 0; background: none; color: var(--accent); font: 600 13.5px var(--sans); padding: 8px 4px; min-height: 40px; cursor: pointer; flex: none; }

/* The sketch's File screen (sketch.js openFile): like Excel's, it takes over the screen; the back arrow drops him back in the drawing */
#skFileScr { position: fixed; inset: 0; z-index: 60; display: flex; background: var(--bg); color: var(--ink); font-family: var(--sans);
  --accent: #2F5D50; --bg2: #F1EADB; --line: #E0D6C3; --ink: #2A2420; --ink2: #5E554B; }
#skFileScr.hidden { display: none; }
#skFileScr svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fsSide { width: 232px; flex: none; background: var(--bg2); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; overflow-y: auto; }
.fsBack { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--accent); font: 600 14px var(--sans); padding: 10px 10px 14px; cursor: pointer; text-align: left; }
.fsNavs { display: flex; flex-direction: column; gap: 2px; }
.fsNav { display: flex; align-items: center; gap: 12px; border: 0; background: none; color: var(--ink); font: 500 14.5px var(--sans); padding: 10px 12px; border-radius: 12px; cursor: pointer; text-align: left; min-height: 42px; }
.fsNav:hover { background: rgba(47,93,80,.08); } .fsNav.on { background: var(--accent); color: #fff; font-weight: 600; }
.fsSep { display: block; height: 1px; background: var(--line); margin: 8px 6px; }
.fsGrow { flex: 1; min-height: 16px; }
.fsMain { flex: 1; min-width: 0; overflow-y: auto; padding: 30px 36px 40px; display: flex; flex-direction: column; gap: 16px; }
.fsMain h2 { font: 600 28px/1.15 var(--serif); margin: 0; }
.fsLead { color: var(--ink2); margin: -6px 0 4px; max-width: 62ch; font-size: 14.5px; }
.fsSecHd { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .fsSecHd b { font: 600 18px var(--serif); } .fsSecHd small { color: var(--ink2); font-size: 13px; flex: 1; }
.fsTiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 12px; } .fsTiles.big { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.fsTile { display: flex; flex-direction: column; gap: 8px; align-items: center; border: 0; background: none; cursor: pointer; padding: 0; font: 600 13px var(--sans); color: var(--ink); text-align: center; }
.fsTile > span { display: block; width: 100%; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #FFFDF8; aspect-ratio: 60 / 46; transition: box-shadow .15s, border-color .15s; }
#skFileScr .fsTile > span svg { width: 100%; height: 100%; display: block; stroke: none; }
.fsTile:hover > span, .fsTile:focus-visible > span { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.fsFilt { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.fsFilt > button { border: 1px solid var(--line); background: #FFFDF8; color: var(--ink); font: 600 13px var(--sans); padding: 7px 14px; border-radius: 14px; cursor: pointer; min-height: 36px; }
.fsFilt > button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.fsSearch { margin-left: auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #FFFDF8; border-radius: 12px; padding: 0 12px; height: 40px; width: min(340px, 100%); color: var(--ink2); }
.fsSearch input { border: 0; background: none; outline: 0; flex: 1; min-width: 0; font: 14px var(--sans); color: var(--ink); }
.fsTable { display: flex; flex-direction: column; background: #FFFDF8; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fsTh, .fsRow { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.2fr) 120px 120px; gap: 12px; align-items: center; padding: 0 14px; }
.fsTh { font: 600 12px var(--sans); color: var(--ink2); padding-top: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.fsTh span:last-child, .fsWhen { text-align: right; }
.fsRow { border-top: 1px solid var(--line); min-height: 60px; } .fsRow:first-of-type { border-top: 0; } .fsRow:hover { background: #FBF7EE; } .fsRow.cur { background: #EEF4F0; }
.fsOpen { display: flex; align-items: center; gap: 12px; border: 0; background: none; cursor: pointer; text-align: left; padding: 8px 0; min-width: 0; color: var(--ink); font-family: var(--sans); }
.fsThumb { width: 46px; height: 34px; flex: none; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; } #skFileScr .fsThumb img, #skFileScr .fsThumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.fsName { min-width: 0; } .fsName b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fsName small { display: block; font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsJob { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsRep { font: 600 12.5px var(--sans); color: var(--ink2); } .fsRep.ok { color: var(--accent); } .fsRep.due { color: #B23A2B; }
.fsWhen { font-size: 12.5px; color: var(--ink2); } .fsWhen i { display: block; font-style: normal; color: var(--accent); font-weight: 600; font-size: 11.5px; }
.fsEmpty { color: var(--ink2); padding: 18px 0; }
.fsFoot { display: flex; justify-content: flex-end; }
.fsActs { display: flex; flex-direction: column; gap: 8px; max-width: 620px; }
.fsAct { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); background: #FFFDF8; border-radius: 14px; padding: 14px 16px; cursor: pointer; text-align: left; color: var(--ink); font-family: var(--sans); }
.fsAct:hover { border-color: var(--accent); } .fsAct svg { color: var(--accent); width: 24px; height: 24px; } .fsAct b { display: block; font-size: 15px; } .fsAct small { display: block; font-size: 13px; color: var(--ink2); margin-top: 2px; }
.fsInfoCard { background: #FFFDF8; border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; max-width: 620px; }
.fsInfo { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; } .fsInfo:first-child { border-top: 0; } .fsInfo span { width: 140px; flex: none; color: var(--ink2); } .fsInfo b { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.fsField { display: flex; flex-direction: column; gap: 6px; font: 600 13px var(--sans); color: var(--ink2); max-width: 620px; }
.fsField input { height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: 15px var(--sans); color: var(--ink); background: #FFFDF8; }
@media (max-width: 760px) {
  #skFileScr { flex-direction: column; }
  .fsSide { width: auto; flex-direction: row; align-items: center; overflow-x: auto; overflow-y: hidden; padding: 8px 8px; border-right: 0; border-bottom: 1px solid var(--line); gap: 4px; }
  .fsSide .fsBack span { display: none; } .fsBack { padding: 10px; } .fsNavs { flex-direction: row; } .fsSep, .fsGrow, .fsSide > .fsNav { display: none; }
  .fsNav { white-space: nowrap; padding: 8px 12px; } .fsNav svg { display: none; }
  .fsMain { padding: 18px 16px 30px; } .fsMain h2 { font-size: 24px; }
  .fsTiles { grid-template-columns: repeat(4, 1fr); gap: 8px; } .fsTiles.big { grid-template-columns: repeat(2, 1fr); } .fsTile { font-size: 11.5px; }
  .fsSearch { margin-left: 0; width: 100%; }
  .fsTh { display: none; } .fsRow { grid-template-columns: minmax(0, 1fr) auto; padding: 0 12px; } .fsJob { display: none; } .fsRep { grid-column: 2; grid-row: 1; text-align: right; } .fsWhen { display: none; }
}

body.sk-file #camiFloat, body.sk-file #pulse { display: none !important; }

/* The Dojo's front page (train.js homeHtml): the week strip, one sort / group / filter bar, and three layouts (wf.dojoView) */
.trHome { max-width: 1240px; gap: 14px; }
.trHero { display: flex !important; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 20px; background: linear-gradient(120deg, #E6EFEA, var(--bg) 55%, #fbe9d6); border: 1px solid var(--line); flex-wrap: wrap; }
.trHeroCami { width: 56px; height: 56px; flex: none; }
.trHeroTx { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 220px; } .trHeroTx small { font: 700 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.trHeroTx b { font: 600 24px/1.15 var(--serif); } .trHeroTx > span { color: var(--ink2); font-size: 14px; } .trBeltTx { color: var(--ink); font-weight: 600; }
.trWeek { display: flex; gap: 6px; }
.trWd { width: 52px; height: 60px; border-radius: 14px; background: rgba(255,253,248,.75); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--ink2); font: inherit; cursor: pointer; padding: 0; }
.trWd b { font: 600 12.5px var(--sans); } .trWd i { font: 600 17px var(--serif); font-style: normal; color: var(--ink); }
.trWd.on { background: var(--accent); border-color: var(--accent); color: #d8e6df; } .trWd.on i { color: #fff; } .trWd.pick { box-shadow: 0 0 0 3px #f2c230; } .trWd:disabled { cursor: default; }
.trDumpBtn { padding: 12px 18px !important; border-radius: 12px !important; font-size: 15px !important; }
.trHero .trBusy { flex-basis: 100%; margin: 0; }
.trFirst { display: grid; gap: 10px; } .trFirst p { color: var(--ink2); max-width: 62ch; margin: 0; line-height: 1.5; }
.trFbar { flex: none; position: relative; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-radius: 16px; padding: 8px 10px; }
.trSrch { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink2); flex: 1 1 180px; max-width: 300px; }
.trSrch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; } .trSrch input { border: 0; background: none; outline: 0; flex: 1; min-width: 0; font: 14px var(--sans); color: var(--ink); }
.trFw { position: relative; display: inline-flex; }
.trFb { height: 36px; display: flex; align-items: center; padding: 0 10px; border-radius: 10px; font: 600 13px var(--sans); color: var(--ink); border: 1px solid transparent; background: none; cursor: pointer; white-space: nowrap; }
.trFb:hover { background: var(--bg2); } .trFb.dark { background: var(--ink); color: #fff; } .trFb.set { background: #E6EFEA; color: var(--accent); }
.trFsep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.trVw { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-left: auto; }
.trVw button { width: 38px; height: 34px; display: grid; place-items: center; border: 0; background: none; color: var(--ink2); cursor: pointer; } .trVw button.on { background: var(--bg2); color: var(--ink); }
.trVw svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.trMenu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; width: 290px; max-height: min(60vh, 460px); overflow-y: auto; background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(42,36,32,.22); padding: 8px; display: flex; flex-direction: column; }
.trMh { font: 700 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); padding: 8px 10px 4px; }
.trMi { display: flex; align-items: center; text-align: left; padding: 8px 10px; border-radius: 9px; font: 14px var(--sans); border: 0; background: none; color: var(--ink); cursor: pointer; min-height: 38px; }
.trMi:hover { background: var(--bg2); } .trMi.on { background: var(--bg2); font-weight: 600; } .trMi em { margin-left: auto; font-style: normal; color: var(--accent); }
.trMe { color: var(--ink2); font-size: 13px; padding: 6px 10px; margin: 0; }
.trMrow { display: flex; flex-wrap: wrap; gap: 5px; padding: 2px 8px 6px; } .trMrow button { border: 1px solid var(--line); border-radius: 14px; padding: 6px 12px; font: 600 12.5px var(--sans); background: none; color: var(--ink); cursor: pointer; } .trMrow button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.trChips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 22px; } .trChips small { color: var(--ink2); font-size: 12.5px; }
.trChip { background: #E6EFEA; color: var(--accent); font: 600 12.5px var(--sans); padding: 5px 11px; border-radius: 14px; border: 0; cursor: pointer; }
.trGrow { flex: 1; }
.trBody { display: flex; flex-direction: column; gap: 14px; }
.trDay { display: flex; flex-direction: column; gap: 10px; }
.trDayHd { display: flex; align-items: baseline; gap: 10px; } .trDayHd b { font: 600 22px var(--serif); } .trDayHd > span { font: 600 14px var(--sans); color: var(--ink2); } .trDayHd small { color: var(--ink2); font-size: 13.5px; }
.trWx { font-style: normal; background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-radius: 12px; padding: 1px 9px; font-size: 12.5px; }
.trSite { display: flex; flex-direction: column; gap: 10px; background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-left: 5px solid var(--pc); border-radius: 16px; padding: 12px 14px; box-shadow: 0 2px 10px rgba(42,36,32,.05); }
.trSite .trPile { border: 0; background: none; padding: 0; align-items: center; } .trSite .trPileTx { max-width: 460px; }
.trSite .trPile:hover .trTrain { text-decoration: underline; }
.trRing { width: 44px; height: 44px; flex: none; } .trRing text { font: 700 9px var(--sans); fill: var(--ink); }
.trTrain { font: 600 14px var(--sans); color: var(--accent); white-space: nowrap; flex: none !important; display: block !important; }
.trSiteP { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.trPic { position: relative; flex: none; width: 132px; height: 96px; border-radius: 10px; overflow: hidden; border: 0; padding: 0; background: var(--bg2); cursor: pointer; }
.trPic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trKt { position: absolute; left: 6px; top: 6px; color: #fff; font: 700 10px var(--sans); font-style: normal; padding: 2px 6px; border-radius: 6px; background: #2F5D50; max-width: calc(100% - 36px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trKt.k-mpt { background: #C77D1E; } .trKt.k-concrete_ticket, .trKt.k-material_receipt { background: #A0522D; } .trKt.k-delivery { background: #2F6DB5; } .trKt.k-permit_or_sign, .trKt.k-paperwork { background: #5E554B; }
.trOk, .trAn { position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; font: 700 11px/20px var(--sans); font-style: normal; text-align: center; }
.trOk { background: var(--accent); color: #fff; box-shadow: 0 0 0 2px #fff; } .trAn { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.trTm { position: absolute; right: 6px; bottom: 6px; background: rgba(42,36,32,.75); color: #fff; font: 600 10.5px var(--sans); padding: 1px 6px; border-radius: 6px; }
.trMore1 { flex: none; width: 96px; height: 96px; border-radius: 10px; background: var(--bg2); border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 600 22px var(--serif); color: var(--ink); cursor: pointer; } .trMore1 small { font: 600 11px var(--sans); color: var(--ink2); }
/* contact sheet */
.trSel { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 16px; }
.trSel .skLink { color: #cfe8dc; } .trSel .trMenu { color: var(--ink); }
.trSheetHint { margin: 0; }
.trDay2 { display: flex; flex-direction: column; gap: 8px; }
.trDh2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-radius: 12px; } .trDh2 b { font: 600 18px var(--serif); margin-right: 4px; } .trDh2 small { color: var(--ink2); }
.trLg { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; } .trLg i { width: 14px; height: 6px; border-radius: 3px; }
.trG2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.trPic.c2 { width: auto; height: auto; aspect-ratio: 4 / 3; }
.trBand { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--pc); }
.trFn { position: absolute; left: 6px; bottom: 9px; font: 600 10px var(--sans); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); max-width: calc(100% - 50px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trPic.c2 .trTm { bottom: 9px; }
.trPic.picked { box-shadow: 0 0 0 3px #2F6DB5; } .trPic.picked::after { content: "✓"; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #2F6DB5; color: #fff; font: 700 11px/20px var(--sans); text-align: center; } .trPic.picked .trKt { left: 28px; }
/* day timeline */
.trCols3 { display: flex; gap: 16px; align-items: flex-start; } .trTime { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.trDay3 { background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.trTrack { position: relative; margin: 0 34px 0 4px; }
.trHrs { position: absolute; left: 0; right: 0; top: 0; height: 22px; border-bottom: 1px solid var(--line); } .trHrs i { position: absolute; transform: translateX(-50%); font: 600 11px var(--sans); font-style: normal; color: var(--ink2); }
.trSeg { position: absolute; height: 22px; border-radius: 11px; color: #fff; font: 700 11px/22px var(--sans); padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 0; cursor: pointer; text-align: left; max-width: 100%; }
.trPin3 { position: absolute !important; width: 68px !important; height: 52px !important; border: 2px solid #fff !important; box-shadow: 0 3px 8px rgba(0,0,0,.2); border-radius: 8px !important; }
.trPin3.s-new img { filter: saturate(.55) brightness(.92); } .trPin3.s-done { border-color: var(--pc) !important; } .trPin3 .trKt, .trPin3 .trTm { display: none; }
.trNoT { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .trNoT small { color: var(--ink2); } .trNoT .trPic { width: 90px; height: 66px; }
.trSide3 { width: 300px; flex: none; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; }
.trCami3 { display: flex; gap: 10px; align-items: flex-start; } .trCamiSpot { width: 44px; height: 44px; flex: none; border-radius: 50%; background: radial-gradient(circle, #cfe8dc, transparent 70%); }
.trBub { background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 12px 14px; font-size: 13.5px; line-height: 1.45; }
.trBeltC { display: flex; gap: 12px; align-items: center; background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-radius: 16px; padding: 12px; } .trBeltC > div { flex: 1; display: flex; flex-direction: column; gap: 5px; } .trBeltC b { font: 600 17px var(--serif); } .trBeltC small { color: var(--ink2); font-size: 12px; }
.trBeltC .trBar { display: block; height: 7px; border-radius: 4px; background: var(--bg2); overflow: hidden; } .trBeltC .trBar i { display: block; height: 100%; border-radius: 4px; }
.trBeltArt { width: 70px; height: 34px; flex: none; }
.trScroll { background: #FBF5E6; border-top: 6px solid #7a5230; border-bottom: 6px solid #7a5230; border-radius: 4px; padding: 12px 14px; font: 600 14.5px/1.35 var(--serif); text-align: center; }
@media (max-width: 900px) { .trCols3 { flex-direction: column; } .trSide3 { width: 100%; position: static; } }
@media (max-width: 640px) {
  .trHero { padding: 12px 14px; gap: 10px; } .trHeroCami { width: 40px; height: 40px; } .trHeroTx b { font-size: 19px; }
  .trWeek { width: 100%; justify-content: space-between; } .trWd { width: auto; flex: 1; height: 52px; } .trDumpBtn { width: 100%; }
  .trFbar { flex-wrap: nowrap; overflow-x: auto; } .trSrch { flex: 0 0 200px; } .trMenu { position: fixed; left: 12px; right: 12px; width: auto; top: auto; bottom: 12px; max-height: 60vh; }
  .trPic { width: 108px; height: 80px; } .trMore1 { width: 80px; height: 80px; } .trG2 { grid-template-columns: repeat(3, 1fr); gap: 6px; } .trFn { display: none; }
  .trSite .trRing { display: none; } .trTrack { margin-right: 10px; } .trPin3 { width: 52px !important; height: 40px !important; }
}

/* ---- one toolbar on every screen (gbar.js, wf.gbar). The map is the backdrop: the bar sits over its edge, and what floats on
   the map steps over by the bar's size (translate). The screens that cover the map are moved clear of it. */
#gbar { position: fixed; z-index: 9100; font-family: var(--sans); color: var(--ink); --gbAcc: #2F5D50; }
#gbar[hidden] { display: none; }
#gbar svg, .gbPop svg, .gbFan svg, .gbGoBox svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.gbN { position: absolute; top: -3px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #C0392B; color: #fff; font: 700 10px/16px var(--sans); text-align: center; box-shadow: 0 0 0 2px #FFFDF8; }
.gbDot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #C0392B; }
.gbLogo { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 0; background: #D9822B; color: #fff; font: 700 14px var(--serif); cursor: pointer; }
.gbI { position: relative; display: flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink); font: 600 12.5px var(--sans); cursor: pointer; white-space: nowrap; }
.gbI:focus-visible, .gbHere:focus-visible, .gbR:focus-visible { outline: 2px solid var(--gbAcc); outline-offset: 1px; }
/* the screens the bar keeps clear of */
html.gb-t :is(#of, #pg, #trRoom, #skFileScr, #crt, #st, #spBox, #orBox, #pyBox, #pr, .pgPrint, #co, #cb, #toBox) { top: var(--gbT) !important; }
html.gb-l :is(#of, #pg, #trRoom, #skFileScr, #crt, #st, #spBox, #orBox, #pyBox, #pr, .pgPrint, #co, #cb, #toBox) { left: var(--gbL) !important; }
html.gb-b :is(#of, #pg, #trRoom, #skFileScr, #crt, #st, #spBox, #orBox, #pyBox, #pr, .pgPrint, #co, #cb, #toBox) { bottom: var(--gbB) !important; }
html.gb-t :is(#topbar:not([data-tb-seat]), #skTop, #skRail, #panel, #skDock, #skUR, #skDial, #skAway, #layerSwitch, .maplibregl-ctrl-top-left, .maplibregl-ctrl-top-right, #pgTab, #ofTab) { translate: 0 var(--gbT); }
html.gb-l :is(#topbar:not([data-tb-seat]), #panel, #skDock, #flSheet, .maplibregl-ctrl-top-left, .maplibregl-ctrl-bottom-left, #skTop) { translate: var(--gbL) 0; }
html.gb-l #skTop { left: 0; right: var(--gbL); }
html.gb-l :is(#pgTab, #ofTab) { display: none !important; } /* the dock has the office and the book on it */
html.gb-t #wfVer { z-index: 9101; top: 13px; } /* the version tag rides in the bar's right corner */
/* 1 · the tab rail */
#gbar.gb-tabs { top: 0; left: 0; right: 0; height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 64px 0 10px; background: #FFFDF8; border-bottom: 1px solid #E0D6C3; box-shadow: 0 1px 6px rgba(42,36,32,.06); }
.gbTabs { display: flex; align-items: stretch; gap: 2px; flex: 1; min-width: 0; height: 100%; overflow-x: auto; scrollbar-width: none; } .gbTabs::-webkit-scrollbar { display: none; }
.gbTabs .gbI { padding: 0 11px; border-bottom: 2px solid transparent; border-radius: 0; }
.gbTabs .gbI:hover { background: #F7F2E8; } .gbTabs .gbI.on { border-bottom-color: var(--gbAcc); color: var(--gbAcc); }
.gbTabs .gbN { top: 5px; right: 1px; }
.gbAll { position: relative; flex: none; border: 1px solid #E0D6C3; background: #FFFDF8; border-radius: 10px; padding: 6px 10px; font: 600 12.5px var(--sans); color: var(--ink); cursor: pointer; }
/* 2 · the dock */
#gbar.gb-dock:not(.gbPhone) { top: 0; bottom: 0; left: 0; width: var(--gbL); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; background: #FFFDF8; border-right: 1px solid #E0D6C3; box-sizing: border-box; }
.gbDock { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; width: 100%; padding: 4px 6px; box-sizing: border-box; scrollbar-width: none; }
.gbDock .gbI { justify-content: center; padding: 9px 0; border-radius: 12px; } .gbDock.open .gbI { justify-content: flex-start; padding: 9px 10px; }
.gbDock .gbI:hover { background: #F7F2E8; } .gbDock .gbI.on { background: var(--gbAcc); color: #fff; }
.gbDock .gbN { top: 2px; right: 4px; }
.gbFold { flex: none; border: 0; background: none; color: #5E554B; font: 700 16px var(--sans); cursor: pointer; padding: 6px 12px; }
#gbar.gb-dock.gbPhone { top: 34%; left: 0; } /* the ☰ rides the left edge, where the Office and Book tabs were */
html.gb-burger :is(#pgTab, #ofTab) { display: none !important; }
html.gb-on #of .ofBar { display: none; } /* the toolbar on every screen does the office's own widget bar's job */
.gbBurger { position: relative; width: 44px; height: 52px; border-radius: 0 14px 14px 0; border: 1px solid #E0D6C3; border-left: 0; background: #FFFDF8; color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(42,36,32,.12); cursor: pointer; }
/* 3 · the bottom dock */
#gbar.gb-bottom:not(.gbPhone) { left: 50%; bottom: 10px; translate: -50% 0; transition: translate .25s ease, opacity .25s ease; }
#gbar.gb-bottom.tuck:not(.gbPhone) { translate: -50% calc(100% + 2px); } #gbar.gb-bottom.tuck:not(.gbPhone)::before { content: ''; position: absolute; left: 50%; top: -12px; width: 60px; height: 5px; margin-left: -30px; border-radius: 3px; background: rgba(42,36,32,.35); }
.gbPill { display: flex; align-items: flex-end; gap: 4px; padding: 7px 10px; border-radius: 20px; background: rgba(255,253,248,.96); border: 1px solid #E0D6C3; box-shadow: 0 8px 24px rgba(42,36,32,.18); }
.gbPill .gbI { width: 42px; height: 42px; justify-content: center; border-radius: 12px; background: #F7F2E8; transition: transform .14s ease, background .14s; transform-origin: 50% 100%; }
.gbPill .gbI:hover { transform: scale(1.32) translateY(-4px); background: #fff; z-index: 2; } .gbPill .gbI:hover + .gbI, .gbPill .gbI:has(+ .gbI:hover) { transform: scale(1.12) translateY(-2px); }
.gbPill .gbI.on::after { content: ''; position: absolute; bottom: -6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gbAcc); }
.gbSep { width: 1px; align-self: stretch; background: #E0D6C3; margin: 2px 4px; }
#gbar.gb-bottom.gbPhone { left: 0; right: 0; bottom: 0; }
.gbBot { display: flex; height: calc(64px + var(--safe-b, 0px)); padding-bottom: var(--safe-b, 0px); background: #FFFDF8; border-top: 1px solid #E0D6C3; box-shadow: 0 -2px 10px rgba(42,36,32,.06); }
.gbBot .gbI { flex: 1; flex-direction: column; justify-content: center; gap: 3px; font-size: 11px; color: #5E554B; } .gbBot .gbI.on { color: var(--gbAcc); }
.gbBot .gbI svg { width: 23px; height: 23px; } .gbBot .gbN { top: 6px; right: calc(50% - 22px); }
/* 5 · the where-am-I bar */
#gbar.gb-switcher { top: 0; left: 0; right: 0; height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 64px 0 10px; background: #FFFDF8; border-bottom: 1px solid #E0D6C3; }
.gbHere { display: flex; align-items: baseline; gap: 6px; border: 0; background: #F7F2E8; border-radius: 10px; padding: 6px 12px; color: var(--ink); cursor: pointer; font: 600 13px var(--sans); white-space: nowrap; }
.gbHere small { color: #5E554B; font-weight: 500; } .gbHere b { font: 600 15px var(--serif); }
.gbGrow { flex: 1; } .gbChips { display: flex; gap: 6px; min-width: 0; overflow: hidden; }
.gbChips .gbI { border: 1px solid #E0D6C3; border-radius: 14px; padding: 4px 10px; background: #FFFDF8; } .gbChips .gbI svg { width: 16px; height: 16px; }
.gbIc { border: 0; background: none; color: #5E554B; cursor: pointer; padding: 6px; }
#gbar.gb-switcher.gbPhone .gbChips { display: none; }
/* the rolling bar */
#gbar.gb-roll { left: 0; right: 0; bottom: 0; background: #F7F2E8; border-top: 1px solid #E0D6C3; }
.gbRoll { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 40% calc(8px + var(--safe-b, 0px)); height: 84px; box-sizing: border-box; align-items: flex-end; scrollbar-width: none; } .gbRoll::-webkit-scrollbar { display: none; }
.gbR { --s: 1; position: relative; flex: none; scroll-snap-align: center; width: 58px; height: 58px; border-radius: 18px; border: 1px solid #E0D6C3; background: #FFFDF8; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 600 9.5px var(--sans); transform: scale(var(--s)); transform-origin: 50% 100%; transition: transform .08s linear; box-shadow: 0 4px 12px rgba(42,36,32,.12); cursor: pointer; }
.gbR svg { width: 24px; height: 24px; } .gbR.mid { background: var(--gbAcc); color: #fff; border-color: var(--gbAcc); } .gbR.here:not(.mid) { box-shadow: 0 0 0 2px var(--gbAcc); }
/* the pop-ups */
.gbPop { position: fixed; z-index: 9200; font-family: var(--sans); color: var(--ink); }
.gbAllPop { background: #FFFDF8; border: 1px solid #E0D6C3; border-radius: 16px; box-shadow: 0 14px 34px rgba(42,36,32,.22); padding: 8px; max-height: min(70vh, 640px); overflow-y: auto; }
.gbPh { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 6px 8px 8px; font: 600 15px var(--serif); } .gbPh small { flex-basis: 100%; font: 12.5px var(--sans); color: #5E554B; }
.gbList { display: flex; flex-direction: column; }
.gbRow { display: flex; align-items: center; gap: 6px; border-radius: 10px; } .gbRow.on { background: #F1EADB; }
.gbGo { position: relative; flex: 1; display: flex; align-items: center; gap: 12px; border: 0; background: none; color: var(--ink); font: 14.5px var(--sans); padding: 10px; cursor: pointer; text-align: left; border-radius: 10px; min-height: 44px; } .gbGo:hover { background: #F7F2E8; }
.gbGo .gbN, .gbCh .gbN, .gbEvery .gbN, .gbHit .gbN { position: static; margin-left: auto; box-shadow: none; }
.gbPin { border: 0; background: none; color: #5E554B; font: 600 12px var(--sans); cursor: pointer; padding: 6px 8px; white-space: nowrap; } .gbPin.on { color: var(--gbAcc); }
.gbFoot { padding: 8px 10px 4px; border-top: 1px solid #E0D6C3; margin-top: 6px; }
.gbDrawer { inset: 0; background: rgba(42,36,32,0); transition: background .2s; } .gbDrawer.in { background: rgba(42,36,32,.34); }
.gbDrIn { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: #FFFDF8; padding: calc(14px + var(--safe-t, 0px)) 10px 14px; overflow-y: auto; translate: -100% 0; transition: translate .22s ease; box-sizing: border-box; }
.gbDrawer.in .gbDrIn { translate: 0 0; }
.gbBrand { font: 700 13px var(--sans); letter-spacing: .14em; color: #D9822B; flex: 1; }
.gbX { margin-left: auto; border: 0; background: none; font: 600 16px var(--sans); color: #5E554B; cursor: pointer; padding: 4px 8px; }
.gbSwitch { inset: 0; background: rgba(42,36,32,.34); display: flex; align-items: flex-start; justify-content: center; padding: calc(var(--gbT, 0px) + 18px) 16px 16px; opacity: 0; transition: opacity .18s; } .gbSwitch.in { opacity: 1; }
.gbSwIn { width: min(940px, 100%); background: #FFFDF8; border-radius: 20px; box-shadow: 0 20px 50px rgba(42,36,32,.3); padding: 14px 16px 16px; max-height: calc(100vh - 60px); overflow-y: auto; box-sizing: border-box; }
.gbSwIn .gbPh small { flex-basis: auto; flex: 1; }
.gbCards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.gbCard { border: 1px solid #E0D6C3; border-radius: 14px; background: #fff; padding: 0; overflow: hidden; cursor: pointer; text-align: left; color: var(--ink); font-family: var(--sans); }
.gbCard.on { border-color: var(--gbAcc); box-shadow: 0 0 0 2px var(--gbAcc); } .gbCard:hover { border-color: var(--gbAcc); }
.gbCh { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 10px; font-size: 13.5px; border-bottom: 1px solid #E0D6C3; } .gbCh svg { width: 17px; height: 17px; }
.gbArt { display: block; } .gbArt svg { width: 100%; height: auto; display: block; stroke: none; }
.gbEvery { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.gbEvery button { position: relative; display: flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink); font: 13px var(--sans); padding: 6px 8px; border-radius: 10px; cursor: pointer; } .gbEvery button:hover { background: #F7F2E8; } .gbEvery svg { width: 16px; height: 16px; }
/* 4 · Cami's fan */
.gbFan { position: fixed; inset: 0; z-index: 9200; font-family: var(--sans); }
.gbFanBack { position: absolute; inset: 0; border: 0; background: rgba(42,36,32,0); transition: background .2s; cursor: default; } .gbFan.in .gbFanBack { background: rgba(42,36,32,.28); }
.gbFb { position: absolute; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; border: 0; background: #FFFDF8; color: var(--ink); box-shadow: 0 6px 18px rgba(42,36,32,.25); display: grid; place-items: center; cursor: pointer; transform: translate(0, 0) scale(.3); opacity: 0; transition: transform .26s cubic-bezier(.2,1.4,.4,1), opacity .2s; }
.gbFan.in .gbFb { transform: translate(var(--x), var(--y)) scale(1); opacity: 1; }
.gbFb span { position: absolute; top: calc(100% + 3px); left: 50%; translate: -50% 0; white-space: nowrap; font: 600 11px var(--sans); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.gbFb .gbN { top: -2px; right: -2px; } .gbFb svg { width: 23px; height: 23px; }
.gbTalk { background: var(--gbAcc); color: #fff; }
.gbFanGo { position: absolute; translate: -50% -50%; border: 0; border-radius: 14px; background: #FFFDF8; color: var(--ink); font: 600 13.5px var(--sans); padding: 10px 16px; box-shadow: 0 6px 18px rgba(42,36,32,.25); cursor: pointer; opacity: 0; transition: opacity .3s .15s; } .gbFan.in .gbFanGo { opacity: 1; }
kbd { font: 600 10.5px var(--sans); border: 1px solid #E0D6C3; border-radius: 6px; padding: 1px 5px; color: #5E554B; background: #F7F2E8; }
/* Go to… (Ctrl K) */
.gbGoBox { position: fixed; inset: 0; z-index: 9300; background: rgba(42,36,32,.3); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; font-family: var(--sans); }
.gbGoIn { width: min(560px, 100%); background: #FFFDF8; border-radius: 18px; box-shadow: 0 24px 60px rgba(42,36,32,.35); overflow: hidden; }
.gbGoQ { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #E0D6C3; color: #2F5D50; }
.gbGoQ input { flex: 1; border: 0; outline: 0; background: none; font: 17px var(--sans); color: var(--ink); min-width: 0; }
#gbHits { max-height: 56vh; overflow-y: auto; padding: 6px; }
.gbPh2 { font: 700 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #5E554B; padding: 8px 10px 4px; }
.gbHit { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: none; color: var(--ink); font: 14.5px var(--sans); padding: 9px 10px; border-radius: 10px; cursor: pointer; text-align: left; }
.gbHit.sel, .gbHit:hover { background: #F1EADB; } .gbAsk { color: #2F5D50; font-weight: 600; }
/* the picker (Settings and the first-time card) */
.gbPick { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin: 4px 0 8px; }
.gbPk { display: flex; align-items: center; gap: 12px; border: 1px solid #E0D6C3; border-radius: 14px; background: #FFFDF8; padding: 10px 12px; cursor: pointer; text-align: left; color: var(--ink); font-family: var(--sans); }
.gbPk.on, .gbPk:hover { border-color: #2F5D50; } .gbPk.on { box-shadow: 0 0 0 1px #2F5D50; }
.gbPk svg { width: 60px; height: 40px; flex: none; } .gbPk b { display: block; font-size: 14px; font-weight: 600; } .gbPk small { display: block; font-size: 12px; color: #5E554B; line-height: 1.35; margin-top: 2px; }
.gbPk em { font-style: normal; font-size: 11px; color: #fff; background: #2F5D50; border-radius: 8px; padding: 1px 7px; margin-left: 4px; }
.gbFirst { position: fixed; inset: 0; z-index: 9150; background: rgba(42,36,32,.36); display: flex; align-items: center; justify-content: center; padding: 16px; font-family: var(--sans); }
.gbFirstIn { width: min(720px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg, #F7F2E8); border-radius: 20px; padding: 20px; box-shadow: 0 24px 60px rgba(42,36,32,.35); box-sizing: border-box; color: var(--ink); }
.gbFirstIn > b { font: 600 22px var(--serif); } .gbFirstIn > p { color: #5E554B; margin: 6px 0 12px; font-size: 14px; line-height: 1.45; }
.gbFirstFt { display: flex; justify-content: flex-end; }
@media (max-width: 760px) { .gbPick { grid-template-columns: 1fr; } }

/* Material Order, the takeoff engine (takeoff.js) */
#toBox { position: fixed; inset: 0; z-index: 9000; background: var(--bg); color: var(--ink); display: flex; flex-direction: column; font-family: var(--sans); --accent: #2F5D50; }
#toBox svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.toHdr { display: flex; align-items: center; gap: 10px 22px; padding: 12px 22px; background: var(--bg2); border-bottom: 1px solid var(--line); flex: none; flex-wrap: wrap; }
.toBrand { display: flex; flex-direction: column; } .toBrand small { font: 700 10px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); } .toBrand b { font: 600 22px var(--serif); }
.toTabs { display: flex; gap: 16px; overflow-x: auto; } .toTabs button { border: 0; background: none; font: 600 14px var(--sans); color: var(--ink2); padding: 6px 0; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; } .toTabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.toGrow { flex: 1; } .toBack { border: 0; background: none; color: var(--accent); font: 600 14px var(--sans); text-decoration: underline; cursor: pointer; }
.toMain { flex: 1; min-height: 0; overflow: auto; }
.toPage { max-width: 1100px; margin: 0 auto; padding: 26px 24px 40px; display: flex; flex-direction: column; gap: 16px; }
.toPage h2, .toOrdHd h2 { margin: 0; font: 600 26px var(--serif); } .toLead { margin: -6px 0 0; color: var(--ink2); max-width: 66ch; line-height: 1.5; }
.toStart { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.toWay { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: var(--surface, #FFFDF8); padding: 18px; cursor: pointer; color: var(--ink); font-family: var(--sans); }
.toWay.on, .toWay:hover { border-color: var(--accent); } .toWay.on { box-shadow: 0 0 0 2px var(--accent); }
.toIc svg { width: 30px; height: 30px; color: var(--accent); } .toWay b { font: 600 18px var(--serif); } .toWay small { color: var(--ink2); font-size: 13.5px; line-height: 1.45; flex: 1; }
.toWay em { font-style: normal; background: var(--accent); color: #fff; border-radius: 12px; padding: 9px 14px; font: 600 14px var(--sans); }
.toRecent { display: flex; flex-direction: column; background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-radius: 16px; padding: 8px 14px; }
.toLbl { display: block; font: 700 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); padding: 6px 0; }
.toRec { display: flex; align-items: center; gap: 14px; border: 0; border-top: 1px solid var(--line); background: none; padding: 11px 0; text-align: left; color: var(--ink); font: 14px var(--sans); cursor: pointer; flex-wrap: wrap; } .toRec:first-of-type { border-top: 0; }
.toRec b, .toRecGo b { font-weight: 600; min-width: 200px; } .toRec span, .toRecGo span { color: var(--ink2); flex: 1; }
.toRecGo { display: flex; gap: 14px; flex: 1; border: 0; background: none; text-align: left; color: var(--ink); font: 14px var(--sans); cursor: pointer; padding: 0; flex-wrap: wrap; }
.toSt { font-style: normal; font: 600 11.5px var(--sans); border-radius: 10px; padding: 2px 9px; } .toSt.sent { background: #E1ECF7; color: #2F6DB5; } .toSt.draft { background: #FBF0D9; color: #8a6100; }
.toRunGrid, .toOrdGrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; padding: 18px 22px 30px; max-width: 1400px; margin: 0 auto; }
.toLeft { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.toPadWrap { background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.toPadBar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink2); flex-wrap: wrap; }
.toSm { padding: 7px 12px !important; font-size: 13px !important; border-radius: 10px !important; }
.toPad { display: block; width: 100%; height: auto; aspect-ratio: 800 / 440; background-color: #FBF8F1; background-image: linear-gradient(#efe7d6 1px, transparent 1px), linear-gradient(90deg, #efe7d6 1px, transparent 1px); background-size: 20px 20px; cursor: crosshair; touch-action: none; }
.toRun { fill: none; stroke: #C0392B; stroke-width: 3; stroke-dasharray: 10 6; stroke-linejoin: round; } .toRunH { fill: none; stroke: rgba(192,57,43,.16); stroke-width: 12; stroke-linejoin: round; }
.toPt { fill: #2F5D50; stroke: #fff; stroke-width: 2.5; cursor: grab; }
.toMh rect { fill: #FFFDF8; stroke: #2A2420; stroke-width: 2; } .toMh text { font: 700 12px var(--sans); fill: #2A2420; text-anchor: middle; stroke: none; }
.toLegT { font: 600 13px var(--sans); fill: #2F5D50; stroke: #FBF8F1; stroke-width: 4; paint-order: stroke; } .toTurnT { font: 700 13px var(--sans); fill: #9a5a00; stroke: #FBF8F1; stroke-width: 4; paint-order: stroke; }
.toHint { margin: 0; padding: 8px 14px; font-size: 13px; color: var(--ink2); } .toPanel .toHint, .toPage .toHint { padding: 0; }
.toPanel { background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; align-self: start; position: sticky; top: 0; }
.toF { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; } .toF > span:first-child { color: var(--ink2); }
.toF input, .toF select { font: 600 14px var(--sans); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff; min-width: 0; max-width: 170px; text-align: right; }
.toU { display: inline-flex; align-items: center; gap: 6px; } .toU input { width: 64px; text-align: right; font: 600 14px var(--sans); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.toForm { display: grid; grid-template-columns: repeat(var(--c), 22px); gap: 3px; justify-content: center; padding: 6px 0; } .toForm i { width: 22px; height: 22px; background: #d9d2c4; border-radius: 3px; position: relative; } .toForm i::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #FBF8F1; }
.toSee { margin: 0; padding-left: 18px; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; } .toBendRow input { width: 64px; font: 600 13.5px var(--sans); border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; }
.toAsk { display: flex; gap: 10px; background: #FBF0D9; border: 1px solid #ecd8ad; border-radius: 14px; padding: 12px; font-size: 13.5px; line-height: 1.45; }
.toCami { width: 26px; height: 26px; flex: none; border-radius: 50%; background: radial-gradient(circle, #cfe8dc, #9fd3bf 55%, transparent 72%); }
.toOpts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .toOpts button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 7px 12px; font: 600 13px var(--sans); color: var(--ink); cursor: pointer; text-align: left; } .toOpts button:hover { border-color: var(--accent); }
.toGo { width: 100%; padding: 12px !important; border-radius: 12px !important; font-size: 15px !important; }
.toRead { background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px; }
.toRead ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } .toRead li { display: flex; gap: 10px; font-size: 13.5px; } .toRead li i { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--sans); font-style: normal; color: #fff; background: var(--accent); } .toRead li.q i { background: #C77D1E; } .toRead small { display: block; color: var(--ink2); }
.toOrdHd { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .toOrdHd small { color: var(--ink2); }
.toHeadGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.toHeadGrid label { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--ink2); }
.toHeadGrid input { border: 0; background: none; font: 600 14px var(--sans); color: var(--ink); padding: 2px 0; min-width: 0; width: 100%; box-sizing: border-box; outline: 0; } .toHeadGrid input:focus { box-shadow: 0 1px 0 var(--accent); }
.toJob { margin: 0; background: var(--bg2); border-left: 4px solid var(--accent); padding: 8px 12px; border-radius: 0 10px 10px 0; font-size: 14px; }
.toTable { background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.toTr { display: grid; grid-template-columns: 110px minmax(0, 1fr) 86px 48px; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); } .toTr:first-child { border-top: 0; }
.toTh { font: 700 10.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); background: var(--bg2); padding: 8px 14px; }
.toTr b { display: block; font-size: 14.5px; } .toTr small { display: block; color: var(--ink2); font-size: 12px; line-height: 1.4; } .toNo { font: 600 13px Menlo, Consolas, monospace; }
.toTr.need { background: #FDF6E7; } .toQm { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #C77D1E; color: #fff; font: 700 12px var(--sans); font-style: normal; }
.toQty { width: 80px; font: 700 17px var(--serif); text-align: right; border: 1px solid transparent; border-radius: 8px; padding: 4px 6px; background: none; color: var(--ink); } .toQty:hover, .toQty:focus { border-color: var(--line); background: #fff; }
.toDraw { background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; } .toDraw svg { width: 100%; height: auto; display: block; stroke: none; }
.toPre { margin: 0; font: 11px/1.5 Menlo, Consolas, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; white-space: pre; tab-size: 2; max-height: 200px; overflow: auto; }
.toBtn { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 11px; font: 600 14px var(--sans); color: var(--accent); cursor: pointer; } .toBtn:hover { border-color: var(--accent); } .toBtn:disabled { opacity: .5; cursor: default; }
.toStyles { display: flex; flex-direction: column; gap: 4px; } .toSty { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 10px; cursor: pointer; color: var(--ink); font-family: var(--sans); } .toSty b { display: block; font-size: 13px; } .toSty small { display: block; font-size: 11.5px; color: var(--ink2); } .toSty.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.toChk { display: flex; align-items: center; gap: 8px; font-size: 13.5px; } .toChk input { accent-color: var(--accent); width: 18px; height: 18px; }
.toRules { display: flex; flex-direction: column; background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-radius: 16px; padding: 4px 16px; }
.toRule { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); flex-wrap: wrap; } .toRule:first-child { border-top: 0; } .toRule > div { flex: 1; min-width: 220px; } .toRule b { display: block; font-size: 14.5px; } .toRule small { display: block; font-size: 12.5px; color: var(--ink2); }
.toRule.ok b::after { content: ' ✓'; color: var(--accent); } .toOk { display: flex; align-items: center; gap: 6px; font: 600 13px var(--sans); } .toOk input { accent-color: var(--accent); width: 18px; height: 18px; }
.toDrop { display: block; border: 2px dashed var(--line); border-radius: 18px; background: var(--surface, #FFFDF8); padding: 34px; text-align: center; cursor: pointer; } .toDrop input { position: absolute; opacity: 0; width: 1px; height: 1px; } .toDrop span { display: flex; flex-direction: column; align-items: center; gap: 6px; } .toDrop svg { width: 40px; height: 40px; color: var(--accent); } .toDrop b { font: 600 18px var(--serif); } .toDrop small { color: var(--ink2); }
.toPrintFrame { position: fixed; width: 1px; height: 1px; left: -10px; top: -10px; border: 0; opacity: 0; }
html.gb-t #toBox { top: var(--gbT) !important; } html.gb-l #toBox { left: var(--gbL) !important; } html.gb-b #toBox { bottom: var(--gbB) !important; }
@media (max-width: 900px) { .toRunGrid, .toOrdGrid { grid-template-columns: minmax(0, 1fr); padding: 12px; } .toPanel { position: static; } .toStart { grid-template-columns: 1fr; } .toHeadGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .toHdr { padding: 10px 12px; } .toBack { display: none; } .toPage { padding: 16px 14px 30px; } .toTr { grid-template-columns: 74px minmax(0, 1fr) 62px 36px; gap: 8px; padding: 9px 10px; } .toQty { width: 60px; font-size: 15px; } .toNo { font-size: 11px; } }

/* ---- selection lines (sketch.js selPath): a moving outline round whatever is picked. One thing: .skSelHost[data-sel]; a group or a bunch:
   .skSelHost[data-selg]. Each outline is the line (.skSelAnt) plus a 0-100 copy (.skSelCo) for the styles where something runs round it. */
.skSelHost .skSelAnt, .skSelHost .skSelBox, .skSelHost .skSelBr, .skSelHost .skSelLink { pointer-events: none; fill: none; stroke: #2F5D50; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.skSelHost .skSelCo { stroke-opacity: 0; }
.skSelHost .skSelAnt.ln { stroke-width: 2.4; stroke-opacity: .85; }
.skSelHost .skSelBr, .skSelHost .skSelLink, .skSelHost .skSelBox.skSelCo { display: none; }
.skSelHost .skSelAnt.flash:not(.skSelCo) { stroke-width: 3; animation: skSelFlash 1.3s ease-in-out 2, skMarch .5s linear infinite !important; stroke-dasharray: 7 5; }
@keyframes skSelFlash { 50% { filter: drop-shadow(0 0 5px rgba(47,93,80,.9)); stroke-width: 4; } }
@keyframes skMarch { to { stroke-dashoffset: -12; } }
@keyframes skMarchBack { to { stroke-dashoffset: 12; } }
@keyframes skRun { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes skBreath { 50% { stroke-width: 3.4; stroke-opacity: .55; filter: drop-shadow(0 0 4px rgba(47,93,80,.7)); } }
@keyframes skBeat { 0%, 40%, 100% { stroke-width: 1.6; } 10% { stroke-width: 4; } 22% { stroke-width: 2; } 30% { stroke-width: 3.4; } }
@keyframes skNeon { 0%, 100% { stroke-opacity: 1; } 92% { stroke-opacity: 1; } 94% { stroke-opacity: .35; } 96% { stroke-opacity: 1; } }
@keyframes skDrawIn { from { stroke-dashoffset: 100; stroke-opacity: 1; } 70% { stroke-dashoffset: 0; stroke-opacity: 1; } to { stroke-dashoffset: 0; stroke-opacity: 0; } }
@keyframes skRipple { 0% { stroke-width: 1.5; stroke-opacity: .9; } 100% { stroke-width: 10; stroke-opacity: 0; } }
/* one thing */
.skSelHost[data-sel="ants"] .skSelAnt:not(.grp):not(.skSelCo) { stroke-dasharray: 7 5; animation: skMarch .6s linear infinite; }
.skSelHost[data-sel="glow"] .skSelAnt:not(.grp):not(.skSelCo) { stroke-width: 2; animation: skBreath 1.6s ease-in-out infinite; }
.skSelHost[data-sel="comet"] .skSelAnt:not(.grp):not(.skSelCo) { stroke-dasharray: 3 4; stroke-opacity: .45; }
.skSelHost[data-sel="comet"] .skSelCo:not(.grp) { stroke-opacity: 1; stroke-width: 4; stroke: #3FA77F; stroke-dasharray: 14 86; animation: skRun 1.4s linear infinite; filter: drop-shadow(0 0 3px rgba(63,167,127,.9)); }
.skSelHost[data-sel="chase"] .skSelAnt:not(.grp):not(.skSelCo) { stroke: #FFFDF8; stroke-width: 3.2; }
.skSelHost[data-sel="chase"] .skSelCo:not(.grp) { stroke-opacity: 1; stroke: #2A2420; stroke-width: 2; stroke-dasharray: 2 2; animation: skRun 6s linear infinite; }
.skSelHost[data-sel="beat"] .skSelAnt:not(.grp):not(.skSelCo) { stroke: #3FA77F; stroke-dasharray: 10 4; animation: skBeat 1.15s ease-out infinite, skMarch 1.2s linear infinite; }
.skSelHost[data-sel="neon"] .skSelAnt:not(.grp):not(.skSelCo) { stroke: #22C58B; stroke-width: 2.2; filter: drop-shadow(0 0 3px #22C58B) drop-shadow(0 0 7px rgba(34,197,139,.6)); animation: skNeon 3.2s linear infinite; }
.skSelHost[data-sel="draw"] .skSelAnt:not(.grp):not(.skSelCo) { stroke-dasharray: 7 5; stroke-opacity: .5; animation: skMarch 2.4s linear infinite; }
.skSelHost[data-sel="draw"] .skSelCo:not(.grp) { stroke-width: 2.6; stroke-dasharray: 100 100; animation: skDrawIn 1.8s ease-out infinite; }
/* a group, or a bunch picked together */
.skSelHost[data-selg] .skSelBox:not(.skSelCo) { stroke-opacity: .55; stroke-dasharray: 2 5; }
.skSelHost[data-selg="amber"] .skSelAnt.grp:not(.skSelCo) { stroke: #C77D1E; stroke-dasharray: 7 5; animation: skMarchBack .7s linear infinite; }
.skSelHost[data-selg="amber"] .skSelBox:not(.skSelCo) { stroke: #C77D1E; }
.skSelHost[data-selg="brackets"] .skSelAnt.grp:not(.skSelCo) { stroke-dasharray: 3 4; stroke-opacity: .6; }
.skSelHost[data-selg="brackets"] .skSelBox:not(.skSelCo) { display: none; }
.skSelHost[data-selg="brackets"] .skSelBr { display: inline; stroke-width: 3; stroke: #2A2420; animation: skBreath 1.4s ease-in-out infinite; }
.skSelHost[data-selg="orbit"] .skSelAnt.grp:not(.skSelCo) { stroke-dasharray: 5 4; stroke-opacity: .8; }
.skSelHost[data-selg="orbit"] .skSelBox.skSelCo { display: inline; stroke-opacity: 1; stroke: #C77D1E; stroke-width: 4; stroke-dasharray: 10 90; animation: skRun 2.2s linear infinite; filter: drop-shadow(0 0 3px rgba(199,125,30,.9)); }
.skSelHost[data-selg="ripple"] .skSelAnt.grp:not(.skSelCo) { stroke-dasharray: 7 5; animation: skMarch .9s linear infinite; }
.skSelHost[data-selg="ripple"] .skSelBox:not(.skSelCo) { stroke-dasharray: none; stroke-opacity: .9; animation: skRipple 1.6s ease-out infinite; }
.skSelHost[data-selg="linked"] .skSelAnt.grp:not(.skSelCo) { stroke-dasharray: 7 5; animation: skMarch .6s linear infinite; }
.skSelHost[data-selg="linked"] .skSelBox:not(.skSelCo) { display: none; }
.skSelHost[data-selg="linked"] .skSelLink { display: inline; stroke: #C77D1E; stroke-width: 1.4; stroke-dasharray: 1 6; animation: skMarch .8s linear infinite; }
/* the group falls back on the one-thing style when he picked "Same as one thing" (data-selg then carries that style's name) */
.skSelHost[data-selg="ants"] .skSelAnt.grp:not(.skSelCo), .skSelHost[data-selg="draw"] .skSelAnt.grp:not(.skSelCo) { stroke-dasharray: 7 5; animation: skMarch .6s linear infinite; }
.skSelHost[data-selg="glow"] .skSelAnt.grp:not(.skSelCo) { stroke-width: 2; animation: skBreath 1.6s ease-in-out infinite; }
.skSelHost[data-selg="comet"] .skSelCo.grp, .skSelHost[data-selg="draw"] .skSelCo.grp { stroke-opacity: 1; stroke-width: 4; stroke: #3FA77F; stroke-dasharray: 14 86; animation: skRun 1.4s linear infinite; }
.skSelHost[data-selg="chase"] .skSelAnt.grp:not(.skSelCo) { stroke: #FFFDF8; stroke-width: 3.2; } .skSelHost[data-selg="chase"] .skSelCo.grp { stroke-opacity: 1; stroke: #2A2420; stroke-width: 2; stroke-dasharray: 2 2; animation: skRun 6s linear infinite; }
.skSelHost[data-selg="beat"] .skSelAnt.grp:not(.skSelCo) { stroke: #3FA77F; stroke-dasharray: 10 4; animation: skBeat 1.15s ease-out infinite; }
.skSelHost[data-selg="neon"] .skSelAnt.grp:not(.skSelCo) { stroke: #22C58B; filter: drop-shadow(0 0 3px #22C58B); }
@media (prefers-reduced-motion: reduce) { .skSelHost .skSelAnt, .skSelHost .skSelCo, .skSelHost .skSelBox, .skSelHost .skSelBr, .skSelHost .skSelLink { animation: none !important; } }
/* the picker in Settings → Sketch tools: a little live sample of each */
.stSel { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.stSel button { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface, #FFFDF8); padding: 8px; cursor: pointer; font: 600 12.5px var(--sans); color: var(--ink); }
.stSel button.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.stSel svg { width: 120px; height: 64px; display: block; }

/* the Map / Satellite / Offline pill steps off the sketch (Bryan, Nov 22 2026): the backdrop is under View ▾ on the toolbar, ⋯ More on a phone, and the Backdrop tool in the old toolbox */
body.sketching #layerSwitch { display: none !important; }

/* Mixed debris → the Dump Fee, paid on T&E (v120) */
.skTE { display: inline-block; font: 700 10px/1 var(--sans); letter-spacing: .04em; color: #8a5a12; background: #F6E7C8; border: 1px solid #E5CC97; border-radius: 4px; padding: 2px 4px; vertical-align: 1px; }
.skDump { margin-top: 6px; padding: 8px 10px; background: var(--sand, #F1EADB); border: 1px solid var(--line, #E0D6C3); border-radius: 10px; }
.skDump .skLink { display: block; margin: 4px 0; text-align: left; }
.skDumpNew { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.skDumpNew input { flex: 1 1 150px; min-width: 0; }
.skDumpOn { margin-top: 6px; }
/* the card cog's Top of this card rows sort (v120) */
.skHdRows { display: flex; flex-direction: column; gap: 2px; }
.skHdRow { align-items: center; gap: 6px; border-radius: 8px; transition: background .15s, box-shadow .15s; touch-action: pan-y; }
.skHdRow > span:nth-child(2) { flex: 0 0 auto; min-width: 96px; }
.skHdRow select { flex: 1 1 auto; min-width: 0; }
.skHdGrip { cursor: grab; color: var(--muted, #5E554B); font-size: 16px; padding: 4px 2px; touch-action: none; user-select: none; }
.skHdMv { display: inline-flex; gap: 2px; }
.skHdMv .skLink { padding: 2px 4px; font-size: 11px; }
.skHdRows.sorting .skHdRow:not(.lift) { opacity: .75; }
.skHdRow.lift { background: #FFFDF8; box-shadow: 0 6px 18px rgba(42,36,32,.18); cursor: grabbing; }

/* What's new, presented by Cami (news.js, v120) */
#nw { position: fixed; inset: 0; z-index: 2147482000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(42,36,32,.42); font-family: var(--sans); }
#nw[hidden] { display: none; }
#nw .nwCard { position: relative; display: flex; gap: 18px; align-items: flex-start; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #FFFDF8; color: var(--ink, #2A2420); border: 1px solid #E0D6C3; border-radius: 20px; padding: 24px 24px 18px; box-shadow: 0 24px 60px rgba(42,36,32,.35); animation: nwIn .35s cubic-bezier(.2,.9,.3,1.2); }
@keyframes nwIn { from { transform: translateY(18px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
#nw .nwCami { flex: 0 0 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle, rgba(143,203,166,.35), rgba(241,234,219,.6) 60%, transparent 72%); }
#nw .nwMain { flex: 1 1 auto; min-width: 0; }
#nw .nwKick { margin: 0 0 4px; font: 700 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #2F5D50; }
#nw h2 { margin: 0 0 10px; font: 600 24px/1.2 var(--serif); color: var(--ink, #2A2420); }
#nw .nwSays { margin: 0 0 16px; padding: 12px 14px; background: #F7F2E8; border: 1px solid #E0D6C3; border-radius: 14px 14px 14px 4px; font-size: 15px; line-height: 1.5; min-height: 4.5em; }
#nw .nwWho { font-weight: 700; color: #2F5D50; }
#nw .nwBtns { display: flex; flex-wrap: wrap; gap: 10px; }
#nw .nwDemo { border: 0; border-radius: 14px; padding: 12px 20px; background: #2F5D50; color: #fff; font: 600 15px var(--sans); cursor: pointer; }
#nw .nwNext { border: 1px solid #E0D6C3; border-radius: 14px; padding: 12px 18px; background: #F1EADB; color: var(--ink, #2A2420); font: 600 15px var(--sans); cursor: pointer; }
#nw .nwFoot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; font-size: 12.5px; color: #5E554B; }
#nw .nwDots { display: inline-flex; gap: 5px; }
#nw .nwDots i { width: 7px; height: 7px; border-radius: 50%; background: #E0D6C3; }
#nw .nwDots i.on { background: #2F5D50; }
#nw .nwFoot .skLink:last-child { margin-left: auto; }
@media (max-width: 520px) { #nw .nwCard { flex-direction: column; align-items: center; text-align: left; padding: 18px 16px 14px; } #nw .nwCami { flex: 0 0 84px; height: 84px; width: 84px; } #nw .nwMain { width: 100%; } #nw .nwBtns > button { flex: 1 1 auto; } }
/* the demo (v132): a spotlight on what she's showing, her coach card right beside it, a ripple where she presses */
#nwSpot { position: fixed; z-index: 2147482300; pointer-events: none; border-radius: 16px; box-shadow: 0 0 0 200vmax rgba(42,36,32,.5), 0 0 0 3px #8FCBA6, 0 0 24px 6px rgba(143,203,166,.55); transition: left .45s cubic-bezier(.4,.1,.2,1), top .45s cubic-bezier(.4,.1,.2,1), width .45s cubic-bezier(.4,.1,.2,1), height .45s cubic-bezier(.4,.1,.2,1), box-shadow .3s; animation: nwGlow 1.8s ease-in-out infinite; }
#nwSpot.none { box-shadow: 0 0 0 200vmax rgba(42,36,32,.28); animation: none; }
@keyframes nwGlow { 50% { box-shadow: 0 0 0 200vmax rgba(42,36,32,.5), 0 0 0 3px #8FCBA6, 0 0 34px 12px rgba(143,203,166,.75); } }
#nwStrip { position: fixed; left: 0; top: 0; z-index: 2147482500; width: min(380px, calc(100vw - 24px)); box-sizing: border-box; padding: 14px 16px 12px; background: #FFFDF8; border: 1px solid #E0D6C3; border-radius: 18px; box-shadow: 0 18px 40px rgba(42,36,32,.32); font: 14px var(--sans); color: var(--ink, #2A2420); transition: left .35s ease, top .35s ease; }
#nwStrip.in { animation: nwSay .3s ease-out; }
#nwStrip .nwCoHd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; }
#nwStrip .nwCoHd b { flex: 1; min-width: 0; font-weight: 600; color: #5E554B; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nwStrip .nwStep { flex: none; font-weight: 700; color: #2F5D50; }
#nwStrip .nwLive { color: #c0392b; font-weight: 700; font-size: 11.5px; animation: nwBlink 1.4s infinite; }
#nwStrip.paused .nwLive { animation: none; color: #5E554B; }
@keyframes nwBlink { 50% { opacity: .35; } }
#nwSay { margin: 0; font: 600 17px/1.45 var(--sans); color: var(--ink, #2A2420); min-height: 2.9em; }
#nwSay p { margin: 0; } #nwSay[hidden] { display: none; }
#nwStrip .nwBar { height: 4px; border-radius: 2px; background: #F1EADB; margin: 10px 0 10px; overflow: hidden; } #nwStrip .nwBar i { display: block; height: 100%; width: 0; background: #2F5D50; border-radius: 2px; }
@keyframes nwBar { from { width: 0; } to { width: 100%; } }
#nwStrip .nwCoBtns { display: flex; gap: 8px; flex-wrap: wrap; }
#nwStrip button { flex: none; border: 1px solid #E0D6C3; border-radius: 12px; padding: 8px 13px; background: #F1EADB; color: var(--ink, #2A2420); font: 600 13.5px var(--sans); cursor: pointer; }
#nwStrip #nwNextStep { background: #2F5D50; border-color: #2F5D50; color: #fff; } #nwStrip #nwStop { margin-left: auto; background: none; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; padding-right: 4px; }
#nwStrip .nwArrow { position: absolute; width: 16px; height: 16px; background: #FFFDF8; border: 1px solid #E0D6C3; transform: rotate(45deg); display: none; }
#nwStrip.at-down .nwArrow { display: block; top: -9px; left: calc(var(--ax, 50%) - 8px); border-right: 0; border-bottom: 0; }
#nwStrip.at-up .nwArrow { display: block; bottom: -9px; left: calc(var(--ax, 50%) - 8px); border-left: 0; border-top: 0; }
#nwStrip.at-left .nwArrow { display: block; left: -9px; top: calc(var(--ay, 50%) - 8px); border-right: 0; border-top: 0; }
#nwStrip.at-right .nwArrow { display: block; right: -9px; top: calc(var(--ay, 50%) - 8px); border-left: 0; border-bottom: 0; }
@keyframes nwSay { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.nwTap { position: fixed; z-index: 2147482700; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 3px solid #2F5D50; pointer-events: none; animation: nwTap .85s ease-out forwards; }
@keyframes nwTap { from { transform: scale(.6); opacity: 1; } to { transform: scale(5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #nwSpot, #nwStrip, .nwTap { animation: none !important; transition: none !important; } }
.nwRing { outline: 3px solid #2F5D50 !important; outline-offset: 3px; border-radius: 8px; transition: outline-color .2s; }

/* the settings cog on every bar, and a small one top right when no bar carries it (gbar.js cogPaint, v121) */
#gbar .gbCogB { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; color: #5E554B; }
#gbar .gbCogB:hover { background: #F1EADB; color: #2F5D50; }
#gbar.gb-tabs .gbCogB { margin-left: 4px; margin-right: 46px; }
#gbar.gb-dock:not(.gbPhone) .gbCogB { margin: 4px auto 10px; } /* in the column, under the fold button */
#gbar.gb-dock.gbPhone .gbCogB { position: fixed; left: 10px; top: calc(62px + var(--safe-t, 0px)); width: 44px; height: 44px; background: #FFFDF8; border: 1px solid #E0D6C3; border-radius: 14px; box-shadow: 0 4px 12px rgba(42,36,32,.14); }
#gbCog { position: fixed; z-index: 9102; bottom: calc(14px + var(--safe-b, 0px)); left: calc(12px + var(--safe-l, 0px)); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid #E0D6C3; border-radius: 12px; background: rgba(255,253,248,.95); color: #2F5D50; box-shadow: 0 4px 12px rgba(42,36,32,.14); cursor: pointer; }
#gbCog[hidden] { display: none; }
#gbCog svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#gbCog:hover { background: #F1EADB; }
#of .ofBar [data-go="settings"] { position: sticky; right: 0; background: #FFFDF8; box-shadow: -12px 0 12px -8px rgba(42,36,32,.22); z-index: 1; } /* (the cog stays at the end; what slides under it is hidden, not overlapped) */

/* the nameplate his way (mine.js plateBody, v121) */
.bkPlate.pl-center { text-align: center; }
.bkPlate.pl-S b { font-size: calc(22px * var(--hs, 1) * var(--ps, 1)); }
.bkPlate.pl-L b { font-size: calc(33px * var(--hs, 1) * var(--ps, 1)); line-height: calc(38px * var(--ps, 1)); }
.mnPlatePrev { position: relative; padding: 16px 18px; border-radius: 14px; background: #d4621c linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.12)); margin: 6px 0 12px; overflow: hidden; }
.mnPlatePrev .mnPlate { position: static; min-height: 0; font-family: var(--hand); color: var(--pen, #2B3A67); }
.mnPlRows { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.mnPlRow { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mnPlRow .skChk { flex: 0 0 auto; min-width: 120px; }
.mnPlV { flex: 1 1 auto; min-width: 0; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mnPlMv { flex: none; display: inline-flex; gap: 2px; }
.mnPlMv .skLink[disabled] { opacity: .3; }
#mnPlFont { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff; font: 13px var(--sans); max-width: 100%; }
/* My profile, edited right there (settings.js, v121) */
#st .stGrid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 4px 14px; }
#st .stGrid2 .field select, #st .stGrid2 .field input { width: 100%; box-sizing: border-box; }
#st .stExtra { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 4px; }
#st .stXRow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; }
#st .stXRow input { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font: 14px var(--sans); background: #fff; color: var(--ink); }
#st .stXRow input[data-xl] { font-weight: 600; }
@media (max-width: 480px) { #st .stXRow { grid-template-columns: 1fr auto; } #st .stXRow input[data-xv] { grid-column: 1 / -1; grid-row: 2; } }

/* a report's attachments and its zip (attach.js, v122) */
.atBox { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.atSize { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); margin-bottom: 6px; }
.atSize.over { border-color: #d9a39a; background: #fbf1ee; }
.atTop { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.atTop b { font: 600 18px var(--serif); color: var(--ink); }
.atSize.over .atTop span { color: #b0483c; font-weight: 600; } .atSize.ok .atTop span { color: #2F5D50; font-weight: 600; }
.atBar { height: 10px; border-radius: 6px; background: var(--sand); overflow: hidden; margin: 8px 0; }
.atBar i { display: block; height: 100%; background: #2F5D50; border-radius: 6px; transition: width .3s; }
.atSize.over .atBar i { background: #c0392b; }
.atHint { margin: 4px 0; font-size: 13.5px; color: var(--ink); } .atHint small { color: var(--ink2); }
.atHint select, .atHint input { border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; font: 13px var(--sans); background: #fff; }
.atHint input { width: 70px; }
.atFit { margin: 6px 0; font-size: 13px; color: #2F5D50; }
.atBtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.atMsg { margin: 6px 0 0; font-size: 12.5px; color: var(--ink2); min-height: 1em; }
.atOut { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.atOut span { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.atRow { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; cursor: pointer; }
.atRow.off .atN, .atRow.off .atS { opacity: .45; text-decoration: line-through; }
.atK { flex: none; font: 700 10px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #5E554B; background: var(--sand); border-radius: 5px; padding: 2px 5px; }
.atK-report { background: #e5f0ea; color: #2F5D50; }
.atN { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atS { flex: none; color: var(--ink2); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.atPh summary { cursor: pointer; padding: 6px 2px; font-size: 13.5px; font-weight: 600; }
.atAdd { display: flex; align-items: center; gap: 6px; margin-top: 6px; cursor: pointer; font-size: 13.5px; } .atAdd small { color: var(--ink2); }
.atHint select { width: auto !important; max-width: 100%; display: inline-block !important; margin-left: 4px; }
.atHint input { display: inline-block !important; }
.atPh summary .skLink { display: inline !important; margin-left: 8px; font-weight: 500; }

/* the organization map (org.js, v123): a tree of roles, the picked one's card beside it */
.ow-org .orgTabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 10px; }
.ow-org .orgTabs button:not(.skLink) { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 7px 12px; font: 600 13px var(--sans); color: var(--ink); cursor: pointer; }
.ow-org .orgTabs button.on { background: #2F5D50; border-color: #2F5D50; color: #fff; }
.ow-org .orgDev { display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 8px; border: 1px dashed #c9a347; border-radius: 12px; background: #fbf5e3; font-size: 13px; }
.ow-org .orgDev small { color: var(--ink2); }
.ow-org .orgErr { color: #b0483c; font-size: 13px; }
.ow-org .orgHead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .ow-org .orgHead h3 { margin: 0; font: 600 22px var(--serif); } .ow-org .orgHead span { color: var(--ink2); font-size: 13px; }
.ow-org .orgWrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; margin-top: 10px; }
@media (max-width: 760px) { .ow-org .orgWrap { grid-template-columns: minmax(0, 1fr); } }
.ow-org .orgTree { overflow-x: auto; padding: 8px 4px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ow-org .orgTree ul { display: flex; justify-content: center; padding: 18px 0 0; margin: 0; position: relative; list-style: none; }
.ow-org .orgTree > ul { padding-top: 6px; }
.ow-org .orgTree li { display: flex; flex-direction: column; align-items: center; position: relative; padding: 18px 6px 0; }
.ow-org .orgTree li::before, .ow-org .orgTree li::after { content: ''; position: absolute; top: 0; height: 18px; border-top: 1.5px solid #bfb39c; width: 50%; }
.ow-org .orgTree li::before { right: 50%; } .ow-org .orgTree li::after { left: 50%; border-left: 1.5px solid #bfb39c; }
.ow-org .orgTree li:first-child::before, .ow-org .orgTree li:last-child::after { border-top: 0; }
.ow-org .orgTree li:only-child::before { display: none; } .ow-org .orgTree li:only-child { padding-top: 18px; }
.ow-org .orgTree li:last-child::before { border-right: 1.5px solid #bfb39c; border-radius: 0 6px 0 0; } .ow-org .orgTree li:first-child::after { border-radius: 6px 0 0 0; }
.ow-org .orgTree > ul > li::before, .ow-org .orgTree > ul > li::after { display: none; } .ow-org .orgTree > ul > li { padding-top: 0; }
.ow-org .orgTree ul ul::before { content: ''; position: absolute; top: 0; left: 50%; height: 18px; border-left: 1.5px solid #bfb39c; }
.ow-org .orgCard { position: relative; min-width: 128px; max-width: 170px; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 9px 12px; text-align: center; cursor: pointer; font: 13px var(--sans); color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.ow-org .orgCard b { font-weight: 600; font-size: 13px; line-height: 1.25; }
.ow-org .orgCard span { color: var(--ink2); font-size: 12.5px; } .ow-org .orgCard em { color: #a5998a; }
.ow-org .orgCard.me { border-color: #2F5D50; background: #eef5f1; }
.ow-org .orgCard.on { outline: 3px solid #2F5D50; outline-offset: 2px; }
.ow-org .orgYou { position: absolute; top: -9px; right: 8px; background: #2F5D50; color: #fff; font: 700 10px var(--sans); font-style: normal; border-radius: 6px; padding: 2px 6px; }
.ow-org .orgSide { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 8px; }
.ow-org .orgSide h3 { margin: 0; font: 600 18px var(--serif); } .ow-org .orgWho, .ow-org .orgHint { margin: 0; font-size: 13px; color: var(--ink2); }
.ow-org .orgSide .field input, .ow-org .orgSide .field select, .ow-org .orgNew .field input { width: 100%; box-sizing: border-box; }
.ow-org .orgBtns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ow-org .orgAdd { display: flex; gap: 8px; align-items: flex-end; } .ow-org .orgAdd .field { flex: 1; margin: 0; }
.ow-org .orgNew { max-width: 640px; } .ow-org .orgNew h3 { font: 600 20px var(--serif); margin: 4px 0; }
.ow-org .orgTpl { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.ow-org .orgTplC { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: pointer; background: #fff; font-size: 13.5px; }
.ow-org .orgTplC input { margin: 0 0 4px; } .ow-org .orgTplC small { color: var(--ink2); }
.ow-org .orgTplC:has(input:checked) { border-color: #2F5D50; background: #eef5f1; }

/* photos dropped on the calendar build the days (dayphotos.js, v124) */
.dpUp { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.dpPick { display: inline-flex; align-items: center; cursor: pointer; }
.dpLoc { display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin: 8px 0; }
.dpRow { display: flex; align-items: center; gap: 10px; }
/* the big photo: one at a time, ‹ › or a swipe to go through the set (Bryan, Nov 22 2026) */
.dpPh { position: relative; width: 100%; height: clamp(170px, 34vw, 260px); border-radius: 10px; overflow: hidden; background: var(--sand); touch-action: pan-y; }
.dpPh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dpPv, .dpNx { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,253,248,.92); color: var(--ink); font: 600 22px/1 var(--sans); cursor: pointer; box-shadow: 0 1px 4px rgba(42,36,32,.25); }
.dpPv { left: 8px; } .dpNx { right: 8px; }
.dpCt { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 10px; background: rgba(42,36,32,.72); color: #fff; font: 600 12px var(--sans); }
.dpLoc.yes { border-color: #2F5D50; background: #eef5f1; }
.dpNo { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; flex: none; background: var(--sand); }
.dpTx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.dpTx b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dpTx span, .dpTx small { color: var(--ink2); }
.dpYN { display: flex; flex: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dpYN button { border: 0; background: #fff; padding: 9px 14px; font: 600 13px var(--sans); color: var(--ink); cursor: pointer; }
.dpYN button.on { background: #2F5D50; color: #fff; }
.dpLoose { font-size: 13px; margin: 8px 0; } .dpLoose select { border: 1px solid var(--line); border-radius: 8px; padding: 5px 6px; font: 13px var(--sans); max-width: 100%; }
.dpBtns { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.dpDone { color: #2F5D50; font-size: 13.5px; margin: 4px 0; }
.dpMade { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 4px 0; } .dpMade span { color: var(--ink2); flex: 1; }

/* plopping Day Off / Vacation / Training... onto the calendar (office.js wirePlops, Nov 22 2026) */
#of .calPlops { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 2px; }
#of .calPlops .lb { font: 700 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); margin-right: 2px; }
.plChip { border: 1.5px solid #E0D6C3; background: #FFFDF8; border-radius: 14px; padding: 6px 12px; font: 600 13px var(--sans); color: #2A2420; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.plChip::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; vertical-align: 0; background: var(--plc, #5E554B); }
.plChip.on { border-color: #2F5D50; box-shadow: 0 0 0 2px rgba(47,93,80,.25); background: #F1EADB; }
.plChip.plGhost { position: fixed; z-index: 99999; pointer-events: none; transform: translate(-50%, -130%) rotate(-3deg); box-shadow: 0 8px 20px rgba(42,36,32,.22); cursor: grabbing; }
.p-dayoff { --plc: #8A6A45; } .p-vacation { --plc: #2F5D50; } .p-training { --plc: #3c5a80; } .p-sick { --plc: #a14a3a; } .p-excusedtime { --plc: #7a6a9a; }
#of .calPlops .plArm .skLink { display: inline; margin-left: 6px; min-height: 0; padding: 0; }
#of .calPlops .plArm, #of .calPlops .plSay { flex-basis: 100%; font: 500 12.5px var(--sans); color: var(--ink2); }
#of .calPlops .plSay { color: #2F5D50; }
#of .calGrid.armed { touch-action: none; } #of .calGrid.armed .cd:not(.blank) { cursor: copy; }
#of .cd.plOver { box-shadow: inset 0 0 0 2px #2F5D50; background: rgba(47,93,80,.14); }
#of .cd .pt, .ofDayP .pt { display: inline-block; margin-top: 3px; padding: 1px 6px; border-radius: 6px; font: 700 10.5px/1.5 var(--sans); color: #fff; background: var(--plc, #5E554B); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 820px) { #of .cd .pt { font-size: 8.5px; padding: 0 3px; } }

/* the DAR screen (work.js darHtml, Nov 22 2026): a small month and the day's DARs on the side, the DAR itself the main thing */
:is(#of, .owHost) .dw { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; align-items: start; max-width: 1280px; }
:is(#of, .owHost) .dwSide { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; }
:is(#of, .owHost) .dwCal, :is(#of, .owHost) .dwDayBox { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 10px 12px; }
:is(#of, .owHost) .dwCalHd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
:is(#of, .owHost) .dwCalHd b { font: 600 16px var(--serif); }
:is(#of, .owHost) .dwCalHd button { border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 30px; height: 30px; font-size: 16px; cursor: pointer; color: var(--ink); }
:is(#of, .owHost) .dwCalG { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
:is(#of, .owHost) .dwCalG em { font: 700 10px var(--sans); color: var(--ink2); text-align: center; font-style: normal; padding: 2px 0; }
:is(#of, .owHost) .dwD { position: relative; aspect-ratio: 1; border: 0; border-radius: 9px; background: transparent; font: 600 12.5px var(--sans); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
:is(#of, .owHost) .dwD:hover { background: #F1EADB; }
:is(#of, .owHost) .dwD.w { background: rgba(47,93,80,.10); }
:is(#of, .owHost) .dwD.now { box-shadow: inset 0 0 0 1.5px #2F5D50; }
:is(#of, .owHost) .dwD.due::after { content: ''; position: absolute; top: 3px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: #c0392b; }
:is(#of, .owHost) .dwD.on { background: #2F5D50; color: #fff; }
:is(#of, .owHost) .dwD i { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 14px; height: 3px; border-radius: 2px; background: var(--plc, #2F5D50); }
:is(#of, .owHost) .dwD.on i { background: #fff; }
:is(#of, .owHost) .dwKey { margin: 6px 0 0; font: 500 11px var(--sans); color: var(--ink2); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
:is(#of, .owHost) .dwKey span { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } :is(#of, .owHost) .dwKey .w { background: rgba(47,93,80,.18); } :is(#of, .owHost) .dwKey .due { background: #c0392b; border-radius: 50%; width: 7px; height: 7px; margin-left: 6px; }
:is(#of, .owHost) .dwKey .skLink { margin-left: auto; min-height: 0; padding: 0; font-size: 12px; }
:is(#of, .owHost) .dwDayBox h3 { margin: 0 0 2px; font: 600 17px var(--serif); }
:is(#of, .owHost) .dwList { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
:is(#of, .owHost) .dwRow { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 0 8px; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 10px; cursor: pointer; color: var(--ink); font: 13px var(--sans); }
:is(#of, .owHost) .dwRow b { font-weight: 700; } :is(#of, .owHost) .dwRow span { color: var(--ink); font-weight: 600; } :is(#of, .owHost) .dwRow small { grid-column: 1 / 3; color: var(--ink2); font-size: 12px; }
:is(#of, .owHost) .dwRow i { grid-row: 1 / 3; grid-column: 3; align-self: center; font-style: normal; }
:is(#of, .owHost) .dwRow.on { border-color: #2F5D50; box-shadow: inset 4px 0 0 #2F5D50; background: #F6FAF7; }
:is(#of, .owHost) .dwSideActs { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
:is(#of, .owHost) .dwSideActs .skLink { align-self: flex-start; }
:is(#of, .owHost) .dwMain { min-width: 0; }
:is(#of, .owHost) .dwEmpty { border: 1.5px dashed var(--line); border-radius: 18px; padding: 28px; background: var(--surface); }
:is(#of, .owHost) .dwEmpty h2 { margin: 0 0 6px; font: 600 22px var(--serif); }
:is(#of, .owHost) .dwSheet { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 14px 16px 6px; margin: 0 0 12px; overflow: visible; }
:is(#of, .owHost) .dwHd { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
:is(#of, .owHost) .dwHd h2 { margin: 0; font: 600 26px var(--serif); }
:is(#of, .owHost) .dwNo { display: flex; align-items: center; gap: 6px; font: 700 12px var(--sans); color: var(--ink2); letter-spacing: .04em; }
:is(#of, .owHost) .dwNo input { width: 190px; max-width: 46vw; font: 600 16px var(--sans); padding: 7px 10px; }
:is(#of, .owHost) .dwHdActs { margin-left: auto; display: flex; align-items: center; gap: 12px; }
:is(#of, .owHost) .dwSheet .owTot { margin: 8px 0 12px; }
:is(#of, .owHost) .dwSheet .owForm { border-width: 1px; border-color: var(--line); }
:is(#of, .owHost) .dwSheet .owForm.new { border: 1.5px solid var(--accent); }
:is(#of, .owHost) .dwSheet .owForm h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
:is(#of, .owHost) .dwSheet .owForm h3 small { font: 500 13px var(--sans); color: var(--ink2); }
:is(#of, .owHost) .owForm > .wide { grid-column: 1 / -1; }
:is(#of, .owHost) .owSaved { margin-left: auto; font: 600 12px var(--sans); color: var(--accent); opacity: 0; }
:is(#of, .owHost) .owSaved.flash { animation: owSaved 2.4s ease forwards; }
@keyframes owSaved { 0% { opacity: 0; } 12% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 860px) {
  :is(#of, .owHost) .dw { grid-template-columns: minmax(0, 1fr); }
  :is(#of, .owHost) .dwSide { position: static; display: grid; grid-template-columns: minmax(0, 1fr); }
  :is(#of, .owHost) .dwCal { padding: 8px 10px; } :is(#of, .owHost) .dwD { aspect-ratio: auto; height: 32px; }
  :is(#of, .owHost) .dwHdActs { margin-left: 0; width: 100%; }
}
:is(#of, .owHost) .dwNo span { white-space: nowrap; }
@media (min-width: 1100px) {
  :is(#of, .owHost) .dwSheet .owForm { grid-template-columns: repeat(5, minmax(0, 1fr)); } /* code · W.O. · borough · project · contractor / location · start · end */
  :is(#of, .owHost) .dwSheet .owForm > .owF.wide { grid-column: span 3; }
  :is(#of, .owHost) .dwSheet .owForm #owMilesP { grid-column: 1 / span 3; } :is(#of, .owHost) .dwSheet .owForm #owExpP { grid-column: 4 / span 2; }
  :is(#of, .owHost) .dwSheet .owForm .owF:has(#owCm), :is(#of, .owHost) .dwSheet .owForm .owNewCode { grid-column: 1 / -1; }
}
@media (max-width: 860px) { :is(#of, .owHost) .dwD { height: 28px; font-size: 12px; } :is(#of, .owHost) .dwCalG em { padding: 0; } }

:is(#of, .owHost) .dwDayHd { display: flex; align-items: center; gap: 6px; } :is(#of, .owHost) .dwDayHd h3 { flex: 1; text-align: center; margin: 0; }
:is(#of, .owHost) .dwDayHd .owNav { width: 30px; height: 30px; flex: none; }
/* merging photo sets into one job site (dayphotos.js mergeSets, Nov 22 2026) */
.dpChk { flex: none; display: flex; align-items: center; padding: 4px; cursor: pointer; } .dpChk input { width: 18px; height: 18px; accent-color: #2F5D50; margin: 0; }
.dpLoc.picked { box-shadow: 0 0 0 2px #c9a347; }
.dpMg { display: block; color: var(--accent) !important; } .dpMg .skLink { display: inline; min-height: 0; padding: 0; margin-left: 6px; font-size: 12px; }
.dpTip { margin: 4px 0 0; font-size: 12px; }
.dpMerge { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px; margin: 6px 0; border: 1.5px dashed #c9a347; border-radius: 14px; background: #fbf5e3; font-size: 13px; }
.dpMerge select { max-width: 220px; } .dpMerge span { color: var(--ink2); }
.dpErr { flex-basis: 100%; margin: 0; color: #b0483c; font-size: 12.5px; }
.dpZip { margin: 4px 0 8px; padding: 8px 10px; border-radius: 12px; background: #fbf5e3; border: 1px solid #e6d6a8; font: 500 12.5px/1.4 var(--sans); color: var(--ink); }
/* a day with no DAR is red (work.js missing, Nov 22 2026) */
:is(#of, .owHost) .dwD.miss:not(.on) { background: #f7dcd6; color: #9b2c1f; }
:is(#of, .owHost) .dwKey .miss { background: #f7dcd6; border: 1px solid #c0392b; }
#of .cd.miss:not(.pick) { background: #fbe6e1; } #of .cd.miss .n { color: #9b2c1f; }
#of .cd.miss::after { content: 'NO DAR'; position: absolute; left: 6px; bottom: 3px; font: 800 8px var(--sans); letter-spacing: .06em; color: #b0483c; }
#of .calKey .km { background: #fbe6e1; border: 1px solid #c0392b; }
:is(#of, .owHost) .dwSideActs { padding: 0 2px; }

/* ===== the DAR widget: the Timeline Ribbon Bryan picked (darw.js, Nov 22 2026) ===== */
.drW { display: flex; flex-direction: column; gap: 12px; max-width: 1320px; }
.drW .card { background: var(--surface, #FFFDF8); border: 1px solid var(--line, #E0D6C3); border-radius: 16px; }
.drW .mut { color: var(--ink2, #5E554B); } .drW .red { color: #c0392b; } .drW .grn { color: #2F5D50; } .drW .amb { color: #b06a12; }
.drHd { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.drDate { display: flex; align-items: center; gap: 8px; } .drDate h2 { margin: 0; font: 600 26px var(--serif); }
.drSum { font-size: 14px; color: var(--ink2); } .drGap { flex: 1; }
.drTabs { display: flex; gap: 2px; background: #F1EADB; border-radius: 12px; padding: 3px; align-items: center; flex-wrap: wrap; }
.drTabs button { position: relative; border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font: 600 13px var(--sans); color: var(--ink2); cursor: pointer; }
.drTabs button.on { background: #FFFDF8; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.drDot { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; border-radius: 9px; background: #c0392b; color: #fff; font: 700 10px var(--sans); display: grid; place-items: center; padding: 0 4px; box-sizing: border-box; border: 2px solid #F7F2E8; }
.drCog { display: grid; place-items: center; width: 34px; height: 34px; padding: 0 !important; }
.drWkStrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.drWkD { border: 1px solid var(--line); background: #FFFDF8; border-radius: 12px; padding: 6px 8px; text-align: left; cursor: pointer; display: flex; flex-direction: column; font: 13px var(--sans); color: var(--ink); }
.drWkD span { font-size: 12px; color: var(--ink2); } .drWkD.on { border-color: #2F5D50; box-shadow: inset 0 0 0 1.5px #2F5D50; } .drWkD.now b { text-decoration: underline; text-underline-offset: 3px; }
.drWkD.miss { background: #fbe6e1; border-color: #e5b3a8; } .drWkD.miss span { color: #9b2c1f; font-weight: 700; } .drWkD.done { background: rgba(47,93,80,.08); } .drWkD.open span { color: #c0392b; }
.drMiss { margin: 0; padding: 8px 12px; border-radius: 12px; background: #fbe6e1; color: #9b2c1f; font: 600 13px var(--sans); }
.drSetCard { padding: 14px 18px; } .drSetup h3 { margin: 0 0 4px; font: 600 19px var(--serif); }
.drSetRow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); } .drSetRow > span:first-child { width: 190px; font-size: 14px; }
.drSeg { display: flex; flex-wrap: wrap; gap: 2px; background: #F1EADB; border-radius: 12px; padding: 3px; }
.drSeg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font: 600 13px var(--sans); color: var(--ink2); cursor: pointer; } .drSeg button.on { background: #FFFDF8; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.drOwn { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.drRib { padding: 12px 16px 10px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.drTray { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .drTray .lb { font: 600 12px var(--sans); color: var(--ink2); }
.drTile { display: flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; font: 600 12px var(--sans); border: 1px solid var(--line); background: #FFFDF8; color: var(--ink); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.drTile i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.drGhost { position: fixed; z-index: 99999; pointer-events: none; transform: translate(-50%, -120%) rotate(-3deg); box-shadow: 0 10px 22px rgba(0,0,0,.25); }
.drTrackWrap { overflow-x: auto; padding-bottom: 2px; }
.drTrack { position: relative; height: 112px; min-width: 760px; border-radius: 10px; transition: background .15s; }
.drTrack.over { background: rgba(47,93,80,.07); outline: 2px dashed #2F5D50; outline-offset: 2px; }
.drTick { position: absolute; top: 0; bottom: 0; border-left: 1px solid #ece4d3; } .drTick em { position: absolute; top: 0; left: 0; transform: translateX(-50%); font: 500 11px var(--sans); color: var(--ink2); font-style: normal; }
.drChip { position: absolute; top: 26px; height: 56px; border-radius: 10px; padding: 5px 9px; box-sizing: border-box; font-size: 12px; line-height: 1.25; overflow: hidden; box-shadow: 0 2px 0 rgba(0,0,0,.12); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; display: flex; flex-direction: column; }
.drChip b { white-space: nowrap; } .drChip small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .92; } .drChip .drT { font-size: 10.5px; opacity: .8; }
.drChip.on { outline: 3px solid #2A2420; outline-offset: 1px; } .drChip.drag { opacity: .88; transform: rotate(-1.5deg); box-shadow: 0 10px 20px rgba(0,0,0,.25); outline: 2px dashed currentColor; outline-offset: 3px; z-index: 3; cursor: grabbing; }
.drEdge { position: absolute; top: 0; bottom: 0; width: 9px; cursor: ew-resize; } .drEdge.l { left: 0; } .drEdge.r { right: 0; }
.drChip:hover .drEdge { background: rgba(255,255,255,.25); }
.drX { border: 0; background: rgba(0,0,0,.12); color: inherit; border-radius: 6px; font: 700 10px var(--sans); padding: 1px 5px; cursor: pointer; margin-left: 2px; }
.drLive { position: absolute; top: 86px; font: 700 11px var(--sans); color: #2F5D50; white-space: nowrap; }
.drEmpty { position: absolute; left: 0; right: 0; top: 44px; text-align: center; margin: 0; color: var(--ink2); font-size: 13px; }
.drOt { position: absolute; top: 22px; bottom: 6px; border-left: 2px dashed #c0392b; background: repeating-linear-gradient(135deg, rgba(192,57,43,.12) 0 6px, transparent 6px 12px); pointer-events: none; }
.drOtLab { position: absolute; top: 90px; padding-left: 4px; font: 700 11px var(--sans); color: #c0392b; white-space: nowrap; }
.drTune { border: 1px solid var(--line); background: #FFFDF8; border-radius: 14px; box-shadow: 0 12px 28px rgba(0,0,0,.14); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.drTuneHd { display: flex; align-items: center; justify-content: space-between; } .drTuneX { border: 0; background: none; font-size: 16px; cursor: pointer; color: var(--ink2); }
.drTuneG { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; } .drTuneG label { display: flex; flex-direction: column; gap: 3px; font: 600 11.5px var(--sans); color: var(--ink2); min-width: 0; } .drTuneG .w2 { grid-column: span 2; }
.drTm { display: flex; align-items: center; gap: 4px; } .drTm input { flex: 1; min-width: 0; } .drTm button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 7px; font: 600 12px var(--sans); cursor: pointer; color: var(--ink); }
.drTuneFt { display: flex; gap: 16px; flex-wrap: wrap; }
.drCards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-items: start; }
.drCard { padding: 12px; display: flex; flex-direction: column; gap: 7px; border-top: 6px solid var(--c, #2F5D50) !important; }
.drCard.on { box-shadow: 0 0 0 2px var(--c, #2F5D50); }
.drCHd { display: flex; align-items: center; gap: 8px; } .drCHd b { font-size: 15px; white-space: nowrap; } .drCHd .owStat { margin-left: auto; }
.drNo { width: 110px; min-width: 0; font: 600 13px var(--sans); padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; }
.drMeta { font-size: 12px; } .drLoc { font-size: 13.5px; }
.drMap { height: 150px; border-radius: 10px; overflow: hidden; background: #ebe8df; position: relative; } .drMap.tall { height: 190px; }
.drPin { display: block; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.drCar { display: block; width: 10px; height: 10px; border-radius: 50%; background: #c4622d; border: 2px solid #fff; }
.drRoute { padding: 12px; display: flex; flex-direction: column; gap: 6px; background: #F1EADB !important; } .drRoute b { font-size: 13px; } .drRoute span, .drRoute small { font-size: 12px; }
.drRc { display: flex; gap: 10px; align-items: center; background: #F7F2E8; border-radius: 10px; padding: 7px 8px; font-size: 12px; }
.drRcI { width: 26px; height: 32px; background: #fff; border: 1px solid var(--line); border-radius: 4px; flex: none; background-image: repeating-linear-gradient(#fff 0 5px, #e5ddcc 5px 6px); }
.drCFt { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; margin-top: 2px; } .drCAct { margin-left: auto; display: flex; gap: 12px; }
.drCAct .skLink, .drTuneFt .skLink { min-height: 0; padding: 4px 0; }
.drOtNote { padding: 8px 12px; border-radius: 10px; background: #fbe7e4; font-size: 13px; } .drOtNote b { color: #c0392b; }
.drBelow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.drEd { border: 1.5px solid #2F5D50; border-radius: 18px; background: #F7F2E8; padding: 10px 12px; }
.drEdHd { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 6px; } .drEdHd b { font: 600 17px var(--serif); }
.drEd .dwSheet { margin: 0; }
.drRcBox { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; padding: 14px; }
.drRcPic { display: flex; flex-direction: column; align-items: center; gap: 8px; background: #ebe5d8; border-radius: 12px; padding: 12px; } .drRcPic img { max-width: 100%; max-height: 300px; transform: rotate(-2deg); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.drRcRead { display: flex; flex-direction: column; gap: 8px; } .drRcRead label { display: flex; flex-direction: column; gap: 3px; font: 600 12px var(--sans); color: var(--ink2); }
.drStats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.drStat { padding: 12px 14px; display: flex; flex-direction: column; } .drStat span { font: 600 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); } .drStat b { font: 600 26px var(--serif); }
.drStat.red { background: #fbe7e4 !important; } .drStat.red b { color: #c0392b; }
.drWeek { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.drWD { padding: 10px; display: flex; flex-direction: column; gap: 4px; min-height: 210px; text-align: left; cursor: pointer; font: 13px var(--sans); color: var(--ink); }
.drWD em { font: 700 11px var(--sans); font-style: normal; } .drWD small { font-size: 11px; } .drWD.idle { background: #F1EADB !important; } .drWD.miss { background: #fbe6e1 !important; }
.drBar { display: block; margin-top: auto; background: #2F5D50; border-radius: 6px 6px 0 0; } .drFoot { margin: 0; font-size: 12px; }
.drYear { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.drMo { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer; font: 13px var(--sans); color: var(--ink); } .drMo.on { box-shadow: 0 0 0 2px #2F5D50; }
.drMoG { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; } .drMoG i { aspect-ratio: 1; border-radius: 3px; background: #efe9dd; }
.drMoG i.done, .drKeyI.done { background: #2F5D50; } .drMoG i.prog, .drKeyI.prog { background: #8fb4a6; } .drMoG i.open, .drMoG i.miss, .drKeyI.open { background: #c0392b; }
.drKeyI { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; }
.drMoBig { padding: 14px; } .drMoBig h3 { margin: 0 0 8px; font: 600 20px var(--serif); }
.drMoBigG { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; } .drMoBigG em { font: 700 11px var(--sans); color: var(--ink2); font-style: normal; text-align: center; }
.drMoBigG button { border: 1px solid var(--line); background: #fff; border-radius: 8px; min-height: 52px; padding: 4px 6px; text-align: left; cursor: pointer; display: flex; flex-direction: column; font: 12px var(--sans); color: var(--ink); }
.drMoBigG button.miss, .drMoBigG button.open { background: #fbe6e1; color: #9b2c1f; } .drMoBigG button.done { background: rgba(47,93,80,.12); } .drMoBigG button.now { box-shadow: inset 0 0 0 1.5px #2F5D50; }
.drJobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.drJob { overflow: hidden; display: flex; flex-direction: column; } .drJobHd { padding: 12px 16px; display: flex; align-items: center; gap: 12px; } .drJobHd div { flex: 1; display: flex; flex-direction: column; } .drJobHd div b { font: 600 20px var(--serif); } .drJobHd small { font-size: 12px; } .drJobHd > span { font-size: 13px; text-align: right; }
.drJobWo { font: 700 12px var(--sans); color: var(--ink2); padding: 10px 16px 2px; }
.drJobRow { display: flex; gap: 10px; align-items: center; padding: 8px 16px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font: 13px var(--sans); color: var(--ink); cursor: pointer; } .drJobRow b:first-child { width: 80px; } .drJobRow span { flex: 1; }
.drNone { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.drTblBar { padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; } .drTblBar label { display: flex; align-items: center; gap: 6px; }
.drTblWrap { overflow-x: auto; } .drTbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.drTbl th { text-align: left; border-bottom: 1px solid var(--line); background: #F1EADB; } .drTbl th button { border: 0; background: none; font: 700 12px var(--sans); color: var(--ink); padding: 8px 10px; cursor: pointer; white-space: nowrap; }
.drTbl td { padding: 7px 10px; border-bottom: 1px solid #efe8da; white-space: nowrap; } .drTbl tbody tr { cursor: pointer; } .drTbl tbody tr:hover { background: #fbf7ee; }
@media (max-width: 900px) {
  .drStats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .drWeek { grid-template-columns: repeat(2, minmax(0, 1fr)); } .drYear { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drTuneG { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .drRcBox { grid-template-columns: minmax(0, 1fr); } .drSetRow > span:first-child { width: 100%; }
  .drWkStrip { gap: 3px; } .drWkD { padding: 5px 4px; font-size: 11.5px; } .drWkD span { font-size: 10.5px; } .drDate h2 { font-size: 21px; }
}

#of .ofBody.ow-dar > .drW { max-width: 1320px; } /* the ribbon wants the room */
.drCHd .owStat { white-space: nowrap; font-size: 10px; padding: 2px 5px; } .drNo { width: 96px; }
.drStat small { font: 600 12px var(--sans); color: #c0392b; }
.drMapFb { position: absolute; inset: 0; display: block; }
.drMapFb svg { width: 100%; height: 100%; display: block; }
.drMoG i.b { background: transparent; }
@media (min-width: 1100px) { .drYear { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
#of .drTblBar input, #of .drTblBar select { width: auto; }

/* hold a photo set and drop it on another from the same day to merge (Bryan, Nov 22 2026) */
.dpLoc[data-loc] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: transform .18s, opacity .18s, box-shadow .18s; }
.dpLoc.dpLift { opacity: .35; transform: scale(.97); }
.dpLoc.dpNot { opacity: .4; filter: grayscale(.6); }
.dpLoc.dpCan { border: 2px dashed #2F5D50; box-shadow: 0 0 0 4px rgba(47,93,80,.12); animation: dpWig .5s ease-in-out infinite alternate; position: relative; }
.dpLoc.dpCan::after { content: 'Drop here to merge'; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 10px; background: #2F5D50; color: #fff; font: 600 12px var(--sans); pointer-events: none; }
.dpLoc.dpCan.dpOver { animation: none; transform: scale(1.02); border-style: solid; box-shadow: 0 0 0 6px rgba(47,93,80,.25); }
.dpLoc.dpCan.dpOver::after { content: 'Let go to merge'; }
@keyframes dpWig { from { transform: rotate(-.6deg); } to { transform: rotate(.6deg); } }
.dpGhost { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; background: var(--surface, #FFFDF8); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 14px 32px rgba(42,36,32,.3); display: flex; flex-direction: column; gap: 3px; font: 13px var(--sans); color: var(--ink); }
.dpGhost img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; }
.dpGhost b { font-size: 14px; } .dpGhost span { color: var(--ink2); font-size: 12px; }
.dpJust { animation: dpPop .5s ease-out; }
@keyframes dpPop { 0% { transform: scale(.94); box-shadow: 0 0 0 0 rgba(47,93,80,.5); } 60% { transform: scale(1.02); } 100% { transform: none; box-shadow: 0 0 0 10px rgba(47,93,80,0); } }
.dpAskBg { position: fixed; inset: 0; z-index: 9998; background: rgba(42,36,32,.35); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dpAsk { background: var(--surface, #FFFDF8); border-radius: 18px; padding: 18px; width: min(440px, 100%); box-shadow: 0 18px 40px rgba(42,36,32,.3); color: var(--ink); font: 14px var(--sans); display: flex; flex-direction: column; gap: 12px; }
.dpAsk h5 { margin: 0; font: 600 20px var(--serif); }
.dpAsk p { margin: 0; color: var(--ink2); }
.dpAskTwo { display: flex; align-items: center; gap: 8px; }
.dpAskSet { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.dpAskSet img { width: 100%; height: 90px; object-fit: cover; border-radius: 10px; background: var(--sand); }
.dpAskSet b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dpAskSet span { color: var(--ink2); }
.dpAskPlus { font: 600 22px var(--sans); color: #2F5D50; }
.dpAsk select { margin-left: 6px; font: 14px var(--sans); padding: 6px; border: 1px solid var(--line); border-radius: 10px; max-width: 100%; }
.dpAskBtns { display: flex; align-items: center; gap: 14px; }
@media (prefers-reduced-motion: reduce) { .dpLoc.dpCan, .dpJust { animation: none; } }

/* ---- Flow: photos in, DARs & FARs out (photoflow.js, Bryan, Nov 22 2026; layout A, Day rows, off his Excel drawing) */
#of .ofBody.ow-flow > .pfW { max-width: 1500px; margin: 0 auto; }
.pfW { position: relative; display: flex; flex-direction: column; gap: 14px; padding-bottom: 90px; color: var(--ink); }
.pfW.drag::after { content: 'Let go to bring them in'; position: fixed; inset: 12px; border: 3px dashed #2F5D50; border-radius: 20px; background: rgba(247,242,232,.85); display: flex; align-items: center; justify-content: center; font: 600 22px var(--serif); color: #2F5D50; z-index: 50; pointer-events: none; }
.pfHead { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pfHead h3 { margin: 0; font: 600 30px var(--serif); } .pfHead p { margin: 0; color: var(--ink2); font-size: 14px; }
.pfCtl { display: flex; gap: 10px; flex-wrap: wrap; }
.pfSeg { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #FFFDF8; }
.pfSeg button { border: 0; background: none; min-height: 42px; padding: 0 14px; font: 500 13px var(--sans); color: var(--ink2); cursor: pointer; }
.pfSeg button.on { background: #2F5D50; color: #fff; } .pfSeg .pfWk { color: var(--ink); font-weight: 600; }
.pfDrop { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: #FFFDF8; border: 2px dashed #C9BBA2; border-radius: 18px; padding: 14px 18px; }
.pfAdd { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; } .pfAdd span { font-size: 20px; line-height: 0; }
.pfDropTx { display: flex; flex-direction: column; gap: 2px; font-size: 13px; flex: 1 1 260px; min-width: 0; } .pfDropTx b { font-size: 14px; } .pfDropTx span { color: var(--ink2); }
.pfProg { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.pfProg > div:first-child { display: flex; justify-content: space-between; gap: 10px; } .pfProg b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pfProg span { color: var(--ink2); flex: none; }
.pfBar { height: 8px; border-radius: 4px; background: #F1EADB; overflow: hidden; } .pfBar i { display: block; height: 100%; background: #2F5D50; transition: width .2s; }
.pfSaid { margin: 0; background: #EEF4F0; border: 1px solid #9DB8AC; border-radius: 14px; padding: 10px 14px; font-size: 13.5px; }
.pfWeek { display: flex; flex-direction: column; gap: 12px; }
.pfDay { display: flex; gap: 12px; align-items: stretch; }
.pfDl { width: 132px; flex: none; background: #FFFDF8; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.pfDl b { font-size: 16px; } .pfDl span { font-size: 12px; color: var(--ink2); }
.pfDl small { font-size: 12px; color: var(--ink2); display: flex; align-items: center; gap: 6px; } .pfDl small.red { color: #B5432F; font-weight: 600; } .pfDl small.ok { color: #2F5D50; font-weight: 600; }
.pfDl small i, .pfSt i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.pfTiles { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; flex: 1; min-width: 0; }
.pfEmpty { flex: 1; min-height: 64px; border: 2px dashed var(--line); border-radius: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 18px; color: var(--ink2); font-size: 14px; }
.pfPlop { min-height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #FFFDF8; font: 500 13px var(--sans); color: var(--ink); cursor: pointer; }
.pfTile { width: 290px; flex: none; background: #FFFDF8; border: 1px solid var(--line); border-radius: 16px; padding: 8px; display: flex; flex-direction: column; gap: 8px; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: transform .18s, opacity .18s, box-shadow .18s; }
.pfTile.sel { border: 2px solid #2F5D50; box-shadow: 0 0 0 4px rgba(47,93,80,.12); }
.pfTile.loose { border-style: dashed; border-color: #C9BBA2; }
.pfPh { position: relative; height: 180px; border-radius: 10px; overflow: hidden; background: var(--sand); touch-action: pan-y; }
.pfPh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfPh.away::after { content: 'This photo is on your other device'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: 13px; color: var(--ink2); }
.pfNone { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink2); }
.pfChk { position: absolute; left: 6px; top: 6px; padding: 4px; cursor: pointer; } .pfChk input { width: 22px; height: 22px; margin: 0; accent-color: #2F5D50; }
.pfMore { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,253,248,.94); font: 700 18px/1 var(--sans); color: var(--ink); cursor: pointer; box-shadow: 0 1px 4px rgba(42,36,32,.25); }
.pfNav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,253,248,.94); color: var(--ink); font: 600 22px/1 var(--sans); cursor: pointer; box-shadow: 0 1px 4px rgba(42,36,32,.25); }
.pfPv { left: 8px; } .pfNx { right: 8px; }
.pfCt { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 10px; background: rgba(42,36,32,.74); color: #fff; font: 600 11.5px var(--sans); }
.pfTx { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; min-width: 0; } .pfTx b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pfTx span { font-size: 12px; color: var(--ink2); }
.pfTs { position: relative; height: 38px; margin: 0 12px; touch-action: none; }
.pfTr { position: absolute; left: 0; right: 0; top: 12px; height: 6px; border-radius: 3px; background: #F1EADB; }
.pfIn { position: absolute; top: 12px; height: 6px; border-radius: 3px; background: #2F5D50; }
.pfTk { position: absolute; top: 10px; width: 2px; height: 10px; margin-left: -1px; background: #B5432F; border-radius: 1px; pointer-events: none; }
.pfH { position: absolute; top: 1px; width: 22px; height: 28px; margin-left: -11px; border-radius: 8px; background: #FFFDF8; border: 2px solid #2F5D50; cursor: ew-resize; touch-action: none; padding: 0; }
.pfH::after { content: ''; position: absolute; left: 50%; top: 7px; width: 2px; height: 10px; margin-left: -1px; background: #2F5D50; border-radius: 1px; }
.pfTs.on .pfH { background: #EEF4F0; }
.pfEnd { position: absolute; top: 24px; font: 500 10px var(--sans); color: var(--ink2); white-space: nowrap; pointer-events: none; }
.pfTime { display: flex; align-items: baseline; gap: 6px; padding: 0 6px; font-size: 13px; } .pfTime span { font-size: 11px; font-weight: 600; color: var(--ink2); letter-spacing: .04em; } .pfTime small { margin-left: auto; font-size: 11px; color: var(--ink2); }
.pfFoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 4px; font-size: 12px; }
.pfSt { display: flex; align-items: center; gap: 6px; } .pfSt.red { color: #B5432F; font-weight: 600; } .pfSt.ok { color: #2F5D50; font-weight: 600; }
.pfActs { display: flex; gap: 12px; }
.pfBtns { display: flex; gap: 8px; padding: 0 2px 2px; }
.pfMake { flex: 1; min-height: 42px; padding: 0 12px; border-radius: 12px; border: 0; background: #2F5D50; color: #fff; font: 600 13.5px var(--sans); cursor: pointer; }
.pfBtns { align-items: center; flex-wrap: wrap; } .pfBtns .pfMake, .pfBtns .pfSk { flex: none; white-space: nowrap; } .pfBtns .pfMake { padding: 0 16px; } /* (only as wide as its words, v143) */
.pfQk { flex: 1 0 auto; display: flex; justify-content: flex-end; align-items: center; gap: 12px; min-width: 0; }
.pfQkA { display: inline-flex; align-items: center; gap: 5px; min-height: 42px; padding: 0 2px; border: 0; background: none; color: var(--green, #2F5D50); font: 600 13.5px var(--sans); cursor: pointer; white-space: nowrap; }
.pfQkA:hover { text-decoration: underline; }
.pfNoteBg { position: fixed; inset: 0; z-index: 9000; background: rgba(42,36,32,.35); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pfNoteCard { width: min(460px, 100%); background: #FFFDF8; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 18px 40px rgba(42,36,32,.25); display: flex; flex-direction: column; gap: 10px; }
.pfNoteCard h3 { margin: 0; font: 600 19px var(--serif); color: var(--ink); } .pfNoteCard p { margin: 0; font-size: 13px; color: var(--muted, #5E554B); }
.pfNoteCard textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: 15px var(--sans); background: #fff; resize: vertical; }
.pfNoteBtns { display: flex; gap: 8px; align-items: center; } .pfNoteBtns span { flex: 1; }
.pfSk { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #FFFDF8; color: var(--ink); font: 600 13.5px var(--sans); cursor: pointer; }
.pfSelBar { position: sticky; bottom: 12px; align-self: center; z-index: 5; background: #2A2420; color: #fff; border-radius: 18px; padding: 8px 8px 8px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; box-shadow: 0 16px 36px rgba(42,36,32,.3); font-size: 14px; }
.pfSelGo { min-height: 44px; padding: 0 16px; border-radius: 14px; border: 0; background: #FFFDF8; color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }
.pfSelX { min-height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid #5E554B; background: none; color: #fff; font: 500 14px var(--sans); cursor: pointer; }
.pfSelNote { color: #d9d0c2; }
/* Columns: each day stands up as a column, its job sites down it */
.pfW.cols .pfWeek { flex-direction: row; overflow-x: auto; align-items: flex-start; padding-bottom: 6px; }
.pfW.cols .pfDay { flex-direction: column; width: 290px; flex: none; }
.pfW.cols .pfDl { width: auto; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 4px 10px; }
.pfW.cols .pfTiles { flex-direction: column; overflow: visible; }
.pfW.cols .pfEmpty { flex-direction: column; align-items: stretch; text-align: center; }
/* hold to merge */
.pfTile.pfLift { opacity: .35; transform: scale(.97); }
.pfTile.pfNot, .pfDay .pfTile.pfNot { opacity: .4; filter: grayscale(.6); }
.pfTile.pfCan { position: relative; border: 2px dashed #2F5D50; box-shadow: 0 0 0 4px rgba(47,93,80,.12); animation: dpWig .5s ease-in-out infinite alternate; }
.pfTile.pfCan::after { content: 'Drop here to merge'; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 10px; background: #2F5D50; color: #fff; font: 600 12px var(--sans); pointer-events: none; white-space: nowrap; }
.pfTile.pfCan.pfOver { animation: none; transform: scale(1.02); border-style: solid; box-shadow: 0 0 0 6px rgba(47,93,80,.25); } .pfTile.pfCan.pfOver::after { content: 'Let go to merge'; }
.pfTile.just { animation: dpPop .5s ease-out; }
.pfGhost { position: fixed; left: 0; top: 0; z-index: 9999; width: 220px; pointer-events: none; background: #FFFDF8; border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 14px 32px rgba(42,36,32,.3); display: flex; flex-direction: column; gap: 3px; font: 13px var(--sans); color: var(--ink); }
.pfGhost img { width: 100%; height: 100px; object-fit: cover; border-radius: 10px; } .pfGhost span { color: var(--ink2); font-size: 12px; }
.pfAskBg, .pfBig { position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pfAskBg { background: rgba(42,36,32,.35); }
.pfAsk { background: #FFFDF8; border-radius: 18px; padding: 18px; width: min(440px, 100%); box-shadow: 0 18px 40px rgba(42,36,32,.3); display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.pfAsk h5 { margin: 0; font: 600 20px var(--serif); } .pfAsk p { margin: 0; color: var(--ink2); }
.pfAskTwo { display: flex; align-items: center; gap: 8px; } .pfAskPlus { font: 600 22px var(--sans); color: #2F5D50; }
.pfAskSet { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.pfAskSet img, .pfAskNo { width: 100%; height: 90px; object-fit: cover; border-radius: 10px; background: var(--sand); display: block; }
.pfAskSet b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pfAskSet span { color: var(--ink2); }
.pfAskBtns { display: flex; align-items: center; gap: 14px; }
.pfMenuBg { position: fixed; inset: 0; z-index: 9990; }
.pfMenu { position: fixed; z-index: 9991; width: 250px; max-height: 70vh; overflow-y: auto; background: #FFFDF8; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(42,36,32,.22); padding: 6px; display: flex; flex-direction: column; }
.pfMenu button { border: 0; background: none; text-align: left; min-height: 42px; padding: 0 12px; border-radius: 10px; font: 500 14px var(--sans); color: var(--ink); display: flex; align-items: center; gap: 10px; cursor: pointer; }
.pfMenu button:hover, .pfMenu button.hi { background: #F1EADB; } .pfMenu button.hi { font-weight: 600; }
.pfMenuH { padding: 8px 12px 2px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.pfBig { background: rgba(42,36,32,.88); }
.pfBig img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.pfBigX { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #FFFDF8; font: 600 18px var(--sans); cursor: pointer; }
.pfBig .pfPv { left: 16px; } .pfBig .pfNx { right: 16px; }
@media (max-width: 700px) {
  .pfDay { flex-direction: column; gap: 6px; }
  .pfDl { width: auto; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 4px 10px; padding: 10px 14px; }
  .pfTile { width: min(290px, 82vw); }
  .pfW.cols .pfDay { width: min(290px, 82vw); }
}
@media (prefers-reduced-motion: reduce) { .pfTile.pfCan, .pfTile.just { animation: none; } }
/* the Object maker's tray: photos sent from Flow */
.crtTrayIt { position: relative; flex: none; display: inline-flex; }
.crtFlowIn .crtMine img { width: 80px; height: 60px; object-fit: cover; border-radius: 8px; background: var(--sand); }
.crtFlowIn .crtMine.on { border: 2px solid #2F5D50; box-shadow: 0 0 0 3px rgba(47,93,80,.15); }
.crtTrayX { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font: 600 12px var(--sans); cursor: pointer; }
/* Flow, stage 2: a tile opened up, the photo viewer, the DAR → FAR panel, the hand-off to the sketch (Bryan, Nov 22 2026) */
.pfTile:not(.wide):not(.loose) { cursor: pointer; }
.pfTile.wide { width: min(980px, calc(100vw - 230px)); cursor: default; }
.pfTile.wide.grow { animation: pfGrow .5s cubic-bezier(.2,.9,.3,1); }
@keyframes pfGrow { from { width: 290px; opacity: .85; } }
.pfWideHd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 0; }
.pfWideHd div { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .pfWideHd b { font: 600 18px var(--serif); } .pfWideHd span { font-size: 12.5px; color: var(--ink2); }
.pfShut { min-height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: #FFFDF8; font: 600 13px var(--sans); color: var(--ink); cursor: pointer; flex: none; }
.pfStrip { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 132px); grid-auto-columns: 172px; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; }
.pfThumb { position: relative; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: var(--sand); cursor: zoom-in; scroll-snap-align: start; }
.pfThumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; } .pfThumb:hover img { transform: scale(1.04); }
.pfThumb span { position: absolute; left: 6px; bottom: 5px; color: #fff; font: 600 11px var(--sans); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.pfThumb i, .pfThumb em { position: absolute; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: #2F5D50; color: #fff; font: 700 11px/20px var(--sans); text-align: center; font-style: normal; } .pfThumb i { right: 6px; } .pfThumb em { right: 30px; background: #5E554B; }
.pfThumb.cover { box-shadow: 0 0 0 3px #2F5D50; }
.pfHint { margin: 0; padding: 0 6px; font-size: 12px; color: var(--ink2); } .pfNone2 { color: var(--ink2); font-size: 13px; padding: 20px; }
.pfW.cols .pfDay:has(.pfTile.wide) { width: auto; }
.pfMenu button.red, .pfBigActs button.red { color: #B5432F; }
/* the photo opened big, with what he can do to it */
.pfBig { flex-direction: row; gap: 14px; padding: 18px; }
.pfBigPic { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.pfBigPic img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.pfBigPic.away::after { content: 'This photo is on your other device'; color: #fff; }
.pfBigSide { width: 290px; flex: none; align-self: stretch; overflow-y: auto; background: #FFFDF8; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.pfBigTop { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .pfBigTop b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfBigSide small { color: var(--ink2); }
.pfBigSide .pfBigX { position: static; width: 40px; height: 40px; border: 1px solid var(--line); flex: none; }
.pfCap { display: flex; flex-direction: column; gap: 4px; } .pfCap span { font-size: 12px; font-weight: 600; color: var(--ink2); }
.pfCap textarea { font: 14px var(--sans); padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; resize: vertical; background: #fff; color: var(--ink); }
.pfUse { display: flex; align-items: center; gap: 8px; font-weight: 600; } .pfUse input { width: 20px; height: 20px; accent-color: #2F5D50; }
.pfBigActs { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; }
.pfBigActs button { border: 0; background: none; text-align: left; min-height: 42px; padding: 0 10px; border-radius: 10px; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; } .pfBigActs button:hover { background: #F1EADB; }
/* the DAR opening up between the rows, then the FAR */
.pfWork { background: #FFFDF8; border: 2px solid #2F5D50; border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 40px rgba(42,36,32,.14); overflow: hidden; scroll-margin-top: 80px; }
.pfWork.open { animation: pfPart .7s cubic-bezier(.2,.9,.3,1) both; }
@keyframes pfPart { from { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; margin: 0; } 60% { opacity: 1; } to { max-height: 3000px; } }
.pfWork.open .pfSheet { animation: pfRise .55s .25s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes pfRise { from { transform: translateY(40px) scale(.94); opacity: 0; } }
.pfWorkHd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pfWorkHd > div:first-child { display: flex; flex-direction: column; gap: 2px; } .pfWorkHd b { font: 600 20px var(--serif); } .pfWorkHd span { font-size: 12.5px; color: var(--ink2); }
.pfSteps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; counter-reset: s; }
.pfSteps li { counter-increment: s; display: flex; align-items: center; gap: 6px; font: 600 13px var(--sans); color: var(--ink2); }
.pfSteps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.pfSteps li + li::after { content: none; } .pfSteps li:not(:last-child)::after { content: '→'; margin-left: 4px; color: var(--line); }
.pfSteps li.on { color: #2F5D50; } .pfSteps li.on::before { border-color: #2F5D50; background: #2F5D50; color: #fff; } .pfSteps li.done::before { content: '✓'; border-color: #2F5D50; color: #2F5D50; }
.pfWorkActs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pfWorkTip { margin: 0; font-size: 13px; color: var(--ink2); }
.pfSheet { min-width: 0; }
.pfSheet.flyout { animation: pfFlyOut .75s cubic-bezier(.5,0,.75,0) forwards; pointer-events: none; }
@keyframes pfFlyOut { 20% { transform: translate(-20px, -10px) rotate(-2deg); } to { transform: translate(110vw, -120px) rotate(14deg); opacity: 0; } }
.pfSheet.flyin { animation: pfFlyIn .7s cubic-bezier(.2,1.1,.3,1) both; }
@keyframes pfFlyIn { from { transform: translate(-110vw, 60px) rotate(-10deg); opacity: 0; } }
.pfSheet.back { animation: pfRise .45s both; }
/* into the sketch */
#pfToSk { position: fixed; inset: 0; z-index: 10050; background: #F7F2E8; display: flex; align-items: center; justify-content: center; overflow: hidden; pointer-events: none; }
#pfToSk img { position: absolute; width: 60vmin; height: 45vmin; object-fit: cover; border-radius: 14px; box-shadow: 0 20px 50px rgba(42,36,32,.35); animation: pfZoomOut 1.3s cubic-bezier(.6,0,.4,1) forwards; }
@keyframes pfZoomOut { 40% { transform: scale(1.05) rotate(-2deg); } to { transform: scale(.2) translateY(-60vh) rotate(-30deg); opacity: 0; } }
#pfToSk .pfPaper { position: absolute; inset: 0; background-color: #FFFDF8; background-image: linear-gradient(rgba(47,93,80,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(47,93,80,.12) 1px, transparent 1px); background-size: 24px 24px; clip-path: circle(0 at 50% 50%); animation: pfWipe 1.1s .35s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes pfWipe { to { clip-path: circle(150% at 50% 50%); } }
#pfToSk b { position: relative; font: 600 26px var(--serif); color: #2F5D50; opacity: 0; animation: pfRise .5s .7s both; }
#pfToSk.out { animation: pfFade .6s forwards; } @keyframes pfFade { to { opacity: 0; } }
body.sketching.pl-show .plPic { display: block; }
.plPic.fall > * { animation: plFall 1s cubic-bezier(.3,1.35,.5,1) both; animation-delay: var(--d, 0ms); }
@keyframes plFall { 0% { transform: translateY(-75vh) rotate(-25deg); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(6px) rotate(3deg); } 100% { transform: none; } }
.plPic.fall .plCone { animation: none; }
#pfSkTray { position: fixed; z-index: 30; right: 12px; top: 120px; width: 210px; max-height: calc(100vh - 160px); overflow-y: auto; background: #FFFDF8; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 30px rgba(42,36,32,.18); padding: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--ink); animation: pfRise .5s both; }
.pfTrHd { display: flex; justify-content: space-between; gap: 6px; } .pfTrHd div { display: flex; flex-direction: column; min-width: 0; } .pfTrHd b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pfTrHd span { color: var(--ink2); }
.pfTrFold { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; flex: none; }
.pfTrHide { min-height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #F1EADB; font: 600 12.5px var(--sans); color: var(--ink); cursor: pointer; }
.pfTrTip { margin: 0; color: var(--ink2); }
.pfTrPics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pfTrPics button { position: relative; border: 0; padding: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); cursor: pointer; }
.pfTrPics img { width: 100%; height: 100%; object-fit: cover; display: block; } .pfTrPics span { position: absolute; left: 4px; bottom: 3px; color: #fff; font: 600 10px var(--sans); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.pfTrDone { min-height: 44px; border-radius: 12px; border: 0; background: #2F5D50; color: #fff; font: 600 13.5px var(--sans); cursor: pointer; }
#pfSkTray.folded { width: auto; } #pfSkTray.folded > :not(.pfTrHd) { display: none; } #pfSkTray.folded .pfTrHd div { display: none; } #pfSkTray.folded .pfTrFold { transform: scaleX(-1); }
@media (max-width: 700px) {
  .pfTile.wide { width: calc(100vw - 32px); }
  .pfStrip { grid-template-rows: repeat(2, 104px); grid-auto-columns: 136px; }
  .pfBig { flex-direction: column; padding: 10px; } .pfBigPic { flex: 1 1 50%; } .pfBigSide { width: auto; flex: 1 1 50%; }
  #pfSkTray { top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; max-height: 40vh; }
  #pfSkTray .pfTrPics { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 96px; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { .pfTile.wide.grow, .pfWork.open, .pfWork.open .pfSheet, .pfSheet.flyout, .pfSheet.flyin, #pfToSk *, .plPic.fall > * { animation: none !important; } }
.pfSheet [data-a="list"] { display: none; } /* (inside Flow the FAR stays the FAR: Close is the way out) */
/* Flow: how many of his photos are on CAMI */
.pfCloud { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 13px; color: var(--ink2); padding: 0 4px; } .pfCloud b { color: var(--ink); }
/* Cami's school, on the Dojo's front page (study.js, Bryan, Nov 22 2026) */
.schCard { background: #FFFDF8; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin: 12px 0; display: flex; flex-direction: column; gap: 14px; color: var(--ink); font-size: 13.5px; }
.schHd { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.schHd h3 { margin: 0; font: 600 22px var(--serif); } .schHd p { margin: 2px 0 0; color: var(--ink2); }
.schStats { display: flex; gap: 6px 16px; flex-wrap: wrap; color: var(--ink2); } .schStats b { color: var(--ink); font-size: 16px; }
.schModes { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.schModes legend { font: 600 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); margin-bottom: 6px; }
.schModes label { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; position: relative; }
.schModes label.on { border: 2px solid #2F5D50; background: #EEF4F0; } .schModes input[type=radio] { position: absolute; opacity: 0; } .schModes small { color: var(--ink2); }
.schCap { font-size: 12.5px; color: var(--ink2); } .schCap input { width: 72px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; font: 13px var(--sans); margin: 0 4px; }
.schLessons { display: flex; flex-direction: column; gap: 8px; } .schLessons h4 { margin: 0; font: 600 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.schL { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; } .schL.on { border-color: #9DB8AC; background: #F6FAF7; }
.schN { width: 28px; height: 28px; border-radius: 50%; background: #F1EADB; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #2F5D50; flex: none; }
.schLx { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; } .schLx small { color: var(--ink2); } .schLx span { font-size: 12.5px; font-weight: 600; }
.schGo, .schNow { min-height: 42px; padding: 0 16px; border: 0; border-radius: 12px; background: #2F5D50; color: #fff; font: 600 13.5px var(--sans); cursor: pointer; flex: none; }
.schOff { min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #FFFDF8; font: 600 13px var(--sans); color: var(--ink); cursor: pointer; flex: none; }
.schNow:disabled { opacity: .45; cursor: default; }
.schRun { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .schLive { font-weight: 600; color: #2F5D50; } .schErr { color: #B5432F; font-weight: 600; }
.schCheap summary { cursor: pointer; font-weight: 600; color: #2F5D50; } .schCheap ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink2); display: flex; flex-direction: column; gap: 4px; } .schCheap b { color: var(--ink); }
@media (max-width: 700px) { .schModes { grid-template-columns: 1fr; } }
/* the office as tiles on a computer too (Bryan, Nov 22 2026: "change the office desk view to just tiles for all the functions") */
@media (min-width: 760px) { #of.tiles .ofTiles { max-width: 1180px; } #of.tiles .ofTGrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; } }
/* Files on the cloud (Flow): by kind, with the room it takes */
section.pfCloud { margin: 0; display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px; background: #FFFDF8; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; font-size: 13px; color: var(--ink2); }
section.pfCloud h4 { margin: 0; font: 600 16px var(--serif); color: var(--ink); }
section.pfCloud ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 22px; flex-wrap: wrap; }
section.pfCloud li { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: 14px; } section.pfCloud li b { font-size: 18px; } section.pfCloud li small { color: var(--ink2); font-size: 12px; }
section.pfCloud li i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.pfStore { display: flex; height: 12px; border-radius: 6px; background: #F1EADB; overflow: hidden; }
.pfStore span { display: block; height: 100%; }
.k-photos i, .pfStore .k-photos { background: #2F5D50; } .k-videos i, .pfStore .k-videos { background: #8FB3A5; } .k-docs i, .pfStore .k-docs { background: #C9A347; }
section.pfCloud p { margin: 0; } section.pfCloud p b { color: var(--ink); }
/* his account on the bar: a person, or his own round picture (Bryan, Nov 22 2026: "like Discord") */
.gbAv { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 1.5px #FFFDF8, 0 0 0 3px #2F5D50; }
#gbar .gbI .gbAv { width: 24px; height: 24px; }
/* the tab rail sorts by hand: hold one, it lifts, the rest wiggle, slide it, let go */
#gbar .gbTabs .gbI { touch-action: pan-x; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#gbar .gbTabs.gbSorting .gbI:not(.gbLift) { animation: gbWig .35s ease-in-out infinite alternate; }
#gbar .gbTabs .gbI.gbLift { position: relative; z-index: 3; background: #FFFDF8; box-shadow: 0 8px 20px rgba(42,36,32,.22); border-radius: 12px; cursor: grabbing; transition: none; touch-action: none; }
@keyframes gbWig { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { #gbar .gbTabs.gbSorting .gbI { animation: none; } }
.stAvRow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stAv { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: #F1EADB; display: flex; align-items: center; justify-content: center; color: #5E554B; flex: none; box-shadow: 0 0 0 3px #2F5D50; }
.stAv img { width: 100%; height: 100%; object-fit: cover; } .stAv svg { width: 40px; height: 40px; }
.stAvBtns { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; } .stAvPick { cursor: pointer; }
.pfDup { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; background: #FDF5F2; border: 1px solid #E3A99C; border-radius: 14px; padding: 10px 14px; font-size: 13.5px; color: var(--ink2); } .pfDup b { color: var(--ink); } .pfDup .pfMake { flex: none; }
/* Flow: videos and documents he uploads (v131) */
.pfPh video, .pfThumb video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--ink); }
.pfBigPic video { max-width: 100%; max-height: 100%; border-radius: 8px; background: #000; }
.pfPlay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(42,36,32,.6); color: #fff; display: grid; place-items: center; font-size: 18px; padding-left: 3px; pointer-events: none; }
.pfThumb .pfPlay { width: 28px; height: 28px; font-size: 12px; }
.pfDoc { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--bg); color: var(--accent); padding: 8px; text-align: center; }
.pfDoc b { font-size: 12px; letter-spacing: .06em; color: var(--ink); }
.pfDoc small { font-size: 11px; color: var(--ink2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfDoc.big { gap: 10px; border-radius: 8px; } .pfDoc.big small { font-size: 14px; white-space: normal; } .pfDoc.big .owBtn { text-decoration: none; }
.pfThumb .pfDoc small { display: none; }
.pfDocView { width: 100%; height: 100%; border: 0; border-radius: 8px; background: #fff; }
/* Flow: one long run of days going back in time, a small month calendar beside each month (v131) */
.pfRun { display: flex; flex-direction: column; gap: 18px; }
.pfMon { display: flex; gap: 14px; align-items: flex-start; }
.pfMonDays { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pfMini { position: sticky; top: 8px; width: 176px; flex: none; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 10px; z-index: 2; }
.pfMini > b { font: 600 17px var(--serif); } .pfMini > small { margin-left: 6px; font-size: 12px; color: var(--ink2); }
.pfMiniG { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 8px; text-align: center; }
.pfMiniG i { font-style: normal; font-size: 10px; color: var(--ink2); padding-bottom: 2px; }
.pfMiniG button, .pfMiniG span { aspect-ratio: 1; display: grid; place-items: center; font: 500 11.5px var(--sans); border-radius: 50%; border: 0; background: none; color: var(--ink); padding: 0; position: relative; }
.pfMiniG button { cursor: pointer; } .pfMiniG button:hover { background: var(--sand); }
.pfMiniG .fut { color: var(--line); }
.pfMiniG .in { background: var(--bg2); }
.pfMiniG .w { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.pfMiniG .due::after { content: ''; position: absolute; right: 1px; top: 1px; width: 6px; height: 6px; border-radius: 50%; background: #B5432F; }
.pfMiniG .tod { box-shadow: inset 0 0 0 2px var(--ink); }
.pfWkRow { display: flex; flex-direction: column; gap: 6px; } .pfWkHd { font: 600 13px var(--sans); color: var(--ink2); }
.pfGo { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); } .pfGo input { min-height: 38px; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; font: 14px var(--sans); background: var(--bg); color: var(--ink); }
.pfCtl { align-items: center; }
.pfOlder { display: flex; justify-content: center; padding: 18px 0 8px; }
.pfWideHd .pfWideBtns { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink); flex: none; }
.pfSelDj { min-height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid #FFFDF8; background: none; color: #fff; font: 600 14px var(--sans); cursor: pointer; }
@media (max-width: 700px) {
  .pfMon { flex-direction: column; gap: 8px; }
  .pfMini { position: static; width: 100%; max-width: 280px; }
  .pfWideHd .pfWideBtns { gap: 10px; }
}
/* Flow: many photos picked at once (v131) */
.pfTick { position: absolute; left: 6px; top: 6px; width: 24px; height: 24px; border-radius: 7px; border: 2px solid #fff; background: rgba(42,36,32,.28); box-shadow: 0 1px 3px rgba(0,0,0,.3); cursor: pointer; opacity: 0; transition: opacity .15s; z-index: 2; }
.pfThumb:hover .pfTick, .pfStrip.picking .pfTick, .pfThumb:focus-visible .pfTick { opacity: 1; }
@media (hover: none) { .pfTick { opacity: 1; } }
.pfThumb.on { outline: 3px solid var(--accent); outline-offset: -3px; } .pfStrip.picking .pfThumb { cursor: pointer; }
.pfThumb.on .pfTick { background: var(--accent); border-color: #fff; }
.pfThumb.on .pfTick::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.pfPsel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 6px 6px 0; padding: 10px 12px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; }
.pfPsel.idle { background: none; color: var(--ink); padding: 0 6px; margin-top: 0; }
.pfPsel .skLink { color: inherit; }
.pfPselGo { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; flex: 1; }
.pfPselGo button { background: none; border: 0; color: #fff; font: 600 14px var(--sans); cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.pfPselGo button.red { color: #F2A48F; }
.pfPselMv { display: inline-flex; align-items: center; gap: 6px; } .pfPselMv select { min-height: 34px; border-radius: 10px; border: 0; padding: 0 8px; font: 14px var(--sans); background: #FFFDF8; color: var(--ink); }
.pfPselX { background: none; border: 0; color: #fff; font-size: 18px; cursor: pointer; min-width: 36px; min-height: 36px; }
.pfThumb .pfDoc { position: absolute; inset: 0; bottom: 0; left: 0; color: var(--accent); text-shadow: none; font: inherit; }
.pfThumb:has(.pfDoc) > span:not(.pfDoc):not(.pfTick) { color: var(--ink); text-shadow: none; }
.pfThumb .pfPlay { left: 50%; bottom: auto; text-shadow: none; }
.pfThumb .pfTick { bottom: auto; }
/* Flow: the top stays in view while the days scroll under it (v131) */
.pfTop { position: sticky; top: -6px; z-index: 6; display: flex; flex-direction: column; gap: 10px; margin: -6px -6px 0; padding: 6px 6px 10px; background: #F7F2E8; box-shadow: 0 1px 0 transparent; transition: box-shadow .2s; }
.pfTop.stuck { box-shadow: 0 6px 12px -8px rgba(42,36,32,.35); gap: 6px; }
.pfTop.stuck .pfHead p, .pfTop.stuck .pfDrop > svg, .pfTop.stuck .pfDropTx span, .pfTop.stuck section.pfCloud ul, .pfTop.stuck .pfStore { display: none; }
.pfTop.stuck .pfDrop { padding: 6px 12px; gap: 12px; } .pfTop.stuck .pfDropTx b { font-size: 13px; }
.pfTop.stuck section.pfCloud { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 6px 14px; } .pfTop.stuck section.pfCloud h4 { font-size: 14px; }
.pfMini { top: calc(var(--pfTopH, 0px) + 4px); }
.pfDay { scroll-margin-top: calc(var(--pfTopH, 0px) + 8px); }
#of .ofBody .pfGo input { width: auto; }
@media (max-width: 700px) { .pfTop.stuck .pfDropTx, .pfTop.stuck section.pfCloud p { display: none; } }
.pfPsel:not(.idle) button.skLink { color: #fff; text-decoration-color: rgba(255,255,255,.45); }
.pfThumb .pfDoc { background: var(--sand); }
/* Flow: the photos flip by themselves (v131) */
.pfFadeIn { animation: pfFade .6s ease; } @keyframes pfFade { from { opacity: 0; } to { opacity: 1; } }
.pfFlipSw { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); cursor: pointer; } #of .ofBody .pfFlipSw input { width: auto; margin: 0; accent-color: var(--accent); }
.pfUpIc { flex: none; }
.pfDirBtn { font-size: 14px; cursor: pointer; margin-left: -6px; }
.pfTop.stuck .pfDirBtn { font-size: 13px; }
/* Photos on the map, his way (v132): size, frame, frame color, shadow, tilt, cone, time, camera, the picked one grows, a compass while it swings, a pile */
.plPic { --r: calc(var(--plHt, 40px) + 10px); }
.plPol { width: var(--plW, 34px); height: var(--plHt, 40px); background: var(--plFc, #fff); transition: width .22s ease, height .22s ease, padding .22s ease, box-shadow .2s; }
.plPol span { border-radius: 1px; }
body:not(.pl-nogrow) .plPic.big { --r: calc(var(--plBH, 150px) * .5 + 44px); z-index: 4; }
body:not(.pl-nogrow) .plPic.big .plPol { width: var(--plBW, 168px); height: var(--plBH, 150px); padding: 6px 6px 22px; }
body.pl-nogrow .plPic.big { --r: calc(var(--plHt, 40px) + 10px); } body.pl-nogrow .plPic.big .plPol { width: var(--plW, 34px); height: var(--plHt, 40px); padding: 3px 3px 9px; outline: 3px solid var(--accent); }
.plPic.use .plPol { outline: 2.5px solid var(--accent); }
body.pl-tilt .plPic:not(.big):not(.turning) .plPol { transform: rotate(var(--h)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--h))) translate(-50%, -50%) rotate(var(--tilt, 0deg)); }
/* frames */
.plF-white .plPol { padding: 3px; } .plF-thin .plPol { padding: 1.5px; } .plF-round .plPol { padding: 3px; border-radius: 12px; } .plF-round .plPol span { border-radius: 9px; }
.plF-none .plPol { padding: 0; background: none; border-radius: 4px; } .plF-none .plPol span { border-radius: 4px; }
.plF-film .plPol { padding: 7px 3px; background: #2A2420 radial-gradient(circle, #FFFDF8 1.1px, transparent 1.5px) 0 1px / 6px 6px repeat-x; box-shadow: none; } .plF-film .plPol::after { content: ''; position: absolute; left: 0; right: 0; bottom: 1px; height: 5px; background: radial-gradient(circle, #FFFDF8 1.1px, transparent 1.5px) 0 0 / 6px 6px repeat-x; }
.plF-tape .plPol::before { content: ''; position: absolute; left: 50%; top: -5px; width: 62%; height: 9px; transform: translateX(-50%) rotate(-4deg); background: rgba(236,221,160,.85); box-shadow: 0 1px 1px rgba(0,0,0,.12); z-index: 1; }
body:not(.pl-nogrow).plF-white .plPic.big .plPol, body:not(.pl-nogrow).plF-thin .plPic.big .plPol, body:not(.pl-nogrow).plF-round .plPic.big .plPol { padding: 6px; }
body:not(.pl-nogrow).plF-none .plPic.big .plPol { padding: 0; } body:not(.pl-nogrow).plF-film .plPic.big .plPol { padding: 9px 4px; }
/* how high it floats */
.plS-none .plPol { box-shadow: none; } .plS-low .plPol { box-shadow: 0 1px 3px rgba(42,36,32,.35); }
.plS-mid .plPol { box-shadow: 0 6px 10px -2px rgba(42,36,32,.38), 0 2px 4px rgba(42,36,32,.22); }
.plS-high .plPol { box-shadow: 0 18px 24px -6px rgba(42,36,32,.42), 0 6px 10px rgba(42,36,32,.18); }
.plS-high .plPic.big .plPol { box-shadow: 0 28px 36px -8px rgba(42,36,32,.42), 0 8px 14px rgba(42,36,32,.18); }
body.pl-nocone .plCone { display: none !important; }
.plTime { display: none; position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font: 700 7px/9px var(--sans); color: #2A2420; white-space: nowrap; overflow: hidden; } body.pl-time .plTime { display: block; } .plPic.big .plTime { font-size: 11px; line-height: 20px; }
.plF-film .plTime, .plF-none .plTime { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
body.pl-camsmall .plCam { inset: 8px; border-width: 1.5px; } body.pl-camsmall .plCam svg { width: 12px; height: 12px; }
body.pl-camhide .plPic:not(.big):not(:hover) .plCam { opacity: 0; }
/* a pile */
.plCount { display: none; position: absolute; top: -9px; right: -9px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font: 700 11px/20px var(--sans); box-shadow: 0 0 0 2px #fff; z-index: 2; }
.plPic.pile .plCount { display: block; }
.plPic.pile:not(.big) .plPol { box-shadow: 3px -3px 0 -1px var(--plFc, #fff), 3px -3px 0 0 rgba(42,36,32,.25), 6px -6px 0 -1px var(--plFc, #fff), 6px -6px 0 0 rgba(42,36,32,.25), 0 6px 10px rgba(42,36,32,.3); }
/* the compass while it swings */
.plCompass { position: absolute; left: 50%; top: 50%; width: 108px; height: 108px; margin: -54px 0 0 -54px; pointer-events: none; opacity: 0; transform: scale(.55); transition: opacity .18s, transform .25s cubic-bezier(.3,1.4,.5,1); z-index: 3; }
.plPic.turning .plCompass, .plPic.settle .plCompass { opacity: 1; transform: scale(1); }
.plPic.settle .plCompass { animation: plCompOut 1.7s ease forwards; }
.plPic.turning .plPol { z-index: 4; }
.plRose { position: absolute; inset: 0; border-radius: 50%; background: rgba(255,253,248,.93); border: 2px solid #2A2420; box-shadow: 0 6px 16px rgba(42,36,32,.3), inset 0 0 0 5px rgba(241,234,219,.9); transform: rotate(var(--b, 0deg)); }
.plRose i { position: absolute; font: 700 11px var(--sans); font-style: normal; color: #2A2420; } .plRose i:nth-child(1) { left: 50%; top: 7px; transform: translateX(-50%); color: #B5432F; } .plRose i:nth-child(2) { right: 8px; top: 50%; transform: translateY(-50%); } .plRose i:nth-child(3) { left: 50%; bottom: 7px; transform: translateX(-50%); } .plRose i:nth-child(4) { left: 8px; top: 50%; transform: translateY(-50%); }
.plNeedle { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--h, 0deg)); transition: transform .08s; }
.plNeedle::before { content: ''; position: absolute; left: -8px; top: -40px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 40px solid #2F5D50; }
.plNeedle::after { content: ''; position: absolute; left: -8px; top: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 22px solid #C9BBA2; }
.plCompass em { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 6px; background: #2A2420; color: #fff; font: 700 12px var(--sans); font-style: normal; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
@keyframes plCompOut { 0% { opacity: 1; transform: scale(1.1); } 14% { transform: scale(1); } 72% { opacity: 1; } 100% { opacity: 0; transform: scale(.85); } }
@media (prefers-reduced-motion: reduce) { .plPic.settle .plCompass { animation: none; opacity: 0; } }
/* the photo's card */
body.pl-card #pfSkTray { display: none; }
#panelTitle.plTitleEd { cursor: text; outline: none; border-bottom: 1.5px dashed var(--line); min-width: 60px; } #panelTitle.plTitleEd:focus { border-bottom-color: var(--accent); }
.plPovF > .plPov { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; color: var(--ink2); } .plPov.set { color: var(--ink); font-size: 14px; } .plPov small { width: 100%; font-size: 12px; color: var(--ink2); }
.plPov.pop .plPovIc { animation: plPop .6s cubic-bezier(.3,1.6,.5,1); } @keyframes plPop { 0% { transform: scale(.4) rotate(-40deg); } 100% { transform: scale(1) rotate(0); } }
.plCopies { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 4px; font-size: 14px; }
.plSet { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; display: flex; flex-direction: column; gap: 8px; } .plSet h5 { margin: 0; font: 600 15px var(--serif); }
.plSetPics { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; max-height: 236px; overflow-y: auto; }
.plSetPics button { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: var(--sand); cursor: pointer; } .plSetPics img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plSetPics span { position: absolute; left: 3px; bottom: 2px; color: #fff; font: 600 9.5px var(--sans); text-shadow: 0 1px 2px rgba(0,0,0,.7); } .plSetPics button.on { outline: 3px solid var(--accent); outline-offset: -3px; }
.plArr { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 14px; } .plArr b { font-size: 13px; color: var(--ink2); font-weight: 600; }
.plTrayBtns { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.plLook { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; } .plLook summary { cursor: pointer; font: 600 15px var(--serif); } .plLook summary small { font: 500 12px var(--sans); color: var(--ink2); margin-left: 6px; }
.plLkGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 8px; } .plLkChecks { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; } .plLk { display: flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: pointer; } .plLk input { width: auto; accent-color: var(--accent); }
/* Flow: Vacation asks how many hours, and shows what's left in hours and days (v132) */
.pfVac { width: min(460px, 100%); text-align: left; }
.pfVacSet { margin: 0 0 8px; font-size: 13.5px; color: var(--ink2); }
.pfVacGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; } .pfVacGrid label { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; font-size: 12px; color: var(--ink2); }
.pfVac input[type=number] { min-height: 40px; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; font: 600 16px var(--sans); background: #fff; color: var(--ink); width: 100%; box-sizing: border-box; }
.pfVacH { display: grid; grid-template-columns: 1fr 110px auto; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; } .pfVacH b { font-size: 14px; color: var(--accent); white-space: nowrap; }
.pfVacQ { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 0 10px; font-size: 14px; }
.pfVacPh { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; cursor: pointer; font-size: 14px; } .pfVacPh input { width: 20px; height: 20px; accent-color: var(--accent); margin: 1px 0 0; } .pfVacPh small { display: block; color: var(--ink2); font-size: 12px; }
.pfVacBal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; } .pfVacBal div { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.pfVacBal span { font-size: 11.5px; color: var(--ink2); } .pfVacBal b { font-size: 15px; } .pfVacBal b small { font-weight: 500; font-size: 11.5px; color: var(--ink2); display: block; }
.pfVacBal .ok { border-color: var(--accent); } .pfVacBal .red { border-color: #B5432F; } .pfVacBal .red b { color: #B5432F; } .pfVacBal p { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink2); }
@media (max-width: 520px) { .pfVacGrid, .pfVacBal { grid-template-columns: 1fr 1fr; } .pfVacH { grid-template-columns: 1fr 90px; } .pfVacH b { grid-column: 1 / -1; } }
/* the field book (v132): search off to the side, the closed cover you tap open, + a new field book, the first book's setup */
.pgAside { flex: none; position: relative; z-index: 5; margin: 10px 12px 0; }
.pgAside .pgFindRow { margin: 0; }
.pgAside .pgFindBox { display: flex; align-items: center; gap: 8px; background: #FFFDF8; border: 1.5px solid var(--accent); border-radius: 14px; padding: 0 6px 0 12px; }
.pgAside .pgFindBox svg { width: 18px; height: 18px; fill: none; stroke: var(--ink2); stroke-width: 2; flex: none; }
.pgAside .pgFindBox input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 15px var(--sans); color: var(--ink); min-height: 44px; }
.pgAsideX { border: 0; background: none; font-size: 16px; color: var(--ink2); cursor: pointer; min-width: 36px; min-height: 36px; }
.pgAside #pgFindOut { margin-top: 8px; background: #FFFDF8; border: 1px solid var(--line); border-radius: 14px; padding: 8px; max-height: 55vh; overflow-y: auto; box-shadow: 0 12px 28px rgba(42,36,32,.18); }
#pg:not(.wide) .pgAside.on #pgFindOut { position: absolute; left: 0; right: 0; top: 100%; }
#pg.wide { flex-direction: row; gap: 22px; align-items: stretch; }
#pg.wide .pgAside { width: 290px; margin: 0; align-self: flex-start; }
#pg.wide .pgAside #pgFindOut { max-height: calc(100vh - 160px); box-shadow: none; }
#pg.wide .pgSpread { flex: 1; min-width: 0; }
#pg.wide .pgSwitch { display: none; }
#pg.closed .pgSpread, #pg.closed .pgSwitch { display: none !important; }
.pgCov { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 18px 12px 28px; }
.pgCov[hidden] { display: none; }
.pgCovWrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pgCovBook { border: 0; padding: 0; background: none; cursor: pointer; perspective: 1400px; display: block; }
.pgCovSvg { display: block; width: min(300px, 70vw, calc((100vh - 230px) * .7)); height: auto; border-radius: 14px; box-shadow: 0 2px 0 #CFC4AE, 6px 6px 0 -1px #F1EADB, 6px 6px 0 0 #D8CCB6, 0 24px 44px rgba(42,36,32,.38); transform-origin: left center; transition: transform .65s cubic-bezier(.5,.1,.3,1), box-shadow .3s; }
.pgCovBook:hover .pgCovSvg { transform: rotateY(-8deg); }
.pgCovBook.opening .pgCovSvg { transform: rotateY(-100deg); box-shadow: none; }
.pgCovHint { margin: 0; font-size: 13.5px; color: var(--ink2); }
.pgNewBook { position: absolute; top: -6px; right: -64px; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; cursor: pointer; font: 600 11.5px var(--sans); color: var(--ink); width: 64px; }
.pgNewBook svg { width: 44px; height: 44px; fill: #FFFDF8; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 3px 6px rgba(42,36,32,.25)); transition: transform .2s; }
.pgNewBook:hover svg { transform: translateY(-2px) rotate(-4deg); }
@media (max-width: 560px) { .pgNewBook { right: -6px; top: -16px; } .pgNewBook span { display: none; } }
.pgCovAll { font-size: 14px; }
.pgNb { width: min(560px, 100%); background: #FFFDF8; border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 18px; box-shadow: 0 18px 40px rgba(42,36,32,.22); display: flex; flex-direction: column; gap: 12px; }
.pgNb small { font: 700 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); } .pgNb h2 { margin: 0; font: 600 26px var(--serif); }
.pgNbF { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink2); } .pgNbF input { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: 500 16px var(--sans); color: var(--ink); background: #fff; }
.pgNbFor { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .pgNbFor legend { font-size: 12.5px; color: var(--ink2); margin-bottom: 4px; padding: 0; }
.pgNbFor label { display: flex; gap: 8px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: pointer; } .pgNbFor label:has(input:checked) { border-color: var(--accent); background: var(--bg2); }
.pgNbFor input { accent-color: var(--accent); margin-top: 3px; } .pgNbFor b { display: block; font-size: 14.5px; } .pgNbFor small { display: block; font: 400 12px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink2); }
.pgNbJob { display: flex; flex-direction: column; gap: 10px; } .pgNbJob[hidden] { display: none; }
.pgNbLab { margin: 0; font-size: 12.5px; color: var(--ink2); }
.pgNbMats { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.pgNbMat { position: relative; aspect-ratio: 3 / 4; border: 0; border-radius: 8px; background-size: cover; cursor: pointer; box-shadow: 0 2px 6px rgba(42,36,32,.25); }
.pgNbMat span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 4px; background: rgba(255,253,248,.9); font: 600 10px var(--sans); color: var(--ink); border-radius: 0 0 8px 8px; }
.pgNbMat.on { outline: 3px solid var(--accent); outline-offset: 2px; }
.pgNbErr { margin: 0; color: #B5432F; font-size: 13.5px; } .pgNbErr[hidden] { display: none; }
.pgNbBtns { display: flex; gap: 16px; align-items: center; }
@media (max-width: 520px) { .pgNbFor { grid-template-columns: 1fr; } }
.pgPlus.pgPlusCall { animation: pgCall 1.2s ease-in-out 3; } @keyframes pgCall { 50% { transform: scale(1.12); box-shadow: 0 0 0 12px rgba(47,93,80,.25); } }
@media (prefers-reduced-motion: reduce) { .pgPlus.pgPlusCall { animation: none; } }
.pgAside input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; } /* (one ✕ is enough) */
.pgAside .pgFindBox .pgCami { flex: none; }
.plPovF > .plPov.set, .plPovF > .plPov small { text-transform: none; letter-spacing: 0; font-weight: 500; } /* (a sentence, not a label) */
.plPovF > .plPov.set b { font-weight: 700; }
/* Flow on a phone (v136): once scrolled, the top folds to just Upload, and the picks bar lays its actions out two across */
@media (max-width: 700px) {
  .pfTop.stuck .pfHead, .pfTop.stuck section.pfCloud, .pfTop.stuck .pfCloud { display: none; }
  .pfTop.stuck .pfDrop { padding: 4px 8px; border-width: 1.5px; }
  .pfPsel:not(.idle) { gap: 6px 10px; padding: 10px; }
  .pfPselGo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
  .pfPselGo button { font-size: 13.5px; text-align: left; padding: 6px 0; }
  .pfPselMv { grid-column: 1 / -1; }
}
/* the field book screen (v137): every book stacked on the side (sortable), + and the cog there, the book's size, day pages */
.pgRailHd { display: flex; align-items: center; gap: 6px; margin: 14px 2px 8px; } .pgRailHd b { flex: 1; font: 600 16px var(--serif); }
.pgRailBtn { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.pgRailBtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; } .pgRailBtn[aria-expanded="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.pgStack { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 210px); overflow-y: auto; padding: 2px; touch-action: pan-y; }
.pgBk { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid transparent; background: none; border-radius: 14px; padding: 6px 8px; cursor: pointer; color: var(--ink); user-select: none; -webkit-user-select: none; transition: transform .15s, box-shadow .15s, background .15s; }
.pgBk:hover { background: var(--surface); border-color: var(--line); } .pgBk.on { background: var(--surface); border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.pgBkCov { flex: none; width: 34px; height: 48px; border-radius: 3px 6px 6px 3px; background-size: cover; background-position: center; box-shadow: inset 3px 0 0 rgba(0,0,0,.25), 0 2px 5px rgba(42,36,32,.3); display: flex; align-items: flex-end; overflow: hidden; }
.pgBkCov i { font: 700 6.5px/1.1 var(--sans); font-style: normal; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.6); padding: 2px 2px 3px 5px; word-break: break-all; }
.pgBkTx { min-width: 0; display: flex; flex-direction: column; } .pgBkTx b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pgBkTx small { font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgStack.sorting .pgBk:not(.lift) { animation: pgWig .28s ease-in-out infinite alternate; } .pgBk.lift { transform: scale(1.04); box-shadow: 0 10px 24px rgba(42,36,32,.28); background: var(--surface); z-index: 2; position: relative; }
@keyframes pgWig { from { transform: rotate(-.6deg); } to { transform: rotate(.6deg); } }
#pg.wide .pgAside { width: 260px; display: flex; flex-direction: column; }
#pg:not(.wide) .pgStack { flex-direction: row; overflow-x: auto; overflow-y: hidden; max-height: none; touch-action: pan-x; padding-bottom: 4px; }
#pg:not(.wide) .pgBk { flex-direction: column; gap: 4px; padding: 4px; min-width: 62px; } #pg:not(.wide) .pgBkTx b { font-size: 11px; max-width: 70px; } #pg:not(.wide) .pgBkTx small { display: none; } #pg:not(.wide) .pgBk.on { box-shadow: inset 0 -3px 0 var(--accent); }
#pg:not(.wide) .pgRailHd { margin: 8px 2px 4px; }
.pgCovSvg { width: auto; }
.pgCov .pgCovWrap { gap: 10px; }
.pgBkSetWrap { position: absolute; z-index: 20; inset: 0; background: rgba(42,36,32,.28); display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; overflow-y: auto; }
.pgBkSet { width: min(520px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: 0 20px 44px rgba(42,36,32,.3); display: flex; flex-direction: column; gap: 12px; }
.pgBkSet header { display: flex; align-items: center; } .pgBkSet header b { flex: 1; font: 600 20px var(--serif); }
.pgSetLab { margin: 0; font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.pgSizes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pgSize { display: flex; gap: 10px; align-items: center; text-align: left; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px; background: var(--surface); cursor: pointer; color: var(--ink); }
.pgSize.on { border-color: var(--accent); background: var(--bg2); } .pgSize i { flex: none; display: block; border: 2px solid var(--ink); border-radius: 2px 4px 4px 2px; background: var(--sand); } .pgSize i.fill { width: 44px; height: 30px; border-style: dashed; }
.pgSize span { display: flex; flex-direction: column; min-width: 0; } .pgSize b { font-size: 14px; } .pgSize small { font-size: 12px; color: var(--ink2); }
.pgSetRow { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; cursor: pointer; } .pgSetRow > span { flex: 1; display: flex; flex-direction: column; } .pgSetRow small { font-size: 12px; color: var(--ink2); }
.pgSetLinks { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 520px) { .pgSizes { grid-template-columns: 1fr; } }
.pgDayNav { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 2px 0 8px; font: 500 13px var(--sans); }
.pgDayNav button { border: 0; background: none; color: var(--ink2); cursor: pointer; padding: 6px 4px; font: inherit; } .pgDayNav button:hover { color: var(--accent); }
.pgDayNav .mid { color: var(--accent); font-weight: 700; } .pgFoot .pgDayNav { margin: 10px 0 0; }
.pgGoDay { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); } .pgGoDay input { border: 1px solid var(--line); border-radius: 10px; padding: 4px 6px; font: 13px var(--sans); background: var(--surface); color: var(--ink); }
.pgRowBtn { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; border: 0; border-bottom: 1px solid rgba(201,187,162,.6); background: none; padding: 8px 2px; cursor: pointer; color: var(--ink); font: 15px var(--hand, var(--sans)); }
div.pgRowBtn { cursor: default; } .pgRowBtn small { font: 12px var(--sans); color: var(--ink2); }
.pgDayAdd { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 8px; } .pgDayAdd select, .pgDayAdd input { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: 14px var(--sans); background: var(--surface); color: var(--ink); }
.pgDayNote { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; } .pgDayNote textarea { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: 16px var(--hand, var(--sans)); background: rgba(255,253,248,.7); color: var(--pen, var(--ink)); resize: vertical; }
.pgDayNote .pgDone, .pgDayAdd .pgDone { align-self: flex-start; }
.pgL.turnF { animation: pgTurnF .55s cubic-bezier(.4,.1,.2,1); transform-origin: left center; } .pgL.turnB { animation: pgTurnB .55s cubic-bezier(.4,.1,.2,1); transform-origin: right center; }
@keyframes pgTurnF { 0% { transform: perspective(1400px) rotateY(0); } 45% { transform: perspective(1400px) rotateY(-14deg); opacity: .55; } 100% { transform: none; opacity: 1; } }
@keyframes pgTurnB { 0% { transform: perspective(1400px) rotateY(0); } 45% { transform: perspective(1400px) rotateY(14deg); opacity: .55; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pgL.turnF, .pgL.turnB { animation: none; } }
/* leftovers the toolbar does now (Bryan, Nov 23 2026: "it's just leftover junk now, redundant") */
html.gb-on #ofTab, html.gb-on #pgTab:not(.notes), html.gb-on #of .ofBack, html.gb-on .toBack, html.gb-on .trBack[data-o="x"] { display: none !important; }
.wkVacBg { position: fixed; inset: 0; z-index: 2147482000; background: rgba(42,36,32,.4); display: flex; align-items: center; justify-content: center; padding: 16px; }
.wkVacBg .pfAsk { background: var(--surface); border-radius: 18px; padding: 18px; box-shadow: 0 20px 44px rgba(42,36,32,.3); max-height: calc(100vh - 32px); overflow-y: auto; }
.wkVacBg .pfAsk h5 { margin: 0 0 10px; font: 600 20px var(--serif); } .wkVacBg .pfAskBtns { display: flex; gap: 16px; align-items: center; }

/* pay stubs: black out anything before a picture is read (v137) */
.payRedCard { max-width: min(760px, 94vw); max-height: 92vh; display: flex; flex-direction: column; }
.payRedPic { flex: 1; min-height: 0; overflow: auto; background: var(--sand); border: 1px solid var(--line); border-radius: 12px; padding: 6px; margin: 8px 0; }
.payRedPic canvas { display: block; max-width: 100%; max-height: 60vh; margin: 0 auto; touch-action: none; cursor: crosshair; }

/* Flow: Cami going over what was dropped in (v137) */
/* Cami's card rides in the corner and never covers the page: he keeps scrolling and working while she goes (Bryan, Nov 23 2026: "I also want
   to be able to scroll while uploading files"). Only the card itself takes a tap; it shrinks to a bar with the − in its top corner. */
#pfCami { position: fixed; right: 18px; bottom: calc(18px + var(--gbB, 0px)); width: min(440px, calc(100vw - 36px)); z-index: 2147481500; pointer-events: none; }
#pfCami .ccCard { position: relative; pointer-events: auto; width: 100%; max-height: min(72vh, 640px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 20px 16px; box-shadow: 0 24px 60px rgba(42,36,32,.32); transform: translateY(18px) scale(.97); opacity: 0; transition: transform .35s cubic-bezier(.2,.9,.3,1.2), opacity .25s; }
#pfCami.show .ccCard { transform: none; opacity: 1; }
#pfCami .ccHd { display: flex; gap: 14px; align-items: center; }
#pfCami h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 4px; color: var(--ink); }
#pfCami .ccSay { margin: 0; min-height: 2.6em; color: var(--ink); font-size: 14.5px; line-height: 1.35; }
#pfCami .ccSay.in { animation: ccIn .35s ease-out; }
@keyframes ccIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
/* her: a soft churning core with loose specks around it, a beat, and a lens sweeping while she reads */
#pfCami .ccCami { position: relative; flex: 0 0 74px; height: 74px; }
#pfCami .ccCore { position: absolute; inset: 17px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #DCEFE4, #9CCBB2 55%, #5E9B80); filter: blur(.6px); animation: ccBeat 1.1s ease-in-out infinite, ccChurn 6s linear infinite; box-shadow: 0 0 18px 4px rgba(156,203,178,.55); }
@keyframes ccBeat { 0%, 100% { transform: scale(1); } 18% { transform: scale(1.12); } 32% { transform: scale(.98); } 46% { transform: scale(1.06); } }
@keyframes ccChurn { to { filter: blur(.6px) hue-rotate(25deg); } }
#pfCami .ccCami b { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #7FB89C; opacity: .85; animation: ccOrbit 3.2s linear infinite; }
#pfCami .ccCami b:nth-child(2) { animation-duration: 2.6s; animation-delay: -.4s; width: 4px; height: 4px; }
#pfCami .ccCami b:nth-child(3) { animation-duration: 3.8s; animation-delay: -1.1s; }
#pfCami .ccCami b:nth-child(4) { animation-duration: 2.9s; animation-delay: -1.9s; width: 5px; height: 5px; }
#pfCami .ccCami b:nth-child(5) { animation-duration: 4.2s; animation-delay: -2.4s; width: 3px; height: 3px; }
#pfCami .ccCami b:nth-child(6) { animation-duration: 3.4s; animation-delay: -.9s; }
#pfCami .ccCami b:nth-child(7) { animation-duration: 2.4s; animation-delay: -1.4s; width: 4px; height: 4px; }
#pfCami .ccCami b:nth-child(8) { animation-duration: 3.9s; animation-delay: -3s; width: 5px; height: 5px; }
#pfCami .ccCami b:nth-child(9) { animation-duration: 3.1s; animation-delay: -2.2s; width: 3px; height: 3px; }
#pfCami .ccCami b:nth-child(10) { animation-duration: 4.6s; animation-delay: -.2s; }
@keyframes ccOrbit { from { transform: rotate(0deg) translateX(31px) rotate(0deg); } 50% { transform: rotate(180deg) translateX(25px) rotate(-180deg); } to { transform: rotate(360deg) translateX(31px) rotate(-360deg); } }
#pfCami .ccLens { position: absolute; width: 22px; height: 22px; border: 3px solid var(--accent); border-radius: 50%; left: 40px; top: 6px; animation: ccLens 2.4s ease-in-out infinite; }
#pfCami .ccLens::after { content: ''; position: absolute; width: 3px; height: 10px; background: var(--accent); border-radius: 2px; right: -6px; bottom: -8px; transform: rotate(-45deg); }
@keyframes ccLens { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-30px, 8px); } 60% { transform: translate(-12px, 30px); } }
#pfCami .fin .ccLens { animation: none; opacity: 0; transition: opacity .3s; }
#pfCami .fin .ccCore { animation: ccBeat 2.2s ease-in-out infinite; }
#pfCami .ccBar { height: 8px; background: var(--sand); border-radius: 6px; overflow: hidden; margin: 14px 0 6px; }
#pfCami .ccBar i { display: block; height: 100%; width: 4%; background: var(--accent); border-radius: 6px; transition: width .35s; }
#pfCami .ccOf { margin: 0 0 10px; font-size: 12.5px; color: var(--ink2); }
#pfCami .ccNums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
#pfCami .ccNums li { background: var(--sand); border-radius: 14px; padding: 8px 6px; text-align: center; }
#pfCami .ccNums b { display: block; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
#pfCami .ccNums span { font-size: 11px; color: var(--ink2); line-height: 1.2; display: block; }
#pfCami .ccNums .safe b { color: var(--accent); }
#pfCami .ccNums .dup.pop { animation: ccPop .5s ease-out; }
@keyframes ccPop { 40% { transform: scale(1.1); background: #F6E7C8; } }
#pfCami .ccStrip { display: flex; gap: 6px; margin-top: 12px; height: 58px; overflow: hidden; }
#pfCami .ccStrip img { height: 58px; width: 58px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; animation: ccSlide .4s ease-out; }
@keyframes ccSlide { from { transform: translateX(-24px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
#pfCami .ccStrip:empty { display: none; }
#pfCami .ccEnd { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
#pfCami .ccSafe { margin: 0 0 8px; padding: 10px 12px; background: #E9F2EC; border-radius: 12px; font-size: 14px; color: var(--ink); }
#pfCami .ccSafe b { color: var(--accent); }
#pfCami .ccWrap { margin: 0 0 12px; font-size: 13.5px; color: var(--ink); line-height: 1.4; max-height: 30vh; overflow-y: auto; }
#pfCami .ccBtns { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }
#pfCami .ccMin { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ink2); font: 600 20px/1 var(--sans); cursor: pointer; }
#pfCami .ccMin:hover { background: var(--sand); color: var(--ink); }
#pfCami .ccHd > div:last-child { padding-right: 30px; }
#pfCami.mini .ccCard { padding: 10px 14px 10px; cursor: pointer; }
#pfCami.mini .ccLock, #pfCami.mini .ccNums, #pfCami.mini .ccStrip, #pfCami.mini h3 { display: none; }
#pfCami.mini .ccCami { flex-basis: 40px; height: 40px; }
#pfCami.mini .ccCore { inset: 9px; }
#pfCami.mini .ccLens { width: 13px; height: 13px; border-width: 2px; left: 22px; top: 2px; }
#pfCami.mini .ccSay { min-height: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pfCami.mini .ccHd > div:last-child { min-width: 0; flex: 1; }
#pfCami.mini .ccBar { margin: 8px 0 4px; }
#pfCami.mini .ccOf { margin: 0; }
#pfCami.mini .ccMin { font-size: 0; }
#pfCami.mini .ccMin::after { content: '+'; font-size: 20px; }
@media (max-width: 600px) { #pfCami { left: 10px; right: 10px; width: auto; bottom: calc(10px + var(--gbB, 0px)); } #pfCami .ccCard { max-height: 58vh; } }
@media (max-width: 480px) { #pfCami .ccNums { grid-template-columns: repeat(2, 1fr); } #pfCami .ccCami { flex-basis: 60px; height: 60px; } }
@media (prefers-reduced-motion: reduce) { #pfCami * { animation: none !important; transition: none !important; } }
#pfCami .ccLock { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 8px 10px; background: #EEF4EF; border-radius: 12px; font-size: 12.5px; color: var(--ink); min-height: 2.8em; }
#pfCami .ccLock svg { flex: 0 0 16px; width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; margin-top: 1px; }
#pfCami .ccLock span.in { animation: ccIn .35s ease-out; }
#pfCami .fin .ccLock { display: none; }

/* ---- v137: the DAR card's buttons on top, its vehicle shown not typed */
.owFormHd { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; grid-column: 1 / -1; }
.owFormHd h3 { margin: 0; }
.owFormActs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.owFormActs .owBtn { padding: 8px 16px; }
.owForm .owErr { grid-column: 1 / -1; margin: 0; }
.owForm .owErr:empty { display: none; }
.inFlow .owSkWrap, .inFlow .owFarLink { display: none !important; }
.owDarNo b { font-variant-numeric: tabular-nums; font-size: 15px; letter-spacing: .02em; padding: 6px 10px; background: var(--sand); border-radius: 10px; }
.drNo { font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--ink2); }
.owMiles legend { display: flex; align-items: center; gap: 8px; }
.owCog { border: 0; background: transparent; color: var(--ink2); padding: 4px; border-radius: 8px; cursor: pointer; display: inline-flex; }
.owCog:hover { background: var(--sand); color: var(--ink); }
.owVehOne { display: flex; gap: 10px; align-items: baseline; margin: 2px 0 8px; } .owVehOne b { font-size: 15px; } .owVehOne span { font-variant-numeric: tabular-nums; color: var(--ink2); letter-spacing: .04em; }
.owVehs { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 8px; }
.owVeh { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--surface); cursor: pointer; }
.owVeh span { display: flex; flex-direction: column; } .owVeh small { color: var(--ink2); letter-spacing: .04em; }
.owVeh:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.owMiRead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0; } .owMiRead span { font-size: 12px; color: var(--ink2); text-transform: uppercase; letter-spacing: .06em; } .owMiRead b { font-size: 18px; } .owMiRead small { color: var(--ink2); } .owMiFirst { color: var(--accent) !important; font-weight: 600; }
.stCars { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

/* ---- v137: Flow's statuses, the day panel, the job site and its DAR as one card with the FAR and the sketch tucked under it */
.pfSts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
.pfSt3 { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink); }
.pfSt3 em { font-style: normal; font-weight: 500; color: var(--ink2); }
.pfSt3 i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.pfSt3.ok i { background: #2F5D50; } .pfSt3.warn i { background: #C49A3A; } .pfSt3.red i { background: #B5432F; }
.pfDl small.warn { color: #8A6A1F; font-weight: 600; }
.pfDl.rich { justify-content: flex-start; width: 176px; gap: 6px; }
.pfDlSites { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pfDlSites button { width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; font: inherit; font-size: 12px; cursor: pointer; color: var(--ink); }
.pfDlSites li.on button { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pfDlSites button > span:first-child { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfDots { display: flex; gap: 4px; }
.pfDots i { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; padding: 1px 5px; border-radius: 6px; color: #fff; }
.pfDots i.ok { background: #2F5D50; } .pfDots i.warn { background: #C49A3A; } .pfDots i.red { background: #B5432F; }
.pfDlNums { margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.pfDlNums div { display: flex; flex-direction: column; } .pfDlNums dt { color: var(--ink2); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; } .pfDlNums dd { margin: 0; font-weight: 600; }
.pfDlNums div.on dd { color: var(--accent); }
.pfDlBack { margin-top: auto; padding-top: 10px; font-size: 12.5px; text-align: left; }
.pfDay.working { align-items: stretch; }
.pfDay.working .pfDl { position: sticky; top: calc(var(--pfTopH, 0px) + 8px); align-self: flex-start; }
.pfMerged { flex: 1; min-width: 0; flex-direction: row !important; align-items: flex-start; gap: 16px !important; }
.pfWRail { width: 270px; flex: none; display: flex; flex-direction: column; gap: 8px; position: sticky; top: calc(var(--pfTopH, 0px) + 8px); }
.pfWRail .pfPh { height: 190px; }
.pfWOther { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; }
.pfWOther > span { font-size: 11px; color: var(--ink2); text-transform: uppercase; letter-spacing: .06em; }
.pfWMain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pfStack { position: relative; padding-right: 96px; min-height: 360px; }
.pfStack > .pfSheet { position: relative; z-index: 2; background: var(--surface); border-radius: 16px; box-shadow: 6px 0 14px rgba(42,36,32,.12); }
.pfTabs { position: absolute; top: 0; right: 0; bottom: 0; width: 130px; z-index: 1; pointer-events: none; }
.pfTab { pointer-events: auto; position: absolute; right: 40px; top: 18px; width: 76px; height: calc(100% - 18px); border: 1px solid var(--line); border-radius: 0 16px 16px 0; background: #FFFDF8; display: flex; flex-direction: column; align-items: flex-end; padding: 14px 8px 0 0; gap: 6px; cursor: pointer; font: inherit; color: var(--ink); box-shadow: 4px 2px 10px rgba(42,36,32,.08); transition: transform .2s; }
.pfTab b, .pfTab small { position: sticky; top: calc(var(--pfTopH, 0px) + 18px); }
.pfTab small { top: calc(var(--pfTopH, 0px) + 60px); }
.pfTab b { writing-mode: vertical-rl; font: 600 15px var(--serif); letter-spacing: .04em; }
.pfTab small { writing-mode: vertical-rl; font-size: 11px; color: var(--ink2); }
.pfTab::before { content: ''; position: absolute; left: auto; right: 6px; bottom: 12px; width: 8px; height: 8px; border-radius: 50%; background: #B5432F; }
.pfTab.ok::before { background: #2F5D50; } .pfTab.warn::before { background: #C49A3A; }
.pfTab:hover:not([disabled]) { transform: translateX(6px); }
.pfTab[disabled] { cursor: default; opacity: .75; }
.pfTab.sk { right: 0; top: 40px; height: calc(100% - 40px); z-index: -1; background-color: #FBFCF8; background-image: linear-gradient(rgba(47,93,80,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(47,93,80,.16) 1px, transparent 1px), linear-gradient(rgba(47,93,80,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(47,93,80,.3) 1px, transparent 1px); background-size: 8px 8px, 8px 8px, 32px 32px, 32px 32px; border-color: #C9D8CF; }
.pfTab.sk b { color: var(--accent); }
.pfStack.far .pfTab.dar b::after { content: ''; }
@media (max-width: 900px) {
  .pfDay.working { flex-direction: column; }
  .pfDay.working .pfDl { position: static; width: auto; }
  .pfMerged { flex-direction: column !important; }
  .pfWRail { width: 100%; position: static; }
  .pfStack { padding-right: 0; padding-bottom: 56px; }
  .pfTab { width: 50%; }
  .pfTabs { top: auto; left: 0; width: auto; height: 56px; }
  .pfTab { top: 0; right: auto; left: 0; width: 50%; height: 50px; border-radius: 0 0 14px 14px; flex-direction: row; align-items: center; justify-content: center; padding: 0 12px; }
  .pfTab.sk { left: 50%; top: 0; height: 50px; z-index: 0; }
  .pfTab b, .pfTab small { writing-mode: horizontal-tb; }
  .pfTab::before { position: static; }
}
.pfTiles[hidden] { display: none !important; }
/* the DAR inside Flow's merged card is narrower than the DAR screen: three across */
:is(#of, .owHost) .pfMerged .dwSheet .owForm { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
:is(#of, .owHost) .pfMerged .dwSheet .owForm > .owF.wide, :is(#of, .owHost) .pfMerged .dwSheet .owForm #owMilesP, :is(#of, .owHost) .pfMerged .dwSheet .owForm #owExpP, :is(#of, .owHost) .pfMerged .dwSheet .owForm .owF:has(#owCm) { grid-column: 1 / -1 !important; }
@media (max-width: 1250px) { :is(#of, .owHost) .pfMerged .dwSheet .owForm { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.pfWRail { position: static !important; }
.owVeh { flex-direction: row; } .owVeh span { white-space: nowrap; }

/* ---- Cloud storage (cloud.js, v137): Explorer and Storage room */
#of .ow-cloud { padding: 0; }
.clEx, .clRoom { display: flex; min-height: 100%; align-items: stretch; background: var(--bg2); }
.clNav, .clSide { width: 290px; flex: none; background: var(--surface); border-right: 1px solid var(--line); padding: 14px 12px; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.clSide { width: 300px; gap: 8px; }
.clSearch { display: flex; align-items: center; gap: 8px; height: 42px; border: 1.5px solid var(--accent); border-radius: 12px; padding: 0 12px; background: var(--surface); }
.clSearch svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; flex: none; }
.clSearch input { border: 0; background: transparent; font: inherit; font-size: 14px; flex: 1; min-width: 0; outline: none; color: var(--ink); }
.clNavHd { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); font-weight: 600; padding: 10px 6px 2px; }
.clFold { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.clFold.ind { padding-left: 26px; } .clFold span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .clFold small { color: var(--ink2); }
.clFold:hover { background: var(--sand); } .clFold.on { background: var(--accent); color: #fff; } .clFold.on small { color: #fff; }
.clFacet { border-top: 1px solid var(--line); padding: 6px 4px; }
.clFacet summary { cursor: pointer; font-weight: 600; padding: 4px 2px; list-style-position: inside; }
.clFacet summary em { font-style: normal; background: var(--accent); color: #fff; border-radius: 8px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
.clOpt { display: flex; align-items: center; gap: 8px; padding: 3px 2px 3px 6px; cursor: pointer; }
.clOpt span { flex: 1; min-width: 0; } .clOpt small { color: var(--ink2); } .clOpt.zero { opacity: .5; }
.clOpt i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.clDates { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; } .clDates label { display: flex; flex-direction: column; font-size: 11.5px; color: var(--ink2); gap: 2px; } .clDates input { font: inherit; font-size: 12.5px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); min-width: 0; }
.clMain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.clStore { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.clRoom .clStore { margin: 14px 18px 0; }
.clStoreHd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; } .clStoreHd span { color: var(--ink2); flex: 1; }
.clBar { height: 16px; border-radius: 9px; overflow: hidden; display: flex; background: var(--sand); }
.clBar span { height: 100%; } .clBar span + span { border-left: 1px solid var(--surface); }
.clKey { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink2); }
.clKey i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; } .clKey b { color: var(--ink); font-weight: 600; }
.clLock { display: flex; gap: 6px; align-items: center; margin: 0; font-size: 11.5px; color: var(--ink2); } .clLock svg { width: 13px; height: 13px; fill: none; stroke: var(--accent); stroke-width: 2; flex: none; }
.clNav .clStore { margin-top: auto; }
.clSeg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.clSeg button { border: 0; background: var(--surface); padding: 6px 10px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink); }
.clSeg button + button { border-left: 1px solid var(--line); } .clSeg button[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 600; }
.clCtl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 18px; font-size: 13px; }
.clCtl label { display: flex; align-items: center; gap: 6px; color: var(--ink2); } .clCtl select { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.clCtl .clSeg { margin-left: auto; }
.clChips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 18px 10px; }
.clChip { border: 1px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: 10px; padding: 5px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.clActs { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: 10px 18px; background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.clActs.on { background: var(--accent); color: #fff; }
.clAll { display: flex; align-items: center; gap: 8px; margin-right: 6px; }
.clAct { border: 0; background: transparent; color: inherit; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px 0; }
.clAct.red { color: #FFD3C2; } .clActs.on .skLink { color: #fff; } .clHint { color: var(--ink2); }
.clHead, .clRow { display: grid; grid-template-columns: 26px 44px minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, .9fr) 76px 110px; gap: 10px; align-items: center; padding: 6px 18px; font-size: 13px; }
.clHead { font-size: 11.5px; color: var(--ink2); font-weight: 600; border-bottom: 1px solid var(--line); }
.clRow { border-bottom: 1px solid #EFE7D8; } .clRow.on { background: #EEF4EF; } .clRow.peek { box-shadow: inset 3px 0 0 var(--accent); }
.clRow > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clName { border: 0; background: transparent; padding: 0; font: inherit; font-weight: 500; color: var(--ink); text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clName:hover { text-decoration: underline; }
.clTh { width: 44px; height: 32px; border-radius: 7px; object-fit: cover; background: var(--sand); display: block; }
.clFile { display: flex !important; align-items: center; justify-content: center; background: #F3EBD6 !important; color: #8A6A1F; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.w-cloud { color: var(--accent); font-weight: 600; } .w-device { color: #B4532A; } .w-gone { color: var(--ink2); }
.clGrpHd { display: flex; align-items: center; gap: 10px; padding: 12px 18px 6px; position: sticky; top: 46px; background: var(--bg2); z-index: 2; }
.clGrpHd b { font: 600 16px var(--serif); } .clGrpHd small { color: var(--ink2); }
.clList { padding-bottom: 30px; }
.clPeek { width: 300px; flex: none; background: var(--surface); border-left: 1px solid var(--line); padding: 16px; box-sizing: border-box; font-size: 13px; display: flex; flex-direction: column; gap: 10px; }
.clBig { width: 100%; height: 200px; object-fit: cover; border-radius: 14px; background: var(--sand); display: block; }
.clPeek h3 { font: 600 17px var(--serif); margin: 0; }
.clInfo { display: grid; grid-template-columns: 86px 1fr; gap: 6px 10px; margin: 0; } .clInfo dt { color: var(--ink2); } .clInfo dd { margin: 0; }
.clEmpty { color: var(--ink2); padding: 20px 18px; margin: 0; }
.clRList { padding: 0 0 30px; }
.clRGrp { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 12px 18px 0; }
.clRGrp .clGrpHd { background: var(--surface); border-radius: 16px 16px 0 0; top: 46px; }
.clMini { width: 140px; height: 8px; border-radius: 5px; background: var(--sand); overflow: hidden; margin-left: auto; display: inline-flex; } .clMini i { background: var(--accent); }
.clTiles { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 14px 14px; }
.clTile { position: relative; width: 104px; height: 80px; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--sand); }
.clTile input { position: absolute; left: 6px; top: 6px; z-index: 2; width: 18px; height: 18px; }
.clTile.on { outline: 3px solid var(--accent); outline-offset: 1px; }
.clTimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.clTk { position: absolute; right: 4px; bottom: 4px; font-size: 9.5px; font-weight: 700; background: var(--surface); padding: 1px 5px; border-radius: 5px; color: var(--ink); }
.clTk:empty { display: none; }
.clNone0 { padding: 40px; text-align: center; } .clNone0 h3 { font: 600 22px var(--serif); }
.clMoveL { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
img.none { visibility: hidden; }
@media (max-width: 1100px) { .clPeek { display: none; } }
@media (max-width: 760px) {
  .clEx, .clRoom { flex-direction: column; }
  .clNav, .clSide { width: auto; border-right: 0; border-bottom: 1px solid var(--line); max-height: 46vh; overflow-y: auto; }
  .clHead { display: none; }
  .clRow { grid-template-columns: 26px 44px minmax(0, 1fr) 70px; } .clRow > span:nth-of-type(n) { display: none; } .clRow > span:nth-last-of-type(2) { display: block; }
  .clCtl .clSeg { margin-left: 0; }
  .clTile { width: calc(33.3% - 6px); }
  .clMini { display: none; }
}
#of .ofBody.ow-cloud { padding: 0 0 calc(20px + var(--safe-b)); }
#of .ofBody.ow-cloud > * { max-width: none; }
#of .ofBody .clSearch input { border: 0 !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 14px; }
#of .ofBody .clCtl select { padding: 6px 8px; font-size: 13px; }
.clCtl label { white-space: nowrap; }

/* ---- every feature, by date (news.js openList, v138) */
#nw .nwList { width: min(760px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border-radius: 20px; box-shadow: 0 24px 60px rgba(42,36,32,.3); overflow: hidden; }
#nw .nwLHd { display: flex; align-items: baseline; gap: 12px; padding: 18px 20px 6px; }
#nw .nwLHd h2 { font: 600 24px var(--serif); margin: 0; } #nw .nwLHd span { color: var(--ink2); font-size: 13px; flex: 1; }
#nw .nwX { border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--ink2); padding: 4px 8px; border-radius: 10px; } #nw .nwX:hover { background: var(--sand); }
#nw .nwLCtl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 6px 20px 12px; border-bottom: 1px solid var(--line); }
#nw .nwLCtl input { flex: 1; min-width: 180px; font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
#nw .nwSeg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
#nw .nwSeg button { border: 0; background: var(--surface); padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); } #nw .nwSeg button + button { border-left: 1px solid var(--line); }
#nw .nwSeg button[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 600; }
#nw .nwLBody { overflow-y: auto; padding: 4px 20px 20px; }
#nw .nwLBody h3 { font: 600 15px var(--serif); margin: 16px 0 6px; color: var(--ink2); position: sticky; top: 0; background: var(--surface); padding: 4px 0; }
#nw .nwItem { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid #EFE7D8; }
#nw .nwItem > div { flex: 1; min-width: 0; } #nw .nwItem b { font-size: 15px; } #nw .nwItem small { display: block; color: var(--ink2); font-size: 12px; margin: 2px 0 4px; }
#nw .nwItem p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
#nw .nwItem.seen b::after { content: ' ✓'; color: var(--accent); }
#nw .nwItem .nwDemo { flex: none; }
#nw .nwNone { color: var(--ink2); padding: 20px 0; }
@media (max-width: 560px) { #nw .nwItem { flex-direction: column; gap: 8px; } }

/* ---------- Flow on a phone: five layouts, his to switch (photoflow.js phoneHtml, Bryan, Nov 23 2026; canvas "Flow on the Phone") ---------- */
.fpW { gap: 0; padding-bottom: 110px; }
.fpSr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fpTop { display: flex; align-items: flex-end; gap: 8px; border-bottom: 1px solid var(--line); margin: -4px 0 12px; }
.fpTop .fpViews { flex: 1; min-width: 0; border-bottom: 0; margin: 0; }
.fpCloudBtn { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; border: 0; background: transparent; font: 500 13px var(--sans); color: var(--ink2); cursor: pointer; }
.fpUpTop { position: fixed; right: 18px; bottom: calc(22px + var(--gbB, 0px) + var(--safe-b)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(42,36,32,.28); cursor: pointer; }
.fpUpBar { position: fixed; left: 0; right: 0; bottom: calc(var(--gbB, 0px)); z-index: 40; padding: 10px 14px calc(14px + var(--safe-b)); background: var(--bg2); border-top: 1px solid var(--line); }
.fpUpBig { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 16px; background: var(--accent); color: #fff; font: 600 16px var(--sans); cursor: pointer; }
.fpViews { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 0 -2px 12px; padding: 0 2px; }
.fpViews::-webkit-scrollbar { display: none; }
.fpViews button { flex: none; min-height: 44px; border: 0; background: transparent; padding: 0; font: 500 14.5px var(--sans); color: var(--ink2); border-bottom: 2.5px solid transparent; cursor: pointer; }
.fpViews button.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.fpProg { margin: 0 0 10px; }
.fpW .pfSaid, .fpW .pfDup, .fpW .pfCloud { margin: 0 0 12px; }
.fpBody { display: flex; flex-direction: column; gap: 12px; }
.fpEmpty, .fpNone { margin: 0; padding: 18px 16px; text-align: center; color: var(--ink2); font-size: 14px; background: var(--surface); border: 1px dashed var(--line); border-radius: 16px; }
.fpNone { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.fpPlops { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.fpPlops .skLink { min-height: 40px; }
.fpTh { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--sand); flex: none; display: block; }
.fpChips { display: flex; gap: 4px; flex: none; }
.fpChips i { font: 700 10.5px/1 var(--sans); letter-spacing: .03em; padding: 4px 6px; border-radius: 6px; font-style: normal; }
.fpChips .ok { background: #E3ECE7; color: #2F5D50; } .fpChips .warn { background: #F5EBD3; color: #7A5A12; } .fpChips .red { background: #F6E1DC; color: #9E3424; } .fpChips .none { background: var(--sand); color: var(--ink2); }
.fpLoose { border: 0; background: transparent; text-align: left; padding: 6px 2px; min-height: 40px; font: 500 13.5px var(--sans); color: var(--accent); cursor: pointer; }
.fpIc { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; font: 600 22px/1 var(--sans); color: var(--ink); cursor: pointer; }
.fpIc:hover { background: var(--sand); }
/* A · the feed */
.fpTabs { display: flex; gap: 20px; margin-top: -4px; }
.fpTabs button { min-height: 40px; border: 0; background: transparent; padding: 0; font: 500 14px var(--sans); color: var(--ink2); border-bottom: 2px solid transparent; cursor: pointer; }
.fpTabs button.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.fpTabs b { color: #9E3424; }
.fpFeed { display: flex; flex-direction: column; gap: 14px; }
.fpDay { display: flex; flex-direction: column; gap: 10px; }
.fpDayHd { display: flex; align-items: baseline; gap: 8px; margin: 4px 2px 0; font: 600 19px var(--serif); color: var(--ink); }
.fpDayHd small { flex: 1; font: 400 13px var(--sans); color: var(--ink2); }
.fpDayHd em { font: 600 12.5px var(--sans); font-style: normal; color: var(--ink2); }
.fpDayHd em.red { color: #9E3424; } .fpDayHd em.ok { color: var(--accent); } .fpDayHd em.warn { color: #7A5A12; }
.fpCard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 0 8px; overflow: hidden; }
.fpCardHd { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px 4px; border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--ink); }
.fpCardHd > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fpCardHd b { font: 600 15.5px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpCardHd small, .fpBigTx small, .fpRow small { font-size: 12.5px; color: var(--ink2); }
.fpStrip { display: flex; gap: 6px; width: 100%; padding: 8px 14px 0; border: 0; background: transparent; overflow-x: auto; scrollbar-width: none; cursor: pointer; }
.fpStrip::-webkit-scrollbar { display: none; }
.fpStrip .fpTh { width: 84px; height: 84px; }
.fpStrip .fpNone { padding: 10px; width: 100%; }
.fpCardFt { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px 0; font-size: 13.5px; color: var(--ink2); }
.fpLink { min-height: 40px; border: 0; background: transparent; padding: 0; font: 600 14px var(--sans); color: var(--accent); cursor: pointer; }
.fpLink::after { content: ' ›'; }
.fpLink.done { color: var(--ink2); font-weight: 500; }
/* B · one day at a time */
.fpWeekHd { display: flex; align-items: center; gap: 6px; }
.fpWeekHd b { flex: 1; font: 600 16px var(--sans); }
.fpWeek { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.fpWeek button { height: 62px; border: 0; border-radius: 14px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 500 11px var(--sans); color: var(--ink2); cursor: pointer; }
.fpWeek button b { font-size: 17px; color: var(--ink); }
.fpWeek button.today b { text-decoration: underline; text-underline-offset: 3px; }
.fpWeek button.on { background: var(--accent); color: #fff; } .fpWeek button.on b { color: #fff; }
.fpWeek i { width: 6px; height: 6px; border-radius: 50%; }
.fpWeek i.ok { background: var(--accent); } .fpWeek i.red, .fpWeek i.warn { background: #B5432F; } .fpWeek i.off { background: #C49A3A; }
.fpWeek button.on i.ok { background: #CFE3D9; } .fpWeek button.on i.red, .fpWeek button.on i.warn { background: #F4B7A9; }
.fpDayBody { display: flex; flex-direction: column; gap: 12px; touch-action: pan-y; }
.fpBigDay { margin: 6px 2px 0; font: 600 22px var(--serif); }
.fpDaySub { margin: -8px 2px 0; font-size: 13px; color: var(--ink2); }
.fpDaySub .red { color: #9E3424; } .fpDaySub .ok { color: var(--accent); } .fpDaySub .warn { color: #7A5A12; }
.fpBigCard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.fpBigCard .pfPh.fpPhoto { height: 210px; border-radius: 0; }
.fpBigTx { display: flex; flex-direction: column; padding: 12px 14px 14px; }
.fpNo { font: 600 11.5px var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink2); }
.fpName { border: 0; background: transparent; padding: 2px 0; text-align: left; font: 600 17px var(--sans); color: var(--ink); cursor: pointer; }
.fpSteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.fpStep { border: 0; border-top: 4px solid var(--line); background: transparent; padding: 7px 0 2px; text-align: left; font: 500 12.5px var(--sans); color: var(--ink2); display: flex; flex-direction: column; gap: 1px; cursor: pointer; min-height: 48px; }
.fpStep b { color: var(--ink); font-size: 13.5px; }
.fpStep.ok { border-top-color: var(--accent); color: var(--accent); } .fpStep.warn { border-top-color: #C49A3A; color: #7A5A12; } .fpStep.red { border-top-color: #B5432F; color: #9E3424; }
.fpGo { margin-top: 14px; height: 50px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; font: 600 15px var(--sans); cursor: pointer; }
.fpGo.done { background: var(--sand); color: var(--accent); }
.fpSwipeHint { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 0; font-size: 12.5px; color: var(--ink2); }
/* C · what's left first */
.fpSum { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--accent); color: #fff; }
.fpSum > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.fpSum small { font-size: 13px; opacity: .88; }
.fpSum b { font: 600 26px/1.15 var(--serif); }
.fpSum svg text { font-family: var(--sans); }
.fpGrp h2 { margin: 6px 4px 8px; font: 700 12px var(--sans); letter-spacing: .08em; color: #9E3424; }
.fpGrp h2 span { color: var(--ink2); font-weight: 600; letter-spacing: 0; }
.fpGrp.soft h2 { color: var(--ink2); }
.fpList { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.fpRow { display: flex; align-items: center; border-top: 1px solid #EFE7D8; }
.fpRow:first-child { border-top: 0; }
.fpRowGo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 12px; border: 0; background: transparent; text-align: left; color: var(--ink); cursor: pointer; }
.fpRowGo > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.fpRowGo b { font: 600 15px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpAct { flex: none; min-height: 44px; padding: 0 14px; border: 0; background: transparent; font: 600 14px var(--sans); color: var(--accent); cursor: pointer; }
.fpDoneHd { display: flex; justify-content: space-between; width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font: 500 14.5px var(--sans); color: var(--ink); cursor: pointer; align-items: center; }
.fpDoneHd span:first-child { color: var(--accent); font-weight: 600; }
.fpGrp.done .fpList { margin-top: 8px; }
/* D · the calendar and its sheet */
.fpMonHd { display: flex; align-items: center; gap: 2px; }
.fpMonHd b { flex: 1; font: 600 20px var(--serif); }
.fpCalW, .fpCal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.fpCalW span { text-align: center; font: 600 11.5px var(--sans); color: var(--ink2); padding: 2px 0 4px; }
.fpCal { row-gap: 2px; }
.fpCal button { height: 46px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; cursor: pointer; }
.fpCal button b { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 500 15px var(--sans); color: var(--ink); }
.fpCal button.work b { background: var(--sand); }
.fpCal button.today b { font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--ink); }
.fpCal button.miss b { box-shadow: inset 0 0 0 1.5px #B5432F; }
.fpCal button.on b { background: var(--accent); color: #fff; box-shadow: none; font-weight: 700; }
.fpCal i { width: 5px; height: 5px; border-radius: 50%; }
.fpCal i.ok { background: var(--accent); } .fpCal i.red, .fpCal i.warn { background: #B5432F; } .fpCal i.off { background: #C49A3A; }
.fpKey { display: flex; justify-content: center; gap: 14px; margin: 2px 0 0; font-size: 11.5px; color: var(--ink2); }
.fpKey i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: 0; }
.fpKey i.ok { background: var(--accent); } .fpKey i.red { background: #B5432F; } .fpKey i.ring { box-shadow: inset 0 0 0 1.5px #B5432F; }
.fpSheet { margin: 6px -14px 0; padding: 8px 14px 18px; background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 24px rgba(42,36,32,.10); display: flex; flex-direction: column; gap: 10px; min-height: 40vh; }
.fpGrab { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.fpSheet h2 { display: flex; align-items: baseline; gap: 8px; margin: 2px 2px 0; font: 600 20px var(--serif); }
.fpSheet h2 span { flex: 1; } .fpSheet h2 small { font: 400 13px var(--sans); color: var(--ink2); }
.fpRow.big { border: 1px solid var(--line); border-radius: 16px; }
.fpRow.big .fpTh { width: 72px; height: 72px; }
.fpRow em { font: 600 12.5px var(--sans); font-style: normal; margin-top: 4px; }
.fpRow em.red { color: #9E3424; } .fpRow em.ok { color: var(--accent); }
/* E · one job site, full screen */
.fp-site .fpBody { gap: 0; }
.fpHeroWrap { position: relative; margin: 0 -14px; }
.fpHeroWrap .pfPh.fpHero { height: min(56vh, 460px); border-radius: 0; }
.fpHeroBar { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.fpHeroBar > * { pointer-events: auto; }
.fpHeroBar span { margin: 0 auto; padding: 7px 12px; border-radius: 12px; background: rgba(255,253,248,.95); font: 600 13px var(--sans); color: var(--ink); }
.fpRound { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,253,248,.95); font: 600 22px/1 var(--sans); color: var(--ink); cursor: pointer; box-shadow: 0 1px 4px rgba(42,36,32,.25); }
.fpHeroWrap .pfMore { top: 64px; }
.fpSheet2 { position: relative; margin: -22px -14px 0; padding: 18px 16px 10px; border-radius: 22px 22px 0 0; background: var(--surface); display: flex; flex-direction: column; gap: 12px; touch-action: pan-y; }
.fpSheet2 h2 { margin: 0; font: 600 24px/1.15 var(--serif); color: var(--ink); }
.fpSub { margin: -8px 0 0; font-size: 13px; color: var(--ink2); }
.fpSheet2 .fpSteps { margin-top: 0; }
.fpSheet2 .fpStep { min-height: 96px; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; justify-content: space-between; }
.fpSheet2 .fpStep b { font-size: 17px; }
.fpSheet2 .fpStep.ok { border-color: var(--accent); background: #E3ECE7; } .fpSheet2 .fpStep.red { border-color: #B5432F; background: #FBEFEC; } .fpSheet2 .fpStep.warn { border-color: #C49A3A; background: #FBF4E4; }
.fpPrevNext { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.fpPrevNext .skLink { max-width: 48%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 40px; }
.fpWorkHd { margin-bottom: 6px; }
.fpW .pfAll { cursor: pointer; border: 0; }
.fpW .pfCt.fpAll { cursor: pointer; border: 0; }
.fpHeroWrap .pfCt { bottom: 32px; }

/* ---------- the "are you sure?" card (app.js CAMISure: the browser in the Claude app never shows the browser's own box) ---------- */
#wfSure { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(42,36,32,.36); animation: wfSureIn .15s ease-out; }
#wfSure .wfSureCard { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 16px; box-shadow: 0 24px 60px rgba(42,36,32,.3); }
#wfSure p { margin: 0 0 18px; font: 500 16px/1.4 var(--sans); color: var(--ink); }
#wfSure .wfSureBtns { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
#wfSure button { min-height: 44px; padding: 0 16px; border-radius: 12px; font: 600 14.5px var(--sans); cursor: pointer; }
#wfSure .wfSureNo { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
#wfSure .wfSureYes { border: 0; background: var(--accent); color: #fff; }
#wfSure .wfSureYes.danger { background: #9E3424; }
#wfSure .wfSureAlt { border: 0; background: none; color: #9E3424; text-decoration: underline; margin-right: auto; padding: 0 4px; }
#wfSure .wfSureBtns:has(.wfSureAlt) { flex-wrap: wrap; }
@keyframes wfSureIn { from { opacity: 0; } to { opacity: 1; } }

/* ---- v140: the DAR task card his way (canvas "DAR Task Card") */
:is(#of, .owHost) .owF.c2 { grid-column: 1 / -1; }
@media (min-width: 1100px) { :is(#of, .owHost) .dwSheet .owForm > .owF.c2 { grid-column: span 2; } }
:is(#of, .owHost) .pfMerged .dwSheet .owForm > .owF.c2 { grid-column: span 2 !important; }
@media (max-width: 1250px) { :is(#of, .owHost) .pfMerged .dwSheet .owForm > .owF.c2 { grid-column: 1 / -1 !important; } }
:is(#of, .owHost) .owFormHd { justify-content: flex-start; gap: 10px 14px; }
:is(#of, .owHost) .owFormHd h3 { font: 600 22px var(--serif); margin: 0; }
.owCodeL { display: flex; align-items: center; gap: 8px; font: 600 12.5px var(--sans); color: var(--ink2); }
:is(#of, .owHost) .owCodeL select { width: auto; font-weight: 600; }
.owHrs { font: 500 13.5px var(--sans); color: var(--ink2); white-space: nowrap; }
.owFormHd .owSaved { margin-left: 0 !important; }
.owFormHd .owFormActs { margin-left: auto; }
.owConf { flex: 1 1 320px; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 12px; background: #FBEFEC; border: 1px solid #E8C4BB; font: 500 13.5px var(--sans); color: var(--ink); transition: opacity .25s, transform .25s; }
.owConf[hidden] { display: none; }
.owConf.gone { opacity: 0; transform: translateY(-4px); }
.owConf svg { flex: none; }
.owConf > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owConf b { color: #9E3424; }
.owConf .skLink { font-weight: 600; white-space: nowrap; color: var(--ink2); }
.owConf .skLink.red { color: #9E3424; }
.owForm.owFixed { animation: owFixed 1.4s ease; }
@keyframes owFixed { 0% { box-shadow: 0 0 0 3px rgba(47,93,80,.55); } 100% { box-shadow: 0 0 0 0 rgba(47,93,80,0); } }
/* required boxes: a red * inside while empty */
:is(#of, .owHost) .owF.req { position: relative; }
:is(#of, .owHost) .owF.req.miss::after { content: '*'; position: absolute; right: 10px; bottom: 9px; color: #C0392B; font: 700 20px/1 var(--sans); pointer-events: none; }
:is(#of, .owHost) .owF.req.miss:has(input[type=time])::after { right: 40px; }
:is(#of, .owHost) .owF.req.miss:has(select)::after { right: 30px; }
:is(#of, .owHost) .owF.req.miss input { padding-right: 26px; }
:is(#of, .owHost) #owLoc.gps { border: 1.5px dashed #C49A3A; background: #FFFBF0; }
/* the vehicle: folder tabs sitting right on the box */
:is(#of, .owHost) .owVeh2 { border: 0; padding: 0; background: transparent; margin: 8px 0 2px; }
:is(#of, .owHost) .owVeh2[disabled] { background: transparent; }
.owVTabs { display: flex; gap: 4px; align-items: flex-end; position: relative; z-index: 1; margin-bottom: -1px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.owVTabs::-webkit-scrollbar { display: none; }
.owVTab { flex: none; white-space: nowrap; height: 34px; padding: 0 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--sand); font: 600 13px var(--sans); color: var(--ink2); cursor: pointer; }
.owVTab[aria-selected="true"], .owVTab.add.on { background: var(--surface); color: var(--ink); font-weight: 700; }
.owVTab.add { height: 30px; border-style: dashed; color: var(--accent); }
.owVTab.add.on { height: 34px; border-style: solid; }
.owVBox { border: 1px solid var(--line); border-radius: 0 14px 14px 14px; padding: 12px 14px; display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; font: 500 14px var(--sans); background: var(--surface); }
.owVBox .owMiRead b { font-size: 15px; }
.owVSp { flex: 1; }
.owMiSet { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.owVeh2 .owOffNote { margin-top: 6px; }
/* the DAR's own bar, under its tasks */
:is(#of, .owHost) .dwSheet { padding-bottom: 0; overflow: hidden; }
:is(#of, .owHost) .dwTop { display: flex; align-items: center; gap: 12px; padding: 2px 0 12px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
:is(#of, .owHost) .dwTop > div { flex: 1; min-width: 0; }
:is(#of, .owHost) .dwLoc { margin: 0; font: 600 22px var(--serif); }
.dwLoc i, .pfWorkHd b i { color: var(--ink2); font-style: italic; font-weight: 500; }
:is(#of, .owHost) .dwTop p { margin: 2px 0 0; font: 500 13.5px var(--sans); color: var(--ink2); }
.dwGps { color: #7A5A12; font-weight: 600; } .dwOk { color: var(--accent); font-weight: 600; }
:is(#of, .owHost) .dwFoot { margin: 4px -16px 0; background: #F3F8F5; border-top: 2px solid var(--accent); padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
:is(#of, .owHost) .dwFoot .dwHd { border-bottom: 0; padding-bottom: 0; }
:is(#of, .owHost) .dwFoot .owTot { margin: 0; border-top: 1px solid #E3ECE7; padding-top: 8px; }
.dwFootTip { margin: 0; font: 500 13px var(--sans); color: var(--ink2); }
.dwNeed { font: 600 13px var(--sans); color: #9E3424; }
:is(#of, .owHost) .owBtn.main:disabled { background: #D9D3C7; border-color: #D9D3C7; color: #8A8174; cursor: not-allowed; }
:is(#of, .owHost) .owBtn.danger { background: #9E3424; border-color: #9E3424; color: #fff; }
.pfWorkActs { display: flex; align-items: center; gap: 10px; }
/* Resolve: both tiles, Cami pointing; green checks and Okay once it's fixed */
#owRes { position: fixed; inset: 0; z-index: 9000; background: rgba(42,36,32,.45); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .2s; font-family: var(--sans); color: var(--ink); }
#owRes.in { opacity: 1; } #owRes.out { opacity: 0; }
#owRes .orCard { width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; background: var(--surface); border-radius: 22px; padding: 22px 24px; box-shadow: 0 24px 60px rgba(42,36,32,.35); display: flex; flex-direction: column; gap: 16px; transform: translateY(12px) scale(.98); transition: transform .25s; }
#owRes.in .orCard { transform: none; }
#owRes.done { animation: orFade .52s ease forwards; }
#owRes.done .orCard { animation: orAway .52s cubic-bezier(.5,0,.75,0) forwards; }
@keyframes orAway { 0% { transform: none; } 30% { transform: scale(1.02); } 100% { transform: translateY(40vh) scale(.25); opacity: 0; } }
@keyframes orFade { 0%, 40% { opacity: 1; } 100% { opacity: 0; } }
.orHd { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.orHd h2 { margin: 0; font: 600 24px var(--serif); }
.orHd span { font-size: 14px; color: var(--ink2); }
.orCard.ok .orHd span { color: var(--accent); font-weight: 600; }
.orLine { position: relative; height: 54px; border-radius: 12px; background: var(--sand); }
.orBar { position: absolute; height: 20px; border-radius: 6px; font: 600 11.5px var(--sans); padding-left: 8px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; transition: left .2s, width .2s; }
.orBar.b0 { top: 6px; background: var(--accent); color: #fff; } .orBar.b1 { top: 28px; background: #C49A3A; color: var(--ink); }
.orHatch { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(181,67,47,.55) 0 4px, transparent 4px 8px); border-left: 2px solid #B5432F; border-right: 2px solid #B5432F; }
.orTiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.orTile { border: 2px solid #B5432F; border-radius: 18px; padding: 16px; position: relative; transition: border-color .3s, background .3s; }
.orTile.ok { border-color: var(--accent); background: #F3F8F5; }
.orChk { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; animation: orPop .35s ease; }
@keyframes orPop { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
.orTH { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-right: 36px; } .orTH b { font-size: 16px; } .orTH span { font-size: 12.5px; color: var(--ink2); }
.orLoc { font-size: 13.5px; color: var(--ink2); margin-top: 2px; min-height: 1em; }
.orTime { font: 600 24px var(--serif); margin-top: 10px; } .orTime .bad { color: #9E3424; }
.orMore { margin: 6px 0 0; font: 600 12.5px var(--sans); color: #9E3424; }
.orAdj { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; }
.orG { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; margin-right: 10px; }
.orG i, .orU { font: 700 11px var(--sans); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.orAdj button { height: 36px; min-width: 48px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: 600 13px var(--sans); color: var(--ink); cursor: pointer; }
.orAdj button:hover { background: var(--sand); }
.orCami { display: flex; align-items: center; gap: 14px; }
.orCami p { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(42,36,32,.12); font-size: 13.5px; line-height: 1.35; }
.orOrb { flex: none; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #E3F3EA, #9CCBB2 60%, rgba(156,203,178,0) 72%); box-shadow: 0 0 22px 8px rgba(156,203,178,.55); animation: orBeat 1.1s ease-in-out infinite; position: relative; }
.orOrb i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(156,203,178,.6); animation: orRing 1.1s ease-out infinite; }
@keyframes orBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(.97); } }
@keyframes orRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.orFt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.orFt > span { flex: 1; font-size: 13.5px; } .orFt .bad { color: #9E3424; } .orFt .ok { color: var(--ink2); }
#owRes .owBtn { height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: 600 14.5px var(--sans); color: var(--ink); cursor: pointer; }
#owRes .owBtn.main { background: var(--accent); border-color: var(--accent); color: #fff; }
#owRes .owBtn.main:disabled { background: #C9D3CE; border-color: #C9D3CE; cursor: not-allowed; }
@media (max-width: 640px) { .orTiles { grid-template-columns: minmax(0, 1fr); } #owRes .orCard { padding: 16px; } .orTime { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .orOrb, .orOrb i, #owRes.done .orCard, .owForm.owFixed { animation: none !important; } }
/* ---- photos with no location information: the card and the review sheet */
.fpLoose { display: flex; flex-direction: column; gap: 2px; width: 100%; box-sizing: border-box; border: 1.5px dashed #C49A3A !important; border-radius: 16px; background: #FFFBF0 !important; padding: 12px 14px !important; margin: 4px 0 8px; }
.fpLoose b { font: 600 14.5px var(--sans); color: var(--ink); } .fpLoose span { font: 600 14px var(--sans); color: var(--accent); }
.pfRevGo { width: 100%; }
.pfRvBg { position: fixed; inset: 0; z-index: 8500; background: rgba(42,36,32,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pfRv { width: min(980px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; background: var(--surface); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 60px rgba(42,36,32,.35); }
.pfRvHd { display: flex; align-items: flex-start; gap: 12px; } .pfRvHd > div { flex: 1; min-width: 0; }
.pfRvHd h3 { margin: 0; font: 600 22px var(--serif); } .pfRvHd p { margin: 4px 0 0; font: 500 13.5px var(--sans); color: var(--ink2); }
.pfRvBar { display: flex; align-items: center; gap: 14px; font: 600 13.5px var(--sans); color: var(--ink2); position: sticky; top: -18px; background: var(--surface); padding: 6px 0; z-index: 1; }
.pfRvGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pfRvPh { position: relative; aspect-ratio: 4 / 3; border: 2px solid transparent; border-radius: 12px; overflow: hidden; padding: 0; background: var(--sand); cursor: pointer; }
.pfRvPh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfRvPh i { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,253,248,.85); border: 1.5px solid #fff; color: transparent; font: 700 14px/23px var(--sans); font-style: normal; text-align: center; }
.pfRvPh small { position: absolute; left: 6px; bottom: 6px; background: rgba(42,36,32,.65); color: #fff; font: 600 11.5px var(--sans); padding: 2px 6px; border-radius: 6px; }
.pfRvPh.on { border-color: var(--accent); } .pfRvPh.on i { background: var(--accent); color: #fff; border-color: var(--accent); }
.pfRvDoc { display: flex; align-items: center; justify-content: center; height: 100%; padding: 8px; font: 600 12px var(--sans); color: var(--ink2); }
.pfRvDest h4 { margin: 4px 0 2px; font: 600 18px var(--serif); }
.pfRvSub { margin: 10px 0 6px; font: 700 11px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink2); }
.pfRvList { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pfRvTo { text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.pfRvTo b { font: 600 14.5px var(--sans); color: var(--ink); } .pfRvTo small { font: 500 12.5px var(--sans); color: var(--ink2); }
.pfRvTo:hover:not(:disabled) { border-color: var(--accent); background: #F3F8F5; }
.pfRvTo:disabled { opacity: .5; cursor: not-allowed; }
.pfRvNew { display: flex; gap: 8px; } .pfRvNew input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: 500 15px var(--sans); }
.pfRvNew .owBtn:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 600px) { .pfRvBg { padding: 0; } .pfRv { max-height: 100vh; height: 100%; border-radius: 0; } .pfRvGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .pfRvList { grid-template-columns: minmax(0, 1fr); } }

/* ---- v142: Cami builds it (build.js): the chat thread, and side by side on a computer */
#cb { --accent: #2F5D50; position: fixed; inset: 0; z-index: 8000; background: var(--bg, #F7F2E8); color: var(--ink); font-family: var(--sans); display: grid; grid-template-columns: minmax(0, 1fr); }
#cb.split { grid-template-columns: minmax(380px, 520px) minmax(0, 1fr); }
#cb.thread .cbChat { width: min(720px, 100%); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.cbChat { display: flex; flex-direction: column; min-height: 0; height: 100%; background: var(--surface); box-sizing: border-box; }
#cb.split .cbChat { border-right: 1px solid var(--line); }
.cbHd { display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.cbHd > div:first-of-type { flex: 1; min-width: 0; display: flex; flex-direction: column; } .cbHd b { font: 600 19px var(--serif); } .cbHd div span { font-size: 12.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbOrb { flex: none; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #E3F3EA, #9CCBB2 62%, rgba(156,203,178,0) 74%); box-shadow: 0 0 14px 4px rgba(156,203,178,.5); position: relative; animation: orBeat 1.4s ease-in-out infinite; }
.cbView { display: flex; gap: 4px; } .cbView button, .cbNew { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: 600 12.5px var(--sans); color: var(--ink); cursor: pointer; }
.cbView button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.cbX { width: 44px; height: 44px; border: 0; background: transparent; font: 600 24px var(--sans); color: var(--ink2); cursor: pointer; }
.cbProg { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); font: 600 12.5px var(--sans); color: var(--ink2); }
.cbProg span { flex: 1; height: 6px; border-radius: 3px; background: var(--sand); overflow: hidden; } .cbProg span i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s; }
.cbProg em { font-style: normal; } .cbProg u { text-decoration: none; color: #C9BDA6; } .cbProg b.on, .cbProg b.ok { color: var(--accent); }
.cbMain { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.cbCami, .cbMe, .cbChoices { flex: none; }
.cbCami, .cbMe { max-width: 86%; border-radius: 16px 16px 16px 4px; font-size: 14.5px; line-height: 1.4; animation: cbIn .25s ease; }
@keyframes cbIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cbCami { align-self: flex-start; background: var(--bg, #F7F2E8); border: 1px solid var(--line); overflow: hidden; } .cbCami.err { border-color: #E8C4BB; background: #FBEFEC; }
.cbMe { align-self: flex-end; background: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; }
.cbCami p, .cbMe p { margin: 0; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cbFiles { display: block; padding: 8px 12px 0; font: 600 12.5px var(--sans); opacity: .9; } .cbMe .cbFiles:last-child { padding-bottom: 8px; }
.cbPin { position: relative; height: 120px; background: #EFE9DC; } .cbPin svg { width: 100%; height: 100%; display: block; } .cbPinMap { position: absolute; inset: 0; }
.cbPin span { position: absolute; left: 8px; bottom: 6px; background: rgba(255,253,248,.92); border-radius: 8px; padding: 2px 8px; font: 600 12px var(--sans); z-index: 2; }
.cbSk { display: block; width: 100%; padding: 0; border: 0; border-top: 1px solid var(--line); background: #FBF9F4; cursor: pointer; } .cbSk img { display: block; width: 100%; max-height: 300px; object-fit: contain; } .cbSk.big { border: 0; flex: 1; min-height: 0; } .cbSk.big img { max-height: none; height: 100%; }
.cbChoices { display: flex; gap: 8px; flex-wrap: wrap; }
.cbChoices button, .cbActs button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: 600 14px var(--sans); color: var(--ink); cursor: pointer; }
.cbChoices button.main, .cbActs button.main { background: var(--accent); border-color: var(--accent); color: #fff; } .cbActs button:disabled { background: #D9D3C7; border-color: #D9D3C7; color: #8A8174; cursor: not-allowed; }
.cbTyping p { display: flex; gap: 4px; padding: 14px 14px; } .cbTyping i { width: 7px; height: 7px; border-radius: 50%; background: #9CCBB2; animation: cbDot 1s infinite; } .cbTyping i:nth-child(2) { animation-delay: .15s; } .cbTyping i:nth-child(3) { animation-delay: .3s; }
@keyframes cbDot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.cbFt { display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.cbPlus { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--sand); font: 600 24px/42px var(--sans); text-align: center; color: var(--accent); cursor: pointer; }
.cbBox { flex: 1; min-width: 0; } .cbBox span { position: absolute; left: -9999px; }
#cb #cbIn { width: 100%; box-sizing: border-box; height: 44px; border: 1px solid var(--line); border-radius: 22px; padding: 0 14px; font: 16px var(--sans); background: #fff; color: var(--ink); }
.cbMic, .cbSend { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cbMic { background: var(--sand); color: var(--accent); } .cbMic.on { background: #B5432F; color: #fff; }
.cbSide { min-width: 0; min-height: 0; overflow: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; }
.cbSideHd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .cbSide h2 { margin: 0; font: 600 24px var(--serif); flex: 1; }
.cbTag { font: 600 12.5px var(--sans); padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink2); } .cbTag.ok { background: var(--accent); border-color: var(--accent); color: #fff; }
.cbCols { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 16px; flex: 1; min-height: 0; }
@media (max-width: 1250px) { .cbCols { grid-template-columns: minmax(0, 1fr); } }
.cbCard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.cbCardHd { display: flex; align-items: baseline; gap: 8px; } .cbCardHd b { font: 600 20px var(--serif); } .cbCardHd span { font-size: 12.5px; color: var(--ink2); flex: 1; }
.cbCardHd i { font: 700 11px var(--sans); font-style: normal; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; border: 1.5px solid #C49A3A; color: #7A5A12; } .cbCardHd i.ok { border-color: var(--accent); color: var(--accent); }
.cbCard dl { margin: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 10px; font-size: 14px; } .cbCard dt { color: var(--ink2); } .cbCard dd { margin: 0; font-weight: 600; } .cbCard dd.none, .cbScope p.none { color: #B8AC97; font-weight: 500; }
.cbScope { border-top: 1px solid var(--line); padding-top: 10px; } .cbScope span { font: 700 11px var(--sans); letter-spacing: .07em; color: var(--ink2); } .cbScope p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; }
.cbActs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; } .cbNote { margin: 0; font-size: 14px; color: var(--ink2); }
html.cb-on #camiFloat, html.cb-on #pfCami { z-index: 8100; } html.cb-on #camiFloat { display: none; }
@media (prefers-reduced-motion: reduce) { .cbOrb, .cbTyping i, .cbCami, .cbMe { animation: none; } }
/* ---- v142: Flow says when it's syncing; the no-location sheet: photo sizes, project tiles, Create New Project, Undo */
.pfSync { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px var(--sans); color: var(--ink2); white-space: nowrap; }
.pfSync svg { flex: none; } .pfSync.on { color: var(--accent); } .pfSync.on svg { animation: pfSpin 1s linear infinite; } .pfSync.ok svg { color: var(--accent); } .pfSync.bad { color: #9E3424; }
@keyframes pfSpin { to { transform: rotate(360deg); } }
.fpTop .pfSync b { display: none; } .fpTop .pfSync.on b, .fpTop .pfSync.bad b { display: inline; } .fpTop .pfSync { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .pfSync.on svg { animation: pfBlink 1.2s ease-in-out infinite; } @keyframes pfBlink { 50% { opacity: .35; } } }
.pfRvSp { flex: 1; }
.pfRvUndo { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: 600 13px var(--sans); color: var(--ink); cursor: pointer; }
.pfRvUndo:disabled { opacity: .45; cursor: not-allowed; }
.pfRvSz { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pfRvSz button { width: 36px; height: 36px; border: 0; background: var(--surface); font: 700 13px var(--sans); color: var(--ink2); cursor: pointer; } .pfRvSz button + button { border-left: 1px solid var(--line); }
.pfRvSz button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.pfRv.sz-s .pfRvGrid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.pfRv.sz-l .pfRvGrid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pfRvProjs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; align-items: start; }
.pfRvProj { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.pfRvProj header { background: var(--accent); color: #fff; padding: 10px 14px; display: flex; flex-direction: column; gap: 1px; } .pfRvProj header b { font: 700 16px var(--sans); letter-spacing: .02em; } .pfRvProj header span { font: 500 12.5px var(--sans); opacity: .9; min-height: 1em; }
.pfRvProj > .pfRvSub, .pfRvProj > .pfRvList, .pfRvProj > .pfRvNew, .pfRvProj > .pfRvNone { margin-left: 12px; margin-right: 12px; } .pfRvProj > .pfRvSub { margin-top: 2px; margin-bottom: 0; }
.pfRvProj .pfRvList { grid-template-columns: minmax(0, 1fr); } .pfRvNone { font: 500 13px var(--sans); color: var(--ink2); margin-top: 0; margin-bottom: 0; }
.pfRvNew .owBtn { min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: 600 14px var(--sans); color: var(--ink); cursor: pointer; }
.pfRvFoot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pfRvNPGo, .pfRvNPB .owBtn { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--accent); background: var(--surface); color: var(--accent); font: 600 14.5px var(--sans); cursor: pointer; } .pfRvNPB .owBtn.main { background: var(--accent); color: #fff; }
.pfRvNP h4 { margin: 0; font: 600 20px var(--serif); } .pfRvHint { margin: 4px 0 10px; font: 500 13px var(--sans); color: var(--ink2); }
.pfRvNPG { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; } .pfRvNPG label { display: flex; flex-direction: column; gap: 4px; font: 600 12px var(--sans); color: var(--ink2); } .pfRvNPG label.w { grid-column: 1 / -1; }
.pfRvNPG input { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: 500 15px var(--sans); color: var(--ink); background: #fff; min-width: 0; }
.pfRvErr { margin: 8px 0 0; font: 600 13px var(--sans); color: #9E3424; } .pfRvErr:empty { display: none; } .pfRvNPB { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
@media (max-width: 600px) { .pfRv.sz-s .pfRvGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pfRv.sz-l .pfRvGrid { grid-template-columns: minmax(0, 1fr); } .pfRvProjs, .pfRvNPG { grid-template-columns: minmax(0, 1fr); } .pfRvBar { flex-wrap: wrap; gap: 8px 10px; } }
/* ---- v142: delete a project (its folder) */
.flDelRow { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.btn.flDelProj { color: #9E3424; border-color: #E8C4BB; background: #FFFDF8; }
.btn.flDelProj:hover { background: #FBEFEC; }
.pfDelSite { flex: none; width: 40px; min-height: 40px; border: 1px solid #E8C4BB; border-radius: 12px; background: #FFFDF8; color: #9E3424; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pfDelSite:hover { background: #FBEFEC; }
.fpDelRow { margin: 10px 0 0; }
/* ---- v142: the DAR time slider is "Daylight" (his pick A): the day's sky and weather under the handles */
.pfTs.sky { height: 72px; margin: 0 16px; }
.pfTs.sky .pfTr { top: 28px; height: 22px; border-radius: 11px; box-shadow: inset 0 0 0 1px #E0D6C3; }
.pfTs.sky .pfIn { top: 28px; height: 22px; border-radius: 11px; background: rgba(47,93,80,.16); box-shadow: inset 0 0 0 2px #2F5D50; }
.pfTs.sky .pfTk { top: 22px; height: 8px; width: 3px; margin-left: -1.5px; }
.pfTs.sky .pfH { top: 21px; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; border: 2.5px solid #2F5D50; background: #FFFDF8; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(42,36,32,.18); transition: transform .12s; }
.pfTs.sky .pfH::after { content: none; }
.pfTs.sky .pfH:active, .pfTs.sky.on .pfH:focus { transform: scale(1.18); }
.pfTs.sky .pfH.tick { animation: pfTick .18s ease; }
@keyframes pfTick { 50% { transform: scale(1.28); } }
.pfTs.sky .pfEnd { top: 58px; }
.pfWxH { position: absolute; top: 0; transform: translateX(-50%); display: flex; align-items: center; gap: 1px; pointer-events: none; }
.pfWxH b { font: 600 10.5px var(--sans); color: var(--ink2); }
.pfTime { flex-wrap: wrap; } .pfWxSay { font-style: normal; font-size: 12px; color: #4F6F8F; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .pfTs.sky .pfH.tick { animation: none; } }
/* v143: the FAR's pay rows tied to the project's approved items and to the sketch */
.owPay .owItCell { white-space: nowrap; } .owItNo { font-weight: 700; margin-right: 8px; }
.owBtn.owAddIt { min-height: 38px; padding: 0 12px; font-size: 13px; }
:is(#of, .owHost, #pf) .owPay input.owLock, .owPay input.owLock { background: #F7F2E8; color: var(--ink); cursor: default; }
.owPay select { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 14px var(--sans); padding: 0 8px; }
.owPick { margin: 10px 0 4px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #FFFDF8; display: flex; flex-direction: column; gap: 12px; }
.owPickHd { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .owPickHd span { flex: 1; font-size: 13px; color: #5E554B; }
.owPickL { display: flex; flex-direction: column; gap: 6px; }
.owPickIt { display: grid; grid-template-columns: minmax(90px, auto) 1fr auto; gap: 12px; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #F7F2E8; text-align: left; font: 14px var(--sans); color: var(--ink); cursor: pointer; }
.owPickIt:hover { border-color: #2F5D50; } .owPickIt em { font-style: normal; font-weight: 600; color: #2F5D50; }
.owPickNew { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; } .owPickNew .owBtn { align-self: flex-start; }
.pgPrice { margin-left: 6px; color: #2F5D50; font-weight: 700; }
/* v143: the visit's photos across the top of the FAR (layout A, "FAR Photo Row") */
.owPhs { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.owPhHd { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; } .owPhHd h3 { margin: 0; } .owPhHd span { font-size: 13px; color: #5E554B; } .owPhHd i { flex: 1; } .owPhN { font-size: 13px; color: #2F5D50; }
.owPhWrap { position: relative; }
.owPhRow { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 3px 3px 6px; scrollbar-width: thin; }
.owPh { flex: none; width: 250px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; }
.owPhPic { position: relative; width: 250px; height: 250px; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: #E9DFC8; cursor: zoom-in; box-shadow: 0 0 0 1px var(--line); }
.owPhPic.on { box-shadow: 0 0 0 3px #2F5D50; }
.owPhPic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.owPhPic.away img { display: none; } .owPhPic.away::after { content: 'On your other device'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #5E554B; }
.owPhPic span { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 8px; background: rgba(42,36,32,.72); color: #FFFDF8; font: 600 12px var(--sans); }
.owPhBar { display: flex; align-items: center; gap: 4px; } .owPhBar i { flex: 1; }
.owPhBar label { display: flex; align-items: center; gap: 7px; min-height: 40px; font-size: 13px; font-weight: 600; cursor: pointer; } .owPhBar input { width: 18px; height: 18px; accent-color: #2F5D50; }
.owPhCami, .owPhDel { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.owPhCami { border: 0; background: #EAF1EC; } .owPhDel { border: 1px solid #E8C4BB; background: #FFFDF8; color: #9E3424; }
.owCamiDot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #E6F4EA 0%, #7FBF97 55%, rgba(127,191,151,0) 75%); flex: none; }
.owPhGo { position: absolute; top: 103px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #FFFDF8; box-shadow: 0 4px 12px rgba(42,36,32,.25); font: 700 22px var(--sans); color: var(--ink); cursor: pointer; } .owPhGo.prev { left: -6px; } .owPhGo.next { right: -6px; }
@media (max-width: 600px) { .owPh { width: 200px; } .owPhPic { width: 200px; height: 200px; } .owPhGo { display: none; } }
#owPhBig { position: fixed; inset: 0; z-index: 9500; background: #F1EADB; display: flex; flex-direction: column; gap: 12px; padding: 16px; box-sizing: border-box; font-family: var(--sans); color: var(--ink); }
.owBgHd { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .owBgHd b { font: 600 19px var(--serif); } .owBgHd span { font-size: 13px; color: #5E554B; } .owBgHd i { flex: 1; }
.owBgBody { flex: 1; min-height: 0; display: flex; gap: 14px; }
.owBgPic { position: relative; flex: 1; min-width: 0; border-radius: 18px; overflow: hidden; background: #E9DFC8; display: flex; align-items: center; justify-content: center; }
.owBgPic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.owBgPic.away::after { content: 'This photo is on your other device'; color: #5E554B; font-size: 14px; }
#owPhBig .owBtn { min-height: 44px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: #FFFDF8; color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }
#owPhBig .owBtn.main { background: #2F5D50; border-color: #2F5D50; color: #fff; } #owPhBig .owBtn.owBgDel { color: #9E3424; border-color: #E8C4BB; }
#owPhBig .skLink { background: none; border: 0; color: #2F5D50; font: 600 13.5px var(--sans); text-decoration: underline; cursor: pointer; padding: 4px 0; align-self: flex-start; }
.owBgGo { position: absolute; top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,253,248,.94); font: 700 24px var(--sans); color: var(--ink); cursor: pointer; } .owBgGo.prev { left: 14px; } .owBgGo.next { right: 14px; }
.owBgSide { flex: none; width: 320px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; } .owBgSide > i { flex: 1; }
.owBgUse { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border-radius: 14px; background: #FFFDF8; border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; cursor: pointer; } .owBgUse input { width: 20px; height: 20px; accent-color: #2F5D50; }
.owBgCami { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: #FFFDF8; border: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; } .owBgCami p, .owBgCami ul { margin: 0; } .owBgCami ul { padding-left: 18px; }
.owBgCamiHd { display: flex; align-items: center; gap: 8px; } .owPhKind { font-weight: 600; color: #2F5D50; } .owPhQ { background: #F7F2E8; border-radius: 10px; padding: 8px 10px; }
.owBgTeach { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: #5E554B; } .owBgTeach textarea { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font: 14px var(--sans); resize: vertical; }
.owBgDel { color: #9E3424; border-color: #E8C4BB; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.owErr { color: #9E3424; }
@media (max-width: 760px) { .owBgBody { flex-direction: column; } .owBgPic { flex: none; height: 55vh; } .owBgSide { width: auto; } }
/* v143: payment statements (his boilerplate per job) */
.owPayTxt { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.owStmts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: #5E554B; }
.owStmt { border: 0; background: none; padding: 6px 0; font: 600 13.5px var(--sans); color: #2F5D50; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.owStmt.pick { color: #2A2420; background: #EAF1EC; padding: 6px 10px; border-radius: 10px; text-decoration: none; }
.owStmt.on { color: #2A2420; text-decoration: none; } .owStmt.on::before { content: '✓ '; color: #2F5D50; }
.owCamiPick { display: flex; align-items: center; gap: 8px; }
.pgStmt { border-bottom: 1px solid var(--line); padding: 6px 0; } .pgStmt summary { display: flex; align-items: center; gap: 8px; cursor: pointer; } .pgStmt summary b { flex: 1; font-size: 13.5px; }
.pgStmt label { display: flex; flex-direction: column; gap: 3px; margin: 8px 0 6px; } .pgStmt input, .pgStmt textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; font: 14px var(--sans); background: #fff; }
/* v143: the FAR laid out like the company's form */
.owFar h4 { margin: 14px 0 6px; font: 600 14px var(--serif); color: var(--ink); }
.owPair { display: flex; align-items: center; gap: 6px; } .owPair input { flex: 1; min-width: 0; padding-left: 6px; padding-right: 2px; font-size: 13px; } .owPair i { font-style: normal; font-size: 12.5px; color: #5E554B; }
.owCodeWrap { overflow-x: auto; } .owCode { display: table; width: 100%; } .owCode .owSum td { white-space: nowrap; font-weight: 700; background: #F7F2E8; } .owCode input { min-width: 4.5em; } .owCode td:first-child input { min-width: 12em; } 
.owSigs { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 14px; } .owSigs > div { flex: 1; min-width: 200px; border-top: 1px solid var(--ink); padding-top: 6px; display: flex; flex-direction: column; } .owSigs small { font-size: 11px; color: #5E554B; } .owSigs b { font-family: var(--hand); font-size: 20px; } .owSigs span { font-size: 12.5px; color: #5E554B; }
/* v143: a GPS-only job site shows the map on its tile; a tap opens it big */
.pfSpot { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: #E9E4D8; cursor: zoom-in; display: block; }
.pfSpotIn { position: absolute; inset: 0; } .pfSpotMap { position: absolute; inset: 0; } .pfSpotMap .maplibregl-ctrl { display: none; }
.pfSpotTag { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 8px; background: rgba(42,36,32,.72); color: #FFFDF8; font: 600 12px var(--sans); pointer-events: none; }
#pfSpotBig { position: fixed; inset: 0; z-index: 9500; background: #F1EADB; display: flex; flex-direction: column; gap: 10px; padding: 16px; box-sizing: border-box; font-family: var(--sans); color: var(--ink); }
.pfSbHd { display: flex; align-items: center; gap: 12px; } .pfSbHd > div { flex: 1; display: flex; flex-direction: column; gap: 2px; } .pfSbHd b { font: 600 19px var(--serif); } .pfSbHd span { font-size: 13px; color: #5E554B; }
.pfSbMap { flex: 1; min-height: 0; border-radius: 18px; overflow: hidden; background: #E9E4D8; }
.pfSbTip { margin: 0; font-size: 13px; color: #5E554B; } .pfSbBtns { display: flex; align-items: center; gap: 10px; } .pfSbBtns span { flex: 1; }
#pfSpotBig .owBtn { min-height: 44px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: #FFFDF8; color: var(--ink); font: 600 14px var(--sans); cursor: pointer; } #pfSpotBig .pfSbDel { color: #9E3424; border-color: #E8C4BB; }
#pfSpotBig .skLink { background: none; border: 0; color: #2F5D50; font: 600 13.5px var(--sans); text-decoration: underline; cursor: pointer; }
/* v144: hop between the FAR's sections, copy a box or the whole report for the company system, a Saved mark */
.owFarNav { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 0; margin: 0 0 6px; background: var(--cream, #F7F2E8); border-bottom: 1px solid var(--line); }
.owFarNav button[data-a="farGo"] { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #FFFDF8; font: 600 12.5px var(--sans); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; } .owFarNav button[data-a="farGo"] b { color: #2F5D50; }
.owFarNav > span { flex: 1; } .owFarNav .skLink { padding: 0; border-bottom: 0; }
.owCopy { align-self: flex-end; margin: -4px 0 6px; padding: 2px 0; border-bottom: 0; font-size: 12.5px; }
.owSaved { margin-left: auto; font: 600 12px var(--sans); color: #2F5D50; opacity: 0; transition: opacity .3s; } .owSaved.on { opacity: 1; }
@media (max-width: 600px) { :is(#of, .owHost) .owFar .owGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } :is(#of, .owHost) .owFar .owGrid .owF.wide { grid-column: 1 / -1; } }

/* ---- v145 · the account on the far left, the search box with Cami, the layout button (Bryan, Nov 24 2026) */
#gbar .gbAcct { flex: none; height: 100%; padding: 0 10px 0 4px; border-bottom: 2px solid transparent; }
#gbar .gbAcct:hover { background: #F7F2E8; } #gbar .gbAcct.on { color: var(--gbAcc); border-bottom-color: var(--gbAcc); }
#gbar.gbPhone .gbAcct span { display: none; }
#gbar .gbSrch { flex: none; align-self: center; height: 32px; padding: 0 8px 0 3px; gap: 4px; border: 1px solid #E0D6C3; border-radius: 16px; background: #F7F2E8; margin: 0 6px; cursor: text; }
#gbar .gbSrch:focus-within { border-color: #2F5D50; background: #fff; box-shadow: 0 0 0 2px rgba(47,93,80,.14); }
#gbar .gbSrch input { width: 190px; border: 0; background: none; font: 13.5px var(--sans); color: var(--ink); outline: 0; padding: 0; min-width: 0; }
#gbar .gbSrch input::placeholder { color: #8a7f72; }
#gbar .gbSrch input::-webkit-search-cancel-button { display: none; }
#gbar .gbCami { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; background: radial-gradient(circle at 40% 38%, #d7efe4, #9fd3bf 62%, #6fb39b); color: #2F5D50; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
#gbar .gbCami svg { width: 17px; height: 17px; } #gbar .gbCami:hover { filter: brightness(1.06); transform: scale(1.06); }
#gbar .gbK { font: 600 10px var(--sans); color: #8a7f72; border: 1px solid #E0D6C3; border-radius: 6px; padding: 1px 5px; background: #FFFDF8; }
#gbar .gbSrch:focus-within .gbK { display: none; }
#gbar.gbPhone .gbSrch { width: 36px; padding: 0; justify-content: center; } #gbar.gbPhone .gbSrch input, #gbar.gbPhone .gbSrch .gbK { display: none; }
@media (max-width: 1180px) { #gbar .gbSrch input { width: 130px; } #gbar .gbK { display: none; } }
.gbSDrop { position: fixed; z-index: 9250; background: #FFFDF8; border: 1px solid #E0D6C3; border-radius: 16px; box-shadow: 0 14px 34px rgba(42,36,32,.22); padding: 6px; max-height: min(70vh, 560px); overflow-y: auto; font-family: var(--sans); }
.gbSDrop[hidden] { display: none; }
.gbSGo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px 4px 6px; } .gbSGo[hidden] { display: none; }
.gbSGo small { flex-basis: 100%; font: 700 10.5px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: #8a7f72; padding: 2px 4px; }
.gbSGo button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 600 13px var(--sans); padding: 7px 9px; cursor: pointer; }
.gbSGo button:hover { background: #F1EADB; } .gbSGo svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gbSDrop .results { position: static; margin: 0; border: 0; box-shadow: none; max-height: none; background: none; }
.gbSDrop .results.hidden { display: none; }
html.gb-srch body:not(.sketching) #topbar { display: none !important; } /* the bar's own search box does the job on a computer */
#gbar .gbTabs .gbI.gbTemp { font-style: normal; } #gbar .gbTabs .gbI.gbTemp::before { content: ''; position: absolute; left: 4px; right: 4px; top: 7px; bottom: 7px; border: 1px dashed #E0D6C3; border-radius: 9px; pointer-events: none; }
#gbar .gbTabs .gbI.gbArrive { animation: gbArrive .7s ease-out; }
@keyframes gbArrive { 0% { background: rgba(47,93,80,.0); } 35% { background: rgba(47,93,80,.14); } 100% { background: rgba(47,93,80,0); } }
#gbar .gbLayB { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; color: #5E554B; padding: 0; }
#gbar .gbLayB:hover, #gbar .gbLayB[aria-expanded="true"] { background: #F1EADB; color: #2F5D50; }
#gbar.gb-dock:not(.gbPhone) .gbLayB { margin: auto auto 0; }
#gbar.gb-dock.gbPhone .gbLayB { position: fixed; left: 10px; top: calc(112px + var(--safe-t, 0px)); width: 44px; height: 44px; background: #FFFDF8; border: 1px solid #E0D6C3; border-radius: 14px; box-shadow: 0 4px 12px rgba(42,36,32,.14); }
#gbar.gb-bottom.gbPhone .gbLayB { position: fixed; right: 10px; bottom: calc(74px + var(--safe-b, 0px)); width: 40px; height: 40px; background: #FFFDF8; border: 1px solid #E0D6C3; border-radius: 12px; box-shadow: 0 4px 12px rgba(42,36,32,.14); }
.gbPill .gbLayB { width: 42px !important; height: 42px !important; background: #F7F2E8 !important; }
/* the menus off the bar */
.gbAcctPop { padding: 6px; }
.gbMe { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; }
.gbMeAv { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; background: #F1EADB; color: #5E554B; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gbMeAv img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; } .gbMeAv > svg { width: 28px; height: 28px; }
.gbMeAv i { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: #2F5D50; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #FFFDF8; }
.gbMeAv i svg { width: 12px !important; height: 12px !important; }
.gbMeName { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; border: 0; background: none; text-align: left; cursor: pointer; padding: 6px; border-radius: 10px; color: var(--ink); font-family: var(--sans); }
.gbMeName:hover { background: #F1EADB; } .gbMeName b { font: 600 16px var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gbMeName small { grid-row: 2; font-size: 12px; color: #5E554B; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gbMeName span { grid-row: 1 / 3; grid-column: 2; font-size: 20px; color: #8a7f72; }
.gbAvMenu { margin: 0 6px 8px; border: 1px solid #E0D6C3; border-radius: 12px; padding: 4px; background: #F7F2E8; } .gbAvMenu[hidden] { display: none; }
.gbMs { border-top: 1px solid #E0D6C3; padding: 4px 0; }
.gbMi { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: none; color: var(--ink); font: 14px var(--sans); padding: 9px 10px; border-radius: 10px; cursor: pointer; text-align: left; min-height: 40px; box-sizing: border-box; }
.gbMi:hover { background: #F1EADB; } .gbMi > span { flex: 1; } .gbMi small { color: #8a7f72; font-size: 12px; } .gbMi kbd { font: 600 11px var(--sans); color: #8a7f72; border: 1px solid #E0D6C3; border-radius: 6px; padding: 1px 6px; }
.gbMi.gbRed { color: #A33B2B; }
.gbMn { min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; background: #C2412D; color: #fff; font: 700 11px/20px var(--sans); text-align: center; }
.gbMi2 span { display: flex; flex-direction: column; gap: 2px; } .gbMi2 b { font-weight: 600; } .gbMi2 small { font-size: 12.5px; color: #5E554B; line-height: 1.35; }
.gbLayPop, .gbShortPop, .gbHelpPop { padding: 8px 10px 12px; }
.gbLayPop .gbPh small { flex-basis: auto; flex: 1 1 100%; order: 3; }
.gbLaySec { padding: 8px 4px 4px; border-top: 1px solid #E0D6C3; margin-top: 4px; } .gbLaySec > b { display: block; font: 700 11px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: #5E554B; margin-bottom: 8px; }
.gbLayOpts { display: flex; flex-wrap: wrap; gap: 6px; }
.gbLayOpts button { border: 1px solid #E0D6C3; background: #FFFDF8; border-radius: 12px; padding: 8px 12px; font: 600 13px var(--sans); color: var(--ink); cursor: pointer; }
.gbLayOpts button:hover { border-color: #2F5D50; } .gbLayOpts button.on { background: #2F5D50; border-color: #2F5D50; color: #fff; }
.gbPick.gbPickS { grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.gbPickS .gbPk { padding: 7px 8px; gap: 8px; border-radius: 12px; } .gbPickS .gbPk svg { width: 40px; height: 27px; } .gbPickS .gbPk small { display: none; } .gbPickS .gbPk b { font-size: 12.5px; }
.gbSw { display: flex; align-items: flex-start; gap: 10px; padding: 6px 2px; cursor: pointer; } .gbSw input { margin-top: 3px; accent-color: #2F5D50; width: 18px; height: 18px; flex: none; }
.gbSw b { display: block; font: 600 13.5px var(--sans); } .gbSw small { display: block; font-size: 12px; color: #5E554B; line-height: 1.35; }
.gbKeys { width: 100%; border-collapse: collapse; font-size: 13.5px; } .gbKeys td { padding: 5px 4px; vertical-align: top; } .gbKeys td:first-child { white-space: nowrap; width: 1%; padding-right: 14px; color: #5E554B; }
.gbKeys kbd { display: inline-block; font: 600 11.5px var(--sans); color: var(--ink); border: 1px solid #E0D6C3; border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: #FFFDF8; }
/* support requests (support.js) */
#sr { position: fixed; inset: 0; z-index: 9300; background: rgba(42,36,32,.32); display: flex; align-items: flex-start; justify-content: center; padding: 56px 16px 16px; box-sizing: border-box; font-family: var(--sans); color: var(--ink); }
.srCard { width: min(760px, 100%); max-height: calc(100vh - 72px); display: flex; flex-direction: column; background: #FFFDF8; border: 1px solid #E0D6C3; border-radius: 20px; box-shadow: 0 20px 50px rgba(42,36,32,.28); overflow: hidden; }
.srHd { display: flex; align-items: center; gap: 12px; padding: 12px 14px 0 18px; border-bottom: 1px solid #E0D6C3; flex-wrap: wrap; }
.srHd > b { font: 600 20px var(--serif); padding-bottom: 10px; }
.srTabs { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; }
.srTabs button { border: 0; background: none; font: 600 13.5px var(--sans); color: #5E554B; padding: 10px 12px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.srTabs button.on { color: #2F5D50; border-bottom-color: #2F5D50; } .srTabs i, .srKinds i { font-style: normal; display: inline-block; min-width: 18px; border-radius: 9px; background: #C2412D; color: #fff; font: 700 11px/18px var(--sans); text-align: center; padding: 0 5px; box-sizing: border-box; }
.srKinds i { background: #E0D6C3; color: var(--ink); } .srKinds .on i { background: rgba(255,255,255,.25); color: #fff; }
.srX { border: 0; background: none; font: 600 18px var(--sans); color: #5E554B; cursor: pointer; padding: 6px 8px 14px; margin-left: auto; }
.srBody { overflow-y: auto; padding: 14px 18px 18px; }
.srLead { margin: 0 0 12px; color: #5E554B; font-size: 14px; line-height: 1.45; }
.srKinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.srKinds button { border: 1px solid #E0D6C3; background: #FFFDF8; border-radius: 12px; padding: 8px 12px; font: 600 13.5px var(--sans); color: var(--ink); cursor: pointer; }
.srKinds button.on { background: #2F5D50; border-color: #2F5D50; color: #fff; }
.srLab { display: block; font: 600 13.5px var(--sans); margin: 4px 0 6px; }
#sr textarea { width: 100%; box-sizing: border-box; border: 1px solid #E0D6C3; border-radius: 14px; padding: 10px 12px; font: 15px/1.45 var(--sans); color: var(--ink); background: #fff; resize: vertical; }
#sr textarea:focus { outline: 0; border-color: #2F5D50; box-shadow: 0 0 0 2px rgba(47,93,80,.14); }
.srChk { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin: 10px 0; } .srChk input { accent-color: #2F5D50; width: 18px; height: 18px; }
.srRow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; } .srEnd { margin-top: 14px; padding-top: 10px; border-top: 1px solid #E0D6C3; }
.srEmpty { text-align: center; padding: 28px 10px; color: #5E554B; } .srEmpty b { display: block; font: 600 17px var(--serif); color: var(--ink); }
.srReq { border: 1px solid #E0D6C3; border-radius: 16px; margin-bottom: 8px; background: #FFFDF8; } .srReq.open { border-color: #2F5D50; }
.srReqHd { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; border: 0; background: none; text-align: left; padding: 11px 14px; cursor: pointer; color: var(--ink); font-family: var(--sans); border-radius: 16px; }
.srReqHd:hover { background: #F7F2E8; } .srReqHd b { font-size: 14.5px; font-weight: 600; } .srReqHd small { grid-column: 2; font-size: 12.5px; color: #5E554B; }
.srSt { grid-row: 1 / 3; font: 700 11px var(--sans); border-radius: 9px; padding: 3px 8px; background: #F1EADB; color: #5E554B; white-space: nowrap; }
.srSt.st-looked { background: #FBEBD7; color: #8A5A16; } .srSt.st-sent { background: #E3EEF6; color: #24527A; } .srSt.st-fixed { background: #DDEDE5; color: #2F5D50; } .srSt.st-new { background: #F7E0DA; color: #A33B2B; }
.srNew { font-style: normal; color: #C2412D; font-weight: 700; }
.srThread { padding: 0 14px 14px; }
.srMsg { border-radius: 14px; padding: 8px 12px; margin: 8px 0; max-width: 88%; } .srMsg p { margin: 2px 0 0; white-space: pre-wrap; font-size: 14px; line-height: 1.45; } .srMsg small { font-size: 11.5px; color: #8a7f72; }
.srMsg.me, .srMsg.them { background: #F1EADB; } .srMsg.team { background: #E6F0EB; margin-left: auto; }
.srShot img { max-width: 100%; border-radius: 12px; border: 1px solid #E0D6C3; margin: 6px 0; }
.srWhere, .srAg { font-size: 12.5px; color: #5E554B; margin: 6px 0; } .srErr { color: #A33B2B; }
.srBox { border-top: 1px solid #E0D6C3; margin-top: 12px; padding-top: 10px; } .srBox > b { display: block; font: 600 14px var(--sans); margin-bottom: 6px; } .srBox > b small { font-weight: 400; color: #8a7f72; }
.srAsk { background: #FBF3E4; border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; font-size: 13px; } .srAsk ul { margin: 4px 0 0; padding-left: 18px; }
.srModel { font-size: 13px; display: flex; align-items: center; gap: 6px; } .srModel select { border: 1px solid #E0D6C3; border-radius: 10px; padding: 6px 8px; font: 13px var(--sans); background: #fff; }
.srSent { font-size: 13px; color: #2F5D50; } .srSent a { color: #2F5D50; }
@media (max-width: 600px) { #sr { padding: 0; align-items: stretch; } .srCard { max-height: none; height: 100%; border-radius: 0; border: 0; } }
/* Send to Claude, in Cami's chat (build.js) */
#cb .cbToC { min-height: 36px; padding: 0 10px; border: 1px solid #2F5D50; border-radius: 10px; background: #FFFDF8; font: 600 12.5px var(--sans); color: #2F5D50; cursor: pointer; white-space: nowrap; }
#cb .cbToC:hover { background: #E6F0EB; }
#cb .cbChat { position: relative; }
.cbToCard { position: absolute; left: 12px; right: 12px; top: 64px; z-index: 5; background: #FFFDF8; border: 1px solid #E0D6C3; border-radius: 18px; box-shadow: 0 16px 40px rgba(42,36,32,.24); padding: 12px 14px 14px; }
.cbToHd { display: flex; align-items: center; } .cbToHd b { font: 600 17px var(--serif); flex: 1; }
.cbToCard p { margin: 6px 0 10px; font-size: 13.5px; color: #5E554B; line-height: 1.4; }
.cbToL { display: block; font: 600 13px var(--sans); margin-bottom: 4px; } .cbToL small { font-weight: 400; color: #8a7f72; }
.cbToCard textarea { width: 100%; box-sizing: border-box; border: 1px solid #E0D6C3; border-radius: 12px; padding: 8px 10px; font: 15px/1.4 var(--sans); resize: vertical; background: #fff; color: var(--ink); }
.cbToBtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.cbToBtns button { min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid #E0D6C3; background: #FFFDF8; font: 600 13.5px var(--sans); color: var(--ink); cursor: pointer; }
.cbToBtns button.main { background: #2F5D50; border-color: #2F5D50; color: #fff; }
.cbToSm { display: block; font-size: 12px; color: #8a7f72; line-height: 1.35; }
.srLog { margin: 6px 0; } .srLog pre { white-space: pre-wrap; font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; background: #F7F2E8; border: 1px solid #E0D6C3; border-radius: 12px; padding: 10px; max-height: 320px; overflow: auto; }
@media (max-width: 600px) { #cb .cbHd .cbToC { padding: 0 8px; font-size: 12px; } }

/* v146 (Bryan had Claude test it live, Nov 24): the What's new card never scrolls sideways (42 dots wrap), and a bar button with a red count makes room for it so its name isn't cut off */
#nw .nwCard { overflow-x: hidden; overflow-y: auto; }
#nw .nwDots { flex-wrap: wrap; max-width: 100%; row-gap: 4px; }
#nw .nwFoot { flex-wrap: wrap; }
#gbar .gbTabs .gbI > .gbN { right: auto; left: 22px; top: 3px; } /* the red count rides the icon's corner, never over the name */

/* v147 Cami's own camera from Flow, her chat and the bar (Bryan, Nov 24: the GPS stays inside the photo) */
.pfCamGo { display: inline-flex; align-items: center; gap: 7px; }
.fpUpBar { display: flex; gap: 10px; } .fpUpBar > * { flex: 1 1 0; min-width: 0; }
.fpCamGo { border: 0; background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
#cb .cbCam { display: inline-flex; align-items: center; justify-content: center; padding: 0; margin-right: 6px; cursor: pointer; }
/* the camera is the whole screen: the bar steps aside while it's open (its ✕ was under the bar) */
body.cap-open #gbar, body.cap-open #gbCog { display: none !important; }
/* the camera opens over everything (Cami's chat sits at 8000), the bar steps aside, and the tour still shows over it */
#cap.on { z-index: 9000; }
body.cap-open #tourShade { z-index: 9010; } body.cap-open #tourRing { z-index: 9011; } body.cap-open #tourCard { z-index: 9012; }
/* the Dojo's "For the report" / "New lesson" notes read as a normal line (the bold label was squeezed into a sliver, one letter per line) */
.trSave { display: block; } .trSave svg { display: inline-block; vertical-align: -2px; margin: 0 6px 0 0; } .trSave b { white-space: nowrap; }
/* a note on the photo just taken, from the camera (v147) */
.capNoteGo { display: flex; align-items: center; gap: 10px; margin: 10px auto 0; padding: 6px 12px 6px 6px; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; background: rgba(20,17,15,.55); color: #fff; font: 600 14px var(--sans); cursor: pointer; }
.capNoteGo img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.capNote { position: absolute; left: 12px; right: 12px; bottom: calc(16px + var(--safe-b, 0px)); z-index: 5; background: var(--surface); color: var(--ink); border-radius: 18px; padding: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.45); display: grid; gap: 10px; font-family: var(--sans); }
.capNote[hidden] { display: none; }
.capNote b { font: 600 17px var(--serif); } .capNote textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font: 16px/1.4 var(--sans); background: #fff; color: var(--ink); resize: vertical; }
.capNoteBtns { display: flex; align-items: center; gap: 10px; } .capSp { flex: 1; }
.capNoteMic, .capNoteNo, .capNoteOk { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 12px; font: 600 15px var(--sans); cursor: pointer; border: 1px solid var(--line); background: var(--sand); color: var(--ink); }
.capNoteMic.on { background: #C0392B; color: #fff; border-color: #C0392B; } .capNoteOk { background: var(--accent); border-color: var(--accent); color: #fff; } .capNoteNo { background: transparent; }
#cap.hasnote .capSense { bottom: calc(272px + var(--safe-b)); } /* the GPS line steps up over the note button */

/* ---- Flow Chat (v147, Bryan, Nov 24): Cami on the left with her live orb, him on the right with his picture; photo tiles; her fading status lines; the options for a photo */
#cb .cbMain > .cbCami { position: relative; margin-left: 40px; overflow: visible; }
#cb .cbMain > .cbCami::before { content: ''; position: absolute; left: -40px; bottom: 0; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #E3F3EA, #9CCBB2 62%, rgba(156,203,178,0) 74%); box-shadow: 0 0 10px 3px rgba(156,203,178,.45); animation: orBeat 1.4s ease-in-out infinite; }
#cb .cbMain > .cbCami .cbPin { border-radius: 0 0 16px 4px; overflow: hidden; }
#cb .cbMain > .cbMe { position: relative; margin-right: 40px; overflow: visible; }
#cb .cbMain > .cbMe::after { content: attr(data-ini); position: absolute; right: -40px; bottom: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--sand) var(--meAv) center / cover no-repeat; color: var(--accent); font: 700 13px/30px var(--sans); text-align: center; box-shadow: 0 0 0 1px var(--line); }
#cb.hasAv .cbMain > .cbMe::after { color: transparent; }
#cb .cbMain > .cbMePh { background: transparent; padding: 0; }
#cb .cbPh { position: relative; display: block; width: 132px; height: 132px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--sand); cursor: pointer; box-shadow: 0 2px 8px rgba(42,36,32,.18); }
#cb .cbPh img { width: 100%; height: 100%; object-fit: cover; display: block; }
#cb .cbPhTags { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 4px; flex-wrap: wrap; } #cb .cbPhTags i { font: 700 10.5px/1 var(--sans); font-style: normal; color: #fff; background: rgba(47,93,80,.92); border-radius: 6px; padding: 4px 6px; }
#cb .cbPhGone { display: block; padding: 10px 12px; font-size: 13px; color: var(--muted); background: var(--sand); border-radius: 12px; }
#cb .cbBlip { animation: cbBlip .3s ease; } #cb .cbBlip p { font-size: 13px; color: var(--muted); padding: 7px 11px; }
@keyframes cbBlip { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
#cb .cbSheetBg { position: absolute; inset: 0; background: rgba(42,36,32,.35); z-index: 20; }
#cb .cbSheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 86%; overflow-y: auto; background: var(--surface); border-radius: 20px 20px 0 0; padding: 14px 16px calc(16px + var(--safe-b, 0px)); box-shadow: 0 -10px 30px rgba(42,36,32,.25); animation: cbSheetIn .22s ease; }
@media (min-width: 700px) { #cb .cbSheet { left: 50%; right: auto; width: 440px; transform: translateX(-50%); bottom: 24px; border-radius: 20px; animation: none; } }
@keyframes cbSheetIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
#cb .cbSheet header { display: flex; align-items: center; gap: 12px; } #cb .cbSheet header img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--sand); }
#cb .cbSheet header div { flex: 1; min-width: 0; display: grid; } #cb .cbSheet header b { font: 600 17px var(--serif); } #cb .cbSheet header span { font-size: 12.5px; color: var(--muted); }
#cb .cbSheetHint { margin: 10px 0 8px; font-size: 12.5px; color: var(--muted); }
#cb .cbOpts { display: grid; gap: 6px; }
#cb .cbOpt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: 500 15px var(--sans); text-align: left; cursor: pointer; }
#cb .cbOpt.on { background: #E7F0EC; border-color: #BFD8CC; } #cb .cbOpt.red { color: #B3261E; border-color: #EBC7C2; } #cb .cbOpt.main { background: var(--accent); border-color: var(--accent); color: #fff; justify-content: center; }
#cb .cbOk { color: var(--accent); font-size: 16px; }
#cb .cbPhNote { display: grid; gap: 8px; } #cb .cbPhNote textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font: 15px/1.4 var(--sans); background: #fff; color: var(--ink); }
#cb .cbPhNote > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cbBig { position: fixed; inset: 0; z-index: 9500; background: rgba(20,17,15,.92); display: flex; align-items: center; justify-content: center; } .cbBig img { max-width: 100%; max-height: 100%; } .cbBig button { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 24px; }
@media (prefers-reduced-motion: reduce) { #cb .cbMain > .cbCami::before, #cb .cbBlip, #cb .cbSheet { animation: none; } }
.fpUpBar .fpChatGo { flex: 1.4 1 0; } .fpUpBar .fpUpSm, .fpUpBar .fpCamGo { flex: 1 1 0; font-size: 15px; } .fpUpBar .fpUpSm, .fpUpBar .fpCamGo { gap: 6px; }
.fpChatGo { border: 0; } .pfChatGo { display: inline-flex; align-items: center; gap: 7px; }
/* the Dojo's End session (v147): beside All piles; a pile put down early says so */
.trBack.trEnd { color: #8A3B12; border-color: #E9C9B4; } .trSt.ended { background: #F3E6DA; color: #6E4A2E; }
/* the odometer (v147): the camera's odometer mode has just the shutter; the chat's gauge button beside the camera */
#cap.odo .capModes, #cap.odo #capRoll { visibility: hidden; }
@media (max-width: 460px) { #cb .cbFt .cbPlus { width: 40px; height: 40px; } #cb .cbFt .cbCam { margin-right: 2px; } }
/* Flow Chat: a tapped photo fills the screen with its options card under it; tap the photo to see it whole (v147, Bryan, Nov 24) */
#cb .cbPhView { position: absolute; inset: 0; z-index: 22; display: flex; flex-direction: column; background: var(--bg, #F7F2E8); animation: cbBlip .2s ease; }
#cb .cbPhPic { flex: 1 1 auto; min-height: 120px; border: 0; padding: 10px; margin: 0; background: transparent; cursor: zoom-in; display: flex; align-items: center; justify-content: center; }
#cb .cbPhPic img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 6px 24px rgba(42,36,32,.2); }
#cb .cbPhView.full .cbPhPic { cursor: zoom-out; padding: 0; } #cb .cbPhView.full .cbPhPic img { border-radius: 0; box-shadow: none; }
#cb .cbPhView.full .cbSheet { display: none; }
#cb .cbPhX { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,253,248,.92); box-shadow: 0 2px 8px rgba(42,36,32,.2); }
#cb .cbPhView .cbSheet { position: relative; left: auto; right: auto; bottom: auto; transform: none; width: auto; flex: 0 1 auto; max-height: 62%; border-radius: 20px 20px 0 0; animation: cbSheetIn .22s ease; }
@media (min-width: 700px) { #cb .cbPhView .cbSheet { width: min(560px, 100%); margin: 0 auto 16px; border-radius: 20px; } }
#cb .cbSheet header span { line-height: 1.35; }
#cb .cbOpt { gap: 12px; } #cb .cbOpt > span { flex: 1; } #cb .cbOptI { flex: none; color: var(--accent); } #cb .cbOpt.red .cbOptI { color: #B3261E; }

/* v149: right-click the picked photos in the no-location review sheet: send them to another room */
.pfRvCtx { position: fixed; z-index: 9600; min-width: 220px; background: var(--surface, #FFFDF8); border: 1px solid var(--line, #E0D6C3); border-radius: 14px; box-shadow: 0 14px 40px rgba(42,36,32,.22); padding: 6px; font: 500 14px var(--sans); color: var(--ink, #2A2420); }
.pfRvCtx p { margin: 4px 10px 6px; font-size: 12px; color: var(--muted, #5E554B); }
.pfRvCtx button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pfRvCtx button:hover, .pfRvCtx button:focus-visible { background: var(--sand, #F1EADB); outline: none; }
.pfRvCtx button svg { color: var(--forest, #2F5D50); flex: none; }
.pfRvCtx button.red, .pfRvCtx button.red svg { color: #B3261E; }
.pfRvCtx hr { border: 0; border-top: 1px solid var(--line, #E0D6C3); margin: 4px 6px; }

/* v149: Flow Chat's head is two rows: Cami, the name and ✕ on top, the buttons under it (the buttons were sitting on "Flow Chat") */
#cb .cbHd { flex-wrap: wrap; row-gap: 8px; }
#cb .cbHd > .cbOrb { order: 0; }
#cb .cbHd > div:first-of-type { order: 0; flex: 1 1 calc(100% - 110px); }
#cb .cbHd > .cbX { order: 1; }
#cb .cbHd > :not(.cbOrb):not(div:first-of-type):not(.cbX) { order: 2; }
#cb .cbHd .cbView button, #cb .cbHd .cbNew, #cb .cbHd .cbToC { white-space: nowrap; }

/* v149: the "C" left the dock and is the office's badge, in place of the little field book (Bryan, Nov 24 2026) */
#of .ofTHd .ofTC { flex: none; width: 40px; height: 40px; border-radius: 11px; background: #D9822B; color: #fff; font: 700 21px/40px var(--serif); font-style: normal; text-align: center; box-shadow: 0 1px 2px rgba(42,36,32,.18); }

/* v149: Cloud storage like File Explorer (cloud.js winHtml): Bryan, Nov 24 2026 */
.cwWin { display: flex; flex-direction: column; height: calc(100vh - var(--gbT, 0px) - 120px); min-height: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; outline: none; }
.cwTop { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.cwB { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; flex: none; }
.cwB svg, .cwC svg, .cwNv svg:not(.f):not(.b) { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cwB:hover:not(:disabled), .cwC:hover:not(:disabled) { background: var(--sand); } .cwB:disabled, .cwC:disabled { opacity: .35; cursor: default; }
.cwB.sm { width: 28px; height: 28px; } .cwB[aria-pressed="true"] { background: var(--sand); }
.cwPath { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; margin: 0 6px; padding: 0 8px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper, #FFFDF8); overflow: hidden; white-space: nowrap; }
.cwCr { border: 0; background: none; padding: 4px 6px; border-radius: 6px; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; }
.cwCr:hover { background: var(--sand); } .cwCr[aria-current] { font-weight: 600; } .cwSep { color: var(--muted, #5E554B); }
.cwFind { display: flex; align-items: center; gap: 6px; width: 260px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted, #5E554B); }
.cwFind svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; } .cwFind input { flex: 1; min-width: 0; border: 0; outline: none; font: 14px var(--sans); background: none; color: var(--ink); }
.cwCmd { display: flex; align-items: center; gap: 2px; padding: 6px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cwC { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; font: 500 13.5px var(--sans); color: var(--ink); cursor: pointer; }
.cwC i { font-style: normal; font-size: 11px; color: var(--muted, #5E554B); } .cwC.on { background: var(--sand); }
.cwDiv { width: 1px; height: 22px; background: var(--line); margin: 0 6px; } .cwSp { flex: 1; }
.cwLay { margin-left: 8px; }
.cwBody { flex: 1; min-height: 0; display: grid; grid-template-columns: 230px 1fr; }
.cwWin.pane .cwBody { grid-template-columns: 230px 1fr 300px; }
.cwNav { border-right: 1px solid var(--line); overflow: auto; padding: 8px 6px; }
.cwNv { display: flex; align-items: center; border-radius: 8px; } .cwNv.on { background: var(--sand); } .cwNv:hover:not(.on) { background: rgba(241,234,219,.6); } .cwNv.ind { padding-left: 16px; }
.cwNv > button:not(.cwTw) { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px 6px; border: 0; background: none; font: 500 13.5px var(--sans); color: var(--ink); text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cwTw { width: 18px; height: 22px; flex: none; border: 0; background: none; color: var(--muted, #5E554B); font: 600 13px var(--sans); cursor: pointer; transition: transform .15s; padding: 0; display: inline-block; text-align: center; }
.cwTw.o { transform: rotate(90deg); }
.cwNvHd { margin: 12px 8px 4px; font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #5E554B); }
.cwMain { overflow: auto; padding: 10px 12px; min-width: 0; }
.cwPane { border-left: 1px solid var(--line); overflow: auto; padding: 14px; }
.cwPane .clBig { width: 100%; max-height: 260px; object-fit: contain; border-radius: 10px; background: var(--sand); display: block; }
.cwEmpty { color: var(--muted, #5E554B); text-align: center; margin: 40px 10px; font: 14px var(--sans); line-height: 1.5; }
.cwStat { display: flex; align-items: center; gap: 16px; padding: 4px 12px; border-top: 1px solid var(--line); font: 13px var(--sans); color: var(--muted, #5E554B); min-height: 34px; }
/* the folder: a back, the newest photo peeking out, a front */
.cwFold { position: relative; display: inline-block; flex: none; width: 96px; height: 78px; }
.cwFold svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cwFold svg .b { fill: #D7A94B; } .cwFold svg.f path { fill: #EBC56E; opacity: .97; }
.cwFold .cwPeekIn { position: absolute; left: 14%; right: 14%; top: 14%; height: 44%; object-fit: cover; border-radius: 3px; border: 2px solid #fff; transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.cwFold.nav { width: 18px; height: 15px; } .cwFold.big { width: 150px; height: 122px; display: block; margin: 6px auto 10px; }
/* the grid views */
.cwGrid { display: grid; gap: 6px; align-content: start; }
.cwg-xl { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } .cwg-large { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .cwg-medium { grid-template-columns: repeat(auto-fill, minmax(106px, 1fr)); }
.cwg-small, .cwg-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 10px; } .cwg-tiles { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } .cwg-content { grid-template-columns: 1fr; gap: 0; }
.cwIt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px; border: 1px solid transparent; border-radius: 10px; cursor: default; user-select: none; outline: none; }
.cwIt:hover { background: rgba(241,234,219,.6); } .cwIt.on, .cwRow.on { background: #E6F0EB; border-color: #9CCBB2; }
.cwIt .cwPic { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--sand); display: grid; place-items: center; }
.cwg-xl .cwFold { width: 170px; height: 138px; } .cwg-medium .cwFold { width: 70px; height: 57px; }
.cwNm { font: 500 13px var(--sans); color: var(--ink); text-align: center; line-height: 1.3; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.cw-small, .cw-list { flex-direction: row; padding: 3px 6px; border-radius: 6px; }
.cw-small .cwPic, .cw-list .cwPic { width: 20px; height: 20px; aspect-ratio: auto; border-radius: 3px; font-size: 0; } .cw-small .cwFold, .cw-list .cwFold { width: 20px; height: 16px; }
.cw-small .cwPeekIn, .cw-list .cwPeekIn, .cwFold.nav .cwPeekIn { display: none; }
.cw-small .cwNm, .cw-list .cwNm { text-align: left; -webkit-line-clamp: 1; flex: 1; }
.cw-tiles, .cw-content { flex-direction: row; align-items: center; gap: 12px; padding: 8px 10px; }
.cw-tiles .cwPic, .cw-tiles .cwFold { width: 64px; height: 52px; aspect-ratio: auto; flex: none; } .cw-content .cwPic, .cw-content .cwFold { width: 84px; height: 64px; aspect-ratio: auto; flex: none; }
.cw-content { border-bottom: 1px solid var(--line); border-radius: 0; }
.cwTx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; } .cwTx b { font: 600 14px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cwTx small { font: 12.5px var(--sans); color: var(--muted, #5E554B); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cwSz { font: 13px var(--sans); color: var(--muted, #5E554B); }
/* the cloud status mark, like OneDrive's */
.cwWh { display: inline-block; width: 13px; height: 9px; margin-right: 5px; border-radius: 6px 6px 3px 3px; border: 1.6px solid #3F7C8A; vertical-align: middle; }
.cwWh.w-both { background: #2F5D50; border-color: #2F5D50; } .cwWh.w-device { border-style: dashed; border-color: #C49A3A; } .cwWh.w-gone { border-color: #B8AE9C; }
/* details */
.cwHead, .cwRow { display: grid; grid-template-columns: minmax(220px, 3fr) minmax(150px, 1.4fr) minmax(110px, 1fr) 90px 120px; align-items: center; gap: 8px; }
.cwHead { position: sticky; top: -10px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 4px 6px; z-index: 1; }
.cwHead button, .cwHead span { border: 0; background: none; text-align: left; font: 500 13px var(--sans); color: var(--muted, #5E554B); padding: 6px 4px; cursor: pointer; border-radius: 6px; } .cwHead button:hover { background: var(--sand); }
.cwHead i { font-style: normal; margin-left: 4px; }
.cwRow { padding: 3px 6px; border: 1px solid transparent; border-radius: 6px; font: 13px var(--sans); color: var(--muted, #5E554B); user-select: none; outline: none; }
.cwRow:hover { background: rgba(241,234,219,.6); } .cwRow > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cwN { display: flex; align-items: center; gap: 8px; color: var(--ink); } .cwN b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cwN .cwPic { width: 20px; height: 20px; border-radius: 3px; object-fit: cover; font-size: 0; flex: none; } .cwN .cwFold { width: 20px; height: 16px; } .cwN .cwPeekIn { display: none; }
/* menus (Sort, View, ⋯, right-click) */
.cwMenu { position: fixed; z-index: 9700; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(42,36,32,.2); padding: 6px; }
.cwMenu button { display: flex; align-items: center; width: 100%; gap: 6px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: 500 14px var(--sans); color: var(--ink); text-align: left; cursor: pointer; }
.cwMenu button:hover { background: var(--sand); } .cwMenu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; } .cwDot { width: 14px; text-align: center; color: var(--forest, #2F5D50); } .cwMenu .red { color: #B3261E; }
@media (max-width: 900px) { .cwBody, .cwWin.pane .cwBody { grid-template-columns: 1fr; } .cwNav, .cwPane { display: none; } .cwFind { width: 140px; } .cwC span { display: none; } .cwLay { display: none; } .cwHead, .cwRow { grid-template-columns: 1fr 110px 70px; } .cwHead > :nth-child(3), .cwRow > :nth-child(3), .cwHead > :nth-child(5), .cwRow > :nth-child(5) { display: none; } }
.cwFind input#clQ, .cwFind input { border: 0 !important; box-shadow: none !important; padding: 0 !important; height: auto; min-height: 0; border-radius: 0; }

/* v149: the side rail's picked tile stands up off the rail (Bryan, Nov 24 2026): raised, lit from the top, a soft shadow under it */
.gbDock { position: relative; }
.gbDock > .gbI { position: relative; transition: box-shadow .25s, transform .25s; }
.gbDock .gbI.on { transform: translateY(-2px); background: linear-gradient(180deg, #3B7262 0%, var(--gbAcc, #2F5D50) 55%, #264C41 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 -2px 0 rgba(0,0,0,.18) inset, 0 6px 10px -2px rgba(30,52,45,.45), 0 12px 18px -8px rgba(30,52,45,.35); }
.gbDock .gbI.on::after { content: ''; position: absolute; left: 14%; right: 14%; bottom: -7px; height: 6px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(42,36,32,.28), rgba(42,36,32,0) 70%); pointer-events: none; }
.gbDock .gbI.gbFly { box-shadow: 0 18px 26px -6px rgba(30,52,45,.5), 0 4px 8px rgba(30,52,45,.25); }
.gbDock .gbI.gbLand { animation: gbLand .5s cubic-bezier(.3,1.5,.5,1); }
@keyframes gbLand { 0% { transform: translateY(-2px) scale(1.12); } 45% { transform: translateY(1px) scale(.95); } 100% { transform: translateY(-2px) scale(1); } }
@media (prefers-reduced-motion: reduce) { .gbDock .gbI.gbLand { animation: none; } }

/* v149: "Use Flow Chat" from Reports: the chat slides in from the left */
#cb[data-from="l"] .cbChat { animation: cbFromL .55s cubic-bezier(.2,.85,.25,1); }
@keyframes cbFromL { from { transform: translateX(-104%); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #cb[data-from="l"] .cbChat { animation: none; } }
td.rpGo { white-space: nowrap; } td.rpGo .rpChat, .rpPvf .rpChat, .rpCard .rpChat { margin-left: 14px; }

/* v150: photos Cami pulled out of a day, in a row under her line */
#cb .cbPhRow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#cb .cbPhRow .cbPh { width: 96px; height: 96px; }

/* v150: What I learned today (learned.js), in the Dojo */
.lrCard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; margin: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink); }
.lrCard h3 { margin: 0; font: 600 18px var(--serif); } .lrCard p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.lrGo { background: var(--forest, #2F5D50); color: #fff; border: 0; border-radius: 14px; padding: 9px 16px; font: 600 14px var(--sans); cursor: pointer; } .lrGo[disabled] { opacity: .6; cursor: default; }
#lr { position: fixed; inset: var(--gbT, 0px) 0 var(--gbB, 0px) var(--gbL, 0px); z-index: 9100; background: rgba(42,36,32,.28); display: flex; justify-content: center; align-items: stretch; }
.lrBox { background: #F7F2E8; width: min(860px, 100%); overflow-y: auto; padding: 18px 22px 40px; box-sizing: border-box; color: var(--ink); }
.lrHd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; } .lrHd h2 { margin: 0; font: 600 24px var(--serif); flex: 1 1 260px; }
.lrNav { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); } .lrNav button[disabled] { opacity: .35; }
.lrBrain { background: #FFFDF8; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 13.5px; color: var(--muted); } .lrBrain b { color: var(--ink); }
.lrRun { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 8px; font-size: 13.5px; color: var(--muted); }
.lrG { margin-top: 18px; } .lrG h3 { margin: 0; font: 600 17px var(--serif); } .lrG h3 small { font: 500 12px var(--sans); color: var(--muted); margin-left: 6px; }
.lrH { margin: 2px 0 8px; font-size: 12.5px; color: var(--muted); }
.lrG ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lrIt { background: #FFFDF8; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: flex; gap: 10px 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.lrIt.ok { border-color: #9DB8AC; background: #F6FAF7; } .lrIt.off { opacity: .6; }
.lrTx { flex: 1 1 320px; min-width: 0; } .lrTx p { margin: 0; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; } .lrTx small { color: var(--muted); font-size: 12px; }
.lrAct { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; } .lrDel { color: #A33A2B; }
.lrFixIn { flex: 1 1 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: 14px var(--sans); background: #fff; }
.lrNone { color: var(--muted); margin-top: 18px; }
@media (max-width: 600px) { .lrBox { padding: 14px 16px 40px; } .lrHd h2 { font-size: 21px; } }

/* v150: the project folders are a rail down the left, like File Explorer's (flow.js rail(), body.pj-rail) */
@media (min-width: 641px) { body.pj-rail #panel { top: 0; bottom: calc(var(--gbT, 0px) + var(--gbB, 0px)); left: 0; right: auto; width: min(360px, 100vw); max-height: none; border-radius: 0; box-shadow: 2px 0 14px rgba(42,36,32,.10); border-right: 1px solid var(--line); background: var(--surface); } }
body.pj-rail #panelBody { flex: 1; }
.flTree li { padding: 8px 10px; gap: 8px; border-radius: 12px; margin: 3px 0; background: transparent; border-color: transparent; }
.flTree li:hover { background: var(--sand); }
.flTree li.flSub { display: block; padding: 0 0 0 22px; margin: 0; background: transparent; cursor: default; }
.flTree li.flSub:hover { background: transparent; }
.flTree li.flSub ul { list-style: none; margin: 0; padding: 0 0 0 6px; border-left: 1px solid var(--line); }
.flTree li.flSub li { padding: 6px 8px; } .flTree li.flSub b { font-size: 14px; }
.flCar { flex: none; width: 24px; height: 24px; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; border-radius: 6px; transition: transform .15s; padding: 0; }
.flCar.on { transform: rotate(90deg); } .flCar:hover { background: var(--line); }
.flCar0 { flex: none; width: 24px; }
.flBinAct { display: flex; gap: 12px; flex: none !important; font-size: 13px; } .flBinDel { color: #9E3424; }
#flUndo { position: fixed; left: 50%; bottom: calc(24px + var(--gbB, 0px)); transform: translateX(-50%); z-index: 2147482000; background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 12px 10px 16px; display: flex; align-items: center; gap: 14px; font: 500 14px var(--sans); box-shadow: 0 10px 30px rgba(42,36,32,.3); overflow: hidden; max-width: calc(100vw - 32px); }
#flUndo button { background: none; border: 0; color: #CFE3D8; font: 700 14px var(--sans); cursor: pointer; padding: 6px 8px; }
#flUndo i { position: absolute; left: 0; bottom: 0; height: 3px; background: #CFE3D8; animation: flUndoT 4s linear forwards; }
@keyframes flUndoT { from { width: 100%; } to { width: 0; } }
/* (a phone keeps the panel as the sheet from the bottom, over the map, so the bar under it still works) */

/* v150: a lunch sits on top of the work it falls in (darw.js place / settleLunch) */
.drChip.lunch { z-index: 4; top: 20px; height: 68px; border: 2px solid #FFFDF8; box-shadow: 0 4px 12px rgba(42,36,32,.25); }
.flBin li { flex-wrap: wrap; } .flBinDocs { flex-basis: 100%; padding-left: 38px; }
.flBinNew { flex-basis: 100%; display: flex; gap: 8px; padding-left: 38px; } .flBinNew input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: 14px var(--sans); }
.drTick.half { border-left: 1px dashed #F1EADB; }
.drTick.big { border-left: 2px solid #CDBFA6; } .drTick.big em { font-weight: 800; color: var(--ink); }

/* v150: a DAR and its report that don't agree (work.js fixHtml) */
.owFix { background: #FBEDEA; border: 1px solid #E8B9AF; border-radius: 14px; padding: 10px 14px; margin: 0 0 12px; color: var(--ink); font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }
.owFix b { color: #9E3424; } .owFixRow { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: baseline; } .owFixRow span { font-weight: 600; min-width: 90px; }

/* v151: the DAR's date and its week of day tabs are one thing (darw.js weekStrip in the head) */
.drHdDay { align-items: stretch; } .drHdDay .drTabs { align-self: center; }
.drWkRow { display: flex; align-items: center; gap: 8px; flex: 1 1 640px; min-width: 0; }
.drWkRow .drWkStrip { flex: 1; min-width: 0; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.drWkRow .drWkD.on { grid-column: span 3; padding: 8px 14px; background: #FFFDF8; }
.drWkRow .drWkD.on b { font: 600 22px var(--serif); } .drWkRow .drWkD.on .drSum { font-size: 13px; color: var(--ink2); }
.drWkRow .drWkD.on.miss .drSum { color: #9b2c1f; }
@media (max-width: 700px) { .drWkRow { flex-basis: 100%; gap: 4px; } .drWkRow .drWkD.on { grid-column: span 3; padding: 6px 8px; } .drWkRow .drWkD.on b { font-size: 16px; } .drWkRow .drWkD.on .drSum { font-size: 11px; } .drWkRow > .owNav { width: 30px; height: 30px; } }

/* v151: Flow's top squared off (Bryan, Nov 24 2026): Upload across, then the month calendar beside Files on the cloud, the cloud lined
   up with the job site cards, the day panel as wide as the calendar */
.pfW { --pfLeft: 364px; }
.pfRow2 { display: grid; grid-template-columns: var(--pfLeft) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.pfRow2 > .pfCal { position: static; width: auto; align-self: stretch; }
.pfRow2 > section.pfCloud { margin: 0; }
.pfMiniHd { display: flex; align-items: baseline; gap: 6px; } .pfMiniHd > b { font: 600 17px var(--serif); } .pfMiniHd > small { font-size: 12px; color: var(--ink2); }
.pfCalNav { margin-left: auto; display: flex; gap: 4px; } .pfCalNav .owNav { width: 28px; height: 28px; font-size: 15px; } .pfCalNav .owNav[disabled] { opacity: .35; cursor: default; }
.pfCal .pfMiniG { grid-template-columns: repeat(7, 1fr); gap: 3px 6px; } .pfCal .pfMiniG button, .pfCal .pfMiniG span { aspect-ratio: auto; height: 26px; font-size: 12.5px; border-radius: 8px; }
.pfW:not(.cols) .pfDl, .pfW:not(.cols) .pfDl.rich { width: var(--pfLeft); box-sizing: border-box; }
.pfW:not(.cols) .pfDl.rich .pfDlNums { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.pfTop.stuck .pfRow2 { grid-template-columns: minmax(0, 1fr); } .pfTop.stuck .pfCal { display: none; }
.pfDrop .pfSync { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 6px 12px; min-height: 44px; cursor: pointer; color: var(--ink); text-align: left; }
.pfDrop .pfSync:hover { border-color: var(--accent); } .pfSyncTx { display: flex; flex-direction: column; line-height: 1.2; } .pfSyncTx small { font: 500 11.5px var(--sans); color: var(--ink2); }
.pfSync { border: 0; background: none; cursor: pointer; padding: 0; } .fpTop .pfSync small { display: none; }
.pfTop.stuck .pfDrop .pfSync small { display: none; }
@media (max-width: 700px) { .pfW { --pfLeft: 100%; } .pfRow2 { grid-template-columns: minmax(0, 1fr); } .pfW:not(.cols) .pfDl, .pfW:not(.cols) .pfDl.rich { width: auto; } }
.pfCal .pfMiniG button, .pfCal .pfMiniG span { height: 24px; }
@media (max-width: 700px) { .drWkRow .drWkD:not(.on) span { display: none; } .drWkRow .drWkD:not(.on) b { font-size: 11px; } }

/* ---- the Flow Board (board.js, v152): Cami docked, his tools in a row as cards */
#of.fbOn #fbHost { flex: 1; min-height: 0; display: flex; position: relative; }
#of.fbOn .ofHd { display: none; }
#fb { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg2, #F7F2E8); position: relative; }
#fb .fbTop { flex: none; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
#fb .fbTitle { font: 600 22px var(--serif); white-space: nowrap; }
#fb .fbMap { display: flex; align-items: center; gap: 6px; flex: 1 1 520px; max-width: 760px; min-width: 200px; }
#fb .fbMapT { position: relative; flex: 1; min-width: 0; height: 36px; display: flex; gap: 3px; padding: 4px; box-sizing: border-box; background: var(--sand); border-radius: 10px; }
#fb .fbBlk { flex: 1 1 0; min-width: 0; height: 100%; border: 0; border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: center; gap: 4px; padding: 0 6px; overflow: hidden; cursor: pointer; font: 600 11px var(--sans); color: var(--muted); white-space: nowrap; }
#fb .fbBlk span { overflow: hidden; text-overflow: ellipsis; }
#fb .fbBlk.in { background: #EEF3EF; color: var(--accent, #2F5D50); }
#fb .fbVw { position: absolute; top: 1px; bottom: 1px; border: 2.5px solid #2F5D50; border-radius: 9px; box-shadow: 0 0 0 3px rgba(47,93,80,.15); pointer-events: none; transition: left .25s, width .25s; }
#fb .fbArr { width: 32px; height: 32px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: 700 16px var(--sans); color: #2F5D50; cursor: pointer; }
#fb .fbHelp { font-size: 12px; color: var(--muted); white-space: nowrap; }
#fb .fbAdd { margin-left: auto; flex: none; height: 36px; padding: 0 14px; border-radius: 12px; border: 1px solid #2F5D50; background: var(--surface); font: 600 13px var(--sans); color: #2F5D50; cursor: pointer; }
@media (max-width: 1500px) { #fb .fbHelp { display: none; } }
#fb .fbMid { flex: 1; min-height: 0; display: flex; }
#fb .fbRail { width: 340px; flex: none; display: flex; flex-direction: column; min-height: 0; background: var(--bg2, #F7F2E8); }
#fb .fbRail.l { border-right: 1px solid var(--line); } #fb .fbRail.r { border-left: 1px solid var(--line); }
#fb .fbRail.r .fbChatSlot { flex: 1; height: auto !important; }
#fb .fbChatSlot { flex: none; min-height: 0; display: flex; flex-direction: column; background: var(--surface); }
#fb .fbTop .fbChatSlot, #fb .fbBot .fbChatSlot { flex: 1 1 600px; min-width: 0; max-width: 1100px; background: none; }
#fb .fbBot { flex: none; display: flex; align-items: center; padding: 6px 16px; border-top: 1px solid var(--line); background: var(--surface); }
#fb .fbGrip { flex: none; height: 16px; display: grid; place-items: center; cursor: ns-resize; background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); touch-action: none; }
#fb .fbGrip span { width: 46px; height: 5px; border-radius: 3px; background: #B9AE9A; }
#fb .fbGrip:hover span, #fb .fbGrip.drag span { background: #2F5D50; }
#fb .fbUnder { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#fb .fbUnderHd { flex: none; display: flex; align-items: baseline; gap: 8px; padding: 8px 12px 4px; } #fb .fbUnderHd b { font: 600 13px var(--sans); } #fb .fbUnderHd span { font-size: 11px; color: var(--muted); }
#fb .fbUnderL { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 14px; display: flex; flex-direction: column; gap: 8px; -webkit-mask: linear-gradient(transparent 0, #000 14px, #000 calc(100% - 22px), transparent); mask: linear-gradient(transparent 0, #000 14px, #000 calc(100% - 22px), transparent); scrollbar-width: thin; }
#fb .fbMini { flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
#fb .fbMini header { display: flex; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); } #fb .fbMini header b { flex: 1; font: 600 15px var(--serif); }
#fb .fbMini header button { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
#fb .fbMiniB { padding: 10px 12px; font-size: 13px; }
#fb .fbMiniB p { margin: 0 0 4px; }
#fb .fbBig { font: 600 16px var(--serif); } #fb .fbSm { color: var(--muted); font-size: 12.5px; }
#fb .fbNote { background: #FFF1B8; border-radius: 6px; padding: 6px 8px; font: 15px/1.25 var(--hand, cursive); }
#fb .fbCal > b { font: 600 14px var(--serif); }
#fb .fbCalG { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 6px; }
#fb .fbCalG i.dow { font-style: normal; font-size: 10px; color: var(--muted); text-align: center; }
#fb .fbCalG button { height: 24px; border: 0; border-radius: 7px; background: var(--bg2, #F7F2E8); font: 500 11px var(--sans); color: var(--ink); cursor: pointer; padding: 0; }
#fb .fbCalG button.w { background: #D9E6DF; color: #2F5D50; font-weight: 700; } #fb .fbCalG button.m { background: #F4D9D2; color: #B3412E; font-weight: 700; } #fb .fbCalG button.t { box-shadow: inset 0 0 0 2px #2F5D50; }
#fb .fbKey { display: flex; gap: 10px; align-items: center; font-size: 11px; color: var(--muted); margin-top: 6px !important; } #fb .fbKey i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: -6px; } #fb .fbKey i.w { background: #D9E6DF; } #fb .fbKey i.m { background: #F4D9D2; }
#fb .fbWk { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 6px; } #fb .fbWk span { background: var(--bg2, #F7F2E8); border: 1px solid var(--line); border-radius: 8px; padding: 5px 2px; text-align: center; } #fb .fbWk i { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); } #fb .fbWk b { font-size: 13px; }
#fb .fbMiniAdd { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 8px 6px; font-size: 12.5px; color: var(--muted); }
#fb .fbRoom { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scroll-behavior: auto; }
#fb .fbTrack { display: flex; gap: 14px; height: 100%; padding: 10px 14px; box-sizing: border-box; width: max-content; min-width: 100%; }
#fb .fbCard { flex: none; width: var(--fbW, 560px); display: flex; flex-direction: column; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: box-shadow .2s, opacity .2s; }
#fb .fbCard.on { box-shadow: 0 0 0 3px #2F5D50, 0 0 0 9px rgba(47,93,80,.14), 0 18px 40px rgba(42,36,32,.2); }
#fb .fbCard.on .fbCardHd { background: #2F5D50; color: #fff; } #fb .fbCard.on .fbCardBtns button { border-color: rgba(255,255,255,.4); color: #fff; }
#fb .fbCardHd { flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
#fb .fbCardHd b { flex: 1; min-width: 0; font: 600 17px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#fb .fbCardBtns { display: flex; gap: 4px; } #fb .fbCardBtns button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: none; font: 600 14px var(--sans); color: var(--muted); cursor: pointer; }
#fb .fbCard > .fbBody { flex: 1; min-height: 0; overflow: auto; padding: 8px 12px 24px; }
#of #fb .fbCard > .ofBody > * { max-width: none; }
#fb .fbCard.fold { width: 64px; } #fb .fbCard.fold .fbCardHd { flex-direction: column; padding: 8px 4px; } #fb .fbCard.fold .fbCardHd b { display: none; } #fb .fbCard.fold .fbCardBtns { flex-direction: column; }
#fb .fbFoldEdge { flex: 1; border: 0; background: none; cursor: pointer; } #fb .fbFoldEdge span { writing-mode: vertical-rl; font: 700 12px var(--sans); letter-spacing: .06em; color: #2F5D50; }
#fb .fbEmpty { margin: auto; color: var(--muted); }
#fb .fbPeek { position: absolute; top: 50%; margin-top: -30px; z-index: 6; height: 60px; min-width: 44px; padding: 0 10px; border-radius: 14px; border: 1px solid #CFC3AC; background: var(--surface); box-shadow: 0 6px 16px rgba(42,36,32,.18); display: flex; align-items: center; gap: 6px; font: 700 20px var(--sans); color: #2F5D50; cursor: pointer; }
#fb .fbPeek span { font: 600 12px var(--sans); max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#fb .fbPeek.r { right: 10px; } #fb .fbPeek.l { left: 10px; }
#fb .fbPeek[hidden] { display: none; }
#fb .fbRoomW { flex: 1; min-width: 0; position: relative; display: flex; }
#fb .fbMenu { position: absolute; z-index: 30; width: 260px; max-height: 60vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 30px rgba(42,36,32,.2); padding: 6px; }
#fb .fbMenu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: none; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
#fb .fbMenu button:hover { background: var(--sand); }
#fb .fbPick { position: absolute; inset: 0; z-index: 40; }
#fb .fbPickBg { position: absolute; inset: 0; border: 0; background: rgba(42,36,32,.28); cursor: default; }
#fb .fbZone { position: absolute; border: 3px dashed #2F5D50; background: rgba(47,93,80,.16); border-radius: 16px; display: grid; place-items: center; cursor: pointer; animation: fbZin .25s both; }
#fb .fbZone:hover, #fb .fbZone:focus-visible { background: rgba(47,93,80,.32); }
#fb .fbZone.here { border-style: solid; }
#fb .fbZone span { background: #2F5D50; color: #fff; font: 700 14px var(--sans); padding: 8px 14px; border-radius: 12px; box-shadow: 0 6px 14px rgba(0,0,0,.2); }
#fb .fbPickSay { position: absolute; left: 50%; top: 46%; transform: translateX(-50%); margin: 0; background: #2A2420; color: #fff; font: 600 15px var(--sans); padding: 10px 16px; border-radius: 14px; pointer-events: none; }
@keyframes fbZin { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
/* Cami docked in the board: her chat fills the slot; rolled up into a bar she is one line */
#cb[data-dock] { position: static; inset: auto; z-index: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--surface); }
#cb[data-dock] .cbChat { flex: 1; min-height: 0; width: auto !important; margin: 0 !important; border: 0 !important; }
#cb[data-dock] .cbGrip { width: 28px; height: 32px; flex: none; border: 0; background: none; font-size: 18px; color: #8E877E; cursor: grab; padding: 0; }
#cb[data-dock] .cbRoll { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2, #F7F2E8); font: 600 12px var(--sans); color: #2F5D50; cursor: pointer; white-space: nowrap; }
#cb[data-dock] .cbHd { cursor: grab; }
#cb[data-dock="rail"] .cbToC { display: none; }
#cb[data-dock="strip"] .cbChat { display: flex; flex-direction: row; align-items: center; gap: 8px; height: 50px; border: 1.5px solid #2F5D50 !important; border-radius: 16px; padding: 0 6px; background: var(--bg2, #F7F2E8); box-shadow: 0 6px 16px rgba(42,36,32,.1); overflow: hidden; }
#cb[data-dock="strip"] .cbHd { flex: none; border: 0; padding: 0; flex-wrap: nowrap; background: none; }
#cb[data-dock="strip"] .cbHd > div:first-of-type span, #cb[data-dock="strip"] .cbHd .cbNew, #cb[data-dock="strip"] .cbHd .cbToC { display: none; }
#cb[data-dock="strip"] .cbHd > div:first-of-type { flex: none; }
#cb[data-dock="strip"] .cbProg { display: none; }
#cb[data-dock="strip"] .cbMain { flex: 1 1 auto; min-width: 0; height: 46px; overflow: hidden; padding: 0; display: flex; align-items: center; gap: 6px; }
#cb[data-dock="strip"] .cbMain > * { display: none !important; }
#cb[data-dock="strip"] .cbMain > .cbCami.cbLast, #cb[data-dock="strip"] .cbMain > .cbCami.cbLast + .cbChoices { display: flex !important; margin: 0 !important; }
#cb[data-dock="strip"] .cbMain > .cbCami.cbLast::before { display: none; }
#cb[data-dock="strip"] .cbMain > .cbCami.cbLast p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; padding: 6px 10px; font-size: 13.5px; }
#cb[data-dock="strip"] .cbMain > .cbCami.cbLast > :not(p) { display: none; }
#cb[data-dock="strip"] .cbChoices { flex-wrap: nowrap; gap: 4px; } #cb[data-dock="strip"] .cbChoices button { white-space: nowrap; padding: 4px 10px; min-height: 32px; }
#cb[data-dock="strip"] .cbFt { flex: 0 1 460px; min-width: 260px; border: 0; padding: 0; background: none; }
#cb[data-dock="strip"] .cbFt .cbOdo { display: none; }
#cb[data-dock="strip"] #cbIn { height: 36px; }
#cb[data-dock] .cbHd { flex-wrap: nowrap; gap: 8px; }
#cb[data-dock] .cbHd > .cbGrip { order: -1 !important; }
#cb[data-dock] .cbHd > div:first-of-type { flex: 1 1 auto; min-width: 0; }
#cb[data-dock] .cbHd > div:first-of-type span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cb[data-dock="rail"] .cbHd .cbNew { min-height: 32px; padding: 0 10px; }
#cb[data-dock="rail"] .cbFt { flex-wrap: wrap; row-gap: 8px; }
#cb[data-dock="rail"] .cbFt .cbBox { order: -1; flex: 1 1 100%; }
#cb[data-dock="strip"] .cbHd > div:first-of-type { display: none; }
#cb[data-dock="strip"] .cbMain { flex: 1 1 45%; }
#cb[data-dock="strip"] .cbFt { flex: 1 1 50%; min-width: 280px; flex-wrap: nowrap; }
#cb[data-dock="strip"] .cbFt .cbCam:not(.cbOdo) { display: none; }
#cb[data-dock="strip"] .cbFt .cbBox { flex: 1 1 auto; min-width: 120px; }
#cb[data-dock="strip"] .cbFt button { width: 38px; height: 38px; flex: none; }
#fb.pos-t .fbHelp { display: none; }
#fb.pos-t .fbTop .fbChatSlot { flex: 1 1 58%; }
#fb.pos-t .fbMap { flex: 1 1 30%; min-width: 180px; }
#fb.pos-t .fbMap .fbBlk span { display: none; }
/* "Sort Flow by" (v153) */
.pfSort { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pfSort select { min-height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0 10px; font: 500 13px var(--sans); color: var(--ink); }
.pfSeg button:disabled { opacity: .45; cursor: not-allowed; }
.fpTop .pfSort span { display: none; }
.fpSortRow { display: flex; justify-content: flex-end; padding: 4px 14px 0; }
.fpSortRow .pfSort span { display: inline; }

/* ---- v154: the day stack on the Flow Board's DAR card (daystack.js) */
#fb .fbCard > .fbBody.fbStackB { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
#fb .fbBody.fbStackB > .dsRibBack { padding: 8px 12px 0; } #fb .fbBody.fbStackB:has(.dsRibBack) { overflow: auto; display: block; padding: 0 12px 24px; }
.ds { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg2); }
.dsHd { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 14px 6px; }
.dsNav { width: 34px; height: 34px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: 600 18px var(--sans); color: var(--ink); cursor: pointer; flex: none; }
.dsDate { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dsDate b { font: 600 32px/1.05 var(--serif); letter-spacing: -.01em; }
.dsDate span { font-size: 13px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsHdR { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.dsTabs { flex: none; display: flex; gap: 4px; padding: 6px 14px 0; overflow-x: auto; scrollbar-width: none; }
.dsTab { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-bottom: none; border-radius: 12px 12px 0 0; background: var(--sand); color: var(--ink2); font: 500 13.5px var(--sans); cursor: pointer; }
.dsTab.on { background: var(--surface); color: var(--ink); font-weight: 600; position: relative; z-index: 6; box-shadow: 0 -2px 6px rgba(42,36,32,.06); }
.dsTab.add { background: none; border-color: transparent; color: var(--accent); font-weight: 600; }
.dsDot { width: 8px; height: 8px; border-radius: 50%; background: #D9A03A; } .dsDot.sent { background: var(--accent); }
.dsStack { flex: 1; min-height: 0; position: relative; margin: 0 76px 10px 14px; }
.dsStack.n0 { margin-right: 14px; }
.dsPg { position: absolute; inset: 0; border-radius: 4px 20px 20px 20px; background: var(--surface); border: 1px solid var(--line); }
.dsPg.front { z-index: 5; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 0 0 2px rgba(47,93,80,.28), 0 14px 32px rgba(42,36,32,.16); }
.dsPg.front.up { animation: dsUp .45s cubic-bezier(.2,.8,.25,1.1); }
.dsPg.front.toBack { animation: dsBack .56s ease-in forwards; }
@keyframes dsUp { from { transform: translateX(46px) rotate(.6deg); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes dsBack { 0% { transform: none; } 40% { transform: translateX(-30px) rotate(-1deg); } 100% { transform: translateX(60px) scale(.94); opacity: 0; } }
.dsPgIn { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
.dsPg.back { cursor: pointer; padding: 0; font: inherit; color: var(--ink); text-align: left; transition: transform .18s; box-shadow: 4px 4px 12px rgba(42,36,32,.08); }
.dsPg.back.b1 { inset: 10px -30px 4px 30px; z-index: 4; }
.dsPg.back.b2 { inset: 20px -60px 8px 60px; z-index: 3; }
.dsPg.back:hover, .dsPg.back:focus-visible { transform: translateX(6px); }
.dsEdge { position: absolute; right: 0; top: 34px; width: 30px; display: flex; flex-direction: row; align-items: center; gap: 8px; writing-mode: vertical-rl; white-space: nowrap; }
.dsEdge b { font: 600 13px var(--sans); } .dsEdge small { font-size: 11px; color: var(--ink2); }
.dsPg.pad { background-color: #fbfdff; background-image: repeating-linear-gradient(0deg, #d3e2f0 0 1px, transparent 1px 14px), repeating-linear-gradient(90deg, #d3e2f0 0 1px, transparent 1px 14px); }
.dsBind { display: block; flex: none; height: 26px; border-radius: 3px 18px 0 0; background-color: #2f2f30; background-image: linear-gradient(180deg, rgba(255,255,255,.14), rgba(0,0,0,.2) 70%, rgba(0,0,0,.45)), repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 2px, rgba(0,0,0,.06) 2px 5px); box-shadow: 0 3px 5px rgba(0,0,0,.25); }
.dsBind.sm { position: absolute; left: 0; right: 0; top: 0; height: 18px; }
.dsStubs { flex: none; height: 9px; background: linear-gradient(180deg, #e9eef3, #fbfdff); clip-path: polygon(0 0,100% 0,100% 40%,97% 85%,93% 45%,88% 100%,84% 50%,79% 80%,74% 35%,69% 95%,63% 55%,58% 100%,52% 40%,47% 85%,41% 50%,36% 100%,30% 45%,25% 80%,19% 40%,14% 95%,9% 55%,4% 85%,0 45%); opacity: .9; }
.dsPad { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dsGrid { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 18px; }
.dsShot { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 6px 16px rgba(42,36,32,.14); background: #fff; }
.dsPadNote { display: flex; flex-direction: column; align-items: center; gap: 4px; background: rgba(255,253,248,.85); padding: 14px 18px; border-radius: 14px; } .dsPadNote b { font: 600 18px var(--serif); } .dsPadNote span { color: var(--ink2); font-size: 13px; }
.dsSheet { flex: none; padding: 4px 12px 6px; }
.dsSheet .dwFoot .dwHdActs, .dsSheet .dwFootTip, .dsSheet .owActs > [data-a="list"] { display: none; }
.dsSheet .dwFoot { position: static; }
.dsMap { flex: 1 0 220px; position: relative; margin: 0; border-top: 1px solid var(--line); background: #EFE9DC; overflow: hidden; }
.dsMap.none { display: flex; align-items: center; justify-content: center; padding: 18px; color: var(--ink2); font-size: 13px; text-align: center; }
.dsMapLab { position: absolute; left: 10px; bottom: 10px; z-index: 2; background: rgba(255,253,248,.9); border-radius: 8px; padding: 3px 8px; font-size: 12px; color: var(--ink2); }
.dsEmpty { padding: 28px 22px; } .dsEmpty h3 { font: 600 22px var(--serif); margin: 0 0 6px; }
.dsBar { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.dsBar .owBtn { min-height: 42px; } .dsBar .dsGo { flex: 1; min-width: 150px; }
.dsNeed { flex-basis: 100%; font-size: 12.5px; color: #A33A2A; } .dsNeed.ok { flex-basis: auto; color: var(--ink2); flex: 1; }
.stDelL { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 4px; font-size: 14px; } .stDelL input { height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: 15px var(--sans); background: var(--surface); color: var(--ink); }
