:root {
    --ink: #182527;
    --muted: #68716e;
    --paper: #f5f7f8;
    --line: #dddfd7;
    --accent: #3c7999;
    --white: #fff;
    --serif: Georgia, 'Times New Roman', serif
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.55
}

a {
    color: inherit;
    text-decoration: none
}

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

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent
}

button {
    cursor: pointer
}

button:disabled {
    cursor: wait;
    opacity: .6
}

:focus-visible {
    outline: 3px solid #bc7d42;
    outline-offset: 4px
}

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

h1 {
    font-family: var(--serif);
    font-size: 54px;
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -1.8px;
    margin-bottom: 14px
}

h2 {
    font-size: 19px;
    font-weight: 500
}

h3 {
    font-size: 22px;
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 22px
}

.topbar {
    min-height: 100px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 5.5%;
    gap: 30px;
    background: #fff
}

.wordmark {
    font-family: var(--serif);
    font-size: 34px;
    font-weight: bold;
    letter-spacing: -1.8px;
    line-height: 1
}

.wordmark span {
    display: block;
    letter-spacing: 2.5px;
    font-family: Arial, sans-serif;
    font-size: 9px;
    margin-top: 10px;
    font-weight: 400
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 13px
}

.topbar nav a[aria-current] {
    text-decoration: underline;
    text-underline-offset: 8px
}

.topbar form {
    margin: 0
}

.shell {
    max-width: 1260px;
    margin: auto;
    padding: 56px 40px 80px;
    min-height: calc(100vh - 190px)
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 38px
}

.page-heading p:last-child {
    margin-bottom: 0
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 1.8px;
    font-weight: 600;
    margin-bottom: 14px
}

.muted {
    color: var(--muted)
}

.small {
    font-size: 12px;
    line-height: 1.7
}

.button,
.secondary {
    padding: 14px 22px;
    border: 1px solid var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    min-height: 50px;
    font-size: 13px;
    font-weight: 500
}

.button {
    background: var(--accent);
    color: white
}

.button:hover {
    background: #264e65
}

.secondary {
    background: transparent;
    color: var(--ink);
    border-color: #b7beb4
}

.secondary:hover {
    background: #e8eae2
}

.full {
    width: 100%;
    justify-content: space-between;
    margin-top: 10px
}

.secondary.full {
    justify-content: center
}

.text-button {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.15fr;
    border: 1px solid var(--line);
    margin-bottom: 48px;
    background: #fff;
    padding: 28px 32px;
    gap: 25px
}

.stats>div {
    border-right: 1px solid var(--line)
}

.stats strong {
    font-family: var(--serif);
    display: block;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.15
}

.stats span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 9px
}

.stats aside {
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.45;
    align-self: center;
    padding-left: 14px
}

.section-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 23px
}

.section-label h2 {
    margin: 0
}

.section-label h2 span {
    color: var(--muted);
    font-size: 12px;
    margin-left: 8px
}

.filters {
    display: flex;
    gap: 7px
}

.filter {
    border: 1px solid transparent;
    border-radius: 30px;
    padding: 7px 14px;
    background: none;
    font-size: 12px;
    color: var(--muted)
}

.filter.active {
    border-color: var(--line);
    background: #fff;
    color: var(--ink)
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 24px
}

.item-card {
    background: #fff;
    border: 1px solid var(--line)
}

.item-card:hover {
    border-color: #869586
}

.item-image {
    height: 310px;
    position: relative;
    background: #e7e6df;
    overflow: hidden
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s
}

.item-card:hover img {
    transform: scale(1.025)
}

.badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #f3f0df;
    color: #665c33;
    padding: 6px 11px;
    border-radius: 2px;
    font-size: 10px;
    letter-spacing: .3px
}

.badge.published {
    background: #e4eee2;
    color: #304c34
}

.badge.inline {
    position: static;
    padding: 10px 16px;
    white-space: nowrap
}

.item-details {
    padding: 23px
}

.item-details .eyebrow {
    color: var(--muted);
    font-size: 9px;
    margin-bottom: 9px
}

.edit-link {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    border-top: 1px solid #edece6;
    padding-top: 14px
}

.sample-note {
    margin-top: 25px
}

.footer {
    display: flex;
    justify-content: space-between;
    padding: 23px 5.5%;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted)
}

.back {
    font-size: 12px;
    display: inline-block;
    margin-bottom: 30px
}

.editor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: start
}

.form-panel {
    padding: 28px 32px 32px;
    background: #fff;
    border: 1px solid var(--line)
}

label {
    display: block;
    font-size: 12px;
    margin-bottom: 9px;
    font-weight: 500
}

input:not([type=hidden]),
select,
textarea {
    display: block;
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cbd0c7;
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    margin-bottom: 23px;
    min-height: 47px
}

textarea {
    resize: vertical;
    line-height: 1.7
}

select {
    appearance: auto
}

input::placeholder,
textarea::placeholder {
    color: #899087
}

.upload-zone {
    border: 1px dashed #aab5a7;
    background: #eceedf;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 55px 26px;
    cursor: pointer;
    gap: 9px;
    min-height: 370px
}

.upload-zone strong {
    font-size: 20px;
    font-weight: 400;
    font-family: var(--serif)
}

.upload-zone>span {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted)
}

.upload-zone .upload-icon {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 10px
}

.upload-zone input {
    max-width: 260px;
    margin: 17px 0 0;
    font-size: 11px;
    min-height: 0;
    padding: 8px;
    background: #f6f7ef;
    border: none
}

.upload-panel>.small {
    margin-top: 18px
}

.upload-preview {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    margin-top: 20px
}

.gentle-note {
    display: flex;
    gap: 15px;
    background: #f2f3eb;
    padding: 19px 16px;
    margin: 8px 0 19px;
    color: #3b5668
}

.gentle-note>span {
    font-size: 24px
}

.gentle-note p {
    font-size: 12px;
    margin: 0
}

.form-panel>.small,
.form-panel form>.small {
    margin-top: -10px
}

.form-panel form .button+.small {
    margin-top: 12px
}

.editor-photo {
    display: block;
    width: 100%;
    max-height: 650px;
    object-fit: contain;
    background: #e8e8e1
}

.photo-panel>.small {
    margin-top: 15px
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px
}

.label-row span {
    font-size: 10px
}

.notice {
    background: #e9eee1;
    border: 1px solid #d2dec7;
    padding: 16px 20px;
    margin-bottom: 26px;
    font-size: 13px
}

.notice.error {
    background: #f5e8e1;
    border-color: #dec9bd
}

.notice a {
    text-decoration: underline
}

.login-card {
    max-width: 480px;
    margin: 22px auto 40px;
    padding: 36px 0
}

.login-card h1 {
    font-size: 46px
}

.login-card form {
    margin-top: 33px
}

.login-card>.small {
    margin-top: 25px
}

.login-card .notice {
    margin-top: 25px
}

.empty {
    text-align: center;
    padding: 65px 20px;
    border: 1px solid var(--line);
    background: #fff
}

.empty h2 {
    font-family: var(--serif);
    font-size: 30px
}

.brands-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    background: #fff
}

.brand-form {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 24px;
    padding: 25px;
    align-items: end
}

.brand-form+.brand-form {
    border-top: 1px solid var(--line)
}

.brand-form input,
.brand-form textarea {
    margin: 0;
    min-height: 72px
}

.brand-form input {
    min-height: 47px
}

.brand-form button {
    margin-bottom: 0
}

.add-brand {
    margin-top: 45px
}

.add-brand>.brand-form {
    padding: 25px;
    background: #eaece2;
    border: 1px solid var(--line)
}

.busy-message {
    color: #46563d;
    font-size: 13px;
    padding: 14px 0;
    margin: 0
}

.ai-retry {
    margin-top: 22px;
    color: var(--accent)
}

.published-actions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    border-top: 1px solid var(--line);
    padding-top: 25px;
    margin-top: 25px;
    font-size: 12px
}

.danger {
    color: #8a4f35
}

[hidden] {
    display: none !important
}

@media(max-width:960px) {
    .topbar {
        padding: 20px 25px
    }

    .topbar nav {
        gap: 20px
    }

    .shell {
        padding: 40px 26px 60px
    }

    h1 {
        font-size: 46px
    }

    .item-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .stats {
        padding: 24px;
        gap: 18px
    }

    .stats aside {
        font-size: 17px
    }

    .editor {
        gap: 30px
    }

    .form-panel {
        padding: 24px
    }

    .brand-form {
        grid-template-columns: 1fr 1.5fr;
        gap: 18px
    }

    .brand-form button {
        grid-column: 2;
        justify-self: end
    }
}

@media(max-width:640px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
        padding: 22px
    }

    .wordmark {
        font-size: 30px
    }

    .topbar nav {
        justify-content: space-between;
        width: 100%;
        gap: 12px;
        font-size: 12px
    }

    .topbar .text-button {
        font-size: 12px
    }

    .shell {
        padding: 34px 20px 50px
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        margin-bottom: 28px
    }

    h1 {
        font-size: 42px;
        letter-spacing: -1.4px
    }

    .page-heading>.button {
        width: 100%
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        padding: 21px 18px;
        margin-bottom: 32px
    }

    .stats strong {
        font-size: 29px
    }

    .stats span {
        font-size: 10px;
        line-height: 1.5
    }

    .stats>div:nth-child(3) {
        border: none
    }

    .stats aside {
        display: none
    }

    .section-label {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px
    }

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

    .item-image {
        height: 200px
    }

    .item-details {
        padding: 14px
    }

    .item-details h3 {
        font-size: 19px;
        margin-bottom: 15px
    }

    .item-details .eyebrow {
        font-size: 8px;
        letter-spacing: 1px
    }

    .edit-link {
        font-size: 10px
    }

    .badge {
        left: 9px;
        top: 9px;
        font-size: 9px;
        padding: 5px 8px
    }

    .editor {
        grid-template-columns: 1fr;
        gap: 25px
    }

    .upload-zone {
        min-height: 300px;
        padding: 35px 20px
    }

    .form-panel {
        padding: 24px 20px
    }

    .editor-photo {
        max-height: 460px
    }

    .brand-form {
        grid-template-columns: 1fr;
        padding: 21px;
        gap: 18px
    }

    .brand-form button {
        grid-column: auto;
        justify-self: stretch
    }

    .add-brand>.brand-form {
        padding: 21px
    }

    .footer {
        padding: 20px;
        font-size: 10px
    }

    .footer span {
        display: none
    }

    .login-card {
        padding: 15px 0
    }

    .login-card h1 {
        font-size: 42px
    }

    .item-card .badge {
        max-width: calc(100% - 18px)
    }

    .back {
        margin-bottom: 25px
    }

    .photo-panel {
        max-width: 100%
    }
}

.archive-form {
    padding: 0 25px 22px
}

.brand-row+.brand-row {
    border-top: 1px solid var(--line)
}

.replace-photo {
    margin-top: 26px;
    padding: 22px;
    border: 1px solid var(--line);
    background: #fff
}

.replace-photo .small {
    margin-top: 13px;
    margin-bottom: 0
}

.replace-photo input {
    font-size: 12px;
    margin-bottom: 8px
}

.topbar nav {
    gap: 23px
}

@media(max-width:640px) {
    .topbar nav {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 17px
    }

    .topbar nav form {
        margin-left: auto
    }

    .archive-form {
        padding: 0 21px 22px
    }
}
.stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
.login-card h1, .page-heading h1 { font-family:Arial,Helvetica,sans-serif; font-weight:650; letter-spacing:-.04em; font-size:clamp(2rem,4vw,3.3rem); }
.crm-form,.crm-search { max-width:680px; margin:1rem 0 2rem; }
.crm-search div,.check-row { display:flex; align-items:center; gap:.75rem; }
.crm-form fieldset { border:1px solid var(--line); padding:1rem; margin:1.5rem 0; }
.crm-form input[type=checkbox] { width:1.1rem; min-height:0; height:1.1rem; }
.customer-list { padding:0; list-style:none; border-top:1px solid var(--line); }
.customer-list a { display:grid; grid-template-columns:1fr 1.4fr 1fr; gap:.75rem; padding:1rem .5rem; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.customer-list a:hover { background:white; }
@media(max-width:700px) {
 .customer-list a { grid-template-columns:1fr; gap:.2rem; }
 .topbar nav { flex-wrap:wrap; }
}

label:has(> input[type="checkbox"]) { display:flex; align-items:center; gap:.65rem; }
input[type="checkbox"]:not([type="hidden"]) { width:1.1rem; height:1.1rem; min-height:0; flex:none; }

/* Photo review reuses the editor's panels and controls. */
.studio h2 { margin-bottom: 8px; }
.studio-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.studio-image { background: var(--white); border: 1px solid var(--line); min-width: 0; }
.studio-image > a { display: block; }
.studio-image > a span { display: block; padding: 7px 14px 0; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.studio-image img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #e8e8e1; }
.studio-image-info { padding: 14px; }
.studio-image-info strong, .studio-image-info span { display: block; }
.studio-image-info .secondary { padding: 10px; min-height: 44px; }
.studio-note { margin: 17px 0; }
.studio-generate, .studio-editorial { background: var(--white); border: 1px solid var(--line); padding: 18px; margin-top: 12px; }
.studio-generate input, .studio-editorial input { margin-bottom: 8px; }
.studio-editorial summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.studio-editorial summary::before { content: "+"; margin-right: 10px; font-size: 20px; text-decoration: none; }
.studio-editorial[open] summary::before { content: "−"; }
@media(min-width: 1100px) {
    .studio-images--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media(max-width: 320px) {
    .studio-images { grid-template-columns: 1fr; }
}

.studio-placeholder {
    margin-block: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    background: var(--white);
}
.studio-placeholder span {
    display: block;
    font-size: .85rem;
    color: var(--muted);
}
.studio-placeholder p { margin-bottom: 0; }

/* Manager console: shared shell and controls. */
:root {
    --ink: #202b3c;
    --muted: #697586;
    --paper: #f7f9fc;
    --line: #e3e8ef;
    --accent: #35728f;
    --white: #fff;
    --serif: Arial, Helvetica, sans-serif;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; }
.admin-app { display: flex; min-height: 100vh; }
a { text-decoration: none; }
:focus-visible { outline: 3px solid #4c83a1; outline-offset: 3px; }
h1, .login-card h1, .page-heading h1 { color: #172235; font-family: inherit; font-size: 27px; line-height: 1.2; font-weight: 650; letter-spacing: -.035em; margin: 0 0 8px; }
h2 { font-size: 16px; font-weight: 650; line-height: 1.35; }
h3 { font-family: inherit; font-size: 14px; font-weight: 600; }
.sidebar { position: sticky; top: 0; flex: 0 0 232px; width: 232px; height: 100vh; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 5; }
.sidebar-header { padding: 24px 18px 20px; }
.workspace { display: flex; align-items: center; gap: 11px; min-width: 0; }
.workspace-mark { display: grid; place-items: center; width: 35px; height: 35px; flex: none; border-radius: 9px; background: #243453; color: #fff; font-size: 18px; font-weight: 700; letter-spacing: -.07em; }
.workspace-name { display: block; color: #1f2a3b; font-weight: 650; font-size: 13px; line-height: 1.25; white-space: nowrap; }
.workspace-name small { display: block; color: #8993a1; font-weight: 400; font-size: 11px; margin-top: 3px; }
.sidebar-nav { display: flex; flex-direction: column; flex: 1; padding: 0 12px 16px; overflow-y: auto; }
.nav-label { margin: 22px 10px 8px; color: #9aa4b2; font-size: 10px; font-weight: 700; letter-spacing: .09em; }
.sidebar-nav > a, .sidebar-bottom a, .sidebar-bottom button { display: flex; align-items: center; width: 100%; min-height: 40px; gap: 11px; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: #596579; font-size: 13px; font-weight: 500; text-align: left; }
.sidebar-nav svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-nav a:hover, .sidebar-bottom button:hover { background: #f4f6fa; color: #273650; }
.sidebar-nav a[aria-current="page"] { background: #e8f2f6; color: #275e79; font-weight: 650; }
.sidebar-bottom { margin-top: auto; padding-top: 16px; }
.sidebar-bottom form { margin: 0; }
.external-arrow { margin-left: auto; color: #9aa4b2; }
.nav-toggle { display: none; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content-bar { height: 64px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.7); color: #8a95a4; font-size: 12px; }
.content-bar span:first-child { color: #596579; font-weight: 550; }
.shell { width: 100%; max-width: 1400px; min-height: 0; margin: 0 auto; padding: 40px 42px 70px; flex: 1; }
.page-heading { align-items: center; gap: 24px; margin-bottom: 36px; }
.page-heading p { font-size: 13px; }
.page-kicker { color: #8b95a4; font-size: 10px !important; font-weight: 700; letter-spacing: .1em; margin: 0 0 9px; }
.eyebrow { color: #7d8999; font-size: 10px; letter-spacing: .08em; margin-bottom: 10px; }
.button, .secondary { min-height: 38px; padding: 9px 14px; gap: 8px; border-radius: 6px; font-size: 13px; font-weight: 600; line-height: 1.3; box-shadow: 0 1px 2px rgba(18, 32, 55, .05); }
.button { border-color: #35728f; background: #35728f; }
.button:hover { background: #295c75; border-color: #295c75; }
.secondary { color: #344256; border-color: #d7dee8; background: #fff; }
.secondary:hover { background: #f7f9fc; }
.text-button { color: #53657e; font-size: 12px; }
.full, .secondary.full { justify-content: center; }
.overview { margin-bottom: 36px; }
.overview-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.overview-heading h2 { margin: 0; }
.overview-heading span { color: #9aa4b2; font-size: 12px; }
.stats { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px rgba(20,35,60,.03); overflow: hidden; }
.stats > div { min-width: 0; padding: 20px 22px; border-right: 1px solid var(--line); }
.stats > div:last-child { border: 0; }
.stats span { color: #697586; font-size: 12px; font-weight: 550; margin: 0 0 12px; }
.stats strong { color: #202c40; font-family: inherit; font-size: 27px; font-weight: 650; line-height: 1; letter-spacing: -.04em; }
.stats small { display: block; color: #9aa4b2; font-size: 11px; margin-top: 10px; }
.stats small a { color: #275e79; }
.catalogue-section { border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 1px 2px rgba(20,35,60,.03); overflow: hidden; }
.section-label { padding: 20px 22px; margin: 0; }
.section-label h2 span { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 10px; background: #f1f3f7; font-size: 11px; font-weight: 600; }
.section-label p { margin: 5px 0 0; font-size: 12px; }
.filters { gap: 2px; padding: 3px; border: 1px solid #e6eaf0; border-radius: 7px; background: #f8f9fb; }
.filter { min-height: 30px; padding: 5px 12px; border: 0; border-radius: 5px; font-size: 12px; font-weight: 550; }
.filter.active { background: white; box-shadow: 0 1px 3px rgba(30,45,70,.12); }
.item-list-header, .item-card > a { display: grid; grid-template-columns: minmax(0,1fr) 150px 22px; align-items: center; gap: 18px; }
.item-list-header { padding: 10px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fafbfd; color: #9aa4b2; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.item-card { border: 0; border-bottom: 1px solid #edf0f4; }
.item-card:last-of-type { border-bottom: 0; }
.item-card > a { min-height: 72px; padding: 10px 22px; }
.item-card:hover { background: #fafbfe; }
.item-identity { display: flex; align-items: center; min-width: 0; gap: 13px; }
.item-image { position: static; width: 46px; height: 50px; flex: none; border-radius: 5px; background: #eef1f5; }
.item-image img { transition: none; }
.item-card:hover img { transform: none; }
.item-details { min-width: 0; padding: 0; }
.item-details h3 { overflow-wrap: anywhere; font-size: 13px; line-height: 1.35; margin: 0 0 3px; }
.item-details p { color: #8994a4; font-size: 12px; margin: 0; }
.badge, .badge.inline { position: static; width: fit-content; padding: 4px 8px; border-radius: 4px; background: #f4f0e7; color: #8b6a29; font-size: 11px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.badge.published { background: #eaf6f0; color: #26845a; }
.row-arrow { color: #aab3bf; font-size: 17px; }
.filter-empty { margin: 0; padding: 28px 22px; font-size: 13px; }
.sample-note { margin-top: 16px; }
.empty { padding: 54px 20px; border: 0; }
.empty-icon { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 15px; border-radius: 10px; background: #e8f2f6; color: #356f8e; font-size: 23px; }
.empty h2 { font-family: inherit; font-size: 16px; margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: 13px; }
.footer { padding: 20px 42px; border: 0; color: #a0aab7; font-size: 11px; }
.back { color: #65758b; font-size: 12px; margin-bottom: 22px; }
.back:hover { color: var(--accent); }
.editor { gap: 28px; }
.form-panel, .brands-list, .replace-photo, .studio-image, .studio-generate, .studio-editorial, .studio-placeholder { border-color: var(--line); border-radius: 8px; }
.form-panel { padding: 24px; }
label { color: #46536a; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
input:not([type=hidden]), select, textarea { min-height: 40px; padding: 9px 11px; border: 1px solid #d9e0e9; border-radius: 6px; margin-bottom: 18px; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #a4adba; }
.upload-zone { border-color: #cbd4e1; border-radius: 8px; background: #f9fafe; }
.upload-zone strong { font-family: inherit; font-size: 16px; font-weight: 600; }
.upload-zone input { background: #fff; }
.gentle-note, .notice { border-radius: 6px; }
.notice { background: #eef6f1; border-color: #d4eade; }
.notice.error { background: #fff2f1; border-color: #f0d6d3; }
.add-brand > .brand-form { border-radius: 8px; background: #fff; }
.brand-form input, .brand-form textarea { margin: 0; }
.brand-form input { min-height: 40px; }
.auth-page { min-height: 100vh; }
.auth-header { padding: 25px 32px; }
.auth-page .shell { padding-top: 70px; }
.login-card { max-width: 410px; margin: 0 auto; padding: 32px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 8px 24px rgba(32,45,70,.05); }
.login-card h1 { font-size: 23px; }
.login-card form { margin-top: 26px; }
.login-card .button { justify-content: center; }
@media (max-width: 960px) {
    .shell { padding: 32px 28px 60px; }
    .content-bar { padding: 0 28px; }
    .editor { gap: 22px; }
    .brand-form { gap: 16px; }
}
@media (max-width: 700px) {
    .admin-app { display: block; }
    .sidebar { position: relative; width: 100%; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
    .sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; }
    .workspace-mark { width: 34px; height: 34px; }
    .nav-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
    .nav-toggle span { display: block; width: 16px; height: 1.5px; background: #526174; }
    .nav-ready .sidebar:not(.nav-open) .sidebar-nav { display: none; }
    .sidebar-nav { padding: 0 12px 12px; overflow: visible; }
    .sidebar-nav > a, .sidebar-bottom a, .sidebar-bottom button { min-height: 44px; }
    .sidebar-bottom { margin-top: 8px; border-top: 1px solid var(--line); }
    .nav-label { margin-top: 14px; }
    .content-bar { display: none; }
    .shell { padding: 28px 18px 48px; }
    .page-heading { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 28px; }
    .page-heading > .button { width: auto; min-height: 44px; }
    h1, .login-card h1, .page-heading h1 { font-size: 25px; letter-spacing: -.035em; }
    .stats { grid-template-columns: 1fr; }
    .stats > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 15px 17px; border-right: 0; border-bottom: 1px solid var(--line); }
    .stats > div:nth-child(3) { border-bottom: 0; }
    .stats span { margin: 0; }
    .stats strong { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 24px; }
    .stats small { margin: 0; }
    .section-label { gap: 16px; padding: 18px 16px; }
    .item-list-header { display: none; }
    .item-card > a { grid-template-columns: minmax(0,1fr) auto 16px; gap: 8px; padding: 12px 16px; }
    .item-image { width: 40px; height: 46px; }
    .item-identity { gap: 10px; }
    .item-details h3 { font-size: 13px; }
    .badge { font-size: 10px; }
    .editor { grid-template-columns: 1fr; }
    .form-panel { padding: 20px; }
    .footer { padding: 18px; }
    .auth-header { padding: 20px; }
    .auth-page .shell { padding-top: 30px; }
    .login-card { padding: 24px; }
}
@media (max-width: 380px) {
    .item-card > a { grid-template-columns: minmax(0,1fr) 16px; }
    .item-card .badge { grid-column: 1; margin-left: 50px; }
    .item-card .row-arrow { grid-column: 2; grid-row: 1 / 3; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Catalogue visitor statistics: reuse the manager shell, panels and controls. */
.analytics-filters { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.analytics-filters > div { min-width: 150px; }
.analytics-filters .analytics-source { min-width: 200px; max-width: 320px; }
.analytics-filters label { display: block; }
.analytics-filters input, .analytics-filters select { width: 100%; margin: 0; min-height: 44px; }
.analytics-filters .button, .analytics-filters .secondary { min-height: 44px; }
.analytics-period { font-size: 12px; margin-bottom: 20px; }
.analytics-stats { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 24px; }
.analytics-stats > div { border-bottom: 1px solid var(--line); }
.analytics-stats > div:nth-child(3) { border-right: 0; }
.analytics-stats > div:nth-child(n+4) { border-bottom: 0; }
.analytics-stats small { color: var(--muted); line-height: 1.5; }
.analytics-stats strong { font-size: 26px; }
.analytics-trend { margin-bottom: 24px; }
.analytics-trend .section-label { flex-wrap: wrap; }
.analytics-legend { display: flex; gap: 18px; font-size: 12px; }
.analytics-legend span::before { content: ''; display: inline-block; width: 16px; height: 3px; background: var(--accent); margin-right: 6px; vertical-align: middle; }
.analytics-legend .analytics-page-key::before { background: var(--muted); }
.analytics-chart { display: block; width: 100%; height: auto; padding: 0 12px; }
.analytics-chart text { fill: var(--muted); font-size: 13px; }
.analytics-gridline { fill: none; stroke: var(--line); }
.analytics-page-line, .analytics-visitor-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.analytics-visitor-line { stroke: var(--accent); }
.analytics-page-line { stroke: var(--muted); stroke-dasharray: 6 5; }
.analytics-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-bottom: 24px; align-items: start; }
.analytics-panel { min-width: 0; }
.analytics-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.analytics-table th, .analytics-table td { padding: 12px 22px; text-align: left; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.analytics-table thead th { color: var(--muted); font-size: 11px; font-weight: 600; background: var(--paper); }
.analytics-table th:last-child, .analytics-table td:last-child { text-align: right; width: 110px; font-variant-numeric: tabular-nums; }
.analytics-table small { display: block; color: var(--muted); margin-top: 3px; font-size: 11px; }
.analytics-table a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.analytics-table tbody a { display: inline-block; padding: 4px 0; }
.analytics-no-data { padding: 0 22px 18px; font-size: 13px; }
.analytics-detail { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 10px; }
.analytics-detail > summary, .analytics-daily > summary { min-height: 44px; padding: 12px 0; cursor: pointer; font-size: 14px; font-weight: 600; }
.analytics-detail > .analytics-grid { margin-top: 14px; }
.analytics-explanation { font-size: 12px; max-width: 80ch; margin: 8px 0 18px; }
.analytics-daily { border-top: 1px solid var(--line); }
.analytics-daily > summary { padding-inline: 22px; }
.analytics-daily .analytics-table { table-layout: auto; }
.analytics-daily .analytics-table th, .analytics-daily .analytics-table td { text-align: right; width: auto; }
.analytics-daily .analytics-table th:first-child { text-align: left; }
.analytics-method { font-size: 13px; color: var(--muted); }
.analytics-method > div { max-width: 95ch; padding-top: 12px; }
.analytics-method strong { color: var(--ink); }
.analytics-empty { padding: 24px; margin-bottom: 24px; }
.analytics-empty p { margin-bottom: 0; max-width: 75ch; }
.analytics-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1100px) { .analytics-grid { gap: 18px; } .analytics-table th, .analytics-table td { padding: 12px 16px; } }
@media (max-width: 700px) {
    .analytics-grid { grid-template-columns: 1fr; }
    .analytics-filters { gap: 12px; }
    .analytics-filters > div { flex: 1 1 calc(50% - 6px); min-width: 0; }
    .analytics-filters .analytics-source { flex-basis: 100%; min-width: 0; max-width: none; }
    .analytics-stats { grid-template-columns: 1fr; }
    .analytics-stats > div:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
    .analytics-stats > div:last-child { border-bottom: 0; }
    .analytics-stats strong { font-size: 24px; }
    .analytics-chart { min-height: 130px; }
    .analytics-daily .analytics-table th, .analytics-daily .analytics-table td { padding: 10px 8px; font-size: 11px; }
    .analytics-table tbody a { min-height: 44px; display: inline-flex; align-items: center; }
}
