/* Ivory Lane — shared tokens and base. Ink + enamel, gum-rose for actions, sage for "open". */
:root {
  --ink: #14233b;
  --ink-2: #24364f;
  --ink-soft: #3b4c63;
  --steel: #5e6e80;
  --steel-2: #8794a3;
  --enamel: #f6f8f9;
  --white: #ffffff;
  --porcelain: #e3e9ee;
  --porcelain-2: #eef2f5;
  --gum: #c2456a;
  --gum-dark: #a3355a;
  --gum-soft: #fbe9ee;
  --sage: #3f8f78;
  --sage-soft: #e3f2ec;
  --amber: #b7791f;
  --amber-soft: #fbf1df;
  --red: #c0392b;
  --red-soft: #fbe6e3;
  --blue: #3a64a8;
  --blue-soft: #e5edf8;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(20, 35, 59, .06), 0 8px 24px -12px rgba(20, 35, 59, .18);
  --focus: 0 0 0 3px rgba(194, 69, 106, .35);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--enamel); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
::selection { background: var(--gum-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; line-height: 1.2; }
.btn-primary { background: var(--gum); color: #fff; }
.btn-primary:hover { background: var(--gum-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; border-color: var(--porcelain); color: var(--ink); }
.btn-ghost:hover { border-color: var(--steel-2); background: var(--white); }
.btn-quiet { background: transparent; color: var(--steel); padding-inline: .6rem; }
.btn-quiet:hover { color: var(--ink); }
.btn-danger { background: transparent; border-color: #ecc5c0; color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }
.btn-sm { padding: .42rem .8rem; font-size: .85rem; }
.btn-lg { padding: .95rem 1.5rem; font-size: 1.02rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Forms */
.field { display: grid; gap: .35rem; }
.field > span, .label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field small, .hint { font-size: .8rem; color: var(--steel); }
.input, select.input, textarea.input { width: 100%; padding: .68rem .85rem; border: 1px solid var(--porcelain); background: var(--white); border-radius: var(--r-sm); transition: border-color .15s; }
.input:hover { border-color: #cdd6de; }
.input:focus { outline: none; border-color: var(--gum); box-shadow: var(--focus); }
textarea.input { min-height: 90px; resize: vertical; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { accent-color: var(--gum); width: 1.05rem; height: 1.05rem; margin-top: .15rem; }
.field-validation-error, .text-danger { color: var(--red); font-size: .82rem; }
.validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }

/* Flash */
.flash { padding: .8rem 1rem; border-radius: var(--r); font-size: .92rem; display: flex; gap: .6rem; align-items: center; }
.flash-ok { background: var(--sage-soft); color: #22614f; }
.flash-err { background: var(--red-soft); color: #8e2a20; }

/* Status pills — shape and colour both carry state */
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.pill::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.st-requested { background: var(--amber-soft); color: #8a5a12; border-style: dashed; border-color: #e5c58a; }
.st-confirmed { background: var(--blue-soft); color: #2c4f88; }
.st-arrived { background: #efe8fb; color: #5a3f99; }
.st-inchair { background: var(--gum-soft); color: var(--gum-dark); }
.st-completed { background: var(--sage-soft); color: #2b6e5b; }
.st-cancelled { background: var(--porcelain-2); color: var(--steel); text-decoration: line-through; }
.st-noshow { background: var(--red-soft); color: #9a2f23; }

/* Dentist monogram, tinted with the dentist's calendar colour */
.mono { --c: var(--ink); width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); font-family: var(--display); font-weight: 750; font-size: .95rem; letter-spacing: -.02em;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 35%, white); }
.mono-lg { width: 64px; height: 64px; font-size: 1.35rem; }
.mono-sm { width: 26px; height: 26px; font-size: .7rem; vertical-align: middle; margin-right: .3rem; }

.muted { color: var(--steel); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
