:root {
  --ink: #17202a;
  --muted: #66707a;
  --line: #e6e1d8;
  --bg: #f3f0ea;
  --paper: #fffcf8;
  --navy: #0c2238;
  --accent: #9a7b4f;
  --ok: #176848;
  --ok-bg: #e7f3ec;
  --warn: #8a5a18;
  --warn-bg: #f6edd9;
  --drop: #8a3a3a;
  --drop-bg: #f8e6e6;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, .mark, .event-title { font-family: Fraunces, Georgia, serif; font-weight: 520; }

.appbar {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  background: var(--navy);
  color: #fff;
}
.mark {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  letter-spacing: 0.08em;
  padding: 0;
}
.topbar-tag { color: rgba(255,255,255,.66); font-size: 13px; }
.sidebar-toggle {
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 23px;
  line-height: 1;
}
.workspace-layout { min-height: calc(100vh - 60px); display: grid; grid-template-columns: 232px minmax(0,1fr); }
.workspace-layout.sidebar-collapsed { grid-template-columns: 74px minmax(0,1fr); }
.workspace-layout.login-state { display: block; }
.sidebar {
  position: sticky;
  top: 0;
  height: calc(100vh - 60px);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  overflow-y: auto;
  padding: 22px 13px 16px;
  background: #f7f4ef;
  border-right: 1px solid var(--line);
}
.sidebar-links { display: grid; gap: 5px; align-content: start; }
.sidebar-caption { margin: 9px 10px 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-link {
  width: 100%; min-height: 42px; display: flex; align-items: center; gap: 12px;
  padding: 8px 11px; border: 0; border-radius: 11px; background: transparent;
  color: var(--muted); text-align: left; font-size: 13px; font-weight: 500;
}
.sidebar-link:hover { background: #eee8de; color: var(--navy); }
.sidebar-link.on { background: #efe8dc; color: var(--navy); box-shadow: inset 3px 0 var(--accent); font-weight: 600; }
.sidebar-icon { width: 24px; height: 24px; flex: 0 0 24px; display: inline-grid; place-items: center; color: currentColor; }
.sidebar-icon svg { width: 19px; height: 19px; display: block; }
.sidebar-sub-link { min-height: 38px; padding-left: 9px; font-size: 12px; }
.sidebar-event-name { overflow: hidden; padding: 0 10px 8px; color: var(--navy); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-divider { margin: 13px 8px 3px; border-top: 1px solid var(--line); }
.sidebar-foot { min-height: 46px; display: block; border-top: 1px solid var(--line); padding: 10px 0 0; }
.sidebar-switch-label { margin: 5px 10px 0; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.sidebar-event-switch { width: calc(100% - 16px); margin: 0 8px 7px; padding: 8px 9px; font-size: 12px; background: var(--paper); color: var(--navy); }
.sidebar-foot-icon { width: 18px; height: 18px; color: var(--accent); }
.sidebar-foot-icon svg { width: 16px; height: 16px; display: block; }
#app { min-width: 0; width: 100%; max-width: 1500px; margin: 0 auto; padding: 34px 32px 72px; }
.login-state #app { max-width: 1380px; padding: 36px 28px 72px; }
.sidebar-collapsed .sidebar { padding-right: 9px; padding-left: 9px; }
.sidebar-collapsed .sidebar-caption, .sidebar-collapsed .sidebar-label, .sidebar-collapsed .sidebar-event-name, .sidebar-collapsed .sidebar-divider { display: none; }
.sidebar-collapsed .sidebar-link { justify-content: center; padding-right: 5px; padding-left: 5px; }
.sidebar-collapsed .sidebar-icon { width: 28px; height: 28px; flex-basis: 28px; }
.sidebar-collapsed .sidebar-foot { justify-content: center; padding: 0; }
.sidebar-collapsed .sidebar-switch-label { display: none; }
.sidebar-collapsed .sidebar-event-switch { width: 48px; height: 36px; margin: 2px 0 6px; padding: 0 2px; font-size: 0; }
.eyebrow { margin: 0 0 6px; color: var(--accent); font-size: 11px; letter-spacing: .14em; font-weight: 600; }
.muted { color: var(--muted); }
.login-wrap { display: grid; min-height: calc(100vh - 160px); place-items: center; }
.login-card { width: min(420px, 100%); display: grid; gap: 16px; padding: 32px; }
.login-card h1 { margin: 0; font-size: 40px; }
.login-card .note { margin: 0; }
.login-card .primary { margin-top: 4px; }
.notification-options { display: grid; gap: 7px; }
.notification-options label { flex-direction: row; align-items: center; font-size: 13px; }
.inline-actions { display: flex; gap: 18px; align-items: center; }
.danger-text { color: var(--drop); }
.management-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; margin-bottom: 18px; }
.management-grid .create { display: grid; gap: 12px; }
.management-grid .create h2 { margin-bottom: 0; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.dashboard-metrics div { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; padding: 18px 22px; display: grid; gap: 4px; }
.dashboard-metrics strong { color: var(--navy); font: 520 32px Fraunces, Georgia, serif; }
.dashboard-metrics span { color: var(--muted); font-size: 12px; }
.dashboard-section { margin: 32px 0; }
.dashboard-section .block-head { margin-bottom: 14px; }
.quick-actions, .queue-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.queue-filters .filter { border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); padding: 8px 15px; }
.queue-filters .filter.on { background: var(--navy); border-color: var(--navy); color: white; }
.quick-form { max-width: 720px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-form h3, .quick-form .actions, .quick-form .note { grid-column: 1 / -1; margin: 0; }
.pipeline-board { display: grid; grid-template-columns: repeat(6, minmax(170px,1fr)); gap: 12px; overflow-x: auto; }
.pipeline-column { background: #eae5dc; border-radius: 16px; padding: 12px; min-height: 160px; }
.pipeline-column h3 { margin: 2px 0 14px; font-size: 13px; color: var(--navy); }
.pipeline-card { display: grid; width: 100%; gap: 7px; background: var(--paper); text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.pipeline-card strong { font-weight: 600; }
.pipeline-card small { color: var(--muted); }
.table-scroll { overflow-x: auto; }
.beo-readiness { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 22px; margin-bottom: 16px; }
.beo-generate-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; margin-bottom: 18px; }
.beo-generate-card h2 { margin: 0 0 7px; font-size: 23px; }
.beo-generate-card .note { margin: 5px 0 0; }
.beo-generate-card button { flex: 0 0 auto; }
.beo-attempts { padding: 14px 22px; margin-bottom: 16px; }
.beo-attempts summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.beo-attempts .queue-item { font-size: 13px; }
.beo-attempts .queue-item > span { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.beo-attempts .queue-item small { overflow-wrap: anywhere; }
.beo-readiness-copy { min-width: 0; }
.beo-readiness-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.beo-readiness-status h2 { margin: 0; font-size: 22px; }
.beo-readiness .note { margin: 8px 0 0; font-size: 12px; }
.beo-missing { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.beo-missing span { color: var(--warn); font-size: 12px; font-weight: 600; }
.beo-missing span::before { content: "•"; padding-right: 5px; }
.beo-readiness-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex-shrink: 0; }
.beo-schedule-wrap { padding: 20px 22px 22px; margin-bottom: 16px; }
.beo-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.beo-card-head h2 { margin: 0; font-size: 24px; }
.beo-card-head span { color: var(--muted); font-size: 12px; }
.beo-schedule-empty { display: flex; justify-content: space-between; align-items: center; gap: 18px; background: var(--bg); border-radius: 10px; padding: 18px 20px; }
.beo-schedule-empty strong { display: block; font-size: 15px; }
.beo-schedule-empty p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.beo-schedule-empty button { flex-shrink: 0; }
.beo-schedule { min-width: 920px; table-layout: fixed; }
.beo-schedule .time-col { width: 9%; }
.beo-schedule .room-col { width: 18%; }
.beo-schedule .function-col { width: 18%; }
.beo-schedule .setup-col { width: 28%; }
.beo-schedule .count-col { width: 9%; }
.beo-schedule th, .beo-schedule td { padding: 11px 12px !important; overflow-wrap: anywhere; }
.beo-schedule tbody tr { cursor: default; }
.beo-schedule th:nth-child(1), .beo-schedule th:nth-child(2), .beo-schedule td:nth-child(1), .beo-schedule td:nth-child(2), .beo-schedule th:nth-child(6), .beo-schedule th:nth-child(7), .beo-schedule td:nth-child(6), .beo-schedule td:nth-child(7) { white-space: nowrap; }
.beo-block { margin-bottom: 0; padding: 20px 24px; }
.beo-block .block-head { align-items: center; margin: 0 0 10px; }
.beo-block .block-head h2 { margin: 0; font-size: 26px; }
.beo-items { display: grid; }
.beo-empty { margin: 0; padding: 8px 0 2px; color: var(--muted); font-size: 13px; }
.beo-item { border-top: 1px solid var(--line); padding: 15px 0 17px; }
.beo-item:last-child { padding-bottom: 0; }
.beo-item-top { display: flex; align-items: center; gap: 14px; }
.beo-item-title {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 8px 0 7px;
  font: 520 20px Fraunces, Georgia, serif;
}
.beo-item-title:focus { outline: 0; border-color: var(--accent); }
.beo-item-title::placeholder { color: #96918a; }
.beo-remove { display: grid; place-items: center; width: 35px; height: 35px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); }
.beo-remove:hover { border-color: var(--drop); color: var(--drop); background: var(--drop-bg); }
.beo-remove svg { width: 16px; height: 16px; }
.beo-item-content {
  display: block;
  width: 100%;
  margin-top: 12px;
  min-height: 86px;
  max-height: 480px;
  field-sizing: content;
  border-color: transparent;
  background: var(--bg);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}
.beo-item-content:focus { outline: 0; border-color: var(--accent); background: #fff; }
.beo-item-content::placeholder { color: #96918a; }
.beo-source { margin: -4px 0 12px; color: var(--accent); font-size: 11px; }
@media (max-width: 1000px) {
  .beo-schedule { min-width: 0; }
  .beo-schedule thead { display: none; }
  .beo-schedule, .beo-schedule tbody { display: block; }
  .beo-schedule tbody { display: grid; gap: 10px; }
  .beo-schedule tbody tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "start end gtd exp" "room room function function" "setup setup setup setup"; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; }
  .beo-schedule tbody td { display: grid; grid-template-columns: 1fr; gap: 4px; border: 0; padding: 8px 4px !important; }
  .beo-schedule tbody td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
  .beo-schedule tbody td:nth-child(1) { grid-area: start; }
  .beo-schedule tbody td:nth-child(2) { grid-area: end; }
  .beo-schedule tbody td:nth-child(3) { grid-area: room; }
  .beo-schedule tbody td:nth-child(4) { grid-area: function; }
  .beo-schedule tbody td:nth-child(5) { grid-area: setup; }
  .beo-schedule tbody td:nth-child(6) { grid-area: gtd; }
  .beo-schedule tbody td:nth-child(7) { grid-area: exp; }
}
@media (max-width: 760px) {
  .beo-readiness, .beo-schedule-empty, .beo-generate-card { align-items: flex-start; flex-direction: column; }
  .beo-readiness-actions { justify-content: flex-start; }
  .beo-block { padding: 18px; }
}
.timeline-list { min-width: 0; }
.timeline-list > .empty-line { margin: 0; padding: 22px 20px; }
.timeline-list > button, .timeline-row {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto auto;
  column-gap: 16px;
  row-gap: 4px;
  align-items: center;
}
.timeline-list > button:last-child, .timeline-row:last-child { border-bottom: 0; }
.timeline-list time, .timeline-row time { color: var(--accent); font-size: 13px; white-space: nowrap; }
.timeline-list strong, .timeline-row strong { min-width: 0; overflow-wrap: break-word; }
.timeline-list span, .timeline-row span { color: var(--muted); font-size: 13px; white-space: nowrap; justify-self: end; }
.timeline-row .textbtn { justify-self: end; white-space: nowrap; }
.queue-item { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding: 12px 0; align-items: center; }
.queue-item p { color: var(--muted); margin: 5px 0; }
.queue-item small { color: var(--accent); }
.stepper.compact { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; list-style: none; }
.stepper.compact button { border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding: 8px 14px; }
.stepper.compact button.on { background: var(--navy); color: white; }
.form-compact { display: grid; grid-template-columns: repeat(4,1fr) auto; gap: 12px; align-items: end; }
.form-compact .primary { white-space: nowrap; }
@media (max-width: 900px) {
  .dashboard-metrics { grid-template-columns: repeat(2,1fr); }
  .management-grid { grid-template-columns: 1fr; }
  .pipeline-board { grid-template-columns: repeat(6,180px); }
  .form-compact { grid-template-columns: 1fr 1fr; }
  .timeline-list > button, .timeline-row { grid-template-columns: 6.5rem minmax(0, 1fr) auto auto; }
  .sections { overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 600px) {
  #app { padding: 24px 16px 48px; }
  .appbar { padding: 0 16px; gap: 12px; }
  .dashboard-metrics { gap: 8px; }
  .dashboard-metrics div { padding: 14px; }
  .quick-form, .form-compact { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 32px; }
  .timeline-list > button, .timeline-row { grid-template-columns: minmax(0, 1fr) auto; }
  .timeline-list time, .timeline-row time { grid-column: 1 / -1; }
  .timeline-list span, .timeline-row span { justify-self: start; white-space: normal; }
}
@media (max-width: 760px) {
  .workspace-layout, .workspace-layout.sidebar-collapsed { grid-template-columns: 62px minmax(0,1fr); }
  .sidebar { padding: 18px 7px 12px; }
  .sidebar-caption, .sidebar-label, .sidebar-event-name, .sidebar-divider { display: none; }
  .sidebar-link, .sidebar-collapsed .sidebar-link { justify-content: center; padding-right: 3px; padding-left: 3px; }
  .sidebar-icon, .sidebar-collapsed .sidebar-icon { width: 28px; height: 28px; flex-basis: 28px; }
  .sidebar-foot { justify-content: center; padding: 0; }
  .sidebar-switch-label { display: none; }
  .sidebar-event-switch { width: 44px; height: 36px; margin: 2px 0 6px; padding: 0 2px; font-size: 0; }
}

.portfolio-toolbar, .calendar-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.portfolio-toolbar input { flex: 1 1 260px; min-width: 180px; background: var(--paper); }
.portfolio-toolbar select { min-width: 160px; background: var(--paper); }
.view-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.view-switch .filter { border: 0; border-radius: 999px; padding: 7px 14px; background: transparent; color: var(--muted); }
.view-switch .filter.on { background: var(--navy); color: #fff; }
.portfolio-pipeline { margin-top: 16px; }
.portfolio-table { min-width: 850px; }
.portfolio-table td { padding: 14px 16px; }
.portfolio-table th:nth-child(4), .portfolio-table td:nth-child(4) { min-width: 120px; white-space: nowrap; }
.portfolio-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.portfolio-table td select { max-width: 160px; padding: 7px 9px; font-size: 12px; }
.portfolio-table td:last-child { white-space: nowrap; }
.portfolio-table td:last-child button + button { margin-left: 12px; }
.portfolio-pages { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.portfolio-pages .ghost { padding: 6px 12px; }
.portfolio-pages .ghost:disabled { opacity: .4; cursor: default; }
.calendar-toolbar { justify-content: space-between; }
.calendar-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.calendar-nav .ghost { padding: 7px 12px; }
.calendar-nav strong { margin-left: 8px; color: var(--navy); font-weight: 600; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.calendar-weekday { padding: 12px; background: #eee8de; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.calendar-day { min-width: 0; min-height: 108px; display: flex; flex-direction: column; align-items: stretch; gap: 5px; padding: 9px; border: 0; background: var(--paper); text-align: left; }
.calendar-day:hover, .calendar-day.selected { background: #f6efe4; }
.calendar-day.selected { box-shadow: inset 0 0 0 2px var(--accent); }
.calendar-day.other-month { background: #f8f6f2; color: var(--muted); }
.calendar-date { font-size: 13px; font-weight: 700; }
.calendar-item, .calendar-conflict { display: block; overflow: hidden; padding: 4px 6px; border-radius: 5px; background: #e8edf0; color: var(--navy); font-size: 10px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.calendar-item.wedding-day { background: var(--warn-bg); color: var(--warn); }
.calendar-conflict { background: var(--drop-bg); color: var(--drop); }
.calendar-day small { color: var(--muted); font-size: 10px; }
.calendar-week .calendar-day { min-height: 160px; }
.calendar-agenda { margin-top: 16px; }
.calendar-agenda .queue-item:last-child { border-bottom: 0; }
@media (max-width: 900px) {
  .calendar-day { min-height: 74px; padding: 6px; }
  .calendar-weekday { padding: 8px 5px; }
  .calendar-item { display: none; }
  .calendar-day:has(.calendar-item)::after { content: 'Scheduled'; color: var(--accent); font-size: 9px; }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.page-head h1 { margin: 0; font-size: 40px; letter-spacing: -0.03em; color: var(--navy); }
.page-head p { margin: 6px 0 0; color: var(--muted); }

.primary, .ghost, .textbtn {
  border-radius: 999px;
  padding: 9px 16px;
  border: 1px solid transparent;
}
.primary { background: var(--navy); color: #fff; }
.ghost { background: transparent; border-color: var(--line); color: var(--navy); }
.textbtn { border: 0; background: transparent; color: var(--accent); padding: 0; font-weight: 600; }
.primary:disabled { opacity: .45; cursor: default; }

.sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.create {
  padding: 18px 20px 20px;
  margin-bottom: 16px;
}
.create h2 { margin: 0 0 14px; font-size: 22px; }
.form-row { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr auto; gap: 12px; align-items: end; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
input, select, textarea {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 500;
}
textarea { width: 100%; resize: vertical; min-height: 72px; }

table.list { width: 100%; border-collapse: collapse; }
table.list th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
table.list td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr { cursor: pointer; }
table.list tbody tr:hover { background: #faf7f2; }
.wedding-name { font-family: Fraunces, Georgia, serif; font-size: 18px; color: var(--navy); }
.stage-name { color: var(--accent); font-weight: 600; }

.back {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
}
.event-title { margin: 0; font-size: 44px; letter-spacing: -0.035em; line-height: 1.05; color: var(--navy); }
.event-meta { margin: 10px 0 0; color: var(--muted); }
.event-meta strong { color: var(--ink); font-weight: 600; }

.sections {
  display: flex;
  gap: 22px;
  margin: 28px 0 22px;
  border-bottom: 1px solid var(--line);
}
.section {
  border: 0;
  background: transparent;
  padding: 0 0 12px;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.section.on { color: var(--navy); border-bottom-color: var(--navy); }

.error { color: var(--drop); min-height: 0; margin: 0 0 12px; }
.error:empty { display: none; }
.failures { margin: 0 0 18px; padding: 12px 14px; background: #f8efe8; border: 1px solid #e2cfc0; }
.failures h2 { margin: 0 0 8px; font-size: 15px; }
.failures ul { margin: 0; padding: 0; list-style: none; }
.failures li { display: grid; gap: 2px; margin: 0 0 8px; }
.failures li:last-child { margin: 0; }
.failures span { color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 24px;
  margin-bottom: 28px;
}
.facts span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.facts .wide { grid-column: span 2; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 12px; }
.block-head h2, .block-head h3 { margin: 0; font-size: 26px; }
.block-head h3 { font-size: 22px; }

.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.beo-template { display: grid; gap: 16px; }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.actions.start { justify-content: flex-start; margin-bottom: 16px; }
.mono { font-size: 13px; color: var(--muted); word-break: break-all; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 8px 8px 4px; }
.panel.pad { padding: 22px; }
table.data { width: 100%; border-collapse: collapse; }
table.data th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 12px 14px;
}
table.data td { padding: 13px 14px; border-top: 1px solid var(--line); vertical-align: top; }
tr.sel { background: #f7f3ec; }
tr.click { cursor: pointer; }

.note { color: var(--muted); margin: 0 0 16px; max-width: 68ch; }
.catalog { display: flex; flex-direction: column; gap: 4px; }
.folder { margin: 0 0 8px; }
.folder h3 { margin: 14px 0 2px; font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; }
.folder .blurb { margin: 0 0 8px; color: var(--muted); font-size: 13px; max-width: 62ch; }
.folder.empty .blurb { margin-bottom: 2px; }
.change-band-guide { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 20px; color: var(--muted); font-size: 12px; }
.change-band-guide b { color: var(--ink); }
.change-context { display: block; margin-top: 7px; color: var(--muted); line-height: 1.35; }
.empty-line { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
tr.child td:first-child { padding-left: 32px; }
tr.detail td:first-child { padding-left: 52px; }
tr.detail td { color: var(--ink); }
.detail-mark {
  display: inline-block;
  margin-right: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
tr.cancelled td { color: var(--muted); }
.course-details {
  margin: 0 14px 16px;
  padding: 10px 12px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.details-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.course-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 4px;
  font-size: 14px;
}
.course-detail.on {
  background: var(--wash, #f4efe6);
  margin: 0 -8px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 8px;
}
.course-detail.cancelled { color: var(--muted); }
.course-detail .detail-name { font-weight: 500; }
tr.group-label td {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 10px;
  padding-bottom: 6px;
}

.group-id { max-width: 460px; margin-bottom: 22px; }

.register {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  height: calc(100vh - 250px);
  min-height: 420px;
}
.catalog {
  overflow: auto;
  min-height: 0;
  padding-right: 6px;
}
.history-pane {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 8px 12px;
  min-height: 0;
  overflow: auto;
}
.history-pane .block-head { margin-top: 8px; }
.history-pane .now { margin: 0 14px 8px; color: var(--muted); font-size: 14px; }
.move { margin: 0 14px 12px; max-width: 220px; }
.change { padding: 14px; border-top: 1px solid var(--line); }
.change-when { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.03em; color: var(--muted); }
.change-who { margin: 2px 0 0; font-size: 13px; font-weight: 600; }
.change-what { margin: 6px 0 0; font-family: Fraunces, serif; font-size: 22px; line-height: 1.25; }
.quote { margin: 8px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--accent); font-size: 14px; line-height: 1.45; }
.change-note { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.chat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  height: 680px;
}
.chat-log { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.composer { border-top: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.composer-row { display: flex; gap: 8px; align-items: center; }
.composer-row select { flex: 1; }
.bubble { border-radius: 12px; padding: 10px 12px; max-width: 100%; }
.bubble .who { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.bubble .meta { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
.bubble.couple { background: #f6f1e8; }
.bubble.hotel { background: var(--navy); color: #fff; }
.bubble.hotel .meta { color: rgba(255,255,255,.65); }
.bubble.elli { background: var(--ok-bg); }
.bubble pre { margin: 0; white-space: pre-wrap; font-family: inherit; line-height: 1.45; }

.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-drop { background: var(--drop-bg); color: var(--drop); }
.pill-soft { background: #eef1f4; color: var(--navy); }
.banner {
  border: 1px solid #efd3d3;
  background: #fdf6f6;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 14px;
}
.banner b { font-weight: 600; }

.stepper { display: flex; gap: 0; margin: 0 0 18px; padding: 0; list-style: none; }
.stepper button {
  flex: 1;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 2px solid var(--line);
  padding: 12px 12px 0 0;
  color: var(--muted);
}
.stepper button.on { border-top-color: var(--accent); color: var(--navy); }
.stepper small { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.tools { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 0 16px; }
.tools label { flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); font-weight: 500; }
.policy { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.prompt {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 860px) {
  .form-row, .facts, .register, .edit-grid, .policy { grid-template-columns: 1fr; }
  .register { height: auto; }
  .catalog, .history-pane { max-height: none; overflow: visible; }
  .chat { height: auto; min-height: 420px; }
  .event-title { font-size: 34px; }
}
