/* =========================================================================
   Violets Salon Booking System
   White and purple. Light only — no dark-mode override, so the brand looks
   the same on every device regardless of OS appearance settings.
   ========================================================================= */

:root {
  /* purple */
  --p-900: #2E1065;
  --p-800: #4C1D95;
  --p-700: #5B21B6;
  --p-600: #6D28D9;
  --p-500: #7C3AED;   /* primary */
  --p-400: #8B5CF6;
  --p-300: #A78BFA;
  --p-200: #C4B5FD;
  --p-150: #DDD6FE;
  --p-100: #EDE9FE;
  --p-050: #F5F3FF;

  /* neutrals */
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FAF9FE;
  --line: #EBE8F4;
  --line-strong: #D8D2E8;

  /* text */
  --ink: #1C1830;
  --ink-soft: #544E6B;
  --ink-mute: #8882A0;

  /* status */
  --ok: #0E7C5A;   --ok-bg: #E6F6F0;
  --warn: #8A5B06;  --warn-bg: #FCF2DF;
  --bad: #A3243F;   --bad-bg: #FCEAEE;
  --info: #2B5CA8;  --info-bg: #EAF0FA;

  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(28, 24, 48, .05);
  --shadow: 0 2px 6px rgba(28, 24, 48, .06), 0 8px 24px rgba(var(--p-700-rgb), .06);
  --shadow-lg: 0 12px 40px rgba(var(--p-700-rgb), .14);
  --ring: 0 0 0 3px rgba(var(--p-500-rgb), .20);

  /* Theme hooks. These defaults ARE the original design; the website editor overrides them. */
  --p-900-rgb: 46, 16, 101;
  --p-700-rgb: 91, 33, 182;
  --p-500-rgb: 124, 58, 237;
  --hero-1: rgba(46, 16, 101, .95);
  --hero-2: rgba(76, 29, 149, .90);
  --hero-3: rgba(91, 33, 182, .87);
  --on-dark-1: #E9E2FB;
  --on-dark-2: #E3DAF8;
  --footer-ink: #B6A8DC;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --script: var(--display);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Pin the footer to the bottom on pages too short to fill the screen. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
/* Breathing room before the footer, except where a section already pads it. */
body > main > :last-child:not(.home-section) { margin-bottom: 46px; }
.site-footer { flex-shrink: 0; }

a { color: var(--p-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--ink); font-weight: 600; }
h1 { font-size: 1.65rem; letter-spacing: -.02em; }
h2 { font-size: 1.2rem; letter-spacing: -.01em; }
h3 { font-size: 1rem; }
h4 { font-size: .88rem; }
p  { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--p-500); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--p-150); color: var(--p-900); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--ink-mute); }
.soft  { color: var(--ink-soft); }
.small { font-size: .85rem; }
.tiny  { font-size: .76rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt1 { margin-top: 6px; } .mt2 { margin-top: 15px; } .mt3 { margin-top: 26px; }
.mb1 { margin-bottom: 6px; } .mb2 { margin-bottom: 15px; } .mb3 { margin-bottom: 26px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 11px; align-items: center; }
.row-between { display: flex; gap: 11px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1; }
.hide { display: none !important; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em;
  background: var(--p-050); color: var(--p-700); border: 1px solid var(--p-100);
  border-radius: 4px; padding: 1px 5px; }

/* ---------- brand ---------- */
.wordmark {
  font-family: var(--display); font-weight: 600; letter-spacing: .01em;
  color: var(--p-700); line-height: 1;
}
.wordmark-sub {
  font-size: .6rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-mute); margin-top: 6px; font-weight: 500;
}
.script { font-family: var(--display); font-weight: 600; color: var(--p-700); }

/* ---------- public header ---------- */
.site-header {
  background: linear-gradient(135deg, var(--p-900) 0%, var(--p-800) 100%);
  position: sticky; top: 0; z-index: 50; border-bottom: 0;
}
.site-header .bar { display: flex; align-items: center; gap: 20px; padding: 13px 0; }
.site-header .wordmark { font-size: 1.5rem; color: #fff; }
.site-header .wordmark-sub { color: var(--p-300); }
.site-nav { display: flex; gap: 24px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav a { color: rgba(255, 255, 255, .78); font-weight: 500; font-size: .88rem; }
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-nav a.active { color: #fff; box-shadow: inset 0 -2px 0 var(--p-300); }
/* The header CTA sits on dark, so it inverts. */
.site-header .btn-primary { background: #fff; color: var(--p-700); }
.site-header .btn-primary:hover { background: var(--p-050); color: var(--p-800); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.site-header .site-nav a.btn-primary { box-shadow: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.3rem; color: #fff; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .86rem; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-decoration: none; line-height: 1.35; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--p-600); color: #fff; }
.btn-primary:hover { background: var(--p-700); color: #fff; box-shadow: 0 4px 14px rgba(var(--p-700-rgb), .26); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--p-050); border-color: var(--p-300); color: var(--p-700); }
.btn-soft { background: var(--p-100); color: var(--p-700); }
.btn-soft:hover { background: var(--p-150); }
.btn-danger { background: var(--white); color: var(--bad); border-color: var(--line-strong); }
.btn-danger:hover { background: var(--bad); color: #fff; border-color: transparent; }
.btn-hero { background: var(--p-600); color: #fff; box-shadow: 0 6px 20px rgba(var(--p-700-rgb), .28); }
.btn-hero:hover { background: var(--p-700); color: #fff; box-shadow: 0 10px 28px rgba(var(--p-700-rgb), .36); }
.btn-sm { padding: 6px 12px; font-size: .79rem; }
.btn-lg { padding: 13px 28px; font-size: .95rem; }
.btn-block { width: 100%; }
/* On a purple background */
.on-purple .btn-ghost, .btn-on-purple {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.5);
}
.on-purple .btn-ghost:hover, .btn-on-purple:hover {
  background: #fff; color: var(--p-700); border-color: #fff;
}
.on-purple .btn-primary, .btn-white { background: #fff; color: var(--p-700); }
.on-purple .btn-primary:hover, .btn-white:hover { background: var(--p-050); color: var(--p-800); box-shadow: 0 8px 22px rgba(0,0,0,.18); }

/* ---------- cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 18px; }
.card-head {
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 11px; flex-wrap: wrap;
}
.card-head h2, .card-head h3 { margin: 0; font-size: .96rem; }
.card-body { padding: 18px; }
.card-foot { padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface-2);
  border-radius: 0 0 var(--radius) var(--radius); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }

/* ---------- legacy hero (inner pages) ---------- */
.hero {
  background: var(--p-050); border-bottom: 1px solid var(--line);
  padding: 46px 0 42px; text-align: center;
}
.hero .wordmark { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.hero-tag { font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); }
.hero-services {
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-mute); margin: 16px 0 22px; font-weight: 500;
}

/* ---------- tiles / treatments ---------- */
.tile {
  display: block; padding: 18px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); transition: border-color .16s, box-shadow .16s, transform .16s; color: inherit;
}
.tile:hover { border-color: var(--p-300); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.tile-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--p-100); color: var(--p-700); font-size: 1.05rem; margin-bottom: 11px;
}
.tile h3 { margin: 0 0 3px; color: var(--p-700); }
.tile p { margin: 0; font-size: .85rem; color: var(--ink-soft); }

.treatment-row { display: flex; gap: 16px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--line); }
.treatment-row:last-child { border-bottom: 0; }
.treatment-row h3 { margin: 0 0 2px; font-size: .98rem; }
.treatment-meta { font-size: .8rem; color: var(--ink-mute); }
.price-tag { font-family: var(--display); font-size: 1.4rem; font-weight: 600; color: var(--p-700); white-space: nowrap; line-height: 1.1; }

/* ---------- avatars / staff ---------- */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 600; font-size: .73rem;
  color: #fff; background: var(--p-600); object-fit: cover;
}
.avatar-lg { width: 64px; height: 64px; font-size: 1.1rem; }
.avatar-xl { width: 92px; height: 92px; font-size: 1.6rem; }
.staff-card { text-align: center; padding: 22px 16px; }
.staff-card .avatar { margin: 0 auto 12px; }
.staff-card h3 { margin: 0 0 2px; }
.staff-card .role { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--p-500); font-weight: 600; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: .8rem; margin-bottom: 5px; color: var(--ink-soft); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number],
input[type=date], input[type=time], input[type=datetime-local], input[type=search],
input[type=file], select, textarea {
  width: 100%; padding: 9px 11px; font: inherit; font-size: .88rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
/* Browsers size selects, dates and numbers differently, so pin them all. */
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=color]), select) {
  height: 38px; padding-top: 0; padding-bottom: 0; line-height: 1.2;
}
input[type=file] { padding: 7px 10px; height: auto; }
input[type=color] { width: 100%; height: 38px; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); }
/* Own chevron, so every select looks identical across browsers. */
select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%238882A0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 12px;
}
select:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%237C3AED' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* Number spinners crowd the value and differ per browser. */
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input::placeholder, textarea::placeholder { color: var(--ink-mute); opacity: .8; }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--ink-mute); cursor: not-allowed; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--p-500); box-shadow: var(--ring); }
textarea { min-height: 88px; resize: vertical; }
.field { margin-bottom: 14px; }
/* Inside a row of fields the bottom margin just breaks alignment, so the
   row itself owns the vertical spacing instead. */
.field-row > .field { margin-bottom: 0; }
.field-row { align-items: start; margin-bottom: 14px; }
.field-row:last-child { margin-bottom: 0; }
.field-hint { font-size: .77rem; color: var(--ink-mute); margin-top: 4px; }
.field-row { display: grid; gap: 12px 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
/* Fixed column counts for rows that should never wrap awkwardly. */
.field-row.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-row.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* A row ending in an action button: fields share the space, button hugs the end. */
.field-row.with-action { grid-template-columns: 1fr 1.1fr 1.2fr 1.4fr auto; align-items: end; }
.field-row.with-action .btn { height: 38px; }
@media (max-width: 760px) {
  .field-row.cols-3, .field-row.cols-4, .field-row.with-action { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; font-size: .86rem; color: var(--ink-soft); }
.check input { width: 16px; height: 16px; margin-top: 2px; flex: none; accent-color: var(--p-500); }

/* ---------- filter toolbars ----------
   Fixed control height so inputs, selects and buttons line up exactly,
   whether or not a control has a label above it. */
.toolbar { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.toolbar .field { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.toolbar label {
  margin: 0; font-size: .67rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 700; line-height: 1.4;
}
.toolbar input[type=text], .toolbar input[type=search], .toolbar input[type=date],
.toolbar input[type=number], .toolbar select {
  width: auto; height: 32px; padding: 0 10px; font-size: .83rem;
}
.toolbar select { padding-right: 28px; background-position: right 9px center; }
.toolbar .btn { height: 32px; padding: 0 14px; font-size: .82rem; }
.toolbar .btn-sm { height: 32px; font-size: .8rem; }
.toolbar .grow { flex: 1; min-width: 0; }
.toolbar-sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 2px; }

/* ---------- alerts & badges ---------- */
.alert { padding: 10px 13px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: .86rem; border: 1px solid transparent; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: #bfe5d7; }
.alert-error, .alert-danger { background: var(--bad-bg); color: var(--bad); border-color: #f0c7d1; }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: #ecd6a8; }
.alert-info { background: var(--info-bg); color: var(--info); border-color: #c6d6ee; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .71rem; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-brand { background: var(--p-100); color: var(--p-700); }

/* ---------- booking stepper ---------- */
.stepper { display: flex; gap: 5px; margin: 0 0 22px; flex-wrap: wrap; }
.step {
  flex: 1 1 100px; padding: 8px 4px 0; border-top: 3px solid var(--line);
  font-size: .71rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: var(--ink-mute); transition: .15s;
}
.step.done { border-top-color: var(--p-300); color: var(--p-500); }
.step.active { border-top-color: var(--p-600); color: var(--p-700); }

.panel { display: none; }
.panel.active { display: block; animation: rise .22s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.choice {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left;
  padding: 12px 15px; border-radius: var(--radius); cursor: pointer;
  background: var(--white); border: 1px solid var(--line); font: inherit; color: inherit;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice:hover { border-color: var(--p-300); background: var(--p-050); }
.choice.selected { border-color: var(--p-600); background: var(--p-050); box-shadow: var(--ring); }
.choice .label { font-weight: 600; font-size: .92rem; }
.choice .sub { font-size: .8rem; color: var(--ink-mute); }
.choice-list { display: grid; gap: 8px; }

/* ---------- calendar + slots ---------- */
.cal { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head strong { font-size: .92rem; }
.cal-nav { background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  width: 28px; height: 28px; cursor: pointer; color: var(--p-600); font-size: .95rem; line-height: 1; }
.cal-nav:hover:not(:disabled) { background: var(--p-050); border-color: var(--p-300); }
.cal-nav:disabled { opacity: .3; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: .66rem; font-weight: 700; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: .06em; padding-bottom: 6px; }
.cal-day {
  aspect-ratio: 1; border: 0; border-radius: var(--radius-sm); background: transparent; cursor: pointer;
  font: inherit; font-size: .85rem; color: var(--ink); position: relative; transition: .13s;
}
.cal-day:hover:not(:disabled) { background: var(--p-100); }
.cal-day:disabled { color: var(--ink-mute); opacity: .3; cursor: not-allowed; }
.cal-day.has-slots::after {
  content: ''; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--p-500);
}
.cal-day.selected { background: var(--p-600); color: #fff; font-weight: 600; }
.cal-day.selected::after { background: #fff; }
.cal-day.empty { visibility: hidden; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 7px; }
.slot {
  padding: 9px 4px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--white); cursor: pointer; font: inherit; font-size: .85rem;
  font-weight: 600; color: var(--ink); transition: .13s;
}
.slot:hover { border-color: var(--p-400); background: var(--p-050); color: var(--p-700); }
.slot.selected { background: var(--p-600); color: #fff; border-color: transparent; }

.summary-box { background: var(--p-050); border: 1px solid var(--p-100); border-radius: var(--radius); padding: 16px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .88rem; }
.summary-line + .summary-line { border-top: 1px solid var(--p-100); }
.summary-line .k { color: var(--ink-mute); }
.summary-line .v { font-weight: 600; text-align: right; }
.summary-total { font-size: 1rem; padding-top: 10px; margin-top: 5px; border-top: 2px solid var(--p-200) !important; }
.summary-total .v { color: var(--p-700); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.data th {
  text-align: left; padding: 9px 12px; font-size: .69rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute);
  border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap;
}
table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--p-050); }
.empty-state { padding: 38px 20px; text-align: center; color: var(--ink-mute); font-size: .88rem; }
.empty-state .big { font-size: 1.8rem; margin-bottom: 8px; opacity: .5; }

/* ---------- admin shell ---------- */
.admin { display: grid; grid-template-columns: 206px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--p-900); color: #D9CEF2; padding: 18px 11px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  /* Column layout so the utility links can be pushed to the bottom. */
  display: flex; flex-direction: column;
}
.sidebar-brand {
  display: block; text-decoration: none; padding-bottom: 16px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.sidebar-brand:hover { text-decoration: none; }
.sidebar .wordmark { color: #fff; font-size: 1.3rem; padding: 0 8px; }
.sidebar .wordmark-sub { color: var(--p-300); padding: 0 8px; margin-bottom: 0; }
/* View website / Sign out sit at the foot of the rail, behind a rule. */
.sidebar-foot {
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .13);
}
.sidebar nav { display: grid; gap: 1px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border-radius: var(--radius-sm); color: #BCAFE0; font-size: .85rem; font-weight: 500;
  transition: background .13s, color .13s;
}
.sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.sidebar nav a.active { background: var(--p-600); color: #fff; }
.sidebar nav a .ico { width: 16px; text-align: center; font-size: .9rem; opacity: .9; }
.sidebar .group-label { font-size: .63rem; letter-spacing: .14em; text-transform: uppercase; color: #8B79BE; padding: 14px 10px 4px; font-weight: 700; }

.admin-main { min-width: 0; background: var(--surface-2); }
.admin-top {
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 11px 22px; display: flex; align-items: center; gap: 13px;
  position: sticky; top: 0; z-index: 30; flex-wrap: wrap;
}
.admin-top h1 { font-size: 1.05rem; margin: 0; }
.admin-content { padding: 20px 22px; }
.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px;
  background: var(--p-050); border: 1px solid var(--p-100); border-radius: 999px;
  font-size: .82rem; font-weight: 600; color: var(--p-700);
}
.user-chip .avatar { width: 25px; height: 25px; font-size: .62rem; }

.stat { padding: 14px 16px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat .k { font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-mute); font-weight: 700; }
.stat .v { font-size: 1.6rem; font-weight: 600; color: var(--p-700); line-height: 1.15; margin-top: 2px;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .d { font-size: .76rem; color: var(--ink-mute); }

/* ---------- diary ---------- */
.diary { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.diary-grid { display: grid; min-width: 680px; }
.diary-col-head {
  padding: 8px 6px; text-align: center; font-size: .77rem; font-weight: 700;
  border-bottom: 1px solid var(--line); border-left: 1px solid var(--line);
  background: var(--surface-2); position: sticky; top: 0; z-index: 2;
}
.diary-col-head small { display: block; font-weight: 400; color: var(--ink-mute); font-size: .68rem; }
.diary-time { font-size: .68rem; color: var(--ink-mute); text-align: right; padding: 0 7px;
  border-bottom: 1px solid var(--line); height: 24px; line-height: 1; position: relative; top: -5px;
  font-variant-numeric: tabular-nums; }
.diary-cell { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); height: 24px; position: relative; }
.diary-cell.closed { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 5px, transparent 5px, transparent 10px); }
.diary-event {
  position: absolute; left: 2px; right: 2px; border-radius: 5px; padding: 2px 6px;
  font-size: .69rem; line-height: 1.25; overflow: hidden; cursor: pointer; color: #fff; z-index: 1;
}
.diary-event strong { display: block; font-weight: 700; }
.diary-event.absence { background: repeating-linear-gradient(45deg, #9690A8, #9690A8 6px, #867F9A 6px, #867F9A 12px); }
.diary-event.cancelled { opacity: .4; text-decoration: line-through; }

/* ---------- chips, gallery, charts ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 4px 11px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--line-strong); font-size: .79rem; color: var(--ink-soft); transition: .13s;
}
a.chip:hover { border-color: var(--p-300); background: var(--p-050); color: var(--p-700); text-decoration: none; }
.chip.on { background: var(--p-600); color: #fff; border-color: transparent; font-weight: 600; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 11px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.gallery-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.gallery-grid figcaption { padding: 8px 11px; font-size: .79rem; color: var(--ink-soft); }

.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 130px; }
.bar-chart .bar { flex: 1; background: var(--p-300); border-radius: 4px 4px 0 0; min-height: 2px;
  position: relative; transition: background .15s; }
.bar-chart .bar:hover { background: var(--p-600); }
.bar-chart .bar span { position: absolute; bottom: -19px; left: 0; right: 0; text-align: center;
  font-size: .66rem; color: var(--ink-mute); }
.chart-frame { padding-bottom: 23px; }

.spinner { width: 22px; height: 22px; border: 2px solid var(--p-150); border-top-color: var(--p-600);
  border-radius: 50%; animation: spin .7s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- footer ---------- */
.site-footer { background: var(--p-900); color: var(--footer-ink); margin-top: 0; padding: 38px 0 24px; font-size: .86rem; }
.site-footer .wordmark { color: #fff; font-size: 1.4rem; }
.site-footer a { color: var(--p-200); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .sidebar nav { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
  /* No tall rail to push against on mobile, so just keep the rule. */
  .sidebar-foot { margin-top: 12px; }
  .admin-content { padding: 15px; }
  .site-nav { display: none; width: 100%; flex-direction: column; gap: 3px; align-items: stretch; padding-bottom: 11px; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-header .bar { flex-wrap: wrap; }
}

/* =========================================================================
   Landing pages — white and purple.
   White carries the page; purple carries the brand, used at full strength
   in alternating bands rather than washed across everything.
   ========================================================================= */

/* ---------- hero: white, purple accents ---------- */
.home-hero {
  /* Photograph under a purple veil. The veil is deliberately heavy: at its
     lightest stop it still clears WCAG AA for every piece of text above it,
     even where the photo underneath is pure white. */
  background-color: var(--p-800);
  background-image:
    linear-gradient(150deg,
      var(--hero-1) 0%,
      var(--hero-2) 52%,
      var(--hero-3) 100%),
    url('/assets/img/hero.jpg');
  background-size: cover;
  background-position: center 58%;
  background-repeat: no-repeat;
  padding: 66px 0 92px;
  text-align: center;
  border-bottom: 0;
  color: #fff;
  position: relative;
}
/* Slight extra depth where the white stats card overlaps. */
.home-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(var(--p-900-rgb), .45));
  pointer-events: none;
}
.home-hero > * { position: relative; z-index: 1; }
.home-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .24);
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--on-dark-1); margin-bottom: 24px;
}
.home-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--p-300);
}
.home-hero .wordmark { font-size: clamp(3.2rem, 9vw, 5.8rem); color: #fff; }
.home-hero-tag {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.75rem); color: var(--p-200); margin-top: 4px;
}
.home-rule {
  width: 56px; height: 3px; border-radius: 2px; margin: 24px auto;
  background: var(--p-300);
}
.home-hero-lede {
  max-width: 520px; margin: 0 auto; color: rgba(255, 255, 255, .80); font-size: 1rem; line-height: 1.65;
}
.home-services {
  display: flex; flex-wrap: wrap; gap: 7px; justify-content: center;
  margin: 26px auto 30px; max-width: 680px;
}
.home-services span {
  padding: 5px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .20);
  font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
  font-weight: 600; color: var(--on-dark-2);
}
.home-cta { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }
/* Hero buttons sit on dark, so they invert. */
.home-hero .btn-hero { background: #fff; color: var(--p-700); box-shadow: 0 8px 24px rgba(0, 0, 0, .26); }
.home-hero .btn-hero:hover { background: var(--p-050); color: var(--p-800); box-shadow: 0 12px 32px rgba(0, 0, 0, .34); }
.home-hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.home-hero .btn-ghost:hover { background: #fff; color: var(--p-700); border-color: #fff; }

/* ---------- stats strip ---------- */
.home-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  max-width: 900px; margin: -54px auto 0; position: relative; z-index: 2;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 14px 40px rgba(var(--p-900-rgb), .20);
}
.home-strip > div { padding: 20px 18px; text-align: center; border-left: 1px solid var(--line); }
.home-strip > div:first-child { border-left: 0; }
.home-strip .n { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--p-600); line-height: 1; }
.home-strip .l {
  font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 700; margin-top: 6px;
}

/* ---------- sections ---------- */
.home-section { padding: 64px 0; background: var(--white); }
.home-section.alt { background: var(--p-050); border-block: 1px solid var(--p-100); }

/* A full-strength purple band — this is where the colour lives. */
.home-section.purple { background: var(--p-700); border: 0; color: #fff; }
.home-section.purple h2, .home-section.purple h3 { color: #fff; }
.home-section.purple .home-head p { color: var(--p-200); }
.home-section.purple .kicker { color: var(--p-300); }

.home-head { text-align: center; max-width: 580px; margin: 0 auto 38px; }
.home-head .kicker {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--p-500); font-weight: 700; margin-bottom: 10px;
}
.home-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); letter-spacing: -.025em; margin-bottom: 10px; }
.home-head p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* ---------- category cards ---------- */
.home-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.home-card {
  display: block; padding: 24px 22px; color: inherit;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.home-card:hover {
  transform: translateY(-4px); border-color: var(--p-300);
  box-shadow: var(--shadow-lg); text-decoration: none;
}
.home-card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--p-100); color: var(--p-700); font-size: 1.25rem; margin-bottom: 15px;
  transition: background .18s ease, color .18s ease;
}
.home-card:hover .ico { background: var(--p-600); color: #fff; }
.home-card h3 { font-size: 1.05rem; margin: 0 0 5px; color: var(--ink); }
.home-card p { margin: 0 0 12px; font-size: .87rem; color: var(--ink-soft); }
.home-card .more { font-size: .8rem; font-weight: 700; color: var(--p-600); }

/* ---------- numbered steps (inside the purple band) ---------- */
.home-steps { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.home-step { text-align: center; padding: 0 12px; }
.home-step .num {
  width: 50px; height: 50px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display);
  font-size: 1.45rem; font-weight: 700;
  background: rgba(255, 255, 255, .14); color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
}
.home-step h3 { font-size: 1rem; margin: 0 0 6px; }
.home-step p { font-size: .88rem; margin: 0; color: var(--p-200); }
.home-section.purple .home-step p { color: var(--p-200); }

/* ---------- treatments ---------- */
.home-treatments { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.home-treat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 4px;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.home-treat:hover { border-color: var(--p-300); box-shadow: var(--shadow); transform: translateY(-2px); }
.home-treat .cat { font-size: .67rem; letter-spacing: .13em; text-transform: uppercase; color: var(--p-500); font-weight: 700; }
.home-treat h3 { font-size: 1rem; margin: 0; }
.home-treat .meta { font-size: .8rem; color: var(--ink-mute); }
.home-treat .foot {
  display: flex; align-items: center; justify-content: space-between; gap: 11px;
  margin-top: 12px; padding-top: 13px; border-top: 1px solid var(--line);
}
.home-treat .price { font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--p-700); line-height: 1; }
.home-treat .price small { display: block; font-family: var(--font); font-size: .69rem; font-weight: 500; color: var(--ink-mute); margin-top: 4px; }

/* ---------- team ---------- */
.home-team { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.home-member {
  text-align: center; padding: 24px 15px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.home-member:hover { border-color: var(--p-300); box-shadow: var(--shadow); transform: translateY(-2px); }
.home-member .face {
  width: 66px; height: 66px; margin: 0 auto 13px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 1.12rem; object-fit: cover;
}
.home-member h3 { font-size: .94rem; margin: 0 0 3px; }
.home-member .role { font-size: .69rem; letter-spacing: .09em; text-transform: uppercase; color: var(--p-500); font-weight: 700; }

/* ---------- closing band ---------- */
.home-band {
  background: var(--p-700); color: #fff;
  border-radius: var(--radius-lg); padding: 52px 30px; text-align: center;
}
.home-band h2 {
  font-family: var(--display); font-size: clamp(1.8rem, 4.2vw, 2.5rem);
  margin-bottom: 10px; font-weight: 600; color: #fff;
}
.home-band p { color: var(--p-200); max-width: 430px; margin: 0 auto 24px; font-size: .95rem; }

@media (max-width: 700px) {
  .home-hero { padding: 44px 0 74px; }
  .home-section { padding: 44px 0; }
  .home-strip { margin-top: -46px; }
  .home-strip > div { border-left: 0; border-top: 1px solid var(--line); }
  .home-strip > div:first-child { border-top: 0; }
  .home-band { padding: 38px 20px; }
}

/* =========================================================================
   Two-step verification: code page and account security
   ========================================================================= */

/* Standalone sign-in style pages (code entry). */
.auth-page {
  display: grid; place-items: center; min-height: 100vh;
  background: radial-gradient(800px 500px at 20% 0%, var(--p-150), transparent 60%),
              radial-gradient(700px 500px at 85% 100%, var(--p-100), transparent 55%), var(--bg);
}
.auth-box { width: 100%; max-width: 400px; padding: 16px; }
.auth-alt { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 5px; }
.auth-alt a { font-size: .85rem; font-weight: 500; }

/* A code is read and typed digit by digit, so make it large and evenly spaced. */
.code-input {
  text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.5rem; letter-spacing: .38em; font-weight: 600; color: var(--p-800);
  height: 52px !important; padding-left: .38em;
}
.code-input::placeholder { letter-spacing: .38em; color: var(--line-strong); font-weight: 500; }
.code-input-sm { font-size: 1.05rem; letter-spacing: .14em; height: 46px !important; }

/* A button that reads as a text link (resend / cancel). */
.linklike {
  background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; font-weight: 500;
  color: var(--p-600); cursor: pointer; text-decoration: none;
}
.linklike:hover { text-decoration: underline; color: var(--p-700); }

/* Account security cards */
.sec-summary { border-left: 4px solid var(--p-500); }
.method-card { display: flex; flex-direction: column; }
.method-card > p { margin-bottom: 12px; }
.method-card form { margin: 0; }
.method-off { background: var(--surface-2); }
.setup-steps { padding-left: 18px; margin: 0 0 12px; }
.setup-steps li + li { margin-top: 2px; }
.disable-form { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.disable-form label { font-size: .72rem; }

.qr-box {
  display: grid; place-items: center; padding: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); min-height: 150px;
}
.qr-box img { width: 100%; max-width: 190px; height: auto; image-rendering: pixelated; }
.key-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; letter-spacing: .06em;
  background: var(--p-050); border: 1px dashed var(--p-200); border-radius: var(--radius-sm);
  padding: 8px 10px; word-break: break-all; color: var(--p-800); margin-bottom: 4px;
}

.recovery-card { border: 2px solid var(--warn); }
.recovery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.recovery-grid code {
  font-size: 1rem; letter-spacing: .1em; text-align: center; padding: 9px 6px; font-weight: 600;
  background: var(--p-050); border: 1px solid var(--p-100); color: var(--p-800);
}

/* Printing the recovery codes should give a clean page of codes, not the admin. */
@media print {
  .sidebar, .admin-top, .sec-methods, .sec-summary, .toolbar, .btn, .alert, .card:not(.recovery-card) { display: none !important; }
  .admin { display: block; }
  .recovery-card { border: 1px solid #000; box-shadow: none; }
  .recovery-grid code { border: 1px solid #000; background: #fff; color: #000; }
}

/* =========================================================================
   Logo lockups, extra homepage sections, social links, closure notice
   ========================================================================= */

.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-link:hover { text-decoration: none; }
.brand-logo { height: 46px; width: auto; display: block; flex: none; }
.brand-link .wordmark { display: block; }

.hero-logo { display: block; margin: 0 auto 12px; width: auto; height: auto; max-height: 170px; max-width: min(560px, 82%); }
.hero-logo--sm { max-height: 112px; margin-bottom: 8px; }

.footer-logo { height: 44px; width: auto; display: block; margin-bottom: 10px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.footer-social a {
  padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 500;
  border: 1px solid rgba(255, 255, 255, .22); color: #fff; text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.footer-social a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); text-decoration: none; }

.home-about { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: center; max-width: 980px; margin: 0 auto; }
.home-about.no-photo { grid-template-columns: 1fr; max-width: 720px; text-align: center; }
.home-about img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.home-about .copy p { color: var(--ink-soft); font-size: .98rem; line-height: 1.75; }
.home-about .copy .kicker { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--p-500); font-weight: 700; margin-bottom: 8px; }
.home-about .copy h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); letter-spacing: -.025em; }

.home-quotes { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.home-quote {
  margin: 0; padding: 22px 22px 18px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 14px; position: relative;
}
.home-quote::before { content: '\201C'; font-family: var(--display); font-size: 3.2rem; line-height: .6; color: var(--p-300); }
.home-quote p { margin: 0; color: var(--ink-soft); font-size: .93rem; line-height: 1.65; }
.home-quote cite { font-style: normal; font-weight: 700; font-size: .84rem; color: var(--p-700); margin-top: auto; }

.home-faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.home-faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s ease; }
.home-faq details[open] { border-color: var(--p-300); }
.home-faq summary { padding: 15px 20px; cursor: pointer; font-weight: 600; font-size: .95rem; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after { content: '+'; font-size: 1.3rem; color: var(--p-500); font-weight: 400; line-height: 1; transition: transform .15s ease; }
.home-faq details[open] summary::after { content: '\2212'; }
.home-faq details > div { padding: 2px 20px 18px; color: var(--ink-soft); font-size: .92rem; line-height: 1.7; }

.closure-notice {
  background: var(--warn-bg); color: var(--warn); border: 1px solid #ecd6a8; border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: .88rem; margin-bottom: 16px;
}
.closure-notice strong { font-weight: 700; }

@media (max-width: 760px) {
  .home-about { grid-template-columns: 1fr; gap: 22px; }
  .brand-logo { height: 40px; }
}

/* =========================================================================
   Website editor (admin)
   ========================================================================= */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a {
  padding: 9px 15px; font-size: .86rem; font-weight: 600; color: var(--ink-soft);
  border: 1px solid transparent; border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin-bottom: -1px; text-decoration: none;
}
.tabs a:hover { color: var(--p-700); background: var(--p-050); text-decoration: none; }
.tabs a.on { color: var(--p-700); background: var(--white); border-color: var(--line); border-bottom: 1px solid var(--white); }

.editor-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
@media (max-width: 1000px) { .editor-grid { grid-template-columns: 1fr; } }
.editor-note { font-size: .82rem; color: var(--ink-mute); }
.editor-sticky { position: sticky; top: 74px; }

details.ed { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 12px; }
details.ed > summary { padding: 12px 16px; cursor: pointer; font-weight: 600; font-size: .92rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.ed > summary::-webkit-details-marker { display: none; }
details.ed > summary::after { content: '▾'; color: var(--ink-mute); transition: transform .15s ease; }
details.ed[open] > summary::after { transform: rotate(180deg); }
details.ed[open] > summary { border-bottom: 1px solid var(--line); }
details.ed .ed-body { padding: 16px; }
details.ed .ed-hint { font-weight: 400; color: var(--ink-mute); font-size: .78rem; }

.sec-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.sec-row:last-child { border-bottom: 0; }
.sec-row.off { background: var(--surface-2); }
.sec-row.off .sec-name { color: var(--ink-mute); }
.sec-name { font-weight: 600; font-size: .9rem; }
.sec-desc { font-size: .78rem; color: var(--ink-mute); }
.sec-move { display: flex; gap: 4px; }
.sec-move button { width: 30px; height: 30px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; color: var(--p-600); font-size: .9rem; }
.sec-move button:hover:not(:disabled) { background: var(--p-050); border-color: var(--p-300); }
.sec-move button:disabled { opacity: .3; cursor: not-allowed; }

.preset-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.preset { display: block; cursor: pointer; margin: 0; }
.preset input { position: absolute; opacity: 0; pointer-events: none; }
.preset .card-inner { border: 2px solid var(--line); border-radius: var(--radius); padding: 10px; background: var(--white); transition: border-color .15s ease, box-shadow .15s ease; }
.preset:hover .card-inner { border-color: var(--p-300); }
.preset input:checked + .card-inner { border-color: var(--p-600); box-shadow: var(--ring); }
.preset input:focus-visible + .card-inner { outline: 2px solid var(--p-500); outline-offset: 2px; }
.preset .bar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.preset .bar i { flex: 1; }
.preset .nm { font-weight: 600; font-size: .85rem; color: var(--ink); }

.logo-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.logo-stage > div { border-radius: var(--radius); padding: 18px; display: grid; place-items: center; min-height: 110px; border: 1px solid var(--line); }
.logo-stage .on-dark { background: linear-gradient(135deg, var(--p-900), var(--p-800)); }
.logo-stage .on-light { background: #fff; }
.logo-stage img { max-height: 70px; max-width: 100%; width: auto; }
.logo-stage .cap { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-top: 8px; }
.logo-stage .on-dark .cap { color: var(--p-200); }
.logo-stage .on-light .cap { color: var(--ink-mute); }
.photo-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.contrast-ok { color: var(--ok); font-weight: 600; }
.contrast-warn { color: var(--warn); font-weight: 600; }
.rep-row { display: grid; gap: 10px; grid-template-columns: 1fr 1.6fr; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.rep-row:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
@media (max-width: 700px) { .rep-row { grid-template-columns: 1fr; } }
.sidebar-logo { height: 34px; width: auto; display: block; margin: 0 8px 9px; }
