:root { color-scheme: light; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1d2630; background: #f2f5f7; --line: #dce3e8; --muted: #566675; --accent: #c34800; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; font-size: 14px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #176ea3; outline-offset: 3px; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.tour-top { display: flex; align-items: center; gap: 20px; padding: 16px 22px; min-height: 66px; background: #1b2229; color: #fff; }
.tour-top strong { font-size: 22px; }
.sample-label { font-size: 12px; color: #d2dbe3; }
.standalone-link { margin-left: auto; color: #fff; }
.embedded .standalone-link { display: none; }
.tour-shell { display: grid; grid-template-columns: 164px minmax(0, 1fr); }
.tour-nav { background: #fff; border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 6px; }
.tour-nav button { min-height: 44px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); text-align: left; padding: 10px 12px; font-weight: 650; }
.tour-nav button[aria-current='page'] { color: #9b3700; background: #fff1e8; }
.tour-nav button:hover { background: #eef3f6; }
.tour-workspace { padding: 24px; min-width: 0; }
.tour-heading { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 22px; }
.tour-heading > * { min-width: 0; }
.eyebrow { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
h1 { font-size: 28px; margin: 0; line-height: 1.2; }
h2 { font-size: 18px; margin: 0 0 16px; }
h3 { font-size: 14px; margin: 0 0 12px; }
.search-box { width: 260px; }
.search-box label { display: block; font-size: 12px; margin-bottom: 6px; }
input { width: 100%; border: 1px solid #bcc8d1; padding: 10px 12px; min-height: 44px; border-radius: 5px; background: #fff; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px; min-width: 0; }
.metric strong { display: block; font-size: 26px; line-height: 1.3; margin-bottom: 6px; }
.metric span { font-size: 12px; color: var(--muted); }
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.stage { border-top: 3px solid #177ba8; padding-top: 14px; min-width: 0; }
.stage:nth-child(2) { border-color: #8d68b6; }.stage:nth-child(3) { border-color: #c34800; }.stage:nth-child(4) { border-color: #148365; }
.record { width: 100%; border: 1px solid var(--line); background: #fff; text-align: left; padding: 14px 12px; border-radius: 6px; color: inherit; margin-bottom: 8px; min-height: 70px; }
.record:hover { border-color: #8597a5; }
.record strong { display: block; overflow-wrap: anywhere; line-height: 1.4; }
.record small { display: block; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.queue { border-top: 1px solid var(--line); }
.queue-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 15px 4px; border-bottom: 1px solid var(--line); }
.queue-row .record { margin: 0; border: 0; background: none; min-height: auto; padding: 0; }
.status { font-size: 12px; color: #246d55; background: #e5f4eb; padding: 5px 9px; border-radius: 4px; white-space: nowrap; }
.status.pending { color: #845000; background: #fff3d7; }
.sample-note { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.empty-state { padding: 20px 0; color: var(--muted); }
.photo-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.photo-strip figure { margin: 0; min-width: 0; }
.photo-strip img { display: block; width: 100%; height: 140px; object-fit: cover; border-radius: 5px; }
.photo-strip figcaption { font-size: 12px; color: var(--muted); padding-top: 8px; }
dialog { border: 1px solid var(--line); border-radius: 8px; width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 24px; color: inherit; }
dialog::backdrop { background: #101a28a8; }
.dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.dialog-header h2 { line-height: 1.4; overflow-wrap: anywhere; }
.dialog-header button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 24px; flex-shrink: 0; }
dl { margin: 0 0 24px; }
dt { font-size: 12px; color: var(--muted); margin-top: 16px; }
dd { margin: 4px 0 0; line-height: 1.5; }
.button { background: #1b2229; color: #fff; border: 0; border-radius: 5px; padding: 12px 18px; min-height: 44px; }
.no-script { padding: 24px; }
@media (max-width: 1050px) {
  .tour-shell { grid-template-columns: minmax(0, 1fr); }
  .tour-nav { flex-direction: row; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .tour-nav button { flex: 0 0 auto; }
  .tour-workspace { padding: 22px; }
}
@media (max-width: 640px) {
  .tour-top { gap: 6px 14px; flex-wrap: wrap; padding: 14px 16px; }
  .tour-top strong { font-size: 20px; }
  .sample-label { font-size: 11px; }
  .standalone-link { margin: 0; width: 100%; font-size: 12px; }
  .tour-workspace { padding: 18px 14px; }
  .tour-heading { display: block; margin-bottom: 18px; }
  .search-box { width: 100%; margin-top: 16px; }
  h1 { font-size: 25px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric { padding: 12px; }.metric strong { font-size: 24px; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-strip { grid-template-columns: 1fr; }.photo-strip img { height: 180px; }
}
