:root {
    color-scheme: light;
    --bg: var(--label-bg, #f4f5f7);
    --surface: var(--label-surface, #fff);
    --text: var(--label-text, #1c1c1c);
    --muted: var(--label-muted, #5c6570);
    --accent: var(--label-accent, #c8102e);
    --border: var(--label-border, #e2e5ea);
    --radius: var(--label-radius, 10px);
    --font: var(--label-font, system-ui, sans-serif);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: var(--label-dark-bg, #121417);
    --surface: var(--label-dark-surface, #1c2128);
    --text: var(--label-dark-text, #f2f4f7);
    --muted: var(--label-dark-muted, #b7c0cc);
    --accent: var(--label-dark-accent, #ff5a6a);
    --border: var(--label-dark-border, #2d333b);
}

@media (prefers-color-scheme: dark) {
    [data-theme="system"] {
        color-scheme: dark;
        --bg: var(--label-dark-bg, #121417);
        --surface: var(--label-dark-surface, #1c2128);
        --text: var(--label-dark-text, #f2f4f7);
        --muted: var(--label-dark-muted, #b7c0cc);
        --accent: var(--label-dark-accent, #ff5a6a);
        --border: var(--label-dark-border, #2d333b);
    }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.45;
}
img { max-width: 100%; }
a { color: var(--accent); }
.skip {
    position: absolute;
    left: 8px;
    top: -40px;
    background: var(--surface);
    padding: 8px;
}
.skip:focus { top: 8px; }

.wrap { width: min(1120px, calc(100% - 24px)); margin: 0 auto; }
.site-header { padding: 0 0 8px; }
.header-grid { display: grid; gap: 12px; }
.logo { font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.logo img { height: 40px; width: auto; }
.search { display: flex; gap: 8px; }
.search input:not([type="checkbox"]), .field input:not([type="checkbox"]), .field textarea, .field select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}
.banner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
}
.toolbar, .socials, .footer-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.button, button, .toolbar a {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 12px;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.button-accent, .cta {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
    display: inline-block;
    border-radius: 999px;
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 700;
}
.cta { margin: 16px 0; }
.deal-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.deal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    min-width: 0;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    text-decoration: none;
}
.deal-card[data-urgency="calm"] { --urgency-color: #1f9d55; }
.deal-card[data-urgency="draining"] { --urgency-color: #e08a00; }
.deal-card[data-urgency="urgent"] { --urgency-color: #e11d48; }
.deal-card[data-urgency="gone"] { --urgency-color: transparent; }
.urgency-rail {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    background: color-mix(in srgb, var(--text) 10%, transparent);
    pointer-events: none;
}
.urgency-rail::after {
    content: "";
    display: block;
    height: 100%;
    width: calc(var(--urgency, 0) * 100%);
    background: var(--urgency-color);
    box-shadow: 0 0 16px color-mix(in srgb, var(--urgency-color) 75%, transparent);
}
.deal-card[data-urgency="urgent"] .urgency-rail::after {
    animation: urgency-blink 1.05s ease-in-out infinite;
}
@keyframes urgency-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.18; }
}
@media (prefers-reduced-motion: reduce) {
    .deal-card[data-urgency="urgent"] .urgency-rail::after { animation: none; }
}
.urgency-note {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.deal-card:hover { border-color: var(--accent); box-shadow: 0 10px 28px rgb(20 24 32 / 10%); }
.deal-card:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}
.shop-line { display: flex; align-items: center; gap: 8px; min-height: 28px; font-weight: 700; }
.shop-line img { width: 100px; height: 20px; object-fit: contain; }
.deal-image { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 6px; }
.deal-card a { color: inherit; text-decoration: none; }
.deal-card h2 { margin: 0; }
.deal-place { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; color: var(--muted); font-size: 0.9rem; }
.deal-summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}
.brand-link { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-weight: 650; }
.brand-link img { width: 72px; height: 20px; object-fit: contain; background: #fff; border-radius: 4px; }
.admin .brand-logo-preview { width: 200px; height: 48px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.category-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin: 0;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
}
.deal-card a.category-label { color: var(--accent); }
.category-label svg,
.category-filter svg { width: 14px; height: 14px; flex: none; }
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: -8px 0 28px;
}
.category-filter > span { color: var(--muted); }
.record-mark svg { width: 20px; height: 20px; }
.letter-nav { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 12px 0 18px; }
.letter-nav a { color: var(--muted); font-weight: 700; text-decoration: none; }
.letter-nav a.is-active { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.search.brand-tools { flex-wrap: wrap; align-items: center; margin: 12px 0 4px; }
.search.brand-tools input,
.search.brand-tools select { width: auto; }
.search.brand-tools input[name="q"] { flex: 1 1 240px; min-width: 180px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 20px 0 8px; }
.pager a,
.pager .is-active,
.pager .pager-edge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}
.pager a.is-active,
.pager .is-active { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.pager .is-disabled { color: var(--muted); }
.pager .pager-gap { color: var(--muted); }
.admin .pager a,
.admin .pager .is-active,
.admin .pager .pager-edge { border-color: #d7dde5; background: #fff; color: #1c2430; }
.admin .pager a.is-active,
.admin .pager .is-active { border-color: #c8102e; color: #c8102e; }
.admin .pager .is-disabled { color: #5c6570; }
.admin .pager .pager-gap { color: #5c6570; background: transparent; border-color: transparent; min-width: 0; padding: 0; }
.letter-head { margin: 28px 0 12px; font-size: 1.2rem; }
.deal-title {
    margin: 0;
    min-height: 3.6em;
    line-height: 1.2em;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.price-row { display: flex; gap: 8px; align-items: baseline; }
.price { font-size: 1.35rem; font-weight: 800; color: var(--accent); }
.compare { color: var(--muted); text-decoration: line-through; }
.shipping, .deal-time, .muted { color: var(--muted); margin: 0; }
.deal-time { display: flex; gap: 6px; align-items: center; }
.clock { width: 16px; height: 16px; flex: none; }
.site-footer { padding: 24px 0 40px; }
.shops { display: grid; gap: 8px; }
.shop-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    color: var(--text);
    text-decoration: none;
}
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.admin-nav a { color: var(--text); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.error { color: #9f1239; }

@media (min-width: 640px) {
    .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 800px) {
    .header-grid { display: grid; grid-template-columns: auto minmax(180px, 420px) auto; align-items: center; }
}

.topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-row, .nav-row { display: flex; gap: 12px; align-items: center; }
.topbar-row { padding: 14px 0; flex-wrap: wrap; }
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.wordmark-logo { display: block; height: 44px; width: auto; max-width: 220px; object-fit: contain; }
.wordmark-name { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1; }
.mark-b { color: var(--accent); }
.mark, .mini-mark {
    display: inline-grid;
    place-items: center;
    flex: none;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
}
.mark { width: 44px; height: 44px; border-radius: 14px; font-size: 1.25rem; }
.mini-mark { width: 36px; height: 36px; border-radius: 10px; }
.header-socials { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.header-socials a, .chip {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--text);
    text-decoration: none;
    background: var(--surface);
    font-size: 0.85rem;
}
.main-nav { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-bottom: 1px solid var(--border); }
.nav-row { overflow-x: auto; gap: 0; }
.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    padding: 12px 14px;
    white-space: nowrap;
}
.main-nav a.is-active { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.banner { margin-top: 12px; }
.section-head h1 { margin: 8px 0 4px; }
.section-head p { margin: 0 0 8px; }
.toolbar a.is-active { border-color: var(--accent); color: var(--accent); }
.deal-card { box-shadow: 0 8px 24px rgb(20 24 32 / 6%); }
.deal-go {
    margin-top: auto;
    align-self: flex-start;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.92rem;
}
.coupon {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    border: 1px dashed var(--accent);
    border-radius: 8px;
    padding: 6px 8px;
    width: fit-content;
}
.coupon span { color: var(--muted); font-size: 0.8rem; }
.stock { margin: 0; font-size: 0.82rem; font-weight: 700; line-height: 1.2; color: #1f7a32; }
.stock.is-out { color: #9f1239; }
.stock.is-limited { color: #9a5b00; }
.shop-hero { display: flex; gap: 16px; align-items: center; }
.shop-logo { width: 120px; height: 40px; object-fit: contain; background: #fff; border-radius: 8px; }
.specs { display: grid; gap: 10px; margin: 12px 0 0; }
.specs div { display: grid; gap: 4px; }
.specs dt { color: var(--muted); font-size: 0.85rem; }
.specs dd { margin: 0; }
.shops[data-view="list"] { grid-template-columns: 1fr; }
.shop-card { display: flex; flex-direction: column; gap: 6px; min-height: 120px; }

.admin { background: #e7ebf0; color: #1c2430; min-height: 100vh; }
.admin-bar { background: #161b22; color: #fff; position: sticky; top: 0; z-index: 2; }
.admin-bar-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 12px 0; }
.admin-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.admin-bar .admin-nav { display: flex; flex: 1; flex-wrap: wrap; gap: 4px; align-items: center; margin: 0; }
.account-menu { position: relative; margin-left: auto; }
.account-menu summary {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    cursor: pointer;
    color: #fff;
    padding: 4px 8px 4px 4px;
    border-radius: 999px;
}
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover { background: rgb(255 255 255 / 8%); }
.account-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 5;
    min-width: 230px;
    display: grid;
    gap: 2px;
    padding: 8px;
    background: #fff;
    color: #1c2430;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgb(22 27 34 / 18%);
    max-height: calc(100vh - 84px);
    overflow: auto;
}
.account-menu-panel a,
.account-menu-panel button {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    color: #1c2430;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}
.account-menu-panel a:hover,
.account-menu-panel button:hover { background: #f4f5f7; }
.account-menu-panel p {
    margin: 8px 10px 2px;
    padding-top: 8px;
    border-top: 1px solid #e2e5ea;
    color: #5c6570;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.account-menu-panel form { margin: 0; }
.avatar {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #2d333b;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    object-fit: cover;
    flex: none;
}
.account-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.account-head .avatar { width: 64px; height: 64px; font-size: 1.4rem; }
.admin-bar .admin-nav a, .admin-bar .admin-nav button {
    color: #d7dde5;
    background: transparent;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}
.admin-bar .admin-nav a:hover, .admin-bar .admin-nav button:hover { background: rgb(255 255 255 / 8%); color: #fff; }
.admin-main { padding: 28px 0 48px; }
.admin-main h1 { margin: 0 0 16px; }
.admin .panel { box-shadow: 0 8px 24px rgb(22 27 34 / 6%); }
.admin .deal-grid .panel strong { display: block; font-size: 1.75rem; line-height: 1.1; }
.admin-auth {
    min-height: 100vh;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 18px;
    padding: 32px 16px;
    background:
        radial-gradient(900px 420px at 50% -10%, rgb(200 16 46 / 18%), transparent 60%),
        #e7ebf0;
}
.admin-card {
    width: min(420px, 100%);
    background: #fff;
    border: 1px solid #e2e5ea;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgb(22 27 34 / 12%);
    padding: 28px;
}
.admin-card h1 { margin: 0 0 16px; }
.admin-card .button-accent { width: 100%; border: 0; cursor: pointer; }
.admin-card .qr { display: grid; justify-content: center; margin: 4px 0 16px; }
.admin-card .qr svg { width: 220px; height: 220px; background: #fff; border-radius: 12px; }
.admin-card code { display: block; margin-top: 6px; word-break: break-all; font-size: 0.85rem; }
@media (min-width: 960px) {
    .deal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .deal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.storefront { line-height: 1.55; }
.storefront .wrap { width: min(1720px, calc(100% - 64px)); }
.storefront .topbar-row { padding: 22px 0; }
.storefront .search button {
    border: 0;
    border-radius: 10px;
    background: var(--text);
    color: var(--bg);
    padding: 10px 16px;
}
.storefront .header-socials { gap: 2px; align-items: center; }
.storefront .header-socials a {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    padding: 0;
    color: var(--muted);
}
.storefront .header-socials a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.storefront .header-socials svg { width: 18px; height: 18px; display: block; }
.storefront .header-socials .yt-play { fill: var(--bg); }
.storefront .main-nav { background: transparent; }
.storefront .main-nav a {
    font-weight: 600;
    padding: 16px 20px 14px;
    color: var(--muted);
}
.storefront .main-nav a.is-active { color: var(--text); box-shadow: inset 0 -2px 0 var(--text); }
.storefront .banner {
    margin-top: 0;
    border: 0;
    background: transparent;
    padding: 22px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}
.storefront #inhoud { padding-top: 36px; }
.storefront .section-head { margin-bottom: 6px; }
.storefront .section-head h1 {
    margin: 0 0 4px;
    font-size: 2.2rem;
    font-weight: 650;
    letter-spacing: -0.04em;
}
.storefront .section-head p { margin: 0 0 6px; color: var(--muted); font-size: 1.05rem; }
.storefront .listing-head {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}
.storefront .listing-head .section-head { margin: 0; }
.storefront .listing-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}
.storefront .listing-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px 18px;
    width: 100%;
}
.storefront .listing-tools .toolbar,
.storefront .listing-tools .category-filter {
    gap: 6px;
    margin: 0;
    justify-content: flex-end;
}
.storefront .tool-label {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--text) 8%, var(--surface));
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}
.storefront .toolbar {
    gap: 22px;
    margin: 22px 0 32px;
    color: var(--muted);
}
.storefront .toolbar a,
.storefront .toolbar button,
.storefront .socials button {
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 2px 0;
    color: var(--muted);
}
.storefront .toolbar a.is-active {
    color: var(--text);
    border: 0;
    box-shadow: inset 0 -2px 0 var(--text);
}
.storefront .listing-tools .toolbar a {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.2;
    box-shadow: none;
}
.storefront .listing-tools .toolbar a.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: none;
}
.storefront .deal-grid { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.storefront .deal-card {
    gap: 8px;
    padding: 12px 14px 10px;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: visible;
    box-shadow: none;
    background: var(--surface);
}
.storefront .deal-card:has(.share-menu[open]) { position: relative; z-index: 4; }
.storefront .deal-card:hover {
    transform: none;
    border-color: color-mix(in srgb, var(--text) 22%, var(--border));
    box-shadow: 0 1px 4px rgb(22 27 34 / 8%);
}
.storefront .urgency-rail { display: none; }
.storefront .deal-shop {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 2px 8px;
    background: var(--surface);
    border-radius: 12px;
}
.storefront .deal-shop img { display: block; width: auto; max-width: 100%; height: 44px; object-fit: contain; }
.storefront .deal-shop span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}
.storefront .deal-media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
}
.storefront .deal-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    background: #fff;
    transform: none;
}
.storefront .shop-badge { display: none; }
.storefront .ship-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-width: calc(100% - 16px);
    border-radius: 6px;
    padding: 4px 5px;
    background: #3a9b45;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
}
.storefront .deal-card.is-expired .deal-image {
    object-fit: contain;
    object-position: center;
    transform: none;
}
.storefront .deal-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    padding: 2px 2px 0;
    line-height: 1.15;
}
.storefront .deal-card .shop-line,
.storefront .deal-card .category-label,
.storefront .deal-card .brand-link,
.storefront .deal-card .deal-place,
.storefront .deal-card .deal-summary { display: none; }
.storefront .shop-line { min-height: 0; font-weight: 500; color: var(--muted); }
.storefront .brand-link { color: var(--accent); }
.storefront .category-filter a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}
.storefront .category-filter a.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.storefront .shop-line img {
    width: auto;
    max-width: 120px;
    height: 18px;
    object-fit: contain;
}
.storefront .deal-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.1em;
    min-height: 2.2em;
    text-transform: uppercase;
    -webkit-line-clamp: 2;
}
.storefront .deal-card .price-row { justify-content: flex-end; gap: 6px; margin: 12px 0 0; }
.storefront .deal-card .price-row .stock { margin-right: auto; white-space: nowrap; }
.storefront .deal-clock { display: inline-grid; width: 14px; height: 14px; flex: none; color: var(--muted); }
.storefront .deal-clock svg { width: 14px; height: 14px; display: block; }
.storefront[data-card="compact"] .deal-card { padding: 8px; gap: 6px; }
.storefront[data-card="compact"] .deal-shop { padding: 0 4px; }
.storefront[data-card="compact"] .deal-shop img { height: 28px; }
.storefront[data-card="compact"] .deal-media { aspect-ratio: 5 / 4; border-radius: 12px; }
.storefront[data-card="compact"] .deal-body { flex-direction: row; align-items: flex-end; gap: 8px; padding: 0 2px; }
.storefront[data-card="compact"] .deal-body h2 { flex: 1 1 auto; min-width: 0; }
.storefront[data-card="compact"] .deal-title { min-height: 2.2em; font-size: 0.68rem; }
.storefront[data-card="compact"] .price-row { margin-top: 0; flex: none; }
.storefront[data-card="poster"] .deal-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 0 0 12px;
    gap: 0;
}
.storefront[data-card="poster"] .deal-media {
    grid-area: 1 / 1;
    margin: 12px 14px 0;
    border-radius: 18px;
}
.storefront[data-card="poster"] .deal-shop {
    grid-area: 1 / 1;
    align-self: start;
    justify-self: center;
    z-index: 2;
    width: auto;
    margin: 20px 28px 0;
    padding: 4px 10px;
    border-radius: 10px;
    background: var(--surface);
}
.storefront[data-card="poster"] .deal-time {
    grid-area: 1 / 1;
    align-self: end;
    justify-self: stretch;
    z-index: 2;
    width: auto;
    margin: 0 22px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
}
.storefront[data-card="poster"] .deal-body { padding: 12px 16px 0; }
.storefront[data-card="poster"] .price-row { margin-top: 14px; }
.storefront[data-card="poster"] .deal-title { font-size: 0.8rem; }
.storefront .price { font-size: 0.95rem; font-weight: 800; letter-spacing: 0; line-height: 1.1; }
.storefront .compare { font-size: 0.72rem; }
.storefront .coupon,
.storefront .shipping,
.storefront .stock { margin: 0; font-size: 0.68rem; line-height: 1.2; }
.storefront .deal-actions { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.storefront .deal-share { display: flex; gap: 4px; margin-left: auto; }
.storefront .deal-share a {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--text) 8%, var(--surface));
    color: var(--text);
}
.storefront .deal-share svg { width: 13px; height: 13px; display: block; }
.storefront .deal-time {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    width: auto;
    padding: 5px 8px 5px 8px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--text) 7%, var(--surface));
    color: var(--text);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: 0;
}
.storefront .deal-time-text { white-space: nowrap; flex: none; }
.storefront .share-menu { position: relative; order: 3; margin-left: auto; flex: none; }
.storefront .deal-time[data-ends-at] .share-menu { margin-left: 8px; }
.storefront .share-menu summary {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    list-style: none;
    cursor: pointer;
    border-radius: 4px;
    color: inherit;
}
.storefront .share-menu summary::-webkit-details-marker { display: none; }
.storefront .share-menu summary::marker { content: ""; }
.storefront .share-menu summary svg { width: 14px; height: 14px; display: block; }
.storefront .share-menu[open] summary { background: color-mix(in srgb, var(--text) 10%, transparent); }
.storefront .share-pop {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 5;
    display: grid;
    min-width: 148px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgb(22 27 34 / 14%);
}
.storefront .share-pop a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
}
.storefront .share-pop a:hover { background: color-mix(in srgb, var(--text) 6%, var(--surface)); }
.storefront .share-pop svg { width: 14px; height: 14px; display: block; }
.storefront .deal-time[data-ends-at]::after {
    content: "";
    order: 2;
    width: 34px;
    height: 8px;
    margin-left: auto;
    flex: none;
    background-image: radial-gradient(circle, var(--urgency-color, #c5cad3) 1.6px, transparent 1.8px);
    background-size: 6px 8px;
    background-repeat: repeat-x;
}
.storefront .deal-card[data-urgency="draining"] .deal-time {
    color: #9a5b00;
    background: color-mix(in srgb, #f6c56b 32%, var(--surface));
}
.storefront .deal-card[data-urgency="urgent"] .deal-time {
    color: #e11d48;
    background: color-mix(in srgb, #e11d48 14%, var(--surface));
}
[data-theme="dark"] .storefront .deal-card[data-urgency="draining"] .deal-time {
    color: #f6c56b;
}
@media (prefers-color-scheme: dark) {
    [data-theme="system"] .storefront .deal-card[data-urgency="draining"] .deal-time {
        color: #f6c56b;
    }
}
.storefront .clock { width: 14px; height: 14px; }
.storefront .deal-go {
    margin-top: 0;
    padding: 0;
    background: transparent;
    color: var(--text);
    border-radius: 0;
    font-size: 0.68rem;
    font-weight: 700;
}
.storefront .deal-go::after { content: " →"; }
.storefront .cta {
    border-radius: 14px;
    padding: 16px 22px;
    margin: 40px 0 8px;
    font-weight: 650;
}
.storefront .site-footer { padding: 56px 0 64px; }
.storefront .footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 18px;
}
.storefront .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
}
.storefront .footer-brand .wordmark-logo { height: 36px; }
.storefront .footer-copy { margin: 0; color: var(--muted); font-size: 0.84rem; font-weight: 650; }
.storefront .footer-disclosure {
    margin: 32px 0 0;
    max-width: 46rem;
    color: var(--muted);
}
.cookie-notice {
    position: fixed;
    z-index: 40;
    right: 16px;
    bottom: 16px;
    display: grid;
    gap: 18px;
    width: min(24rem, calc(100% - 32px));
    margin: 0;
    padding: 28px 28px 22px;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 18px 40px rgb(22 27 34 / 22%);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; line-height: 1.45; }
.cookie-notice a { color: #fff; }
.cookie-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.cookie-actions button {
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 650;
    padding: 8px 12px;
    cursor: pointer;
}
.cookie-actions .cookie-accept {
    background: #fff;
    color: #1c1c1c;
}
.storefront .socials,
.storefront .footer-links { gap: 14px 22px; }
.storefront .footer-links a { color: var(--muted); text-decoration: none; }
.storefront .socials a {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
}
.storefront .socials a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.storefront .socials svg { width: 18px; height: 18px; display: block; }
.storefront .socials .yt-play { fill: var(--bg); }
.storefront button.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    color: var(--text);
    background: var(--surface);
}
.storefront button.theme-toggle svg { width: 20px; height: 20px; }
.storefront button.theme-toggle [hidden] { display: none; }
.storefront .shop-card {
    gap: 10px;
    min-height: 168px;
    padding: 22px;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 12px 36px rgb(22 27 34 / 8%);
}
.storefront .shop-logo { width: auto; max-width: 200px; height: 48px; }
.storefront .catalog-search {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 18px 0 12px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}
.storefront .catalog-search input[name="q"] {
    flex: 1 1 220px;
    width: auto;
    min-width: 160px;
    border: 0;
    background: transparent;
}
.storefront .catalog-search select {
    appearance: none;
    width: auto;
    min-width: 148px;
    height: 45px;
    margin: 0;
    padding: 0 36px 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235c6570' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6.2 8 10.2l4.5-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    color: var(--text);
    font: inherit;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
}
.storefront .catalog-search select:hover {
    border-color: color-mix(in srgb, var(--text) 28%, var(--border));
}
[data-theme="dark"] .storefront .catalog-search select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23b7c0cc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6.2 8 10.2l4.5-4'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
    [data-theme="system"] .storefront .catalog-search select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23b7c0cc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6.2 8 10.2l4.5-4'/%3E%3C/svg%3E");
    }
}
.storefront .catalog-search .button { border-radius: 10px; }
.storefront .catalog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.storefront .segment {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
}
.storefront .segment a,
.storefront .segment button {
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 6px 14px;
    color: var(--muted);
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}
.storefront .segment a.is-active,
.storefront .segment button.is-active {
    background: var(--text);
    color: var(--bg);
}
.storefront .letter-nav { gap: 6px; margin: 4px 0 18px; }
.storefront .letter-nav a {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    text-decoration: none;
}
.storefront .letter-nav a.is-active {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
    text-decoration: none;
}
.storefront .catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.storefront .catalog-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 8px 24px rgb(22 27 34 / 5%);
}
.storefront .catalog-card:hover {
    border-color: color-mix(in srgb, var(--text) 22%, var(--border));
    box-shadow: 0 12px 28px rgb(22 27 34 / 8%);
}
.storefront .catalog-logo {
    display: grid;
    place-items: center;
    height: 84px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}
.storefront .catalog-logo img { display: block; width: auto; max-width: 100%; height: 44px; object-fit: contain; }
.storefront .catalog-copy { display: grid; gap: 2px; min-width: 0; }
.storefront .catalog-copy strong { font-size: 0.98rem; line-height: 1.3; }
.storefront .catalog-copy .muted {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.82rem;
    line-height: 1.35;
}
.storefront .catalog-tip {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    vertical-align: 1px;
}
.storefront .shops[data-view="list"] { grid-template-columns: 1fr; }
.storefront .shops[data-view="list"] .catalog-card { flex-direction: row; align-items: center; }
.storefront .shops[data-view="list"] .catalog-logo { width: 132px; height: 64px; flex: none; }
.storefront .shop-hero { align-items: flex-start; padding: 22px; border-radius: 20px; }
.storefront .shop-hero h1 { margin: 0 0 4px; }
.storefront .shop-layout { display: grid; gap: 16px; margin-top: 16px; }
.storefront .shop-copy { display: grid; gap: 16px; }
.storefront .shop-layout .panel { border-radius: 20px; }
.storefront .shop-layout h3 { margin: 18px 0 8px; font-size: 1rem; }
.storefront .chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.storefront .shop-shot { display: block; width: 100%; height: auto; border-radius: 12px; background: #fff; }
.storefront .rating-list { display: grid; gap: 10px; margin-top: 8px; }
.storefront .rating-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.storefront .stars { color: var(--accent); letter-spacing: 0.08em; }
.storefront .shop-socials { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.storefront .shop-socials a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 650; }
.storefront .shop-socials svg { width: 18px; height: 18px; }
@media (min-width: 640px) {
    .storefront .specs { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
    .storefront .shop-layout.has-shot { grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.7fr); align-items: start; }
}
@media (min-width: 960px) {
    .storefront .deal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .storefront .deal-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1500px) {
    .storefront .deal-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.admin .page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.admin .crumb { margin: 0 0 4px; color: #5c6570; }
.admin .crumb a { color: inherit; }
.deal-editor { display: grid; gap: 20px; align-items: start; }
.deal-preview img,
.deal-preview-empty {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    background: #f4f1ec;
}
.deal-preview-empty {
    display: grid;
    place-items: center;
    font-size: 3rem;
    font-weight: 700;
    color: #8b95a1;
}
.deal-preview-category {
    display: inline-flex;
    margin: 14px 0 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f4f6f8;
    font-size: 0.82rem;
    font-weight: 700;
}
.deal-preview-price { margin: 12px 0 4px; font-size: 1.45rem; font-weight: 750; letter-spacing: -0.03em; }
.deal-preview-price span { margin-right: 8px; color: #8b95a1; font-size: 1rem; font-weight: 600; text-decoration: line-through; }
.override + .override { margin-top: 8px; padding-top: 18px; border-top: 1px solid #e2e5ea; }
.override-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.override-head h2 { margin: 0; }
.override-head button,
.override .split button {
    border: 0;
    background: transparent;
    color: #5c6570;
    padding: 0;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.source-line { margin: 8px 0 12px; color: #5c6570; }
@media (min-width: 960px) {
    .deal-editor { grid-template-columns: 300px minmax(0, 1fr); }
    .deal-preview { position: sticky; top: 84px; }
}
.admin .panel > h2:first-child,
.admin section > h2 { margin: 22px 0 10px; font-size: 1.05rem; }
.admin .panel > h2:first-child { margin-top: 0; }
.site-hero { display: grid; gap: 18px; align-items: center; }
.site-mark { display: flex; flex-wrap: wrap; gap: 10px; }
.site-logo {
    display: block;
    height: 72px;
    width: min(280px, 100%);
    object-fit: contain;
    padding: 12px 16px;
    border-radius: 16px;
    background: repeating-conic-gradient(#e7ebf0 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}
.site-logo.is-dark { background: #161b22; }
.site-letter {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
}
.site-identity .pills { justify-content: flex-start; margin: 0 0 8px; }
.site-hosts,
.site-icons { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }
.site-hosts li { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 12px; background: #f4f6f8; }
.site-hosts small { color: #5c6570; }
.site-icons li { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.site-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; color: #fff; }
.site-icon svg { width: 18px; height: 18px; display: block; }
.site-icon .yt-play { fill: #fff; }
.site-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.site-stat strong { display: block; font-size: 1.8rem; letter-spacing: -0.04em; line-height: 1.1; }
.site-stat p { margin: 4px 0 0; color: #5c6570; }
.site-layout { display: grid; gap: 16px; align-items: start; }
.page-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.page-card {
    display: grid;
    gap: 6px;
    align-content: start;
    min-width: 0;
    padding: 12px;
    border: 1px solid #e2e5ea;
    border-radius: 14px;
    background: #f8f9fb;
}
.page-card strong { overflow-wrap: anywhere; }
.page-card code { color: #5c6570; font-size: 0.82rem; overflow-wrap: anywhere; }
.admin .pill.is-empty { background: #fff4df; color: #8a5a00; }
.theme-studio { display: grid; gap: 14px; }
.theme-stage {
    --bg: var(--p-bg);
    --surface: var(--p-surface);
    --text: var(--p-text);
    --muted: var(--p-muted);
    --accent: var(--p-accent);
    --line: var(--p-border);
    background: var(--bg);
    color: var(--text);
    font-family: var(--p-font, system-ui, sans-serif);
    border-radius: 18px;
    padding: 16px;
}
.theme-stage[data-mode="dark"] {
    --bg: var(--p-dark-bg);
    --surface: var(--p-dark-surface);
    --text: var(--p-dark-text);
    --muted: var(--p-dark-muted);
    --accent: var(--p-dark-accent);
    --line: var(--p-dark-border);
}
.theme-bar,
.theme-card { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--p-radius, 10px); }
.theme-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px 14px; }
.theme-bar img { height: 28px; width: auto; max-width: 160px; object-fit: contain; }
.theme-bar span { color: var(--muted); font-weight: 650; font-size: 0.9rem; }
.theme-card { max-width: 240px; overflow: hidden; }
.theme-photo {
    height: 110px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 72%, white), transparent 72%), var(--bg);
}
.theme-card-body { display: grid; gap: 6px; padding: 12px; }
.theme-card-body p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.theme-price { color: var(--text); font-weight: 750; }
.theme-price s { margin-right: 6px; color: var(--muted); font-weight: 600; }
.theme-cta { justify-self: start; background: var(--accent); color: #fff; border-radius: 999px; padding: 8px 12px; font-weight: 750; }
.theme-mode { display: flex; gap: 8px; }
.theme-mode button[aria-pressed="true"] { background: #161b22; color: #fff; border-color: #161b22; }
.theme-palettes { display: grid; gap: 14px; }
.theme-palettes fieldset { margin: 0; padding: 12px; border: 1px solid #e2e5ea; border-radius: 16px; }
.theme-palettes legend { padding: 0 6px; font-weight: 750; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
.swatch { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 650; }
.swatch input[type="color"] {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}
.swatch small { display: block; color: #5c6570; font-weight: 600; font-family: ui-monospace, SFMono-Regular, monospace; }
@media (min-width: 800px) {
    .site-hero { grid-template-columns: auto minmax(0, 1fr); }
    .site-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    .site-layout { grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr); }
    .site-colors { order: -1; position: sticky; top: 84px; }
}
.admin .page-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin .page-head .page-actions { margin-top: 0; }
.admin .page-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    line-height: 1;
}
.admin .page-head h1 { margin: 0; }
.admin .filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 8px; }
.admin .filters .field { margin: 0; flex: 1 1 180px; }
.admin .filters .button { margin-bottom: 0; }
.admin .records { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.admin .record {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgb(22 27 34 / 6%);
    color: inherit;
    text-decoration: none;
}
.admin .record-body { min-width: 0; }
.admin .record strong { display: block; font-size: 1.05rem; }
.admin .record .muted { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin .record-logo { width: 72px; height: 36px; object-fit: contain; background: #fff; }
.admin .record-shot { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; background: #f4f1ec; }
.admin .record-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: #c8102e;
    color: #fff;
    font-weight: 800;
}
.admin .record-mark svg { width: 22px; height: 22px; }
.icon-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}
.icon-picker legend { margin: 0 0 8px; font-weight: 650; }
.icon-choice {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin: 0;
    padding: 10px 6px 8px;
    border: 1px solid #e2e5ea;
    border-radius: 14px;
    background: #fff;
    color: #1c2430;
    font-size: 0.78rem;
    font-weight: 650;
    text-align: center;
    cursor: pointer;
}
.icon-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.icon-choice-face {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #e7eef6;
    color: #16324f;
}
.icon-choice-face svg { width: 22px; height: 22px; }
.icon-choice:has(input:checked) { border-color: #c8102e; background: #fff6f7; }
.icon-choice:has(input:checked) .icon-choice-face { background: #c8102e; color: #fff; }
.icon-choice:has(input:focus-visible) { outline: 2px solid #1c2430; outline-offset: 2px; }
.log-list { display: grid; gap: 10px; }
.log-entry header { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
.log-entry time { color: #5c6570; font-size: 0.85rem; }
.log-entry header strong { font-size: 1rem; }
.log-entry details { margin-top: 8px; }
.log-entry summary { cursor: pointer; font-weight: 650; }
.admin .page-actions { margin-top: 16px; }
.admin .pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.admin .pill { border-radius: 999px; padding: 4px 10px; background: #e7ebf0; color: #1c2430; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.admin .pill.is-live { background: #e5f6ea; color: #0b6e4f; }
.admin .pill.is-archived { background: #f3e8e8; color: #8a1f2b; }
.admin .empty { text-align: center; }
@media (max-width: 700px) {
    .admin .record { grid-template-columns: 56px minmax(0, 1fr); }
    .admin .record-logo { width: 56px; }
    .admin .pills { grid-column: 2; justify-content: flex-start; }
}
.admin .hint { color: #5c6775; margin: 0 0 12px; }
.admin .field .hint { margin: 0; font-size: 0.92rem; font-weight: 400; line-height: 1.45; }
.admin .field code { font-size: 0.88em; }
.admin pre.example {
    margin: 0;
    padding: 10px 12px;
    overflow: auto;
    border-radius: 8px;
    background: #f4f6f8;
    color: #1c2430;
    font-size: 0.8rem;
    line-height: 1.45;
    white-space: pre-wrap;
}
.admin .panel h2 { margin: 22px 0 10px; font-size: 1.05rem; }
.admin .mapper { display: grid; gap: 12px; margin: 4px 0 8px; }
.admin .mapper[hidden] { display: none; }
.admin .mapper-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.admin .mapper-bar p, .admin .mapper-item { margin: 0; color: #5c6570; }
.admin .mapper-board { display: grid; gap: 16px; }
.admin .mapper-fields, .admin .mapper-targets { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; max-height: 540px; overflow: auto; }
.admin .mapper-field, .admin .mapper-slot {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
}
.admin .mapper-field { border: 1px solid #e2e5ea; cursor: grab; }
.admin .mapper-field.is-used { opacity: 0.45; }
.admin .mapper-field.is-picked { border-color: #c8102e; }
.admin .mapper-field small, .admin .mapper-slot span { color: #5c6570; overflow-wrap: anywhere; }
.admin .mapper-slot { min-height: 72px; border: 1px dashed #c5cad3; background: #f7f8fa; }
.admin .mapper-slot.is-over, .admin .mapper-slot.is-filled { border-style: solid; border-color: #c8102e; background: #fff; }
.admin .mapper-slot.is-filled span { color: #1c1c1c; font-weight: 650; }
.admin .mapper-clear { justify-self: start; }
.admin .mapper-json textarea { margin-top: 8px; }
@media (min-width: 900px) {
    .admin .mapper-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.admin .channel-switch { display: none; margin: 8px 0 16px; padding: 12px; border: 1px solid #e2e5ea; border-radius: 12px; background: #f7f8fa; }
.admin form:has(select[name="type"] option[value="daily"]:checked) .channel-switch { display: grid; gap: 12px; }
.admin .channel-switch legend { padding: 0 4px; font-weight: 750; }
.admin .switch-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.admin .switch-presets button.is-selected { border-color: #c8102e; background: #fff6f7; }
.admin .schedule { display: grid; gap: 12px; margin: 8px 0 16px; }
.admin .schedule-summary { margin: 0; font-weight: 650; }
.admin .schedule-day {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    gap: 3px;
    align-items: end;
    height: 72px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.admin .schedule-day li { display: grid; gap: 4px; align-items: end; min-width: 0; }
.admin .schedule-day i { display: block; height: 8px; border-radius: 4px 4px 0 0; background: #d5dbe3; }
.admin .schedule-day .is-quiet i { height: 22px; background: #1c2430; }
.admin .schedule-day .is-busy i { height: 36px; background: #c8102e; }
.admin .schedule-day .is-hot i { height: 48px; background: #c8102e; }
.admin .schedule-day small { display: none; color: #5c6570; font-size: 0.62rem; text-align: center; }
.admin .schedule-day li:nth-child(6n + 1) small { display: block; }
.admin .schedule-rule {
    margin: 0;
    padding: 12px;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    background: #f7f8fa;
}
.admin .schedule-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.admin .schedule-fields .field { flex: 1 1 160px; max-width: 240px; margin: 0; }
.admin .schedule-rule > .schedule-fields > [data-kind] { display: contents; }
.admin .schedule-rule > .schedule-fields > button { margin-bottom: 2px; }
.admin .schedule-rule:has(option[value="window"]:checked) [data-kind="hours"],
.admin .schedule-rule:has(option[value="hours"]:checked) [data-kind="window"] { display: none; }
.admin .schedule-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) {
    .admin .schedule-day small { display: block; }
}
.admin .split { display: grid; gap: 0 16px; }
.admin .checks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 12px; }
.admin .checks label { display: inline-flex; align-items: center; gap: 6px; }
.admin label.check {
    display: grid;
    grid-template-columns: 1.05rem minmax(0, 1fr);
    column-gap: 10px;
    align-items: start;
    margin: 0 0 14px;
    font-weight: 700;
}
.admin label.check input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0.2rem 0 0;
    accent-color: #1c2430;
}
.admin label.check .hint { display: block; margin-top: 2px; font-weight: 400; }
.admin .logo-preview {
    display: block;
    height: 56px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    background: repeating-conic-gradient(#e7ebf0 0% 25%, #fff 0% 50%) 50% / 16px 16px;
    border-radius: 8px;
}
.admin .logo-preview[hidden] { display: none; }
.admin .logo-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgb(22 27 34 / 55%);
}
.admin .logo-modal[hidden] { display: none; }
.admin .logo-dialog {
    width: min(560px, 100%);
    background: #fff;
    color: #1c2430;
    border-radius: 16px;
    padding: 20px;
}
.admin .logo-dialog h2 { margin: 0 0 8px; }
.admin .logo-frame {
    overflow: hidden;
    border-radius: 12px;
    background: repeating-conic-gradient(#e7ebf0 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}
.admin .logo-frame canvas { display: block; width: 100%; height: auto; cursor: grab; touch-action: none; }
.admin .logo-zoom { display: grid; gap: 6px; margin: 12px 0; font-weight: 700; }
.admin .logo-zoom input { width: 100%; }
.admin .logo-actions { display: flex; justify-content: flex-end; gap: 8px; }
.admin .ratings { display: grid; gap: 0 16px; }
.admin .error { margin: 0 0 16px; }
@media (min-width: 860px) {
    .admin .split, .admin .ratings { grid-template-columns: 1fr 1fr; }
}
.admin .sections { border: 1px solid #e2e5ea; border-radius: 14px; padding: 12px 14px 0; margin: 0 0 16px; }
.admin .sections legend { padding: 0 6px; font-weight: 750; }
.admin .subscriber-table { width: 100%; border-collapse: collapse; }
.admin .subscriber-table th, .admin .subscriber-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e2e5ea; vertical-align: middle; }
.admin .subscriber-table form { margin: 0; }
.storefront .topbar-row { display: grid; grid-template-columns: auto minmax(220px, 1fr) auto; gap: 16px 28px; align-items: center; }
.storefront .header-signup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 8px 8px 8px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg);
    color: var(--text);
    text-align: left;
    font-weight: 650;
    box-shadow: 0 8px 24px rgb(22 27 34 / 6%);
}
.storefront .header-signup strong, .storefront .header-signup small { display: block; }
.storefront .header-signup small { color: var(--muted); font-weight: 500; font-size: 0.86rem; }
.storefront .header-signup-go, .storefront .signup-bar-go {
    flex: none;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    font-weight: 750;
}
.storefront .signup-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 36px 0 8px;
    padding: 18px 18px 18px 22px;
    border: 0;
    border-radius: 18px;
    background: var(--text);
    color: var(--bg);
    text-align: left;
}
.storefront .signup-bar strong { display: block; font-size: 1.15rem; }
.storefront .signup-bar-go { background: var(--accent); }
.home-hero { display: grid; gap: 16px; margin: 0 0 28px; }
.hero-banner, .hero-carousel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
}
.hero-banner {
    gap: 12px;
    padding: 28px;
    background:
        radial-gradient(520px 240px at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
        var(--surface);
}
.hero-kicker { margin: 0; color: var(--accent); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-banner h2, .hero-slide h3, .signup-dialog h2 { margin: 0; letter-spacing: -0.04em; }
.hero-banner h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.05; }
.hero-banner p { margin: 0; max-width: 38rem; }
.hero-shops { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.hero-shops li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg);
    font-weight: 700;
}
.hero-shops li.is-logo { padding: 8px 14px; }
.hero-shops img { display: block; height: 26px; width: auto; max-width: 132px; object-fit: contain; }
.hero-banner .hero-foot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: auto 0 0;
    padding: 8px 14px 8px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: none;
}
.hero-banner .hero-foot::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 999px;
    background: var(--accent);
}
.hero-slide { display: grid; align-content: start; gap: 10px; min-height: 230px; padding: 28px; }
.hero-slide[hidden] { display: none; }
.hero-slide h3 { font-size: 1.7rem; }
.hero-slide p { margin: 0; color: var(--muted); }
.hero-art { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); }
.hero-art svg { width: 48px; height: 48px; }
.hero-chips { display: flex; gap: 8px; }
.hero-chips span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 999px; background: #16a34a; color: #fff; font-weight: 800; }
.hero-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 8px 12px; background: var(--accent); color: #fff; }
.hero-bar button { width: 42px; height: 42px; border: 0; border-radius: 999px; background: transparent; color: inherit; font-size: 1.6rem; line-height: 1; }
.hero-bar strong { letter-spacing: 0.08em; text-transform: uppercase; }
.signup-dialog {
    width: min(480px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    margin: auto;
    position: relative;
    padding: 36px 32px 32px;
    border: 0;
    border-radius: 28px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 24px 80px rgb(16 18 22 / 28%);
}
.signup-dialog::backdrop { background: rgb(16 18 22 / 58%); }
.signup-dialog[open] { display: grid; }
.signup-dialog form { display: grid; }
.signup-dialog p { margin: 0; }
.signup-dialog .hero-kicker { margin: 0 0 10px; }
.signup-dialog h2 { margin: 0 0 12px; font-size: 1.75rem; line-height: 1.2; }
.signup-dialog form > p { margin: 0 0 26px; color: var(--muted); line-height: 1.55; }
.signup-dialog .field { display: grid; gap: 8px; margin: 0 0 18px; }
.signup-dialog .field input {
    border-radius: 14px;
    padding: 14px 16px;
}
.signup-dialog .check {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 0 0 24px;
    font-size: 0.92rem;
    line-height: 1.45;
}
.signup-dialog .check input { width: 18px; height: 18px; margin: 2px 0 0; }
.signup-dialog .button-accent { width: 100%; margin: 0; padding: 14px 18px; border: 0; cursor: pointer; font-size: 1rem; }
.signup-x { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--bg); color: var(--text); font-size: 1.4rem; line-height: 1; }
.signup-error { color: #9f1239; }
.signup-done { display: grid; gap: 16px; }
.signup-done p { line-height: 1.55; }
.signup-done[hidden], .signup-dialog form[hidden], .signup-error[hidden] { display: none; }
@media (min-width: 900px) {
    .home-hero { grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr); align-items: stretch; }
}
@media (max-width: 860px) {
    .storefront .topbar-row { grid-template-columns: 1fr auto; }
    .storefront .header-signup { grid-column: 1 / -1; width: 100%; }
    .storefront .signup-bar { align-items: stretch; flex-direction: column; }
}
.crumb { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 16px; color: var(--muted); }
.crumb a { color: inherit; }
.storefront .deal-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin: 0 0 22px;
}
.storefront .deal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
}
.storefront .deal-back:hover { background: var(--accent); color: #fff; }
.storefront .deal-nav .crumb { display: block; flex: 1 1 220px; margin: 0; min-width: 0; }
.storefront .crumb ol {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px 0;
    max-width: 100%;
    margin: 0;
    padding: 8px 14px;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
}
.storefront .crumb li {
    display: inline-flex;
    align-items: center;
    flex: none;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 650;
}
.storefront .crumb li:last-child { flex: 1 1 auto; min-width: 0; }
.storefront .crumb li + li::before {
    content: "";
    width: 5px;
    height: 5px;
    margin: 0 10px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    flex: none;
}
.storefront .crumb a { color: var(--text); text-decoration: none; }
.storefront .crumb a:hover { color: var(--accent); }
.storefront .crumb [aria-current="page"] {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.expired-strip { margin-top: 36px; }
.expired-strip h2 { margin: 0 0 8px; font-size: 1.6rem; letter-spacing: -0.03em; }
.deal-page { display: grid; gap: 24px; align-items: start; }
.deal-page-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    border-radius: 22px;
    background: #f4f1ec;
}
.deal-facts { display: grid; gap: 10px; }
.deal-facts h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.04em; line-height: 1.1; }
.deal-facts p { margin: 0; }
.deal-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--accent); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.deal-status .stock { letter-spacing: 0; text-transform: none; }
.deal-copy { max-width: 42rem; }
.deal-facts .price-row { justify-content: flex-start; gap: 10px; margin: 4px 0 0; }
.deal-facts .price { font-size: 1.7rem; }
.deal-facts .compare { font-size: 1rem; }
.deal-page.is-expired .deal-page-image { width: min(100%, 240px); border-radius: 18px; background: #fff; }
.expired-follow { display: grid; gap: 28px; margin-top: 36px; }
.expired-follow > div > h2,
.expired-shop h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.03em; }
.expired-shop {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 18px;
    align-items: start;
    padding: 22px;
    border-radius: 22px;
    background: var(--surface);
}
.expired-shop .shop-logo { grid-row: 1 / span 2; width: auto; max-width: 140px; height: 44px; }
.expired-shop .mark { grid-row: 1 / span 2; }
.expired-shop h2 a { color: inherit; text-decoration: none; }
.expired-shop p { margin: 8px 0 0; }
.expired-kicker {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.expired-shop .expired-kicker:first-child { margin-top: 0; }
.expired-meta, .expired-note { color: var(--muted); }
.expired-note { margin: 4px 0 14px; }
.expired-shop .chip-row { margin-top: 8px; }
@media (min-width: 640px) {
    .deal-page.is-expired { grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
}
@media (min-width: 900px) {
    .deal-page { grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr); }
}
.doc { display: grid; gap: 16px; max-width: 760px; }
.doc.is-wide { max-width: none; }
.doc-intro { display: grid; gap: 8px; }
.doc-intro h1, .doc-body h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.04em; line-height: 1.05; }
.doc-lead { margin: 0; max-width: 42rem; color: var(--muted); font-size: 1.12rem; }
.doc-stack, .doc-body { display: grid; gap: 16px; }
.doc-section, .doc-card, .doc-note {
    display: grid;
    gap: 10px;
    padding: 22px 24px;
    border-radius: 20px;
    background: var(--surface);
}
.doc-section h2, .doc-card h2, .doc-body h2 { margin: 0; font-size: 1.25rem; letter-spacing: -0.03em; }
.doc-section p, .doc-card p, .doc-note p, .doc-body p { margin: 0; }
.doc-section ul, .doc-body ul, .doc-body ol { display: grid; gap: 6px; margin: 0; padding-left: 1.15rem; }
.doc-note { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.doc-split { display: grid; gap: 16px; align-items: start; }
.doc-card h2 { font-size: 1.05rem; }
.doc-table { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.doc th, .doc td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.doc th { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) {
    .doc-split { grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr); }
    .doc-card { position: sticky; top: 16px; }
}
.admin .mail-preview { margin-top: 16px; overflow: hidden; border-radius: 16px; }
.admin #mailing .mail-preview { margin-top: 18px; }
.admin .card-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 16px; }
.admin .card-choice {
    display: grid;
    gap: 8px;
    align-content: start;
    margin: 0;
    padding: 12px;
    border: 1px solid #e2e5ea;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
}
.admin .card-choice:has(input:checked) { border-color: #1984BD; box-shadow: 0 0 0 1px #1984BD; }
.admin .card-choice input { margin: 0; }
.admin .card-choice strong { font-size: 0.95rem; }
.admin .card-choice small { color: #5c6570; line-height: 1.35; }
.admin .card-mock {
    display: grid;
    gap: 6px;
    min-height: 148px;
    padding: 8px;
    border-radius: 12px;
    background: #f4f5f7;
}
.admin .card-mock i { display: block; border-radius: 6px; background: #fff; }
.admin .mock-time { height: 14px; width: 70%; }
.admin .mock-shop { height: 12px; width: 42%; justify-self: center; }
.admin .mock-photo { height: 72px; background: #d7dde5; }
.admin .mock-line { display: flex; justify-content: flex-end; }
.admin .mock-title { height: 10px; width: 80%; background: #1c2430; }
.admin .mock-price { height: 10px; width: 36px; background: #1984BD; }
.admin .card-mock-compact { gap: 4px; padding: 6px; }
.admin .card-mock-compact .mock-photo { height: 52px; }
.admin .card-mock-compact .mock-line { justify-content: space-between; align-items: center; }
.admin .card-mock-compact .mock-title { width: 58%; }
.admin .card-mock-poster { position: relative; padding: 8px 8px 6px; }
.admin .card-mock-poster .mock-photo { height: 96px; }
.admin .card-mock-poster .mock-shop,
.admin .card-mock-poster .mock-time { position: absolute; left: 16px; right: 16px; z-index: 1; }
.admin .card-mock-poster .mock-shop { top: 16px; width: 36%; }
.admin .card-mock-poster .mock-time { top: auto; bottom: 42px; width: auto; }
@media (max-width: 800px) {
    .admin .card-choices { grid-template-columns: 1fr; }
}
.storefront .discount-search { margin-bottom: 28px; }
.storefront .archive-search { margin-bottom: 32px; }
.storefront .discount-list { display: grid; gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.storefront .discount-row {
    display: grid;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgb(22 27 34 / 5%);
}
.storefront .discount-shop {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}
.storefront .discount-logo {
    display: grid;
    place-items: center;
    width: 72px;
    height: 48px;
    flex: none;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: #1c1c1c;
    font-weight: 800;
}
.storefront .discount-logo img { display: block; width: auto; max-width: 100%; height: 28px; object-fit: contain; }
.storefront .discount-title { margin: 0; font-weight: 650; line-height: 1.35; }
.storefront .discount-action { justify-self: stretch; text-align: center; white-space: nowrap; }
.storefront .discount-dialog {
    position: relative;
    width: min(440px, calc(100% - 28px));
    max-height: calc(100% - 28px);
    margin: auto;
    padding: 28px 24px 22px;
    border: 0;
    border-radius: 24px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 24px 80px rgb(16 18 22 / 28%);
}
.storefront .discount-dialog::backdrop { background: rgb(16 18 22 / 58%); }
.storefront .discount-dialog[open] { display: grid; gap: 14px; }
.storefront .discount-dialog h2 { margin: 0; font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1.15; }
.storefront .discount-code {
    margin: 0;
    padding: 14px 16px;
    border: 1px dashed var(--accent);
    border-radius: 14px;
    background: var(--bg);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    user-select: all;
}
.storefront .discount-dialog-actions { display: grid; gap: 8px; }
.storefront .discount-dialog-actions button,
.storefront .discount-dialog-actions .button-accent { width: 100%; text-align: center; }
.storefront .discount-dialog-actions .is-copied { background: #1f7a32; border-color: transparent; color: #fff; }
.storefront .discount-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: var(--bg);
    color: var(--text);
    font-size: 1.4rem;
    line-height: 1;
}
@media (min-width: 520px) {
    .storefront .discount-dialog-actions { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
    .storefront .discount-row { grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) auto; }
    .storefront .discount-action { justify-self: end; }
}
.admin .kind-deal, .admin .kind-ad, .admin .kind-code {
    display: grid;
    gap: 12px;
    margin: 8px 0 16px;
    padding: 12px;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    background: #f7f8fa;
}
.admin .kind-deal legend, .admin .kind-ad legend, .admin .kind-code legend { padding: 0 4px; font-weight: 700; }
.admin form:has(select[name="kind"] option[value="deal"]:checked) .kind-ad { display: none; }
.admin form:has(select[name="kind"] option[value="ad"]:checked) .kind-deal { display: none; }
.admin form:has(select[name="kind"] option[value="link"]:checked) .kind-code { display: none; }
.storefront .ad-card { min-height: 0; }
.storefront .ad-kicker {
    margin: 8px 10px 0;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.storefront .ad-slot { display: block; min-height: 160px; margin: 6px 10px 10px; }
