:root {
    --bg: #f5f1e8;
    --surface: #fffaf0;
    --surface-muted: #f7f2e8;
    --surface-strong: #ffffff;
    --text: #1a202c;
    --muted: #5f6b7a;
    --line: #e3dac8;
    --primary: #1a365d;
    --primary-soft: #e8eef7;
    --accent: #b7791f;
    --danger: #b91c1c;
    --shadow: 0 18px 45px rgba(26, 32, 44, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

body.modal-open {
    overflow: hidden;
}

.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;
}

.site-header {
    background: var(--surface-strong);
    border-bottom: 1px solid var(--line);
}

.header-inner,
.dashboard-main,
.footer-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0;
}

.site-title {
    margin: 0;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.1;
}

.site-title a {
    text-decoration: none;
}

.site-tagline,
.header-date,
.hero-copy,
.footer-note,
.summary-label,
.dashboard-status,
.empty-state {
    color: var(--muted);
}

.site-tagline {
    margin: 4px 0 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dashboard-main {
    padding: 28px 0 44px;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(168px, 196px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.dashboard-sidebar {
    position: sticky;
    top: 16px;
    align-self: start;
    max-height: calc(100vh - 32px);
    overflow: auto;
    scrollbar-width: thin;
}

.dashboard-content {
    min-width: 0;
}

.visit-summary,
.dashboard-nav,
.dashboard-card,
.onboarding-card {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.visit-summary {
    padding: clamp(20px, 3vw, 28px);
    margin-bottom: 16px;
}

.visit-summary-title {
    margin: 0;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.2;
}

.visit-highlights {
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.visit-highlight-group {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.visit-highlight-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 10px 16px;
    background: var(--surface-muted);
    border-bottom: 1px solid var(--line);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

.visit-highlight-category a {
    color: inherit;
    text-decoration: none;
}

.visit-highlight-category a:hover {
    text-decoration: underline;
}

.visit-highlight-count {
    flex: 0 0 auto;
    min-width: 1.5rem;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
}

.visit-highlight-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.visit-highlight-item {
    border-bottom: 1px solid var(--line);
}

.visit-highlight-item:last-child {
    border-bottom: 0;
}

.visit-highlight-item a {
    display: block;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
}

.visit-highlight-item a:hover {
    background: var(--surface-muted);
}

.visit-highlight-item strong {
    display: block;
    color: var(--text);
    line-height: 1.35;
}

.visit-highlight-item span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

.visit-highlight-empty {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: calc(100vh - 32px);
    padding: 12px;
    background: rgba(255, 250, 240, 0.96);
    backdrop-filter: blur(10px);
}

.nav-sidebar-head,
.nav-sidebar-foot {
    flex: 0 0 auto;
}

.nav-sidebar-foot {
    margin-top: auto;
    padding-top: 4px;
}

.nav-manage-open {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--primary);
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    font: inherit;
    box-shadow: 0 8px 18px rgba(26, 54, 93, 0.08);
}

.nav-manage-open-label {
    font-size: 0.92rem;
    font-weight: 700;
}

.nav-manage-open:hover {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
    box-shadow: 0 10px 22px rgba(26, 54, 93, 0.16);
}

.section-manage-modal {
    z-index: 18;
}

.section-manage-card {
    width: min(640px, 100%);
}

.section-manage-header h2 {
    margin: 0;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.section-manage-block + .section-manage-block {
    margin-top: 22px;
}

.section-manage-subtitle {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.section-manage-list,
.section-manage-hidden-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface-strong);
}

.section-manage-item,
.section-manage-hidden-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.section-manage-item:last-child,
.section-manage-hidden-item:last-child,
.section-manage-empty {
    border-bottom: 0;
}

.section-manage-name {
    font-weight: 700;
    line-height: 1.3;
}

.section-manage-actions-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.section-manage-order-btn {
    width: 34px;
    height: 34px;
}

.section-manage-remove-btn,
.section-manage-add-btn {
    min-width: 78px;
    height: 34px;
    padding: 0 12px;
    font-size: 0.86rem;
    font-weight: 700;
}

.section-manage-remove-btn {
    color: var(--danger);
}

.section-manage-remove-btn:hover:not(:disabled) {
    border-color: var(--danger);
    background: #fef2f2;
}

.section-manage-add-btn {
    color: var(--primary);
}

.section-manage-add-btn:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.section-manage-empty {
    padding: 14px 16px;
    color: var(--muted);
}

.section-manage-actions {
    margin-top: 24px;
    justify-content: flex-end;
}

.nav-weather-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-muted);
    text-decoration: none;
    color: inherit;
}

.nav-weather-mini:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.nav-weather-icon {
    flex: 0 0 auto;
}

.nav-weather-text {
    display: grid;
    gap: 1px;
    min-width: 0;
    line-height: 1.2;
}

.nav-weather-text strong {
    font-size: 1.05rem;
}

.nav-weather-text span,
.nav-weather-text small {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-weather-loading {
    font-size: 0.85rem;
    color: var(--muted);
}

.nav-sections-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-section-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-section-link {
    display: block;
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border-left: 3px solid transparent;
    border-radius: 0 10px 10px 0;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    line-height: 1.25;
}

.nav-section-link:hover,
.nav-section-link.is-active {
    background: var(--primary-soft);
    color: var(--primary);
}

.nav-section-link.is-active {
    border-left-color: var(--primary);
}

.nav-order-actions {
    display: none;
}

.dashboard-nav.is-reorder-mode .nav-order-actions {
    display: none;
}

.dashboard-nav.is-reorder-mode .nav-section-link {
    pointer-events: auto;
    opacity: 1;
}

.nav-order-btn {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.onboarding-header h2 {
    margin: 0;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.35rem, 2.8vw, 2.1rem);
    line-height: 1.2;
}

.hero-copy {
    max-width: 680px;
    margin: 14px 0 0;
    font-size: 1.05rem;
}

.btn-primary,
.btn-secondary {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 12px 18px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-secondary {
    background: var(--primary-soft);
    color: var(--primary);
}

.prefs-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin-top: 18px;
    overflow: hidden;
}

.prefs-summary > div {
    background: var(--surface);
    padding: 18px 20px;
}

.summary-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.summary-label + strong {
    display: block;
    margin-top: 4px;
}

.dashboard-status {
    margin: 24px 0;
    min-height: 24px;
}

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

.dashboard-card {
    overflow: hidden;
    scroll-margin-top: 88px;
}

.weather-panel {
    padding: 18px 20px 20px;
}

.weather-location {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.95rem;
}

.weather-section-title {
    margin: 24px 0 12px;
    font-size: 1rem;
}

.wx-current-card {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-muted);
}

.wx-current-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 240px;
}

.wx-big-icon {
    width: 96px;
    height: 96px;
}

.wx-temp-big {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
}

.wx-temp-desc {
    font-size: 1.05rem;
    color: var(--muted);
    text-transform: capitalize;
    margin-top: 4px;
}

.wx-current-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: 1;
    min-width: 240px;
}

.wx-detail-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wx-detail-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.wx-detail-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.wx-hourly-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.wx-hourly-card {
    flex-shrink: 0;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
    min-width: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wx-hour {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

.wx-hourly-card img {
    width: 40px;
    height: 40px;
}

.wx-hourly-temp {
    font-size: 1.05rem;
    font-weight: 700;
}

.wx-hourly-detail {
    font-size: 0.72rem;
    color: var(--muted);
}

.wx-daily-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.wx-daily-card {
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.wx-daily-day {
    font-weight: 700;
    margin-bottom: 4px;
}

.wx-daily-card img {
    width: 56px;
    height: 56px;
}

.wx-daily-high {
    font-size: 1.15rem;
    font-weight: 700;
}

.wx-daily-low {
    font-size: 0.95rem;
    color: var(--muted);
    margin-left: 6px;
}

.wx-daily-desc {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: capitalize;
    margin-top: 4px;
}

.weather-full-link {
    display: inline-block;
    margin-top: 18px;
    font-weight: 700;
}

.card-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.card-body {
    padding: 0;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--line);
}

.show-more-link,
.show-more-btn {
    border: 0;
    background: none;
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
    text-decoration: none;
}

.show-more-link:hover,
.show-more-btn:hover {
    text-decoration: underline;
}

.show-more-btn:disabled {
    opacity: 0.6;
    cursor: wait;
    text-decoration: none;
}

.headline-list {
    display: flex;
    flex-direction: column;
}

.headline-row {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.headline-row:last-child {
    border-bottom: 0;
}

.headline-row:hover {
    background: var(--surface);
}

.headline-row strong {
    display: block;
    line-height: 1.3;
}

.headline-row span,
.weather-line span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.9rem;
}

.weather-line {
    padding: 18px 20px;
}

.weather-line a {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary);
    font-weight: 800;
}

.empty-state {
    margin: 0;
    padding: 18px 20px;
}

.business-alerts-page {
    display: grid;
    gap: 16px;
}

.business-alerts-hero {
    padding: clamp(20px, 3vw, 28px);
}

.business-alerts-hero-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.business-alerts-title {
    margin: 0;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.2;
}

.business-alerts-lede {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 62ch;
}

.business-alerts-controls .town-picker {
    min-width: 220px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-muted);
    font: inherit;
}

.business-alerts-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.business-alerts-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.business-alerts-filter-tab {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
}

.business-alerts-filter-tab:hover,
.business-alerts-filter-tab.is-active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}

.business-alerts-area-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.business-alerts-list-card {
    overflow: hidden;
}

.business-alert-row {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.business-alert-row:last-child {
    border-bottom: 0;
}

.business-alert-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.alert-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.alert-badge--new_business {
    background: #fef3c7;
    color: #92400e;
}

.alert-badge--new_to_delivery,
.alert-badge--new_to_pickup {
    background: var(--primary-soft);
    color: var(--primary);
}

.alert-badge--reopened {
    background: #dcfce7;
    color: #166534;
}

.business-alert-date {
    color: var(--muted);
    font-size: 0.88rem;
    white-space: nowrap;
}

.business-alert-title {
    display: block;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.35;
    text-decoration: none;
    color: var(--text);
}

a.business-alert-title:hover {
    color: var(--primary);
}

.business-alert-meta,
.business-alert-address,
.business-alert-summary {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.business-alert-summary {
    color: var(--text);
}

@media (max-width: 760px) {
    .business-alerts-hero-row {
        flex-direction: column;
    }

    .business-alerts-controls .town-picker {
        width: 100%;
        min-width: 0;
    }

    .business-alert-row-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.onboarding {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(26, 32, 44, 0.72);
}

.onboarding[hidden] {
    display: none;
}

.returning-user {
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 1px solid rgba(26, 54, 93, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.returning-user-copy {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #2d3748;
}

.returning-user-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.returning-user-row .field-input {
    flex: 1 1 220px;
    min-width: 0;
}

.returning-user-row .btn-secondary {
    flex: 0 0 auto;
}

#returning-hint {
    margin: 8px 0 0;
    min-height: 1.2em;
}

#returning-hint.is-error {
    color: #c53030;
}

.onboarding-card {
    position: relative;
    width: min(860px, 100%);
    max-height: min(820px, calc(100vh - 48px));
    overflow: auto;
    padding: clamp(22px, 4vw, 38px);
}

.onboarding-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.onboarding-close[hidden] {
    display: none;
}

.onboarding-header {
    margin-bottom: 28px;
}

.onboarding-header p:last-child {
    color: var(--muted);
    margin-bottom: 0;
}

.step-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.step-count {
    display: inline-grid;
    place-items: center;
    flex: 0 0 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.step-heading h3 {
    margin: 0;
}

.step-heading p {
    margin: 3px 0 0;
    color: var(--muted);
}

.town-search {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
    margin-bottom: 8px;
    padding: 12px 14px;
}

.town-toolbar {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.town-grid {
    max-height: 320px;
    overflow: auto;
    padding-right: 4px;
}

.choice-card {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
    padding: 12px;
}

.choice-card:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.choice-card input {
    accent-color: var(--primary);
}

.onboarding-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.form-error {
    color: var(--danger);
    font-weight: 700;
    min-height: 22px;
    margin: 12px 0 0;
}

.form-message {
    color: var(--primary);
    font-weight: 600;
    min-height: 22px;
    margin: 12px 0 0;
}

.delivery-options {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.delivery-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
}

.delivery-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.delivery-option strong {
    display: block;
}

.delivery-option small {
    display: block;
    color: var(--muted);
    margin-top: 2px;
}

.account-fields {
    display: grid;
    gap: 8px;
}

.invite-fields {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.category-order-block {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.category-order-block h4 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.category-order-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.category-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-muted);
}

.order-actions {
    display: flex;
    gap: 6px;
}

.order-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.order-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.display-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
}

.display-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.display-option strong {
    display: block;
}

.display-option small {
    display: block;
    color: var(--muted);
    margin-top: 2px;
}

.field-label {
    font-weight: 700;
}

.field-input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
    padding: 12px 14px;
}

.field-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.btn-link {
    border: 0;
    background: none;
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
    text-align: left;
}

.account-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 26px 0;
}

.footer-inner p {
    margin: 0;
}

.footer-note {
    margin-top: 6px !important;
    font-size: 0.9rem;
}

.dashboard-card {
    scroll-margin-top: 20px;
}

@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dashboard-sidebar {
        position: sticky;
        top: 0;
        z-index: 12;
        max-height: none;
        overflow: visible;
    }

    .section-manage-item,
    .section-manage-hidden-item {
        flex-direction: column;
        align-items: stretch;
    }

    .section-manage-actions-inline {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .dashboard-nav {
        min-height: 0;
        padding: 10px;
    }

    .nav-sidebar-head {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .nav-sidebar-foot {
        margin-top: 0;
    }

    .nav-manage-open .nav-manage-open-label {
        display: inline;
    }

    .nav-manage-open {
        min-height: 44px;
    }

    .nav-sections-list {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    .nav-section-item {
        flex: 0 0 auto;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--surface-muted);
        padding: 2px 4px 2px 2px;
    }

    .nav-section-link {
        border-left: 0;
        border-radius: 999px;
        padding: 8px 12px;
        white-space: nowrap;
    }

    .nav-section-link.is-active {
        border-left: 0;
    }

    .dashboard-nav.is-reorder-mode .nav-sections-list {
        flex-direction: column;
        align-items: stretch;
        overflow-x: visible;
    }

    .dashboard-nav.is-reorder-mode .nav-section-item {
        border-radius: 12px;
    }

    .dashboard-nav.is-reorder-mode .nav-section-link {
        border-radius: 0 10px 10px 0;
    }
}

@media (max-width: 760px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .dashboard-sections,
    .choice-grid {
        grid-template-columns: 1fr;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .onboarding-actions {
        flex-direction: column-reverse;
    }
}

