:root {
    --bg: #f8fafc;
    --ink: #0d1b2a;
    --muted: #5a6a80;
    --green: #01164c;
    --line: #e2e8f0;
    --accent: #72f6bc
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.65
}

a {
    color: inherit
}

button, input, textarea {
    font: inherit
}

button, a, input, textarea {
    outline-offset: 5px
}

button {
    cursor: pointer
}

button:disabled {
    opacity: .45;
    cursor: not-allowed
}

.site-header {
    max-width: 1280px;
    margin: auto;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    gap: 24px
}

.brand {
    text-decoration: none;
    font-size: 26px;
    font-weight: 750;
    letter-spacing: -1.2px;
    display: flex;
    align-items: center
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    background: var(--green);
    color: var(--accent);
    width: 35px;
    height: 35px;
    border-radius: 10px;
    margin-right: 10px;
    font-family: Georgia, serif;
    font-style: italic
}

.brand-dot {
    color: #38d9a9
}

nav {
    display: flex;
    align-items: center;
    gap: 26px
}

nav a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 550
}

form {
    margin: 0
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    padding: 13px 22px;
    background: var(--green);
    color: white;
    border: 1px solid var(--green);
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px
}

.button:hover {
    background: #082163;
    border-color: #082163
}

.button.small {
    padding: 9px 16px
}

.button.secondary {
    background: transparent;
    color: var(--green)
}

.text-button {
    background: none;
    border: 0;
    padding: 0;
    color: var(--green);
    text-decoration: underline;
    font-size: 13px
}

main {
    max-width: 1200px;
    margin: auto;
    min-height: 75vh;
    padding: 0 32px
}

h1, h2, h3, p {
    margin-top: 0
}

h1, h2, h3 {
    line-height: 1.15;
    font-weight: 550;
    letter-spacing: -1.5px
}

h1 {
    font-size: clamp(42px, 5.3vw, 70px);
    margin-bottom: 26px
}

h2 {
    font-size: 36px;
    margin-bottom: 18px
}

h3 {
    font-size: 23px;
    letter-spacing: -.6px
}

p {
    color: var(--muted)
}

em {
    font-family: Georgia, serif;
    font-weight: 400;
    color: #1e3a8a
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    font-weight: 650;
    color: var(--green);
    margin-bottom: 24px
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #38d9a9;
    border-radius: 50%;
    margin-right: 7px
}

.muted-dot {
    background: #94a3b8
}

.hero {
    display: grid;
    grid-template-columns:1.1fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 36px 0 60px
}

.hero-description {
    font-size: 17px;
    max-width: 480px;
    line-height: 1.85
}

.hero-description strong {
    font-weight: 550;
    color: var(--ink)
}

.actions {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    margin: 26px 0 20px
}

.subtle-link {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none
}

.caption {
    font-size: 12px;
    line-height: 1.7;
    margin: 16px 0 0
}

.thought-visual {
    height: 410px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(114, 246, 188, 0.35) 0, rgba(1, 22, 76, 0.05) 50%, transparent 70%);
    border-radius: 50%
}

.orbit {
    position: absolute;
    left: 50%;
    top: 48%;
    border: 1px solid #94a3b8;
    border-radius: 50%;
    width: 330px;
    height: 220px;
    transform: translate(-50%, -50%) rotate(-35deg)
}

.orbit-two {
    transform: translate(-50%, -50%) rotate(35deg);
    width: 330px;
    height: 220px
}

.orbit-three {
    transform: translate(-50%, -50%) rotate(90deg);
    width: 330px;
    height: 220px
}

.thought-core {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    background: #01164c;
    box-shadow: 0 18px 50px rgba(1, 22, 76, 0.25), inset 0 0 25px rgba(114, 246, 188, 0.3);
    border-radius: 50%;
    width: 142px;
    height: 142px;
    color: #72f6bc;
    text-align: center;
    font: italic 86px Georgia;
    line-height: 1.05;
    padding-top: 10px
}

.thought-core span {
    display: block;
    font: 10px sans-serif;
    letter-spacing: 2px;
    color: #e0f2fe
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 3px solid var(--bg);
    border-radius: 50%;
    background: #38d9a9;
    box-shadow: 0 0 0 1px #72f6bc
}

.node-one {
    left: 20%;
    top: 31%
}

.node-two {
    left: 71%;
    top: 23%
}

.node-three {
    left: 62%;
    top: 82%
}

.visual-label {
    position: absolute;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #334155;
    background: var(--bg);
    padding: 5px 9px
}

.label-one {
    top: 13%;
    left: 13%
}

.label-two {
    bottom: 16%;
    right: 2%
}

.visual-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 9px;
    letter-spacing: 2px;
    color: #64748b
}

.section {
    padding: 65px 0;
    border-top: 1px solid var(--line)
}

.section-heading {
    max-width: 620px;
    margin-bottom: 30px
}

.section-heading .eyebrow {
    margin-bottom: 14px
}

.grid {
    display: grid;
    gap: 22px
}

.three {
    grid-template-columns:repeat(3, 1fr)
}

.two {
    grid-template-columns:repeat(2, 1fr)
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 30px
}

.card p:last-child {
    margin-bottom: 0
}

.number {
    font: italic 25px Georgia;
    color: #2563eb;
    display: block;
    margin-bottom: 32px
}

.card p {
    font-size: 14px
}

.membership {
    display: grid;
    grid-template-columns:1fr 1fr;
    align-items: center;
    gap: 70px
}

.membership h2 {
    font-size: 48px
}

.pricing {
    background: #f1f5f9
}

.pill {
    font-size: 10px;
    letter-spacing: 1.6px;
    color: var(--green);
    display: inline-block;
    margin-bottom: 24px;
    font-weight: 650
}

.pricing h3 {
    font-size: 36px
}

.pricing ul {
    list-style: none;
    padding: 0;
    margin: 24px 0
}

.pricing li {
    padding: 8px 0;
    font-size: 14px
}

.pricing li:before {
    content: '✓';
    margin-right: 12px;
    color: var(--green)
}

footer {
    max-width: 1200px;
    margin: 60px auto 0;
    border-top: 1px solid var(--line);
    padding: 26px 32px;
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 11px;
    color: var(--muted)
}

footer .brand {
    font-size: 21px;
    margin-right: auto
}

.auth-shell {
    padding: 36px 0;
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 90px;
    align-items: start
}

.auth-shell h1 {
    font-size: 50px
}

.auth-note {
    margin-top: 65px;
    font-size: 30px;
    line-height: 1.3
}

.auth-form h2 {
    font-size: 28px
}

.auth-form label, label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px
}

input, textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px 14px;
    background: #ffffff;
    color: var(--ink);
    margin-bottom: 18px
}

textarea {
    resize: vertical
}

.auth-form .button {
    width: 100%;
    margin: 22px 0
}

.validation {
    color: #9a342c;
    font-size: 13px
}

.validation ul {
    padding-left: 18px
}

.page-heading {
    padding: 28px 0 20px
}

.page-heading h1 {
    font-size: 46px
}

.workspace-grid {
    display: grid;
    grid-template-columns:260px 1fr;
    gap: 24px
}

.workspace-grid aside {
    align-self: start
}

.workspace-grid aside h3 {
    font-size: 25px
}

.workspace-grid hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 30px 0
}

.composer h2 {
    font-size: 29px
}

.composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px
}

.composer-footer .caption {
    margin: 0
}

.history {
    margin-top: 45px
}

.history h2 {
    font-size: 28px
}

.notice {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0369a1;
    padding: 15px 20px;
    border-radius: 7px;
    margin: 22px 0;
    font-size: 14px
}

.empty-state {
    text-align: center;
    padding: 50px 30px
}

.empty-icon {
    font-size: 36px;
    color: #64748b
}

.empty-state h3 {
    margin-top: 16px
}

.session {
    margin-bottom: 18px
}

.session-heading {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 18px
}

.session h3 {
    font-size: 19px;
    overflow-wrap: anywhere
}

.result {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 14px
}

.billing-grid {
    padding-bottom: 45px;
    align-items: start
}

.billing-grid h2 {
    font-size: 31px
}

.prose {
    max-width: 780px;
    margin-bottom: 60px
}

.prose h2 {
    font-size: 24px;
    margin-top: 30px
}

.prose h2:first-child {
    margin-top: 0
}

@media (max-width: 900px) {
    .site-header {
        padding: 14px 20px;
        flex-wrap: wrap
    }

    nav {
        flex-wrap: wrap;
        gap: 16px
    }

    .hero {
        grid-template-columns:1fr;
        padding-top: 28px
    }

    .thought-visual {
        height: 350px
    }

    .three {
        grid-template-columns:1fr
    }

    .auth-shell {
        gap: 35px
    }

    .workspace-grid {
        grid-template-columns:1fr
    }

    .membership {
        gap: 30px
    }

    .hero-description {
        max-width: 600px
    }
}

@media (max-width: 600px) {
    main {
        padding: 0 20px
    }

    .hero {
        padding-bottom: 45px
    }

    .thought-visual {
        height: 310px
    }

    .orbit {
        width: 265px;
        height: 175px
    }

    .thought-core {
        width: 120px;
        height: 120px;
        font-size: 70px
    }

    .two, .membership, .auth-shell {
        grid-template-columns:1fr
    }

    .auth-shell {
        padding: 24px 0
    }

    .auth-note {
        display: none
    }

    .card {
        padding: 24px
    }

    .composer-footer {
        align-items: start;
        flex-direction: column
    }

    .section {
        padding: 45px 0
    }

    footer {
        flex-wrap: wrap;
        gap: 15px
    }

    footer .brand {
        width: 100%
    }

    .page-heading h1 {
        font-size: 37px
    }

    nav {
        gap: 14px
    }

    nav a {
        font-size: 12px
    }

    .membership h2 {
        font-size: 39px
    }
}

/* Modern Space-Maximizing Workspace Layout */
main:has(.chat-workspace) {
    max-width: 1560px;
    padding: 0 24px;
}

.chat-workspace {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-top: 14px;
    margin-bottom: 24px;
}

.workspace-main-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* Sidebar */
.conversation-sidebar {
    padding: 20px 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
    position: sticky;
    top: 20px;
}

.workspace-scope-selector {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.workspace-scope-selector label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.workspace-scope-select {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.workspace-scope-select:focus, .workspace-scope-select:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.sidebar-actions .button,
.conversation-sidebar > form > .button,
.conversation-sidebar > .button {
    width: 100%;
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.conversation-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    margin: 10px 0 12px;
    gap: 2px;
}

.conversation-tabs a {
    flex: 1;
    text-align: center;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.conversation-tabs a[aria-current=page] {
    background: #ffffff;
    color: var(--green);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.conversation-list {
    flex: 1;
    min-height: 160px;
    max-height: calc(100vh - 460px);
    overflow-y: auto;
    padding-right: 2px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.conversation-link {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.conversation-link:hover {
    background: #f8fafc;
    border-color: var(--line);
}

.conversation-link.selected {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.conversation-link strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-link time {
    font-size: 11px;
    color: var(--muted);
}

.conversation-sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-status-pills {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-status-pills .pill {
    margin: 0;
    padding: 5px 10px;
    font-size: 10px;
    letter-spacing: 0.6px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 600;
    text-align: center;
    display: block;
}

.sidebar-status-pills .pill.pill-warning {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.conversation-sidebar-footer .subtle-link {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    text-align: center;
    transition: color 0.15s ease;
    display: block;
}

.conversation-sidebar-footer .subtle-link:hover {
    color: var(--green);
}

/* Chat Panel */
.chat-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
}

.chat-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 4px;
}

.chat-heading-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.3;
}

.chat-heading-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.header-action-btn {
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid var(--line);
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.header-action-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--ink);
    text-decoration: none;
}

.archive-btn {
    font-weight: 500;
}

.archive-btn.is-archived,
.archive-btn.unarchive-btn {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    font-weight: 600;
}

.archive-btn.is-archived:hover,
.archive-btn.unarchive-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

/* Shrunk Header for Logged-In Users to Maximize Usable Screen Space */
.site-header.logged-in,
.site-header.is-logged-in,
body.logged-in .site-header,
body.is-authenticated .site-header {
    padding: 8px 32px;
    gap: 18px;
}

.site-header.logged-in .brand,
.site-header.is-logged-in .brand,
body.logged-in .site-header .brand,
body.is-authenticated .site-header .brand {
    font-size: 20px;
}

.site-header.logged-in .brand-logo,
.site-header.is-logged-in .brand-logo,
body.logged-in .site-header .brand-logo,
body.is-authenticated .site-header .brand-logo {
    width: 24px;
    height: 23px;
}

.site-header.logged-in nav,
.site-header.is-logged-in nav,
body.logged-in .site-header nav,
body.is-authenticated .site-header nav {
    gap: 18px;
}

@media (max-width: 900px) {
    .site-header.logged-in,
    .site-header.is-logged-in,
    body.logged-in .site-header,
    body.is-authenticated .site-header {
        padding: 8px 16px;
    }
}

/* Transcript & Message Bubbles */
.chat-transcript {
    min-height: 240px;
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 14px 4px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--line);
    transition: border-color 0.15s ease;
}

.from-user {
    align-self: flex-end;
    max-width: 82%;
    background: #f8fafc;
    border-color: #e2e8f0;
    border-bottom-right-radius: 3px;
}

.from-mentagma {
    align-self: flex-start;
    max-width: 95%;
    width: 100%;
    background: #ffffff;
    border-color: #e2e8f0;
    border-bottom-left-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--muted);
}

.message-meta strong {
    color: var(--ink);
    font-weight: 600;
}

.message-meta time {
    font-size: 11px;
    color: var(--muted);
}

.message-status {
    font-size: 12px !important;
    color: #92400e;
    margin: 10px 0 0;
    padding: 6px 10px;
    background: #fef3c7;
    border-radius: 6px;
    border: 1px solid #fde68a;
}

.assessment-notice {
    margin-top: 14px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.assessment-notice strong {
    color: var(--ink);
}

.shared-new {
    margin-top: 12px
}

.collaboration-panel {
    margin-bottom: 20px
}

.participant-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere
}

.collaboration-panel .pill {
    margin-bottom: 12px
}

.collaboration-panel p {
    overflow-wrap: anywhere
}

.media-panel {
    margin-bottom: 24px;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.conference-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
    flex-wrap: wrap;
    gap: 12px;
}

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

.conference-title-group h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--ink);
}

.conference-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 999px;
}

.live-pulse-dot {
    width: 7px;
    height: 7px;
    background: #dc2626;
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
    0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
    100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Pre-Join Lobby */
.conference-lobby {
    padding: 36px 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    text-align: center;
}

.lobby-card {
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.lobby-icon-shield {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lobby-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--ink);
}

.lobby-description {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0 0 20px;
}

.lobby-consent-box {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 24px;
    text-align: left;
}

.lobby-device-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 1.25rem 0 1.5rem;
    flex-wrap: wrap;
}

.lobby-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid var(--line);
    background: #f8fafc;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.15s ease;
}

.lobby-toggle-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.lobby-toggle-btn.is-active {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
}

.lobby-toggle-btn.is-off {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.conference-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 999px;
    background: #01164c;
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(1, 22, 76, 0.25);
    transition: all 0.2s ease;
}

.conference-join-btn:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(1, 22, 76, 0.35);
}

.conference-status-text {
    font-size: 12px;
    color: var(--muted);
    margin-top: 16px;
    line-height: 1.4;
}

/* Active Conference Stage (Zoom / Teams Style) */
.conference-active-stage {
    background: #020617;
    position: relative;
    overflow: hidden;
}

.conference-main-viewport {
    display: flex;
    min-height: 480px;
    position: relative;
}

.meeting-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0b1120;
    position: relative;
    min-width: 0;
}

.stage-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 5;
}

.stage-status-pills {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stage-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.stage-pill.live-pill {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.4);
}

.stage-pill.rec-pill {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
}

.rec-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-live 2s infinite;
}

.stage-view-toggles {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stage-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.stage-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Video Grid and Tiles */
.meeting-video-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    padding: 16px;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    min-height: 380px;
}

.meeting-video-grid.single-speaker {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.meeting-video-grid.layout-spotlight {
    grid-template-columns: 1fr;
}

.video-tile {
    position: relative;
    background: #020617;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.video-tile.is-speaking {
    border-color: #3b82f6;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.45);
}

.video-tile.is-screenshare {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
    max-height: 520px;
}

.tile-video-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.tile-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tile-video-wrapper video.screenshare-video {
    object-fit: contain;
    background: #000000;
}

.tile-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
}

.avatar-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.avatar-audio-ring {
    position: absolute;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 2px solid #3b82f6;
    opacity: 0;
    transition: all 0.2s ease;
}

.avatar-audio-ring.active-pulse {
    opacity: 1;
    animation: ring-pulse 1.2s infinite;
}

@keyframes ring-pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.tile-participant-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    z-index: 3;
    pointer-events: none;
}

.tile-mic-status {
    display: inline-flex;
    align-items: center;
    color: #ef4444;
}

.tile-mic-status.is-unmuted {
    color: #22c55e;
}

.tile-quick-actions {
    position: absolute;
    bottom: 24px;
    display: flex;
    gap: 8px;
    z-index: 4;
}

.tile-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tile-action-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.tile-action-btn.is-muted,
.tile-action-btn.is-off {
    background: rgba(220, 38, 38, 0.85);
    border-color: rgba(239, 68, 68, 0.6);
}

.tile-action-btn.is-muted:hover,
.tile-action-btn.is-off:hover {
    background: rgba(185, 28, 28, 0.95);
}

/* Live Subtitles / Closed Captions Overlay */
.meeting-captions-overlay {
    position: absolute;
    bottom: 74px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 80%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 8px 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 10;
    animation: fadeIn 0.2s ease;
}

.captions-content {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.captions-speaker {
    font-weight: 700;
    font-size: 13px;
    color: #60a5fa;
    white-space: nowrap;
}

.captions-text {
    font-size: 13.5px;
    color: #f1f5f9;
    line-height: 1.4;
}

/* Meeting Control Bar */
.meeting-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: #0f172a;
    border-top: 1px solid #1e293b;
    z-index: 6;
}

.meeting-control-bar .control-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meeting-timer {
    font-family: monospace;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

.ctrl-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.15s ease;
    min-width: 60px;
}

.ctrl-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.ctrl-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ctrl-btn.is-active,
.ctrl-btn.is-active-toggle {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.ctrl-btn.is-muted,
.ctrl-btn.is-off {
    color: #f87171;
}

.ctrl-btn.ctrl-btn-danger {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-radius: 20px;
    padding: 8px 18px;
    flex-direction: row;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.ctrl-btn.ctrl-btn-danger:hover:not(:disabled) {
    background: #b91c1c !important;
}

.ctrl-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctrl-divider {
    width: 1px;
    height: 24px;
    background: #334155;
    margin: 0 4px;
}

.ctrl-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 5px;
}

/* Transcript viewing mode - Compact icon-only ctrl-btn elements */
.has-transcript-open .ctrl-btn .ctrl-label,
.has-transcript-open .ctrl-btn > span:not(.ctrl-badge) {
    display: none !important;
}

.has-transcript-open .ctrl-btn {
    min-width: 42px;
    padding: 8px 10px;
    gap: 0;
    border-radius: 8px;
}

.has-transcript-open .ctrl-btn.ctrl-btn-danger {
    padding: 8px 12px;
    min-width: 42px;
    border-radius: 20px;
    gap: 0;
}

/* Conference Side Drawer (Live Transcript & Roster) */
.conference-side-drawer {
    width: 350px;
    background: #ffffff;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    z-index: 8;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
}

.drawer-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}

.drawer-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
}

.drawer-header-title h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.drawer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.drawer-action-btn,
.drawer-close-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
}

.drawer-action-btn:hover,
.drawer-close-btn:hover {
    color: var(--ink);
    background: #e2e8f0;
}

.drawer-action-btn.is-copied {
    color: #16a34a;
}

.drawer-search-bar {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.drawer-search-bar input {
    width: 100%;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--line);
    font-size: 12.5px;
    background: #f8fafc;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #ffffff;
    max-height: 480px;
}

.drawer-empty-state {
    text-align: center;
    padding: 40px 16px;
    color: var(--muted);
}

.drawer-empty-state .empty-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.drawer-empty-state p {
    font-size: 12.5px;
    line-height: 1.4;
    margin: 0;
}

/* Transcript Cards */
.transcript-card {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    transition: box-shadow 0.15s ease;
}

.transcript-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.transcript-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.transcript-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #64748b;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transcript-avatar.is-me {
    background: #2563eb;
}

.transcript-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.transcript-author {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transcript-time {
    font-size: 10.5px;
    color: var(--muted);
}

.transcript-source-tag {
    font-size: 10.5px;
    color: var(--muted);
}

.transcript-status-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.transcript-status-tag.is-complete {
    background: #dcfce7;
    color: #15803d;
}

.transcript-status-tag.is-pending {
    background: #fef3c7;
    color: #92400e;
}

.transcript-text {
    font-size: 12.5px;
    color: var(--ink);
    line-height: 1.45;
    margin: 4px 0 0;
    word-break: break-word;
}

.transcript-assessment-box {
    margin-top: 8px;
    background: #eff6ff;
    border-left: 3px solid #2563eb;
    border-radius: 0 6px 6px 0;
    padding: 6px 10px;
}

.assessment-pill {
    font-size: 10px;
    font-weight: 700;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: block;
    margin-bottom: 2px;
}

.assessment-text {
    font-size: 12px;
    color: #1e3a8a;
    line-height: 1.4;
    margin: 0;
}

/* Roster Drawer Items */
.roster-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.roster-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roster-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.roster-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 6px;
}

.roster-role-badge {
    font-size: 11px;
    color: var(--muted);
    text-transform: capitalize;
}

.roster-btn-remove {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.roster-btn-remove:hover {
    background: #fee2e2;
}

.presence-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b0bec5;
    margin-right: 6px;
    vertical-align: middle;
    transition: background 0.3s
}

.presence-dot.online {
    background: #38d9a9;
    box-shadow: 0 0 5px rgba(56, 217, 169, 0.6)
}

.participant-name {
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.typing-indicator {
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
    margin: 6px 0 12px;
    min-height: 18px
}

.streaming-cursor {
    display: inline-block;
    width: 7px;
    height: 14px;
    background: var(--ink);
    vertical-align: middle;
    margin-left: 3px;
    animation: cursor-blink 0.9s infinite
}

@keyframes cursor-blink {
    0%, 100% {
        opacity: 1
    }
    50% {
        opacity: 0
    }
}

.role-badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 600
}

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

.role-form {
    margin: 0
}

.role-select {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink)
}

.brand-logo {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
    border-radius: 6px
}

footer .brand-logo {
    width: 18px;
    height: 18px;
    margin-right: 8px
}

.thought-core {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 0 !important
}

.thought-core-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35))
}

.auth-brand-link {
    display: inline-block;
    margin-bottom: 12px;
    text-decoration: none
}

.auth-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block
}

.splash-card {
    text-align: center;
    max-width: 480px;
    padding: 48px 36px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(1, 22, 76, 0.08);
    border: 1px solid var(--line);
    margin: 20px
}

.splash-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 20px
}

.splash-title {
    font-size: 32px;
    font-weight: 750;
    letter-spacing: -1.5px;
    margin: 0 0 8px
}

.splash-tagline {
    font-size: 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 16px
}

.splash-description {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 28px
}

.splash-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap
}

.workspace-scope-selector {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line)
}

.team-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    background: #eff6ff;
    padding: 8px 12px;
    border-radius: 8px
}

.team-banner .pill {
    margin-bottom: 0
}

.org-grid {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.org-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px
}

.org-list {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px
}

.org-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px
}

.org-card-header h3 {
    margin: 8px 0 4px;
    font-size: 20px
}

.org-card-header h3 a {
    color: var(--ink);
    text-decoration: none
}

.org-card-header h3 a:hover {
    text-decoration: underline
}

.org-card-metrics {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px
}

.org-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line)
}

.org-details-layout {
    display: flex;
    flex-direction: column;
    gap: 24px
}

.org-summary-card {
    background: #fff
}

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

.metrics-grid {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px
}

.metric-box {
    background: #f8fafc;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--line)
}

.metric-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px
}

.metric-value {
    font-size: 24px;
    font-weight: 750;
    color: var(--ink);
    display: block;
    margin-bottom: 4px
}

.metric-box .caption {
    font-size: 12px;
    color: var(--muted);
    display: block
}

.org-main-grid {
    display: grid;
    grid-template-columns:2fr 1fr;
    gap: 24px
}

@media (max-width: 900px) {
    .org-main-grid {
        grid-template-columns:1fr
    }
}

.org-danger-section {
    background: #fff;
    border-left: 4px solid #c53030;
    margin-top: 24px
}

.danger-actions-grid {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px
}

.danger-action-card {
    background: #fdfcfc;
    padding: 16px;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.danger-action-card h4 {
    margin: 0;
    font-size: 16px;
    color: #991b1b
}

.danger-action-card .caption {
    margin: 0;
    color: var(--muted)
}

.danger-button {
    background: #c53030 !important;
    color: #fff !important;
    border: none !important
}

.danger-button:hover {
    background: #991b1b !important
}

.table-responsive {
    overflow-x: auto
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 13px
}

.data-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--line);
    color: var(--muted);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle
}

.inline-form {
    display: inline-block;
    margin: 0
}

.full-width {
    width: 100% !important;
    box-sizing: border-box
}

.remove-button {
    color: #c53030 !important;
    font-size: 12px
}

.remove-button:hover {
    text-decoration: underline
}

.org-leave-wrapper {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    text-align: right
}

.horizontal-list {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    max-height: none
}

/* Inline Comments, @Mentions & Thought Annotations */
.mention-tag {
    display: inline-block;
    background: #e8f0fe;
    color: #1a73e8;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    letter-spacing: -0.2px;
}

.chat-message.from-mentagma .mention-tag {
    background: #e0f2fe;
    color: #0369a1;
}

.message-assessment {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fdfdfc;
    border-left: 3px solid #01164c;
    border-radius: 4px;
    font-size: 13px;
}

.pill-assessment {
    background: #01164c;
    color: #fff;
    font-size: 9px;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.pill-highlight {
    background: #fef08a;
    color: #854d0e;
    font-weight: 700;
}

.message-comments-section {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

.comments-toggle-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.toggle-comments-btn {
    font-size: 12px;
    color: var(--muted);
    padding: 2px 4px;
}

.toggle-comments-btn:hover {
    color: var(--ink);
    text-decoration: underline;
}

.quote-btn {
    font-size: 11px;
    color: var(--muted);
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f3f0;
}

.quote-btn:hover {
    color: var(--ink);
    background: #e2e8f0;
}

.comments-container.is-collapsed {
    display: none;
}

.comments-container.is-open {
    display: block;
    margin-top: 10px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.comment-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
}

.from-mentagma .comment-item {
    background: #ffffff;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 600;
    color: var(--ink);
}

.comment-delete-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 11px;
    padding: 0 4px;
}

.comment-delete-btn:hover {
    color: #ef4444;
}

.delete-comment-form {
    display: inline;
    margin: 0;
}

.comment-anchor-quote {
    margin: 4px 0 8px;
    padding: 6px 10px;
    border-left: 2px solid var(--green);
    background: #f1f5f9;
    font-style: italic;
    font-size: 12px;
    color: #0d1b2a;
    border-radius: 0 4px 4px 0;
}

.comment-text {
    line-height: 1.45;
    word-break: break-word;
}

.comment-form {
    margin-top: 8px;
}

.quote-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 8px;
    margin-bottom: 6px;
}

.quote-text-display {
    margin: 0;
    font-size: 11px;
    font-style: italic;
    color: #0d1b2a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-quote-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: #64748b;
}

.remove-quote-btn:hover {
    color: #ef4444;
}

.comment-input-row {
    display: flex;
    gap: 8px;
}

.comment-input {
    flex: 1;
    font-size: 12px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
}

.mention-hints {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.mention-hint-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 10px;
    padding: 2px 8px;
    color: #475569;
    cursor: pointer;
    font-weight: 500;
}

.mention-hint-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.notifications-section {
    margin-bottom: 16px;
    padding: 10px 12px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 8px;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notification-item {
    font-size: 12px;
    line-height: 1.4;
}

.notification-link {
    text-decoration: none;
    color: var(--ink);
    display: block;
}

.notification-link:hover {
    text-decoration: underline;
}

.notification-snippet {
    display: block;
    color: #78350f;
    font-size: 11px;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mark-all-read-form {
    display: inline;
    margin: 0;
}

.button.white {
    background: #ffffff;
    color: var(--ink);
    border: 1px solid var(--line);
    cursor: pointer;
}

.button.white:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--ink);
}

/* Modern Space-Maximizing Chat Composer */
.chat-composer {
    margin-top: 10px;
}

.composer-box {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
}

.composer-box:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(1, 22, 76, 0.08);
}

.composer-box textarea,
.chat-composer textarea {
    width: 100%;
    min-height: 48px;
    max-height: 180px;
    padding: 10px 14px 6px 14px;
    font-size: 14px;
    line-height: 1.45;
    border: none;
    outline: none;
    background: transparent;
    color: var(--ink);
    margin: 0;
    resize: none;
    box-sizing: border-box;
    font-family: inherit;
}

.composer-box textarea:focus,
.chat-composer textarea:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

.composer-inner-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 4px 10px 8px 10px;
    background: transparent;
}

.voice-btn,
.composer-inner-actions .voice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    color: var(--muted);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.15s ease;
    user-select: none;
    flex-shrink: 0;
}

.voice-btn:hover:not(:disabled),
.composer-inner-actions .voice-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--green);
}

.voice-btn .voice-icon-svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.15s ease, fill 0.15s ease;
}

.voice-btn.is-listening {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #dc2626 !important;
    animation: voice-pulse 1.5s infinite;
}

.composer-submit-btn,
.chat-composer button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 32px;
    padding: 0 14px;
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    background: var(--green);
    color: #ffffff;
    border: 1px solid var(--green);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.composer-submit-btn:hover:not(:disabled),
.chat-composer button[type="submit"]:hover:not(:disabled) {
    background: #082163;
    border-color: #082163;
}

.composer-submit-btn:disabled,
.chat-composer button[type="submit"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.composer-submit-btn .send-icon-svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.buy-tokens-btn {
    height: 32px;
    font-size: 12px;
    padding: 0 12px;
}

@keyframes voice-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.voice-status-indicator {
    font-size: 12px;
    color: var(--muted);
    margin-top: 10px;
    padding: 6px 10px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.voice-status-indicator.is-listening {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
    font-weight: 500;
}

.voice-status-indicator.is-error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.voice-status-indicator.is-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

/* Audible Responses & Speech Synthesis UI */
.audio-controls-group {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.audio-toggle-btn {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    padding: 0 12px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid var(--line);
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    user-select: none;
}

.audio-toggle-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--ink);
    text-decoration: none;
}

.audio-toggle-btn.is-active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.audio-toggle-btn.is-active:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

.voice-settings-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
    flex-shrink: 0;
}

.voice-settings-btn:hover {
    background: #f1f5f9;
    color: var(--ink);
}

.voice-settings-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.voice-settings-btn .voice-settings-icon {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.25s ease;
}

.voice-settings-btn:hover .voice-settings-icon {
    transform: rotate(30deg);
}

.voice-settings-popover {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 290px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.settings-popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.settings-popover-header strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.popover-close-btn {
    background: transparent;
    border: none;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
}

.popover-close-btn:hover {
    color: var(--ink);
    background: #f1f5f9;
}

.settings-field {
    margin-bottom: 12px;
}

.settings-field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 4px;
}

.settings-select {
    width: 100%;
    height: 34px;
    padding: 0 9px;
    font-size: 12px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.settings-select:focus {
    border-color: #94a3b8;
}

.settings-field-checkbox {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.settings-field-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ink);
    cursor: pointer;
}

.speak-message-btn, .speak-assessment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: var(--muted);
    background: #f8fafc;
    border: 1px solid var(--line);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
    flex-shrink: 0;
    user-select: none;
    text-decoration: none;
}

.speak-message-btn {
    margin-left: auto;
}

.speak-message-btn:hover, .speak-assessment-btn:hover {
    color: var(--ink);
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.speak-message-btn.is-speaking, .speak-assessment-btn.is-speaking {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
    font-weight: 600;
}

.speak-message-btn.is-speaking:hover, .speak-assessment-btn.is-speaking:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

.speak-message-btn .speak-icon-svg,
.speak-assessment-btn .speak-icon-svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: currentColor;
    transition: transform 0.15s ease, fill 0.15s ease;
}

.speak-message-btn:hover .speak-icon-svg,
.speak-assessment-btn:hover .speak-icon-svg {
    color: var(--green);
}

.speak-message-btn.is-speaking .speak-icon-svg,
.speak-assessment-btn.is-speaking .speak-icon-svg {
    color: #1d4ed8;
}

.speak-message-btn.is-speaking:hover .speak-icon-svg,
.speak-assessment-btn.is-speaking:hover .speak-icon-svg {
    color: #1e40af;
}

.assessment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.chat-message.is-speaking {
    border-left: 3px solid #3b82f6 !important;
    background-color: #f8fafc;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Docked Audio Player */
.chat-audio-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin: 10px 0;
    animation: fadeIn 0.2s ease;
}

.audio-player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-player-status {
    font-size: 13px;
    font-weight: 500;
    color: #166534;
}

.audio-player-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.audio-ctrl-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    cursor: pointer;
}

/* Soundwave Equalizer Animation */
.audio-equalizer {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    width: 14px;
}

.audio-equalizer .eq-bar {
    width: 2px;
    background: #16a34a;
    border-radius: 1px;
    animation: eq-bounce 1.2s ease-in-out infinite;
}

.audio-equalizer .eq-bar:nth-child(1) {
    height: 40%;
    animation-delay: 0.1s;
}

.audio-equalizer .eq-bar:nth-child(2) {
    height: 100%;
    animation-delay: 0.3s;
}

.audio-equalizer .eq-bar:nth-child(3) {
    height: 60%;
    animation-delay: 0.2s;
}

.audio-equalizer .eq-bar:nth-child(4) {
    height: 80%;
    animation-delay: 0.4s;
}

.chat-audio-player.is-paused .audio-equalizer .eq-bar {
    animation-play-state: paused;
}

@keyframes eq-bounce {
    0%, 100% {
        height: 25%;
    }
    50% {
        height: 100%;
    }
}

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

@media (max-width: 960px) {
    .chat-workspace {
        grid-template-columns: 1fr;
    }

    .conversation-sidebar {
        position: static;
        max-height: none;
    }

    .conversation-list {
        max-height: 240px;
    }

    .chat-transcript {
        max-height: 52vh;
    }
}

@media (max-width: 640px) {
    main:has(.chat-workspace) {
        padding: 0 14px;
    }

    .chat-panel {
        padding: 16px 14px;
    }

    .from-user {
        max-width: 92%;
    }

    .from-mentagma {
        max-width: 100%;
    }

    .composer-actions {
        width: 100%;
        justify-content: stretch;
    }

    .composer-actions > * {
        flex: 1;
    }
}

/* Mobile-Style Dictation Modal Overlay */
.dictation-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.dictation-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: dictationFadeIn 0.2s ease-out;
}

.dictation-modal-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 580px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: dictationPopUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dictation-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.dictation-modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dictation-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fee2e2;
    color: #dc2626;
    flex-shrink: 0;
}

.dictation-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    line-height: 1.2;
}

.dictation-subtitle {
    font-size: 12px;
    color: var(--muted);
    margin: 3px 0 0;
    line-height: 1.2;
}

.dictation-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dictation-mode-select {
    height: 32px;
    font-size: 12px;
    font-weight: 500;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: var(--ink);
    outline: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dictation-mode-select:hover,
.dictation-mode-select:focus {
    background: #ffffff;
    border-color: #94a3b8;
}

.dictation-close-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 15px;
    color: var(--muted);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dictation-close-btn:hover {
    background: #f1f5f9;
    color: var(--ink);
}

.dictation-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dictation-text-card {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dictation-text-card:focus-within {
    background: #ffffff;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(1, 22, 76, 0.08);
}

.dictation-transcript-area {
    width: 100%;
    min-height: 110px;
    max-height: 200px;
    border: none;
    background: transparent;
    resize: vertical;
    outline: none;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    font-family: inherit;
    box-sizing: border-box;
}

.dictation-transcript-area::placeholder {
    color: #94a3b8;
    font-style: italic;
}

.dictation-status-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f1f5f9;
    color: var(--muted);
    transition: all 0.2s ease;
}

.dictation-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
}

.dictation-status-badge.is-listening {
    background: #fef2f2;
    color: #b91c1c;
}

.dictation-status-badge.is-listening .dictation-status-dot {
    background: #ef4444;
    animation: dictationBlink 1.2s infinite;
}

.dictation-status-badge.is-success {
    background: #f0fdf4;
    color: #166534;
}

.dictation-status-badge.is-success .dictation-status-dot {
    background: #22c55e;
}

.dictation-status-badge.is-error {
    background: #fff1f2;
    color: #be123c;
}

.dictation-status-badge.is-error .dictation-status-dot {
    background: #f43f5e;
}

.dictation-visualizer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 6px 0;
}

.dictation-waveform-canvas {
    width: 100%;
    max-width: 480px;
    height: 54px;
    border-radius: 8px;
    background: #f1f5f9;
    display: block;
}

.dictation-mic-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
}

.dictation-pulse-ring {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.35);
    pointer-events: none;
    opacity: 0;
}

.dictation-pulse-ring.is-active {
    animation: dictationPulseRipple 1.6s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.dictation-mic-button {
    position: relative;
    z-index: 2;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    background: #e2e8f0;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.dictation-mic-button:hover {
    transform: scale(1.06);
}

.dictation-mic-button.is-listening {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.dictation-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

.dictation-footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dictation-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dictation-btn-send {
    background: var(--green) !important;
    border-color: var(--green) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.dictation-btn-send:hover {
    background: #082163 !important;
    border-color: #082163 !important;
}

@keyframes dictationFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes dictationPopUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes dictationPulseRipple {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.35;
    }
    100% {
        transform: scale(1.85);
        opacity: 0;
    }
}

@media (max-width: 640px) {
    .dictation-modal {
        align-items: flex-end;
        padding: 0;
    }

    .dictation-modal-container {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        margin: 0;
        max-height: 90vh;
        animation: dictationSheetUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes dictationSheetUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
    .dictation-modal-footer {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .dictation-footer-left,
    .dictation-footer-right {
        width: 100%;
        justify-content: stretch;
    }

    .dictation-footer-right > *,
    .dictation-footer-left > * {
        flex: 1;
        text-align: center;
    }
}

/* Call Assessment and On-Demand Transcription Assessments */
.drawer-action-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.drawer-action-btn-pill:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.drawer-action-btn-pill:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.call-assessment-card {
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    animation: fadeIn 0.2s ease;
}

.call-assessment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.call-assessment-badge {
    font-size: 11px;
    font-weight: 700;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.call-assessment-close {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 13px;
    padding: 2px 4px;
    border-radius: 4px;
}

.call-assessment-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.call-assessment-body {
    font-size: 12px;
    color: #1e3a8a;
    line-height: 1.45;
}

.call-assessment-text {
    margin: 0;
    white-space: pre-wrap;
}

.call-assessment-text.is-error {
    color: #dc2626;
}

.assessment-loading-state {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #2563eb;
}

.assessment-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(37, 99, 235, 0.25);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.transcript-actions {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.transcript-assess-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.transcript-assess-btn:hover {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.transcript-error-text {
    font-size: 11px;
    color: #dc2626;
}
