/* Layout: phone-width app column for Tech and Member, full-width board for Office; Fortress brand tokens */
:root {
  --bg: #FBF9F5; --surface: #FFFFFF; --soft: #F4EFE6; --soft-2: #EAE3D6;
  --ink: #2B2B2B; --muted: #635F57; --line: #DDD4C4;
  --forest: #1F3A2E; --on-forest: #FFFFFF; --brass: #A88B5A; --brass-ink: #7A6236;
  --ok: #2F7A4F; --ok-bg: #E3F1E8; --warn: #9A6A12; --warn-bg: #FBF0D9; --bad: #A23B2A; --bad-bg: #F8E3DE; --info: #2C5C8A; --info-bg: #E2ECF6;
  --shadow: 0 18px 40px -24px rgba(31, 58, 46, .45);
  color-scheme: light; /* always light, like the website */
  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans); margin: 0; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
a { color: var(--forest); }

.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.top-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font: 400 1.15rem var(--serif); color: var(--forest); }
.brand small { font: 500 .7rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tabs { display: flex; gap: 4px; background: var(--soft); padding: 4px; border-radius: 99px; }
.tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 99px; font-weight: 600; font-size: .9rem; color: var(--muted); min-height: 38px; }
.tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(0,0,0,.3); }
.sample { font-size: .75rem; color: var(--warn); background: var(--warn-bg); padding: 4px 10px; border-radius: 99px; }

.page { padding-block: 20px 120px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.phone { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.board { max-width: 1180px; margin: 0 auto; display: grid; gap: 20px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; min-width: 0; }
.card.soft { background: var(--soft); border-color: transparent; }
.eyebrow { font: 600 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); margin: 0 0 6px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); } .chip.info { background: var(--info-bg); color: var(--info); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; text-decoration: none; color: var(--ink); }
.btn.primary { background: var(--forest); border-color: var(--forest); color: var(--on-forest); }
.btn.block { width: 100%; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.actions .btn { min-height: 44px; padding: 0 8px; font-size: .85rem; }

/* route */
.route { display: flex; flex-direction: column; gap: 12px; }
.stop { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.stop-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--soft); color: var(--muted); font-variant-numeric: tabular-nums; }
.stop.active .stop-n { background: var(--forest); color: var(--on-forest); }
.stop.done .stop-n { background: var(--ok-bg); color: var(--ok); }
.stop .card { padding: 16px; }
.stop.locked .card { opacity: .62; }
.stop h3 { font-size: 1.2rem; }
.drive { font-size: .8rem; color: var(--muted); margin: -4px 0 0 46px; }
.lockmsg { font-size: .82rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }

/* job */
.timer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.timer-big { font: 400 2.6rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: var(--soft-2); overflow: hidden; margin-top: 12px; }
.bar i { display: block; height: 100%; background: var(--forest); border-radius: 99px; transition: width .3s; }
.bar.over i { background: var(--warn); }
.task { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: var(--surface); }
.task.locked { opacity: .55; }
.task.isdone { border-color: var(--ok); }
.task-h { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.task-h b { font-weight: 600; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.shot { position: relative; aspect-ratio: 1; border-radius: 14px; border: 1.5px dashed var(--line); display: grid; place-items: center; text-align: center; font-size: .78rem; color: var(--muted); background: var(--bg); overflow: hidden; max-width: 100%; }
.shot.has { border: 0; }
.shot img, .shot .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot .lbl { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: .68rem; padding: 2px 8px; border-radius: 99px; }
.shot .q { position: absolute; right: 6px; top: 6px; background: var(--warn-bg); color: var(--warn); font-size: .64rem; padding: 2px 6px; border-radius: 99px; font-weight: 700; }
.shot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.shot.need { border-color: var(--brass); color: var(--brass-ink); }
.ph { background: linear-gradient(135deg, var(--soft-2), var(--soft)); display: grid; place-items: center; font: 400 .9rem var(--serif); color: var(--muted); }
.tmpl { display: flex; flex-direction: column; gap: 8px; }
.tmpl button { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 14px; }
.tmpl button b { display: block; font-weight: 600; }
.tmpl button span { font-size: .85rem; color: var(--muted); }
details.card summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
details.card summary::-webkit-details-marker { display: none; }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 14px 0 0; font-size: .9rem; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--muted); }
.field input, .field textarea, .field select { font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
.offline { display: flex; align-items: center; gap: 10px; justify-content: space-between; font-size: .85rem; }
.switch { position: relative; width: 46px; height: 28px; border-radius: 99px; background: var(--soft-2); border: 0; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .2s; }
.switch[aria-checked="true"] { background: var(--forest); } .switch[aria-checked="true"]::after { left: 21px; }

/* member: laid out like the example cards on the website */
.hello { font-size: 2rem; line-height: 1.1; }
.phone h2 { font-size: 1.35rem; color: var(--forest); }
.mcard { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.mcard p { margin: 0; } .mcard.ask { border-color: var(--brass); }
.mcard.more summary { cursor: pointer; font-weight: 600; color: var(--forest); }
.hcard { background: var(--surface); border-radius: 28px; padding: 32px 24px 20px; text-align: center; box-shadow: 0 30px 60px -34px rgba(31, 58, 46, .35); }
.hcard-big { margin: 0; font: 400 3.4rem/1 var(--serif); color: var(--forest); font-variant-numeric: tabular-nums; }
.hcard-sub { margin: 8px 0 14px; color: var(--muted); }
.hcard-chip { display: inline-block; margin: 0 0 18px; background: #f6ecd6; color: var(--brass-ink); font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 99px; }
.hcard ul { list-style: none; margin: 0; padding: 0; text-align: left; border-top: 1px solid var(--line); }
.hcard li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.hcard li:last-child { border-bottom: 0; } .hcard li span:last-child { color: var(--muted); }
.panel { background: var(--soft); border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pbox { background: var(--surface); border-radius: 18px; padding: 16px; box-shadow: 0 18px 40px -28px rgba(31, 58, 46, .4); display: grid; gap: 10px; min-width: 0; }
.pbox .empty { margin: 0; }
.prow { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.prow-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--soft); color: var(--forest); display: grid; place-items: center; flex: none; overflow: hidden; }
.prow-ic img { width: 100%; height: 100%; object-fit: cover; }
.prow-t { flex: 1; min-width: 0; } .prow-t b { display: block; font-size: .92rem; color: var(--forest); overflow-wrap: anywhere; }
.prow-t small { display: inline-block; margin-top: 3px; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.prow-t small.ok { background: #e3efe6; color: #2f5d40; } .prow-t small.wait { background: #f6ecd6; color: var(--brass-ink); }
.cal-month { font: 400 1.15rem var(--serif); color: var(--forest); }
.next-day { margin: 0; font: 400 1.3rem var(--serif); color: var(--forest); }
.cal { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(52px, 1fr); gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.cal button { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; font-weight: 600; color: var(--forest); font-variant-numeric: tabular-nums; }
.cal button span { font-size: .68rem; color: var(--muted); font-weight: 500; }
.cal button[aria-pressed="true"] { background: var(--forest); color: var(--surface); border-color: var(--forest); } .cal button[aria-pressed="true"] span { color: #cfd8d2; }
.slots { display: grid; gap: 6px; }
.slots button { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; min-height: 44px; font-size: .92rem; }
.slots button[aria-pressed="true"] { background: var(--soft-2); border-color: var(--brass); font-weight: 600; }
.quote-price { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .quote-price s { color: var(--muted); } .quote-price b { font: 400 1.4rem var(--serif); color: var(--forest); }
.listitem { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.listitem .shot { aspect-ratio: 1; border-radius: 12px; }
.receipt { font: 400 .85rem/1.5 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; }
.receipt div { display: flex; justify-content: space-between; gap: 10px; }
.receipt .tot { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; font-weight: 700; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* the "Your Fortress technician" card from the website hero */
.tcard { background: var(--surface); border-radius: 22px; padding: 20px; box-shadow: 0 24px 48px -22px rgba(31, 58, 46, .45); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.tcard-who { display: flex; gap: 12px; align-items: center; }
.tcard-who b { display: block; font: 400 1.35rem/1.2 var(--serif); }
.tcard-who small { color: var(--muted); font-size: .82rem; }
.tcard-av { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: var(--on-forest); display: grid; place-items: center; }
.tcard-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.tcard-list li { display: flex; align-items: center; gap: 10px; }
.tcard-list li.on { color: var(--muted); text-decoration: line-through; }
.tbox { flex: none; width: 16px; height: 16px; border: 1.5px solid var(--line); border-radius: 4px; display: grid; place-items: center; font-size: .7rem; color: var(--on-forest); }
.tcard-list li.on .tbox { background: var(--forest); border-color: var(--forest); }
.tcard-date { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: var(--soft); color: var(--muted); font-size: .8rem; }

/* office: profiles */
.plink { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); cursor: pointer; text-align: left; }
.plink:hover { text-decoration-color: var(--forest); }
.back { align-self: flex-start; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.kv:last-child { border-bottom: 0; } .kv span { color: var(--muted); } .kv b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* office */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi b { display: block; font: 400 2rem var(--serif); font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: .85rem; }
.cols { display: grid; gap: 20px; }
@media (min-width: 960px) { .cols { grid-template-columns: 1.6fr 1fr; } }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
th { text-align: left; font: 600 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
.auto { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.auto:last-child { border-bottom: 0; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: .9rem; max-width: calc(100% - 32px); z-index: 20; box-shadow: var(--shadow); }
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 15; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-width: 460px; border-radius: 22px 22px 0 0; padding: 20px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 12px; max-height: 85vh; overflow-y: auto; }
.msg { background: var(--soft); border-radius: 14px; padding: 12px 14px; font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* app additions */
.login { max-width: 420px; margin: 8vh auto 0; display: flex; flex-direction: column; gap: 16px; }
.login h1 { font-size: 2.4rem; line-height: 1.1; }
.err { color: var(--bad); background: var(--bad-bg); border-radius: 12px; padding: 10px 14px; font-size: .9rem; }
.note { color: var(--muted); font-size: .85rem; }
.grid2 { display: grid; gap: 12px; }
@media (min-width: 700px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.linkbtn { background: none; border: 0; padding: 0; color: var(--forest); text-decoration: underline; font-weight: 600; }
.empty { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.shot.local { outline: 2px dashed var(--warn); outline-offset: -2px; }
.board > *, .cols > *, .stack > * { min-width: 0; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

.brand { flex-direction: column; align-items: flex-start; gap: 2px; }
.brand small { font: 500 .66rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
/* official logo: always its true proportions, never stretched by a flex layout */
.logo-img { display: block; flex: none; align-self: flex-start; width: auto; height: 40px; max-width: 100%; object-fit: contain; object-position: left center; }
.logo-lg { height: 60px; margin-bottom: 12px; }
/* login: logo and heading centered */
.login .logo-img { align-self: center; object-position: center; }
.login h1, .login > div:has(h1) { text-align: center; }
.login .note { text-align: center; }

/* admin view bar (test only) */
#adminbar { background: var(--warn-bg); border-bottom: 1px solid var(--line); padding-block: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.adminbar-in { max-width: 1180px; margin: 0 auto; display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.adminbar-in .tabs { background: var(--surface); }
.adminbar-in select { font-size: 16px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }

/* ================= Clean (Apple-style) layer: overrides everything above ================= */
:root {
  --bg: #F5F5F7; --surface: #FFFFFF; --soft: #F2F2F4; --soft-2: #E8E8ED;
  --ink: #1D1D1F; --muted: #6E6E73; --faint: #AEAEB2; --line: rgba(60, 60, 67, .12);
  --forest: #1F3A2E; --forest-tint: rgba(31, 58, 46, .08);
  --ok: #248A3D; --ok-bg: rgba(52, 199, 89, .14); --warn: #A05A00; --warn-bg: rgba(255, 159, 10, .16);
  --bad: #D70015; --bad-bg: rgba(255, 59, 48, .12); --info: #0060DF; --info-bg: rgba(0, 122, 255, .12);
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, system-ui, 'Segoe UI', Roboto, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', Inter, system-ui, 'Segoe UI', Roboto, sans-serif;
  --serif: var(--display);
  --r: 16px; --r-lg: 22px;
  --lift: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .05);
  --shadow: 0 10px 40px rgba(0, 0, 0, .12);
}
body { background: var(--bg); color: var(--ink); font: 400 16px/1.45 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: -.011em; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.022em; color: var(--ink); }
.hello { font-size: 2.1rem; }
.phone h2, .sec { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.eyebrow { font: 600 .78rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); margin: 0 0 4px; }
a { color: var(--forest); }
:focus-visible { outline: 3px solid rgba(31, 58, 46, .35); outline-offset: 2px; }

/* header: frosted glass */
.top { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: .5px solid var(--line); padding-block: 8px; }
body::before { background: rgba(255, 255, 255, .72); }
.logo-img { height: 34px; }
.brand small { font: 500 .72rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }

/* surfaces: white, no outlines, soft lift */
.card, .mcard, .tcard, .hcard, .pbox, .glist, .kpi { background: var(--surface); border: 0; border-radius: var(--r-lg); box-shadow: var(--lift); }
.card { padding: 20px; }
.card.soft { background: var(--surface); }
.mcard.ask { box-shadow: var(--lift), inset 0 0 0 1.5px rgba(255, 159, 10, .6); }
.phone { gap: 22px; }

/* section = title outside, grouped list inside (like iPhone Settings) */
.panel { background: none; border-radius: 0; padding: 0; gap: 8px; box-shadow: none; }
.panel > h2, .panel > .row h2 { padding: 0 4px; }
.panel > .row { padding: 0 0 0 4px; }
.pbox { padding: 4px 16px; gap: 0; box-shadow: var(--lift); }
.pbox > .empty { padding: 14px 0; }
.prow { border: 0; border-radius: 0; padding: 12px 0; border-bottom: .5px solid var(--line); }
.prow:last-child { border-bottom: 0; }
.prow-ic { width: 36px; height: 36px; border-radius: 9px; background: var(--forest-tint); }
.prow-ic svg { width: 18px; height: 18px; }
.prow-t b { font-weight: 600; color: var(--ink); font-size: .97rem; }
.prow-t small { padding: 0; background: none !important; font-weight: 500; font-size: .82rem; color: var(--muted) !important; }
.prow-t small.ok::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #34C759; margin-right: 6px; vertical-align: 1px; }
.prow-t small.wait::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #FF9F0A; margin-right: 6px; vertical-align: 1px; }
.pbox .ba { margin: 0 0 12px; } .pbox > .row.between { padding-top: 12px; }

/* technician card */
.tcard { padding: 22px; gap: 16px; }
.tcard-who b { font: 700 1.3rem/1.2 var(--display); letter-spacing: -.02em; }
.tcard-av { width: 46px; height: 46px; font-weight: 600; font-size: 1.1rem; }
.tcard-list { gap: 0; }
.tcard-list li { padding: 11px 0; border-bottom: .5px solid var(--line); }
.tcard-list li:last-child { border-bottom: 0; }
.tbox { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--faint); font-size: .75rem; }
.tcard-list li.on { text-decoration: none; color: var(--faint); }
.tcard-date { background: var(--soft); color: var(--muted); font-weight: 500; }

/* hours card */
.hcard { padding: 28px 22px 10px; }
.hcard-big { font: 600 3.8rem/1 var(--display); letter-spacing: -.04em; color: var(--ink); }
.hcard-sub { color: var(--muted); }
.hcard-chip { background: var(--forest-tint); color: var(--forest); font-weight: 600; }
.hcard ul { border-top: .5px solid var(--line); } .hcard li { border-bottom: .5px solid var(--line); }

/* buttons: filled primary, tinted gray secondary */
.btn { border: 0; background: var(--soft-2); color: var(--ink); min-height: 48px; border-radius: 14px; font-weight: 600; transition: transform .12s ease, opacity .12s ease, background .12s ease; }
.btn:hover { background: #DEDEE3; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--forest); color: #fff; }
.btn.primary:hover { background: #2A4D3D; }
.btn.small { min-height: 36px; border-radius: 10px; padding: 0 14px; }
.btn.block { border-radius: 14px; }
.linkbtn { text-decoration: none; color: var(--forest); font-weight: 500; }
.chip { font-weight: 600; font-size: .75rem; padding: 4px 9px; background: var(--soft); color: var(--muted); }

/* calendar + time slots */
.cal-month { font: 700 1.1rem var(--display); color: var(--ink); }
.cal button { border: 0; background: var(--soft); border-radius: 14px; color: var(--ink); padding: 10px 0; transition: background .12s ease; }
.cal button span { color: var(--muted); }
.cal button[aria-pressed="true"] { background: var(--forest); color: #fff; } .cal button[aria-pressed="true"] span { color: rgba(255,255,255,.75); }
.slots button { border: 0; background: var(--soft); border-radius: 12px; min-height: 46px; font-weight: 500; }
.slots button[aria-pressed="true"] { background: var(--forest-tint); box-shadow: inset 0 0 0 2px var(--forest); font-weight: 600; color: var(--forest); }
.panel .pbox:has(.cal) { padding: 16px; gap: 12px; }

/* forms: iOS-style filled fields */
.field { font-size: .85rem; font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select, .inp { font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 0; background: var(--soft); color: var(--ink); width: 100%; transition: box-shadow .12s ease, background .12s ease; }
.inp { width: auto; min-height: 40px; padding: 8px 12px; }
.field input:focus, .field textarea:focus, .field select:focus, .inp:focus { outline: 0; background: #fff; box-shadow: 0 0 0 3px rgba(31, 58, 46, .25); }
.wdays { display: flex; gap: 6px; flex-wrap: wrap; }
.wdays label { position: relative; cursor: pointer; }
.wdays input { position: absolute; opacity: 0; inset: 0; }
.wdays span { display: inline-grid; place-items: center; min-width: 46px; height: 36px; padding: 0 10px; border-radius: 10px; background: var(--soft); font-weight: 600; font-size: .85rem; color: var(--muted); }
.wdays input:checked + span { background: var(--forest); color: #fff; }
.wdays input:focus-visible + span { outline: 3px solid rgba(31, 58, 46, .35); }
.switch { width: 51px; height: 31px; background: #E9E9EB; } .switch::after { width: 27px; height: 27px; top: 2px; left: 2px; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16); }
.switch[aria-checked="true"] { background: #34C759; } .switch[aria-checked="true"]::after { left: 22px; }

/* login */
.login { margin-top: 10vh; gap: 18px; }
.login h1 { font-size: 2.2rem; }

/* sheets + toasts */
.sheet-bg { background: rgba(0, 0, 0, .25); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet { border-radius: 14px 14px 0 0; padding-top: 10px; }
.sheet::before { content: ''; align-self: center; width: 36px; height: 5px; border-radius: 99px; background: var(--soft-2); margin-bottom: 6px; }
.toast { background: rgba(29, 29, 31, .86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 99px; padding: 12px 20px; font-weight: 500; }
.msg { background: var(--soft); border-radius: 14px; }

/* tech route */
.stop .card { padding: 18px; }
.stop-n { background: var(--soft-2); }
.task { border: 0; box-shadow: var(--lift); border-radius: var(--r-lg); }
.task.isdone { box-shadow: var(--lift), inset 0 0 0 1.5px rgba(52, 199, 89, .5); }
.shot { border-radius: 12px; border: 1.5px dashed var(--soft-2); background: var(--soft); }
.timer-big { font: 600 2.8rem/1 var(--display); letter-spacing: -.03em; }
.bar { background: var(--soft-2); height: 6px; }
.tmpl button { border: 0; background: var(--soft); }

/* office: Mac-style sidebar on desktop, segmented switcher on phones */
.page:has(.oshell) { padding-top: 0; }
.oshell { max-width: 1180px; margin: 0 auto; display: grid; gap: 20px; }
.oside { position: sticky; top: 58px; z-index: 4; display: flex; gap: 2px; padding: 4px; margin: 12px 0 0; background: rgba(118, 118, 128, .12); border-radius: 10px; overflow-x: auto; scrollbar-width: none; }
.oside::-webkit-scrollbar { display: none; }
.oside button { flex: 1 0 auto; border: 0; background: none; padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: .85rem; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.oside button[aria-current="page"] { background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #FF3B30; color: #fff; font-size: .7rem; font-weight: 700; display: inline-grid; place-items: center; }
.omain { min-width: 0; }
.omain.narrow { max-width: 620px; width: 100%; }
.omain.narrow .phone { max-width: none; }
.ocontent { display: flex; flex-direction: column; gap: 26px; }
.ohead h1 { font-size: 2.1rem; }
.ocontent section { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ocontent .sec { padding: 0 4px; margin: 0; }
@media (min-width: 900px) {
  .oshell { grid-template-columns: 210px 1fr; gap: 36px; padding-top: 24px; }
  .oside { position: sticky; top: 76px; align-self: start; flex-direction: column; background: none; padding: 0; margin: 0; gap: 2px; }
  .oside button { justify-content: space-between; padding: 9px 12px; font-size: .95rem; font-weight: 500; border-radius: 8px; }
  .oside button:hover { background: rgba(0, 0, 0, .04); }
  .oside button[aria-current="page"] { background: var(--forest-tint); color: var(--forest); font-weight: 600; box-shadow: none; }
}
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 16px 18px; }
.kpi b { font: 600 2rem/1.1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.kpi span { font-size: .85rem; color: var(--muted); font-weight: 500; }
.glist { padding: 0 16px; display: flex; flex-direction: column; overflow: hidden; }
.gitem { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: .5px solid var(--line); min-width: 0; }
.gitem:last-child { border-bottom: 0; }
button.gitem { width: 100%; border-left: 0; border-right: 0; border-top: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.gitem:last-child { border-bottom: 0; }
button.gitem:hover .gt b { color: var(--forest); }
.gt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gt b, .gt .plink { font-weight: 600; font-size: .97rem; }
.gt small { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.gt small .plink { font-size: inherit; font-weight: 500; }
.gtime { flex: none; width: 74px; font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.av { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--forest-tint); color: var(--forest); display: grid; place-items: center; font-weight: 600; }
.chev { color: var(--faint); font-size: 1.4rem; line-height: 1; }
.plink { text-decoration: none; color: var(--ink); font-weight: 600; }
.plink:hover { color: var(--forest); text-decoration: underline; text-decoration-color: currentColor; }
.auto { border-bottom: .5px solid var(--line); }
.kv { border-bottom: .5px solid var(--line); padding: 12px 0; }
.back { font-size: 1rem; font-weight: 500; padding: 4px 0; }
details.card summary { font-weight: 600; }

/* admin test bar: quiet */
#adminbar { background: #FFF8E6; border-bottom: .5px solid var(--line); }

/* ===== The website's "Your technician" card look (Juan 10/20): bold green serif titles, Duke, square checkboxes, cream chip ===== */
:root { --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif; --cream: #F4EFE6; --stone: #635F57; --sand: #DDD4C4; }
body { font-family: Inter, -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif; letter-spacing: 0; }
h1, h2, h3, .sec, .phone h2, .ohead h1, .hello, .cal-month, .next-day, .tcard-who b, .mcard .tcard-who b { font-family: var(--serif); font-weight: 700; color: var(--forest); letter-spacing: -.01em; }
.hello, .ohead h1 { font-size: 2rem; }
.card, .mcard, .tcard, .hcard, .pbox, .glist, .kpi { border-radius: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 20px 44px -28px rgba(31, 58, 46, .35); }
.tcard { padding: 24px; }
.tcard-who { gap: 14px; }
.tcard-who b { font-size: 1.45rem; line-height: 1.15; }
.tcard-who small { color: var(--stone); font-size: .92rem; margin-top: 4px; display: block; }
.tcard-av { width: 52px; height: 52px; background: var(--forest); color: #fff; font-family: var(--serif); }
.tcard-av.duke { background: none; padding: 0; overflow: hidden; }
.tcard-av.duke img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tcard-list li { border-bottom: 0; padding: 7px 0; font-size: 1.02rem; color: #2B2B2B; gap: 14px; }
.tbox { width: 20px; height: 20px; border-radius: 6px; border: 1.75px solid var(--sand); }
.tcard-list li.on .tbox { background: var(--forest); border-color: var(--forest); color: #fff; }
.tcard-list li.on { color: var(--stone); text-decoration: line-through; text-decoration-color: var(--sand); }
.tcard-date { background: var(--cream); color: var(--stone); font-size: .9rem; font-weight: 400; padding: 8px 14px; gap: 8px; }
.tcard-date svg { width: 16px; height: 16px; }
.hcard-big, .kpi b, .timer-big { font-family: var(--serif); font-weight: 400; color: var(--forest); letter-spacing: -.02em; }
.hcard-chip { background: #F6ECD6; color: #7A6236; }
.prow-ic, .av { background: var(--cream); }
.tcard-date, .hcard-chip { border-radius: 99px; }
.panel .pbox:has(.next-day) { padding: 18px; gap: 4px; }
.panel .pbox:has(.next-day) .btn { margin-top: 12px !important; }
.login .field input { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }

/* test mode bar (office only, live site) */
#testbar { background: #1D1D1F; color: #fff; padding-block: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.testbar-in { max-width: 1180px; margin: 0 auto; display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; font-size: .88rem; }
.testbar-t { flex: 1 1 auto; min-width: 0; color: rgba(255,255,255,.75); } .testbar-t b { color: #fff; }
.seg { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: rgba(255,255,255,.14); }
.seg button { border: 0; background: none; color: #fff; padding: 6px 14px; border-radius: 7px; font-weight: 600; font-size: .85rem; }
.seg button[aria-pressed="true"] { background: #fff; color: #1D1D1F; }
.seg button[disabled] { opacity: .4; cursor: not-allowed; }
#testbar select { font-size: 16px; padding: 5px 10px; border-radius: 8px; border: 0; background: rgba(255,255,255,.14); color: #fff; max-width: 100%; }
#testbar select option { color: #1D1D1F; }

/* settings rows (work hours): label left, value right, like iOS Settings */
.setlist { display: flex; flex-direction: column; border-top: .5px solid var(--line); }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: .5px solid var(--line); font-weight: 500; color: var(--ink); cursor: pointer; }
.setrow span { display: flex; flex-direction: column; } .setrow small { font-size: .8rem; color: var(--muted); font-weight: 400; }
.setrow select { appearance: none; -webkit-appearance: none; font: 600 16px var(--sans); color: var(--forest); background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231F3A2E' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; border: 0; border-radius: 10px; padding: 8px 34px 8px 14px; min-height: 40px; cursor: pointer; }
.setrow select:focus-visible { outline: 3px solid rgba(31, 58, 46, .3); }
.seg.light { background: rgba(118, 118, 128, .12); align-self: stretch; }
.seg.light button { flex: 1; color: var(--ink); }
.seg.light button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); }

/* office switcher on phones: solid when pinned, so the page never shows through */
@media (max-width: 899px) {
  .oside { top: calc(var(--top-h, 58px) + 6px); background: #E6E6EB; box-shadow: 0 0 0 6px var(--bg), 0 10px 14px -6px var(--bg); z-index: 6; }
}
@media (max-width: 899px) { .oside button { flex: 1 1 auto; padding: 7px 6px; font-size: .8rem; gap: 4px; } .oside .badge { min-width: 16px; height: 16px; font-size: .65rem; } }

/* coffee on the way */
.coffee { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-top: 10px; border-radius: 14px; background: #F6ECD6; }
.coffee .gt b { color: #5B4524; } .coffee .gt small { color: #7A6236; }
.coffee .btn { background: #fff; }
.coffee-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #fff; display: grid; place-items: center; font-size: 1.15rem; }
.coffee-ic.big { width: 46px; height: 46px; border-radius: 50%; background: #F6ECD6; font-size: 1.4rem; }
.coffee-card .gt b { font: 700 1.15rem var(--serif); color: var(--forest); }
.seg.pick { display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: rgba(118, 118, 128, .12); }
.seg.pick label { flex: 1; position: relative; cursor: pointer; }
.seg.pick input { position: absolute; opacity: 0; inset: 0; }
.seg.pick span { display: block; text-align: center; padding: 8px 6px; border-radius: 8px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.seg.pick input:checked + span { background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); }
.seg.pick input:focus-visible + span { outline: 3px solid rgba(31, 58, 46, .3); }

/* past visits */
button.prow.plist { width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.prow.plist:last-child { border-bottom: 0; }
.prow .chev { margin-left: auto; }

/* market */
.ohead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.mbar { display: block; height: 6px; border-radius: 99px; background: var(--soft); margin-top: 8px; overflow: hidden; }
.mbar i { display: block; height: 100%; border-radius: 99px; background: var(--faint); }
.gitem.ours .mbar i { background: var(--forest); }
.gitem.ours { background: linear-gradient(90deg, var(--forest-tint), transparent); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.mprice { flex: none; text-align: right; } .mprice b { font: 700 1.3rem var(--serif); color: var(--forest); } .mprice small { color: var(--muted); font-size: .8rem; }
.field textarea { font: inherit; font-size: 16px; resize: vertical; }
[hidden] { display: none !important; }
.pbox > .shot { aspect-ratio: 16 / 9; }
.gt small.incl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
