:root {
    --bg: #fbf7f1;
    --bg-accent: #fffdf9;
    --panel: rgba(255, 255, 255, 0.82);
    --text: #221d1a;
    --muted: #7b7267;
    --line: rgba(104, 84, 65, 0.14);
    --shadow: 0 18px 45px rgba(128, 98, 52, 0.12);
    --radius: 24px;
    --radius-sm: 16px;
    --brand: #5a5cf1;
    --coral: linear-gradient(135deg, #ffe0d6 0%, #fff2ec 100%);
    --sky: linear-gradient(135deg, #d9efff 0%, #edf7ff 100%);
    --sand: linear-gradient(135deg, #ffefcc 0%, #fff7e6 100%);
    --mist: linear-gradient(135deg, #e4e7f6 0%, #f5f7fb 100%);
    --accent: linear-gradient(135deg, #fffbef 0%, #fef5dd 100%);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 193, 165, 0.45), transparent 26%),
        radial-gradient(circle at top right, rgba(123, 181, 255, 0.28), transparent 22%),
        linear-gradient(180deg, #fffdf7 0%, #fbf7f1 100%);
    font-family: "Manrope", "Noto Sans SC", sans-serif;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 28px 22px;
    background: rgba(255, 255, 255, 0.55);
    border-right: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.brand-mark {
    width: 74px;
    flex: 0 0 74px;
}

.brand-logo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.brand-copy {
    min-width: 0;
}

.brand-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.nav-list {
    display: grid;
    gap: 10px;
}

.nav-link {
    padding: 14px 16px;
    border-radius: 18px;
    color: #564d44;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, #7067f6 0%, #8c73f8 100%);
    color: white;
    box-shadow: 0 16px 28px rgba(112, 103, 246, 0.2);
}

.sidebar-card,
.panel,
.login-panel {
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: var(--panel);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.sidebar-card {
    margin-top: auto;
    border-radius: var(--radius);
    padding: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 244, 231, 0.92));
}

.sidebar-card-label {
    color: var(--muted);
    font-size: 13px;
}

.sidebar-card-value {
    margin-top: 8px;
    font-weight: 800;
    font-size: 18px;
}

.sidebar-card-tip {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 13px;
}

.main-panel {
    padding: 26px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.inline-form {
    margin: 0;
}

.topbar h1,
.hero-copy h1 {
    margin: 8px 0 0;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.05;
}

.eyebrow,
.panel-eyebrow {
    color: #8b5b34;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 800;
}

.page-content {
    margin-top: 26px;
    display: grid;
    gap: 24px;
}

.hero-banner,
.panel,
.stat-card {
    border-radius: var(--radius);
}

.hero-banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 18px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(255, 245, 232, 0.95), rgba(255, 255, 255, 0.75));
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.86);
}

.hero-banner h2,
.panel h3 {
    margin: 8px 0 0;
    font-size: 28px;
}

.hero-banner p,
.feature-list,
.number-list,
.panel p {
    color: var(--muted);
    line-height: 1.75;
}

.hero-pill {
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    white-space: normal;
    max-width: 360px;
    margin-left: auto;
}

.command-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
    gap: 24px;
}

.executive-panel,
.mission-panel {
    padding: 28px;
}

.executive-panel {
    background:
        radial-gradient(circle at top right, rgba(111, 103, 246, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(255, 251, 245, 0.98), rgba(255, 255, 255, 0.88));
}

.executive-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.executive-copy h2 {
    margin: 10px 0 0;
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.06;
}

.executive-copy p {
    margin: 16px 0 0;
    max-width: 780px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

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

.hero-ribbon-item {
    padding: 18px 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(111, 90, 70, 0.08);
    box-shadow: 0 10px 25px rgba(111, 90, 70, 0.06);
}

.hero-ribbon-label {
    display: block;
    color: #8a7564;
    font-size: 13px;
    font-weight: 700;
}

.hero-ribbon-value {
    display: block;
    margin-top: 10px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
}

.mission-panel {
    background:
        radial-gradient(circle at top left, rgba(255, 160, 120, 0.12), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 236, 0.92));
}

.panel-header.compact {
    margin-bottom: 16px;
}

.mission-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 124px;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.mission-badge.stable {
    color: #23703a;
    background: rgba(88, 193, 117, 0.16);
    border-color: rgba(88, 193, 117, 0.2);
}

.mission-badge.warning {
    color: #9b6900;
    background: rgba(255, 176, 72, 0.16);
    border-color: rgba(255, 176, 72, 0.22);
}

.mission-badge.danger {
    color: #bf3d3d;
    background: rgba(255, 111, 111, 0.16);
    border-color: rgba(255, 111, 111, 0.22);
}

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

.mission-tile {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(111, 90, 70, 0.08);
}

.mission-tile span,
.signal-card span {
    display: block;
    color: #8a7564;
    font-size: 13px;
    font-weight: 700;
}

.mission-tile strong,
.signal-card strong {
    display: block;
    margin-top: 10px;
    font-size: 28px;
    line-height: 1.1;
}

.mission-tile small,
.signal-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.mission-progress-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.progress-item {
    display: grid;
    gap: 10px;
}

.progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #6e6356;
}

.progress-track {
    position: relative;
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: rgba(112, 103, 246, 0.08);
}

.progress-track span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #6f67f6 0%, #8d79fb 100%);
}

.progress-track.warm {
    background: rgba(255, 176, 72, 0.12);
}

.progress-track.warm span {
    background: linear-gradient(90deg, #f0a13f 0%, #ffc46d 100%);
}

.progress-track.danger {
    background: rgba(255, 111, 111, 0.12);
}

.progress-track.danger span {
    background: linear-gradient(90deg, #ff7f7f 0%, #f25f78 100%);
}

.dashboard-main-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
}

.chart-leader-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: stretch;
}

.top-account-list {
    display: grid;
    gap: 12px;
}

.top-account-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(111, 90, 70, 0.08);
}

.top-account-rank {
    min-width: 58px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(112, 103, 246, 0.1);
    color: #5b53e5;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.top-account-body {
    min-width: 0;
}

.top-account-handle {
    display: block;
    font-size: 15px;
}

.top-account-meta {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.top-account-revenue {
    color: #1f2b45;
    font-weight: 800;
    white-space: nowrap;
}

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

.signal-card {
    padding: 18px;
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 240, 0.88));
    border: 1px solid rgba(111, 90, 70, 0.08);
}

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

.stats-grid-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
}

.stat-card.coral { background: var(--coral); }
.stat-card.sky { background: var(--sky); }
.stat-card.sand { background: var(--sand); }
.stat-card.mist { background: var(--mist); }

.stat-card.soft {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 245, 238, 0.95));
}

.stat-label {
    color: #85593d;
    font-weight: 700;
    font-size: 14px;
}

.stat-value {
    margin-top: 18px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
}

.stat-meta {
    margin-top: 10px;
    color: var(--muted);
}

.panel-grid.two-up {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.panel {
    padding: 24px;
}

.chart-shell {
    position: relative;
    height: 320px;
    min-height: 320px;
}

.chart-shell canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.chart-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.accent-panel {
    background: var(--accent);
}

.danger-panel {
    border-color: rgba(255, 111, 111, 0.18);
    background: linear-gradient(135deg, rgba(255, 243, 243, 0.96), rgba(255, 250, 250, 0.88));
}

.danger-panel-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 111, 111, 0.12);
    color: #bf3d3d;
    font-size: 13px;
    font-weight: 800;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    margin-bottom: 18px;
}

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

.stack-form label,
.dialog-card label,
.login-form label {
    display: grid;
    gap: 8px;
}

.stack-form span,
.dialog-card span,
.login-form span {
    font-size: 13px;
    font-weight: 700;
    color: #6c645a;
}

.field-tip {
    color: var(--muted);
    font-size: 13px;
}

.video-meta-preview-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.video-meta-preview-item,
.video-meta-empty {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(111, 90, 70, 0.12);
}

.video-meta-empty {
    color: var(--muted);
    font-size: 13px;
}

.video-meta-preview-name {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
    word-break: break-all;
}

.video-meta-preview-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.inline-tip {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin-top: -2px;
}

.form-divider {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 247, 231, 0.72);
    border: 1px solid rgba(215, 180, 128, 0.22);
}

.form-divider strong {
    font-size: 14px;
}

.form-divider span {
    color: var(--muted);
    font-size: 12px;
}

.quick-tag-panel {
    display: grid;
    gap: 12px;
    margin-top: -4px;
}

.platform-fieldset {
    margin: 0;
    padding: 14px 16px 16px;
    border-radius: 18px;
    border: 1px solid rgba(111, 90, 70, 0.16);
    background: rgba(255, 255, 255, 0.78);
}

.platform-fieldset legend {
    padding: 0 6px;
    color: #6c645a;
    font-size: 13px;
    font-weight: 700;
}

.platform-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.platform-choice {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(111, 90, 70, 0.16);
    background: rgba(255, 255, 255, 0.92);
}

.platform-choice input {
    width: auto;
    margin: 0;
}

.platform-choice span {
    color: var(--text) !important;
}

.quick-tag-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-tag-head > span {
    color: #6c645a;
    font-size: 13px;
    font-weight: 700;
}

.quick-tag-tools {
    display: flex;
    gap: 10px;
    flex: 1 1 360px;
    justify-content: flex-end;
}

.quick-tag-tools input {
    min-width: 220px;
}

.quick-tag-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(116, 111, 255, 0.08);
    border: 1px solid rgba(116, 111, 255, 0.12);
}

.quick-tag-button,
.quick-tag-remove {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.quick-tag-button {
    padding: 6px 10px;
    border-radius: 999px;
    color: #5a5cf1;
    font-size: 13px;
    font-weight: 800;
}

.quick-tag-button:hover,
.quick-tag-remove:hover {
    background: rgba(116, 111, 255, 0.08);
}

.quick-tag-remove {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #8a7df7;
    font-size: 18px;
    line-height: 1;
}

.platform-badge-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(90, 92, 241, 0.1);
    color: #4d52d9;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(111, 90, 70, 0.16);
    background: rgba(255, 255, 255, 0.82);
    outline: none;
    transition: 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(112, 103, 246, 0.45);
    box-shadow: 0 0 0 4px rgba(112, 103, 246, 0.08);
}

.primary-button,
.ghost-button {
    border: 0;
    border-radius: 16px;
    padding: 13px 18px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button {
    background: linear-gradient(135deg, #ff8f72 0%, #ff6d86 100%);
    color: white;
    font-weight: 800;
    box-shadow: 0 18px 28px rgba(255, 122, 122, 0.24);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-1px);
}

.primary-button:disabled,
.ghost-button:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.primary-button.large {
    padding: 15px 18px;
    font-size: 16px;
}

.ghost-button {
    background: rgba(255, 255, 255, 0.7);
    color: #4f463d;
    border: 1px solid rgba(111, 90, 70, 0.14);
}

.ghost-button.small {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.ghost-button.danger {
    color: #c04949;
    border-color: rgba(192, 73, 73, 0.2);
    background: rgba(255, 240, 240, 0.78);
}

.ghost-button.danger:hover {
    background: rgba(255, 228, 228, 0.95);
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(111, 90, 70, 0.08);
    font-size: 14px;
}

th {
    color: #7b6d60;
    font-weight: 800;
}

td {
    vertical-align: middle;
}

.empty-cell,
.empty-state {
    color: var(--muted);
    text-align: center;
    padding: 24px;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 18px;
}

.filter-field {
    display: grid;
    gap: 8px;
}

.filter-field span {
    font-size: 13px;
    font-weight: 700;
    color: #6c645a;
}

.filter-field-wide {
    grid-column: span 2;
}

.filter-actions {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-row select {
    width: auto;
    min-width: 160px;
}

.muted-inline {
    color: var(--muted);
    font-size: 12px;
}

.video-parameter-cell {
    display: grid;
    gap: 6px;
    min-width: 130px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.video-duration-cell {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.video-parameter-cell span:first-child {
    color: var(--text);
    font-weight: 700;
}

.table-link {
    color: #5d4ee5;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(93, 78, 229, 0.28);
    text-underline-offset: 3px;
}

.table-link:hover {
    color: #4333df;
    text-decoration-color: rgba(67, 51, 223, 0.44);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(116, 111, 255, 0.12);
    color: #5d4ee5;
}

.status-chip.uploaded,
.status-chip.pending,
.status-chip.pulled {
    background: rgba(255, 176, 72, 0.18);
    color: #a66400;
}

.status-chip.published,
.status-chip.cached,
.status-chip.active,
.status-chip.processed,
.status-chip.profit,
.status-chip.completed {
    background: rgba(88, 193, 117, 0.16);
    color: #23703a;
}

.status-chip.starting {
    background: rgba(93, 78, 229, 0.14);
    color: #5d4ee5;
}

.status-chip.stopped,
.status-chip.expired,
.status-chip.failed {
    background: rgba(255, 111, 111, 0.16);
    color: #bf3d3d;
}

.feature-list,
.number-list {
    margin: 0;
    padding-left: 18px;
}

.feature-list li,
.number-list li {
    margin: 10px 0;
}

.login-body {
    min-height: 100vh;
}

.login-scene {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-panel {
    width: min(760px, 100%);
    padding: 36px;
    border-radius: 34px;
}

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

.hero-copy {
    margin: 26px 0 18px;
}

.hero-copy p {
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.8;
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-tip {
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
}

.alert {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 16px;
}

.alert.error {
    background: rgba(255, 111, 111, 0.12);
    color: #bf3d3d;
}

.toast-root {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: grid;
    gap: 10px;
    z-index: 50;
}

.toast {
    min-width: 220px;
    max-width: 320px;
    padding: 14px 16px;
    border-radius: 16px;
    color: white;
    box-shadow: 0 18px 30px rgba(59, 48, 27, 0.2);
    animation: slideIn 0.22s ease;
}

.toast.info {
    background: linear-gradient(135deg, #746fff 0%, #8b8afc 100%);
}

.toast.error {
    background: linear-gradient(135deg, #ff7f7f 0%, #f25f78 100%);
}

.inline-link {
    color: #5a5cf1;
    font-weight: 700;
}

.thumb-button {
    width: 96px;
    height: 64px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(111, 90, 70, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    cursor: pointer;
}

.video-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #f2f2f2 0%, #dfdfdf 100%);
}

.thumb-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 64px;
    padding: 0 12px;
    border-radius: 14px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed rgba(111, 90, 70, 0.14);
    font-size: 12px;
}

.list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.list-meta,
.pagination-text {
    color: var(--muted);
    font-size: 13px;
}

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

.recent-row {
    background: rgba(116, 111, 255, 0.06);
    animation: pulseRow 2.5s ease;
}

.responsive-table td strong {
    font-size: 14px;
}

.dispatch-dialog {
    border: 0;
    padding: 0;
    background: transparent;
}

.dispatch-dialog::backdrop {
    background: rgba(34, 29, 26, 0.28);
    backdrop-filter: blur(4px);
}

.dialog-card {
    width: min(720px, calc(100vw - 24px));
    padding: 24px;
    border-radius: 28px;
    background: #fffefb;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.dialog-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.preview-card {
    width: min(960px, calc(100vw - 24px));
}

.account-detail-card {
    width: min(860px, calc(100vw - 24px));
}

.account-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-detail-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 247, 238, 0.9);
    border: 1px solid rgba(111, 90, 70, 0.08);
}

.account-detail-item span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.account-detail-item strong {
    font-size: 16px;
    line-height: 1.5;
}

.detail-section {
    margin-top: 20px;
    display: grid;
    gap: 12px;
}

.detail-section h4 {
    margin: 0;
    font-size: 15px;
}

.detail-stack {
    display: grid;
    gap: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(244, 246, 255, 0.72);
    border: 1px solid rgba(111, 90, 70, 0.08);
}

.detail-row span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.detail-row strong {
    text-align: right;
    word-break: break-all;
}

.detail-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(112, 103, 246, 0.08);
    color: #5349d8;
    font-size: 13px;
    font-weight: 700;
}

.detail-empty {
    color: var(--muted);
    font-size: 14px;
}

.preview-stage {
    overflow: hidden;
    border-radius: 22px;
    background: #111;
}

.preview-stage video {
    display: block;
    width: 100%;
    max-height: min(76vh, 720px);
    background: #111;
}

.checkbox-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.checkbox-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 246, 238, 0.8);
    border: 1px solid rgba(111, 90, 70, 0.08);
}

.checkbox-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

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

@keyframes pulseRow {
    0% {
        background: rgba(116, 111, 255, 0.16);
    }
    100% {
        background: rgba(116, 111, 255, 0.02);
    }
}

@media (max-width: 1100px) {
    .app-shell,
    .panel-grid.two-up,
    .stats-grid,
    .stats-grid-wide {
        grid-template-columns: 1fr;
    }

    .command-hero,
    .dashboard-main-grid,
    .chart-leader-layout {
        grid-template-columns: 1fr;
    }

    .mission-grid,
    .hero-ribbon,
    .signal-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        gap: 18px;
    }

    .topbar,
    .hero-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .main-panel {
        padding: 18px;
    }

    .sidebar {
        padding: 18px;
    }

    .panel,
    .stat-card,
    .hero-banner {
        padding: 18px;
    }

    .login-panel {
        padding: 26px;
    }

    .chart-shell {
        height: 240px;
        min-height: 240px;
    }

    .executive-panel,
    .mission-panel {
        padding: 20px;
    }

    .executive-header {
        flex-direction: column;
    }

    .quick-tag-tools {
        width: 100%;
        justify-content: stretch;
        flex-direction: column;
    }

    .quick-tag-tools input {
        min-width: 0;
    }

    .account-detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-row {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .filter-field-wide {
        grid-column: span 1;
    }

    .filter-actions,
    .list-footer,
    .pagination-row {
        width: 100%;
    }

    .filter-actions .ghost-button,
    .pagination-row .ghost-button {
        flex: 1 1 auto;
    }

    .responsive-table {
        min-width: 0;
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table tr {
        padding: 14px 0;
        border-bottom: 1px solid rgba(111, 90, 70, 0.08);
    }

    .responsive-table td {
        border-bottom: 0;
        padding: 8px 0;
    }

    .responsive-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: #7b6d60;
        font-size: 12px;
        font-weight: 800;
    }

    .responsive-table td.empty-cell::before {
        display: none;
    }
}
