﻿        /* Design tokens (warm professional palette) and shared spacing/type scales. */
        :root {
            --bg: #F7F4EE;
            --surface: #FFFDFA;
            --text: #17202A;
            --text-muted: #596372;
            --border: #E8E2D8;
            --divider: #F0EBE3;
            --primary: #1E3A8A;
            --primary-hover: #1D4ED8;
            --teal: #0F766E;
            --success: #2F855A;
            --warning: #B7791F;
            --error: #C53030;
            --surface-soft: #FBF7F1;
            --surface-soft-2: #F5EEE5;
            --surface-teal-soft: rgba(15, 118, 110, 0.03);
            --border-soft: rgba(33, 24, 14, 0.08);
            --border-softer: rgba(33, 24, 14, 0.05);
            --shadow-soft: 0 1px 2px rgba(34, 26, 19, 0.035), 0 10px 22px rgba(34, 26, 19, 0.035);
            --shadow-raise: 0 2px 8px rgba(34, 26, 19, 0.045), 0 16px 34px rgba(34, 26, 19, 0.05);

            /* Compatibility aliases for existing component classes */
            --ink: var(--text);
            --muted: var(--text-muted);
            --line: var(--border);
            --brand: var(--primary);
            --brand-2: var(--teal);
            --accent: var(--teal);
            --danger: var(--error);
            --shadow: var(--shadow-soft);
            --focus-ring: var(--primary-hover);
            --radius: 12px;

            /* Typography + spacing scale */
            --font-xs: 0.75rem;
            --font-sm: 0.875rem;
            --font-md: 1rem;
            --font-lg: 1.125rem;
            --font-xl: 1.25rem;
            --font-2xl: clamp(1.875rem, 4vw, 2.5rem);
            --space-1: 4px;
            --space-2: 8px;
            --space-3: 12px;
            --space-4: 16px;
            --space-5: 20px;
            --space-6: 24px;
        }

        /* Global element defaults */
        * { box-sizing: border-box; }

        img {
            max-width: 100%;
            display: block;
        }

        body {
            margin: 0;
            color: var(--text);
            background: var(--bg);
            font-family: "Segoe UI", Calibri, sans-serif;
            font-size: var(--font-md);
            line-height: 1.58;
        }

        a {
            color: var(--primary);
            text-decoration: none;
            text-underline-offset: 0.14em;
            text-decoration-thickness: 1px;
        }

        a:hover {
            color: var(--primary-hover);
            text-decoration: underline;
            text-decoration-thickness: 2px;
        }

        a:focus-visible,
        button:focus-visible,
        input:focus-visible,
        select:focus-visible,
        summary:focus-visible {
            outline: 2px solid var(--primary-hover);
            outline-offset: 2px;
        }

        .skip-link {
            position: absolute;
            top: -44px;
            left: 12px;
            z-index: 1000;
            padding: 10px 12px;
            border-radius: 10px;
            background: #FFFFFF;
            color: var(--text);
            border: 1px solid rgba(33, 24, 14, 0.14);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            font-weight: 700;
        }

        .skip-link:focus {
            top: 12px;
            text-decoration: none;
        }

        .shell {
            max-width: 1280px;
            margin: 0 auto;
            padding: 22px 20px 34px;
        }

        .topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            margin-bottom: 18px;
            padding: 14px 16px;
            background: rgba(255, 253, 249, 0.94);
            border: 1px solid var(--border-softer);
            border-radius: 12px;
            box-shadow: 0 1px 2px rgba(34, 26, 19, 0.03), 0 8px 24px rgba(34, 26, 19, 0.04);
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
            text-decoration: none;
            color: inherit;
        }

        .brand:focus-visible {
            outline: 2px solid rgba(30, 58, 138, 0.28);
            outline-offset: 3px;
            border-radius: 10px;
        }

        .brand-badge {
            width: 72px;
            height: 72px;
            border-radius: 12px;
            background: #fff;
            border: 1px solid var(--border);
            box-shadow:
                0 8px 18px rgba(34, 26, 19, 0.09),
                0 0 0 4px rgba(255, 253, 249, 0.95);
            display: grid;
            place-items: center;
            position: relative;
            overflow: hidden;
            flex: 0 0 auto;
        }

        .brand-logo-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 4px;
            /* Inverts the uploaded black-background/white-line logo to white background + dark mark */
            filter: invert(1) contrast(1.15);
            background: #fff;
        }

        .brand-fallback {
            position: absolute;
            inset: 0;
            display: grid;
            place-items: center;
            color: var(--ink);
            font-weight: 800;
            font-size: 1.25rem;
            font-family: "Trebuchet MS", "Segoe UI", sans-serif;
            z-index: 0;
        }

        .brand-badge.has-logo .brand-fallback {
            display: none;
        }

        .brand-title {
            font-family: "Trebuchet MS", "Segoe UI", sans-serif;
            font-size: var(--font-lg);
            font-weight: 700;
            margin: 0;
            color: var(--text);
            line-height: 1.2;
        }

        .brand-subtitle {
            color: var(--text-muted);
            font-size: 0.8125rem;
            margin: 0;
            line-height: 1.35;
        }

        .topbar-links {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            justify-content: flex-end;
            gap: 8px;
        }

        .topbar-translate {
            display: inline-flex;
            align-items: center;
            position: relative;
        }

        .topbar-translate-trigger {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            width: auto;
            min-width: 182px;
            min-height: 40px;
            padding: 8px 10px;
            border: 1px solid var(--border-soft);
            border-radius: 10px;
            background: var(--surface);
            color: var(--text);
            font-size: var(--font-sm);
            font-weight: 600;
            line-height: 1.2;
            cursor: pointer;
        }

        .topbar-translate-trigger:hover {
            border-color: rgba(30, 58, 138, 0.24);
            background: rgba(30, 58, 138, 0.02);
        }

        .topbar-translate-trigger[aria-expanded="true"] {
            border-color: rgba(30, 58, 138, 0.28);
            box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.1);
        }

        .topbar-translate-trigger.is-loading {
            opacity: 0.72;
            cursor: progress;
            pointer-events: none;
        }

        .topbar-translate-flag,
        .topbar-translate-option-flag {
            width: 20px;
            height: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            line-height: 1;
            font-size: 0.85rem;
        }

        .topbar-translate-flag img,
        .topbar-translate-option-flag img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 2px;
            border: 1px solid rgba(33, 24, 14, 0.15);
            display: block;
        }

        .topbar-translate-label,
        .topbar-translate-option-label {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .topbar-translate-menu {
            position: absolute;
            top: calc(100% + 6px);
            right: 0;
            z-index: 40;
            width: min(320px, 72vw);
            max-height: 320px;
            margin: 0;
            padding: 6px;
            list-style: none;
            overflow-y: auto;
            background: var(--surface);
            border: 1px solid var(--border-soft);
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(34, 26, 19, 0.12);
        }

        .topbar-translate-option {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            border: 0;
            border-radius: 8px;
            background: transparent;
            color: var(--text);
            font: inherit;
            text-align: left;
            cursor: pointer;
        }

        .topbar-translate-option:hover {
            background: rgba(30, 58, 138, 0.06);
            color: var(--primary);
        }

        .topbar-translate-option[aria-selected="true"] {
            background: rgba(30, 58, 138, 0.1);
            color: var(--primary);
        }

        .topbar-translate-meta {
            position: absolute;
            right: 0;
            top: calc(100% + 332px);
            z-index: 41;
            margin: 0;
            padding: 4px 8px;
            border-radius: 8px;
            border: 1px solid var(--border-soft);
            background: var(--surface);
            color: var(--text-muted);
            font-size: 0.68rem;
            line-height: 1.2;
            white-space: nowrap;
            box-shadow: 0 4px 14px rgba(34, 26, 19, 0.08);
        }

        .topbar-translate-meta[hidden] {
            display: none !important;
        }

        .topbar-account-prefix {
            color: var(--text-muted);
        }

        .pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 10px;
            border-radius: 999px;
            border: 1px solid var(--border-soft);
            background: var(--surface-soft);
            color: var(--text);
            font-size: var(--font-sm);
            line-height: 1.2;
        }

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

        /* Lightweight utilities for template consistency (replaces repeated inline styles) */
        .m-0 { margin: 0 !important; }
        .mx-auto { margin-left: auto !important; margin-right: auto !important; }
        .max-w-560 { max-width: 560px; }
        .max-w-620 { max-width: 620px; }
        .mt-4 { margin-top: 4px !important; }
        .mt-10 { margin-top: 10px !important; }
        .mt-12 { margin-top: 12px !important; }
        .mt-14 { margin-top: 14px !important; }
        .mb-0 { margin-bottom: 0 !important; }
        .mb-4 { margin-bottom: 4px !important; }
        .mb-6 { margin-bottom: 6px !important; }
        .mb-8 { margin-bottom: 8px !important; }
        .mb-10 { margin-bottom: 10px !important; }
        .mb-12 { margin-bottom: 12px !important; }
        .w-full { width: 100% !important; }
        .no-shadow { box-shadow: none !important; }
        .card-subtle {
            background: var(--surface-soft-2) !important;
            border-color: rgba(30, 58, 138, 0.06) !important;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
        }
        .list-ordered-tight {
            margin: 0;
            padding-left: 18px;
        }
        .h1-compact {
            font-size: clamp(1.5rem, 3vw, 1.7rem) !important;
            line-height: 1.2;
            margin-bottom: 12px;
        }
        .price-value {
            font-size: 1.45rem;
            font-weight: 800;
            margin-bottom: 4px;
            color: var(--text);
            line-height: 1.15;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 14px;
            border-radius: 12px;
            border: 1px solid var(--primary);
            background: var(--primary);
            color: #fff;
            font-weight: 700;
            font-size: 0.9375rem;
            line-height: 1.2;
            text-decoration: none;
            cursor: pointer;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
            transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
        }

        .btn:hover {
            text-decoration: none;
            background: var(--primary-hover);
            border-color: var(--primary-hover);
            color: #fff;
            box-shadow: 0 2px 6px rgba(30, 58, 138, 0.18);
        }

        .btn:focus-visible {
            color: #fff;
        }

        .btn:disabled,
        .btn[disabled],
        .btn[aria-disabled="true"] {
            background: #CBD5E1;
            border-color: #CBD5E1;
            color: #F8FAFC;
            cursor: not-allowed;
            box-shadow: none;
            pointer-events: none;
        }

        .btn-secondary {
            background: var(--surface);
            color: var(--text);
            border-color: var(--border);
            box-shadow: none;
        }

        .btn-secondary:hover {
            background: #F8FAFC;
            border-color: #D8E0EA;
            color: var(--text);
        }

        .btn-ghost {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 14px;
            border-radius: 12px;
            border: 1px solid rgba(30, 58, 138, 0.16);
            background: transparent;
            color: var(--primary);
            font-weight: 700;
            font-size: 0.9375rem;
            line-height: 1.2;
            text-decoration: none;
        }

        .btn-ghost:hover {
            background: rgba(30, 58, 138, 0.06);
            border-color: rgba(29, 78, 216, 0.22);
            text-decoration: none;
        }

        .btn-link {
            padding: 8px 10px;
            border-radius: 10px;
            border: 1px solid transparent;
            background: transparent;
            color: var(--text);
            font-weight: 600;
            font-size: var(--font-sm);
            line-height: 1.2;
            cursor: pointer;
        }

        .btn-link:hover {
            background: rgba(30, 58, 138, 0.06);
            color: var(--primary);
            text-decoration: none;
        }

        /* Shared feature/hero container used by landing and page intro sections. */
        .hero {
            position: relative;
            overflow: hidden;
            background: var(--surface);
            border: 1px solid var(--border-soft);
            border-radius: 12px;
            box-shadow: var(--shadow-raise);
            padding: var(--space-6);
            margin-bottom: 18px;
        }

        .hero::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 44px;
            background: rgba(183, 121, 31, 0.03);
            pointer-events: none;
        }

        .hero > * {
            position: relative;
        }

        .eyebrow {
            margin: 0 0 6px;
            color: var(--teal);
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            font-size: var(--font-xs);
            line-height: 1.2;
        }

        h1, h2, h3 {
            margin-top: 0;
            font-family: "Trebuchet MS", "Segoe UI", sans-serif;
            line-height: 1.2;
            color: var(--text);
        }

        h1 {
            font-size: var(--font-2xl);
            line-height: 1.15;
            margin-bottom: 12px;
            letter-spacing: -0.015em;
        }

        h2 {
            font-size: var(--font-xl);
            line-height: 1.25;
            margin-bottom: 12px;
            letter-spacing: -0.01em;
        }
        h3 {
            font-size: var(--font-lg);
            line-height: 1.3;
            margin-bottom: 8px;
        }
        p { margin: 0 0 14px; }

        .actions,
        .inline-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: center;
        }

        .grid {
            display: grid;
            gap: 16px;
        }

        .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

        .stack {
            display: grid;
            gap: 14px;
            align-content: start;
            align-self: start;
        }

        .split {
            display: grid;
            gap: 14px;
            grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        }

        .card {
            background: var(--surface);
            border: 1px solid var(--border-softer);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 20px;
        }

        .card-tight { padding: 16px; }

        fieldset {
            margin: 0;
            padding: 12px;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: #F8FAFC;
        }

        legend {
            padding: 0 6px;
            font-weight: 700;
            font-size: 0.92rem;
            color: var(--text);
        }

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

        .choice-card {
            display: grid;
            gap: 8px;
            align-content: start;
            padding: 16px;
            border-radius: 12px;
            border: 1px solid var(--border);
            background: var(--surface);
            box-shadow: var(--shadow);
        }

        .carousel {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding: 2px 2px 8px;
            scroll-snap-type: x mandatory;
        }

        .carousel > * {
            flex: 0 0 100%;
            min-width: 0;
            scroll-snap-align: start;
        }

        /* Accessible carousel wrapper used on home/start/results country cards. */
        .carousel-shell {
            display: grid;
            gap: 8px;
        }

        .carousel-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .carousel-controls {
            display: inline-flex;
            gap: 8px;
        }

        .carousel-toolbar-end {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .carousel-status {
            display: inline-flex;
            align-items: center;
            min-height: 38px;
            padding: 0 10px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: #F8FAFC;
            color: var(--text);
            font-size: var(--font-sm);
            line-height: 1.2;
            white-space: nowrap;
        }

        .carousel-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: var(--surface);
            color: var(--text);
            box-shadow: var(--shadow);
            cursor: pointer;
            font-size: 1rem;
            line-height: 1;
            font-weight: 700;
            transition: background-color .15s ease, border-color .15s ease, color .15s ease;
        }

        .carousel-btn:hover:not(:disabled) {
            background: #F8FAFC;
            border-color: #D7E0EA;
        }

        .carousel-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
            box-shadow: none;
        }

        .carousel:focus-visible {
            outline: 2px solid var(--primary-hover);
            outline-offset: 2px;
        }

        .country-card {
            display: grid;
            gap: 12px;
            align-content: start;
        }

        .country-media {
            aspect-ratio: 16 / 9;
            border-radius: 12px;
            border: 1px solid var(--border);
            overflow: hidden;
            background: #EAF0F6;
        }

        .country-media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: none;
        }

        .country-summary {
            margin: 0;
            color: var(--muted);
            font-size: var(--font-sm);
            line-height: 1.5;
        }

        .photo-credit {
            margin: 0;
            font-size: var(--font-xs);
            color: var(--muted);
            line-height: 1.35;
        }

        .photo-credit a {
            color: inherit;
            text-decoration-thickness: 1px;
        }

        .meta-list {
            margin: 0;
            display: grid;
            gap: 8px;
        }

        .meta-row {
            display: grid;
            grid-template-columns: 88px minmax(0, 1fr);
            gap: 8px;
            margin: 0;
            font-size: var(--font-sm);
            line-height: 1.45;
        }

        .meta-row dt {
            margin: 0;
            color: var(--muted);
            font-weight: 700;
        }

        .meta-row dd {
            margin: 0;
        }

        .chip-row {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .chip {
            display: inline-flex;
            align-items: center;
            padding: 5px 8px;
            border-radius: 999px;
            border: 1px solid var(--border-soft);
            background: var(--surface-soft);
            font-size: var(--font-xs);
            line-height: 1.2;
            color: var(--text);
        }

        .chip-link {
            text-decoration: none;
            color: var(--text);
            transition: border-color .15s ease, background-color .15s ease, color .15s ease;
        }

        .chip-link:hover {
            text-decoration: none;
            border-color: rgba(30, 58, 138, 0.16);
            background: #FFFFFF;
            color: var(--text);
        }

        .chip-link-active {
            background: rgba(15, 118, 110, 0.07);
            border-color: rgba(15, 118, 110, 0.18);
            color: var(--teal);
        }

        .checklist-controls-grid {
            display: grid;
            grid-template-columns: minmax(0, 280px);
            gap: 10px;
        }

        .checklist-bulk-grid {
            display: grid;
            grid-template-columns: minmax(0, 280px) auto;
            gap: 10px;
            align-items: end;
        }

        .checklist-control-shell {
            display: grid;
            gap: 12px;
            padding: 13px;
            border-radius: 12px;
            border: 1px solid rgba(30, 58, 138, 0.08) !important;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.74) 100%);
        }

        .checklist-control-shell.is-simple {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 250, 249, 0.78) 100%);
        }

        .checklist-control-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
            flex-wrap: wrap;
        }

        .checklist-control-status {
            display: grid;
            gap: 4px;
            justify-items: end;
            text-align: right;
        }

        .checklist-control-grid {
            display: grid;
            gap: 10px;
        }

        .checklist-control-group {
            display: grid;
            gap: 6px;
        }

        .checklist-control-group .chip-row {
            row-gap: 8px;
        }

        .checklist-bulk-panel {
            border: 1px solid rgba(33, 24, 14, 0.08);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.72);
        }

        .checklist-bulk-panel .details-summary {
            padding: 10px 12px;
        }

        .checklist-bulk-panel .details-content {
            padding: 10px 12px 12px;
        }

        .checklist-simple-note {
            margin: 0;
            border-radius: 10px;
            border: 1px dashed rgba(15, 118, 110, 0.24);
            background: rgba(15, 118, 110, 0.05);
        }

        .checklist-simple-note-meta {
            margin: 6px 0 0;
            color: var(--text-muted);
            font-size: var(--font-xs);
            line-height: 1.3;
        }

        /* Collapsible <details> panels used to reduce page density on checklist. */
        .details-panel {
            overflow: hidden;
            padding: 0;
        }

        .details-summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            cursor: pointer;
            list-style: none;
            margin: 0;
            padding: 14px 16px;
        }

        .details-summary::-webkit-details-marker {
            display: none;
        }

        .details-summary-text {
            display: grid;
            gap: 2px;
            min-width: 0;
        }

        .details-summary-text strong {
            color: var(--text);
            line-height: 1.2;
        }

        .details-summary-note {
            color: var(--text-muted);
            font-size: var(--font-xs);
            line-height: 1.25;
        }

        .details-content {
            padding: 14px 16px 16px;
            border-top: 1px solid var(--divider);
        }

        .details-panel .pill {
            flex-shrink: 0;
        }

        .details-panel:not([open]) .details-summary-note {
            display: none;
        }

        .details-panel:not([open]) .details-summary-text {
            gap: 0;
        }

        .details-panel[open] > .details-summary {
            border-bottom: 1px solid var(--divider);
        }

        .details-panel[open] > .details-content {
            border-top: 0;
        }

        .scroll-hint {
            font-size: var(--font-sm);
            color: var(--muted);
            margin: 0;
            line-height: 1.35;
        }

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

        .list-clean li {
            position: relative;
            padding-left: 16px;
            margin-bottom: 10px;
            line-height: 1.5;
        }

        .list-clean li:last-child { margin-bottom: 0; }

        .list-clean li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.55em;
            width: 7px;
            height: 7px;
            border-radius: 999px;
            background: var(--teal);
        }

        .kpi-grid {
            display: grid;
            gap: 12px;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            margin-top: 12px;
        }

        .kpi {
            border-radius: 12px;
            border: 1px solid var(--border-soft);
            background: var(--surface-soft);
            padding: 16px;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
        }

        .kpi-value {
            margin: 0;
            font-weight: 800;
            font-size: 1.35rem;
            font-family: "Trebuchet MS", "Segoe UI", sans-serif;
            color: var(--text);
        }

        .kpi-label {
            margin: 4px 0 0;
            color: var(--text-muted);
            font-size: var(--font-sm);
            line-height: 1.35;
        }

        .form-grid {
            display: grid;
            gap: 14px;
        }

        .signup-form {
            gap: 14px;
        }

        .signup-account-grid {
            display: grid;
            gap: 12px;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .field label {
            display: block;
            margin-bottom: 6px;
            font-weight: 700;
            font-size: var(--font-sm);
            color: var(--text);
            line-height: 1.3;
        }

        .field small {
            display: block;
            margin-top: 6px;
            color: var(--text-muted);
            font-size: var(--font-xs);
            line-height: 1.35;
        }

        input[type="text"],
        input[type="file"],
        input[type="password"],
        input[type="email"],
        input[type="date"],
        select {
            width: 100%;
            padding: 11px 12px;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: var(--surface);
            color: var(--text);
            font: inherit;
            line-height: 1.4;
        }

        input[type="text"]:focus,
        input[type="file"]:focus,
        input[type="password"]:focus,
        input[type="email"]:focus,
        input[type="date"]:focus,
        select:focus {
            border-color: var(--primary-hover);
            box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.12);
        }

        input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin: 0;
            accent-color: var(--primary);
        }

        .field-checkbox {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: var(--surface);
        }

        .field-checkbox label {
            margin: 0;
            font-weight: 600;
            line-height: 1.35;
        }

        .signup-form .helptext ul {
            margin: 6px 0 0 18px;
            padding: 0;
        }

        .signup-form .helptext li {
            margin-bottom: 4px;
        }

        .signup-form .errorlist {
            margin: 8px 0 0;
        }

        .auth-form {
            gap: 14px;
        }

        .auth-form .errorlist {
            margin: 8px 0 0;
        }

        /* Drag-and-drop upload zones in the document vault. */
        .upload-dropzone {
            position: relative;
            border: 1px dashed rgba(30, 58, 138, 0.12);
            border-radius: 12px;
            background: var(--surface-soft);
            padding: 14px;
            min-height: 84px;
            display: grid;
            align-content: center;
            gap: 4px;
            cursor: pointer;
            transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
        }

        .upload-dropzone:hover {
            border-color: var(--primary);
            background: rgba(30, 58, 138, 0.035);
        }

        .upload-dropzone:focus-visible {
            outline: 2px solid var(--primary-hover);
            outline-offset: 2px;
        }

        .upload-dropzone.is-dragover {
            border-color: var(--primary-hover);
            background: rgba(29, 78, 216, 0.06);
            box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.10);
        }

        .upload-dropzone.is-ready {
            border-color: rgba(47, 133, 90, 0.55);
            background: rgba(47, 133, 90, 0.04);
        }

        .upload-dropzone.is-invalid {
            border-color: rgba(197, 48, 48, 0.55);
            background: rgba(197, 48, 48, 0.04);
        }

        .upload-dropzone-title {
            margin: 0;
            color: var(--text);
            font-weight: 700;
            line-height: 1.25;
        }

        .upload-dropzone-text {
            margin: 0;
            color: var(--text-muted);
            font-size: var(--font-sm);
            line-height: 1.3;
        }

        .upload-dropzone-file {
            margin: 4px 0 0;
            color: var(--text-muted);
            font-size: var(--font-xs);
            line-height: 1.3;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .upload-dropzone input[type="file"] {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
        }

        .notice {
            border-radius: 12px;
            padding: 12px 14px;
            border: 1px solid rgba(30, 58, 138, 0.12);
            border-left: 3px solid rgba(30, 58, 138, 0.32);
            background: rgba(30, 58, 138, 0.035);
            color: var(--text);
            line-height: 1.45;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
        }

        .notice.warning {
            border-color: rgba(183, 121, 31, 0.16);
            border-left-color: rgba(183, 121, 31, 0.45);
            background: rgba(183, 121, 31, 0.06);
        }

        .notice.success {
            border-color: rgba(47, 133, 90, 0.16);
            border-left-color: rgba(47, 133, 90, 0.42);
            background: rgba(47, 133, 90, 0.055);
        }

        .notice.error {
            border-color: rgba(197, 48, 48, 0.16);
            border-left-color: rgba(197, 48, 48, 0.45);
            background: rgba(197, 48, 48, 0.045);
        }

        .message-stack {
            display: grid;
            gap: 10px;
            margin-bottom: 14px;
        }

        .message {
            border-radius: 12px;
            padding: 11px 13px;
            border: 1px solid rgba(30, 58, 138, 0.12);
            border-left: 3px solid rgba(30, 58, 138, 0.32);
            background: rgba(30, 58, 138, 0.035);
            color: var(--text);
            line-height: 1.45;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
        }

        .message.success {
            border-color: rgba(47, 133, 90, 0.16);
            border-left-color: rgba(47, 133, 90, 0.42);
            background: rgba(47, 133, 90, 0.055);
        }

        .message.warning {
            border-color: rgba(183, 121, 31, 0.16);
            border-left-color: rgba(183, 121, 31, 0.45);
            background: rgba(183, 121, 31, 0.06);
        }

        .message.error {
            border-color: rgba(197, 48, 48, 0.16);
            border-left-color: rgba(197, 48, 48, 0.45);
            background: rgba(197, 48, 48, 0.045);
        }

        .progress-track {
            width: 100%;
            height: 12px;
            border-radius: 999px;
            background: #EEF2F6;
            overflow: hidden;
            border: 1px solid var(--border);
        }

        .progress-fill {
            height: 100%;
            background: var(--primary);
            width: 0%;
        }

        .savings-meter {
            display: grid;
            gap: 6px;
        }

        .savings-meter-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
            color: var(--text-muted);
            font-size: var(--font-xs);
            line-height: 1.3;
            font-weight: 700;
        }

        .savings-meter-track {
            width: 100%;
            height: 10px;
            border-radius: 999px;
            border: 1px solid rgba(15, 118, 110, 0.12);
            background: rgba(15, 118, 110, 0.06);
            overflow: hidden;
        }

        .savings-meter-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #0F766E, #159A90);
            border-radius: inherit;
        }

        .task-savings-meter {
            margin-top: 8px;
            display: grid;
            gap: 6px;
        }

        .task-savings-note {
            margin: 0;
            color: var(--text-muted);
            font-size: var(--font-xs);
            line-height: 1.3;
        }

        .task-list {
            display: grid;
            gap: 10px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .task-item {
            display: grid;
            gap: 10px;
            padding: 12px 13px;
            border: 1px solid var(--border-softer);
            background: var(--surface);
            border-radius: 12px;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
        }

        .task-item.task-item-done {
            background: var(--surface-soft);
            border-color: rgba(17, 24, 39, 0.04);
        }

        .task-item.task-item-advanced {
            gap: 8px;
            padding-top: 11px;
            padding-bottom: 11px;
        }

        .task-item.task-item-simple .task-meta {
            gap: 5px;
        }

        .task-item.task-item-simple .task-badge {
            font-weight: 600;
        }

        .task-item-main {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .task-item-main input[type="checkbox"] {
            margin-top: 2px;
            flex: 0 0 auto;
        }

        .task-item-content {
            flex: 1;
            min-width: 0;
            display: grid;
            gap: 6px;
        }

        .task-title {
            margin: 0;
            cursor: pointer;
            color: var(--text);
            font-weight: 600;
            line-height: 1.45;
        }

        .task-item.task-item-done .task-title {
            color: var(--text-muted);
            text-decoration: line-through;
            text-decoration-thickness: 1px;
        }

        .task-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .task-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 8px;
            border-radius: 999px;
            border: 1px solid var(--border);
            background: #F8FAFC;
            color: var(--text);
            font-size: var(--font-xs);
            line-height: 1.2;
            font-weight: 700;
        }

        .task-badge.priority-low {
            border-color: rgba(15, 118, 110, 0.18);
            background: rgba(15, 118, 110, 0.05);
            color: var(--teal);
        }

        .task-badge.priority-medium {
            border-color: rgba(183, 121, 31, 0.18);
            background: rgba(183, 121, 31, 0.07);
            color: var(--warning);
        }

        .task-badge.priority-high {
            border-color: rgba(197, 48, 48, 0.22);
            background: rgba(197, 48, 48, 0.07);
            color: var(--error);
        }

        .task-badge.overdue {
            border-color: rgba(197, 48, 48, 0.22);
            background: rgba(197, 48, 48, 0.07);
            color: var(--error);
        }

        .task-badge.due-soon {
            border-color: rgba(183, 121, 31, 0.2);
            background: rgba(183, 121, 31, 0.08);
            color: var(--warning);
        }

        .task-badge.scheduled {
            border-color: rgba(30, 58, 138, 0.18);
            background: rgba(30, 58, 138, 0.05);
            color: var(--primary);
        }

        .task-badge.done {
            border-color: rgba(47, 133, 90, 0.2);
            background: rgba(47, 133, 90, 0.07);
            color: var(--success);
        }

        .task-item-advanced-stack {
            display: grid;
            gap: 8px;
        }

        .task-item.task-item-advanced .task-item-advanced-stack {
            gap: 8px;
        }

        .task-inline-controls {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
            gap: 10px;
            align-items: end;
        }

        .task-inline-controls .task-select-inline-standalone {
            justify-self: end;
            align-self: end;
        }

        .task-item-details {
            border: 1px solid var(--border-softer);
            border-radius: 10px;
            background: var(--surface-soft);
        }

        .task-item-details .details-summary {
            padding: 8px 10px;
        }

        .task-item-details .details-content {
            padding: 8px 10px 10px;
        }

        .task-item-details .details-summary-text strong {
            font-size: var(--font-sm);
        }

        .task-item-details .details-summary-note {
            color: #6B7280;
        }

        .task-item-details .pill {
            background: var(--surface);
        }

        .task-fields {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 10px;
            align-items: end;
        }

        .task-field-inline label {
            display: block;
            margin-bottom: 5px;
            color: var(--text-muted);
            font-size: var(--font-xs);
            line-height: 1.2;
            font-weight: 700;
        }

        .task-field-inline select,
        .task-field-inline input[type="date"] {
            padding: 9px 10px;
            font-size: var(--font-sm);
            border-radius: 10px;
        }

        .task-select-inline {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-height: 40px;
            padding: 0 4px 2px 2px;
        }

        .task-select-inline label {
            margin: 0;
            color: var(--text-muted);
            font-size: var(--font-sm);
            line-height: 1.2;
            font-weight: 700;
            cursor: pointer;
        }

        .task-select-inline-standalone {
            border: 1px solid rgba(33, 24, 14, 0.07);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.55);
            padding: 6px 10px;
            min-height: 36px;
        }

        .task-item.task-item-advanced .task-select-inline-standalone {
            justify-self: end;
            align-self: start;
            padding: 5px 8px;
            min-height: 34px;
            background: rgba(255, 255, 255, 0.7);
        }

        .task-select-inline-standalone label {
            color: var(--text-muted);
            font-size: var(--font-xs);
            font-weight: 600;
        }

        .task-select-inline-standalone:focus-within {
            border-color: rgba(30, 58, 138, 0.2);
            background: rgba(255, 255, 255, 0.85);
        }

        .checklist-savebar {
            position: sticky;
            bottom: 10px;
            z-index: 12;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin: 0 0 12px;
            padding: 10px 12px;
            border-radius: 12px;
            border: 1px solid rgba(33, 24, 14, 0.1);
            background: rgba(255, 255, 255, 0.92);
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
            backdrop-filter: blur(8px);
        }

        .checklist-savebar-meta {
            display: grid;
            gap: 2px;
            min-width: 0;
        }

        .checklist-savebar-meta .muted {
            font-size: var(--font-sm);
            line-height: 1.25;
        }

        .checklist-savebar-pill {
            width: fit-content;
        }

        .checklist-savebar[data-dirty="true"] {
            border-color: rgba(183, 121, 31, 0.2);
            background: rgba(255, 251, 235, 0.95);
            box-shadow: 0 10px 24px rgba(183, 121, 31, 0.1);
        }

        .checklist-savebar[data-dirty="true"] .checklist-savebar-pill {
            color: var(--warning);
            border-color: rgba(183, 121, 31, 0.22);
            background: rgba(183, 121, 31, 0.08);
        }

        .checklist-savebar[data-dirty="saving"] {
            border-color: rgba(30, 58, 138, 0.18);
        }

        .checklist-list-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 12px;
            border: 1px solid rgba(33, 24, 14, 0.08);
            background: rgba(255, 255, 255, 0.68);
        }

        .checklist-list-summary {
            min-width: 0;
            display: grid;
            gap: 2px;
        }

        .checklist-list-summary strong {
            color: var(--text);
            font-size: 0.92rem;
            line-height: 1.25;
        }

        .checklist-list-summary .muted {
            font-size: var(--font-xs);
            line-height: 1.25;
        }

        .checklist-list-toolbar .btn-link {
            white-space: nowrap;
            padding: 0;
            min-height: auto;
        }

        [data-checklist-form] {
            padding-bottom: 6px;
        }

        .rec-card .rec-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
        }

        .score-pill {
            white-space: nowrap;
            border-radius: 999px;
            padding: 7px 10px;
            background: rgba(30, 58, 138, 0.07);
            color: var(--primary);
            border: 1px solid rgba(30, 58, 138, 0.14);
            font-weight: 700;
            font-size: var(--font-sm);
            line-height: 1.2;
        }

        .results-criteria-panel {
            margin-top: 12px;
        }

        .results-criteria-panel .details-content {
            padding-top: 10px;
        }

        .results-criteria-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .results-criteria-item {
            display: grid;
            gap: 2px;
            padding: 10px 12px;
            border-radius: 12px;
            border: 1px solid rgba(33, 24, 14, 0.06);
            background: rgba(255, 255, 255, 0.7);
        }

        .results-criteria-item span {
            color: var(--text-muted);
            font-size: var(--font-xs);
            line-height: 1.2;
        }

        .results-criteria-item strong {
            color: var(--text);
            font-size: var(--font-sm);
            line-height: 1.3;
        }

        .route-preview-list {
            margin: 0;
            padding: 0;
            list-style: none;
            display: grid;
            gap: 8px;
        }

        .route-preview-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 12px;
            border: 1px solid rgba(33, 24, 14, 0.08);
            background: rgba(255, 255, 255, 0.82);
            text-decoration: none;
            color: var(--text);
            transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
        }

        .route-preview-link:hover {
            border-color: rgba(15, 118, 110, 0.18);
            background: rgba(255, 255, 255, 0.96);
        }

        .route-preview-link:focus-visible {
            outline: 2px solid rgba(30, 58, 138, 0.22);
            outline-offset: 2px;
            border-color: rgba(30, 58, 138, 0.22);
        }

        .route-preview-link.is-active {
            border-color: rgba(30, 58, 138, 0.18);
            background: rgba(30, 58, 138, 0.04);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
        }

        .route-preview-link-main {
            min-width: 0;
            display: grid;
            gap: 2px;
        }

        .route-preview-link-main strong {
            color: var(--text);
            font-size: var(--font-sm);
            line-height: 1.25;
        }

        .route-preview-link-meta {
            color: var(--text-muted);
            font-size: var(--font-xs);
            line-height: 1.2;
        }

        .route-preview-link-score {
            padding: 5px 8px;
            font-size: 0.72rem;
            line-height: 1.1;
            flex: 0 0 auto;
        }

        .visa-route-results-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin: -2px 0 10px;
        }

        .visa-route-results-status {
            margin: 0;
            min-width: 0;
        }

        .visa-route-results-toolbar .btn-link {
            margin-left: auto;
            border: 0;
            background: transparent;
            padding: 0;
            cursor: pointer;
            white-space: nowrap;
        }

        .visa-route-card {
            scroll-margin-top: 96px;
        }

        .visa-route-card[data-route-selected="true"] {
            border-color: rgba(30, 58, 138, 0.16);
            background: rgba(30, 58, 138, 0.025);
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
        }

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

        .status-pill {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 10px 12px;
            border-radius: 12px;
            border: 1px solid var(--border);
            background: #F8FAFC;
        }

        .status-pill-stacked {
            display: grid;
            align-content: start;
            justify-content: start;
            gap: 6px;
        }

        .status-pill strong { font-size: 0.88rem; color: var(--text); }
        .status-pill-stacked span {
            color: var(--text-muted);
            font-size: var(--font-xs);
            line-height: 1.35;
        }
        .badge-ok { color: var(--success); font-weight: 700; font-size: var(--font-xs); line-height: 1.2; }
        .badge-missing { color: var(--warning); font-weight: 700; font-size: var(--font-xs); line-height: 1.2; }

        .doc-list {
            margin: 0;
            padding: 0;
            list-style: none;
            display: grid;
            gap: 10px;
        }

        .doc-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 12px;
            border-radius: 12px;
            border: 1px solid var(--border-softer);
            background: var(--surface);
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
        }

        .doc-meta {
            margin: 0;
            color: var(--muted);
            font-size: var(--font-xs);
            line-height: 1.35;
        }

        .source-list {
            margin: 0;
            padding: 0;
            list-style: none;
            display: grid;
            gap: 10px;
        }

        .source-item {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            padding: 12px;
            border-radius: 12px;
            border: 1px solid rgba(15, 118, 110, 0.10);
            background: rgba(15, 118, 110, 0.025);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
        }

        .source-title {
            margin: 0;
            color: var(--text);
            font-weight: 700;
            line-height: 1.35;
        }

        .source-meta {
            margin: 4px 0 0;
            color: var(--primary);
            font-size: var(--font-xs);
            line-height: 1.2;
            font-weight: 700;
        }

        .source-note {
            margin: 6px 0 0;
            color: var(--text-muted);
            font-size: var(--font-sm);
            line-height: 1.4;
        }

        .section-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 12px;
        }

        .section-title h2 {
            margin: 0;
            position: relative;
            padding-left: 10px;
        }

        .section-title h2::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.2em;
            bottom: 0.2em;
            width: 3px;
            border-radius: 999px;
            background: rgba(15, 118, 110, 0.45);
        }

        hr {
            border: 0;
            border-top: 1px solid var(--divider);
            margin: 16px 0;
        }

        form p { margin: 0 0 12px; }

        form p label {
            display: block;
            margin-bottom: 6px;
            font-weight: 700;
            font-size: var(--font-sm);
            color: var(--text);
            line-height: 1.3;
        }

        .helptext {
            display: block;
            color: var(--muted);
            font-size: var(--font-xs);
            margin-top: 6px;
            line-height: 1.35;
        }

        ul.errorlist {
            margin: 6px 0 8px;
            padding: 0;
            list-style: none;
            color: var(--error);
            font-size: var(--font-sm);
            line-height: 1.35;
        }

        .footer-note {
            margin-top: 18px;
            padding-top: 14px;
            border-top: 1px solid var(--divider);
            color: var(--muted);
            font-size: var(--font-sm);
            text-align: center;
            line-height: 1.4;
        }

        .footer-links {
            margin-top: 10px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px 14px;
            font-size: var(--font-sm);
        }

        .footer-links a {
            color: var(--primary);
        }

        /* Workspace polish for dashboard/checklist/documents pages */
        [data-workspace-shell] {
            position: relative;
        }

        [data-workspace-shell].workspace-shell-entered {
            animation: workspaceShellEnter 260ms ease-out both;
        }

        .workspace-nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 14px;
            padding: 8px;
            border-radius: 14px;
            border: 1px solid rgba(33, 24, 14, 0.06);
            background: rgba(255, 255, 255, 0.52);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
        }

        .workspace-tabs {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
            min-width: 0;
            scroll-behavior: smooth;
        }

        .workspace-tab {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            padding: 8px 12px;
            border-radius: 12px;
            border: 1px solid transparent;
            color: #5D6778;
            font-family: "Trebuchet MS", "Segoe UI", sans-serif;
            font-size: 1.05rem;
            font-weight: 700;
            line-height: 1.15;
            text-decoration: none;
            transition:
                background-color 120ms ease,
                border-color 120ms ease,
                color 120ms ease,
                box-shadow 120ms ease,
                transform 120ms ease,
                opacity 120ms ease;
        }

        .workspace-tab:hover {
            text-decoration: none;
            color: var(--text);
            background: rgba(23, 32, 42, 0.03);
            border-color: rgba(33, 24, 14, 0.06);
        }

        .workspace-tab.is-active,
        .workspace-tab[aria-current="page"] {
            color: var(--text);
            background: rgba(255, 255, 255, 0.88);
            border-color: rgba(33, 24, 14, 0.08);
            box-shadow: inset 0 -2px 0 rgba(23, 32, 42, 0.88);
        }

        .workspace-tab:focus-visible {
            outline: 2px solid rgba(30, 58, 138, 0.18);
            outline-offset: 2px;
        }

        .workspace-tab.is-pending {
            opacity: 0.72;
            border-color: rgba(30, 58, 138, 0.14);
            background: rgba(30, 58, 138, 0.04);
            transform: translateY(1px);
        }

        [data-workspace-shell][data-workspace-loading="true"] .workspace-nav {
            border-color: rgba(30, 58, 138, 0.12);
        }

        .workspace-hero {
            border-radius: 18px;
            border-color: rgba(33, 24, 14, 0.07);
            box-shadow: 0 1px 2px rgba(34, 26, 19, 0.03), 0 10px 24px rgba(34, 26, 19, 0.04);
            padding: 22px;
        }

        .workspace-hero::before {
            display: none;
        }

        .workspace-hero .eyebrow {
            color: #6A7381;
            letter-spacing: 0.05em;
        }

        .workspace-hero h1 {
            margin-bottom: 8px;
        }

        .workspace-hero .muted {
            color: #677182;
            font-size: 1.02rem;
        }

        @keyframes workspaceShellEnter {
            from {
                opacity: 0;
                transform: translateY(4px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .workspace-hero .kpi,
        .dashboard-shell .kpi {
            border-radius: 16px;
            border-color: #E0D9CD;
            background: #F2EEE7;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
            padding: 18px;
        }

        .dashboard-shell {
            border-radius: 20px;
            border-color: rgba(33, 24, 14, 0.08);
            box-shadow: 0 1px 2px rgba(34, 26, 19, 0.03), 0 12px 28px rgba(34, 26, 19, 0.05);
            padding: 22px;
        }

        .dashboard-greeting {
            margin-bottom: 14px;
        }

        .dashboard-greeting .eyebrow {
            margin-bottom: 6px;
            color: #6A7381;
        }

        .dashboard-greeting h1 {
            margin: 0 0 6px;
            font-size: clamp(1.5rem, 3vw, 1.9rem);
            line-height: 1.15;
            letter-spacing: -0.01em;
        }

        .dashboard-intro {
            margin-bottom: 18px;
            max-width: 72ch;
            color: #677182;
            font-size: 1.02rem;
        }

        .dashboard-shell .section-title h2 {
            padding-left: 0;
        }

        .dashboard-shell .section-title h2::before {
            display: none;
        }

        .dashboard-shell .notice {
            border-radius: 16px;
            border-left-width: 1px;
            box-shadow: none;
        }

        .dashboard-alert {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 12px 14px;
            align-items: center;
            padding: 18px 18px;
            border-radius: 18px;
            border: 1px solid #F0C3C6;
            background: #F6CDD0;
            color: var(--text);
        }

        .dashboard-alert.warning,
        .dashboard-alert.success,
        .dashboard-alert.error {
            border-color: #F0C3C6;
            background: #F6CDD0;
            border-left-color: transparent;
        }

        .dashboard-alert-copy {
            min-width: 0;
        }

        .dashboard-alert-copy p {
            margin: 0;
        }

        .dashboard-alert-copy .dashboard-alert-detail {
            margin-top: 4px;
            color: #5E6674;
            font-size: var(--font-sm);
            line-height: 1.35;
        }

        .dashboard-alert-more {
            display: none;
            margin-top: 4px;
        }

        .dashboard-alert-more summary {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 2px 0;
            list-style: none;
            cursor: pointer;
            color: #5E6674;
            font-size: var(--font-xs);
            line-height: 1.25;
            font-weight: 700;
        }

        .dashboard-alert-more summary::-webkit-details-marker {
            display: none;
        }

        .dashboard-alert-more summary::after {
            content: "+";
            font-weight: 700;
            color: #5E6674;
        }

        .dashboard-alert-more[open] summary::after {
            content: "-";
        }

        .dashboard-alert-more .dashboard-alert-detail {
            margin-top: 4px;
        }

        .dashboard-alert .actions {
            gap: 10px;
            justify-content: flex-end;
        }

        .dashboard-metrics {
            margin-top: 16px;
        }

        .dashboard-metrics .kpi-value {
            font-size: 2rem;
            line-height: 1.05;
        }

        .dashboard-metrics .kpi-label {
            margin-top: 6px;
            font-size: 0.96rem;
        }

        .dashboard-shell .status-pill {
            border-color: #E2DCD1;
            background: rgba(255, 255, 255, 0.92);
            box-shadow: none;
        }

        .dashboard-shell .card.card-tight.card-subtle {
            border-radius: 18px;
            border-color: #DDD6C9;
            background: #ECE7DC !important;
            box-shadow: none !important;
        }

        .dashboard-shell .card.card-tight.card-subtle .chip {
            background: rgba(255, 255, 255, 0.82);
            border-color: rgba(33, 24, 14, 0.08);
        }

        .dashboard-next-panel {
            padding: 18px !important;
        }

        .dashboard-next-panel .section-title {
            margin-bottom: 10px;
        }

        .dashboard-next-filters {
            padding: 0;
            border-radius: 14px;
            border: 1px solid #E4DCCF;
            background: rgba(255, 255, 255, 0.68);
        }

        .dashboard-next-filters .details-summary {
            padding: 8px 10px;
        }

        .dashboard-next-filters .details-content {
            padding: 0 10px 10px;
        }

        .dashboard-next-filters .details-summary-note {
            font-size: 0.75rem;
        }

        .dashboard-next-filters .chip-row {
            gap: 6px;
        }

        .dashboard-next-filters .chip {
            background: rgba(255, 255, 255, 0.95);
        }

        .dashboard-next-panel .doc-list {
            gap: 12px;
        }

        .dashboard-next-list {
            gap: 10px !important;
        }

        .dashboard-next-panel .doc-item {
            padding: 16px 18px;
            border-radius: 16px;
            border-color: #E6DECF;
            background: #FFFFFF;
            box-shadow: none;
        }

        .dashboard-next-item {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: start;
            gap: 12px;
        }

        .dashboard-next-item-main {
            min-width: 0;
            display: grid;
            gap: 2px;
        }

        .dashboard-next-item-meta {
            margin-top: 2px;
        }

        .dashboard-next-panel .doc-item strong {
            font-size: 1.08rem;
            line-height: 1.25;
        }

        .dashboard-next-panel .doc-meta {
            margin-top: 4px;
            color: #677182;
            font-size: 0.95rem;
        }

        .dashboard-next-panel .task-savings-meter {
            margin-top: 8px;
            gap: 7px;
        }

        .dashboard-next-panel .savings-meter-meta {
            font-size: 0.8rem;
            color: #5E6674;
        }

        .dashboard-next-panel .savings-meter-track {
            height: 9px;
            border-color: rgba(15, 118, 110, 0.10);
            background: rgba(15, 118, 110, 0.05);
        }

        .dashboard-next-panel .task-savings-note {
            font-size: 0.8rem;
            color: #677182;
        }

        .dashboard-next-panel .chip-row {
            gap: 8px;
            justify-content: flex-end;
            align-items: flex-start;
            margin-top: 0;
        }

        .dashboard-next-panel .task-badge {
            padding: 6px 12px;
            border-radius: 999px;
            font-size: 0.88rem;
            background: #F7F4EE;
            border-color: #E7DFD2;
        }

        .dashboard-next-panel .task-badge.priority-low {
            border-color: rgba(15, 118, 110, 0.22);
            background: rgba(15, 118, 110, 0.05);
        }

        .dashboard-next-panel .task-badge.priority-medium,
        .dashboard-next-panel .task-badge.due-soon {
            border-color: rgba(183, 121, 31, 0.22);
            background: rgba(183, 121, 31, 0.06);
        }

        .dashboard-next-panel .task-badge.priority-high,
        .dashboard-next-panel .task-badge.overdue {
            border-color: rgba(197, 48, 48, 0.24);
            background: rgba(197, 48, 48, 0.055);
        }

        .tabs-shell {
            display: grid;
            gap: 12px;
        }

        .tabs-list {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            align-items: center;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--divider);
        }

        .tab-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 38px;
            padding: 7px 11px;
            border-radius: 10px;
            border: 1px solid rgba(33, 24, 14, 0.08);
            background: var(--surface-soft);
            color: var(--text);
            font-weight: 700;
            font-size: var(--font-sm);
            line-height: 1.2;
            cursor: pointer;
        }

        .tab-btn:hover {
            background: #FFFFFF;
            border-color: rgba(33, 24, 14, 0.12);
        }

        .tab-btn[aria-selected="true"] {
            background: #FFFFFF;
            border-color: rgba(30, 58, 138, 0.16);
            color: var(--primary);
            box-shadow: inset 0 -2px 0 rgba(30, 58, 138, 0.75);
        }

        .tab-panel[hidden] {
            display: none !important;
        }

        .tab-panel > :last-child {
            margin-bottom: 0;
        }

        .tab-panel-heading {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
        }

        .tab-panel-heading h2 {
            margin: 0;
            font-size: 1.05rem;
        }

        .tab-panel-stack {
            display: grid;
            gap: 12px;
        }

        .checklist-sidebar-tabs {
            padding: 14px;
        }

        .checklist-sidebar-tabs .tabs-list {
            margin-bottom: 2px;
        }

        .checklist-sidebar-tabs .tab-panel {
            padding-top: 2px;
        }

        .checklist-tools-tabs {
            padding: 14px;
        }

        .checklist-tools-tabs .tabs-list {
            margin-bottom: 2px;
        }

        .checklist-tools-tabs .tab-panel {
            padding-top: 2px;
        }

        .toolstrip-label {
            margin: 0 0 6px;
            color: var(--text-muted);
            font-size: var(--font-xs);
            line-height: 1.2;
            font-weight: 700;
        }

        .checklist-bulk-helper-actions .btn-ghost {
            min-height: 34px;
            padding: 6px 10px;
            border-radius: 10px;
            font-size: 0.82rem;
        }

        [data-bulk-selected-count][data-has-selection="true"] {
            border-color: rgba(30, 58, 138, 0.16);
            background: rgba(30, 58, 138, 0.06);
            color: var(--primary);
        }

        /* Simplification pass: flatter surfaces, calmer controls, clearer hierarchy */
        body {
            background: #F4F1EA;
        }

        .topbar {
            gap: 12px;
            padding: 12px 14px;
            border-radius: 14px;
            background: rgba(255, 253, 249, 0.96);
            border-color: rgba(33, 24, 14, 0.08);
            box-shadow: none;
        }

        .brand-badge {
            width: 82px;
            height: 82px;
            border-radius: 12px;
            box-shadow: none;
        }

        .brand-title {
            font-size: 1.22rem;
        }

        .topbar-links {
            gap: 6px;
        }

        .btn-link {
            min-height: 40px;
            padding: 8px 10px;
            border-radius: 10px;
            font-weight: 600;
        }

        .btn,
        .btn-secondary,
        .btn-ghost {
            min-height: 44px;
            border-radius: 10px;
            box-shadow: none;
        }

        .btn {
            padding: 10px 14px;
        }

        .btn-secondary {
            background: #FFFFFF;
            border-color: rgba(33, 24, 14, 0.12);
        }

        .btn-ghost {
            border-color: rgba(30, 58, 138, 0.14);
        }

        .hero,
        .card {
            border-radius: 14px;
            border-color: rgba(33, 24, 14, 0.08);
            box-shadow: none;
        }

        .hero {
            padding: 20px;
        }

        .hero::before {
            display: none;
        }

        .choice-card,
        .kpi,
        .status-pill,
        .doc-item,
        .task-item,
        .source-item,
        .carousel-btn,
        .carousel-status {
            box-shadow: none;
        }

        .choice-card,
        .kpi,
        .status-pill,
        .doc-item,
        .task-item,
        .source-item {
            border-color: rgba(33, 24, 14, 0.10);
        }

        .pill,
        .chip {
            border-color: rgba(33, 24, 14, 0.10);
            background: #F7F3EC;
        }

        .notice,
        .message {
            border-left-width: 1px;
            box-shadow: none;
        }

        .section-title {
            margin-bottom: 10px;
        }

        .section-title h2 {
            padding-left: 8px;
        }

        .section-title h2::before {
            width: 2px;
            background: rgba(15, 118, 110, 0.34);
        }

        .details-summary {
            padding: 12px 14px;
        }

        .details-content {
            padding: 12px 14px 14px;
        }

        .workspace-tabs {
            gap: 4px;
        }

        .workspace-tab {
            min-height: 42px;
            border-radius: 10px;
            font-size: 1rem;
        }

        .workspace-tab.is-active,
        .workspace-tab[aria-current="page"] {
            box-shadow: inset 0 -2px 0 rgba(23, 32, 42, 0.78);
        }

        /* Public home page landing redesign: stronger hero, cleaner value framing */
        .landing-home-hero {
            position: relative;
            overflow: hidden;
            background:
                radial-gradient(circle at 88% 10%, rgba(30, 58, 138, 0.08), transparent 44%),
                radial-gradient(circle at 6% 94%, rgba(15, 118, 110, 0.08), transparent 42%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 236, 0.94));
            border-color: rgba(33, 24, 14, 0.08);
        }

        .landing-home-hero::after {
            content: "";
            position: absolute;
            inset: 0;
            background:
                linear-gradient(120deg, rgba(30, 58, 138, 0.02), transparent 44%),
                linear-gradient(300deg, rgba(15, 118, 110, 0.03), transparent 52%);
            pointer-events: none;
        }

        .landing-home-hero-grid {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
            gap: 18px;
            align-items: start;
        }

        .landing-home-copy {
            align-self: start;
        }

        .landing-home-copy h1 {
            max-width: 19ch;
            margin-bottom: 10px;
            font-size: clamp(1.9rem, 2.8vw, 2.35rem);
            line-height: 1.08;
            letter-spacing: -0.02em;
        }

        .landing-home-copy > .muted {
            max-width: 52ch;
            font-size: 0.98rem;
            line-height: 1.4;
            margin-bottom: 12px;
        }

        .landing-home-value-row {
            gap: 6px;
            margin-bottom: 12px;
        }

        .landing-home-value-row .chip {
            background: rgba(255, 255, 255, 0.80);
            border-color: rgba(33, 24, 14, 0.08);
        }

        .landing-home-actions {
            gap: 10px;
            margin-bottom: 12px;
        }

        .landing-home-actions .btn {
            min-width: 130px;
        }

        .landing-home-actions .btn-link {
            min-height: 44px;
            display: inline-flex;
            align-items: center;
            border-color: rgba(33, 24, 14, 0.08);
            background: rgba(255, 255, 255, 0.72);
            border-radius: 10px;
            padding: 10px 12px;
        }

        .landing-home-proof-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
            margin-top: 4px;
            margin-bottom: 10px;
        }

        .landing-home-proof-item {
            padding: 11px 12px;
            border-radius: 12px;
            border: 1px solid rgba(33, 24, 14, 0.08);
            background: rgba(255, 255, 255, 0.78);
        }

        .landing-home-proof-value {
            margin: 0 0 4px;
            color: var(--text);
            font-size: 1.05rem;
            font-weight: 700;
            line-height: 1.1;
            letter-spacing: -0.01em;
        }

        .landing-home-proof-label {
            margin: 0;
            color: var(--text-muted);
            font-size: var(--font-xs);
            line-height: 1.25;
        }

        .landing-home-account-note {
            background: rgba(255, 255, 255, 0.78);
            border-color: rgba(33, 24, 14, 0.08);
        }

        .landing-home-route-strip {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-top: 0;
        }

        .landing-home-route-tile {
            display: grid;
            gap: 4px;
            align-content: start;
            padding: 11px 12px;
            min-height: 92px;
            border-radius: 12px;
            border: 1px solid rgba(33, 24, 14, 0.08);
            background: rgba(255, 255, 255, 0.84);
            color: var(--text);
            text-decoration: none;
            transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
        }

        .landing-home-route-tile:hover {
            transform: translateY(-1px);
            border-color: rgba(30, 58, 138, 0.20);
            background: rgba(255, 255, 255, 0.96);
            text-decoration: none;
        }

        .landing-home-route-kicker {
            color: var(--teal);
            font-size: var(--font-xs);
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .landing-home-route-title {
            color: var(--text);
            font-size: 1rem;
            line-height: 1.2;
            letter-spacing: -0.01em;
        }

        .landing-home-route-copy {
            color: var(--text-muted);
            font-size: var(--font-sm);
            line-height: 1.32;
        }

        .landing-home-visual {
            display: grid;
            gap: 8px;
            align-content: start;
        }

        .landing-home-visual-stage {
            position: relative;
            display: grid;
            gap: 8px;
            padding: 14px;
            border-radius: 16px;
            border: 1px solid rgba(33, 24, 14, 0.08);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 243, 236, 0.92));
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.55),
                0 8px 28px rgba(33, 24, 14, 0.05);
        }

        .landing-home-hero-bottom {
            grid-column: 1 / -1;
            display: grid;
            grid-template-columns: 1fr;
            align-items: start;
            gap: 8px;
            margin-top: 2px;
        }

        .landing-home-hero-note {
            max-width: none;
            text-align: left;
            color: var(--text-muted);
            font-size: var(--font-sm);
            line-height: 1.35;
            padding-left: 2px;
            opacity: 0.95;
        }

        .landing-home-visual-badge {
            display: inline-flex;
            align-items: center;
            justify-self: start;
            min-height: 28px;
            padding: 0 10px;
            border-radius: 999px;
            border: 1px solid rgba(33, 24, 14, 0.08);
            background: rgba(255, 255, 255, 0.88);
            color: var(--text);
            font-size: var(--font-xs);
            line-height: 1.2;
            font-weight: 700;
            letter-spacing: 0.03em;
            text-transform: uppercase;
        }

        .landing-home-mosaic {
            display: grid;
            grid-template-columns: 1.08fr 0.92fr;
            grid-template-rows: repeat(2, minmax(0, 132px));
            grid-auto-rows: minmax(0, 112px);
            gap: 10px;
        }

        .landing-home-mosaic-tile {
            position: relative;
            overflow: hidden;
            border-radius: 14px;
            border: 1px solid rgba(33, 24, 14, 0.08);
            background: #EEE7DD;
        }

        .landing-home-mosaic-tile.is-large {
            grid-row: 1 / span 2;
        }

        .landing-home-mosaic-tile img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .landing-home-mosaic-img {
            transition: opacity 2600ms ease;
        }

        .landing-home-mosaic-img.is-entering {
            position: absolute;
            inset: 0;
            opacity: 0;
            z-index: 0;
        }

        .landing-home-mosaic-img.is-entering.is-visible {
            opacity: 1;
        }

        .landing-home-mosaic-img.is-leaving {
            opacity: 0;
        }

        .landing-home-mosaic-tile::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(11, 16, 26, 0.02), rgba(11, 16, 26, 0.72));
            pointer-events: none;
        }

        .landing-home-mosaic-empty {
            background:
                linear-gradient(155deg, rgba(30, 58, 138, 0.10), rgba(15, 118, 110, 0.10)),
                #F5EFE5;
        }

        .landing-home-mosaic-empty::after {
            background: none;
        }

        .landing-home-mosaic-overlay {
            position: absolute;
            left: 10px;
            right: 10px;
            bottom: 10px;
            z-index: 1;
            display: grid;
            gap: 2px;
            color: #FFFFFF;
        }

        .landing-home-mosaic-name {
            margin: 0;
            color: #FFFFFF;
            font-size: 0.96rem;
            line-height: 1.12;
            font-weight: 700;
            letter-spacing: -0.01em;
        }

        .landing-home-mosaic-meta {
            margin: 0;
            color: rgba(255, 255, 255, 0.92);
            font-size: 0.72rem;
            line-height: 1.2;
        }

        .landing-home-focus-card {
            padding: 12px;
            border-radius: 12px;
            border: 1px solid rgba(33, 24, 14, 0.08);
            background: rgba(255, 255, 255, 0.82);
        }

        .landing-home-focus-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 8px;
        }

        .landing-home-focus-head strong {
            color: var(--text);
            font-size: 0.96rem;
            line-height: 1.2;
        }

        .landing-home-focus-list {
            display: grid;
            gap: 8px;
        }

        .landing-home-focus-list li {
            margin: 0;
            font-size: var(--font-sm);
            line-height: 1.35;
        }

        .landing-home-snapshot-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .landing-home-snapshot-card {
            display: grid;
            gap: 6px;
            padding: 12px;
            border-radius: 12px;
            border: 1px solid rgba(33, 24, 14, 0.08);
            background: rgba(255, 255, 255, 0.84);
        }

        .landing-home-snapshot-label {
            margin: 0;
            color: var(--text-muted);
            font-size: var(--font-xs);
            line-height: 1.2;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .landing-home-snapshot-title {
            margin: 0;
            color: var(--text);
            font-size: 0.96rem;
            line-height: 1.2;
            font-weight: 700;
            letter-spacing: -0.01em;
        }

        .landing-home-snapshot-copy {
            margin: 0;
            color: var(--text-muted);
            font-size: var(--font-sm);
            line-height: 1.35;
        }

        .landing-home-snapshot-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 8px;
        }

        .landing-home-snapshot-metric {
            color: var(--primary);
            font-size: 1.15rem;
            line-height: 1;
            letter-spacing: -0.02em;
        }

        .landing-home-snapshot-meter {
            position: relative;
            height: 8px;
            border-radius: 999px;
            overflow: hidden;
            border: 1px solid rgba(30, 58, 138, 0.10);
            background: rgba(30, 58, 138, 0.05);
        }

        .landing-home-snapshot-meter-fill {
            display: block;
            width: 25%;
            height: 100%;
            background: linear-gradient(90deg, rgba(30, 58, 138, 0.92), rgba(15, 118, 110, 0.84));
        }

        .landing-home-photo-band {
            display: grid;
            gap: 10px;
        }

        .landing-home-photo-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }

        .landing-home-photo-card {
            position: relative;
            overflow: hidden;
            border-radius: 14px;
            border: 1px solid rgba(33, 24, 14, 0.08);
            background: #EEE7DD;
            min-height: 180px;
        }

        .landing-home-photo-card img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
        }

        .landing-home-photo-img {
            transition: opacity 2200ms ease;
        }

        .landing-home-photo-img.is-entering {
            position: absolute;
            inset: 0;
            opacity: 0;
            z-index: 0;
        }

        .landing-home-photo-img.is-entering.is-visible {
            opacity: 1;
        }

        .landing-home-photo-img.is-leaving {
            opacity: 0;
        }

        .landing-home-photo-card::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(11, 16, 26, 0.04), rgba(11, 16, 26, 0.75));
            pointer-events: none;
        }

        .landing-home-photo-overlay {
            position: absolute;
            inset: auto 10px 10px 10px;
            z-index: 1;
            display: flex;
            align-items: flex-end;
            justify-content: flex-start;
            gap: 10px;
        }

        .landing-home-photo-name {
            margin: 0;
            color: #FFFFFF;
            font-size: 1rem;
            line-height: 1.15;
            font-weight: 700;
            letter-spacing: -0.01em;
        }

        .landing-home-photo-meta {
            margin: 2px 0 0;
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.72rem;
            line-height: 1.2;
        }

        .landing-home-feature-grid {
            gap: 14px;
        }

        .landing-home-feature-card {
            display: grid;
            gap: 8px;
            align-content: start;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 247, 240, 0.94));
        }

        .landing-home-feature-card-spotlight {
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 250, 249, 0.94));
        }

        .landing-home-feature-card-plan {
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 247, 251, 0.95));
        }

        .landing-home-feature-card-vault {
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 247, 241, 0.95));
        }

        .landing-home-feature-card .eyebrow {
            margin-bottom: 0;
        }

        .landing-home-feature-card h2 {
            margin-bottom: 2px;
        }

        .landing-home-feature-card .muted {
            margin-bottom: 4px;
            line-height: 1.4;
        }

        .landing-home-feature-pill {
            margin: -2px 0 0;
            color: var(--text-muted);
            font-size: var(--font-xs);
            line-height: 1.2;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .landing-home-lower-grid {
            align-items: start;
        }

        .landing-home-process-card {
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 246, 239, 0.95));
        }

        .landing-home-steps {
            display: grid;
            gap: 10px;
        }

        .landing-home-step {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: 10px;
            align-items: start;
            padding: 10px 12px;
            border-radius: 12px;
            border: 1px solid rgba(33, 24, 14, 0.08);
            background: rgba(255, 255, 255, 0.84);
        }

        .landing-home-step h3 {
            font-size: 1rem;
            line-height: 1.2;
        }

        .landing-home-step-index {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 999px;
            border: 1px solid rgba(30, 58, 138, 0.16);
            background: rgba(30, 58, 138, 0.05);
            color: var(--primary);
            font-weight: 700;
            font-size: 0.8rem;
            line-height: 1;
        }

        .landing-home-process-actions {
            gap: 10px;
        }

        .landing-home-trust-card {
            display: grid;
            gap: 8px;
            align-content: start;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 244, 236, 0.94));
        }

        .landing-home-trust-card h2 {
            margin-bottom: 0;
        }

        .landing-home-trust-card .muted {
            margin-bottom: 4px;
        }

        .landing-home-trust-chips {
            gap: 6px;
            margin-bottom: 0;
        }

        .landing-home-trust-chips .chip {
            background: rgba(255, 255, 255, 0.76);
        }

        @media (max-width: 920px) {
            .landing-home-hero-grid {
                grid-template-columns: 1fr;
            }

            .landing-home-copy h1 {
                max-width: 20ch;
            }

            .landing-home-mosaic {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                grid-template-rows: minmax(0, 144px);
            }

            .landing-home-mosaic-tile.is-large {
                grid-row: auto;
            }

            .landing-home-proof-grid {
                grid-template-columns: 1fr;
            }

            .landing-home-route-strip {
                grid-template-columns: 1fr;
            }

            .landing-home-snapshot-grid {
                grid-template-columns: 1fr;
            }

            .landing-home-photo-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 640px) {
            .landing-home-hero {
                padding: 16px;
            }

            .landing-home-copy h1 {
                max-width: none;
                font-size: 1.85rem;
                line-height: 1.04;
            }

            .landing-home-copy > .muted {
                font-size: 0.95rem;
            }

            .landing-home-mosaic {
                grid-template-columns: 1fr;
                grid-template-rows: none;
                grid-auto-rows: auto;
                gap: 8px;
            }

            .landing-home-mosaic-tile {
                min-height: 112px;
            }

            .landing-home-mosaic-tile.is-large {
                min-height: 176px;
            }

            .landing-home-proof-grid {
                gap: 8px;
            }

            .landing-home-proof-item {
                padding: 10px;
            }

            .landing-home-visual-stage {
                padding: 10px;
            }

            .landing-home-route-tile {
                padding: 10px;
            }

            .landing-home-photo-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .landing-home-photo-card {
                min-height: 168px;
            }

            .landing-home-photo-overlay {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
            }

            .landing-home-photo-overlay .btn-link {
                width: fit-content;
                min-height: 32px;
            }

        }

        /* Public home page landing refinements (visual-first pass) */
        .landing-home-meta-line {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
        }

        .landing-home-meta-pill {
            display: inline-flex;
            align-items: center;
            min-height: 30px;
            padding: 0 10px;
            border-radius: 999px;
            border: 1px solid rgba(33, 24, 14, 0.08);
            background: rgba(255, 255, 255, 0.78);
            color: var(--text);
            font-size: var(--font-xs);
            line-height: 1.2;
            font-weight: 600;
            white-space: nowrap;
        }

        .landing-home-visual-stage {
            gap: 12px;
            padding: 14px;
            border-radius: 16px;
            background:
                radial-gradient(circle at 88% 16%, rgba(30, 58, 138, 0.05), transparent 45%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(246, 241, 233, 0.93));
        }

        .landing-home-mosaic {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            grid-auto-rows: 96px;
            grid-template-rows: none;
        }

        .landing-home-mosaic-tile {
            min-height: 0;
            grid-column: span 2;
            grid-row: span 1;
            border-radius: 14px;
        }

        .landing-home-mosaic-tile.is-large {
            grid-column: span 2;
            grid-row: span 2;
        }

        .landing-home-mosaic-tile:nth-child(2) {
            grid-column: span 2;
            grid-row: span 1;
        }

        .landing-home-mosaic-tile:nth-child(3) {
            grid-column: span 1;
            grid-row: span 2;
        }

        .landing-home-mosaic-tile:nth-child(4) {
            grid-column: span 1;
            grid-row: span 1;
        }

        .landing-home-mosaic-tile:nth-child(5) {
            grid-column: span 2;
            grid-row: span 1;
        }

        .landing-home-mosaic-tile:nth-child(6) {
            grid-column: span 2;
            grid-row: span 1;
        }

        .landing-home-mosaic.is-trio {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            grid-auto-rows: 114px;
        }

        .landing-home-mosaic.is-trio .landing-home-mosaic-tile {
            grid-column: span 2;
            grid-row: span 1;
        }

        .landing-home-mosaic.is-trio .landing-home-mosaic-tile.is-large {
            grid-column: 1 / span 2;
            grid-row: 1 / span 2;
        }

        .landing-home-mosaic.is-trio .landing-home-mosaic-tile:nth-child(2) {
            grid-column: 3 / span 2;
            grid-row: 1 / span 1;
        }

        .landing-home-mosaic.is-trio .landing-home-mosaic-tile:nth-child(3) {
            grid-column: 3 / span 2;
            grid-row: 2 / span 1;
        }

        .landing-home-mosaic-overlay {
            left: 12px;
            right: 12px;
            bottom: 10px;
        }

        .landing-home-mosaic-name {
            font-size: 1.02rem;
            line-height: 1.1;
            text-shadow: 0 1px 10px rgba(11, 16, 26, 0.5);
        }

        .landing-home-mosaic-meta {
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.94);
            text-shadow: 0 1px 10px rgba(11, 16, 26, 0.5);
        }

        .landing-home-floating-card {
            display: grid;
            gap: 8px;
            padding: 12px;
            border-radius: 12px;
            border: 1px solid rgba(33, 24, 14, 0.08);
            background: rgba(255, 255, 255, 0.88);
        }

        .landing-home-floating-card-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .landing-home-floating-card-head strong {
            color: var(--text);
            font-size: 0.95rem;
            line-height: 1.2;
        }

        .landing-home-floating-list {
            display: grid;
            gap: 6px;
        }

        .landing-home-floating-row {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: 8px;
            align-items: start;
            color: var(--text-muted);
            font-size: var(--font-sm);
            line-height: 1.35;
        }

        .landing-home-floating-dot {
            width: 7px;
            height: 7px;
            margin-top: 0.42em;
            border-radius: 999px;
            background: rgba(15, 118, 110, 0.72);
        }

        .landing-home-photo-band {
            gap: 12px;
        }

        .landing-home-photo-grid {
            grid-template-columns: repeat(12, minmax(0, 1fr));
            grid-auto-rows: 38px;
            gap: 12px;
        }

        .landing-home-photo-grid.is-trio {
            grid-template-columns: repeat(3, minmax(0, 1fr));
            grid-auto-rows: auto;
        }

        .landing-home-photo-band .section-title {
            align-items: center;
            margin-bottom: 10px;
        }

        .landing-home-photo-band .section-title h2 {
            margin-bottom: 0;
        }

        .landing-home-photo-card {
            grid-column: span 4;
            grid-row: span 5;
            min-height: 0;
            aspect-ratio: auto;
            border-radius: 14px;
            background: #ECE5DA;
        }

        .landing-home-photo-card.is-wide {
            grid-column: span 8;
        }

        .landing-home-photo-card.is-tall {
            grid-row: span 7;
        }

        .landing-home-photo-grid.is-trio .landing-home-photo-card,
        .landing-home-photo-grid.is-trio .landing-home-photo-card.is-wide,
        .landing-home-photo-grid.is-trio .landing-home-photo-card.is-tall {
            grid-column: auto;
            grid-row: auto;
            min-height: 220px;
            aspect-ratio: 16 / 10;
        }

        .landing-home-photo-card::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
            pointer-events: none;
            z-index: 1;
        }

        .landing-home-photo-overlay {
            inset: auto 10px 10px 10px;
            gap: 8px;
            z-index: 2;
        }

        .landing-home-photo-overlay .btn-link {
            min-height: 32px;
            padding: 6px 10px;
        }

        .landing-home-feature-grid {
            margin-top: 12px;
        }

        .landing-home-feature-card {
            gap: 6px;
            padding: 18px;
        }

        .landing-home-feature-card .list-clean {
            margin-top: 2px;
        }

        .landing-home-feature-card .list-clean li {
            margin-bottom: 8px;
        }

        .landing-home-process-card-wide {
            background:
                radial-gradient(circle at 92% 8%, rgba(30, 58, 138, 0.05), transparent 42%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 243, 236, 0.95));
        }

        .landing-home-process-card-wide .landing-home-steps {
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }

        .landing-home-process-card-wide .landing-home-step {
            padding: 12px;
            height: 100%;
            background: rgba(255, 255, 255, 0.88);
        }

        .landing-home-process-actions {
            gap: 8px;
            align-items: center;
        }

        .landing-home-assurance-strip {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
        }

        .landing-home-assurance-item {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: 8px;
            align-items: start;
            padding: 10px 11px;
            border-radius: 12px;
            border: 1px solid rgba(33, 24, 14, 0.08);
            background: rgba(255, 255, 255, 0.82);
            color: var(--text-muted);
            font-size: var(--font-sm);
            line-height: 1.35;
        }

        .landing-home-assurance-dot {
            width: 7px;
            height: 7px;
            margin-top: 0.42em;
            border-radius: 999px;
            background: rgba(30, 58, 138, 0.72);
        }

        @media (max-width: 920px) {
            .landing-home-mosaic {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                grid-auto-rows: 106px;
            }

            .landing-home-mosaic.is-trio {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                grid-auto-rows: 110px;
            }

            .landing-home-mosaic-tile {
                grid-column: span 1;
                grid-row: span 1;
            }

            .landing-home-mosaic-tile.is-large {
                grid-column: span 2;
                grid-row: span 2;
            }

            .landing-home-mosaic-tile:nth-child(2),
            .landing-home-mosaic-tile:nth-child(3),
            .landing-home-mosaic-tile:nth-child(4),
            .landing-home-mosaic-tile:nth-child(5),
            .landing-home-mosaic-tile:nth-child(6) {
                grid-column: span 1;
                grid-row: span 1;
            }

            .landing-home-hero-bottom {
                grid-template-columns: 1fr;
                align-items: start;
                gap: 10px;
            }

            .landing-home-hero-note {
                max-width: none;
                text-align: left;
                padding-bottom: 0;
            }

            .landing-home-photo-grid {
                grid-template-columns: repeat(6, minmax(0, 1fr));
                grid-auto-rows: 44px;
            }

            .landing-home-photo-grid.is-trio {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                grid-auto-rows: auto;
            }

            .landing-home-photo-card {
                grid-column: span 3;
                grid-row: span 4;
            }

            .landing-home-photo-card.is-wide {
                grid-column: span 6;
            }

            .landing-home-photo-card.is-tall {
                grid-row: span 6;
            }

            .landing-home-photo-grid.is-trio .landing-home-photo-card,
            .landing-home-photo-grid.is-trio .landing-home-photo-card.is-wide,
            .landing-home-photo-grid.is-trio .landing-home-photo-card.is-tall {
                grid-column: auto;
                grid-row: auto;
                min-height: 180px;
                aspect-ratio: 16 / 10;
            }

            .landing-home-process-card-wide .landing-home-steps {
                grid-template-columns: 1fr;
            }

            .landing-home-assurance-strip {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 640px) {
            .landing-home-meta-line {
                gap: 6px;
            }

            .landing-home-meta-pill {
                min-height: 28px;
                font-size: 0.7rem;
                padding: 0 9px;
            }

            .landing-home-photo-grid {
                grid-template-columns: 1fr;
                grid-auto-rows: auto;
                gap: 10px;
            }

            .landing-home-photo-grid.is-trio {
                grid-template-columns: 1fr;
                grid-auto-rows: auto;
            }

            .landing-home-hero {
                padding: 14px;
            }

            .landing-home-copy h1 {
                max-width: 14ch;
                font-size: clamp(1.75rem, 7vw, 2rem);
            }

            .landing-home-photo-card,
            .landing-home-photo-card.is-wide,
            .landing-home-photo-card.is-tall {
                grid-column: auto;
                grid-row: auto;
                min-height: 170px;
            }

            .landing-home-photo-grid.is-trio .landing-home-photo-card,
            .landing-home-photo-grid.is-trio .landing-home-photo-card.is-wide,
            .landing-home-photo-grid.is-trio .landing-home-photo-card.is-tall {
                min-height: 170px;
                aspect-ratio: auto;
            }

            .landing-home-process-actions {
                align-items: stretch;
                flex-direction: column;
            }

            .landing-home-process-actions .btn,
            .landing-home-process-actions .btn-secondary,
            .landing-home-process-actions .btn-link {
                width: 100%;
            }

            .landing-home-assurance-item {
                padding: 9px 10px;
            }
        }

        /* Destination page overhaul: calmer hierarchy + progressive disclosure */
        .destination-hero-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
            align-items: start;
        }

        .destination-layout {
            align-items: start;
        }

        .destination-main-stack {
            gap: 14px;
        }

        .destination-snapshot-card {
            padding: 18px;
        }

        .destination-feature-hero {
            display: grid;
            gap: 8px;
            margin-bottom: 12px;
        }

        .destination-feature-media {
            position: relative;
            aspect-ratio: 18 / 9;
            border-radius: 14px;
            overflow: hidden;
            border-color: rgba(33, 24, 14, 0.08);
        }

        .destination-feature-media::after {
            content: "";
            position: absolute;
            inset: 0;
            background:
                linear-gradient(
                    180deg,
                    rgba(11, 16, 26, 0.06) 0%,
                    rgba(11, 16, 26, 0.18) 45%,
                    rgba(11, 16, 26, 0.72) 100%
                );
            pointer-events: none;
        }

        .destination-feature-caption {
            position: absolute;
            left: 12px;
            right: 12px;
            bottom: 12px;
            z-index: 1;
            display: grid;
            gap: 8px;
            color: #FFFFFF;
        }

        .destination-feature-kicker {
            margin: 0;
            font-size: var(--font-xs);
            line-height: 1.2;
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.9);
        }

        .destination-feature-heading {
            margin: 0;
            color: #FFFFFF;
            font-size: clamp(1.1rem, 2.8vw, 1.45rem);
            line-height: 1.1;
        }

        .destination-feature-caption .chip-row {
            gap: 6px;
        }

        .destination-feature-caption .chip {
            background: rgba(255, 255, 255, 0.88);
            border-color: rgba(255, 255, 255, 0.45);
            color: var(--text);
        }

        .destination-more-context {
            background: rgba(255, 255, 255, 0.82);
        }

        .destination-breakdown-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-bottom: 12px;
        }

        .destination-breakdown-card {
            padding: 12px;
            border-radius: 12px;
            border: 1px solid rgba(33, 24, 14, 0.08);
            background: rgba(255, 255, 255, 0.86);
        }

        .destination-breakdown-card-wide {
            grid-column: 1 / -1;
            background: #FBF8F2;
        }

        .destination-breakdown-copy {
            margin: 0;
            color: var(--text-muted);
            font-size: var(--font-sm);
            line-height: 1.48;
        }

        .destination-fact {
            padding: 11px 12px;
            border-radius: 12px;
            border: 1px solid rgba(33, 24, 14, 0.08);
            background: #F8F4EC;
        }

        .destination-fact-label {
            margin: 0 0 4px;
            color: var(--text-muted);
            font-size: var(--font-xs);
            line-height: 1.2;
            font-weight: 700;
            letter-spacing: 0.03em;
            text-transform: uppercase;
        }

        .destination-fact-value {
            margin: 0;
            color: var(--text);
            font-size: var(--font-sm);
            line-height: 1.35;
            font-weight: 700;
        }

        .destination-tabs-card .tabs-shell {
            gap: 10px;
        }

        .destination-tabs-card .tabs-list {
            margin-bottom: 0;
        }

        .destination-tab-panel {
            padding-top: 2px;
        }

        .destination-fit-grid .status-pill {
            background: #FBF8F2;
        }

        .destination-task-preview-list {
            display: grid;
            gap: 8px;
        }

        .destination-task-preview-list li {
            margin: 0;
        }

        .destination-route-picker {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 2px;
        }

        .destination-route-jump {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            border-radius: 999px;
            border: 1px solid rgba(33, 24, 14, 0.08);
            background: rgba(255, 255, 255, 0.78);
            color: var(--text);
            text-decoration: none;
            font-size: var(--font-sm);
            line-height: 1.15;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
        }

        .destination-route-jump:hover {
            border-color: rgba(30, 58, 138, 0.16);
            background: rgba(30, 58, 138, 0.03);
        }

        .destination-route-jump:focus-visible {
            outline: 2px solid rgba(30, 58, 138, 0.22);
            outline-offset: 2px;
        }

        .destination-route-jump-score {
            color: var(--primary);
            font-weight: 700;
            font-size: 0.72rem;
            line-height: 1;
            padding: 4px 7px;
            border-radius: 999px;
            border: 1px solid rgba(30, 58, 138, 0.14);
            background: rgba(30, 58, 138, 0.05);
        }

        .destination-route-card {
            display: grid;
            gap: 10px;
            scroll-margin-top: 96px;
        }

        .destination-route-card .section-title {
            margin-bottom: 0;
        }

        .destination-route-card .chip-row {
            row-gap: 6px;
        }

        .destination-route-details {
            background: rgba(255, 255, 255, 0.72);
            border-color: rgba(33, 24, 14, 0.07);
        }

        .destination-rail {
            gap: 12px;
        }

        .destination-status-card {
            display: grid;
            gap: 12px;
            align-content: start;
        }

        .destination-status-card .section-title {
            margin-bottom: 0;
        }

        .destination-progress-block {
            display: grid;
            gap: 8px;
        }

        .destination-progress-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 10px;
        }

        .destination-progress-head strong {
            color: var(--text);
            font-size: 0.94rem;
            line-height: 1.2;
        }

        .destination-progress-head span {
            color: var(--text-muted);
            font-size: var(--font-xs);
            line-height: 1.2;
            text-align: right;
        }

        .destination-progress-track {
            position: relative;
            height: 10px;
            border-radius: 999px;
            overflow: hidden;
            border: 1px solid rgba(30, 58, 138, 0.10);
            background: rgba(30, 58, 138, 0.05);
        }

        .destination-progress-fill {
            display: block;
            height: 100%;
            background: linear-gradient(90deg, rgba(30, 58, 138, 0.92), rgba(15, 118, 110, 0.85));
        }

        .destination-status-list {
            display: grid;
            gap: 8px;
            padding: 10px 12px;
            border-radius: 12px;
            border: 1px solid rgba(33, 24, 14, 0.08);
            background: rgba(255, 255, 255, 0.72);
        }

        .destination-status-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            font-size: var(--font-sm);
            line-height: 1.25;
        }

        .destination-side-panel {
            padding: 0;
            overflow: hidden;
        }

        .destination-side-panel .details-content .notice {
            margin-bottom: 0;
        }

        @media (max-width: 920px) {
            .destination-hero-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 640px) {
            .destination-feature-media {
                aspect-ratio: 4 / 3;
            }

            .destination-feature-caption {
                left: 10px;
                right: 10px;
                bottom: 10px;
                gap: 6px;
            }

            .destination-feature-caption .chip {
                font-size: 0.68rem;
                padding: 4px 7px;
            }

            .destination-breakdown-grid {
                grid-template-columns: 1fr;
            }

            .destination-route-picker {
                flex-wrap: nowrap;
                overflow-x: auto;
                padding-bottom: 2px;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }

            .destination-route-picker::-webkit-scrollbar {
                display: none;
            }

            .destination-route-jump {
                flex: 0 0 auto;
                min-height: 40px;
            }

            .destination-progress-head {
                flex-direction: column;
                align-items: flex-start;
                gap: 4px;
            }

            .destination-progress-head span {
                text-align: left;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation: none !important;
                transition: none !important;
                scroll-behavior: auto !important;
            }
        }

        /* Tablet/mobile layout adjustments */
        @media (max-width: 920px) {
            .grid-3 { grid-template-columns: 1fr; }
            .grid-2 { grid-template-columns: 1fr; }
            .split { grid-template-columns: 1fr; }
            .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .workspace-nav { align-items: flex-start; flex-direction: column; }
            .dashboard-alert { grid-template-columns: 1fr; }
            .dashboard-alert .actions { justify-content: flex-start; }
            .checklist-control-head {
                align-items: flex-start;
                flex-direction: column;
            }
            .checklist-control-status {
                justify-items: start;
                text-align: left;
            }
        }

        @media (max-width: 640px) {
            .shell { padding: 16px 12px 24px; }
            .topbar {
                align-items: flex-start;
                flex-direction: column;
                gap: 8px;
                padding: 10px 12px;
            }
            .topbar-links {
                width: 100%;
                justify-content: flex-start;
                flex-wrap: nowrap;
                overflow-x: auto;
                padding-bottom: 2px;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            .topbar-links::-webkit-scrollbar {
                display: none;
            }
            .topbar-links > * {
                flex: 0 0 auto;
            }
            .brand-badge { width: 62px; height: 62px; border-radius: 12px; }
            .brand-title { font-size: 1.08rem; }
            .brand-subtitle { display: none; }
            .topbar-links .btn-link {
                min-height: 38px;
                padding: 7px 9px;
                font-size: 0.9rem;
            }
            .topbar-links .topbar-translate-trigger {
                min-height: 38px;
                min-width: 148px;
                padding: 7px 10px;
                font-size: 0.9rem;
            }
            .topbar-links .topbar-translate-menu {
                width: min(280px, 86vw);
            }
            .topbar-links .topbar-translate-meta {
                top: calc(100% + 292px);
                max-width: min(280px, 86vw);
                white-space: normal;
            }
            .topbar-links .pill {
                display: none;
            }
            .topbar-links .topbar-mobile-secondary {
                display: none;
            }
            .topbar-account-prefix {
                display: none;
            }
            .choice-grid { grid-template-columns: 1fr; }
            .signup-account-grid { grid-template-columns: 1fr; }
            .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .status-grid { grid-template-columns: 1fr; }
            .checklist-bulk-grid { grid-template-columns: 1fr; }
            .task-fields { grid-template-columns: 1fr; }
            .checklist-control-shell {
                padding: 12px;
            }
            .checklist-control-grid {
                gap: 8px;
            }
            .checklist-bulk-panel .details-summary,
            .checklist-bulk-panel .details-content {
                padding-left: 10px;
                padding-right: 10px;
            }
            [data-checklist-form] {
                padding-bottom: calc(88px + env(safe-area-inset-bottom));
            }
            .checklist-savebar {
                flex-direction: column;
                align-items: stretch;
                bottom: calc(8px + env(safe-area-inset-bottom));
                padding: 10px;
                gap: 8px;
                margin-bottom: 8px;
            }
            .checklist-savebar-meta {
                width: 100%;
                gap: 4px;
            }
            .checklist-savebar-meta .muted {
                font-size: var(--font-xs);
            }
            .checklist-savebar .btn {
                width: 100%;
                min-height: 46px;
            }
            .task-item {
                gap: 8px;
                padding: 10px 11px;
            }
            .task-item-main {
                gap: 10px;
            }
            .task-item-content {
                gap: 5px;
            }
            .task-item-details .details-summary,
            .task-item-details .details-content {
                padding-left: 10px;
                padding-right: 10px;
            }
            .task-inline-controls {
                grid-template-columns: 1fr;
            }
            .task-select-inline-standalone {
                min-height: 34px;
                padding: 5px 8px;
            }
            .task-inline-controls .task-select-inline-standalone,
            .task-item.task-item-advanced .task-select-inline-standalone {
                justify-self: start;
            }
            .task-select-inline-standalone label {
                font-size: 0.75rem;
            }
            .rec-card .rec-top, .doc-item, .source-item { align-items: flex-start; flex-direction: column; }
            .results-criteria-grid { grid-template-columns: 1fr; }
            .visa-route-results-toolbar {
                align-items: flex-start;
                flex-direction: column;
            }
            .visa-route-results-toolbar .btn-link {
                margin-left: 0;
            }
            .route-preview-link {
                align-items: flex-start;
                flex-direction: column;
            }
            .workspace-tabs {
                width: 100%;
                display: flex;
                flex-wrap: nowrap;
                gap: 6px;
                overflow-x: auto;
                padding-bottom: 2px;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            .workspace-tabs::-webkit-scrollbar {
                display: none;
            }
            .workspace-nav {
                gap: 8px;
                margin-bottom: 12px;
                padding: 6px;
                border-radius: 12px;
            }
            .tabs-list {
                gap: 8px;
                flex-wrap: nowrap;
                overflow-x: auto;
                padding-bottom: 8px;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: thin;
            }
            .tab-btn {
                flex: 0 0 auto;
                min-height: 44px;
                padding: 9px 12px;
            }
            .workspace-tab {
                width: auto;
                flex: 0 0 auto;
                min-width: max-content;
                min-height: 44px;
                padding: 9px 10px;
                font-size: 0.95rem;
                white-space: nowrap;
            }
            .workspace-hero,
            .dashboard-shell {
                padding: 16px;
                border-radius: 16px;
            }
            .checklist-tools-tabs,
            .checklist-sidebar-tabs {
                padding: 12px;
            }
            .hero .actions,
            .dashboard-shell > .actions,
            .dashboard-alert .actions {
                gap: 8px;
                align-items: stretch;
                flex-direction: column;
            }
            .hero .actions .btn,
            .hero .actions .btn-secondary,
            .hero .actions .btn-ghost,
            .dashboard-shell > .actions .btn,
            .dashboard-shell > .actions .btn-secondary,
            .dashboard-shell > .actions .btn-ghost {
                width: 100%;
                min-height: 44px;
            }
            .hero .actions .btn-link,
            .dashboard-shell > .actions .btn-link,
            .dashboard-alert .actions .btn-link {
                display: inline-flex;
                align-items: center;
                justify-content: flex-start;
                width: 100%;
                min-height: 44px;
                padding: 10px 12px;
                border-radius: 10px;
            }
            .dashboard-shell > .actions .btn-link,
            .dashboard-alert .actions .btn-link {
                border: 1px solid rgba(33, 24, 14, 0.08);
                background: rgba(255, 255, 255, 0.72);
            }
            .dashboard-alert {
                gap: 8px;
                padding: 10px 12px;
            }
            .dashboard-alert .actions {
                gap: 4px;
            }
            .dashboard-alert .actions .btn-link {
                width: auto;
                min-height: 32px;
                padding: 2px 0;
                border: 0;
                background: transparent;
                border-radius: 0;
            }
            .dashboard-alert-copy .dashboard-alert-detail-desktop {
                display: none;
            }
            .dashboard-alert-more {
                display: block;
            }
            .dashboard-alert-more summary {
                min-height: 28px;
                font-size: 0.75rem;
            }
            .dashboard-alert-more .dashboard-alert-detail {
                font-size: var(--font-xs);
                line-height: 1.3;
            }
            .dashboard-shell .chip-row[aria-label="Priority checklist views"] {
                flex-wrap: wrap;
                overflow: visible;
                padding-bottom: 0;
            }
            .dashboard-shell .chip-row[aria-label="Priority checklist views"] .chip {
                flex: 1 1 calc(50% - 6px);
                min-height: 40px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }
            .dashboard-metrics .kpi-value {
                font-size: 1.55rem;
            }
            .dashboard-next-panel .doc-item {
                gap: 10px;
            }
            .dashboard-next-item {
                grid-template-columns: 1fr;
                gap: 10px;
            }
            .dashboard-next-panel .chip-row {
                justify-content: flex-start;
                gap: 6px;
            }
            .checklist-list-toolbar {
                align-items: flex-start;
                flex-direction: column;
                gap: 6px;
            }
            .checklist-list-toolbar .btn-link {
                min-height: 0;
                padding: 0;
            }
        }

        @media (max-width: 420px) {
            .kpi-grid {
                grid-template-columns: 1fr;
            }
        }

