/* Loading and onboarding inherit the watchlist's editorial design tokens. */
.watchlist-loading-shell { display: none; padding: 30px 0; }
.watchlist-onboarding .watch-status-card { display: none; }
.watchlist-loading .watchlist-loading-shell { display: block; }
.watchlist-loading .watch-status-card,
.watchlist-loading .restaurant-section,
.watchlist-loading .slots-section,
.watchlist-load-error .watch-status-card,
.watchlist-load-error .restaurant-section,
.watchlist-load-error .slots-section { display: none !important; }
.watchlist-loading-title { margin: 0 0 8px; color: var(--ink); font: 500 29px/1.2 var(--restaurant-serif); }
.watchlist-loading-note { margin: 0 0 30px; color: var(--ink-3); font-size: 13px; }
.watchlist-skeleton { display: flex; flex-direction: column; gap: 12px; padding: 25px; margin: 12px 0; border: 1px solid var(--rule-color); border-radius: 12px; background: var(--surface); }
.watchlist-skeleton i, .welcome-card-skeleton i { display: block; width: 38%; height: 15px; border-radius: 4px; background: linear-gradient(100deg, var(--surface-2) 20%, var(--ground) 45%, var(--surface-2) 70%); background-size: 250% 100%; animation: watchlist-shimmer 1.6s ease-in-out infinite; }
.watchlist-skeleton i:first-child { width: 24%; height: 21px; }
.watchlist-skeleton i:last-child { width: 58%; height: 11px; }
@keyframes watchlist-shimmer { to { background-position: -170% 0; } }
#watchlist-load-error { padding: 32px 24px; border: 1px solid var(--rule-color); border-radius: 12px; background: var(--surface); }
#watchlist-load-error h2 { margin: 0 0 10px; color: var(--ink); font: 500 27px/1.25 var(--restaurant-serif); }
#watchlist-load-error p { margin: 0 0 20px; color: var(--ink-2); font-size: 14px; }
.watchlist-refresh-message { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 10px 13px; color: var(--ink-2); border: 1px solid var(--rule-color); border-radius: 9px; background: var(--surface); font-size: 12px; }
.watchlist-refresh-message p { margin: 0; }
.watchlist-refresh-message.is-error { border-color: var(--rule-strong); }
.watchlist-refresh-message[hidden], .watchlist-load-error[hidden], #restaurant-discovery[hidden] { display: none !important; }
.ux-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding: 8px 13px; border: 1px solid var(--rule-strong); border-radius: 8px; background: transparent; color: var(--ink); font: 500 13px/1.4 var(--sans); cursor: pointer; }
.ux-secondary:hover { border-color: var(--open-line); color: var(--open); background: var(--open-bg); }
.ux-secondary:focus-visible, .welcome-skip:focus-visible, .welcome-filters select:focus-visible, .discover-restaurants-button:focus-visible { outline: 2px solid var(--open); outline-offset: 3px; }
.welcome-panel { padding: 30px 0 16px; width: 100%; color: var(--ink); }
.welcome-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; }
.welcome-eyebrow { display: block; margin-bottom: 12px; color: var(--ink-3); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.welcome-heading h2 { margin: 0 0 10px; color: var(--ink); font: 500 clamp(28px, 3.5vw, 39px)/1.15 var(--restaurant-serif); letter-spacing: -.015em; }
.welcome-heading p { max-width: 530px; margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.welcome-skip { display: inline-flex; align-items: center; justify-content: flex-end; flex: none; gap: 8px; padding: 7px 0; border: 0; background: transparent; color: var(--ink-2); font: 400 12px/1.5 var(--sans); cursor: pointer; }
.welcome-skip:hover { color: var(--open); }
.welcome-steps { display: flex; flex-wrap: wrap; gap: 14px 32px; list-style: none; margin: 24px 0 28px; padding: 0 0 23px; border-bottom: 1px solid var(--rule-color); }
.welcome-steps li { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--ink-2); }
.welcome-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--rule-strong); color: var(--open); font-size: 11px; }
.welcome-filters { display: flex; align-items: flex-end; gap: 12px; margin: 24px 0 18px; }
.welcome-filters label { display: flex; flex-direction: column; gap: 6px; color: var(--ink-3); font-size: 11px; }
.welcome-filters select { min-width: 185px; min-height: 41px; padding: 8px 32px 8px 11px; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: 400 13px var(--sans); }
.welcome-filter-note { margin-left: auto; padding-bottom: 11px; color: var(--ink-3); font-size: 11px; }
.welcome-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.welcome-restaurant { display: flex; flex-direction: column; min-width: 0; padding: 18px; border: 1px solid var(--rule-color); border-radius: 12px; background: var(--surface); }
.welcome-restaurant-top { margin-bottom: 13px; }
.welcome-restaurant h3 { margin: 0 0 7px; color: var(--ink); font: 600 22px/1.25 var(--restaurant-serif); overflow-wrap: anywhere; }
.welcome-restaurant p { color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.welcome-location { margin: 0 0 3px; }
.welcome-cuisine { margin: 0 0 21px; }
.welcome-restaurant .ux-secondary { justify-content: space-between; width: 100%; margin-top: auto; }
.welcome-footnote { margin: 18px 0 0; color: var(--ink-3); font-size: 11px; line-height: 1.7; }
.welcome-unavailable { padding: 20px 0; color: var(--ink-2); font-size: 13px; }
.welcome-card-skeleton { display: flex; flex-direction: column; gap: 18px; min-height: 190px; padding: 23px; border: 1px solid var(--rule-color); border-radius: 12px; background: var(--surface); }
.welcome-card-skeleton i:first-child { width: 25%; height: 12px; }
.welcome-card-skeleton i:nth-child(2) { width: 75%; height: 24px; }
.welcome-card-skeleton i:last-child { width: 60%; height: 14px; }
.discover-restaurants-button { display: block; padding: 3px 0 13px; border: 0; background: none; color: var(--open); font: 400 12px/1.5 var(--sans); cursor: pointer; }
.showing-discovery .restaurant-platform-tabs, .showing-discovery .restaurant-flow-search-row, .showing-discovery #restaurant-flow-results, .showing-discovery .discover-restaurants-button { display: none; }
.welcome-panel.is-discovery { padding-top: 18px; }
.restaurant-slot-choice { display: inline-flex; align-items: center; gap: 2px; }
.restaurant-slot-guests { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }
.restaurant-slot-details { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 2px 4px; color: var(--ink-3); font-size: 11.5px; text-decoration: none; white-space: nowrap; }
.restaurant-slot-details:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.restaurant-slot-details:focus-visible { outline: 2px solid var(--open); outline-offset: 3px; border-radius: 3px; }
.history-slot-guests, .history-slot-experience { color: var(--ink-3); font-size: 12px; }
.history-slot-experience { display: block; margin-top: 5px; }
.history-restaurant-failure { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 5px 0; }
.history-failure-marker { color: var(--warning); font-size: 13px; }
.history-failure-name { color: var(--ink-2); font-size: 13px; }
.history-failure-reason { display: block; max-width: 560px; margin-top: 3px; color: var(--ink-3); font-size: 11.5px; line-height: 1.5; }
.history-failure-label { color: var(--warning); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.restaurant-scan-source { color: var(--ink-3); font-size: 11px; }
.history-run-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.history-run-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.history-run-heading > .time { flex: none; padding-top: 3px; font-size: 11px; }
.history-load-error { padding: 18px 0; color: var(--ink-2); font-size: 13px; }
.history-load-error p { margin: 0 0 15px; }
.history-tabbar [role="tab"]:focus-visible, .history-back:focus-visible { outline: 2px solid var(--open); outline-offset: 4px; border-radius: 3px; }
.history-list:focus-visible { outline: 1px solid var(--rule-strong); outline-offset: 4px; }
.history-open-link.is-unverified { color: var(--ink-2); border-color: var(--rule-strong); background: transparent; }
@media (max-width: 780px) {
    .welcome-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .welcome-filter-note { display: none; }
    .welcome-heading { flex-direction: column; gap: 10px; }
    .welcome-skip { justify-content: flex-start; }
}
@media (max-width: 480px) {
    .welcome-panel { padding-top: 19px; }
    .welcome-heading h2 { font-size: 31px; }
    .welcome-heading p { font-size: 13px; }
    .welcome-steps { display: grid; gap: 11px; margin: 20px 0; padding-bottom: 20px; }
    .welcome-filters { align-items: stretch; gap: 9px; }
    .welcome-filters label { flex: 1; min-width: 0; }
    .welcome-filters select { width: 100%; min-width: 0; padding-right: 21px; }
    .welcome-grid { grid-template-columns: minmax(0, 1fr); }
    .welcome-restaurant { padding: 17px; }
    .welcome-restaurant h3 { font-size: 23px; }
    .welcome-cuisine { margin-bottom: 17px; }
    .welcome-restaurant .ux-secondary { min-height: 44px; }
    .restaurant-slot-details { min-height: 44px; }
    .history-restaurant-failure { grid-template-columns: 8px minmax(0, 1fr); }
    .history-failure-label { grid-column: 2; margin-top: -3px; }
    .history-run-heading { flex-direction: column; gap: 7px; }
    .history-run-heading > .time { padding-top: 0; }
    .watchlist-skeleton { padding: 20px; }
    .watchlist-skeleton i:first-child { width: 53%; }
    .watchlist-skeleton i:last-child { width: 85%; }
}
@media (prefers-reduced-motion: reduce) {
    .watchlist-skeleton i, .welcome-card-skeleton i { animation: none; }
}
