/* Extracted from the legacy post-workspace cascade. Keep route-tail ordering stable. */
.call-screen .meeting-memo-control {
    order: 4;
}

body.user-body-meetings {
    overflow: hidden;
}

body.user-body-meetings.is-participant-dialog-open {
    overflow: hidden;
}

body.user-body-meetings .meeting-participant-list {
    overflow: auto;
    overscroll-behavior: contain;
}

.meeting-layout {
    flex: 1 1 auto;
    min-height: 0;
    max-width: 1480px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(520px, 1fr) minmax(360px, 520px);
    gap: 22px;
}

.meeting-stage {
    border-radius: var(--user-radius-sm);
}

.meeting-main {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
    overflow: auto;
    padding: 2px 4px 10px 0;
}

.meeting-stage {
    padding: 28px 32px;
}

.meeting-stage[hidden] {
    display: none;
}

.meeting-layout.meeting-room-active {
    max-width: none;
    height: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.meeting-layout.meeting-room-active .meeting-main {
    display: none;
}



.meeting-layout.meeting-room-active .meeting-stage {
    min-height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 14px;
    padding: 16px;
    border-radius: 0;
    background: var(--zn-member-bg-page);
    box-shadow: none;
}

.meeting-layout.meeting-room-active .meeting-section-header {
    align-items: center;
}

.meeting-layout.meeting-room-active .meeting-section-header h2 {
    max-width: min(72vw, 900px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.16rem;
}

.meeting-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.meeting-section-header h2,
.meeting-section-header h3,
.meeting-row-copy h3 {
    margin: 0;
}

.meeting-list-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.meeting-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meeting-section-title h3 {
    color: var(--zn-member-text-primary);
    font-size: 1.22rem;
    line-height: 1.2;
}

.meeting-section-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #07505a;
}

.meeting-section-dot-muted {
    background: var(--zn-member-text-muted);
}

.meeting-section-calendar {
    width: 18px;
    height: 18px;
    color: var(--zn-member-text-secondary);
}

.meeting-section-calendar svg,
.meeting-row-facts svg,
.meeting-participant-search svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.meeting-section-header h2 {
    font-size: 1.08rem;
}

.meeting-count {
    min-width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--zn-member-text-secondary);
    background: color-mix(in srgb, var(--zn-member-bg-surface-hover) 84%, white);
    font-weight: 700;
}

.meeting-list {
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meeting-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 128px;
    padding: 24px;
    border: 1px solid var(--zn-member-border);
    border-radius: 12px;
    background: var(--zn-member-bg-surface);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.meeting-row.is-deep-linked {
    border-color: var(--zn-member-accent-border-strong);
    box-shadow: 0 0 0 3px var(--zn-member-accent-surface), 0 12px 28px rgba(9, 16, 30, 0.18);
}

.meeting-row-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.meeting-row-icon {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #f6fbff;
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.25), transparent 34%),
        linear-gradient(135deg, #0a7882, #064c59);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 16px 28px rgba(6, 76, 89, 0.18);
}

.meeting-row-icon[data-state="ended"] {
    color: var(--zn-member-text-muted);
    background: var(--zn-member-bg-surface-hover);
    box-shadow: inset 0 0 0 1px var(--zn-member-border);
}

.meeting-row-icon svg {
    width: 38px;
    height: 38px;
}

.meeting-row-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meeting-row-title-line {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.meeting-row-copy h3 {
    max-width: min(52vw, 620px);
    color: var(--zn-member-text-primary);
    font-size: 1.14rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.meeting-row-copy p,
.meeting-row-facts,
.meeting-row-facts span,
.meeting-row-meta,
.meeting-form-status {
    margin: 0;
    color: var(--zn-member-text-secondary);
    font-size: 0.88rem;
    line-height: 1.45;
}

.meeting-row-facts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.meeting-row-facts span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.meeting-row-facts svg {
    width: 17px;
    height: 17px;
}

.meeting-row-meta {
    color: var(--zn-member-text-muted);
    overflow-wrap: anywhere;
}

.meeting-state-badge {
    display: inline-grid;
    min-height: 24px;
    align-items: center;
    padding: 4px 10px;
    border: 0;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--zn-member-text-secondary);
}

.meeting-state-active {
    color: var(--zn-member-success-text);
    border-color: var(--zn-success-border);
    background: var(--zn-success-soft);
}

.meeting-state-ended {
    color: var(--zn-member-text-muted);
    background: var(--zn-member-bg-surface-hover);
}

.meeting-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.meeting-join-button {
    min-width: 98px;
}

.meeting-row-actions .secondary-button:disabled,
.meeting-row-actions .primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.68;
    transform: none;
}

.meeting-danger-button {
    color: var(--zn-member-danger-text);
    border-color: var(--zn-danger-border);
}

.meeting-action-menu {
    position: relative;
}

.meeting-action-menu summary {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    cursor: pointer;
    list-style: none;
    border: 1px solid var(--zn-member-border);
    border-radius: 12px;
    color: var(--zn-member-text-primary);
    background: var(--zn-member-bg-surface);
    font-weight: 800;
}

.meeting-action-menu summary::-webkit-details-marker {
    display: none;
}

body.user-body-meetings .meeting-action-menu-panel {
    position: fixed;
    top: var(--meeting-action-menu-top, auto);
    right: var(--meeting-action-menu-right, max(16px, env(safe-area-inset-right)));
    bottom: var(--meeting-action-menu-bottom, max(16px, env(safe-area-inset-bottom)));
    left: auto;
    z-index: 90;
    width: min(220px, calc(100vw - 32px));
    min-width: min(180px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - var(--meeting-action-menu-top, 32px) - max(16px, env(safe-area-inset-bottom)));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    border: 1px solid var(--zn-member-border);
    border-radius: 12px;
    background: var(--zn-member-bg-card);
    box-shadow: var(--zn-shadow-panel);
    -webkit-overflow-scrolling: touch;
}

body.user-body-meetings .meeting-action-menu:not([open]) > .meeting-action-menu-panel {
    display: none;
}

@media (min-width: 981px) {
    body.user-body-meetings .meeting-desktop-agenda:has(.meeting-action-menu[open]),
    body.user-body-meetings .meeting-desktop-agenda-section:has(.meeting-action-menu[open]) {
        overflow: visible;
    }

    body.user-body-meetings .meeting-desktop-agenda-row:has(.meeting-action-menu[open]) {
        position: relative;
        z-index: 100;
    }

    body.user-body-meetings .meeting-desktop-agenda-row-actions .meeting-action-menu-panel {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        bottom: auto;
        width: 220px;
        max-height: min(360px, calc(100vh - 32px));
    }
}

.meeting-action-menu-panel > span {
    display: block;
    padding: 6px 8px 8px;
    color: var(--zn-member-text-muted);
    font-size: 0.76rem;
}

.meeting-menu-action {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    text-align: left;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--zn-member-text-primary);
    font: inherit;
    cursor: pointer;
}

.meeting-menu-action:hover:not(:disabled) {
    background: var(--zn-member-bg-surface-hover);
}

@media (max-width: 980px) {
    body.user-body-meetings .meeting-menu-action {
        min-height: 44px;
    }
}

.meeting-date-card {
    width: 72px;
    height: 86px;
    display: grid;
    place-items: center;
    padding: 8px;
    border: 1px solid var(--zn-member-border);
    border-radius: 12px;
    background: var(--zn-member-bg-card);
}

.meeting-date-card span {
    color: var(--zn-member-text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.meeting-date-card strong {
    color: var(--zn-member-text-primary);
    font-size: 1.2rem;
}

.meeting-row-ended {
    min-height: 96px;
    opacity: 0.82;
}

.meeting-list-ended {
    gap: 8px;
}

.meeting-create-form {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meeting-create-form .form-field span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.meeting-create-form .form-field small {
    color: var(--zn-member-text-muted);
    font-weight: 500;
}

.meeting-create-form .form-input {
    min-height: 44px;
    border-radius: 12px;
}

.meeting-title-field {
    gap: 0;
}

.meeting-participant-picker {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.meeting-checkbox-field {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--zn-member-text-primary);
    font-size: 0.84rem;
    font-weight: 700;
}

.meeting-checkbox-field input {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.meeting-picker-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.meeting-picker-title {
    min-width: 0;
    color: var(--zn-member-text-primary);
    font-size: 0.9rem;
    font-weight: 700;
}

.meeting-picker-header button {
    padding: 0;
    border: 0;
    color: var(--zn-member-text-link);
    background: transparent;
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
}

.meeting-selected-participants {
    flex: 0 0 auto;
    min-height: 40px;
    max-height: 92px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    overflow: auto;
    padding-right: 2px;
}

.meeting-selected-chip {
    min-width: 0;
    max-width: calc(50% - 4px);
    flex: 1 1 190px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 10px 6px 6px;
    border: 1px solid var(--zn-member-border);
    border-radius: 10px;
    background: var(--zn-member-bg-surface);
    color: var(--zn-member-text-primary);
    font-size: 0.86rem;
}

.meeting-selected-chip > span:not(.meeting-participant-avatar) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meeting-selected-chip button {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--zn-member-text-secondary);
    background: transparent;
    cursor: pointer;
}

.meeting-participant-search {
    flex: 0 0 48px;
    min-height: 48px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--zn-member-border);
    border-radius: 12px;
    color: var(--zn-member-text-muted);
    background: var(--zn-member-bg-surface);
}

.meeting-participant-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--zn-member-text-primary);
    background: transparent;
    font: inherit;
}

.meeting-participant-list {
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    overflow: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 0 2px 0 0;
    border: 1px solid var(--zn-member-border);
    border-radius: 12px;
    background: var(--zn-member-bg-surface);
}

.meeting-participant-option {
    display: grid;
    grid-template-columns: 20px 38px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 64px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--zn-member-border);
    background: transparent;
}

.meeting-participant-option:last-child {
    border-bottom: 0;
}

.meeting-participant-option[hidden] {
    display: none;
}

.meeting-participant-avatar {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: var(--zn-member-avatar-border-width, 0) solid var(--zn-member-avatar-border);
    color: var(--zn-member-avatar-text);
    background: var(--zn-member-avatar-background);
    font-weight: 800;
    font-size: 0.8rem;
}

.meeting-participant-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.meeting-participant-copy small,
.meeting-participant-role {
    color: var(--zn-member-text-muted);
    overflow-wrap: anywhere;
    font-size: 0.82rem;
}

.meeting-participant-role {
    white-space: nowrap;
}

.meeting-form-status[data-tone="progress"] {
    color: var(--zn-member-text-link);
}

.meeting-form-status[data-tone="error"] {
    color: var(--zn-member-danger-text);
}

.meeting-form-status[data-tone="success"] {
    color: var(--zn-member-success-text);
}

.meeting-media-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.meeting-layout.meeting-room-active .meeting-media-grid {
    position: relative;
    min-height: 0;
    margin-top: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--zn-member-border);
    border-radius: var(--user-radius-sm);
    background: color-mix(in srgb, var(--zn-member-bg-app) 88%, var(--zn-bg-app));
}

.meeting-remote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.meeting-layout.meeting-room-active .meeting-remote-grid {
    position: relative;
    min-height: 0;
    height: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: minmax(0, 1fr);
    gap: 1px;
    background: color-mix(in srgb, var(--zn-member-border) 38%, transparent);
}

.meeting-layout.meeting-room-active .meeting-remote-grid[data-remote-layout="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meeting-layout.meeting-room-active .meeting-remote-grid[data-remote-layout="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.meeting-layout.meeting-room-active .meeting-remote-grid[data-remote-layout="3"] .meeting-remote-tile:first-child {
    grid-row: span 2;
}

.meeting-layout.meeting-room-active .meeting-remote-grid[data-remote-layout="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.meeting-layout.meeting-room-active .meeting-remote-grid[data-remote-layout="many"],
.guest-live-shell .meeting-remote-grid[data-remote-layout="many"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
}

.meeting-layout.meeting-room-active .meeting-stage[data-screen-sharing="true"] .meeting-media-grid {
    grid-template-columns: minmax(0, 1fr);
}

.meeting-layout.meeting-room-active .meeting-remote-grid:not([data-remote-count]),
.meeting-layout.meeting-room-active .meeting-remote-grid[data-remote-count="0"] {
    background: transparent;
}

.meeting-layout.meeting-room-active .meeting-remote-grid:not([data-remote-count])::before,
.meeting-layout.meeting-room-active .meeting-remote-grid[data-remote-count="0"]::before {
    content: "Waiting for participants";
    display: grid;
    place-items: center;
    min-height: 100%;
    color: var(--zn-member-text-secondary);
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--zn-member-bg-card) 18%, transparent),
            transparent
        ),
        color-mix(in srgb, var(--zn-member-bg-app) 88%, var(--zn-bg-app));
}

.meeting-media-tile {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    border: 1px solid var(--zn-member-border);
    border-radius: var(--user-radius-sm);
    background: var(--zn-member-bg-surface);
}

.meeting-layout.meeting-room-active .meeting-media-tile {
    min-height: 220px;
    background: color-mix(in srgb, var(--zn-member-bg-app) 88%, var(--zn-bg-app));
}

.meeting-layout.meeting-room-active .meeting-local-tile {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: clamp(132px, 18vw, 240px);
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-color: color-mix(in srgb, var(--zn-member-border) 72%, var(--zn-member-bg-card));
    box-shadow: var(--zn-member-shadow);
}

.meeting-layout.meeting-room-active .meeting-media-grid[data-remote-count="0"] .meeting-remote-grid {
    display: none;
}

.meeting-layout.meeting-room-active .meeting-media-grid[data-remote-count="0"] .meeting-local-tile {
    position: relative;
    inset: auto;
    z-index: 1;
    width: auto;
    min-height: 100%;
    aspect-ratio: auto;
    border-color: var(--zn-member-border);
    box-shadow: none;
}

.meeting-layout.meeting-room-active .meeting-stage[data-screen-sharing="true"] .meeting-local-tile {
    position: relative;
    inset: auto;
    z-index: 1;
    width: auto;
    min-height: 100%;
    aspect-ratio: auto;
    border-color: var(--zn-member-border);
    box-shadow: none;
}

.meeting-layout.meeting-room-active .meeting-stage[data-screen-sharing="true"] .meeting-local-tile video {
    object-fit: contain;
}

.meeting-media-tile video {
    width: 100%;
    height: 100%;
    min-height: 150px;
    display: block;
    object-fit: cover;
    background: var(--zn-member-bg-surface-hover);
}

.meeting-layout.meeting-room-active
    .meeting-remote-tile[data-presentation-tile="true"] > video {
    object-fit: contain;
}

.meeting-layout.meeting-room-active .meeting-media-tile video {
    min-height: 220px;
    background: color-mix(in srgb, var(--zn-member-bg-app) 88%, var(--zn-bg-app));
}

.meeting-layout.meeting-room-active .meeting-local-tile video {
    min-height: 0;
}

.meeting-layout.meeting-room-active .meeting-local-tile .meeting-media-placeholder {
    font-size: 0.78rem;
}

.meeting-media-tile span,
.meeting-media-placeholder {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--zn-member-bg-card);
    color: var(--zn-member-text-secondary);
    font-size: 0.76rem;
}

.meeting-layout.meeting-room-active .meeting-media-tile span {
    max-width: min(260px, calc(100% - 20px));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: color-mix(in srgb, var(--zn-member-bg-card) 82%, transparent);
    color: var(--zn-member-text-primary);
}

.meeting-media-placeholder {
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 0;
    background: var(--zn-member-bg-surface);
    font-size: 0.9rem;
}

.meeting-media-placeholder[hidden] {
    display: none !important;
}

.meeting-layout.meeting-room-active .meeting-media-placeholder {
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--zn-member-bg-card) 18%, transparent),
            transparent
        ),
        color-mix(in srgb, var(--zn-member-bg-app) 88%, var(--zn-bg-app));
    color: var(--zn-member-text-secondary);
    font-size: 1rem;
}

.meeting-layout.meeting-room-active .meeting-media-tile[data-video-state="waiting-for-track"] > video,
.meeting-layout.meeting-room-active .meeting-media-tile[data-video-state="waiting-for-frames"] > video {
    opacity: 0;
}

.meeting-layout.meeting-room-active .meeting-media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.meeting-media-placeholder .meeting-media-avatar,
.meeting-media-placeholder .meeting-media-placeholder-copy,
.meeting-layout.meeting-room-active .meeting-media-placeholder .meeting-media-avatar,
.meeting-layout.meeting-room-active .meeting-media-placeholder .meeting-media-placeholder-copy {
    position: static;
    max-width: none;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
}

.meeting-media-placeholder .meeting-media-avatar,
.meeting-layout.meeting-room-active .meeting-media-placeholder .meeting-media-avatar {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--zn-member-accent), var(--zn-member-accent-border-strong));
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.meeting-media-placeholder .meeting-media-placeholder-copy,
.meeting-layout.meeting-room-active .meeting-media-placeholder .meeting-media-placeholder-copy {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: 0.92rem;
}

.meeting-control-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.meeting-guest-link-result {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}



.meeting-card-guest-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.meeting-card-guest-actions .secondary-button {
    min-width: 0;
}

.meeting-guest-link-result[hidden] {
    display: none !important;
}

.guest-meeting-body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    background:
        radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--zn-accent-soft) 44%, transparent), transparent 32%),
        linear-gradient(135deg, var(--zn-bg-app), color-mix(in srgb, var(--zn-bg-surface-muted) 74%, var(--zn-bg-app)));
    color: var(--zn-text-primary);
}

html:has(body.guest-meeting-body) {
    height: auto;
    overflow-y: auto;
}

.guest-invite-shell {
    display: grid;
    grid-template-columns: minmax(300px, 0.74fr) minmax(360px, 0.9fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    min-height: 100vh;
    padding: max(20px, env(safe-area-inset-top)) clamp(22px, 4vw, 58px) max(20px, env(safe-area-inset-bottom));
}

.guest-invite-shell[data-guest-meeting-shell] {
    display: block;
    min-height: 100vh;
    padding: 0;
}

.guest-prejoin-shell {
    display: grid;
    grid-template-columns: minmax(300px, 0.74fr) minmax(360px, 0.9fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    min-height: 100vh;
    padding: max(20px, env(safe-area-inset-top)) clamp(22px, 4vw, 58px) max(20px, env(safe-area-inset-bottom));
}

.guest-prejoin-shell[hidden] {
    display: none !important;
}

.guest-invite-aside,
.guest-invite-main {
    display: grid;
    gap: 18px;
}

.guest-invite-brand,
.guest-invite-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    color: var(--zn-text-primary);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.guest-invite-brand-mark,
.guest-invite-mobile-brand img {
    border-radius: 12px;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--zn-accent) 16%, transparent);
}

.guest-invite-mobile-brand {
    display: none;
}

.guest-invite-pitch {
    display: grid;
    gap: 16px;
    width: min(430px, 100%);
    margin: clamp(24px, 8vh, 76px) 0;
}

.guest-invite-version {
    width: max-content;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid color-mix(in srgb, var(--zn-accent) 20%, var(--zn-border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--zn-accent-soft) 52%, var(--zn-bg-surface));
    color: var(--zn-text-primary);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guest-invite-pitch h2 {
    margin: 0;
    max-width: 10ch;
    color: var(--zn-text-primary);
    font-size: clamp(2.15rem, 4.2vw, 4.3rem);
    line-height: 0.98;
}

.guest-invite-pitch p:not(.guest-invite-version) {
    max-width: 34rem;
    margin: 0;
    color: var(--zn-text-secondary);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.55;
}

.guest-invite-feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 390px;
}

.guest-invite-feature-grid span {
    padding: 8px 12px;
    border: 1px solid color-mix(in srgb, var(--zn-accent) 18%, var(--zn-border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--zn-bg-surface) 74%, transparent);
    color: var(--zn-text-primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.guest-invite-trust,
.guest-invite-note {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    color: var(--zn-text-secondary);
}

.guest-invite-trust {
    width: min(360px, 100%);
    margin: 0;
}

.guest-invite-lock,
.guest-invite-note-icon,
.guest-invite-detail-icon,
.guest-invite-icon,
.guest-invite-badge span {
    position: relative;
    display: inline-grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--zn-accent) 22%, var(--zn-border));
    background: var(--zn-accent-soft);
    color: var(--zn-accent);
}

.guest-invite-lock,
.guest-invite-note-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.guest-invite-lock::before,
.guest-invite-note-icon::before {
    content: "";
    width: 14px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 3px;
    box-sizing: border-box;
}

.guest-invite-lock::after,
.guest-invite-note-icon::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 8px;
    margin-top: -13px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.guest-invite-trust strong,
.guest-invite-note strong {
    display: block;
    color: var(--zn-text-primary);
    font-size: 0.92rem;
}

.guest-invite-trust p,
.guest-invite-note p {
    margin: 4px 0 0;
    line-height: 1.5;
}

.guest-invite-main {
    justify-items: center;
}

.guest-invite-card,
.guest-invite-note {
    width: min(540px, 100%);
    border: 1px solid var(--zn-border-soft);
    background: color-mix(in srgb, var(--zn-bg-surface) 94%, transparent);
    box-shadow: var(--zn-shadow);
    backdrop-filter: blur(20px);
}

.guest-invite-card {
    display: grid;
    gap: 14px;
    padding: clamp(20px, 3vw, 32px);
    border-radius: 24px;
}

.guest-invite-badge {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--zn-accent-soft) 28%, var(--zn-bg-surface));
    color: var(--zn-text-primary);
    font-size: 0.78rem;
    font-weight: 800;
}

.guest-invite-badge span {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: transparent;
}

.guest-invite-badge span::before {
    content: "";
    width: 7px;
    height: 9px;
    border: 2px solid currentColor;
    border-top: 0;
    transform: rotate(45deg);
}

.guest-invite-icon {
    justify-self: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
}

.guest-invite-icon::before {
    content: "";
    width: 22px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.guest-invite-heading {
    text-align: center;
}

.guest-invite-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 3.4vw, 2.7rem);
    line-height: 1.05;
}

.guest-invite-heading p {
    margin: 8px 0 0;
    color: var(--zn-text-secondary);
}

.guest-invite-error {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--zn-danger) 35%, var(--zn-border));
    border-radius: 16px;
    background: color-mix(in srgb, var(--zn-danger) 10%, var(--zn-bg-surface));
    color: var(--zn-text-secondary);
}

.guest-invite-error strong {
    color: var(--zn-danger);
}

.guest-invite-error p,
.guest-invite-error span {
    margin: 0;
}

.guest-invite-details {
    display: grid;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--zn-border-soft);
}

.guest-invite-title-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.guest-invite-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
}

.guest-invite-detail-icon::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 4px;
    box-shadow: inset 0 5px 0 color-mix(in srgb, currentColor 18%, transparent);
}

.guest-invite-title-row h2 {
    margin: 0;
    font-size: 1.24rem;
    line-height: 1.2;
}

.guest-invite-meta {
    display: grid;
    gap: 10px;
    margin: 0;
}

.guest-invite-meta div {
    display: grid;
    grid-template-columns: minmax(112px, 0.7fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.guest-invite-meta dt {
    color: var(--zn-text-muted);
    font-size: 0.86rem;
}

.guest-invite-meta dd {
    margin: 0;
    color: var(--zn-text-primary);
    font-weight: 700;
}

.guest-invite-meta small {
    display: block;
    margin-top: 3px;
    color: var(--zn-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.guest-invite-form,
.guest-invite-join-box {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--zn-accent) 22%, var(--zn-border));
    border-radius: 16px;
    background: color-mix(in srgb, var(--zn-accent-soft) 36%, var(--zn-bg-surface));
}

.guest-invite-waiting {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--zn-warning) 28%, var(--zn-border));
    border-radius: 16px;
    background: color-mix(in srgb, var(--zn-warning) 10%, var(--zn-bg-surface));
}

.guest-invite-waiting-kicker {
    margin: 0;
    color: var(--zn-text-muted);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guest-invite-waiting h2 {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.25;
}

.guest-invite-waiting p {
    margin: 0;
    color: var(--zn-text-secondary);
}

.guest-invite-waiting-meta {
    padding-top: 4px;
}

.guest-invite-waiting-meta time {
    overflow-wrap: anywhere;
}

.guest-invite-form .form-field {
    margin: 0;
    color: var(--zn-text-primary);
}

.guest-invite-form .form-input {
    min-height: 44px;
}

.guest-invite-primary {
    min-height: 46px;
    background: linear-gradient(135deg, var(--zn-accent), var(--zn-accent-hover));
}

.guest-invite-primary:disabled {
    cursor: not-allowed;
    background: color-mix(in srgb, var(--zn-text-muted) 18%, var(--zn-bg-surface));
    color: var(--zn-text-muted);
    border: 1px solid var(--zn-border);
    box-shadow: none;
    opacity: 0.78;
}

.guest-invite-copy {
    min-height: 34px;
    border: 0;
    background: transparent;
    color: var(--zn-text-primary);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.guest-invite-copy:hover,
.guest-invite-copy:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.guest-invite-copy:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.guest-invite-ready {
    margin: 0;
    color: var(--zn-text-secondary);
}

.guest-invite-note {
    padding: 14px;
    border-radius: 18px;
}

body.guest-meeting-live,
html:has(body.guest-meeting-live) {
    height: 100%;
    overflow: hidden;
}

.guest-live-shell {
    min-height: 100dvh;
    height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0;
    padding: max(14px, env(safe-area-inset-top)) clamp(14px, 2vw, 24px) max(12px, env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at 16% 8%, color-mix(in srgb, var(--zn-accent-soft) 42%, transparent), transparent 30%),
        linear-gradient(135deg, color-mix(in srgb, var(--zn-bg-app) 92%, #05070b), color-mix(in srgb, var(--zn-bg-surface-muted) 68%, #05070b));
    color: var(--zn-text-primary);
    overflow: hidden;
}

.guest-live-shell[hidden] {
    display: none !important;
}

.guest-live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    padding: 0 4px 12px;
}

.guest-live-header h2,
.guest-live-header p {
    margin: 0;
}

.guest-live-header h2 {
    font-size: clamp(1rem, 1.6vw, 1.28rem);
    line-height: 1.15;
}

.guest-live-status {
    flex: 0 0 auto;
    max-width: 46%;
    padding: 7px 12px;
    border: 1px solid color-mix(in srgb, var(--zn-accent) 24%, var(--zn-border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--zn-bg-surface) 78%, transparent);
    color: var(--zn-text-secondary);
    font-size: 0.82rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guest-live-stage {
    min-height: 0;
    display: grid;
}

.guest-live-shell .meeting-media-grid {
    position: relative;
    min-height: 0;
    height: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--zn-border) 78%, transparent);
    border-radius: 22px;
    background: color-mix(in srgb, var(--zn-bg-app) 88%, var(--zn-member-bg-app));
    box-shadow: var(--zn-member-shadow);
}

.guest-live-shell .meeting-remote-grid {
    position: relative;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: minmax(0, 1fr);
    gap: 1px;
    background: color-mix(in srgb, var(--zn-border) 36%, transparent);
}

.guest-live-shell .meeting-remote-grid[data-remote-layout="2"],
.guest-live-shell .meeting-remote-grid[data-remote-layout="3"],
.guest-live-shell .meeting-remote-grid[data-remote-layout="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guest-live-shell .meeting-remote-grid[data-remote-count="0"] {
    background: transparent;
}

.guest-live-shell .meeting-remote-grid[data-remote-count="0"]::before {
    content: "Waiting for participants";
    display: grid;
    place-items: center;
    height: 100%;
    min-height: 240px;
    color: var(--zn-text-secondary);
    font-weight: 800;
    background:
        radial-gradient(
            circle at 50% 35%,
            color-mix(in srgb, var(--zn-bg-surface) 22%, transparent),
            transparent 28%
        ),
        color-mix(in srgb, var(--zn-bg-app) 88%, var(--zn-member-bg-app));
}

.guest-live-shell .meeting-media-tile {
    position: relative;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: color-mix(in srgb, var(--zn-bg-app) 88%, var(--zn-member-bg-app));
}

.guest-live-shell .meeting-remote-tile {
    min-height: 0;
}

.guest-live-shell .meeting-local-tile {
    position: absolute;
    right: clamp(12px, 2vw, 20px);
    bottom: clamp(12px, 2vw, 20px);
    z-index: 3;
    width: clamp(150px, 18vw, 260px);
    height: auto;
    aspect-ratio: 4 / 3;
    border: 1px solid color-mix(in srgb, var(--zn-border) 72%, var(--zn-bg-surface));
    border-radius: 18px;
    box-shadow: var(--zn-member-shadow);
}

.guest-live-shell .meeting-media-tile video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    background: color-mix(in srgb, var(--zn-bg-app) 88%, var(--zn-member-bg-app));
}

.guest-live-shell .meeting-media-tile > span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 4;
    max-width: calc(100% - 24px);
    padding: 5px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--zn-bg-surface) 88%, transparent);
    color: var(--zn-text-primary);
    font-size: 0.78rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guest-live-shell .meeting-media-placeholder {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    border-radius: 0;
    background:
        radial-gradient(
            circle at 50% 35%,
            color-mix(in srgb, var(--zn-bg-surface) 22%, transparent),
            transparent 28%
        ),
        color-mix(in srgb, var(--zn-bg-app) 88%, var(--zn-member-bg-app));
    color: var(--zn-text-secondary);
    text-align: center;
}

.guest-live-shell .meeting-media-placeholder[hidden] {
    display: none !important;
}

.guest-live-shell .meeting-media-placeholder .meeting-media-avatar {
    position: static;
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--zn-border) 64%, transparent);
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--zn-accent),
        color-mix(in srgb, var(--zn-accent) 72%, var(--zn-bg-surface))
    );
    color: var(--zn-accent-text-strong);
    font-size: 1.2rem;
    font-weight: 900;
}

.guest-live-shell .meeting-media-placeholder .meeting-media-placeholder-copy {
    position: static;
    max-width: min(260px, 84%);
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: 0.95rem;
    line-height: 1.35;
}

.guest-live-shell .meeting-control-bar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 12px 0 0;
    background: transparent;
}

.guest-live-shell .meeting-control-bar .secondary-button {
    min-width: 132px;
    min-height: 46px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--zn-bg-surface) 90%, transparent);
    box-shadow: var(--zn-member-shadow);
    font-weight: 850;
}

.guest-live-shell .meeting-control-bar .meeting-danger-button {
    color: var(--zn-danger);
}

@media (max-width: 860px) {
    .guest-meeting-body {
        overflow-y: auto;
    }

    .guest-invite-shell:not([data-guest-meeting-shell]),
    .guest-prejoin-shell {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 18px;
        min-height: auto;
        padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
    }

    .guest-invite-aside {
        display: none;
    }

    .guest-invite-mobile-brand {
        display: inline-flex;
        justify-self: start;
        margin-bottom: 2px;
    }

    .guest-invite-main {
        gap: 16px;
        justify-items: stretch;
    }

    .guest-invite-card {
        width: 100%;
        gap: 16px;
        padding: 18px;
        border-radius: 22px;
    }

    .guest-invite-heading h1 {
        font-size: 2rem;
    }

    .guest-invite-title-row {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
    }

    .guest-invite-detail-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .guest-invite-title-row h2 {
        font-size: 1.18rem;
    }

    .guest-invite-meta {
        gap: 12px;
    }

    .guest-invite-meta div {
        grid-template-columns: minmax(92px, 0.72fr) minmax(0, 1fr);
        gap: 12px;
    }

    .guest-invite-waiting-meta div {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .guest-invite-form,
    .guest-invite-join-box {
        padding: 12px;
    }

    .guest-invite-note {
        width: 100%;
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 14px;
    }

    .guest-invite-note-icon {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    body.guest-meeting-live {
        position: fixed;
        inset: 0;
        width: 100%;
    }

    .guest-live-shell {
        height: 100dvh;
        min-height: 100dvh;
        padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
    }

    .guest-live-header {
        min-height: 46px;
        padding-bottom: 8px;
    }

    .guest-live-header h2 {
        font-size: 1rem;
    }

    .guest-live-status {
        max-width: 42%;
        padding: 6px 10px;
        font-size: 0.76rem;
    }

    .guest-live-shell .meeting-media-grid {
        border-radius: 18px;
    }

    .guest-live-shell .meeting-remote-grid[data-remote-layout="2"],
    .guest-live-shell .meeting-remote-grid[data-remote-layout="3"],
    .guest-live-shell .meeting-remote-grid[data-remote-layout="4"] {
        grid-template-columns: minmax(0, 1fr);
    }

    .guest-live-shell .meeting-remote-grid[data-remote-layout="many"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guest-live-shell .meeting-local-tile {
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        width: clamp(104px, 34vw, 148px);
        border-radius: 14px;
    }

    .guest-live-shell .meeting-media-tile > span {
        left: 10px;
        bottom: 10px;
        padding: 5px 9px;
        font-size: 0.74rem;
    }

    .guest-live-shell .meeting-local-tile > span {
        max-width: calc(100% - 20px);
    }

    .guest-live-shell .meeting-control-bar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding-top: 8px;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .guest-live-shell .meeting-control-bar .secondary-button {
        min-width: 0;
        min-height: 36px;
        padding: 7px 8px;
        font-size: 0.8rem;
        line-height: 1;
        white-space: nowrap;
    }}

.meeting-layout.meeting-room-active .meeting-control-bar {
    position: sticky;
    bottom: 0;
    z-index: 3;
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 10px;
    grid-template-columns: repeat(5, minmax(104px, 1fr));
    border: 1px solid var(--zn-member-border);
    border-radius: var(--user-radius-md);
    background: color-mix(in srgb, var(--zn-member-bg-card) 92%, transparent);
    box-shadow: var(--zn-shadow-soft);
    backdrop-filter: blur(16px);
}

.meeting-control-bar .secondary-button[data-active="true"] {
    border-color: var(--zn-success-border);
    background: var(--zn-success-soft);
    color: var(--zn-member-success-text);
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-stage {
    position: relative;
    isolation: isolate;
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-room-back-button {
    position: absolute;
    top: max(16px, env(safe-area-inset-top));
    left: max(16px, env(safe-area-inset-left));
    z-index: 10;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--zn-member-border) 72%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--zn-member-bg-card) 82%, transparent);
    color: var(--zn-member-text-primary);
    box-shadow: var(--zn-member-shadow);
    cursor: pointer;
    backdrop-filter: blur(16px);
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-room-back-button svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-stage > .meeting-section-header {
    position: absolute;
    top: max(16px, env(safe-area-inset-top));
    left: max(76px, calc(env(safe-area-inset-left) + 76px));
    right: max(16px, env(safe-area-inset-right));
    z-index: 8;
    align-items: flex-start;
    pointer-events: none;
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-stage .meeting-section-header > div {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid color-mix(in srgb, var(--zn-member-border) 72%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--zn-member-bg-card) 80%, transparent);
    color: var(--zn-member-text-primary);
    box-shadow: var(--zn-member-shadow);
    backdrop-filter: blur(16px);
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-live-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--zn-member-success-text);
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-live-kicker span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--zn-success);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--zn-success) 18%, transparent);
}

body.user-body-meetings .meeting-layout.meeting-room-active [data-meeting-stage-title] {
    max-width: min(46vw, 560px);
    margin: 0;
    overflow: hidden;
    color: var(--zn-member-text-primary);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.user-body-meetings .meeting-layout.meeting-room-active [data-meeting-stage-title]:empty {
    display: none;
}

body.user-body-meetings .meeting-layout.meeting-room-active [data-meeting-connection-state] {
    width: max-content;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: transparent;
    font-size: 0;
}

body.user-body-meetings .meeting-layout.meeting-room-active [data-meeting-connection-state]::before {
    content: "";
    width: 10px;
    height: 10px;
    display: block;
    border-radius: 50%;
    background: var(--zn-success);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--zn-success) 24%, transparent);
    animation: call-event-pulse 1.8s ease-out infinite;
}

body.user-body-meetings .meeting-layout.meeting-room-active [data-meeting-connection-state][data-state="reconnecting"]::before,
body.user-body-meetings .meeting-layout.meeting-room-active [data-meeting-connection-state][data-state="connecting"]::before {
    background: var(--zn-warning);
}

body.user-body-meetings .meeting-layout.meeting-room-active [data-meeting-connection-state][data-state="failed"]::before {
    background: var(--zn-danger);
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-media-grid {
    min-height: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: color-mix(in srgb, var(--zn-member-bg-app) 88%, var(--zn-bg-app));
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-remote-grid {
    gap: 0;
    background: color-mix(in srgb, var(--zn-member-bg-app) 88%, var(--zn-bg-app));
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-media-tile {
    min-height: 100%;
    border: 0;
    border-radius: 0;
    background: color-mix(in srgb, var(--zn-member-bg-app) 88%, var(--zn-bg-app));
    box-shadow: none;
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-media-tile video {
    min-height: 100%;
    background: color-mix(in srgb, var(--zn-member-bg-app) 88%, var(--zn-bg-app));
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-local-tile {
    right: max(18px, env(safe-area-inset-right));
    bottom: calc(92px + env(safe-area-inset-bottom));
    width: clamp(148px, 15vw, 220px);
    min-height: 0;
    border: 1px solid color-mix(in srgb, var(--zn-member-border) 72%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--zn-member-bg-card) 78%, transparent);
    box-shadow: var(--zn-member-shadow);
    backdrop-filter: blur(14px);
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-local-tile video {
    border-radius: 18px;
}

@media (min-width: 761px) {
    .meeting-layout[data-meeting-shell].meeting-room-active
        .meeting-stage:not([data-screen-sharing="true"])
        .meeting-media-grid[data-remote-count="0"]
        .meeting-local-tile {
        position: absolute;
        inset: auto max(18px, env(safe-area-inset-right)) calc(92px + env(safe-area-inset-bottom)) auto;
        z-index: 2;
        width: clamp(148px, 15vw, 220px);
        min-height: 0;
        aspect-ratio: 16 / 10;
        border-color: color-mix(in srgb, var(--zn-member-border) 72%, transparent);
        box-shadow: var(--zn-member-shadow);
    }
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-media-grid[data-remote-count="0"] .meeting-local-tile,
body.user-body-meetings .meeting-layout.meeting-room-active .meeting-stage[data-screen-sharing="true"] .meeting-local-tile {
    position: absolute;
    inset: auto max(18px, env(safe-area-inset-right)) calc(92px + env(safe-area-inset-bottom)) auto;
    z-index: 2;
    width: clamp(148px, 15vw, 220px);
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-color: color-mix(in srgb, var(--zn-member-border) 72%, transparent);
    box-shadow: var(--zn-member-shadow);
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-media-tile span {
    left: 12px;
    bottom: 12px;
    padding: 5px 9px;
    background: color-mix(in srgb, var(--zn-member-bg-card) 82%, transparent);
    color: var(--zn-member-text-primary);
    font-size: 0.74rem;
    font-weight: 650;
    backdrop-filter: blur(12px);
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-control-bar {
    position: absolute;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 9;
    width: auto;
    display: flex;
    grid-template-columns: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--zn-member-border) 72%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--zn-member-bg-card) 80%, transparent);
    box-shadow: var(--zn-member-shadow);
    transform: translateX(-50%);
    backdrop-filter: blur(20px);
}

body.user-body-meetings .meeting-control-button {
    position: relative;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    border-color: color-mix(in srgb, var(--zn-member-border) 72%, transparent);
    background: color-mix(in srgb, var(--zn-member-bg-surface) 72%, transparent);
    color: #fff;
}

body.user-body-meetings .meeting-control-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.user-body-meetings .meeting-control-button[data-active="true"] {
    border-color: color-mix(in srgb, var(--zn-success-border) 72%, transparent);
    background: var(--zn-success-soft);
    color: #fff;
}

body.user-body-meetings .meeting-control-button.meeting-danger-button {
    border-color: color-mix(in srgb, var(--zn-danger-border) 72%, transparent);
    background: var(--zn-danger-soft);
    color: #fff;
}

body.user-body-meetings .meeting-memo-control[data-memo-state="recording"] .meeting-memo-button {
    border-color: color-mix(in srgb, var(--zn-danger-border) 76%, transparent);
    background: var(--zn-danger-soft);
    color: #fff;
}

body.user-body-meetings .meeting-memo-control[data-memo-state="processing"] .meeting-memo-button {
    border-color: color-mix(in srgb, var(--zn-warning-border) 76%, transparent);
    background: var(--zn-warning-soft);
    color: var(--zn-member-warning-text);
}

body.user-body-meetings .meeting-control-button:hover::after,
body.user-body-meetings .meeting-control-button:focus-visible::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    width: max-content;
    max-width: 180px;
    padding: 6px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--zn-member-bg-card) 92%, transparent);
    color: var(--zn-member-text-primary);
    font-size: 0.72rem;
    line-height: 1;
    transform: translateX(-50%);
    pointer-events: none;
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-event-drawer {
    position: absolute;
    left: max(18px, env(safe-area-inset-left));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 11;
    width: min(380px, calc(100% - 36px));
    color: var(--zn-member-text-secondary);
    font-size: 0.78rem;
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-event-drawer[open] {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-event-drawer summary {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid color-mix(in srgb, var(--zn-member-border) 72%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--zn-member-bg-card) 82%, transparent);
    color: var(--zn-member-text-secondary);
    box-shadow: var(--zn-member-shadow);
    cursor: pointer;
    list-style: none;
    backdrop-filter: blur(16px);
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-event-drawer summary::-webkit-details-marker {
    display: none;
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-event-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--zn-success);
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-event-drawer summary[data-tone="warning"] .meeting-event-dot {
    background: var(--zn-warning);
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-event-drawer summary[data-tone="error"] .meeting-event-dot {
    background: var(--zn-danger);
}

body.user-body-meetings .meeting-layout.meeting-room-active [data-meeting-events-count] {
    min-width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--zn-member-bg-surface) 72%, transparent);
    color: var(--zn-member-text-primary);
    font-size: 0.68rem;
    line-height: 1;
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-event-list {
    width: 100%;
    max-height: min(280px, 46vh);
    display: grid;
    gap: 8px;
    margin: 0 0 8px;
    padding: 10px;
    overflow: auto;
    border: 1px solid color-mix(in srgb, var(--zn-member-border) 72%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--zn-member-bg-card) 90%, transparent);
    box-shadow: var(--zn-member-shadow);
    list-style: none;
    backdrop-filter: blur(20px);
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-event-list:empty::before {
    content: "No meeting events yet.";
    color: var(--zn-member-text-muted);
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-event-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-event-row time {
    color: var(--zn-member-text-muted);
    font-variant-numeric: tabular-nums;
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-event-row p {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--zn-member-text-primary);
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-event-row[data-tone="warning"] p {
    color: var(--zn-member-warning-text);
}

body.user-body-meetings .meeting-layout.meeting-room-active .meeting-event-row[data-tone="error"] p {
    color: var(--zn-member-danger-text);
}

body.user-body-meetings .meeting-layout.meeting-room-active [data-meeting-rtc-status] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.user-body-meetings .meeting-confirm-modal[hidden] {
    display: none;
}

body.user-body-meetings .meeting-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-layer-modal, 1600);
    display: grid;
    place-items: center;
    padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

body.user-body-meetings .meeting-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--zn-member-bg-app) 68%, transparent);
    backdrop-filter: blur(10px);
}

body.user-body-meetings .meeting-confirm-dialog {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
    border: 1px solid color-mix(in srgb, var(--zn-member-border) 82%, transparent);
    border-radius: 22px;
    background: color-mix(in srgb, var(--zn-member-bg-card) 94%, var(--zn-member-bg-app));
    box-shadow: var(--zn-member-shadow);
}

body.user-body-meetings .meeting-confirm-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--zn-danger-border) 72%, transparent);
    background: var(--zn-danger-soft);
    color: var(--zn-member-danger-text);
}

body.user-body-meetings .meeting-confirm-mark svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.user-body-meetings .meeting-confirm-copy {
    min-width: 0;
}

body.user-body-meetings .meeting-confirm-copy .pane-kicker {
    margin: 0 0 6px;
}

body.user-body-meetings .meeting-confirm-copy h2 {
    margin: 0;
    color: var(--zn-member-text-primary);
    font-size: 1.12rem;
    font-weight: 680;
    line-height: 1.15;
}

body.user-body-meetings .meeting-confirm-copy p:last-child {
    margin: 10px 0 0;
    color: var(--zn-member-text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

body.user-body-meetings .meeting-confirm-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 2px;
}

body.user-body-meetings .meeting-confirm-actions .secondary-button,
body.user-body-meetings .meeting-confirm-actions .primary-button {
    min-height: 42px;
    border-radius: 999px;
    padding: 0 18px;
}

body.user-body-meetings .meeting-confirm-actions .meeting-danger-button {
    border-color: color-mix(in srgb, var(--zn-danger-border) 76%, transparent);
    background: var(--zn-danger-soft);
    color: var(--zn-danger-text);
}

.meeting-empty-state {
    min-height: 260px;
    border: 1px dashed var(--zn-member-border);
    border-radius: var(--user-radius-sm);
    background: var(--zn-member-bg-surface);
}

@media (max-width: 980px) {
    .meeting-layout {
        grid-template-columns: minmax(0, 1fr);
        overflow: auto;
        padding-bottom: calc(12px + var(--safe-bottom));
    }

    .meeting-main {
        grid-column: 1;
        grid-row: auto;
        overflow: visible;
    }

    .meeting-list {
        overflow: visible;
    }
}

@media (min-width: 761px) and (max-width: 980px) {
    body.user-body-meetings .meeting-layout {
        align-content: start;
        grid-auto-rows: max-content;
    }

    body.user-body-meetings .meeting-left-panel {
        min-height: 0;
        align-self: start;
    }

    body.user-body-meetings .meeting-hub {
        height: auto;
        min-height: 0;
        max-height: none;
        align-self: start;
    }

    body.user-body-meetings .meeting-cockpit {
        grid-row: auto;
    }
}

@media (max-width: 760px) {
    body.user-body-meetings {
        overflow: hidden;
    }

    body.user-body-meetings .user-shell {
        height: var(--app-vh);
        min-height: 0;
        overflow: hidden;
        padding: 0;
        gap: 0;
    }

    .meeting-layout {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 14px;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding:
            14px
            max(10px, env(safe-area-inset-right))
            calc(14px + var(--safe-bottom))
            max(10px, env(safe-area-inset-left));
    }

    

    .meeting-main {
        gap: 16px;
        padding: 0;
    }

    .meeting-create-form {
        gap: 14px;
    }

    .meeting-create-form .form-input {
        min-height: 52px;
        font-size: 16px;
    }

    .meeting-title-field {
        margin: 0;
    }

    .meeting-participant-picker {
        gap: 10px;
        overflow: visible;
    }

    .meeting-picker-header {
        min-height: 28px;
    }

    .meeting-picker-title {
        font-size: 0.94rem;
    }

    .meeting-selected-participants:empty {
        display: none;
    }

    .meeting-selected-participants {
        max-height: 84px;
    }

    .meeting-participant-search {
        min-height: 44px;
        flex-basis: 44px;
    }

    .meeting-participant-list {
        max-height: 220px;
    }

    .meeting-section-header {
        align-items: center;
    }

    .meeting-section-title {
        gap: 10px;
    }

    .meeting-section-title h3 {
        font-size: 1.04rem;
    }

    .meeting-count {
        min-width: 28px;
        height: 28px;
        font-size: 0.86rem;
    }

    .meeting-empty-state {
        min-height: 120px;
        padding: 22px 18px;
        border-style: solid;
        text-align: left;
        align-items: flex-start;
    }

    .meeting-empty-state p {
        max-width: 28rem;
        text-align: left;
    }

    .meeting-upcoming-section {
        display: none;
    }

    .meeting-row {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        gap: 14px;
        padding: 16px;
        border-radius: 16px;
    }

    .meeting-row-main {
        gap: 14px;
        align-items: flex-start;
    }

    .meeting-row-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 14px;
    }

    .meeting-row-icon svg {
        width: 28px;
        height: 28px;
    }

    .meeting-row-copy h3 {
        max-width: 100%;
        font-size: 1rem;
    }

    .meeting-row-facts {
        gap: 8px;
    }

    .meeting-row-meta {
        font-size: 0.78rem;
    }

    .meeting-row-actions {
        justify-content: stretch;
        gap: 10px;
    }

    .meeting-row-actions .primary-button,
    .meeting-row-actions .secondary-button,
    .meeting-end-form {
        width: 100%;
    }

    html[data-keyboard-open="true"] body.user-body-meetings .meeting-layout {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    html[data-keyboard-open="true"] body.user-body-meetings .meeting-main {
        display: none;
    }

    html[data-keyboard-open="true"] body.user-body-meetings .meeting-create-form {
        gap: 12px;
    }

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

}

@media (max-width: 760px) {

    body.user-body-messaging .call-screen .meeting-memo-control {
        width: 50px;
        justify-self: center;
    }

    body.user-body-messaging .call-screen .meeting-memo-button {
        width: 50px;
    }}

body.user-body-meetings .topbar-title,
body.user-body-workspace .topbar-title {
    width: 100%;
    align-items: flex-start;
}

body.user-body-meetings .surface-switcher-user,
body.user-body-workspace .surface-switcher-user {
    width: min(760px, 100%);
    max-width: 760px;
}

body.user-body-meetings .surface-switcher-user .surface-switcher-link,
body.user-body-workspace .surface-switcher-user .surface-switcher-link {
    flex: 1 1 92px;
    min-width: 72px;
    min-height: 58px;
    border-radius: 18px;
}

/* Meetings mobile must keep the same header geometry as Messaging and Workspace. */
@media (max-width: 760px), (max-width: 980px) and (orientation: landscape) {
    html,
    body.user-body-meetings {
        min-height: 100dvh;
        overflow: auto;
    }

    body.user-body-meetings .user-shell {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
        padding: 0;
        gap: 0;
    }

    body.user-body-meetings .meeting-layout {
        --znode-mobile-surface-header-height: calc(122px + env(safe-area-inset-top));
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow: visible;
        padding: var(--znode-mobile-surface-header-height) 0 calc(18px + env(safe-area-inset-bottom));
    }

    body.user-body-meetings .meeting-left-panel,
    body.user-body-meetings .meeting-main,
    body.user-body-meetings .meeting-cockpit {
        width: 100%;
        min-width: 0;
        min-height: 0;
        grid-column: auto;
        grid-row: auto;
    }

    body.user-body-meetings .meeting-left-panel {
        order: 0;
    }

    body.user-body-meetings .meeting-cockpit {
        order: 1;
        gap: 16px;
        overflow: visible;
        padding:
            14px
            max(16px, env(safe-area-inset-right))
            14px
            max(16px, env(safe-area-inset-left));
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    body.user-body-meetings .meeting-hub {
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
        padding: 0 0 12px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    body.user-body-meetings .meeting-home-header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: var(--z-layer-sticky, 20);
        gap: 10px;
        padding:
            calc(12px + env(safe-area-inset-top))
            max(16px, env(safe-area-inset-right))
            10px
            max(16px, env(safe-area-inset-left));
        border-bottom: 0;
        background: var(--zn-member-bg-app);
    }

    body.user-body-meetings .meeting-brand-row {
        grid-template-columns: 44px minmax(0, 1fr) auto 42px;
        gap: 10px;
        height: 44px;
    }

    body.user-body-meetings .meeting-brand-row .topbar-title-mark,
    body.user-body-meetings .meeting-brand-row .topbar-title-mark-image {
        width: 44px;
        height: 44px;
    }

    body.user-body-meetings .meeting-brand-row .topbar-title-mark {
        align-self: center;
        flex-basis: 44px;
        margin-top: 0;
        border-radius: 9px;
    }

    body.user-body-meetings .meeting-brand-row h1 {
        font-size: 1.14rem;
        line-height: 1.12;
    }

    body.user-body-meetings .meeting-home-header .surface-switcher-user {
        width: 100%;
        max-width: none;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 0;
        scrollbar-width: none;
    }

    body.user-body-meetings .meeting-home-header .surface-switcher-user::-webkit-scrollbar {
        display: none;
    }

    body.user-body-meetings .meeting-home-header .surface-switcher-user .surface-switcher-link {
        flex: 1 1 0;
        width: 100%;
        min-width: 0;
        min-height: 46px;
        border-radius: 14px;
    }

    body.user-body-meetings .meeting-home-header .surface-switcher-user .surface-switcher-icon {
        width: 20px;
        height: 20px;
    }


    body.user-body-meetings .meeting-create-form,
    body.user-body-meetings .meeting-participant-picker {
        min-height: 0;
        overflow: visible;
    }

    body.user-body-meetings .meeting-selected-participants {
        max-height: none;
    }

    body.user-body-meetings .meeting-participant-list {
        max-height: 260px;
        min-height: 0;
        overflow: auto;
    }

    body.user-body-meetings .meeting-upcoming-section {
        display: flex;
    }

    body.user-body-meetings .meeting-list-section {
        gap: 10px;
    }

    body.user-body-meetings .meeting-row {
        border-radius: 14px;
        padding: 14px;
    }

    body.user-body-meetings .meeting-row-main {
        align-items: center;
    }

    body.user-body-meetings .meeting-row-actions {
        flex-wrap: wrap;
    }

    body.user-body-meetings .meeting-card-guest-bar {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    body.user-body-meetings .meeting-card-guest-status {
        grid-template-columns: 24px minmax(0, auto);
    }

    body.user-body-meetings .meeting-card-guest-url {
        grid-column: 2;
        width: 100%;
    }

    body.user-body-meetings .meeting-card-guest-actions {
        justify-content: flex-end;
    }

    body.user-body-meetings .meeting-card-guest-actions .secondary-button {
        flex: 0 0 auto;
        padding: 0 10px;
    }

    body.user-body-meetings .meeting-card-guest-actions .meeting-card-guest-icon-button {
        flex-basis: 36px;
        padding: 0;
    }

    

    body.user-body-meetings .meeting-empty-state {
        min-height: 0;
        padding: 18px;
    }

    body.user-body-meetings[data-rtc-view="full"][data-rtc-kind="meeting"],
    body.user-body-meetings[data-rtc-view="full"][data-rtc-kind="meeting"] .user-shell {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
        padding: 0;
    }

    body.user-body-meetings .meeting-layout.meeting-room-active {
        width: 100%;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
        padding: 0;
    }

    body.user-body-meetings .meeting-layout.meeting-room-active .meeting-stage {
        height: 100dvh;
        min-height: 100dvh;
        padding:
            calc(var(--znode-ios-pwa-safe-top) + 80px)
            max(12px, env(safe-area-inset-right))
            calc(var(--znode-ios-pwa-safe-bottom) + 12px)
            max(12px, env(safe-area-inset-left));
    }

    body.user-body-meetings .meeting-layout.meeting-room-active .meeting-room-back-button,
    body.user-body-meetings .meeting-layout.meeting-room-active .meeting-stage > .meeting-section-header {
        top: calc(var(--znode-ios-pwa-safe-top) + 12px);
    }

    body.user-body-meetings .meeting-layout.meeting-room-active .meeting-room-back-button {
        left: max(12px, env(safe-area-inset-left));
    }

    body.user-body-meetings .meeting-layout.meeting-room-active .meeting-stage > .meeting-section-header {
        left: max(72px, calc(env(safe-area-inset-left) + 72px));
        right: max(12px, env(safe-area-inset-right));
    }

    body.user-body-meetings .meeting-layout.meeting-room-active [data-meeting-connection-state] {
        display: none;
    }

    body.user-body-meetings .meeting-layout.meeting-room-active .meeting-media-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: minmax(0, 1fr);
        border: 1px solid color-mix(in srgb, var(--zn-member-border) 72%, transparent);
        border-radius: 24px;
        box-shadow: var(--zn-member-shadow);
    }

    body.user-body-meetings .meeting-layout.meeting-room-active .meeting-remote-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: minmax(0, 1fr);
        overflow: hidden;
        border-radius: inherit;
    }

    body.user-body-meetings .meeting-layout.meeting-room-active .meeting-remote-grid[data-remote-layout="2"],
    body.user-body-meetings .meeting-layout.meeting-room-active .meeting-remote-grid[data-remote-layout="3"],
    body.user-body-meetings .meeting-layout.meeting-room-active .meeting-remote-grid[data-remote-layout="4"] {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
    }

    body.user-body-meetings .meeting-layout.meeting-room-active .meeting-remote-grid[data-remote-layout="many"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    body.user-body-meetings .meeting-layout.meeting-room-active .meeting-remote-grid[data-remote-layout="3"] .meeting-remote-tile:first-child {
        grid-row: auto;
    }

    body.user-body-meetings .meeting-layout.meeting-room-active .meeting-local-tile {
        right: 12px;
        bottom: 68px;
        width: clamp(104px, 29vw, 132px);
        aspect-ratio: 3 / 4;
        border-radius: 18px;
    }

    body.user-body-meetings .meeting-layout.meeting-room-active .meeting-local-tile video {
        border-radius: inherit;
    }

    body.user-body-meetings .meeting-layout.meeting-room-active .meeting-control-bar {
        position: fixed;
        left: 50%;
        right: auto;
        bottom: var(--znode-ios-pwa-safe-bottom);
        width: auto;
        max-width: calc(100vw - 20px);
        display: flex;
        grid-template-columns: none;
        gap: 6px;
        padding: 8px;
        transform: translateX(-50%);
    }

    body.user-body-meetings .meeting-layout.meeting-room-active .meeting-control-button {
        width: 46px;
        min-width: 46px;
        height: 46px;
    }

    body.user-body-meetings .meeting-layout.meeting-room-active .meeting-event-drawer {
        display: none;
    }

}

@media (orientation: landscape) and (max-height: 760px) {
    html[data-device-platform="ios"] body.user-body-meetings .meeting-layout.meeting-room-active .meeting-local-tile {
        right: 18px;
        bottom: 18px;
        width: clamp(140px, 18vw, 210px);
        aspect-ratio: 16 / 10;
    }

    html[data-device-platform="ios"] body.user-body-meetings .meeting-layout.meeting-room-active .meeting-event-drawer {
        display: none;
    }
}

@media (max-width: 760px) {
    body.user-body-meetings .meeting-participant-drawer,
    body.user-body-workspace .workspace-calendar-participant-drawer {
        align-items: flex-start;
        justify-content: center;
        padding:
            max(54px, calc(env(safe-area-inset-top) + 22px))
            max(14px, env(safe-area-inset-right))
            max(14px, env(safe-area-inset-bottom))
            max(14px, env(safe-area-inset-left));
        box-sizing: border-box;
    }

    body.user-body-meetings .meeting-participant-drawer-panel,
    body.user-body-workspace .workspace-calendar-participant-drawer-panel {
        width: min(100%, 420px);
        max-width: 100%;
        height: min(640px, calc(100dvh - max(54px, calc(env(safe-area-inset-top) + 22px)) - max(14px, env(safe-area-inset-bottom))));
        max-height: calc(100dvh - max(54px, calc(env(safe-area-inset-top) + 22px)) - max(14px, env(safe-area-inset-bottom)));
        margin: 0;
        padding: 14px;
        border-radius: 16px;
        overflow: hidden;
    }

    body.user-body-meetings .meeting-participant-drawer-header,
    body.user-body-workspace .workspace-calendar-participant-drawer-header {
        min-height: 46px;
        align-items: center;
    }

    body.user-body-meetings .meeting-participant-drawer-close,
    body.user-body-workspace .workspace-calendar-participant-drawer-close {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 14px;
    }

    body.user-body-meetings .meeting-participant-search,
    body.user-body-workspace .workspace-calendar-participant-search {
        flex-basis: 48px;
        min-height: 48px;
    }

    body.user-body-meetings .meeting-participant-list,
    body.user-body-workspace .workspace-calendar-participant-list {
        min-height: 0;
        max-height: none;
        flex: 1 1 auto;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.user-body-meetings .meeting-participant-drawer-footer,
    body.user-body-workspace .workspace-calendar-participant-drawer-footer {
        flex: 0 0 auto;
    }}

body.user-body-meetings .meeting-cockpit .meeting-row-actions [data-meeting-join] {
    width: 84px;
    min-width: 84px;
    padding-inline: 12px;
}

@media (max-width: 760px) {
    body.user-body-meetings .meeting-row {
        gap: 12px;
        padding: 14px;
    }

    body.user-body-meetings .meeting-row-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        flex-wrap: nowrap;
        padding-top: 0;
    }

    body.user-body-meetings .meeting-row-actions .meeting-join-button {
        width: auto;
        min-width: 84px;
        padding-inline: 20px;
    }

    body.user-body-meetings .meeting-row-actions .meeting-action-menu,
    body.user-body-meetings .meeting-row-actions .meeting-action-menu summary {
        width: 48px;
        min-width: 48px;
        height: 48px;
    }

    body.user-body-meetings .meeting-row-actions .meeting-action-menu summary {
        padding: 0;
        font-size: 1.35rem;
        line-height: 1;
    }

}

@media (max-width: 519.98px) {
    body.user-body-meetings .meeting-row:has(.meeting-action-menu) {
        position: relative;
    }

    body.user-body-meetings .meeting-row:has(.meeting-action-menu) .meeting-row-icon {
        display: none;
    }

    body.user-body-meetings .meeting-row-main,
    body.user-body-meetings .meeting-row-actions {
        width: 100%;
        min-width: 0;
        justify-self: stretch;
    }

    body.user-body-meetings .meeting-row:has(.meeting-action-menu) .meeting-row-main {
        padding-right: 56px;
    }

    body.user-body-meetings .meeting-row:has(.meeting-action-menu) .meeting-row-actions {
        display: block;
    }

    body.user-body-meetings .meeting-row:has(.meeting-action-menu) .meeting-row-actions .meeting-join-button,
    body.user-body-meetings .meeting-cockpit .meeting-row:has(.meeting-action-menu) .meeting-row-actions [data-meeting-join] {
        width: 100%;
        min-width: 0;
    }

    body.user-body-meetings .meeting-row:has(.meeting-action-menu) .meeting-action-menu {
        position: absolute;
        top: 14px;
        right: 14px;
        margin: 0;
    }
}

@media (min-width: 520px) and (max-width: 760px) {
    body.user-body-meetings .meeting-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    body.user-body-meetings .meeting-scheduled-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    body.user-body-meetings .meeting-row-actions {
        align-self: start;
        padding-top: 8px;
    }
}

@media (max-width: 980px) {
    body.user-body-messaging .topbar-title-mark,
    body.user-body-meetings .meeting-brand-row .topbar-title-mark,
    body.user-body-workspace .workspace-brand-row .topbar-title-mark {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        margin-top: 0;
        border-radius: 9px;
    }

    body.user-body-messaging .topbar-title-mark-image,
    body.user-body-meetings .meeting-brand-row .topbar-title-mark-image,
    body.user-body-workspace .workspace-brand-row .topbar-title-mark-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 46%;
    }

    body.user-body-messaging .topbar-profile-image,
    body.user-body-meetings .meeting-brand-row .topbar-profile-image,
    body.user-body-workspace .workspace-brand-row .topbar-profile-image {
        transform: scale(1.08);
    }

}

body.user-body-messaging .messages-brand-row .znode-user-version,
body.user-body-meetings .meeting-brand-row .znode-user-version,
body.user-body-workspace .workspace-brand-row .znode-user-version {
    justify-self: end;
}

@media (max-width: 760px) {
    body.user-body-messaging .messages-brand-row,
    body.user-body-meetings .meeting-brand-row,
    body.user-body-workspace .workspace-brand-row {
        grid-template-columns: 44px minmax(0, 1fr) auto !important;
    }}

body.user-body-meetings .meeting-primary-details {
    display: block;
}

body.user-body-meetings .meeting-primary-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.user-body-meetings .meeting-primary-summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}

body.user-body-meetings .meeting-primary-summary::-webkit-details-marker {
    display: none;
}

body.user-body-meetings .meeting-primary-summary:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--zn-member-accent-border-strong) 78%, transparent);
    outline-offset: 4px;
    border-radius: 12px;
}

body.user-body-meetings .meeting-primary-details[open] > .meeting-primary-summary .meeting-history-chevron {
    transform: rotate(180deg);
    border-color: color-mix(in srgb, var(--zn-member-accent-border-strong) 50%, transparent);
    color: var(--zn-member-accent-text);
    background: color-mix(in srgb, var(--zn-member-accent-surface) 72%, transparent);
}

body.user-body-meetings .meeting-primary-details > .meeting-primary-summary + * {
    margin-top: 12px;
}

body.user-body-meetings .meeting-create-guidance {
    grid-template-columns: repeat(2, minmax(0, clamp(15rem, 22vw, 15.625rem)));
    align-content: center;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}

body.user-body-meetings .meeting-create-guidance-header,
body.user-body-meetings .meeting-create-denied {
    grid-column: 1 / -1;
}

body.user-body-meetings .meeting-create-guidance-header {
    position: relative;
    width: 100%;
    min-height: 44px;
    display: grid;
    place-items: center;
    align-items: center;
}

body.user-body-meetings .meeting-create-guidance-header h2 {
    margin: 0;
    color: var(--zn-member-text-primary);
    font-size: clamp(1.15rem, 2.5vw, 1.65rem);
    font-weight: 720;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

body.user-body-meetings .meeting-create-back-link {
    position: absolute;
    left: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 0 8px;
    border-radius: 12px;
    color: var(--zn-member-text-secondary);
    font-weight: 650;
}

body.user-body-meetings .meeting-create-back-link:hover,
body.user-body-meetings .meeting-create-back-link:focus-visible {
    color: var(--zn-member-text-primary);
    background: var(--zn-member-bg-surface-hover);
}

body.user-body-meetings .meeting-create-back-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.user-body-meetings .meeting-create-placeholder-card {
    width: 100%;
    min-height: 0;
    aspect-ratio: 8 / 9;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--zn-member-border) 72%, transparent);
    border-radius: 24px;
    color: var(--zn-member-text-primary);
    background: var(--zn-member-bg-card);
    box-shadow: 0 18px 44px color-mix(in srgb, #000 20%, transparent);
    cursor: pointer;
    text-align: left;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body.user-body-meetings .meeting-create-placeholder-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--zn-member-accent-border-strong) 62%, var(--zn-member-border));
    box-shadow: 0 22px 52px color-mix(in srgb, #000 26%, transparent);
}

body.user-body-meetings .meeting-create-placeholder-card:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--zn-member-accent) 78%, transparent);
    outline-offset: 4px;
}

body.user-body-meetings .meeting-create-placeholder-image {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    place-items: center;
    color: var(--zn-member-primary-text);
}

body.user-body-meetings .meeting-create-placeholder-image-instant {
    background:
        radial-gradient(circle at 32% 24%, color-mix(in srgb, white 20%, transparent), transparent 42%),
        linear-gradient(145deg, color-mix(in srgb, var(--zn-success) 80%, #063d48), #087e88);
}

body.user-body-meetings .meeting-create-placeholder-image-scheduled {
    background:
        radial-gradient(circle at 32% 24%, color-mix(in srgb, white 22%, transparent), transparent 42%),
        linear-gradient(145deg, color-mix(in srgb, var(--zn-member-accent) 84%, #4357a8), #6b78d8);
}

body.user-body-meetings .meeting-create-placeholder-image svg {
    width: clamp(4rem, 6.7vw, 6rem);
    height: clamp(4rem, 6.7vw, 6rem);
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.user-body-meetings .meeting-create-placeholder-card > strong {
    padding: 24px;
    font-size: 1.15rem;
    font-weight: 720;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 980px) {
    body.user-body-meetings .meeting-layout.is-create-view .meeting-hub-actions {
        display: none;
    }

    body.user-body-meetings .meeting-create-guidance {
        grid-template-columns: minmax(0, 12.5rem);
        align-content: start;
        justify-content: center;
        justify-items: stretch;
        gap: 14px;
        min-height: 0;
        padding: 14px max(16px, env(safe-area-inset-right)) 18px max(16px, env(safe-area-inset-left));
    }

    body.user-body-meetings .meeting-create-placeholder-card {
        width: auto;
        min-height: 0;
        aspect-ratio: auto;
        border-radius: 18px;
    }

    body.user-body-meetings .meeting-create-placeholder-image {
        min-height: 108px;
    }

    body.user-body-meetings .meeting-create-placeholder-image svg {
        width: 52px;
        height: 52px;
    }

    body.user-body-meetings .meeting-create-placeholder-card > strong {
        padding: 0.75rem;
        border-radius: 0 0 18px 18px;
        font-size: 1rem;
        white-space: nowrap;
    }

    body.user-body-meetings .meeting-create-guidance-header {
        width: min(calc(100vw - 32px), 40rem);
        justify-self: center;
    }
}

@media (min-width: 520px) and (max-width: 980px) {
    body.user-body-meetings .meeting-create-guidance {
        grid-template-columns: repeat(2, minmax(0, 12.5rem));
    }
}

@media (max-width: 359.98px) {
    body.user-body-meetings .meeting-create-guidance-header {
        min-height: 88px;
        grid-template-rows: 44px auto;
    }

    body.user-body-meetings .meeting-create-back-link {
        position: static;
        grid-row: 1;
        justify-self: start;
    }

    body.user-body-meetings .meeting-create-guidance-header h2 {
        grid-row: 2;
    }
}
body.user-body-meetings .meeting-compact-schedule-shell[hidden] {
    display: none !important;
}

/* Keep the mobile app chrome still while only the meeting content scrolls. */
@media (max-width: 760px) {
    html,
    body.user-body-meetings {
        height: 100%;
        min-height: 100%;
        overflow: hidden;
        overscroll-behavior: none;
    }

    body.user-body-meetings .user-shell {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    body.user-body-meetings .meeting-layout:not(.meeting-room-active) {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
        gap: 0;
        padding: var(--znode-mobile-surface-header-height) 0 env(safe-area-inset-bottom);
    }

    body.user-body-meetings .meeting-layout:not(.meeting-room-active) .meeting-left-panel {
        flex: 0 0 auto;
        min-height: 0;
    }

    body.user-body-meetings .meeting-layout:not(.meeting-room-active) .meeting-hub {
        padding-bottom: 12px;
    }

    body.user-body-meetings .meeting-layout:not(.meeting-room-active) .meeting-cockpit {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
}

/* Mobile meeting lists use the same compact panel language as the desktop agenda. */
@media (max-width: 760px) {
    body.user-body-meetings .meeting-primary-sections {
        gap: 12px;
    }

    body.user-body-meetings .meeting-primary-details,
    body.user-body-meetings .meeting-recent-section {
        gap: 0;
        overflow: hidden;
        border: 1px solid var(--zn-member-border);
        border-radius: 8px;
        background: var(--zn-member-bg-card);
    }

    body.user-body-meetings .meeting-recent-section {
        display: none;
    }

    body.user-body-meetings .meeting-primary-summary,
    body.user-body-meetings .meeting-history-summary {
        min-height: 50px;
        align-items: center;
        gap: 8px;
        padding: 7px 9px 7px 12px;
        background: var(--zn-member-bg-surface-hover);
    }

    body.user-body-meetings .meeting-primary-details[data-meeting-primary-details="live"] > .meeting-primary-summary {
        background: color-mix(in srgb, var(--zn-success) 10%, var(--zn-member-bg-card));
    }

    body.user-body-meetings .meeting-primary-details[data-meeting-primary-details="scheduled"] > .meeting-primary-summary {
        background: color-mix(in srgb, var(--zn-member-accent) 8%, var(--zn-member-bg-card));
    }

    body.user-body-meetings .meeting-primary-details[open] > .meeting-primary-summary,
    body.user-body-meetings .meeting-history-details[open] > .meeting-history-summary {
        border-bottom: 1px solid var(--zn-member-border);
    }

    body.user-body-meetings .meeting-section-title {
        min-width: 0;
        flex: 1 1 auto;
        gap: 9px;
    }

    body.user-body-meetings .meeting-section-title h3 {
        min-width: 0;
        flex: 1 1 auto;
        font-size: 1rem;
        line-height: 1.2;
    }

    body.user-body-meetings .meeting-section-dot {
        width: 10px;
        height: 10px;
        flex: 0 0 10px;
        background: var(--zn-success);
        box-shadow: 0 0 0 5px color-mix(in srgb, var(--zn-success) 12%, transparent);
    }

    body.user-body-meetings .meeting-section-dot-muted {
        background: var(--zn-member-text-muted);
        box-shadow: none;
    }

    body.user-body-meetings .meeting-section-calendar {
        width: 19px;
        height: 19px;
        flex: 0 0 19px;
    }

    body.user-body-meetings .meeting-count {
        min-width: 31px;
        height: 31px;
        flex: 0 0 auto;
        border: 1px solid var(--zn-member-border);
        color: var(--zn-member-text-secondary);
        background: color-mix(in srgb, var(--zn-member-bg-surface) 86%, transparent);
        font-size: 0.82rem;
    }

    body.user-body-meetings .meeting-history-chevron {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        border-radius: 7px;
    }

    body.user-body-meetings .meeting-primary-details > .meeting-primary-summary + * {
        margin-top: 0;
    }

    body.user-body-meetings .meeting-primary-details > .meeting-list,
    body.user-body-meetings .meeting-history-details > .meeting-list {
        max-height: 246px;
        gap: 8px;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 8px;
        overscroll-behavior: contain;
        background: var(--zn-member-bg-card);
        -webkit-overflow-scrolling: touch;
    }

    body.user-body-meetings .meeting-primary-details > .meeting-list > .meeting-row,
    body.user-body-meetings .meeting-history-details > .meeting-list > .meeting-row {
        flex: 0 0 auto;
    }

    body.user-body-meetings .meeting-history-details > .meeting-list {
        max-height: 276px;
    }

    body.user-body-meetings .meeting-primary-details > .meeting-empty-state {
        min-height: 58px;
        gap: 2px;
        margin: 0;
        padding: 12px 14px;
        border: 0;
        border-radius: 0;
        background: var(--zn-member-bg-card);
    }

    body.user-body-meetings .meeting-primary-details > .meeting-empty-state strong,
    body.user-body-meetings .meeting-primary-details > .meeting-empty-state p {
        font-size: 0.82rem;
        line-height: 1.3;
    }

    body.user-body-meetings .meeting-row,
    body.user-body-meetings .meeting-row:has(.meeting-action-menu) {
        position: relative;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        min-height: 74px;
        padding: 11px 10px 11px 13px;
        border: 1px solid var(--zn-member-border);
        border-left: 3px solid var(--zn-success);
        border-radius: 7px;
        background: var(--zn-member-bg-surface);
        box-shadow: var(--zn-shadow-soft);
    }

    body.user-body-meetings .meeting-scheduled-row {
        grid-template-columns: 50px minmax(0, 1fr) auto;
        border-left-color: var(--zn-member-accent);
    }

    body.user-body-meetings .meeting-scheduled-row.is-recurring {
        min-height: 88px;
        background: color-mix(in srgb, var(--zn-member-accent) 4%, var(--zn-member-bg-card));
    }

    body.user-body-meetings .meeting-row-ended {
        border-left-color: var(--zn-member-text-muted);
        opacity: 1;
    }

    body.user-body-meetings .meeting-row-main,
    body.user-body-meetings .meeting-row:has(.meeting-action-menu) .meeting-row-main {
        width: auto;
        min-width: 0;
        gap: 0;
        padding-right: 0;
    }

    body.user-body-meetings .meeting-row-icon {
        display: none;
    }

    body.user-body-meetings .meeting-row-copy {
        gap: 3px;
    }

    body.user-body-meetings .meeting-row-title-line {
        gap: 7px;
    }

    body.user-body-meetings .meeting-row-copy h3 {
        min-width: 0;
        max-width: 100%;
        font-size: 0.94rem;
        line-height: 1.2;
    }

    body.user-body-meetings .meeting-state-badge {
        min-height: 20px;
        padding: 2px 7px;
        font-size: 0.68rem;
    }

    body.user-body-meetings .meeting-scheduled-row.is-recurring .meeting-state-badge {
        color: var(--zn-member-accent-text);
        background: var(--zn-member-accent-surface);
    }

    body.user-body-meetings .meeting-row-facts {
        gap: 8px;
        font-size: 0.76rem;
        line-height: 1.3;
    }

    body.user-body-meetings .meeting-row-facts span {
        gap: 4px;
        font-size: inherit;
        line-height: inherit;
    }

    body.user-body-meetings .meeting-row-facts svg {
        width: 14px;
        height: 14px;
    }

    body.user-body-meetings .meeting-row-copy .meeting-series-summary {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 4px;
        overflow: hidden;
        color: var(--zn-member-text-secondary);
        font-size: 0.7rem;
        font-weight: 620;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.user-body-meetings .meeting-series-summary svg {
        width: 13px;
        height: 13px;
        flex: 0 0 13px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.user-body-meetings .meeting-row-copy .meeting-series-summary svg {
        color: var(--zn-member-accent);
    }

    body.user-body-meetings .meeting-row-meta {
        max-width: 100%;
        overflow: hidden;
        color: var(--zn-member-text-muted);
        font-size: 0.71rem;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.user-body-meetings .meeting-row-actions,
    body.user-body-meetings .meeting-row:has(.meeting-action-menu) .meeting-row-actions {
        position: static;
        width: auto;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        justify-self: end;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 0;
    }

    body.user-body-meetings .meeting-row:has(.meeting-action-menu) .meeting-row-actions {
        width: 112px;
        flex: 0 0 112px;
    }

    body.user-body-meetings .meeting-row-actions .meeting-join-button,
    body.user-body-meetings .meeting-cockpit .meeting-row-actions [data-meeting-join],
    body.user-body-meetings .meeting-row:has(.meeting-action-menu) .meeting-row-actions .meeting-join-button,
    body.user-body-meetings .meeting-cockpit .meeting-row:has(.meeting-action-menu) .meeting-row-actions [data-meeting-join] {
        width: auto;
        min-width: 68px;
        min-height: 38px;
        padding: 7px 12px;
        border-radius: 7px;
        font-size: 0.86rem;
    }

    body.user-body-meetings .meeting-row:has(.meeting-action-menu) .meeting-row-actions .meeting-join-button {
        width: 68px;
        max-width: 68px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.user-body-meetings .meeting-row-actions .meeting-action-menu,
    body.user-body-meetings .meeting-row:has(.meeting-action-menu) .meeting-action-menu {
        position: relative;
        inset: auto;
        width: 38px;
        min-width: 38px;
        height: 38px;
        margin: 0;
    }

    body.user-body-meetings .meeting-row-actions .meeting-action-menu summary,
    body.user-body-meetings .meeting-row:has(.meeting-action-menu) .meeting-action-menu summary {
        width: 38px;
        min-width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 7px;
        font-size: 1.1rem;
    }

    body.user-body-meetings .meeting-date-card {
        width: 50px;
        height: 55px;
        padding: 5px;
        border: 0;
        border-radius: 6px;
        background: var(--zn-member-bg-surface-hover);
    }

    body.user-body-meetings .meeting-date-card span {
        max-width: 100%;
        overflow: hidden;
        font-size: 0.57rem;
        line-height: 1.1;
        text-overflow: ellipsis;
    }

    body.user-body-meetings .meeting-date-card strong {
        font-size: 0.86rem;
        line-height: 1;
    }

    body.user-body-meetings .meeting-scheduled-row .meeting-row-actions .secondary-button:not(.meeting-join-button),
    body.user-body-meetings .meeting-scheduled-row .meeting-row-actions .meeting-join-button {
        min-width: 68px;
        min-height: 38px;
        padding: 7px 10px;
        border-radius: 7px;
        font-size: 0.76rem;
    }

    body.user-body-meetings .meeting-card-guest-bar {
        grid-column: 1 / -1;
        margin-top: 0;
        padding: 9px;
        border-radius: 7px;
    }
}

@media (max-width: 400px) {
    body.user-body-meetings .meeting-section-title h3 {
        font-size: 0.94rem;
    }

    body.user-body-meetings .meeting-row-facts {
        gap: 5px;
    }

    body.user-body-meetings .meeting-scheduled-row {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    body.user-body-meetings .meeting-scheduled-row .meeting-row-actions {
        grid-column: 2;
        justify-self: start;
    }

    body.user-body-meetings .meeting-date-card {
        width: 46px;
    }
}
