/* Inkwell — booking platform for tattoo artists.
   Identity: "soft studio" — cream & blush paper, warm mauve accent, powder-blue eyebrow,
   dusty-rose flash cards. Display = Fraunces (elegant serif), script = Mrs Saint Delafield
   (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. */

:root {
  --bone: #f8f1ea;
  --paper: #fffcf8;
  --paper-2: #f5e6df;
  --ink: #2b2420;
  --ink-2: #4a3f37;
  --muted: #8d7d72;
  --line: #ecdcd2;
  --line-2: #ddc5b7;
  --oxblood: #b17d81;   /* dusty rose — primary accent (was oxblood red) */
  --oxblood-d: #96666b;
  --gold: #a9bdc4;      /* powder blue — secondary accent (was gold) */
  --good: #75906f;      /* soft sage — positive/available state */
  --on-dark: #fbf3ec;   /* text sitting on the mauve accent panel */
  --night: #8b6570;     /* warm mauve accent panel (was near-black) */
  --night-2: #6f4f58;

  --blush: #f3ddd5;
  --butter: #faf1cd;
  --butter-d: #efe3ab;

  --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: "Fraunces", Georgia, serif;
  --script: "Mrs Saint Delafield", "Brush Script MT", cursive;
  --serif: "Fraunces", Georgia, serif;
  --sans: "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: 560; line-height: .98; letter-spacing: -.01em; }
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: 600; font-size: 1.5rem; letter-spacing: 0; }
.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-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(--night), var(--night-2)); color: var(--on-dark); 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.5rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--butter); }
.hero h1 { margin: .3rem 0 1rem; color: var(--on-dark); font-style: italic; }
.hero p { color: color-mix(in srgb, var(--on-dark) 82%, var(--ink)); 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(--on-dark); }
.hero-meta .l { font-size: .8rem; color: color-mix(in srgb, var(--on-dark) 68%, var(--ink)); }
.avatar-lg { width: 100%; aspect-ratio: 4/5; border-radius: var(--r-lg); border: 1px solid rgba(251,243,236,.22); 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; }

/* 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; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.flash:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* 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); }
.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-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.5rem; 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); }

/* 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; }

/* messages */
.chat { display: grid; grid-template-columns: 280px 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; height: 560px; background: var(--paper); }
.chat-list { border-right: 1px solid var(--line); overflow: auto; }
.chat-item { padding: .8rem 1rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.chat-item:hover, .chat-item.on { background: var(--paper-2); }
.chat-item .t { font-weight: 700; font-size: .9rem; }
.chat-item .p { font-size: .8rem; 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: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--bone); }
.bubble { max-width: 74%; padding: .6rem .85rem; border-radius: 14px; font-size: .92rem; }
.bubble.them { background: var(--paper); border: 1px solid var(--line); align-self: flex-start; }
.bubble.me { background: var(--night); color: var(--on-dark); align-self: flex-end; }
.chat-compose { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); }

.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; }
}

.hidden { display: none !important; }
