/* ClassFabric Store — elegant, compact catalog design.
   Complements public.css tokens; overrides for in-store surfaces. */

:root {
    --store-bg:          #fafafa;
    --store-surface:     #ffffff;
    --store-border:      #e5e7eb;
    --store-border-soft: #eef0f3;
    --store-text:        #0f172a;
    --store-muted:       #64748b;
    --store-accent:      #1e40af;
    --store-accent-dark: #1e3a8a;
    --store-accent-soft: #eef2ff;
    --store-lesson:      #0ea5e9;
    --store-unit:        #8b5cf6;
    --store-workbook:    #f59e0b;
    --store-card-bg:     #ffffff;
    --store-shadow-sm:   0 1px 2px rgba(15,23,42,.04);
    --store-shadow-md:   0 4px 12px rgba(15,23,42,.06);
    --store-shadow-lg:   0 18px 40px rgba(15,23,42,.09);
    --store-radius:      12px;
    --store-radius-sm:   8px;
}

.store-body {
    background: var(--store-bg);
    color: var(--store-text);
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}

.store-body a { color: inherit; text-decoration: none; }
.store-body h1, .store-body h2, .store-body h3 { letter-spacing: -0.015em; }
.store-body p { line-height: 1.55; }
.store-body .text-muted { color: var(--store-muted); }

/* ── Nav ── */
.store-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--store-surface);
    border-bottom: 1px solid var(--store-border);
}
.store-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.store-logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.store-logo-mark {
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 7px;
    background: var(--store-accent);
    color: #fff;
    font-size: .82rem;
    letter-spacing: -.02em;
}
.store-logo-name { font-size: 1.05rem; color: var(--store-text); }
.store-logo-accent { color: var(--store-accent); font-weight: 700; }

.store-search {
    flex: 1;
    max-width: 520px;
    display: flex;
    align-items: center;
    gap: .25rem;
    background: var(--store-bg);
    border: 1px solid var(--store-border);
    border-radius: 999px;
    padding: 0 .5rem 0 1rem;
    height: 40px;
    transition: border-color .15s, box-shadow .15s;
}
.store-search:focus-within {
    border-color: var(--store-accent);
    box-shadow: 0 0 0 3px var(--store-accent-soft);
}
.store-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font: inherit;
    font-size: .92rem;
    color: var(--store-text);
}
.store-search button {
    border: none;
    background: var(--store-accent);
    color: #fff;
    border-radius: 999px;
    height: 30px;
    width: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.store-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.store-nav-link {
    font-size: .92rem;
    color: var(--store-text);
    font-weight: 500;
}
.store-nav-link:hover { color: var(--store-accent); }
.store-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 1rem;
    border-radius: 999px;
    background: var(--store-accent);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
}
.store-nav-actions .store-nav-cta { color: #fff; }
.store-nav-cta:hover { background: var(--store-accent-dark); color: #fff; }
.store-cart-link { position: relative; display: inline-flex; align-items: center; }
.store-cart-badge {
    position: absolute;
    top: -6px; right: -10px;
    background: var(--store-unit);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.store-locale select {
    font: inherit;
    font-size: .85rem;
    border: 1px solid var(--store-border);
    border-radius: 6px;
    padding: .2rem .4rem;
    background: #fff;
}

/* ── Flashes ── */
.store-flashes { max-width: 1280px; margin: 0 auto; padding: .75rem 1.25rem 0; }
.store-flash {
    padding: .6rem .9rem;
    border-radius: 8px;
    margin-bottom: .5rem;
    font-size: .9rem;
    border: 1px solid var(--store-border);
    background: var(--store-surface);
}
.store-flash-success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.store-flash-danger  { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.store-flash-warning { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.store-flash-info    { border-color: #bfdbfe; background: #eff6ff; color: #1e40af; }

/* ── Hero ── */
.store-main { max-width: 1280px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.store-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    border-radius: var(--store-radius);
    padding: 2.5rem 2rem;
    margin-bottom: 1.5rem;
}
.store-hero-inner { max-width: 720px; }
.store-hero h1 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 700; margin-bottom: .4rem; }
.store-hero p { color: rgba(255,255,255,.85); font-size: 1rem; }
.store-hero-langs { display: flex; gap: .5rem; margin-top: 1rem; }
.store-hero-langs span {
    display: inline-flex;
    padding: .25rem .7rem;
    border-radius: 999px;
    background: rgba(255,255,255,.15);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .05em;
}

/* ── Filters ── */
.store-filters-bar { background: var(--store-surface); border: 1px solid var(--store-border); border-radius: var(--store-radius); padding: .75rem 1rem; margin-bottom: 1.25rem; }
.store-filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
.store-filters label { display: flex; flex-direction: column; gap: .25rem; min-width: 140px; }
.store-filters label span { font-size: .72rem; color: var(--store-muted); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.store-filters select { border: 1px solid var(--store-border); border-radius: 7px; padding: .4rem .5rem; font: inherit; font-size: .9rem; background: #fff; min-width: 140px; }

/* ── Grid ── */
.store-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}
@media (min-width: 640px) {
    .store-grid { grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
}
@media (min-width: 900px) {
    .store-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (min-width: 1200px) {
    .store-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
}
.store-card {
    background: var(--store-card-bg);
    border: 1px solid var(--store-border-soft);
    border-radius: var(--store-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.store-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--store-shadow-md);
    border-color: var(--store-border);
}
.store-card-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    background: #f1f5f9;
    overflow: hidden;
}
.store-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.store-card-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--store-muted);
    background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%);
}
.store-card-thumb-placeholder svg { width: 44%; height: 44%; }
.store-card-publisher-logo {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    object-fit: contain;
    flex-shrink: 0;
}
.store-type-badge {
    position: absolute;
    top: .6rem; left: .6rem;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .2rem .5rem;
    border-radius: 4px;
    color: #fff;
    background: var(--store-lesson);
}
.store-type-lesson   { background: var(--store-lesson); }
.store-type-unit     { background: var(--store-unit); }
.store-type-workbook { background: var(--store-workbook); }
.store-card-body { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.store-card-title { font-size: .95rem; font-weight: 600; line-height: 1.25; color: var(--store-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.store-card-author { font-size: .78rem; color: var(--store-muted); }
.store-card-langs { display: flex; gap: .25rem; flex-wrap: wrap; margin-top: .1rem; }
.store-lang-chip {
    display: inline-flex;
    padding: .1rem .4rem;
    background: var(--store-accent-soft);
    color: var(--store-accent-dark);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: 4px;
}
.store-card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .5rem; }
.store-card-price { font-weight: 700; font-size: 1rem; color: var(--store-text); }
.store-card-rating { display: inline-flex; align-items: center; gap: .2rem; font-size: .78rem; color: #b45309; font-weight: 600; }
.store-card-rating-count { color: var(--store-muted); font-weight: 500; }

/* ── Empty ── */
.store-empty { text-align: center; padding: 3rem 1rem; color: var(--store-muted); }
.store-empty h2 { color: var(--store-text); margin-bottom: .4rem; }

/* ── Buttons ── */
.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.store-btn:active { transform: translateY(1px); }
.store-btn-primary { background: var(--store-accent); color: #fff; }
.store-btn-primary:hover { background: var(--store-accent-dark); }
.store-btn-ghost   { background: #fff; color: var(--store-accent); border-color: var(--store-border); }
.store-btn-ghost:hover { border-color: var(--store-accent); }
.store-btn-block   { width: 100%; }

/* ── Detail ── */
.store-detail { padding-bottom: 3rem; }
.store-detail-inner {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 2rem;
    background: var(--store-surface);
    border: 1px solid var(--store-border-soft);
    border-radius: var(--store-radius);
    padding: 1.5rem;
}
.store-detail-cover-col {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-width: 0;
}
.store-detail-publisher {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: var(--store-muted);
}
.store-detail-publisher img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: contain;
    background: #f1f5f9;
    padding: 2px;
}
.store-detail-thumb {
    aspect-ratio: 3 / 4;
    border-radius: var(--store-radius-sm);
    overflow: hidden;
    background: #f1f5f9;
}
.store-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.store-detail-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--store-muted);
    background: linear-gradient(160deg, #f8fafc, #e2e8f0);
}
.store-detail-thumb-placeholder svg { width: 40%; }
.store-detail-workbook-cover {
    float: right;
    width: 120px;
    margin: 0 0 .8rem 1rem;
    border-radius: var(--store-radius-sm);
    overflow: hidden;
    border: 1px solid var(--store-border);
    background: #f1f5f9;
    display: block;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: transform .15s ease, box-shadow .15s ease;
}
.store-detail-workbook-cover:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.10);
}
.store-detail-workbook-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}
@media (max-width: 720px) {
    .store-detail-workbook-cover { width: 90px; margin: 0 0 .6rem .8rem; }
}
.store-detail-main h1 { font-size: 1.7rem; margin: .5rem 0 .3rem; }
.store-detail-author { color: var(--store-muted); font-size: .9rem; }
.store-detail-meta { display: flex; gap: .8rem; color: var(--store-muted); font-size: .85rem; margin: .6rem 0 1rem; }
.store-detail-rating { display: inline-flex; align-items: center; gap: .25rem; color: #b45309; font-weight: 600; }
.store-detail-langs { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.store-detail-langs-label { font-size: .75rem; color: var(--store-muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.store-detail-desc { margin: 1rem 0; line-height: 1.65; color: var(--store-text); }
.store-detail-desc p { margin: 0 0 .75rem; }
.store-detail-desc p:last-child { margin-bottom: 0; }
.store-detail-desc .store-desc-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin: .5rem 0 1rem;
    color: var(--store-text);
}
.store-detail-desc .store-desc-list li { margin: .15rem 0; }
.store-detail-desc strong em,
.store-detail-desc em strong { font-style: italic; font-weight: 700; }
.store-detail-standards { margin: .8rem 0; font-size: .95rem; line-height: 1.65; color: var(--store-text); }
.store-detail-standards strong { color: var(--store-text); }
.store-standards-list { list-style: disc; padding-left: 1.25rem; margin: .35rem 0 0 0; color: var(--store-text); }
.store-standards-list li { margin: .15rem 0; }

.store-detail-package {
    margin: 1.2rem 0 .4rem;
    padding: 1rem 1.2rem 1.1rem;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-sm);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.06), #fff 60%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.store-detail-package h3 {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--store-muted);
    margin: 0 0 .65rem;
}
.store-package-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.store-package-list li { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--store-text); line-height: 1.35; }
.store-package-label { font-weight: 500; }
.store-package-langs { display: inline-flex; gap: .25rem; flex-wrap: wrap; margin-left: .15rem; }
.store-check { width: 20px; height: 20px; flex: 0 0 20px; color: #16a34a; }
.store-detail-includes { margin-top: 1.2rem; }
.store-detail-includes h3 { font-size: 1rem; margin-bottom: .5rem; }
.store-detail-includes ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.store-detail-includes li { display: flex; align-items: center; gap: .5rem; padding: .45rem .7rem; background: var(--store-bg); border-radius: 6px; font-size: .9rem; }
.store-detail-includes li a { color: var(--store-accent); font-weight: 500; }
.store-chip { font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--store-muted); background: #fff; border: 1px solid var(--store-border); padding: .1rem .45rem; border-radius: 4px; }

.store-workbook-items { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.store-workbook-item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .8rem; background: var(--store-bg); border-radius: 6px; font-size: .9rem; flex-wrap: wrap; }
.store-workbook-item-main { display: flex; align-items: center; gap: .5rem; flex: 1 1 auto; min-width: 0; }
.store-workbook-item-main a { color: var(--store-accent); font-weight: 500; }
.store-workbook-item-buy { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.store-workbook-item-price { font-weight: 600; color: var(--store-fg, #1a1a1a); }
.store-btn-sm { padding: .3rem .65rem; font-size: .8rem; }

.store-detail-buybox {
    margin-top: 1.5rem;
    padding: 1.2rem;
    border-radius: var(--store-radius-sm);
    border: 1px solid var(--store-border);
    background: var(--store-bg);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.store-detail-price { font-size: 1.8rem; font-weight: 700; }

.store-detail-reviews { margin-top: 2rem; background: var(--store-surface); border: 1px solid var(--store-border-soft); border-radius: var(--store-radius); padding: 1.5rem; }
.store-detail-reviews h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.store-reviews-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.store-reviews-list li { padding-bottom: 1rem; border-bottom: 1px solid var(--store-border-soft); }
.store-reviews-list li:last-child { border-bottom: none; }
.store-review-rating { display: inline-flex; gap: 2px; color: #f59e0b; margin-bottom: .35rem; }
.store-review-meta { font-size: .75rem; margin-top: .3rem; }

@media (max-width: 720px) {
    .store-detail-inner { grid-template-columns: 1fr; padding: 1rem; }
}

/* ── Cart ── */
.store-cart-page h1 { margin-bottom: 1.25rem; }
.store-cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; }
.store-cart-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.store-cart-item {
    display: grid;
    grid-template-columns: 70px 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: .7rem 1rem;
    background: var(--store-surface);
    border: 1px solid var(--store-border-soft);
    border-radius: var(--store-radius-sm);
}
.store-cart-thumb { width: 70px; height: 92px; border-radius: 4px; overflow: hidden; background: #f1f5f9; }
.store-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.store-cart-thumb-placeholder { width: 100%; height: 100%; background: linear-gradient(160deg, #f8fafc, #e2e8f0); }
.store-cart-title { color: var(--store-text); font-weight: 600; display: block; }
.store-cart-price { font-weight: 700; }
.store-cart-remove button { background: none; border: none; color: var(--store-muted); font-size: 1.1rem; cursor: pointer; padding: .3rem .5rem; }
.store-cart-remove button:hover { color: #b91c1c; }

.store-cart-summary {
    background: var(--store-surface);
    border: 1px solid var(--store-border-soft);
    border-radius: var(--store-radius);
    padding: 1.25rem;
    height: fit-content;
    position: sticky;
    top: 80px;
}
.store-cart-summary h2 { font-size: 1rem; margin-bottom: .75rem; }
.store-cart-row { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; }
.store-cart-row + .store-cart-row { border-top: 1px solid var(--store-border-soft); }

@media (max-width: 720px) {
    .store-cart-layout { grid-template-columns: 1fr; }
    .store-cart-summary { position: static; }
}

/* ── Success ── */
.store-success { display: flex; justify-content: center; padding: 2.5rem 1rem; }
.store-success-card { background: var(--store-surface); border: 1px solid var(--store-border-soft); border-radius: var(--store-radius); padding: 2.5rem; max-width: 520px; text-align: center; box-shadow: var(--store-shadow-md); }
.store-success-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.store-success-actions { margin-top: 1.5rem; display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.store-footer { border-top: 1px solid var(--store-border); background: var(--store-surface); color: var(--store-muted); margin-top: 3rem; }
.store-footer-inner { max-width: 1280px; margin: 0 auto; padding: 2rem 1.25rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; font-size: .85rem; }
.store-footer-inner a { display: block; color: var(--store-muted); padding: .15rem 0; }
.store-footer-inner a:hover { color: var(--store-accent); }
.store-footer-bottom { padding: 1rem 1.25rem; border-top: 1px solid var(--store-border-soft); font-size: .8rem; text-align: center; color: var(--store-muted); }

@media (max-width: 720px) {
    .store-footer-inner { grid-template-columns: 1fr; }
    .store-nav-inner { flex-wrap: wrap; }
    .store-search { order: 3; width: 100%; max-width: none; }
}

/* ── Tablet polish ── */
@media (min-width: 640px) and (max-width: 1199px) {
    .store-filters label { min-width: 110px; }
    .store-filters select { min-width: 110px; }
}

/* ── Mobile (<640px) overrides ── */
@media (max-width: 639px) {
    .store-main { padding: 1rem 0.85rem 2.5rem; }

    .store-nav-inner { padding: 0.6rem 0.85rem; gap: 0.6rem; }
    .store-nav-actions { gap: 0.6rem; }
    .store-nav-actions .store-nav-link:not(.store-cart-link) { display: none; }
    .store-locale select { padding: 0.15rem 0.3rem; font-size: 0.8rem; }

    .store-hero { padding: 1.4rem 1.1rem; margin-bottom: 0.9rem; }
    .store-hero h1 { font-size: 1.35rem; }
    .store-hero p { font-size: 0.9rem; }
    .store-hero-langs { margin-top: 0.7rem; }

    .store-filters-bar { padding: 0.6rem 0.75rem; margin-bottom: 0.9rem; }
    .store-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 0.6rem;
        align-items: stretch;
    }
    .store-filters label { min-width: 0; gap: 0.15rem; }
    .store-filters select {
        width: 100%;
        min-width: 0;
        font-size: 0.85rem;
        padding: 0.45rem 0.5rem;
    }
    .store-filters label span { font-size: 0.65rem; }

    .store-card-body { padding: 0.55rem 0.6rem 0.7rem; gap: 0.25rem; }
    .store-card-title {
        font-size: 0.85rem;
        min-height: 2.2em;
    }
    .store-card-author { font-size: 0.72rem; }
    .store-card-price { font-size: 0.92rem; }
    .store-card-bottom { padding-top: 0.35rem; }
    .store-type-badge {
        top: 0.4rem;
        left: 0.4rem;
        font-size: 0.58rem;
        padding: 0.15rem 0.4rem;
    }
    .store-lang-chip { font-size: 0.6rem; padding: 0.08rem 0.35rem; }
    .store-card-publisher-logo { width: 20px; height: 20px; }
}

/* ── Library page (authenticated shell) ── */
.store-library-page { max-width: 1200px; margin: 0 auto; padding: 2rem 1.25rem; }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.library-card { background: #fff; border: 1px solid var(--store-border-soft); border-radius: var(--store-radius); padding: 1rem 1.1rem; }
.library-card h3 { font-size: 1rem; margin-bottom: .2rem; }
.library-card .lib-meta { color: var(--store-muted); font-size: .82rem; margin-bottom: .75rem; }
.library-downloads { display: flex; flex-direction: column; gap: .35rem; }
.library-download {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .4rem .6rem;
    background: var(--store-bg);
    border-radius: 6px;
    font-size: .85rem;
}
.library-download a { color: var(--store-accent); font-weight: 500; }
.library-download a + a { margin-left: .6rem; }

/* ── Admin store UI hooks (minimal, inherit main.css where possible) ── */
.admin-store-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: 1rem; flex-wrap: wrap; }
.admin-store-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--store-border-soft); border-radius: var(--store-radius-sm); overflow: hidden; }
.admin-store-table th, .admin-store-table td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--store-border-soft); font-size: .9rem; }
.admin-store-table th { background: #f9fafb; color: var(--store-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; }
.admin-store-table tr:last-child td { border-bottom: none; }
.admin-file-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.admin-file-cell { border: 1px solid var(--store-border-soft); border-radius: 6px; padding: .6rem; background: #fff; font-size: .85rem; }
.admin-file-cell label { font-size: .72rem; color: var(--store-muted); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; display: block; margin-bottom: .3rem; }
@media (max-width: 820px) { .admin-file-grid { grid-template-columns: 1fr 1fr; } }
