/* onboarding-library-guide (styles shared with onboarding-journey-guide) · tokens from DESIGN.md / assets/styles/default-theme.css:
   background #f3effa, card #fff, primary #06041f, tinted #e9e5f9, accent text #5935e9,
   Manrope, rounded-3xl surfaces, no gray borders. The guide uses the accent purple so it
   reads as a layer on top of the app, not part of it. */
:root {
  --bg: #f3effa;
  --card: #ffffff;
  --sidebar: #fbfaff;
  --primary: #06041f;
  --tinted: #e9e5f9;
  --accent: #5935e9;
  --ink: #06041f;
  --muted: #6b6785;
  --line: #ebe7f5;
  --service: #fef9c3;
  --amber-50: #fffbeb;
  --amber-200: #fde68a;
  --amber-700: #b45309;
  --shadow-sm: 0 1px 2px rgba(6, 4, 31, 0.05);
  --shadow-md: 0 10px 30px rgba(6, 4, 31, 0.08);
  --shadow-lg: 0 24px 60px rgba(6, 4, 31, 0.18);
  font-family: Manrope, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 1100px; background: #ece8f5; color: var(--ink); }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.6; }
:focus-visible { outline: 3px solid rgba(89, 53, 233, 0.4); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

/* ------------------------------ review chrome ----------------------------- */
.review-toolbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 68px; padding: 12px 24px;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(18px); box-shadow: var(--shadow-sm);
}
.review-brand { display: grid; gap: 2px; }
.review-brand strong { font-size: 15px; }
.review-kicker { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.review-controls { display: flex; align-items: end; gap: 10px; }
.review-controls label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.review-controls select, .quiet-button { min-height: 36px; border: 0; border-radius: 999px; background: var(--tinted); padding: 0 14px; font-size: 13px; }
.notes-toggle { grid-auto-flow: column; align-items: center; min-height: 36px; border-radius: 999px; background: var(--tinted); padding: 0 14px; }
.notes-toggle input { accent-color: var(--accent); }
.state-pills { display: flex; gap: 8px; overflow-x: auto; padding: 14px 24px 0; }
.state-pill { white-space: nowrap; border: 0; border-radius: 999px; background: var(--card); padding: 8px 14px; font-size: 12px; font-weight: 600; box-shadow: var(--shadow-sm); }
.state-pill:hover { background: var(--tinted); }
.state-pill.active { background: var(--primary); color: #fff; }
.prototype-layout { display: grid; grid-template-columns: minmax(1000px, 1fr) 340px; gap: 20px; align-items: start; padding: 18px 24px 56px; }
.prototype-stage { min-width: 0; }
.review-notes { position: sticky; top: 92px; display: grid; gap: 14px; border-radius: 24px; background: var(--card); padding: 20px; box-shadow: var(--shadow-md); }
.review-notes[hidden] { display: none; }
.note-heading { display: flex; align-items: center; justify-content: space-between; }
.note-group { border-radius: 999px; background: var(--tinted); padding: 4px 10px; color: var(--accent); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.score-target { color: var(--muted); font-size: 10px; font-weight: 700; }
.review-notes h2 { font-size: 17px; }
.review-notes h3 { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 5px; }
.review-notes p, .review-notes li { font-size: 12.5px; line-height: 1.55; color: #37344a; }
.review-notes ul { margin: 0; padding-left: 16px; display: grid; gap: 4px; }
.question-card { border-radius: 16px; background: var(--tinted); padding: 12px; }
.question-card h3 { color: var(--accent); }
@media (max-width: 1500px) { .prototype-layout { grid-template-columns: 1fr; } .review-notes { position: static; } }

/* -------------------------------- app frame ------------------------------- */
.odia-frame {
  position: relative; display: grid; grid-template-columns: 216px 1fr; grid-template-rows: 56px 1fr;
  height: 880px; overflow: hidden; border-radius: 28px; background: var(--sidebar); box-shadow: var(--shadow-md);
}
.app-sidebar { grid-row: 1 / 3; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; }
.team-switcher { display: flex; align-items: center; gap: 9px; border-radius: 16px; padding: 8px; font-size: 13px; }
.team-switcher strong { flex: 1; }
.team-badge { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 800; }
.caret { color: var(--muted); }
.side-search { border-radius: 999px; background: var(--bg); padding: 8px 12px; color: var(--muted); font-size: 12.5px; }
.side-nav { display: grid; gap: 1px; margin-top: 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; border-radius: 999px; padding: 7px 12px; color: #3f3b57; font-size: 13px; text-decoration: none; }
.nav-item.active { background: var(--tinted); color: var(--accent); font-weight: 700; }
.nav-ico { width: 14px; height: 14px; border-radius: 4px; background: #dcd7ec; }
.nav-item.active .nav-ico { background: var(--accent); }
.side-user { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 8px; font-size: 12.5px; }
.side-user div { display: grid; }
.side-user small { color: var(--muted); font-size: 11px; }
.avatar { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--tinted); color: var(--accent); font-size: 10px; font-weight: 800; }
.avatar.sm { width: 24px; height: 24px; font-size: 9px; }

.site-header { display: flex; align-items: center; justify-content: space-between; padding: 0 18px 0 8px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.crumb.muted { color: var(--muted); }
.crumb-sep { color: var(--muted); }
.site-actions { display: flex; align-items: center; gap: 8px; }
.copilot { border-radius: 999px; background: var(--tinted); padding: 6px 12px; color: var(--accent); font-size: 12px; font-weight: 700; }

.workspace { position: relative; min-width: 0; overflow: hidden; border-radius: 24px 0 0 0; background: var(--bg); box-shadow: var(--shadow-sm); }
.workspace-scroll { height: 100%; overflow: hidden; padding: 20px 24px; display: grid; align-content: start; gap: 14px; }
.help-btn { position: absolute; right: 12px; bottom: 12px; z-index: 40; display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; box-shadow: var(--shadow-md); }

/* --------------------------------- controls -------------------------------- */
.icon-btn { display: inline-grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 50%; background: var(--card); color: #3f3b57; font-size: 13px; }
.icon-btn.ghost { background: transparent; }
.icon-btn.tinted { background: var(--tinted); color: var(--accent); }
.btn { border: 0; border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 700; }
.btn.sm { padding: 6px 13px; font-size: 12.5px; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.outline { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.btn.tinted { background: var(--tinted); color: var(--accent); }
.btn.accent { background: var(--accent); color: #fff; }
.btn.accent:hover { background: #4a28d6; }
.link { color: var(--accent); font-weight: 700; }
.link-btn { border: 0; background: none; padding: 0; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.link-btn:hover { color: var(--ink); text-decoration: underline; }
.pill-btn { border: 0; border-radius: 999px; background: var(--card); padding: 6px 12px; font-size: 12px; font-weight: 600; box-shadow: var(--shadow-sm); }
.segmented { display: inline-flex; border-radius: 999px; background: var(--tinted); padding: 3px; }
.segmented button { border: 0; border-radius: 999px; background: transparent; padding: 4px 11px; font-size: 12px; font-weight: 600; }
.segmented button.on { background: var(--card); box-shadow: var(--shadow-sm); }
.zoom { display: inline-flex; gap: 10px; color: var(--muted); font-size: 13px; }
.fake-input { display: flex; align-items: center; min-height: 36px; border-radius: 999px; background: var(--bg); padding: 0 14px; font-size: 13px; }
.fake-input.placeholder { color: var(--muted); }

/* The spotlight: the one real control a step is talking about. */
/* Animated declarations outrank normal ones, so the ring shows even on controls that set
   their own box-shadow. */
.spot { position: relative; z-index: 2; animation: spot-pulse 1.8s ease-in-out infinite; }
@keyframes spot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--accent); }
  50% { box-shadow: 0 0 0 3px var(--card), 0 0 0 9px rgba(89, 53, 233, 0.35); }
}
@media (prefers-reduced-motion: reduce) {
  .spot { animation: none; box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--accent) !important; }
}

/* ------------------------------- journey header ----------------------------- */
.jh { display: grid; grid-template-columns: 128px 1fr; gap: 16px; border-radius: 24px; background: var(--card); padding: 14px; box-shadow: var(--shadow-sm); }
.jh-cover { display: grid; place-items: center; border-radius: 18px; background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 700; }
.jh-cover.has-image { background: linear-gradient(135deg, #f1c27d 0%, #d98c5f 38%, #6f9fc4 70%, #3d6d9a 100%); }
.jh-main { display: grid; gap: 12px; min-width: 0; }
.jh-row { display: flex; align-items: center; gap: 14px; }
.jh-titles { flex: 1; min-width: 0; display: grid; gap: 4px; }
.jh-title { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.ref-pill { border-radius: 999px; background: var(--bg); padding: 2px 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.jh-meta { color: var(--muted); font-size: 12.5px; }
.jh-meta .dot { margin: 0 6px; }
.jh-total { display: grid; justify-items: end; }
.jh-total small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.06em; }
.jh-total strong { font-size: 18px; }
.pencil { background: var(--bg); }
.jh-row.second { justify-content: space-between; }
.jh-left, .jh-right { display: flex; align-items: center; gap: 8px; }
.status-pill { border-radius: 999px; background: var(--bg); padding: 4px 11px; font-size: 12px; font-weight: 700; }
.pub-chip { border-radius: 999px; background: var(--bg); padding: 4px 10px; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.pub-chip.ok { background: #dcfce7; color: #15803d; }
.split { display: inline-flex; gap: 1px; border-radius: 999px; }
.split .btn:first-child { border-radius: 999px 0 0 999px; }
.caret-btn { border-radius: 0 999px 999px 0 !important; padding-left: 9px !important; padding-right: 10px !important; }

.pill-tabs { display: flex; gap: 6px; }
.pill-tab { border: 0; border-radius: 999px; background: transparent; padding: 7px 14px; color: #3f3b57; font-size: 13px; font-weight: 600; }
.pill-tab.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------------------------------- builder --------------------------------- */
.builder-toolbar { display: flex; align-items: center; justify-content: space-between; }
.tb-left, .tb-right { display: flex; align-items: center; gap: 8px; }
.board { display: grid; gap: 8px; }
.framing-row { justify-self: start; border: 0; background: none; padding: 4px 2px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; }
.empty-gap { display: flex; align-items: center; gap: 14px; border: 1.5px dashed #cfc7e6; border-radius: 16px; background: transparent; padding: 14px 18px; font-size: 13px; text-align: left; }
.empty-gap span:not(.link) { color: var(--muted); }
.empty-gap .link { margin-left: auto; }
.day-row { display: grid; grid-template-columns: 76px 1fr; gap: 8px; }
.date-rail { position: relative; display: grid; align-content: start; justify-items: center; padding-top: 8px; }
.date-rail small { color: var(--muted); font-size: 11px; }
.date-rail strong { font-size: 14px; }
.day-opts { margin-top: 2px; border: 0; border-radius: 999px; background: transparent; padding: 0 6px; color: var(--muted); font-size: 14px; }
.day-card { display: flex; align-items: center; gap: 8px; min-height: 64px; border-radius: 24px; background: var(--card); padding: 4px 8px; box-shadow: var(--shadow-sm); }
.insert-btn { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border: 0; border-radius: 50%; background: var(--card); color: var(--accent); font-weight: 800; box-shadow: inset 0 0 0 1.5px #c9bdf6; }
.day-menu { position: absolute; top: 18px; left: 60px; z-index: 30; display: grid; gap: 2px; width: 190px; border-radius: 16px; background: var(--card); padding: 6px; box-shadow: var(--shadow-lg); }
.menu-item { border: 0; border-radius: 10px; background: transparent; padding: 9px 11px; font-size: 13px; text-align: left; }
.menu-item:hover { background: var(--bg); }

.service-card { display: grid; gap: 6px; width: 240px; border-radius: 24px; background: var(--service); padding: 8px 12px 12px; }
.sc-top { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #6b5d0f; }
.sc-cat { margin-left: auto; }
.unsaved-dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; }
.sc-title { font-size: 13.5px; line-height: 1.3; }
.sc-foot { display: flex; align-items: center; justify-content: space-between; }
.price-chip { border-radius: 999px; background: rgba(255, 255, 255, 0.7); padding: 3px 10px; color: var(--accent); font-size: 12px; font-weight: 700; }
.price-chip.set { color: var(--ink); }
.sc-actions { color: #6b5d0f; font-size: 12px; }

/* ----------------------------------- areas ---------------------------------- */
.attach-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 16px; background: var(--tinted); padding: 10px 14px; font-size: 13px; }
.attach-banner div { display: flex; gap: 8px; }
.area-card { display: grid; gap: 14px; border-radius: 16px; background: var(--card); padding: 24px; box-shadow: var(--shadow-sm); }
.area-head { display: flex; align-items: center; justify-content: space-between; }
.area-head h2 { font-size: 17px; }
.area-controls { display: flex; align-items: center; gap: 8px; }
.gantt-days { display: grid; grid-template-columns: repeat(11, 1fr); margin-left: 120px; color: var(--muted); font-size: 11px; font-weight: 700; }
.gantt-row { display: grid; grid-template-columns: 120px 1fr; align-items: center; }
.gantt-label { font-size: 13px; font-weight: 700; }
.gantt-track { position: relative; height: 30px; border-radius: 10px; background: var(--bg); }
.gantt-bar { position: absolute; top: 4px; bottom: 4px; border-radius: 8px; }
.gantt-empty { color: var(--muted); font-size: 13px; padding: 8px 0 8px 120px; }
.add-dest { justify-self: start; }

/* --------------------------------- travelers -------------------------------- */
.travelers-card { display: grid; gap: 14px; border-radius: 24px; background: var(--card); padding: 20px; box-shadow: var(--shadow-sm); }
.travelers-card h2 { font-size: 16px; }
.add-bar { display: flex; align-items: center; gap: 8px; border-radius: 999px; padding: 4px; }
.add-bar .fake-input { flex: 1; }
.trav-table { display: grid; gap: 4px; }
.trav-head { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr 1fr; padding: 8px 12px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.trav-empty { padding: 26px 12px; color: var(--muted); font-size: 13px; text-align: center; }
.share-bar { display: flex; align-items: center; justify-content: space-between; border-radius: 16px; background: var(--bg); padding: 10px 14px; color: var(--muted); font-size: 12.5px; }

/* ------------------------------ sheet & dialog ------------------------------ */
.sheet { position: absolute; top: 0; right: 0; bottom: 0; z-index: 50; display: grid; align-content: start; gap: 14px; width: 460px; background: var(--card); padding: 20px; box-shadow: var(--shadow-lg); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { font-size: 17px; }
.underline-tabs { display: flex; gap: 18px; box-shadow: inset 0 -1px 0 var(--line); }
.underline-tabs button { border: 0; background: none; padding: 8px 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.underline-tabs button.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--primary); }
.sheet-search { display: flex; gap: 8px; }
.sheet-search .fake-input { flex: 1; color: var(--muted); }
.cat-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-pill, .filter { border-radius: 999px; background: var(--bg); padding: 4px 11px; font-size: 12px; font-weight: 600; }
.cat-pill.on { background: var(--primary); color: #fff; }
.filter { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.lib-list { display: grid; gap: 6px; }
.lib-row { display: grid; gap: 2px; border: 0; border-radius: 16px; background: var(--bg); padding: 12px 14px; text-align: left; }
.lib-row strong { font-size: 13.5px; }
.lib-row small { color: var(--muted); font-size: 12px; }

.scrim { position: absolute; inset: 0; z-index: 60; background: rgba(6, 4, 31, 0.4); }
.dialog { position: absolute; top: 50%; left: 50%; z-index: 61; width: 560px; transform: translate(-50%, -50%); border-radius: 24px; background: var(--card); box-shadow: var(--shadow-lg); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 6px; }
.dialog-head h2 { font-size: 17px; }
.dialog-body { display: grid; gap: 12px; padding: 10px 22px 16px; }
.dropzone { display: block; border: 1.5px dashed #cfc7e6; border-radius: 18px; padding: 26px; color: var(--muted); font-size: 13px; text-align: center; }
.field { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: #3f3b57; }
.field-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 22px 20px; }

.save-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--amber-200); background: var(--amber-50); padding: 12px 24px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg); }
.save-actions { display: flex; gap: 8px; }

/* ----------------------------------- the guide ------------------------------------
   Floating panel, same look Kyria approved for the earlier chapter guide: segmented bar,
   one step in focus, purple checkbox, footer ring. Sits above the real "?" help button
   (bottom 12px + 36px) and lifts above the save bar when that's up. */
.guide { position: absolute; right: 20px; bottom: 64px; z-index: 55; display: grid; width: 396px; border-radius: 28px; background: var(--card); padding: 22px 22px 0; box-shadow: var(--shadow-lg); }
.guide.raised { bottom: 84px; }
.g-top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; box-shadow: inset 0 -1px 0 var(--line); }
.g-top strong { flex: 1; font-size: 14.5px; }
.g-mark { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; border-radius: 8px; background: var(--tinted); color: var(--accent); font-size: 12px; }
.g-meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; color: var(--muted); font-size: 12px; font-weight: 600; }
.g-kicker { color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.seg { display: flex; gap: 5px; margin-top: 10px; }
.seg span { flex: 1; height: 6px; border-radius: 999px; background: var(--tinted); }
.seg span.done { background: var(--accent); }
.seg span.skipped { background: repeating-linear-gradient(135deg, #c9bdf6 0 3px, var(--tinted) 3px 6px); }
.g-chapter { margin: 14px 0 16px; font-size: 21px; }
.g-step { display: flex; gap: 14px; padding-bottom: 20px; }
.g-check { display: grid; width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; place-items: center; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--accent); font-size: 12px; font-weight: 800; }
.g-check.checked { background: var(--accent); box-shadow: none; color: #fff; }
.g-check.skipped { box-shadow: inset 0 0 0 2px #c9bdf6; color: #9a8fd0; }
.g-copy { flex: 1; min-width: 0; display: grid; gap: 8px; }
.g-copy strong { font-size: 15px; }
.g-copy p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.g-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.g-actions.end { justify-content: flex-end; }
.g-foot { display: flex; align-items: center; gap: 12px; margin: 0 -22px; border: 0; border-top: 1px solid var(--line); background: none; padding: 12px 22px; text-align: left; }
.g-foot-copy { flex: 1; display: grid; }
.g-foot-copy strong { font-size: 12.5px; }
.g-foot-copy small { color: var(--muted); font-size: 11.5px; }
.chev { color: var(--muted); font-size: 16px; }
.g-done { display: grid; justify-items: center; gap: 8px; padding: 20px 6px 22px; text-align: center; }
.g-done .g-chapter { margin: 4px 0 0; }
.g-done p { color: var(--muted); font-size: 13px; line-height: 1.6; }

.guide.list { width: 400px; }
.all-steps { display: grid; gap: 4px; max-height: 470px; overflow-y: auto; padding: 8px 0 12px; }
.as-chapter { display: grid; gap: 2px; padding: 4px 0; }
.as-head { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 12px; background: none; padding: 8px 6px; text-align: left; }
.as-head:hover { background: var(--bg); }
.as-head strong { flex: 1; font-size: 13.5px; }
.as-head small { color: var(--muted); font-size: 12px; }
.as-step { display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 10px; font-size: 13px; }
.as-step .g-check { width: 18px; height: 18px; flex-basis: 18px; border-radius: 6px; font-size: 10px; }
.as-step.done span:not(.g-check) { color: var(--muted); }
.as-step em { margin-left: auto; color: #9a8fd0; font-size: 11.5px; font-style: normal; font-weight: 700; }

.guide-hint { position: absolute; left: 236px; bottom: 20px; z-index: 70; display: flex; align-items: center; gap: 10px; max-width: 420px; border-radius: 20px; line-height: 1.45; background: var(--card); padding: 8px 18px 8px 8px; font-size: 12.5px; box-shadow: var(--shadow-lg); }
.guide-hint b { font-weight: 800; }

.guide-pill { position: absolute; right: 20px; bottom: 64px; z-index: 55; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 999px; background: var(--card); padding: 10px 20px 10px 10px; text-align: left; box-shadow: var(--shadow-lg); }
.guide-pill:hover { transform: translateY(-2px); }

/* ------------------------------- journeys list ------------------------------ */
.view-switcher { display: flex; align-items: center; gap: 4px; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.list-search { width: 360px; color: var(--muted); background: var(--card); box-shadow: var(--shadow-sm); }
.list-actions { display: flex; align-items: center; gap: 8px; }
.list-card { border-radius: 24px; background: var(--card); padding: 8px 8px 0; box-shadow: var(--shadow-sm); }
.list-head { display: grid; grid-template-columns: 2.4fr 1.4fr 1fr 1fr 0.8fr; padding: 10px 14px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; box-shadow: inset 0 -1px 0 var(--line); }
.list-empty { padding: 120px 0; color: var(--muted); font-size: 13.5px; text-align: center; }

/* ----------------------------- create new journey ---------------------------- */
.create-head { display: flex; align-items: center; justify-content: space-between; }
.create-title { display: flex; align-items: center; gap: 12px; }
.create-title h1 { font-size: 22px; }
.create-actions { display: flex; align-items: center; gap: 8px; }
.create-actions .btn { padding: 9px 22px; }
.tip-wrap { position: relative; display: inline-flex; }
.tooltip { position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; white-space: nowrap; border-radius: 10px; background: var(--primary); padding: 6px 10px; color: #fff; font-size: 12px; font-weight: 600; }
.create-tabs { margin-top: 2px; }
.create-card { display: grid; gap: 16px; border-radius: 24px; background: var(--card); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.create-card .field { border-radius: 14px; }
.create-card .field.spot { padding: 6px; margin: -6px; }
.req { border-radius: 999px; background: var(--tinted); padding: 1px 7px; color: var(--accent); font-size: 10px; font-style: normal; font-weight: 800; }
.fake-input.tall { min-height: 72px; align-items: flex-start; padding-top: 10px; border-radius: 16px; }

/* ------------------------------ builder additions ---------------------------- */
.service-card { cursor: pointer; }
.drag-handle { color: #a39340; font-size: 12px; cursor: grab; }
.service-card.dragging { transform: translate(28px, 44px) rotate(-2deg); box-shadow: var(--shadow-lg); z-index: 3; position: relative; }
.day-card.drop-target { box-shadow: inset 0 0 0 2px #c9bdf6; }
.drop-slot { display: grid; place-items: center; width: 240px; min-height: 52px; border: 1.5px dashed #c9bdf6; border-radius: 20px; color: var(--accent); font-size: 12px; font-weight: 700; }
.more-days { padding: 2px 0 0 84px; color: var(--muted); font-size: 12px; font-weight: 600; }

/* -------------------------------- service sheet ------------------------------ */
.sheet.wide { width: 520px; }
.sheet-title { display: grid; gap: 2px; }
.sheet-title small { color: var(--muted); font-size: 12px; font-weight: 600; }
.sections { display: grid; gap: 8px; }
.section { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-radius: 16px; background: var(--bg); padding: 12px 14px; font-size: 13.5px; }
.section span[aria-hidden] { color: var(--muted); }
.section-body { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; width: 100%; }
.section-body .fake-input { background: var(--card); }

/* ------------------------------ guide additions ------------------------------ */
.guide .seg { margin-bottom: 18px; }
.g-tip { border-radius: 12px; background: var(--bg); padding: 8px 10px; font-size: 12.5px !important; }
.g-result { color: #15803d !important; font-weight: 700; }
.guide-hint .btn { margin-left: 6px; flex: 0 0 auto; }
.toast { position: absolute; top: 70px; left: 50%; z-index: 80; display: flex; align-items: center; gap: 8px; transform: translateX(-50%); border-radius: 999px; background: var(--primary); padding: 9px 16px 9px 10px; color: #fff; font-size: 13px; font-weight: 700; box-shadow: var(--shadow-lg); }
.toast-ico { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #22c55e; font-size: 11px; }

/* ------------------------------- preview page ------------------------------
   /journeys/[id]/preview is full screen: no sidebar, a blurred close bar with
   "Back to journey", a centred "Preview" tag and the Publish split button. */
.preview-frame { grid-template-columns: 1fr; grid-template-rows: 52px 1fr; background: var(--card); }
.pv-bar { position: relative; display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.85); }
.ghost-btn { background: transparent; color: var(--ink); }
.ghost-btn:hover { background: var(--bg); }
.pv-tag { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 999px; background: var(--bg); padding: 3px 10px; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.pv-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pv-page { overflow: hidden; padding: 0 0 40px; background: #faf8f4; }
.pv-hero { display: grid; gap: 6px; padding: 120px 64px 40px; background: linear-gradient(135deg, #f1c27d 0%, #d98c5f 38%, #6f9fc4 70%, #3d6d9a 100%); color: #fff; }
.pv-hero small { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.pv-hero h2 { font-size: 34px; }
.pv-hero p { font-size: 14px; opacity: 0.95; }
.pv-day { display: grid; gap: 10px; margin: 0 64px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pv-day small { color: var(--muted); font-size: 12px; font-weight: 700; }
.pv-free { color: var(--muted); font-size: 13px; }
.pv-card { display: flex; align-items: center; gap: 14px; max-width: 520px; border-radius: 20px; background: var(--card); padding: 10px; box-shadow: var(--shadow-sm); }
.pv-card p { color: var(--muted); font-size: 12.5px; }
.pv-img { width: 84px; height: 64px; flex: 0 0 auto; border-radius: 14px; background: linear-gradient(135deg, #c9b79c, #8a7a62); }
.pv-popover { position: absolute; top: 58px; right: 52px; z-index: 61; display: grid; gap: 12px; width: 340px; border-radius: 22px; background: var(--card); padding: 18px; box-shadow: var(--shadow-lg); }
.pv-popover h4 { margin: 0; font-size: 15px; }
.pv-popover .muted { color: var(--muted); font-size: 12.5px; }
.pv-popover em { color: var(--muted); font-style: normal; font-weight: 600; }
.dialog-foot.flush { padding: 0; }
.preview-frame .guide-hint { left: 20px; }

/* --------------------------- empty Library variant -------------------------- */
.lib-empty { display: grid; gap: 4px; justify-items: center; padding: 48px 12px; text-align: center; }
.lib-empty p { font-size: 14px; font-weight: 600; }
.lib-empty small { color: var(--muted); font-size: 12.5px; }
.dialog.wide { width: 680px; }
.split-foot { justify-content: space-between; align-items: center; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.box { display: inline-grid; width: 18px; height: 18px; place-items: center; border-radius: 6px; box-shadow: inset 0 0 0 1.5px #cfc7e6; font-size: 11px; }
.box.on { background: var(--primary); color: #fff; box-shadow: none; }

/* ------------------------------ library guide ------------------------------ */
.lib-tabs { margin: -6px 0 0; }
.lib-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.lib-actions { display: flex; justify-content: flex-end; gap: 8px; }
.lib-card { display: grid; gap: 12px; padding: 18px 20px; }
.lib-card.grow { min-height: 420px; align-content: start; }
.lib-card .list-empty { padding: 140px 0; }
.lib-filters { display: flex; gap: 8px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.svc-card { display: grid; gap: 6px; border: 0; border-radius: 20px; background: var(--bg); padding: 10px 10px 14px; text-align: left; }
.svc-card strong { font-size: 13.5px; }
.svc-card small { color: var(--muted); font-size: 12px; }
.svc-img { display: block; height: 110px; border-radius: 14px; background: linear-gradient(135deg, #c9b79c, #8a7a62); }
.field.invalid .fake-input { box-shadow: inset 0 0 0 1.5px #dc2626; }
.field-error { color: #dc2626; font-size: 12px; font-style: normal; font-weight: 600; }
.field.spot { border-radius: 14px; padding: 6px; margin: -6px; }
.svc-sheet { width: 600px; grid-template-rows: auto auto 1fr auto; height: 100%; padding-bottom: 0; }
.sheet-body { display: grid; align-content: start; gap: 14px; overflow: hidden; }
.sheet-foot { display: flex; justify-content: flex-end; margin: 0 -20px; padding: 14px 20px; box-shadow: inset 0 1px 0 var(--line); }
.underline-tabs button.spot { border-radius: 8px; }
.sup-actions { display: flex; align-items: center; gap: 8px; }
.picker { min-width: 240px; justify-content: space-between; color: var(--muted); cursor: pointer; background: var(--bg); }
.picker-pop { display: grid; gap: 4px; width: 280px; margin-top: -6px; border-radius: 18px; background: var(--card); padding: 8px; box-shadow: var(--shadow-lg); }
.picker-row { border: 0; border-radius: 12px; background: none; padding: 9px 12px; text-align: left; font-size: 13px; }
.picker-row:hover { background: var(--bg); }
.picker-empty { padding: 14px 12px; color: var(--muted); font-size: 13px; }
.sup-empty { padding: 40px 0; color: var(--muted); font-size: 13px; text-align: center; }
.sup-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; border-radius: 24px; background: color-mix(in srgb, var(--bg) 70%, transparent); padding: 18px 20px; }
.sup-row strong { flex: 1; min-width: 140px; font-size: 14px; }
.sup-cost { display: grid; gap: 6px; border-radius: 16px; }
.sup-cost.spot { padding: 6px; margin: -6px; }
.sup-cost small { color: var(--muted); font-size: 11.5px; }
.cost-pair { display: flex; gap: 8px; }
.fake-input.cost { width: 120px; background: var(--card); font-variant-numeric: tabular-nums; }
.fake-input.cur { width: 84px; background: var(--card); }
.sup-icons { display: flex; gap: 10px; color: var(--muted); font-size: 16px; }
.star.on { color: var(--accent); }
.dialog-head .muted { margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.toast.error { background: #b91c1c; }
