/* The No-Show Killer — Maren's Hair Studio skin: charcoal + blush + brass.
   External CSS only. */
:root {
  --ink: #26232a;
  --ink-deep: #17151b;
  --blush: #c98a94;
  --blush-soft: #f7ecec;
  --brass: #a97e2f;
  --bg: #f4f1ee;
  --surface: #ffffff;
  --line: #e0d9d3;
  --text: #2c2830;
  --muted: #776e78;
  --ok: #1e7d46;
  --ok-bg: #e6f4ec;
  --danger: #b23a2e;
  --radius: 14px;
  --shadow: 0 14px 34px rgba(38, 35, 42, 0.14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: 0.05em; font-size: 1.08rem; }
.brand span { color: var(--blush); font-weight: 600; font-size: 0.82em; }
.header-phone { margin: 0 0 0 auto; color: var(--muted); font-size: 0.95rem; }
.header-status { margin: 0; color: var(--muted); font-size: 0.92rem; }
.open-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); margin-right: 6px; }
.trust-strip { background: var(--ink); }
.trust-inner {
  max-width: 1100px; margin: 0 auto; padding: 9px 20px;
  display: flex; gap: 26px; flex-wrap: wrap;
  color: #e6d9d4; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.03em;
}

.hero { background: linear-gradient(135deg, var(--ink-deep), var(--ink) 55%, #3d3542); color: #fff; padding: 46px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }
.eyebrow { color: #e3b7bd; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.78rem; font-weight: 700; margin: 0; }
.hero h1 { font-size: 2.15rem; margin: 10px 0 12px; line-height: 1.18; }
.hero-lede { color: #d8d2dc; max-width: 600px; }
.hero-instruction { max-width: 600px; color: #f7f2f4; }

.fact-card { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-kicker { color: var(--brass); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem; font-weight: 700; margin: 0 0 12px; }
.fact-list { margin: 0; display: grid; gap: 12px; }
.fact-list div { display: flex; gap: 14px; align-items: baseline; }
.fact-list dt { font-size: 1.3rem; font-weight: 800; color: var(--ink); min-width: 92px; }
.fact-list dd { margin: 0; color: var(--muted); }
.tally { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.tally p { margin: 4px 0; color: var(--muted); }
.tally strong { color: var(--ink); }

.stage-section { padding: 30px 0 12px; }
.stage-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; align-items: start; }
.stage-left { display: grid; gap: 18px; }

.appt-card, .waitlist-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.appt-details { margin: 0; display: grid; gap: 9px; }
.appt-details div { display: flex; gap: 12px; align-items: baseline; }
.appt-details dt { color: var(--muted); min-width: 70px; }
.appt-details dd { margin: 0; font-weight: 600; }
.status-pill {
  background: var(--blush-soft); color: var(--ink); border: 1px solid var(--blush);
  border-radius: 999px; padding: 3px 12px; font-size: 0.88rem; font-weight: 700;
}
.status-pill.is-good { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.status-pill.is-open { background: #fdecea; border-color: var(--danger); color: var(--danger); }

.wait-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.wait-name { font-weight: 600; }
.wait-status { color: var(--muted); font-size: 0.92rem; text-align: right; }
.wait-note { color: var(--muted); font-size: 0.9rem; margin: 12px 0 0; }
.refilled-banner {
  margin: 0; background: var(--ok-bg); border: 1.5px solid var(--ok); color: var(--ok);
  border-radius: var(--radius); padding: 14px 16px; font-weight: 700;
}

.phone { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.phone-top { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.phone-top h2 { margin: 0; font-size: 1.12rem; color: var(--ink); }
.phone-sub { margin: 2px 0 0; color: var(--muted); font-size: 0.88rem; }
.live-pill { margin: 0; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; color: var(--ok); background: var(--ok-bg); border-radius: 999px; padding: 4px 10px; flex: none; }

.thread {
  margin-top: 14px; background: #faf7f4; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px; min-height: 220px; max-height: 400px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 9px;
}
.thread-empty { color: var(--muted); margin: auto 0; }
.msg { max-width: 86%; padding: 9px 13px; border-radius: 15px; }
.msg p { margin: 0; }
.msg .who { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 2px; }
.msg-studio { background: #efe7ea; align-self: flex-start; border-bottom-left-radius: 5px; }
.msg-studio .who { color: var(--blush); }
.msg-jess { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.msg-jess .who { color: #d9c7cc; }
.msg-system { align-self: center; background: var(--blush-soft); border: 1px dashed var(--blush); color: var(--ink); font-size: 0.88rem; text-align: center; }

.deposit-card { margin-top: 14px; background: #fffaf0; border: 1.5px solid var(--brass); border-radius: var(--radius); padding: 14px 16px; }
.deposit-card p { margin: 0 0 10px; }
.mock-kicker { color: var(--brass); font-size: 0.82rem; font-weight: 700; margin: 0 0 8px; }
.deposit-note { color: var(--muted); font-size: 0.88rem; margin: 10px 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font-size: 0.92rem; font-weight: 600; cursor: pointer;
}
.chip:hover { background: var(--ink); color: #fff; }

.text-form { display: flex; gap: 9px; margin-top: 12px; }
.text-form input {
  flex: 1; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 1rem; min-width: 0;
}
.button { border: 0; cursor: pointer; border-radius: 9px; padding: 11px 17px; font-size: 0.97rem; font-weight: 700; }
.button:disabled { opacity: 0.45; cursor: not-allowed; }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--ink-deep); }
.button-secondary { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); }
.stage-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

.owner-notice { margin-top: 16px; border: 1.5px solid var(--ok); border-radius: var(--radius); padding: 14px 16px; background: var(--ok-bg); }
.demo-label { color: var(--ok); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.11em; margin: 0; }
.notice-body { margin: 6px 0 0; font-weight: 600; }
.outcome { margin: 14px 0 0; border: 1px solid var(--line); background: var(--blush-soft); border-radius: 9px; padding: 11px 13px; font-weight: 600; }

.notes-section { padding: 36px 0 48px; }
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.notes-grid h2 { font-size: 1.3rem; color: var(--ink); }
.notes-grid li { margin-bottom: 8px; color: var(--muted); }
.notes-grid li strong, .notes-grid p strong { color: var(--text); }
.notes-grid p { color: var(--muted); }
.price-line { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; }

.site-footer { background: var(--ink-deep); padding: 22px 0 30px; color: #c9c0c8; font-size: 0.9rem; }

@media (max-width: 860px) {
  .hero-grid, .stage-grid, .notes-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.7rem; }
  .header-phone { margin-left: 0; }
  .thread { min-height: 190px; }
}

/* ---- View toggle + Owner Admin (Wave 3 flip-view admin pass) ---- */
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--blush); outline-offset: 2px;
}

.view-bar { background: var(--ink); padding: 14px 0; }
.view-bar-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.view-toggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}
.view-btn {
  border: 0; background: transparent; color: #e8dde1; cursor: pointer;
  font-size: 0.95rem; font-weight: 700; padding: 9px 18px; border-radius: 999px;
}
.view-btn.is-active { background: var(--surface); color: var(--ink); }
.view-note { margin: 0; color: #cfc3c9; font-size: 0.93rem; }
.view-note strong { color: #fff; }

.admin-section { padding: 30px 0 12px; }
.admin-panel {
  background: var(--surface); border: 1.5px solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px;
}
.admin-label { color: var(--brass); }
.admin-panel h2 { margin: 6px 0 8px; color: var(--ink); font-size: 1.45rem; }
.admin-sub { margin: 0; color: var(--muted); max-width: 680px; }

.admin-money {
  margin-top: 20px; color: #fff; border-radius: var(--radius); padding: 20px 22px;
  background: linear-gradient(135deg, var(--ink-deep), var(--ink) 55%, #3d3542);
}
.money-label {
  margin: 0; color: #e3b7bd; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700;
}
.money-value { margin: 4px 0; font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.money-note { margin: 0; color: #d8d2dc; font-size: 0.94rem; max-width: 600px; }

.admin-h { color: var(--ink); margin: 24px 0 10px; font-size: 1.08rem; }
.appt-book, .event-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.book-row {
  border: 1px solid var(--line); border-left: 4px solid var(--blush);
  border-radius: 10px; padding: 13px 15px; background: #fdfaf8;
}
.book-row.is-yours { border-left-color: var(--brass); background: #fffaf0; }
.book-row-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.book-when { font-weight: 800; color: var(--ink); }
.book-name { font-weight: 700; }
.badge {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  border-radius: 999px; padding: 3px 9px; border: 1px solid;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.badge-wait { background: var(--blush-soft); color: var(--ink); border-color: var(--blush); }
.badge-open { background: #fdecea; color: var(--danger); border-color: var(--danger); }
.badge-yours { background: var(--brass); color: #fff; border-color: var(--brass); }
.book-detail { margin: 4px 0 0; color: var(--muted); font-size: 0.93rem; }

.feed-row {
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; background: #fdfaf8;
}
.feed-row.is-yours { border-color: var(--brass); background: #fffaf0; }
.feed-time { font-weight: 800; color: var(--brass); font-size: 0.86rem; white-space: nowrap; }
.feed-text { flex: 1; min-width: 200px; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--blush-soft); text-align: center; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.stat-label { color: var(--muted); font-size: 0.85rem; }

.admin-insight {
  margin: 20px 0 0; border: 1.5px solid var(--ok); background: var(--ok-bg);
  border-radius: 10px; padding: 13px 15px; font-weight: 600;
}
.admin-note { color: var(--muted); font-size: 0.86rem; margin: 14px 0 0; }

.audit-line { margin-top: 10px; font-weight: 600; }

@media (max-width: 700px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .money-value { font-size: 2rem; }
}
