:root {
  --bg: #fffbf5;
  --accent: #b06e6e;
  --accent-soft: #f3e3e0;
  --brand: #2f5bff;
  --text: #2c2420;
  --muted: #8a7d76;
  --card: #ffffff;
  --line: #eadfd6;
  --gold: #c4a574;
  --green: #3d7a5a;
  --shadow: 0 8px 24px rgba(80, 50, 40, 0.06);
  --radius: 16px;
  --sans: "DM Sans", "Helvetica Neue", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
button, input, select { font-family: inherit; }
a { color: var(--accent); text-decoration: none; }
button { cursor: pointer; }
img { max-width: 100%; }

.app { min-height: 100vh; }

.msg {
  color: var(--accent);
  font-size: 0.95rem;
  margin: 0.75rem 0 0;
  min-height: 1.2em;
}
.msg.ok { color: var(--green); }
.muted { color: var(--muted); }
.empty { color: var(--muted); font-size: 0.95rem; margin: 0; }

.primary {
  display: block;
  width: 100%;
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  height: 52px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.primary:disabled { opacity: 0.45; cursor: not-allowed; }
.ghost {
  background: #fff;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 14px;
  height: 52px;
  padding: 0 16px;
  font-weight: 600;
  width: 100%;
  font-size: 1.02rem;
}
.linkish {
  background: none;
  border: 0;
  color: var(--accent);
  padding: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Login — product chrome, not shop colors. Page fill stays --bg. */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.auth-card {
  width: min(420px, 100%);
  background: var(--card);
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  margin: 0 0 6px;
}
.auth-card p.lead { color: var(--muted); margin: 0 0 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.82rem; color: var(--muted); }
.field input, .field select {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: var(--text);
  font-size: 1rem;
}
.switch { margin-top: 16px; color: var(--muted); font-size: 0.95rem; }

/* Client phone column */
.client-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  justify-content: center;
}
.phone {
  width: min(430px, 100%);
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.back {
  position: absolute;
  top: 22px;
  left: 20px;
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  padding: 0;
  z-index: 2;
}
.screen-title {
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  margin: 4px 0 0;
  letter-spacing: -0.02em;
}
.screen-sub {
  text-align: center;
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}
.center-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.logo-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--accent);
  margin: 8px auto 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-name {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}
.status-open {
  color: var(--green);
  font-weight: 700;
  margin: 0;
}
.status-off {
  color: var(--accent);
  font-weight: 700;
  margin: 0;
}
.contact-line {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}
.mine-link {
  color: var(--accent);
  font-weight: 600;
  margin: 6px 0 8px;
  text-align: center;
}
.section-h {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 8px 0 0;
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  margin-top: 4px;
}
.tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 0;
  font-size: 1rem;
}
.tabs button.on {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.card-list { display: flex; flex-direction: column; gap: 12px; }
.svc-card, .staff-card {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: inherit;
  box-shadow: var(--shadow);
}
.svc-card .nm, .staff-card .nm {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}
.svc-card .meta {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 0.95rem;
}
.svc-card .dep {
  color: var(--accent);
  font-weight: 700;
  margin: 8px 0 0;
  font-size: 0.95rem;
}
.book-now {
  color: var(--accent);
  font-weight: 700;
  margin: 8px 0 0;
  font-size: 0.95rem;
}
.note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 4px 0 0;
}
.day-grid, .time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.chip {
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 600;
}
.chip.on, .slot.on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.slot {
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 600;
}
.info-form { display: grid; gap: 14px; margin-top: 8px; }
.info-form label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.info-form input {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  font-size: 1rem;
  width: 100%;
  margin-top: 6px;
}
.booked-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
.booked-card .shop { font-weight: 700; margin: 0 0 6px; }
.booked-card p { margin: 0 0 4px; }
.booked-card .paid { color: var(--accent); font-weight: 700; margin-top: 8px; }
.found-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.found-card .nm { font-weight: 700; margin: 0 0 4px; }
.found-card .meta { color: var(--muted); margin: 0 0 6px; }
.found-card .paid { color: var(--accent); font-weight: 700; margin: 0; }

/* Owner chrome — ground #F4F5F7, accent #1B5F56. Same layout, wider on laptop. */
html.owner-chrome {
  --bg: #F4F5F7 !important;
  --accent: #1B5F56 !important;
  --accent-soft: #dce8e6 !important;
  --brand: #1B5F56 !important;
  --text: #1c1f24;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 8px 24px rgba(20, 30, 40, 0.06);
  --green: #1B5F56 !important;
}
html.owner-chrome,
html.owner-chrome body,
html.owner-chrome .app {
  background: #F4F5F7;
  color: #1c1f24;
}

html.owner-chrome .auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: #F4F5F7;
}
html.owner-chrome .auth-card {
  width: min(390px, 100%);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 8px 0 24px;
}
html.owner-chrome .auth-card h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: #1c1f24;
}
html.owner-chrome .auth-card p.lead {
  color: #6b7280;
  margin: 0 0 22px;
}
html.owner-chrome .field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5563;
}
html.owner-chrome .field input {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #1c1f24;
  width: 100%;
  max-width: 100%;
}
html.owner-chrome .primary {
  background: #1B5F56;
  color: #fff;
}
html.owner-chrome .ghost {
  background: #fff;
  border: 1.5px solid #d1d5db;
  color: #1c1f24;
}
html.owner-chrome .auth-wrap .primary,
html.owner-chrome .auth-wrap .ghost {
  width: 100%;
  margin-top: 8px;
}
html.owner-chrome .auth-wrap .ghost {
  margin-top: 10px;
}
html.owner-chrome .auth-wrap a,
html.owner-chrome .auth-wrap .linkish:not(.danger) {
  color: #1B5F56;
}
html.owner-chrome .auth-card .remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1c1f24;
  font-size: 0.95rem;
  margin: 4px 0 16px;
}
html.owner-chrome .auth-card .remember input {
  width: auto;
  height: auto;
  accent-color: #1B5F56;
}
html.owner-chrome .auth-extra {
  margin: 12px 0 0;
  text-align: left;
}

.owner-shell {
  min-height: 100vh;
  background: #F4F5F7;
  overflow-x: hidden;
  max-width: 100%;
}
.owner-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 10px 12px 0;
  border-bottom: 0;
  overflow: visible;
}
.owner-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 2px 10px;
  width: 100%;
  min-width: 0;
  overflow: visible;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0;
}
.owner-nav a {
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 0 7px;
  border-bottom: 3px solid transparent;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
}
.owner-nav a.active {
  color: #111827;
  font-weight: 700;
  border-bottom-color: #1B5F56;
}
.owner-nav .out {
  margin: 0;
  width: 100%;
  flex-shrink: 0;
  color: #1B5F56;
  font-weight: 600;
  background: none;
  border: 0;
  border-top: 0;
  padding: 12px 0 4px;
  white-space: nowrap;
  text-align: left;
}
.owner-main {
  padding: 16px 16px 48px;
  max-width: 390px;
  width: 100%;
  overflow-x: hidden;
}
.owner-head h1 {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 8px 0 12px;
  color: #111827;
  letter-spacing: -0.02em;
}
.owner-head .sub { color: #6b7280; margin: 0 0 16px; }
.owner-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: none;
  overflow: hidden;
  max-width: 100%;
}

.cal-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 16px;
  max-width: 100%;
}
.cal-tools .cal-date {
  flex: 1;
  text-align: center;
  font-weight: 700;
  color: #111827;
  min-width: 0;
}
.cal-tools button {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  font-weight: 600;
  flex-shrink: 0;
}

.month-cal {
  margin: 0 0 16px;
  max-width: 100%;
}
.month-dows {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 0 0 6px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.04em;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.month-cell {
  height: 46px;
  border-radius: 11px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.month-cell .mc-d { font-weight: 700; font-size: 0.9rem; line-height: 1; }
.month-cell .mc-n { font-size: 0.64rem; font-weight: 800; color: #1B5F56; line-height: 1; }
.month-cell.off { border: none; background: transparent; pointer-events: none; }
.month-cell.shut { background: #f0f1f3; color: #9aa1ab; }
/* The busier the day, the deeper the tint. A count sits under the date, so a
   day with four appointments never reads the same as a day with one. */
.month-cell.b1 { background: #e8f1ef; }
.month-cell.b2 { background: #cfe3df; }
.month-cell.b3 { background: #a9cec7; }
.month-cell.b4 { background: #6fb0a5; border-color: #6fb0a5; }
.month-cell.b4 .mc-d, .month-cell.b4 .mc-n { color: #08302b; }
.month-cell.is-today { border: 2px solid #1B5F56; }
.month-cell.on,
.month-cell.on:hover,
.month-cell.on:active,
.month-cell.on:focus {
  background: #1B5F56;
  border-color: #1B5F56;
}
.month-cell.on .mc-d, .month-cell.on .mc-n { color: #fff; }
.month-key {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 9px 2px 0;
  font-size: 0.7rem;
  color: #6b7280;
  flex-wrap: wrap;
}
.month-key span { display: inline-flex; align-items: center; gap: 4px; }
.month-key i { width: 15px; height: 15px; border-radius: 5px; border: 1px solid #e5e7eb; display: inline-block; }
.month-key i.k1 { background: #e8f1ef; }
.month-key i.k2 { background: #cfe3df; }
.month-key i.k3 { background: #a9cec7; }
.month-key i.k4 { background: #6fb0a5; border-color: #6fb0a5; }
.month-key i.k0 { background: #f0f1f3; }

/* month tools, segment switch, totals, find */
.cal-arrow {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid #e5e7eb; background: #fff;
  font-weight: 800; font-size: 1.1rem; line-height: 1; color: #111827;
}
.seg { display: flex; background: #e7eaee; border-radius: 10px; padding: 2px; margin-bottom: 10px; }
.seg-btn {
  flex: 1; border: none; background: transparent; border-radius: 8px;
  padding: 8px 0; font-size: 0.84rem; font-weight: 700; color: #6b7280;
}
.seg-btn.on { background: #fff; color: #111827; }
.month-totals {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 10px 12px; display: flex; gap: 18px; margin-bottom: 10px; flex-wrap: wrap;
}
.month-totals div { font-size: 0.78rem; color: #6b7280; }
.month-totals b { display: block; font-size: 1.02rem; color: #111827; }
.find-wrap { margin-bottom: 10px; }
.find-input {
  width: 100%; height: 42px; border-radius: 12px; border: 1px solid #e5e7eb;
  background: #fff; padding: 0 12px; font-size: 0.92rem; color: #111827;
}

/* appointment rows, shared by today, a day and search */
.sect-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 18px 2px 8px; }
.sect-head h2 { margin: 0; font-size: 1.05rem; }
.sect-head span { font-size: 0.79rem; color: #6b7280; text-align: right; }
.today-block .sect-head { margin-top: 0; }
.appt-list { display: flex; flex-direction: column; gap: 8px; }
.appt-row {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 13px;
  padding: 11px 13px; display: flex; gap: 11px; align-items: center;
}
.appt-time { font-weight: 800; font-size: 0.83rem; color: #1B5F56; width: 66px; flex: none; }
.appt-mid { min-width: 0; }
.appt-mid .who { font-weight: 700; font-size: 0.95rem; margin: 0; }
.appt-mid .meta { color: #6b7280; font-size: 0.79rem; margin: 2px 0 0; }
.appt-pill {
  margin-left: auto; font-size: 0.7rem; font-weight: 800; padding: 4px 8px;
  border-radius: 99px; background: #e8f1ef; color: #1B5F56; white-space: nowrap;
}
.appt-pill.due { background: #fdecec; color: #9b2c2c; }

/* week view */
.week-list { display: flex; flex-direction: column; gap: 8px; }
.week-row {
  width: 100%; text-align: left; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 13px; padding: 11px 13px; display: flex; gap: 11px; align-items: center;
}
.week-row.quiet { opacity: 0.6; }
.week-row.on { border-color: #1B5F56; box-shadow: inset 0 0 0 1px #1B5F56; }
.wk-day { font-weight: 800; font-size: 0.83rem; color: #1B5F56; width: 66px; flex: none; }
.wk-mid { display: flex; flex-direction: column; min-width: 0; }
.wk-mid .who { font-weight: 700; font-size: 0.95rem; }
.wk-mid .meta { color: #6b7280; font-size: 0.79rem; }

/* one shared box for empty and error, so no screen is ever blank */
.state-box {
  background: #fff; border: 1px dashed #cbd2da; border-radius: 13px;
  padding: 20px 14px; text-align: center;
}
.state-box.bad { border-style: solid; border-color: #f0c2c2; background: #fdecec; }
.state-title { margin: 0 0 4px; font-weight: 700; color: #111827; }
.state-sub { color: #6b7280; margin: 0; font-size: 0.86rem; }
.state-box .primary, .state-box .ghost { margin-top: 12px; }

/* one switch, used by Hours and Settings */
.sw {
  margin-left: auto; width: 44px; height: 26px; border-radius: 99px;
  background: #1B5F56; position: relative; flex: none; border: none; padding: 0;
}
.sw i { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: all .12s ease; }
.sw.off { background: #cdd3da; }
.sw.off i { right: auto; left: 3px; }

/* hours, one row a day */
.hours-rows { display: flex; flex-direction: column; gap: 8px; }
.hrow {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 9px 12px; display: flex; align-items: center; gap: 10px;
}
.hday { font-weight: 800; width: 42px; font-size: 0.88rem; flex: none; }
.htimes { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hchip {
  border: 1px solid #e5e7eb; border-radius: 9px; padding: 6px 8px;
  font-size: 0.86rem; font-weight: 600; color: #111827; background: #fff; min-width: 0;
}
.hto { color: #6b7280; font-size: 0.8rem; }
.hclosed { display: none; color: #6b7280; font-size: 0.86rem; font-weight: 600; }
.hrow.shut .htimes { display: none; }
.hrow.shut .hclosed { display: inline; }
.hours-actions { margin-top: 14px; }

/* settings */
.set-row {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 12px 13px; display: flex; align-items: center; gap: 10px;
}
.set-title { font-weight: 700; margin: 0; font-size: 0.96rem; }
.set-sub { color: #6b7280; margin: 2px 0 0; font-size: 0.84rem; }
.set-help { color: #6b7280; font-size: 0.82rem; margin: 6px 2px 0; line-height: 1.45; }
.lbl-row { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; color: #6b7280; margin: 18px 2px 6px; }
.set-select, .set-input {
  width: 100%; height: 44px; border-radius: 11px; border: 1px solid #e5e7eb;
  background: #fff; padding: 0 12px; font-size: 0.95rem; color: #111827;
}
.slug-row { display: flex; align-items: center; gap: 8px; }
.slug-pre { color: #6b7280; font-weight: 700; font-size: 0.9rem; flex: none; }

/* colour swatches and live preview */
.swatch-block { margin-top: 14px; }
.swatch-block > label {
  display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em;
  color: #6b7280; margin-bottom: 6px;
}
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.sw2 { width: 42px; height: 42px; border-radius: 11px; border: 1px solid #d5dae1; padding: 0; }
.sw2.pick { outline: 2.5px solid #1B5F56; outline-offset: 2px; }
.swatch-block input[type="color"] {
  width: 64px; height: 34px; border: 1px solid #e5e7eb; border-radius: 9px;
  background: #fff; padding: 2px;
}
.look-preview { border: 1px solid #e5e7eb; border-radius: 13px; padding: 18px; text-align: center; }
.lp-logo { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 8px; background-size: cover; background-position: center; }
.lp-name { font-weight: 800; font-size: 1rem; margin: 0 0 10px; }
.lp-btn { border-radius: 99px; padding: 10px 0; font-weight: 800; font-size: 0.88rem; }

.note-amber {
  background: #fdf6e6; border: 1px solid #e4cf9e; color: #6b4700;
  border-radius: 12px; padding: 11px 13px; font-size: 0.85rem; line-height: 1.45; margin: 10px 0;
}
/* The preview bar on a hidden shop. Amber on purpose: it is the colour that
   means "Martin's gate" everywhere else, and it must not borrow the salon's
   own accent, or it would read as part of their design rather than as a note
   about the page. Fixed colours, not tokens, for the same reason. */
.preview-mark {
  background: #fdf6e6; border-bottom: 1px solid #e4cf9e; color: #6b4700;
  padding: 10px 16px; text-align: center;
}
.preview-mark .pm-t {
  margin: 0; font-weight: 800; font-size: 0.9rem; letter-spacing: 0.01em;
}
.preview-mark .pm-s {
  margin: 3px 0 0; font-size: 0.78rem; line-height: 1.4; color: #8a6a2a;
}
.amber {
  background: #fff; color: #8a5a00; border: 1px solid #e4cf9e;
  border-radius: 12px; height: 46px; font-weight: 800; font-size: 0.94rem; width: 100%;
}
.btn-link { display: block; text-align: center; line-height: 46px; text-decoration: none; }

/* shop name on every owner screen */
.owner-head-bar { display: flex; align-items: center; gap: 10px; padding: 12px 0 2px; }
.oh-logo { width: 30px; height: 30px; border-radius: 50%; flex: none; object-fit: cover; display: block; }
.oh-text { min-width: 0; }
.oh-name { font-weight: 800; font-size: 1rem; margin: 0; line-height: 1.15; }
.oh-link { font-size: 0.76rem; color: #1B5F56; text-decoration: none; font-weight: 600; word-break: break-all; }

.today-list, .slot-list, .card-list, .hours-list, .staff-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
}
.today-card, .slot-card, .hours-card, .svc-item, .staff-card-row {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  max-width: 100%;
}
.today-card .who {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  color: #111827;
}
.today-card .meta {
  color: #6b7280;
  margin: 4px 0 0;
  font-size: 0.95rem;
}
.today-card .paid {
  color: #1B5F56;
  font-weight: 700;
  margin: 8px 0 0;
}
.empty-today {
  color: #6b7280;
  margin: 0;
  font-size: 1rem;
}

.slot-card .when {
  font-weight: 700;
  margin: 0;
  color: #111827;
}
.slot-card .who-lab {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin: 10px 0 2px;
}
.slot-card .who-name {
  margin: 0;
  color: #111827;
}
.slot-card .book-line {
  margin: 6px 0 0;
  color: #111827;
  font-weight: 600;
  font-size: 0.95rem;
}
.slot-card .pill {
  margin-top: 10px;
}
.slot-card .act {
  display: block;
  width: 100%;
  margin-top: 12px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid #d1d5db;
  color: #111827;
  font-weight: 700;
  font-size: 0.95rem;
}
.slot-card .act.danger {
  color: #9a3b3b;
  border-color: #e8c4c4;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}
.pill.open { background: #eef1f4; color: #5b6570; }
.pill.paid { background: #e4f3ea; color: #1B5F56; }
.pill.held { background: #f8e4e4; color: #9a3b3b; }
.pill.blocked { background: #f8e4e4; color: #9a3b3b; }

.hours-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hours-card > strong {
  color: #111827;
  font-size: 1.02rem;
}
.hours-card .closed-lab {
  color: #6b7280;
  margin: 0;
}
.hours-card .field { margin: 0; }
.hours-card input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.hours-actions, .svc-actions, .look-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  max-width: 100%;
}
.hours-actions .primary,
.svc-actions .primary,
.look-actions .primary {
  flex: 1;
  width: auto;
}
.svc-actions .ghost,
.look-actions .ghost {
  flex: 1;
  width: auto;
}

.look {
  max-width: 520px;
  width: 100%;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.look .field { margin: 0; }
.look input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.logo-preview {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-ph {
  width: 88px;
  height: 88px;
  border-radius: 50%;
}
.stripe-box {
  max-width: 640px;
  display: grid;
  gap: 12px;
}
.stripe-box .status-off,
.stripe-box .status-warn,
.stripe-box .status-open {
  font-weight: 500;
  color: #6b7280;
  font-size: 1.05rem;
}
.stripe-box .status-open { color: #1B5F56; font-weight: 700; }
/* Attached but Stripe has not finished with it. Amber, because nothing is
   broken but the shop cannot take a deposit until the owner acts. */
.stripe-box .status-warn { color: #8a5a00; font-weight: 700; }
.stripe-box .ghost { width: 100%; min-width: 0; }
.stripe-box .link { color: #1B5F56; font-weight: 600; }
.stripe-box .hint {
  color: #1c1f24;
  margin: 0;
}
.stripe-box .primary { width: 100%; min-width: 0; }
.inline-add {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  max-width: 100%;
}
.inline-add input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
}
.inline-add button { width: auto; padding: 0 18px; height: 44px; flex-shrink: 0; }
.svc-item {
  display: grid;
  gap: 10px;
}
.svc-item .field { margin: 0; }
.svc-item input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #f9fafb;
}
.svc-remove {
  justify-self: start;
  background: #fff;
  border: 1px solid #e8c4c4;
  color: #9a3b3b;
  border-radius: 10px;
  height: 36px;
  padding: 0 14px;
  font-weight: 600;
  font-size: 0.9rem;
}
.staff-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.staff-card-row .nm { font-weight: 700; margin: 0; color: #111827; }
.danger { color: #9a3b3b; }
.public-url-text {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  word-break: break-all;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: #111827;
  line-height: 1.4;
}

html.owner-chrome .owner-shell .primary,
html.owner-chrome .owner-shell .primary:hover,
html.owner-chrome .owner-shell .primary:active,
html.owner-chrome .owner-shell .primary:focus,
html.owner-chrome .primary,
html.owner-chrome .primary:hover,
html.owner-chrome .primary:active,
html.owner-chrome .primary:focus {
  background: #1B5F56;
  color: #fff;
  border-color: #1B5F56;
}
html.owner-chrome .owner-shell .ghost,
html.owner-chrome .owner-shell .ghost:hover,
html.owner-chrome .owner-shell .ghost:active,
html.owner-chrome .owner-shell .ghost:focus,
html.owner-chrome .ghost,
html.owner-chrome .ghost:hover,
html.owner-chrome .ghost:active,
html.owner-chrome .ghost:focus {
  border-color: #d1d5db;
  color: #111827;
  background: #fff;
}
html.owner-chrome a,
html.owner-chrome a:link,
html.owner-chrome a:visited,
html.owner-chrome a:hover,
html.owner-chrome a:active,
html.owner-chrome a:focus,
html.owner-chrome .owner-shell a,
html.owner-chrome .owner-shell a:link,
html.owner-chrome .owner-shell a:visited,
html.owner-chrome .owner-shell a:hover,
html.owner-chrome .owner-shell a:active,
html.owner-chrome .owner-shell .linkish:not(.danger),
html.owner-chrome .owner-shell .linkish:not(.danger):hover,
html.owner-chrome .owner-shell .linkish:not(.danger):active,
html.owner-chrome .auth-wrap a,
html.owner-chrome .auth-wrap a:visited,
html.owner-chrome .auth-wrap a:hover,
html.owner-chrome .auth-wrap .linkish:not(.danger) {
  color: #1B5F56;
}
html.owner-chrome .owner-nav a,
html.owner-chrome .owner-nav a:link,
html.owner-chrome .owner-nav a:visited,
html.owner-chrome .owner-nav a:hover,
html.owner-chrome .owner-nav a:active,
html.owner-chrome .owner-nav a:focus {
  color: #374151;
  background: transparent;
}
html.owner-chrome .owner-nav a.active,
html.owner-chrome .owner-nav a.active:link,
html.owner-chrome .owner-nav a.active:visited,
html.owner-chrome .owner-nav a.active:hover,
html.owner-chrome .owner-nav a.active:active {
  color: #111827;
  border-bottom-color: #1B5F56;
}
html.owner-chrome .owner-nav .out,
html.owner-chrome .owner-nav .out:hover,
html.owner-chrome .owner-nav .out:active,
html.owner-chrome .owner-nav .out:focus {
  color: #1B5F56;
  background: none;
}
html.owner-chrome .cal-tools button,
html.owner-chrome .cal-tools button:hover,
html.owner-chrome .cal-tools button:active,
html.owner-chrome .cal-tools button:focus {
  background: #fff;
  color: #111827;
  border-color: #d1d5db;
}
html.owner-chrome .month-cell.on,
html.owner-chrome .month-cell.on:hover,
html.owner-chrome .month-cell.on:active,
html.owner-chrome .month-cell.on:focus {
  background: #1B5F56;
  color: #fff;
  border-color: #1B5F56;
}
html.owner-chrome .month-cell.has-book::after {
  background: #1B5F56;
}
html.owner-chrome .month-cell.on.has-book::after {
  background: #fff;
}
html.owner-chrome button:focus,
html.owner-chrome a:focus {
  outline-color: #1B5F56;
}

.owner-ask {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  display: grid;
  place-items: center;
  z-index: 40;
  padding: 20px;
}
.owner-ask-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px 18px;
  width: min(320px, 100%);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.owner-ask-card p {
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 16px;
  color: #111827;
  text-align: center;
}
.owner-ask-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.owner-ask-btns button {
  height: 44px;
  border-radius: 10px;
  font-weight: 700;
  background: #fff;
}
.owner-ask-btns .ask-yes {
  border: 1.5px solid #e8c4c4;
  color: #9a3b3b;
}
.owner-ask-btns .ask-no {
  border: 1.5px solid #d1d5db;
  color: #111827;
}

@media (min-width: 900px) {
  .owner-nav { padding: 16px 40px 0; }
  /* Was 1080px wide and left aligned, so a laptop showed one narrow column of
     content against a large empty right side. Centred, and the calendar sits
     beside the lists instead of above them. */
  .owner-main { padding: 20px 40px 56px; max-width: 1120px; margin: 0 auto; }
  .owner-nav { max-width: 1120px; margin: 0 auto; }
  .owner-head-bar { max-width: 1120px; margin: 0 auto; padding: 14px 40px 2px; }
  .owner-nav-tabs { gap: 8px 18px; }
  .owner-nav a { font-size: 1rem; }
  .owner-nav .out { width: auto; }

  .owner-main .cal-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
  .month-cell { height: 58px; }
  .month-cell .mc-d { font-size: 1rem; }
  .month-cell .mc-n { font-size: 0.72rem; }
  .seg { max-width: 260px; }
  .find-input { max-width: 420px; }
  .appt-row, .week-row, .state-box { max-width: 560px; }
  .hours-rows, .hours-actions, .set-row, .set-select, .set-input, .slug-row,
  .look-preview, .note-amber, .swatch-block, .stripe-box, .card-list,
  .staff-list, .svc-actions, .look, .inline-add { max-width: 560px; }
  .set-help, .lbl-row { max-width: 560px; }
}
.set-readonly {
  background: #eef0f3; border: 1px solid #e5e7eb; border-radius: 11px;
  height: 44px; display: flex; align-items: center; padding: 0 12px;
  font-size: 0.95rem; color: #6b7280;
}
.owner-main > .primary { width: 100%; }
@media (min-width: 900px) {
  .owner-main > .primary, .set-readonly { max-width: 560px; }
}
.logo-row { display: flex; align-items: center; gap: 12px; }
.logo-row .logo-preview, .logo-row .logo-ph {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; margin: 0;
}
.logo-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.logo-pick { width: auto; padding: 0 18px; height: 44px; line-height: 42px; display: inline-block; text-align: center; }
