:root {
    --ink: #24180f;
    --muted: #6b5848;
    --burgundy: #7b2d26;
    --burgundy-deep: #3d1f18;
    --gold: #e0b429;
    --gold-deep: #b88914;
    --cream: #f3e7d4;
    --paper: #fffaf3;
    --linen: #f7f0e4;
    --teal: #1f6f68;
    --oak: #c0783a;
    --stone: #8c7b6b;
    --hairline: rgba(125, 45, 38, 0.14);
    --shadow: 0 18px 40px rgba(36, 24, 15, 0.12);
    --radius: 1.15rem;
}

html, body {
    margin: 0;
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(224, 180, 41, 0.12), transparent 50%),
        radial-gradient(900px 400px at 100% 0%, rgba(31, 111, 104, 0.08), transparent 45%),
        var(--cream);
    color: var(--ink);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    line-height: 1.55;
}

h1, h2, h3, h4, .brand-word {
    font-family: "Cormorant Garamond", Georgia, serif;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

a { color: var(--burgundy); }
a:hover { color: var(--burgundy-deep); }

img { max-width: 100%; }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background: var(--gold);
    color: var(--burgundy-deep);
    padding: .5rem .9rem;
    border-radius: 999px;
    z-index: 50;
    font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1.4rem;
    background:
        linear-gradient(90deg, #2a1510 0%, #7b2d26 46%, #b88914 100%);
    color: #fff8e8;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 10px 28px rgba(36, 24, 15, .28);
    border-bottom: 3px solid var(--gold);
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #fff8e8;
    text-decoration: none;
    line-height: 1.05;
}
.brand img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(224, 180, 41, .7);
    background: #1b100c;
}
.brand small {
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    font-size: .64rem;
    font-weight: 800;
    display: block;
}
.brand .brand-word { font-size: 1.55rem; font-weight: 700; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
    display: none;
    background: rgba(255, 248, 232, .12);
    color: #fff8e8;
    border: 1px solid rgba(255, 248, 232, .28);
    border-radius: 999px;
    padding: .45rem .9rem;
    font-weight: 800;
    cursor: pointer;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .55rem;
    align-items: center;
}
.nav a, .nav button {
    color: #fff8e8;
    text-decoration: none;
    background: none;
    border: 0;
    font-weight: 700;
    padding: .38rem .7rem;
    border-radius: 999px;
    font-size: .95rem;
}
.nav a.active, .nav a:hover, .nav button:hover {
    background: rgba(255, 248, 232, .16);
}
.nav .cta {
    background: var(--gold) !important;
    color: #3d1f18 !important;
}
.nav-cart { position: relative; }
.nav-cart .count {
    display: inline-flex;
    min-width: 1.2rem;
    height: 1.2rem;
    align-items: center;
    justify-content: center;
    margin-left: .25rem;
    border-radius: 999px;
    background: var(--gold);
    color: #3d1f18;
    font-size: .72rem;
    font-weight: 800;
    padding: 0 .28rem;
}

.hero {
    position: relative;
    min-height: min(86vh, 760px);
    display: grid;
    place-items: end start;
    color: #fff8e8;
    overflow: hidden;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(24, 14, 10, .62) 0%, rgba(24, 14, 10, .18) 46%, transparent 70%),
        linear-gradient(180deg, transparent 20%, rgba(24, 14, 10, .78) 100%);
}
.hero-copy { position: relative; z-index: 1; padding: 3.4rem 1.6rem 3.2rem; max-width: 42rem; }
.kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(224, 180, 41, .16);
    border: 1px solid rgba(224, 180, 41, .45);
    color: var(--gold);
    border-radius: 999px;
    padding: .22rem .7rem;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hero-copy h1 {
    font-size: clamp(2.8rem, 7vw, 5.1rem);
    margin: .45rem 0 .55rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.hero-copy p { font-size: 1.12rem; max-width: 34rem; color: #f6ead6; }
.btn-row { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.15rem; }

.band { padding: 3.6rem 1.5rem; }
.inner { max-width: 1180px; margin: 0 auto; }
.band.paper { background: var(--paper); }
.band.ink {
    background: linear-gradient(160deg, #2a1510, #7b2d26 70%);
    color: #fff6e8;
}
.band.teal { background: #1b4f4b; color: #f4efe4; }
.band.linen {
    background:
        linear-gradient(180deg, rgba(255, 250, 243, .4), rgba(243, 231, 212, .9)),
        var(--linen);
}

.lede { color: var(--muted); font-size: 1.08rem; max-width: 42rem; }
.section-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); }
.section-head a { font-weight: 800; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; margin-top: 1.6rem; }

.listing-card, .card, .tile, .panel, .stat {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--hairline);
}
.listing-card, .tile { text-decoration: none; color: inherit; display: block; transition: transform .2s ease, box-shadow .2s ease; }
.listing-card:hover, .tile:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(36, 24, 15, .16); color: inherit; }

.listing-photo, .tile-photo { position: relative; overflow: hidden; }
.listing-photo img, .card img, .tile-photo img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}
.listing-card:hover img, .tile:hover img { transform: scale(1.05); }
.listing-body, .card .body, .panel, .stat { padding: 1.05rem 1.15rem 1.25rem; }
.listing-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .35rem; }
.listing-card h3, .card h3 { margin: .15rem 0 .35rem; font-size: 1.45rem; }
.listing-blurb {
    color: var(--muted);
    font-size: .94rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.listing-foot {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: .7rem;
    gap: .5rem;
}
.listing-cta { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--burgundy); }

.listing-card.place-card { cursor: default; }

.price { color: var(--burgundy); font-weight: 800; font-size: 1.18rem; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.tag {
    display: inline-block;
    background: #f3e0c2;
    color: #7b2d26;
    border-radius: 999px;
    padding: .12rem .55rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.tag-quiet { background: #efe7da; color: #5c4638; }
.tag-gold { background: var(--gold); color: #3d1f18; }
.photo-chip {
    position: absolute;
    left: .7rem;
    bottom: .7rem;
    background: rgba(36, 24, 15, .78);
    color: #fff6e8;
    border-radius: 999px;
    padding: .18rem .55rem;
    font-size: .72rem;
    font-weight: 800;
}
.photo-chip.sample {
    top: .7rem;
    bottom: auto;
    background: #d4a017;
    color: #2a1712;
}

.tile { position: relative; min-height: 180px; }
.tile.wide { grid-column: span 7; }
.tile.narrow { grid-column: span 5; }
.tile.third { grid-column: span 4; }
.tile-photo img { height: 220px; }
.tile .caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.1rem 1.15rem;
    background: linear-gradient(transparent, rgba(24, 14, 10, .82));
    color: #fff8e8;
}
.tile .caption h3 { margin: 0; font-size: 1.7rem; }
.tile .caption p { margin: .2rem 0 0; color: #f0e2cc; font-size: .92rem; }

.btn, .btn-pop, .btn-gold, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 0;
    border-radius: 999px;
    padding: .78rem 1.25rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.1;
}
.btn-pop { background: var(--burgundy); color: white; }
.btn-pop:hover { background: #641f1a; color: white; }
.btn-gold { background: var(--gold); color: #3d1f18; }
.btn-gold:hover { background: #f0c64a; color: #3d1f18; }
.btn-ghost {
    background: transparent;
    color: inherit;
    box-shadow: inset 0 0 0 2px currentColor;
}
.btn-sm { padding: .45rem .85rem; font-size: .86rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip-row .btn { padding: .5rem .95rem; }

.page-hero {
    padding: 2.4rem 1.5rem 1.4rem;
    background:
        linear-gradient(120deg, #2a1510, #7b2d26 50%, #1f6f68);
    color: #fff8e8;
    border-bottom: 3px solid var(--gold);
}
.page-hero h1 { margin: .2rem 0; font-size: clamp(2.1rem, 4vw, 3.4rem); }
.page-hero p { margin: .3rem 0 0; color: #f4e6d0; max-width: 40rem; }

.flash {
    background: #fff1c2;
    border-left: 6px solid var(--gold);
    padding: .85rem 1rem;
    border-radius: .55rem;
    margin: 1rem 0;
}
.flash.ok { background: #e7f5ef; border-left-color: var(--teal); }
.flash.warn { background: #fde8d8; border-left-color: var(--oak); }

.panel { padding: 1.15rem 1.2rem 1.3rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1.2rem 0 1.8rem; }
.stat h3 { margin: 0; font-size: 2rem; }
.stat p { margin: .2rem 0 0; color: var(--muted); }

.piece-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 1.7rem;
    align-items: start;
}
.piece-photo {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--hairline);
    background: #1b100c;
}
.piece-photo img { width: 100%; max-height: 640px; object-fit: cover; display: block; }
.buy-card { position: sticky; top: 5.5rem; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1rem 0 1.2rem; }
.spec { background: var(--linen); border-radius: .8rem; padding: .7rem .8rem; }
.spec span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spec strong { font-size: .98rem; }

.line-row {
    display: grid;
    grid-template-columns: 96px 1fr auto auto;
    gap: 1rem;
    align-items: center;
}
.thumb {
    width: 96px;
    height: 76px;
    object-fit: cover;
    border-radius: .7rem;
    background: #efe7da;
}
.search {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin: 0 0 1.1rem;
}
.search input {
    flex: 1;
    min-width: 220px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 1.2rem;
}
.form-control, .form-select, textarea.form-control, select.form-control {
    border-radius: .75rem;
    border: 1px solid #e4d3bc;
    padding: .75rem .9rem;
    background: #fffdf8;
    color: var(--ink);
}
.form-control:focus, .form-select:focus, textarea.form-control:focus {
    border-color: var(--gold-deep);
    box-shadow: 0 0 0 3px rgba(224, 180, 41, .25);
    outline: none;
}
label.field { display: block; font-weight: 800; font-size: .82rem; margin: 0 0 .35rem; }
.preview-frame {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 220px;
    background:
        repeating-conic-gradient(#efe7da 0% 25%, #fffaf3 0% 50%) 50% / 22px 22px;
    display: grid;
    place-items: center;
    border: 1px dashed #d8c4a8;
}
.preview-frame img { width: 100%; height: 280px; object-fit: cover; display: block; }
.drop-note { padding: 1.2rem; color: var(--muted); text-align: center; }

.admin-list { display: grid; gap: .8rem; }
.admin-row {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 1rem;
    align-items: center;
}
.tabs { display: flex; gap: .4rem; margin-bottom: 1.1rem; }

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    min-height: calc(100vh - 210px);
}
.auth-art { position: relative; overflow: hidden; min-height: 320px; }
.auth-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(24,14,10,.55)); }
.auth-copy { position: relative; z-index: 1; color: #fff8e8; padding: 2rem; display: flex; flex-direction: column; justify-content: end; height: 100%; }
.auth-form { padding: 2.4rem 1.6rem; }
.auth-form h1 { font-size: 2.6rem; margin-bottom: .3rem; }
.auth-card { max-width: 440px; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem; }
.how article { padding: 1.2rem 1.2rem 1.3rem; }
.how h3 { margin: .2rem 0 .4rem; font-size: 1.5rem; }

.footer {
    background: #1b100c;
    color: #efe3d2;
    padding: 2.4rem 1.5rem 1.6rem;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1.5rem;
}
.footer a { color: var(--gold); }
.footer .tiny { color: #cbb8a2; font-size: .88rem; }
.mark-mini { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }

.empty {
    text-align: center;
    padding: 2.4rem 1rem;
    color: var(--muted);
}

@media (max-width: 980px) {
    .tile.wide, .tile.narrow, .tile.third { grid-column: span 12; }
    .form-grid, .auth-shell, .piece-layout, .footer-grid, .how { grid-template-columns: 1fr; }
    .buy-card { position: static; }
    .line-row { grid-template-columns: 72px 1fr; }
    .line-row .price, .line-row .btn { grid-column: 2; }
    .admin-row { grid-template-columns: 72px 1fr; }
}

@media (max-width: 860px) {
    .nav-burger { display: inline-flex; margin-left: auto; }
    .topbar { flex-wrap: wrap; }
    .nav { display: none; width: 100%; }
    .nav-toggle:checked ~ .nav { display: flex; }
    .hero { min-height: 62vh; }
    .brand img { width: 38px; height: 38px; }
}

#blazor-error-ui {
    background: #fff1c2;
    bottom: 0;
    display: none;
    left: 0;
    padding: .6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

@media (prefers-reduced-motion: reduce) {
    .listing-card, .tile, .listing-photo img, .tile-photo img { transition: none; }
}

.charge-notice-bar {
    background: #5c2b0e;
    color: #fff4d8;
    font-size: .9rem;
    letter-spacing: .03em;
    padding: .55rem 1.4rem;
    display: flex;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
    text-align: center;
}
.charge-notice-bar strong { color: #ffd27a; }
/* ---- sa-v1.1.0: staff inventory, editor, quick add, orders, policies ---- */
.page-hero-tight { padding-top: 2.2rem; padding-bottom: 1.6rem; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; border-bottom: 1px solid var(--hairline); padding-bottom: .6rem; }
.admin-tabs a { padding: .35rem .8rem; border-radius: 999px; color: var(--burgundy); text-decoration: none; font-weight: 600; }
.admin-tabs a.active { background: var(--burgundy); color: #fff; }
.twofa-banner a { font-weight: 700; margin-left: .35rem; }
.mono { white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.inv-filters { display: grid; grid-template-columns: minmax(14rem, 2fr) minmax(10rem, 1fr) minmax(9rem, 1fr) auto; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.inv-check { white-space: nowrap; font-size: .95rem; }
.inv-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); }
.inv-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.inv-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .65rem .6rem; border-bottom: 1px solid var(--hairline); background: var(--linen); }
.inv-table td { padding: .5rem .6rem; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.inv-table .num { text-align: right; white-space: nowrap; }
.inv-table tr.is-archived td { opacity: .6; }
.inv-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: .5rem; display: inline-flex; align-items: center; justify-content: center; }
.inv-thumb-empty { background: var(--linen); color: var(--muted); font-size: .65rem; text-align: center; }
.inv-actions { white-space: nowrap; }
.inv-actions .btn { margin: .1rem; }
.status-pill { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--linen); color: var(--muted); white-space: nowrap; }
.status-listed, .status-paid { background: #e7f5ef; color: var(--teal); }
.status-draft, .status-placed { background: #fff3cf; color: var(--gold-deep); }
.status-sold, .status-shipped, .status-pickedup { background: #e6eef9; color: #2b4f7a; }
.status-archived, .status-cancelled { background: #eee7e2; color: var(--stone); }
.status-packed { background: #f6e3d3; color: var(--oak); }
.photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; margin-top: .6rem; }
.photo-tile { margin: 0; border: 2px solid var(--hairline); border-radius: .7rem; overflow: hidden; background: #fff; }
.photo-tile.is-cover { border-color: var(--gold); }
.photo-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.photo-tile figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem; padding: .3rem; font-size: .8rem; }
.photo-moves { display: inline-flex; gap: .2rem; }
.photo-moves .btn { padding: .15rem .5rem; font-size: 1rem; line-height: 1.1; min-width: 2rem; font-family: system-ui, sans-serif; }
.editor-actions { position: sticky; bottom: .5rem; z-index: 2; }
.quick-add .qa-camera { display: block; border: 2px dashed var(--gold-deep); border-radius: var(--radius); padding: 1.1rem; text-align: center; margin: .8rem 0; font-weight: 700; color: var(--burgundy); cursor: pointer; background: #fff; }
.quick-add .qa-camera input { display: block; margin: 0 auto .5rem; max-width: 100%; }
.qa-thumbs { display: flex; gap: .4rem; overflow-x: auto; margin-bottom: .6rem; }
.qa-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: .5rem; }
.qa-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .5rem; }
.order-head { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.order-times { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); }
.order-carrier { width: auto; display: inline-block; }
.order-tracking { width: 14rem; display: inline-block; }
.policy h2 { font-size: 1.35rem; margin-top: 1.4rem; }
@media (max-width: 760px) {
    .inv-filters { grid-template-columns: 1fr 1fr; }
    .inv-filters input { grid-column: 1 / -1; }
}

/* ---- sa-v1.1.1 ---- */
/* Programmatic focus (FocusOnNavigate) stays for screen readers; hide the ring unless it came from the keyboard. */
h1:focus:not(:focus-visible), [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
/* Chrome treats focus() right after a page load as :focus-visible, so the H1 target (not interactive, tabindex=-1)
   still drew a ring. The H1 is only a screen-reader landing point; hide its ring in every case. */
h1[tabindex="-1"]:focus { outline: none; }

/* How it works: white cards on the dark band need dark text (AA: #24180f / #4a3a2d on white). */
.band.ink .panel, .band.ink .panel h3 { color: var(--ink); }
.band.ink .panel p { color: #4a3a2d; }

/* Stock photo credits */
.stock-photo { margin: 0; position: relative; }
.stock-photo img { width: 100%; display: block; border-radius: inherit; }
.piece-photo .stock-photo img { max-height: 640px; object-fit: cover; }
.stock-photo figcaption, .stock-credit {
    position: absolute; right: .5rem; bottom: .5rem; z-index: 2;
    background: rgba(20, 12, 8, .72); color: #fff8e8; font-size: .7rem; line-height: 1.2;
    padding: .18rem .45rem; border-radius: .4rem; letter-spacing: .01em; pointer-events: none;
}
.hero .stock-credit { bottom: .7rem; right: .8rem; }
.tile-photo .stock-credit { top: .5rem; bottom: auto; }
.auth-art .stock-credit { top: .6rem; bottom: auto; }
.place-hub-shot img { object-position: top center; }

/* Knife photos (Conner's own) */
.knife-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: 1rem; }
.knife-strip img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: .8rem; display: block; }

/* Editor: grid cells may shrink; inputs never overflow their card. */
.form-grid > * { min-width: 0; }
.field-row { flex-wrap: nowrap; }
.field-row > div { min-width: 0; }
.field-row .grow { flex: 1 1 0; }
.field-row .narrow { flex: 0 0 7.5rem; }
.field-row input, .field-row select { min-width: 0; width: 100%; }
.form-control::placeholder { color: #a8998a; opacity: 1; }
.req { color: var(--burgundy); font-weight: 800; }
.photo-strip .drop-note { grid-column: 1 / -1; text-align: left; padding: .9rem 1rem; border: 1px dashed #d8c4a8; border-radius: .7rem; }
.photo-required { color: var(--burgundy); font-weight: 700; }
label.is-disabled { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Archived editor: read-only details */
.archived-note { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ro-list { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: .35rem 1rem; margin: 0 0 .8rem; }
.ro-list dt { font-weight: 800; font-size: .82rem; color: var(--muted); }
.ro-list dd { margin: 0; overflow-wrap: anywhere; }
.ro-h { font-size: 1.1rem; margin: .8rem 0 .3rem; }
.ro-text { white-space: pre-line; }
.tech-details summary { cursor: pointer; font-weight: 800; }
.tech-details[open] summary { margin-bottom: .7rem; }

/* Inventory: archived rows keep full contrast; only the thumbnail fades. */
.inv-table tr.is-archived td { opacity: 1; }
.is-archived .inv-thumb { opacity: .45; filter: grayscale(.7); }

/* Inventory cards (phones) */
.inv-cards { display: none; list-style: none; margin: 0; padding: 0; }
.inv-card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: .8rem .9rem; margin-bottom: .7rem; box-shadow: 0 6px 16px rgba(36, 24, 15, .06); }
.inv-card-head { display: grid; grid-template-columns: 56px 1fr; gap: .7rem; align-items: center; }
.inv-card .inv-thumb { width: 56px; height: 56px; }
.inv-card-title { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; }
.inv-card-title strong { overflow-wrap: anywhere; }
.inv-card-meta { color: var(--muted); font-size: .92rem; margin-top: .35rem; overflow-wrap: anywhere; }
.inv-card-meta strong { color: var(--ink); }
.inv-card-actions { margin-top: .6rem; }
.btn-tap { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .5rem 1.2rem; }
.inv-card-more { margin-top: .5rem; }
.inv-card-more summary { cursor: pointer; font-weight: 700; color: var(--burgundy); min-height: 44px; display: flex; align-items: center; }
@media (max-width: 639.98px) {
    .inv-table-wrap { display: none; }
    .inv-cards { display: block; }
}

/* Quick add: the whole dashed box is the tap target. */
.quick-add .qa-camera { position: relative; display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 1rem; }
.quick-add .qa-camera input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; max-width: none; }
.quick-add .qa-camera:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.qa-camera-face { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.05rem; }
.qa-camera-icon { flex: none; }

/* ---- sa-v1.1.2 ---- */
/* Archived pill: darker so it reads at a glance (white on #5a4a40 is about 9:1). */
.status-archived { background: #5a4a40; color: #fff; }
/* Editor photo picker shares Quick add's full-box tap target. */
.qa-camera { position: relative; display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 1rem; border: 2px dashed var(--gold-deep); border-radius: var(--radius); text-align: center; margin: .6rem 0; font-weight: 700; color: var(--burgundy); cursor: pointer; background: #fff; }
.qa-camera input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; max-width: none; }
.qa-camera:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
/* Cover arrows and remove: 44px square tap targets. */
.btn-tap-sq { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 .4rem; font-size: 1.15rem; }
.photo-moves .btn.btn-tap-sq { min-width: 44px; min-height: 44px; padding: 0 .4rem; }
.photo-tile figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.inv-card-more .btn-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.photo-strip { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.place-hub-shot img { object-position: left center; }

/* ---- sa-v1.1.3 ---- */
/* Cover ←, →, × : a fixed 44x44 box that can't shrink or pick up other button padding. */
.photo-moves { display: inline-flex; flex-wrap: nowrap; gap: .3rem; }
.photo-tile figcaption .photo-moves .btn.btn-tap-sq,
.btn.btn-tap-sq { box-sizing: border-box; width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex: 0 0 44px; padding: 0; line-height: 1; font-size: 1.2rem; }
/* "no photo" placeholder: dark text (about 10:1 on linen) and never faded with archived rows. */
.inv-thumb-empty { color: #4a3b32; font-weight: 700; font-size: .7rem; line-height: 1.1; border: 1px dashed #b9a48c; }
.is-archived .inv-thumb.inv-thumb-empty { opacity: 1; filter: none; }
