/* Digital specimens migrated from the admin component library. Brand tokens live in ../booker-system.css. */
:root {
  --admin-canvas: #f7f3ed;
  --admin-surface: var(--booker-white);
  --admin-surface-warm: #fffaf2;
  --admin-ink: var(--booker-plum);
  --admin-ink-muted: var(--booker-muted);
  --admin-line: #ded7de;
  --admin-line-strong: #b9b0bb;
  --admin-primary: var(--booker-plum);
  --admin-accent: var(--booker-coral);
  --admin-positive-bg: #d8f0e7;
  --admin-positive-ink: #155642;
  --admin-warning-bg: #fff0be;
  --admin-warning-ink: #664600;
  --admin-danger-bg: #fde4df;
  --admin-danger-ink: #8f2d20;
  --admin-info-bg: #e8e1f0;
  --admin-info-ink: #49375e;
  --admin-sidebar: 244px;
  --admin-header: 72px;
}

* { box-sizing: border-box; }
html { background: var(--admin-canvas); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--admin-canvas);
  color: var(--admin-ink);
  font-family: var(--font-brand);
  font-size: 14px;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--booker-coral); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Prototype navigation */
.concept-strip {
  position: relative;
  z-index: 20;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 7px 20px;
  background: var(--booker-marigold);
  border-bottom: 1px solid rgb(42 35 56 / 18%);
  font-size: 11px;
  font-weight: 700;
}
.concept-strip strong { font-weight: 800; }
.concept-strip nav { display: flex; gap: 4px; }
.concept-strip a { padding: 3px 9px; border-radius: 99px; text-decoration: none; }
.concept-strip a:hover, .concept-strip a[aria-current="page"] { background: rgb(255 255 255 / 55%); }

/* Shared application shell */
.app-header {
  height: var(--admin-header);
  display: grid;
  grid-template-columns: var(--admin-sidebar) 1fr auto;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--admin-line);
  background: rgb(255 250 242 / 95%);
  backdrop-filter: blur(14px);
}
.brand-slot { height: 100%; display: flex; align-items: center; padding: 0 28px; border-right: 1px solid var(--admin-line); }
.brand-slot img { display: block; width: 138px; height: auto; }
.company-switcher {
  width: max-content;
  max-width: 360px;
  margin-left: 26px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.company-switcher:hover { border-color: var(--admin-line); background: var(--admin-surface); }
.company-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--booker-mint); font-weight: 800; }
.company-switcher span { display: grid; min-width: 0; }
.company-switcher strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.company-switcher small { color: var(--admin-ink-muted); font-size: 11px; }
.chevron { margin-left: 8px; color: var(--admin-ink-muted); }
.account-menu { display: flex; align-items: center; gap: 12px; padding-right: 28px; }
.account-copy { display: grid; text-align: right; }
.account-copy strong { font-size: 12px; }
.account-copy small { color: var(--admin-ink-muted); font-size: 11px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--booker-plum); color: var(--booker-cream); font-size: 12px; font-weight: 800; }

.app-shell { min-height: calc(100vh - var(--admin-header) - 36px); display: grid; grid-template-columns: var(--admin-sidebar) minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: var(--admin-header);
  height: calc(100vh - var(--admin-header));
  display: flex;
  flex-direction: column;
  padding: 24px 16px 20px;
  border-right: 1px solid var(--admin-line);
  background: var(--admin-surface-warm);
}
.sidebar-label { margin: 0 12px 9px; color: var(--admin-ink-muted); font-size: 10px; font-weight: 750; }
.side-nav { display: grid; gap: 3px; }
.side-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--admin-ink-muted);
  font-weight: 650;
  text-decoration: none;
}
.side-nav a:hover { background: var(--admin-surface); color: var(--admin-ink); }
.side-nav a[aria-current="page"] { background: var(--booker-plum); color: var(--booker-cream); box-shadow: 0 8px 20px rgb(42 35 56 / 12%); }
.nav-icon { width: 19px; height: 19px; display: inline-grid; place-items: center; flex: 0 0 19px; font-size: 15px; line-height: 1; }
.sidebar-bottom { margin-top: auto; padding: 16px 12px 0; border-top: 1px solid var(--admin-line); color: var(--admin-ink-muted); font-size: 11px; }
.sidebar-bottom strong { display: block; margin-bottom: 4px; color: var(--admin-ink); font-size: 12px; }
.main { min-width: 0; padding: 34px clamp(24px, 4vw, 56px) 64px; }
.main-inner { width: min(100%, 1240px); margin-inline: auto; }
.breadcrumbs { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: var(--admin-ink-muted); font-size: 11px; }
.breadcrumbs a { text-decoration: none; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-header h1 { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.08; letter-spacing: -.045em; }
.page-header p { max-width: 650px; margin: 9px 0 0; color: var(--admin-ink-muted); font-size: 14px; }
.header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* Buttons and utility controls */
.admin-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--admin-primary);
  color: var(--booker-cream);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms, box-shadow 120ms, background 120ms;
}
.admin-button:hover { box-shadow: 0 6px 18px rgb(42 35 56 / 16%); }
.admin-button:active { transform: translateY(1px); }
.admin-button--accent { background: var(--admin-accent); color: var(--admin-ink); }
.admin-button--secondary { border-color: var(--admin-line-strong); background: var(--admin-surface); color: var(--admin-ink); }
.admin-button--quiet { border-color: transparent; background: transparent; color: var(--admin-ink); }
.admin-button--danger { background: var(--admin-danger-ink); color: white; }
.admin-button--small { min-height: 34px; padding: 7px 11px; font-size: 12px; }
.admin-button:disabled { cursor: not-allowed; box-shadow: none; opacity: .45; }
.icon-button { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--admin-line); border-radius: 9px; background: var(--admin-surface); cursor: pointer; }
.link-button { padding: 0; border: 0; background: transparent; color: var(--admin-ink); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Surfaces and layout primitives */
.panel { border: 1px solid var(--admin-line); border-radius: 16px; background: var(--admin-surface); }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--admin-line); }
.panel-header h2, .panel-header h3 { margin: 0; font-size: 16px; line-height: 1.3; letter-spacing: -.02em; }
.panel-header p { margin: 5px 0 0; color: var(--admin-ink-muted); font-size: 12px; }
.panel-body { padding: 22px; }
.section-stack { display: grid; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.split-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .8fr); gap: 20px; align-items: start; }

.metric-card { min-height: 128px; padding: 20px; border: 1px solid var(--admin-line); border-radius: 15px; background: var(--admin-surface); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--admin-ink-muted); font-size: 12px; font-weight: 650; }
.metric-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--admin-info-bg); color: var(--admin-info-ink); }
.metric-value { margin-top: 16px; font-size: 28px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.metric-note { margin-top: 7px; color: var(--admin-ink-muted); font-size: 11px; }

.hero-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.35fr .65fr; padding: 28px 30px; border-radius: 20px; background: var(--booker-plum); color: var(--booker-cream); }
.hero-panel::after { content: ''; position: absolute; width: 190px; height: 190px; right: -45px; top: -68px; border-radius: 45% 55% 58% 42%; background: var(--booker-coral); transform: rotate(18deg); }
.hero-panel::before { content: ''; position: absolute; width: 120px; height: 120px; right: 90px; bottom: -78px; border-radius: 52% 48% 42% 58%; background: var(--booker-marigold); transform: rotate(-12deg); }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h2 { max-width: 570px; margin: 0; font-size: clamp(22px, 2.5vw, 31px); letter-spacing: -.04em; line-height: 1.12; }
.hero-copy p { max-width: 610px; margin: 10px 0 20px; color: rgb(255 247 234 / 72%); }
.hero-copy .admin-button { background: var(--booker-coral); color: var(--booker-plum); }
.hero-progress { position: relative; z-index: 1; align-self: center; justify-self: end; min-width: 150px; text-align: right; }
.hero-progress strong { display: block; font-size: 42px; line-height: 1; letter-spacing: -.06em; }
.hero-progress span { display: block; margin-top: 6px; color: rgb(255 247 234 / 70%); font-size: 11px; }
.progress-track { height: 6px; margin-top: 15px; overflow: hidden; border-radius: 99px; background: rgb(255 255 255 / 18%); }
.progress-track i { display: block; width: 60%; height: 100%; border-radius: inherit; background: var(--booker-mint); }

/* Forms */
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .field-label { font-size: 12px; font-weight: 750; }
.field-hint { margin: -2px 0 0; color: var(--admin-ink-muted); font-size: 11px; }
.control {
  width: 100%;
  min-height: 42px;
  height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--admin-line-strong);
  border-radius: 9px;
  background: var(--admin-surface);
  color: var(--admin-ink);
}
select.control {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  background-color: var(--admin-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4.5 6.25 3.5 3.5 3.5-3.5' stroke='%232a2338' 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: 16px;
}
select.control::-ms-expand { display: none; }
input[type="date"].control,
input[type="time"].control { color-scheme: light; }
input[type="date"].control::-webkit-calendar-picker-indicator,
input[type="time"].control::-webkit-calendar-picker-indicator { opacity: .7; cursor: pointer; }
.control:hover { border-color: var(--admin-ink-muted); }
.control:focus { border-color: var(--admin-ink); outline: 3px solid rgb(255 107 74 / 22%); }
.control[aria-invalid="true"] { border-color: var(--admin-danger-ink); box-shadow: 0 0 0 3px var(--admin-danger-bg); }
.control::placeholder { color: #948c99; }
textarea.control { min-height: 96px; height: auto; resize: vertical; }
.field-error { color: var(--admin-danger-ink); font-size: 11px; font-weight: 650; }
.check-row { display: flex; align-items: flex-start; gap: 10px; }
.check-row input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--booker-plum); }
.check-row label { font-size: 12px; }
.toggle { width: 40px; height: 23px; display: inline-flex; align-items: center; padding: 3px; border: 0; border-radius: 99px; background: var(--admin-line-strong); cursor: pointer; }
.toggle::after { content: ''; width: 17px; height: 17px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgb(42 35 56 / 25%); }
.toggle[aria-checked="true"] { justify-content: flex-end; background: var(--booker-mint); }
.form-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 20px; margin-top: 22px; border-top: 1px solid var(--admin-line); }

.control-group { display: flex; width: 100%; }
.control-group .control { position: relative; border-radius: 0; }
.control-group .control:first-child { border-radius: 9px 0 0 9px; }
.control-group .control:last-child { border-radius: 0 9px 9px 0; }
.control-group .control + .control { margin-left: -1px; }
.control-group .unit-control { width: 132px; flex: 0 0 132px; }
.control-group .country-control { width: 106px; flex: 0 0 106px; }
.input-shell { position: relative; }
.input-shell .control { padding-right: 76px; }
.input-action { position: absolute; right: 6px; top: 6px; min-width: 58px; height: 30px; border: 0; border-radius: 7px; background: var(--admin-surface-warm); color: var(--admin-ink); font-size: 11px; font-weight: 750; cursor: pointer; }
.password-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 3px; }
.password-meter i { height: 4px; border-radius: 99px; background: var(--admin-line); }
.password-meter i.filled { background: var(--booker-mint); }
.requirement-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 12px; margin-top: 6px; color: var(--admin-ink-muted); font-size: 10px; }
.requirement-list span::before { content: '○'; margin-right: 5px; }
.requirement-list .met { color: var(--admin-positive-ink); }
.requirement-list .met::before { content: '✓'; font-weight: 800; }
.time-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 9px; align-items: center; }
.time-range > span { color: var(--admin-ink-muted); font-size: 11px; }
.picker-doc-grid { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(320px, 1.1fr); gap: 28px; align-items: start; }
.picker-doc-stage { position: relative; min-height: 455px; }
.picker-doc-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 9px; align-items: center; }
.picker-doc-range > span { color: var(--admin-ink-muted); font-size: 11px; }
.picker-doc-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--admin-surface); color: var(--admin-ink); text-align: left; }
.picker-doc-popover { position: absolute; top: 72px; right: 0; width: 272px; display: grid; gap: 13px; padding: 14px; border: 1px solid var(--admin-line); border-radius: 12px; background: var(--admin-surface); box-shadow: var(--shadow-floating); }
.picker-doc-section { display: grid; gap: 7px; }
.picker-doc-section > strong { color: var(--admin-ink-muted); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.picker-doc-hours, .picker-doc-minutes, .picker-doc-periods { display: grid; gap: 6px; }
.picker-doc-hours { grid-template-columns: repeat(6, 1fr); }
.picker-doc-minutes { grid-template-columns: repeat(4, 1fr); }
.picker-doc-periods { grid-template-columns: repeat(2, 1fr); }
.picker-doc-section button { min-height: 34px; padding: 5px; border: 1px solid var(--admin-line); border-radius: 8px; background: var(--admin-surface); color: var(--admin-ink); font: inherit; font-size: 11px; font-weight: 700; }
.picker-doc-wide { width: 100%; min-height: 36px; }
.picker-doc-wide.is-selected { border-color: var(--booker-plum); box-shadow: inset 0 0 0 1px var(--booker-plum); }
.picker-doc-guidance h3 { margin: 0 0 10px; font-size: 17px; }
.picker-doc-guidance ul { display: grid; gap: 9px; margin: 0 0 18px; padding-left: 20px; color: var(--admin-ink-muted); font-size: 12px; }
.picker-doc-guidance code { padding: 1px 4px; border-radius: 4px; background: var(--admin-surface-warm); color: var(--admin-ink); }
.chip-group { display: flex; flex-wrap: wrap; gap: 7px; }
.choice-chip { position: relative; }
.choice-chip input { position: absolute; opacity: 0; pointer-events: none; }
.choice-chip span { min-width: 38px; height: 34px; display: grid; place-items: center; padding: 0 9px; border: 1px solid var(--admin-line-strong); border-radius: 9px; background: var(--admin-surface); font-size: 11px; font-weight: 700; cursor: pointer; }
.choice-chip input:checked + span { border-color: var(--booker-plum); background: var(--booker-plum); color: var(--booker-cream); }
.choice-chip input:focus-visible + span { outline: 3px solid rgb(255 107 74 / 28%); outline-offset: 2px; }
.secret-field { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 7px 7px 7px 11px; border: 1px solid var(--admin-line-strong); border-radius: 9px; background: var(--admin-surface); }
.secret-field code { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; color: var(--admin-ink); font: 600 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.one-time-secret { padding: 14px; border: 1px solid #a6d1c2; border-radius: 11px; background: var(--admin-positive-bg); }
.one-time-secret > strong { display: block; margin-bottom: 9px; color: var(--admin-positive-ink); font-size: 11px; }

/* Optional and future-ready controls */
.radio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.radio-card { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; padding: 13px; border: 1px solid var(--admin-line-strong); border-radius: 11px; background: var(--admin-surface); cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-dot { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid var(--admin-line-strong); border-radius: 50%; }
.radio-dot::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: transparent; }
.radio-card:has(input:checked) { border-color: var(--booker-plum); box-shadow: inset 0 0 0 1px var(--booker-plum); }
.radio-card input:checked + .radio-dot { border-color: var(--booker-plum); }
.radio-card input:checked + .radio-dot::after { background: var(--booker-plum); }
.radio-card:has(input:focus-visible) { outline: 3px solid rgb(255 107 74 / 28%); outline-offset: 2px; }
.radio-copy strong { display: block; font-size: 11px; }
.radio-copy span { display: block; margin-top: 3px; color: var(--admin-ink-muted); font-size: 10px; }

.date-composition { position: relative; min-height: 340px; }
.calendar-popover { position: absolute; left: 0; top: 54px; z-index: 2; width: 296px; padding: 15px; border: 1px solid var(--admin-line); border-radius: 14px; background: var(--admin-surface); box-shadow: var(--shadow-floating); }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.calendar-head strong { font-size: 12px; }
.calendar-head button { width: 29px; height: 29px; border: 1px solid var(--admin-line); border-radius: 8px; background: var(--admin-surface); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.calendar-grid span { height: 31px; display: grid; place-items: center; border-radius: 8px; font-size: 10px; }
.calendar-grid .day-name { height: 22px; color: var(--admin-ink-muted); font-weight: 750; }
.calendar-grid .outside { color: #aaa2ae; }
.calendar-grid .selected { background: var(--booker-plum); color: var(--booker-cream); font-weight: 750; }
.calendar-grid .today { box-shadow: inset 0 0 0 1px var(--booker-coral); }

.upload-zone { display: grid; justify-items: center; padding: 28px 20px; border: 1.5px dashed var(--admin-line-strong); border-radius: 13px; background: var(--admin-surface); text-align: center; }
.upload-zone .upload-mark { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 11px; background: var(--booker-cream); font-size: 18px; }
.upload-zone strong { font-size: 12px; }
.upload-zone p { margin: 4px 0 13px; color: var(--admin-ink-muted); font-size: 10px; }
.file-row { display: flex; align-items: center; gap: 10px; margin-top: 9px; padding: 10px 11px; border: 1px solid var(--admin-line); border-radius: 10px; background: var(--admin-surface); }
.file-row > span:first-child { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: var(--admin-info-bg); font-size: 10px; font-weight: 800; }
.file-copy { min-width: 0; flex: 1; }
.file-copy strong, .file-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-copy strong { font-size: 11px; }
.file-copy small { color: var(--admin-ink-muted); font-size: 9px; }

.combobox-stage { position: relative; min-height: 230px; }
.combobox-input { position: relative; }
.combobox-input::before { content: '⌕'; position: absolute; left: 11px; top: 8px; z-index: 1; color: var(--admin-ink-muted); font-size: 18px; }
.combobox-input .control { padding-left: 34px; padding-right: 34px; }
.combobox-input::after { content: '⌄'; position: absolute; right: 12px; top: 10px; color: var(--admin-ink-muted); }
.combobox-menu { position: absolute; inset: 49px 0 auto; z-index: 2; overflow: hidden; border: 1px solid var(--admin-line); border-radius: 11px; background: var(--admin-surface); box-shadow: var(--shadow-card); }
.combobox-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--admin-line); font-size: 11px; }
.combobox-option:last-child { border-bottom: 0; }
.combobox-option.active { background: var(--booker-cream); }
.combobox-option span { color: var(--admin-ink-muted); font-size: 9px; }

.rich-editor { overflow: hidden; border: 1px solid var(--admin-line-strong); border-radius: 11px; background: var(--admin-surface); }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 3px; padding: 7px; border-bottom: 1px solid var(--admin-line); background: #fcfaf7; }
.rich-toolbar button, .rich-toolbar select { height: 30px; min-width: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--admin-ink); font-size: 11px; }
.rich-toolbar button:hover { border-color: var(--admin-line); background: var(--admin-surface); }
.rich-toolbar select { min-width: 96px; -webkit-appearance: none; appearance: none; }
.rich-divider { width: 1px; height: 20px; align-self: center; margin: 0 3px; background: var(--admin-line); }
.rich-content { min-height: 126px; padding: 14px; }
.rich-content p { margin: 0 0 9px; font-size: 12px; }
.rich-content ul { margin: 0; padding-left: 20px; color: var(--admin-ink-muted); font-size: 11px; }
.rich-footer { display: flex; justify-content: space-between; padding: 7px 11px; border-top: 1px solid var(--admin-line); color: var(--admin-ink-muted); font-size: 9px; }

/* Status, feedback and data */
.badge { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 4px 8px; border-radius: 99px; background: var(--admin-info-bg); color: var(--admin-info-ink); font-size: 10px; font-weight: 750; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; }
.badge--positive { background: var(--admin-positive-bg); color: var(--admin-positive-ink); }
.badge--warning { background: var(--admin-warning-bg); color: var(--admin-warning-ink); }
.badge--danger { background: var(--admin-danger-bg); color: var(--admin-danger-ink); }
.badge--neutral { background: #efebef; color: var(--admin-ink-muted); }
.role-badge { display: inline-flex; padding: 3px 7px; border-radius: 6px; background: var(--booker-cream); border: 1px solid var(--admin-line); font-size: 10px; font-weight: 750; }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid #b9aeda; border-radius: 11px; background: #f2eef8; color: #46365b; }
.alert--success { border-color: #a6d1c2; background: var(--admin-positive-bg); color: var(--admin-positive-ink); }
.alert--warning { border-color: #ddc366; background: var(--admin-warning-bg); color: var(--admin-warning-ink); }
.alert--danger { border-color: #dda39a; background: var(--admin-danger-bg); color: var(--admin-danger-ink); }
.alert-mark { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 22px; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; font-weight: 800; }
.alert strong { display: block; font-size: 12px; }
.alert p { margin: 3px 0 0; font-size: 11px; }


.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--admin-line); }
.toolbar-group { display: flex; align-items: center; gap: 9px; }
.search-control { position: relative; min-width: 230px; }
.search-control::before { content: '⌕'; position: absolute; left: 11px; top: 8px; color: var(--admin-ink-muted); font-size: 18px; }
.search-control .control { min-height: 36px; padding-left: 34px; font-size: 12px; }
.filter-button { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--admin-line); border-radius: 8px; background: var(--admin-surface); font-size: 12px; font-weight: 650; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 11px 16px; border-bottom: 1px solid var(--admin-line); background: #fcfaf7; color: var(--admin-ink-muted); font-size: 10px; font-weight: 750; white-space: nowrap; }
.data-table td { padding: 15px 16px; border-bottom: 1px solid var(--admin-line); vertical-align: middle; font-size: 12px; }
.data-table tbody tr:hover { background: #fffcf7; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.cell-title { display: block; font-weight: 750; }
.cell-meta { display: block; margin-top: 3px; color: var(--admin-ink-muted); font-size: 10px; }
.table-actions { display: flex; justify-content: flex-end; gap: 5px; }
.table-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 16px; border-top: 1px solid var(--admin-line); color: var(--admin-ink-muted); font-size: 11px; }
.pagination { display: flex; gap: 5px; }
.pagination button { min-width: 31px; height: 31px; border: 1px solid var(--admin-line); border-radius: 8px; background: var(--admin-surface); }
.pagination button[aria-current="page"] { background: var(--booker-plum); color: var(--booker-cream); border-color: var(--booker-plum); }

.checklist { display: grid; }
.checklist-row { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--admin-line); }
.checklist-row:first-child { padding-top: 0; }
.checklist-row:last-child { padding-bottom: 0; border-bottom: 0; }
.checkmark { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--admin-line-strong); border-radius: 50%; color: var(--admin-ink-muted); font-size: 11px; }
.checkmark.done { border: 0; background: var(--booker-mint); color: var(--booker-plum); font-weight: 800; }
.checklist-row strong { display: block; font-size: 12px; }
.checklist-row p { margin: 2px 0 0; color: var(--admin-ink-muted); font-size: 10px; }
.timeline { display: grid; }
.timeline-item { position: relative; display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; min-height: 62px; }
.timeline-item::before { content: ''; position: absolute; left: 13px; top: 27px; bottom: 0; width: 1px; background: var(--admin-line); }
.timeline-item:last-child::before { display: none; }
.timeline-mark { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--booker-cream); font-size: 11px; }
.timeline-copy strong { display: block; font-size: 12px; }
.timeline-copy p { margin: 3px 0 0; color: var(--admin-ink-muted); font-size: 10px; }
.timeline-time { color: var(--admin-ink-muted); font-size: 10px; white-space: nowrap; }

/* Component gallery */
.gallery-body { background: var(--admin-canvas); }
.gallery-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; padding: 48px clamp(24px, 6vw, 84px) 34px; border-bottom: 1px solid var(--admin-line); background: var(--admin-surface-warm); }
.gallery-header h1 { max-width: 680px; margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: .98; letter-spacing: -.06em; }
.gallery-header h1 span { color: var(--booker-coral); }
.gallery-header p { max-width: 520px; margin: 18px 0 0; color: var(--admin-ink-muted); font-size: 15px; }
.gallery-header img { width: 150px; }
.gallery-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); width: min(1480px, 100%); margin-inline: auto; }
.gallery-nav { position: sticky; top: 20px; height: max-content; padding: 34px 24px; }
.gallery-nav nav { display: grid; gap: 4px; }
.gallery-nav a { padding: 8px 10px; border-radius: 8px; color: var(--admin-ink-muted); font-size: 12px; font-weight: 650; text-decoration: none; }
.gallery-nav a:hover { background: var(--admin-surface); color: var(--admin-ink); }
.gallery-main { min-width: 0; padding: 34px clamp(24px, 4vw, 64px) 80px; border-left: 1px solid var(--admin-line); background: var(--admin-surface); }
.gallery-section { padding: 16px 0 50px; border-bottom: 1px solid var(--admin-line); scroll-margin-top: 24px; }
.gallery-section:last-child { border-bottom: 0; }
.gallery-section > h2 { margin: 0 0 7px; font-size: 25px; letter-spacing: -.04em; }
.gallery-section > p { max-width: 720px; margin: 0 0 24px; color: var(--admin-ink-muted); }
.specimen { padding: 22px; border: 1px solid var(--admin-line); border-radius: 14px; background: var(--admin-canvas); }
.specimen + .specimen { margin-top: 14px; }
.specimen-label { display: block; margin-bottom: 15px; color: var(--admin-ink-muted); font-size: 10px; font-weight: 750; }
.specimen-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.specimen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.type-sample { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 17px 0; border-bottom: 1px solid var(--admin-line); }
.type-sample:last-child { border-bottom: 0; }
.type-sample small { color: var(--admin-ink-muted); }
.type-sample p { margin: 0; }
.type-page { font-size: 38px; font-weight: 800; letter-spacing: -.05em; line-height: 1.08; }
.type-section { font-size: 22px; font-weight: 750; letter-spacing: -.035em; }
.type-card { font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.type-body { font-size: 14px; }
.type-meta { font-size: 11px; color: var(--admin-ink-muted); }
.empty-state { display: grid; justify-items: center; padding: 42px 20px; text-align: center; }
.empty-illustration { position: relative; width: 82px; height: 68px; margin-bottom: 16px; }
.empty-illustration::before, .empty-illustration::after { content: ''; position: absolute; border-radius: 40% 60% 55% 45%; }
.empty-illustration::before { width: 62px; height: 54px; left: 0; top: 0; background: var(--booker-marigold); transform: rotate(-12deg); }
.empty-illustration::after { width: 48px; height: 42px; right: 0; bottom: 0; background: var(--booker-coral); transform: rotate(14deg); }
.empty-state h3 { margin: 0; font-size: 16px; }
.empty-state p { max-width: 380px; margin: 7px 0 17px; color: var(--admin-ink-muted); font-size: 12px; }
.skeleton { border-radius: 7px; background: linear-gradient(90deg, #eee9e4 25%, #f8f5f1 50%, #eee9e4 75%); background-size: 200% 100%; animation: skeleton 1.6s infinite linear; }
.skeleton-line { height: 11px; }
.skeleton-card { height: 96px; }
@keyframes skeleton { to { background-position: -200% 0; } }
.modal-stage { min-height: 420px; display: grid; place-items: center; padding: 30px; border-radius: 14px; background: rgb(42 35 56 / 44%); }
.modal { width: min(460px, 100%); overflow: hidden; border: 1px solid var(--admin-line); border-radius: 18px; background: var(--admin-surface); box-shadow: var(--shadow-floating); }
.modal-head { display: flex; justify-content: space-between; gap: 16px; padding: 21px 22px 16px; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-head p { margin: 6px 0 0; color: var(--admin-ink-muted); font-size: 12px; }
.modal-body { padding: 0 22px 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 22px; border-top: 1px solid var(--admin-line); background: #fcfaf7; }

/* Channel page detail rail */
.drawer-panel { position: sticky; top: 92px; }
.drawer-title { display: flex; justify-content: space-between; gap: 15px; padding: 20px 20px 16px; border-bottom: 1px solid var(--admin-line); }
.drawer-title h2 { margin: 0; font-size: 17px; }
.drawer-title p { margin: 4px 0 0; color: var(--admin-ink-muted); font-size: 11px; }
.drawer-body { padding: 20px; }
.drawer-body .field-grid { grid-template-columns: 1fr; }
.context-card { padding: 14px; border-radius: 11px; background: var(--admin-surface-warm); border: 1px solid var(--admin-line); }
.context-card strong { display: block; font-size: 11px; }
.context-card p { margin: 4px 0 0; color: var(--admin-ink-muted); font-size: 10px; }

@media (max-width: 1050px) {
  :root { --admin-sidebar: 208px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-grid { grid-template-columns: 1fr; }
  .drawer-panel { position: static; }
}
@media (max-width: 780px) {
  .concept-strip { justify-content: space-between; }
  .concept-strip > span { display: none; }
  .app-header { grid-template-columns: 1fr auto; }
  .brand-slot { padding: 0 18px; border-right: 0; }
  .brand-slot img { width: 124px; }
  .company-switcher { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; height: 52px; margin: 0; padding-inline: 18px; border-width: 1px 0 0; border-radius: 0; background: var(--admin-surface); }
  .account-menu { padding-right: 18px; }
  .account-copy { display: none; }
  .app-header { height: 124px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 9px 14px; border-right: 0; border-bottom: 1px solid var(--admin-line); overflow-x: auto; }
  .sidebar-label, .sidebar-bottom { display: none; }
  .side-nav { display: flex; width: max-content; }
  .side-nav a { min-height: 38px; }
  .nav-icon { display: none; }
  .main { padding: 26px 18px 52px; }
  .page-header { align-items: stretch; flex-direction: column; }
  .header-actions { justify-content: flex-start; }
  .hero-panel { grid-template-columns: 1fr; gap: 24px; }
  .hero-progress { justify-self: start; text-align: left; }
  .grid-3, .grid-2, .field-grid { grid-template-columns: 1fr; }
  .gallery-header { align-items: flex-start; flex-direction: column-reverse; padding-top: 34px; }
  .gallery-layout { grid-template-columns: 1fr; }
  .gallery-nav { position: static; overflow-x: auto; padding: 12px 18px; border-bottom: 1px solid var(--admin-line); }
  .gallery-nav nav { display: flex; width: max-content; }
  .gallery-main { border-left: 0; }
  .specimen-grid { grid-template-columns: 1fr; }
  .picker-doc-grid { grid-template-columns: 1fr; }
  .picker-doc-stage { min-height: 455px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-group { flex-wrap: wrap; }
  .search-control { flex: 1; min-width: 190px; }
}
@media (max-width: 520px) {
  .concept-strip { overflow-x: auto; }
  .concept-strip nav { width: max-content; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-panel { padding: 24px 21px; }
  .panel-header, .panel-body { padding-inline: 16px; }
  .type-sample { grid-template-columns: 1fr; gap: 6px; }
  .gallery-main { padding-inline: 16px; }
  .specimen { padding: 16px; }
  .account-menu { padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Toast documentation mirrors the current admin toast. The frame stands in for the viewport. */
.toast-demo-stage { position: relative; min-height: 180px; margin-bottom: 16px; overflow: hidden; border: 1px solid var(--admin-line); border-radius: 12px; background: var(--admin-canvas); }
.toast-demo-caption { position: absolute; bottom: 20px; width: 100%; text-align: center; font-size: 12px; color: var(--admin-ink-muted); }
.guide-toast-region { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); }
.guide-toast { display: flex; align-items: center; gap: 9px; padding: 11px 12px 11px 16px; border: 1px solid var(--admin-line); border-radius: 12px; background: var(--booker-plum); color: var(--booker-cream); box-shadow: 0 6px 24px rgb(42 35 56 / 18%); font-size: 13px; font-weight: 650; }
.guide-toast > svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--booker-mint); }
.guide-toast button { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; padding: 0; border: 0; border-radius: 5px; background: transparent; color: inherit; cursor: pointer; }
.guide-toast button:hover { background: rgb(255 247 234 / 12%); }
.guide-toast button svg { width: 14px; height: 14px; }
.guide-toast-enter { animation: guide-toast-in 380ms both; }
.guide-toast-leaving { animation: guide-toast-out 250ms ease-in both; }
@keyframes guide-toast-in { 0% { opacity: 0; transform: translateY(calc(-100% - 20px)); } 65% { opacity: 1; transform: translateY(4px); } 85% { transform: translateY(-1px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes guide-toast-out { to { opacity: 0; transform: translateY(calc(-100% - 20px)); } }
@media (prefers-reduced-motion: reduce) { .guide-toast-enter { animation: none; } .guide-toast-leaving { animation: none; opacity: 0; } }
