/* ---------- Sparklore Marketing Content Studio Centralized CSS ---------- */

/* ---------- Design Tokens ---------- */
:root {
    --bg: #000000;
    --surface: #272729;
    --surface-2: #1c1c1e;
    --surface-3: #313134;
    --nav: #262629;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --accent: #0071e3;
    --accent-active: #2997ff;
    --crimson: #ff3b30;
    --emerald: #34c759;
    --gold: #ff9500;
    --text: #f5f5f7;
    --text-dim: #a1a1a6;
    --text-faint: #6e6e73;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --sidebar-w: 240px;
    --sidebar-w-collapsed: 64px;
    --status-h: 32px;
    --topbar-h: 52px;
    --titlebar-h: 36px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---------- App Shell ---------- */
#app-shell, .app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    grid-template-rows: var(--status-h) var(--topbar-h) 1fr;
    grid-template-areas:
        "status status"
        "topbar topbar"
        "sidebar main";
    height: 100vh;
    transition: grid-template-columns 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#app-shell.sidebar-collapsed, .app-shell.sidebar-collapsed {
    grid-template-columns: var(--sidebar-w-collapsed) 1fr;
}

/* ---------- macOS-Style Titlebar / Status Safe Zone ---------- */
.titlebar {
    grid-column: 1 / -1;
    height: var(--titlebar-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    -webkit-app-region: drag;
    display: flex;
    align-items: center;
    padding: 0 16px 0 75px;
    gap: 12px;
}

.titlebar__app-name {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-dim);
    user-select: none;
}

/* ---------- Status Bar ---------- */
.status-bar {
    grid-area: status;
    background: var(--nav);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.2px;
    -webkit-app-region: drag;
}

.status-bar .stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-bar .stat strong {
    color: var(--text);
    font-weight: 600;
}

.status-bar .stat .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 6px var(--emerald);
}

.status-bar .live-pill {
    margin-left: auto;
    background: var(--crimson);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 12px rgba(255, 59, 48, 0.4);
    animation: pulse-live 2s ease-in-out infinite;
}

.status-bar .live-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 59, 48, 0.4); }
    50% { box-shadow: 0 0 20px rgba(255, 59, 48, 0.7); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ---------- Top Bar ---------- */
.topbar {
    grid-area: topbar;
    background: var(--nav);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
}

.topbar .title {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.3px;
}

.topbar .title .accent {
    color: var(--accent-active);
}

.topbar .breadcrumb {
    color: var(--text-faint);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar .breadcrumb .sep {
    opacity: 0.5;
}

.topbar .spacer {
    flex: 1;
}

.topbar .search {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    color: var(--text-dim);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
}

.topbar .search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    flex: 1;
    font-family: inherit;
    font-size: 12px;
}

.topbar .search kbd {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-faint);
}

.btn-go-live {
    background: var(--crimson);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: inherit;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 0 16px rgba(255, 59, 48, 0.3);
    text-decoration: none;
}

.btn-go-live:hover {
    background: #ff453a;
    box-shadow: 0 0 22px rgba(255, 59, 48, 0.5);
    transform: translateY(-1px);
}

.btn-go-live .live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.topbar .icon-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.topbar .icon-btn:hover {
    background: var(--surface);
    color: var(--text);
}

/* ---------- Sidebar Navigation ---------- */
.sidebar {
    grid-area: sidebar;
    background: var(--nav);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    min-height: 65px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, #6e3aff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.4);
}

.logo-mark svg {
    width: 18px;
    height: 18px;
}

.logo-text {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.logo-text .sub {
    display: block;
    font-size: 9px;
    color: var(--text-faint);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.collapse-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.collapse-btn:hover {
    background: var(--surface-3);
    color: var(--text);
}

#app-shell.sidebar-collapsed .logo-text,
#app-shell.sidebar-collapsed .nav-label,
#app-shell.sidebar-collapsed .nav-section-label,
#app-shell.sidebar-collapsed .nav-badge {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

#app-shell.sidebar-collapsed .nav-item {
    justify-content: center;
}

#app-shell.sidebar-collapsed .collapse-btn {
    transform: rotate(180deg);
}

.nav-section {
    padding: 12px 8px;
    flex: 1;
    overflow-y: auto;
}

.nav-section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-faint);
    padding: 8px 12px;
    font-weight: 600;
}

.nav-section-label.broadcast-label {
    margin-top: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text-dim);
    cursor: pointer;
    margin-bottom: 2px;
    transition: all 0.15s;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    text-decoration: none;
}

.nav-item:hover {
    background: var(--surface);
    color: var(--text);
}

.nav-item.active {
    background: rgba(41, 151, 255, 0.12);
    color: var(--accent-active);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: var(--accent-active);
    border-radius: 0 2px 2px 0;
}

.nav-item .nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item .nav-icon svg {
    width: 18px;
    height: 18px;
}

.nav-label {
    white-space: nowrap;
}

.nav-badge {
    margin-left: auto;
    background: var(--surface-3);
    color: var(--text-dim);
    padding: 1px 7px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}

.nav-item.active .nav-badge {
    background: rgba(41, 151, 255, 0.2);
    color: var(--accent-active);
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
    cursor: pointer;
}

.user-card:hover {
    background: var(--surface);
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9500, #ff3b30);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

.user-info {
    overflow: hidden;
    white-space: nowrap;
}

.user-info .name {
    font-size: 12px;
    font-weight: 600;
}

.user-info .role {
    font-size: 10px;
    color: var(--text-faint);
}

/* ---------- Main Content ---------- */
.main, .main-content {
    grid-area: main;
    overflow: hidden;
    position: relative;
    background: var(--bg);
}

.view {
    display: none;
    height: 100%;
    overflow-y: auto;
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.view-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.view-subtitle {
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 4px;
}

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

/* ---------- Buttons & Cards & Badges ---------- */
.btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 14px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:hover {
    background: var(--surface-3);
    border-color: var(--border-strong);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #0077ed;
    border-color: #0077ed;
}

.btn-ghost {
    background: transparent;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.pill-live {
    background: rgba(255, 59, 48, 0.15);
    color: var(--crimson);
}

.pill-approved {
    background: rgba(52, 199, 89, 0.15);
    color: var(--emerald);
}

.pill-warning {
    background: rgba(255, 149, 0, 0.15);
    color: var(--gold);
}

.pill-draft {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
}

.pill-info {
    background: rgba(41, 151, 255, 0.15);
    color: var(--accent-active);
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-active));
    border-radius: 2px;
    transition: width 0.4s ease;
}

.progress-bar .fill.green { background: linear-gradient(90deg, #30d158, var(--emerald)); }
.progress-bar .fill.gold { background: linear-gradient(90deg, #ffb340, var(--gold)); }
.progress-bar .fill.red { background: linear-gradient(90deg, #ff6961, var(--crimson)); }

/* ---------- VIEW 1: Dashboard Kanban ---------- */
.kanban {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    min-height: calc(100vh - 200px);
}

.kanban-col {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.kanban-col-header {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.kanban-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-col-title .col-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.kanban-col-count {
    background: var(--surface-3);
    color: var(--text-dim);
    padding: 1px 7px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}

.kanban-col-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
}

.kanban-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.kanban-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.kanban-card .kc-title {
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.35;
}

.kanban-card .kc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 6px;
}

.kanban-card .kc-progress {
    margin: 8px 0 10px;
}

.kanban-card .kc-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-faint);
    margin-bottom: 4px;
}

.kanban-card .kc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.kanban-card .kc-date {
    font-size: 10px;
    color: var(--text-faint);
    font-family: 'JetBrains Mono', monospace;
}

.avatar-sm {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    border: 2px solid var(--surface);
}

.avatar-stack {
    display: flex;
}

.avatar-stack .avatar-sm:not(:first-child) {
    margin-left: -6px;
}

/* ---------- VIEW 2: Research ---------- */
.research-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    height: calc(100vh - 180px);
}

.pane {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pane-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.pane-title {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pane-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
}

.research-source {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.research-source:hover {
    border-color: var(--border-strong);
}

.research-source .rs-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.research-source .rs-favicon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: var(--surface-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: var(--accent-active);
}

.research-source .rs-url {
    font-size: 10px;
    color: var(--text-faint);
    font-family: 'JetBrains Mono', monospace;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.research-source .rs-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.research-source .rs-snippet {
    font-size: 11.5px;
    color: var(--text-dim);
    line-height: 1.5;
}

.research-source .rs-snippet mark {
    background: rgba(255, 149, 0, 0.25);
    color: var(--gold);
    padding: 0 2px;
    border-radius: 2px;
}

.research-source .rs-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 10px;
    color: var(--text-faint);
}

.talking-canvas {
    background:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
    overflow: auto;
}

.talking-point {
    position: absolute;
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 10px 12px;
    width: 180px;
    cursor: grab;
    user-select: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.2s;
}

.talking-point:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.talking-point.dragging {
    cursor: grabbing;
    opacity: 0.85;
    z-index: 100;
}

.talking-point .tp-tag {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--accent-active);
    margin-bottom: 4px;
}

.talking-point .tp-text {
    font-size: 11.5px;
    line-height: 1.4;
}

.talking-point.tp-yellow { background: rgba(255, 149, 0, 0.12); border-color: rgba(255, 149, 0, 0.4); }
.talking-point.tp-green { background: rgba(52, 199, 89, 0.1); border-color: rgba(52, 199, 89, 0.4); }
.talking-point.tp-blue { background: rgba(41, 151, 255, 0.1); border-color: rgba(41, 151, 255, 0.4); }
.talking-point.tp-purple { background: rgba(110, 58, 255, 0.1); border-color: rgba(110, 58, 255, 0.4); }

/* ---------- VIEW 3: Workbench ---------- */
.workbench {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: calc(100vh - 160px);
    gap: 14px;
}

.stepper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-3);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    flex-shrink: 0;
}

.step.done .step-circle {
    background: var(--emerald);
    border-color: var(--emerald);
    color: white;
    font-size: 0;
}

.step.done .step-circle::before {
    content: '✓';
    font-size: 13px;
}

.step.active .step-circle {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.2);
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
}

.step.active .step-label, .step.done .step-label {
    color: var(--text);
}

.step-connector {
    flex: 0 0 24px;
    height: 2px;
    background: var(--border);
    border-radius: 1px;
}

.step.done + .step-connector {
    background: var(--emerald);
}

.editor-pane {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.editor-side {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.editor-side + .editor-side {
    border-left: 1px solid var(--border);
}

.editor-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.editor-header .file-name {
    font-size: 12px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.editor-body {
    flex: 1;
    overflow: auto;
    padding: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-dim);
}

.editor-body .ln {
    display: flex;
    gap: 12px;
}

.editor-body .ln-num {
    color: var(--text-faint);
    width: 24px;
    text-align: right;
    flex-shrink: 0;
    user-select: none;
}

.editor-body .diff-add {
    color: var(--emerald);
    background: rgba(52, 199, 89, 0.08);
    display: block;
    margin: 0 -14px;
    padding: 0 14px;
}

.editor-body .diff-del {
    color: var(--crimson);
    background: rgba(255, 59, 48, 0.08);
    display: block;
    margin: 0 -14px;
    padding: 0 14px;
    text-decoration: line-through;
    text-decoration-color: rgba(255, 59, 48, 0.5);
}

.editor-body h1, .editor-body h2 {
    color: var(--text);
    font-family: 'Inter Tight', sans-serif;
    font-weight: 700;
    margin: 8px 0 4px;
}

.editor-body h1 { font-size: 16px; }
.editor-body h2 { font-size: 14px; }
.editor-body .meta { color: var(--text-faint); font-style: italic; }

.sse-console {
    background: #0a0a0c;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    height: 140px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sse-header {
    padding: 8px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.sse-header .title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sse-header .title::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
    animation: pulse-live 1.5s infinite;
}

.sse-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    line-height: 1.6;
}

.sse-line {
    display: flex;
    gap: 10px;
}

.sse-time { color: var(--text-faint); flex-shrink: 0; }
.sse-tag { color: var(--accent-active); flex-shrink: 0; width: 70px; }
.sse-tag.warn { color: var(--gold); }
.sse-tag.err { color: var(--crimson); }
.sse-tag.ok { color: var(--emerald); }
.sse-msg { color: var(--text-dim); }

/* ---------- VIEW 4: Media ---------- */
.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
}

.media-preview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.media-preview .mp-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.media-preview .mp-title {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-stage {
    background: #0a0a0c;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.mp-stage-9-16 {
    aspect-ratio: 9/16;
    width: 140px;
    background: linear-gradient(135deg, #1a1a3e 0%, #3e1a3e 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.mp-stage-16-9 {
    aspect-ratio: 16/9;
    width: 100%;
    background: linear-gradient(135deg, #0a3e2e 0%, #1a3e5e 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.mp-stage-9-16::before, .mp-stage-16-9::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(41, 151, 255, 0.2) 0%, transparent 50%);
}

.mp-stage-9-16 .play-btn, .mp-stage-16-9 .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.mp-stage-9-16 .caption {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 9px;
    color: white;
    font-weight: 600;
    line-height: 1.3;
}

.mp-stage-16-9 .caption {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    color: white;
    font-weight: 600;
}

.mp-stage-16-9 .live-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--crimson);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.mp-footer {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--text-faint);
    font-family: 'JetBrains Mono', monospace;
}

.article-preview {
    background: var(--surface-2);
    border-radius: 8px;
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    max-height: 280px;
}

.article-preview h3 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.article-preview .article-meta {
    font-size: 10px;
    color: var(--text-faint);
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', monospace;
}

.article-preview p {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 10px;
}

.article-preview p strong { color: var(--text); }
.article-preview blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 12px;
    margin: 10px 0;
    color: var(--text-dim);
    font-style: italic;
    font-size: 12px;
}

.waveform-player {
    background: var(--surface-2);
    border-radius: 8px;
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 60px;
}

.waveform .bar {
    flex: 1;
    background: var(--surface-3);
    border-radius: 1px;
    min-height: 4px;
    transition: background 0.2s;
}

.waveform .bar.played {
    background: var(--accent-active);
}

.waveform-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-dim);
}

.wave-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.checklist {
    background: var(--surface-2);
    border-radius: 8px;
    padding: 14px;
    flex: 1;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 12px;
}

.checklist-item .check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.checklist-item.checked .check {
    background: var(--emerald);
    border-color: var(--emerald);
    color: white;
}

.checklist-item.checked .check::before {
    content: '✓';
    font-size: 10px;
}

.checklist-item.checked .label {
    color: var(--text-dim);
    text-decoration: line-through;
}

.checklist-item .label {
    color: var(--text);
    flex: 1;
}

.checklist-item .pct {
    color: var(--text-faint);
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
}

/* ---------- VIEW 5: Livestream ---------- */
.livestream-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    grid-template-rows: auto auto auto;
    gap: 14px;
}

.camera-preview {
    background: #0a0a0c;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    grid-column: 1;
    background:
        radial-gradient(circle at 30% 40%, rgba(110, 58, 255, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(0, 113, 227, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0c 0%, #1a1a1e 100%);
}

.camera-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
}

.camera-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--crimson);
    animation: blink 1s infinite;
}

.camera-tc {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.lower-third-overlay {
    position: absolute;
    bottom: 60px;
    left: 30px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-left: 3px solid var(--accent-active);
    padding: 12px 18px;
    border-radius: 0 8px 8px 0;
    display: none;
    animation: slideInLeft 0.4s ease;
}

.lower-third-overlay.show { display: block; }

@keyframes slideInLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.lower-third-overlay .lt-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    font-family: 'Inter Tight', sans-serif;
}

.lower-third-overlay .lt-title {
    font-size: 11px;
    color: var(--accent-active);
    margin-top: 2px;
    font-weight: 500;
}

.corner-gfx {
    position: absolute;
    top: 50px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    display: none;
}

.corner-gfx.show { display: block; }

.corner-gfx .cg-text {
    font-size: 10px;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.5;
}

.corner-gfx .cg-text strong { color: var(--gold); }

.preview-watermark {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    display: none;
    letter-spacing: -0.5px;
}

.preview-watermark.show { display: block; }

.camera-controls {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}

.cam-ctrl-btn {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}

.cam-ctrl-btn:hover { background: rgba(255, 255, 255, 0.1); }

.scene-switcher {
    grid-column: 2;
    grid-row: 1 / 3;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scene-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.scene-card {
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    aspect-ratio: 16/10;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.scene-card:hover { border-color: var(--border-strong); }
.scene-card.active {
    border-color: var(--accent-active);
    box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.15);
}

.scene-card .sc-thumb { position: absolute; inset: 0; opacity: 0.4; }
.scene-card .sc-name { font-size: 11px; font-weight: 600; color: var(--text); z-index: 1; }
.scene-card .sc-icon { font-size: 18px; z-index: 1; }

.scene-card.active::after {
    content: 'LIVE';
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--crimson);
    color: white;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-faint);
    font-weight: 700;
    margin-bottom: 4px;
}

.transition-picker {
    grid-column: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
}

.transition-options {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.transition-opt {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.transition-opt:hover { border-color: var(--border-strong); }
.transition-opt.active {
    background: rgba(41, 151, 255, 0.12);
    border-color: var(--accent-active);
    color: var(--accent-active);
}

.transition-opt .to-icon { font-size: 16px; margin-bottom: 4px; }
.transition-opt .to-name { font-size: 10px; font-weight: 600; }

.graphics-toggles {
    grid-column: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chip {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chip:hover { color: var(--text); }
.chip.active {
    background: rgba(41, 151, 255, 0.15);
    border-color: var(--accent-active);
    color: var(--accent-active);
}

.chip .chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-faint);
}

.chip.active .chip-dot {
    background: var(--accent-active);
    box-shadow: 0 0 6px var(--accent-active);
}

.lt-designer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    display: block;
    font-size: 10px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.input-group input {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    outline: none;
    transition: border 0.2s;
}

.input-group input:focus { border-color: var(--accent-active); }

.stream-health {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
}

.health-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.health-row:last-child { margin-bottom: 0; }
.health-label { font-size: 11px; color: var(--text-dim); width: 90px; flex-shrink: 0; }
.health-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.health-bar .fill { height: 100%; border-radius: 3px; transition: width 0.4s; }
.health-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    width: 60px;
    text-align: right;
    flex-shrink: 0;
}

.qa-queue {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.qa-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.qa-item .qa-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #6e3aff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.qa-item .qa-content { flex: 1; min-width: 0; }
.qa-item .qa-name { font-size: 11px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.qa-item .qa-name span { color: var(--text-faint); font-weight: 400; margin-left: 6px; font-size: 10px; }
.qa-item .qa-text { font-size: 11px; color: var(--text-dim); line-height: 1.4; }

.qa-show-btn {
    background: rgba(41, 151, 255, 0.15);
    border: 1px solid var(--accent-active);
    color: var(--accent-active);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.qa-show-btn:hover { background: var(--accent); color: white; }

/* ---------- VIEW 6: Distribution ---------- */
.dist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.platform-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.platform-header { display: flex; align-items: center; gap: 12px; }
.platform-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.pi-yt { background: rgba(255, 0, 0, 0.15); color: #ff4444; }
.pi-tt { background: rgba(0, 0, 0, 0.4); color: #22d3ee; border: 1px solid rgba(34, 211, 238, 0.3); }
.pi-ss { background: rgba(255, 113, 33, 0.15); color: #ff8124; }
.pi-x { background: rgba(255, 255, 255, 0.1); color: white; }

.platform-info { flex: 1; }
.platform-name { font-size: 14px; font-weight: 700; font-family: 'Inter Tight', sans-serif; }
.platform-handle { font-size: 11px; color: var(--text-faint); font-family: 'JetBrains Mono', monospace; }

.platform-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-cell { text-align: center; }
.stat-cell .val { font-size: 18px; font-weight: 700; font-family: 'Inter Tight', sans-serif; letter-spacing: -0.5px; }
.stat-cell .lbl { font-size: 9px; text-transform: uppercase; color: var(--text-faint); letter-spacing: 0.5px; margin-top: 2px; }

.schedule-row { display: flex; gap: 8px; align-items: center; }
.date-picker {
    flex: 1;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 10px;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    outline: none;
    cursor: pointer;
}

.engagement-chart {
    background: var(--surface-2);
    border-radius: 8px;
    padding: 12px;
    height: 100px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.eng-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--accent-active), var(--accent));
    border-radius: 2px 2px 0 0;
    min-height: 4px;
    position: relative;
    transition: all 0.3s;
}

.eng-bar:hover { background: linear-gradient(180deg, #6bb8ff, var(--accent-active)); }
.eng-bar::after {
    content: attr(data-val);
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    opacity: 0;
    transition: opacity 0.2s;
}

.eng-bar:hover::after { opacity: 1; }

/* ---------- VIEW 7: Library ---------- */
.lib-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.lib-search {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 220px;
}

.lib-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    flex: 1;
}

.filter-tabs {
    display: flex;
    gap: 4px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
}

.filter-tab {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-tab:hover { color: var(--text); }
.filter-tab.active { background: var(--surface-3); color: var(--text); }

.lib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.asset-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.asset-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.asset-thumb {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #1a1a3e, #3e1a3e);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.asset-thumb.video::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(110, 58, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 113, 227, 0.25) 0%, transparent 50%);
}

.asset-thumb .play-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    z-index: 1;
}

.asset-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.asset-info { padding: 12px; }
.asset-name { font-size: 12px; font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
.asset-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-faint);
    margin-top: 8px;
}

.format-tag {
    background: var(--surface-3);
    color: var(--text-dim);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.format-tag.green { background: rgba(52, 199, 89, 0.15); color: var(--emerald); }
.format-tag.blue { background: rgba(41, 151, 255, 0.15); color: var(--accent-active); }
.format-tag.gold { background: rgba(255, 149, 0, 0.15); color: var(--gold); }

.hidden { display: none !important; }
