:root {
    --bg: #09111d;
    --bg-deep: #050b14;
    --bg-panel: rgba(12, 22, 37, 0.84);
    --bg-panel-strong: rgba(17, 29, 47, 0.94);
    --bg-soft: rgba(148, 163, 184, 0.08);
    --bg-input: rgba(9, 17, 29, 0.85);
    --line: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(148, 163, 184, 0.28);
    --text: #e5eefb;
    --text-soft: #afbdd3;
    --text-muted: #7e8ea8;
    --heading: #f8fbff;
    --accent: #14b8a6;
    --accent-strong: #0f8f82;
    --accent-soft: rgba(20, 184, 166, 0.14);
    --accent-glow: rgba(20, 184, 166, 0.28);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.14);
    --danger: #fb7185;
    --danger-soft: rgba(251, 113, 133, 0.14);
    --success: #34d399;
    --success-soft: rgba(52, 211, 153, 0.14);
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.24);
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --font-body: "Manrope", sans-serif;
    --font-heading: "Space Grotesk", sans-serif;
    --transition: 180ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 15px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.14), transparent 34%),
        radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.1), transparent 30%),
        linear-gradient(180deg, #0b1422 0%, #08101a 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
}

.hidden {
    display: none !important;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--font-heading);
    color: var(--heading);
    letter-spacing: -0.03em;
}

p {
    margin: 0;
}

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

button {
    border: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.eyebrow::before {
    content: "";
    width: 0.7rem;
    height: 1px;
    background: currentColor;
    opacity: 0.75;
}

.surface-card,
.section-card,
.summary-card,
.metric-card,
.data-card,
.form-card,
.info-card {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
}

.login-screen {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    overflow: hidden;
}

.login-bg,
.login-grid {
    position: absolute;
    inset: 0;
}

.login-grid {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, black, transparent 82%);
}

.login-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.5;
    animation: drift 18s ease-in-out infinite;
}

.login-orb-a {
    top: -6rem;
    left: -5rem;
    width: 26rem;
    height: 26rem;
    background: rgba(20, 184, 166, 0.35);
}

.login-orb-b {
    right: 4%;
    bottom: -8rem;
    width: 30rem;
    height: 30rem;
    background: rgba(245, 158, 11, 0.22);
    animation-duration: 22s;
}

.login-orb-c {
    top: 34%;
    left: 42%;
    width: 16rem;
    height: 16rem;
    background: rgba(59, 130, 246, 0.18);
    animation-duration: 16s;
}

@keyframes drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(18px, -22px, 0) scale(1.06);
    }
}

.login-container {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
    background: rgba(8, 14, 24, 0.84);
    backdrop-filter: blur(24px);
}

.login-brand,
.login-card {
    padding: 3rem;
}

.login-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.6rem;
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.12), transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-title {
    max-width: 12ch;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 0.95;
}

.brand-copy {
    max-width: 38rem;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.8;
}

.brand-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.brand-metric {
    padding: 1rem 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.brand-metric-value {
    display: block;
    margin-bottom: 0.35rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--heading);
}

.brand-metric-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.brand-list {
    display: grid;
    gap: 0.85rem;
}

.brand-list-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-soft);
}

.brand-list-dot {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #7dd3fc);
    box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.12);
}

.login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.35rem;
}

.login-card-header {
    display: grid;
    gap: 0.75rem;
}

.login-card-header h2 {
    font-size: 2rem;
}

.login-card-header p,
.login-footer-item {
    color: var(--text-soft);
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-soft);
}

.input-shell,
input[type="text"],
input[type="password"],
select,
textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg-input);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.input-shell {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 0 0.85rem;
}

.input-prefix {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    padding-right: 0.8rem;
}

.input-shell input {
    background: transparent;
    border: 0;
    padding: 0.95rem 0;
    color: inherit;
}

input[type="text"],
input[type="password"],
select,
textarea {
    padding: 0.95rem 1rem;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 8rem;
}

.input-shell:focus-within,
input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    border-color: rgba(20, 184, 166, 0.75);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
    background: rgba(8, 18, 30, 0.98);
}

.login-btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 14px;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.login-btn {
    position: relative;
    min-height: 3.4rem;
    padding: 0.95rem 1.2rem;
    font-weight: 800;
    color: #03211f;
    background: linear-gradient(135deg, #5eead4, #14b8a6);
    box-shadow: 0 14px 28px rgba(20, 184, 166, 0.26);
}

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

.login-btn.loading {
    color: transparent;
    pointer-events: none;
}

.login-btn.loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(3, 33, 31, 0.25);
    border-top-color: #03211f;
    border-radius: 999px;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.login-error {
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: var(--danger-soft);
    border: 1px solid rgba(251, 113, 133, 0.28);
    color: #fecdd3;
}

.login-footer {
    display: grid;
    gap: 0.75rem;
    padding-top: 0.35rem;
}

.login-footer-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.6rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--heading);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn {
    min-height: 2.9rem;
    padding: 0.8rem 1rem;
    font-weight: 700;
}

.btn-primary {
    color: #04211f;
    background: linear-gradient(135deg, #5eead4, #14b8a6);
    box-shadow: 0 14px 26px rgba(20, 184, 166, 0.22);
}

.btn-outline {
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
}

.btn-muted {
    color: var(--text-soft);
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--line);
}

.btn-ghost {
    background: transparent;
    color: var(--text-soft);
}

.btn-danger {
    color: #fff1f3;
    background: linear-gradient(135deg, #fb7185, #e11d48);
    box-shadow: 0 14px 28px rgba(225, 29, 72, 0.18);
}

.btn-full {
    width: 100%;
}

.app {
    min-height: 100vh;
}

.app-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 18rem minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.25rem;
}

.sidebar,
.main-shell {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 1.25rem;
    align-self: start;
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: rgba(7, 14, 24, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.sidebar-brand,
.sidebar-block {
    display: grid;
    gap: 0.9rem;
}

.sidebar-brand {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-mark {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.22), rgba(125, 211, 252, 0.14));
    color: var(--heading);
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.sidebar-kicker,
.sidebar-label,
.user-panel-label,
.summary-label,
.metric-label {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.sidebar-brand h1 {
    font-size: 1.5rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.55rem;
}

.nav-btn {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem;
    border-radius: 18px;
    color: var(--text-soft);
    background: transparent;
    text-align: left;
}

.nav-btn:hover,
.mode-btn:hover,
.btn-outline:hover,
.btn-muted:hover,
.btn-ghost:hover,
.btn-icon:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(125, 211, 252, 0.08));
    border: 1px solid rgba(20, 184, 166, 0.28);
    color: var(--heading);
    box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.08);
}

.nav-icon {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    color: var(--heading);
}

.nav-copy {
    display: grid;
    gap: 0.22rem;
}

.nav-copy strong {
    font-size: 0.95rem;
}

.nav-copy small {
    color: var(--text-muted);
    font-size: 0.77rem;
}

.sidebar-actions-panel {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.main-shell {
    display: grid;
    gap: 1.2rem;
}

.topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    padding: 1.4rem;
    border-radius: var(--radius-lg);
    background: rgba(9, 17, 29, 0.76);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
}

.topbar-intro {
    display: grid;
    gap: 0.45rem;
}

.topbar-intro h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.topbar-intro p,
.campaign-picker p,
.summary-card p,
.metric-card p,
.card-heading p,
.section-header p,
.info-card,
.table-header p {
    color: var(--text-soft);
    line-height: 1.65;
}

.topbar-controls {
    display: grid;
    grid-template-columns: minmax(16rem, 18rem) minmax(12rem, 14rem);
    gap: 1rem;
}

.campaign-picker,
.user-panel {
    border-radius: 22px;
    padding: 1rem;
}

.campaign-picker {
    display: grid;
    gap: 0.55rem;
}

.user-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.3rem;
    color: var(--heading);
    font-weight: 800;
}

.content {
    display: grid;
    gap: 1.25rem;
    padding-bottom: 1rem;
}

.hero-strip,
.section-grid,
.split-grid,
.summary-grid,
.metrics-row {
    display: grid;
    gap: 1rem;
}

.hero-strip {
    grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.95fr);
}

.hero-card,
.summary-card,
.section-card,
.data-card,
.form-card,
.info-card {
    border-radius: var(--radius);
}

.hero-card {
    padding: 1.6rem;
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.14), transparent 52%),
        rgba(10, 19, 32, 0.9);
}

.hero-card h3 {
    font-size: 2rem;
    margin-top: 0.6rem;
    margin-bottom: 0.5rem;
}

.hero-tags {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1.15rem;
}

.hero-tag,
.section-chip,
.badge,
.gcs-chip,
.footer-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-tag,
.section-chip {
    min-height: 2rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-tag {
    color: var(--heading);
    background: rgba(255, 255, 255, 0.07);
}

.hero-tag-soft,
.section-chip {
    color: var(--text-soft);
    background: rgba(148, 163, 184, 0.12);
}

.section-chip-accent {
    color: #a7fff4;
    background: rgba(20, 184, 166, 0.16);
}

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

.summary-card {
    padding: 1.25rem;
    display: grid;
    gap: 0.55rem;
}

.summary-card strong {
    font-family: var(--font-heading);
    font-size: 1.9rem;
}

.tab-panel {
    display: none;
    gap: 1rem;
}

.tab-panel.active {
    display: grid;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.section-header h2 {
    margin-top: 0.45rem;
    margin-bottom: 0.35rem;
    font-size: 1.8rem;
}

.section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-card,
.form-card,
.info-card {
    padding: 1.35rem;
}

.card-heading {
    display: grid;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.filter-grid,
.form-row,
.gcs-voices-row {
    display: grid;
    gap: 1rem;
}

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

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

.form-group-wide {
    grid-column: span 1;
}

.gcs-voices-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.gcs-voices-row {
    grid-template-columns: 1.4fr minmax(12rem, 0.9fr);
}

.gcs-voices-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
    padding: 0.85rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 12rem;
    overflow: auto;
}

.gcs-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.55rem 0.45rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.chip-download {
    display: grid;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    padding: 0;
    border-radius: 999px;
    border: none;
    background: rgba(56, 189, 248, 0.18);
    color: var(--primary, #38bdf8);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--transition);
}

.chip-download:hover {
    background: rgba(56, 189, 248, 0.35);
}

.folder-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.22);
    color: var(--text);
    font-size: 0.82rem;
}

.folder-chip strong {
    color: var(--heading);
}

.chip-remove {
    display: grid;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    padding: 0;
    border-radius: 999px;
    border: none;
    background: rgba(251, 113, 133, 0.18);
    color: var(--danger);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--transition);
}

.chip-remove:hover {
    background: rgba(251, 113, 133, 0.35);
}

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

.metric-card {
    padding: 1.35rem;
    display: grid;
    gap: 0.45rem;
}

.metric-card.metric-wl {
    border-color: rgba(52, 211, 153, 0.26);
    background: linear-gradient(180deg, rgba(52, 211, 153, 0.08), rgba(12, 22, 37, 0.84));
}

.metric-card.metric-bl {
    border-color: rgba(251, 113, 133, 0.24);
    background: linear-gradient(180deg, rgba(251, 113, 133, 0.08), rgba(12, 22, 37, 0.84));
}

.metric-value {
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1;
}

.split-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(17rem, 0.78fr);
    align-items: start;
}

.split-grid-wide {
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
}

.mode-toggle {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: fit-content;
}

.mode-btn {
    min-height: 2.7rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    background: transparent;
    color: var(--text-soft);
    font-weight: 700;
}

.mode-btn.active {
    color: #03211f;
    background: linear-gradient(135deg, #5eead4, #14b8a6);
}

.mode-panel {
    display: none;
}

.mode-panel.active {
    display: block;
}

.info-card {
    gap: 1rem;
}

.info-card h3 {
    margin-top: 0.55rem;
}

.info-card-danger {
    border-color: rgba(251, 113, 133, 0.28);
    background: linear-gradient(180deg, rgba(251, 113, 133, 0.1), rgba(12, 22, 37, 0.88));
}

.hint-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text-soft);
    display: grid;
    gap: 0.8rem;
    line-height: 1.7;
}

.data-card {
    overflow: hidden;
}

.table-header,
.modal-header,
.modal-actions,
.audit-controls {
    display: flex;
    gap: 1rem;
}

.table-header {
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-soft);
}

.table-controls label {
    font-size: 0.82rem;
    font-weight: 700;
}

.table-controls select {
    min-width: 5.5rem;
}

.table-scroll {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.95rem 1.15rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(11, 20, 34, 0.98);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

tbody tr {
    transition: background var(--transition);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.actions-col {
    width: 8.2rem;
}

.table-status {
    padding: 0.9rem 1.35rem 1.15rem;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.badge {
    min-height: 1.8rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.badge-wl {
    color: #bbf7d0;
    background: rgba(52, 211, 153, 0.16);
}

.badge-bl {
    color: #fecdd3;
    background: rgba(251, 113, 133, 0.16);
}

.badge-n {
    color: var(--text-soft);
    background: rgba(148, 163, 184, 0.14);
}

.row-actions {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
}

.btn-icon {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    cursor: pointer;
}

.btn-icon svg {
    width: 0.95rem;
    height: 0.95rem;
    fill: currentColor;
}

.btn-icon.edit:hover {
    color: #99f6e4;
    border-color: rgba(20, 184, 166, 0.38);
}

.btn-icon.delete:hover {
    color: #fecdd3;
    border-color: rgba(251, 113, 133, 0.34);
}

.checkbox-list {
    min-height: 12rem;
    max-height: 18rem;
    overflow: auto;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.45rem 0;
    color: var(--text-soft);
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent);
}

.muted {
    color: var(--text-muted);
}

.upload-area {
    display: grid;
    gap: 0.8rem;
    padding: 1.5rem;
    text-align: center;
    border: 1px dashed rgba(20, 184, 166, 0.34);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(125, 211, 252, 0.04)),
        rgba(255, 255, 255, 0.025);
    transition: border-color var(--transition), transform var(--transition), background var(--transition);
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: rgba(20, 184, 166, 0.62);
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(125, 211, 252, 0.06)),
        rgba(255, 255, 255, 0.03);
}

.upload-icon {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--heading);
}

.upload-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.file-list {
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.file-list h4 {
    margin-bottom: 0.75rem;
}

.file-names {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.file-names span {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
    font-size: 0.82rem;
}

.processing-options {
    padding: 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(20, 184, 166, 0.18);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.06), rgba(125, 211, 252, 0.03));
}

.toggle-row {
    display: grid;
    gap: 0.8rem;
}

.toggle-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.toggle-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(20, 184, 166, 0.28);
}

.toggle-item input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
    accent-color: var(--accent);
    transform: scale(1.15);
}

.toggle-label {
    display: grid;
    gap: 0.15rem;
}

.toggle-label strong {
    font-size: 0.92rem;
    color: var(--heading);
}

.toggle-label small {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.processing-stats {
    margin-top: 0.75rem;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    color: var(--text-soft);
    line-height: 1.8;
}

.processing-stats .stat-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 0.6rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.processing-stats .stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 700;
    color: var(--text);
}

.stat-trimmed {
    color: var(--warning);
}

.stat-normalized {
    color: var(--success);
}

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

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, #5eead4, #14b8a6);
    transition: width 220ms ease;
}

.result-box,
.warning-box {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    line-height: 1.7;
}

.result-box {
    margin-top: 1rem;
}

.result-box.success {
    color: #bbf7d0;
    background: rgba(52, 211, 153, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.28);
}

.result-box.error {
    color: #fecdd3;
    background: rgba(251, 113, 133, 0.14);
    border: 1px solid rgba(251, 113, 133, 0.28);
}

.result-box.warning,
.warning-box {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.result-box.mixed {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

/* Voxx-coverage alert banner (shown when a campaign lacks its Voxx voice) */
.voxx-alert {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 1rem 0;
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    color: #fecdd3;
    background: var(--danger-soft);
    border: 1px solid var(--danger);
    line-height: 1.6;
}

.voxx-alert-icon {
    font-size: 1.4rem;
    color: var(--danger);
}

.voxx-alert-body {
    flex: 1;
}

.voxx-alert-body strong {
    display: block;
    color: var(--danger);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.result-line + .result-line {
    margin-top: 0.3rem;
}

.result-success {
    color: #bbf7d0;
}

.result-warn {
    color: #fde68a;
}

.result-error {
    color: #fecdd3;
}

.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 999;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 12, 0.68);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 1;
    width: min(30rem, calc(100vw - 2rem));
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(10, 19, 32, 0.96);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    justify-content: space-between;
    align-items: start;
    padding: 1.35rem 1.35rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-close {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-soft);
    font-size: 1.3rem;
    cursor: pointer;
}

.modal-body {
    display: grid;
    gap: 1rem;
    padding: 1.35rem;
}

.modal-copy {
    color: var(--text-soft);
    line-height: 1.7;
}

.modal-actions {
    justify-content: flex-end;
    margin-top: 0.25rem;
}

#toast-container {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    gap: 0.7rem;
    z-index: 1000;
}

.toast {
    min-width: 16rem;
    max-width: 24rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
    animation: slide-up 220ms ease;
}

.toast.success {
    color: #bbf7d0;
    background: rgba(15, 118, 110, 0.92);
}

.toast.error {
    color: #ffe4e6;
    background: rgba(159, 18, 57, 0.92);
}

.toast.info {
    color: #d1fae5;
    background: rgba(13, 65, 72, 0.92);
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

::-webkit-scrollbar {
    width: 0.6rem;
    height: 0.6rem;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.24);
    border-radius: 999px;
}

@media (max-width: 1180px) {
    .app-shell,
    .hero-strip,
    .section-grid,
    .split-grid,
    .split-grid-wide,
    .summary-grid,
    .metrics-row,
    .topbar,
    .topbar-controls,
    .filter-grid,
    .form-row,
    .gcs-voices-row {
        grid-template-columns: 1fr;
    }

    .app-shell {
        padding: 1rem;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 920px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .login-brand {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .brand-panel {
        grid-template-columns: 1fr;
    }

    .section-header,
    .table-header,
    .user-panel,
    .gcs-voices-header,
    .modal-actions,
    .audit-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 0.95rem;
    }

    .login-screen,
    .app-shell {
        padding: 0.75rem;
    }

    .login-brand,
    .login-card,
    .sidebar,
    .topbar,
    .hero-card,
    .section-card,
    .form-card,
    .info-card,
    .summary-card,
    .metric-card,
    .campaign-picker,
    .user-panel {
        padding: 1rem;
    }

    .brand-title,
    .hero-card h3,
    .topbar-intro h2,
    .section-header h2 {
        word-break: break-word;
    }

    .nav-btn {
        grid-template-columns: 2.4rem 1fr;
    }

    th,
    td {
        padding: 0.8rem 0.85rem;
    }

    .actions-col {
        width: 6rem;
    }

    #toast-container {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .toast {
        max-width: none;
        min-width: 0;
    }
}
