/* Visa wait tracker. Tokens only, so dark mode in tools.css works. */
.tool .vw-setup { display: flex; flex-direction: column; gap: 12px; }
.tool .vw-two { display: grid; gap: 12px; }
@media (min-width: 600px) { .tool .vw-two { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.tool .vw-route:empty { display: none; }
.tool input[type="date"] { -webkit-appearance: none; appearance: none; min-width: 0; }
.tool .vw-card { padding: 20px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.tool .vw-kicker { font-size: 13px; line-height: 18px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--link); margin: 0; }
.tool .vw-window { font-size: 36px; line-height: 42px; font-weight: 950; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: rgb(var(--ink)); margin: 0; text-wrap: balance; }
.tool .vw-in { animation: vw-in .4s var(--ease-out); }
@keyframes vw-in { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tool .vw-sub { font-size: 15px; line-height: 22px; font-weight: 650; color: rgb(var(--ink) / .74); margin: 0; }
.tool .vw-band { position: relative; height: 14px; border-radius: 7px; background: rgb(var(--ink) / .08); overflow: hidden; margin-top: 6px; }
.tool .vw-band span { position: absolute; top: 0; bottom: 0; transition: left .4s var(--ease-out), width .4s var(--ease-out); }
.tool .vw-elapsed { left: 0; background: rgb(var(--accent) / .45); }
.tool .vw-likely { background: var(--ramp, rgb(var(--accent))); border-radius: 7px; }
.tool .vw-today { width: 2px; background: rgb(var(--ink)); }
.tool .vw-legend { display: flex; gap: 16px; font-size: 13px; line-height: 18px; font-weight: 700; color: rgb(var(--ink) / .74); }
.tool .vw-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 5px; margin-right: 6px; background: rgb(var(--accent) / .45); }
.tool .vw-legend .vw-l2::before { background: rgb(var(--accent)); }
.tool .vw-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.tool .vw-stats > div:first-child { display: flex; align-items: baseline; gap: 8px; padding: 8px 12px; }
.tool .vw-stats > div:first-child b { font-size: 18px; line-height: 24px; }
.tool .vw-next { padding: 10px 12px !important; }
.tool .vw-next b { font-size: 15px; line-height: 20px; font-weight: 850; }
.tool .vw-rangeline { font-size: 16px; line-height: 22px; font-weight: 800; color: rgb(var(--ink) / .85); margin: -4px 0 0; }
.tool .vw-rangeline:empty { display: none; }
.tool .vw-where { display: grid; gap: 8px; }
@media (min-width: 600px) { .tool .vw-where { grid-template-columns: 1.4fr 1fr; } }
.tool .vw-cmp-t { grid-column: 1 / -1; font-size: 13px; line-height: 18px; font-weight: 650; color: rgb(var(--ink) / .74); margin-top: 2px; }
.tool .vw-stats > div { padding: 10px; border-radius: 14px; background: var(--surface-2); }
.tool .vw-stats b { display: block; font-size: 20px; line-height: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.tool .vw-stats span { display: block; font-size: 12px; line-height: 16px; font-weight: 700; color: rgb(var(--ink) / .74); }
.tool .vw-sec { display: flex; flex-direction: column; gap: 10px; }
.tool .vw-h { font-size: 18px; line-height: 24px; font-weight: 900; letter-spacing: -.01em; }

/* Stage rail */
.tool .vw-rail { display: flex; flex-direction: column; }
.tool .vw-stage { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding-bottom: 14px; }
.tool .vw-stage:last-child { padding-bottom: 0; }
.tool .vw-stage::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: rgb(var(--ink) / .12); }
.tool .vw-stage:last-child::before { display: none; }
.tool .vw-stage.is-done::before { background: rgb(var(--accent)); }
.tool .vw-dot { width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 2px rgb(var(--ink) / .16); color: var(--surface); }
.tool .vw-dot svg { width: 16px; height: 16px; }
.tool .is-done .vw-dot { background: rgb(var(--accent)); box-shadow: none; }
.tool .is-now .vw-dot { box-shadow: inset 0 0 0 2px rgb(var(--accent)), 0 0 0 4px rgb(var(--accent) / .18); }
.tool .vw-st-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--surface); min-width: 0; }
.tool .is-done .vw-st-body { background: transparent; padding: 2px 0 0; }
.tool .vw-st-name { font-size: 16px; line-height: 22px; font-weight: 850; color: rgb(var(--ink)); }
.tool .vw-st-when { font-size: 14px; line-height: 22px; font-weight: 650; color: rgb(var(--ink) / .72); }
.tool .vw-st-src { font-size: 13px; line-height: 18px; font-weight: 600; color: rgb(var(--ink) / .74); }
.tool .vw-st-late { font-size: 13px; line-height: 18px; font-weight: 700; color: rgb(var(--ink) / .8); padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.tool .vw-range { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 10px; font-size: 14px; font-weight: 800; color: var(--link); background: rgb(var(--accent) / .1); text-decoration: underline dotted; text-underline-offset: 3px; }
.tool .vw-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; margin-top: 4px; }
.tool .vw-edit input[type="number"] { width: 76px; min-height: 44px; padding: 8px 10px; }
.tool .vw-edit input[type="date"] { width: 170px; min-height: 44px; }
.tool .vw-mini { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 14px; font-size: 14px; font-weight: 850; background: var(--surface-2); color: rgb(var(--ink)); box-shadow: inset 0 0 0 1.5px rgb(var(--ink) / .3); transition: transform .15s ease; }
.tool .vw-mini:active { transform: scale(.96); }
.tool .vw-mini svg { width: 16px; height: 16px; }
.tool .vw-ghost { background: transparent; color: rgb(var(--ink) / .7); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .16); }
.tool .vw-done { margin-top: 6px; }
.tool .vw-link { min-height: 32px; padding: 0; font-size: 14px; font-weight: 800; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

.tool .vw-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tool .vw-actions .btn-primary { grid-column: 1 / -1; }
.tool .vw-actions .btn { min-width: 0; }
.tool .vw-ibtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.tool .vw-ibtn svg { width: 20px; height: 20px; }
.tool .vw-actions .btn-primary { padding: 0 12px; }
.tool .vw-sq { padding: 0 12px; }

/* Compare routes */
.tool .vw-compare { border-radius: 16px; background: var(--surface); padding: 0 14px; }
.tool .vw-compare summary { min-height: 52px; display: flex; align-items: center; font-size: 16px; font-weight: 800; color: rgb(var(--ink)); cursor: pointer; list-style: none; }
.tool .vw-compare summary::-webkit-details-marker { display: none; }
.tool .vw-compare summary::after { content: '+'; margin-left: auto; font-size: 22px; font-weight: 600; color: rgb(var(--ink) / .5); }
.tool .vw-compare[open] summary::after { content: '\2212'; }
.tool .vw-cmp { display: grid; gap: 4px; padding: 10px 0 14px !important; }
.tool .vw-cmp button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; padding: 10px 12px; border-radius: 12px; text-align: left; background: var(--surface-2); color: rgb(var(--ink)); }
.tool .vw-cmp button[aria-current] { box-shadow: inset 0 0 0 2px rgb(var(--accent)); }
.tool .vw-cmp-n { font-size: 15px; font-weight: 850; }
.tool .vw-cmp-m { grid-column: 2; grid-row: 1; font-size: 13px; font-weight: 750; color: rgb(var(--ink) / .74); font-variant-numeric: tabular-nums; }
.tool .vw-cmp-w { grid-column: 1 / -1; font-size: 14px; font-weight: 650; color: rgb(var(--ink) / .72); }

/* Checklist */
.tool .vw-check { display: grid; gap: 6px; }
.tool .vw-check button { width: 100%; min-height: 48px; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; border-radius: 14px; background: var(--surface); text-align: left; font-size: 15px; line-height: 22px; font-weight: 650; color: rgb(var(--ink)); }
.tool .vw-box { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgb(var(--ink) / .2); color: transparent; transition: background-color .2s ease; }
.tool .vw-box svg { width: 16px; height: 16px; }
.tool [aria-checked="true"] .vw-box { background: rgb(var(--accent)); box-shadow: none; color: var(--surface); }
.tool [aria-checked="true"] > span:last-child { color: rgb(var(--ink) / .6); text-decoration: line-through; }
.tool .vw-idea { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 20px; background: rgb(var(--accent) / .1); }
.tool .vw-idea-t { font-size: 17px; line-height: 24px; font-weight: 800; color: rgb(var(--ink)); }
.tool .tool-hint, .tool .tool-note { color: rgb(var(--ink) / .74); }

/* Toast lives in a body-level host: the article has a transform, which would pin fixed elements to it. */
.tool.vw-host { display: contents; }
.tool .vw-toast { position: fixed; z-index: 50; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); padding: 10px 18px; border-radius: 20px; background: rgb(var(--ink)); color: var(--surface); font-size: 14px; line-height: 20px; font-weight: 800; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; white-space: nowrap; transition: opacity .2s ease, transform .3s var(--ease-out); }
.tool .vw-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 600px) { .tool .vw-window { font-size: 44px; line-height: 50px; } }
@media (prefers-reduced-motion: reduce) { .tool .vw-in { animation: none; } .tool .vw-band span, .tool .vw-toast { transition: none; } }
@media (prefers-color-scheme: dark) { .tool .vw-toast { color: #12061F; } }
@media (hover: hover) and (pointer: fine) { .tool .vw-cmp button:hover { background: rgb(var(--accent) / .12); } }
.tool .vw-st-when { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.tool .vw-ends { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: rgb(var(--ink) / .74); }
.tool .vw-r { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 900px) {
  .tool .vw-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .tool .vw-cols > * { grid-column: 1; }
  .tool .vw-cols > .vw-r { grid-column: 2; grid-row: 1 / span 6; position: sticky; top: 96px; }
  .tool .vw-window { font-size: 36px; line-height: 42px; }
}
.tool .vw-st-due { font-size: 13px; line-height: 18px; font-weight: 800; color: var(--link); }
.tool .vw-range { gap: 6px; }
.tool .vw-range svg { width: 14px; height: 14px; }
/* Round 7: official-style percentiles, the basis of the estimate, plain stage words, the partner note */
.tool .vw-pct { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 14px; line-height: 20px; color: rgb(var(--ink) / .8); }
.tool .vw-pct[hidden] { display: none; }
.tool .vw-pct b { color: rgb(var(--ink)); }
.tool .vw-basis { margin-top: 12px; font-size: 13px; line-height: 18px; color: rgb(var(--ink) / .72); }
.tool .vw-basis a { color: var(--link); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.tool .vw-st-plain { margin-top: 2px; font-size: 14px; line-height: 19px; color: rgb(var(--ink) / .75); }
.tool .vw-partner { padding: 12px 14px; border-radius: 16px; background: rgb(var(--accent) / .12); color: rgb(var(--ink)); font-size: 15px; line-height: 21px; font-weight: 750; }
.tool .vw-partner[hidden] { display: none; }
/* Two-column desktop: the setup column is narrow, so route, date and step stack at full width (no cut-off names) */
@media (min-width: 900px) { .tool .vw-cols .vw-two, .tool .vw-cols .vw-where { grid-template-columns: 1fr; } .tool .vw-setup select { width: 100%; } }
