:root {
    --ink: #242822;
    --muted: #65695f;
    --paper: #f7f6f2;
    --line: #dcded5;
    --red: #b4372c;
    --soft: #eceee6;
    --white: #fff;
    --radius: 6px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-size: 15px;
    line-height: 1.5
}

* {
    box-sizing: border-box
}

body {
    margin: 0
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit
}

button,
select,
input[type=checkbox],
input[type=radio] {
    cursor: pointer
}

button {
    border: 1px solid #bfc3b7;
    background: transparent;
    border-radius: var(--radius);
    padding: 11px 16px;
    font-weight: 600;
    transition: background .15s, border-color .15s
}

button:hover {
    background: #e8ebdf;
    border-color: #838c77
}

button:disabled {
    cursor: not-allowed;
    opacity: .45
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 3px solid #506c40;
    outline-offset: 3px
}

a {
    color: inherit
}

h1,
h2,
h3,
p {
    margin: 0
}

h2 {
    font-size: 22px;
    letter-spacing: -.55px
}

h3 {
    font-size: 19px;
    line-height: 1.3
}

input[type=checkbox],
input[type=radio] {
    accent-color: #303c2d;
    width: 17px;
    height: 17px;
    flex-shrink: 0
}

input[type=search],
input[type=text],
select,
textarea {
    border: 1px solid #c5cabc;
    border-radius: 4px;
    background: white;
    padding: 11px 12px;
    max-width: 100%
}

select {
    font-size: 14px
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 20px 0
}

.header {
    max-width: 1600px;
    margin: auto;
    padding: 26px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    gap: 20px
}

.brand-name {
    font-size: 31px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1
}

.brand-dot {
    color: var(--red)
}

.brand-region {
    font-size: 9px;
    letter-spacing: 2px;
    display: block;
    margin-top: 6px;
    font-weight: 700
}

nav {
    display: flex;
    gap: 12px;
    align-items: center
}

.quiet {
    border-color: transparent;
    font-size: 13px
}

.dark {
    background: var(--ink);
    border-color: var(--ink);
    color: white
}

.dark:hover {
    background: #424d3a;
    color: white
}

.dark span {
    padding: 2px 6px;
    background: #ffffff20;
    border-radius: 3px;
    margin-left: 7px
}

.hero {
    max-width: 1600px;
    margin: auto;
    padding: 60px 5% 47px;
    display: flex;
    justify-content: space-between;
    gap: 40px
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 15px
}

.hero .eyebrow {
    color: var(--red)
}

h1 {
    font-size: clamp(43px, 5.2vw, 76px);
    letter-spacing: -3.2px;
    line-height: 1.06;
    font-weight: 500
}

h1 span {
    color: var(--red)
}

.intro {
    font-size: 17px;
    color: var(--muted);
    margin-top: 20px;
    line-height: 1.6
}

.hero-note {
    max-width: 305px;
    padding: 14px 0 0;
    font-size: 14px;
    color: var(--muted)
}

.hero-note strong {
    display: block;
    color: var(--ink);
    font-size: 16px;
    margin: 20px 0 9px
}

.line {
    display: block;
    width: 46px;
    height: 3px;
    background: var(--red)
}

.small-label {
    display: block;
    font-size: 9px;
    letter-spacing: 1.7px;
    font-weight: 700;
    margin-top: 23px
}

.scope-banner {
    max-width: 1440px;
    margin: 0 auto 28px;
    padding: 12px 20px;
    background: #ecece4;
    border-left: 3px solid #a4aa93;
    color: #52574b;
    font-size: 12px
}

.workspace {
    max-width: 1600px;
    margin: auto;
    padding: 0 5% 30px;
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 42px
}

.filters {
    border-right: 1px solid var(--line);
    padding-right: 28px;
    align-self: start
}

.filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    margin-bottom: 24px
}

.filter-title h2 {
    font-size: 17px
}

.text-button {
    border: 0;
    padding: 5px 1px;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
    background: transparent;
    font-weight: 500
}

.text-button:hover {
    background: transparent;
    color: var(--red)
}

.search-label {
    font-size: 12px;
    display: block;
    margin-bottom: 8px;
    font-weight: 600
}

.searchbox {
    display: flex;
    border: 1px solid #bcc2b5;
    border-radius: 4px;
    background: white;
    align-items: center
}

.searchbox span {
    font-size: 25px;
    padding-left: 11px;
    color: #707865
}

.searchbox input {
    border: 0;
    min-width: 0;
    width: 100%;
    font-size: 13px;
    padding-left: 9px
}

.searchbox:focus-within {
    outline: 2px solid #506c40
}

.searchbox input:focus-visible {
    outline: none
}

fieldset {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 21px 0 0;
    margin: 26px 0 0;
    min-width: 0
}

legend {
    padding: 0;
    font-size: 13px;
    font-weight: 700
}

legend span {
    display: block;
    font-weight: 400;
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px
}

.color-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px
}

.color-option {
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 7px 5px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    position: relative;
    line-height: 1.2;
    min-height: 37px
}

.color-option input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    margin: 0
}

.color-option:has(input:checked) {
    background: #e3e8d9;
    border-color: #717c63
}

.color-option:has(input:focus-visible) {
    outline: 3px solid #506c40;
    outline-offset: 2px
}

.swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #0002;
    flex-shrink: 0
}

.color-option .num {
    color: var(--muted);
    font-size: 10px;
    display: block;
    margin-top: 3px
}

.radio-options {
    display: grid;
    gap: 10px
}

.radio-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    cursor: pointer
}

.select-label {
    font-size: 12px;
    font-weight: 700;
    display: block;
    margin: 22px 0 8px
}

.filters select {
    width: 100%;
    font-size: 12px
}

.filter-note {
    font-size: 11px;
    color: var(--muted);
    margin-top: 17px;
    line-height: 1.6
}

.result-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 57px;
    margin-bottom: 18px
}

.result-toolbar h2 {
    font-size: 24px
}

.result-toolbar p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px
}

.sort-control {
    display: flex;
    gap: 10px;
    align-items: center;
    white-space: nowrap
}

.sort-control label {
    font-size: 11px;
    color: var(--muted)
}

.sort-control select {
    font-size: 12px;
    background: transparent;
    padding: 9px
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.active-filters:empty {
    display: none
}

.chip {
    font-size: 11px;
    border-radius: 100px;
    background: #e6e9de;
    padding: 5px 11px;
    margin-bottom: 17px
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 27px 20px
}

.product-card {
    min-width: 0;
    background: white;
    border: 1px solid #e1e3da;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: box-shadow .18s, border-color .18s
}

.product-card:hover {
    border-color: #a8b29a;
    box-shadow: 0 5px 17px #252f2410
}

.product-card.selected {
    border-color: #526444;
    box-shadow: 0 0 0 1px #526444
}

.image-button {
    position: relative;
    border: 0;
    padding: 0;
    display: block;
    background: #e4e1d8;
    border-radius: 0;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 1.36
}

.image-button:hover {
    background: #e4e1d8
}

.image-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s
}

.image-button:hover img {
    transform: scale(1.025)
}

.zoom-hint {
    position: absolute;
    left: 12px;
    bottom: 10px;
    background: #fffffff0;
    padding: 4px 7px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 500;
    opacity: 0;
    transition: opacity .2s
}

.image-button:hover .zoom-hint,
.image-button:focus-visible .zoom-hint {
    opacity: 1
}

.select-card {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    background: #fffffff2;
    border: 1px solid #b7c0ac;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    cursor: pointer;
    border-radius: 4px
}

.select-card input {
    margin: 0;
    width: 18px;
    height: 18px
}

.card-meta {
    padding: 16px
}

.card-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 7px;
    margin-bottom: 7px
}

.card-top h3 {
    font-size: 18px;
    letter-spacing: -.5px
}

.card-size {
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 10px;
    color: #555e4d;
    line-height: 1.7
}

.card-tags span:not(:last-child):after {
    content: ' / ';
    padding-left: 5px;
    color: #9a9f91
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    font-size: 9px;
    color: #71776b
}

.review-pill {
    border-radius: 3px;
    background: #f0eee4;
    padding: 3px 6px
}

.review-pill.reviewed {
    background: #e5ecdb;
    color: #496137
}

.product-card .text-button {
    font-size: 10px;
    padding: 2px 0
}

.load-more-wrap {
    text-align: center;
    margin-top: 32px
}

.load-more-wrap p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 9px
}

.empty {
    border: 1px dashed #bcc4b0;
    text-align: center;
    padding: 65px 30px;
    border-radius: 6px
}

.empty-icon {
    font-size: 38px;
    color: #8f9b80
}

.empty h3 {
    margin: 15px 0 9px
}

.empty p {
    color: var(--muted);
    font-size: 14px;
    max-width: 440px;
    margin: 0 auto 20px
}

.bottom-note {
    max-width: 1440px;
    margin: 20px auto 40px;
    border-top: 1px solid var(--line);
    padding: 25px 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    font-size: 12px
}

.bottom-note strong {
    font-size: 14px;
    font-weight: 600
}

.bottom-note p {
    color: var(--muted);
    max-width: 760px
}

footer {
    border-top: 1px solid var(--line);
    max-width: 1600px;
    padding: 23px 5% 28px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 10px;
    gap: 20px
}

dialog {
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 25px 120px #0004;
    max-width: min(1100px, 94vw);
    width: 94vw;
    max-height: 90vh;
    padding: 28px;
    background: var(--paper);
    overflow: auto
}

dialog::backdrop {
    background: #151b14a6;
    backdrop-filter: blur(3px)
}

.dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 22px
}

.dialog-head .eyebrow {
    margin-bottom: 7px
}

.dialog-head h2 {
    font-size: 28px
}

.icon-button {
    width: 38px;
    height: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    flex-shrink: 0
}

.dialog-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 25px
}

.subtle {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(240px, 1fr);
    gap: 28px
}

.detail-photo {
    width: 100%;
    object-fit: contain;
    background: #e2e4da;
    border-radius: 5px;
    max-height: 65vh;
    display: block
}

.detail-text h2 {
    font-size: 39px;
    margin: 6px 0 15px
}

.detail-text dl {
    margin: 22px 0;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 10px;
    font-size: 13px
}

.detail-text dt {
    color: var(--muted)
}

.detail-text dd {
    margin: 0
}

.image-switch {
    margin-top: 12px;
    display: flex;
    gap: 7px;
    flex-wrap: wrap
}

.image-switch button {
    font-size: 11px;
    padding: 7px 10px
}

.detail-text .subtle {
    margin: 16px 0
}

.shortlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.shortlist-item {
    border: 1px solid var(--line);
    border-radius: 5px;
    overflow: hidden;
    background: white;
    padding-bottom: 14px
}

.shortlist-item img {
    width: 100%;
    aspect-ratio: 1.5;
    object-fit: cover;
    display: block
}

.shortlist-item h3,
.shortlist-item p,
.shortlist-item button {
    margin: 10px 14px 0
}

.shortlist-item p {
    font-size: 12px;
    color: var(--muted)
}

.shortlist-item button {
    font-size: 11px
}

.manage-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 28px 0
}

.manage-cards section {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 22px
}

.step {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #69775a;
    display: block;
    margin-bottom: 14px
}

.manage-cards h3 {
    margin-bottom: 12px
}

.manage-cards p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 18px
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.manage-cards button {
    font-size: 12px;
    padding: 9px 12px
}

.check-row {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    margin: 17px 0;
    cursor: pointer
}

.manager-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 12px
}

.danger {
    color: #9c352a
}

.import-progress {
    margin-top: 15px
}

progress {
    width: 100%;
    accent-color: #526444
}

.import-progress p {
    font-size: 12px
}

.import-report {
    background: #eeeee5;
    font-size: 11px;
    white-space: pre-wrap;
    padding: 16px;
    max-height: 230px;
    overflow: auto
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 20px
}

.form-grid label,
.block-label {
    display: grid;
    gap: 8px;
    font-size: 13px;
    font-weight: 700
}

.block-label {
    margin: 18px 0
}

.form-grid select {
    width: 100%
}

#edit-dialog {
    max-width: 670px
}

#confirm-dialog {
    max-width: 470px;
    padding: 28px
}

#confirm-dialog h2 {
    margin-bottom: 15px
}

#confirm-dialog p {
    font-size: 14px
}

.toast {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    background: #242e20;
    color: white;
    border-radius: 7px;
    padding: 13px 22px;
    font-size: 13px;
    z-index: 9999;
    max-width: 90vw;
    box-shadow: 0 6px 30px #0003
}

.skip-link {
    position: absolute;
    left: 20px;
    top: -60px;
    background: white;
    padding: 12px;
    z-index: 100
}

.skip-link:focus {
    top: 12px
}

[hidden] {
    display: none !important
}

body.embed .header {
    padding-top: 17px;
    padding-bottom: 17px
}

body.embed .hero {
    padding-top: 32px;
    padding-bottom: 30px
}

body.embed .hero h1 {
    font-size: 51px
}

body.embed footer {
    display: none
}

body.busy #manage-dialog button:not([data-close]) {
    pointer-events: none;
    opacity: .55
}

@media(min-width:1601px) {
    .scope-banner {
        max-width: 1440px
    }
}

@media(max-width:1599px) {

    .scope-banner,
    .bottom-note {
        margin-left: 5%;
        margin-right: 5%
    }
}

@media(max-width:1150px) {
    .workspace {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 25px
    }

    .filters {
        padding-right: 20px
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .card-size {
        font-size: 11px
    }

    .manage-cards {
        grid-template-columns: 1fr
    }

    .manage-cards section {
        padding: 18px
    }

    .manage-cards p {
        max-width: 650px
    }

    .hero-note {
        max-width: 260px
    }

    .shortlist-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:730px) {
    .header {
        padding: 19px 5%;
        align-items: center;
        gap: 10px
    }

    .brand-name {
        font-size: 24px
    }

    .brand-region {
        font-size: 7px;
        letter-spacing: 1.1px
    }

    nav {
        gap: 5px
    }

    nav button {
        padding: 9px 10px;
        font-size: 11px
    }

    nav .quiet {
        font-size: 10px;
        max-width: 72px;
        line-height: 1.25
    }

    .hero {
        padding-top: 36px;
        gap: 20px
    }

    .hero-note {
        display: none
    }

    h1 {
        letter-spacing: -2px
    }

    .intro {
        font-size: 15px
    }

    .workspace {
        display: block
    }

    .filters {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding-right: 0;
        padding-bottom: 24px;
        margin-bottom: 27px
    }

    .color-options {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }

    .color-option {
        font-size: 10px;
        padding: 5px;
        min-height: 43px;
        gap: 6px
    }

    .swatch {
        width: 20px;
        height: 20px
    }

    .color-option .num {
        display: none
    }

    fieldset {
        margin-top: 18px;
        padding-top: 13px
    }

    .radio-options {
        display: flex;
        flex-wrap: wrap;
        gap: 14px
    }

    .select-label {
        margin-top: 16px
    }

    .filters .select-label,
    .filters select {
        display: inline-block;
        width: 47%;
        vertical-align: middle
    }

    .select-label {
        margin-right: 2%
    }

    .filter-note {
        font-size: 10px
    }

    .result-toolbar {
        align-items: flex-start
    }

    .result-toolbar h2 {
        font-size: 22px
    }

    .sort-control {
        display: block
    }

    .sort-control label {
        display: block;
        font-size: 10px;
        margin-bottom: 4px
    }

    .sort-control select {
        font-size: 11px;
        padding: 8px;
        max-width: 160px
    }

    .product-grid {
        gap: 16px 12px
    }

    .card-meta {
        padding: 12px 10px
    }

    .card-top {
        display: block
    }

    .card-top h3 {
        font-size: 17px
    }

    .card-size {
        font-size: 10px
    }

    .card-tags {
        font-size: 9px;
        gap: 2px
    }

    .card-bottom {
        font-size: 8px;
        gap: 5px
    }

    .image-button {
        aspect-ratio: 1.1
    }

    .bottom-note {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 0
    }

    .detail-layout {
        grid-template-columns: 1fr
    }

    .detail-photo {
        max-height: 45vh
    }

    .detail-text h2 {
        font-size: 30px
    }

    dialog {
        padding: 19px
    }

    .dialog-head h2 {
        font-size: 24px
    }

    .shortlist-grid {
        gap: 12px
    }

    .shortlist-item h3,
    .shortlist-item p,
    .shortlist-item button {
        margin-left: 10px;
        margin-right: 10px
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .manager-footer {
        align-items: flex-start;
        flex-direction: column
    }

    .scope-banner {
        font-size: 11px;
        padding: 11px 13px
    }

    .hero .eyebrow {
        font-size: 9px
    }

    footer {
        font-size: 9px
    }

    .image-button .zoom-hint {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important
    }
}

/* Match the North America host while preserving standalone selector styling. */
body.embed {
    --ink: #25333a;
    --red: #a7462f;
    --paper: #f7f4ee;
    background: var(--paper)
}

body.embed .hero,
body.embed .header .brand {
    display: none
}

body.embed .header {
    justify-content: flex-end;
    padding-top: 14px;
    padding-bottom: 14px
}

body.embed .scope-banner {
    margin-top: 0
}