/* Travel by Budget pages. Loads after site.css and reuses its tokens (navy/blue brand colors, radii,
   shadows). Everything here is prefixed tb- so it never collides with the corporate pages. The trip header
   and footer every trip-mode page wears are in site.css, so the hotel and flight pages leave this file out. */

/* ---------- Shared bits ---------- */
.tb-muted { color: var(--muted); }
.tb-small { font-size: 14px; }
.tb-kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); }
.tb-demo { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff4d6; color: #6b4a00; font-size: 12.5px; font-weight: 600; vertical-align: middle; }
.tb-demo .icon { width: 14px; height: 14px; }
.tb-status { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; vertical-align: middle; }
.tb-status-good { background: #e6f6ef; color: #0c5e43; }
.tb-status-warn { background: #fff4d6; color: #6b4a00; }
.tb-status-bad { background: #fdecea; color: #8a1f14; }
.tb-list { padding-left: 18px; margin: 8px 0; }
.tb-list li { margin: 4px 0; line-height: 1.45; }
.tb-list a { color: var(--blue-600); }
.tb-section { padding: 64px 0; }
.tb-section-tight { padding: 24px 0 0; }
.tb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tb-inline { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.tb-linkbtn { background: none; border: 0; padding: 0; color: var(--blue-600); font: inherit; text-decoration: underline; cursor: pointer; }
.tb-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.tb-panel > h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tb-panel > h2 .icon { width: 22px; height: 22px; color: var(--blue-500); }
.tb-panel h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; }
.tb-panel h3 .icon { width: 18px; height: 18px; color: var(--blue-500); }
.tb-panel-warn { border-color: #f4e2b0; background: #fffaf0; }
.tb-panel-warn > h2 .icon { color: var(--warning); }
.tb-note { background: var(--blue-50); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; color: #0f3d73; line-height: 1.5; }
.tb-note a { color: var(--blue-600); font-weight: 600; }
.tb-tip { display: flex; align-items: center; gap: 8px; color: #0c5e43; font-size: 14.5px; margin: 10px 0 0; }
.tb-tip .icon { width: 16px; height: 16px; }
.tb-delta { display: inline-block; font-weight: 700; font-size: 14px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.tb-delta-save { background: #e6f6ef; color: #0c5e43; }
.tb-delta-add { background: var(--sky-50); color: var(--navy-800); }
.tb-delta-same { background: #eef2f7; color: var(--muted); font-weight: 600; }
.tb-return { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 20px; box-shadow: var(--shadow-sm); }
.tb-return .tx-img { width: 120px; flex: none; border-radius: var(--radius-sm); }
.tb-return > div { flex: 1; }
.tb-return p { margin: 2px 0; }

/* ---------- Budget input ---------- */
.tb-budget-form { max-width: 640px; }
.tb-budget-label { display: block; font-weight: 600; margin-bottom: 10px; }
.tb-budget-input { display: flex; align-items: center; background: #fff; border-radius: 16px; padding: 6px 6px 6px 22px; box-shadow: var(--shadow-lg); border: 2px solid transparent; transition: border-color .2s; }
.tb-budget-input:focus-within { border-color: var(--blue-400); }
.tb-currency { font-size: 30px; font-weight: 700; color: var(--muted); margin-right: 6px; }
.tb-budget-input input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 34px; font-weight: 700; color: var(--ink); padding: 10px 6px; background: transparent; letter-spacing: -0.02em; }
.tb-budget-input input::placeholder { color: #b7c2d0; font-weight: 600; }
.tb-budget-input .btn { flex: none; }
.tb-budget-input-sm { padding: 2px 2px 2px 14px; border-radius: 12px; box-shadow: none; border: 1.5px solid var(--line); }
.tb-budget-input-sm .tb-currency { font-size: 18px; }
.tb-budget-input-sm input { font-size: 18px; padding: 10px 4px; }
/* "Leaving from": a type-to-search box (views/trips/originBox.js), the budget field's frame without the $ sign. */
.tb-from-input input { font-size: 24px; letter-spacing: 0; }
.tb-from-input.tb-budget-input-sm input { font-size: 17px; font-weight: 600; }
.tb-from-cities { margin-top: 12px; }
/* "Where are you traveling?" (views/trips/plan.js whereStep): leaving from, where to, and "suggest" as its own button. */
.tb-where { display: grid; gap: 22px; max-width: 640px; }
.tb-where-label { display: block; font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.tb-where-field .tb-small { margin: 8px 0 0; }
.tb-where-go { margin-top: 14px; }
.tb-where .tb-where-error { padding: 14px 16px; margin: 6px 0 8px; border-color: #f0b4b4; background: #fff6f6; }
.tb-where-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.tb-where-or::before, .tb-where-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.tb-where-suggest .btn { white-space: normal; }
.tb-dest-kept { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.tb-dest-kept .icon { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--blue-500); }
.tb-other-dests { background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 22px 24px; margin: 0 0 28px; }
.tb-other-dests h2 { font-size: 20px; margin-bottom: 8px; }
.tb-other-dests p { margin: 0 0 12px; }
.tb-other-dests p:last-child { margin-bottom: 0; }
.tb-other-dests .btn { white-space: normal; text-align: left; }
.tb-budget-hint { margin-top: 12px; font-size: 15px; color: rgba(255, 255, 255, .9); }
.tb-surprise { margin-top: 14px; }
.tb-surprise .text-link { color: #fff; font-size: 16px; }
.tb-surprise .text-link .icon { width: 17px; height: 17px; }
.tb-landing-form .tb-budget-form { max-width: 560px; margin: -32px auto 28px; }
.tb-landing-form .tb-budget-label { color: var(--ink); }
.tb-landing-form .tb-budget-input { border-color: var(--line); box-shadow: var(--shadow); }

/* ---------- Hero ---------- */
.tb-hero-media { position: absolute; inset: 0; z-index: -2; background: url(/img/coast-hero.webp) center 55% / cover no-repeat; }
@media (max-width: 800px) { .tb-hero-media { background-image: url(/img/coast-hero-800.webp); } }

/* ---------- Live example and building animation ---------- */
.tb-example { position: relative; min-height: 120px; }
.tb-building { display: none; list-style: none; padding: 28px 0; margin: 0; gap: 12px; }
.tb-building li { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--muted); opacity: .35; transition: opacity .3s, color .3s; }
.tb-building li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #cfd8e3; flex: none; }
.tb-building li.is-now { opacity: 1; color: var(--ink); }
.tb-building li.is-now::before { border-color: var(--blue-500); border-top-color: transparent; animation: spin .8s linear infinite; }
.tb-building li.is-done { opacity: 1; color: var(--ink); }
.tb-building li.is-done::before { border-color: var(--success); background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.js .is-building .tb-building { display: grid; }
.js .is-building [data-example-result], .js .is-building [data-results-body] { display: none; }
.tb-building-page { padding: 48px 0; max-width: 520px; }
.tb-example-head { font-size: 20px; font-weight: 600; margin: 0 0 18px; }
.tb-example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.tb-example-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.tb-example-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tb-example-card .tx-img { border-radius: 0; }
.tb-example-card > div { padding: 16px 18px 18px; }
.tb-example-card h3 { font-size: 20px; margin: 6px 0 4px; }
.tb-example-card h3 small { font-size: 15px; font-weight: 500; color: var(--muted); }
.tb-example-card p { margin: 0; font-size: 15px; color: var(--text); }
.tb-example-price { margin-top: 10px !important; }
.tb-example-price b { font-size: 22px; color: var(--ink); }
.tb-example-price span { color: #0c5e43; font-weight: 600; font-size: 14px; margin-left: 8px; }
.tb-example-foot { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.tb-example-foot a { color: var(--blue-600); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.tb-example-foot a .icon { width: 16px; height: 16px; }

/* ---------- Budget slider / levels ---------- */
.tb-slider { max-width: 760px; margin: 32px auto 0; text-align: center; }
.tb-slider input[type="range"] { width: 100%; accent-color: var(--blue-500); height: 32px; }
.tb-slider-marks { display: flex; justify-content: space-between; list-style: none; padding: 0; margin: -4px 0 22px; font-size: 14px; }
.tb-slider-marks a { display: inline-block; min-height: 24px; line-height: 24px; color: var(--muted); text-decoration: none; font-weight: 600; }
.tb-slider-marks a:hover { color: var(--blue-600); }
.tb-slider-out { min-height: 120px; }
.tb-level p { font-size: 20px; margin: 0 0 12px; }
.tb-level-dests { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0 0 22px; }
.tb-level-dests li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 15px; }
/* 24px tall tap areas: the padding is taken back by the margins, so the pills keep their size */
.tb-level-dests a { display: inline-block; padding: 3px 0; margin: -3px 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.tb-level-dests span { color: var(--muted); margin-left: 6px; }
.tb-inspo { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 36px 0 0; }
.tb-inspo a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s var(--ease); }
.tb-inspo a:hover { border-color: var(--blue-400); transform: translateY(-2px); }
.tb-inspo b { display: block; font-size: 16px; margin-bottom: 4px; }
.tb-inspo span { color: var(--muted); font-size: 14px; }

/* ---------- Styles ---------- */
.tb-style { display: inline-block; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; background: #fff; transition: border-color .2s, background .2s; }
.tb-style:hover { border-color: var(--navy-800); background: var(--sky-50); }

/* ---------- Planner steps ---------- */
.tb-plan { max-width: 820px; padding: 40px 0 80px; }
.tb-progress { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.tb-greet { color: var(--blue-600); font-weight: 500; margin-bottom: 12px; }
.tb-greet .icon { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.tb-step h1 { font-size: 40px; margin-bottom: 10px; }
.tb-q-sub { font-size: 18px; color: var(--text); margin: 0 0 24px; max-width: 640px; }
.tb-step .tb-budget-input { border: 1.5px solid var(--line); box-shadow: var(--shadow); margin-top: 8px; }
.tb-radio-row { display: flex; gap: 22px; margin-top: 16px; font-size: 15.5px; }
.tb-radio-row label { display: inline-flex; align-items: center; gap: 8px; }
.tb-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 8px; }
.tb-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.tb-choice:hover, .tb-choice:focus-visible { border-color: var(--blue-500); box-shadow: var(--shadow-sm); transform: translateY(-2px); outline: none; }
.tb-choice .icon { width: 24px; height: 24px; color: var(--blue-500); }
.tb-choice b { font-size: 17px; }
.tb-choice small { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.tb-inline-form { margin-top: 26px; max-width: 420px; }
.tb-inline-form > label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.tb-inline-field { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.tb-inline-field select, .tb-inline-field input[type="text"], .tb-when select, .tb-when input[type="date"] { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.tb-nights { margin: 0 0 16px; }
.tb-nights label { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.tb-when { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tb-when-opt { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tb-when-opt > b { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.tb-when-opt > b .icon { width: 20px; height: 20px; color: var(--blue-500); }
.tb-when-opt p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tb-when-opt .btn { margin-top: auto; }
.tb-back { margin-top: 28px; }
.tb-back a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 500; }
.tb-back .icon { width: 16px; height: 16px; }

/* ---------- Results ---------- */
.tb-results, .tb-dream-page, .tb-mytrips { padding: 32px 0 80px; }
.tb-results-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: 20px; }
.tb-results-head h1 { font-size: 36px; margin-bottom: 10px; }
.tb-results-sub { color: var(--text); font-size: 16px; margin: 0; max-width: 720px; }
.tb-answers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; min-width: 320px; font-size: 14px; }
.tb-answers li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; }
.tb-answers span { color: var(--muted); min-width: 84px; }
.tb-answers b { text-transform: capitalize; }
.tb-answers a { margin-left: auto; color: var(--blue-600); font-size: 13px; }
.tb-flex { display: inline-flex; gap: 6px; background: #eef2f7; border-radius: 999px; padding: 4px; margin-bottom: 24px; }
.tb-flex-opt { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.tb-flex-opt .icon { width: 16px; height: 16px; }
.tb-flex-opt.is-on { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-sm); }
.tb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.tb-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
.tb-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.tb-card-over { border-color: #f4e2b0; }
.tb-card-media { position: relative; }
.tb-card-media .tx-img { border-radius: 0; }
/* "Photo of …" under the kicker, which holds the top left corner. */
.tb-card-media .tx-img-label { top: 54px; left: 14px; }
.tb-kicker-on-media { position: absolute; left: 14px; top: 14px; background: var(--navy-800); color: #fff; padding: 6px 12px; border-radius: 999px; }
.tb-card-over .tb-kicker-on-media { background: #6b4a00; }
.tb-match { position: absolute; right: 14px; top: 14px; background: rgba(255, 255, 255, .95); color: var(--navy-800); font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 999px; }
.tb-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tb-card-body h2 { font-size: 24px; }
.tb-card-meta { margin: -6px 0 0; color: var(--muted); font-size: 14.5px; }
.tb-card-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.tb-card-facts li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.tb-card-facts .icon { width: 18px; height: 18px; color: var(--blue-500); flex: none; margin-top: 2px; }
.tb-card-facts small { color: var(--muted); }
.tb-card-price { display: grid; grid-template-columns: 1fr auto; gap: 12px; background: var(--bg-soft); border-radius: var(--radius); padding: 14px 16px; margin-top: 4px; }
.tb-card-price span { display: block; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.tb-card-price b { display: block; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; }
.tb-card-price small { display: block; color: var(--muted); font-size: 12.5px; }
.tb-card-price > div:last-child { text-align: right; }
.tb-card-price > div:last-child b { color: #0c5e43; }
.tb-card-price .is-over b { color: var(--danger); }
.tb-why summary { cursor: pointer; font-weight: 600; color: var(--blue-600); font-size: 14.5px; }
.tb-why-list, .tb-tradeoff-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 14.5px; }
.tb-why-list li, .tb-tradeoff-list li { display: flex; gap: 8px; align-items: flex-start; }
.tb-why-list .icon { width: 16px; height: 16px; color: var(--success); flex: none; margin-top: 3px; }
.tb-tradeoff-list .icon { width: 16px; height: 16px; color: var(--warning); flex: none; margin-top: 3px; }
.tb-tradeoff-title { margin: 12px 0 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tb-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.tb-card-actions .btn { flex: 1 1 auto; min-height: 50px; padding: 0 16px; font-size: 15.5px; }
.tb-over-note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14.5px; margin: 18px 0 0; }
.tb-over-note .icon { width: 16px; height: 16px; }
.tb-note + .tb-cards, .tb-cards + .tb-note { margin-top: 24px; }
.tb-advisor { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 28px; }
.tb-advisor h2 { font-size: 26px; margin-bottom: 10px; }
.tb-advisor p { color: var(--text); margin: 0 0 16px; }
.tb-advisor-links .btn { white-space: normal; text-align: left; }
.tb-advisor-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tb-advisor-links form { display: inline; }
.tb-closest-title { font-size: 24px; margin: 8px 0 18px; }
.tb-more { margin-top: 40px; }
.tb-more h2 { font-size: 22px; margin-bottom: 14px; }

/* ---------- Trip page ---------- */
.tb-trip { padding-bottom: 80px; }
.tb-trip-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; margin-bottom: 32px; }
.tb-trip-media .tx-img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.tb-trip-title h1 { font-size: 42px; margin-bottom: 6px; }
.tb-trip-dates { font-size: 18px; font-weight: 600; color: var(--navy-800); margin: 0 0 10px; }
.tb-trip-blurb { color: var(--text); font-size: 16.5px; line-height: 1.55; margin: 0 0 20px; }
.tb-trip-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tb-trip-actions .btn { white-space: nowrap; }
/* The main actions the rebuild command names, as a compact row that wraps on phones. */
.tb-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }
.tb-quick .btn { white-space: nowrap; }
.tb-checked { display: flex; gap: 8px; align-items: flex-start; color: #0c5e43; font-size: 14px; margin: 14px 0 0; }
.tb-checked .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.tb-trip-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.tb-sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.tb-side-price { background: var(--navy-800); color: #fff; border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow); }
.tb-side-price > span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .75); font-weight: 600; }
.tb-side-price > b { display: block; font-size: 38px; letter-spacing: -0.02em; line-height: 1.1; margin: 6px 0 4px; }
.tb-side-price > small { display: block; color: rgba(255, 255, 255, .8); font-size: 13.5px; }
.tb-side-under, .tb-side-over { margin: 12px 0 0; font-weight: 700; display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 14px; }
.tb-side-under { background: rgba(18, 128, 92, .35); color: #d8f5e8; }
.tb-side-over { background: rgba(192, 57, 43, .4); color: #ffd9d4; }
/* Trips not on sale (www): the not-on-sale line (views/trips/common.js notOnSale) keeps the distance of what it stands in
   for: the header's price-checked line (14px, as .tb-checked), the budget pill in the price panel and the leaks and
   memories feet (12px). Its tag, navy on the navy panel, is outlined in gold as on the dark heroes, and a short last
   line is avoided. None of these rules match where trips are on sale. */
.tb-not-on-sale { text-wrap: pretty; }
.tb-trip-title .tb-not-on-sale { margin: 14px 0 0; }
.tb-side-price .tb-not-on-sale, .tb-leak-foot + .tb-not-on-sale, .tb-mem-foot + .tb-not-on-sale { margin-top: 12px; }
.tb-side-price .tag-soon { border-color: rgba(194, 162, 101, .55); }
.tb-side-price .btn { margin-top: 16px; background: #fff; color: var(--navy-800); }
.tb-side-price .btn:hover { background: var(--blue-50); }
.tb-side-price .tb-muted { color: rgba(255, 255, 255, .7); margin: 10px 0 0; }
.tb-side-why, .tb-side-help, .tb-scorecard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; }
.tb-side-why h3, .tb-side-help h3 { font-size: 15px; margin: 0 0 10px; }
.tb-side-why h3 + ul + h3 { margin-top: 16px; }
.tb-side-help .tb-list { margin: 0; padding-left: 0; list-style: none; font-size: 14.5px; }
.tb-scorecard ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.tb-scorecard li { display: grid; grid-template-columns: 82px 1fr 34px; align-items: center; gap: 10px; font-size: 14px; }
.tb-scorecard li b { text-align: right; }
.tb-scorecard meter, .tb-meter meter { width: 100%; height: 10px; }
.tb-score-match { display: flex; align-items: baseline; gap: 8px; }
.tb-score-match b { font-size: 34px; color: var(--navy-800); letter-spacing: -0.02em; }
.tb-score-match span { color: var(--muted); font-size: 14px; }
.tb-score-how { margin-top: 12px; font-size: 13.5px; color: var(--text); }
.tb-score-how summary { cursor: pointer; color: var(--blue-600); font-weight: 600; }
.tb-score-how ul { padding-left: 18px; margin: 8px 0; }
.tb-score-how p { margin: 8px 0 0; }

/* Budget meter */
.tb-meter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 20px; }
.tb-meter-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.tb-meter-nums span, .tb-gap-nums span, .tb-final-nums span, .tb-dvr .tb-kicker { display: block; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.tb-meter-nums b, .tb-gap-nums b, .tb-final-nums b { display: block; font-size: 24px; letter-spacing: -0.02em; }
.tb-meter-nums > div:last-child b { color: #0c5e43; }
.tb-meter-over .tb-meter-nums > div:last-child b, .tb-gap-nums .is-over b, .tb-final-nums .is-over b { color: var(--danger); }
.tb-meter meter { display: block; }
.tb-meter-label { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-weight: 600; font-size: 14.5px; color: #0c5e43; }
.tb-meter-label .icon { width: 16px; height: 16px; }
.tb-meter-near .tb-meter-label, .tb-meter-full .tb-meter-label { color: var(--warning); }
.tb-meter-over .tb-meter-label { color: var(--danger); }
.tb-meter-compact { padding: 14px 16px; margin: 16px 0; }
.tb-meter-compact .tb-meter-nums b { font-size: 18px; }

/* Recipe */
.tb-recipe dl { margin: 0; }
.tb-recipe-title { font-weight: 700; margin: 0 0 8px; }
.tb-recipe-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.tb-recipe-row dt { color: var(--text); }
.tb-recipe-row dd { margin: 0; font-weight: 600; white-space: nowrap; }
.tb-recipe-row.is-discount dd { color: #0c5e43; }
.tb-recipe-total { border-bottom: 0; font-size: 19px; }
.tb-recipe-total dt, .tb-recipe-total dd { font-weight: 700; color: var(--ink); }
.tb-recipe-left { border-top: 1px dashed var(--line); border-bottom: 0; }
.tb-recipe-left dd { color: #0c5e43; }
.tb-recipe-left.is-over dd { color: var(--danger); }
.tb-recipe-detail { margin-top: 4px; font-size: 13.5px; }
.tb-recipe-detail summary { color: var(--blue-600); cursor: pointer; }
.tb-recipe-detail ul { list-style: none; padding: 6px 0 0; margin: 0; }
.tb-recipe-detail li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); padding: 2px 0; }
.tb-recipe-note { color: var(--muted); font-size: 13.5px; margin: 12px 0 0; }

/* Customizer */
.tb-options { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; } /* a row never widens the list past its column */
.tb-opt { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.4; transition: border-color .2s, background .2s; }
.tb-opt small { color: var(--muted); }
.tb-opt-text { flex: 1 1 auto; min-width: 0; }
.tb-opt > .tb-delta { flex: none; }
a.tb-opt:hover { border-color: var(--blue-500); background: var(--sky-50); }
.tb-options .is-on .tb-opt { border-color: var(--navy-800); background: var(--blue-50); }
/* An experience row wraps instead of widening: a long pill ("included · remove (unprotects it)") goes under the name on a
   phone and may wrap itself, so the page never scrolls sideways. */
.tb-options-check .tb-opt { justify-content: flex-start; flex-wrap: wrap; }
.tb-options-check .tb-opt > .icon { width: 22px; height: 22px; color: var(--blue-500); flex: none; }
.tb-options-check .tb-opt > span:not(.tb-delta) { flex: 1 1 8em; min-width: 0; }
.tb-options-check .tb-opt > .tb-delta { margin-left: auto; white-space: normal; max-width: 100%; text-align: center; }

/* ---------- Pictures in the Travel by Budget slots (server/views/placeImages.js; the figures are images.css's) ---------- */
/* Checkout's summary picture, across the card's top edge, as the old image was. */
.summary-card .tx-img.summary-img { width: calc(100% + 48px); max-width: none; margin: -24px -24px 18px; height: 170px; aspect-ratio: auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
/* A name tile in a small slot: smaller type. */
.tb-return .tx-img--tile, .tb-mytrip .tx-img--tile, .ag-trip .tx-img--tile { padding: 8px 10px; gap: 2px; }
.tb-return .tx-img-tile-title, .tb-mytrip .tx-img-tile-title, .ag-trip .tx-img-tile-title { font-size: 14px; }
.tb-return .tx-img-tile-sub, .tb-mytrip .tx-img-tile-sub, .ag-trip .tx-img-tile-sub { font-size: 11.5px; }
/* A hotel's thumbnail (only when a real photo exists): beside its line on a trip card and in the hotel options. */
.tb-hotel-thumb { width: 120px; flex: none; border-radius: var(--radius-sm); }
.tb-hotel-thumb .tx-img-label { top: 4px; left: 4px; max-width: calc(100% - 8px); padding: 2px 5px; font-size: 10px; line-height: 1.2; white-space: normal; }
.tb-hotel-thumb .tx-img-credit { padding: 1px 5px; font-size: 9.5px; }
.tb-card-facts .tb-card-hotel { align-items: center; }
.tb-options li.has-thumb { display: flex; gap: 12px; align-items: center; }
.tb-options li.has-thumb > .tb-opt { flex: 1 1 auto; min-width: 0; }
.tb-options .tb-hotel-thumb { width: 128px; }
.tb-stars { color: #d99a00; letter-spacing: 1px; }
.tb-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tb-pill { display: inline-flex; flex-direction: column; align-items: center; min-width: 78px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; background: #fff; }
.tb-pill small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
a.tb-pill:hover { border-color: var(--blue-500); }
.tb-pill.is-on { border-color: var(--navy-800); background: var(--blue-50); }
.tb-changes { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.tb-changes a { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; font-size: 15px; }
.tb-changes a:hover { border-color: var(--blue-500); background: var(--sky-50); }
.tb-changes a small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }

/* Know before you book / confidence questions */
.tb-kbyb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 18px; }
.tb-kbyb-grid h3 { margin: 0 0 6px; }
.tb-kbyb-grid p { margin: 0; font-size: 15px; color: var(--text); line-height: 1.5; }
.tb-kbyb-grid .tb-list { font-size: 15px; }
.tb-kbyb { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; margin-bottom: 20px; }
.tb-kbyb h2 { font-size: 22px; margin-bottom: 4px; }
.tb-faq-inline { margin-bottom: 20px; }
.tb-faq-inline h2 { font-size: 22px; margin-bottom: 10px; }
.tb-faq-inline details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 8px; }
.tb-faq-inline summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.tb-faq-inline p { margin: 10px 0 0; color: var(--text); line-height: 1.55; font-size: 15px; }

/* ---------- Review ---------- */
.tb-review, .tb-checkout, .tb-command { padding: 28px 0 80px; }
.tb-checking { display: none; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; padding: 60px 0; justify-content: center; color: var(--navy-800); }
.tb-checking.is-on { display: flex; }
.tb-checking .spinner { border-color: rgba(11, 37, 69, .2); border-top-color: var(--navy-800); width: 24px; height: 24px; }
.tb-price-status { margin-bottom: 20px; font-size: 17px; }
.tb-review-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tb-dl { margin: 0 0 18px; }
.tb-dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.tb-dl dt { color: var(--muted); font-weight: 500; }
.tb-dl dd { margin: 0; }
.tb-dl-nums > div { grid-template-columns: 1fr auto; }
.tb-dl-total dt, .tb-dl-total dd { font-weight: 700; color: var(--ink); }
.tb-final-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: var(--bg-soft); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; }
.tb-final-nums > div:last-child b { color: #0c5e43; }
.tb-final-nums small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tb-ready { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.tb-ready li { display: flex; gap: 8px; align-items: center; }
.tb-ready .icon { width: 17px; height: 17px; color: var(--success); flex: none; }
.tb-ready .is-miss { color: var(--muted); }
.tb-ready .is-miss .icon { color: var(--warning); }
.tb-ready-compact { margin-bottom: 18px; font-size: 14px; grid-template-columns: 1fr 1fr; }
.tb-confirm { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; margin-top: 8px; box-shadow: var(--shadow-sm); }
.tb-confirm h2 { font-size: 26px; margin-bottom: 6px; }
.tb-confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 14px; }
.tb-confirm-actions .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 12px; padding-bottom: 12px; }
.tb-promo { max-width: 320px; margin-bottom: 20px; }
.tb-promo input { text-transform: uppercase; }

/* ---------- Checkout and the booked trip ---------- */
.tb-summary h2 { font-size: 20px; }
.tb-summary .tb-recipe { margin-top: 12px; }
.tb-summary details summary { cursor: pointer; color: var(--blue-600); font-weight: 600; }
.tb-confirm-hero p { color: var(--muted); }
.tb-confirm-hero .ref { font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.tb-countdown { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-600) !important; font-weight: 600; margin-top: 6px; }
.tb-countdown .icon { width: 18px; height: 18px; }
.tb-command-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tb-components { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.tb-components li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.tb-components > li > .icon { width: 24px; height: 24px; color: var(--blue-500); flex: none; margin-top: 2px; }
.tb-components b { font-size: 16px; }
.tb-components p { margin: 4px 0; color: var(--text); font-size: 14.5px; line-height: 1.45; }
.tb-celebrate { display: flex; align-items: center; gap: 8px; background: #e6f6ef; color: #0c5e43; border-radius: var(--radius); padding: 12px 16px; margin: 14px 0 0; font-size: 15.5px; }
.tb-celebrate .icon { width: 18px; height: 18px; }
.tb-messages { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 10px; max-height: 360px; overflow: auto; }
.tb-messages li { padding: 10px 14px; border-radius: var(--radius); background: var(--bg-soft); font-size: 14.5px; }
.tb-messages li.is-staff { background: var(--blue-50); }
.tb-messages li small { color: var(--muted); margin-left: 6px; }
.tb-messages li p { margin: 4px 0 0; white-space: pre-wrap; }

/* ---------- Dream (Journey B) ---------- */
.tb-gap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; margin: 8px 0 24px; box-shadow: var(--shadow-sm); }
.tb-gap h2 { font-size: 24px; margin: 18px 0 6px; }
.tb-gap-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tb-gap-nums > div:last-child b { color: #0c5e43; }
.tb-gap .tb-meter { border: 0; padding: 0; margin: 14px 0 0; }
.tb-gap .tb-meter-nums { display: none; }
.tb-dvr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 12px 0 18px; }
.tb-dvr > div { background: var(--bg-soft); border-radius: var(--radius); padding: 14px 16px; }
.tb-dvr b { display: block; font-size: 24px; letter-spacing: -0.02em; }
.tb-dvr small { color: var(--muted); }
.tb-diff { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.tb-diff li { display: grid; grid-template-columns: 110px 1fr auto 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.tb-diff li > span:first-child { color: var(--muted); }
.tb-arrow { color: var(--muted); }

/* ---------- Accounts and My Trips ---------- */
.tb-auth { padding: 48px 0 80px; }
.tb-auth-card { max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.tb-auth-card h1 { font-size: 30px; margin-bottom: 6px; }
.tb-auth-card h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; margin-bottom: 10px; }
.tb-auth-card h2 .icon { color: var(--success); width: 26px; height: 26px; }
.tb-auth-card .tb-muted { margin-bottom: 18px; }
.tb-auth-card .alert { margin-bottom: 16px; }
.tb-auth-card .field { margin-bottom: 14px; }
.tb-auth-card .btn-block { margin-top: 6px; }
.tb-auth-switch { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); text-align: center; }
.tb-auth .form-row .field { margin-bottom: 0; }
.tb-auth .form-row { margin-bottom: 14px; }
.tb-auth form.tb-auth-card { max-width: 720px; }
.tb-mytrips section { margin-top: 32px; }
.tb-mytrips section h2 { font-size: 22px; margin-bottom: 12px; }
.tb-mytrip-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tb-mytrip { display: grid; grid-template-columns: 160px 1fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 18px 14px 14px; }
.tb-mytrip .tx-img { width: 160px; border-radius: var(--radius-sm); }
.tb-mytrip h3 { font-size: 19px; margin: 4px 0; }
.tb-mytrip h3 a { color: var(--ink); text-decoration: none; }
.tb-mytrip h3 a:hover { color: var(--blue-600); }
.tb-mytrip p { margin: 2px 0; font-size: 15px; color: var(--text); }
.tb-mytrip-gone { grid-template-columns: 1fr auto; }
.tb-empty { padding: 28px; }
.tb-empty .icon { display: inline-block; vertical-align: -7px; margin: 0 8px 0 0; width: 26px; height: 26px; }
.tb-mytrips .tb-return { margin-top: 20px; }

/* ---------- Info pages, destinations ---------- */
.tb-dest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.tb-dest { display: flex; flex-direction: column; position: relative; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: #fff; box-shadow: var(--shadow-sm); }
.tb-dest .tx-img { border-radius: 0; }
/* The picture fills its card: a card beside one whose photo carries its credit above it (images.css, under 200px
   wide) is as tall as that one, and shows no strip under its picture. */
.tb-dest > .tx-img { flex: 1 0 auto; }
.tb-dest img { transition: transform .4s var(--ease); }
.tb-dest:hover img { transform: scale(1.04); }
/* The card's link covers the whole card without wrapping the picture (a photo's credit links stay outside it). */
.tb-dest-link { color: #fff; text-decoration: none; }
.tb-dest-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tb-dest-link:focus-visible { outline: none; }
.tb-dest-link:focus-visible::after { outline: 3px solid var(--blue-400); outline-offset: -3px; border-radius: var(--radius-lg); }
.tb-dest .tx-img-credit { z-index: 2; top: 0; bottom: auto; border-radius: 0 0 0 8px; }
/* The credit holds the top edge (the caption has the bottom), so "Photo of …" sits just under it. */
.tb-dest .tx-img-label { top: 30px; }
/* The card's caption names the place, so a name tile shows only its gradient. */
.tb-dest .tx-img--tile > span { visibility: hidden; }
.tb-dest-body { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(180deg, rgba(7, 26, 51, 0), rgba(7, 26, 51, .85)); display: flex; flex-direction: column; }
.tb-dest-body b { font-size: 19px; }
.tb-dest-body small { color: rgba(255, 255, 255, .85); font-size: 13.5px; }

/* ---------- Admin ---------- */
.tb-admin { padding: 28px 0 80px; }
.tb-admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 14px; }
.tb-admin-head h1 { font-size: 32px; }
.tb-admin-tabs ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.tb-admin-tabs a { display: block; padding: 10px 14px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tb-admin-tabs a:hover { color: var(--blue-600); }
.tb-admin-tabs a[aria-current="page"] { color: var(--navy-800); border-bottom-color: var(--navy-800); }
.tb-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 18px 0 24px; }
.tb-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tb-stat span { display: block; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.tb-stat b { display: block; font-size: 26px; letter-spacing: -0.02em; margin: 4px 0 2px; }
.tb-stat small { color: var(--muted); font-size: 12.5px; }
.tb-admin-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.tb-table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.tb-table thead, .tb-table tbody, .tb-table tr { width: 100%; }
.tb-table th, .tb-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tb-table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.tb-table td small { color: var(--muted); }
.tb-table a { color: var(--blue-600); }
.tb-table select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.tb-wrap { max-width: 360px; white-space: pre-wrap; }
.tb-admin-search { display: grid; grid-template-columns: 1fr 220px auto; gap: 14px; align-items: end; margin-bottom: 18px; }
.tb-admin-inline { display: grid; grid-template-columns: 220px 1fr auto; gap: 14px; align-items: end; margin-top: 18px; }
.tb-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; font-size: 15px; }
.tb-check-grid label { display: flex; align-items: center; gap: 8px; }
.tb-admin .form-row { margin-bottom: 14px; }
.tb-admin p > a .icon, .tb-example-foot a .icon { vertical-align: -3px; }
.tb-admin p > a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-600); }

/* ---------- Toast (share) ---------- */
.tb-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--navy-800); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .25s, transform .25s var(--ease); z-index: 90; pointer-events: none; }
.tb-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Decision layer: verdicts, our call, unlocks, time, locks, reality check, compare, beat ---------- */
.tb-fit { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
.tb-fit-good { background: #e6f6ef; color: #0c5e43; }
.tb-fit-warn { background: #fff4d6; color: #6b4a00; }
.tb-fit-bad { background: #fdecea; color: #8a1f14; }
.tb-fit-compact { font-size: 11.5px; padding: 2px 8px; }
.tb-card-fit { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 8px; font-size: 14px; color: var(--text); line-height: 1.4; }
.tb-card-fit .tb-fit { margin-top: 1px; }
.tb-verdict { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--success); border-radius: var(--radius-lg); padding: 22px 26px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.tb-verdict-warn { border-left-color: var(--warning); }
.tb-verdict-bad { border-left-color: var(--danger); }
.tb-verdict-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tb-verdict-match { color: var(--muted); font-size: 14px; font-weight: 600; }
.tb-verdict h2 { font-size: 22px; line-height: 1.3; margin: 0 0 14px; }
.tb-verdict-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 10px; }
.tb-verdict-facts dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.tb-verdict-facts dd { margin: 0; font-size: 15.5px; line-height: 1.45; }
.tb-verdict-compact { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; }
.tb-verdict-compact p { margin: 0; line-height: 1.45; }
.tb-decide { background: var(--navy-800); color: #fff; border-radius: var(--radius-lg); padding: 26px 30px; margin: 0 0 26px; }
.tb-decide .tb-kicker { color: var(--blue-300); }
.tb-decide h2 { font-size: 26px; margin: 6px 0 10px; color: #fff; letter-spacing: -0.01em; }
.tb-decide h2 a, .tb-decide p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tb-decide p { margin: 0 0 10px; color: #d6e4f5; line-height: 1.55; }
.tb-decide p b { color: #fff; }
.tb-decide .tb-tip { color: #a7e3c6; }
.tb-decide .tb-tip a { color: #fff; }
.tb-decide .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.tb-decide .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.tb-unlock { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.tb-unlock a { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; font-size: 15px; }
.tb-unlock a b { font-size: 17px; color: var(--navy-800); white-space: nowrap; }
.tb-unlock a small { grid-column: 2; color: var(--muted); font-size: 13px; }
.tb-unlock a:hover { border-color: var(--blue-500); background: var(--sky-50); }
.tb-unlock .is-within a { border-color: #a7dcc3; background: #f3fbf7; }
.tb-unlock .is-within a b { color: #0c5e43; }
.tb-better-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tb-time { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 12px 0 6px; }
.tb-time > div { background: var(--bg-soft); border-radius: var(--radius); padding: 14px 16px; }
.tb-time span { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.tb-time b { display: block; font-size: 24px; letter-spacing: -0.02em; margin: 2px 0; }
.tb-time small { color: var(--muted); line-height: 1.4; }
.tb-tip-warn { color: #8a5a00; }
.tb-locks { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 12px; }
.tb-locks label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; background: #fff; }
.tb-locks label .icon { width: 16px; height: 16px; color: var(--blue-500); }
.tb-locks label:has(:checked) { border-color: var(--navy-800); background: var(--sky-50); }
.tb-locks input { accent-color: var(--navy-800); }
.tb-reality { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tb-reality li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.tb-reality li > .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--success); }
.tb-reality .is-heads-up > .icon { color: var(--blue-500); }
.tb-reality .is-verify > .icon { color: var(--warning); }
.tb-reality b { margin-right: 8px; }
.tb-reality p { margin: 2px 0 0; color: var(--text); line-height: 1.45; }
.tb-reality-status { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tb-reality .is-verify .tb-reality-status { color: var(--warning); }
.tb-compare-page .tb-results-head { margin-bottom: 20px; }
.tb-changes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.tb-changes-grid .tb-panel { margin-bottom: 0; }
.tb-changes-grid .tb-list small { display: block; }
.tb-compare-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.tb-compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.tb-compare th, .tb-compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; font-size: 15px; line-height: 1.45; }
.tb-compare thead th { vertical-align: bottom; background: var(--bg-soft); }
.tb-compare thead th b { display: block; font-size: 20px; margin: 2px 0; }
.tb-compare thead th small { display: block; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.tb-compare tbody th { color: var(--muted); font-weight: 600; width: 190px; }
.tb-compare tr.is-same td { color: var(--muted); }
.tb-compare td.tb-compare-total { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.tb-compare-vs { display: block; font-size: 13px; font-weight: 600; color: #0c5e43; letter-spacing: 0; }
.tb-compare-vs.is-over { color: var(--danger); }
.tb-compare tfoot td { border-bottom: 0; }
.tb-compare .btn { white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tb-trip-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .tb-dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .tb-cards, .tb-example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-results-head { flex-direction: column; }
  .tb-answers { min-width: 0; width: 100%; }
  .tb-trip-grid, .tb-review-grid, .tb-command-grid { grid-template-columns: minmax(0, 1fr); }
  .tb-sticky { position: static; }
  .tb-trip-head { grid-template-columns: 1fr; }
  .tb-trip-title h1 { font-size: 34px; }
  .tb-when { grid-template-columns: 1fr; }
  .tb-admin-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tb-section { padding: 44px 0; }
  .tb-budget-input { flex-wrap: wrap; padding: 6px 6px 6px 16px; border-radius: 14px; }
  .tb-budget-input input { font-size: 26px; flex: 1 1 120px; }
  .tb-budget-input .btn { width: 100%; margin-top: 4px; }
  .tb-budget-input-sm { flex-wrap: nowrap; }
  .tb-budget-input-sm .btn { width: auto; margin-top: 0; }
  .tb-cards, .tb-cards-2, .tb-example-grid, .tb-two, .tb-kbyb-grid, .tb-dvr, .tb-gap-nums, .tb-final-nums { grid-template-columns: 1fr; }
  .tb-meter-nums { grid-template-columns: 1fr 1fr; }
  .tb-step h1, .tb-results-head h1 { font-size: 28px; }
  .tb-q-sub { font-size: 16px; }
  .tb-where-go, .tb-where-suggest .btn { width: 100%; justify-content: center; }
  .tb-choices { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tb-choice { padding: 14px; }
  .tb-answers { grid-template-columns: 1fr; }
  .tb-card-price { grid-template-columns: 1fr; }
  .tb-card-price > div:last-child { text-align: left; }
  .tb-card-actions { flex-direction: column; }
  .tb-panel, .tb-kbyb, .tb-confirm, .tb-gap, .tb-auth-card { padding: 18px; border-radius: var(--radius); }
  .tb-trip-actions .btn { width: 100%; }
  .tb-side-price > b { font-size: 32px; }
  .tb-dl > div { grid-template-columns: 1fr; gap: 2px; }
  .tb-diff li { grid-template-columns: 1fr; gap: 2px; }
  .tb-diff li .tb-arrow { display: none; }
  .tb-mytrip { grid-template-columns: 1fr; }
  .tb-mytrip .tx-img { width: 100%; }
  /* On a phone the hotel's photo runs across the top of its option, so the option keeps its full width. */
  .tb-options li.has-thumb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tb-options .tb-hotel-thumb { width: 100%; aspect-ratio: 16 / 6; }
  .tb-return { flex-direction: column; align-items: flex-start; }
  .tb-admin-search, .tb-admin-inline { grid-template-columns: 1fr; }
  .tb-slider-marks { font-size: 12px; }
  .tb-level p { font-size: 17px; }
  .tb-dest-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tb-confirm-actions .btn { width: 100%; }
  .tb-ready-compact { grid-template-columns: 1fr; }
  .tb-verdict-facts, .tb-changes-grid { grid-template-columns: 1fr; }
  .tb-time { grid-template-columns: repeat(2, 1fr); }
  .tb-verdict, .tb-decide { padding: 18px; border-radius: var(--radius); }
  .tb-decide h2 { font-size: 22px; }
  .tb-locks label, .tb-locks .btn { width: 100%; justify-content: center; }
  .tb-better-row .btn { width: 100%; }
}

/* ---------- You gave us / We need / You keep, and the keep-your-money answers ---------- */
.tb-keep { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 16px; padding: 0; }
.tb-keep > div { background: var(--bg-soft); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.tb-keep dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.tb-keep dd { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; }
.tb-keep dd small { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 3px; }
.tb-keep > div:last-child dd { color: #0c5e43; }
.tb-keep.is-over > div:last-child dd { color: var(--danger); }
.tb-decide .tb-keep > div { background: rgba(255, 255, 255, .09); }
.tb-decide .tb-keep dt { color: var(--blue-300); }
.tb-decide .tb-keep dd small { color: var(--blue-300); }
.tb-decide .tb-keep dd { color: #fff; }
.tb-decide .tb-keep > div:last-child dd { color: #a7e3c6; }
.tb-decide .tb-keep.is-over > div:last-child dd { color: #ffb4a8; }
.tb-keep-note { display: flex; gap: 8px; align-items: flex-start; }
.tb-keep-note .icon { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.tb-decide .tb-keep-note { color: #fff; }
.tb-decide .tb-keep-note .icon { color: #a7e3c6; }
.tb-card-upgrade { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 14.5px; font-weight: 600; color: #0c5e43; line-height: 1.4; }
.tb-card-upgrade .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.tb-card-keep { background: var(--sky-50); border: 1.5px dashed var(--blue-500); justify-content: center; }
.tb-card-keep .tb-card-body { justify-content: center; }
.tb-card-keep h2 { font-size: 26px; margin: 0; }
.tb-card-keep p { margin: 0; line-height: 1.5; font-size: 15px; }
.tb-card-keep-sum { font-size: 17px !important; }
.tb-card-keep-sum b { font-size: 26px; color: #0c5e43; }
.tb-card-keep .tb-card-actions { margin-top: 10px; }
.tb-card-keep .tb-card-actions .btn { white-space: normal; min-height: 50px; padding: 10px 16px; line-height: 1.25; }
.tb-example-keep { display: flex; align-items: center; background: var(--sky-50); border: 1.5px dashed var(--blue-500); }
.tb-example-keep p { color: var(--text); margin-top: 6px !important; }
@media (max-width: 640px) {
  .tb-keep { grid-template-columns: 1fr; }
}

/* ---------- Name your price: the form on the trip page, the three answers and the value ladder ---------- */
.tb-price-form { margin: 4px 0 6px; }
.tb-price-form > label { display: block; font-weight: 600; margin-bottom: 8px; }
.tb-price-row { display: flex; align-items: stretch; gap: 10px; }
.tb-price-row .tb-price-currency { display: flex; align-items: center; font-size: 22px; font-weight: 700; color: var(--muted); padding-left: 2px; }
.tb-price-row input { flex: 1 1 120px; min-width: 0; font-size: 22px; font-weight: 700; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.tb-price-row input:focus { outline: 2px solid var(--blue-500); outline-offset: 1px; }
.tb-price-form .tb-small { margin-top: 8px; }
.tb-price-page .tb-results-head h1 { max-width: 760px; }
.tb-price-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tb-price-page .tb-keep { margin-top: 4px; }
.tb-price-page .tb-keep > div { background: var(--bg-soft); }
.tb-price-changes { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.tb-price-changes li { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-soft); font-size: 15px; line-height: 1.45; }
.tb-price-changes li .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--muted); }
.tb-price-changes li.is-tradeoff { background: #fff4d6; }
.tb-price-changes li.is-tradeoff .icon { color: var(--warning); }
.tb-price-changes li.is-improvement { background: #e6f6ef; }
.tb-price-changes li.is-improvement .icon { color: var(--success); }
.tb-price-changes b { font-weight: 600; }
.tb-price-changes small { display: block; color: var(--muted); }
.tb-chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tb-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #e6f6ef; color: #0c5e43; font-size: 13.5px; font-weight: 600; }
.tb-chips .icon { width: 14px; height: 14px; }
.tb-price-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.tb-price-anyway { margin-top: 16px; padding: 14px 16px; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.tb-price-anyway p { margin: 0 0 8px; }
.tb-price-anyway ul { margin: 0 0 12px; }
.tb-price-anyway .btn { white-space: normal; text-align: left; }
.tb-price-cliff { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: #fff4d6; color: #6b4a00; font-size: 15px; line-height: 1.45; }
.tb-price-cliff .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--warning); }
.tb-ladder { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 0; position: relative; }
.tb-ladder li { display: grid; grid-template-columns: 110px 1fr; gap: 4px 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.tb-ladder li:first-child { border-top: 0; }
.tb-ladder li > b { font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.tb-ladder li > b a { color: inherit; text-decoration: none; }
.tb-ladder li > b a:hover { text-decoration: underline; }
.tb-ladder li > div { min-width: 0; }
.tb-ladder li small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; line-height: 1.4; }
.tb-ladder .tb-rung { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.tb-ladder .tb-rung-strong { background: #e6f6ef; color: #0c5e43; }
.tb-ladder .tb-rung-compromise { background: #fff4d6; color: #6b4a00; }
.tb-ladder .tb-rung-major { background: #fdecea; color: #8a1f14; }
.tb-ladder .tb-rung-now { background: var(--sky-50); color: var(--navy-800); margin-left: 6px; }
.tb-ladder .tb-rung-pick { background: var(--navy-800); color: #fff; margin-left: 6px; }
.tb-ladder li.is-cliff { border-top: 2px solid var(--warning); position: relative; margin-top: 22px; }
.tb-ladder .tb-rung-cliff { position: absolute; top: -12px; left: 0; background: var(--warning); color: #fff; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.tb-ladder li.is-current > b { color: var(--navy-800); }
@media (max-width: 640px) {
  .tb-price-grid { grid-template-columns: 1fr; }
  .tb-price-row { flex-wrap: wrap; }
  .tb-price-row .btn { width: 100%; }
  .tb-price-actions .btn { width: 100%; }
  .tb-price-anyway .btn { width: 100%; }
  .tb-ladder li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Your trip, step by step ---------- */
.tb-status-info { background: var(--sky-50); color: var(--navy-800); }
.tb-guide-counts { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tb-guide-counts li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--bg-soft); color: var(--text); }
.tb-guide-counts .icon { width: 15px; height: 15px; }
.tb-guide-counts .is-ready { background: #e6f6ef; color: #0c5e43; }
.tb-guide-counts .is-check { background: #fff4d6; color: #6b4a00; }
.tb-guide-counts .is-info { background: var(--sky-50); color: var(--navy-800); }
.tb-guide { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 16px; }
.tb-guide-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; }
.tb-guide-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tb-guide-head h2 { margin: 0; font-size: 20px; }
.tb-guide-num { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-800); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.tb-guide .tb-reality li > div { min-width: 0; }
.tb-reality .is-heads-up .tb-reality-status { color: var(--blue-500); }
.tb-kbyb-foot { margin: 18px 0 0; }
.tb-kbyb-foot .btn { white-space: normal; text-align: left; }
@media (max-width: 640px) {
  .tb-guide-step { padding: 16px; }
}

/* Your money, the whole vacation */
.tb-vac-rows { margin: 0 0 16px; }
.tb-vac-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tb-vac-row dt { min-width: 0; }
.tb-vac-row dt b { display: block; font-size: 15.5px; }
.tb-vac-row dt small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.tb-vac-row dd { margin: 0; font-weight: 700; font-size: 19px; white-space: nowrap; letter-spacing: -0.02em; }
.tb-vac-row dd small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); text-align: right; }
.tb-vac-row.is-over dd { color: var(--danger); }
.tb-vac-total { border-bottom: 0; }
.tb-vac-total dt { font-weight: 700; font-size: 16px; }
.tb-vac-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--bg-soft); color: var(--muted); vertical-align: middle; }
.tb-vac-tag-known { background: #e3f3ea; color: #0c5e43; }
.tb-vac-tag-reserve { background: #e8effa; color: var(--blue-600); }
.tb-vac-arrive { background: var(--bg-soft); border-radius: var(--radius); padding: 16px 18px; margin: 4px 0 16px; }
.tb-vac-arrive span { display: block; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.tb-vac-arrive b { display: block; font-size: 28px; letter-spacing: -0.02em; color: #0c5e43; margin: 2px 0 4px; }
.tb-vac-arrive.is-over b { color: var(--danger); }
.tb-vac-arrive small { display: block; color: var(--text); font-size: 14px; }
.tb-vac-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tb-vac-actions .btn { flex: 1 1 auto; white-space: normal; text-align: center; }
.tb-vac-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 14.5px; }
.tb-vac-list li { display: flex; justify-content: space-between; gap: 12px; }
.tb-vac-list b { white-space: nowrap; }
.tb-vac-final { margin: 8px 0 18px; }
.tb-vac-final .tb-final-nums { margin-bottom: 12px; }
.tb-vac-fit { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: var(--radius); background: #e3f3ea; color: #0c5e43; font-size: 14.5px; }
.tb-vac-fit .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.tb-vac-fit.is-over { background: #fdecea; color: #8a2a1f; }
.tb-vac-compact .tb-vac-row { padding: 8px 0; }
.tb-vac-compact .tb-vac-row dd { font-size: 16px; }
.tb-vac-compact .tb-vac-row dt { font-size: 14px; }
.tb-vac-after { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-soft); font-size: 14.5px; }
.tb-vac-after .icon { width: 18px; height: 18px; flex: none; color: var(--blue-500); margin-top: 2px; }
.tb-side-keep { margin: 8px 0 0; font-size: 13.5px; color: var(--blue-300); display: flex; gap: 6px; align-items: center; }
.tb-side-keep .icon { width: 14px; height: 14px; flex: none; }
.tb-side-keep a { color: inherit; }
.tb-collision { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-soft); }
.tb-collision .icon { width: 18px; height: 18px; flex: none; color: var(--blue-500); margin-top: 2px; }
.tb-rise-options { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.tb-rise-options li { display: flex; gap: 10px; align-items: flex-start; }
.tb-rise-options li > .icon { width: 18px; height: 18px; flex: none; color: var(--blue-500); margin-top: 3px; }
.tb-rise-options li > div { min-width: 0; flex: 1 1 auto; }
.tb-rise-options p { margin: 2px 0 0; color: var(--text); }
@media (max-width: 640px) {
  .tb-vac-row { flex-direction: column; gap: 4px; }
  .tb-vac-row dd small { text-align: left; }
}

/* One rule away */
.tb-relax-title { font-size: 18px; display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; }
.tb-relax-title .icon { width: 18px; height: 18px; color: var(--blue-500); }
.tb-relax { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.tb-relax a { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); color: inherit; text-decoration: none; }
.tb-relax a:hover { border-color: var(--blue-300); }
.tb-relax a > span { min-width: 0; }
.tb-relax a > span b { display: block; }
.tb-relax a > span small { display: block; color: var(--muted); margin-top: 2px; font-size: 13.5px; }
.tb-relax a > b { white-space: nowrap; font-size: 18px; color: #0c5e43; }

/* Round six: dated cutoffs, why Save more is cheaper, money rows, what blocks a search, covers panel */
.tb-deadline { color: #0c5e43; font-weight: 600; }
.tb-deadline.is-passed { color: var(--muted); font-weight: 500; }
.tb-deadline.is-verify { color: var(--warning); font-weight: 600; }
.tb-iconline { display: flex; gap: 8px; align-items: flex-start; }
.tb-iconline .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.tb-today p { margin: 0 0 10px; }
.tb-vs-title { font-weight: 600; margin: 12px 0 0; font-size: 13.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.tb-vs-lines .is-more .icon, .tb-vs-neutral .icon { color: var(--muted); }
.tb-compare-group th { background: var(--bg-soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding-top: 8px; padding-bottom: 8px; }
.tb-compare-line th { font-weight: 500; padding-left: 28px; }
.tb-cost-why { background: var(--bg-soft); border-radius: var(--radius); padding: 12px 14px; font-size: 14.5px; line-height: 1.5; }
.tb-ready-wrap li { align-items: flex-start; }
.tb-ready-wrap .icon { margin-top: 3px; }
.tb-ready-wrap .is-miss .icon { color: var(--warning); }
.tb-card-keep .tb-card-actions .btn { flex: 1 1 100%; text-align: center; }

/* ---------- The Money Leak Hunter (tb-leak-): what you don't need to pay for ---------- */
.tb-leak-head { margin-bottom: 24px; }
.tb-leak-head h1 { font-size: 36px; margin-bottom: 6px; }
.tb-leak-signature { font-weight: 700; color: var(--navy-800); font-size: 17px; margin: 0 0 8px; }
.tb-leak-table, .tb-mem-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 12px; }
.tb-leak-table th, .tb-leak-table td, .tb-mem-table th, .tb-mem-table td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tb-leak-table th, .tb-mem-table th { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tb-leak-table td small { display: block; color: var(--muted); font-size: 13px; }
.tb-leak-table .tb-leak-num { text-align: right; white-space: nowrap; }
.tb-leak-table tfoot td { color: var(--muted); font-size: 14px; }
.tb-leak-table tfoot .tb-leak-total td { color: var(--ink); font-weight: 700; font-size: 16px; border-bottom: 0; }
.tb-leak-table tr.is-discount td, .tb-leak-table tr.is-on td { background: var(--bg-soft); }
.tb-leak-table tr.is-optional td:nth-child(2) { color: var(--blue-500); font-weight: 600; }
.tb-leak-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.tb-leak-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tb-leak-item small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.tb-leak-amt { font-weight: 700; white-space: nowrap; }
.tb-leak-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; }
/* A control names its version and its price, so on a narrow screen it wraps instead of pushing the page wider. */
.tb-leak-actions .btn, .tb-leak-decide .btn, .tb-leak-foot .btn { white-space: normal; text-align: left; }
.tb-leak-list .tb-leak-actions { margin: 0; }
.tb-leak-rule { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13.5px; }
.tb-leak-rule .icon { width: 14px; height: 14px; }
.tb-leak-nums.is-over > div:last-child b, .tb-leak-nums > div.is-over b { color: var(--danger); }
.tb-leak-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; }
.tb-leak-block { background: var(--bg-soft); border-radius: var(--radius); padding: 14px 16px; }
.tb-leak-block h3 { margin-top: 0; }
.tb-leak-block.is-sacrifice { background: #fffaf0; }
.tb-leak-say { font-size: 16.5px; font-weight: 600; color: var(--navy-800); margin: 6px 0 10px; }
.tb-leak-decide { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 6px; }
.tb-leak-verdict { font-weight: 700; letter-spacing: .02em; }
.tb-leak-verdict.is-worth { color: #0c5e43; }
.tb-leak-verdict.is-keep { color: var(--muted); }
.tb-leak-checks li { align-items: flex-start; }
.tb-leak-checks .icon { margin-top: 3px; }
.tb-leak-checks .is-found .icon { color: var(--warning); }
.tb-leak-checks .is-na .icon { color: var(--muted); }
.tb-leak-status { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-left: 4px; }
.tb-leak-details { margin: 6px 0 14px; }
.tb-leak-details > summary { cursor: pointer; font-weight: 600; }
.tb-leak-review { margin-top: 8px; }
.tb-leak-victory h2 { font-size: 24px; }
.tb-leak-kept { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tb-leak-kept li { background: #e3f3ea; color: #0c5e43; border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; }
.tb-leak-kept.is-miss li { background: #fdecea; color: #8a2a1f; }
.tb-leak-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 0; }
@media (max-width: 640px) {
  .tb-leak-list li, .tb-leak-two { grid-template-columns: minmax(0, 1fr); }
  .tb-leak-steps, .tb-leak-bags { display: block; overflow-x: auto; } /* the step and bag tables scroll inside their panel on a phone */
  .tb-leak-breakdown th:nth-child(2), .tb-leak-breakdown td:nth-child(2) { display: none; } /* the breakdown's Kind column, header and cells together; no other table loses a column */
}

/* ---------- Experience Max (tb-mem-): spend on the memories, not the labels ---------- */
.tb-mem-head { margin-bottom: 24px; }
.tb-mem-head h1 { font-size: 36px; margin-bottom: 6px; }
.tb-mem-signature { font-weight: 700; color: var(--navy-800); font-size: 17px; letter-spacing: .02em; margin: 0 0 8px; }
.tb-mem-main { margin: 12px 0 0; font-size: 15.5px; }
.tb-mem-main.is-protected { background: #e3f3ea; color: #0c5e43; border-radius: var(--radius); padding: 10px 14px; }
.tb-mem-main.is-protected a { color: inherit; font-weight: 600; }
.tb-mem-main.is-missing { margin-top: 12px; }
.tb-mem-protect-link { margin: 4px 0 10px; font-size: 13.5px; }
.tb-mem-protect-link b { color: #0c5e43; letter-spacing: .02em; }
.tb-mem-protect-link small { color: var(--muted); }
.tb-mem-switched { margin: 0 0 10px; }
/* A version over the maximum says so beside its link: the ceiling is never a target. */
.tb-mem-over { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--warning); overflow-wrap: anywhere; }
.tb-mem-list li[data-pick] .tb-leak-item b { color: var(--navy-800); }
.tb-mem-chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tb-mem-chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14.5px; font-weight: 600; color: var(--ink); background: #fff; text-decoration: none; line-height: 1.3; }
a.tb-mem-chip:hover, a.tb-mem-chip:focus-visible { border-color: var(--blue-500); }
.tb-mem-chip.is-on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.tb-mem-chip.is-off { color: var(--muted); background: var(--bg-soft); }
.tb-mem-rank { font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 0 6px; }
.tb-mem-say { font-size: 16.5px; font-weight: 600; color: var(--navy-800); margin: 6px 0 10px; }
.tb-mem-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }
.tb-mem-actions .btn, .tb-mem-foot .btn, .tb-mem-list .btn { white-space: normal; text-align: left; }
.tb-mem-goal { margin: 0 0 12px; }
.tb-mem-receipt h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.tb-mem-lines { list-style: none; padding: 0; margin: 0; }
.tb-mem-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.tb-mem-lines li b { white-space: nowrap; }
.tb-mem-alloc tbody tr[data-key="experiences"] td { font-weight: 700; color: var(--navy-800); }
.tb-mem-days { list-style: none; padding: 0; margin: 12px 0 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tb-mem-days li { background: var(--bg-soft); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tb-mem-days li b { font-size: 15px; }
.tb-mem-days li small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.tb-mem-days li.is-main { background: #e3f3ea; }
.tb-mem-days li.is-main b { color: #0c5e43; }
.tb-mem-days li.is-open { background: var(--sky-50); }
.tb-mem-days li.is-event { background: #fff4d6; } /* the traveler's own event day: theirs, never an open day */
.tb-mem-days li.is-event b { color: #7a4a06; }
.tb-mem-day { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.tb-leak-block.is-pick { background: #e3f3ea; box-shadow: inset 0 0 0 1.5px #a7d8bf; }
.tb-mem-list li { grid-template-columns: minmax(0, 1fr) auto minmax(0, auto); }
.tb-mem-free li { margin-bottom: 6px; }
/* $0 MORE's trades: their own list under the free one, each marked as giving something up. */
.tb-mem-trades li { border-left: 3px solid var(--warning); padding-left: 10px; }
.tb-mem-free small { color: var(--muted); }
.tb-mem-conflicts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tb-mem-ladder { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; counter-reset: rung; }
.tb-mem-ladder li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 12px; border-left: 3px solid var(--line); background: #fff; }
.tb-mem-ladder li.is-sweet { border-left-color: #0c7a4f; background: #e3f3ea; }
.tb-mem-ladder li.is-this { border-left-color: var(--blue-500); }
.tb-mem-ladder li.is-top { border-left-style: dashed; color: var(--muted); }
.tb-mem-rung { font-weight: 600; min-width: 0; flex: 1 1 200px; }
.tb-mem-sweet { font-size: 12.5px; letter-spacing: .06em; color: #0c5e43; }
.tb-mem-dupes { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.tb-mem-dupes h3 { font-size: 16px; margin: 0 0 4px; }
.tb-mem-dupes h3 small { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.tb-mem-table .tb-mem-num { text-align: right; white-space: nowrap; }
.tb-mem-table tfoot td { color: var(--muted); font-size: 14px; }
.tb-mem-table tfoot .tb-mem-total td { color: var(--ink); font-weight: 700; font-size: 16px; border-bottom: 0; }
/* An icon beside a line of text stays on that line (svg is display: block site-wide): the lock before "Protect this
   experience", the sun before the weather line, the check before "Kept on this booking". */
.tb-mem-iconline { display: flex; align-items: flex-start; gap: 6px; }
.tb-mem-iconline > .icon { width: 15px; height: 15px; flex: none; margin-top: .2em; }
.tb-mem-protect-link a { display: inline-flex; align-items: center; gap: 4px; }
.tb-mem-protect-link a .icon { width: 14px; height: 14px; }
.tb-mem-protect tr.is-ok td:last-child { color: #0c5e43; font-weight: 600; }
.tb-mem-protect tr.is-verify td:last-child { color: var(--warning); font-weight: 600; }
.tb-mem-checks li.is-miss .icon { color: var(--warning); }
.tb-mem-close { text-align: center; padding: 28px 0 8px; }
.tb-mem-close .tb-mem-signature { font-size: 20px; }
.tb-mem-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin: 8px 0 0; }
.tb-mem-review { margin-top: 8px; }
.tb-mem-scheduled a { font-weight: 600; }
.tb-mem-worth-form > summary { cursor: pointer; font-weight: 600; margin: 4px 0 10px; }
.tb-mem-chipset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tb-mem-chipset legend { font-weight: 600; font-size: 14.5px; padding: 0; margin-bottom: 6px; width: 100%; }
.tb-mem-pick { cursor: pointer; font-weight: 500; }
.tb-mem-pick input { margin: 0; accent-color: var(--navy-800); }
.tb-mem-pick:has(input:checked) { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.tb-mem-pick:focus-within { outline: 2px solid var(--blue-400); outline-offset: 2px; }
.tb-mem-remember { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin: 4px 0 2px; }
.tb-mem-kept { background: var(--bg-soft); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 12px; }
.tb-mem-kept.is-new { background: #e3f3ea; }
.tb-mem-kept p { margin: 0 0 6px; }
@media (max-width: 640px) {
  .tb-mem-head h1 { font-size: 28px; }
  .tb-mem-days { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tb-mem-list li { grid-template-columns: minmax(0, 1fr); }
  .tb-mem-chip { font-size: 14px; padding: 6px 12px; }
  /* PROTECTION stacks: the check and its status on one line, what we know under it, nothing clipped; the header row stays
     for screen readers (the table carries its roles). */
  .tb-mem-protect thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tb-mem-protect, .tb-mem-protect tbody { display: block; width: 100%; }
  .tb-mem-protect tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .tb-mem-protect td { display: block; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .tb-mem-protect td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: 600; }
  .tb-mem-protect td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .tb-mem-protect td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
  .tb-mem-foot .btn { width: 100%; justify-content: center; }
}

/* ---- Trip Challenge ---- */
.tb-chal-page .tb-results-head { margin-bottom: 20px; }
.tb-chal-form { display: grid; gap: 18px; }
.tb-chal-form .tb-panel { margin: 0; }
.tb-chal-radios { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.tb-chal-radios legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 2px; }
.tb-chal-radios .tb-radio-row { margin-top: 8px; }
.tb-radio-wrap { flex-wrap: wrap; row-gap: 10px; column-gap: 18px; }
.tb-chal-radios + .field { margin-top: 18px; }
.tb-chal-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tb-chal-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; align-items: start; margin-bottom: 18px; }
.tb-challenger-rows { display: grid; gap: 6px 14px; grid-template-columns: max-content 1fr; margin: 0; font-size: 15px; }
.tb-challenger-rows > div { display: contents; }
.tb-challenger-rows dt { color: var(--muted); font-weight: 500; }
.tb-challenger-rows dd { margin: 0; font-weight: 600; }
.tb-challenger-rows dd.is-unknown { color: var(--warning, #b45309); font-weight: 600; }
.tb-challenger-rows dd.is-unknown::before { content: "? "; }
.tb-chal-modes h3 { font-size: 16px; margin: 20px 0 4px; display: flex; align-items: center; gap: 8px; }
.tb-chal-modes h3 .icon { width: 18px; height: 18px; color: var(--blue-600); }
.tb-modes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 12px; }
.tb-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 16px; min-height: 108px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tb-mode:hover, .tb-mode:focus-visible { border-color: var(--blue-500, #2563eb); box-shadow: var(--shadow-sm); }
.tb-mode b { font-size: 16px; color: var(--ink); }
.tb-mode span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.tb-mode[disabled] { opacity: .5; cursor: not-allowed; }
.tb-verdict { border-radius: var(--radius-lg); padding: 26px 28px; margin-bottom: 20px; border: 1.5px solid var(--line); background: #fff; }
.tb-verdict h2 { margin: 2px 0 8px; font-size: 30px; letter-spacing: -0.02em; }
.tb-verdict > p { max-width: 70ch; font-size: 16.5px; line-height: 1.5; }
.tb-verdict .tb-card-actions { margin-top: 16px; }
.tb-verdict .tb-card-actions .btn { flex: 0 1 auto; }
.tb-verdict.is-beat { background: #ecfdf5; border-color: #a7f3d0; }
.tb-verdict.is-tradeoff { background: #eff6ff; border-color: #bfdbfe; }
.tb-verdict.is-keep { background: var(--bg-soft); }
.tb-verdict.is-info { background: #fffbeb; border-color: #fde68a; }
.tb-compare-wrap { position: relative; } /* absolutely positioned sr-only cells stay inside the scrolling wrap */
.tb-score th[scope="row"] { font-weight: 600; white-space: nowrap; }
.tb-score-mark > span { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; white-space: nowrap; }
.tb-score-mark .icon { width: 16px; height: 16px; }
.tb-score tr.is-ours .tb-score-mark { color: var(--success); }
.tb-score tr.is-theirs .tb-score-mark { color: #b91c1c; }
.tb-score tr.is-same .tb-score-mark { color: var(--muted); }
.tb-score tr.is-diff .tb-score-mark { color: var(--blue-600); }
.tb-score tr.is-unknown .tb-score-mark { color: #b45309; }
.tb-receipt-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.tb-receipt-grid > div { background: var(--bg-soft); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.tb-receipt-grid span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.tb-receipt-grid b { font-size: 16px; line-height: 1.35; }
.tb-receipt-grid small { color: var(--muted); font-size: 13px; }
.tb-receipt-grid > div.is-over b { color: #b91c1c; }
.tb-other-modes li { font-size: 15px; }
@media (max-width: 760px) {
  /* The scoreboard stacks: one block per row, theirs then ours, no sideways scrolling. */
  .tb-score-wrap { overflow: visible; }
  .tb-score { min-width: 0; display: block; }
  .tb-score thead { display: none; }
  .tb-score tbody { display: block; }
  .tb-score tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .tb-score tr:last-child { border-bottom: 0; }
  .tb-score th[scope="row"], .tb-score td { display: block; padding: 0; border: 0; font-size: 14.5px; }
  .tb-score th[scope="row"] { grid-column: 1 / -1; white-space: normal; }
  .tb-score td::before { display: block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
  .tb-score td:nth-child(2)::before { content: "Their trip"; }
  .tb-score td:nth-child(3)::before { content: "Our challenger"; }
  .tb-score td.tb-score-mark { grid-column: 1 / -1; margin-top: 2px; }
  .tb-score td.tb-score-mark::before { content: none; }
  .tb-chal-grid { grid-template-columns: 1fr; }
  .tb-challenger-rows { grid-template-columns: 1fr; gap: 2px; }
  .tb-challenger-rows dt { margin-top: 8px; }
  .tb-verdict { padding: 20px 18px; }
  .tb-verdict h2 { font-size: 24px; }
}

/* ---------- The travel agent: conversation left, Trip Canvas right ---------- */
.ag-body main { background: var(--bg-soft); }
.ag-page { padding: 28px 0 56px; }
.ag-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.ag-chat-head h1 { font-size: 30px; letter-spacing: -0.02em; margin: 4px 0 14px; }
.ag-chat-head .tb-muted { max-width: 60ch; }
.ag-messages { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ag-msg { display: flex; }
.ag-msg.is-user { justify-content: flex-end; }
.ag-bubble { max-width: 92%; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-sm); line-height: 1.5; }
.ag-bubble > p:first-child { margin: 0; }
.ag-bubble > p:first-child + * { margin-top: 12px; }
.ag-msg.is-user .ag-bubble { background: var(--navy-800); color: #fff; border-color: var(--navy-800); border-bottom-right-radius: 6px; }
.ag-msg.is-agent .ag-bubble { border-bottom-left-radius: 6px; }
.ag-say { display: inline; margin: 0; }
.ag-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; }
.ag-actions .text-link { margin-left: 4px; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-chip { display: inline-block; background: var(--sky-50); border: 1px solid #d7e3f2; color: var(--navy-800); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: none; text-align: left; }
.ag-chip:hover { background: var(--blue-50); border-color: var(--blue-400); }
.ag-card { margin-top: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.ag-card.is-over { border-color: #f4c7c3; }
.ag-trip { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; margin: 8px 0; }
.ag-trip .tx-img { width: 112px; border-radius: 10px; }
.ag-trip-body p { margin: 2px 0; font-size: 14.5px; display: flex; gap: 6px; align-items: flex-start; }
.ag-trip-body p .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--blue-500); }
.ag-trip-title { display: block !important; font-size: 15.5px !important; }
.ag-trip-title span { color: var(--muted); font-size: 14px; }
.ag-trip-price { margin-top: 6px !important; align-items: baseline !important; }
.ag-trip-price b { font-size: 20px; }
.ag-trip-price span { color: var(--muted); font-size: 13.5px; }
.ag-still { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.ag-still .icon { width: 16px; height: 16px; animation: ag-pulse 1.4s ease-in-out infinite; }
@keyframes ag-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.ag-up, .ag-down, .ag-same, .ag-over { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; font-size: 14.5px; line-height: 1.45; }
.ag-up .icon, .ag-down .icon, .ag-same .icon, .ag-over .icon { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.ag-up { color: #0c5e43; }
.ag-down { color: #8a1f14; }
.ag-same { color: var(--muted); }
.ag-over { color: var(--danger); font-weight: 600; }
.ag-proposal-nums, .ag-diff-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ag-diff-cols { grid-template-columns: 1fr 1fr; }
.ag-proposal-nums > div, .ag-diff-cols > div { background: #fff; border-radius: 10px; padding: 10px 12px; min-width: 0; }
.ag-proposal-nums span, .ag-diff-cols .tb-kicker { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.ag-proposal-nums b, .ag-diff-cols > div > p b { font-size: 20px; letter-spacing: -0.01em; }
.ag-proposal-nums b.is-save { color: #0c5e43; }
.ag-proposal-nums b.is-add { color: var(--navy-800); }
.ag-diff-cols p { margin: 0; }
.ag-diff-cols .tb-small { color: var(--muted); margin-top: 4px; }
.ag-lines { margin-top: 10px; font-size: 14px; }
.ag-lines ul { list-style: none; padding: 0; margin: 8px 0 0; }
.ag-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-top: 1px solid var(--line); }
.ag-options ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ag-options li { background: #fff; border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line); }
.ag-options li.is-current { border-color: var(--blue-400); }
.ag-options li .tb-kicker { margin-bottom: 2px; }
.ag-keep { border-style: dashed !important; }
.ag-verdict-head { font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.ag-verdict.is-beat .ag-verdict-head { color: #0c5e43; }
.ag-verdict.is-keep .ag-verdict-head { color: var(--navy-800); }
.ag-verdict.is-info .ag-verdict-head { color: var(--warning); }
.ag-contract-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ag-contract dl { margin: 6px 0 0; }
.ag-contract dl > div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ag-contract dt { color: var(--muted); }
.ag-contract dd { margin: 0; }
.ag-relax-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.ag-relax-list li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14.5px; }
.ag-progress { list-style: none; margin: 16px 0 0; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 8px; }
.ag-progress li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: start; font-size: 14.5px; color: var(--muted); }
.ag-progress li.is-running, .ag-progress li.is-done { color: var(--ink); }
.ag-progress li.is-skipped { opacity: .7; }
.ag-step-dot { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid #cfd8e3; margin-top: 3px; }
.ag-progress li.is-running .ag-step-dot { border-color: var(--blue-500); border-top-color: transparent; animation: spin .8s linear infinite; }
.ag-progress li.is-done .ag-step-dot { border-color: var(--success); background: var(--success); }
.ag-progress li.is-skipped .ag-step-dot { border-style: dashed; }
.ag-step-text { display: grid; gap: 1px; }
.ag-step-text small { color: var(--muted); font-size: 13px; }
.ag-step-ms { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.ag-progress-done { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; }
.ag-progress-done .icon { width: 16px; height: 16px; }
.ag-composer { margin-top: 16px; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; box-shadow: var(--shadow-sm); position: sticky; bottom: 12px; }
.ag-composer:focus-within { border-color: var(--blue-400); }
.ag-composer textarea { border: 0; outline: 0; resize: vertical; font: inherit; font-size: 16px; padding: 8px 6px; min-height: 44px; }
.ag-chips-quick { grid-column: 1 / -1; }
.ag-foot { margin-top: 14px; max-width: 70ch; }
.ag-examples { margin-top: 14px; }
.ag-examples .ag-chip { font-size: 14px; padding: 8px 14px; }
.ag-canvas { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.ag-canvas-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.ag-empty { color: var(--muted); line-height: 1.5; }
.ag-known { margin: 10px 0 0; }
.ag-known > div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ag-known dt { color: var(--muted); }
.ag-known dd { margin: 0; }
.ag-canvas-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.ag-canvas-nums > div { background: var(--bg-soft); border-radius: 10px; padding: 10px 10px; min-width: 0; }
.ag-canvas-nums span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.ag-canvas-nums b { display: block; font-size: 19px; letter-spacing: -0.01em; margin-top: 2px; }
.ag-canvas-nums small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ag-canvas-nums .is-keep b { color: #0c5e43; }
.ag-canvas-nums .is-over b { color: var(--danger); }
.ag-canvas-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ag-canvas-rows li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.ag-canvas-rows .icon { width: 18px; height: 18px; color: var(--blue-500); margin-top: 2px; }
.ag-canvas-rows b { display: block; font-size: 15px; }
.ag-canvas-rows span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.ag-lock { display: inline-flex; color: var(--navy-800); }
.ag-lock .icon { width: 16px; height: 16px; color: var(--navy-800); }
.ag-canvas-fit { display: flex; gap: 8px; align-items: center; margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.ag-canvas-locks { display: flex; gap: 6px; align-items: center; font-size: 14px; margin: 8px 0 0; color: var(--navy-800); }
.ag-canvas-locks .icon { width: 15px; height: 15px; }
.ag-canvas-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ag-change { display: contents; }
.ag-change summary { list-style: none; cursor: pointer; }
.ag-change summary::-webkit-details-marker { display: none; }
.ag-change > div { flex-basis: 100%; margin: 4px 0; }
.ag-alts { margin-top: 12px; font-size: 14px; }
.ag-alts summary { cursor: pointer; font-weight: 600; }
.ag-alts ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.ag-alts li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.ag-canvas-foot { margin: 12px 0 0; font-size: 14px; }
.ag-sticky { display: none; }
@media (max-width: 1024px) {
  .ag-layout { grid-template-columns: 1fr; }
  .ag-canvas { position: static; }
  .ag-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px calc(16px + env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px)); background: var(--navy-800); color: #fff; font-size: 14px; }
  .ag-sticky b { font-size: 17px; }
  .ag-sticky b.is-over { color: #ffb4a8; }
  .ag-composer { position: static; }
  .ag-page { padding-bottom: 96px; }
}
@media (max-width: 640px) {
  .ag-chat-head h1 { font-size: 24px; }
  .ag-bubble { max-width: 100%; padding: 12px 14px; }
  .ag-proposal-nums, .ag-diff-cols, .ag-contract-cols, .ag-canvas-nums { grid-template-columns: 1fr; }
  .ag-trip { grid-template-columns: 1fr; }
  .ag-trip .tx-img { width: 100%; aspect-ratio: 16 / 9; }
  .ag-composer { grid-template-columns: 1fr; }
  .ag-composer .btn { width: 100%; }
  .ag-canvas { padding: 16px; }
  .ag-canvas-actions .btn, .ag-canvas-actions .ag-say { width: 100%; }
  .ag-canvas-actions .ag-say .btn { width: 100%; justify-content: center; }
  .ag-contract dl > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- The agent on the homepage and after booking ---------- */
.ag-hero-form { max-width: 720px; margin-top: 6px; }
.ag-hero-form textarea { width: 100%; box-sizing: border-box; border: 2px solid transparent; border-radius: 16px; padding: 16px 18px; font: inherit; font-size: 19px; line-height: 1.4; color: var(--ink); background: #fff; box-shadow: var(--shadow-lg); resize: vertical; min-height: 92px; }
.ag-hero-form textarea:focus { outline: 0; border-color: var(--blue-400); }
.ag-hero-form textarea::placeholder { color: #8a99ad; }
.ag-hero-form .tb-budget-hint { margin: 16px 0 8px; }
.tb-example-foot .ag-say { display: inline; }
.tb-example-foot .tb-linkbtn { color: var(--blue-600); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; vertical-align: baseline; }
.tb-example-foot .tb-linkbtn .icon { width: 16px; height: 16px; }
.tb-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tb-way { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tb-way h3 { font-size: 20px; letter-spacing: -0.01em; margin: 0; }
.tb-way .field { margin: 0; }
.tb-way .btn { align-self: flex-start; }
.tb-way .tb-small { margin: 0; }
.ag-after-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.ag-after-form textarea { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; min-height: 56px; resize: vertical; }
.ag-after-form .ag-chips { grid-column: 1 / -1; }
@media (max-width: 1024px) { .tb-ways { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ag-hero-form textarea { font-size: 17px; min-height: 84px; }
  .ag-after-form { grid-template-columns: 1fr; }
}

/* The agent's home after booking, and the agent inside My Trips */
.ag-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.ag-home-grid > div { background: var(--bg-soft); border-radius: 10px; padding: 10px; min-width: 0; }
.ag-home-grid .ag-home-wide { grid-column: 1 / -1; }
.ag-home-grid dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.ag-home-grid dd { margin: 2px 0 0; }
.ag-home-grid dd b { display: block; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.ag-home-grid dd small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ag-home-actions { list-style: none; margin: 6px 0 12px; padding: 0; display: grid; gap: 8px; }
.ag-home-actions li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.ag-home-actions .ag-step-dot { flex: none; margin-top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.ag-home-actions .ag-step-dot.is-ready { background: #0c7a4f; }
.ag-home-actions .ag-step-dot.is-check { background: #b45309; }
.ag-home-actions .ag-step-dot.is-info { background: var(--blue-600); }
.ag-home-asks { margin: 0 0 12px; }
.tb-mytrip-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tb-mytrip-actions form { margin: 0; }
@media (max-width: 720px) { .tb-mytrip-actions { flex-direction: row; flex-wrap: wrap; } }
/* Long answers on an ask card (the compromise options) wrap instead of widening the page */
.ag-msg, .ag-bubble { min-width: 0; }
.ag-actions .ag-say { max-width: 100%; }
.ag-actions .ag-say .btn { white-space: normal; text-align: left; line-height: 1.3; padding-block: 8px; max-width: 100%; }

/* The mission: one number, three ways, the direction pushed, the live draft, the budget slider. */
.ag-hero-number .tb-budget-input { max-width: 720px; }
.ag-hero-number .tb-budget-hint { margin: 12px 0 10px; }
/* WHAT DO YOU WANT FROM THIS TRIP? The four ways in, and BUILD ME AN EXPERIENCE with its promise. */
.ag-hero-entry-q { color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: .08em; padding: 0; margin-bottom: 8px; }
.ag-hero-promise { color: #fff; font-weight: 700; letter-spacing: .04em; font-size: 14.5px; }
.ag-ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ag-way { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ag-way.is-pick { border-color: var(--blue-400); box-shadow: 0 0 0 2px rgba(31, 111, 235, .12); }
.ag-way.is-current { background: #fff; }
.ag-way-head { display: flex; align-items: center; gap: 8px; margin: 0; flex-wrap: wrap; }
.ag-way-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-800); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.ag-way-line { margin: 0; color: var(--muted); font-size: 13px; }
.ag-way .ag-trip { margin: 0; }
/* TOTAL and KEEP sit side by side while both amounts fit, and stack when the card is narrower: a box never spills past
   the card (1fr 1fr could not shrink below an amount's width). */
.ag-way-nums { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-way-nums > div { background: #fff; border-radius: 8px; padding: 6px 8px; flex: 1 1 0; min-width: max-content; max-width: 100%; }
.ag-way-nums span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.ag-way-nums b { display: block; font-size: 17px; }
.ag-way-nums .is-keep b { color: #0c5e43; }
.ag-way-nums .is-over b { color: var(--danger); }
.ag-way-diff { display: flex; gap: 6px; margin: 0; font-size: 13.5px; color: var(--ink); }
.ag-way-diff .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.ag-way .ag-up, .ag-way .ag-down { margin: 0; font-size: 13.5px; }
.ag-way .ag-actions { margin: auto 0 0; }
.ag-chip-sm { font-size: 12.5px; padding: 4px 9px; }
.ag-way-feel { gap: 5px; }
.ag-ways-q { margin: 14px 0 8px; }
.ag-ways-card.is-compact .ag-way { padding: 10px; }
.ag-variants-card .tb-kicker { margin-bottom: 8px; }
.ag-progress-wrap { margin-top: 16px; }
.ag-progress-head { margin: 0 0 6px; font-weight: 700; color: var(--navy-800); letter-spacing: -0.01em; }
.ag-progress-wrap .ag-progress { margin-top: 0; }
.ag-feed { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.ag-feed > summary { cursor: pointer; }
.ag-feed ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.ag-feed li { display: flex; gap: 6px; align-items: flex-start; }
.ag-feed li .icon { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--success); }
.ag-mission { background: linear-gradient(135deg, #0f2a4d, #16407a); color: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.ag-mission .tb-kicker { color: rgba(255, 255, 255, .7); }
.ag-mission-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.ag-mission-head b { font-size: 16px; }
.ag-mission-head .tb-kicker, .ag-mission-title { display: block; } /* the kicker and the title are two lines: "YOUR MISSION · EXPERIENCE MAX" then the title, never run together */
.ag-mission-head .tb-kicker { margin: 0 0 2px; }
.ag-mission-status { font-size: 12.5px; background: rgba(255, 255, 255, .14); border-radius: 14px; padding: 4px 10px; max-width: 100%; overflow-wrap: anywhere; } /* a status that names the version on the canvas wraps inside the panel, never past it */
.ag-mission-status.is-running::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 2px solid #fff; border-top-color: transparent; margin-right: 6px; vertical-align: -1px; animation: spin .8s linear infinite; }
.ag-mission-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.ag-mission-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .7); font-weight: 700; }
.ag-mission-facts dd { margin: 0; font-size: 14px; }
.ag-mission-rules { margin-top: 10px; font-size: 13.5px; }
.ag-mission-rules > summary { cursor: pointer; font-weight: 600; }
.ag-mission-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.ag-mission-cols ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.ag-mission-cols li { display: flex; gap: 6px; align-items: flex-start; }
.ag-mission-cols li .icon { width: 13px; height: 13px; flex: none; margin-top: 3px; }
.ag-mission-rules .tb-muted { color: rgba(255, 255, 255, .7); }
.ag-draft { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ag-draft li { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 14px; padding: 6px 0; border-top: 1px solid var(--line); }
.ag-draft li > span:first-child { color: var(--muted); }
.ag-draft-state { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; border-radius: 999px; padding: 3px 8px; background: var(--bg-soft); color: var(--muted); }
.ag-draft-state.is-searching { color: var(--blue-500); background: var(--blue-50); }
.ag-draft-state.is-searching::after { content: '…'; }
.ag-draft-state.is-verified { color: #0c5e43; background: #e3f3ea; }
.ag-draft-state.is-needs { color: var(--danger); background: #fdecec; }
.ag-slider { margin: 12px 0 0; padding: 12px; background: var(--bg-soft); border-radius: 10px; }
.ag-slider label { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; }
.ag-slider output { font-weight: 700; }
.ag-slider input[type=range] { width: 100%; margin: 8px 0 2px; accent-color: var(--blue-500); }
.ag-slider-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.ag-slider .tb-small { margin: 8px 0 0; }
@media (max-width: 720px) {
  .ag-ways, .ag-mission-cols, .ag-mission-facts { grid-template-columns: 1fr; }
  .ag-draft li { grid-template-columns: 80px minmax(0, 1fr) auto; }
}
/* Save Max: the saver's numbers, how low, the breakpoints, the receipt, the fare badge. */
.ag-saver-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.ag-saver-nums > div { background: var(--bg-soft); border-radius: 10px; padding: 10px; min-width: 0; }
.ag-saver-nums span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.ag-saver-nums b { display: block; font-size: 20px; letter-spacing: -0.01em; margin-top: 2px; }
.ag-saver-nums small { display: block; color: var(--muted); font-size: 12px; }
.ag-saver-nums .is-keep { background: #e3f3ea; }
.ag-saver-nums .is-keep b { color: #0c5e43; }
.ag-saver-actions { margin-bottom: 12px; }
.ag-howlow-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ag-howlow-cols > div { min-width: 0; }
.ag-howlow-num { display: block; font-size: 24px; letter-spacing: -0.01em; }
.ag-howlow-cols small { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.ag-howlow .tb-kicker + .tb-list { margin-top: 4px; }
.ag-bp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ag-bp-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; background: var(--bg-soft); border-radius: 10px; }
.ag-bp-list li > div { min-width: 0; }
.ag-bp-list li > div > small { display: block; color: var(--muted); font-size: 12.5px; }
.ag-bp-list b { color: #0c5e43; }
.ag-receipt-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
.ag-receipt-table td { padding: 6px 0; border-top: 1px solid var(--line); }
.ag-receipt-table .ag-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ag-receipt-table th + th, .ag-receipt-table td + td { padding-left: 10px; }
.ag-receipt-table .is-save { color: #0c5e43; }
.ag-receipt-table .is-add { color: var(--danger); }
.ag-receipt-final td { font-weight: 700; border-top: 2px solid var(--ink); }
.ag-receipt-keep td { color: #0c5e43; font-weight: 700; }
.ag-receipt-wrap { margin: 10px 0 0; font-size: 14px; }
.ag-receipt-wrap > summary { cursor: pointer; font-weight: 600; }
.ag-trap { display: inline-block; margin-left: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; border-radius: 999px; padding: 2px 8px; vertical-align: 1px; }
.ag-trap.is-cheaper-overall { background: #e3f3ea; color: #0c5e43; }
.ag-trap.is-looks-cheaper { background: #fff3dc; color: #8a5a00; }
.ag-trap-text { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
@media (max-width: 720px) {
  .ag-saver-nums, .ag-howlow-cols { grid-template-columns: 1fr; }
}
/* A trip inside a narrow way column: the picture across the top, the facts below it. */
.ag-way .ag-trip { grid-template-columns: 1fr; gap: 8px; margin: 2px 0; }
.ag-way .ag-trip .tx-img { width: 100%; height: 88px; aspect-ratio: auto; }
.ag-way .ag-trip-body p { font-size: 13.5px; }
.ag-way .ag-trip-title { font-size: 14.5px !important; }
.ag-way .ag-trip-price b { font-size: 18px; }
.ag-variants { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Every destination checked: what beat one of the three ways; one decision away; priced weeks. */
.ag-beat .tb-kicker { display: flex; align-items: center; gap: 6px; }
.ag-beat .tb-kicker .icon { width: 15px; height: 15px; color: #0c5e43; }
.ag-beat-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 6px; }
.ag-beat-cols > div { background: var(--bg-soft); border-radius: 10px; padding: 10px; min-width: 0; }
.ag-beat-cols > div > span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.ag-beat-cols ul { margin: 0; padding-left: 16px; font-size: 13.5px; }
.ag-beat-cols p { margin: 0; font-size: 13.5px; }
.ag-beat-cols .is-better { background: #e3f3ea; }
.ag-beat-cols b { display: block; font-size: 18px; letter-spacing: -0.01em; }
.ag-beat-cols .is-less b { color: #0c5e43; }
.ag-beat-cols .is-more b { color: var(--danger); }
.ag-beat-cols small { display: block; color: var(--muted); font-size: 12px; }
.ag-decision-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.ag-decision-opts .ag-say { display: block; }
.ag-decision-btn { width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; font: inherit; color: var(--ink); }
.ag-decision-btn:hover, .ag-decision-btn:focus-visible { border-color: var(--blue-400); box-shadow: 0 0 0 2px rgba(31, 111, 235, .12); outline: none; }
.ag-decision-btn b { font-size: 15px; }
.ag-decision-btn small { grid-column: 2; color: var(--muted); font-size: 12.5px; }
.ag-weeks-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ag-weeks-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; background: var(--bg-soft); border-radius: 10px; padding: 8px 10px; }
.ag-weeks-list li.is-current { background: #fff; border: 1px solid var(--line); }
.ag-weeks-list li.is-over { opacity: .8; }
.ag-weeks-list .ag-week-dates { font-weight: 600; }
.ag-weeks-list li > b { font-size: 16px; text-align: right; }
.ag-weeks-list li > small { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; }
.ag-weeks-list li > small.is-save { color: #0c5e43; }
.ag-weeks-list li > small.is-add { color: var(--danger); }
.ag-weeks-list .ag-say { grid-column: 1 / -1; }
.ag-weeks.is-compact .ag-weeks-list li { padding: 6px 8px; }
.ag-receipt-over td { color: var(--danger); font-weight: 600; }
@media (max-width: 720px) {
  .ag-beat-cols, .ag-decision-opts { grid-template-columns: 1fr; }
}
.tb-watch input[type="text"] { width: 7ch; }
.tb-mytrip.is-alert { border-color: #0c5e43; box-shadow: 0 0 0 2px rgba(12, 94, 67, .12); }

/* ---------- AI Savings Hunter (hu-) ---------- */
.hu-page { padding-bottom: 48px; }
.hu-page .tb-results-head { align-items: center; }
.hu-hero-wait { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.hu-hero-wait:hover { color: var(--sky-50); }
.hu-signature { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.hu-signature li { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--navy-800); }
.hu-empty { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px; box-shadow: var(--shadow-sm); max-width: 760px; }
.hu-empty p { margin: 0 0 14px; line-height: 1.55; }
.hu-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hu-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 18px; }
.hu-row h3 { font-size: 19px; margin: 4px 0; }
.hu-row h3 a { color: var(--ink); text-decoration: none; }
.hu-row h3 a:hover { color: var(--blue-600); }
.hu-row p { margin: 2px 0; font-size: 15px; color: var(--text); }
.hu-new { color: #0c5e43; }
.hu-status { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; vertical-align: middle; }
.hu-status.is-hunting { background: #e6f6ef; color: #0c5e43; }
.hu-status.is-stopped { background: #eef2f7; color: var(--muted); }
.hu-monitoring { line-height: 1.5; max-width: 760px; }

/* the persistent card */
.hu-card { background: var(--navy-800); color: #fff; border-radius: var(--radius-lg); padding: 24px 28px; margin: 8px 0 20px; box-shadow: var(--shadow); }
.hu-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 24px; margin: 0; }
.hu-fact dt { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(214, 231, 248, .86); margin-bottom: 4px; }
.hu-fact dd { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.hu-fact dd a { color: #fff; }
.hu-fact dd small { display: block; font-size: 14px; font-weight: 500; color: rgba(214, 231, 248, .86); }
.hu-fact dd .tb-muted { color: rgba(214, 231, 248, .86); font-weight: 500; font-size: 16px; }
.hu-fact-money dd { font-size: 30px; }
.hu-card .hu-status.is-hunting { background: #0c5e43; color: #fff; }
.hu-card .hu-status.is-stopped { background: rgba(255, 255, 255, .16); color: #fff; }
.hu-target { margin: 18px 0 0; padding: 10px 14px; background: rgba(255, 255, 255, .08); border-radius: var(--radius-sm); font-size: 15px; }
.hu-acceptance { margin: 18px 0 6px; font-size: 16px; line-height: 1.5; }
.hu-card .hu-monitoring { color: rgba(214, 231, 248, .86); margin: 0; }

/* opportunities */
.hu-opps h2, .hu-log h2, .hu-learned h2 { font-size: 22px; margin: 28px 0 12px; }
.hu-quiet { background: #fff; border: 1px dashed #cfd8e3; border-radius: var(--radius); padding: 20px 24px; color: var(--text); line-height: 1.5; }
.hu-opp { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.hu-opp.is-new { border-color: var(--blue-400); }
.hu-opp.is-rejected, .hu-opp.is-taken { opacity: .85; }
.hu-opp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hu-opp h3 { font-size: 22px; margin: 6px 0 10px; }
.hu-opp-status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #eef2f7; color: var(--muted); }
.hu-opp-status.is-new { background: var(--blue-50); color: #0f4c8f; }
.hu-opp-status.is-taken { background: #e6f6ef; color: #0c5e43; }
.hu-decision { font-size: 16.5px; line-height: 1.55; margin: 0 0 8px; }
.hu-trip-facts { color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.hu-prev { border-collapse: collapse; margin: 6px 0 12px; font-size: 14.5px; }
.hu-prev caption { text-align: left; caption-side: top; font-size: 13px; color: var(--muted); padding: 0 0 6px; }
.hu-prev th, .hu-prev td { padding: 5px 14px 5px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.hu-prev thead th { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hu-prev tbody th { font-weight: 600; color: var(--text); }
.hu-why { margin: 0 0 12px; padding-left: 18px; line-height: 1.5; }
.hu-why li { margin: 3px 0; }
.hu-receipt { margin: 8px 0 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; background: var(--bg-soft); }
.hu-receipt summary { cursor: pointer; font-weight: 600; color: var(--navy-800); }
.hu-receipt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 10px; }
.hu-receipt h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.hu-receipt ul { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.5; }
.hu-receipt p { margin: 12px 0 2px; font-size: 14.5px; line-height: 1.5; }
.hu-verified { display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 0 0 14px; }
.hu-verified .icon { width: 16px; height: 16px; flex: none; }
.hu-opp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.hu-opp-actions form { display: inline; }
.hu-improve { flex: 1 1 100%; }
.hu-improve > summary { list-style: none; display: inline-flex; width: auto; }
.hu-improve > summary::-webkit-details-marker { display: none; }
.hu-improve-body { margin-top: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.hu-improve-body p { margin: 0 0 10px; line-height: 1.5; }
.hu-improve-body .ag-chips { margin-bottom: 10px; }
.hu-reject { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.hu-reject label { font-size: 14px; font-weight: 600; }
.hu-reject input { flex: 1 1 180px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; }

/* the hunt's own actions, the run log, what it learned */
.hu-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hu-action-row p { margin: 8px 0 0; line-height: 1.5; }
.hu-runs, .hu-learned-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.hu-runs li, .hu-learned-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 14.5px; line-height: 1.5; }
.hu-learned-list li .tb-muted { margin-right: 6px; }

/* the form */
.hu-form .tb-panel { margin-bottom: 18px; }
.hu-budget { max-width: 420px; }
.hu-radios { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 6px; font-size: 15.5px; }
.hu-radios label, .hu-check { display: inline-flex; align-items: center; gap: 8px; line-height: 1.4; }
.hu-radios-col { flex-direction: column; align-items: flex-start; gap: 10px; }
.hu-radios select { margin-left: 4px; }
.hu-checks { display: grid; gap: 8px; margin-bottom: 16px; font-size: 15.5px; }
.hu-check input { flex: none; }
.hu-inline-num { width: 7ch; min-height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; }
.hu-submit { display: grid; gap: 10px; justify-items: start; }

@media (max-width: 900px) {
  .hu-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hu-card { padding: 20px 18px; }
  .hu-facts { grid-template-columns: 1fr; gap: 12px; }
  .hu-row, .hu-action-row, .hu-receipt-cols { grid-template-columns: 1fr; }
  .hu-opp { padding: 16px; }
  .hu-opp-actions .btn, .hu-opp-actions form, .hu-improve > summary { width: 100%; }
  .hu-opp-actions .btn { justify-content: center; }
  .hu-page .tb-results-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hu-prev { display: block; overflow-x: auto; }
}

/* The money leak hunter's cards on the agent page: a status tag (scan statuses, verdicts, row kinds),
   the scan list, the add-back list, the breakdown tag column and the chips row under the canvas.
   Everything else reuses the proposal numbers, the receipt table and the contract columns. */
.ag-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; vertical-align: middle; }
.ag-tag.is-found, .ag-tag.is-optional { background: #fff3e0; border-color: #f5d7a8; color: #8a4b0f; }
.ag-tag.is-ok, .ag-tag.is-worth, .ag-tag.is-discount { background: #e3f3ea; border-color: #bfe3cf; color: #0c5e43; }
.ag-tag.is-keep, .ag-tag.is-mandatory { background: var(--sky-50); border-color: #d7e3f2; color: var(--navy-800); }
.ag-scan-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.ag-scan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.ag-scan-list li .ag-tag { flex: none; margin-top: 2px; min-width: 96px; text-align: center; }
.ag-scan-list small { display: block; color: var(--muted); font-size: 13px; }
.ag-scan-done { margin: 12px 0 0; }
.ag-addback { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.ag-addback li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; background: #fff; border-radius: 10px; font-size: 14px; }
.ag-addback li > div { min-width: 0; }
.ag-addback li small { display: block; color: var(--muted); font-size: 12.5px; }
.ag-breakdown .ag-tag-cell { text-align: right; padding-right: 8px; }
.ag-cut th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 0; font-weight: 700; }
.ag-leak-chips { width: 100%; margin-top: 4px; }
.ag-victory { margin: 0 0 14px; }
.ag-saver-nums .is-over b { color: var(--danger); }
/* Experience Max on the agent page: the protected experience on the mission panel, the goals row,
   the A/B columns, the lettered version lists and the after-trip "worth it" chips. */
.ag-mission-facts .ag-mission-wide { grid-column: 1 / -1; }
.ag-protected { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ag-protected p { margin: 0; }
.ag-protected-line, .ag-protected-line b { font-size: 14px; line-height: 1.5; } /* one size for the name and its sentence: even lines */
.ag-protected .tb-kicker { width: 100%; }
.ag-protected .tb-muted { color: rgba(255, 255, 255, .75); }
.ag-mission .ag-protected .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.ag-ab .ag-contract-cols > div { padding: 10px; border-radius: 10px; background: var(--bg-soft); }
.ag-ab .ag-contract-cols > div.is-pick { outline: 2px solid var(--navy-800); }
.ag-x-list li.is-current { outline: 2px solid var(--line); }
.ag-x-list .ag-say, .ag-x-conflict .ag-say { display: inline-block; margin-left: 6px; }
.ag-x-signature { margin: 4px 0 8px; }
.ag-x-chips { margin-top: 6px; }
.ag-worth { margin: 0 0 12px; display: grid; gap: 6px; }
.ag-worth .ag-chips { margin: 0; }
/* A signed amount ("−$68.12") never breaks between its sign and its number. */
.ag-amt { white-space: nowrap; }
.ag-protect-table th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.ag-protect-table tr.is-ok td:last-child { color: #0c5e43; font-weight: 600; }
.ag-protect-table tr.is-verify td:last-child { color: var(--warning); font-weight: 600; }
@media (max-width: 720px) {
  .ag-ab .ag-contract-cols { grid-template-columns: 1fr; }
  /* EXPERIENCE PROTECTION stacks on a phone, as the pages' PROTECTION does (.tb-mem-protect): the check and its status
     on one line, what we know under it at the card's full width; the header row stays for screen readers. */
  .ag-protect-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ag-protect-table, .ag-protect-table tbody { display: block; width: 100%; }
  .ag-protect-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 6px 0; border-top: 1px solid var(--line); }
  .ag-protect-table td { display: block; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .ag-protect-table td + td { padding-left: 0; }
  .ag-protect-table td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: 600; }
  .ag-protect-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .ag-protect-table td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
  /* A lettered version list keeps its words at the card's width: "Take it" goes under them, not beside them. */
  .ag-x-list li { grid-template-columns: 26px minmax(0, 1fr); }
  .ag-x-list li > .ag-say, .ag-x-list li > span:last-child { grid-column: 2; justify-self: start; margin-left: 0; }
}

/* Tap targets of at least 44px at phone width (audit UX-14): the budget radios on /plan and the inline
   link-buttons ("Say this to your agent") grow their hit area without moving the words around them. */
@media (max-width: 760px) {
  .tb-radio-row { gap: 16px; }
  .tb-radio-row label { min-height: 44px; }
  .tb-radio-row input[type="radio"] { width: 20px; height: 20px; margin: 0; }
  .tb-linkbtn { display: inline-block; padding: 11px 0; margin: -11px 0; }
}
