@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8f9fc;
    --line: #e7e9f1;
    --text: #1d2538;
    --muted: #778096;
    --muted-dark: #5f687d;
    --primary: #6557d2;
    --primary-dark: #5043b7;
    --primary-soft: #efedff;
    --success: #4cbf90;
    --danger: #eb6267;
    --danger-dark: #d84e54;
    --shadow: 0 18px 48px rgba(56, 62, 91, 0.08);
    --shadow-soft: 0 9px 24px rgba(50, 58, 92, 0.08);
    --chat-input-size: 12px;
    --chat-smiley-size: 24px;
    font-family: "DM Sans", "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #111827;
    --surface: #182133;
    --surface-soft: #202a3d;
    --line: #334155;
    --text: #eef2ff;
    --muted: #aab4c8;
    --muted-dark: #c2ccde;
    --primary: #8f86ff;
    --primary-dark: #b8b2ff;
    --primary-soft: #28254a;
    --success: #65d6a8;
    --danger: #ff7479;
    --danger-dark: #ff9da1;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 9px 24px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .dashboard-shell {
    background: var(--bg);
    color: var(--text);
}

html[data-theme="dark"] :where(
    .app-sidebar,
    .auth-card,
    .quick-card:not(.primary-card),
    .upcoming-card,
    .message-overview,
    .messenger,
    .header-popover,
    .modal-card,
    .profile-row,
    .workspace-card,
    .docs-card,
    .side-card,
    .settings-tabs button.active,
    .icon-button,
    .secure-chip,
    .status-pill,
    .message-contact,
    .message-target-picker,
    .contact-code-display,
    .message-contact-card,
    .group-contact-options button,
    .group-invite-menu button,
    .shortcut-row,
    .summary-grid section) {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}

html[data-theme="dark"] :where(
    .settings-tabs,
    .panel-input,
    .join-row input,
    .field-label select,
    .search-box,
    .panel-search,
    .background-slider,
    .background-color-choice,
    .background-color-picker,
    .background-parameter-panel,
    .select-field select,
    .poll-option,
    .message-meeting-summary) {
    background: var(--surface-soft);
    border-color: var(--line);
    color: var(--text);
}

html[data-theme="dark"] :where(.auth-shell) {
    background: linear-gradient(145deg, #111827, #1e1b4b);
}

html[data-theme="dark"] :where(.primary-card) {
    background: linear-gradient(135deg, #756bef, #5b50d4);
}

html[data-theme="dark"] :where(input, select, textarea) {
    background-color: var(--surface-soft);
    color: var(--text);
}

html[data-theme="dark"] :where(input::placeholder, textarea::placeholder) {
    color: #8793aa;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
}

body {
    min-width: 320px;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3,
.brand {
    font-family: "Manrope", "Segoe UI", sans-serif;
}

.icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    flex: 0 0 auto;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    min-height: 100vh;
}

.app-sidebar {
    background: #fff;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 24px 14px 18px;
}

.brand {
    align-items: center;
    display: flex;
    font-size: 20px;
    font-weight: 800;
    gap: 9px;
    letter-spacing: -0.8px;
    padding: 0 9px;
}

.brand-mark {
    align-items: center;
    background: linear-gradient(135deg, #7365e5, #5143b6);
    border-radius: 11px;
    box-shadow: 0 7px 14px rgba(101, 87, 210, 0.24);
    color: #fff;
    display: inline-flex;
    font-size: 14px;
    height: 32px;
    justify-content: center;
    letter-spacing: -1px;
    width: 32px;
}

.brand-version {
    color: var(--muted);
    font-family: "DM Sans", "Segoe UI", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    margin-left: -5px;
    transform: translateY(3px);
}

.auth-shell {
    align-items: center;
    background: linear-gradient(145deg, #f6f7fb, #eeecff);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 16px;
    max-width: 410px;
    padding: 28px;
    width: 100%;
}

.auth-card .brand {
    margin-bottom: 12px;
    padding: 0;
}

.auth-card h1 {
    font-size: 28px;
    letter-spacing: -1px;
    margin: 5px 0;
}

.auth-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.auth-loading {
    justify-items: center;
    text-align: center;
}

.auth-error {
    background: #fff0f1;
    border-radius: 8px;
    color: var(--danger-dark) !important;
    padding: 9px 10px;
}

.auth-notice {
    background: #ebfaf3;
    border-radius: 8px;
    color: #2f8d6d !important;
    padding: 9px 10px;
}

.auth-switch {
    justify-content: center;
}

.main-nav {
    display: grid;
    gap: 5px;
    margin-top: 48px;
}

.nav-item {
    align-items: center;
    border: 0;
    border-radius: 11px;
    color: #7c8499;
    display: flex;
    gap: 12px;
    padding: 11px 12px;
    transition: 160ms ease;
}

.nav-item:hover,
.nav-item.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.nav-item span {
    font-size: 13px;
    font-weight: 600;
}

.nav-button {
    background: transparent;
    text-align: left;
    width: 100%;
}

.sidebar-bottom {
    display: grid;
    gap: 5px;
    margin-top: auto;
}

.profile-row {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 9px;
    margin-top: 10px;
    padding: 18px 4px 0;
}

.profile-row strong,
.profile-row small {
    display: block;
    font-size: 11px;
}

.profile-row small {
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
}

.online-dot {
    background: var(--success);
    border: 2px solid #fff;
    border-radius: 50%;
    height: 9px;
    margin-left: auto;
    width: 9px;
}

.avatar {
    align-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 700;
    height: 38px;
    justify-content: center;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    width: 38px;
}

.avatar-sm {
    font-size: 10px;
    height: 29px;
    width: 29px;
}

.avatar-xs {
    font-size: 8px;
    height: 24px;
    width: 24px;
}

.avatar-xl {
    font-size: 28px;
    height: 92px;
    width: 92px;
}

.avatar-gradient {
    background: linear-gradient(135deg, #7e72e8, #4f43b8);
}

.avatar-blue {
    background: linear-gradient(135deg, #78b3ee, #4b76be);
}

.avatar-orange {
    background: linear-gradient(135deg, #f8af73, #e77a54);
}

.avatar-purple {
    background: linear-gradient(135deg, #b292ed, #795ac2);
}

.avatar-green {
    background: linear-gradient(135deg, #6dcaa5, #3d9c83);
}

.avatar-image {
    background: #eef0f6;
    overflow: hidden;
}

.avatar-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.avatar-image[role="button"] {
    cursor: zoom-in;
}

.avatar-image[role="button"]:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.45);
    outline-offset: 2px;
}

.avatar-preview-backdrop {
    background: rgba(17, 24, 39, 0.76);
    z-index: 140;
}

.avatar-preview-dialog {
    background: #fff;
    box-shadow: 0 24px 64px rgba(17, 24, 39, 0.32);
    height: min(512px, calc(100vw - 36px), calc(100vh - 36px));
    position: relative;
    width: min(512px, calc(100vw - 36px), calc(100vh - 36px));
}

.avatar-preview-dialog > img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.avatar-preview-close {
    background: #fff;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.24);
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 1;
}

.dashboard-main {
    margin: 0 auto;
    max-width: 1440px;
    padding: 0 56px 48px;
    width: 100%;
}

.dashboard-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    height: 78px;
    justify-content: center;
}

.mobile-brand {
    align-items: center;
    display: none;
    gap: 8px;
}

.search-box,
.panel-search {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #a1a8b8;
    display: flex;
    gap: 9px;
    padding: 0 13px;
}

.search-box {
    width: min(100%, 420px);
}

.search-box input,
.panel-search input {
    background: transparent;
    border: 0;
    color: var(--text);
    font-size: 12px;
    outline: 0;
    padding: 11px 0;
    width: 100%;
}

.header-actions {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-left: auto;
    position: relative;
}

.header-icon-button {
    position: relative;
}

.header-icon-button b {
    align-items: center;
    background: var(--danger);
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 8px;
    height: 17px;
    justify-content: center;
    position: absolute;
    right: -5px;
    top: -5px;
    width: 17px;
}

.profile-button {
    background: transparent;
    border: 0;
    padding: 0;
}

.header-popover {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 50px;
    z-index: 12;
}

.notification-popover {
    width: min(360px, 88vw);
}

.header-popover header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 13px;
}

.header-popover h3 {
    font-size: 14px;
    margin-top: 3px;
}

.notification-row {
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 9px;
    padding: 12px;
}

.notification-row:last-child {
    border-bottom: 0;
}

.notification-row.unread {
    background: #faf9ff;
}

.notification-row > span {
    align-items: center;
    background: var(--primary-soft);
    border-radius: 8px;
    color: var(--primary);
    display: flex;
    height: 31px;
    justify-content: center;
    width: 31px;
}

.notification-row div {
    flex: 1;
}

.notification-row strong,
.notification-row p,
.notification-row time {
    display: block;
    font-size: 10px;
}

.notification-row p,
.notification-row time {
    color: var(--muted);
    line-height: 1.45;
    margin-top: 3px;
}

.profile-popover {
    padding: 7px;
    width: 220px;
}

.profile-menu-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
    padding: 7px;
}

.profile-menu-head strong,
.profile-menu-head small {
    display: block;
    font-size: 11px;
}

.profile-menu-head small {
    color: var(--muted);
    font-size: 9px;
    margin-top: 3px;
}

.profile-popover button,
.profile-popover a {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--muted-dark);
    display: flex;
    font-size: 11px;
    gap: 8px;
    padding: 9px;
    text-align: left;
    width: 100%;
}

.profile-popover button:hover,
.profile-popover a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.presence-dot {
    background: var(--success);
    border-radius: 50%;
    height: 8px;
    width: 8px;
}

.presence-dot.busy {
    background: var(--danger);
}

.avatar-with-presence {
    display: inline-flex;
    position: relative;
}

.presence-indicator {
    background: var(--success);
    border: 2px solid #fff;
    border-radius: 50%;
    bottom: -1px;
    height: 10px;
    position: absolute;
    right: -1px;
    width: 10px;
}

.presence-indicator.busy {
    background: var(--danger);
}

.presence-indicator.offline {
    background: #aeb5c4;
}

.icon-button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted-dark);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    transition: 150ms ease;
    width: 38px;
}

.icon-button:hover {
    border-color: #d2cffa;
    color: var(--primary);
}

.welcome-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 38px 0 24px;
}

.eyebrow,
.tool-kicker,
.list-label {
    color: #9aa2b5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.welcome-row h1 {
    font-size: clamp(26px, 3vw, 35px);
    letter-spacing: -1.5px;
    margin-top: 8px;
}

.welcome-row p:last-child {
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
}

.secure-chip,
.status-pill {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    color: var(--muted-dark);
    display: inline-flex;
    font-size: 11px;
    font-weight: 600;
    gap: 7px;
    padding: 9px 12px;
}

.secure-chip .icon {
    color: var(--success);
    height: 15px;
    width: 15px;
}

.quick-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1.08fr 1fr;
}

.quick-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(75, 81, 111, 0.03);
    color: var(--text);
    display: flex;
    gap: 14px;
    min-height: 104px;
    padding: 17px;
    text-align: left;
    transition: 180ms ease;
}

button.quick-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.primary-card {
    background: linear-gradient(135deg, #6d60d8, #5649c0);
    border: 0;
    color: #fff;
}

.quick-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 13px;
    display: flex;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.quick-icon .icon {
    height: 21px;
    width: 21px;
}

.soft-purple {
    background: #f0eeff;
    color: var(--primary);
}

.soft-orange {
    background: #fff3e6;
    color: #ef9953;
}

.quick-card strong,
.quick-card small {
    display: block;
}

.quick-card strong {
    font-family: "Manrope", sans-serif;
    font-size: 13px;
}

.quick-card small {
    color: inherit;
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.72;
}

.quick-arrow {
    margin-left: auto;
}

.join-card {
    display: grid;
    grid-template-columns: auto 1fr;
}

.join-row {
    display: flex;
    grid-column: 1 / -1;
    gap: 7px;
}

.join-row input,
.panel-input {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: 11px;
    outline: 0;
    padding: 9px 11px;
    width: 100%;
}

.join-row button {
    align-items: center;
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    color: #fff;
    display: flex;
    justify-content: center;
    width: 36px;
}

.join-error {
    background: #fff0f1;
    border-radius: 8px;
    color: var(--danger-dark);
    font-size: 11px;
    grid-column: 1 / -1;
    line-height: 1.45;
    margin: 0;
    padding: 9px 10px;
}

.dashboard-columns {
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 1fr) 292px;
    margin-top: 38px;
}

.dashboard-page {
    padding: 38px 0;
}

.dashboard-page .section-heading {
    align-items: flex-end;
    margin-bottom: 20px;
}

.dashboard-page h1 {
    font-size: 30px;
    letter-spacing: -1.3px;
    margin-top: 7px;
}

.dashboard-page .section-heading p:last-child {
    color: var(--muted);
    font-size: 12px;
    margin-top: 7px;
}

.dashboard-list {
    max-width: 850px;
}

.message-overview {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    max-width: 760px;
    overflow: hidden;
}

.message-contact {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 11px;
    padding: 15px 17px;
}

.message-contact:last-child {
    border-bottom: 0;
}

.message-contact.selected {
    background: #f9f8ff;
}

.message-contact div {
    flex: 1;
    min-width: 0;
}

.message-contact strong,
.message-contact p,
.message-contact time {
    display: block;
    font-size: 12px;
}

.message-contact p,
.message-contact time {
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.messenger {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    height: min(720px, calc(100vh - 210px));
    max-width: none;
    min-height: min(720px, calc(100vh - 210px));
    overflow: hidden;
}

.conversation-list {
    border-right: 1px solid var(--line);
    min-height: 0;
    overflow: hidden;
}

.message-target-picker {
    background: #fbfbfe;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 7px;
    height: 100%;
    min-height: 0;
    padding: 11px;
}

.message-target-picker label {
    color: var(--muted-dark);
    display: grid;
    font-size: 10px;
    font-weight: 700;
    gap: 5px;
}

.message-target-picker select {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--text);
    font-size: 11px;
    min-width: 0;
    padding: 7px;
    width: 100%;
}

.message-target-picker .button {
    justify-content: center;
    padding: 7px;
}

.contact-editor-head {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.contact-header-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.contact-header-actions .icon-button {
    border-radius: 8px;
    height: 32px;
    width: 32px;
}

.contact-editor-head strong,
.contact-editor-head small {
    display: block;
}

.contact-editor-head small {
    color: var(--muted);
    font-size: 10px;
    margin-top: 2px;
}

.message-target-picker .contact-inline-search {
    align-items: center;
    display: flex;
    gap: 9px;
    margin: 0;
}

.message-target-picker .contact-inline-search .icon {
    flex: 0 0 auto;
}

.message-target-picker .contact-inline-search input {
    min-width: 0;
}

.contact-code-panel {
    display: grid;
    gap: 7px;
}

.contact-code-display {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    min-width: 0;
    padding: 7px;
}

.contact-code-display strong {
    color: var(--text);
    font-size: 13px;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.contact-code-input {
    margin: 0;
}

.group-builder {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 7px;
    padding-top: 7px;
}

.modal-group-builder {
    border-top: 0;
    gap: 10px;
    padding-top: 0;
}

.group-builder label {
    color: var(--muted-dark);
    display: grid;
    font-size: 10px;
    font-weight: 700;
    gap: 5px;
}

.group-contact-options,
.group-invite-menu {
    display: grid;
    gap: 5px;
}

.group-contact-options {
    max-height: 120px;
    overflow: auto;
}

.modal-group-builder .group-contact-options {
    max-height: 220px;
}

.group-contact-options button,
.group-invite-menu button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--text);
    display: flex;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    padding: 6px;
    text-align: left;
}

.group-contact-options button.selected {
    background: #edf9f3;
    border-color: #94d8b8;
    color: #1d6b4d;
}

.contact-form-grid {
    display: grid;
    gap: 7px;
    grid-template-columns: 42px minmax(0, 1fr);
}

.contact-form-grid label {
    min-width: 0;
}

.contact-form-grid label:last-child {
    grid-column: 2;
}

.contact-form-avatar {
    align-self: end;
    grid-row: 1 / 3;
}

.contact-form-actions {
    align-items: center;
    display: flex;
    gap: 7px;
}

.contact-form-actions .button {
    flex: 1;
}

.contact-avatar-upload {
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.contact-avatar-upload input {
    inset: 0;
    cursor: pointer;
    opacity: 0;
    position: absolute;
}

.inline-contact-message {
    margin: 0;
}

.message-contact-list {
    align-content: start;
    display: grid;
    flex: 1 1 auto;
    gap: 7px;
    grid-auto-rows: max-content;
    min-height: 0;
    overflow: auto;
    padding-right: 2px;
}

.message-contact-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    gap: 7px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 7px;
}

.message-contact-card.selected {
    background: #f9f8ff;
    border-color: #d8d3ff;
}

.message-contact-card > button {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    display: grid;
    gap: 7px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-width: 0;
    padding: 0;
    text-align: left;
}

.message-contact-card > div {
    display: flex;
    gap: 5px;
}

.message-contact-card strong,
.message-contact-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-contact-card small {
    color: var(--muted);
    font-size: 9px;
    margin-top: 2px;
}

.contact-account-badge {
    border-radius: 999px;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    padding: 3px 6px;
}

.contact-account-badge.virello {
    background: #eaf8f1;
    color: #2c8f68;
}

.contact-account-badge.external {
    background: #eef1f7;
    color: #68728a;
}

.contact-account-badge.group {
    background: #e9f7f0;
    color: #20724f;
}

.group-contact-card {
    background: #f8fffb;
    border-color: #c8ead8;
}

.group-contact-card.selected {
    background: #edf9f3;
    border-color: #94d8b8;
}

.group-avatar,
.group-thread-avatar {
    align-items: center;
    background: #dff5ea;
    border: 1px solid #b8e5cc;
    border-radius: 50%;
    color: #20724f;
    display: inline-flex;
    flex: 0 0 auto;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.group-avatar .icon,
.group-thread-avatar .icon {
    height: 18px;
    width: 18px;
}

.conversation-list .message-contact {
    background: #fff;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.conversation-list .message-contact.selected {
    background: #f9f8ff;
}

.message-contact p {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-contact b {
    align-items: center;
    background: var(--primary);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 8px;
    height: 16px;
    justify-content: center;
    width: 16px;
}

.direct-thread-empty {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    height: auto;
    justify-content: center;
    min-height: 260px;
    padding: 32px;
    text-align: center;
}

.direct-thread-empty .icon {
    color: var(--primary);
    height: 34px;
    width: 34px;
}

.direct-thread-empty strong {
    color: var(--ink);
    font-size: 18px;
}

.direct-thread {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.direct-thread > header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex: 0 0 auto;
    gap: 9px;
    padding: 13px;
    position: relative;
}

.direct-thread > header > div:first-of-type {
    min-width: 0;
}

.message-thread-search {
    flex: 1 1 280px;
    margin: 0 0 0 auto;
    max-width: 420px;
    min-width: 180px;
}

.group-thread-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-left: auto;
    position: relative;
}

.group-thread-actions .button {
    padding: 7px 10px;
}

.group-leave-button {
    color: var(--danger-dark);
}

.group-members-menu,
.group-invite-menu {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(18, 25, 38, .14);
    min-width: 210px;
    max-height: 270px;
    overflow: auto;
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
}

.group-members-menu {
    display: grid;
    gap: 4px;
}

.group-members-menu article {
    align-items: center;
    border-radius: 7px;
    display: flex;
    gap: 7px;
    padding: 7px;
}

.group-members-menu article > span:not(.avatar) {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
}

.group-members-menu strong,
.group-members-menu small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-members-menu small {
    color: var(--muted);
    font-size: 10px;
}

.group-member-add {
    flex: 0 0 auto;
    font-size: 10px;
    max-width: 112px;
    padding: 0;
    text-align: left;
}

.group-invite-menu small {
    font-size: 10px;
    margin: 0;
}

.direct-thread strong,
.direct-thread small {
    display: block;
    font-size: 11px;
}

.direct-thread small {
    color: var(--muted);
    font-size: 9px;
    margin-top: 3px;
}

.direct-message-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow: auto;
    padding: 14px;
}

.message-history-loader {
    align-self: center;
    background: #f7f7fb;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted-dark);
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 11px;
}

.message-history-loader:hover {
    background: #f0efff;
    color: var(--primary);
}

.messages-chat-body {
    background: #fff;
}

.messages-chat-body .chat-message {
    width: 100%;
}

.messages-chat-composer {
    flex: 0 0 auto;
}

.disabled-chat-composer {
    opacity: .62;
}

.disabled-chat-composer .chat-rich-input,
.chat-rich-input[contenteditable="false"] {
    cursor: not-allowed;
    user-select: none;
}

.messages-chat-input {
    font-family: inherit;
}

.profile-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1040px;
}

.profile-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    min-width: 0;
    padding: 17px;
}

.profile-panel > header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    margin: -17px -17px 14px;
    padding: 16px 17px;
}

.profile-panel h2 {
    font-size: 16px;
}

.profile-panel > header .icon {
    color: var(--primary);
}

.profile-summary-panel {
    display: grid;
    gap: 16px;
}

.profile-avatar-summary {
    align-items: center;
    display: flex;
    gap: 16px;
}

.profile-avatar-summary h2 {
    font-size: 20px;
    margin-bottom: 3px;
}

.profile-avatar-summary p,
.profile-muted {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.email-status {
    align-items: center;
    border-radius: 18px;
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    gap: 5px;
    margin-top: 9px;
    padding: 6px 9px;
}

.email-status .icon {
    height: 13px;
    width: 13px;
}

.email-status.verified,
.profile-success {
    background: #ebfaf3;
    color: #2f8d6d;
}

.email-status.pending {
    background: #fff4e8;
    color: #c87732;
}

.profile-upload {
    margin-top: 0;
}

.profile-image-source-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-camera-button {
    font: inherit;
    margin: 0;
}

@media (max-width: 520px) {
    .profile-image-source-actions {
        grid-template-columns: 1fr;
    }
}

.profile-crop-inline {
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    gap: 12px;
    padding: 12px;
}

.profile-crop-inline header {
    border: 0;
    margin: 0;
    padding: 0;
}

.profile-crop-inline h2 {
    font-size: 14px;
}

.profile-crop-stage {
    background: #111827;
    border-radius: 10px;
    cursor: move;
    display: block;
    margin: 0 auto;
    max-width: min(100%, 360px);
    overflow: hidden;
    position: relative;
    touch-action: none;
    width: 100%;
}

.profile-crop-stage img {
    display: block;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    width: 100%;
}

.profile-crop-selection {
    border: 2px solid #22c55e;
    box-shadow: 0 0 0 1px rgba(21, 128, 61, 0.55), 0 0 0 9999px rgba(17, 24, 39, 0.46);
    cursor: move;
    position: absolute;
    z-index: 1;
}

.profile-crop-handle {
    background: #22c55e;
    border: 1px solid rgba(17, 24, 39, 0.55);
    border-radius: 50%;
    height: 12px;
    position: absolute;
    width: 12px;
}

.profile-crop-handle.nw {
    cursor: nwse-resize;
    left: -7px;
    top: -7px;
}

.profile-crop-handle.ne {
    cursor: nesw-resize;
    right: -7px;
    top: -7px;
}

.profile-crop-handle.sw {
    bottom: -7px;
    cursor: nesw-resize;
    left: -7px;
}

.profile-crop-handle.se {
    bottom: -7px;
    cursor: nwse-resize;
    right: -7px;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.profile-message {
    color: var(--muted-dark);
    font-size: 11px;
    line-height: 1.55;
    margin-top: 10px;
}

.profile-success {
    align-items: center;
    border-radius: 10px;
    display: flex;
    font-size: 11px;
    font-weight: 700;
    gap: 7px;
    margin-top: 13px;
    padding: 11px;
}

.verification-code-card {
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    gap: 4px;
    margin-top: 13px;
    padding: 12px;
}

.verification-code-card span,
.verification-code-card small {
    color: var(--muted);
    font-size: 10px;
}

.verification-code-card strong {
    font-family: "Manrope", sans-serif;
    font-size: 24px;
    letter-spacing: 3px;
}

.danger-panel {
    border-color: #f2c7ca;
}

.danger-panel > header .icon {
    color: var(--danger);
}

.directory-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
}

.directory-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    min-width: 0;
    overflow: hidden;
}

.directory-panel > header {
    border-bottom: 1px solid var(--line);
    padding: 16px;
}

.directory-panel h2 {
    font-size: 16px;
}

.directory-panel p,
.directory-panel small {
    color: var(--muted);
    font-size: 11px;
    margin-top: 4px;
}

.contact-add-row {
    display: flex;
    gap: 8px;
    padding: 13px;
}

.contact-add-row .panel-input {
    flex: 1;
    min-width: 0;
}

.contact-message {
    color: var(--muted-dark);
    font-size: 12px;
    line-height: 1.45;
    margin: 0 13px 12px;
}

.directory-search {
    margin: 13px;
}

.directory-person {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 10px;
    padding: 13px;
}

.directory-person div {
    flex: 1;
    min-width: 0;
}

.directory-person strong,
.directory-person small {
    display: block;
    font-size: 12px;
}

.directory-person .text-button {
    flex: 0 0 auto;
}

.directory-actions {
    display: grid;
    gap: 5px;
    justify-items: end;
}

.directory-added {
    background: #ebfaf3;
    border-radius: 12px;
    color: #339975;
    font-size: 10px;
    padding: 4px 7px;
}

.danger-text {
    color: var(--danger-dark);
}

.direct-message {
    align-self: flex-start;
    max-width: 74%;
}

.direct-message.own {
    align-self: flex-end;
    text-align: right;
}

.direct-message p {
    background: #f4f5f8;
    border-radius: 3px 10px 10px 10px;
    color: var(--muted-dark);
    font-size: 11px;
    line-height: 1.5;
    margin-top: 4px;
    overflow-wrap: anywhere;
    padding: 9px;
    text-align: left;
    white-space: pre-wrap;
}

.direct-message.own p {
    background: var(--primary-soft);
    border-radius: 10px 3px 10px 10px;
}

.direct-message time {
    color: var(--muted);
    display: block;
    font-size: 9px;
    margin-top: 4px;
}

.direct-composer {
    border-top: 1px solid var(--line);
    display: flex;
    gap: 7px;
    padding: 12px;
}

.direct-composer textarea {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    flex: 1;
    font-size: 11px;
    min-width: 0;
    outline: 0;
    padding: 10px;
    resize: none;
}

.direct-composer button {
    align-items: center;
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    color: #fff;
    display: flex;
    justify-content: center;
    width: 38px;
}

.recording-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 850px;
}

.recording-card {
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: flex;
    gap: 13px;
    padding: 17px;
}

.recording-preview {
    align-items: center;
    background: #fff0f0;
    border-radius: 10px;
    color: var(--danger);
    display: flex;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.soft-preview {
    background: var(--primary-soft);
    color: var(--primary);
}

.recording-card strong,
.recording-card p {
    display: block;
    font-size: 12px;
}

.recording-card p {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
    margin: 4px 0 10px;
}

.section-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.section-heading h2 {
    font-size: 19px;
    letter-spacing: -0.6px;
    margin-top: 6px;
}

.text-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--primary);
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 5px;
}

.text-button .icon {
    height: 14px;
    width: 14px;
}

.upcoming-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    padding: 18px 20px;
}

.upcoming-card.past-meeting {
    background: #f2f3f6;
    border-color: #d7dbe3;
    color: #7d8493;
}

.upcoming-card.past-meeting .meeting-line {
    background: #aeb5c2;
}

.upcoming-card.past-meeting .time-block strong,
.upcoming-card.past-meeting .meeting-info h3 {
    color: #6f7684;
}

.upcoming-card.past-meeting .tag {
    background: #e5e7ec;
    color: #7b8391;
}

.past-tag {
    background: #e1e4ea;
    color: #6f7684;
}

.finished-meetings-section {
    margin-top: 28px;
}

.finished-heading {
    margin-bottom: 12px;
}

.meeting-count-pill {
    align-items: center;
    background: #f2f3f7;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted-dark);
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    min-width: 28px;
    padding: 5px 9px;
}

.finished-meeting-card {
    padding-block: 15px;
}

.finished-meeting-card .meeting-line {
    height: 70px;
}

.finished-empty-card {
    background: #f8f9fc;
}

.time-block {
    text-align: center;
    width: 58px;
}

.time-block strong,
.time-block span {
    display: block;
}

.time-block strong {
    font-family: "Manrope", sans-serif;
    font-size: 17px;
}

.time-block span {
    color: var(--muted);
    font-size: 10px;
    margin-top: 5px;
}

.meeting-line {
    background: #8b7ce6;
    border-radius: 4px;
    height: 88px;
    width: 3px;
}

.blue-line {
    background: #6fb2e8;
}

.meeting-info {
    flex: 1;
    min-width: 0;
}

.meeting-info h3 {
    font-size: 14px;
    letter-spacing: -0.2px;
    margin-top: 8px;
}

.meeting-info p {
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.empty-meeting-card {
    align-items: center;
}

.meeting-empty-icon {
    align-items: center;
    background: #f1edff;
    border-radius: 14px;
    color: var(--primary);
    display: inline-flex;
    flex: 0 0 46px;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.meeting-empty-icon .icon {
    height: 20px;
    width: 20px;
}

.meeting-card-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.danger-icon-button:hover {
    background: #feeeee;
    color: var(--danger);
}

.meeting-resource-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.meeting-resource-list a {
    align-items: center;
    background: #f7f8fc;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    gap: 5px;
    max-width: 180px;
    overflow: hidden;
    padding: 5px 7px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meeting-resource-list a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background: #f1f2f7;
    border-radius: 12px;
    color: #8991a3;
    font-size: 9px;
    font-weight: 700;
    padding: 4px 7px;
}

.live-tag {
    background: #ebfaf3;
    color: #35a87c;
}

.attendee-row {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 10px;
    margin-top: 12px;
}

.attendee-row .avatar + .avatar {
    margin-left: -7px;
}

.attendee-row span:last-child {
    margin-left: 8px;
}

.button {
    align-items: center;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 7px;
    justify-content: center;
    padding: 10px 13px;
    transition: 150ms ease;
}

.button .icon {
    height: 15px;
    width: 15px;
}

.button-primary {
    background: var(--primary);
    color: #fff;
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-light {
    background: var(--primary-soft);
    color: var(--primary);
}

.button-danger {
    background: var(--danger);
    color: #fff;
}

.button-danger:hover:not(:disabled) {
    background: var(--danger-dark);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.feature-strip {
    background: linear-gradient(110deg, #f1f0ff, #f9f9ff);
    border: 1px solid #e4e1ff;
    border-radius: 14px;
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 20px;
    padding: 15px;
}

.feature-strip div {
    align-items: center;
    display: grid;
    grid-template-columns: 32px 1fr;
}

.feature-strip strong,
.feature-strip small {
    display: block;
    font-size: 10px;
}

.feature-strip small {
    color: var(--muted);
    font-size: 9px;
    margin-top: 2px;
}

.feature-icon {
    align-items: center;
    color: var(--primary);
    display: flex;
    grid-row: 1 / 3;
}

.side-column {
    display: grid;
    gap: 15px;
}

.calendar-card,
.setup-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
}

.compact-heading .icon {
    color: var(--primary);
}

.calendar-heading {
    gap: 12px;
}

.calendar-nav {
    align-items: center;
    display: flex;
    gap: 6px;
}

.calendar-nav button {
    align-items: center;
    background: #f5f7fb;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted-dark);
    display: flex;
    height: 30px;
    justify-content: center;
    padding: 0;
    width: 30px;
}

.calendar-nav button:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.calendar-nav .icon-prev {
    transform: rotate(180deg);
}

.calendar-controls {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 82px;
    margin: 12px 0 14px;
}

.calendar-controls select {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    font-size: 11px;
    min-width: 0;
    padding: 7px 8px;
}

.mini-calendar {
    display: grid;
    gap: 9px 6px;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.mini-calendar span {
    color: #afb5c3;
    font-size: 8px;
    font-weight: 700;
}

.mini-calendar b,
.mini-calendar button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    color: #798195;
    display: flex;
    font-size: 10px;
    height: 23px;
    justify-content: center;
    position: relative;
}

.mini-calendar button:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.mini-calendar button:disabled {
    cursor: not-allowed;
}

.mini-calendar .other-month {
    color: #c8ccd5;
}

.mini-calendar .past-day {
    background: #f0f1f5;
    color: #a3a9b7;
}

.mini-calendar button.past-day:hover {
    background: #f0f1f5;
    color: #a3a9b7;
}

.mini-calendar .today {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 800;
}

.mini-calendar .selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.mini-calendar .has-meetings::after {
    background: var(--primary);
    border-radius: 50%;
    bottom: 2px;
    content: "";
    height: 4px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 4px;
}

.mini-calendar .selected.has-meetings::after {
    background: #fff;
}

.mini-calendar .other-month.has-meetings::after {
    background: #aeb5c5;
}

.mini-calendar .past-day.has-meetings::after {
    background: #9aa2b5;
}

.calendar-agenda {
    border-top: 1px solid var(--line);
    margin-top: 13px;
    padding-top: 1px;
}

.calendar-agenda > button:not(.calendar-add) {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--muted-dark);
    display: flex;
    font-size: 10px;
    gap: 7px;
    padding: 5px 0;
    text-align: left;
    width: 100%;
}

.calendar-agenda > button.past-meeting {
    color: #8c94a3;
    opacity: 0.72;
}

.calendar-agenda i {
    background: var(--primary);
    border-radius: 4px;
    height: 18px;
    width: 3px;
}

.calendar-agenda > button.past-meeting i {
    background: #aeb5c2;
}

.calendar-agenda small {
    color: var(--muted);
    display: block;
    font-size: 10px;
    margin: 7px 0;
}

.calendar-add {
    margin-top: 7px;
}

.calendar-add:disabled {
    color: #a3a9b7;
    cursor: not-allowed;
    opacity: 0.55;
}

.setup-card {
    align-items: flex-start;
    display: flex;
    gap: 12px;
}

.setup-icon {
    align-items: center;
    background: #eff8ff;
    border-radius: 10px;
    color: #5e9ed4;
    display: flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.setup-card strong {
    font-family: "Manrope", sans-serif;
    font-size: 12px;
}

.setup-card p {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
    margin: 5px 0 8px;
}

.meeting-shell {
    background: #f7f8fc;
    height: 100vh;
    overflow: hidden;
}

.meeting-header {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 14px;
    height: 64px;
    justify-content: space-between;
    padding: 0 20px;
}

.meeting-brand,
.meeting-status {
    align-items: center;
    display: flex;
    gap: 10px;
}

.meeting-brand {
    flex: 0 1 auto;
    min-width: 0;
}

.meeting-view-controls {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 8px;
    justify-content: center;
    min-width: 0;
    position: relative;
}

.view-menu-button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    display: inline-flex;
    gap: 7px;
    min-height: 36px;
    padding: 7px 10px;
    position: relative;
    z-index: 14;
}

.view-menu-button span {
    font-size: 12px;
    font-weight: 800;
}

.view-menu-button small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.view-menu-button .icon {
    color: var(--primary);
    height: 15px;
    width: 15px;
}

.view-menu {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(23, 30, 48, 0.16);
    display: grid;
    gap: 10px;
    left: 50%;
    min-width: 300px;
    padding: 12px;
    position: absolute;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    z-index: 14;
}

.view-menu-dismiss-layer {
    background: transparent;
    border: 0;
    cursor: default;
    inset: 0;
    padding: 0;
    position: fixed;
    z-index: 13;
}

.view-menu section {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 6px;
    padding-bottom: 10px;
}

.view-menu section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.view-menu h3 {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.view-menu button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--text);
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 8px;
    justify-content: flex-start;
    min-height: 32px;
    padding: 7px 8px;
    text-align: left;
}

.view-menu button:hover,
.view-menu button.selected {
    background: #f1efff;
    color: var(--primary);
}

.view-menu button.selected::after {
    border-bottom: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    content: "";
    height: 8px;
    margin-left: auto;
    transform: rotate(45deg);
    width: 4px;
}

.view-menu button .icon {
    height: 14px;
    width: 14px;
}

.view-menu-grid {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meeting-status {
    flex: 0 0 auto;
}

.compact-brand {
    font-size: 17px;
    padding: 0;
}

.compact-brand .brand-mark {
    border-radius: 9px;
    height: 29px;
    width: 29px;
}

.compact-brand .brand-version {
    font-size: 9px;
    transform: translateY(2px);
}

.header-divider {
    background: var(--line);
    height: 28px;
    margin: 0 6px;
    width: 1px;
}

.network-indicator {
    align-items: center;
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted-dark);
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    gap: 7px;
    min-height: 31px;
    padding: 6px 10px;
}

.network-indicator:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.network-bars {
    align-items: end;
    display: inline-grid;
    gap: 2px;
    grid-template-columns: repeat(5, 4px);
    height: 16px;
}

.network-bars i {
    background: #d4d9e4;
    border-radius: 2px 2px 1px 1px;
    display: block;
    width: 4px;
}

.network-bars i:nth-child(1) {
    height: 5px;
}

.network-bars i:nth-child(2) {
    height: 8px;
}

.network-bars i:nth-child(3) {
    height: 11px;
}

.network-bars i:nth-child(4) {
    height: 14px;
}

.network-bars i:nth-child(5) {
    height: 16px;
}

.network-bars i.active {
    background: var(--success);
}

.quality-1 .network-bars i.active,
.quality-2 .network-bars i.active {
    background: var(--danger);
}

.quality-3 .network-bars i.active {
    background: #f0bb53;
}

.meeting-brand strong,
.meeting-brand small {
    display: block;
    font-size: 12px;
}

.meeting-title-button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    display: block;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    max-width: 100%;
    overflow: hidden;
    padding: 2px 4px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meeting-title-button:hover {
    background: #f1f0ff;
    color: var(--primary);
}

.meeting-room-summary {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.meeting-room-title {
    flex: 0 0 auto;
    min-width: 0;
}

.meeting-resource-bar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 0;
    max-width: min(520px, 48vw);
    min-width: 0;
}

.meeting-resource-label {
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.meeting-resource-bar a {
    align-items: center;
    background: #f5f6ff;
    border: 1px solid #e0e4ff;
    border-radius: 8px;
    color: var(--primary);
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    gap: 5px;
    max-width: 170px;
    overflow: hidden;
    padding: 5px 7px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meeting-resource-bar a:hover {
    background: #eef0ff;
}

.meeting-brand small {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.8px;
    margin-top: 3px;
}

.room-code-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--muted);
    display: inline-flex;
    font-size: 9px;
    font-weight: 800;
    gap: 4px;
    letter-spacing: 0.8px;
    margin-top: 3px;
    max-width: 100%;
    padding: 0;
}

.room-code-button:hover {
    color: var(--primary);
}

.room-code-button .icon {
    height: 11px;
    width: 11px;
}

.room-code-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-pill {
    background: #f8f9fc;
    border: 0;
    padding: 7px 10px;
}

.meeting-timer {
    font-variant-numeric: tabular-nums;
    justify-content: flex-start;
    width: 68px;
}

.status-pill .icon {
    height: 14px;
    width: 14px;
}

.status-dot {
    background: var(--success);
    border-radius: 50%;
    height: 7px;
    width: 7px;
}

.button-reset {
    cursor: pointer;
}

.meeting-content {
    display: flex;
    height: calc(100vh - 64px);
}

.stage-column {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.stage {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    min-height: 0;
    padding: 14px 14px 0;
    position: relative;
}

.segmented-control {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: inline-flex;
    gap: 3px;
    padding: 3px;
}

.segmented-control button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #687187;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 6px;
    min-height: 30px;
    padding: 6px 9px;
}

.segmented-control button.selected {
    background: var(--primary);
    color: #fff;
}

.segmented-control .icon {
    height: 13px;
    width: 13px;
}

.video-grid {
    display: grid;
    gap: 10px;
    flex: 1;
    align-items: stretch;
    grid-auto-rows: minmax(0, 1fr);
    grid-template-columns: repeat(var(--gallery-columns, 2), minmax(0, 1fr));
    grid-template-rows: repeat(var(--gallery-rows, 1), minmax(0, 1fr));
    justify-items: stretch;
    min-height: 0;
}

.video-grid-single {
    grid-template-columns: repeat(var(--gallery-columns, 1), minmax(0, 1fr));
}

.video-grid-pair {
    grid-template-columns: repeat(var(--gallery-columns, 2), minmax(0, 1fr));
}

.video-grid-many {
    grid-template-columns: repeat(var(--gallery-columns, 2), minmax(0, 1fr));
}

.video-tile {
    background: linear-gradient(145deg, #293247, #171e30);
    border-radius: 14px;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    position: relative;
    transition: outline-color 140ms ease;
    width: 100%;
}

.video-tile::after {
    border: 0 solid transparent;
    border-radius: inherit;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    transition: border-color 140ms ease, box-shadow 140ms ease;
    z-index: 4;
}

.video-tile.speaking-tile::after {
    border: 5px solid rgba(94, 224, 167, 0.96);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72), inset 0 0 22px rgba(94, 224, 167, 0.2);
}

.video-tile video {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.video-tile.video-contain {
    background: #000;
}

.video-tile.video-contain video {
    object-fit: contain;
}

.self-overlay-tile {
    aspect-ratio: var(--local-video-aspect-ratio, 16 / 9);
    background: #050812;
    border: 1px solid rgba(255, 255, 255, 0.28);
    bottom: 18px;
    box-shadow: 0 18px 45px rgba(8, 13, 27, 0.34);
    height: auto;
    min-height: 0;
    min-width: 150px;
    position: absolute;
    right: 18px;
    width: clamp(170px, 22vw, 300px);
    z-index: 12;
}

.self-overlay-tile video {
    object-fit: contain;
}

.self-overlay-tile .video-fit-toggle,
.self-overlay-tile .pin-video-button {
    display: none;
}

.self-overlay-tile .participant-label {
    max-width: calc(100% - 18px);
}

.self-overlay-tile .participant-label strong {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-fit-toggle {
    align-items: center;
    background: rgba(9, 14, 27, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    gap: 5px;
    padding: 6px 8px;
    position: absolute;
    right: 11px;
    top: 11px;
    z-index: 6;
}

.pin-video-button {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    border-radius: 999px;
    color: #20283a;
    display: none;
    font-size: 10px;
    font-weight: 800;
    gap: 5px;
    left: 11px;
    padding: 6px 9px;
    position: absolute;
    top: 11px;
    z-index: 6;
}

.unpin-video-button {
    display: inline-flex;
}

.pin-video-button .icon {
    height: 12px;
    width: 12px;
}

.video-tile.pin-enabled {
    cursor: pointer;
}

.video-tile.pin-enabled:hover .pin-video-button {
    display: inline-flex;
}

.stage-split {
    display: grid;
    flex: 1;
    gap: 5px;
    min-height: 0;
}

.stage-split.split-horizontal {
    grid-template-columns: minmax(0, var(--primary-size)) 5px minmax(180px, 1fr);
}

.stage-split.split-position-left {
    grid-template-columns: minmax(180px, 1fr) 5px minmax(0, var(--primary-size));
}

.stage-split.split-vertical {
    grid-template-rows: minmax(0, var(--primary-size)) 5px minmax(120px, 1fr);
}

.stage-split.split-position-top {
    grid-template-rows: minmax(120px, 1fr) 5px minmax(0, var(--primary-size));
}

.stage-split-secondary-hidden {
    display: flex;
}

.stage-primary,
.stage-secondary {
    min-height: 0;
    min-width: 0;
}

.stage-primary {
    display: flex;
}

.split-position-left .stage-primary {
    grid-column: 3;
}

.split-position-left .stage-splitter {
    grid-column: 2;
}

.split-position-left .stage-secondary {
    grid-column: 1;
}

.split-position-top .stage-primary {
    grid-row: 3;
}

.split-position-top .stage-splitter {
    grid-row: 2;
}

.split-position-top .stage-secondary {
    grid-row: 1;
}

.stage-split-secondary-hidden .stage-primary {
    flex: 1;
}

.stage-primary > .workspace-card,
.stage-primary > .video-tile,
.stage-primary > .pin-placeholder {
    flex: 1;
    min-height: 0;
}

.stage-primary-tile {
    min-height: 320px;
}

.stage-secondary {
    background: #eef1f7;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    padding: 8px;
}

.split-horizontal .stage-secondary {
    padding: 0;
}

.stage-filmstrip {
    display: grid;
    gap: 8px;
    height: 100%;
    min-height: 0;
    overflow: auto;
}

.split-horizontal .stage-filmstrip {
    grid-auto-rows: minmax(126px, 1fr);
    padding: 0;
}

.split-vertical .stage-filmstrip {
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    grid-template-rows: 1fr;
    overflow-x: auto;
    overflow-y: hidden;
}

.filmstrip-tile {
    min-height: 120px;
}

.stage-splitter {
    align-self: stretch;
    background: #dfe4ef;
    border: 0;
    border-radius: 999px;
    cursor: col-resize;
    justify-self: stretch;
    margin: 0;
    min-height: 5px;
    min-width: 5px;
    padding: 0;
    position: relative;
    transition: background 120ms ease, box-shadow 120ms ease;
}

.stage-splitter::after {
    background: #8d96aa;
    border-radius: 999px;
    content: "";
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.stage-splitter:hover,
.stage-splitter:focus-visible,
.stage-splitter-dragging .stage-splitter {
    background: rgba(105, 82, 214, 0.24);
    box-shadow: 0 0 0 3px rgba(105, 82, 214, 0.12);
    outline: 0;
}

.stage-splitter:hover::after,
.stage-splitter:focus-visible::after,
.stage-splitter-dragging .stage-splitter::after {
    background: var(--primary);
}

.split-horizontal .stage-splitter::after {
    height: 24px;
    width: 3px;
}

.split-vertical .stage-splitter {
    cursor: row-resize;
}

.split-vertical .stage-splitter::after {
    height: 3px;
    width: 24px;
}

.pin-placeholder {
    align-items: center;
    background: #f5f7fb;
    border: 1px dashed #ccd3e1;
    border-radius: 14px;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.pin-placeholder > span {
    align-items: center;
    background: #fff;
    border-radius: 50%;
    color: var(--primary);
    display: flex;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.pin-placeholder h3 {
    font-size: 18px;
}

.pin-placeholder p,
.stage-empty-filmstrip {
    color: var(--muted);
    font-size: 12px;
}

.stage-empty-filmstrip {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 120px;
    text-align: center;
}

.video-fit-toggle .icon {
    height: 13px;
    width: 13px;
}

.video-fit-toggle span {
    font-size: 10px;
    font-weight: 700;
}

.background-blur video {
    filter: none;
    transform: none;
}

.background-aurora {
    background: linear-gradient(135deg, #5469bf, #ba74b6 54%, #f5a46f);
}

.background-studio {
    background: linear-gradient(135deg, #20324a, #51627d);
}

.video-shade {
    background: linear-gradient(transparent 65%, rgba(3, 8, 20, 0.56));
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.participant-label {
    align-items: center;
    bottom: 13px;
    color: #fff;
    display: flex;
    gap: 7px;
    left: 14px;
    position: absolute;
}

.participant-label strong {
    font-size: 12px;
}

.participant-label small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 10px;
}

.voice-level {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    height: 7px;
    width: 7px;
}

.voice-level.active {
    background: #5ee0a7;
    box-shadow: 0 0 0 3px rgba(94, 224, 167, 0.18);
}

.muted-badge,
.sharing-label {
    align-items: center;
    background: rgba(19, 26, 44, 0.65);
    border-radius: 20px;
    color: #fff;
    display: flex;
    padding: 7px;
    position: absolute;
    right: 12px;
    top: 12px;
}

.recording-indicator {
    align-items: center;
    background: rgba(196, 26, 47, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    gap: 6px;
    left: 12px;
    letter-spacing: 0;
    padding: 7px 10px;
    position: absolute;
    top: 12px;
    z-index: 7;
}

.recording-indicator i {
    animation: recording-pulse 1.4s ease-in-out infinite;
    background: #fff;
    border-radius: 50%;
    height: 7px;
    width: 7px;
}

.video-tile.recording-active.pin-enabled:hover .pin-video-button {
    top: 48px;
}

.muted-badge .icon,
.sharing-label .icon {
    height: 14px;
    width: 14px;
}

.sharing-label {
    font-size: 10px;
    gap: 6px;
    padding: 7px 10px;
}

.remote-control-banner {
    align-items: center;
    background: rgba(23, 31, 52, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    box-shadow: 0 12px 34px rgba(12, 18, 32, 0.28);
    color: #fff;
    display: inline-flex;
    gap: 9px;
    left: 50%;
    max-width: min(92%, 640px);
    padding: 8px 10px 8px 12px;
    position: absolute;
    top: 16px;
    transform: translateX(-50%);
    z-index: 24;
}

.remote-control-banner-warning {
    background: rgba(79, 52, 16, 0.94);
}

.remote-control-banner .icon {
    height: 15px;
    width: 15px;
}

.remote-control-banner strong {
    font-size: 12px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remote-control-banner button {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 9px;
}

.remote-control-surface-active {
    cursor: crosshair;
    outline: 3px solid rgba(94, 93, 255, 0.78);
    outline-offset: -3px;
}

.raised-hand {
    font-size: 17px;
}

.camera-off-state,
.invite-empty {
    align-items: center;
    color: #e6e9f3;
    display: flex;
    flex-direction: column;
    gap: 12px;
    inset: 0;
    justify-content: center;
    position: absolute;
}

.camera-off-state small {
    color: #c6cede;
    font-size: 11px;
}

.invite-tile {
    background: #eef0f7;
    border: 1px dashed #d9ddeb;
}

.invite-empty {
    color: var(--text);
    text-align: center;
}

.invite-icon {
    align-items: center;
    background: #fff;
    border-radius: 50%;
    color: var(--primary);
    display: flex;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.invite-icon .icon {
    height: 22px;
    width: 22px;
}

.invite-empty h3 {
    font-size: 17px;
}

.invite-empty p {
    color: var(--muted);
    font-size: 11px;
}

.caption-overlay {
    --caption-control-size: 10px;
    --caption-label-size: 9px;
    --caption-name-size: 10px;
    --caption-text-size: 12px;
    background: rgba(20, 26, 43, 0.82);
    border-radius: 12px;
    bottom: 18px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    left: 50%;
    max-width: 720px;
    padding: 8px 13px 10px;
    position: absolute;
    transform: translateX(-50%);
    width: calc(100% - 44px);
    z-index: 8;
}

.caption-size-small {
    --caption-control-size: 10px;
    --caption-label-size: 9px;
    --caption-name-size: 10px;
    --caption-text-size: 11px;
}

.caption-size-large {
    --caption-control-size: 11px;
    --caption-label-size: 10px;
    --caption-name-size: 11px;
    --caption-text-size: 15px;
}

.caption-size-xlarge {
    --caption-control-size: 12px;
    --caption-label-size: 10px;
    --caption-name-size: 12px;
    --caption-text-size: 18px;
}

.caption-overlay-header {
    align-items: center;
    cursor: grab;
    display: flex;
    gap: 7px;
    min-height: 20px;
    user-select: none;
}

.caption-overlay-header > span:not(.caption-drag-grip) {
    color: rgba(255, 255, 255, 0.62);
    flex: 1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.caption-overlay-header:active {
    cursor: grabbing;
}

.caption-overlay-dragging {
    cursor: grabbing;
    user-select: none;
}

.caption-drag-grip {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.66) 1.4px, transparent 1.5px);
    background-size: 6px 6px;
    flex: 0 0 auto;
    height: 12px;
    opacity: 0.82;
    width: 18px;
}

.caption-close-button {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    padding: 0;
    width: 24px;
}

.caption-close-button:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.caption-pause-button.selected {
    background: rgba(199, 244, 216, 0.18);
    border-color: rgba(199, 244, 216, 0.34);
    color: #c7f4d8;
}

.caption-close-button .icon {
    height: 12px;
    width: 12px;
}

.caption-main {
    align-items: flex-start;
    display: flex;
    gap: 9px;
    min-width: 0;
    width: 100%;
}

.caption-overlay p {
    flex: 1;
    font-size: var(--caption-text-size);
    line-height: 1.45;
    margin: 0;
    min-width: 0;
}

.caption-overlay strong {
    color: #a9d2ff;
    font-size: var(--caption-name-size);
}

.caption-translation {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    display: block;
    margin-top: 7px;
    padding-top: 7px;
}

.caption-translation b {
    color: #c7f4d8;
    display: block;
    font-size: var(--caption-name-size);
    margin-bottom: 2px;
}

.caption-pinyin {
    color: rgba(255, 255, 255, 0.74);
    display: block;
    font-size: calc(var(--caption-text-size) * 0.82);
    font-weight: 700;
    margin-top: 4px;
}

.caption-overlay-controls {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 8px;
}

.caption-overlay-select,
.caption-overlay-switch {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    gap: 5px;
    min-height: 26px;
    padding: 3px 7px;
}

.caption-overlay-select span,
.caption-overlay-switch span {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--caption-label-size);
    font-weight: 800;
}

.caption-overlay-select select {
    appearance: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: var(--caption-control-size);
    font-weight: 800;
    max-width: 128px;
    outline: 0;
    cursor: pointer;
}

.caption-overlay-select option {
    color: var(--text);
}

.caption-overlay-switch input {
    accent-color: #c7f4d8;
    height: 13px;
    margin: 0;
    width: 13px;
}

.caption-overlay-switch.selected {
    background: rgba(199, 244, 216, 0.18);
    border-color: rgba(199, 244, 216, 0.34);
}

.caption-overlay-switch.selected span {
    color: #c7f4d8;
}

.reaction-bubble {
    animation: reaction-pop 4.8s ease forwards;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow);
    font-size: 30px;
    padding: 12px;
    position: absolute;
    right: 30px;
    top: 30px;
}

@keyframes reaction-pop {
    0% { opacity: 0; transform: scale(0.7) translateY(10px); }
    18%, 78% { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(0.94) translateY(-16px); }
}

@keyframes recording-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.48); opacity: 1; }
    50% { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); opacity: 0.72; }
}

.meeting-toolbar {
    align-items: center;
    background: #fff;
    border-top: 1px solid var(--line);
    display: flex;
    height: 78px;
    justify-content: space-between;
    padding: 0 16px;
    position: relative;
}

.fullscreen-active .meeting-shell {
    background: #050712;
}

.fullscreen-active .meeting-header {
    background: transparent;
    border-bottom: 0;
    height: 0;
    padding: 0;
}

.fullscreen-active .meeting-brand,
.fullscreen-active .meeting-status {
    display: none;
}

.fullscreen-active .meeting-view-controls {
    flex: 0 0 auto;
    left: 50%;
    max-width: calc(100vw - 28px);
    pointer-events: auto;
    position: fixed;
    top: 14px;
    transform: translateX(-50%);
    z-index: 35;
}

.fullscreen-active .view-menu-button {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(226, 231, 242, 0.82);
    box-shadow: 0 12px 30px rgba(6, 9, 18, 0.2);
    backdrop-filter: blur(14px);
}

.fullscreen-active .view-menu {
    max-height: min(70vh, 620px);
    overflow: auto;
}

.fullscreen-active .meeting-content {
    height: 100vh;
}

.fullscreen-active .stage {
    padding: 0;
}

.fullscreen-active .stage-column {
    min-height: 100vh;
}

.fullscreen-active .meeting-toolbar {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 231, 242, 0.86);
    border-radius: 16px;
    bottom: 14px;
    box-shadow: 0 18px 45px rgba(6, 9, 18, 0.28);
    height: 66px;
    left: 50%;
    max-width: calc(100vw - 28px);
    padding: 0 14px;
    position: fixed;
    transform: translateX(-50%);
    width: min(980px, calc(100vw - 28px));
    z-index: 34;
    backdrop-filter: blur(14px);
}

.fullscreen-active .caption-overlay {
    bottom: 96px;
}

.fullscreen-active .reaction-bubble {
    top: 82px;
}

html.fullscreen-active,
body.fullscreen-active,
:fullscreen {
    overflow: hidden;
}

html.fullscreen-active .meeting-shell,
body.fullscreen-active .meeting-shell,
.meeting-shell.fullscreen-active,
.meeting-shell.fullscreen-layout,
.meeting-shell:fullscreen,
:fullscreen .meeting-shell {
    background: #050712 !important;
    height: 100vh !important;
    overflow: hidden !important;
}

html.fullscreen-active .meeting-header,
body.fullscreen-active .meeting-header,
.meeting-shell.fullscreen-active .meeting-header,
.meeting-shell.fullscreen-layout .meeting-header,
.meeting-shell:fullscreen .meeting-header,
:fullscreen .meeting-header {
    background: transparent !important;
    border: 0 !important;
    height: 0 !important;
    left: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    z-index: 70 !important;
}

html.fullscreen-active .meeting-brand,
html.fullscreen-active .meeting-status,
body.fullscreen-active .meeting-brand,
body.fullscreen-active .meeting-status,
.meeting-shell.fullscreen-active .meeting-brand,
.meeting-shell.fullscreen-active .meeting-status,
.meeting-shell.fullscreen-layout .meeting-brand,
.meeting-shell.fullscreen-layout .meeting-status,
.meeting-shell:fullscreen .meeting-brand,
.meeting-shell:fullscreen .meeting-status,
:fullscreen .meeting-brand,
:fullscreen .meeting-status {
    display: none !important;
}

html.fullscreen-active .meeting-view-controls,
body.fullscreen-active .meeting-view-controls,
.meeting-shell.fullscreen-active .meeting-view-controls,
.meeting-shell.fullscreen-layout .meeting-view-controls,
.meeting-shell:fullscreen .meeting-view-controls,
:fullscreen .meeting-view-controls {
    display: flex !important;
    flex: 0 0 auto !important;
    left: 50% !important;
    max-width: calc(100vw - 28px) !important;
    pointer-events: auto !important;
    position: fixed !important;
    top: 14px !important;
    transform: translateX(-50%) !important;
    z-index: 75 !important;
}

html.fullscreen-active .meeting-content,
body.fullscreen-active .meeting-content,
.meeting-shell.fullscreen-active .meeting-content,
.meeting-shell.fullscreen-layout .meeting-content,
.meeting-shell:fullscreen .meeting-content,
:fullscreen .meeting-content {
    display: block !important;
    height: 100vh !important;
    inset: 0 !important;
    overflow: hidden !important;
    position: fixed !important;
    width: 100vw !important;
}

html.fullscreen-active .stage,
body.fullscreen-active .stage,
.meeting-shell.fullscreen-active .stage,
.meeting-shell.fullscreen-layout .stage,
.meeting-shell:fullscreen .stage,
:fullscreen .stage {
    height: 100vh !important;
    inset: 0 !important;
    padding: 0 !important;
    position: fixed !important;
    width: 100vw !important;
    z-index: 1 !important;
}

html.fullscreen-active .stage-column,
body.fullscreen-active .stage-column,
.meeting-shell.fullscreen-active .stage-column,
.meeting-shell.fullscreen-layout .stage-column,
.meeting-shell:fullscreen .stage-column,
:fullscreen .stage-column {
    height: 100vh !important;
    min-height: 100vh !important;
    width: 100vw !important;
}

html.fullscreen-active .video-grid,
body.fullscreen-active .video-grid,
.meeting-shell.fullscreen-active .video-grid,
.meeting-shell.fullscreen-layout .video-grid,
.meeting-shell:fullscreen .video-grid,
:fullscreen .video-grid,
html.fullscreen-active .stage-split,
body.fullscreen-active .stage-split,
.meeting-shell.fullscreen-active .stage-split,
.meeting-shell.fullscreen-layout .stage-split,
.meeting-shell:fullscreen .stage-split,
:fullscreen .stage-split {
    height: 100vh !important;
    min-height: 100vh !important;
    width: 100vw !important;
}

html.fullscreen-active .video-tile,
body.fullscreen-active .video-tile,
.meeting-shell.fullscreen-active .video-tile,
.meeting-shell.fullscreen-layout .video-tile,
.meeting-shell:fullscreen .video-tile,
:fullscreen .video-tile {
    border-radius: 0 !important;
}

html.fullscreen-active .self-overlay-tile,
body.fullscreen-active .self-overlay-tile,
.meeting-shell.fullscreen-active .self-overlay-tile,
.meeting-shell.fullscreen-layout .self-overlay-tile,
.meeting-shell:fullscreen .self-overlay-tile,
:fullscreen .self-overlay-tile {
    border-radius: 14px !important;
    bottom: 96px !important;
    right: 24px !important;
    width: clamp(180px, 20vw, 320px) !important;
    z-index: 72 !important;
}

html.fullscreen-active .meeting-toolbar,
body.fullscreen-active .meeting-toolbar,
.meeting-shell.fullscreen-active .meeting-toolbar,
.meeting-shell.fullscreen-layout .meeting-toolbar,
.meeting-shell:fullscreen .meeting-toolbar,
:fullscreen .meeting-toolbar {
    align-items: center !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(226, 231, 242, 0.86) !important;
    border-radius: 16px !important;
    bottom: 14px !important;
    box-shadow: 0 18px 45px rgba(6, 9, 18, 0.28) !important;
    display: flex !important;
    height: 66px !important;
    left: 50% !important;
    max-width: calc(100vw - 28px) !important;
    padding: 0 14px !important;
    position: fixed !important;
    right: auto !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    width: min(980px, calc(100vw - 28px)) !important;
    z-index: 74 !important;
    backdrop-filter: blur(14px) !important;
}

.meeting-shell.fullscreen-active .meeting-view-controls,
.meeting-shell.fullscreen-active .meeting-toolbar,
.meeting-shell.fullscreen-layout .meeting-view-controls,
.meeting-shell.fullscreen-layout .meeting-toolbar {
    opacity: 0 !important;
    transition: opacity 160ms ease !important;
}

.meeting-shell.fullscreen-active.fullscreen-controls-always-visible .meeting-view-controls,
.meeting-shell.fullscreen-active.fullscreen-controls-always-visible .meeting-toolbar,
.meeting-shell.fullscreen-layout.fullscreen-controls-always-visible .meeting-view-controls,
.meeting-shell.fullscreen-layout.fullscreen-controls-always-visible .meeting-toolbar {
    opacity: 1 !important;
}

.meeting-shell.fullscreen-active:has(.meeting-view-controls:hover) .meeting-view-controls,
.meeting-shell.fullscreen-active:has(.meeting-view-controls:hover) .meeting-toolbar,
.meeting-shell.fullscreen-active:has(.meeting-toolbar:hover) .meeting-view-controls,
.meeting-shell.fullscreen-active:has(.meeting-toolbar:hover) .meeting-toolbar,
.meeting-shell.fullscreen-active:has(.meeting-view-controls:focus-within) .meeting-view-controls,
.meeting-shell.fullscreen-active:has(.meeting-view-controls:focus-within) .meeting-toolbar,
.meeting-shell.fullscreen-active:has(.meeting-toolbar:focus-within) .meeting-view-controls,
.meeting-shell.fullscreen-active:has(.meeting-toolbar:focus-within) .meeting-toolbar,
.meeting-shell.fullscreen-active:has(.view-menu) .meeting-view-controls,
.meeting-shell.fullscreen-active:has(.view-menu) .meeting-toolbar,
.meeting-shell.fullscreen-active:has(.floating-menu) .meeting-view-controls,
.meeting-shell.fullscreen-active:has(.floating-menu) .meeting-toolbar,
.meeting-shell.fullscreen-layout:has(.meeting-view-controls:hover) .meeting-view-controls,
.meeting-shell.fullscreen-layout:has(.meeting-view-controls:hover) .meeting-toolbar,
.meeting-shell.fullscreen-layout:has(.meeting-toolbar:hover) .meeting-view-controls,
.meeting-shell.fullscreen-layout:has(.meeting-toolbar:hover) .meeting-toolbar,
.meeting-shell.fullscreen-layout:has(.meeting-view-controls:focus-within) .meeting-view-controls,
.meeting-shell.fullscreen-layout:has(.meeting-view-controls:focus-within) .meeting-toolbar,
.meeting-shell.fullscreen-layout:has(.meeting-toolbar:focus-within) .meeting-view-controls,
.meeting-shell.fullscreen-layout:has(.meeting-toolbar:focus-within) .meeting-toolbar,
.meeting-shell.fullscreen-layout:has(.view-menu) .meeting-view-controls,
.meeting-shell.fullscreen-layout:has(.view-menu) .meeting-toolbar,
.meeting-shell.fullscreen-layout:has(.floating-menu) .meeting-view-controls,
.meeting-shell.fullscreen-layout:has(.floating-menu) .meeting-toolbar {
    opacity: 1 !important;
}

html.fullscreen-active .meeting-panel,
body.fullscreen-active .meeting-panel,
.meeting-shell.fullscreen-active .meeting-panel,
.meeting-shell.fullscreen-layout .meeting-panel,
.meeting-shell:fullscreen .meeting-panel,
:fullscreen .meeting-panel {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(226, 231, 242, 0.86) !important;
    border-radius: 16px !important;
    bottom: 96px !important;
    box-shadow: 0 18px 45px rgba(6, 9, 18, 0.28) !important;
    height: auto !important;
    max-height: calc(100vh - 178px) !important;
    position: fixed !important;
    right: 14px !important;
    top: 68px !important;
    width: min(320px, calc(100vw - 28px)) !important;
    z-index: 73 !important;
    backdrop-filter: blur(14px) !important;
}

html.fullscreen-active .meeting-shell:not(.fullscreen-layout):not(.fullscreen-active):not(:fullscreen),
body.fullscreen-active .meeting-shell:not(.fullscreen-layout):not(.fullscreen-active):not(:fullscreen) {
    background: #f7f8fc !important;
}

.toolbar-section {
    align-items: center;
    display: flex;
    gap: 3px;
}

.toolbar-center {
    gap: 8px;
}

.control-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: #687187;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 51px;
    padding: 6px 7px;
    position: relative;
}

.control-button:hover,
.control-active {
    background: var(--primary-soft);
    color: var(--primary);
}

.control-off span {
    background: #feeeee !important;
    color: var(--danger) !important;
}

.control-button > span {
    align-items: center;
    background: #f4f5f8;
    border-radius: 50%;
    display: flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.control-active > span {
    background: #e7e3ff;
}

.control-button small {
    font-size: 9px;
    font-weight: 600;
}

.control-button b {
    align-items: center;
    background: var(--primary);
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 8px;
    height: 16px;
    justify-content: center;
    position: absolute;
    right: 4px;
    top: 2px;
    width: 16px;
}

.control-caret {
    background: transparent;
    border: 0;
    color: #929aab;
    padding: 4px 0;
}

.control-caret .icon {
    height: 13px;
    width: 13px;
}

.leave-button {
    align-items: center;
    background: var(--danger);
    border: 0;
    border-radius: 9px;
    color: #fff;
    display: flex;
    font-size: 11px;
    font-weight: 700;
    gap: 7px;
    padding: 11px 14px;
}

.leave-button:hover {
    background: var(--danger-dark);
}

.leave-button .icon {
    height: 15px;
    width: 15px;
}

.floating-menu {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    bottom: 70px;
    box-shadow: var(--shadow);
    position: absolute;
    z-index: 5;
}

.reaction-menu {
    display: flex;
    gap: 4px;
    left: 50%;
    padding: 8px;
    transform: translateX(-10%);
}

.reaction-menu button {
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 20px;
    padding: 5px;
}

.reaction-menu button:hover {
    background: var(--primary-soft);
}

.more-menu {
    left: 50%;
    min-width: 210px;
    padding: 6px;
    transform: translateX(62%);
}

.more-menu button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--muted-dark);
    display: flex;
    font-size: 11px;
    gap: 9px;
    padding: 10px;
    text-align: left;
    width: 100%;
}

.more-menu button:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.caption-language-menu {
    border-top: 1px solid var(--line);
    margin-top: 4px;
    padding: 8px 4px 4px;
}

.caption-language-menu > span {
    color: var(--muted);
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0 6px 6px;
    text-transform: uppercase;
}

.caption-language-options {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.more-menu .caption-language-choice {
    font-weight: 700;
    justify-content: center;
    padding: 8px 6px;
}

.more-menu .caption-language-choice.selected {
    background: var(--primary-soft);
    color: var(--primary);
}

.more-menu .caption-language-choice:disabled {
    color: #b7bdca;
    cursor: not-allowed;
    opacity: 0.62;
}

.more-menu .caption-language-choice:disabled:hover {
    background: transparent;
}

.meeting-panel {
    background: #fff;
    border-left: 1px solid var(--line);
    display: flex;
    flex: 0 0 320px;
    flex-direction: column;
    min-width: 0;
}

.panel-header,
.modal-card header,
.workspace-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 17px;
}

.panel-header h2,
.modal-card h2,
.workspace-header h2 {
    font-size: 17px;
    letter-spacing: -0.5px;
    margin-top: 4px;
}

.panel-body {
    flex: 1;
    overflow: auto;
    padding: 14px;
}

.chat-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-day {
    color: #a3aabb;
    font-size: 10px;
    text-align: center;
}

.chat-search {
    align-items: center;
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: flex;
    gap: 7px;
    padding: 7px 10px;
}

.chat-search .icon {
    color: var(--muted);
    height: 14px;
    width: 14px;
}

.chat-search input {
    background: transparent;
    border: 0;
    color: var(--text);
    flex: 1;
    font-size: 11px;
    min-width: 0;
    outline: 0;
}

.chat-message {
    align-items: flex-start;
    display: flex;
    gap: 8px;
}

.chat-message div {
    flex: 1;
    min-width: 0;
}

.chat-message header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.chat-message header span {
    align-items: center;
    display: flex;
    gap: 6px;
    min-width: 0;
}

.chat-message strong,
.chat-message time {
    font-size: 10px;
}

.chat-message em {
    background: #eef0ff;
    border-radius: 999px;
    color: var(--primary);
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    max-width: 110px;
    overflow: hidden;
    padding: 2px 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-message time {
    color: #adb3bf;
}

.chat-message-meta {
    flex: 0 0 auto;
    margin-left: auto;
}

.chat-action-button,
.chat-forward-button,
.chat-delete-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #adb3bf;
    cursor: pointer;
    display: inline-flex;
    height: 22px;
    justify-content: center;
    padding: 0;
    width: 22px;
}

.chat-action-button .icon,
.chat-forward-button .icon,
.chat-delete-button .icon {
    height: 13px;
    width: 13px;
}

.chat-action-button:hover,
.chat-forward-button:hover {
    background: #eef0ff;
    color: var(--primary);
}

.chat-message:not(.own-message) .chat-action-button,
.chat-message:not(.own-message) .chat-delete-button {
    display: none;
}

.forwarded-label {
    align-items: center;
    background: #f6f7fb;
    border-left: 2px solid var(--primary);
    border-radius: 6px;
    color: var(--muted-dark);
    display: inline-flex;
    flex: 0 1 auto;
    font-size: 10px;
    font-weight: 700;
    gap: 5px;
    margin: 5px 0 6px;
    max-width: 100%;
    padding: 4px 7px;
}

.forwarded-label .icon {
    height: 12px;
    width: 12px;
}

.chat-forward-menu {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    display: grid;
    flex: 0 1 auto;
    gap: 4px;
    margin: 6px 0;
    max-height: 220px;
    overflow: auto;
    padding: 7px;
}

.chat-forward-menu span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    padding: 4px 6px 2px;
    text-transform: uppercase;
}

.chat-forward-menu button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 11px;
    gap: 7px;
    padding: 7px;
    text-align: left;
}

.chat-forward-menu button:hover {
    background: #f5f6ff;
    color: var(--primary);
}

.chat-forward-menu .icon {
    height: 14px;
    width: 14px;
}

.chat-delete-button:hover {
    background: #feeeee;
    color: var(--danger);
}

.chat-edit-form {
    background: #f5f6fa;
    border-radius: 3px 10px 10px 10px;
    display: grid;
    gap: 7px;
    margin-top: 5px;
    padding: 8px;
}

.chat-edit-form textarea {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 11px;
    line-height: 1.5;
    min-height: 70px;
    outline: 0;
    padding: 8px;
    resize: vertical;
}

.chat-edit-form div {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.chat-meeting-invitation {
    align-items: center;
    background: #eef7f4;
    border: 1px solid #b8ddd2;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    margin-top: 8px;
    padding: 10px;
}

.chat-meeting-invitation > span {
    align-items: center;
    background: #0f7b6c;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.chat-meeting-invitation > span .icon {
    height: 18px;
    width: 18px;
}

.chat-meeting-invitation div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.chat-meeting-invitation strong,
.chat-meeting-invitation small,
.chat-meeting-invitation a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-meeting-invitation a {
    color: #0f7b6c;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.chat-message p {
    background: #f5f6fa;
    border-radius: 3px 10px 10px 10px;
    color: var(--muted-dark);
    font-size: 11px;
    line-height: 1.5;
    margin-top: 5px;
    overflow-wrap: anywhere;
    padding: 9px;
    white-space: pre-wrap;
}

.chat-message p a {
    color: var(--primary);
    font-weight: 700;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.chat-inline-smiley {
    display: inline-block;
    font-size: var(--chat-smiley-size);
    line-height: 1;
    vertical-align: -0.12em;
}

.chat-drop-zone {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.chat-drop-zone.drag-over::after,
.chat-composer.drag-over::after {
    align-items: center;
    background: rgba(239, 237, 255, 0.92);
    border: 2px dashed var(--primary);
    border-radius: 14px;
    color: var(--primary);
    content: "Dateien hier ablegen";
    display: flex;
    font-size: 13px;
    font-weight: 800;
    inset: 10px;
    justify-content: center;
    pointer-events: none;
    position: absolute;
    z-index: 40;
}

.chat-file-card {
    align-items: center;
    background: #f5f6fa;
    border: 1px solid var(--line);
    border-radius: 3px 10px 10px 10px;
    display: flex;
    gap: 8px;
    margin-top: 5px;
    overflow: hidden;
    padding: 6px 8px;
    width: 100%;
}

.chat-file-stack {
    display: grid;
    gap: 6px;
    margin-top: 5px;
}

.chat-file-stack .chat-file-card {
    margin-top: 0;
}

.chat-file-image,
.chat-file-video {
    align-items: stretch;
    display: grid;
    gap: 8px;
    padding: 8px;
}

.chat-file-audio {
    align-items: stretch;
    display: grid;
    gap: 8px;
    padding: 8px;
}

.chat-file-preview {
    border-radius: 8px;
    display: block;
    overflow: hidden;
}

.chat-file-card img,
.chat-file-card video {
    background: #111827;
    border-radius: 8px;
    display: block;
    max-height: 240px;
    object-fit: contain;
    width: 100%;
}

.chat-file-card audio {
    display: block;
    height: 32px;
    width: 100%;
}

.chat-file-audio audio {
    min-width: 220px;
}

.chat-file-audio audio::-webkit-media-controls-panel {
    padding-left: 4px;
    padding-right: 4px;
}

.chat-file-audio audio::-webkit-media-controls-mute-button,
.chat-file-audio audio::-webkit-media-controls-volume-slider,
.chat-file-audio audio::-webkit-media-controls-volume-control-container,
.chat-file-audio audio::-webkit-media-controls-overflow-button {
    display: none;
    width: 0;
}

.chat-file-icon {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 34px;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    width: 34px;
}

.chat-file-icon:hover {
    border-color: var(--primary);
}

.chat-file-card footer {
    align-items: center;
    display: flex;
    flex: 1;
    gap: 8px;
    min-width: 0;
    width: 100%;
}

.chat-file-card footer span {
    align-items: baseline;
    display: flex;
    flex: 1 1 auto;
    gap: 6px;
    min-width: 0;
}

.chat-file-card footer strong,
.chat-file-card footer small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-file-card footer strong {
    flex: 1 1 auto;
    font-size: 11px;
    min-width: 0;
}

.chat-file-card footer small {
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 9px;
}

.chat-file-card .chat-file-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 30px;
}

.chat-file-card footer a,
.chat-file-actions a {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--primary);
    display: inline-flex;
    flex: 0 0 auto;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.chat-file-card footer a:hover,
.chat-file-actions a:hover {
    border-color: var(--primary);
}

.own-message {
    flex-direction: row-reverse;
}

.own-message p {
    background: var(--primary-soft);
    border-radius: 10px 3px 10px 10px;
}

.own-message .chat-file-card {
    background: var(--primary-soft);
    border-radius: 10px 3px 10px 10px;
}

.chat-composer {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 7px;
    padding: 10px 12px 12px;
    position: relative;
}

.chat-toolbar-row,
.chat-input-row {
    display: flex;
    gap: 6px;
}

.chat-toolbar-row {
    align-items: center;
}

.chat-input-row {
    align-items: flex-end;
}

.chat-tool-button,
.chat-recipient-button,
.chat-send-button {
    align-items: center;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 36px;
    justify-content: center;
}

.chat-tool-button {
    background: #f1f3f8;
    color: var(--muted-dark);
    width: 36px;
}

.chat-tool-button:hover,
.chat-recipient-button:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.chat-tool-button:disabled,
.chat-recipient-button:disabled,
.chat-send-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.chat-tool-button:disabled:hover,
.chat-recipient-button:disabled:hover {
    background: #f1f3f8;
    color: var(--muted-dark);
}

.chat-send-button:disabled:hover {
    background: var(--primary);
    color: #fff;
}

.chat-recipient-button {
    background: #f1f3f8;
    color: var(--muted-dark);
    gap: 5px;
    max-width: 88px;
    padding: 0 10px;
}

.chat-recipient-button span {
    font-size: 10px;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-send-button {
    background: var(--primary);
    color: #fff;
    width: 36px;
}

.chat-popover {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    bottom: 105px;
    box-shadow: var(--shadow-soft);
    left: 12px;
    padding: 8px;
    position: absolute;
    right: 12px;
    z-index: 30;
}

.chat-attachment-menu {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chat-upload-action {
    align-items: center;
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    gap: 8px;
    min-height: 40px;
    padding: 9px;
}

button.chat-upload-action {
    font: inherit;
    text-align: left;
    width: 100%;
}

.chat-upload-action:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.chat-upload-action span {
    font-size: 11px;
    font-weight: 700;
}

.chat-upload-action input {
    display: none;
}

.chat-smiley-menu {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    max-height: 292px;
    overflow: auto;
}

.chat-smiley-menu button {
    align-items: center;
    background: #f7f8fb;
    border: 1px solid var(--line);
    border-radius: 7px;
    display: flex;
    font-size: var(--chat-smiley-size);
    height: 38px;
    justify-content: center;
    padding: 0;
}

.chat-smiley-menu button:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.chat-recipient-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 240px;
    overflow: auto;
}

.chat-recipient-menu button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--text);
    display: flex;
    gap: 9px;
    padding: 8px;
    text-align: left;
    width: 100%;
}

.chat-recipient-menu button:hover,
.chat-recipient-menu button.selected {
    background: #f8f9fc;
    border-color: var(--line);
}

.chat-recipient-menu button.selected {
    color: var(--primary);
}

.chat-recipient-menu span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.chat-recipient-menu strong,
.chat-recipient-menu small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-recipient-menu strong {
    font-size: 11px;
}

.chat-recipient-menu small {
    color: var(--muted);
    font-size: 9px;
}

.chat-composer textarea,
.chat-rich-input {
    background: #f7f8fb;
    border: 1px solid var(--line);
    border-radius: 18px;
    flex: 1;
    font-size: var(--chat-input-size);
    line-height: 1.35;
    max-height: 116px;
    min-height: 48px;
    min-width: 0;
    outline: 0;
    overflow: auto;
    padding: 11px 13px;
    resize: none;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-rich-input.is-empty::before {
    color: var(--muted);
    content: attr(data-placeholder);
    pointer-events: none;
}

.chat-editor-smiley {
    display: inline-block;
    font-size: var(--chat-smiley-size);
    line-height: 1;
    vertical-align: -0.22em;
}

.panel-search {
    background: #f8f9fc;
}

.list-label {
    margin: 20px 0 9px;
}

.person-row {
    align-items: center;
    display: flex;
    gap: 9px;
    padding: 9px 0;
}

.person-main {
    display: grid;
    gap: 3px;
}

.person-actions {
    align-items: center;
    display: flex;
    gap: 7px;
}

.remote-control-button {
    align-items: center;
    background: #eef2ff;
    border: 1px solid #d9ddff;
    border-radius: 8px;
    color: var(--primary);
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    gap: 5px;
    padding: 7px 8px;
}

.remote-control-button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.remote-control-button.active {
    background: #e8f8f1;
    border-color: #c9eddf;
    color: #329875;
}

.remote-control-button .icon,
.screen-share-chip .icon {
    height: 13px;
    width: 13px;
}

.screen-share-chip {
    align-items: center;
    color: #329875;
    display: inline-flex;
    font-size: 9px;
    font-weight: 800;
    gap: 4px;
}

.waiting-person-row {
    align-items: center;
    background: #fffaf4;
    border: 1px solid #fae6cf;
    border-radius: 9px;
    display: flex;
    gap: 7px;
    margin-top: 8px;
    padding: 8px;
}

.waiting-person-row div {
    flex: 1;
    min-width: 0;
}

.waiting-person-row strong,
.waiting-person-row small {
    display: block;
    font-size: 10px;
}

.waiting-person-row small {
    color: var(--muted);
    font-size: 9px;
    margin-top: 3px;
}

.waiting-label {
    color: #d68242;
}

.admit-button,
.reject-button {
    border: 0;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 700;
    padding: 7px;
}

.admit-button {
    background: #e8f8f1;
    color: #329875;
}

.reject-button {
    align-items: center;
    background: #feeeee;
    color: var(--danger);
    display: flex;
    justify-content: center;
}

.reject-button .icon {
    height: 13px;
    width: 13px;
}

.person-row div {
    flex: 1;
    min-width: 0;
}

.person-row strong,
.person-row div > span {
    display: block;
    font-size: 11px;
}

.person-row small,
.person-row div > span {
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
}

.role-chip {
    background: transparent;
    border: 0;
    color: var(--primary);
    font-size: 10px;
    margin-top: 3px;
    padding: 0;
}

.person-row > .icon {
    color: var(--success);
}

.person-row .person-main {
    flex: 1;
    min-width: 0;
}

.person-row .person-actions {
    flex: 0 0 auto;
}

.person-row .person-actions > .icon {
    color: var(--success);
}

.meeting-invite-box {
    border-top: 1px solid var(--line);
    margin-top: 14px;
    padding-top: 2px;
}

.meeting-invite-box .list-label {
    margin-top: 14px;
}

.meeting-invite-list {
    max-height: 190px;
}

.wide-button {
    margin-top: 18px;
    width: 100%;
}

.wide-button.meeting-invite-send {
    margin-top: 10px;
}

.security-banner {
    align-items: flex-start;
    background: #effaf5;
    border-radius: 10px;
    display: flex;
    gap: 9px;
    margin-bottom: 12px;
    padding: 11px;
}

.security-banner span {
    color: var(--success);
}

.security-banner strong {
    font-size: 11px;
}

.security-banner p,
.panel-note,
.empty-note {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
    margin-top: 4px;
}

.toggle-row {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    position: relative;
}

.toggle-row strong,
.toggle-row small {
    display: block;
    font-size: 11px;
}

.toggle-row small {
    color: var(--muted);
    font-size: 9px;
    margin-top: 4px;
}

.toggle-row input {
    height: 0;
    opacity: 0;
    position: absolute;
    width: 0;
}

.toggle-row i {
    background: #d8dce5;
    border-radius: 20px;
    display: block;
    height: 20px;
    position: relative;
    transition: 150ms ease;
    width: 36px;
}

.toggle-row i::after {
    background: #fff;
    border-radius: 50%;
    content: "";
    height: 16px;
    left: 2px;
    position: absolute;
    top: 2px;
    transition: 150ms ease;
    width: 16px;
}

.toggle-row input:checked + i {
    background: var(--primary);
}

.toggle-row input:checked + i::after {
    transform: translateX(16px);
}

.panel-input {
    margin-top: 10px;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 20px 0 3px;
}

.upload-box {
    align-items: center;
    background: #fafaff;
    border: 1px dashed #c9c4ef;
    border-radius: 10px;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px;
    text-align: center;
}

.upload-box strong {
    font-size: 11px;
}

.upload-box small {
    color: var(--muted);
    font-size: 9px;
}

.upload-box input {
    display: none;
}

.modal-backdrop {
    align-items: center;
    background: rgba(18, 24, 39, 0.38);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 20;
}

body:has(.meeting-shell) .modal-backdrop {
    background: transparent;
}

html.fullscreen-active .modal-backdrop,
body.fullscreen-active .modal-backdrop,
:fullscreen .modal-backdrop {
    z-index: 120 !important;
}

.waiting-shell {
    align-items: center;
    background: radial-gradient(circle at 50% 0%, #eeecff, #f7f8fc 46%);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.waiting-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    max-width: 100%;
    padding: 24px;
    text-align: center;
    width: 420px;
}

.waiting-card .brand {
    justify-content: center;
    margin-bottom: 28px;
}

.waiting-card h1 {
    font-size: 28px;
    letter-spacing: -1px;
    margin-top: 8px;
}

.waiting-card > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    margin-top: 10px;
}

.waiting-animation {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-bottom: 18px;
}

.waiting-animation span {
    animation: waiting-pulse 1.2s ease-in-out infinite;
    background: var(--primary);
    border-radius: 50%;
    height: 8px;
    width: 8px;
}

.waiting-animation span:nth-child(2) {
    animation-delay: 160ms;
}

.waiting-animation span:nth-child(3) {
    animation-delay: 320ms;
}

@keyframes waiting-pulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

.waiting-meeting {
    align-items: center;
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding: 11px;
    text-align: left;
}

.waiting-meeting .icon {
    color: var(--primary);
}

.waiting-meeting strong,
.waiting-meeting small {
    display: block;
    font-size: 11px;
}

.waiting-meeting small {
    color: var(--muted);
    font-size: 9px;
    margin-top: 3px;
}

.modal-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    max-width: 100%;
    overflow: hidden;
    padding: 0 17px 16px;
    width: 430px;
}

.settings-modal {
    max-height: min(820px, calc(100vh - 42px));
    overflow: auto;
    width: 760px;
}

.chat-capture-modal {
    width: 480px;
}

.whiteboard-message-modal {
    max-height: min(860px, calc(100vh - 32px));
    overflow: auto;
    width: min(980px, calc(100vw - 28px));
}

.message-whiteboard-surface {
    height: min(520px, 52vh);
    margin-top: 10px;
}

.remote-control-modal {
    width: 470px;
}

.remote-control-request-body {
    align-items: flex-start;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr);
    padding-top: 16px;
}

.remote-control-request-body > span {
    align-items: center;
    background: #eef2ff;
    border-radius: 10px;
    color: var(--primary);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.remote-control-request-body > span .icon {
    height: 22px;
    width: 22px;
}

.remote-control-request-body p {
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

.remote-control-request-body .remote-control-warning,
.remote-control-request-body .remote-control-hint {
    grid-column: 2;
}

.remote-control-request-body .remote-control-warning {
    color: var(--danger);
    font-weight: 800;
}

.remote-control-request-body .remote-control-hint {
    color: var(--muted);
    font-size: 12px;
}

.schedule-modal {
    max-height: min(820px, calc(100vh - 42px));
    overflow: auto;
    width: 720px;
}

.meeting-chat-modal {
    max-height: min(820px, calc(100vh - 42px));
    overflow: hidden;
    width: 760px;
}

.contact-code-modal,
.contact-delete-modal,
.message-meeting-modal {
    width: 420px;
}

.contact-code-modal {
    display: grid;
    gap: 12px;
}

.modal-code-display {
    border-radius: 10px;
    padding: 12px;
}

.modal-code-display strong {
    font-size: 18px;
}

.message-meeting-summary {
    align-items: center;
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
}

.message-meeting-summary > .icon {
    color: var(--primary);
    height: 24px;
    width: 24px;
}

.message-meeting-summary strong,
.message-meeting-summary small {
    display: block;
}

.message-meeting-summary small {
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
}

.meeting-chat-toolbar {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 0 0 12px;
}

.meeting-chat-toolbar span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.meeting-chat-list {
    display: grid;
    gap: 10px;
    max-height: min(560px, calc(100vh - 220px));
    overflow: auto;
    padding: 12px 2px 0;
}

.meeting-chat-entry {
    align-items: start;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px;
}

.meeting-chat-entry header {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin: 0;
    padding: 0;
}

.meeting-chat-entry header span,
.meeting-chat-entry header strong,
.meeting-chat-entry header em {
    min-width: 0;
}

.meeting-chat-entry header em {
    color: var(--muted);
    font-size: 10px;
    font-style: normal;
    margin-left: 8px;
}

.meeting-chat-entry time {
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 10px;
}

.meeting-chat-entry p {
    font-size: 13px;
    line-height: 1.45;
    margin: 7px 0 0;
    overflow-wrap: anywhere;
}

.meeting-chat-files {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.meeting-chat-files a {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 6px;
    max-width: 100%;
    padding: 6px 9px;
    text-decoration: none;
}

.meeting-chat-files .icon {
    flex: 0 0 auto;
}

.delete-meeting-modal p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    margin: 12px 0 0;
}

.contact-delete-modal p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    margin: 12px 0 0;
}

.delete-contact-summary,
.delete-meeting-summary {
    align-items: center;
    background: #fff5f5;
    border: 1px solid #ffd7d7;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    padding: 12px;
}

.delete-contact-summary > .icon,
.delete-meeting-summary > .icon {
    color: var(--danger);
    flex: 0 0 auto;
}

.delete-contact-summary strong,
.delete-contact-summary small,
.delete-meeting-summary strong,
.delete-meeting-summary small {
    display: block;
}

.delete-contact-summary small,
.delete-meeting-summary small {
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.chat-camera-preview {
    background: #111827;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.chat-camera-preview video {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    width: 100%;
}

.chat-recording-badge {
    align-items: center;
    background: rgba(17, 24, 39, 0.82);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    gap: 6px;
    left: 10px;
    padding: 6px 9px;
    position: absolute;
    top: 10px;
}

.chat-recording-badge i {
    background: var(--danger);
    border-radius: 50%;
    height: 8px;
    width: 8px;
}

.chat-audio-recorder {
    align-items: center;
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 22px 14px;
    text-align: center;
}

.chat-audio-recorder > span {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--primary);
    display: inline-flex;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.chat-audio-recorder.recording > span {
    background: #fff1f2;
    border-color: #fecdd3;
    color: var(--danger);
}

.chat-audio-visualizer {
    align-items: center;
    display: flex;
    gap: 3px;
    height: 52px;
    justify-content: center;
    margin: 2px 0;
    width: min(240px, 100%);
}

.chat-audio-visualizer i {
    background: var(--primary);
    border-radius: 999px;
    display: block;
    height: 10px;
    opacity: 0.35;
    transition: height 80ms ease, opacity 80ms ease;
    width: 5px;
}

.chat-audio-recorder.recording .chat-audio-visualizer i {
    background: var(--danger);
}

.chat-audio-recorder strong {
    font-size: 14px;
}

.chat-audio-recorder small {
    color: var(--muted);
    font-size: 10px;
}

.chat-capture-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}

.modal-card header {
    margin: 0 -17px 10px;
}

.alarm-modal {
    width: 520px;
}

.alarm-current {
    align-items: center;
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding: 11px;
}

.alarm-current > .icon {
    color: var(--primary);
}

.alarm-current span {
    flex: 1;
    min-width: 0;
}

.alarm-current strong,
.alarm-current small {
    display: block;
    font-size: 11px;
}

.alarm-current small {
    color: var(--muted);
    margin-top: 3px;
}

.alarm-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.alarm-grid section {
    background: #fbfcff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
}

.network-modal {
    max-height: min(760px, calc(100vh - 42px));
    overflow: auto;
    width: 720px;
}

.network-dialog-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: 180px 1fr;
}

.network-score {
    align-items: center;
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    gap: 7px;
    justify-items: center;
    padding: 15px;
    text-align: center;
}

.network-score strong {
    font-size: 17px;
}

.network-score small {
    color: var(--muted);
    font-size: 10px;
}

.network-kpis {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.network-kpis span,
.network-detail-grid div {
    background: #fbfcff;
    border: 1px solid var(--line);
    border-radius: 9px;
    display: grid;
    gap: 3px;
    padding: 10px;
}

.network-kpis strong {
    font-size: 15px;
}

.network-kpis small,
.network-detail-grid dt {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.network-detail-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 12px 0;
}

.network-detail-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 8px 0 0;
}

.network-detail-grid dd {
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    margin: 0;
    overflow-wrap: anywhere;
}

.network-speedtest-section,
.network-ice-section {
    border-block: 1px solid var(--line);
    margin: 12px 0;
    padding: 12px 0;
}

.network-speedtest-section {
    border-bottom: 0;
}

.network-speedtest-section > header,
.network-ice-section > header {
    align-items: center;
    border: 0;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin: 0 0 8px;
    padding: 0;
}

.network-speedtest-section h3,
.network-ice-section h3 {
    font-size: 12px;
    margin: 0;
}

.network-speedtest-section > header span,
.network-ice-section > header span {
    color: var(--muted);
    font-size: 10px;
}

.network-speedtest-button {
    font-size: 10px;
    min-height: 30px;
    padding: 6px 10px;
}

.network-speedtest-status {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    margin: 0 0 8px;
    overflow-wrap: anywhere;
}

.network-ice-table-wrap {
    overflow-x: auto;
}

.network-ice-table {
    border-collapse: collapse;
    font-size: 11px;
    width: 100%;
}

.network-ice-table th,
.network-ice-table td {
    border-bottom: 1px solid var(--line);
    padding: 7px 8px;
    text-align: left;
    white-space: nowrap;
}

.network-ice-table th {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.network-ice-table tbody tr:last-child td {
    border-bottom: 0;
}

.network-peer-list {
    display: grid;
    gap: 10px;
}

.network-peer-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
}

.network-peer-card header {
    border: 0;
    margin: 0;
    padding: 0;
}

.network-peer-card header strong {
    font-size: 12px;
}

.network-peer-card header span {
    color: var(--muted);
    font-size: 10px;
}

.settings-tabs {
    background: #f5f6fa;
    border: 1px solid var(--line);
    border-radius: 9px;
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 12px;
    padding: 4px;
}

.settings-primary-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.settings-tabs button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--muted-dark);
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    gap: 6px;
    justify-content: center;
    min-height: 32px;
    padding: 7px 9px;
}

.settings-tabs button.active {
    background: #fff;
    box-shadow: 0 6px 18px rgba(27, 31, 45, 0.08);
    color: var(--primary);
}

.settings-tabs .icon {
    height: 14px;
    width: 14px;
}

.settings-section {
    display: grid;
    gap: 10px;
}

.app-preferences-panel {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 10px;
    margin-bottom: 2px;
    padding-bottom: 12px;
}

.settings-section-heading {
    display: grid;
    gap: 4px;
}

.settings-section-heading h3 {
    font-size: 13px;
}

.settings-section-heading p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.field-label > small {
    color: var(--muted);
    display: block;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
    margin-top: 5px;
}

.settings-section .toggle-row:first-child {
    border-top: 1px solid var(--line);
}

.shortcut-settings-content {
    display: grid;
    gap: 12px;
}

.shortcut-message {
    background: var(--primary-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
    padding: 9px 10px;
}

.shortcut-list {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.shortcut-row {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 10px;
    grid-template-columns: 34px minmax(0, 1fr) minmax(78px, auto) minmax(100px, auto) auto;
    min-height: 62px;
    padding: 9px 10px;
}

.shortcut-row:last-child {
    border-bottom: 0;
}

.shortcut-row.recording {
    background: #fbfaff;
    box-shadow: inset 3px 0 0 var(--primary);
}

.shortcut-icon {
    align-items: center;
    background: var(--primary-soft);
    border-radius: 9px;
    color: var(--primary);
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.shortcut-info {
    min-width: 0;
}

.shortcut-info strong,
.shortcut-info small,
.shortcut-default {
    display: block;
}

.shortcut-info strong {
    font-size: 12px;
}

.shortcut-info small,
.shortcut-default {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}

.shortcut-row kbd {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--text);
    font: 700 11px "DM Sans", "Segoe UI", sans-serif;
    justify-self: start;
    min-width: 68px;
    padding: 6px 8px;
    text-align: center;
    white-space: nowrap;
}

.shortcut-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.shortcut-actions .button {
    min-height: 34px;
    padding: 8px 10px;
}

.shortcut-actions .icon-button {
    border-radius: 8px;
    height: 34px;
    width: 34px;
}

.field-label {
    color: var(--muted-dark);
    display: block;
    font-size: 10px;
    font-weight: 700;
    margin-top: 12px;
}

.field-label select {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: block;
    font-size: 11px;
    margin-top: 5px;
    outline: 0;
    padding: 9px;
    width: 100%;
}

.field-label textarea {
    min-height: 76px;
    resize: vertical;
}

.device-preview-shell {
    aspect-ratio: var(--device-preview-aspect-ratio, 16 / 9);
    background: #222b40;
    border-radius: 10px;
    height: auto;
    margin: 0 auto;
    max-height: min(340px, 48vh);
    max-width: 100%;
    overflow: hidden;
    position: relative;
    width: min(100%, 460px);
}

.device-preview-shell video {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.device-preview-shell span {
    background: rgba(20, 26, 43, 0.72);
    border-radius: 12px;
    bottom: 8px;
    color: #fff;
    font-size: 9px;
    left: 8px;
    padding: 5px 7px;
    position: absolute;
}

.device-health {
    display: flex;
    gap: 8px;
    margin-top: 9px;
}

.device-health span {
    align-items: center;
    background: #f4f5f8;
    border-radius: 20px;
    color: var(--muted);
    display: flex;
    font-size: 9px;
    gap: 5px;
    padding: 5px 8px;
}

.device-health i {
    background: #c5cad4;
    border-radius: 50%;
    height: 6px;
    width: 6px;
}

.device-health .ready {
    background: #ebfaf3;
    color: #339975;
}

.device-health .ready i {
    background: var(--success);
}

.microphone-meter {
    background: #f8f9fb;
    border: 1px solid var(--line);
    border-radius: 9px;
    margin-top: 10px;
    padding: 9px 10px;
}

.microphone-meter div {
    align-items: center;
    display: flex;
    font-size: 11px;
    justify-content: space-between;
}

.microphone-meter output,
.microphone-meter small {
    color: var(--muted);
    font-size: 10px;
}

.microphone-level {
    background: #dfe3eb;
    border-radius: 8px;
    display: block;
    height: 8px;
    margin: 7px 0 5px;
    overflow: hidden;
}

.microphone-level-fill {
    background: linear-gradient(90deg, var(--success), #8bcf6c, #f0bb53);
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width 80ms linear;
    width: 0;
}

.device-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.device-actions .button {
    flex: 1 1 140px;
}

.schedule-modal select {
    margin-top: 5px;
}

.schedule-tabs {
    margin-top: 12px;
}

.schedule-time-row {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 1.3fr) minmax(105px, 0.7fr) minmax(140px, 0.8fr) minmax(100px, 0.6fr);
}

.schedule-time-row .field-label {
    margin-top: 12px;
}

.schedule-section-heading {
    color: var(--muted-dark);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    margin: 12px 0 10px;
}

.schedule-section-note {
    color: var(--muted);
    font-size: 10px;
    margin: 0;
}

.schedule-resource-form,
.schedule-poll-form {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schedule-contact-editor,
.schedule-resource-editor,
.schedule-poll-editor {
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 12px;
}

.schedule-contact-editor strong,
.schedule-contact-editor small,
.schedule-resource-editor strong,
.schedule-resource-editor small,
.schedule-poll-editor strong,
.schedule-poll-editor small {
    display: block;
}

.schedule-contact-editor small,
.schedule-resource-editor small,
.schedule-poll-editor small {
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
}

.schedule-contact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.schedule-contact-chips span {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: inline-flex;
    gap: 7px;
    min-width: 0;
    padding: 6px 7px;
}

.schedule-contact-chips strong {
    font-size: 11px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-contact-chips button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.schedule-contact-chips button:hover {
    background: #feeeee;
    color: var(--danger);
}

.schedule-contact-search {
    margin: 0;
}

.schedule-contact-list {
    display: grid;
    gap: 7px;
    max-height: 220px;
    overflow: auto;
}

.schedule-contact-list button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 8px;
    text-align: left;
}

.schedule-contact-list button:hover,
.schedule-contact-list button.selected {
    border-color: var(--accent);
}

.schedule-contact-list button > span:last-of-type {
    min-width: 0;
}

.schedule-contact-list button strong,
.schedule-contact-list button small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-contact-list button > .icon {
    color: var(--accent);
}

.schedule-resource-list,
.schedule-poll-list {
    display: grid;
    gap: 7px;
}

.schedule-resource-list span,
.schedule-poll-list span {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 7px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 8px;
}

.schedule-poll-list span {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.schedule-poll-list strong {
    color: var(--text);
    font-size: 11px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-resource-title-input {
    background: #f8f9fc;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    min-width: 0;
    padding: 5px 7px;
    width: 100%;
}

.schedule-resource-title-input:focus {
    background: #fff;
    border-color: var(--accent);
    outline: 0;
}

.schedule-resource-list span > small,
.schedule-poll-list span > small {
    grid-column: 2;
    margin-top: -5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-resource-list button,
.schedule-poll-list button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.schedule-resource-list button:hover,
.schedule-poll-list button:hover {
    background: #feeeee;
    color: var(--danger);
}

.schedule-resource-form {
    align-items: end;
    grid-template-columns: minmax(105px, 0.8fr) minmax(130px, 1fr) minmax(180px, 1.4fr) auto;
}

.schedule-poll-form {
    align-items: end;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
}

.schedule-poll-form textarea {
    min-height: 82px;
}

.schedule-resource-form.document-mode {
    grid-template-columns: minmax(105px, 0.8fr) minmax(150px, 1fr) minmax(220px, 1.6fr);
}

.schedule-file-picker {
    align-items: center;
    background: #fff;
    border: 1px dashed #b8c0d8;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    min-height: 48px;
    overflow: hidden;
    padding: 10px 12px;
    position: relative;
}

.schedule-file-picker input {
    cursor: pointer;
    inset: 0;
    opacity: 0;
    position: absolute;
}

.schedule-file-picker .icon {
    color: var(--accent);
    flex: 0 0 auto;
}

.schedule-file-picker strong,
.schedule-file-picker small {
    display: block;
}

.schedule-file-picker small {
    color: var(--muted);
    font-size: 10px;
}

.schedule-file-picker:hover {
    border-color: var(--accent);
}

.background-modal {
    max-height: min(820px, calc(100vh - 42px));
    overflow: auto;
    width: 760px;
}

.background-settings-content {
    display: grid;
    gap: 11px;
}

.background-method-grid,
.background-grid,
.background-library-grid,
.background-color-grid,
.background-parameter-panel {
    display: grid;
    gap: 9px;
}

.background-method-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 11px;
}

.background-settings-content .background-method-grid {
    margin-bottom: 0;
}

.background-method {
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    min-height: 74px;
    padding: 10px;
    text-align: left;
}

.background-method strong,
.background-method small {
    display: block;
}

.background-method strong {
    font-size: 12px;
}

.background-method small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
    margin-top: 5px;
}

.background-method.selected,
.background-choice.selected,
.background-library-choice.selected,
.background-color-choice.selected,
.background-upload.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(101, 87, 210, 0.12);
}

.background-grid {
    grid-template-columns: repeat(4, 1fr);
}

.background-choice {
    align-items: flex-end;
    background: #e8eaf0;
    border: 2px solid transparent;
    border-radius: 8px;
    display: flex;
    height: 86px;
    overflow: hidden;
    padding: 8px;
}

.background-choice span,
.background-library-choice span {
    background: rgba(17, 23, 37, 0.62);
    border-radius: 7px;
    color: #fff;
    font-size: 9px;
    padding: 5px 7px;
}

.background-preview-none {
    background: linear-gradient(135deg, #dfe4ee, #bbc4d2);
}

.background-preview-blur {
    background: linear-gradient(135deg, #bbb6d7, #e3c4be);
    filter: blur(0.4px);
}

.background-preview-photo {
    background:
        linear-gradient(160deg, rgba(18, 24, 39, 0.16), rgba(18, 24, 39, 0.04)),
        linear-gradient(145deg, #9fd7c9 0 38%, #e9f2f7 38% 64%, #58719a 64% 100%);
}

.background-preview-color {
    background: linear-gradient(135deg, #20324a 0 50%, #0f766e 50% 100%);
}

.background-slider {
    align-items: center;
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 9px;
    grid-template-columns: 92px minmax(140px, 1fr) 54px;
    margin-top: 10px;
    padding: 9px 10px;
}

.background-slider span,
.select-field span,
.background-color-picker span {
    color: var(--muted-dark);
    font-size: 10px;
    font-weight: 700;
}

.background-slider input {
    min-width: 0;
    width: 100%;
}

.background-slider output {
    color: var(--text);
    font-size: 10px;
    font-weight: 700;
    text-align: right;
}

.background-library-grid {
    grid-template-columns: repeat(5, 1fr);
    margin-top: 10px;
}

.background-library-choice {
    align-items: flex-end;
    border: 2px solid transparent;
    border-radius: 8px;
    display: flex;
    min-height: 72px;
    overflow: hidden;
    padding: 7px;
    position: relative;
}

.background-library-choice::after {
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.32));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.background-library-choice img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.background-library-choice span {
    position: relative;
    z-index: 1;
}

.background-color-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 10px;
}

.background-color-choice,
.background-color-picker {
    align-items: center;
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 8px;
    min-height: 44px;
    padding: 8px 9px;
}

.background-color-choice span {
    background: var(--swatch);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
    flex: 0 0 auto;
    height: 20px;
    width: 20px;
}

.background-color-choice small {
    color: var(--text);
    font-size: 10px;
    font-weight: 700;
}

.background-color-picker input {
    background: transparent;
    border: 0;
    flex: 1 1 auto;
    height: 28px;
    min-width: 44px;
    padding: 0;
}

.background-upload {
    align-items: center;
    border: 1px dashed #b8c0d8;
    border-radius: 8px;
    color: var(--muted-dark);
    cursor: pointer;
    display: flex;
    gap: 10px;
    margin-top: 10px;
    min-height: 58px;
    overflow: hidden;
    padding: 10px 12px;
    position: relative;
}

.background-upload:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.background-upload input {
    cursor: pointer;
    inset: 0;
    opacity: 0;
    position: absolute;
}

.background-upload .icon {
    flex: 0 0 auto;
}

.background-upload span {
    min-width: 0;
}

.background-upload strong,
.background-upload small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.background-upload strong {
    color: var(--text);
    font-size: 11px;
}

.background-upload small {
    color: var(--muted);
    font-size: 10px;
    margin-top: 2px;
}

.background-parameter-panel {
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
    padding: 10px;
}

.background-parameter-panel .background-slider {
    margin-top: 0;
}

.select-field {
    display: grid;
    gap: 5px;
}

.select-field select {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: 11px;
    min-height: 36px;
    padding: 0 9px;
    width: 100%;
}

.background-message {
    color: var(--danger-dark);
}

.background-status {
    background: #f5f6ff;
    border-radius: 8px;
    color: var(--primary-dark);
    padding: 7px 9px;
}

@media (max-width: 760px) {
    .settings-primary-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shortcut-row {
        align-items: flex-start;
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .shortcut-row kbd,
    .shortcut-default,
    .shortcut-actions {
        grid-column: 2;
    }

    .shortcut-actions {
        justify-content: flex-start;
    }

    .background-method-grid,
    .background-grid,
    .background-library-grid,
    .background-color-grid,
    .background-parameter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .background-slider {
        grid-template-columns: 1fr;
    }

    .background-slider output {
        text-align: left;
    }
}

.workspace-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.whiteboard-tools {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
}

.whiteboard-tool-group {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.whiteboard-tool-button,
.stroke-choice,
.color-choice {
    align-items: center;
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted-dark);
    display: inline-flex;
    justify-content: center;
    transition: 150ms ease;
}

.whiteboard-tool-button {
    flex: 0 0 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    position: relative;
    width: 34px;
}

.whiteboard-tool-button .icon {
    height: 17px;
    width: 17px;
}

.whiteboard-image-upload {
    cursor: pointer;
    overflow: hidden;
}

.whiteboard-image-upload input {
    cursor: pointer;
    inset: 0;
    opacity: 0;
    position: absolute;
}

.whiteboard-save-format {
    align-items: center;
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted-dark);
    display: inline-flex;
    gap: 6px;
    min-height: 36px;
    padding: 0 8px;
}

.whiteboard-save-format span {
    font-size: 10px;
    font-weight: 700;
}

.whiteboard-save-format select {
    background: transparent;
    border: 0;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    min-width: 62px;
    outline: 0;
}

.whiteboard-tool-button:hover,
.whiteboard-tool-button.selected,
.stroke-choice:hover,
.stroke-choice.selected,
.color-choice:hover,
.color-choice.selected {
    border-color: var(--primary);
    color: var(--primary);
}

.stroke-choice {
    height: 34px;
    width: 34px;
}

.stroke-choice span {
    background: currentColor;
    border-radius: 999px;
    display: block;
    width: 22px;
}

.color-choice {
    background: var(--swatch);
    height: 26px;
    position: relative;
    width: 26px;
}

.color-choice[style*="#ffffff"] {
    box-shadow: inset 0 0 0 1px #d9deea;
}

.color-choice.selected::after {
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(29, 37, 56, 0.24);
    content: "";
    height: 10px;
    width: 10px;
}

.whiteboard-surface {
    flex: 1;
    min-height: 0;
    position: relative;
}

.whiteboard-canvas {
    background-color: #fdfdff;
    background-image: radial-gradient(#dce0eb 1px, transparent 1px);
    background-size: 18px 18px;
    cursor: crosshair;
    display: block;
    height: 100%;
    touch-action: none;
    width: 100%;
}

.whiteboard-text-input {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--primary);
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
    font: 700 26px "DM Sans", "Segoe UI", sans-serif;
    line-height: 1.25;
    min-height: 38px;
    min-width: 130px;
    outline: 0;
    overflow: hidden;
    padding: 3px 5px;
    position: absolute;
    resize: both;
    transform: translateY(-2px);
    z-index: 4;
}

.whiteboard-hint {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 10px;
    gap: 7px;
    padding: 11px 15px;
}

.poll-workspace {
    margin: auto;
    max-height: 520px;
    max-width: 650px;
    padding-bottom: 14px;
}

.meeting-poll-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 17px 0;
}

.meeting-poll-selector button {
    align-items: center;
    background: #f7f8fc;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted-dark);
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    gap: 6px;
    max-width: 240px;
    min-height: 34px;
    overflow: hidden;
    padding: 8px 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meeting-poll-selector button.selected {
    background: #eef0ff;
    border-color: var(--primary);
    color: var(--primary);
}

.workspace-description {
    color: var(--muted);
    font-size: 12px;
    padding: 15px 17px 7px;
}

.poll-option {
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted-dark);
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    margin: 8px 17px;
    overflow: hidden;
    padding: 12px;
    position: relative;
    text-align: left;
}

.poll-option span,
.poll-option strong {
    position: relative;
    z-index: 1;
}

.poll-option i {
    background: #edeaff;
    bottom: 0;
    left: 0;
    position: absolute;
    top: 0;
}

.poll-option.selected {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.poll-footer {
    color: var(--muted);
    display: flex;
    font-size: 10px;
    justify-content: space-between;
    padding: 10px 17px 0;
}

.poll-footer span:last-child {
    align-items: center;
    color: var(--success);
    display: flex;
    gap: 5px;
}

.summary-workspace {
    margin: auto;
    max-width: 860px;
}

.summary-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: auto;
    padding: 17px;
}

.summary-grid section {
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 15px;
}

.summary-grid h3 {
    align-items: center;
    display: flex;
    font-size: 13px;
    gap: 7px;
    margin-bottom: 8px;
}

.summary-grid h3 .icon {
    color: var(--primary);
    height: 16px;
    width: 16px;
}

.summary-grid p,
.summary-grid li {
    color: var(--muted-dark);
    font-size: 11px;
    line-height: 1.6;
}

.summary-grid ul {
    margin: 0;
    padding-left: 16px;
}

.summary-transcript {
    grid-column: 1 / -1;
}

.summary-transcript p + p {
    margin-top: 7px;
}

.toast {
    align-items: center;
    background: #273149;
    border-radius: 9px;
    bottom: 22px;
    box-shadow: var(--shadow);
    color: #fff;
    display: flex;
    font-size: 11px;
    gap: 8px;
    left: 50%;
    padding: 11px 14px;
    position: fixed;
    transform: translateX(-50%);
    z-index: 30;
}

.toast .icon {
    color: #71d9ae;
}

.docs-shell {
    margin: 0 auto;
    max-width: 1040px;
    padding: 34px 24px 70px;
}

.docs-nav {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 54px;
}

.docs-hero {
    max-width: 700px;
}

.docs-hero h1 {
    font-size: clamp(33px, 5vw, 54px);
    letter-spacing: -2.5px;
    line-height: 1.08;
}

.docs-hero p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    margin-top: 16px;
}

.docs-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 38px;
}

.docs-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}

.docs-card h2 {
    font-size: 16px;
    margin-bottom: 9px;
}

.docs-card p,
.docs-card li {
    color: var(--muted-dark);
    font-size: 12px;
    line-height: 1.65;
}

.docs-card ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

pre {
    background: #222b40;
    border-radius: 10px;
    color: #c8d3ef;
    font: 11px/1.65 Consolas, monospace;
    margin: 10px 0 0;
    overflow: auto;
    padding: 13px;
}

.docs-link {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

#blazor-error-ui {
    background: #fff4d8;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    color: #6d5421;
    display: none;
    left: 0;
    padding: 0.8rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.65rem;
}

@media (max-width: 1100px) {
    .dashboard-main {
        padding: 0 30px 36px;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .secondary-card {
        grid-column: 1 / -1;
    }

    .dashboard-columns {
        grid-template-columns: 1fr;
    }

    .side-column {
        grid-template-columns: repeat(2, 1fr);
    }

    .meeting-panel {
        flex-basis: 290px;
    }

    .schedule-time-row,
    .schedule-resource-form,
    .schedule-poll-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-resource-form.document-mode,
    .schedule-resource-form.url-mode {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .dashboard-shell {
        display: block;
    }

    .app-sidebar {
        display: none;
    }

    .dashboard-main {
        padding: 0 18px 30px;
    }

    .dashboard-header {
        gap: 12px;
        justify-content: space-between;
    }

    .mobile-brand {
        display: flex;
    }

    .search-box {
        display: none;
    }

    .welcome-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding-top: 28px;
    }

    .quick-grid,
    .side-column {
        grid-template-columns: 1fr;
    }

    .secondary-card {
        grid-column: auto;
    }

    .feature-strip {
        gap: 16px;
        grid-template-columns: 1fr;
    }

    .recording-grid {
        grid-template-columns: 1fr;
    }

    .upcoming-card {
        align-items: stretch;
        flex-direction: column;
    }

    .meeting-line {
        display: none;
    }

    .meeting-card-actions {
        justify-content: flex-start;
    }

    .schedule-time-row,
    .schedule-resource-form,
    .schedule-poll-form {
        grid-template-columns: 1fr;
    }

    .schedule-resource-form.document-mode,
    .schedule-resource-form.url-mode {
        grid-template-columns: 1fr;
    }

    .meeting-resource-bar {
        max-width: 100%;
    }

    .meeting-status .status-pill:nth-child(n + 2) {
        display: none;
    }

    .meeting-panel {
        bottom: 78px;
        flex-basis: auto;
        position: fixed;
        right: 0;
        top: 64px;
        width: min(88vw, 320px);
        z-index: 9;
    }

    .toolbar-center {
        gap: 1px;
    }

    .control-button {
        min-width: 42px;
        padding-inline: 3px;
    }

    .control-button small {
        display: none;
    }

    .toolbar-section:first-child .control-caret {
        display: none;
    }
}

@media (max-width: 600px) {
    .profile-layout,
    .directory-layout {
        grid-template-columns: 1fr;
    }

    .profile-avatar-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-add-row {
        flex-direction: column;
    }

    .upcoming-card {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
        padding: 15px;
    }

    .meeting-line {
        height: 72px;
    }

    .upcoming-card .button {
        margin-left: 90px;
    }

    .empty-meeting-card .button {
        margin-left: 0;
    }

    .compact-brand span:not(.brand-mark),
    .header-divider {
        display: none;
    }

    .meeting-brand strong,
    .meeting-title-button {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .meeting-resource-label {
        display: none;
    }

    .meeting-header {
        gap: 8px;
        padding: 0 8px;
    }

    .meeting-view-controls {
        justify-content: flex-start;
    }

    .view-menu {
        left: 0;
        min-width: min(92vw, 320px);
        transform: none;
    }

    .meeting-view-controls .segmented-control button {
        min-height: 28px;
        padding: 5px 7px;
    }

    .stage {
        padding: 8px 8px 0;
    }

    .segmented-control {
        max-width: 100%;
        overflow-x: auto;
    }

    .segmented-control button {
        white-space: nowrap;
    }

    .video-grid {
        gap: 7px;
        grid-template-columns: 1fr;
    }

    .self-overlay-tile {
        bottom: 12px;
        min-width: 126px;
        right: 12px;
        width: clamp(132px, 42vw, 190px);
    }

    .stage-split,
    .stage-split.split-horizontal,
    .stage-split.split-vertical {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, var(--primary-size)) 5px minmax(118px, 1fr);
    }

    .split-position-left .stage-primary,
    .split-position-left .stage-secondary,
    .split-position-left .stage-splitter {
        grid-column: auto;
    }

    .stage-splitter,
    .split-horizontal .stage-splitter,
    .split-vertical .stage-splitter {
        cursor: row-resize;
        height: 5px;
        width: 100%;
    }

    .split-horizontal .stage-splitter::after,
    .split-vertical .stage-splitter::after {
        height: 3px;
        width: 24px;
    }

    .split-horizontal .stage-filmstrip,
    .split-vertical .stage-filmstrip {
        grid-auto-flow: column;
        grid-auto-columns: minmax(170px, 1fr);
        grid-auto-rows: initial;
        grid-template-rows: 1fr;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .meeting-toolbar {
        padding: 0 7px;
    }

    .toolbar-center .control-button:nth-child(n + 4) {
        display: none;
    }

    .leave-button {
        font-size: 0;
        padding: 10px;
    }

    .leave-button .icon {
        height: 17px;
        width: 17px;
    }

    .more-menu {
        right: 5px;
        left: auto;
        transform: none;
    }

    .alarm-grid {
        grid-template-columns: 1fr;
    }

    .reaction-menu {
        transform: translateX(-50%);
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }

    .messenger {
        grid-template-columns: 1fr;
    }

    .conversation-list {
        border-bottom: 1px solid var(--line);
        border-right: 0;
        max-height: 46vh;
        overflow: auto;
    }
}
