:root {
    color-scheme: light;
    --ink: #201f1d;
    --muted: #77726c;
    --line: #e8e3dd;
    --panel: #ffffff;
    --soft: #f7f4f0;
    --soft-strong: #eee8e0;
    --accent: #6d523f;
    --accent-soft: #f4ece3;
    --warning: #fff8e8;
    --warning-line: #ead8a7;
    --shadow: 0 20px 55px rgba(48, 41, 34, .08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fbfaf8;
    font-family: Inter, "Open Sans", Roboto, Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.auth-locked {
    overflow: hidden;
}

.auth-locked .page {
    filter: blur(18px);
    opacity: .18;
    pointer-events: none;
    user-select: none;
}

.login-screen {
    position: fixed;
    z-index: 100;
    display: grid;
    inset: 0;
    place-items: center;
    padding: 20px;
    overflow: hidden;
    background: rgba(247, 244, 240, .65);
}

.login-screen[hidden] {
    display: none;
}

.login-screen::before {
    position: absolute;
    z-index: -2;
    inset: -32px;
    background: url("/eva-lendel/less-is-more-vi/images/eva-lendel-less-is-more-vi-alis-0.jpg") center 28% / cover;
    content: "";
    filter: blur(18px);
    transform: scale(1.08);
}

.login-screen::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(255, 253, 250, .7);
    content: "";
}

.login-card {
    width: min(100%, 390px);
    padding: 30px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(232, 227, 221, .9);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.login-card h1 {
    margin-bottom: 9px;
}

.login-form {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.pin-input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 24px;
    letter-spacing: .45em;
    outline: 0;
    text-align: center;
}

.pin-input:focus {
    border-color: #bba999;
    box-shadow: 0 0 0 4px rgba(139, 94, 74, .1);
}

.login-error {
    margin: 12px 0 0;
    color: #8b302d;
    font-size: 13px;
}

.page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 72px;
}

.brand-header,
.catalog-selector,
.workspace-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
}

.brand-header {
    padding: 8px 0 26px;
    border-bottom: 1px solid var(--line);
}

.logo-lockup {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand-logo {
    display: block;
    width: auto;
    object-fit: contain;
}

.brand-logo-wona {
    height: 44px;
}

.brand-logo-partner {
    height: 38px;
    max-width: 190px;
    transition: opacity .2s ease;
}

.brand-logo-partner[hidden] {
    display: none;
}

.logo-divider {
    width: 1px;
    height: 36px;
    background: var(--line);
}

.header-copy {
    text-align: right;
}

.session-tools {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 10px;
    margin-top: 7px;
}

.role-badge {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.link-button {
    padding: 0;
    color: var(--accent);
    background: transparent;
    border: 0;
    font-size: 12px;
    font-weight: 700;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1;
}

h2 {
    margin-bottom: 5px;
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.08;
}

h3 {
    margin-bottom: 0;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1.1;
}

#catalog-title {
    font-size: clamp(26px, 3vw, 34px);
}

.eyebrow {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.section-copy,
.summary-meta,
.collection-path,
.status {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
}

.catalog-selector {
    margin: 28px 0 22px;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.catalog-selector .search-shell {
    width: min(100%, 430px);
}

.search-shell {
    position: relative;
}

.search-input {
    width: 100%;
    min-height: 47px;
    padding: 0 15px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.search-input:focus {
    border-color: #bba999;
    box-shadow: 0 0 0 4px rgba(139, 94, 74, .1);
}

.suggestions {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    padding: 7px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.suggestion {
    display: block;
    width: 100%;
    padding: 10px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 7px;
    text-align: left;
}

.suggestion:hover,
.suggestion:focus-visible {
    background: var(--soft);
}

.suggestion-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.suggestion-meta {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.workspace-heading {
    padding: 16px 0 14px;
    border-bottom: 1px solid var(--line);
}

.collection-workspace {
    padding: 0 24px;
}

.product-tools {
    position: sticky;
    z-index: 10;
    top: 0;
    padding: 12px 0;
    background: rgba(251, 250, 248, .92);
    backdrop-filter: blur(16px);
}

.product-tools .search-shell {
    width: min(100%, 600px);
}

.button {
    min-height: 42px;
    padding: 0 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.button-secondary {
    color: var(--accent);
    background: #fff;
    border: 1px solid var(--line);
}

.button-primary {
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
}

.button-primary:hover {
    background: #513d30;
}

.button-secondary:hover {
    background: var(--soft);
}

.status {
    margin-bottom: 12px;
    padding: 12px 14px;
    background: var(--accent-soft);
    border-radius: 8px;
}

.products {
    display: grid;
    gap: 8px;
}

.product {
    overflow: hidden;
    background: var(--panel);
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(54, 47, 40, .035);
    transition: border-color .2s ease, box-shadow .2s ease;
    scroll-margin-top: 78px;
}

.product[open] {
    border-color: var(--line);
    box-shadow: var(--shadow);
}

.product > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.product > summary::-webkit-details-marker,
.text-block > summary::-webkit-details-marker {
    display: none;
}

.summary-title {
    display: grid;
    gap: 3px;
}

.chevron {
    color: var(--accent);
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    transition: transform .2s ease;
}

.product[open] .chevron {
    transform: rotate(45deg);
}

.product-body {
    display: grid;
    grid-template-columns: minmax(250px, 390px) minmax(0, 1fr);
    gap: 22px;
    padding: 4px 16px 18px;
}

.gallery {
    min-width: 0;
}

.main-image-wrap {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--soft);
    border-radius: 8px;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.thumb {
    width: 58px;
    height: 68px;
    padding: 0;
    overflow: hidden;
    background: var(--soft);
    border: 2px solid transparent;
    border-radius: 5px;
}

.thumb.is-active,
.thumb:hover {
    border-color: var(--accent);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    min-width: 0;
}

.section-title {
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.attributes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 18px;
}

.attribute {
    min-height: 57px;
    padding: 9px 10px;
    background: var(--soft);
    border-radius: 6px;
}

.attribute.is-edited {
    background: #fbf3df;
    box-shadow: inset 0 0 0 1px #e5c984;
}

.attribute-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.attribute-label {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.attribute-edit {
    padding: 0;
    color: var(--accent);
    background: transparent;
    border: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.attribute-value {
    display: block;
    font-size: 13px;
}

.attribute-value em {
    color: var(--muted);
    font-size: 12px;
}

.attribute-editor {
    display: grid;
    gap: 5px;
    max-height: 190px;
    margin-top: 10px;
    padding-top: 8px;
    overflow-y: auto;
    border-top: 1px solid var(--line);
}

.attribute-editor[hidden] {
    display: none;
}

.attribute-option {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #4e4944;
    font-size: 12px;
}

.attribute-option input {
    accent-color: var(--accent);
}

.review-notes {
    margin-bottom: 18px;
    padding: 12px;
    background: var(--accent-soft);
    border: 1px solid #e5d5c5;
    border-radius: 7px;
}

.note-composer {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.note-composer[hidden] {
    display: none;
}

.field-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.field-control {
    width: 100%;
    padding: 9px 10px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.note-textarea {
    min-height: 92px;
    resize: vertical;
}

.note-list {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.note-list:empty {
    display: none;
}

.note-item {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    background: #fff;
    border-radius: 6px;
    font-size: 12px;
}

.descriptions {
    display: grid;
    gap: 6px;
}

.text-block {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.text-block.is-internal {
    background: var(--warning);
    border-color: var(--warning-line);
}

.text-block > summary {
    position: relative;
    padding: 10px 12px 10px 28px;
    cursor: pointer;
    list-style: none;
    font-size: 12px;
    font-weight: 700;
}

.text-block > summary::before {
    position: absolute;
    top: 10px;
    left: 12px;
    color: var(--accent);
    content: "+";
    font-size: 15px;
    line-height: 1;
}

.text-block[open] > summary::before {
    content: "−";
}

.internal-note {
    margin-left: 7px;
    color: #aa7b2a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.text-body {
    padding: 2px 12px 12px;
    color: #4e4944;
    font-size: 13px;
}

.text-body p:last-child {
    margin-bottom: 0;
}

.empty-state {
    padding: 24px;
    color: var(--muted);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    text-align: center;
}

.review-bar {
    position: fixed;
    z-index: 40;
    right: 24px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 9px 9px 14px;
    color: var(--accent);
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 700;
}

.review-bar[hidden] {
    display: none;
}

.changes-dialog {
    width: min(760px, calc(100% - 28px));
    padding: 0;
    background: transparent;
    border: 0;
}

.changes-dialog::backdrop {
    background: rgba(32, 31, 29, .35);
    backdrop-filter: blur(4px);
}

.changes-card {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.dialog-heading,
.dialog-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.changes-output {
    width: 100%;
    min-height: 380px;
    margin: 12px 0;
    padding: 12px;
    color: #4e4944;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 7px;
    font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    resize: vertical;
}

.dialog-actions {
    justify-content: end;
}

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

@media (max-width: 820px) {
    .brand-header,
    .catalog-selector,
    .workspace-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .header-copy {
        text-align: left;
    }

    .session-tools {
        justify-content: start;
    }

    .catalog-selector .search-shell {
        width: 100%;
    }

    .workspace-heading .button {
        align-self: start;
    }

    .product-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .page {
        width: min(100% - 20px, 1180px);
        padding-top: 16px;
    }

    .brand-logo-wona {
        height: 34px;
    }

    .brand-logo-partner {
        height: 30px;
        max-width: 150px;
    }

    .logo-divider {
        height: 28px;
    }

    .catalog-selector {
        margin-right: -10px;
        margin-left: -10px;
        padding: 16px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .collection-workspace {
        padding-right: 0;
        padding-left: 0;
    }

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

    .review-bar {
        right: 10px;
        bottom: 10px;
        left: 10px;
        justify-content: space-between;
    }

    .dialog-actions {
        align-items: stretch;
        flex-direction: column;
    }
}
