:root {
    color-scheme: light;
    font-family: Inter, Arial, sans-serif;
    color: #17243b;
    background: #f5f7fb;
    --ink: #17243b;
    --muted: #596a80;
    --blue: #2459c5;
    --green: #28664f;
    --line: #cbd5e1;
    --surface: #fff;
    --focus: #f0ad3d;
}

* { box-sizing: border-box; }
*[hidden] { display: none !important; }

body {
    margin: 0;
    background-color: #f5f7fb;
    background-image: linear-gradient(rgba(34, 66, 104, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 66, 104, .035) 1px, transparent 1px);
    background-size: 32px 32px;
}

.site-header,
.page-main,
.site-footer {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
@media (min-width: 761px) and (max-width: 900px) {
    .project-board-layout.is-shopping { grid-template-columns: minmax(205px, .75fr) minmax(0, 1.25fr); }
    .project-board-layout.is-shopping .board-sidebar { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 761px) and (max-width: 800px) {
    .project-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .budget-disclaimer { grid-column: 1 / -1; }
}
}

.site-header { padding: 22px 0; }

.brand {
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
}

.back-link {
    display: inline-block;
    margin: 4px 0 22px;
    color: var(--blue);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

.back-link:focus-visible,
.brand:focus-visible,
.footer-nav a:focus-visible,
.department-summary:focus-visible,
.category-summary:focus-visible,
.primary-action:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 26px;
}

.project-status {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 5px 10px;
    border-radius: 3px;
    background: #e0efe8;
    color: #1f5a42;
    font-size: .74rem;
    font-weight: 700;
}

h1 {
    margin: 13px 0 10px;
    color: var(--ink);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.12;
}

.intro {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.kit-size {
    display: grid;
    grid-template-columns: repeat(3, auto);
    align-items: baseline;
    gap: 3px 12px;
    flex: 0 0 auto;
    padding: 12px 16px;
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-size: .75rem;
}

.kit-size strong {
    color: var(--ink);
    font-size: 1rem;
    text-align: center;
}

.selection-panel,
.board-content {
    margin: 0 0 22px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, .92);
}

.selection-panel-heading,
.board-content-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}

.selection-panel-heading h2,
.board-content-heading h2 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 1.15rem;
}

.selection-panel-heading p,
.board-content-heading p {
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.5;
}

.total-progress,
.board-summary {
    flex: 0 0 auto;
    color: var(--green) !important;
    font-weight: 700;
    white-space: nowrap;
}

.priority-section { padding: 8px 18px 16px; }

.priority-section > h3 {
    margin: 14px 4px 10px;
    color: #5d6e83;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.department,
.board-department {
    overflow: clip;
    margin: 0 0 9px;
    border: 1px solid #94a3b8;
    border-radius: 5px;
    background: var(--surface);
}

.department-summary,
.category-summary {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 16px;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

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

.department-summary { font-size: .98rem; font-weight: 700; }
.summary-title { min-width: 0; }

.summary-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: .77rem;
    font-weight: 500;
    white-space: nowrap;
}

.summary-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .16s ease;
}

details[open] > summary .summary-chevron { transform: rotate(225deg) translate(-1px, -1px); }

.department-content { padding: 0 12px 12px; }

.category-group {
    margin-top: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fbfcfe;
}

.category-summary {
    min-height: 46px;
    padding: 10px 13px;
    color: #33445b;
    font-size: .88rem;
    font-weight: 700;
}

.domain-table-wrap { padding: 0 12px 8px; }

.domain-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.domain-table th,
.domain-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e9edf3;
    text-align: left;
}

.domain-table thead th {
    color: #66758a;
    font-size: .72rem;
    font-weight: 700;
}

.domain-table thead th:first-child,
.domain-table tbody th { width: auto; }

.domain-table thead th:not(:first-child),
.domain-table td { width: 112px; text-align: center; }

.domain-table tbody th {
    color: #24354c;
    font-size: .86rem;
    font-weight: 600;
}

.domain-row:last-child th,
.domain-row:last-child td { border-bottom: 0; }

.domain-table th,
.domain-table td { border-bottom-color: #d6dee9; }

.choice-option {
    position: relative;
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 4px;
    cursor: pointer;
}

.choice-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.choice-indicator {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #8997aa;
    border-radius: 50%;
    background: #fff;
}

.choice-option input:checked + .choice-indicator {
    border-color: var(--blue);
    background: radial-gradient(circle, var(--blue) 0 4px, #fff 4.5px);
}

.choice-option input:focus-visible + .choice-indicator {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.choice-caption { display: none; }

.start-board-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 20px 0 42px;
    padding: 18px 20px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.start-board-bar p,
.session-note {
    margin: 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.5;
}

.primary-action {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 18px;
    border: 0;
    border-radius: 4px;
    background: var(--blue);
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.primary-action:hover { background: #1d4ca9; }

.board-heading { align-items: flex-start; }
.board-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 8px; }
.board-heading-actions .small-action { min-height: 38px; white-space: nowrap; }
.export-status { color: var(--muted); font-size: .74rem; }
.board-summary { padding-top: 12px; }
.board-content { padding-bottom: 16px; }
.board-content-heading { align-items: flex-start; }
.board-content-heading p { max-width: 430px; text-align: right; }
.board-department { margin: 14px 16px 0; }
.board-domain-group { margin: 4px 0 14px; padding-top: 10px; border-top: 1px solid #cbd5e1; }

.board-domain-group-heading,
.board-selection-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    color: #33445b;
    font-size: .82rem;
    font-weight: 700;
}

.board-domain-group-heading { padding-bottom: 7px; border-bottom: 1px solid #cbd5e1; }

.board-group-count {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
}

.board-priority-label {
    padding: 3px 6px;
    border-radius: 2px;
    background: #edf1f5;
    color: #56657a;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
}

.board-selection-section { padding: 12px 4px 8px; }
.board-selection-heading { justify-content: flex-start; margin-bottom: 10px; font-size: .76rem; text-transform: uppercase; }
.board-undecided { margin: 8px 0 0; border-top: 1px solid #d6dee9; }
.board-undecided > summary { min-height: 48px; padding-inline: 8px; }
.board-undecided-content { padding: 0 10px 8px; }

.board-domain-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    align-items: start;
    gap: 12px;
}

.board-domain-card {
    display: flex;
    align-self: start;
    min-height: 104px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 13px;
    border: 1px solid #94a3b8;
    border-top: 3px solid #2459c5;
    border-radius: 4px;
    background: #fff;
}

.board-domain-card-undecided {
    border-color: #cbd5e1;
    border-top-color: #9aa8b8;
    background: #fbfcfe;
}

.board-domain-name { margin: 0; color: var(--ink); font-size: .88rem; line-height: 1.35; }
.board-domain-card .domain-status { min-height: 24px; padding: 3px 8px; }
.board-undecided-notice,
.empty-board { margin: 16px 20px 4px; color: var(--muted); font-size: .9rem; line-height: 1.55; }

.project-summary {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(150px, .7fr) minmax(180px, 1.2fr);
    align-items: center;
    gap: 16px;
    margin: 0 0 18px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(255, 255, 255, .94);
}

.budget-setting,
.budget-metric { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; }
.summary-label { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.budget-setting strong,
.budget-metric strong { grid-column: 1; color: var(--ink); font-size: 1.1rem; }
.budget-setting .text-action { grid-column: 2; grid-row: 2; justify-self: start; }
.budget-disclaimer { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.over-budget { color: #a33b2f !important; }

.project-session-tools { display: grid; gap: 9px; margin: 0 0 16px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-session-tools[hidden] { display: none; }
.project-session-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 14px; }
.project-session-status strong { color: var(--ink); font-size: .82rem; }
.project-session-status span { color: var(--muted); font-size: .76rem; }
.project-session-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.project-session-actions button { min-height: 36px; font-size: .74rem; }
.project-session-actions button:disabled { opacity: .5; cursor: not-allowed; }
.project-access-warning { margin: 0; color: #795116; font-size: .76rem; line-height: 1.45; }
.project-session-message { color: #315a7d; font-size: .77rem; line-height: 1.45; }
.project-save-failure,
.project-save-conflict { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; color: #8a3c22; font-size: .78rem; line-height: 1.45; }
.project-save-failure button,
.project-save-conflict button { min-height: 34px; font-size: .73rem; }
.project-save-conflict { padding: 8px 10px; border-left: 3px solid #b84835; background: #fff6f2; }
.project-save-conflict > span { flex: 1 1 320px; }

.budget-form { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.budget-form[hidden] { display: none; }
.budget-form input { width: min(150px, 45vw); min-height: 40px; padding: 7px 9px; border: 1px solid #aeb9c8; border-radius: 3px; color: var(--ink); font: inherit; }
.budget-form input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.project-board-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    align-items: start;
    gap: 16px;
}

.project-board-layout.is-shopping {
    grid-template-columns: minmax(235px, .8fr) minmax(360px, 1.5fr) minmax(250px, 300px);
}

.project-board-layout > .board-content { min-width: 0; }
.project-board-layout .board-content-heading { padding: 16px 18px; }
.project-board-layout .board-content-heading h2 { font-size: 1.05rem; }
.project-board-layout .board-content-heading p { font-size: .8rem; }
.project-board-layout .board-department { margin: 12px 12px 0; }
.project-board-layout.is-shopping .board-content-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
.project-board-layout.is-shopping .board-content-heading p { display: none; }
.project-board-layout.is-shopping .board-summary { padding-top: 0; font-size: .74rem; white-space: normal; }
.project-board-layout.is-shopping .board-department > .department-summary { flex-wrap: wrap; align-items: flex-start; gap: 5px 10px; }
.project-board-layout.is-shopping .board-department > .department-summary > .summary-title { flex-basis: 100%; }
.project-board-layout.is-shopping .board-department > .department-summary > .summary-meta { width: 100%; justify-content: space-between; white-space: normal; }
.project-board-layout.is-shopping .department-content { padding-inline: 8px; }

.product-browser {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(255, 255, 255, .96);
}

.product-browser[hidden] { display: none; }
.product-browser-heading { margin-bottom: 12px; }
.product-browser-heading h2 { margin: 12px 0 4px; color: var(--ink); font-size: 1.3rem; }
.product-browser-heading p { margin: 0; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.catalog-inventory-label,
.planned-label { display: inline-flex; min-height: 24px; align-items: center; padding: 3px 7px; border-radius: 3px; background: #fff0d6; color: #795116; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.catalog-disclaimer { margin: 0 0 12px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.product-search { display: grid; gap: 8px; margin: 0 0 12px; }
.search-label { color: var(--ink); font-size: .76rem; font-weight: 700; }
.product-search-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.product-search-controls > input { flex: 1 1 180px; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid #aeb9c8; border-radius: 3px; color: var(--ink); font: inherit; font-size: .82rem; }
.product-search-controls > input:focus-visible,
.sort-control select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sort-control { display: grid; gap: 4px; color: var(--muted); font-size: .7rem; font-weight: 700; }
.sort-control select { min-height: 40px; max-width: 100%; padding: 6px 26px 6px 8px; border: 1px solid #aeb9c8; border-radius: 3px; background: #fff; color: var(--ink); font: inherit; font-size: .76rem; }
.active-search-terms { display: flex; flex-wrap: wrap; gap: 6px; }
.active-search-terms:empty { display: none; }
.search-term-chip { display: inline-flex; max-width: 100%; min-height: 30px; align-items: center; gap: 5px; padding: 2px 5px 2px 9px; border: 1px solid #cbd6e4; border-radius: 3px; background: #f3f7fb; color: #344860; font-size: .74rem; overflow-wrap: anywhere; }
.remove-search-term { width: 25px; height: 25px; flex: 0 0 auto; border: 0; border-radius: 3px; background: transparent; color: #5b6878; font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.remove-search-term:hover { background: #e4ebf3; color: var(--ink); }
.search-results-summary { margin: 0; color: var(--muted); font-size: .72rem; }
.catalog-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; }
.catalog-product-card { display: flex; min-width: 0; flex-direction: column; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.catalog-product-image { display: block; width: 100%; height: 164px; border-radius: 3px; background: #f3f5f7; object-fit: contain; object-position: center; }
.catalog-product-card h3 { margin: 0; color: var(--ink); font-size: .88rem; line-height: 1.4; }
.product-description { min-width: 0; color: #53647a; font-size: .75rem; line-height: 1.45; }
.product-description > summary { width: fit-content; color: var(--blue); font-size: .73rem; font-weight: 700; cursor: pointer; }
.description-hide-label,
.product-description[open] .description-show-label { display: none; }
.product-description[open] .description-hide-label { display: inline; }
.product-description p { max-height: 180px; margin: 6px 0 0; overflow: auto; overflow-wrap: anywhere; }
.catalog-price-block { display: flex; align-items: baseline; gap: 8px; color: var(--ink); font-size: .88rem; }
.catalog-price-block del { color: var(--muted); font-size: .76rem; }
.catalog-price-block strong { color: #1d5e49; }
.catalog-product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; margin-top: auto; }
.catalog-product-actions .small-action,
.catalog-product-actions .text-action { min-height: 36px; font-size: .75rem; }
.catalog-product-actions button:disabled { opacity: .48; cursor: not-allowed; }
.seller-cta { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; padding: 6px 9px; border: 1px solid #b8c8d8; border-radius: 3px; background: #f5f8fb; color: #315a7d; font-size: .74rem; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; }
.seller-cta:hover { border-color: #8ca8c1; background: #eaf1f7; text-decoration: underline; }
.board-product-actions .seller-cta,
.most-wanted-actions .seller-cta { min-height: 32px; font-size: .68rem; }
.load-more-products { justify-self: center; min-height: 40px; margin: 8px 0 0; padding: 8px 14px; border: 1px solid #b8c8d8; border-radius: 3px; background: #f5f8fb; color: #315a7d; font-size: .78rem; font-weight: 700; cursor: pointer; }
.load-more-products:disabled { opacity: .6; cursor: progress; }
.empty-catalog-results,
.catalog-error,
.catalog-loading { padding: 18px 12px; border: 1px dashed #c5ceda; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.product-image-fallback { display: flex; min-height: 90px; align-items: center; justify-content: center; border-radius: 3px; background: #f0f3f6; color: var(--muted); font-size: .75rem; }

.board-sidebar { display: grid; gap: 12px; min-width: 0; }
.sidebar-section { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255, 255, 255, .95); }
.assistant-panel { border-top: 3px solid #8594a8; }
.assistant-panel h2,
.sidebar-heading h2 { margin: 8px 0 5px; color: var(--ink); font-size: 1rem; }
.assistant-panel p,
.most-wanted-panel > p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sidebar-heading h2 { margin: 0; }
.item-count { display: inline-flex; min-width: 26px; min-height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: #e7edf4; color: #3e5067; font-size: .74rem; font-weight: 800; }
.most-wanted-list { display: grid; gap: 8px; margin-top: 12px; }
.most-wanted-item { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 6px 10px; padding: 10px; border: 1px solid #cbd5e1; border-radius: 4px; background: #fbfcfe; }
.most-wanted-image { grid-column: 1; grid-row: 1 / span 3; display: block; width: 58px; height: 58px; border-radius: 3px; background: #f3f5f7; object-fit: contain; }
.most-wanted-item h3 { grid-column: 2; margin: 0; color: var(--ink); font-size: .78rem; line-height: 1.35; }
.most-wanted-item > strong,
.most-wanted-item > .product-description { grid-column: 2; }
.most-wanted-item > .product-description { align-self: start; }
.most-wanted-item strong { color: var(--ink); font-size: .8rem; line-height: 1.35; }
.most-wanted-item > span { color: var(--muted); font-size: .72rem; }
.most-wanted-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.most-wanted-actions .text-action { min-height: 36px; font-size: .73rem; }
.swap-unavailable-note { grid-column: 2; color: var(--muted); font-size: .69rem; line-height: 1.4; }
.empty-most-wanted { margin-top: 10px !important; }
.empty-most-wanted[hidden] { display: none; }

.board-domain-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.board-domain-card-heading .domain-status { flex: 0 0 auto; }
.board-selected-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: start; gap: 10px; width: 100%; }
.board-product-card { display: flex; min-width: 0; flex-direction: column; align-self: start; gap: 10px; padding: 10px; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; }
.board-product-image { display: block; width: 100%; height: 164px; border-radius: 3px; background: #f3f5f7; object-fit: contain; object-position: center; }
.board-product-name { margin: 0; color: var(--ink); font-size: .88rem; line-height: 1.4; overflow-wrap: anywhere; }
.board-product-card > .product-description { align-self: stretch; }
.quantity-control { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .7rem; }
.quantity-button { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid #c5ceda; border-radius: 3px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; cursor: pointer; }
.quantity-button:disabled { opacity: .45; cursor: not-allowed; }
.board-product-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 5px 9px; width: 100%; margin-top: auto; }
.board-product-actions .text-action { min-height: 36px; font-size: .75rem; }
.browse-domain-button { min-height: 38px; padding: 7px 10px; border: 1px solid #c3d2e7; border-radius: 3px; background: #f5f8fc; color: var(--blue); font-size: .76rem; font-weight: 700; cursor: pointer; }
.browse-domain-button:hover { background: #eaf1fa; }
.destructive-action { color: #9c3d32 !important; }

.swap-dialog { width: min(480px, calc(100vw - 32px)); max-height: min(80vh, 680px); padding: 22px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); }
.swap-dialog::backdrop { background: rgba(18, 30, 47, .42); }
.swap-dialog h2 { margin: 12px 0; font-size: 1.25rem; }
.swap-dialog form { display: grid; gap: 12px; }
.swap-targets { display: grid; gap: 7px; max-height: 34vh; overflow-y: auto; }
.swap-target { display: flex; min-height: 44px; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 3px; cursor: pointer; }
.swap-target input,
.swap-outgoing-choice input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--blue); }
.swap-cost-preview { min-height: 52px; padding: 11px 12px; border: 1px solid #cdd9e7; border-radius: 3px; background: #f5f8fc; color: #344860; font-size: .86rem; font-weight: 600; line-height: 1.5; }
.swap-outgoing-choice { display: grid; gap: 4px; margin: 0; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 3px; }
.swap-outgoing-choice legend { padding-inline: 4px; color: var(--ink); font-size: .84rem; font-weight: 700; }
.swap-outgoing-choice label { display: flex; min-height: 42px; align-items: center; gap: 9px; color: #465870; font-size: .82rem; cursor: pointer; }
.swap-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.swap-actions .primary-action { min-height: 42px; cursor: pointer; }
.swap-actions .primary-action:disabled { opacity: .45; cursor: not-allowed; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.domain-status {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 4px 9px;
    border-radius: 3px;
    font-size: .73rem;
    font-weight: 700;
}

.domain-status-need { background: #e3eefc; color: #214f9e; }
.domain-status-undecided { background: #eef1f5; color: #56657a; }
.session-note { margin: 0 0 38px; }
.noscript-note { color: #8a3c22; }
.storage-warning { margin: -28px 0 42px; color: #8a3c22; font-size: .86rem; line-height: 1.5; }

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

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 22px;
}

.footer-nav a {
    color: var(--muted);
    font-size: .86rem;
    text-decoration: none;
}

.footer-nav a:hover { color: var(--blue); text-decoration: underline; }

.copyright {
    margin: 16px 0 0;
    color: #7d8ba0;
    font-size: .74rem;
    text-align: center;
}

@media (max-width: 760px) {
    .site-header,
    .page-main,
    .site-footer { width: min(100% - 32px, 620px); }

    .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    .kit-size { border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; }
    .selection-panel-heading,
    .board-content-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .board-content-heading p { text-align: left; }
    .project-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
    .budget-disclaimer { grid-column: 1 / -1; }
    .project-board-layout,
    .project-board-layout.is-shopping { grid-template-columns: minmax(0, 1fr); }
    .project-board-layout.is-shopping .board-panel { display: none; }
    .project-board-layout.is-shopping .product-browser { display: block; }
    .board-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .board-department { margin-inline: 9px; }
    .board-undecided-content { padding-inline: 5px; }
    .board-domain-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; }
    .board-domain-card { min-height: 96px; padding: 11px; }
    .domain-table thead { display: none; }
    .domain-table,
    .domain-table tbody { display: block; }
    .domain-table tbody tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 8px 0;
        border-bottom: 1px solid #e9edf3;
    }
    .domain-table tbody th {
        grid-column: 1 / -1;
        padding: 7px 4px 2px;
        border: 0;
    }
    .domain-table td {
        width: auto;
        padding: 2px;
        border: 0;
    }
    .choice-option {
        width: 100%;
        min-height: 44px;
        flex-direction: column;
        gap: 3px;
    }
    .choice-caption { display: inline; color: #596a80; font-size: .68rem; }
    .choice-option input:checked ~ .choice-caption { color: var(--blue); font-weight: 700; }
    .start-board-bar { align-items: stretch; flex-direction: column; }
    .primary-action { width: 100%; }
}

@media (max-width: 440px) {
    .site-header { padding: 18px 0; }
    h1 { font-size: 2rem; }
    .intro { font-size: .94rem; }
    .priority-section { padding-inline: 9px; }
    .department-summary { padding-inline: 11px; }
    .summary-meta { gap: 8px; font-size: .68rem; }
    .board-department > .department-summary { flex-wrap: wrap; gap: 5px 10px; }
    .board-department > .department-summary > .summary-title { flex-basis: 100%; }
    .board-department > .department-summary > .summary-meta { width: 100%; justify-content: space-between; }
    .department-content { padding-inline: 7px; }
    .category-summary { padding-inline: 9px; font-size: .82rem; }
    .domain-table-wrap { padding-inline: 7px; }
    .selection-panel-heading { padding: 16px; }
    .project-summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px; }
    .budget-setting,
    .budget-metric { grid-template-columns: minmax(0, 1fr); gap: 5px; }
    .budget-setting .text-action { grid-column: 1; grid-row: auto; }
    .budget-form { flex-wrap: wrap; }
    .board-sidebar { grid-template-columns: minmax(0, 1fr); }
    .catalog-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .swap-actions { align-items: stretch; flex-direction: column-reverse; }
    .swap-actions .primary-action { width: 100%; }
}