:root {
    --bg: #f3efe7;
    --bg-deep: #f7f3eb;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-strong: #ffffff;
    --text: #182028;
    --muted: #596879;
    --line: rgba(24, 32, 40, 0.1);
    --brand: #0d63ff;
    --brand-deep: #0a4fcc;
    --brand-soft: rgba(13, 99, 255, 0.12);
    --accent: #ff8357;
    --success: #118a53;
    --warning: #b16a00;
    --danger: #c0392b;
    --shadow: 0 18px 48px rgba(24, 32, 40, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top center, rgba(13, 99, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.page-shell {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.25rem 0 3rem;
}

.site-header {
    position: sticky;
    top: 1rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 28px rgba(24, 32, 40, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 16px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(145deg, var(--brand) 0%, #1ab3ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-copy strong {
    font-size: 1rem;
}

.brand-copy small,
.eyebrow,
.quota-label,
.side-card-label,
.status-label {
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(24, 32, 40, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--text);
    cursor: pointer;
}

.header-menu-icon {
    display: grid;
    gap: 4px;
}

.header-menu-icon span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.header-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.header-link:hover {
    color: var(--text);
}

.account-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(24, 32, 40, 0.06);
    color: var(--muted);
    font-size: 0.92rem;
}

.header-credit-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #3159b7;
    font-size: 0.92rem;
    font-weight: 700;
}

.header-credit-pill strong {
    color: var(--text);
    font-size: 1rem;
}

.main-shell {
    display: grid;
    gap: 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-stage {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.75rem 0 0.75rem;
}

.hero-eyebrow {
    margin: 0;
}

.hero-title {
    max-width: 980px;
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: clamp(2.7rem, 5vw, 4.35rem);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-title span {
    color: #2563eb;
}

.hero-subtitle {
    max-width: 860px;
    margin: 0;
    color: #667085;
    font-size: clamp(1.15rem, 1.9vw, 1.65rem);
    line-height: 1.45;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
    align-items: start;
}

.hero-copy,
.hero-side,
.results-card,
.empty-card,
.loading-card,
.dashboard-card,
.auth-card {
    border: 1px solid rgba(24, 32, 40, 0.08);
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 2rem;
}

.hero-copy h1,
.dashboard-hero h1,
.auth-copy h1,
.status-card h1 {
    margin: 0.35rem 0 0.9rem;
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: clamp(2.5rem, 4vw, 4.3rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.hero-lead,
.auth-copy p,
.dashboard-hero p,
.empty-card p,
.loading-card p,
.dashboard-note,
.side-card p,
.status-panel p,
.results-header p,
.sources-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.quota-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1.5rem 0;
}

.quota-card,
.metric-card {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(247, 250, 255, 0.96) 100%);
    border: 1px solid rgba(13, 99, 255, 0.08);
}

.quota-card strong,
.metric-card strong {
    display: block;
    margin: 0.3rem 0 0.15rem;
    font-size: 1.8rem;
    letter-spacing: -0.04em;
}

.quota-card small,
.metric-card span {
    color: var(--muted);
}

.search-panel {
    display: grid;
    gap: 1rem;
}

.hero-search-panel {
    width: min(1240px, 100%);
    margin-top: 0.5rem;
    justify-items: center;
}

.search-form {
    display: grid;
    gap: 0.65rem;
}

.hero-form {
    width: min(100%, 1180px);
    justify-items: center;
}

.search-utility-row {
    width: min(960px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    color: var(--muted);
}

.search-utility-row p {
    margin: 0;
    font-size: 0.95rem;
}

.button-barcode {
    white-space: nowrap;
}

.button-gift-ideas {
    white-space: nowrap;
}

.gift-ideas-panel {
    width: min(960px, 100%);
    display: grid;
    gap: 0.95rem;
    padding: 1.1rem;
    border: 1px solid rgba(24, 32, 40, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(24, 32, 40, 0.07);
    text-align: left;
}

.gift-ideas-panel-hidden {
    display: none;
}

.gift-ideas-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.gift-ideas-panel-header h2 {
    margin: 0.2rem 0 0;
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: clamp(1.4rem, 2vw, 1.95rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.gift-ideas-panel-header p,
.gift-ideas-hint,
.gift-ideas-results-heading p,
.gift-idea-card p,
.gift-ideas-feedback p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.gift-ideas-form {
    display: grid;
    gap: 0.8rem;
}

.gift-ideas-form textarea {
    width: 100%;
    min-height: 102px;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(24, 32, 40, 0.12);
    border-radius: 18px;
    resize: vertical;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    line-height: 1.6;
}

.gift-ideas-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.gift-ideas-hint {
    font-size: 0.92rem;
}

.gift-ideas-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.gift-ideas-feedback {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(24, 32, 40, 0.08);
    border-radius: 18px;
    background: rgba(13, 99, 255, 0.05);
    color: var(--brand-deep);
}

.gift-ideas-feedback-hidden,
.gift-ideas-results-hidden {
    display: none;
}

.gift-ideas-feedback strong,
.gift-ideas-results-heading strong {
    display: block;
    font-size: 0.98rem;
}

.gift-ideas-spinner {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid rgba(13, 99, 255, 0.18);
    border-top-color: var(--brand);
    animation: spin 0.8s linear infinite;
}

.gift-ideas-results {
    display: grid;
    gap: 0.95rem;
}

.gift-ideas-results-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.gift-ideas-results-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

.gift-idea-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.gift-idea-card {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(13, 99, 255, 0.1);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.gift-idea-card h3 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.35;
}

.gift-idea-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.gift-idea-count,
.gift-idea-price {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gift-idea-count {
    background: rgba(13, 99, 255, 0.08);
    color: var(--brand-deep);
}

.gift-idea-price {
    background: rgba(24, 32, 40, 0.06);
    color: var(--muted);
}

.gift-idea-search-button {
    justify-self: start;
}

.gift-ideas-empty {
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(24, 32, 40, 0.08);
    background: rgba(24, 32, 40, 0.03);
    color: var(--muted);
}

.barcode-resolve-status {
    width: min(960px, 100%);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(13, 99, 255, 0.14);
    border-radius: 18px;
    background: rgba(13, 99, 255, 0.06);
    color: var(--brand-deep);
}

.barcode-resolve-status-hidden {
    display: none;
}

.barcode-resolve-status strong {
    display: block;
    font-size: 0.98rem;
}

.barcode-resolve-status p {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.barcode-resolve-spinner {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid rgba(13, 99, 255, 0.18);
    border-top-color: var(--brand);
    animation: spin 0.8s linear infinite;
}

.location-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(960px, 100%);
    padding: 0.85rem 1rem;
    border: 1px solid rgba(24, 32, 40, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
}

.location-callout.is-hidden {
    display: none;
}

.location-callout-copy {
    display: grid;
    gap: 0.12rem;
    text-align: left;
}

.location-callout-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.search-label {
    font-size: 0.95rem;
    font-weight: 700;
}

.search-bar {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(24, 32, 40, 0.1);
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-search-bar {
    width: 100%;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 28px;
    border-color: rgba(24, 32, 40, 0.09);
    box-shadow: 0 4px 18px rgba(24, 32, 40, 0.08);
}

.search-icon {
    text-align: center;
    color: #98a2b3;
    font-size: 1.45rem;
}

.search-bar input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    color: var(--text);
}

.search-bar input::placeholder {
    color: #8b8f97;
}

.search-arrow {
    position: relative;
    min-width: 68px;
    min-height: 68px;
    padding: 0;
    border-radius: 18px;
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1;
    background: linear-gradient(145deg, #89a8ff 0%, #7e9cf0 100%);
    box-shadow: none;
}

.search-arrow-label {
    display: inline-block;
    transition: opacity 0.18s ease;
}

.search-arrow-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    margin-left: -12px;
    display: block;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.32);
    border-top-color: #fff;
    border-right-color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
    will-change: transform;
}

.search-arrow.is-loading .search-arrow-label {
    opacity: 0;
}

.search-arrow.is-loading .search-arrow-spinner {
    opacity: 1;
    animation: spin 0.8s linear infinite;
}

.hero-controls {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.suggestion-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.suggestion-row-centered {
    justify-content: center;
}

.tab-ad,
.search-inline-ad {
    width: min(960px, 100%);
}

.search-inline-ad {
    margin-top: 0.15rem;
}

.search-inline-ad .adsbygoogle,
.tab-ad .adsbygoogle {
    display: block;
    width: 100%;
    min-height: 90px;
}

.suggestion-chip {
    padding: 0.62rem 1.2rem;
    border: 1px solid rgba(24, 32, 40, 0.08);
    border-radius: 999px;
    color: #667085;
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.suggestion-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(13, 99, 255, 0.22);
    color: var(--brand);
}

.status-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.15rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(13, 99, 255, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(13, 99, 255, 0.12);
}

.hero-status {
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    width: min(980px, 100%);
    margin-top: 0.15rem;
}

.status-inline-copy {
    display: grid;
    gap: 0.2rem;
    text-align: center;
}

.status-inline-copy strong {
    font-size: 1.08rem;
}

.status-inline-copy p {
    margin: 0;
    color: var(--muted);
}

.quota-strip-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 0;
}

.quota-pill {
    min-width: 108px;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(24, 32, 40, 0.08);
    background: rgba(255, 255, 255, 0.78);
}

.quota-pill strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.15rem;
}

.quota-pill-accent {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.12);
}

.status-panel strong {
    display: block;
    margin: 0.2rem 0 0.3rem;
    font-size: 1.12rem;
}

.pricing-badge {
    display: grid;
    gap: 0.15rem;
    min-width: 108px;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: #fff;
    text-align: right;
}

.pricing-badge strong,
.pricing-callout strong {
    font-size: 1.65rem;
    letter-spacing: -0.04em;
}

.hero-side {
    display: grid;
    gap: 1rem;
}

.side-card {
    padding: 1.35rem;
}

.accent-card {
    background:
        linear-gradient(165deg, rgba(255, 131, 87, 0.16) 0%, rgba(255, 255, 255, 0.98) 58%),
        var(--panel);
}

.steps,
.plain-list,
.recent-list {
    margin: 0.85rem 0 0;
    padding-left: 1.1rem;
    color: var(--muted);
    line-height: 1.8;
}

.recent-list {
    list-style: none;
    padding-left: 0;
}

.recent-list li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(24, 32, 40, 0.08);
}

.recent-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.recent-list span {
    color: var(--muted);
    font-size: 0.9rem;
}

.result-shell {
    display: block;
}

.result-hidden {
    display: none;
}

.hero-empty,
.loading-card,
.results-card {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.hero-empty {
    display: grid;
    justify-items: center;
    gap: 0.2rem;
    padding: 0.85rem 0 0.75rem;
    text-align: center;
    color: rgba(24, 32, 40, 0.14);
}

.hero-empty p {
    margin: 0;
    color: rgba(24, 32, 40, 0.35);
    font-weight: 600;
}

.cart-ghost {
    width: min(150px, 28vw);
}

.result-shell-inline {
    width: min(1120px, 100%);
}

.cart-ghost svg {
    display: block;
    width: 100%;
    height: auto;
}

.empty-card,
.loading-card,
.results-card,
.dashboard-card {
    padding: 1.5rem;
}

.empty-card,
.loading-card {
    display: grid;
    place-items: center;
    min-height: 260px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(249, 247, 242, 0.98) 100%);
}

.empty-mark {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
    border-radius: 24px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.loading-card h2,
.empty-card h2,
.results-header h2,
.dashboard-card h2 {
    margin: 0.75rem 0 0.5rem;
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: clamp(1.6rem, 2vw, 2.3rem);
    letter-spacing: -0.03em;
}

.spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 5px solid rgba(13, 99, 255, 0.16);
    border-top-color: var(--brand);
    animation: spin 0.9s linear infinite;
}

.results-header,
.sources-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.results-header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.usage-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    color: var(--brand-deep);
    background: var(--brand-soft);
    font-size: 0.9rem;
    font-weight: 700;
}

.markdown-body {
    margin-top: 1.25rem;
    color: var(--text);
    line-height: 1.75;
}

.markdown-body,
.markdown-body .result-section,
.markdown-body .result-section ul,
.markdown-body .result-section ol,
.markdown-body .result-section li,
.markdown-body table,
.markdown-body th,
.markdown-body td {
    min-width: 0;
}

.result-section {
    --section-accent: rgba(24, 32, 40, 0.18);
    --section-soft: rgba(255, 255, 255, 0.86);
    --section-ink: var(--text);
    margin-top: 1.15rem;
    padding: 1.1rem 1.15rem 1.2rem;
    border: 1px solid rgba(24, 32, 40, 0.08);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, var(--section-soft) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 18px 36px rgba(24, 32, 40, 0.06);
}

.result-section-top {
    --section-accent: rgba(29, 78, 216, 0.2);
    --section-soft: rgba(239, 246, 255, 0.92);
    --section-ink: #1d4ed8;
}

.result-section-national {
    --section-accent: rgba(15, 118, 110, 0.18);
    --section-soft: rgba(240, 253, 250, 0.92);
    --section-ink: #0f766e;
}

.result-section-nearby {
    --section-accent: rgba(194, 65, 12, 0.18);
    --section-soft: rgba(255, 247, 237, 0.92);
    --section-ink: #c2410c;
}

.result-section-quick {
    --section-accent: rgba(127, 29, 29, 0.16);
    --section-soft: rgba(254, 242, 242, 0.92);
    --section-ink: #7f1d1d;
}

.result-section-generic {
    --section-accent: rgba(71, 85, 105, 0.18);
    --section-soft: rgba(248, 250, 252, 0.92);
    --section-ink: #334155;
}

.result-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--section-accent);
}

.markdown-body .result-section-title {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--section-accent);
    color: var(--section-ink);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.result-section-share {
    margin-left: auto;
    min-height: 38px;
    padding: 0.5rem 0.9rem;
    font-size: 0.88rem;
    line-height: 1;
    white-space: nowrap;
    color: var(--section-ink);
    border-color: var(--section-accent);
    background: rgba(255, 255, 255, 0.82);
}

.markdown-body h2,
.markdown-body h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.markdown-body p,
.markdown-body li {
    color: var(--text);
}

.markdown-body .result-section p,
.markdown-body .result-section ul,
.markdown-body .result-section ol,
.markdown-body .result-section table {
    margin-top: 0;
}

.markdown-body .result-section p:last-child,
.markdown-body .result-section ul:last-child,
.markdown-body .result-section ol:last-child,
.markdown-body .result-section table:last-child {
    margin-bottom: 0;
}

.markdown-body .result-section ul,
.markdown-body .result-section ol {
    display: grid;
    gap: 0.8rem;
    padding: 0;
    list-style: none;
}

.markdown-body .result-section li {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(24, 32, 40, 0.08);
    border-left: 4px solid var(--section-ink);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 24px rgba(24, 32, 40, 0.04);
}

.markdown-body a {
    color: var(--brand-deep);
}

.markdown-body table,
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.4rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.markdown-body th,
.markdown-body td,
.history-table th,
.history-table td {
    padding: 0.9rem;
    border: 1px solid rgba(24, 32, 40, 0.08);
    text-align: left;
    vertical-align: top;
}

.markdown-body th,
.history-table th {
    background: rgba(24, 32, 40, 0.05);
    font-size: 0.9rem;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.admin-user-row.is-selected {
    background: rgba(13, 99, 255, 0.05);
}

.markdown-body .result-section-top th {
    background: rgba(29, 78, 216, 0.08);
    color: #1e40af;
}

.markdown-body .result-section-top table {
    table-layout: auto;
}

.markdown-body .result-section-top th,
.markdown-body .result-section-top td,
.markdown-body .result-section-top a {
    word-break: normal;
    overflow-wrap: break-word;
}

.markdown-body .result-section-top th:nth-child(1),
.markdown-body .result-section-top td:nth-child(1) {
    width: 150px;
}

.markdown-body .result-section-top th:nth-child(3),
.markdown-body .result-section-top td:nth-child(3) {
    width: 120px;
}

.markdown-body .result-section-top td {
    background: rgba(255, 255, 255, 0.92);
}

.affiliate-disclosure {
    margin: 1.6rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(24, 32, 40, 0.08);
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.sources-block {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(24, 32, 40, 0.08);
}

.source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.source-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(24, 32, 40, 0.08);
    background: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

.source-card strong {
    color: var(--text);
}

.source-card span {
    color: var(--muted);
    font-size: 0.9rem;
    word-break: break-word;
}

.how-section {
    width: min(1120px, 100%);
    margin: 1rem auto 0;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(24, 32, 40, 0.08);
    box-shadow: var(--shadow);
    scroll-margin-top: 120px;
}

.section-heading {
    display: grid;
    gap: 0.45rem;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    letter-spacing: -0.04em;
}

.section-heading p:last-child {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.7;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
}

.how-card {
    padding: 1.4rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(24, 32, 40, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 249, 252, 0.9) 100%);
}

.how-card-accent {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.08) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-color: rgba(37, 99, 235, 0.12);
}

.how-step {
    display: inline-flex;
    margin-bottom: 0.8rem;
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.how-card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.how-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.recent-strip {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(24, 32, 40, 0.08);
}

.saved-search-list {
    display: grid;
    gap: 0.85rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.saved-search-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(24, 32, 40, 0.08);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
}

.saved-search-list strong {
    display: block;
    margin-bottom: 0.2rem;
}

.saved-search-list span {
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    padding: 1.2rem 0 0;
    color: var(--muted);
    text-align: center;
}

.site-footer-compact {
    padding-top: 0.35rem;
}

.site-footer p {
    margin: 0;
    font-size: 0.92rem;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

.site-footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
}

.site-footer-links a:hover {
    color: var(--text);
}

.legal-shell {
    width: min(960px, 100%);
    display: grid;
    gap: 1rem;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.legal-card {
    padding: 1.8rem;
}

.legal-intro {
    margin-bottom: 1.4rem;
}

.legal-intro h1 {
    margin: 0.35rem 0 0.75rem;
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: clamp(2.1rem, 4vw, 3rem);
    letter-spacing: -0.04em;
}

.legal-intro p,
.legal-stack p,
.legal-stack li {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.legal-stack {
    display: grid;
    gap: 1.25rem;
}

.legal-stack section {
    display: grid;
    gap: 0.55rem;
}

.legal-stack h2 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.legal-stack ul {
    margin: 0;
    padding-left: 1.15rem;
}

.legal-note {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(24, 32, 40, 0.08);
    border-radius: var(--radius-md);
    background: rgba(24, 32, 40, 0.04);
}

.recent-list-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.recent-list-inline li {
    padding: 1rem;
    border: 1px solid rgba(24, 32, 40, 0.08);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.78);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.72rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.button-primary {
    color: #fff;
    background: linear-gradient(145deg, var(--brand) 0%, #2278ff 100%);
    box-shadow: 0 14px 24px rgba(13, 99, 255, 0.24);
}

.button-primary:hover:not(:disabled) {
    background: linear-gradient(145deg, var(--brand-deep) 0%, var(--brand) 100%);
}

.button-ghost {
    color: var(--text);
    border-color: rgba(24, 32, 40, 0.1);
    background: rgba(255, 255, 255, 0.7);
}

.button-soft {
    color: var(--brand-deep);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(13, 99, 255, 0.15);
}

.button-block {
    width: 100%;
}

.button-location {
    white-space: nowrap;
}

.banner,
.setup-list {
    border-radius: var(--radius-md);
    padding: 0.95rem 1rem;
    font-size: 0.96rem;
}

.banner {
    display: grid;
    gap: 0.8rem;
    border: 1px solid rgba(24, 32, 40, 0.08);
    background: rgba(24, 32, 40, 0.04);
}

.banner-hidden {
    display: none;
}

.banner-success {
    color: var(--success);
    background: rgba(17, 138, 83, 0.08);
    border-color: rgba(17, 138, 83, 0.16);
}

.banner-danger {
    color: var(--danger);
    background: rgba(192, 57, 43, 0.08);
    border-color: rgba(192, 57, 43, 0.14);
}

.banner-warning {
    color: var(--warning);
    background: rgba(177, 106, 0, 0.08);
    border-color: rgba(177, 106, 0, 0.14);
}

.banner-info {
    color: var(--brand-deep);
    background: rgba(13, 99, 255, 0.08);
    border-color: rgba(13, 99, 255, 0.14);
}

.banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.search-timing-toast {
    position: fixed;
    left: 50%;
    bottom: 1.15rem;
    z-index: 70;
    width: min(560px, calc(100vw - 2rem));
    padding: 0.95rem 1.15rem;
    border: 1px solid rgba(13, 99, 255, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.26);
    font-size: 0.95rem;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.search-timing-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.scanner-open {
    overflow: hidden;
}

.scanner-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
    overflow-y: auto;
}

.scanner-hidden {
    display: none;
}

.scanner-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 32, 40, 0.36);
    backdrop-filter: blur(12px);
}

.scanner-dialog {
    position: relative;
    width: min(720px, 100%);
    max-height: calc(100vh - 2rem);
    display: grid;
    gap: 1rem;
    padding: 1.35rem;
    border: 1px solid rgba(24, 32, 40, 0.08);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(24, 32, 40, 0.24);
    overflow-y: auto;
}

.scanner-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.scanner-header h2 {
    margin: 0.25rem 0 0;
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    line-height: 1;
}

.button-scanner-close {
    white-space: nowrap;
}

.scanner-copy,
.scanner-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.scanner-reader {
    min-height: 300px;
    border: 1px solid rgba(24, 32, 40, 0.08);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, #10192a 0%, #1b2738 100%);
}

.scanner-reader video,
.scanner-reader canvas {
    display: block;
    width: 100%;
    height: auto;
}

.scanner-status {
    min-height: 52px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(24, 32, 40, 0.08);
    border-radius: var(--radius-md);
    color: var(--muted);
    background: rgba(24, 32, 40, 0.04);
    line-height: 1.6;
}

.scanner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.setup-list {
    display: grid;
    gap: 0.55rem;
    color: var(--warning);
    background: rgba(177, 106, 0, 0.08);
    border: 1px solid rgba(177, 106, 0, 0.14);
}

.setup-list p {
    margin: 0;
}

.hero-search-panel .banner,
.hero-search-panel .setup-list {
    width: min(960px, 100%);
}

.page-auth {
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.auth-shell {
    width: min(760px, 100%);
    display: grid;
    gap: 1rem;
}

.auth-brand {
    justify-self: start;
}

.auth-card {
    padding: 1.75rem;
}

.auth-copy {
    margin-bottom: 1.5rem;
}

.auth-tabs {
    display: inline-flex;
    padding: 0.25rem;
    border-radius: 999px;
    background: rgba(24, 32, 40, 0.06);
    margin-bottom: 1rem;
}

.auth-tab {
    border: 0;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.auth-tab.is-active {
    color: var(--text);
    background: #fff;
    box-shadow: 0 8px 20px rgba(24, 32, 40, 0.08);
}

.auth-panels {
    display: grid;
}

.auth-form {
    display: none;
    gap: 1rem;
}

.auth-form.is-active {
    display: grid;
}

.auth-form label {
    display: grid;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.auth-form input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(24, 32, 40, 0.12);
    border-radius: var(--radius-md);
    background: #fff;
}

.status-card {
    text-align: center;
}

.status-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.dashboard-shell {
    gap: 1.25rem;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 1rem;
    align-items: start;
    padding: 1.75rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(244, 248, 255, 0.96) 100%);
    border: 1px solid rgba(24, 32, 40, 0.08);
    box-shadow: var(--shadow);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.dashboard-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pricing-callout {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    margin: 1rem 0 1.1rem;
    border-radius: var(--radius-md);
    background: rgba(13, 99, 255, 0.08);
}

.purchase-form {
    display: grid;
    gap: 0.75rem;
}

.purchase-form label {
    display: grid;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.purchase-form input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(24, 32, 40, 0.12);
    border-radius: var(--radius-md);
    background: #fff;
}

.purchase-form select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(24, 32, 40, 0.12);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--text);
}

.history-table {
    background: #fff;
}

.probe-store-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.probe-checkbox {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(24, 32, 40, 0.08);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font-size: 0.96rem;
}

.probe-checkbox input {
    width: auto;
    margin: 0;
}

.probe-json {
    margin: 0;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.94);
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

.probe-debug-summary {
    display: grid;
    gap: 0.2rem;
    min-width: 200px;
    font-size: 0.86rem;
    color: var(--muted);
}

.probe-debug-summary strong {
    color: var(--text);
    font-size: 0.9rem;
}

.page-home code,
.page-dashboard code {
    padding: 0.15rem 0.35rem;
    border-radius: 8px;
    background: rgba(24, 32, 40, 0.06);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .dashboard-hero,
    .dashboard-panels {
        grid-template-columns: 1fr;
    }

    .how-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 1rem, 100%);
    }

    .site-header {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.85rem;
        padding: 0.85rem 0.95rem;
        border-radius: 24px;
    }

    .brand {
        min-width: 0;
    }

    .brand-mark {
        width: 2.55rem;
        height: 2.55rem;
        border-radius: 14px;
    }

    .brand-copy strong {
        font-size: 0.94rem;
    }

    .brand-copy small {
        font-size: 0.66rem;
    }

    .header-menu-toggle {
        display: inline-flex;
    }

    .site-header.is-menu-open .header-menu-icon span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header.is-menu-open .header-menu-icon span:nth-child(2) {
        opacity: 0;
    }

    .site-header.is-menu-open .header-menu-icon span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .header-actions {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 0.1rem;
        padding-top: 0.85rem;
        border-top: 1px solid rgba(24, 32, 40, 0.08);
    }

    .site-header.is-menu-open .header-actions {
        display: grid;
        gap: 0.65rem;
    }

    .header-actions > * {
        width: 100%;
        justify-content: center;
    }

    .header-link {
        width: 100%;
        padding: 0.35rem 0.25rem;
        text-align: center;
    }

    .header-credit-pill,
    .account-pill {
        justify-content: center;
    }

    .hero-copy,
    .results-card,
    .empty-card,
    .loading-card,
    .dashboard-card,
    .auth-card {
        padding: 1.2rem;
    }

    .results-card {
        overflow: hidden;
    }

    .quota-strip,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .probe-store-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.45rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .location-callout {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .location-callout-copy {
        text-align: center;
    }

    .search-bar,
    .hero-search-bar {
        grid-template-columns: 2.4rem minmax(0, 1fr) auto;
        padding: 0.85rem 0.85rem 0.85rem 1rem;
        gap: 0.6rem;
        border-radius: 26px;
    }

    .search-arrow {
        min-width: 56px;
        min-height: 56px;
        border-radius: 16px;
        font-size: 1.9rem;
    }

    .search-bar input {
        min-width: 0;
        font-size: 1.02rem;
    }

    .hero-controls {
        width: 100%;
    }

    .button-location {
        width: 100%;
    }

    .search-utility-row {
        flex-direction: column;
        text-align: center;
    }

    .button-barcode {
        width: 100%;
    }

    .button-gift-ideas,
    .button-gift-close,
    .gift-idea-search-button {
        width: 100%;
    }

    .gift-ideas-panel {
        padding: 0.95rem;
        border-radius: 22px;
    }

    .gift-ideas-panel-header,
    .gift-ideas-form-footer,
    .gift-ideas-feedback,
    .gift-ideas-results-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .gift-ideas-results-actions {
        justify-content: stretch;
    }

    .gift-ideas-results-actions .button {
        width: 100%;
    }

    .gift-idea-grid {
        grid-template-columns: 1fr;
    }

    .barcode-resolve-status {
        align-items: flex-start;
        text-align: left;
    }

    .scanner-dialog {
        width: min(100%, 32rem);
        max-height: calc(100vh - 1rem);
        padding: 1rem;
        border-radius: 22px;
    }

    .scanner-header {
        flex-direction: column;
        align-items: stretch;
    }

    .button-scanner-close,
    .scanner-actions .button {
        width: 100%;
    }

    .scanner-reader {
        min-height: 220px;
    }

    .status-panel,
    .results-header,
    .sources-header {
        flex-direction: column;
        align-items: stretch;
    }

    .results-header-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .button-save-search {
        width: 100%;
    }

    .result-section {
        padding: 0.95rem 0.9rem 1rem;
        border-radius: 18px;
    }

    .result-section-header {
        flex-wrap: wrap;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .markdown-body .result-section-title {
        max-width: 100%;
        font-size: 0.92rem;
        line-height: 1.35;
        white-space: normal;
        text-align: left;
    }

    .result-section-share {
        margin-left: 0;
    }

    .markdown-body .result-section li {
        padding: 0.85rem;
    }

    .markdown-body table,
    .history-table {
        table-layout: fixed;
    }

    .markdown-body th,
    .markdown-body td,
    .history-table th,
    .history-table td {
        padding: 0.72rem;
        white-space: normal;
    }

    .markdown-body p,
    .markdown-body li,
    .markdown-body th,
    .markdown-body td,
    .markdown-body a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .markdown-body .result-section-top table,
    .markdown-body .result-section-top thead,
    .markdown-body .result-section-top tbody,
    .markdown-body .result-section-top tr,
    .markdown-body .result-section-top th,
    .markdown-body .result-section-top td {
        display: block;
        width: 100%;
    }

    .markdown-body .result-section-top table {
        margin: 0.8rem 0 0.2rem;
        border: 0;
        background: transparent;
    }

    .markdown-body .result-section-top thead {
        display: none;
    }

    .markdown-body .result-section-top tbody {
        display: grid;
        gap: 0.85rem;
    }

    .markdown-body .result-section-top tr {
        overflow: hidden;
        border: 1px solid rgba(29, 78, 216, 0.12);
        border-left: 4px solid #1d4ed8;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 12px 24px rgba(24, 32, 40, 0.05);
    }

    .markdown-body .result-section-top td {
        display: grid;
        grid-template-columns: minmax(92px, 108px) minmax(0, 1fr);
        gap: 0.55rem;
        align-items: start;
        padding: 0.78rem 0.85rem;
        border: 0;
        background: transparent;
        width: 100%;
    }

    .markdown-body .result-section-top td:not(:last-child) {
        border-bottom: 1px solid rgba(24, 32, 40, 0.08);
    }

    .markdown-body .result-section-top td:nth-child(1),
    .markdown-body .result-section-top td:nth-child(3) {
        width: 100%;
    }

    .markdown-body .result-section-top td,
    .markdown-body .result-section-top td a,
    .markdown-body .result-section-top td strong,
    .markdown-body .result-section-top td span,
    .markdown-body .result-section-top td p {
        overflow-wrap: break-word;
        word-break: normal;
    }

    .markdown-body .result-section-top td > * {
        min-width: 0;
    }

    .markdown-body .result-section-top td::before {
        color: #1e40af;
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .markdown-body .result-section-top td:nth-child(1)::before {
        content: 'Retailer';
    }

    .markdown-body .result-section-top td:nth-child(2)::before {
        content: 'Deal';
    }

    .markdown-body .result-section-top td:nth-child(3)::before {
        content: 'Price';
    }

    .markdown-body .result-section-top td:nth-child(4)::before {
        content: 'Why';
    }

    .markdown-body .result-section-top td:first-child {
        font-weight: 700;
    }

    .quota-strip-inline {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .suggestion-row {
        display: none;
    }

    .quota-pill {
        min-width: 0;
    }

    .how-section {
        padding: 1.35rem;
    }

    .saved-search-list li {
        flex-direction: column;
        align-items: stretch;
    }

    .recent-list-inline {
        grid-template-columns: 1fr;
    }

    .legal-card {
        padding: 1.3rem;
    }
}
