:root {
    --bg: #09070d;
    --panel: rgba(18, 13, 26, .86);
    --panel-solid: #120d1a;
    --panel-2: #191123;
    --border: rgba(173, 111, 255, .16);
    --border-strong: rgba(173, 111, 255, .34);
    --text: #f3eff8;
    --muted: #a99eb5;
    --purple: #8b5cf6;
    --purple-2: #b76cff;
    --danger: #ef5b72;
    --success: #54d39a;
    --shadow: 0 28px 80px rgba(0, 0, 0, .42);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(100, 46, 152, .16), transparent 34rem),
        radial-gradient(circle at 90% 25%, rgba(117, 60, 195, .10), transparent 35rem),
        linear-gradient(145deg, #08060b 0%, #0b0710 52%, #070609 100%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.ambient {
    position: fixed;
    pointer-events: none;
    filter: blur(80px);
    border-radius: 999px;
    opacity: .35;
    z-index: -1;
}

.ambient-one {
    width: 24rem;
    height: 24rem;
    top: 10%;
    left: -9rem;
    background: #5d2e9d;
}

.ambient-two {
    width: 19rem;
    height: 19rem;
    right: -7rem;
    bottom: 5%;
    background: #32194e;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 18px clamp(20px, 4vw, 60px);
    background: rgba(8, 6, 11, .78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand strong {
    font-size: 1.15rem;
    letter-spacing: .02em;
}

.brand strong span,
.login-card h1 span {
    color: var(--purple-2);
}

.brand-mark {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 1.65rem;
    font-weight: 900;
    color: white;
    background:
        linear-gradient(145deg, rgba(174, 98, 255, .9), rgba(81, 41, 129, .9));
    box-shadow:
        0 0 0 1px rgba(255,255,255,.12) inset,
        0 0 32px rgba(139,92,246,.25);
}

.brand-mark.small {
    width: 43px;
    height: 43px;
    border-radius: 13px;
    font-size: 1.1rem;
}

.eyebrow {
    color: #9d84bd;
    font-size: .69rem;
    line-height: 1.4;
    letter-spacing: .18em;
    font-weight: 800;
}

.top-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-chip {
    color: var(--muted);
    font-size: .85rem;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.025);
}

.page {
    width: min(1480px, calc(100% - 40px));
    margin: 0 auto;
    padding: 44px 0 70px;
}

.page.narrow {
    width: min(1100px, calc(100% - 40px));
}

.hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.hero.compact {
    align-items: start;
}

.hero h1 {
    margin: 6px 0 8px;
    font-size: clamp(2rem, 5vw, 3.9rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.hero p {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 750;
    font-size: .88rem;
    transition: .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, #7c4ce8, #a75de9);
    box-shadow: 0 9px 30px rgba(125, 76, 232, .22);
}

.btn-secondary {
    background: rgba(139,92,246,.12);
    border-color: rgba(168,110,255,.28);
    color: #d9c6f7;
}

.btn-ghost {
    background: rgba(255,255,255,.035);
    border-color: rgba(255,255,255,.08);
    color: #c8bfce;
}

.btn-danger {
    background: rgba(239,91,114,.08);
    border-color: rgba(239,91,114,.20);
    color: #ff90a3;
}

.btn-full {
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card,
.section-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.026), transparent 30%),
        var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.stat-card {
    padding: 20px;
    border-radius: 17px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: .77rem;
    margin-bottom: 8px;
}

.stat-card strong {
    font-size: 1.55rem;
}

.stat-card.accent {
    border-color: var(--border-strong);
}

.section-card {
    border-radius: var(--radius);
    overflow: hidden;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 25px;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.section-head h2 {
    margin: 4px 0 0;
    font-size: 1.2rem;
}

.effects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 20px;
}

.effect-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    overflow: hidden;
    min-height: 220px;
    background: rgba(11, 8, 15, .74);
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 17px;
    transition: .18s ease;
}

.effect-card:hover {
    border-color: rgba(167, 93, 233, .28);
    transform: translateY(-2px);
}

.effect-card.is-disabled {
    opacity: .55;
}

.effect-preview {
    position: relative;
    min-height: 220px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(145deg, rgba(92, 48, 142, .18), rgba(17, 12, 23, .8));
    overflow: hidden;
}

.effect-preview img,
.effect-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-badge {
    position: absolute;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(4,3,7,.68);
    border: 1px solid rgba(255,255,255,.14);
}

.audio-icon {
    font-size: 3.2rem;
    color: #c5a2ff;
    text-shadow: 0 0 30px rgba(167, 93, 233, .45);
}

.effect-body {
    display: flex;
    flex-direction: column;
    padding: 18px;
}

.effect-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.effect-title-row h3 {
    margin: 0 0 6px;
    font-size: 1.14rem;
}

.effect-title-row code {
    color: #c7a7ef;
    font-weight: 700;
}

.status-dot {
    white-space: nowrap;
    color: #9e93a7;
    font-size: .72rem;
    font-weight: 750;
}

.status-dot.on {
    color: var(--success);
}

.status-dot::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 99px;
    margin-right: 6px;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.meta-grid div {
    padding: 10px 12px;
    border-radius: 11px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.045);
}

.meta-grid span {
    display: block;
    color: var(--muted);
    font-size: .7rem;
    margin-bottom: 4px;
}

.meta-grid strong {
    font-size: .82rem;
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.card-actions form {
    margin: 0;
}

.empty-state {
    padding: 80px 24px;
    text-align: center;
}

.empty-icon {
    font-size: 2.3rem;
    color: #a868ec;
}

.empty-state h3 {
    margin: 12px 0 7px;
}

.empty-state p {
    color: var(--muted);
    margin: 0 0 22px;
}

.flash-wrap {
    margin: 0 0 18px;
}

.flash {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.045);
    font-size: .9rem;
}

.flash.success {
    color: #9af0c5;
    background: rgba(84,211,154,.08);
    border-color: rgba(84,211,154,.20);
}

.flash.error {
    color: #ff9bad;
    background: rgba(239,91,114,.08);
    border-color: rgba(239,91,114,.20);
}

.login-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell {
    width: min(430px, 100%);
}

.login-card {
    padding: 38px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.028), transparent 24%),
        rgba(17,12,24,.90);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.login-card .brand-mark {
    margin-bottom: 24px;
}

.login-card h1 {
    margin: 5px 0 5px;
    font-size: 3rem;
    letter-spacing: -.06em;
}

.muted {
    color: var(--muted);
    margin: 0 0 26px;
}

.form-stack {
    display: grid;
    gap: 15px;
}

.form-stack label,
.form-grid label,
.media-options label {
    display: grid;
    gap: 8px;
}

label > span {
    font-size: .78rem;
    color: #c4b8cd;
    font-weight: 700;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="file"],
input:not([type]) {
    width: 100%;
    min-height: 45px;
    padding: 10px 12px;
    color: var(--text);
    background: rgba(7,5,10,.72);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 11px;
    outline: none;
}

input:focus {
    border-color: rgba(167,93,233,.55);
    box-shadow: 0 0 0 3px rgba(139,92,246,.09);
}

small {
    color: var(--muted);
}

.editor-grid {
    display: grid;
    gap: 18px;
}

.form-card {
    padding-bottom: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 24px 25px 0;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.media-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 22px 25px 0;
}

.inline-input {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
}

.inline-input em {
    color: var(--muted);
    font-size: .78rem;
    font-style: normal;
}

.range-row {
    min-height: 45px;
    display: grid;
    grid-template-columns: 1fr 58px;
    align-items: center;
    gap: 12px;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--purple);
}

.range-row strong {
    text-align: right;
    font-size: .85rem;
}

.info-box {
    margin: 22px 25px 0;
    padding: 15px 16px;
    border-radius: 13px;
    background: rgba(139,92,246,.07);
    border: 1px solid rgba(139,92,246,.17);
}

.info-box strong {
    font-size: .84rem;
}

.info-box p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.55;
}

.permission-switch {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 24px 25px 0;
}

.radio-card {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.07);
    cursor: pointer;
}

.radio-card:has(input:checked) {
    background: rgba(139,92,246,.09);
    border-color: rgba(167,93,233,.38);
}

.radio-card input {
    margin-top: 3px;
    accent-color: var(--purple);
}

.radio-card span {
    display: grid;
    gap: 4px;
}

.radio-card strong {
    font-size: .89rem;
}

.radio-card small {
    line-height: 1.45;
}

.user-picker {
    margin: 18px 25px 0;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 15px;
    overflow: hidden;
}

.search-box {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.picker-toolbar {
    display: flex;
    gap: 12px;
    padding: 9px 12px;
    background: rgba(255,255,255,.018);
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.text-button {
    border: 0;
    padding: 0;
    color: #b996e8;
    background: transparent;
    cursor: pointer;
    font-size: .77rem;
    font-weight: 700;
}

.user-list {
    max-height: 330px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    cursor: pointer;
}

.user-row:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,.04);
}

.user-row:hover {
    background: rgba(139,92,246,.045);
}

.user-row input {
    accent-color: var(--purple);
}

.avatar-letter {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #d8c5f2;
    background: rgba(139,92,246,.12);
    border: 1px solid rgba(139,92,246,.16);
    font-size: .76rem;
    font-weight: 900;
}

.user-name {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.user-name strong {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .82rem;
}

.user-name small {
    font-size: .67rem;
}

.editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 1000px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .effects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page {
        width: min(100% - 24px, 1480px);
        padding-top: 28px;
    }

    .topbar {
        padding-inline: 14px;
    }

    .user-chip {
        display: none;
    }

    .hero {
        align-items: stretch;
        flex-direction: column;
    }

    .stats-grid,
    .form-grid,
    .media-options,
    .permission-switch,
    .user-list {
        grid-template-columns: 1fr;
    }

    .effect-card {
        grid-template-columns: 1fr;
    }

    .effect-preview {
        min-height: 180px;
        max-height: 240px;
    }

    .user-row:nth-child(odd) {
        border-right: 0;
    }

    .login-card {
        padding: 28px 22px;
    }
}


.event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.event-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.025), transparent 24%),
        rgba(17,12,24,.88);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.event-card.is-disabled {
    opacity: .55;
}

.event-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.event-symbol {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #d8c5f5;
    background: rgba(139,92,246,.12);
    border: 1px solid rgba(167,93,233,.22);
    font-size: 1.25rem;
    box-shadow: 0 0 24px rgba(139,92,246,.08);
}

.event-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.event-title-row h2 {
    margin: 0;
    font-size: 1.08rem;
}

.event-card p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.5;
}

.event-assets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.asset-summary {
    min-width: 0;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.05);
}

.asset-summary span,
.current-file span,
.current-media span {
    display: block;
    color: var(--muted);
    font-size: .68rem;
    margin-bottom: 4px;
}

.asset-summary strong {
    display: block;
    font-size: .82rem;
}

.asset-summary small {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .65rem;
}

.muted-value {
    color: #776d7f;
}

.event-rule {
    padding: 9px 11px;
    border-radius: 10px;
    color: #c7a8ed;
    background: rgba(139,92,246,.06);
    border: 1px solid rgba(139,92,246,.12);
    font-size: .76rem;
    font-weight: 700;
}

.event-note {
    margin-top: 18px;
}

.one-col {
    grid-template-columns: 1fr;
}

.toggle-line {
    display: flex !important;
    align-items: flex-start;
    gap: 12px !important;
    padding: 15px;
    border-radius: 13px;
    background: rgba(139,92,246,.06);
    border: 1px solid rgba(139,92,246,.14);
}

.toggle-line input {
    margin-top: 3px;
    accent-color: var(--purple);
}

.toggle-line > span {
    display: grid;
    gap: 4px;
}

.toggle-line strong {
    font-size: .9rem;
}

.current-media {
    display: grid;
    gap: 12px;
}

.current-media img,
.current-media video {
    width: min(100%, 520px);
    max-height: 280px;
    object-fit: contain;
    border-radius: 14px;
    background: #060507;
    border: 1px solid rgba(255,255,255,.06);
}

.current-file {
    padding: 13px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.055);
}

.danger-zone {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(239,91,114,.14);
    background: rgba(239,91,114,.035);
}

.danger-zone h2 {
    margin: 4px 0 0;
    font-size: 1rem;
}

@media (max-width: 1000px) {
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .event-grid,
    .event-assets {
        grid-template-columns: 1fr;
    }

    .danger-zone {
        align-items: stretch;
        flex-direction: column;
    }
}


select {
    width: 100%;
    min-height: 45px;
    padding: 10px 12px;
    color: var(--text);
    background: rgba(7,5,10,.72);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 11px;
    outline: none;
}

select:focus {
    border-color: rgba(167,93,233,.55);
    box-shadow: 0 0 0 3px rgba(139,92,246,.09);
}

.event-assets.three {
    grid-template-columns: repeat(3, minmax(0,1fr));
}

.token-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px;
}

.token-button {
    appearance: none;
    border: 1px solid rgba(167,93,233,.28);
    border-radius: 999px;
    padding: 7px 10px;
    color: #d7c0f5;
    background: rgba(139,92,246,.08);
    cursor: pointer;
    font-size: .75rem;
    font-weight: 750;
}

.token-button:hover {
    background: rgba(139,92,246,.15);
}

.text-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
    margin-top: 18px;
}

.color-input {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 45px;
    padding: 7px 10px;
    border-radius: 11px;
    background: rgba(7,5,10,.72);
    border: 1px solid rgba(255,255,255,.09);
}

.color-input input[type="color"] {
    width: 34px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
}

.color-input code {
    color: #c9b8da;
    font-size: .78rem;
}

.preview-panel {
    margin-top: 20px;
    padding: 20px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 0%, rgba(139,92,246,.12), transparent 55%),
        #07060a;
    border: 1px solid rgba(255,255,255,.07);
    overflow: hidden;
}

.event-text-preview {
    min-height: 110px;
    margin: 10px 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    text-align: center;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0,0,0,.65);
    word-break: break-word;
}

.preview-user {
    color: var(--preview-user, #59e36f);
}

.preview-normal {
    color: var(--preview-normal, #f5f5f7);
}

.preview-accent {
    color: var(--preview-accent, #b35cff);
}

.preview-position-top {
    align-items: flex-start;
    justify-content: center;
}

.preview-position-top_left {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.preview-position-top_right {
    align-items: flex-start;
    justify-content: flex-end;
    text-align: right;
}

.preview-position-center {
    align-items: center;
    justify-content: center;
}

.preview-position-bottom {
    align-items: flex-end;
    justify-content: center;
}

.preview-position-bottom_left {
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
}

.preview-position-bottom_right {
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
}

@media (max-width: 720px) {
    .event-assets.three,
    .text-options-grid,
    .color-grid {
        grid-template-columns: 1fr;
    }
}


.status-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.status-card{overflow:hidden}
.status-list{display:grid;padding:10px 24px 20px}
.status-row{display:flex;align-items:center;gap:13px;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.055)}
.status-row:last-child{border-bottom:0}
.status-row>div{display:grid;gap:3px;min-width:0}
.status-row strong{font-size:.9rem}
.status-row small{color:var(--muted);font-size:.75rem;line-height:1.4}
.compact-status{padding:9px 0}
.live-dot{display:inline-block;width:10px;height:10px;min-width:10px;border-radius:50%;background:#706b76;box-shadow:0 0 12px currentColor}
.live-dot.green{background:#54d39a;color:#54d39a}
.live-dot.orange{background:#f2a94b;color:#f2a94b}
.live-dot.red{background:#ef5b72;color:#ef5b72}
.live-dot.grey{background:#706b76;color:#706b76}
.status-actions{display:flex;gap:10px;flex-wrap:wrap;padding:0 24px 22px}
.status-actions form{margin:0}
.overlay-url{margin:0 0 8px 23px;padding:9px 11px;border-radius:10px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.05);overflow:auto}
.overlay-url code{font-size:.68rem;color:#bfa7df;white-space:nowrap}
.legend-card{display:flex;gap:22px;flex-wrap:wrap;margin-top:18px;padding:15px 18px;border-radius:15px;background:rgba(17,12,24,.72);border:1px solid var(--border)}
.legend-card span{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.78rem}
@media(max-width:900px){.status-layout{grid-template-columns:1fr}}

.associated-audio-box{display:grid;gap:16px;margin:22px 25px 0;padding:18px;border-radius:15px;background:linear-gradient(145deg,rgba(139,92,246,.07),rgba(255,255,255,.015));border:1px solid rgba(167,93,233,.18)}
.section-mini-head>div{display:grid;gap:4px}.mini-eyebrow{color:#9d84bd;font-size:.64rem;letter-spacing:.14em;font-weight:800}.section-mini-head strong{font-size:.92rem}.remove-audio-line{display:flex!important;align-items:center;gap:9px!important;padding:10px 12px;border-radius:11px;background:rgba(239,91,114,.045);border:1px solid rgba(239,91,114,.12)}.remove-audio-line input{accent-color:var(--danger)}


.media-mode-help {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 25px 0;
}

.media-mode-help > div {
    display: grid;
    gap: 4px;
    padding: 13px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.055);
}

.media-mode-help strong {
    color: #d8c5f2;
    font-size: .82rem;
}

.media-mode-help span {
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.45;
}

@media (max-width: 720px) {
    .media-mode-help {
        grid-template-columns: 1fr;
    }
}
