/* Reset rules the prototype relied on from its publishing host (the real page lacks them). */
[hidden]{display:none !important}
body{margin:0}

:root{
  --ground:#f8fafc; --surface:#ffffff; --ink:#0e2b1f; --body:#333333; --ink-2:#706f6f; --ink-3:#8b8f8d;
  --line:#dfe7e2; --brand:#0e2b1f; --brand-ink:#ffffff; --brand-hi:#4ade80; --booked:#0e2b1f; --booked-ink:#ffffff;
  --accent:#e67e22; --accent-hover:#d35400; --accent-ink:#ffffff; --accent-soft:#fdf0e3; --accent-text:#b85c0a;
  --yes:#2f5f47; --yes-bg:#e1f2e8; --yes-line:#a5d0b7;
  --no-bg:#eef1ef; --no-ink:#8b8f8d; --warn:#9a5b06; --warn-bg:#fdf0d5;
  --shadow:0 1px 2px rgba(14,43,31,.06),0 8px 22px -14px rgba(14,43,31,.28);
  --sans:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --hand:"Caveat","Segoe Script",cursive;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ground:#0b1913; --surface:#12261c; --ink:#eef5f0; --body:#d5ddd8; --ink-2:#a3b0a9; --ink-3:#7b8982;
    --line:#24392e; --brand:#0e2b1f; --brand-ink:#ffffff; --brand-hi:#4ade80; --booked:#4ade80; --booked-ink:#0b1913;
    --accent:#f08a2e; --accent-hover:#e67e22; --accent-ink:#1b0f03; --accent-soft:#3d2409; --accent-text:#f7b26f;
    --yes:#7ddba3; --yes-bg:#173d2a; --yes-line:#2a6a48;
    --no-bg:#1a2b22; --no-ink:#6f7d76; --warn:#f5c15c; --warn-bg:#3a2a08;
    --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 22px -14px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"]{
  --ground:#0b1913; --surface:#12261c; --ink:#eef5f0; --body:#d5ddd8; --ink-2:#a3b0a9; --ink-3:#7b8982;
    --line:#24392e; --brand:#0e2b1f; --brand-ink:#ffffff; --brand-hi:#4ade80; --booked:#4ade80; --booked-ink:#0b1913;
    --accent:#f08a2e; --accent-hover:#e67e22; --accent-ink:#1b0f03; --accent-soft:#3d2409; --accent-text:#f7b26f;
    --yes:#7ddba3; --yes-bg:#173d2a; --yes-line:#2a6a48;
    --no-bg:#1a2b22; --no-ink:#6f7d76; --warn:#f5c15c; --warn-bg:#3a2a08;
    --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 22px -14px rgba(0,0,0,.7);
}
*{box-sizing:border-box}
body{background:var(--ground);color:var(--body);font-family:var(--sans);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;padding:0}
button:focus-visible,select:focus-visible,.switch input:focus-visible + .track{outline:2px solid var(--accent);outline-offset:2px}
.app{max-width:560px;margin-inline:auto;padding-inline:16px;padding-block:16px 0;display:flex;flex-direction:column;gap:20px}
.view{display:flex;flex-direction:column;gap:20px}


/* my week */
/* Compact on purpose: one sentence must not take a third of a phone screen. */
.hero{margin-inline:-16px;padding:14px 16px 16px;background:var(--brand);color:var(--brand-ink);display:flex;flex-direction:column;gap:10px;border-bottom:1px solid var(--line)}
.hero img{height:18px;width:auto;align-self:flex-start}
.hero h1{font-size:clamp(18px,5vw,21px);line-height:1.25;letter-spacing:-.01em;font-weight:600;margin:0;text-wrap:balance;color:var(--brand-ink)}
.hero h1 em{font-style:normal;color:var(--brand-hi)}
.hero p{margin:6px 0 0;font-size:14px;color:rgba(255,255,255,.8);max-width:46ch}
.sign{margin:0;text-align:center;font-family:var(--hand);font-size:26px;line-height:1.1;color:var(--ink);order:7}
.more{align-self:flex-start;font-size:14px;font-weight:500;color:var(--accent-text);padding:4px 0}
.block{display:flex;flex-direction:column;gap:12px}
.block h2{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);margin:0}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:14px;box-shadow:var(--shadow)}
.chips{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.dl{font-size:11px;font-weight:600;text-align:center;color:var(--ink-3);text-transform:uppercase;letter-spacing:.06em}
.chip,.half{border-radius:8px;background:var(--no-bg);color:var(--no-ink);font-weight:600;display:grid;place-items:center;border:1.5px solid transparent;transition:transform .12s ease,background .15s ease}
.chip{height:54px}
.half{height:36px;font-size:11px;border-radius:8px;letter-spacing:.01em}
.chip svg{width:16px;height:16px;opacity:0;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.chip[aria-pressed="true"],.half[aria-pressed="true"]{background:var(--yes-bg);color:var(--yes);border-color:var(--yes-line)}
.chip[aria-pressed="true"] svg{opacity:1}
.chip:active,.half:active{transform:scale(.94)}
.switch{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--ink-2);cursor:pointer}
.switch input{position:absolute;opacity:0;width:1px;height:1px}
.track{flex:none;width:38px;height:22px;border-radius:99px;background:var(--no-bg);border:1px solid var(--line);position:relative;transition:background .15s ease}
.track::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--surface);box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .15s ease}
.switch input:checked + .track{background:var(--yes);border-color:var(--yes)}
.switch input:checked + .track::after{transform:translateX(16px)}
.switch small{display:block;color:var(--ink-3);font-size:12px;font-family:var(--mono)}
.sentence{margin:0;font-size:17px;line-height:1.4;letter-spacing:-.01em;text-wrap:pretty}
.sentence b{font-weight:600}
.sentence .muted{color:var(--ink-3)}
.change{border-top:1px solid var(--line);padding-top:14px;display:flex;flex-direction:column;gap:10px}
.change-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.change-head label{font-size:14px;color:var(--ink-2);display:flex;align-items:center;gap:8px;flex-wrap:wrap}
select{font:inherit;font-size:14px;font-weight:500;color:var(--ink);background:var(--ground);border:1px solid var(--line);border-radius:8px;padding:6px 8px}
.x{width:30px;height:30px;border-radius:8px;color:var(--ink-3);display:grid;place-items:center;font-size:18px}
.x:hover{background:var(--no-bg);color:var(--ink)}
.add{align-self:flex-start;font-size:14px;font-weight:500;color:var(--accent-text);padding:6px 0}
.add:hover{text-decoration:underline}

/* calendar */
.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--ink-2)}
.legend span{display:flex;align-items:center;gap:6px}
.sw{width:14px;height:14px;border-radius:4px;display:inline-block;border:1px solid transparent}
.sw.full{background:var(--yes-bg);border-color:var(--yes-line)}
.sw.am{background:linear-gradient(to bottom,var(--yes-bg) 50%,var(--no-bg) 50%);border-color:var(--yes-line)}
.sw.none{background:var(--no-bg)}
.sw.bk{background:var(--booked)}
.sw.ex{background:var(--surface);border-color:var(--line);position:relative}
.sw.ex::after{content:"";position:absolute;inset:0;margin:auto;width:5px;height:5px;border-radius:50%;background:var(--ink)}
.cal{display:grid;grid-template-columns:34px repeat(7,1fr);gap:4px;align-items:center}
.cal .dh{font-size:11px;font-weight:600;color:var(--ink-3);text-align:center;text-transform:uppercase;letter-spacing:.05em;padding-bottom:2px}
.cal .wk{font-family:var(--mono);font-size:11px;color:var(--ink-3);line-height:1.15}
.cal .wk b{display:block;color:var(--ink-2);font-weight:500;font-size:12px}
.c{position:relative;aspect-ratio:1/1;min-height:40px;border-radius:8px;font-family:var(--mono);font-size:13px;font-variant-numeric:tabular-nums;display:grid;place-items:center;border:1.5px solid transparent;transition:transform .1s ease}
.c:active{transform:scale(.9)}
.c.past{opacity:.35;pointer-events:none}
.c.today{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--ink)}
.c.ex::after{content:"";position:absolute;bottom:4px;left:50%;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:currentColor}
.c.booked{background:var(--booked);color:var(--booked-ink);border-color:var(--booked);font-weight:600}
/* month sections: a heading over the full width, empty cells where a split week has no days */
.cal .mh{grid-column:1/-1;margin:10px 0 2px;font-size:15px;font-weight:700;color:var(--ink);text-transform:capitalize}
.c.blank{visibility:hidden;pointer-events:none}
.hint{font-size:12px;color:var(--ink-3);margin:0}
/* next jobs */
.jobcards{display:flex;flex-direction:column;gap:8px}
.job{display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);text-align:left;box-shadow:var(--shadow)}
.job:active{transform:scale(.99)}
.job .when{display:flex;flex-direction:column;align-items:center;border-radius:8px;background:var(--booked);color:var(--booked-ink);padding:6px 0}
.job .when span{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.06em}
.job .when b{font-family:var(--mono);font-size:18px;font-weight:500;line-height:1.1}
.job .jt{display:block;font-weight:600;font-size:15px;line-height:1.25}
.job .js{display:block;font-size:13px;color:var(--ink-2)}
.job .chev{color:var(--ink-3);font-size:20px}
.empty{border:1px dashed var(--line);border-radius:8px;padding:16px;font-size:14px;color:var(--ink-3);margin:0}
/* functies */
.savebar{order:99;position:sticky;bottom:0;margin-inline:-16px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:color-mix(in srgb,var(--ground) 88%,transparent);backdrop-filter:blur(10px);border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}
.savebar-t{font-size:13px;color:var(--ink-2)}
/* job sheet */
.jsub{margin:-4px 0 6px;font-size:14px;color:var(--ink-2)}
.jrow{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}
.jrow small{display:block;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-3)}
.jrow p{margin:2px 0 0;font-size:15px;line-height:1.4}
.ghost{font-size:13px;font-weight:600;padding:9px 12px;border-radius:8px;border:1.5px solid var(--line);white-space:nowrap}
.foot{font-size:13px;color:var(--ink-3);text-align:center;margin:0}
.foot a{color:var(--ink-2)}

/* section order is set per mode in JS; these keep the tail in place */
.foot{order:6}
/* save bar */
.cta{background:var(--accent);color:var(--accent-ink);font-weight:600;padding:12px 18px;border-radius:8px;font-size:15px;white-space:nowrap}
.cta:active{transform:scale(.97)}

/* day sheet */
.sheet{position:fixed;inset:0;background:rgba(0,0,0,.4);display:flex;align-items:flex-end;justify-content:center;z-index:10}
.sheet-card{background:var(--surface);width:100%;max-width:560px;border-radius:12px 12px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:8px}
.sheet-card h3{margin:0 0 4px;font-size:17px;font-weight:600;letter-spacing:-.01em}
.opt{display:flex;justify-content:space-between;align-items:center;padding:14px;border-radius:8px;border:1.5px solid var(--line);font-weight:500;text-align:left}
.opt span{font-family:var(--mono);font-size:12px;color:var(--ink-3)}

/* werkbon */
.wo-head .mono{font-family:var(--mono);font-size:12px;color:var(--ink-3)}
.wo-head h1{font-size:22px;line-height:1.2;letter-spacing:-.02em;font-weight:600;margin:2px 0 0;text-wrap:balance}
.toast{position:fixed;left:50%;bottom:calc(86px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--ink);color:var(--ground);padding:10px 16px;border-radius:8px;font-size:14px;max-width:calc(100% - 32px);box-shadow:var(--shadow);z-index:20}
@media (prefers-reduced-motion: reduce){*{transition:none!important;animation:none!important}}

/* onze-helden home additions (not in prototype): mail shortcuts + tile links */

/* job view additions */
.jprose{margin-top:2px;font-size:15px;line-height:1.5}
.jprose p{margin:0 0 8px}
.jmat{margin:4px 0 0;padding-left:18px;font-size:15px;line-height:1.5}
.wo-head .mono{display:inline-block;margin-bottom:8px;text-decoration:none}

/* keep the mail shortcuts near the tail, below the ordered sections */
#sec-mail{order:5}

/* multiple jobs on one calendar day: count badge + anchor chooser options */
.c .cnt{position:absolute;bottom:2px;right:3px;font-family:var(--sans);font-size:9px;font-weight:700;line-height:1;padding:1px 4px;border-radius:99px;background:var(--brand-hi);color:var(--brand)}
a.opt{text-decoration:none;color:inherit}

/* links that are styled as cards/buttons must not look like default links */
a.job,.job{color:inherit;text-decoration:none}
a.ghost{color:inherit;text-decoration:none}

/* job view: slim green brand header with the white logo and a back link */
.hero.slim{padding:12px 16px}
.hero.slim .hero-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hero.slim img{height:20px;width:auto}
.hero .back{color:var(--brand-ink);font-size:14px;font-weight:600;text-decoration:none}
.hero .back:hover{color:var(--brand-hi)}

/* impersonation bar (office-only state): a normal worker never sees this */
.impersonate-bar{position:sticky;top:0;z-index:60;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(9px + env(safe-area-inset-top,0px)) 16px 9px;background:#b85c0a;color:#fff;font-size:13px;font-weight:600;line-height:1.3;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.impersonate-bar span{min-width:0}
.impersonate-bar a{color:#fff;text-decoration:underline;white-space:nowrap;font-weight:700}
.impersonate-bar a:hover{color:#ffe9d5}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .impersonate-bar{background:#e67e22;color:#1b0f03}:root:not([data-theme="light"]) .impersonate-bar a{color:#1b0f03}}
:root[data-theme="dark"] .impersonate-bar{background:#e67e22;color:#1b0f03}
:root[data-theme="dark"] .impersonate-bar a{color:#1b0f03}

/* chip grid can never overflow at 360/320px; half-day uses row labels at the
   left and check-mark buttons (no text in the buttons) */
.chips{grid-template-columns:repeat(7,minmax(0,1fr))}
.chips.half-grid{grid-template-columns:auto repeat(7,minmax(0,1fr))}
.chip,.half{min-width:0}
.half{height:40px;font-size:0}
.chip svg,.half svg{width:16px;height:16px;opacity:0;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.chip[aria-pressed="true"] svg,.half[aria-pressed="true"] svg{opacity:1}
.rowlab{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;font-size:11px;font-weight:600;color:var(--ink-3);line-height:1.1;padding-right:2px}
.rowlab small{font-size:9px;font-weight:500;color:var(--ink-3)}

/* calendar grid can never overflow: shrinkable day columns, fixed cell height */
.cal{grid-template-columns:26px repeat(7,minmax(0,1fr))}
.cal .dh{min-width:0}
.c{aspect-ratio:auto;height:40px;min-height:0;min-width:0}
.c .cnt{font-size:8px;padding:0 3px;right:2px;bottom:2px}

/* insurance against 1fr-with-min-content overflow elsewhere on the home */
.jobcards .job > span{min-width:0}
.job .jt,.job .js{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* job view: long addresses / instructions must wrap, not push the page wide */
.jrow > div{min-width:0}
.jrow p,.jprose{overflow-wrap:anywhere}

/* ---- calendar as primary multi-select input ---- */
/* stronger greens (match the office matrix): available reads clearly vs grey */
.c.full{background:#4ade80;color:#08331d;border:1.5px solid #15803d}
.c.am{background:linear-gradient(to bottom,#4ade80 50%,#e5e7eb 50%);color:#08331d;border:1.5px solid #15803d}
.c.pm{background:linear-gradient(to bottom,#e5e7eb 50%,#4ade80 50%);color:#08331d;border:1.5px solid #15803d}
.c.none{background:#e5e7eb;color:#5b6660;border:1.5px solid #d1d5db}
.c.sel{outline:3px solid var(--accent);outline-offset:-2px}
.c.selectable{cursor:pointer}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){}
  :root:not([data-theme="light"]) .c.none{background:#33413a;color:#9aa8a0;border-color:#42544b}
  :root:not([data-theme="light"]) .c.am{background:linear-gradient(to bottom,#4ade80 50%,#33413a 50%)}
  :root:not([data-theme="light"]) .c.pm{background:linear-gradient(to bottom,#33413a 50%,#4ade80 50%)}
}
:root[data-theme="dark"] .c.none{background:#33413a;color:#9aa8a0;border-color:#42544b}

/* calendar navigation header */
.calnav{display:flex;align-items:center;gap:8px;justify-content:space-between}
.calnav-btn{width:36px;height:36px;border-radius:8px;border:1px solid var(--line);font-size:18px;color:var(--ink-2);flex:none}
.calnav-btn[disabled]{opacity:.35}
.calnav-mid{font-size:13px;font-weight:600;text-align:center;flex:1;min-width:0}
.calnav2{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px}
.calnav-today{font-size:13px;font-weight:600;padding:7px 12px;border-radius:8px;border:1px solid var(--line);min-height:36px}
.calnav-today[disabled]{opacity:.35}
.calgoto{font-size:13px;color:var(--ink-2);display:flex;align-items:center;gap:6px;min-width:0}
.cal-wrap{position:relative}
.cal-loading,.cal-error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;background:color-mix(in srgb,var(--surface) 82%,transparent);font-size:13px;color:var(--ink-2);border-radius:8px}
.cal-error{color:var(--warn);flex-direction:column}
.cal-error button{font-weight:700;text-decoration:underline;color:var(--warn)}

/* selection action bar (bottom, fixed) */
.actionbar{position:fixed;left:0;right:0;bottom:0;z-index:70;background:var(--surface);border-top:1px solid var(--line);padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));box-shadow:0 -4px 18px rgba(0,0,0,.16);display:flex;flex-direction:column;gap:8px}
.actionbar .ab-count small{display:block;font-weight:600;color:var(--warn);font-size:12px}

/* vaste week as an option */
.week-collapsed{display:flex;flex-direction:column;gap:10px}
.week-collapsed .cta{align-self:flex-start}
.week-summary .sentence{margin:0 0 6px}
.week-actions{display:flex;gap:14px;flex-wrap:wrap}
.ghost.danger{color:var(--warn)}
.week-editor .change{border:1px solid var(--line);border-radius:8px;padding:12px;margin-top:8px}
.week-editor .editor-actions{display:flex;gap:10px;margin-top:12px}

/* legend swatches match the stronger calendar greens */
.sw.full{background:#4ade80;border-color:#15803d}
.sw.am{background:linear-gradient(to bottom,#4ade80 50%,#e5e7eb 50%);border-color:#15803d}
.sw.none{background:#e5e7eb;border-color:#d1d5db}

body.ab-open{padding-bottom:232px}
/* navigation: Vandaag + Ga naar on one row */
.calnav2{flex-wrap:nowrap}
.calgoto{flex:1;min-width:0}
.calgoto select{min-width:0;flex:1}
/* days not filled in read as a faint dashed tile (like the office matrix) */
.c.unknown{background:color-mix(in srgb,var(--ink-3) 8%,transparent);border:1.5px dashed #b8c2bc;color:var(--ink-3)}
.sw.unk{background:transparent;border:1px dashed #b8c2bc}
/* A planned job always wins over the availability state (unknown/none/...),
   in both themes, so a job day never looks like an empty day to tap. */
#cal .c.booked{background:#0e2b1f;color:#fff;border:1.5px solid #0e2b1f}

/* "Snel regelen": functions and mail shortcuts are the same kind of thing to the
   worker, so they share ONE row design: icon, title, what it does, chevron. */
.qas{display:flex;flex-direction:column;gap:8px}
.qa{display:block;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:var(--shadow);color:inherit;text-decoration:none;overflow:hidden}
.qa-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;min-height:56px;cursor:pointer;list-style:none}
summary.qa-row::-webkit-details-marker{display:none}
.qa-ic{width:36px;height:36px;border-radius:8px;background:var(--yes-bg);display:grid;place-items:center}
.qa-ic svg{width:18px;height:18px;fill:none;stroke:var(--yes);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.qa-tx{min-width:0}
.qa-tx b{display:block;font-weight:600;font-size:15px;line-height:1.25;color:var(--ink)}
.qa-tx small{display:block;font-weight:400;margin-top:2px;font-size:12.5px;line-height:1.3;color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qa .chev{color:var(--ink-3);font-size:20px;line-height:1;transition:transform .15s ease}
details.qa[open] .chev{transform:rotate(90deg)}
details.qa[open] .qa-tx small{white-space:normal}
.qa:active .qa-row{background:var(--no-bg)}
.qa form{display:flex;flex-direction:column;gap:10px;padding:12px;border-top:1px solid var(--line)}
.qa label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:var(--ink-3)}
.qa input[type=text],.qa textarea{font:inherit;font-size:15px;font-weight:400;color:var(--ink);background:var(--ground);border:1px solid var(--line);border-radius:8px;padding:10px;min-width:0}
.qa textarea{resize:vertical}
.qa form .cta{align-self:flex-start}
/* confirmation after an action (for example a sent mail) */
.notices{display:flex;flex-direction:column;gap:6px}
.notice{margin:0;padding:10px 12px;border-radius:8px;font-size:14px;font-weight:500;background:var(--yes-bg);color:var(--yes);border:1px solid var(--yes-line)}
.notice.error{background:var(--warn-bg);color:var(--warn);border-color:transparent}

/* Action bar: say which days, ask the question, then the answers. Same width as the page. */
.ab-inner{width:100%;max-width:528px;margin-inline:auto}  /* same width as the page column's content */
.actionbar .ab-count{margin:0;font-size:14px;font-weight:400;color:var(--ink)}
.actionbar .ab-count b{font-weight:700}
.ab-q{margin:2px 0 8px;font-size:15px;font-weight:600;color:var(--ink)}
/* logout: there was no way out of the phone home */
.session{order:8;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;font-size:13px;color:var(--ink-3);padding-bottom:16px}
.session button{font:inherit;font-size:13px;font-weight:600;color:var(--ink-2);text-decoration:underline;padding:8px 4px}

/* Action bar as a flow: 1) pick an option (cards, green = chosen, same picture as the
   calendar cell it will become); 2) ONE orange button saves. Orange is only ever the
   final action, never a choice among equals. */
.ab-opts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.ab-opt{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:78px;padding:10px 4px 9px;border-radius:10px;border:1.5px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;box-shadow:var(--shadow);transition:border-color .12s ease,background .12s ease,transform .1s ease}
.ab-opt:active{transform:scale(.97)}
.ab-opt b{font-size:13.5px;font-weight:600;line-height:1.2}
.ab-opt span{font-size:11px;line-height:1.2;color:var(--ink-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.ab-vis{width:22px;height:22px;border-radius:6px;margin-bottom:3px;border:1.5px solid #15803d;background:#e5e7eb}
.ab-vis.full{background:#4ade80}
.ab-vis.am{background:linear-gradient(to bottom,#4ade80 50%,#e5e7eb 50%)}
.ab-vis.pm{background:linear-gradient(to bottom,#e5e7eb 50%,#4ade80 50%)}
.ab-vis.none{border-color:#d1d5db;background:linear-gradient(135deg,transparent 44%,#9ca3af 44%,#9ca3af 56%,transparent 56%),#e5e7eb}
.ab-opt[aria-checked="true"]{border-color:#15803d;background:var(--yes-bg);box-shadow:0 0 0 3px rgba(21,128,61,.18)}
.ab-opt.no[aria-checked="true"]{border-color:var(--ink-2);background:var(--no-bg);box-shadow:0 0 0 3px rgba(0,0,0,.08)}
.ab-opt[aria-checked="true"]::after{content:"\2713";position:absolute;top:5px;right:7px;font-size:12px;font-weight:700;color:#15803d}
.ab-opt.no[aria-checked="true"]::after{color:var(--ink-2)}
.ab-opt:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ab-go{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;margin-top:10px}
.ab-go .ab-cancel{min-height:48px;padding:0 16px;border-radius:8px;border:1.5px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;font-size:14px;font-weight:600}
.ab-save{min-height:48px;width:100%;font-size:15px;white-space:normal;line-height:1.2}
.ab-save:disabled{background:var(--no-bg);color:var(--ink-3);cursor:default}
.ab-clear{display:block;margin:8px auto 0;padding:6px;font:inherit;font-size:12.5px;color:var(--ink-2);text-decoration:underline}

/* ---- login / welcome / set-password pages (accounts/auth_branded.html) ---- */
.hero .brand-name{font-weight:700;font-size:15px;letter-spacing:.01em}
.auth .panel p{margin:0}
.auth .lead{font-size:15px;color:var(--body)}
.auth .who{font-size:14px;color:var(--ink-2);overflow-wrap:anywhere}
.auth .who b{color:var(--ink)}
.auth .cta{width:100%;font-size:16px;padding:14px 18px}
.auth .hint.center{text-align:center;font-size:13px}
.auth a{color:var(--accent-text)}
.field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--ink-2)}
/* 16px keeps iOS from zooming in on focus. */
.field input{font:inherit;font-size:16px;font-weight:400;color:var(--ink);background:var(--ground);border:1px solid var(--line);border-radius:8px;padding:12px;width:100%;min-width:0}
.field input:focus{outline:2px solid var(--accent);outline-offset:1px}
.pw{position:relative;display:block}
.pw input{padding-right:84px}
.pw-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);font-size:13px;font-weight:600;color:var(--ink-2);padding:8px 10px;border-radius:6px}
.field-error{margin:0;font-size:13px;font-weight:500;color:var(--warn);background:var(--warn-bg);padding:8px 10px;border-radius:8px}
.auth-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:14px}
.check{display:flex;align-items:center;gap:8px;color:var(--ink-2)}
.check input{width:18px;height:18px;accent-color:var(--yes)}

/* ---- first-visit welcome card on the home ---- */
.welcome{background:var(--surface);border:1px solid var(--yes-line);border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:12px;box-shadow:var(--shadow)}
.welcome h2{margin:0;font-size:18px;line-height:1.3;color:var(--ink)}
.welcome > p{margin:0;font-size:15px}
.steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;counter-reset:step}
.steps li{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:start;counter-increment:step}
.steps li::before{content:counter(step);display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--yes-bg);color:var(--yes);font-weight:700;font-size:14px}
.steps li.done::before{content:"\2713"}
.steps b{display:block;font-size:15px;color:var(--ink)}
.steps b a{color:inherit}
.steps small{display:block;font-size:13px;color:var(--ink-2)}
.welcome form{display:flex;align-items:center;justify-content:space-between;gap:12px}
.welcome .sign{order:0;font-size:24px}

/* Airco-schouw op de klus-pagina: rijen van één kolom, eerste rij zonder lijn */
.jrow.one{grid-template-columns:1fr}
.panel>.jrow.one:first-child{border-top:0;padding-top:0}
/* Foto's van de airco-schouw op de klus-pagina */
.jphotos{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.jphotos a{display:block;aspect-ratio:1;border-radius:6px;overflow:hidden;background:var(--no-bg)}
.jphotos img{width:100%;height:100%;object-fit:cover;display:block}
