/* CADINVO brand layer, taken from www.cadinvo.com (30 Sep 2026). Loaded after v5.css on both pages and overrides it:
   Source Sans 3 (self-hosted, SIL OFL 1.1 — fonts/LICENSE.md), blue #295eb0, lavender-grey surfaces, pill buttons,
   softly rounded cards, dark footer, official logo. Also holds the fixes from the 30 Sep layout audit (docs/03 §3). */

/* vietnamese */
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:400 900;font-display:swap;src:url(/fonts/source-sans-3-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
/* latin-ext */
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:400 900;font-display:swap;src:url(/fonts/source-sans-3-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
/* latin */
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:400 900;font-display:swap;src:url(/fonts/source-sans-3-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* Deployment login: authored here; public CSS is generated by sync-public. */
.login-page{margin:0;min-height:100vh;background:#f4f5fa;font-family:var(--font)}
.login-page *{box-sizing:border-box}
.login-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:100vh}
.login-story{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:56px clamp(32px,5vw,88px);background:linear-gradient(145deg,#2d456e,#295eb0);color:#fff}
.login-story::after{content:'';position:absolute;inset:0;background:radial-gradient(circle at 80% 20%,#ffffff12,transparent 42%);pointer-events:none}
.login-logo{height:auto;width:190px;max-width:100%;position:relative;z-index:1}
.login-story-copy{position:relative;z-index:1;max-width:470px;margin:56px 0}
.login-eyebrow{font-size:12px;font-weight:750;letter-spacing:.15em;color:#d6e5fc}
.login-story h1{font-size:clamp(36px,4vw,58px);line-height:1.08;color:#fff;margin:22px 0;font-weight:800;max-width:440px}
.login-story p{font-size:19px;line-height:1.6;color:#e3ebf8;max-width:360px}
.login-story-footer{font-size:13px;color:#dae5f6}
.login-illustration{max-width:340px;margin-top:42px;background:#ffffff0b;border:1px solid #ffffff30;border-radius:16px;padding:22px;transform:rotate(-3deg);box-shadow:0 25px 60px #10264630}
.login-calendar-head{display:flex;gap:8px;padding-bottom:18px;border-bottom:1px solid #ffffff20}
.login-calendar-head span{width:7px;height:7px;border-radius:50%;background:#bfd4f6}
.login-calendar-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;padding-top:18px}
.login-calendar-grid span{height:28px;border-radius:5px;background:#ffffff10}
.login-calendar-grid span.scheduled{background:#b3d1ff;box-shadow:inset 3px 0 #fff}
.login-panel{display:flex;flex-direction:column;padding:38px clamp(24px,5vw,80px);background:#f9fafc}
.login-languages{display:flex;justify-content:flex-end;gap:6px}
.login-languages button{border:1px solid #deddea;border-radius:999px;background:#fff;color:#2d456e;min-width:44px;min-height:40px;font-size:12px;font-weight:750;cursor:pointer}
.login-languages button[aria-pressed=true]{background:#295eb0;color:#fff;border-color:#295eb0}
.login-form-wrap{width:100%;max-width:390px;margin:auto; padding:48px 0}
.login-mark{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;background:#e9eff9;color:#295eb0;border-radius:14px;font-size:26px;margin-bottom:16px}
.login-form-wrap h2{font-size:34px;color:#2d456e;margin:0 0 12px;font-weight:800;line-height:1.15}
.login-subtitle{font-size:16px;line-height:1.6;color:#616b7d;margin:0 0 30px}
.login-form-wrap label{display:block;font-size:14px;font-weight:650;color:#2d456e;margin:20px 0 8px}
.login-form-wrap input{width:100%;min-height:50px;border:1px solid #cbd2df;border-radius:8px;background:#fff;color:#231f20;font-size:16px;padding:12px 14px;box-shadow:0 1px 2px #00000003}
.login-password-field{position:relative}
.login-password-field input{padding-right:148px}
.login-password-toggle{position:absolute;right:4px;top:4px;bottom:4px;border:0;border-radius:6px;background:#fff;color:#295eb0;font-size:12px;padding:0 9px;cursor:pointer;max-width:140px}
.login-error{min-height:42px;padding:10px 0;font-size:14px;line-height:1.45;color:#a62638}
.login-submit{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:50px;border:0;border-radius:999px;padding:13px 22px;background:#295eb0;color:#fff;font-size:16px;font-weight:700;cursor:pointer;box-shadow:0 5px 15px #295eb022}
.login-submit:hover:not(:disabled){background:#1f4a8c}
.login-submit:disabled{opacity:.6;cursor:wait}
.login-security{display:flex;justify-content:center;align-items:center;gap:8px;color:#616b7d;font-size:13px;margin:24px 0 0;text-align:center}
.login-panel-footer{text-align:center;font-size:12px;color:#6b7280;padding-top:14px}
.login-page button:focus-visible,.login-page input:focus-visible{outline:3px solid #0173ef;outline-offset:3px}
.session-logout{border:1px solid #deddea;border-radius:999px;background:#fff;color:#295eb0;min-height:36px;padding:6px 14px;font-size:13px;font-weight:700;cursor:pointer}
.session-logout:focus-visible{outline:3px solid #0173ef;outline-offset:2px}
@media(max-width:760px){.login-layout{grid-template-columns:1fr}.login-story{padding:26px 28px}.login-logo{width:145px}.login-story-copy{margin:28px 0 10px;max-width:none}.login-story h1{font-size:32px;margin:12px 0}.login-story p{font-size:16px;max-width:none;margin-bottom:0}.login-illustration,.login-story-footer{display:none}.login-panel{padding:24px;min-height:540px}.login-form-wrap{padding:32px 0}.login-form-wrap h2{font-size:30px}}
@media(prefers-reduced-motion:reduce){.login-illustration{transform:none}}

/* ---------- tokens (cadinvo.com palette) ---------- */
.application-root{display:contents}
:root{
  --font:'Source Sans 3','Source Sans Pro',Arial,Helvetica,sans-serif;
  --blue:#295eb0;          /* primary: buttons, panels */
  --blue-hover:#1f4a8c;
  --blue-bright:#0173ef;   /* accents, eyebrows, links on light */
  --blue-deep:#2d456e;     /* dark navy surfaces */
  --blue-ink:#231f20;
  --ink:#231f20;           /* body text */
  --muted:#4a4a4a;
  --paper:#ffffff;
  --lilac:#deddea;         /* header bar and section backgrounds */
  --ice:#f1f1f7;           /* light panels */
  --line:#deddea;
  --dark:#1e1f23;          /* footer */
  --radius:8px;
  --shadow:0 2px 12px rgba(35,31,32,.08);
  --green:var(--blue);--lime:var(--ice);--bg:var(--paper);
  --scrollbar-thumb:#7b8fac;
  --scrollbar-track:var(--ice);
}

/* Native scrolling with the same treatment on pages, calendars and dialogs.
   Keep the system scrollbar in forced-colors mode. Standard properties are a
   fallback: setting them in Chromium would override the rounded thumb below. */
@media(forced-colors:none){
  @supports selector(::-webkit-scrollbar){
    :root,.admin .wizard .day-chips{scrollbar-width:auto}
    *::-webkit-scrollbar{width:10px;height:10px}
    *::-webkit-scrollbar-track{background:var(--scrollbar-track);border-radius:999px}
    *::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);background-clip:padding-box;border:2px solid transparent;border-radius:999px;min-height:40px;min-width:40px}
    *::-webkit-scrollbar-thumb:hover{background-color:var(--blue)}
    *::-webkit-scrollbar-thumb:active{background-color:var(--blue-hover)}
    *::-webkit-scrollbar-button{display:none;width:0;height:0}
    *::-webkit-scrollbar-corner{background:transparent}
    .admin aside{--scrollbar-thumb:#a9b8d1;--scrollbar-track:transparent}
  }
  @supports not selector(::-webkit-scrollbar){
    *{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb) var(--scrollbar-track)}
    .admin aside{--scrollbar-thumb:#a9b8d1;--scrollbar-track:var(--blue-deep)}
  }
}

/* ---------- base ---------- */
body,button,input,select,textarea,h1,h2,h3,.brand,.brand span,.stat strong,.steps b,.choice .letter{font-family:var(--font)}
body{background:var(--paper);color:var(--ink)}
h1,h2,h3{color:var(--ink);letter-spacing:-.01em}
h1{font-weight:800}
p{color:var(--muted)}
a{color:var(--blue)}
.eyebrow{color:var(--blue-bright);font-weight:700}
.btn.primary,.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.btn.primary:hover:not(:disabled),.primary:hover:not(:disabled){background:var(--blue-hover);border-color:var(--blue-hover)}
.btn{color:var(--blue);border-color:var(--line)}
.card,.stat{border:1px solid var(--line);border-top:3px solid var(--blue);border-radius:var(--radius);box-shadow:var(--shadow)}
.choice,.result,.place-result,.recommendation,.location,.explanation,.summary{border-radius:var(--radius)}
dialog{border-radius:var(--radius)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:var(--blue-bright)}

/* ---------- logo ---------- */
.brand{display:inline-flex;flex-direction:column;align-items:flex-start;gap:6px;text-decoration:none}
.brand .logo{display:block;height:34px;width:auto;max-width:100%;object-fit:contain}
.brand span{color:var(--muted);font-weight:700}
.footer-logo{display:block;height:22px;width:auto;margin-bottom:6px}

/* ---------- people photos ---------- */
.avatar{background:none;padding:0;border-radius:50%;width:38px;height:38px;overflow:hidden;object-fit:cover;display:block}
.workspace-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;flex-shrink:0}

/* ---------- language switch (audit #1: the active language must stand out) ---------- */
.lang-switch{display:inline-flex;gap:4px}
.lang-switch button{min-height:32px;min-width:40px;padding:4px 10px;border:1px solid #b9b8c9;border-radius:999px;background:#fff;color:var(--ink);font:700 .78rem var(--font);opacity:1;cursor:pointer}
.lang-switch button[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:#fff}
.lang-switch button:hover:not([aria-pressed=true]){border-color:var(--blue);color:var(--blue)}
.lang-switch button:focus-visible,.slot-times .slot:focus-visible,.event:focus-visible,.day-chips button:focus-visible{outline:3px solid var(--blue-bright);outline-offset:2px}

/* ---------- customer page ---------- */
/* Decorative hexagon/circuit pattern (AI-generated, not a seamless tile): one strip at the right edge that fades out
   toward the logo. The mask covers exactly the strip, so there is no hard edge. */
.customer header{background:var(--lilac);position:relative;overflow:hidden;border-bottom:0}
.customer header::after{content:'';position:absolute;inset:0 0 0 auto;width:min(70%,560px);background:url(/assets/hero-pattern.jpg) center/cover no-repeat;opacity:.2;
  -webkit-mask-image:linear-gradient(to left,#000 30%,transparent 100%);mask-image:linear-gradient(to left,#000 30%,transparent 100%)}
.customer header>*{position:relative;z-index:1}
.customer .preview{background:#fff;color:var(--ink);border-radius:999px;padding:6px 14px}
.customer .intro .eyebrow{color:var(--blue-bright)}
.customer .intro h1{text-transform:uppercase;font-weight:900;letter-spacing:0;color:var(--blue-deep)}
.customer .flow{background:var(--blue);border:0;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.customer .steps{background:var(--lilac);border-bottom:0;color:var(--ink)}
.customer .steps .current{color:var(--blue)}
.customer .steps .current b{background:var(--blue);border-color:var(--blue);color:#fff}
.customer .choice{border-left:4px solid var(--blue-bright)}
.customer .choice .letter{background:var(--ice);color:var(--blue)}
.customer .choice .letter svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.customer .choice-photo{width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0}
/* On the blue panel the main action is a white pill with blue text, as on cadinvo.com. */
.customer #screen .btn.primary{background:#fff;border-color:#fff;color:var(--blue)}
.customer #screen .btn.primary:hover:not(:disabled){background:var(--ice);border-color:var(--ice);color:var(--blue-hover)}
/* audit #3: a disabled action stays readable, and says it is waiting */
.customer #screen .btn.primary:disabled{background:transparent;color:#fff;border:1px dashed rgba(255,255,255,.7);opacity:.85}
.customer #screen .searchrow .btn.primary{background:#fff}
.customer .day,.customer .time{background:#fff;color:var(--blue);border-color:#fff}
.customer .day.active,.customer .time.active{background:var(--blue-deep);color:#fff;border-color:#fff}
.customer .back{border-color:rgba(255,255,255,.7)}
.customer .subtitle,.customer #screen>.note,.customer form>.note,.customer .loading,.customer .summary span{color:#eef3fb}
/* audit #6 and #7: text on the blue panel needs contrast */
.customer .address-step .note{color:#eef3fb}
.customer #screen>.eyebrow{color:#dbe8ff}
.customer #screen>.note a{color:#fff}
.customer .summary{border-color:rgba(255,255,255,.35)}
.customer .success{color:var(--blue)}
.customer .reassurance>span{color:var(--blue-bright)}
.customer .host-photo{margin:30px 0 0;max-width:280px}
.customer .host-photo img{display:block;width:100%;height:auto;border-radius:var(--radius);box-shadow:var(--shadow)}
.customer .host-photo figcaption{margin-top:10px;font-size:.85rem;font-weight:700;color:var(--ink)}
.customer .host-photo figcaption span{font-weight:400;color:var(--muted)}
@media(max-width:980px){
  .customer .host-photo{display:flex;align-items:center;gap:14px;max-width:none;margin:22px 0 0}
  .customer .host-photo img{width:64px;height:64px;flex-shrink:0;border-radius:50%;object-fit:cover;object-position:50% 30%;box-shadow:none}
  .customer .host-photo figcaption{margin:0}
}
.customer footer{max-width:none;margin:0;background:var(--dark);color:#fff}
.customer .customer-footer{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:start;gap:24px;padding:26px 5vw;font-size:.88rem;line-height:1.5}
.customer .footer-brand{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.customer .footer-brand span,.customer .footer-timezone{color:#f1f1f3}
.customer .footer-timezone{text-align:center}
.customer .footer-contact{justify-self:end;color:#fff;text-decoration:none;overflow-wrap:anywhere}
.customer .footer-contact:hover{text-decoration:underline}
.customer .footer-contact:focus-visible{outline-color:#fff;outline-offset:4px}
.customer .header-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}

/* ---------- dashboard ---------- */
.admin aside{background:var(--blue-deep)}
.admin aside .brand .logo{height:30px}
.admin aside .brand span{color:#dbe3f0}
.admin .workspace{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.2);border-radius:var(--radius)}
.admin nav button.active{background:var(--blue)}
.admin nav b{background:#fff;color:var(--blue);border-radius:999px;padding:0 7px}
.admin header{background:#fff;border-bottom:1px solid var(--line)}
.admin .avatar{background:var(--lilac);color:var(--blue-deep)}
.admin .stat strong{color:var(--blue-deep)}
.admin .insight .saving{font-family:var(--font)}
.admin footer{background:var(--lilac)}
.admin #toast{background:var(--dark);border-radius:var(--radius)}
.admin .type{border-radius:var(--radius)}
.admin .type.selected{background:var(--ice);border-left:4px solid var(--blue)}
.admin .explanation{background:var(--ice)}
/* audit #17: comfortable checkboxes */
.admin input[type=checkbox]{width:24px;height:24px;min-height:0;accent-color:var(--blue)}
.admin .check{min-height:32px}
/* audit #12: the details in the dialog are what Daniel reads; make them readable */
#detail .explanation{font-size:.95rem;line-height:1.7;color:var(--ink)}

/* audit #9 and #10: week grid. The customer page's round `.day` pill style must not leak into the calendar columns,
   and each hour gets enough height for time, title and place. dashboard.js sets --hours. */
.admin .week{--hour:80px}
.admin .week.day-view{min-width:0}
.admin .day-rule{border:1px solid var(--line);border-radius:8px;margin:8px 0;padding:12px 16px;background:#fff}
.admin .day-rule summary{cursor:pointer;font-weight:650}
.admin .day-rule .row{margin:14px 0}
.admin .day-rule select,.admin .day-rule input{width:100%}
.admin .week .day,.admin .week .hours{height:calc(var(--hours,8) * var(--hour));min-height:0}
.admin .week .day{border:0;border-left:1px solid var(--line);border-radius:0;padding:0;background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--hour) - 1px),#ecebf3 calc(var(--hour) - 1px),#ecebf3 var(--hour))}
.admin .event{border-radius:4px;overflow:hidden}
.admin .event small:last-child{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin .event.agenda{background:#e8eef8;border-color:var(--blue)}
.admin .event.pending{background:#fff3df;border-color:#b07a28;color:#72501d}
.admin .event.confirmed{background:#e3f1e7;border-color:#2f7d4f;color:#1f4d33}
.calendar-hint{display:none;margin:0;padding:10px 24px;font-size:.85rem;color:var(--muted);border-bottom:1px solid var(--line)}

/* audit #15: new appointment — pick a day, then a time */
.day-chips{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 16px}
.day-chips button{min-height:40px;padding:6px 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--blue);font:700 .85rem var(--font);cursor:pointer}
.day-chips button[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:#fff}

/* ---------- responsive ---------- */
@media(max-width:980px){
  .calendar-hint{display:block}
}
@media(max-width:760px){
  /* audit #8: after the first step the intro would push the form ~400px down on phones */
  .customer.in-flow .intro{display:none}
  .customer.in-flow main{padding-top:32px}
  .admin .week{--hour:72px}
  .brand .logo{height:28px}
}
@media(max-width:420px){
  /* audit #5: keep the four steps on one line */
  .customer .steps{gap:6px;padding:14px 12px}
  .customer .steps li{font-size:.72rem;gap:4px}
  .customer .steps b{width:22px;height:22px}
}
@media(max-width:600px){
  .customer .customer-footer{grid-template-columns:1fr;gap:14px;padding:28px 5vw;font-size:.9rem}
  .customer .footer-timezone{text-align:left}
  .customer .footer-contact{justify-self:start}
}
/* Personal cancel link sits in a light box inside the dark flow: keep its label and button readable. */
.customer .location .field{color:var(--ink);margin-top:14px}
.customer .location textarea{font-size:.85rem;word-break:break-all;resize:none}
.customer .location .btn.wide:not(.primary){background:#fff;color:var(--blue);border-color:var(--blue)}
