:root {
    --bg: #f4f6f8;
    --bg-2: #ffffff;
    --sidebar: #101820;
    --sidebar-ink: #e8eef4;
    --sidebar-muted: #8b97a6;
    --sidebar-hover: rgba(255,255,255,.06);
    --sidebar-active: rgba(14, 159, 110, .16);
    --card: #ffffff;
    --card-2: #f7f9fb;
    --ink: #14202b;
    --muted: #5d6b78;
    --line: #e6ebf0;
    --brand: #0e9f6e;
    --brand-dim: #e7f7f0;
    --gold: #c9a227;
    --danger: #c0392b;
    --ok: #0e9f6e;
    --warn: #8a6508;
    --info: #2a5bd7;
    --shadow: 0 8px 24px rgba(16, 24, 40, .05);
    --radius: 12px;
    --sidebar-w: 268px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    letter-spacing: -.01em;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: #095536; }
img { max-width: 100%; display: block; }

.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--sidebar);
    color: var(--sidebar-ink);
    border-right: 0;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 0;
    height: 100vh;
}
.brand-lockup { display: flex; align-items: center; gap: 10px; padding: 8px 12px 18px; color: var(--sidebar-ink); text-decoration: none; }
.brand-lockup:hover { color: #fff; text-decoration: none; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px;
    background: linear-gradient(160deg, #14b87d, #0b6b45);
    border: 0;
    display: grid; place-items: center;
    color: #fff; font-weight: 800;
    box-shadow: 0 8px 16px rgba(14, 159, 110, .28);
}
.brand-lockup strong { display: block; font-size: .98rem; letter-spacing: .02em; color: #fff; }
.brand-lockup small { color: var(--sidebar-muted); font-size: .72rem; }
.nav-label {
    color: var(--sidebar-muted);
    font-size: .64rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 16px 12px 6px;
    font-weight: 700;
}
.sidebar nav { display: grid; gap: 2px; flex: 1; overflow: auto; align-content: start; }
.sidebar a, .sidebar .nav-btn {
    color: #c5d0db;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    text-decoration: none;
    border: 0;
    background: transparent;
    font: inherit;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
}
.sidebar a svg, .sidebar .nav-btn svg { width: 17px; height: 17px; opacity: .8; flex-shrink: 0; }
.sidebar a:hover, .sidebar .nav-btn:hover { background: var(--sidebar-hover); color: #fff; text-decoration: none; }
.sidebar a.active {
    background: var(--sidebar-active);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--brand);
}
.sidebar-foot {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 12px;
    display: grid;
    gap: 8px;
}
.user-chip { padding: 8px 10px; }
.user-chip strong { display: block; font-size: .9rem; color: #fff; }
.user-chip span { color: var(--sidebar-muted); font-size: .78rem; }
.role-pill {
    display: inline-block;
    color: #e0b84c;
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.sidebar .nav-btn {
    background: rgba(255,255,255,.06);
    color: #fff;
    justify-content: center;
}

.app-main { min-width: 0; background: var(--bg); }
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 28px 0;
    background: transparent;
}
.menu-toggle {
    display: none;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
}
.page-head h1 { margin: 0; font-size: 1.42rem; letter-spacing: -.03em; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.panel-main, .page-body { padding: 20px 28px 40px; }

.wrap { width: min(1180px, 100%); }
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stack { display: grid; gap: 14px; }

.card, .table-card, .stat-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card { padding: 18px; }
.card.table-wrap { padding: 0; overflow: auto; }
.muted { color: var(--muted); }

.stat-card { padding: 16px 18px; }
.stat-card-alert {
    background: #fff4d6;
    border-color: #f0c36a;
}
a.stat-card { color: inherit; display: block; }
a.stat-card:hover { outline: 2px solid var(--brand); outline-offset: 0; }
.stat-card .label { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.stat { font-size: 1.85rem; font-weight: 800; margin: 0; color: var(--ink); letter-spacing: -.03em; }

.btn, button.btn, input.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; color: #fff; }
.btn-gold { background: var(--gold); color: #1a1403; }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { color: var(--ink); background: #f3f5f7; }
.btn.btn-danger,
button.btn.btn-danger { background: var(--danger); color: #fff; }
.btn.btn-danger:hover,
button.btn.btn-danger:hover { background: #a93226; color: #fff; filter: none; }
.btn-sm { padding: 7px 12px; font-size: .82rem; font-weight: 700; }
.btn.btn-ghost,
button.btn.btn-ghost,
.btn.btn-outline,
button.btn.btn-outline {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
}
.btn.btn-ghost:hover,
button.btn.btn-ghost:hover,
.btn.btn-outline:hover,
button.btn.btn-outline:hover { background: var(--card-2); color: var(--ink); filter: none; }

.flash { border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }
.flash-success { background: #e8f7ee; color: #146c43; border: 1px solid #b7e0c8; }
.flash-error { background: #fdecec; color: #a61b1b; border: 1px solid #f3c1c1; }
.admin-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff4d6;
    color: #7a4d00;
    border: 1px solid #f0c36a;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 0 16px;
    box-shadow: 0 8px 20px rgba(201, 162, 39, .12);
}
.admin-alert p { margin: 4px 0 0; font-size: .88rem; color: #8a6508; }
.admin-alert .btn {
    background: #c9a227;
    border-color: #c9a227;
    color: #fff;
    white-space: nowrap;
}
.admin-alert .btn:hover { background: #a88414; color: #fff; }
.sidebar .nav-count,
.sidebar .badge {
    margin-left: auto;
}
.sidebar .nav-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #c0392b;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    display: inline-grid;
    place-items: center;
    line-height: 1;
}
.errors { color: var(--danger); font-size: .85rem; margin: 4px 0 0; }

.form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    max-width: 960px;
    align-items: start;
}
.form > input[type="hidden"] { display: none !important; }
.form .field-wide,
.form > .photo-crop,
.form > .poster-pick,
.form .form-section,
.form .form-actions,
.form .branch-list,
.form > .card,
.form > h2,
.form > h3,
.form > p,
.form > .btn,
.form > button,
.form > .check,
.form > .actions { grid-column: 1 / -1; }
.form > .btn, .form > button { justify-self: start; width: fit-content; }
.form textarea { min-height: 110px; }
.form-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
}
.form-section-head {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
}
.form-section-head h3 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: -.01em;
}
.form-section-head p { margin: 0; }
.form-section > .field-wide,
.form-section > .photo-crop,
.form-section > .form-section-head,
.form-section > .form-media,
.form-section > .branch-list,
.form-section > .form-actions { grid-column: 1 / -1; }
.form-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    grid-column: 1 / -1;
}
.form-media > * { min-width: 0; }
.logo-field {
    display: grid;
    gap: 8px;
    align-content: start;
}
.logo-field .thumb,
.logo-field .thumb-lg {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--card-2);
}
.branch-list { display: grid; gap: 14px; }
.branch-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    padding: 16px;
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: none;
}
.branch-row .branch-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.branch-row .branch-head strong { font-size: .92rem; }
.branch-row .branch-address { grid-column: 1 / -1; }
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-top: 4px;
}
label { font-weight: 600; display: grid; gap: 6px; font-size: .9rem; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    background: var(--bg-2);
    color: var(--ink);
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid #0b6b45;
    border-color: #0b6b45;
}
.auth-card { width: min(480px, 100%); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check input { width: auto; }

.table-card { overflow: hidden; }
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #fbfcfd);
}
.table-toolbar strong { display: block; font-size: .92rem; }
.table-toolbar .muted { font-size: .78rem; }
.bulk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.bulk-actions strong { font-size: .9rem; }
.bulk-status-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}
.bulk-status-fields label { min-width: 160px; }
.bulk-status-fields input,
.bulk-status-fields select { width: 100%; }
.check-col { width: 36px; }
.check-col input { width: 16px; height: 16px; }
.table-wrap { overflow: auto; }
table, .data-table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th {
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6b7785;
    background: #f4f7f9;
    white-space: nowrap;
    font-weight: 800;
    position: sticky;
    top: 0;
    z-index: 1;
}
tbody tr:hover { background: #f7fbf9; }
.cell-title { font-weight: 700; color: var(--ink); }
.cell-sub { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.inline-form { display: grid; gap: 8px; margin-top: 8px; min-width: 180px; }
.inline-form label { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.thumb {
    width: 52px; height: 36px; border-radius: 8px; object-fit: cover;
    background: #eef3f0; border: 1px solid var(--line);
}
.thumb-btn {
    display: inline-block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    line-height: 0;
}
.thumb-btn .thumb { display: block; }
.thumb-lg { width: 88px; height: 64px; }
.thumb-btn:hover .thumb { outline: 2px solid var(--brand); outline-offset: 1px; }

.img-lightbox {
    position: fixed; inset: 0; z-index: 1300;
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.img-lightbox[hidden] { display: none !important; }
.img-lightbox-backdrop { position: absolute; inset: 0; background: rgba(10, 16, 22, .72); }
.img-lightbox-box {
    position: relative; z-index: 1;
    max-width: min(92vw, 960px);
    max-height: 90vh;
}
.img-lightbox-box img {
    display: block;
    max-width: min(92vw, 960px);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(16, 24, 40, .28);
}
.img-lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #1b1f24;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(16, 24, 40, .18);
}
.img-lightbox-close:hover { background: #f3f5f7; }
body.img-lightbox-open { overflow: hidden; }

.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: capitalize;
    border: 1px solid transparent;
}
.badge-pending, .badge-upcoming { background: #fff6e0; color: #8a6508; border-color: #f0d48a; }
.badge-approved, .badge-live, .badge-credit { background: #e8f7ee; color: #146c43; border-color: #b7e0c8; }
.badge-rejected, .badge-debit, .badge-expired { background: #fdecec; color: #a61b1b; border-color: #f3c1c1; }
.badge-completed, .badge-postponed, .badge-scheduled, .badge-continued { background: #eaf0ff; color: #2a5bd7; border-color: #c5d2f7; }
.badge-inactive, .badge-off, .badge-suspended { background: #eef1f4; color: #5d6b78; border-color: #d9dee5; }

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    align-items: end;
    padding: 16px;
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.poster { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; background: #eef3f0; }
.poster-pick { display: grid; gap: 10px; }
.poster-preview {
    width: min(420px, 100%);
    max-height: 280px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #eef3f0;
}
.poster-preview[hidden] { display: none !important; }
.gallery { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery img { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; }
.slider { display: grid; gap: 12px; margin-bottom: 4px; }
.slider img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }

.player-card {
    width: min(380px, 100%);
    background: linear-gradient(165deg, #0e1a14, #10141c 55%, #3a2e10);
    color: #fff;
    border-radius: 22px;
    padding: 24px;
    border: 1px solid var(--line);
}
.player-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 3px solid var(--gold); margin: 0 auto 12px; }
.player-card h2, .player-card p { text-align: center; margin: 4px 0; }

.pagination { display: flex; gap: 6px; list-style: none; padding: 14px 16px; margin: 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--bg-2);
}
.pagination .active span { background: var(--brand); color: #fff; border-color: var(--brand); }

.detail-grid { display: grid; grid-template-columns: 280px 1fr; gap: 18px; }
.kv { width: 100%; }
.kv th { width: 140px; background: transparent; text-transform: none; letter-spacing: 0; font-size: .85rem; }

.sidebar-backdrop { display: none; }

/* Public storefront (header menu, sliders, product-style cards) */
.theme-public {
    --pub-bg: #f3f5f7;
    --pub-ink: #1b1f24;
    --pub-muted: #5d6673;
    --pub-line: #e4e8ee;
    --pub-card: #ffffff;
    --pub-header: #0b3d2e;
    --pub-nav: #072a20;
    background: var(--pub-bg);
    color: var(--pub-ink);
}
.theme-public a { color: #0b6b45; }
.theme-public a:hover { color: #095536; }
.store-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.store-topbar { background: #eef3f0; color: #355046; font-size: .82rem; }
.store-topbar-inner { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.store-header { background: #fff; border-bottom: 1px solid var(--pub-line); }
.store-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.store-logo { display: flex; align-items: center; gap: 10px; color: var(--pub-ink); text-decoration: none; }
.store-logo:hover { color: var(--pub-ink); text-decoration: none; }
.store-logo strong { display: block; font-size: 1.1rem; }
.store-logo small { color: var(--pub-muted); font-size: .75rem; }
.store-header-actions { display: flex; align-items: center; gap: 12px; }
.store-header-actions a { color: var(--pub-ink); font-weight: 600; }
.store-menu-toggle {
    display: none;
    background: var(--pub-header);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}
.store-nav { background: var(--pub-nav); }
.store-nav-inner { display: flex; gap: 4px; overflow: auto; }
.store-nav a {
    color: #d7efe4;
    padding: 13px 16px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .82rem;
    white-space: nowrap;
}
.store-nav a:hover, .store-nav a.active { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.store-flash .flash { margin: 16px 0 0; }
.theme-public .flash-success { background: #e8f7ee; color: #146c43; border: 1px solid #b7e0c8; }
.theme-public .flash-error { background: #fdecec; color: #a61b1b; border: 1px solid #f3c1c1; }
.hero-slider {
    position: relative;
    height: min(460px, 58vw);
    min-height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #0b3d2e, #123018 55%, #1b1408);
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide a { display: block; height: 100%; color: inherit; }
.hero-caption {
    position: absolute;
    left: 8%;
    bottom: 18%;
    z-index: 2;
    color: #fff;
    max-width: 560px;
    text-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.hero-caption h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.6rem); }
.hero-caption p { margin: 0 0 14px; color: #e7eee9; }
.hero-fallback .hero-caption { position: relative; left: auto; bottom: auto; padding: 72px 8%; }
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-dots button {
    width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0;
}
.hero-dots button.is-active { background: #fff; }
.store-section, .store-page { padding: 42px 0 28px; }
.store-section-ads { background: #fff; border-top: 1px solid var(--pub-line); border-bottom: 1px solid var(--pub-line); }
.section-head { text-align: center; margin-bottom: 24px; }
.section-head h1, .section-head h2 { margin: 0 0 6px; font-size: 1.7rem; letter-spacing: .04em; text-transform: uppercase; }
.section-head p { margin: 0 0 12px; color: var(--pub-muted); }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.product-card {
    background: var(--pub-card);
    border: 1px solid var(--pub-line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
}
.product-card a { color: inherit; text-decoration: none; display: block; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(16, 24, 40, .1); }
.product-card-media { position: relative; height: 170px; background: #0f231b; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card-placeholder { height: 100%; display: grid; place-items: center; color: #e0b84c; font-weight: 800; font-size: 1.4rem; }
.product-card-media .badge { position: absolute; top: 10px; left: 10px; }
.product-card-body { padding: 14px; }
.product-card-body h3 { margin: 0 0 6px; font-size: 1rem; }
.product-card-body p { margin: 0 0 4px; font-size: .88rem; }
.product-card-cta { display: inline-block; margin-top: 8px; font-weight: 700; color: #0b6b45; font-size: .85rem; }
.ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.ad-tile {
    background: #fff;
    border: 1px solid var(--pub-line);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: grid;
}
.ad-tile img { width: 100%; height: 140px; object-fit: cover; }
.ad-tile span { padding: 10px 12px; font-weight: 700; font-size: .88rem; }
.store-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    align-items: end;
    background: #fff;
    border: 1px solid var(--pub-line);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 22px;
}
.theme-public .card, .theme-public .table-card {
    background: #fff;
    border-color: var(--pub-line);
    box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
}
.theme-public input, .theme-public select, .theme-public textarea {
    background: #fff;
    color: var(--pub-ink);
    border-color: #cfd6de;
}
.theme-public th { background: #f6f8fa; color: #5d6673; }
.theme-public td, .theme-public th { border-color: var(--pub-line); }
.theme-public tbody tr:hover { background: #f7faf8; }
.theme-public .cell-title { color: var(--pub-ink); }
.theme-public .btn-outline { color: var(--pub-ink); border-color: #cfd6de; background: #fff; }
.theme-public .btn-outline:hover { background: #f3f5f7; color: var(--pub-ink); }
.theme-public .pagination a, .theme-public .pagination span { background: #fff; color: var(--pub-ink); border-color: var(--pub-line); }
.auth-wrap { display: flex; justify-content: center; }
.theme-public .auth-card { width: min(520px, 100%); }
.theme-public .auth-card h1 { margin: 0 0 8px; }
.crumb { color: var(--pub-muted); margin: 0 0 18px; }
.store-footer { background: #0b1210; color: #c9d2cc; padding: 36px 0 18px; margin-top: 20px; }
.store-footer a { color: #d7efe4; display: block; margin: 6px 0; }
.store-footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.store-copy { border-top: 1px solid #1c2a24; margin-top: 24px; padding-top: 14px; font-size: .82rem; color: #8b968f; }
@media (max-width: 800px) {
    .store-menu-toggle { display: inline-flex; }
    .store-header-actions { display: none; }
    .store-nav { display: none; }
    body.nav-open .store-nav { display: block; }
    body.nav-open .store-nav-inner { flex-direction: column; }
    .store-footer-inner { grid-template-columns: 1fr; }
    .hero-caption { left: 16px; right: 16px; bottom: 22%; }
}

.photo-crop { display: grid; gap: 8px; }
.photo-crop-caption {
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.photo-crop-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
.photo-browse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    background: var(--brand);
    color: #fff !important;
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .82rem;
    cursor: pointer;
    border: 1px solid #165c44;
}
.photo-browse:hover { filter: brightness(1.08); color: #fff !important; text-decoration: none; }
.photo-crop-tools { display: flex; gap: 14px; align-items: center; }
.photo-crop-tools[hidden],
.photo-crop-preview[hidden],
.photo-crop [data-photo-hint][hidden] { display: none !important; }
.photo-crop-preview {
    width: 96px; height: 96px; object-fit: cover; border-radius: 50%;
    border: 2px solid #0b3d2e; background: #eef3f0;
}
.pp-crop-modal {
    position: fixed; inset: 0; z-index: 1200;
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.pp-crop-modal[hidden] { display: none !important; }
.pp-crop-backdrop { position: absolute; inset: 0; background: rgba(3, 8, 18, .78); }
.pp-crop-box {
    position: relative; z-index: 1; width: min(640px, 100%);
    background: #fff; border: 1px solid #e4e8ee; border-radius: 16px;
    padding: 16px; box-shadow: 0 20px 60px rgba(16, 24, 40, .18); color: #1b1f24;
}
.pp-crop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pp-crop-head h3 { margin: 0 0 4px; font-size: 1.1rem; }
.pp-crop-head p { margin: 0; color: #5d6673; font-size: .85rem; line-height: 1.4; }
.pp-crop-close { border: 0; background: transparent; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.pp-crop-stage { height: min(420px, 58vh); background: #0f231b; border-radius: 12px; overflow: hidden; }
.pp-crop-stage img { display: block; max-width: 100%; }
.pp-crop-stage .cropper-container { max-height: min(420px, 58vh) !important; }
.pp-crop-stage .cropper-view-box, .pp-crop-stage .cropper-face { border-radius: 0; }
.pp-crop-stage .cropper-face { background-color: inherit !important; }
.pp-crop-stage .cropper-line, .pp-crop-stage .cropper-point { display: none !important; }
.pp-crop-stage .cropper-modal { background-color: rgba(0, 0, 0, .55); }
.pp-crop-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
body.pp-crop-open { overflow: hidden; }

body.is-register .store-topbar,
body.is-register .store-footer { display: none; }
body.is-register .store-page,
.reg-page { padding: 18px 0 24px; }
.reg-panel {
    background: #fff;
    color: #1b1f24;
    border: 1px solid #e4e8ee;
    border-radius: 18px;
    padding: 22px 24px 20px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
}
.reg-head { margin-bottom: 16px; }
.reg-head h1 { margin: 0 0 4px; font-size: 1.55rem; color: #1b1f24; }
.reg-head p { margin: 0; color: #5d6673; font-size: .9rem; }
.reg-form { max-width: none; }
.reg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 14px;
    align-items: start;
}
.reg-span-3 { grid-column: 1 / -1; }
.reg-form label {
    color: #3d4654;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    gap: 5px;
}
.reg-form input, .reg-form select, .reg-form textarea {
    background: #fff;
    color: #1b1f24;
    border-color: #cfd6de;
    padding: 10px 12px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}
.reg-form .muted { color: #5d6673; font-size: .75rem; text-transform: none; letter-spacing: 0; }
.reg-form .errors { text-transform: none; letter-spacing: 0; }
.reg-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.reg-panel .btn-outline { color: #1b1f24; border-color: #cfd6de; background: #fff; }
.reg-panel .btn-outline:hover { background: #f3f5f7; color: #1b1f24; }

@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(280px, 86vw);
        z-index: 40;
        transform: translateX(-105%);
        transition: transform .2s ease;
    }
    body.nav-open .sidebar { transform: none; }
    .menu-toggle { display: inline-flex; }
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.55);
        z-index: 30;
    }
    body.nav-open .sidebar-backdrop { display: block; }
    .detail-grid { grid-template-columns: 1fr; }
    .panel-main, .page-body, .topbar { padding-left: 16px; padding-right: 16px; }
    .form, .form-section, .form-media, .branch-row, .reg-grid { grid-template-columns: 1fr; }
    .reg-panel { padding: 16px; }
}
.auth-card .form { grid-template-columns: 1fr; }

.analytics-page { display: grid; gap: 18px; }
.analytics-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.analytics-filters label {
    display: grid;
    gap: 5px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
}
.analytics-filters input,
.analytics-filters select {
    min-height: 38px;
    min-width: 150px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}
.analytics-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    background: #f4f7f5;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.analytics-tabs a {
    padding: 9px 14px;
    border-radius: 9px;
    color: var(--muted);
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
}
.analytics-tabs a:hover { background: #fff; color: var(--ink); }
.analytics-tabs a.is-active {
    background: #123227;
    color: #fff;
}
.analytics-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.analytics-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 0;
}
.analytics-panel-head h2 { margin: 0; font-size: 1.15rem; }
.analytics-kicker {
    margin: 18px 20px 10px;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
}
.analytics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 0 16px 18px;
}
.analytics-note,
.analytics-empty {
    margin: 12px 16px 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f7faf8;
    border: 1px dashed var(--line);
    color: var(--muted);
}
.analytics-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    min-height: 180px;
    padding: 20px 20px 8px;
    overflow-x: auto;
}
.analytics-bar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 42px;
    flex: 1;
    height: 160px;
}
.analytics-bar {
    width: 100%;
    max-width: 28px;
    background: linear-gradient(180deg, #1d6b4f, #123227);
    border-radius: 6px 6px 2px 2px;
}
.analytics-bar-wrap span {
    font-size: .68rem;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}
.analytics-panel .table-wrap { padding: 8px 4px 8px; }
.analytics-panel .data-table { margin: 0; }
.analytics-back { margin: 0 0 8px; }

.status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.status-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}
.status-tab span {
    min-width: 20px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #eef2f5;
    color: #4b5866;
    font-size: .72rem;
    text-align: center;
}
.status-tab:hover { color: var(--ink); border-color: #cfd8e0; }
.status-tab.is-active {
    background: var(--brand-dim);
    border-color: #b7e0c8;
    color: #0b6b45;
}
.status-tab.is-active span { background: #fff; color: #0b6b45; }

.bc-list { display: grid; gap: 12px; padding: 14px; }
.bc-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 1px 0 rgba(16, 24, 40, .02);
}
.bc-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.bc-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bc-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    background: #e8f7ee;
    border: 1px solid var(--line);
    flex: 0 0 auto;
}
.bc-avatar-fallback {
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #0b6b45;
}
.bc-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.bc-creds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    background: #f6f8fa;
}
.bc-cred { display: grid; gap: 4px; align-content: start; }
.bc-cred span {
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
}
.bc-cred code {
    display: inline-block;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: .92rem;
    font-weight: 700;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 8px;
    word-break: break-all;
}
.bc-cred em { color: var(--muted); font-size: .8rem; }
.bc-cred strong { font-size: 1.15rem; }
.bc-copy {
    width: fit-content;
    border: 0;
    background: transparent;
    color: var(--brand);
    font-size: .75rem;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
}
.bc-copy:hover { color: #095536; }
.bc-link-row { display: flex; gap: 12px; font-weight: 700; }
.bc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    margin-top: 14px;
}
.bc-actions form { margin: 0; }
.bc-more {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    min-width: 140px;
}
.bc-more summary {
    list-style: none;
    cursor: pointer;
    padding: 7px 12px;
    font-size: .82rem;
    font-weight: 700;
    color: #3d4a57;
}
.bc-more summary::-webkit-details-marker { display: none; }
.bc-more[open] { min-width: 220px; }
.bc-more-form {
    display: grid;
    gap: 8px;
    padding: 0 12px 12px;
}
@media (max-width: 720px) {
    .bc-card-top { flex-direction: column; }
    .bc-badges { justify-content: flex-start; }
}
.offer-card h2, .card h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}
.offer-head { margin-bottom: 16px; }
.offer-grid { display: grid; gap: 10px; margin-bottom: 12px; }
.offer-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card-2);
}
.offer-row label { display: grid; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.offer-row input {
    font: inherit;
    font-weight: 700;
    color: var(--ink);
    text-transform: none;
    letter-spacing: 0;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.offer-remove { height: 38px; }
@media (max-width: 820px) {
    .offer-row { grid-template-columns: 1fr 1fr; }
    .offer-remove { grid-column: 1 / -1; }
}

/* Admin console polish — scoped so the public site stays unchanged */
body.theme-admin {
    --bg: #eef2f6;
    --card: #ffffff;
    --card-2: #f6f8fb;
    --line: #e2e8ef;
    --ink: #10202c;
    --muted: #5a6876;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px rgba(16, 24, 40, .05);
    --radius: 14px;
    --sidebar: #0c141c;
    letter-spacing: -.015em;
}
body.theme-admin .sidebar {
    padding: 20px 14px;
}
body.theme-admin .brand-lockup { padding: 6px 10px 20px; }
body.theme-admin .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}
body.theme-admin .sidebar a,
body.theme-admin .sidebar .nav-btn {
    border-radius: 10px;
    padding: 10px 12px;
}
body.theme-admin .sidebar a.active {
    background: rgba(14, 159, 110, .2);
    box-shadow: inset 3px 0 0 #12b37a;
}
body.theme-admin .topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 28px;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 1px 0 rgba(255,255,255,.8);
}
body.theme-admin .page-head h1 {
    font-size: 1.28rem;
    font-weight: 750;
    letter-spacing: -.03em;
}
body.theme-admin .page-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px 28px 48px;
}
body.theme-admin .page-body > .flash,
body.theme-admin .page-body > .admin-alert { margin-bottom: 0; }
body.theme-admin .table-card { border-radius: 16px; }
body.theme-admin .table-toolbar {
    padding: 16px 18px;
    background: #fff;
}
body.theme-admin .table-wrap { overflow: auto; }
body.theme-admin .data-table {
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
}
body.theme-admin .data-table th {
    padding: 12px 16px;
    background: #f7f9fb;
    color: #667280;
    border-bottom: 1px solid var(--line);
    font-size: .72rem;
    letter-spacing: .08em;
}
body.theme-admin .data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f6;
    background: #fff;
}
body.theme-admin .data-table tbody tr:last-child td { border-bottom: 0; }
body.theme-admin .data-table tbody tr:nth-child(even) td { background: #fbfcfd; }
body.theme-admin .data-table tbody tr:hover td { background: #f3faf6; }
body.theme-admin .data-table .thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}
body.theme-admin .data-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
}
body.theme-admin td.actions,
body.theme-admin .actions-cell {
    white-space: normal;
}
body.theme-admin td.actions form,
body.theme-admin .actions-cell form { margin: 0; }
body.theme-admin .filters {
    padding: 16px 18px;
    align-items: end;
}
body.theme-admin .filters .btn { align-self: end; }
body.theme-admin .media-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
body.theme-admin .banner-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
}
body.theme-admin .banner-form input[type="file"] { max-width: 320px; }
body.theme-admin .banner-preview-frame {
    width: min(640px, 100%);
    aspect-ratio: 16 / 7;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #e8eef2;
}
body.theme-admin .banner-preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
body.theme-admin .banner-preview-frame img[hidden] { display: none; }
body.theme-admin .category-image-frame {
    width: min(360px, 100%);
    aspect-ratio: 1.4;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #e8eef2;
}
body.theme-admin .category-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
body.theme-admin .category-image-frame img[hidden] { display: none; }
body.theme-admin .pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
body.theme-admin .empty {
    padding: 32px 18px;
}
body.theme-admin .card,
body.theme-admin .table-card,
body.theme-admin .form-section {
    border-color: var(--line);
    box-shadow: var(--shadow);
}
body.theme-admin .stat-card {
    position: relative;
    overflow: hidden;
    padding: 18px 20px 18px 22px;
    border: 0;
}
body.theme-admin .stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--brand);
}
body.theme-admin .stat-card .label {
    font-size: .7rem;
    letter-spacing: .1em;
}
body.theme-admin .stat { font-size: 1.7rem; }
body.theme-admin th {
    background: #f3f6f9;
    color: #667280;
}
body.theme-admin tbody tr:hover { background: #f4faf7; }
body.theme-admin .btn {
    border-radius: 9px;
    box-shadow: 0 1px 0 rgba(16, 24, 40, .04);
}
body.theme-admin input,
body.theme-admin select,
body.theme-admin textarea {
    border-radius: 9px;
    background: #fff;
}
body.theme-admin .admin-alert {
    border-radius: 14px;
}
body.theme-admin .user-chip {
    background: rgba(255,255,255,.04);
    border-radius: 12px;
    padding: 10px 12px;
}
body.theme-admin .sidebar .nav-btn {
    border-radius: 10px;
}

/* Posters list � compact dashboard */
.posters-table td { vertical-align: middle; }
.posters-table .thumb-poster {
    width: 56px;
    height: 74px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}
.posters-table .cell-sub { max-width: 160px; }

/* Manage Tournament */
.manage-hero { padding: 16px 18px; margin-bottom: 12px; }
.manage-hero-main { display: flex; gap: 16px; align-items: flex-start; }
.thumb-manage {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
}
.manage-title { margin: 0 0 6px; font-size: 1.25rem; }
.manage-meta { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.manage-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
    padding: 4px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.manage-tab {
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 700;
}
.manage-tab:hover { background: var(--card-2); color: var(--ink); text-decoration: none; }
.manage-tab.active {
    background: var(--brand-dim);
    color: #095536;
}
.manage-panel { margin-top: 0; }
.manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}
.manage-stat {
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
}
.manage-stat-label {
    display: block;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.manage-form {
    display: grid;
    gap: 12px;
    max-width: 640px;
}
.manage-form .bc-picker {
    max-width: none;
}
.manage-form-secondary { margin-top: 10px; max-width: 420px; }

/* Live coverage broadcaster picker */
.bc-picker {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}
.bc-picker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.bc-picker-head h4 { margin: 0 0 4px; font-size: 0.95rem; }
.bc-picker-head .muted { margin: 0; }
.bc-picker-list {
    display: grid;
    gap: 8px;
    max-height: 340px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card-2, #f7f9fb);
}
.bc-picker-item {
    display: grid;
    grid-template-columns: 18px 40px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.bc-picker-item:hover {
    border-color: #c5d4cc;
    box-shadow: 0 1px 0 rgba(9, 85, 54, 0.06);
}
.bc-picker-item.is-checked,
.bc-picker-item:has(input:checked) {
    border-color: #095536;
    background: #f2faf6;
}
.bc-picker-item input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #095536;
}
.bc-picker-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    background: #e8eef3;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #095536;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.bc-picker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bc-picker-avatar-sm {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
}
.bc-picker-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.bc-picker-meta strong {
    font-size: 0.92rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.bc-picker-meta .muted {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.bc-picker-check {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid #c9d4dc;
}
.bc-picker-item:has(input:checked) .bc-picker-check {
    border-color: #095536;
    background: #095536;
    box-shadow: inset 0 0 0 3px #fff;
}
.bc-picker-empty { margin: 8px; }
.bc-coverage-row {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(220px, 1fr);
    gap: 12px;
    align-items: stretch;
}
.bc-date-field {
    display: grid;
    gap: 6px;
    margin: 0;
}
.bc-live-toggle {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.bc-live-toggle-inline {
    align-items: center;
}
.bc-live-toggle input { margin-top: 0; accent-color: #c62828; }
.bc-live-toggle span { display: grid; gap: 2px; }
@media (max-width: 720px) {
    .bc-coverage-row { grid-template-columns: 1fr; }
}
.bc-session-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.bc-session-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}
.actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

@media (max-width: 900px) {
    .posters-table .thumb-poster { width: 48px; height: 64px; }
    .manage-hero-main { flex-direction: column; }
    .bc-picker-item { grid-template-columns: 18px 36px 1fr; }
    .bc-picker-check { display: none; }
}

.search-select { position: relative; display: block; }
.search-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.search-select-list {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 240px;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .12);
}
.search-select-list[hidden] { display: none !important; }
.search-select-option,
.search-select-empty {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    color: var(--ink);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 9px 12px;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}
.search-select-empty { color: #667280; cursor: default; }
.search-select-option:hover,
.search-select-option.is-active,
.search-select-option.is-selected { background: #e8f6ef; }
form.filters.table-card,
.form-section { overflow: visible; }
.form-section > .team-entry { grid-column: 1 / -1; }
.format-choices { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.team-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.team-line input,
.team-line .search-select { flex: 1 1 220px; }
.team-line-error { flex-basis: 100%; }
.team-line-add,
.team-line-remove {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.team-line-add { color: #0b6b45; font-weight: 700; }
.team-line-remove { color: #b42318; }
.match-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.match-side-field { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.match-side-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.role-slot { display: grid; gap: 8px; }
.form-section.matches-panel { grid-template-columns: 1fr; }
.matches-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.match-list { display: grid; gap: 14px; }
.match-add-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.match-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.match-card-head { display: flex; align-items: center; }
.match-number {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: #e8f6ef;
    color: #095536;
    font-weight: 800;
}
.match-meta-row {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) 88px minmax(190px, 1.3fr) minmax(120px, .8fr);
    gap: 12px;
    align-items: start;
}
.match-card label { display: grid; gap: 6px; }
.match-card-actions { display: flex; gap: 8px; align-items: center; }
@media (max-width: 800px) {
    .match-board, .match-meta-row { grid-template-columns: 1fr; }
}

