:root {
    --bg: #06070c;
    --bg-soft: #0b0d16;
    --surface: #10121e;
    --surface-2: #151725;
    --surface-3: #1c1e2c;
    --text: #f7f5fb;
    --muted: #a9a7b8;
    --pink: #ff3ebf;
    --pink-soft: #ff79d7;
    --orange: #ff8a21;
    --amber: #ffc05b;
    --cyan: #50d5e7;
    --green: #5de39a;
    --line: rgba(255,255,255,.1);
    --line-pink: rgba(255,62,191,.34);
    --line-orange: rgba(255,138,33,.34);
    --shadow: 0 18px 50px rgba(0,0,0,.32);
    --shell: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
        var(--bg);
    background-size: 44px 44px;
    font-family: Inter, Arial, sans-serif;
    letter-spacing: 0;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 12% 15%, rgba(66,116,174,.1), transparent 31%),
        radial-gradient(circle at 88% 72%, rgba(255,62,191,.08), transparent 30%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(6,7,12,.91);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}
.nav-shell { min-height: 70px; display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 20px; }
.site-brand { width: 176px; height: 54px; display: flex; align-items: center; gap: 9px; }
.site-brand img { width: 42px; height: 42px; object-fit: contain; }
.site-brand span { display: grid; line-height: 1; }
.site-brand b { font: 800 19px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; color: #fff; }
.site-brand small { margin-top: 4px; color: var(--pink-soft); font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 4px; }
.main-nav a {
    padding: 10px 13px;
    color: #c9c7d2;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 5px;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.045); }
.main-nav a.active {
    color: #fff;
    border-color: rgba(255,62,191,.45);
    background: linear-gradient(135deg, rgba(255,62,191,.18), rgba(255,138,33,.12));
    box-shadow: inset 0 -2px var(--pink);
}
.nav-account, .button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 5px;
    background: rgba(255,255,255,.055);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.button:hover, .nav-account:hover { border-color: var(--pink); background: rgba(255,62,191,.11); transform: translateY(-1px); }
.button.primary { border-color: #ff6e58; background: linear-gradient(135deg, #ff783e, #ff3ebf); box-shadow: 0 0 24px rgba(255,62,191,.24); }
.button.secondary { border-color: rgba(80,213,231,.36); background: rgba(80,213,231,.09); }
.button.small { min-height: 34px; padding: 0 12px; font-size: 12px; }
.button.danger { border-color: rgba(255,88,104,.5); background: rgba(255,88,104,.1); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); padding: 10px; }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: #fff; }
.flash-wrap { padding-top: 14px; }
.flash-message { padding: 12px 16px; color: #dfffea; background: rgba(93,227,154,.08); border: 1px solid rgba(93,227,154,.35); border-radius: 5px; }
.flash-error { color: #ffe5e8; background: rgba(255,88,104,.09); border-color: rgba(255,88,104,.42); }

.hero {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #090a11 center/cover no-repeat;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,6,11,.97) 0%, rgba(5,6,11,.78) 37%, rgba(5,6,11,.23) 68%, rgba(5,6,11,.48) 100%);
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(transparent, var(--bg));
}
.hero-city { background-image: url("hero-city-cat.png"); }
.hero-addons { background-image: url("hero-addons.png"); }
.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 590px;
    padding: 94px 0 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 54px;
    align-items: center;
}
.hero-copy { max-width: 650px; }
.kicker {
    margin-bottom: 15px;
    color: var(--pink-soft);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, .display-title {
    margin: 0;
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-size: clamp(54px, 6vw, 86px);
    line-height: .92;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}
.gradient-text {
    color: #fff;
    background: linear-gradient(90deg, #fff 5%, #ffac5e 48%, #ff4dc4 88%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-copy > p { max-width: 610px; margin: 22px 0 0; color: #d4d2dc; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-panel {
    padding: 20px;
    border: 1px solid rgba(255,62,191,.4);
    border-radius: 7px;
    background: rgba(9,10,17,.78);
    box-shadow: var(--shadow), inset 0 0 30px rgba(255,62,191,.05);
    backdrop-filter: blur(14px);
}
.hero-panel-top { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hero-panel h2 { margin: 0; font: 800 22px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.live-dot i, .system-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.event-name { margin: 18px 0 6px; font: 800 26px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; color: var(--amber); }
.hero-panel p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.meta-list { display: grid; gap: 9px; margin-top: 18px; }
.meta-row { display: flex; justify-content: space-between; gap: 14px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 12px; }
.meta-row span { color: var(--muted); }
.meta-row strong { color: #fff; text-align: right; }

.stat-band { position: relative; z-index: 4; margin-top: -26px; }
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(13,15,24,.96);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
}
.stat-item { min-height: 88px; padding: 20px 24px; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: 0; }
.stat-item strong { display: block; font: 800 29px/1 "Barlow Condensed", sans-serif; color: #fff; }
.stat-item span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.section { padding: 58px 0; }
.section.compact { padding: 34px 0; }
.section-alt { background: rgba(13,15,24,.72); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font: 800 clamp(32px, 4vw, 46px)/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.section-head p { max-width: 600px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.eyebrow { margin-bottom: 8px; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.content-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.panel, .card {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: linear-gradient(150deg, rgba(22,24,37,.97), rgba(12,14,23,.97));
    box-shadow: 0 12px 34px rgba(0,0,0,.18);
}
.panel { padding: 20px; }
.card { overflow: hidden; }
.panel h3, .card h3 { margin: 0; font: 800 21px/1.12 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.panel p, .card p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.card-media {
    position: relative;
    min-height: 160px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 35%, rgba(255,62,191,.26), transparent 34%),
        linear-gradient(145deg, #1c1728, #0b0d15);
}
.card-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
    background-size: 22px 22px;
}
.card-glyph { position: relative; font: 800 62px/1 "Barlow Condensed", sans-serif; color: var(--pink-soft); text-shadow: 0 0 28px rgba(255,62,191,.65); }
.card-body { padding: 17px; }
.card-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(255,138,33,.35);
    border-radius: 4px;
    color: var(--amber);
    background: rgba(255,138,33,.07);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.tag.green { border-color: rgba(93,227,154,.35); color: var(--green); background: rgba(93,227,154,.07); }
.tag.pink { border-color: rgba(255,62,191,.4); color: var(--pink-soft); background: rgba(255,62,191,.08); }
.price { margin-top: 14px; font: 800 24px/1 "Barlow Condensed", sans-serif; color: var(--amber); }
.card-actions { display: flex; gap: 8px; margin-top: 15px; }
.filter-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.search-input, .select-input {
    width: 100%;
    min-height: 42px;
    padding: 0 13px;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 5px;
    outline: 0;
    background: #0c0e17;
}
.search-input:focus, .select-input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,62,191,.1); }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-pill { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.filter-pill.active, .filter-pill:hover { color: #fff; border-color: var(--pink); background: rgba(255,62,191,.09); }
.list { display: grid; gap: 0; }
.list-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 58px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.rank { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-orange); border-radius: 4px; color: var(--amber); font: 800 17px/1 "Barlow Condensed", sans-serif; }
.list-row strong { display: block; font-size: 13px; }
.list-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.list-value { color: var(--pink-soft); font-weight: 800; font-size: 12px; text-align: right; }
.empty-state { min-height: 150px; display: grid; place-items: center; padding: 24px; color: var(--muted); text-align: center; border: 1px dashed rgba(255,255,255,.16); border-radius: 5px; background: rgba(255,255,255,.018); }
.status-line { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-dot.online { background: var(--green); box-shadow: 0 0 10px rgba(93,227,154,.7); }
.dashboard-hero { padding: 42px 0 18px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, rgba(255,138,33,.08), transparent 42%, rgba(255,62,191,.08)); }
.dashboard-hero h1 { font-size: clamp(43px, 5vw, 68px); }
.dashboard-hero p { max-width: 680px; color: var(--muted); line-height: 1.6; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.kpi span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.kpi strong { display: block; margin-top: 8px; font: 800 30px/1 "Barlow Condensed", sans-serif; color: #fff; }
.kpi em { display: block; margin-top: 7px; color: var(--green); font-size: 11px; font-style: normal; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 11px 10px; color: var(--muted); text-align: left; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--line); }
td { padding: 12px 10px; border-bottom: 1px solid var(--line); color: #e7e5ec; }
.about-band { min-height: 380px; padding: 78px 0; display: flex; align-items: center; background: linear-gradient(90deg, rgba(6,7,12,.98), rgba(6,7,12,.75)), url("hero-city-cat.png") center/cover; border-bottom: 1px solid var(--line); }
.about-band.cat-bright { background: linear-gradient(90deg, rgba(6,7,12,.97) 0%, rgba(6,7,12,.78) 36%, rgba(6,7,12,.2) 68%, rgba(6,7,12,.34) 100%), url("hero-city-cat.png") center/cover; }
.about-band .hero-copy { max-width: 760px; }
.device-visual { min-height: 220px; padding: 18px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(255,138,33,.1), rgba(255,62,191,.08)), #0d0f18; border-bottom: 1px solid var(--line); }
.device-screen { width: 82%; aspect-ratio: 16/9; display: grid; place-items: center; border: 2px solid var(--pink); border-radius: 5px; background: #070811; box-shadow: 0 0 30px rgba(255,62,191,.24); color: var(--amber); font: 800 18px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.site-footer { margin-top: 28px; padding: 48px 0 20px; border-top: 1px solid var(--line); background: #05060a; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { width: 210px; height: 82px; object-fit: contain; }
.footer-brand p, .site-footer p { max-width: 360px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.site-footer h2 { margin: 8px 0 14px; font: 800 16px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; color: var(--amber); }
.site-footer a { display: block; margin: 9px 0; color: #c7c4d0; font-size: 12px; }
.site-footer a:hover { color: var(--pink-soft); }
.system-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 11px; font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: #777583; font-size: 10px; }

.theme-library-hero { overflow: hidden; position: relative; }
.theme-library-hero::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: min(52vw, 720px);
    opacity: .2;
    pointer-events: none;
    background: linear-gradient(90deg, var(--bg), transparent 36%), url("../themes/default-neon-pulse/preview.png") center/cover;
}
.theme-library-hero .shell { position: relative; z-index: 1; }
.theme-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.theme-summary span { min-width: 130px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 5px; background: rgba(7,8,14,.78); color: var(--muted); font-size: 11px; text-transform: uppercase; }
.theme-summary strong { margin-right: 5px; color: #fff; font: 800 20px/1 "Barlow Condensed", sans-serif; }
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.theme-card { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(150deg, rgba(22,24,37,.98), rgba(9,11,18,.98)); box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.theme-card.locked { opacity: .78; }
.theme-card-preview { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #090a12; border-bottom: 1px solid var(--line); }
.theme-card-preview img { width: 100%; height: 100%; object-fit: cover; }
.theme-card.locked .theme-card-preview img { filter: saturate(.55) brightness(.58); }
.theme-card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.theme-preview-missing { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.theme-card-body { padding: 20px; }
.theme-card-title { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.theme-card-title h3 { margin: 0; font: 800 26px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.theme-card-body > p { min-height: 42px; margin: 12px 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.theme-swatches { display: flex; gap: 5px; }
.theme-swatches i { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.45); border-radius: 50%; box-shadow: 0 0 14px currentColor; }
.theme-assets-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 13px 0; border-block: 1px solid var(--line); }
.theme-assets-list span { padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; color: #716f7d; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.theme-assets-list span.ready { color: #dfffea; border-color: rgba(93,227,154,.28); background: rgba(93,227,154,.05); }
.theme-active-note { margin-top: 12px; color: var(--green); font-size: 11px; font-weight: 700; }
.theme-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.theme-scope-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.theme-scope-actions button { min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; color: #c9c7d2; background: rgba(255,255,255,.035); cursor: pointer; font-size: 10px; font-weight: 700; }
.theme-scope-actions button:hover { color: #fff; border-color: var(--pink); background: rgba(255,62,191,.09); }
.theme-locked-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 16px; color: var(--amber); font-weight: 800; font-size: 12px; }
.device-theme-list { display: grid; border-top: 1px solid var(--line); }
.device-theme-row { min-height: 68px; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.device-theme-row strong, .device-theme-row small { display: block; }
.device-theme-row strong { font-size: 13px; }
.device-theme-row small, .device-theme-row > span:last-child { margin-top: 4px; color: var(--muted); font-size: 10px; }
.theme-help ol { margin: 18px 0 22px; padding-left: 20px; color: var(--muted); font-size: 12px; line-height: 2; }
.form-stack { display: grid; gap: 13px; align-content: start; }
.form-stack label, .asset-slot label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.textarea-input { min-height: 90px; padding-top: 11px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.check-row { display: flex; flex-wrap: wrap; gap: 16px; }
.check-row label { display: flex; align-items: center; gap: 7px; }
.admin-theme-list { display: grid; gap: 16px; }
.admin-theme { padding: 0; overflow: hidden; }
.admin-theme-head { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px; }
.admin-theme-thumb { width: 180px; aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #080910; }
.admin-theme-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-theme-head p { margin-bottom: 0; }
.admin-theme-status { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.admin-theme details { border-top: 1px solid var(--line); }
.admin-theme summary { padding: 14px 16px; color: #d8d6df; cursor: pointer; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.admin-theme summary:hover { background: rgba(255,255,255,.025); }
.detail-form { padding: 4px 16px 18px; }
.asset-slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 4px 16px 18px; }
.asset-slot { min-width: 0; display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: rgba(5,6,11,.45); }
.asset-slot-preview { aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: #080910; font-size: 10px; text-transform: uppercase; }
.asset-slot-preview img { width: 100%; height: 100%; object-fit: cover; }
.asset-slot strong { font-size: 12px; }
.asset-slot small { color: var(--muted); font-size: 9px; }
.file-field { min-height: 38px; padding: 9px; border: 1px dashed rgba(255,255,255,.2); border-radius: 4px; }
.file-field input { max-width: 100%; margin-top: 4px; color: #aaa7b4; font-size: 9px; }
.theme-assignment-section { border-top: 1px solid var(--line); background: linear-gradient(135deg, rgba(255,138,33,.045), transparent 45%, rgba(255,62,191,.045)); }
.assignment-console { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(150px, .7fr) minmax(260px, 1.5fr) minmax(170px, .8fr) auto; gap: 10px; align-items: end; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: rgba(9,10,17,.82); box-shadow: 0 18px 50px rgba(0,0,0,.2); }
.assignment-console label { min-width: 0; display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.assignment-target[hidden] { display: none; }
.assignment-submit { white-space: nowrap; }
.assignment-order { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 22px; }
.assignment-order span { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.02); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.assignment-order b { width: 17px; height: 17px; display: grid; place-items: center; color: #080910; border-radius: 50%; background: var(--amber); font-size: 9px; }
.assignment-table { padding: 0; overflow: hidden; }
.assignment-table-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 16px; border-bottom: 1px solid var(--line); }
.assignment-table-head h3 { margin: 3px 0 0; }
.assignment-table-head p { max-width: 440px; margin: 0; color: var(--muted); font-size: 11px; text-align: right; }
.assignment-table td { vertical-align: middle; }
.assignment-kind { display: inline-block; margin-bottom: 5px; color: var(--amber); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.assignment-target-title, .assignment-target-detail { display: block; }
.assignment-target-title { color: #fff; font-size: 12px; }
.assignment-target-detail { max-width: 340px; margin-top: 4px; overflow-wrap: anywhere; color: var(--muted); font-size: 9px; }
.assignment-remove-cell { text-align: right; }

@media (max-width: 980px) {
    .nav-shell { grid-template-columns: 1fr auto auto; }
    .nav-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 70px; left: 20px; right: 20px; padding: 10px; flex-direction: column; align-items: stretch; background: #0a0c13; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px; }
    .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 74px; }
    .hero-panel { max-width: 520px; }
    .content-sidebar { grid-template-columns: 1fr; }
    .grid.four, .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .grid.three { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .footer-grid > :last-child { grid-column: 2 / -1; }
    .theme-grid { grid-template-columns: 1fr; }
    .asset-slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-theme-head { grid-template-columns: 140px minmax(0, 1fr); }
    .admin-theme-thumb { width: 140px; }
    .admin-theme-status { grid-column: 1 / -1; justify-content: flex-start; }
    .assignment-console { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .assignment-submit { width: 100%; }
}
@media (max-width: 680px) {
    .shell { width: min(calc(100% - 24px), var(--shell)); }
    .nav-shell { min-height: 62px; gap: 8px; }
    .site-brand { width: 132px; height: 46px; }
    .site-brand img { width: 36px; height: 36px; }
    .site-brand b { font-size: 17px; }
    .main-nav { top: 62px; left: 12px; right: 12px; }
    .nav-account { min-height: 36px; padding-inline: 10px; }
    .hero, .hero-inner { min-height: 620px; }
    .hero-inner { padding: 62px 0 58px; }
    .hero::before { background: linear-gradient(90deg, rgba(5,6,11,.96), rgba(5,6,11,.66)); }
    h1, .display-title { font-size: 52px; }
    .hero-copy > p { font-size: 15px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: 0; }
    .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .section { padding: 42px 0; }
    .section-head { display: block; }
    .section-head p { margin-top: 12px; }
    .grid.two, .grid.three, .grid.four, .kpi-grid { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-grid > :last-child { grid-column: auto; }
    .footer-bottom { display: grid; }
    .theme-library-hero::after { width: 100%; opacity: .1; }
    .theme-card-body { padding: 16px; }
    .theme-locked-row, .device-theme-row { align-items: start; }
    .device-theme-row { grid-template-columns: 12px minmax(0, 1fr); padding: 12px 0; }
    .device-theme-row > span:last-child { grid-column: 2; }
    .form-grid, .asset-slot-grid { grid-template-columns: 1fr; }
    .admin-theme-head { grid-template-columns: 1fr; }
    .admin-theme-thumb { width: 100%; }
    .assignment-console { grid-template-columns: 1fr; }
    .assignment-table-head { display: block; }
    .assignment-table-head p { margin-top: 8px; text-align: left; }
}
