/* ============================================================
   slotone — warm ink + brass, an appointment-card feel.
   Light-first; dark scheme via prefers-color-scheme.
   Motif: a time-grid of ruled rows and slots.
   ============================================================ */

:root {
  /* light (default) */
  --paper:    #F7F4EE;
  --card:     #FFFFFF;
  --card2:    #FBF9F4;
  --line:     #E0D8C8;
  --line-str: #D0C6B2;
  --ink:      #211E19;
  --ink-2:    #443E34;
  --muted:    #5C554A;
  --faint:    #726A5A;   /* dim but legible: placeholders/optional (>=4.5:1 on card) */
  --brass:    #8A5A00;   /* accent for text on light */
  --brass-fill:#C8912F;  /* accent fill */
  --brass-pill:#F6ECD6;
  --cobalt:   #1F4F99;
  --cobalt-pill:#EAF0FA;
  --free:     #2f6b45;
  --free-pill:#E3F2E9;
  --busy:     #8f2f1a;
  --busy-pill:#FBE9E4;
  --on-fill:  #211E19;   /* text on brass fill */
  --on-cobalt:#FFFFFF;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 13px;
  --radius-sm: 9px;
  --shadow: 0 14px 40px -26px rgba(40,30,10,0.55);
  --wrap: 1160px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --tgrid-stroke: rgba(140,120,80,0.20);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:    #17150F;
    --card:     #211E17;
    --card2:    #262218;
    --line:     #3A362B;
    --line-str: #4A4436;
    --ink:      #EDE7D9;
    --ink-2:    #D6CFBE;
    --muted:    #B0A791;
    --faint:    #948D78;
    --brass:    #D9A441;
    --brass-fill:#D9A441;
    --brass-pill:#3A2F14;
    --cobalt:   #7FA8E8;
    --cobalt-pill:#1B2740;
    --free:     #8FCE9F;
    --free-pill:#16281C;
    --busy:     #E8A08C;
    --busy-pill:#2E1A14;
    --on-fill:  #17150F;
    --on-cobalt:#17150F;
    --shadow:   0 18px 46px -26px rgba(0,0,0,0.8);
    --tgrid-stroke: rgba(217,164,65,0.14);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
em { font-style: normal; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--brass-fill); color: var(--on-fill);
  padding: 10px 16px; border-radius: 10px; font-weight: 700;
  z-index: 80; transition: top 0.18s var(--ease); text-decoration: none;
}
.skip-link:focus { top: 12px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.viewtab:focus-visible {
  outline: 3px solid var(--brass-fill);
  outline-offset: 2px;
  border-radius: 6px;
}

.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 700;
  margin-top: 16px;
}

/* ============================================================
   HERO + time-grid signature
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--card2) 0%, var(--paper) 100%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0;
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 96%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 96%);
}
.tgrid { width: 100%; height: 100%; display: block; }
.tgrid__lines line { stroke: var(--tgrid-stroke); stroke-width: 1; }
.tgrid__lines rect { fill: var(--tgrid-stroke); }

.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 44px) clamp(20px, 5vw, 44px) clamp(26px, 3.4vw, 40px);
}

.brandline { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brandmark { width: 34px; height: 34px; flex: none; }
.brandmark__fill { fill: var(--brass-fill); }
.brandline__name {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.04em;
}

.hero__title {
  font-size: clamp(2.05rem, 5.2vw, 3.4rem);
  margin: 10px 0 0;
  max-width: 16ch;
}
.hero__accent { color: var(--brass); }

.hero__lede {
  margin-top: 15px;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
}
.hero__lede em { color: var(--ink); font-weight: 600; }

.hero__honest {
  margin-top: 16px;
  max-width: 68ch;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass-fill);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
}
.hero__honest strong { color: var(--brass); }

/* ============================================================
   TOOLBAR (sticky)
   ============================================================ */
.toolbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.toolbar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 11px clamp(16px, 5vw, 44px);
  display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap;
}

.datectl { display: flex; align-items: center; gap: 6px; }
.navbtn {
  width: 36px; height: 36px; flex: none;
  border: 1px solid var(--line-str); border-radius: 9px;
  background: var(--card); color: var(--ink);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease);
}
.navbtn:hover { border-color: var(--brass-fill); background: var(--card2); }
.datefield input {
  font-family: var(--mono);
  font-size: 0.95rem; font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-str);
  border-radius: 9px;
  padding: 8px 10px;
  min-width: 0;
}

.viewctl {
  display: inline-flex; gap: 3px;
  background: var(--card2);
  border: 1px solid var(--line-str);
  border-radius: 11px; padding: 3px;
}
.viewtab {
  border: none; background: transparent;
  color: var(--muted); font-weight: 700; font-size: 0.9rem;
  padding: 7px 16px; border-radius: 8px; cursor: pointer;
  transition: background 0.14s var(--ease), color 0.14s var(--ease);
}
.viewtab:hover { color: var(--ink); }
.viewtab.is-active { background: var(--brass-fill); color: var(--on-fill); }

.svcctl { display: flex; align-items: center; }
.svcpick { display: inline-flex; align-items: center; gap: 8px; }
.svcpick__label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 700; color: var(--muted);
}

select {
  font-family: var(--sans); font-size: 0.92rem; font-weight: 600;
  color: var(--ink); background: var(--card);
  border: 1px solid var(--line-str); border-radius: 9px;
  padding: 8px 12px; cursor: pointer;
  max-width: 240px;
}

.toolbar__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* buttons */
.btn {
  font-family: var(--sans); font-weight: 700; font-size: 0.9rem;
  letter-spacing: -0.01em; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; padding: 9px 16px;
  transition: transform 0.12s var(--ease), background 0.14s var(--ease), border-color 0.14s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brass-fill); color: var(--on-fill); }
.btn--primary:hover { background: color-mix(in srgb, var(--brass-fill) 82%, #fff); }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line-str); }
.btn--ghost:hover { border-color: var(--brass-fill); background: var(--card2); }
.btn--today { padding: 8px 14px; }
.btn--mini { font-size: 0.78rem; padding: 6px 12px; background: var(--card); color: var(--ink); border-color: var(--line-str); }
.btn--mini:hover { border-color: var(--brass-fill); }
.btn--danger { color: var(--busy); border-color: var(--busy); }
.btn--danger:hover { background: var(--busy-pill); border-color: var(--busy); }

/* ============================================================
   SETTINGS
   ============================================================ */
.settings {
  border-bottom: 1px solid var(--line);
  background: var(--card2);
}
.settings__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 5vw, 44px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.settings__col { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.settings__h {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); font-weight: 800;
  margin-top: 6px;
}
.settings__h:first-child { margin-top: 0; }
.settings__h--flush { margin: 0; }
.settings__hrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.settings__hrow:first-child { margin-top: 0; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field__label { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.field__opt { font-weight: 500; color: var(--muted); }
.field input[type=text],
.field input[type=date],
.field input[type=time],
.field input[type=number] {
  font-family: var(--sans); font-size: 0.95rem;
  color: var(--ink); background: var(--card);
  border: 1px solid var(--line-str); border-radius: var(--radius-sm);
  padding: 9px 11px; width: 100%;
}
.field input::placeholder { color: var(--faint); }
.field select { width: 100%; max-width: none; }
.tworow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.hint em { color: var(--ink-2); font-weight: 600; }

/* working hours rows */
.hours { display: flex; flex-direction: column; gap: 7px; }
.hourrow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--card);
}
.hourrow.is-off { opacity: 0.6; }
.hourrow__toggle { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.hourrow__toggle input { width: 16px; height: 16px; accent-color: var(--brass-fill); flex: none; }
.hourrow__day { font-size: 0.82rem; font-weight: 700; color: var(--ink); width: 2.4ch; }
.hourrow input[type=time] {
  font-family: var(--mono); font-size: 0.85rem; padding: 6px 7px;
  color: var(--ink); background: var(--card2);
  border: 1px solid var(--line-str); border-radius: 7px; width: 100%;
}
.hourrow__dash { color: var(--muted); text-align: center; font-size: 0.85rem; }
.hourrow.is-off input[type=time] { visibility: hidden; }
.hourrow.is-off .hourrow__dash { visibility: hidden; }

/* services */
.services { display: flex; flex-direction: column; gap: 8px; }
.svcitem {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center; gap: 8px;
  padding: 7px 9px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--card);
}
.svcitem__swatch {
  width: 18px; height: 18px; flex: none; border-radius: 5px;
  border: 1px solid var(--line-str); cursor: pointer; padding: 0;
  overflow: hidden;
}
.svcitem__swatch input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.svcitem input[type=text] {
  font-size: 0.88rem; padding: 6px 8px; min-width: 0;
  color: var(--ink); background: var(--card2);
  border: 1px solid var(--line-str); border-radius: 7px;
}
.svcitem input[type=number] {
  font-family: var(--mono); font-size: 0.82rem; padding: 6px 6px; width: 5.5ch;
  color: var(--ink); background: var(--card2);
  border: 1px solid var(--line-str); border-radius: 7px; text-align: right;
  -moz-appearance: textfield;
}
.svcitem input[type=number]::-webkit-outer-spin-button,
.svcitem input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.svcitem__unit { font-size: 0.72rem; color: var(--muted); }
.rmbtn {
  width: 26px; height: 26px; flex: none; border-radius: 7px;
  border: 1px solid var(--line-str); background: var(--card2);
  color: var(--busy); font-size: 1rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.rmbtn:hover { background: var(--busy-pill); border-color: var(--busy); }

/* blocks */
.blocks { display: flex; flex-direction: column; gap: 8px; }
.blockitem {
  display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 7px;
  padding: 7px 9px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--card);
}
.blockitem input[type=date] {
  font-family: var(--mono); font-size: 0.82rem; padding: 6px 7px; min-width: 0;
  color: var(--ink); background: var(--card2);
  border: 1px solid var(--line-str); border-radius: 7px;
}
.blockitem input[type=time] {
  font-family: var(--mono); font-size: 0.8rem; padding: 6px 5px; width: 8.5ch;
  color: var(--ink); background: var(--card2);
  border: 1px solid var(--line-str); border-radius: 7px;
}
.blockitem__to { font-size: 0.78rem; color: var(--muted); }

.settings__foot {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 44px) clamp(20px, 3vw, 28px);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}

/* ============================================================
   SHEET HEADER (day/week summary)
   ============================================================ */
.sheethead {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(22px, 3.5vw, 34px) clamp(20px, 5vw, 44px) 0;
}
.sheethead__card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
  padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  box-shadow: var(--shadow);
}
.sheethead__title { font-size: 1.15rem; }
.sheethead__title em { color: var(--brass); }
.sheethead__facts { display: flex; flex-wrap: wrap; gap: 7px 9px; }
.fact {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-size: 0.82rem; color: var(--muted);
  background: var(--card2); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px;
}
.fact b { color: var(--ink); font-weight: 700; }
.fact--free b { color: var(--free); }
.fact--busy b { color: var(--busy); }

/* ============================================================
   THE GRID
   ============================================================ */
.grid {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(16px, 2.4vw, 24px) clamp(20px, 5vw, 44px) clamp(48px, 7vw, 80px);
}

.emptyday {
  border: 1px dashed var(--line-str); border-radius: var(--radius);
  padding: 40px 24px; text-align: center; color: var(--muted);
  background: var(--card2);
}
.emptyday strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }

/* --- day view: a column of slots --- */
.daylist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }

.slot {
  display: flex; flex-direction: column; gap: 3px;
  text-align: left; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink);
  padding: 11px 13px; cursor: pointer;
  transition: border-color 0.13s var(--ease), background 0.13s var(--ease), transform 0.1s var(--ease);
  position: relative;
  border-left: 4px solid var(--free);
}
.slot:hover { border-color: var(--brass-fill); transform: translateY(-1px); }
.slot__time { font-family: var(--mono); font-weight: 700; font-size: 0.98rem; }
.slot__tag { font-size: 0.76rem; color: var(--free); font-weight: 700; }

.slot--busy {
  cursor: default; border-left-color: var(--busy);
  background: var(--card2);
}
.slot--busy:hover { transform: none; border-color: var(--line); border-left-color: var(--busy); }
.slot--busy .slot__time { color: var(--ink); }
.slot__client { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.slot__svc { font-size: 0.76rem; color: var(--muted); }
.slot__note { font-size: 0.76rem; color: var(--muted); font-style: italic; }
.slot__cancel {
  position: absolute; top: 7px; right: 7px;
  width: 22px; height: 22px; border-radius: 6px;
  border: 1px solid var(--line-str); background: var(--card);
  color: var(--busy); font-size: 0.9rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; opacity: 0; transition: opacity 0.12s var(--ease);
}
.slot--busy:hover .slot__cancel,
.slot__cancel:focus-visible { opacity: 1; }

.slot--blocked {
  cursor: default; opacity: 0.7;
  border-left-color: var(--line-str);
  background: repeating-linear-gradient(135deg, var(--card2), var(--card2) 8px, var(--card) 8px, var(--card) 16px);
}
.slot--blocked:hover { transform: none; border-color: var(--line); }
.slot--blocked .slot__tag { color: var(--muted); }

.slot__pricepill {
  align-self: flex-start; margin-top: 2px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  color: var(--brass); background: var(--brass-pill);
  border: 1px solid color-mix(in srgb, var(--brass-fill) 45%, transparent);
  padding: 1px 7px; border-radius: 6px;
}

/* --- week view --- */
.week {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px;
  overflow-x: auto;
}
.weekcol { min-width: 128px; display: flex; flex-direction: column; }
.weekcol__head {
  position: sticky; top: 0;
  padding: 8px 6px; text-align: center;
  border: 1px solid var(--line); border-radius: 9px 9px 0 0;
  background: var(--card2);
}
.weekcol__head.is-today { border-color: var(--brass-fill); background: var(--brass-pill); }
.weekcol__dow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.weekcol__date { font-family: var(--mono); font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.weekcol__body {
  border: 1px solid var(--line); border-top: none; border-radius: 0 0 9px 9px;
  padding: 6px; display: flex; flex-direction: column; gap: 5px;
  flex: 1; background: var(--card);
}
.wslot {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 7px;
  background: var(--card2); color: var(--ink);
  padding: 6px 8px; cursor: pointer; font-size: 0.8rem;
  border-left: 3px solid var(--free);
  transition: border-color 0.12s var(--ease);
  text-align: left; width: 100%;
}
.wslot:hover { border-color: var(--brass-fill); }
.wslot__t { font-family: var(--mono); font-weight: 700; }
.wslot--busy { border-left-color: var(--busy); cursor: default; }
.wslot--busy:hover { border-color: var(--line); border-left-color: var(--busy); }
.wslot--busy .wslot__who { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wslot--more { justify-content: center; color: var(--muted); font-weight: 700; border-style: dashed; border-left-style: solid; cursor: default; }
.weekcol__off { flex: 1; display: grid; place-items: center; color: var(--muted); font-size: 0.78rem; padding: 16px 4px; }

/* ============================================================
   SHEET / DIALOG
   ============================================================ */
.sheet { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(20,16,8,0.5); backdrop-filter: blur(2px); }
.sheet__panel {
  position: relative;
  width: min(440px, 100%);
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line-str); border-radius: var(--radius);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.55);
  padding: 22px 22px 20px;
}
.sheet__panel--wide { width: min(600px, 100%); max-height: 84vh; overflow-y: auto; }
.sheet__title { font-size: 1.2rem; }
.sheet__when { margin-top: 6px; font-family: var(--mono); font-weight: 700; color: var(--brass); }
.sheet__sub { margin-top: 8px; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.sheet__sub strong { color: var(--ink); }
#bookForm { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.sheet__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

.share__body { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.share__biz { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; }
.share__contact { font-size: 0.9rem; color: var(--brass); font-weight: 600; }
.shareday { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.shareday__head {
  padding: 8px 12px; background: var(--card2); border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 0.9rem;
}
.shareday__times { padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.sharechip {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 700;
  color: var(--free); background: var(--free-pill);
  border: 1px solid color-mix(in srgb, var(--free) 40%, transparent);
  padding: 3px 9px; border-radius: 6px;
}
.shareday__none { padding: 10px 12px; color: var(--muted); font-size: 0.85rem; font-style: italic; }
.share__foot { font-size: 0.78rem; color: var(--muted); line-height: 1.45; border-top: 1px solid var(--line); padding-top: 12px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 11px 20px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 14px 34px -12px rgba(0,0,0,0.5);
}
.toast[hidden] { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { border-top: 1px solid var(--line); background: var(--card2); }
.foot__inner { max-width: var(--wrap); margin: 0 auto; padding: 26px clamp(20px, 5vw, 44px) 38px; }
.foot__disclaimer { font-size: 0.85rem; color: var(--muted); max-width: 82ch; line-height: 1.55; }
.foot__disclaimer strong { color: var(--ink); }
.foot__meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 10px; font-size: 0.78rem; color: var(--muted); }
.foot__dot { color: var(--line-str); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .settings__inner { grid-template-columns: 1fr 1fr; }
  .settings__col:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .settings__inner { grid-template-columns: 1fr; }
  .settings__col:nth-child(3) { grid-column: auto; }
  .toolbar__actions { margin-left: 0; width: 100%; }
  .toolbar__actions .btn { flex: 1; }
  .svcctl { width: 100%; }
  .svcpick { width: 100%; }
  .svcpick select { flex: 1; max-width: none; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   PRINT — clean B/W day sheet
   ============================================================ */
@media print {
  :root {
    --ink: #000; --muted: #333; --card: #fff; --card2: #fff;
    --line: #bbb; --line-str: #888; --brass: #000; --free: #000; --busy: #000;
  }
  body { background: #fff; color: #000; }
  .hero, .toolbar, .settings, .foot__meta, .skip-link, .slot__cancel { display: none !important; }
  main { padding: 0; }
  .sheethead { padding: 0 0 10px; }
  .sheethead__card { border: 1px solid #000; box-shadow: none; padding: 12px 0; border-left: none; border-right: none; }
  .sheethead__title em { color: #000; text-decoration: underline; }
  .fact { border: 1px solid #888; background: #fff; }
  .fact b, .fact--free b, .fact--busy b { color: #000; }

  .grid { padding: 0; max-width: none; }
  .daylist { display: block; }
  .slot {
    break-inside: avoid; border: 1px solid #999; border-left: 3px solid #000 !important;
    box-shadow: none; margin-bottom: 6px; padding: 8px 10px;
    display: grid; grid-template-columns: 90px 1fr; gap: 2px 12px; align-items: baseline;
  }
  .slot__time { grid-row: 1 / 4; }
  .slot--blocked { background: #f0f0f0 !important; }
  .slot__pricepill { border: 1px solid #000; background: #fff; color: #000; }
  .slot__tag { color: #000; }

  .week { display: block; }
  .weekcol { break-inside: avoid; margin-bottom: 10px; }
  .weekcol__head, .weekcol__body { border-color: #000; }
  .weekcol__head.is-today { background: #eee; }
  .wslot { border: 1px solid #999; border-left: 3px solid #000; background: #fff; }

  .sheet:not([hidden]) .sheet__backdrop { display: none; }
  .share__body .sharechip { border: 1px solid #000; background: #fff; color: #000; }

  @page { margin: 14mm; }
}
