/* Inkwell — booking platform for tattoo artists.
   Identity: "soft studio" — cream & blush paper, warm mauve accent, powder-blue eyebrow,
   dusty-rose flash cards. Display + body = Montserrat, script = ElisabethDarlingtonUpright
   (used sparingly for accent flourishes), body = Inter. Modeled on the artist's own site +
   her venue.ink presence: black & white portraiture, hand-drawn line accents, deckle-edge
   paper flash cards, romantic and unhurried — not a traditional-shop poster look. */

@font-face {
  font-family: "ElisabethDarlingtonUpright";
  src: url("/assets/fonts/elisabethdarlingtonupright.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bone: var(--sand);
  --paper: #fffcf8;
  --paper-2: var(--neutral);
  --ink: #2b2420;
  --ink-2: #4a3f37;
  --muted: #8d7d72;
  --line: #ecdcd2;
  --line-2: #ddc5b7;
  --oxblood: #c7a2a2;   /* Emilee's "mauve" — primary accent */
  --oxblood-d: #5e1429; /* Emilee's "drama" — dark accent / dark panel text. Canonical source
                           for this color — --night and --pop below reference it rather than
                           repeating the literal, so a future per-shop theme override only has
                           to change this one value and both follow automatically. */
  --gold: #bfd6db;      /* Emilee's "sky blue" — secondary accent */
  --good: #75906f;      /* soft sage — positive/available state */
  --on-dark: #fbf3ec;   /* text sitting on the dark accent panel */
  --night: var(--oxblood-d);     /* dark accent panel */
  --night-2: #460f1f;

  --blush: #f2ddea;     /* Emilee's "light pink" */
  --butter: #faf1cd;
  --butter-d: #efe3ab;
  --barbie-pink: #eebbd3; /* Emilee's brand palette — a brighter pink accent than blush */
  --electric-green: #dedb57; /* Emilee's brand palette — unexpected accent, use sparingly */
  --sand: #f1e8d8;      /* Emilee's "sand" — page background */
  --neutral: #f7f1e9;   /* Emilee's "neutral" — card/paper surface, distinct from sand */
  --pop: var(--oxblood-d); /* doodle/collage accent — same canonical dark accent as --night */

  --shadow-sm: 0 1px 2px rgba(43,36,32,.05), 0 4px 16px -8px rgba(43,36,32,.22);
  --shadow-lg: 0 24px 60px -26px rgba(43,36,32,.38);

  --display: "Avenir Next", "Avenir", "Montserrat", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --script: "ElisabethDarlingtonUpright", "Brush Script MT", cursive;
  --serif: "Avenir Next", "Avenir", "Montserrat", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sans: "Avenir Next", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --r: 10px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* faint paper grain, reused behind cream/blush panels */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.17  0 0 0 0 0.14  0 0 0 0 0.12  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bone); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.25rem); }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 700; line-height: .98; letter-spacing: -.019em; }
h1.display { font-size: clamp(2.9rem, 8vw, 5.6rem); }
h2.display { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.script { font-family: var(--script); font-weight: 400; line-height: 1; }
.eyebrow { font-family: var(--serif); font-size: .82rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--oxblood); }
.eyebrow.gold { color: color-mix(in srgb, var(--gold) 60%, var(--ink-2)); }
.eyebrow.script { font-family: var(--script); font-size: 1.5rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--oxblood); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); font-family: var(--serif); }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }

/* ---------- top nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bone) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.019em; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--oxblood); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.nav-links a:hover, .nav-links a.on { color: var(--oxblood); }
.nav-burger { display: none; background: none; border: none; font-size: 1.5rem; color: var(--ink); cursor: pointer; padding: .3rem .5rem; line-height: 1; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid transparent; border-radius: var(--r-pill); padding: .8rem 1.5rem; font-weight: 600; font-size: .95rem; transition: transform .1s ease, background .15s ease, color .15s ease, box-shadow .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--butter); color: var(--ink); }
.btn-primary:hover { background: var(--butter-d); box-shadow: var(--shadow-sm); }
.btn-dark { background: var(--night); color: var(--on-dark); }
.btn-dark:hover { background: var(--night-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-blush { background: var(--blush); color: var(--oxblood-d); }
.btn-blush:hover { background: color-mix(in srgb, var(--blush) 80%, var(--oxblood)); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .28rem .65rem; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }
.chip.open { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.chip.ox { background: color-mix(in srgb, var(--oxblood) 12%, transparent); color: var(--oxblood-d); border-color: color-mix(in srgb, var(--oxblood) 34%, transparent); }

/* ---------- hero / shop ---------- */
.hero { position: relative; background: linear-gradient(165deg, var(--sand), var(--blush)); color: var(--ink); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .5; mix-blend-mode: overlay; pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero .eyebrow { font-family: var(--script); font-size: 1.75rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--oxblood-d); }
.hero h1 { margin: .3rem 0 1rem; color: var(--ink); font-style: italic; }
.hero p { color: var(--ink-2); max-width: 42ch; }
.hero-cta { display: flex; gap: .8rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 2rem; margin-top: 2.4rem; }
.hero-meta .n { font-family: var(--display); font-weight: 600; font-size: 2.1rem; line-height: 1; color: var(--oxblood-d); }
.hero-meta .l { font-size: .8rem; color: var(--muted); }
.avatar-lg { width: 100%; aspect-ratio: 4/5; border-radius: var(--r-lg); border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; position: relative; box-shadow: var(--shadow-lg); }
.avatar-lg::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(251,243,236,.28); border-radius: calc(var(--r-lg) - 6px); z-index: 2; pointer-events: none; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: sepia(.15) saturate(.85); }
.hero-floral { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: contain; pointer-events: none; mix-blend-mode: screen; opacity: .9; }
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(43,36,32,.2), rgba(43,36,32,.02) 32%, rgba(43,36,32,.34)); }
.hero-wordmark { position: absolute; z-index: 2; top: 7%; left: 50%; transform: translateX(-50%); font-size: clamp(1.7rem, 6.5vw, 2.3rem); color: var(--on-dark); text-shadow: 0 2px 14px rgba(0,0,0,.4); white-space: nowrap; }
.hero-badge { position: absolute; z-index: 2; width: clamp(84px, 24%, 120px); height: clamp(84px, 24%, 120px); border-radius: 50%; display: grid; place-items: center; text-align: center; font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.35; box-shadow: var(--shadow-lg); border: none; cursor: pointer; transition: transform .15s ease; text-decoration: none; }
.hero-badge:hover { transform: scale(1.05); }
.b-custom { background: var(--blush); color: var(--oxblood-d); top: 23%; left: 6%; }
.b-flash { background: var(--gold); color: var(--ink-2); top: 46%; right: 5%; }
.b-work { background: var(--butter); color: var(--ink-2); bottom: 9%; left: 9%; }

/* about section */
.about-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.about-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.2rem; }

section { padding: clamp(3rem, 7vw, 5rem) 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.sec-head p { margin: .4rem 0 0; max-width: 48ch; font-family: var(--serif); }

/* ---------- flash collections filter ---------- */
.coll-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 1.6rem; }
.coll-tab { border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2); border-radius: var(--r-pill); padding: .5rem 1.05rem; font-weight: 600; font-size: .86rem; }
.coll-tab.on { background: var(--night); color: var(--on-dark); border-color: var(--night); }

/* ---------- flash gallery (deckle-edge paper cards) ---------- */
.grid-flash { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.flash { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; position: relative; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.flash:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.flash-art-trigger { cursor: pointer; display: contents; }
.doodle-sticker { position: absolute; top: .6rem; right: .6rem; width: 34px; height: 34px; pointer-events: none; z-index: 3; filter: drop-shadow(0 1px 2px rgba(43,36,32,.15)); transform: rotate(-8deg); display: none; }
.grid-flash .flash:nth-child(2n) .doodle-sticker { display: block; }
.grid-flash .flash:nth-child(4n) .doodle-sticker { transform: rotate(11deg); }
.flashbook-head { position: relative; }
.flashbook-title { position: relative; display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.flashbook-title .pop { color: var(--pop); font-style: italic; }
.doodle-scribble { width: 90px; height: 18px; color: var(--pop); flex: none; margin-top: .3rem; }
.doodle-star { position: absolute; top: -1.6rem; left: -2.2rem; width: 46px; height: 46px; color: var(--pop); transform: rotate(-12deg); }
@media (max-width: 640px) { .doodle-star { display: none; } }
.flash-preview-art { max-width: 260px; margin: 0 auto 1.2rem; }
.flash-preview-art .flash-art { border-radius: var(--r-lg); overflow: hidden; }
.flash-preview-meta { text-align: center; margin-bottom: 1.2rem; }
.flash-preview-row { display: flex; justify-content: center; gap: 1rem; color: var(--muted); font-size: .92rem; margin-top: .3rem; }
.flash-preview-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.flash-preview-foot .flash-price { font-family: var(--display); font-weight: 600; font-size: 1.8rem; }
/* overflow:hidden clips any image that computes slightly taller than its aspect-ratio box (Safari
   does this in some versions) so a flash photo can never spill down over the title below it. */
.flash-art { aspect-ratio: 1; background: var(--blush); display: grid; place-items: center; position: relative; padding: 14px; overflow: hidden; }
.flash-paper {
  width: 100%; height: 100%; background: var(--paper-2); background-image: var(--grain);
  display: grid; place-items: center; position: relative;
  clip-path: polygon(
    2% 3%, 12% 0%, 27% 2%, 41% 0%, 58% 2%, 73% 0%, 88% 2%, 100% 4%,
    98% 18%, 100% 34%, 97% 50%, 100% 65%, 98% 80%, 100% 96%,
    88% 99%, 74% 97%, 60% 100%, 44% 98%, 29% 100%, 14% 98%, 2% 96%,
    4% 82%, 1% 66%, 3% 50%, 0% 33%, 3% 17%
  );
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent);
}
.flash-ico { width: 58%; height: 58%; color: var(--ink-2); opacity: .82; }
.flash-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; border-radius: calc(var(--r-lg) - 6px); transition: opacity .3s ease; }
.flash-badge { position: absolute; top: .7rem; left: .7rem; background: var(--paper); }
.flash-sold { position: absolute; inset: 14px; background: color-mix(in srgb, var(--ink) 46%, transparent); color: var(--on-dark); display: grid; place-items: center; font-family: var(--display); font-style: italic; font-size: 1.5rem; border-radius: var(--r); }
.flash-body { padding: .95rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.flash-coll { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.flash-title { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.flash-meta { font-size: .82rem; color: var(--muted); display: flex; gap: .8rem; flex-wrap: wrap; }
.flash-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: .5rem; }
.flash-price { font-family: var(--display); font-weight: 600; font-size: 1.4rem; }

/* ---------- generic cards / band ---------- */
.band-dark { position: relative; background: linear-gradient(165deg, var(--night), var(--night-2)); color: var(--on-dark); }
.band-dark::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .45; mix-blend-mode: overlay; pointer-events: none; }
.band-dark > .wrap { position: relative; }
.band-dark .eyebrow { font-family: var(--script); font-size: 1.3rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--butter); }
.band-dark h2 { color: var(--on-dark); font-style: italic; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step .n { font-family: var(--script); font-size: 2.6rem; color: var(--butter); line-height: 1; }
.step h3 { margin: .3rem 0 .3rem; font-size: 1.05rem; font-family: var(--serif); }
.step p { margin: 0; font-size: .9rem; color: color-mix(in srgb, var(--on-dark) 74%, var(--ink)); }

.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1rem; }
.review { position: relative; }
.review .stars { color: var(--oxblood); letter-spacing: .1em; }
.review p { font-family: var(--serif); font-style: italic; font-size: 1.08rem; margin: .5rem 0; }
.review .who { font-size: .82rem; color: var(--muted); font-weight: 600; }

/* ---------- footer ---------- */
footer { position: relative; background: linear-gradient(165deg, var(--night), var(--night-2)); color: color-mix(in srgb, var(--on-dark) 78%, var(--ink)); padding: 3rem 0; }
footer::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .4; mix-blend-mode: overlay; pointer-events: none; }
footer > .wrap { position: relative; }
footer .brand { color: var(--on-dark); }
footer a:hover { color: var(--butter); }
.foot-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }

/* ---------- booking wizard (modal) ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(43,36,32,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 1rem; }
.sheet { background: var(--bone); width: min(720px, 100%); max-height: 92vh; overflow: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.sheet-head { position: sticky; top: 0; background: var(--bone); border-bottom: 1px solid var(--line); padding: 1.1rem 1.4rem; display: flex; align-items: center; gap: .7rem; justify-content: space-between; z-index: 2; }
.sheet-title { font-family: var(--display); font-weight: 600; font-style: italic; font-size: 1.6rem; margin-right: auto; }
.sheet-body { padding: 1.4rem; }
.iconbtn { border: 1px solid var(--line-2); background: var(--paper); border-radius: var(--r); width: 36px; height: 36px; display: grid; place-items: center; font-size: 1.1rem; }
.wiz-price-chip { font-size: .82rem; font-weight: 700; color: var(--oxblood-d); background: color-mix(in srgb, var(--oxblood) 10%, var(--paper)); border: 1px solid color-mix(in srgb, var(--oxblood) 25%, transparent); border-radius: var(--r-pill); padding: .3rem .8rem; white-space: nowrap; }

.wiz-steps { display: flex; gap: .4rem; padding: 0 1.4rem 1rem; }
.wiz-deposit-note { margin: 0; padding: 0 1.4rem 1rem; font-size: .82rem; color: var(--muted); }
.wiz-dot { flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); }
.wiz-dot.done { background: var(--oxblood); }
.wiz-dot.now { background: var(--gold); }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.field-error { min-height: 1.2rem; font-size: .84rem; color: var(--oxblood-d); margin: -.4rem 0 .6rem; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); padding: .75rem .85rem; font: inherit; color: var(--ink); }
.textarea { min-height: 96px; resize: vertical; }
.opt-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.opt { border: 1px solid var(--line-2); background: var(--paper); border-radius: var(--r-pill); padding: .55rem .95rem; font-weight: 600; font-size: .9rem; }
.opt.sel { border-color: var(--oxblood); background: color-mix(in srgb, var(--oxblood) 10%, var(--paper)); color: var(--oxblood-d); }
.dropzone { border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: 1.4rem; text-align: center; color: var(--muted); background: var(--paper); }

.pickone { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.pickone .opt-card { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 1.1rem; text-align: left; background: var(--paper); }
.pickone .opt-card.sel { border-color: var(--oxblood); box-shadow: 0 0 0 3px color-mix(in srgb, var(--oxblood) 14%, transparent); }
.pickone .opt-card .t { font-weight: 700; font-family: var(--serif); }
.pickone .opt-card .d { font-size: .85rem; color: var(--muted); }

/* calendar — Calendly-style: fixed compact cell size (not stretched to fill the sheet) and a
   side-by-side time-slot column so picking a date never requires scrolling the modal. */
.wiz-cal-wrap { display: flex; gap: 1.6rem; align-items: flex-start; }
.wiz-cal-col { flex: 0 0 auto; }
.wiz-slots-col { flex: 1 1 200px; min-width: 180px; max-height: 19rem; overflow-y: auto; padding-right: .2rem; }
.wiz-next-opening { margin-top: .6rem; font-size: .78rem; padding: .35rem .7rem; }
@media (max-width: 640px) {
  .wiz-cal-wrap { flex-direction: column; gap: .8rem; }
  .wiz-cal-col { align-self: stretch; }
  .wiz-slots-col { max-height: 14rem; width: 100%; }
}
.cal { display: grid; grid-template-columns: repeat(7, 2.5rem); gap: .2rem; }
.cal .dow { width: 2.5rem; text-align: center; font-size: .65rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding-bottom: .25rem; }
.cal .day { position: relative; width: 2.75rem; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); font-weight: 600; font-size: .8rem; color: var(--ink); display: grid; place-items: center; }
.cal .day.empty { border: none; background: transparent; }
.cal .day.off { color: var(--line-2); background: transparent; border-color: transparent; cursor: not-allowed; }
.cal .day.avail:hover { border-color: var(--oxblood); }
.cal .day.sel { background: var(--oxblood); color: var(--on-dark); border-color: var(--oxblood); }
.day-count { position: absolute; bottom: 1px; right: 2px; font-size: .5rem; font-weight: 700; color: var(--oxblood-d); }
.cal .day.sel .day-count { color: var(--on-dark); }
.slots { display: flex; flex-direction: column; gap: .4rem; }
.slot { border: 1px solid var(--line-2); background: var(--paper); border-radius: var(--r-pill); padding: .5rem .9rem; font-weight: 600; font-size: .85rem; text-align: center; }
.slot.sel { background: var(--night); color: var(--on-dark); border-color: var(--night); }
.slot-picked { position: sticky; top: 0; z-index: 1; background: var(--night); color: var(--on-dark); border-radius: var(--r-pill); padding: .45rem .8rem; font-size: .8rem; margin-bottom: .5rem; }

/* summary / deposit */
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.2rem; }
.summary .row { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.summary .row:last-child { border-bottom: none; }
.summary .tot { font-weight: 700; font-size: 1.05rem; padding-top: .6rem; }
.trust { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); margin-top: .8rem; }
.confirm-ico { width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 1rem; }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.dash-rail { position: relative; background: linear-gradient(165deg, var(--night), var(--night-2)); color: var(--on-dark); padding: 1.4rem 1rem; }
.dash-rail::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .4; mix-blend-mode: overlay; pointer-events: none; }
.dash-rail > * { position: relative; }
.dash-rail .brand { color: var(--on-dark); margin-bottom: 1.6rem; }
.dash-nav a { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: var(--r); color: color-mix(in srgb, var(--on-dark) 78%, var(--ink)); font-weight: 600; font-size: .92rem; margin-bottom: .2rem; position: relative; }
.dash-nav a:hover { background: rgba(251,243,236,.1); color: var(--on-dark); }
.dash-nav a.on { background: rgba(251,243,236,.16); color: var(--on-dark); }
.dash-main { padding: clamp(1.2rem, 3vw, 2.2rem); background: var(--bone); min-width: 0; }
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.6rem; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem; }
.stat .n { font-family: var(--display); font-weight: 600; font-size: 2.2rem; line-height: 1; }
.stat .l { font-size: .82rem; color: var(--muted); }
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: start; }
.col-h { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; display: flex; justify-content: space-between; }
.bk { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--oxblood); border-radius: var(--r); padding: .75rem .85rem; margin-bottom: .6rem; }
.bk .t { font-weight: 700; font-size: .92rem; font-family: var(--serif); }
.bk .m { font-size: .8rem; color: var(--muted); }
table.rows { width: 100%; border-collapse: collapse; }
table.rows th, table.rows td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
table.rows th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* live calendar management (weekly hours, block time, agenda) */
.cal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.hours-row { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.hours-row:last-of-type { border-bottom: none; }
.hours-day { display: flex; align-items: center; gap: .5rem; width: 84px; flex: none; font-weight: 600; }
.hours-time { width: auto; flex: 1; padding: .4rem .5rem; font-size: .88rem; }
.agenda-row { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.agenda-row:last-child { border-bottom: none; }
.agenda-when { width: 130px; flex: none; font-size: .88rem; }
.agenda-title { flex: 1; font-weight: 600; font-family: var(--serif); }
.agenda-row.is-block .agenda-title { color: var(--muted); font-style: italic; font-weight: 500; }
.agenda-row.status-arrived { border-left: 3px solid var(--good); padding-left: .6rem; }
.agenda-row.status-late { border-left: 3px solid var(--butter-d); padding-left: .6rem; }
.agenda-row.status-no-show { border-left: 3px solid var(--oxblood); padding-left: .6rem; }
.day-status-row { display: flex; gap: .35rem; flex: none; }
.day-status-btn { border: 1px solid var(--line-2); background: var(--paper); border-radius: var(--r-pill); padding: .3rem .6rem; font-size: .78rem; white-space: nowrap; }
.day-status-btn.on { background: var(--night); color: var(--on-dark); border-color: var(--night); }
.late-sheet { display: flex; gap: .4rem; flex-wrap: wrap; width: 100%; order: 4; margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed var(--line); }

/* messages */
.chat { display: grid; grid-template-columns: 320px 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; height: calc(100vh - 190px); min-height: 560px; max-height: 900px; background: var(--paper); }
.chat-list { border-right: 1px solid var(--line); overflow: auto; }
.chat-item { display: flex; gap: .75rem; align-items: center; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.chat-av { width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--oxblood) 20%, var(--paper-2)); color: var(--oxblood-d); display: grid; place-items: center; font-weight: 600; font-size: 1rem; flex: none; }
.ci-body { min-width: 0; flex: 1; }
.chat-item:hover, .chat-item.on { background: var(--paper-2); }
.chat-item .t { font-weight: 500; font-size: 1rem; margin-bottom: .15rem; color: var(--ink-2); }
.chat-item .p { font-size: .88rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-main { display: flex; flex-direction: column; }
.chat-thread { flex: 1; overflow: auto; padding: 1.5rem 1.6rem .8rem; display: flex; flex-direction: column; gap: 2px; background: var(--bone); }
.bubble { max-width: min(62%, 460px); padding: 10px 15px; font-size: 1.05rem; line-height: 1.45; border-radius: 20px; position: relative; overflow-wrap: anywhere; word-break: break-word; }
.bubble.them { background: #eceae7; color: var(--ink); align-self: flex-start; border-bottom-left-radius: 7px; }
.bubble.me { background: #0b93f6; color: #fff; align-self: flex-end; border-bottom-right-radius: 7px; }
.bubble.me::before { content: ""; position: absolute; bottom: 0; right: -7px; width: 20px; height: 17px; background: #0b93f6; border-bottom-left-radius: 16px; }
.bubble.me::after { content: ""; position: absolute; bottom: 0; right: -13px; width: 13px; height: 17px; background: var(--bone); border-bottom-left-radius: 12px; }
.bubble.them::before { content: ""; position: absolute; bottom: 0; left: -7px; width: 20px; height: 17px; background: #eceae7; border-bottom-right-radius: 16px; }
.bubble.them::after { content: ""; position: absolute; bottom: 0; left: -13px; width: 13px; height: 17px; background: var(--bone); border-bottom-right-radius: 12px; }
.bubble.me:has(+ .bubble.me)::before, .bubble.me:has(+ .bubble.me)::after, .bubble.them:has(+ .bubble.them)::before, .bubble.them:has(+ .bubble.them)::after { content: none; }
.bubble.me + .bubble.them, .bubble.them + .bubble.me { margin-top: 14px; }
.bubble-link { display: inline-block; margin-top: .35rem; padding: .38rem .85rem; border-radius: 999px; background: rgba(255,255,255,.25); color: #fff; font-weight: 600; text-decoration: none; font-size: .92rem; }
.bubble.them .bubble-link { background: color-mix(in srgb, var(--oxblood) 16%, transparent); color: var(--oxblood-d); }
.bubble-link:hover { filter: brightness(1.08); }
.chat-item.on { background: var(--paper-2); box-shadow: inset 3px 0 0 #0b93f6; }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: #0b93f6; flex: none; }
.unread-dot.hidden { visibility: hidden; }
.chat-item.unread .t { font-weight: 800; color: var(--ink); }
.chat-item.unread .p { color: var(--ink); font-weight: 600; }
.chat-item.unread { background: color-mix(in srgb, #0b93f6 13%, var(--paper)); box-shadow: inset 4px 0 0 #0b93f6; }
.chat-item.unread:hover { background: color-mix(in srgb, #0b93f6 18%, var(--paper)); }
.unread-badge { margin-left: .5rem; background: #0b93f6; color: #fff; font-size: .75rem; font-weight: 700; min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; padding: 0 7px; flex: none; }
.bubble-img { display: block; max-width: 150px; max-height: 150px; width: 100%; height: auto; border-radius: 10px; cursor: zoom-in; object-fit: cover; margin-bottom: .35rem; }
.compose-attach-preview { display: flex; align-items: center; gap: .5rem; padding: .5rem .8rem 0; }
.compose-attach-preview img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.chat-compose { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); align-items: center; }
.chat-compose label.iconbtn { flex: none; cursor: pointer; }
.quick-replies { display: flex; flex-wrap: wrap; gap: .4rem; padding: .55rem .8rem 0; }
.qr { font-size: .8rem; padding: .34rem .7rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--blush); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.qr:hover { background: var(--paper-2); }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.chat-head strong { font-size: 1.18rem; }
.chat-ghl { font-size: .78rem; color: var(--oxblood-d); white-space: nowrap; text-decoration: none; }
.chat-ghl:hover { text-decoration: underline; }
.ch-badge { display: inline-block; font-size: .64rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: .12rem .45rem; border-radius: 999px; color: var(--ink-2); background: color-mix(in srgb, var(--ch, #b17d81) 20%, transparent); border: 1px solid color-mix(in srgb, var(--ch, #b17d81) 42%, transparent); vertical-align: middle; }
.rail-dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: .5rem; vertical-align: middle; }
.rail-sub { display: block; font-size: .78rem; opacity: .82; margin-top: .3rem; }

.notice { background: color-mix(in srgb, var(--gold) 20%, var(--paper)); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: var(--r-lg); padding: .8rem 1rem; font-size: .88rem; color: var(--ink-2); display: flex; gap: .6rem; align-items: center; }
/* Sidebar status boxes (connection state, signed-in-as). These are stacked, multi-line content —
   they must NOT use .notice's horizontal flex row, which flung each word/element onto its own line
   and pushed the buttons outside the rail. Plain block flow, so <br>-separated lines stack normally. */
.rail-note { border: 1px solid transparent; border-radius: var(--r-lg); padding: .75rem .9rem; font-size: .85rem; line-height: 1.5; }
.rail-note .loc { display: block; font-size: .72rem; opacity: .7; margin: .15rem 0; word-break: break-all; }
.rail-note .btn { display: block; width: fit-content; margin-top: .55rem; }

/* ---------- responsive ---------- */
/* Studio nav/backdrop/back button only exist for the mobile off-canvas layout — inert on desktop. */
.dash-mobile-bar { display: none; }
.dash-backdrop { display: none; }
.chat-back { display: none; }

@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; } .avatar-lg { max-width: 320px; margin: 2rem auto 0; }
  .about-in { grid-template-columns: 1fr; } .about-photo { max-width: 320px; margin: 0 auto; }
  .steps, .stat-row, .kanban { grid-template-columns: 1fr 1fr; }
  .cal-grid { grid-template-columns: 1fr; }

  /* Studio dashboard: .dash-rail used to be display:none with nothing to replace it, leaving no
     way to switch tabs on a phone. Now it's an off-canvas drawer opened by a hamburger bar. */
  .dash { grid-template-columns: 1fr; position: relative; }
  .dash-mobile-bar { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; background: var(--night); color: var(--on-dark); position: sticky; top: 0; z-index: 20; }
  .dash-mobile-bar strong { font-family: var(--serif); font-size: 1.1rem; }
  .dash-backdrop.on { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 29; }
  .dash-rail {
    position: fixed; top: 0; left: 0; height: 100%; width: min(78vw, 300px); z-index: 30;
    transform: translateX(-100%); transition: transform .22s ease; overflow-y: auto;
  }
  .dash-rail.open { transform: translateX(0); }

  /* Messages: list and thread can't both fit — toggle between them instead of hiding the list
     with no way back in. */
  .chat { grid-template-columns: 1fr; }
  .chat-list { display: block; }
  .chat-main { display: none; }
  .chat-back { display: block; margin-bottom: .6rem; }
  .chat.thread-open .chat-list { display: none; }
  .chat.thread-open .chat-main { display: flex; flex-direction: column; }

  /* Public nav: a hamburger reveals the links as a dropdown, instead of hiding Book/Flash/Artist
     studio entirely (which left only "Book now" and no way to reach Flash/studio from the nav). */
  .nav-burger { display: block; }
  .nav-links {
    display: none; position: absolute; top: 66px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1rem 1rem;
    background: var(--bone); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem .2rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links a.nav-cta { margin-top: .6rem; border-bottom: none; text-align: center; }
  .pickone { grid-template-columns: 1fr; }

  /* Clients table: was a literal HTML table pushing Tags/Message off-screen with no scroll
     affordance — a shop owner on her phone had no way to discover she needed to scroll sideways
     to message a client. Reflow into a stacked card per row instead. */
  table.rows thead { display: none; }
  table.rows, table.rows tbody, table.rows tr, table.rows td { display: block; width: 100%; }
  table.rows tr { border-bottom: 1px solid var(--line); padding: .8rem .9rem; }
  table.rows tr:last-child { border-bottom: none; }
  table.rows td { border-bottom: none; padding: .25rem 0; }
  table.rows td[data-label]:not([data-label=""])::before {
    content: attr(data-label); display: block; font-size: .68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .1rem;
  }
  table.rows td:last-child { margin-top: .4rem; }
}
@media (max-width: 520px) {
  .steps, .stat-row, .kanban { grid-template-columns: 1fr; } .hero-meta { gap: 1.2rem; }
  .hours-row { flex-wrap: wrap; }
  .hours-day { width: 100%; }
  .hours-time { min-width: 0; }
  .agenda-row { flex-wrap: wrap; }
  .agenda-title { min-width: 0; width: 100%; order: 3; }
  /* Confirmed via live mobile QA: the day-status buttons measured ~28px tall, below the
     44px minimum mobile touch target (Apple HIG / Material Design) — real risk of mis-tapping
     an adjacent status on a small screen. Desktop keeps the compact size; only mobile grows. */
  .day-status-row { width: 100%; order: 2; }
  .day-status-btn { min-height: 44px; padding: .6rem .7rem; }
}

.hidden { display: none !important; }

/* Auto-messages tab */
.auto-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin: 1.1rem 0 1.5rem; font-size: .82rem; color: var(--muted); }
.auto-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.pip { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pip.live { background: var(--good); } .pip.paused { background: var(--butter-d); } .pip.off { background: transparent; border: 1.5px dashed var(--line-2); }
.auto-toast { background: color-mix(in srgb, var(--good) 16%, transparent); border: 1px solid color-mix(in srgb, var(--good) 40%, transparent); color: var(--ink-2); border-radius: var(--r); padding: .7rem .9rem; font-size: .9rem; margin-bottom: 1.2rem; }
.auto-group { position: relative; padding-left: 1.9rem; }
.auto-group::before { content: ""; position: absolute; left: 5px; top: 1.5rem; bottom: -.6rem; width: 2px; background: var(--line-2); }
.auto-group:last-child::before { display: none; }
.auto-node { position: absolute; left: 0; top: .3rem; width: 12px; height: 12px; border-radius: 50%; background: var(--night); box-shadow: 0 0 0 4px var(--bone); }
.auto-gtitle { font-family: var(--display); font-size: 1.18rem; font-weight: 500; }
.auto-gsub { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; margin: .05rem 0 .8rem; }
.auto-cards { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.6rem; }
.auto-card { display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; cursor: pointer; font: inherit; color: inherit; box-shadow: var(--shadow-sm); transition: transform .12s ease, border-color .12s ease; }
.auto-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.auto-card:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }
.auto-card.ghost { background: transparent; border-style: dashed; box-shadow: none; color: var(--muted); }
.auto-card .c-body { flex: 1; min-width: 0; }
.auto-card .c-title { font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.auto-card .c-when { font-size: .83rem; color: var(--muted); margin-top: .12rem; }
.auto-card .chev { color: var(--line-2); font-size: 1.3rem; line-height: 1; }
.chip.live { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); border: 1px solid color-mix(in srgb, var(--good) 40%, transparent); }
.chip.paused { background: color-mix(in srgb, var(--butter) 60%, transparent); color: #8a7320; border: 1px solid var(--butter-d); }
.chip.off { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); }
.auto-overlay { position: fixed; inset: 0; background: rgba(43,36,32,.44); display: flex; justify-content: flex-end; z-index: 60; }
.auto-panel { width: min(430px, 94vw); height: 100%; background: var(--bone); border-left: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); }
.auto-phead { display: flex; align-items: center; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); }
.auto-phead b { font-family: var(--display); font-weight: 500; font-size: 1.05rem; }
.auto-phead .iconbtn { margin-left: auto; }
.auto-pbody { padding: 1.2rem; overflow: auto; flex: 1; }
.auto-pbody textarea.input { min-height: 120px; resize: vertical; font: inherit; line-height: 1.5; }
.auto-tags { margin-top: .5rem; font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.auto-tag { background: color-mix(in srgb, var(--gold) 34%, transparent); color: var(--night-2); border: none; border-radius: 6px; padding: .15rem .5rem; font: inherit; font-size: .8rem; cursor: pointer; }
.auto-help { background: var(--blush); border-radius: var(--r); padding: .65rem .8rem; font-size: .84rem; color: var(--ink-2); margin-bottom: 1.1rem; }
.auto-when { display: flex; gap: .6rem; }
.auto-when .input:first-child { max-width: 90px; }
.auto-pfoot { display: flex; gap: .6rem; padding: 1rem 1.2rem; border-top: 1px solid var(--line); }
.auto-pfoot .btn { flex: 1; }

/* Auto-messages editor v2: on/off switch, preview, plain status */
.chip.on { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); border: 1px solid color-mix(in srgb, var(--good) 40%, transparent); }
.chip.ready { background: color-mix(in srgb, var(--butter) 60%, transparent); color: #8a7320; border: 1px solid var(--butter-d); }
.pip.on { background: var(--good); }
.pip.ready { background: var(--butter-d); }
.auto-switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: .85rem 1rem; margin-bottom: 1.3rem; }
.auto-switch-t { font-weight: 500; color: var(--ink); }
.auto-switch-note { font-size: .82rem; margin-top: .15rem; }
.auto-switch-note.on { color: var(--good); }
.auto-switch-note.off { color: var(--muted); }
.auto-switch-note.warn { color: #8a7320; }
.auto-sw { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; cursor: pointer; }
.auto-sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.auto-sw-track { position: absolute; inset: 0; background: var(--line-2); border-radius: var(--r-pill); transition: background .15s ease; }
.auto-sw-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(43,36,32,.25); transition: transform .15s ease; }
.auto-sw input:checked + .auto-sw-track { background: var(--good); }
.auto-sw input:checked + .auto-sw-track::after { transform: translateX(20px); }
.auto-sw input:focus-visible + .auto-sw-track { outline: 2px solid var(--oxblood); outline-offset: 2px; }
.lbl-hint { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .76rem; margin-left: .35rem; }
.auto-tags { margin-top: .5rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.auto-tags-l { font-size: .8rem; color: var(--muted); }
.auto-tag { background: color-mix(in srgb, var(--gold) 30%, transparent); color: var(--night-2); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); border-radius: var(--r-pill); padding: .22rem .65rem; font: inherit; font-size: .8rem; cursor: pointer; }
.auto-tag:hover { background: color-mix(in srgb, var(--gold) 46%, transparent); }
.auto-preview { background: color-mix(in srgb, var(--night) 7%, transparent); border-radius: var(--r); padding: .8rem .9rem; margin-bottom: 1.3rem; }
.auto-preview-l { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .45rem; }
.auto-preview-bubble { background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: .7rem .85rem; font-size: .92rem; line-height: 1.5; color: var(--ink); box-shadow: var(--shadow-sm); }
.auto-preview-bubble .mf { background: color-mix(in srgb, var(--gold) 42%, transparent); border-radius: 5px; padding: 0 .22rem; }
.auto-when-line { font-size: .83rem; color: var(--muted); margin-top: .5rem; }

/* ---------- Requests tab: photo-forward inquiry cards ---------- */
.req-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.req-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.req-card.is-new { border-color: var(--oxblood); box-shadow: 0 0 0 1px var(--oxblood), var(--shadow-sm); }
.req-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); position: relative; }
.req-photos img { width: 100%; height: 130px; object-fit: cover; cursor: zoom-in; }
.req-photos img:only-child { grid-column: span 2; height: 220px; }
.req-photo-more { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.req-photos-empty { height: 90px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .82rem; font-style: italic; background: var(--paper-2); }
.req-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.req-client { font-weight: 700; font-family: var(--serif); font-size: 1.05rem; }
.req-piece { font-size: .88rem; color: var(--ink-2); }
.req-desc { font-size: .85rem; color: var(--muted); margin: .2rem 0 0; line-height: 1.4; }
.req-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; }
.req-when { font-size: .78rem; }
.req-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }

.dash-rail { display: flex; flex-direction: column; }
.rail-ghl-link { margin-top: auto; align-self: flex-start; padding-top: 1.4rem; font-size: .78rem; color: color-mix(in srgb, var(--on-dark) 52%, var(--ink)); text-decoration: none; }
.rail-ghl-link:hover { color: var(--on-dark); text-decoration: underline; }

/* Design pipeline board */
.dboard { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: .8rem; overflow-x: auto; padding-bottom: .6rem; margin-top: 1.2rem; }
.dcol { background: color-mix(in srgb, var(--dc) 13%, var(--paper)); border: 1px solid color-mix(in srgb, var(--dc) 38%, transparent); border-top: 4px solid var(--dc); border-radius: 12px; padding: .7rem; min-height: 130px; }
.dcol.drop-hot { background: color-mix(in srgb, var(--dc) 24%, var(--paper)); box-shadow: inset 0 0 0 2px var(--dc); }
.dcol-h { display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .84rem; margin-bottom: .6rem; }
.ddot { width: 10px; height: 10px; border-radius: 50%; background: var(--dc); flex: none; }
.dcount { margin-left: auto; color: var(--muted); font-weight: 500; }
.dcard { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .65rem; margin-bottom: .55rem; cursor: grab; box-shadow: var(--shadow-sm); }
.dcard:active { cursor: grabbing; }
.dcard.dragging { opacity: .5; }
.dcard .t { font-weight: 600; font-size: .9rem; line-height: 1.25; }
.dcard .m { font-size: .77rem; color: var(--muted); margin-top: .12rem; }
.dcard-move { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: .55rem; }
.dmini { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: .22rem .55rem; font-size: .76rem; cursor: pointer; color: var(--ink-2); }
.dmini.next { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dready { font-size: .74rem; font-weight: 700; color: var(--ink-2); }
.dempty { color: var(--muted); font-size: .8rem; padding: .25rem; }

/* Design pipeline — priority + design-image extras */
.dcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .4rem; }
.dsoon { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #5e1429; background: color-mix(in srgb, var(--dc) 34%, transparent); border-radius: 999px; padding: .1rem .4rem; white-space: nowrap; flex: none; }
.dwhen { font-size: .74rem; color: var(--muted); margin-top: .12rem; }
.dwhen.urgent { color: #5e1429; font-weight: 700; }
.dthumb { position: relative; margin: .5rem 0 .15rem; }
.dthumb img { width: 100%; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.dthumb-swap { position: absolute; top: 5px; right: 5px; background: rgba(255,252,248,.92); border: 1px solid var(--line); border-radius: 999px; width: 24px; height: 24px; display: grid; place-items: center; cursor: pointer; font-size: .82rem; }
.dupload { display: block; text-align: center; border: 1px dashed var(--line-2); border-radius: 8px; padding: .45rem; margin: .5rem 0 .15rem; font-size: .75rem; color: var(--ink-2); cursor: pointer; }
.dupload:hover { border-color: var(--dc); background: color-mix(in srgb, var(--dc) 10%, transparent); }

/* Design: client revision note on a card */
.dnote { background: color-mix(in srgb, var(--dc) 20%, var(--paper)); border-left: 3px solid var(--dc); border-radius: 0 8px 8px 0; padding: .4rem .55rem; margin: .45rem 0 .1rem; font-size: .78rem; color: var(--ink-2); }
/* Client-facing design review page */
.review-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--bone, #f8f1ea); padding: 1.2rem; }
.review-card { background: var(--paper, #fffcf8); border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem 1.4rem; max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); }
.review-brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; letter-spacing: .02em; }
.review-brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--oxblood, #b17d81); }
.review-img { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }

/* How long they have been waiting, on the thread row itself. */
.ci-wait{font-size:.68rem;letter-spacing:.04em;text-transform:uppercase;color:#8a7f7f;margin-top:.2rem}
.ci-wait.hot{color:#5e1429;font-weight:600}

/* Forms & policies editor */
.fq{border-top:1px solid color-mix(in srgb,var(--ink) 10%,transparent);padding:1.1rem 0}
.fq:first-of-type{border-top:none;padding-top:0}
.fq.off{opacity:.55}
.fq-head{display:flex;align-items:center;justify-content:space-between;gap:.8rem}
.fq-title{font-weight:600;font-size:.98rem;display:flex;align-items:center;gap:.5rem}
.fq-note{margin:.25rem 0 .7rem;font-size:.82rem;color:color-mix(in srgb,var(--ink) 55%,transparent);max-width:56ch}
.fq-req{display:flex;align-items:center;gap:.5rem;font-size:.88rem;margin-top:.4rem}
.forms-bar{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;
  gap:1rem;margin-top:1.4rem;padding:.85rem 1rem;border-radius:var(--r);
  background:color-mix(in srgb,var(--paper) 92%,var(--ink));backdrop-filter:blur(6px);
  font-size:.88rem;opacity:.6;transition:opacity .15s}
.forms-bar.on{opacity:1;background:color-mix(in srgb,var(--gold) 22%,var(--paper))}

/* ============ OVERVIEW: what you owe people, and when ============
   Three stacked sections — draw queue, replies, today. Phone-first: every row is
   a single column under 640px, every tap target is finger-sized, nothing needs
   hover to be usable or a wide viewport to be readable. */
.ovs{margin:1.8rem 0 0}
.ovs-h{font-size:1.05rem;font-weight:600;margin:0 0 .7rem;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.ovs-flag{font-size:.68rem;letter-spacing:.05em;text-transform:uppercase;font-weight:600;
  padding:.2rem .5rem;border-radius:999px}
.ovs-flag.late{background:#5e1429;color:#fff}
.ovs-flag.rev{background:#dedb57;color:#3a2a2a}
.ovs-empty{color:#8a7f7f;margin:.2rem 0 0;font-size:.92rem}
.ovs-more{background:none;border:0;color:#5e1429;font:inherit;font-size:.88rem;cursor:pointer;
  padding:.6rem 0 0;text-decoration:underline}

/* a piece to draw */
.ovq{display:flex;gap:.85rem;align-items:flex-start;padding:.85rem;margin-bottom:.55rem;
  background:#fff;border-radius:14px;border-left:4px solid #e6dedd}
.ovq.late{border-left-color:#5e1429}
.ovq.soon{border-left-color:#dedb57}
.ovq-thumb{width:52px;height:52px;border-radius:10px;object-fit:cover;flex:0 0 52px;background:#f3ecec}
.ovq-thumb.empty{background:repeating-linear-gradient(45deg,#f7f1f1,#f7f1f1 6px,#f1e8e8 6px,#f1e8e8 12px)}
.ovq-main{flex:1;min-width:0}
.ovq-when{font-size:.72rem;letter-spacing:.05em;text-transform:uppercase;font-weight:600;color:#8a7f7f}
.ovq.late .ovq-when{color:#5e1429}
.ovq.soon .ovq-when{color:#8a7a1f}
.ovq-piece{font-weight:600;margin:.1rem 0 .05rem;line-height:1.3}
.ovq-who{font-size:.85rem;color:#8a7f7f}
.ovq-stage::before{content:'';display:inline-block;width:.5rem;height:.5rem;border-radius:50%;
  background:var(--sc);margin-right:.3rem;vertical-align:baseline}
.ovq-note{font-size:.85rem;margin-top:.35rem;padding:.4rem .55rem;background:#fbf9e3;border-radius:8px}
.ovq-act{flex:0 0 auto}
.ovq-btn{display:inline-block;border:1px solid #e0d4d4;background:#fff;color:#3a2a2a;
  border-radius:999px;padding:.5rem .85rem;font-size:.82rem;cursor:pointer;white-space:nowrap;
  text-decoration:none;line-height:1.2}
.ovq-btn.primary{background:#5e1429;border-color:#5e1429;color:#fff}
.ovq-wait{font-size:.78rem;color:#8a7f7f;font-style:italic;white-space:nowrap}

/* someone waiting on a reply */
.ovr{display:flex;gap:.85rem;align-items:center;padding:.7rem .85rem;margin-bottom:.45rem;
  background:#fff;border-radius:14px;border-left:4px solid #e6dedd;cursor:pointer}
.ovr.late{border-left-color:#5e1429}
.ovr.soon{border-left-color:#dedb57}
.ovr-when{flex:0 0 5.2rem;font-size:.72rem;letter-spacing:.04em;text-transform:uppercase;
  font-weight:600;color:#8a7f7f}
.ovr.late .ovr-when{color:#5e1429}
.ovr-main{min-width:0}
.ovr-who{font-weight:600}
.ovr-prev{font-size:.85rem;color:#8a7f7f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* today */
.ovt{display:flex;gap:.85rem;align-items:center;padding:.7rem .85rem;margin-bottom:.45rem;
  background:#fff;border-radius:14px}
.ovt-time{flex:0 0 5.2rem;font-weight:600;font-size:.9rem}
.ovt-main{flex:1;min-width:0}
.ovt-title{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

@media (max-width:640px){
  .ovq,.ovr,.ovt{flex-wrap:wrap}
  .ovq-act{flex-basis:100%;margin-top:.5rem}
  .ovq-btn{display:block;text-align:center}
  .ovr-when,.ovt-time{flex-basis:100%}
}

/* The morning screen's job is to show what she owes people. Three full-width tiles
   pushed that below the fold on a phone — she'd scroll past the summary to reach the
   thing the summary is about. Compact strip instead, so "To draw" is visible on open.
   Overrides the generic .stat-row 1fr collapse above; scoped to .ov-stats only. */
.ov-stats{grid-template-columns:repeat(3,1fr)}
@media (max-width:720px){
  .ov-stats{grid-template-columns:repeat(3,1fr);gap:.5rem;margin-bottom:1.1rem}
  .ov-stats .stat{padding:.7rem .5rem;border-radius:12px}
  .ov-stats .stat .n{font-size:1.5rem;line-height:1.1}
  .ov-stats .stat .l{font-size:.66rem;line-height:1.25;letter-spacing:.01em}
}

/* Tapping a queue row opens that piece on the design board. The action column is
   deliberately not tappable this way — "＋ Add design" must open the file picker. */
.ovq-thumb.tap,.ovq-main.tap{cursor:pointer}
.ovq-main.tap:hover .ovq-piece{text-decoration:underline}

/* "Here it is" on arrival — one pulse, then it gets out of the way. */
.dcard.dfocus{animation:dfocus 2.4s ease-out 1}
@keyframes dfocus{
  0%,55%{box-shadow:0 0 0 3px #5e1429,0 6px 18px rgba(94,20,41,.25)}
  100%{box-shadow:0 0 0 0 rgba(94,20,41,0)}
}
@media (prefers-reduced-motion:reduce){
  .dcard.dfocus{animation:none;box-shadow:0 0 0 3px #5e1429}
}

/* ---- Design board: send them all at once ---- */
.dhint{display:block;font-size:.85rem;opacity:.75;margin-top:.15rem}
.dbatch{display:block;width:100%;margin:0 0 .6rem;padding:.6rem;border:0;border-radius:10px;
  background:#5e1429;color:#fff;font:inherit;font-size:.85rem;font-weight:500;cursor:pointer}
.dbatch:hover{opacity:.92}

.bsend-list{max-height:46vh;overflow-y:auto;-webkit-overflow-scrolling:touch;margin:0 -.2rem}
.bsend-row{display:flex;gap:.7rem;align-items:center;padding:.6rem .5rem;border-radius:12px;
  cursor:pointer;opacity:.5}
.bsend-row.on{opacity:1;background:#faf6f6}
.bsend-row input{width:20px;height:20px;flex:0 0 20px;accent-color:#5e1429}
.bsend-thumb{width:44px;height:44px;flex:0 0 44px;border-radius:8px;object-fit:cover;background:#f3ecec}
.bsend-thumb.empty{background:repeating-linear-gradient(45deg,#f7f1f1,#f7f1f1 6px,#f1e8e8 6px,#f1e8e8 12px)}
.bsend-main{flex:1;min-width:0}
.bsend-who{font-weight:600;line-height:1.25}
.bsend-piece{font-size:.85rem;color:#8a7f7f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bsend-warn{font-size:.78rem;color:#5e1429;margin-top:.1rem}
.bsend-state{flex:0 0 1.4rem;text-align:center;font-size:1rem;color:#5e1429}
.bsend-row.failed .bsend-state{color:#b3261e}
.bsend-msg{margin-top:.9rem;font-size:.88rem}
.bsend-msg summary{cursor:pointer;color:#5e1429}

/* ================= CALENDAR: month + week =================
   A list answers "what's next". A grid answers "how busy is that week" and
   "where's my next free Saturday" — the questions you plan a month around. */
.calv-row{display:inline-flex;background:#f1e8e8;border-radius:999px;padding:.22rem;gap:.15rem}
.calv{border:0;background:none;font:inherit;font-size:.85rem;color:#6b5c5c;
  padding:.42rem .95rem;border-radius:999px;cursor:pointer;white-space:nowrap}
.calv.on{background:#fff;color:#3a2a2a;font-weight:600;box-shadow:0 1px 3px rgba(94,20,41,.12)}

.calnav{display:flex;align-items:center;gap:.5rem;margin:0 0 .8rem}
.calnav-b{width:34px;height:34px;border-radius:50%;border:1px solid #e6dedd;background:#fff;
  font-size:1.15rem;line-height:1;color:#5e1429;cursor:pointer}
.calnav-t{font-weight:600;font-size:1.02rem;flex:1}
.calnav-today{border:1px solid #e6dedd;background:#fff;border-radius:999px;
  padding:.4rem .85rem;font:inherit;font-size:.82rem;color:#5e1429;cursor:pointer}

/* ---- month ---- */
.calmonth{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;background:#e9e0df;
  border:1px solid #e9e0df;border-radius:14px;overflow:hidden}
.caldow{background:#faf6f5;text-align:center;font-size:.7rem;letter-spacing:.08em;
  text-transform:uppercase;color:#8a7f7f;padding:.5rem 0;font-weight:600}
.calcell{background:#fff;min-height:92px;padding:.35rem .4rem;cursor:pointer;
  display:flex;flex-direction:column;gap:.2rem}
.calcell.out{background:#faf7f6}
.calcell.out .calcell-n{color:#c9bcbc}
.calcell.has{background:#fffdfc}
.calcell.today .calcell-n{background:#5e1429;color:#fff;border-radius:50%;
  width:1.6rem;height:1.6rem;display:grid;place-items:center}
.calcell.sel{outline:2px solid #5e1429;outline-offset:-2px}
.calcell-n{font-size:.82rem;font-weight:600;color:#5c4b4b;line-height:1.6rem}
.calcell-e{display:flex;flex-direction:column;gap:2px;min-width:0}
.calchip{font-size:.68rem;line-height:1.35;background:#f7e6ec;color:#5e1429;
  border-radius:5px;padding:.12rem .3rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calchip.blk{background:#ece7e6;color:#7a6c6c}
.calchip.st-no-show{background:#f3dcdc;color:#8a2020;text-decoration:line-through}
.calchip-t{font-weight:600}
.calmore{font-size:.65rem;color:#8a7f7f;padding-left:.3rem}

/* ---- week ---- */
.calweek{display:grid;grid-template-columns:repeat(7,1fr);gap:.4rem}
.calwday{background:#fff;border-radius:12px;padding:.5rem .45rem;min-height:150px;
  border:1px solid #efe7e6;display:flex;flex-direction:column}
.calwday.today{border-color:#5e1429;box-shadow:0 0 0 1px #5e1429}
.calwday.free{background:#fdfaf9}
.calwday-h{display:flex;align-items:baseline;gap:.35rem;margin-bottom:.45rem;
  padding-bottom:.4rem;border-bottom:1px solid #f3ecec}
.calwday-dow{font-size:.68rem;letter-spacing:.06em;text-transform:uppercase;color:#8a7f7f;font-weight:600}
.calwday-n{font-size:1rem;font-weight:600}
.calwday-b{display:flex;flex-direction:column;gap:.35rem}
.calwev{background:#f7e6ec;border-radius:8px;padding:.35rem .45rem;cursor:pointer}
.calwev.blk{background:#ece7e6}
.calwev-t{font-size:.68rem;font-weight:600;color:#5e1429}
.calwev-n{font-size:.75rem;line-height:1.3;color:#4a3838}
.calwfree{font-size:.72rem;color:#c2b5b5;font-style:italic}

/* ---- the tapped day ---- */
.calday{background:#fff;border-radius:14px;padding:.9rem 1rem;margin-top:.9rem;border:1px solid #efe7e6}
.calday-h{font-weight:600;display:flex;justify-content:space-between;align-items:center;margin-bottom:.6rem}
.calday-x{border:0;background:none;font-size:1.4rem;line-height:1;color:#8a7f7f;cursor:pointer;
  width:40px;height:40px}
.calday-r{display:flex;gap:.8rem;padding:.5rem 0;border-top:1px solid #f5efef}
.calday-r.blk{color:#8a7f7f}
.calday-t{flex:0 0 8.5rem;font-size:.85rem;font-weight:600}
.calday-n{font-size:.9rem}
.calday-free{color:#8a7f7f;margin:0;font-size:.9rem}

@media (max-width:720px){
  /* Seven columns cannot hold an appointment title at 375px, so the week becomes a
     stack of days. Same data, same order, no sideways scrolling. */
  .calweek{grid-template-columns:1fr;gap:.35rem}
  .calwday{min-height:0;flex-direction:row;gap:.7rem;align-items:flex-start}
  .calwday-h{flex:0 0 3.4rem;flex-direction:column;gap:0;border-bottom:0;padding-bottom:0;margin:0}
  .calwday-b{flex:1}
  .calcell{min-height:62px;padding:.25rem}
  .calcell-n{font-size:.75rem;line-height:1.35rem}
  .calcell.today .calcell-n{width:1.35rem;height:1.35rem}
  /* Chips stop being readable this small — show a dot per booking instead. */
  .calchip{font-size:0;padding:0;height:5px;border-radius:3px}
  .calchip-t{font-size:0}
  .calmore{font-size:.58rem}
  .calday-t{flex-basis:7rem}
}
