/* traveler-share-links · tokens mirror apps/web/src/assets/styles/globals.css (light theme) */
:root {
  --background: #f3effa;
  --foreground: #121021;
  --card: #ffffff;
  --primary: #06041f;
  --primary-foreground: #ffffff;
  --secondary: #e8e5f0;
  --accent: #f5f5fc;
  --accent-interactive: #5935e9;
  --accent-soft: #e9e5f9;
  --accent-soft-hover: #ddd6f3;
  --muted: #e8e5f0;
  --muted-foreground: #6e6a8b;
  --destructive: #e62b0f;
  --success: #0cc078;
  --warning: #f9c152;
  --warning-lighter: #ffedd5;
  --border: #d4c5e6;
  --ring: #5935e9;
  --shadow-lg: 0 18px 50px rgba(18, 16, 33, 0.14);
  --shadow-sm: 0 1px 2px rgba(18, 16, 33, 0.05);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--foreground);
  background: var(--background);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 720px; background: var(--background); }
button, select, input { font: inherit; }
button, select { color: inherit; }
button { cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

/* ── Review shell (outside the simulated app) ─────────────────────────── */
.review-toolbar {
  position: sticky; top: 0; z-index: 20; min-height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px 24px; background: rgba(255,255,255,0.94); backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}
.review-brand { display: grid; gap: 3px; }
.review-brand strong { font-size: 16px; }
.review-kicker { color: var(--accent-interactive); 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-foreground); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.review-controls select, .quiet-button {
  min-height: 36px; border: 0; border-radius: 999px; background: var(--card);
  padding: 0 14px; box-shadow: var(--shadow-sm);
}
.notes-toggle { grid-auto-flow: column; align-items: center; min-height: 36px; border-radius: 999px; background: var(--card); padding: 0 14px; box-shadow: var(--shadow-sm); }
.notes-toggle input { accent-color: var(--accent-interactive); }

.state-pills { display: flex; gap: 8px; min-width: 0; overflow-x: auto; padding: 14px 24px 0; }
.state-pill { flex: 0 0 auto; white-space: nowrap; border: 0; border-radius: 999px; background: var(--card); padding: 8px 14px; font-size: 12px; font-weight: 700; box-shadow: var(--shadow-sm); }
.state-pill:hover { background: var(--accent-soft); }
.state-pill.active { background: var(--primary); color: var(--primary-foreground); }

.prototype-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; padding: 18px 24px 64px; }
.prototype-stage { min-width: 0; }

.review-notes { position: sticky; top: 96px; min-width: 0; display: grid; gap: 14px; border-radius: 24px; background: var(--card); padding: 20px; box-shadow: var(--shadow-lg); }
.review-notes[hidden] { display: none; }
.note-heading { display: flex; align-items: center; justify-content: space-between; }
.note-group { border-radius: 999px; background: var(--accent-soft); padding: 4px 10px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-interactive); }
.score-target { font-size: 10px; font-weight: 700; color: var(--muted-foreground); }
.review-notes h2 { font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.review-notes h3 { font-size: 10px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 5px; }
.review-notes p, .review-notes li { font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.review-notes li { padding-left: 12px; position: relative; margin-bottom: 3px; }
.review-notes li::before { content: "·"; position: absolute; left: 2px; color: var(--muted-foreground); }
.question-card { border-radius: 18px; background: var(--accent-soft); padding: 14px; }

/* ── Odia app frame ───────────────────────────────────────────────────── */
.odia-app-frame { position: relative; min-width: 0; min-height: 780px; overflow: hidden; border-radius: 28px; background: var(--background); box-shadow: var(--shadow-lg); }
.odia-global-header { height: 58px; display: grid; grid-template-columns: 150px minmax(240px, 1fr) 160px; align-items: center; gap: 18px; padding: 0 20px; background: var(--card); }
.odia-logo { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.odia-logo span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: var(--primary); color: var(--primary-foreground); font-size: 9px; font-weight: 900; }
.odia-search { border-radius: 999px; background: var(--accent); padding: 9px 14px; color: var(--muted-foreground); font-size: 12px; }
.odia-user { display: flex; align-items: center; justify-content: flex-end; gap: 9px; font-size: 12px; color: var(--muted-foreground); }
.odia-user b { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 999px; background: var(--accent-soft); color: var(--foreground); font-size: 10px; }

.odia-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 24px 14px; }
.page-head-main { display: grid; gap: 7px; }
.breadcrumb { font-size: 11px; color: var(--muted-foreground); }
.page-title-row { display: flex; align-items: center; gap: 10px; }
.page-title-row h1 { font-size: 21px; letter-spacing: -0.01em; }
.status-chip, .publish-chip { border-radius: 999px; padding: 3px 11px; font-size: 10.5px; font-weight: 700; }
.status-chip { background: var(--accent-soft); color: var(--accent-interactive); }
.publish-chip { background: rgba(12, 192, 120, 0.14); color: #06623d; }
.publish-chip[data-state="unpublished"] { background: var(--warning-lighter); color: #92400e; }
.publish-chip[data-state="draft"] { background: var(--muted); color: var(--muted-foreground); }
.page-meta { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--muted-foreground); }
.page-meta i { width: 3px; height: 3px; border-radius: 999px; background: var(--border); }
.page-actions { display: flex; align-items: center; gap: 8px; }

.primary-button, .ghost-button, .icon-button, .soft-button {
  border: 0; border-radius: 999px; padding: 8px 16px; font-size: 12.5px; font-weight: 600;
  transition: background 180ms ease, color 180ms ease;
}
.primary-button { background: var(--primary); color: var(--primary-foreground); }
.primary-button:hover { background: #1b1740; }
.primary-button:disabled { opacity: 0.45; cursor: not-allowed; }
.ghost-button { background: transparent; color: var(--foreground); }
.ghost-button:hover { background: var(--accent-soft); }
.soft-button { background: var(--card); color: var(--foreground); box-shadow: var(--shadow-sm); }
.soft-button:hover { background: var(--accent-soft); }
.soft-button[aria-pressed="true"] { background: var(--secondary); }
.icon-button { background: transparent; padding: 8px 10px; color: var(--muted-foreground); }
.icon-button:hover { background: var(--accent-soft); }

.odia-page-nav { display: flex; gap: 4px; padding: 0 24px; }
.odia-page-nav button { border: 0; background: transparent; border-radius: 999px; padding: 9px 15px; font-size: 12.5px; font-weight: 600; color: var(--muted-foreground); }
.odia-page-nav button:hover { background: var(--accent-soft); }
.odia-page-nav button.active { background: var(--card); color: var(--foreground); box-shadow: var(--shadow-sm); }

.screen-root { padding: 18px 24px 96px; }

/* ── Travelers tab ────────────────────────────────────────────────────── */
.tab-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.tab-head h2 { font-size: 15px; font-weight: 700; }
.tab-head p { font-size: 12px; color: var(--muted-foreground); margin-top: 3px; }
.tab-head-actions { display: flex; gap: 8px; }

.panel-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 14px; }
.add-bar { flex: 1 1 360px; min-width: 0; display: flex; align-items: center; gap: 10px; border-radius: 24px; background: var(--card); padding: 12px 16px; box-shadow: var(--shadow-sm); }
.add-bar .field { flex: 1; border-radius: 999px; background: var(--accent); padding: 9px 14px; font-size: 12px; color: var(--muted-foreground); }
.intake-panel { flex: 0 0 300px; display: grid; gap: 4px; border-radius: 24px; background: var(--card); padding: 12px 16px; box-shadow: var(--shadow-sm); }
.intake-panel strong { font-size: 12.5px; }
.intake-panel span { font-size: 11.5px; color: var(--muted-foreground); }

.data-table { width: 100%; border-collapse: separate; border-spacing: 0 0; border-radius: 24px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); }
.data-table thead th { text-align: left; padding: 11px 16px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-foreground); background: var(--card); }
.data-table tbody tr { transition: background 180ms ease; }
.data-table tbody tr:hover { background: var(--accent); }
.data-table tbody tr[data-selected="true"] { background: var(--accent-soft); }
.data-table tbody tr[data-selected="true"]:hover { background: var(--accent-soft-hover); }
.data-table td { padding: 13px 16px; font-size: 12.5px; vertical-align: middle; white-space: nowrap; }
.select-cell { width: 44px; padding-right: 0 !important; }
.row-check {
  display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px;
  background: var(--muted); color: transparent; font-size: 11px; font-weight: 900; border: 0; padding: 0;
}
.row-check[aria-checked="true"] { background: var(--primary); color: var(--primary-foreground); }
.row-check:hover { background: var(--accent-soft-hover); }
.row-check[aria-checked="true"]:hover { background: #1b1740; }

.identity { display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 999px; background: var(--accent-soft); font-size: 10.5px; font-weight: 700; }
.identity-text { display: grid; gap: 2px; }
.identity-text strong { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.identity-text small { font-size: 10.5px; color: var(--muted-foreground); }
.badge { display: inline-block; border-radius: 999px; background: var(--secondary); padding: 3px 9px; font-size: 10.5px; font-weight: 600; }
.badge.primary-badge { background: var(--accent-soft); color: var(--accent-interactive); }
.badge.flag { background: var(--accent); color: var(--muted-foreground); }
.contact-cell { display: grid; gap: 2px; font-size: 11.5px; color: var(--muted-foreground); }
.row-actions { text-align: right; white-space: nowrap; }
.link-button { border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--muted-foreground); }
.link-button:hover { background: var(--accent-soft); color: var(--accent-interactive); }

/* ── Share links section ──────────────────────────────────────────────── */
.links-section { margin-top: 18px; }
.links-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; padding: 0 4px; }
.links-head h3 { font-size: 13px; font-weight: 700; }
.links-head span { font-size: 11.5px; color: var(--muted-foreground); }
.link-card { display: flex; align-items: center; gap: 14px; border-radius: 24px; background: var(--card); padding: 14px 16px; box-shadow: var(--shadow-sm); margin-bottom: 8px; transition: background 180ms ease; }
.link-card:hover { background: var(--accent); }
.link-card.is-new { background: var(--accent-soft); }
.link-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.link-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.link-url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--muted-foreground); }
.link-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted-foreground); }
.chip-row { display: flex; gap: 5px; flex-wrap: wrap; }
.traveler-chip { border-radius: 999px; background: var(--accent-soft); padding: 3px 9px; font-size: 10.5px; font-weight: 600; }
.link-actions { display: flex; align-items: center; gap: 6px; }

.empty-links { display: grid; gap: 6px; border-radius: 24px; background: var(--card); padding: 22px 20px; box-shadow: var(--shadow-sm); text-align: center; }
.empty-links strong { font-size: 13px; }
.empty-links span { font-size: 12px; color: var(--muted-foreground); }

.coverage-line { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 0 4px; font-size: 11.5px; color: var(--muted-foreground); }
.coverage-line .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--success); }
.coverage-warning { display: flex; align-items: flex-start; gap: 10px; border-radius: 24px; background: var(--warning-lighter); padding: 13px 16px; margin-top: 10px; }
.coverage-warning strong { display: block; font-size: 12.5px; color: #92400e; }
.coverage-warning span { font-size: 11.5px; color: #92400e; opacity: 0.85; }

/* ── Floating selection pill (mirrors FinancialSelectionActionPill) ───── */
.selection-pill { position: absolute; inset-inline: 0; bottom: 24px; z-index: 40; display: flex; justify-content: center; padding: 0 16px; }
.selection-pill-inner { display: flex; align-items: center; gap: 12px; max-width: 100%; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); padding: 8px 8px 8px 18px; box-shadow: var(--shadow-lg); }
.selection-pill-text { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12.5px; }
.selection-pill-text strong { font-weight: 600; white-space: nowrap; }
.selection-pill-text em { font-style: normal; color: rgba(255,255,255,0.72); white-space: nowrap; }
.selection-pill-text .reason { font-size: 11px; color: rgba(255,255,255,0.75); }
.pill-button { border: 0; border-radius: 999px; background: var(--card); color: var(--foreground); padding: 7px 14px; font-size: 12px; font-weight: 600; }
.pill-button:hover { background: var(--accent-soft); }
.pill-button:disabled { opacity: 0.5; cursor: not-allowed; }
.pill-icon { border: 0; border-radius: 999px; background: var(--card); color: var(--foreground); width: 30px; height: 30px; padding: 0; font-size: 13px; }
.pill-icon:hover { background: var(--accent-soft); }
.spinner { display: inline-block; width: 11px; height: 11px; margin-right: 7px; border-radius: 999px; border: 2px solid rgba(18,16,33,0.25); border-top-color: var(--foreground); vertical-align: -1px; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast + dialog ───────────────────────────────────────────────────── */
.toast { position: absolute; right: 24px; bottom: 82px; z-index: 50; display: flex; align-items: center; gap: 10px; border-radius: 999px; background: var(--card); padding: 11px 18px; font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-lg); }
.toast .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--success); }
.toast.is-error { border: 1px solid var(--destructive); }
.toast.is-error .dot { background: var(--destructive); }

.dialog-scrim { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(18,16,33,0.32); backdrop-filter: blur(2px); }
.dialog { width: min(420px, 90%); display: grid; gap: 8px; border-radius: 24px; background: var(--card); padding: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--destructive); }
.dialog h3 { font-size: 15px; }
.dialog p { font-size: 12.5px; color: var(--muted-foreground); line-height: 1.5; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.destructive-button { border: 0; border-radius: 999px; background: var(--destructive); color: #fff; padding: 8px 16px; font-size: 12.5px; font-weight: 600; }
.destructive-button:hover { background: #c02409; }

.proto-only { display: inline-block; border-radius: 999px; background: var(--accent-soft); color: var(--accent-interactive); padding: 2px 8px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 1180px) {
  .prototype-layout { grid-template-columns: 1fr; }
  .review-notes { position: static; }
}
