:root {
    --bg: #f8fafc;
    --foreground: #0f172a;
    --muted: #64748b;
    --border: rgba(203, 213, 225, 0.7);
    --surface: rgba(255, 255, 255, 0.86);
    --surface-solid: #ffffff;
    --surface-soft: #f8fafc;
    --field-bg: rgba(255, 255, 255, 0.88);
    --field-border: #cbd5e1;
    --heading: #0f172a;
    --blue: #2563eb;
    --indigo: #4f46e5;
    --emerald: #059669;
    --sky: #0284c7;
    --amber: #d97706;
    --rose: #e11d48;
    --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 30px rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] {
    --bg: #07111f;
    --foreground: #e5eefb;
    --muted: #9fb2cc;
    --border: rgba(148, 163, 184, 0.28);
    --surface: rgba(15, 23, 42, 0.82);
    --surface-solid: #101b2d;
    --surface-soft: #0b1627;
    --field-bg: rgba(15, 23, 42, 0.92);
    --field-border: rgba(148, 163, 184, 0.42);
    --heading: #f8fafc;
    --blue: #60a5fa;
    --indigo: #818cf8;
    --emerald: #34d399;
    --sky: #38bdf8;
    --amber: #fbbf24;
    --rose: #fb7185;
    --card-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--foreground);
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 50%, #eef2ff 100%);
    background-attachment: fixed;
    font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
}

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

.font-mono-num {
    font-family: "Chivo", system-ui, sans-serif;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    display: flex;
    width: 256px;
    flex-direction: column;
    border-right: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 88px;
    padding: 0 14px;
    border-bottom: 1px solid var(--border);
}

.brand-logo {
    width: 100%;
    max-height: 62px;
    object-fit: contain;
    object-position: left center;
}

.brand-logo-dark,
.login-logo-dark {
    display: none;
}

[data-theme="dark"] .brand-logo-light,
[data-theme="dark"] .login-logo-light {
    display: none;
}

[data-theme="dark"] .brand-logo-dark,
[data-theme="dark"] .login-logo-dark {
    display: block;
}

.sidebar-note,
.card p,
.page-heading p,
td span,
.result-card p {
    color: var(--muted);
}

.brand-subtitle {
    margin-top: 2px;
    font-size: 12px;
}

.nav {
    display: grid;
    gap: 8px;
    padding: 20px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    color: #475569;
    font-weight: 600;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item:hover {
    background: rgba(241, 245, 249, 0.75);
    color: #0f172a;
}

.nav-item.active {
    color: #1d4ed8;
    background: linear-gradient(90deg, #eff6ff, #eef2ff);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.nav-item.active::after {
    content: "";
    position: absolute;
    right: 12px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--blue);
}

.nav-icon {
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

.nav-icon.blue { background: var(--blue); }
.nav-icon.emerald { background: var(--emerald); }
.nav-icon.indigo { background: var(--indigo); }
.nav-icon.sky { background: var(--sky); }
.nav-icon.violet { background: #7c3aed; }
.nav-icon.amber { background: var(--amber); }

.sidebar-note {
    margin: auto 20px 20px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 600;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 80px;
    margin-left: 256px;
    padding: 0 32px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
}

.topbar > div {
    min-width: 260px;
}

.eyebrow {
    color: rgba(29, 78, 216, 0.82);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.topbar-title {
    margin-top: 4px;
    font-family: "Chivo", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.top-search,
.toolbar,
.ask-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-search {
    margin-left: auto;
}

input,
select {
    height: 40px;
    min-width: 220px;
    border: 1px solid var(--field-border);
    border-radius: 10px;
    padding: 0 12px;
    background: var(--field-bg);
    color: var(--foreground);
    font: inherit;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.main {
    margin-left: 256px;
    padding: 28px 32px 48px;
}

.logout-link,
.top-logout {
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.logout-link {
    margin: 0 20px 20px;
    padding: 10px 12px;
}

.top-logout {
    padding: 10px 14px;
    white-space: nowrap;
}

.page-wrap {
    max-width: 1500px;
    margin: 0 auto;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

h1,
h2 {
    margin: 0;
    font-family: "Chivo", system-ui, sans-serif;
    letter-spacing: -0.01em;
}

h1 {
    margin-top: 6px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.05;
}

h2 {
    font-size: 17px;
}

.page-heading p,
.card-head p {
    margin: 6px 0 0;
}

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: 0;
    border-radius: 10px;
    padding: 0 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

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

.btn.primary,
button[type="submit"] {
    color: #fff;
    background: linear-gradient(135deg, var(--indigo), var(--blue));
    box-shadow: 0 10px 26px rgba(79, 70, 229, 0.18);
}

.btn.outline {
    border: 1px solid #cbd5e1;
    color: #334155;
    background: #fff;
}

.btn.compact {
    height: 34px;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
}

.button-group,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.section-actions {
    justify-content: flex-start;
    margin-top: 18px;
}

.card,
.kpi-card,
.result-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--card-shadow);
}

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

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

.card-head.compact {
    margin-bottom: 12px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    position: relative;
    overflow: hidden;
    min-height: 128px;
    padding: 20px;
}

.kpi-gradient {
    position: absolute;
    inset: 0;
    opacity: 0.9;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.11), rgba(37, 99, 235, 0));
}

.tone-emerald .kpi-gradient { background: linear-gradient(135deg, rgba(5, 150, 105, 0.12), rgba(5, 150, 105, 0)); }
.tone-indigo .kpi-gradient { background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(79, 70, 229, 0)); }
.tone-amber .kpi-gradient { background: linear-gradient(135deg, rgba(217, 119, 6, 0.13), rgba(217, 119, 6, 0)); }
.tone-sky .kpi-gradient { background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(2, 132, 199, 0)); }

.kpi-label,
th {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.kpi-row {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
}

.kpi-value {
    font-size: 34px;
    font-weight: 800;
}

.delta-pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.delta-pill {
    color: #475569;
    background: #f1f5f9;
}

.status-pill.success { color: #047857; background: #ecfdf5; box-shadow: inset 0 0 0 1px #a7f3d0; }
.status-pill.info { color: #1d4ed8; background: #eff6ff; box-shadow: inset 0 0 0 1px #bfdbfe; }
.status-pill.warn { color: #b45309; background: #fffbeb; box-shadow: inset 0 0 0 1px #fde68a; }
.status-pill.danger { color: #be123c; background: #fff1f2; box-shadow: inset 0 0 0 1px #fecdd3; }
.status-pill.neutral { color: #475569; background: #f1f5f9; box-shadow: inset 0 0 0 1px #e2e8f0; }

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
}

.status-dot.success,
.status-dot.live { background: #10b981; }
.status-dot.danger { background: #f43f5e; }
.status-dot.live { display: inline-block; margin-right: 6px; animation: pulse 1.8s infinite; }

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

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }

.summary-lead,
.long-text {
    color: #334155;
    font-size: 15px;
    line-height: 1.75;
}

.topic-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.topic-cloud.spacious {
    margin-top: 24px;
}

.topic-cloud span {
    border-radius: 999px;
    padding: 7px 11px;
    color: #1d4ed8;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px #bfdbfe;
    font-size: 12px;
    font-weight: 700;
}

.ai-card {
    border-color: #c7d2fe;
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.86), rgba(255, 255, 255, 0.88), rgba(239, 246, 255, 0.72));
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.12), 0 8px 30px rgba(99, 102, 241, 0.12);
}

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

.bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #334155;
    font-size: 12px;
}

.bar-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.bar-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #4f46e5);
}

.file-list,
.action-list,
.results-list {
    display: grid;
    gap: 12px;
}

.file-row,
.action-row,
.result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.72);
}

.file-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 64px;
    padding: 14px 18px;
}

.file-row strong,
.file-row span {
    display: block;
}

.file-row .status-pill {
    min-width: 98px;
    justify-content: center;
}

.file-row span {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.action-row {
    justify-content: flex-start;
    transition: background-color 160ms ease, transform 160ms ease;
}

.action-row:hover,
.result-card:hover {
    transform: translateY(-1px);
    background: #f8fafc;
}

.number {
    display: grid;
    flex: 0 0 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: #1d4ed8;
    background: #eff6ff;
    font-weight: 800;
}

.table-wrap {
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.table-wrap.tall {
    max-height: 68vh;
}

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

th,
td {
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
}

td {
    color: #1e293b;
    line-height: 1.45;
}

td strong {
    display: block;
    margin-bottom: 4px;
}

tr:hover td {
    background: rgba(248, 250, 252, 0.7);
}

.toolbar {
    margin-bottom: 18px;
}

.toolbar input {
    flex: 1;
}

.detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.recording-card {
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.88), rgba(255, 255, 255, 0.92));
    box-shadow: var(--card-shadow);
}

.recording-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
}

.recording-meta strong,
.recording-meta span {
    display: block;
}

.recording-meta span {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.recording-card video {
    display: block;
    width: 100%;
    max-height: 420px;
    background: #0f172a;
}

.video-empty {
    padding: 34px;
    border: 1px dashed #bfdbfe;
    border-radius: 16px;
    background: #eff6ff;
}

.detail-hero h2 {
    margin-top: 14px;
    font-size: 24px;
}

.mini-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 12px;
}

.mini-metrics div,
.priority-card {
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.mini-metrics strong,
.priority-card strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
}

.mini-metrics span,
.priority-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
    padding: 5px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.8);
}

.tab-button {
    height: 36px;
    color: #475569;
    background: transparent;
    box-shadow: none;
}

.tab-button.active {
    color: #fff;
    background: linear-gradient(135deg, var(--indigo), var(--blue));
}

.tab-panel {
    display: none;
}

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

.clean-list {
    margin: 0;
    padding-left: 18px;
}

.clean-list li + li {
    margin-top: 6px;
}

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

.participant-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    font-family: "Chivo", system-ui, sans-serif;
    font-weight: 800;
}

.participant-card p {
    margin: 4px 0 10px;
    min-height: 34px;
    font-size: 12px;
}

.transcript-box {
    max-height: 64vh;
    overflow: auto;
    margin: 0;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: #334155;
    white-space: pre-wrap;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.7;
}

.ai-chat {
    display: grid;
    gap: 16px;
}

.ai-chat.standalone {
    min-height: 560px;
}

.chat-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #f8fafc;
}

.chat-toolbar label {
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.ai-message,
.chat-answer {
    padding: 16px;
    border: 1px solid #c7d2fe;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef2ff, #fff);
}

.ai-message p,
.chat-answer p {
    margin: 6px 0 0;
    line-height: 1.65;
}

.chat-responses {
    display: grid;
    gap: 12px;
}

.source-panel {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #f8fafc;
}

.source-panel > span {
    display: block;
    margin-bottom: 8px;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.source-panel li span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.source-panel li p {
    margin: 4px 0 10px;
    color: #475569;
}

.inline-error {
    color: #be123c;
}

.compact-row {
    min-height: 56px;
}

.ask-form input {
    flex: 1;
}

.donut-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 24px;
}

.donut {
    width: 200px;
    height: 200px;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #fff 0 48%, transparent 49%),
        conic-gradient(#2563eb 0 var(--hindi), #818cf8 var(--hindi) calc(var(--hindi) + var(--english)), #10b981 calc(var(--hindi) + var(--english)) calc(var(--hindi) + var(--english) + var(--kannada)), #f59e0b 0);
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

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

.result-card {
    display: grid;
    justify-content: stretch;
}

.result-card strong {
    margin-top: 2px;
    font-size: 16px;
}

.empty-state,
.empty-table,
.empty-inline {
    color: #64748b;
    text-align: center;
}

.empty-state {
    padding: 44px;
}

.empty-table {
    padding: 28px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@media (max-width: 1180px) {
    .kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .span-4,
    .span-5,
    .span-6,
    .span-7,
    .span-8 {
        grid-column: 1 / -1;
    }
    .participant-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .recording-grid {
        grid-template-columns: 1fr;
    }
    .detail-hero,
    .donut-layout {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .sidebar {
        display: none;
    }
    .topbar,
    .main {
        margin-left: 0;
    }
    .topbar,
    .page-heading {
        align-items: stretch;
        flex-direction: column;
    }
    .top-search {
        width: 100%;
    }
    .top-search input {
        flex: 1;
        min-width: 0;
    }
    .top-logout {
        width: fit-content;
    }
    .kpi-grid,
    .participant-grid,
    .priority-grid,
    .mini-metrics {
        grid-template-columns: 1fr;
    }
}

.login-body {
    min-height: 100vh;
    overflow: auto;
    background:
        radial-gradient(circle at 16% 16%, rgba(14, 165, 233, 0.26), transparent 28%),
        radial-gradient(circle at 84% 12%, rgba(37, 99, 235, 0.18), transparent 30%),
        linear-gradient(135deg, #e0f2fe 0%, #f8fafc 46%, #eef2ff 100%);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    min-height: 100vh;
}

.login-visual,
.login-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 5vw, 72px);
}

.login-visual {
    overflow: hidden;
    color: #0f172a;
}

.login-visual::after {
    content: "";
    position: absolute;
    inset: auto 8% 8% 8%;
    height: 220px;
    border-radius: 999px 999px 40px 40px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), rgba(37, 99, 235, 0.06));
    filter: blur(8px);
}

.water-orbit {
    position: absolute;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
}

.orbit-one {
    width: 420px;
    height: 420px;
    right: 10%;
    top: 12%;
}

.orbit-two {
    width: 220px;
    height: 220px;
    left: 12%;
    bottom: 14%;
}

.login-logo-card {
    position: relative;
    z-index: 1;
    width: min(360px, 82vw);
    margin-bottom: 46px;
    padding: 22px 26px;
    border: 1px solid rgba(191, 219, 254, 0.92);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 70px rgba(37, 99, 235, 0.12);
    backdrop-filter: blur(18px);
}

.login-logo-card img,
.mobile-login-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.login-logo-card .login-logo-dark,
.brand .brand-logo-dark {
    display: none;
}

.login-logo-card .login-logo-light,
.brand .brand-logo-light {
    display: block;
}

[data-theme="dark"] .login-logo-card .login-logo-light,
[data-theme="dark"] .brand .brand-logo-light {
    display: none;
}

[data-theme="dark"] .login-logo-card .login-logo-dark,
[data-theme="dark"] .brand .brand-logo-dark {
    display: block;
}

.login-copy {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.login-copy h1 {
    margin-top: 10px;
    max-width: 680px;
    font-size: clamp(42px, 6vw, 72px);
}

.login-copy p {
    max-width: 590px;
    color: #475569;
    font-size: 17px;
    line-height: 1.75;
}

.login-stat-grid {
    position: relative;
    z-index: 1;
    display: grid;
    max-width: 590px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.login-stat-grid div {
    padding: 16px;
    border: 1px solid rgba(191, 219, 254, 0.78);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--card-shadow);
}

.login-stat-grid strong {
    display: block;
    color: #1d4ed8;
    font-family: "Chivo", system-ui, sans-serif;
    font-size: 28px;
    font-weight: 800;
}

.login-stat-grid span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.login-panel {
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(20px);
}

.login-card {
    width: min(100%, 460px);
    margin: 0 auto;
    padding: 34px;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
}

.login-card h2 {
    margin-top: 8px;
    font-size: 28px;
}

.login-card p {
    color: #64748b;
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.login-form label {
    margin-top: 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.login-form input {
    width: 100%;
    min-width: 0;
    height: 46px;
}

.login-submit {
    height: 46px;
    margin-top: 14px;
    color: #fff;
    background: linear-gradient(135deg, #0891b2, #2563eb);
}

.login-error {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #fecdd3;
    border-radius: 14px;
    color: #be123c;
    background: #fff1f2;
    font-size: 13px;
    font-weight: 700;
}

.mobile-login-logo {
    display: none;
    width: 260px;
    margin: 0 auto 22px;
}

@media (max-width: 980px) {
    .login-shell {
        grid-template-columns: 1fr;
    }
    .login-visual {
        display: none;
    }
    .login-panel {
        min-height: 100vh;
    }
    .mobile-login-logo {
        display: block;
    }
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(240, 249, 255, 0.92)),
        radial-gradient(circle at 10% 0%, rgba(14, 165, 233, 0.14), transparent 34%);
}

.brand {
    min-height: 92px;
}

.nav {
    gap: 7px;
    padding: 18px 16px;
}

.nav-section-label {
    margin: 12px 8px 5px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nav-section-label:first-child {
    margin-top: 0;
}

.nav-item {
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 14px;
}

.nav-icon-wrap {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    color: #1d4ed8;
    background: rgba(219, 234, 254, 0.72);
    box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.86);
}

.nav-item:hover {
    border-color: rgba(191, 219, 254, 0.8);
    background: rgba(255, 255, 255, 0.78);
}

.nav-item.active {
    border-color: rgba(147, 197, 253, 0.9);
    color: #0f3ea7;
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
}

.nav-item.active .nav-icon-wrap {
    color: #fff;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

.logout-link,
.top-logout,
.btn,
button {
    gap: 8px;
}

.logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(240, 249, 255, 0.78)),
        rgba(255, 255, 255, 0.72);
}

.card,
.kpi-card,
.result-card {
    border-color: rgba(186, 230, 253, 0.8);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.card {
    border-radius: 20px;
}

.card-head h2,
.chat-agent h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kpi-card {
    min-height: 140px;
}

.kpi-topline {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kpi-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    color: #1d4ed8;
    background: rgba(219, 234, 254, 0.86);
    box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.9);
}

.tone-emerald .kpi-icon { color: #047857; background: rgba(209, 250, 229, 0.92); box-shadow: inset 0 0 0 1px #a7f3d0; }
.tone-indigo .kpi-icon { color: #4f46e5; background: rgba(238, 242, 255, 0.96); box-shadow: inset 0 0 0 1px #c7d2fe; }
.tone-amber .kpi-icon { color: #b45309; background: rgba(254, 243, 199, 0.9); box-shadow: inset 0 0 0 1px #fde68a; }
.tone-sky .kpi-icon { color: #0284c7; background: rgba(224, 242, 254, 0.96); box-shadow: inset 0 0 0 1px #bae6fd; }

.kpi-row {
    margin-top: 18px;
}

.button-group .btn.compact::before,
.section-actions .btn.compact::before,
.recording-meta .btn.compact::before {
    content: "";
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 4v10m0 0 4-4m-4 4-4-4M5 19h14'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 4v10m0 0 4-4m-4 4-4-4M5 19h14'/%3E%3C/svg%3E") center / contain no-repeat;
}

.chat-page-heading {
    margin-bottom: 18px;
}

.chat-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.chat-shell {
    min-height: calc(100vh - 176px);
    padding: 0;
    overflow: hidden;
    border-color: rgba(125, 211, 252, 0.72);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.9)),
        radial-gradient(circle at 18% 0%, rgba(14, 165, 233, 0.12), transparent 38%);
}

.conversation-mode {
    display: grid;
    grid-template-rows: auto minmax(420px, 1fr) auto;
    min-height: inherit;
    gap: 0;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(203, 213, 225, 0.72);
    background: rgba(255, 255, 255, 0.72);
}

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

.chat-agent-avatar,
.empty-orb,
.message-avatar {
    display: grid;
    place-items: center;
    border-radius: 999px;
}

.chat-agent-avatar {
    width: 46px;
    height: 46px;
    color: #fff;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.chat-agent h2 {
    margin: 0;
    font-size: 19px;
}

.chat-agent p,
.chat-empty p,
.assistant-tips p {
    margin: 5px 0 0;
    color: #64748b;
    line-height: 1.55;
}

.chat-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.chat-header-actions select {
    min-width: 180px;
    height: 38px;
}

.chat-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 10px;
    color: #047857;
    background: #ecfdf5;
    font-size: 12px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px #a7f3d0;
}

.clear-chat {
    height: 38px;
}

.chat-history {
    position: relative;
    overflow-y: auto;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.48), rgba(239, 246, 255, 0.56)),
        radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.1), transparent 32%);
}

.chat-empty {
    display: grid;
    place-items: center;
    max-width: 720px;
    min-height: 390px;
    margin: 0 auto;
    text-align: center;
}

.chat-empty.is-hidden {
    display: none;
}

.empty-orb {
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 20px 48px rgba(14, 165, 233, 0.25);
}

.empty-orb .icon {
    width: 30px;
    height: 30px;
}

.chat-empty h2 {
    font-size: 26px;
}

.prompt-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.prompt-chip {
    height: auto;
    min-height: 38px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 9px 14px;
    color: #1d4ed8;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

.prompt-chip:hover {
    background: #eff6ff;
}

.chat-feed {
    display: grid;
    gap: 18px;
}

.message {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    max-width: 860px;
}

.message.user {
    grid-template-columns: minmax(0, 1fr) 38px;
    justify-self: end;
}

.message.user .message-avatar {
    order: 2;
}

.message-avatar {
    width: 38px;
    height: 38px;
    color: #fff;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    font-family: "Chivo", system-ui, sans-serif;
    font-weight: 800;
}

.message.assistant .message-avatar {
    color: #1d4ed8;
    background: #dbeafe;
    box-shadow: inset 0 0 0 1px #bfdbfe;
}

.message-bubble {
    padding: 15px 17px;
    border: 1px solid #dbeafe;
    border-radius: 18px 18px 18px 6px;
    background: rgba(255, 255, 255, 0.94);
    color: #1e293b;
    line-height: 1.68;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.message.user .message-bubble {
    border-color: rgba(37, 99, 235, 0.34);
    border-radius: 18px 18px 6px 18px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0891b2);
}

.message.user .message-content,
.message.user .message-content p,
.message.user .message-content li,
.message.user .message-content strong {
    color: #fff;
}

.message-meta {
    margin-bottom: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.message.user .message-meta {
    color: rgba(255, 255, 255, 0.76);
}

.message-content p {
    margin: 0;
}

.message-content p + p {
    margin-top: 10px;
}

.message-content ul,
.message-content ol {
    margin: 8px 0 0;
    padding-left: 20px;
}

.message-content li + li {
    margin-top: 5px;
}

.typing-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    min-height: 24px;
}

.typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #60a5fa;
    animation: typing 1s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 120ms; }
.typing-dots span:nth-child(3) { animation-delay: 240ms; }

@keyframes typing {
    0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

.chat-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px;
    border-top: 1px solid rgba(203, 213, 225, 0.72);
    background: rgba(255, 255, 255, 0.9);
}

.chat-input-wrap {
    display: flex;
    align-items: center;
    min-height: 50px;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.04);
}

.chat-input-wrap:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.chat-input-wrap textarea {
    width: 100%;
    max-height: 132px;
    min-height: 24px;
    border: 0;
    resize: none;
    padding: 12px 14px;
    background: transparent;
    color: #0f172a;
    font: inherit;
    line-height: 1.55;
    outline: none;
}

.send-button {
    height: 50px;
    min-width: 104px;
    border-radius: 16px;
}

.send-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.chat-side-panel {
    position: sticky;
    top: 104px;
}

.assistant-tips {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
}

.assistant-tips h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #1d4ed8;
    font-size: 14px;
}

.compact-chat-feed {
    margin: 12px 0;
}

.compact-chat-feed .message {
    max-width: 100%;
}

.compact-composer {
    padding: 0;
    border-top: 0;
    background: transparent;
}

.upgraded-empty {
    display: grid;
    place-items: center;
    min-height: 420px;
    text-align: center;
}

@media (max-width: 1180px) {
    .chat-layout {
        grid-template-columns: 1fr;
    }
    .chat-side-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .chat-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .chat-header-actions,
    .chat-header-actions select {
        width: 100%;
    }
    .chat-composer {
        grid-template-columns: 1fr;
    }
    .send-button {
        width: 100%;
    }
    .message,
    .message.user {
        grid-template-columns: 1fr;
    }
    .message-avatar {
        display: none;
    }
}

.meeting-evidence-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
    gap: 24px;
    align-items: stretch;
}

.evidence-card {
    display: flex;
    flex-direction: column;
}

.evidence-card .card-head h2 .icon {
    color: #1d4ed8;
}

.recording-stack {
    display: grid;
    gap: 18px;
}

.video-evidence-card .recording-card {
    margin: 0;
}

.video-evidence-card video {
    max-height: 520px;
}

.transcript-evidence-card {
    min-height: 100%;
}

.side-transcript-box {
    max-height: 560px;
    min-height: 420px;
    overflow-y: auto;
}

.floating-ai {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
}

.floating-ai-launcher {
    height: 54px;
    border-radius: 999px;
    padding: 0 20px;
    color: #fff;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.28);
}

.floating-ai-launcher .icon {
    width: 20px;
    height: 20px;
}

.floating-ai-panel {
    position: absolute;
    right: 0;
    bottom: 70px;
    display: grid;
    grid-template-rows: auto minmax(280px, 1fr) auto;
    width: min(440px, calc(100vw - 32px));
    height: min(680px, calc(100vh - 112px));
    overflow: hidden;
    border: 1px solid rgba(147, 197, 253, 0.86);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
        radial-gradient(circle at 18% 0%, rgba(14, 165, 233, 0.14), transparent 40%);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
}

.floating-ai.open .floating-ai-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.floating-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(203, 213, 225, 0.78);
    color: #fff;
    background: linear-gradient(135deg, #0f3ea7, #0891b2);
}

.floating-ai-header .chat-agent h2,
.floating-ai-header .chat-agent p,
.floating-ai-header .chat-agent .icon {
    color: #fff;
}

.floating-ai-header .chat-agent-avatar {
    width: 42px;
    height: 42px;
}

.floating-ai-header h2 {
    font-size: 16px;
}

.floating-ai-actions {
    display: inline-flex;
    gap: 8px;
}

.icon-button {
    width: 36px;
    height: 36px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 0;
    color: #eff6ff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
    font-weight: 800;
}

.icon-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
}

.floating-ai-history {
    padding: 18px;
}

.floating-ai .chat-empty {
    min-height: 240px;
}

.floating-ai .empty-orb {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
}

.floating-ai .chat-empty h2 {
    font-size: 20px;
}

.floating-ai .chat-empty p {
    max-width: 320px;
}

.floating-ai .prompt-grid {
    justify-content: flex-start;
}

.floating-ai .prompt-chip {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 12px;
}

.floating-ai .message {
    grid-template-columns: 32px minmax(0, 1fr);
    max-width: 100%;
}

.floating-ai .message.user {
    grid-template-columns: minmax(0, 1fr) 32px;
}

.floating-ai .message-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.floating-ai .message-bubble {
    padding: 12px 13px;
    font-size: 13px;
}

.floating-composer {
    padding: 14px;
}

.floating-composer .send-button {
    min-width: 52px;
    width: 52px;
}

@media (max-width: 1180px) {
    .meeting-evidence-grid {
        grid-template-columns: 1fr;
    }
    .side-transcript-box {
        min-height: 320px;
        max-height: 520px;
    }
}

@media (max-width: 760px) {
    .floating-ai {
        right: 16px;
        bottom: 16px;
    }
    .floating-ai-panel {
        right: -8px;
        bottom: 66px;
        width: calc(100vw - 32px);
        height: min(640px, calc(100vh - 100px));
    }
    .floating-ai-launcher {
        width: 54px;
        padding: 0;
    }
    .floating-ai-launcher span {
        display: none;
    }
}

.priority-control {
    display: grid;
    gap: 6px;
    min-width: 132px;
}

.mom-priority-select {
    min-width: 124px;
    height: 36px;
    border-radius: 999px;
    padding: 0 34px 0 12px;
    font-size: 12px;
    font-weight: 800;
}

.priority-critical {
    border-color: #fecdd3;
    color: #be123c;
    background: #fff1f2;
}

.priority-high {
    border-color: #fed7aa;
    color: #c2410c;
    background: #fff7ed;
}

.priority-medium {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.priority-low {
    border-color: #bbf7d0;
    color: #047857;
    background: #ecfdf5;
}

.priority-feedback,
.modal-feedback {
    min-height: 16px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.priority-feedback.success,
.modal-feedback.success {
    color: #047857;
}

.priority-feedback.error,
.modal-feedback.error {
    color: #be123c;
}

.priority-feedback.muted,
.modal-feedback.muted {
    color: #64748b;
}

.mom-send-button {
    white-space: nowrap;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(8px);
}

.modal-backdrop.open {
    display: flex;
}

.modal-card {
    width: min(720px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid rgba(147, 197, 253, 0.86);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.25);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid #dbeafe;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.modal-head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.mom-email-form {
    display: grid;
    gap: 10px;
    padding: 22px;
}

.mom-email-form label {
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.mom-email-form input,
.mom-email-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 11px 12px;
    color: #0f172a;
    background: #fff;
    font: inherit;
}

.mom-email-form textarea {
    min-height: 190px;
    resize: vertical;
    line-height: 1.55;
}

.mom-email-form input:focus,
.mom-email-form textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.delete-confirm-card {
    max-width: 560px;
}

.delete-confirm-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 20px 22px 8px;
}

.delete-confirm-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    color: #be123c;
    background: #fff1f2;
    box-shadow: inset 0 0 0 1px #fecdd3;
}

.delete-confirm-icon .icon {
    width: 24px;
    height: 24px;
}

.delete-confirm-body p {
    margin: 0 0 8px;
    color: var(--heading);
    font-weight: 800;
    line-height: 1.45;
}

.delete-confirm-body span {
    color: var(--muted);
    line-height: 1.6;
}

.delete-meeting-modal .modal-actions {
    padding: 0 22px 22px;
}

.danger-confirm {
    background: linear-gradient(135deg, #e11d48, #be123c);
    box-shadow: 0 14px 30px rgba(225, 29, 72, 0.22);
}

.editable-mom-table {
    table-layout: fixed;
    min-width: 1420px;
    background: var(--surface-solid);
}

.editable-mom-table th:first-child,
.editable-mom-table td:first-child {
    width: 46px;
    text-align: center;
}

.editable-mom-table th:nth-child(2),
.editable-mom-table td:nth-child(2) {
    width: 64px;
    text-align: center;
}

.editable-mom-table th:nth-child(3),
.editable-mom-table td:nth-child(3) {
    width: 230px;
}

.editable-mom-table th:nth-child(4),
.editable-mom-table td:nth-child(4) {
    width: 260px;
}

.editable-mom-table th:nth-child(5),
.editable-mom-table td:nth-child(5),
.editable-mom-table th:nth-child(6),
.editable-mom-table td:nth-child(6),
.editable-mom-table th:nth-child(7),
.editable-mom-table td:nth-child(7) {
    width: 150px;
}

.editable-mom-table th:nth-child(8),
.editable-mom-table td:nth-child(8),
.editable-mom-table th:nth-child(9),
.editable-mom-table td:nth-child(9) {
    width: 142px;
}

.editable-mom-table th:nth-child(10),
.editable-mom-table td:nth-child(10) {
    width: 190px;
}

.editable-mom-table th:nth-child(11),
.editable-mom-table td:nth-child(11) {
    width: 122px;
}

.editable-mom-table th:nth-child(12),
.editable-mom-table td:nth-child(12) {
    width: 126px;
}

.mom-card-head {
    align-items: flex-start;
}

.mom-card-head .button-group {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.mom-table-wrap {
    border-color: #bfdbfe;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.44), rgba(255, 255, 255, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.editable-mom-table th {
    color: #475569;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.editable-mom-table td {
    padding: 12px 10px;
    vertical-align: middle;
}

.editable-mom-table input[type="checkbox"] {
    width: 18px;
    min-width: 0;
    height: 18px;
    padding: 0;
    accent-color: var(--blue);
}

.mom-edit-field {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--field-border);
    border-radius: 10px;
    padding: 9px 10px;
    color: var(--foreground);
    background: var(--field-bg);
    font: inherit;
    font-size: 12px;
    line-height: 1.45;
}

.mom-edit-field[readonly],
.mom-edit-field:disabled {
    cursor: default;
    opacity: 1;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.mom-edit-field:disabled {
    color: var(--foreground);
    -webkit-text-fill-color: var(--foreground);
}

.mom-table-editing .mom-edit-field:not(:disabled),
.mom-row-editing .mom-edit-field:not(:disabled),
.mom-table-editing .mom-edit-field:not([readonly]),
.mom-row-editing .mom-edit-field:not([readonly]) {
    border-color: #bfdbfe;
    background: var(--field-bg);
}

textarea.mom-edit-field {
    height: 58px;
    min-height: 58px;
    overflow: hidden;
    resize: none;
}

.mom-title-field {
    font-weight: 800;
}

.mom-detail-field {
    color: #334155;
}

.mom-table-editing textarea.mom-edit-field,
.mom-row-editing textarea.mom-edit-field {
    height: 82px;
    overflow: auto;
    resize: vertical;
}

.mom-title-field {
    font-weight: 800;
}

.mom-status-select {
    min-width: 0;
}

.mom-row-feedback {
    display: block;
    min-height: 15px;
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.mom-row-feedback.success {
    color: #047857;
}

.mom-row-feedback.error {
    color: #be123c;
}

.mom-row-feedback.muted {
    color: #64748b;
}

#sendSelectedMom:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.mom-email-cell {
    text-align: center;
}

.mom-actions-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 78px;
}

.mom-row-action {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.mom-row-action:hover {
    border-color: #93c5fd;
    background: #dbeafe;
}

.mom-row-action.danger {
    border-color: #fecdd3;
    color: #be123c;
    background: #fff1f2;
}

.mom-row-action.danger:hover {
    border-color: #fda4af;
    background: #ffe4e6;
}

.mom-row-editing td {
    background: rgba(239, 246, 255, 0.52);
}

.mom-view-card {
    width: min(760px, 100%);
}

.mom-view-body {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.mom-view-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.mom-view-meta div,
.mom-view-section {
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 12px;
    background: #f8fafc;
}

.mom-view-meta span,
.mom-view-section span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mom-view-meta strong,
.mom-view-section p {
    color: #0f172a;
    line-height: 1.55;
}

.mom-view-section p {
    margin: 0;
    white-space: pre-wrap;
}

.nav-badge {
    margin-left: auto;
    border-radius: 999px;
    padding: 3px 8px;
    color: #fff;
    background: #ef4444;
    font-size: 11px;
    font-weight: 800;
}

.message-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.flash-message {
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 12px 14px;
    color: #1d4ed8;
    background: #eff6ff;
    font-weight: 700;
}

.flash-message.success {
    border-color: #a7f3d0;
    color: #047857;
    background: #ecfdf5;
}

.flash-message.error {
    border-color: #fecdd3;
    color: #be123c;
    background: #fff1f2;
}

.open-point-kpis {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.open-point-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto auto;
    gap: 10px;
    align-items: center;
}

.open-point-filters input,
.open-point-filters select {
    width: 100%;
    min-width: 0;
}

.priority-badge,
.open-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.priority-badge.priority-critical {
    color: #be123c;
    background: #fff1f2;
    box-shadow: inset 0 0 0 1px #fecdd3;
}

.priority-badge.priority-high {
    color: #c2410c;
    background: #fff7ed;
    box-shadow: inset 0 0 0 1px #fed7aa;
}

.priority-badge.priority-medium {
    color: #1d4ed8;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px #bfdbfe;
}

.priority-badge.priority-low {
    color: #047857;
    background: #ecfdf5;
    box-shadow: inset 0 0 0 1px #a7f3d0;
}

.open-status.status-sent {
    color: #1d4ed8;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px #bfdbfe;
}

.open-status.status-replied {
    color: #047857;
    background: #ecfdf5;
    box-shadow: inset 0 0 0 1px #a7f3d0;
}

.open-status.status-closed {
    color: #475569;
    background: #f1f5f9;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.open-status.status-overdue {
    color: #be123c;
    background: #fff1f2;
    box-shadow: inset 0 0 0 1px #fecdd3;
}

.open-points-table {
    min-width: 1500px;
}

.table-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.table-actions form,
.detail-actions form {
    margin: 0;
}

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

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

.detail-list div,
.metric-list div {
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 14px;
    background: #f8fafc;
}

.detail-list .wide {
    grid-column: 1 / -1;
}

.detail-list span,
.metric-list span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.detail-list p {
    margin: 0;
    color: #334155;
    line-height: 1.7;
}

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

.detail-actions {
    margin-top: 16px;
}

.break-word {
    word-break: break-all;
}

@media (max-width: 1180px) {
    .open-point-kpis,
    .open-point-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .open-point-kpis,
    .open-point-filters,
    .detail-list {
        grid-template-columns: 1fr;
    }
}

.reply-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% 12%, rgba(14, 165, 233, 0.22), transparent 32%),
        linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #eef2ff 100%);
}

.reply-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px;
}

.reply-card {
    width: min(880px, 100%);
    border: 1px solid rgba(147, 197, 253, 0.86);
    border-radius: 28px;
    padding: clamp(24px, 4vw, 42px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
}

.reply-brand {
    width: min(310px, 80vw);
    margin-bottom: 30px;
}

.reply-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.reply-card h1 {
    margin: 8px 0 18px;
    font-size: clamp(28px, 4vw, 42px);
}

.reply-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.reply-meta-grid div,
.reply-point {
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 14px;
    background: #f8fafc;
}

.reply-meta-grid span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.reply-meta-grid strong {
    display: block;
    margin-top: 5px;
}

.reply-point h2 {
    margin-bottom: 8px;
}

.reply-point p {
    color: #334155;
    line-height: 1.7;
}

.reply-form {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.reply-form label {
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.reply-form input,
.reply-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px;
    font: inherit;
}

.reply-form textarea {
    resize: vertical;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .reply-shell {
        padding: 18px;
    }
    .reply-meta-grid {
        grid-template-columns: 1fr;
    }
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 0 14px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.theme-toggle-icon {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    font-size: 11px;
}

.login-theme-toggle {
    position: fixed;
    right: 24px;
    top: 24px;
    z-index: 20;
}

[data-theme="dark"] body {
    color: var(--foreground);
    background:
        radial-gradient(circle at 16% 12%, rgba(14, 165, 233, 0.18), transparent 28%),
        linear-gradient(135deg, #07111f 0%, #0b1627 52%, #101b2d 100%);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] .topbar-title,
[data-theme="dark"] td,
[data-theme="dark"] td strong,
[data-theme="dark"] .file-row strong,
[data-theme="dark"] .action-row strong,
[data-theme="dark"] .result-card strong,
[data-theme="dark"] .detail-list strong,
[data-theme="dark"] .metric-list strong,
[data-theme="dark"] .reply-meta-grid strong,
[data-theme="dark"] .login-card h2,
[data-theme="dark"] .login-copy h1 {
    color: var(--heading);
}

[data-theme="dark"] .sidebar {
    border-right-color: var(--border);
    background:
        linear-gradient(180deg, rgba(8, 18, 32, 0.96), rgba(10, 28, 48, 0.94)),
        radial-gradient(circle at 0% 0%, rgba(14, 165, 233, 0.2), transparent 36%);
}

[data-theme="dark"] .topbar {
    border-bottom-color: var(--border);
    background:
        linear-gradient(90deg, rgba(8, 18, 32, 0.94), rgba(10, 28, 48, 0.86)),
        rgba(15, 23, 42, 0.82);
}

[data-theme="dark"] .brand,
[data-theme="dark"] .modal-head,
[data-theme="dark"] .floating-ai-header {
    border-color: var(--border);
}

[data-theme="dark"] .nav-item {
    color: #b7c8df;
}

[data-theme="dark"] .nav-item:hover {
    border-color: rgba(96, 165, 250, 0.42);
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.76);
}

[data-theme="dark"] .nav-item.active {
    border-color: rgba(56, 189, 248, 0.5);
    color: #e0f2fe;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(37, 99, 235, 0.16));
}

[data-theme="dark"] .nav-icon-wrap,
[data-theme="dark"] .kpi-icon,
[data-theme="dark"] .message.assistant .message-avatar {
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.22);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.34);
}

[data-theme="dark"] .sidebar-note,
[data-theme="dark"] .card,
[data-theme="dark"] .kpi-card,
[data-theme="dark"] .result-card,
[data-theme="dark"] .recording-card,
[data-theme="dark"] .participant-card,
[data-theme="dark"] .mini-metrics div,
[data-theme="dark"] .priority-card,
[data-theme="dark"] .file-row,
[data-theme="dark"] .action-row,
[data-theme="dark"] .detail-list div,
[data-theme="dark"] .metric-list div,
[data-theme="dark"] .reply-card,
[data-theme="dark"] .reply-meta-grid div,
[data-theme="dark"] .reply-point,
[data-theme="dark"] .login-card,
[data-theme="dark"] .login-stat-grid div,
[data-theme="dark"] .login-logo-card {
    border-color: var(--border);
    background: var(--surface);
    box-shadow: var(--card-shadow);
}

[data-theme="dark"] .ai-card,
[data-theme="dark"] .chat-shell,
[data-theme="dark"] .floating-ai-panel,
[data-theme="dark"] .modal-card {
    border-color: rgba(56, 189, 248, 0.34);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(8, 18, 32, 0.96)),
        radial-gradient(circle at 18% 0%, rgba(14, 165, 233, 0.16), transparent 40%);
}

[data-theme="dark"] .chat-header,
[data-theme="dark"] .chat-composer,
[data-theme="dark"] .floating-composer,
[data-theme="dark"] .modal-head {
    border-color: var(--border);
    background: rgba(15, 23, 42, 0.88);
}

[data-theme="dark"] .chat-history,
[data-theme="dark"] .floating-ai-history {
    background:
        linear-gradient(180deg, rgba(8, 18, 32, 0.54), rgba(11, 22, 39, 0.74)),
        radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.14), transparent 32%);
}

[data-theme="dark"] .message-bubble,
[data-theme="dark"] .ai-message,
[data-theme="dark"] .chat-answer,
[data-theme="dark"] .assistant-tips,
[data-theme="dark"] .source-panel,
[data-theme="dark"] .transcript-box,
[data-theme="dark"] .table-wrap,
[data-theme="dark"] .tabs,
[data-theme="dark"] .video-empty {
    border-color: var(--border);
    color: var(--foreground);
    background: var(--surface-solid);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .mom-email-form input,
[data-theme="dark"] .mom-email-form textarea,
[data-theme="dark"] .reply-form input,
[data-theme="dark"] .reply-form textarea,
[data-theme="dark"] .chat-input-wrap {
    border-color: var(--field-border);
    color: var(--foreground);
    background: var(--field-bg);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #7f93ad;
}

[data-theme="dark"] th {
    color: #cbd5e1;
    background: #111d30;
}

[data-theme="dark"] td {
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] tr:hover td,
[data-theme="dark"] .action-row:hover,
[data-theme="dark"] .result-card:hover {
    background: rgba(30, 41, 59, 0.76);
}

[data-theme="dark"] .bar-track {
    background: rgba(51, 65, 85, 0.9);
}

[data-theme="dark"] .topic-cloud span,
[data-theme="dark"] .number,
[data-theme="dark"] .logout-link,
[data-theme="dark"] .top-logout,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .btn.compact,
[data-theme="dark"] .btn.outline,
[data-theme="dark"] .prompt-chip,
[data-theme="dark"] .icon-button {
    border-color: rgba(96, 165, 250, 0.38);
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.16);
}

[data-theme="dark"] .btn.primary,
[data-theme="dark"] button[type="submit"],
[data-theme="dark"] .login-submit,
[data-theme="dark"] .floating-ai-launcher {
    color: #fff;
    background: linear-gradient(135deg, #0891b2, #2563eb);
}

[data-theme="dark"] .message.user .message-bubble,
[data-theme="dark"] .floating-ai-header {
    color: #fff;
    background: linear-gradient(135deg, #0f3ea7, #0891b2);
}

[data-theme="dark"] .sidebar-note,
[data-theme="dark"] .card p,
[data-theme="dark"] .page-heading p,
[data-theme="dark"] td span,
[data-theme="dark"] .result-card p,
[data-theme="dark"] .chat-agent p,
[data-theme="dark"] .chat-empty p,
[data-theme="dark"] .assistant-tips p,
[data-theme="dark"] .login-card p,
[data-theme="dark"] .login-copy p,
[data-theme="dark"] .reply-point p,
[data-theme="dark"] .detail-list p {
    color: var(--muted);
}

[data-theme="dark"] .login-body {
    background:
        radial-gradient(circle at 16% 16%, rgba(14, 165, 233, 0.2), transparent 28%),
        radial-gradient(circle at 84% 12%, rgba(37, 99, 235, 0.16), transparent 30%),
        linear-gradient(135deg, #07111f 0%, #0b1627 50%, #101b2d 100%);
}

[data-theme="dark"] .login-panel {
    background: rgba(8, 18, 32, 0.56);
}

[data-theme="dark"] .login-visual {
    color: var(--foreground);
}

[data-theme="dark"] .reply-body {
    background:
        radial-gradient(circle at 16% 12%, rgba(14, 165, 233, 0.16), transparent 32%),
        linear-gradient(135deg, #07111f 0%, #0b1627 55%, #101b2d 100%);
}

[data-theme="dark"] .modal-backdrop {
    background: rgba(2, 6, 23, 0.68);
}

.poc-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 12px 14px;
    color: #1e3a8a;
    background: linear-gradient(135deg, #eff6ff, #f0fdfa);
    font-weight: 700;
}

.poc-notice span {
    color: #475569;
    font-weight: 600;
}

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

.connector-card,
.imported-meeting-card {
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--card-shadow);
}

.connector-topline,
.connector-auth-header,
.imported-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.connector-logo {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: #fff;
    border: 1px solid #dbeafe;
    font-family: "Chivo", system-ui, sans-serif;
    font-weight: 800;
    overflow: hidden;
}

.connector-logo svg {
    width: 34px;
    height: 34px;
    display: block;
}

.connector-logo.large {
    width: 58px;
    height: 58px;
    border-radius: 18px;
}

.connector-logo.large svg {
    width: 44px;
    height: 44px;
}

.connector-status {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 6px 10px;
    color: #475569;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 800;
}

.connector-status.connected {
    border-color: #bbf7d0;
    color: #047857;
    background: #ecfdf5;
}

.connector-card h2,
.imported-meeting-card h3 {
    margin: 16px 0 8px;
}

.connector-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.integration-auth-card {
    display: grid;
    gap: 20px;
}

.integration-auth-options {
    display: grid;
    gap: 12px;
}

.auth-option {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 14px;
    background: #f8fafc;
}

.auth-option input {
    width: 18px;
    min-width: 18px;
    height: 18px;
}

.auth-option span,
.auth-option strong,
.auth-option small {
    display: block;
}

.auth-option small {
    margin-top: 3px;
    color: #64748b;
    font-weight: 600;
}

.recording-select-table {
    min-width: 1120px;
}

.recording-select-table th:first-child,
.recording-select-table td:first-child {
    width: 74px;
    text-align: center;
}

.recording-select-table input[type="checkbox"] {
    width: 18px;
    min-width: 18px;
    height: 18px;
    accent-color: var(--blue);
}

.integration-error {
    margin-bottom: 12px;
}

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

.pipeline-step {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 16px;
    background: #f8fafc;
}

.pipeline-step span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    color: #1d4ed8;
    background: #dbeafe;
    font-weight: 800;
}

.pipeline-step strong,
.pipeline-step small {
    display: block;
}

.pipeline-step small {
    margin-top: 4px;
    color: #64748b;
    font-weight: 700;
}

.pipeline-step.completed {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #eff6ff, #f0fdfa);
}

.pipeline-step.completed span {
    color: #fff;
    background: linear-gradient(135deg, #0891b2, #2563eb);
}

.pipeline-step.active {
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
}

.imported-meetings-section {
    margin-top: 18px;
}

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

.imported-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.imported-meta span,
.imported-card-head span:last-child {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.integration-empty {
    border: 1px dashed #bfdbfe;
    background: #eff6ff;
}

@media (max-width: 1180px) {
    .integration-grid,
    .pipeline-stepper,
    .imported-meeting-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .integration-grid,
    .pipeline-stepper,
    .imported-meeting-grid {
        grid-template-columns: 1fr;
    }

    .connector-auth-header,
    .poc-notice {
        align-items: flex-start;
        flex-direction: column;
    }
}

[data-theme="dark"] .poc-notice,
[data-theme="dark"] .connector-card,
[data-theme="dark"] .imported-meeting-card,
[data-theme="dark"] .auth-option,
[data-theme="dark"] .pipeline-step,
[data-theme="dark"] .integration-empty {
    border-color: var(--border);
    color: var(--foreground);
    background: var(--surface);
}

[data-theme="dark"] .connector-logo {
    border-color: rgba(96, 165, 250, 0.34);
    background: #f8fafc;
}

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

.attendee-image-card {
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--card-shadow);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.attendee-image-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.12);
}

.attendee-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #e0f2fe;
}

.attendee-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attendee-image-wrap .connector-status {
    position: absolute;
    right: 10px;
    top: 10px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
}

.attendee-card-body {
    display: grid;
    gap: 7px;
    padding: 14px;
}

.attendee-card-body h3 {
    margin: 0;
    font-size: 15px;
}

.attendee-card-body p {
    margin: 0;
    font-size: 12px;
}

.attendee-tag-button {
    justify-self: start;
    margin-top: 6px;
}

.attendee-empty {
    border: 1px dashed #bfdbfe;
    background: #eff6ff;
}

.attendee-tag-form {
    display: grid;
    gap: 10px;
    padding: 22px;
}

.attendee-tag-form label {
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.attendee-tag-form input {
    width: 100%;
    min-width: 0;
}

.attendee-tag-form .muted {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 1180px) {
    .attendee-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .attendee-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .attendee-gallery-grid {
        grid-template-columns: 1fr;
    }
}

[data-theme="dark"] .attendee-image-card,
[data-theme="dark"] .attendee-empty {
    border-color: var(--border);
    background: var(--surface);
}

[data-theme="dark"] .attendee-image-wrap {
    background: #111d30;
}
