:root {
    --paper: #f6f3ee;
    --ink: #1c1916;
    --muted: #5e5852;
    --faint: #8a837b;
    --line: #e4ddd3;
    --sidebar: #f3efe8;
    --serif: "Fraunces", Palatino, Georgia, serif;
    --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
    color-scheme: light;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.45;
}

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

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--ink);
    color: var(--paper);
    padding: 0.45rem 0.7rem;
    z-index: 6;
}

.skip:focus { top: 0.5rem; }

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

.wordmark {
    margin: 0;
    font-family: var(--serif);
    font-weight: 460;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.92rem;
}

.icon { width: 1rem; height: 1rem; flex: none; }

.shell { min-height: 100vh; }

.side {
    position: fixed;
    z-index: 4;
    inset: 0 auto 0 0;
    width: min(18rem, 86vw);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.1rem 1rem;
    background: var(--sidebar);
    border-right: 1px solid var(--line);
    transform: translateX(-105%);
    transition: transform 160ms ease;
}

body.nav-open .side { transform: none; }

.backdrop {
    position: fixed;
    inset: 0;
    z-index: 3;
    background: rgba(28, 25, 22, 0.28);
}

.side-head { margin-bottom: 1.6rem; }

.gallery-name {
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.side-nav { display: grid; gap: 1.15rem; overflow: auto; }

.nav-label {
    margin: 0 0 0.35rem;
    color: var(--faint);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.38rem 0.2rem;
    color: var(--ink);
    text-decoration: none;
}

.nav-item.is-active { font-weight: 400; }

.nav-item.is-soon, .nav-item.is-locked { color: var(--faint); }

.plan-banner, .plan-lock-label {
    margin: 0 0 0.8rem;
    color: var(--faint);
    font-size: 0.85rem;
}

.is-plan-locked {
    opacity: 0.72;
}

.nav-item .nav-badge {
    margin-left: auto;
    min-width: 1.25rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: var(--ink, #1c1916);
    color: #fff;
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: center;
}

.nav-item small {
    margin-left: auto;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

.side-foot {
    margin-top: auto;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.who, .role { margin: 0; }

.role { color: var(--muted); font-size: 0.82rem; }

.side-foot button {
    margin-top: 0.7rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
}

.canvas { min-width: 0; }

.mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
}

.mobile-bar button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    background: none;
    padding: 0.2rem 0;
    cursor: pointer;
}

main { padding: 1.4rem 1.1rem 3rem; }

.page-head h1, .greeting { margin: 0; }

.greeting {
    color: var(--muted);
    font-size: 0.95rem;
}

.page-head h1 {
    margin-top: 0.2rem;
    font-family: var(--serif);
    font-weight: 460;
    font-size: clamp(2rem, 6vw, 3.1rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.lede { margin: 0.55rem 0 0; color: var(--muted); max-width: 36rem; }

.row-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.8rem 1.2rem;
}

.metrics, .panel, .filters, .works { margin-top: 2rem; }

.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem 1.5rem;
    padding: 1.3rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.metrics p { margin: 0; }

.metrics strong {
    display: block;
    font-family: var(--serif);
    font-weight: 460;
    font-size: clamp(2rem, 5vw, 2.8rem);
    letter-spacing: -0.03em;
    line-height: 1;
}

.metrics span, .quiet, .meta, .count, .reads {
    color: var(--muted);
}

.metrics span { display: block; margin-top: 0.4rem; font-size: 0.85rem; }

.panel-head, .tag-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
}

.panel h2, .empty h2 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 460;
    font-size: 1.45rem;
}

.tag-line {
    justify-content: flex-start;
    gap: 1.2rem;
    margin: 0.8rem 0;
    color: var(--muted);
}

.meter {
    display: flex;
    height: 2px;
    background: var(--line);
}

.meter span { display: block; height: 100%; }
.meter-assigned { background: var(--ink); }
.meter-free { background: #b7b0a6; }
.meter-suspended { background: #ddd6cc; }

.split { display: grid; gap: 2rem; margin-top: 2.2rem; }

.feed { list-style: none; margin: 1rem 0 0; padding: 0; }

.feed li {
    display: grid;
    gap: 0.1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--line);
}

.feed time, .feed .meta { color: var(--faint); font-size: 0.82rem; }

.feed p { margin: 0; }

.text-action {
    color: var(--ink);
    border-bottom: 1px solid currentColor;
    font-size: 0.92rem;
}

.text-action.primary, .nav-item.is-active {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem 0.9rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.featured img, .thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: #efeae2;
}

.featured p { margin: 0.55rem 0 0; }

.featured span, .work-title span { display: block; color: var(--muted); font-size: 0.9rem; }

.filters {
    display: grid;
    gap: 0.7rem;
}

.filters label { display: block; }

.search { position: relative; }

.search .icon {
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--faint);
}

input[type="search"], input[type="email"], input[type="password"], select {
    width: 100%;
    padding: 0.65rem 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

.search input { padding-left: 1.75rem; }

.count { margin: 1rem 0 0; font-size: 0.85rem; }

.works { list-style: none; margin: 0.4rem 0 0; padding: 0; }

.work {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.15rem 0.85rem;
    align-items: center;
    padding: 0.95rem 0;
    border-top: 1px solid var(--line);
}

.work img, .work .thumb-empty {
    width: 4.5rem;
    height: 3rem;
    grid-row: 1 / span 4;
    object-fit: cover;
}

.work-title p { margin: 0; }

.chip {
    justify-self: start;
    border: 1px solid var(--line);
    padding: 0.05rem 0.4rem;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
}

.chip.is-quiet { color: var(--muted); }

.codes { display: flex; gap: 0.45rem; align-items: baseline; }

.more, .reads { color: var(--muted); font-size: 0.85rem; }

.menu { position: relative; justify-self: start; }

.menu summary {
    list-style: none;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
}

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

.menu div {
    position: absolute;
    right: 0;
    z-index: 2;
    min-width: 11rem;
    padding: 0.35rem 0;
    background: var(--paper);
    border: 1px solid var(--line);
}

.menu a, .menu span {
    display: block;
    padding: 0.4rem 0.75rem;
    color: var(--ink);
    text-decoration: none;
}

.menu span { color: var(--faint); }

.empty {
    margin-top: 4rem;
    max-width: 28rem;
}

.empty p { color: var(--muted); }

.no-results { color: var(--muted); }

.pager {
    display: flex;
    gap: 1.2rem;
    align-items: baseline;
    margin-top: 1.4rem;
}

.pager a { color: var(--ink); }

.gate {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1.2rem;
}

.gate-panel { width: min(22rem, 100%); }

.gate-panel h1 {
    font-family: var(--serif);
    font-weight: 460;
    font-size: 2.4rem;
    margin: 1rem 0 1.2rem;
}

.gate-panel label {
    display: block;
    margin-top: 0.9rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gate-panel button {
    margin-top: 1.4rem;
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: none;
    padding: 0.15rem 0;
    cursor: pointer;
}

.field-error { color: #7a3e32; font-size: 0.9rem; }

:focus-visible {
    outline: 1px solid var(--ink);
    outline-offset: 3px;
}

@media (min-width: 800px) {
    .metrics { grid-template-columns: repeat(4, 1fr); }
    .split { grid-template-columns: 1.2fr 0.8fr; }
    .featured { grid-template-columns: repeat(3, 1fr); }
    .filters { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); align-items: end; }
    main { padding: 2rem 2rem 4rem; }
}

@media (min-width: 1024px) {
    .shell {
        display: grid;
        grid-template-columns: 15.5rem minmax(0, 1fr);
    }

    .side {
        position: sticky;
        top: 0;
        height: 100vh;
        width: auto;
        transform: none;
    }

    .mobile-bar, .backdrop { display: none; }

    .work {
        grid-template-columns: 4.5rem minmax(9rem, 1fr) auto auto auto auto 2rem;
        gap: 0.5rem 0.85rem;
    }

    .work img, .work .thumb-empty { grid-row: auto; }

    .chip, .codes, .reads { white-space: nowrap; }
}

@media (min-width: 1440px) {
    main { padding-inline: 3rem; }
    .featured { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .side { transition: none; }
}

.editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.editor-main { min-width: 0; }

.editor input:not([type="checkbox"]),
.editor select,
.editor textarea {
    width: 100%;
    max-width: 100%;
}

.editor section {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.editor h2 {
    margin: 0 0 1rem;
    font-family: var(--serif);
    font-weight: 460;
    font-size: 1.45rem;
}

.editor label { display: block; margin-top: 0.9rem; }

.editor label span, .quiet-field span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.editor textarea {
    width: 100%;
    min-height: 8rem;
    padding: 0.7rem 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    resize: vertical;
}

.drop {
    position: relative;
    display: grid;
    min-height: 16rem;
    place-items: center;
    border: 1px dashed var(--line);
    background: transparent;
    cursor: pointer;
}

.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.drop img {
    width: 100%;
    max-height: 28rem;
    object-fit: contain;
}

.drop span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
}

.btn-translate {
    appearance: none;
    display: inline-flex;
    align-items: center;
    margin: 0.2rem 0 1rem;
    border: 0;
    background: #1c1916;
    color: #f7f4ef;
    min-height: 2.6rem;
    padding: 0.55rem 1.05rem;
    cursor: pointer;
    font: inherit;
}

.btn-translate:hover {
    background: #2a2622;
    color: #fff;
}

.form-status { margin-top: 1.2rem; }

.form-errors { color: #7a3e32; }

.lang-tabs {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.4rem;
    overflow-x: auto;
}

.lang-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    border-bottom: 1px solid transparent;
    background: none;
    padding: 0.35rem 0;
    cursor: pointer;
    white-space: nowrap;
}

.lang-tabs button[aria-selected="true"] { border-bottom-color: var(--ink); }

.dot {
    width: 0.4rem;
    height: 0.4rem;
    border: 1px solid var(--faint);
    border-radius: 50%;
}

.dot.is-on { background: var(--ink); border-color: var(--ink); }

.locale-state, .measures, .media-row, .tag-list li, .editor-bar, .side-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.measures { align-items: end; flex-wrap: wrap; }

.measures label { flex: 1 1 6rem; }

.measures small { color: var(--faint); }

.media-list, .tag-list { list-style: none; margin: 0.6rem 0 0; padding: 0; }

.media-row {
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.media-row img { width: 4.5rem; height: 3rem; object-fit: cover; background: #efeae2; }

.media-row button, .side-actions button, .editor-bar button, .mini button {
    border: 0;
    background: none;
    padding: 0.2rem;
    cursor: pointer;
}

.side-actions, .mini button { border-bottom: 1px solid var(--ink); padding: 0.15rem 0; }

.check { display: flex; gap: 0.45rem; align-items: center; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 0.95rem; }

.check span { display: none; }

.editor-side {
    padding-top: 0.4rem;
}

.side-value { margin: 0.15rem 0 1rem; }

.lang-state { list-style: none; margin: 0 0 1rem; padding: 0; color: var(--muted); }

.side-actions { flex-direction: column; align-items: flex-start; margin-top: 1rem; }

.side-actions a { color: var(--ink); }

.editor-bar {
    position: sticky;
    bottom: 0;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 1.4rem 0 0;
    padding: 0.8rem 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.editor-bar a { color: var(--ink); }

.mini { margin-top: 0.8rem; }

.mini summary { cursor: pointer; }

.finder {
    display: grid;
    gap: 0.8rem;
    margin-top: 2rem;
}

.artists {
    list-style: none;
    margin: 1.2rem 0 0;
    padding: 0;
}

.artist-row {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 0.15rem 0.85rem;
    align-items: start;
    min-width: 0;
    padding: 1.15rem 0;
    border-top: 1px solid var(--line);
}

.portrait,
.monogram {
    width: 3.25rem;
    height: 3.25rem;
    object-fit: cover;
}

.monogram {
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 1.15rem;
}

.artist-copy { min-width: 0; }

.artist-name {
    margin: 0;
    font-family: var(--serif);
    font-weight: 460;
    font-size: 1.25rem;
}

.artist-copy .meta,
.artist-hero .meta { margin: 0.15rem 0 0; }

.collection-state {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.8rem;
}

.thumbs {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.thumbs img {
    width: 2.6rem;
    height: 1.9rem;
    object-fit: cover;
}

.artist-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin: 0.55rem 0 0;
}

.artist-actions a { color: var(--ink); }

.artist-hero {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1rem 1.2rem;
    align-items: start;
}

.artist-hero img,
.monogram.is-large {
    width: 4.5rem;
    height: 5.6rem;
    object-fit: cover;
}

.artist-hero h1 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 460;
    font-size: clamp(2rem, 6vw, 3.1rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.artist-sheet section {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.artist-sheet h2 {
    margin: 0 0 0.8rem;
    font-family: var(--serif);
    font-weight: 460;
    font-size: 1.45rem;
}

.prose-quiet {
    max-width: 38rem;
    margin-top: 1.6rem;
}

.prose-quiet p {
    font-family: var(--serif);
    font-size: 1.12rem;
    line-height: 1.6;
    font-weight: 460;
}

.year-pair {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
}

.year-pair label { flex: 1 1 8rem; }

.drop.drop-portrait {
    min-height: 12rem;
    max-width: 18rem;
}

@media (min-width: 768px) {
    .artist-hero { grid-template-columns: 7.5rem minmax(0, 1fr); }

    .artist-hero img,
    .monogram.is-large {
        width: 7.5rem;
        height: 9.2rem;
    }
}

@media (min-width: 800px) {
    .finder {
        grid-template-columns: minmax(0, 1fr) 12rem;
        align-items: end;
    }
}

@media (min-width: 1024px) {
    .editor {
        grid-template-columns: minmax(0, 1fr) 16rem;
        column-gap: 2.5rem;
        align-items: start;
    }

    .editor-side {
        position: sticky;
        top: 1.5rem;
    }

    .editor-bar { display: none; }

    .drop { min-height: 22rem; }

    .drop.drop-portrait { min-height: 14rem; }
}

@media (max-width: 1023px) {
    .side-actions { display: none; }
}

.tags {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
}

.tag-row {
    display: grid;
    gap: 0.35rem 0.85rem;
    min-width: 0;
    padding: 1.15rem 0;
    border-top: 1px solid var(--line);
}

.tag-work {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
}

.tag-work img,
.thumb-empty {
    width: 4.5rem;
    height: 3rem;
    object-fit: cover;
    flex: none;
}

.thumb-empty { border: 1px solid var(--line); }

.tag-work span,
.tag-id { min-width: 0; }

.tag-work strong,
.tag-work small { display: block; }

.tag-work strong { overflow-wrap: anywhere; }

.tag-work small { color: var(--muted); }

.tag-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag-row .meta span { display: block; }

.tag-layout {
    display: grid;
    gap: 1.6rem;
    margin-top: 1.6rem;
}

.qr { margin: 0; max-width: 16rem; }

.qr svg {
    display: block;
    width: 100%;
    height: auto;
    background: var(--paper);
}

.qr figcaption { margin-top: 0.7rem; }

.qr figcaption strong {
    display: block;
    font-family: var(--serif);
    font-weight: 460;
    font-size: 1.35rem;
}

.tag-sheet section {
    margin-top: 2.2rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
}

.tag-sheet h2 {
    margin: 0 0 0.7rem;
    font-family: var(--serif);
    font-weight: 460;
    font-size: 1.45rem;
}

.label-form {
    display: grid;
    gap: 0.45rem;
    margin-top: 1.3rem;
}

.label-form input,
.finder select,
dialog input[type="search"] {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid var(--line);
    background: transparent;
    padding: 0.45rem 0.65rem;
}

.label-form button,
dialog > form > button {
    justify-self: start;
    min-height: 2.75rem;
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: none;
    padding: 0.35rem 0;
    cursor: pointer;
}

.metrics strong.is-copy {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.45;
}

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

.history li {
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
}

.history p { margin: 0; }

dialog {
    width: min(32rem, calc(100% - 1.5rem));
    max-height: calc(100% - 1.5rem);
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    padding: 1.2rem;
}

dialog::backdrop { background: rgba(28, 25, 22, 0.42); }

dialog h2 {
    margin: 0 0 0.6rem;
    font-family: var(--serif);
    font-weight: 460;
}

.picker-list {
    list-style: none;
    margin: 0.8rem 0;
    padding: 0;
    max-height: 50vh;
    overflow: auto;
}

.picker-list button {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    min-height: 3.25rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
    padding: 0.45rem 0;
}

.picker-list img {
    width: 4rem;
    height: 2.75rem;
    object-fit: cover;
    flex: none;
}

.picker-list small { display: block; color: var(--muted); }

@media (min-width: 768px) {
    .tag-layout { grid-template-columns: 16rem minmax(0, 1fr); align-items: start; }

    .tag-row {
        grid-template-columns: 10rem minmax(0, 1.4fr) auto minmax(9rem, 0.8fr);
        align-items: center;
    }

    .tag-row .artist-actions { grid-column: 1 / -1; }
}

@media (min-width: 800px) {
    .tag-finder {
        grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr));
        align-items: end;
    }
}

.support-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: #1c1916;
    color: #f6f3ee;
}

.support-bar p { margin: 0; }

.support-bar button {
    min-height: 2.5rem;
    border: 0;
    background: transparent;
    color: inherit;
    border-bottom: 1px solid currentColor;
    cursor: pointer;
}

.plate-nav {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.plate-nav a { color: var(--muted); }

.plate-nav a.is-current { color: var(--ink); }

.designer {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.designer-editorial {
    gap: 1.75rem;
}

.designer-panel {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}

.designer-acc {
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.35rem;
}

.designer-acc > summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--serif);
    font-size: 0.98rem;
    font-weight: 460;
    letter-spacing: 0.04em;
    padding: 0.7rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

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

.designer-acc > summary::after {
    content: "+";
    font-family: var(--sans);
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1;
}

.designer-acc[open] > summary::after { content: "–"; }

.designer-acc-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0 0 0.9rem;
}

.designer-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
}

.choice.compact {
    min-height: 2.1rem;
    margin: 0;
}

.locale-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
}

.designer-toolbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    width: 100%;
    padding: 0.75rem 0 0.9rem;
    margin: 0 0 0.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.designer-toolbar .btn-save-design {
    margin-left: auto;
}

.designer-dirty {
    margin: 0;
    margin-right: auto;
    font-size: 0.84rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.designer .btn-save-design,
.designer-mobile-save .btn-save-design {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-bottom: 0 !important;
    background: #1c1916 !important;
    color: #f7f4ef !important;
    min-height: 2.85rem;
    min-width: 10.5rem;
    padding: 0.7rem 1.35rem;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: none;
    align-self: center;
}

.designer .btn-save-design:hover,
.designer-mobile-save .btn-save-design:hover {
    background: #2a2622 !important;
    color: #ffffff !important;
}

.designer .btn-save-design:focus-visible,
.designer-mobile-save .btn-save-design:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.designer-status {
    margin-top: 0.75rem;
}

.form-errors {
    margin: 0.75rem 0 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid #b42318;
    color: #7a1c14;
}

.form-errors ul {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
}

.designer-mobile-save {
    display: none;
}

@media (max-width: 1023px) {
    .designer-toolbar {
        position: relative;
        top: auto;
    }

    .designer-mobile-save {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
        background: rgba(246, 243, 238, 0.98);
        border-top: 1px solid var(--line);
    }

    .designer-mobile-save .btn-save-design {
        flex: 1;
        text-align: center;
    }

    .designer-editorial {
        padding-bottom: 5.5rem;
    }
}

.asset-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0 0 0.85rem;
}

.export-links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.export-links a,
.export-links .btn-export {
    color: var(--ink);
    text-decoration: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    padding: 0 0 0.35rem;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.designer fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.designer legend, .designer label > span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.86rem;
    color: var(--muted);
}

.choice {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    min-height: 2.55rem;
    margin: 0.15rem 0;
}

.choice small { display: block; color: var(--muted); }

.designer input[type="text"], .designer input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]), .batch-bar select {
    width: 100%;
    min-height: 2.55rem;
    border: 1px solid var(--line);
    background: transparent;
    padding: 0.4rem 0.6rem;
}

.designer button, .batch-bar button {
    min-height: 2.55rem;
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: none;
    cursor: pointer;
    align-self: start;
}

.plate-stage { margin: 0; }

.view-toggle {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.view-toggle button {
    min-height: 2.4rem;
    padding: 0;
    border: 0;
    border-bottom: 1px solid transparent;
    background: none;
    color: var(--muted);
    cursor: pointer;
}

.view-toggle button.is-active {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.plate-stage-premium {
    position: sticky;
    top: 1rem;
}

.plate-stage-premium .plate-frame {
    position: relative;
    padding: 1.4rem 1.2rem;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 252, 245, 0.9), transparent 55%),
        linear-gradient(165deg, #ebe4d7 0%, #e2d8c8 48%, #d8cebd 100%);
    border: 1px solid var(--line);
    display: flex;
    justify-content: center;
}

.plate-stage-premium img {
    width: min(100%, 340px);
    height: auto;
    display: block;
    box-shadow: 0 22px 48px rgba(28, 25, 22, 0.14);
}

.plate-preview-loading {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    justify-content: stretch;
    padding: 0;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.plate-frame.is-preview-loading .plate-preview-loading {
    opacity: 1;
}

.plate-preview-loading-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(28, 25, 22, 0.35), transparent);
    background-size: 200% 100%;
    animation: plate-preview-shimmer 1.1s linear infinite;
}

@keyframes plate-preview-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.plate-preview-error {
    max-width: 22rem;
    padding: 1rem 1.1rem;
    border: 1px solid #b45309;
    background: #fff7ed;
    color: #1c1916;
}

.plate-preview-error p { margin: 0 0 0.55rem; }

.format-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin-bottom: 0.9rem;
}

.format-bar > label,
.format-colors {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.format-bar select {
    min-width: 11rem;
    font-size: 1rem;
}

.format-toggles {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    padding-bottom: 0.15rem;
}

.format-toggle {
    position: relative;
    display: inline-flex;
}

.format-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.format-toggle span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #1c1916;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.format-toggle:has(input:checked) span {
    background: #1c1916;
    color: #f3ead7;
}

.format-toggle:has(input:disabled) {
    opacity: 0.4;
}

.format-toggle:has(input:disabled) span {
    cursor: not-allowed;
}

.format-toggle:last-child span {
    font-style: italic;
    font-weight: 500;
}

.format-swatches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.format-swatch {
    width: 1.4rem;
    height: 1.4rem;
    padding: 0;
    border: 1px solid #1c1916;
    border-radius: 999px;
    cursor: pointer;
}

.format-swatch-style {
    width: auto;
    height: auto;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: #fff;
    font-size: 0.75rem;
}

.format-swatch.is-active,
.format-swatch-picker.is-active {
    outline: 2px solid #1c1916;
    outline-offset: 2px;
}

.format-swatch-picker input[type="color"] {
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    border: 1px solid #1c1916;
    background: transparent;
    cursor: pointer;
}

.position-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.1rem;
    margin: 0 0 0.9rem;
    border: 0;
    padding: 0;
}

.position-group {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.icon-choice {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.icon-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.icon-choice-glyph,
.icon-choice span[aria-hidden="true"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #1c1916;
    background: #fff;
    cursor: pointer;
}

.icon-choice-label {
    font-size: 0.68rem;
    line-height: 1.1;
    color: #1c1916;
}

.icon-choice:has(input:checked) .icon-choice-glyph,
.icon-choice:has(input:checked) span[aria-hidden="true"] {
    background: #1c1916;
    color: #f3ead7;
}

.icon-choice[aria-disabled="true"] {
    opacity: 0.35;
    pointer-events: none;
}

.icon-choice[aria-disabled="true"] .icon-choice-glyph,
.icon-choice[aria-disabled="true"] span[aria-hidden="true"] {
    cursor: not-allowed;
    opacity: 0.35;
}

.code-position-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(7.5rem, max-content));
    gap: 0.35rem 0.55rem;
    justify-content: start;
    align-items: start;
    margin: 0.4rem 0 0.6rem;
}

.code-position-grid .icon-choice[aria-disabled="true"] {
    opacity: 1;
    pointer-events: auto;
    cursor: help;
}

.code-position-grid .icon-choice[aria-disabled="true"] .icon-choice-glyph,
.code-position-grid .icon-choice[aria-disabled="true"] .icon-choice-label {
    opacity: 0.4;
}

.code-position-reason {
    display: block;
    max-width: 8.5rem;
    font-size: 0.62rem;
    line-height: 1.25;
    color: #6b5344;
}

.code-position-reason:empty {
    display: none;
}

.code-position-remedies {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.15rem;
}

.code-remedy {
    padding: 0;
    border: 0;
    background: none;
    color: #1c1916;
    font: inherit;
    font-size: 0.62rem;
    line-height: 1.25;
    text-align: left;
    text-decoration: underline;
    cursor: pointer;
}

.code-position-qr {
    grid-column: 1 / -1;
    justify-self: center;
}

.locale-order {
    list-style: none;
    margin: 0.4rem 0 0.8rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.locale-order li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.45rem;
    border: 1px solid #d9d3c8;
    background: #fff;
}

.locale-order button {
    min-width: 1.8rem;
    min-height: 1.8rem;
    padding: 0;
}

.locale-visibility {
    margin-left: auto;
    font-size: 0.75rem;
    color: #5c564e;
}

.art-title-size {
    display: block;
    margin-top: 0;
}

.art-title-size-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.35rem;
}

.art-title-size-row input[type="range"] {
    flex: 1;
    min-width: 0;
}

.art-title-size-row output {
    min-width: 2.4rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.mockup-modes {
    margin-top: 0.55rem;
}

.batch-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: end;
    margin-top: 1rem;
}

.tag-check { min-height: 2.75rem; display: flex; align-items: center; }

@media (min-width: 768px) {
    .tag-row { grid-template-columns: auto 10rem minmax(0, 1.4fr) auto minmax(9rem, 0.8fr); }
}

@media (min-width: 1024px) {
    .designer-editorial {
        grid-template-columns: minmax(17rem, 23rem) minmax(0, 1fr);
        align-items: start;
        gap: 2.25rem;
    }

    .designer-panel { grid-column: 1; }

    .plate-stage {
        grid-column: 2;
        grid-row: 1;
    }

    .plate-stage-premium img {
        width: min(100%, 380px);
    }

    .tag-row { grid-template-columns: auto 11rem minmax(0, 1.5fr) auto minmax(11rem, 0.9fr) auto; }

    .tag-row .artist-actions {
        grid-column: auto;
        margin: 0;
        justify-content: flex-end;
    }
}

.settings-page .settings-panel {
    margin-top: 1.5rem;
    padding: 1.25rem 1.4rem 1.5rem;
}

.settings-locales {
    margin-top: 1rem;
}

.settings-locale-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 1rem;
}

.settings-principal {
    margin: 0;
}

.settings-save {
    position: sticky;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0.85rem 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.settings-dirty {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.settings-page .btn-save-settings {
    appearance: none;
    border: 0;
    background: #1c1916;
    color: #f7f4ef;
    min-height: 2.85rem;
    min-width: 10.5rem;
    padding: 0.7rem 1.35rem;
    cursor: pointer;
    font: inherit;
}

.settings-page .btn-save-settings:hover {
    background: #2a2622;
    color: #fff;
}

@media (min-width: 1024px) {
    .settings-page .settings-save {
        display: flex;
    }
}

.translation-help {
    margin: 0.65rem 0 0;
}

.filters-leads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.75rem;
    align-items: end;
}

.table-wrap {
    margin-top: 1rem;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.data-table th,
.data-table td {
    padding: 0.65rem 0.55rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: var(--muted);
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lead-work {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.lead-work img,
.lead-work .thumb-empty {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
    flex: 0 0 auto;
    background: var(--line);
}

.lead-work-lg img,
.lead-work-lg .thumb-empty {
    width: 4.5rem;
    height: 4.5rem;
}

.inline-status select,
.status-form select,
.note-form textarea {
    width: 100%;
    max-width: 16rem;
}

.note-form textarea {
    max-width: none;
    margin-bottom: 0.6rem;
}

.status-form,
.note-form {
    display: grid;
    gap: 0.7rem;
    margin: 0.8rem 0 1.2rem;
}

.status-form .check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.split {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }
}

.facts {
    display: grid;
    gap: 0.55rem;
    margin: 0.8rem 0 1.2rem;
}

.facts div {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0.5rem;
}

.facts dt {
    margin: 0;
    color: var(--muted);
}

.facts dd {
    margin: 0;
}

.lead-message {
    white-space: pre-wrap;
    margin: 0.4rem 0 1.2rem;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.crumb {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
}

.crumb a {
    color: var(--muted);
    text-decoration: none;
}

.feed a {
    color: inherit;
    text-decoration: none;
    display: grid;
    gap: 0.15rem;
}

.export-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.export-item .quiet {
    margin: 0;
}

.export-block {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border: 1px solid #8a3b2b;
    background: #f8efe9;
    color: #6e2c20;
}

.print-export {
    display: grid;
    gap: 1.1rem;
    max-width: 40rem;
    margin-top: 1rem;
}

.print-export fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.print-export legend {
    margin-bottom: 0.4rem;
}

.print-export input[type="text"],
.print-export select {
    width: 100%;
    max-width: 18rem;
}

.tag-picker {
    max-height: 16rem;
    overflow: auto;
    border: 1px solid var(--line);
    padding: 0.35rem 0.7rem;
}

