/* ============================================================
   Ashtirak IPTV — App Stylesheet (dark theme)
   ============================================================ */
:root {
    --bg: #0a0e17;
    --bg2: #0e1422;
    --card: #131b2e;
    --card2: #182238;
    --border: #22304e;
    --text: #e8edf8;
    --muted: #8fa0c2;
    --accent: #7c5cff;
    --accent2: #00c2d4;
    --green: #22c55e;
    --red: #ef4444;
    --amber: #f59e0b;
    --blue: #3b82f6;
    --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: radial-gradient(1200px 600px at 80% -10%, #1a2445 0%, var(--bg) 55%) fixed, var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: #0b1120; border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; font-size: .85em; word-break: break-all; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt-6 { margin-top: 6px; } .mt-10 { margin-top: 10px; } .mt-14 { margin-top: 14px; } .mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.space-between { justify-content: space-between; }
.grow { flex: 1; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; border: 1px solid var(--border); border-radius: 10px;
    padding: 9px 16px; font-size: .95rem; font-weight: 600; cursor: pointer;
    background: var(--card2); color: var(--text); text-decoration: none !important;
    transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
    line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.btn:active { transform: translateY(0); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none; color: #fff;
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(124,92,255,.4); }
.btn-danger { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.45); color: #fca5a5; }
.btn-danger:hover { background: rgba(239,68,68,.25); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 10px; font-size: .82rem; border-radius: 8px; }
.btn-lg { padding: 13px 34px; font-size: 1.05rem; border-radius: 12px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; letter-spacing: .2px; }
.field input[type=text], .field input[type=password], .field input[type=email], .field input[type=number],
.field input[type=url], .field select, .field textarea,
input[type=text], input[type=password], input[type=email], input[type=number], input[type=url] {
    width: 100%; padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--border); background: #0d1526; color: var(--text);
    font-size: .95rem; font-family: inherit; outline: none; transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.18);
}
.field input[type=file] {
    width: 100%; padding: 9px; border-radius: 10px; border: 1px dashed var(--border);
    background: #0d1526; color: var(--muted); font-size: .88rem;
}
.field input[type=file]::file-selector-button {
    background: var(--card2); color: var(--text); border: 1px solid var(--border);
    border-radius: 8px; padding: 7px 12px; margin-right: 10px; cursor: pointer; font-size: .85rem;
}
.field textarea { resize: vertical; }
select option { background: #101a30; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.form-grid.four { grid-template-columns: 2fr 1fr 2fr 2fr; }
.form-full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; margin-top: 16px; align-items: center; flex-wrap: wrap; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; padding: 8px 0; }
.radio { display: flex; align-items: center; gap: 7px; font-size: .9rem; color: var(--text); cursor: pointer; font-weight: 500; }
.radio input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---------- Badges ---------- */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: .78rem; font-weight: 700; letter-spacing: .2px; white-space: nowrap;
    background: var(--card2); border: 1px solid var(--border); color: var(--text);
}
.badge-green { background: rgba(34,197,94,.13); border-color: rgba(34,197,94,.4); color: #86efac; }
.badge-red { background: rgba(239,68,68,.13); border-color: rgba(239,68,68,.4); color: #fca5a5; }
.badge-blue { background: rgba(59,130,246,.13); border-color: rgba(59,130,246,.4); color: #93c5fd; }
.badge-amber { background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.4); color: #fcd34d; }
.badge-grey { background: rgba(148,163,184,.1); border-color: rgba(148,163,184,.3); color: var(--muted); }

/* ---------- Flash ---------- */
.flash {
    padding: 12px 16px; border-radius: 12px; margin: 14px 0; font-size: .93rem; font-weight: 500;
    border: 1px solid; animation: fadeIn .25s ease;
}
.flash-ok { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.35); color: #bbf7d0; }
.flash-err { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.35); color: #fecaca; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; }
.brand-logo {
    width: 46px; height: 46px; border-radius: 13px; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(0,194,212,.25));
    border: 1px solid var(--border);
}
.brand.big .brand-logo { width: 72px; height: 72px; font-size: 2.3rem; border-radius: 18px; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: .2px; }
.brand.big .brand-name { font-size: 1.7rem; }
.brand-sub { font-size: .78rem; color: var(--muted); }

/* ---------- Landing / Auth ---------- */
.landing, .auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 30px 16px; }
.landing-inner { max-width: 900px; width: 100%; text-align: center; }
.landing .brand.big { justify-content: center; margin-bottom: 34px; }
.landing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0; }
.lcard {
    background: linear-gradient(180deg, var(--card), var(--bg2));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px 18px; transition: transform .15s ease, border .15s;
}
.lcard:hover { transform: translateY(-4px); border-color: var(--accent); }
.lcard-ic { font-size: 2rem; margin-bottom: 10px; }
.lcard h3 { font-size: 1.05rem; margin-bottom: 6px; }
.lcard p { color: var(--muted); font-size: .88rem; }

.auth-card {
    width: 100%; max-width: 430px; background: linear-gradient(180deg, var(--card), var(--bg2));
    border: 1px solid var(--border); border-radius: 20px; padding: 34px 32px;
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.auth-card .brand { justify-content: center; margin-bottom: 24px; }

/* ---------- Topbar ---------- */
.topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 22px; border-bottom: 1px solid var(--border);
    background: rgba(10,14,23,.82); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 50;
}
.topbar .brand-name { font-size: 1rem; }
.topbar .brand-logo { width: 38px; height: 38px; font-size: 1.15rem; border-radius: 10px; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wrap { max-width: 1250px; margin: 0 auto; padding: 24px 22px 60px; }
.page-title { font-size: 1.5rem; font-weight: 800; margin: 4px 0 18px; }

/* ---------- Tabs & chips ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab {
    padding: 9px 20px; border-radius: 999px; font-weight: 700; font-size: .92rem;
    background: var(--card); border: 1px solid var(--border); color: var(--muted);
    text-decoration: none !important; transition: all .15s;
}
.tab:hover { color: var(--text); border-color: var(--accent); }
.tab.active { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; border: none; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
    padding: 5px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600;
    background: var(--card); border: 1px solid var(--border); color: var(--muted); text-decoration: none !important;
}
.chip:hover { color: var(--text); }
.chip.active { background: var(--card2); color: var(--text); border-color: var(--accent); }
.search-form { display: flex; gap: 8px; max-width: 340px; flex: 1; }
.search-form input { flex: 1; }

/* ---------- Card grid ---------- */
.grid-cards {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px; margin-top: 18px;
}
.grid-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; text-decoration: none !important; color: var(--text);
    transition: transform .15s ease, border .15s, box-shadow .15s;
    display: block;
}
.grid-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.thumb {
    position: relative; aspect-ratio: 16/10; background: #0d1526;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { font-size: 2.6rem; opacity: .8; }
.live-dot {
    position: absolute; top: 8px; left: 8px; font-size: .62rem; font-weight: 800; letter-spacing: 1px;
    background: rgba(239,68,68,.9); color: #fff; padding: 3px 8px; border-radius: 6px;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.year-tag {
    position: absolute; bottom: 8px; right: 8px; font-size: .7rem; font-weight: 700;
    background: rgba(0,0,0,.7); padding: 2px 8px; border-radius: 6px;
}
.grid-card .meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.grid-card .meta b { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-card .meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-ic { font-size: 3.4rem; margin-bottom: 12px; }

/* ---------- Player ---------- */
.player-wrap { display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }
.player-box {
    background: #000; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); aspect-ratio: 16/9;
}
.player-box video { width: 100%; height: 100%; display: block; background: #000; }
.player-info { margin-top: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.player-title { font-size: 1.25rem; font-weight: 800; }
.player-desc { margin-top: 10px; color: var(--muted); font-size: .92rem; }
.player-side { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; max-height: 80vh; overflow-y: auto; }
.player-side h3 { font-size: .95rem; margin: 10px 0 8px; display: flex; align-items: center; gap: 8px; }
.side-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.side-item {
    display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px;
    color: var(--text); font-size: .88rem; text-decoration: none !important;
    border: 1px solid transparent;
}
.side-item:hover { background: var(--card2); border-color: var(--border); }
.side-ic { opacity: .8; }

/* ---------- Admin layout ---------- */
.admin-body { display: flex; min-height: 100vh; }
.sidebar {
    width: 248px; flex-shrink: 0; border-right: 1px solid var(--border);
    background: var(--bg2); padding: 20px 14px; display: flex; flex-direction: column; gap: 20px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { padding: 0 8px 14px; border-bottom: 1px solid var(--border); }
.side-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.side-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
    color: var(--muted); font-weight: 600; font-size: .92rem; text-decoration: none !important;
    transition: all .12s;
}
.side-item:hover { background: var(--card); color: var(--text); }
.side-item.active {
    background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(0,194,212,.16));
    color: #fff; border: 1px solid rgba(124,92,255,.4);
}
.side-ic { font-size: 1.05rem; width: 22px; text-align: center; }
.side-user {
    display: flex; align-items: center; gap: 10px; padding: 12px 10px;
    border-top: 1px solid var(--border);
}
.side-user-ic {
    width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent2)); font-weight: 800; color: #fff;
}
.side-user-info { flex: 1; min-width: 0; }
.side-user-info b { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-info span { font-size: .75rem; }
.side-logout { border: none; }

.admin-main { flex: 1; min-width: 0; }
.admin-topbar h1.page-h1 { font-size: 1.3rem; font-weight: 800; }
.content { padding: 22px 26px 70px; max-width: 1400px; }

/* ---------- Cards, stats, tables ---------- */
.card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 22px; margin-bottom: 18px;
}
.card h3 { font-size: 1.02rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.two-col.top { grid-template-columns: 460px 1fr; }
.form-card { position: relative; }
.section-h { font-size: 1.15rem; margin: 26px 0 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(180deg, var(--card), var(--bg2));
    border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
}
.stat-ic {
    width: 46px; height: 46px; border-radius: 12px; font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(0,194,212,.2));
    border: 1px solid var(--border);
}
.stat-val { font-size: 1.35rem; font-weight: 800; }
.stat-lbl { color: var(--muted); font-size: .8rem; }

.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th {
    text-align: left; color: var(--muted); font-size: .75rem; text-transform: uppercase;
    letter-spacing: .8px; padding: 8px 10px; border-bottom: 1px solid var(--border);
}
.table td { padding: 11px 10px; border-bottom: 1px solid rgba(34,48,78,.55); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(124,92,255,.05); }
.row-disabled { opacity: .45; }
.row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.mini { width: auto !important; padding: 6px 9px !important; font-size: .82rem !important; }
.credit-row { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.dur-row input, .dur-row select { width: auto; }

.quick-actions { display: flex; flex-direction: column; gap: 10px; }
.quick-actions .btn { text-align: left; }

.img-thumb { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; background: #0d1526; border: 1px solid var(--border); }
.poster-thumb { width: 44px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

/* file list (channel playlist) */
.file-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.file-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: #0d1526; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-size: .86rem;
}

/* upload progress */
.upload-progress {
    position: relative; height: 18px; border-radius: 9px; background: #0d1526;
    border: 1px solid var(--border); overflow: hidden; margin-top: 8px; display: none;
}
.upload-progress.active { display: block; }
.progress-fill {
    position: absolute; inset: 0 auto 0 0; width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .2s ease;
}
.progress-label {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

/* details (add episode) */
.add-ep { margin-top: 14px; }
.add-ep summary { cursor: pointer; font-weight: 700; color: var(--accent2); padding: 10px 14px; border-radius: 10px; background: var(--card2); list-style: none; }
.add-ep summary::-webkit-details-marker { display: none; }
.add-ep[open] summary { margin-bottom: 14px; }
.inline-forms { display: block; }

.token { user-select: all; }

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
    .two-col, .two-col.top { grid-template-columns: 1fr; }
    .player-wrap { grid-template-columns: 1fr; }
    .form-grid.three, .form-grid.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .admin-body { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .side-nav { flex-direction: row; flex-wrap: wrap; }
    .side-user { border-top: none; border-left: 1px solid var(--border); padding-left: 14px; }
    .landing-cards { grid-template-columns: 1fr; }
    .form-grid, .form-grid.three, .form-grid.four { grid-template-columns: 1fr; }
    .grid-cards { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ============================================================
   Phase 2 — Liquid-glass theme + light mode
   ============================================================ */
:root {
    --glass-bg: rgba(19, 27, 46, 0.55);
    --glass-bg2: rgba(24, 34, 56, 0.5);
    --glass-border: rgba(148, 178, 255, 0.14);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
:root[data-theme="light"] {
    --bg: #eef1f8;
    --bg2: #e6eaf4;
    --card: rgba(255, 255, 255, 0.72);
    --card2: rgba(255, 255, 255, 0.85);
    --border: #cdd6ea;
    --text: #16213a;
    --muted: #5a6a8c;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-bg2: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-shadow: 0 8px 28px rgba(38, 60, 120, 0.14);
    --accent: #6d4aff;
    --accent2: #00a7c4;
}
:root[data-theme="light"] body {
    background:
        radial-gradient(1100px 500px at 85% -10%, rgba(109, 74, 255, 0.18) 0%, transparent 55%),
        radial-gradient(900px 500px at -10% 110%, rgba(0, 167, 196, 0.16) 0%, transparent 55%),
        var(--bg) fixed;
}

/* Glass surfaces */
.card, .auth-card, .stat-card, .lcard, .grid-card, .player-side, .player-info {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border-radius: 18px;
}
:root[data-theme="light"] .card, :root[data-theme="light"] .auth-card,
:root[data-theme="light"] .stat-card, :root[data-theme="light"] .lcard,
:root[data-theme="light"] .grid-card {
    background: var(--card);
}
.topbar {
    background: var(--glass-bg);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    border-bottom: 1px solid var(--glass-border);
}
.sidebar {
    background: var(--glass-bg);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    border-right: 1px solid var(--glass-border);
}
:root[data-theme="light"] .field input[type=text], :root[data-theme="light"] .field input[type=password],
:root[data-theme="light"] .field input[type=email], :root[data-theme="light"] .field input[type=number],
:root[data-theme="light"] .field select, :root[data-theme="light"] .field textarea,
:root[data-theme="light"] input[type=text], :root[data-theme="light"] input[type=password],
:root[data-theme="light"] input[type=email], :root[data-theme="light"] input[type=number] {
    background: rgba(255, 255, 255, 0.85);
    border-color: #c4cee6;
    color: var(--text);
}
:root[data-theme="light"] code { background: rgba(22, 33, 58, 0.06); border-color: #cdd6ea; color: #16213a; }
:root[data-theme="light"] .flash-ok { background: rgba(34,197,94,.12); color: #14532d; }
:root[data-theme="light"] .flash-err { background: rgba(239,68,68,.1); color: #7f1d1d; }
:root[data-theme="light"] .table th { color: var(--muted); }

/* Theme toggle */
#theme-toggle { border: 1px solid var(--border); font-size: 1rem; padding: 6px 9px; }

/* Pagination & small utilities */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
[data-copy] { cursor: pointer; }
[title][data-copy]:hover::after { content: ' ⧉'; opacity: .6; }

/* Subtle entrance */
.content > .card, .stat-card { animation: rise .25s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* Subscription management: same theme, consistent native fields and responsive tables. */
input:not([type]), input[type=date], input[type=datetime-local], .inline-form select, .row > select {
    width:100%; padding:10px 12px; border-radius:10px; border:1px solid var(--border);
    background:#0d1526; color:var(--text); font-size:.95rem; font-family:inherit;
}
:root[data-theme="light"] input:not([type]), :root[data-theme="light"] input[type=date],
:root[data-theme="light"] input[type=datetime-local], :root[data-theme="light"] .inline-form select,
:root[data-theme="light"] .row > select {background:rgba(255,255,255,.85);border-color:#c4cee6;}
.form-grid > *, .field {min-width:0;}
.bouquet-picker [data-bouquet-row] {padding:8px;border:1px solid var(--border);border-radius:10px;margin:4px;}
.bouquet-picker [data-bouquet-row] label {display:inline;font-size:.82rem;}
.bouquet-picker input[type=checkbox] {accent-color:var(--accent);}
.bouquet-picker [data-move] {padding:3px 7px;}
.card > summary {cursor:pointer;padding:4px 0;}
.table[data-sortable] {min-width:1140px;}
.table[data-sortable] td {vertical-align:top;}
.table[data-sortable] td:last-child {min-width:280px;}
.table[data-sortable] td code {white-space:nowrap;}
.table[data-sortable] th .btn {padding:4px;text-align:left;font-size:.76rem;white-space:normal;}
.inline-form select {max-width:260px;}
.row {flex-wrap:wrap;}
@media(max-width:760px){
 .sidebar {display:flex;flex-direction:column;align-items:stretch;gap:10px;height:auto;}
 .sidebar .brand {align-self:flex-start;}
 .side-nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;width:100%;}
 .side-item {padding:8px;font-size:.8rem;}
 .side-user {width:100%;}
 .admin-body {display:block;}
 .admin-main {width:100%;}
 .admin-topbar {position:static;}
 .content {padding:16px 12px 40px;}
 .form-grid.three,.form-grid {grid-template-columns:minmax(0,1fr);}
 .badge {white-space:normal;}
 .row > input,.row > select {min-width:0;max-width:100%;}
}
