:root {
    --o2o-blue: #246bfe;
    --o2o-ink: #111827;
    --o2o-muted: #64748b;
    --o2o-surface: #f6f8fb;
}

body {
    background: var(--o2o-surface);
    color: var(--o2o-ink);
}

.hero {
    background: linear-gradient(120deg, #0f172a, #1d4ed8 58%, #0f766e);
    color: #fff;
    padding: 88px 0;
}

.panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.stat {
    border-left: 4px solid var(--o2o-blue);
}

.slot-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

.slot-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: .75rem;
}

.slot-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: .75rem;
    background: #fff;
}

.booking-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.booking-section-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #1261d8;
    font-size: 20px;
}

.booking-step {
    display: block;
    margin-bottom: 3px;
    color: #52606d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.booking-date-group {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.booking-section .slot-chip-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.booking-section .slot-chip {
    align-items: flex-end;
    padding: 16px;
}

.slot-chip-content {
    min-width: 0;
}

.slot-time {
    margin-top: 8px;
    color: #263548;
    font-weight: 600;
}

.slot-time i,
.slot-meta i {
    margin-right: 4px;
}

.slot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 7px 0 9px;
    color: #64748b;
    font-size: 13px;
}

.booking-price {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 6px;
    background: #fff4d6;
    color: #854d0e;
    font-size: 13px;
    font-weight: 700;
}

.booking-price.is-free {
    background: #e8f7ee;
    color: #176b3a;
}

.booking-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
}

.recurring-program-section {
    padding: 24px;
    border-top: 1px solid #dbe2ea;
    border-bottom: 1px solid #dbe2ea;
    background: #f8fafc;
}

.recurring-program-section .booking-section-icon {
    background: #e9f7f1;
    color: #14724a;
}

.program-choice {
    padding: 22px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.program-choice > .d-flex .badge {
    height: fit-content;
}

.program-type {
    color: #14724a;
    font-size: 13px;
    font-weight: 700;
}

.program-includes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.program-includes > div {
    display: flex;
    gap: 9px;
    min-width: 0;
}

.program-includes i {
    color: #1261d8;
}

.program-includes strong,
.program-includes small {
    display: block;
}

.program-requirement {
    display: flex;
    gap: 10px;
    padding: 11px 12px;
    border-left: 3px solid #f59e0b;
    background: #fffbeb;
    color: #713f12;
}

.program-requirement strong,
.program-requirement small {
    display: block;
}

.program-includes strong {
    color: #172033;
    font-size: 14px;
}

.program-includes small {
    margin-top: 2px;
    color: #64748b;
    overflow-wrap: anywhere;
}

.program-action {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.program-action small,
.program-action strong {
    display: block;
}

.program-action strong {
    margin-top: 2px;
    font-size: 20px;
}

.program-action strong span {
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
}

.info-tip {
    display: inline-grid;
    width: 20px;
    height: 20px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
}

.info-tip:hover,
.info-tip:focus-visible {
    color: #1261d8;
}

.bulk-help-button {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #2563eb;
    font-size: 18px;
    transition: background-color .15s ease, border-color .15s ease;
}

.bulk-help-button:hover,
.bulk-help-button:focus-visible {
    border-color: #2563eb;
    background: #eaf2ff;
}

.bulk-slot-popover {
    --bs-popover-max-width: 350px;
    --bs-popover-border-color: #cbd5e1;
    --bs-popover-header-bg: #f8fafc;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .14);
}

.help-popover {
    --bs-popover-max-width: 420px;
    --bs-popover-border-color: #cbd5e1;
    --bs-popover-header-bg: #f8fafc;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .14);
}

.help-popover .popover-header {
    padding: 12px 14px;
    color: #172033;
    font-size: 15px;
}

.help-popover .popover-body {
    padding: 14px;
    color: #3f4c5f;
}

.help-content > :last-child,
.help-content section > :last-child {
    margin-bottom: 0;
}

.help-content ol,
.help-content ul {
    padding-left: 20px;
}

.format-help {
    display: grid;
    gap: 12px;
}

.format-help section {
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.format-help section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.format-help p {
    margin: 4px 0 0;
}

.prerequisite-picker {
    max-height: 230px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #f8fafc;
}

.prerequisite-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}

.prerequisite-option:hover {
    background: #eaf2ff;
}

.prerequisite-option .form-check-input {
    margin-top: 4px;
}

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

.package-service-context {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
}

.package-service-context > i {
    color: #2563eb;
    font-size: 20px;
}

.package-service-context small,
.package-service-context strong,
.package-service-context span {
    display: block;
}

.package-service-context small,
.package-service-context span {
    color: #64748b;
}

.verified-phone-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
}

.verified-phone-row small,
.verified-phone-row strong {
    display: block;
}

.phone-verification-form {
    display: grid;
    grid-template-columns: 180px minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.phone-otp-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.prerequisite-option small {
    margin-top: 2px;
    color: #64748b;
}

.bulk-slot-popover .popover-header {
    padding: 12px 14px;
    color: #172033;
    font-size: 15px;
}

.bulk-slot-popover .popover-body {
    padding: 14px;
    color: #3f4c5f;
}

.bulk-help-content p {
    margin-bottom: 12px;
}

.bulk-help-example {
    display: grid;
    gap: 2px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-left: 3px solid #2563eb;
    background: #f1f5f9;
}

.bulk-help-example ol {
    margin: 6px 0 0;
    padding-left: 20px;
}

.bulk-help-content > ul {
    margin: 0;
    padding-left: 18px;
}

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

.host-review-entry {
    border-left: 4px solid #2563eb;
}

.review-field-label {
    display: block;
    width: auto;
    margin-bottom: 8px;
    color: #263548;
    font-size: 14px;
    font-weight: 700;
}

.interactive-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.interactive-stars input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.interactive-stars label {
    cursor: pointer;
    color: #cbd5e1;
    font-size: 30px;
    line-height: 1;
    transition: color .15s ease, transform .15s ease;
}

.interactive-stars label:hover,
.interactive-stars label:hover ~ label,
.interactive-stars input:checked ~ label {
    color: #f59e0b;
}

.interactive-stars label:hover {
    transform: translateY(-1px);
}

.interactive-stars input:focus-visible + label {
    border-radius: 4px;
    outline: 3px solid rgba(37, 99, 235, .25);
}

.feedback-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.review-eligibility-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.review-eligibility-note > i {
    color: #2563eb;
    font-size: 24px;
}

.video-stage {
    min-height: 460px;
    background: #0b1220;
    color: #dbeafe;
    border-radius: 8px;
    display: grid;
    place-items: center;
}
/*Video meet page*/
.video-box {
    position: relative;
    width: 100%;
    min-height: 460px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-box video {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    background: #000;
}

.fullscreen-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
}

.camera-off-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 10px;
    text-align: center;
    background: #0b1220;
    color: #fff;
    z-index: 4;
}

.video-box:fullscreen {
    border-radius: 0;
}

.video-box:fullscreen video {
    width: 100vw;
    height: 100vh;
}
/*Video meet page*/

.conference-page {
    position: relative;
    min-height: calc(100vh - 57px);
    background: #0b1020;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
}

.conference-notification {
    position: fixed;
    z-index: 1080;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: min(520px, calc(100vw - 24px));
    padding: 11px 16px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #86efac;
    border-radius: 6px;
    color: #14532d;
    background: #f0fdf4;
    box-shadow: 0 12px 32px rgb(15 23 42 / 24%);
    font-weight: 600;
}

.conference-notification i {
    color: #16a34a;
}

.conference-header {
    min-height: 68px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #263044;
    background: #101827;
}

.conference-header h1 {
    font-size: 18px;
    margin: 0;
}

.conference-header span,
.conference-clock {
    color: #94a3b8;
    font-size: 13px;
}

.conference-time-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.conference-countdown {
    min-width: 118px;
    padding: 6px 10px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 9px;
    border: 1px solid #334155;
    border-radius: 6px;
    background: #172033;
}

.conference-countdown span {
    color: #94a3b8;
    font-size: 11px;
}

.conference-countdown strong {
    color: #f8fafc;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.conference-countdown.ending {
    border-color: #f59e0b;
    background: #422006;
}

.conference-countdown.ending strong {
    color: #fef3c7;
}

.conference-time-toggle {
    width: 34px;
    height: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #cbd5e1;
    background: transparent;
}

.conference-time-toggle:hover,
.conference-time-toggle:focus-visible {
    color: #fff;
    border-color: #64748b;
    background: #1e293b;
}

.conference-notice {
    min-height: 40px;
    padding: 9px 18px;
    background: #172033;
    color: #cbd5e1;
    border-bottom: 1px solid #263044;
}

.conference-notice.warning {
    background: #713f12;
    color: #fef3c7;
}

.conference-notice.ended {
    background: #7f1d1d;
    color: #fee2e2;
}

.conference-shell {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
}

.conference-main {
    min-width: 0;
    min-height: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.conference-video-grid {
    flex: 1;
    min-height: 440px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(210px, 1fr);
    gap: 10px;
}

.conference-video-grid:has(.conference-video-tile:nth-of-type(5)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.conference-empty-stage {
    grid-column: 1 / -1;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    color: #94a3b8;
    border: 1px dashed #334155;
    border-radius: 8px;
}

.conference-empty-stage i {
    font-size: 42px;
}

.conference-video-tile {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #151f32;
    display: grid;
    place-items: center;
}

.conference-video-tile.speaking {
    border-color: #22c55e;
}

.conference-video-tile video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.conference-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #2563eb;
    font-size: 26px;
    font-weight: 700;
}

.conference-video-name {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(15, 23, 42, .82);
    font-size: 12px;
}

.conference-tile-fullscreen {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

.conference-video-tile:fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.conference-controls {
    min-height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.conference-controls .btn {
    min-width: 44px;
    min-height: 40px;
}

#switchCamera.camera-switching i {
    animation: camera-switch-spin .7s linear infinite;
}

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

.conference-error {
    min-height: 22px;
    margin: 0;
    color: #fca5a5;
    text-align: center;
}

.conference-sidebar {
    min-width: 0;
    border-left: 1px solid #263044;
    background: #101827;
    display: flex;
    flex-direction: column;
}

.conference-tabs {
    border-bottom-color: #263044;
}

.conference-tabs .nav-link {
    color: #94a3b8;
    border-radius: 0;
}

.conference-tabs .nav-link.active {
    color: #f8fafc;
    background: #172033;
    border-color: #263044;
}

.conference-tab-content,
.conference-tab-content .tab-pane {
    flex: 1;
    min-height: 0;
}

.conference-tab-content .tab-pane.active {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.conference-capacity {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #263044;
    color: #94a3b8;
}

.participant-list {
    overflow-y: auto;
}

.participant-row {
    position: relative;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    border-bottom: 1px solid #1f2937;
}

.participant-row.hand-raised {
    background: #2b2414;
    box-shadow: inset 3px 0 #fbbf24;
}

.participant-row.hand-raised[data-acknowledge-hand] {
    cursor: pointer;
}

.participant-row.hand-raised[data-acknowledge-hand]:hover,
.participant-row.hand-raised[data-acknowledge-hand]:focus-visible {
    background: #3a3018;
    outline: 2px solid #fbbf24;
    outline-offset: -2px;
}

.participant-actions {
    grid-column: 2 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.participant-actions .btn {
    min-height: 32px;
}

.participant-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #334155;
    font-weight: 700;
}

.participant-hand {
    position: absolute;
    right: -7px;
    top: -7px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #111827;
    background: #fbbf24;
    font-size: 11px;
    box-shadow: 0 0 0 2px #101827;
}

.participant-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.participant-details strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.participant-details span {
    color: #94a3b8;
    font-size: 12px;
}

.participant-media {
    display: flex;
    gap: 8px;
}

.chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
}

.chat-message {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.chat-message strong {
    color: #93c5fd;
    font-size: 12px;
}

.chat-message span {
    margin-top: 3px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #1e293b;
    overflow-wrap: anywhere;
}

.chat-message.own {
    align-items: flex-end;
}

.chat-message.own span {
    background: #1d4ed8;
}

.chat-form {
    padding: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    border-top: 1px solid #263044;
}

@media (max-width: 900px) {
    .conference-header {
        align-items: flex-start;
    }

    .conference-time-tools {
        flex-wrap: wrap;
        max-width: 180px;
    }

    .conference-countdown {
        order: 2;
        width: 100%;
    }

    .conference-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(280px, 45vh);
    }

    .conference-sidebar {
        border-left: 0;
        border-top: 1px solid #263044;
    }
}

@media (max-width: 640px) {
    .conference-page {
        width: 100%;
        min-height: calc(100svh - 57px);
        min-height: calc(100dvh - 57px);
        overflow-x: clip;
    }

    .conference-header {
        min-height: 0;
        padding: 9px 10px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .conference-header h1 {
        font-size: 16px;
    }

    .conference-header > div:first-child {
        min-width: 0;
    }

    .conference-header > div:first-child > span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .conference-time-tools {
        max-width: 132px;
        gap: 5px;
    }

    .conference-clock {
        display: none;
    }

    .conference-countdown {
        order: 0;
        min-width: 92px;
        width: auto;
        padding: 5px 7px;
        gap: 5px;
    }

    .conference-countdown span {
        font-size: 10px;
    }

    .conference-countdown strong {
        font-size: 13px;
    }

    .conference-time-toggle {
        width: 32px;
        height: 32px;
    }

    .conference-shell {
        width: 100%;
        grid-template-rows: auto minmax(240px, 42svh);
    }

    .conference-notice {
        min-height: 0;
        padding: 7px 10px;
        font-size: 13px;
    }

    .recording-consent-notice {
        min-height: 0;
        padding: 7px 10px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 5px 8px;
        font-size: 12px;
    }

    .recording-copy-full {
        display: none;
    }

    .recording-copy-mobile {
        display: inline;
    }

    .recording-consent-notice strong {
        width: auto;
        margin: 0;
        grid-column: 2;
        font-size: 11px;
    }

    .conference-main {
        width: 100%;
        padding: 6px;
    }

    .conference-video-grid,
    .conference-video-grid:has(.conference-video-tile:nth-of-type(5)) {
        min-height: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 6px;
    }

    .conference-video-tile {
        min-height: 0;
        aspect-ratio: 4 / 3;
        border-radius: 6px;
    }

    .conference-video-tile:only-of-type {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 9;
    }

    .conference-video-name {
        left: 6px;
        bottom: 6px;
        padding: 3px 6px;
        font-size: 10px;
    }

    .conference-tile-fullscreen {
        top: 6px;
        right: 6px;
    }

    .conference-controls {
        position: sticky;
        z-index: 10;
        bottom: 0;
        width: 100%;
        min-height: 56px;
        padding: 7px max(4px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
        flex-wrap: nowrap;
        gap: 5px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        background: rgba(11, 16, 32, .96);
        backdrop-filter: blur(8px);
    }

    .conference-controls::-webkit-scrollbar {
        display: none;
    }

    .conference-controls .btn {
        flex: 0 0 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 7px 9px;
    }

    .conference-controls #joinRoom,
    .conference-controls #leaveRoom {
        font-size: 0;
    }

    .conference-controls #joinRoom i,
    .conference-controls #leaveRoom i {
        margin: 0;
        font-size: 16px;
    }

    .conference-error {
        min-height: 18px;
        padding: 0 6px;
        font-size: 12px;
    }

    .conference-sidebar {
        width: 100%;
        min-height: 280px;
    }

    .conference-tabs .nav-link {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 430px) and (orientation: portrait) {
    .conference-header {
        padding-top: max(9px, env(safe-area-inset-top));
    }

    .conference-header > div:first-child > span {
        max-width: 52vw;
    }

    .conference-video-grid,
    .conference-video-grid:has(.conference-video-tile:nth-of-type(5)) {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
    }

    .conference-video-tile,
    .conference-video-tile:only-of-type {
        grid-column: auto;
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .conference-empty-stage {
        min-height: 46svh;
        padding: 20px;
        text-align: center;
    }

    .conference-controls {
        justify-content: flex-start;
    }
}

@media (max-width: 360px) {
    .conference-header {
        grid-template-columns: minmax(0, 1fr) 124px;
    }

    .conference-time-tools {
        max-width: 124px;
    }

    .conference-countdown {
        min-width: 86px;
    }

    .conference-controls {
        gap: 4px;
    }

    .conference-controls .btn {
        flex-basis: 38px;
        min-width: 38px;
        min-height: 38px;
        padding: 6px 8px;
    }
}

/* Profile and host-directory photos keep a stable footprint while loading. */
.profile-photo-editor {
    display: grid;
    grid-template-columns: 104px minmax(0, 420px);
    gap: 20px;
    align-items: center;
}

.profile-photo {
    width: 104px;
    height: 104px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #dbe2ea;
    background: #f8fafc;
}

.profile-photo-fallback,
.host-photo-fallback {
    display: grid;
    place-items: center;
    background: #e8eef8;
    color: #1d4ed8;
    font-weight: 700;
}

.host-card-photo {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #dbe2ea;
}

.host-profile-photo {
    width: 112px;
    height: 112px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #dbe2ea;
}

.host-analytics-section {
    padding: 24px 0;
    border-top: 1px solid #dbe2ea;
    border-bottom: 1px solid #dbe2ea;
}

.host-rating-summary {
    min-width: 190px;
    text-align: right;
}

.host-rating-summary strong {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.host-rating-summary small {
    display: block;
    margin-top: 3px;
    color: #64748b;
}

.host-stars {
    color: #f59e0b;
    white-space: nowrap;
}

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

.host-metric {
    min-height: 118px;
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
    align-items: center;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #fff;
}

.host-metric > i {
    grid-row: 1 / 3;
    font-size: 22px;
    color: #2563eb;
}

.host-metric span {
    color: #64748b;
    font-size: 14px;
}

.host-metric strong {
    font-size: 25px;
}

.host-metric.positive > i {
    color: #16a34a;
}

.host-metric.negative > i {
    color: #dc2626;
}

.review-list,
.review-form-list {
    display: grid;
    gap: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #dbe2ea;
}

.feedback-label {
    height: fit-content;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.feedback-label.loved {
    background: #dcfce7;
    color: #166534;
}

.feedback-label.disliked {
    background: #fee2e2;
    color: #991b1b;
}

.review-form {
    padding: 16px 0;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 170px 150px minmax(220px, 2fr) auto;
    gap: 12px;
    align-items: end;
    border-bottom: 1px solid #e2e8f0;
}

.review-form:last-child {
    border-bottom: 0;
}

.review-form label > span {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #64748b;
}

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

.program-editor-main {
    display: grid;
    gap: 20px;
}

.program-summary {
    position: sticky;
    top: 88px;
}

.program-summary dl {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 9px;
    margin-top: 20px;
}

.program-summary dt {
    color: #64748b;
    font-weight: 500;
}

.program-summary dd {
    margin: 0;
    font-weight: 600;
}

.program-flow {
    padding-top: 16px;
    display: grid;
    justify-items: start;
    gap: 6px;
    border-top: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13px;
}

.program-flow i {
    margin-left: 12px;
    color: #94a3b8;
}

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

.program-repeat-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) 42px;
    gap: 10px;
}

.program-transfer-form {
    grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) auto;
}

.program-module-row {
    padding: 14px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
}

.program-public-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.program-public-metrics span {
    padding: 10px;
    border-left: 2px solid #2563eb;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
}

.program-public-metrics strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
}

.dashboard-stat {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.dashboard-stat span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-top: 10px;
    color: #2563eb;
    font-size: 14px;
}

.dashboard-stat:hover,
.dashboard-stat.active {
    color: inherit;
    border-color: #2563eb;
    box-shadow: 0 8px 22px rgba(37, 99, 235, .1);
}

.host-dashboard-tabs .dashboard-stat {
    position: relative;
    border: 1px solid #dbe2ea;
    background: #fff;
}

.dashboard-action-with-help {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.host-dashboard-tabs .dashboard-stat::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 7px 0 0 7px;
    background: transparent;
}

.host-dashboard-tabs .dashboard-stat.active {
    border-color: #246bfe;
    background: #f5f8ff;
    box-shadow: 0 8px 22px rgba(37, 99, 235, .12);
}

.host-dashboard-tabs .dashboard-stat.active::after {
    background: #246bfe;
}

.host-dashboard-tabs .dashboard-stat.active .text-muted,
.host-dashboard-tabs .dashboard-stat.active .fw-bold {
    color: #173b87 !important;
}

.host-dashboard-content > .tab-pane {
    min-height: 220px;
}

.recording-consent-notice {
    min-height: 42px;
    padding: 9px 16px;
    display: flex;
    gap: 9px;
    align-items: center;
    background: #fff7ed;
    color: #9a3412;
    border-bottom: 1px solid #fed7aa;
}

.recording-consent-notice strong {
    margin-left: auto;
    font-size: 13px;
}

.recording-copy-mobile {
    display: none;
}

@media (max-width: 640px) {
    .recording-consent-notice {
        min-height: 0;
        padding: 7px 10px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 5px 8px;
        align-items: center;
        font-size: 12px;
    }

    .recording-copy-full {
        display: none;
    }

    .recording-copy-mobile {
        display: inline;
    }

    .recording-consent-notice strong {
        width: auto;
        margin: 0;
        grid-column: 2;
        font-size: 11px;
    }
}

.recording-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #0f172a;
    border-radius: 6px;
}

@media (max-width: 576px) {
    .phone-verification-form,
    .phone-otp-form {
        grid-template-columns: 1fr;
    }

    .phone-verification-form .btn,
    .phone-otp-form .btn {
        width: 100%;
    }

    .verified-phone-row {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-photo-editor {
        grid-template-columns: 1fr;
    }

    .recording-consent-notice {
        min-height: 0;
        padding: 7px 10px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 5px 8px;
        align-items: center;
        font-size: 12px;
    }

    .recording-copy-full {
        display: none;
    }

    .recording-copy-mobile {
        display: inline;
    }

    .recording-consent-notice strong {
        width: auto;
        margin: 0;
        grid-column: 2;
        font-size: 11px;
    }
}

@media (max-width: 992px) {
    .host-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .review-form {
        grid-template-columns: 1fr 1fr;
    }

    .review-form > div,
    .review-text-field {
        grid-column: 1 / -1;
    }

    .program-editor-layout {
        grid-template-columns: 1fr;
    }

    .program-summary {
        position: static;
    }

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

@media (max-width: 576px) {
    .booking-section .slot-chip-grid,
    .program-includes {
        grid-template-columns: 1fr;
    }

    .booking-section .slot-chip,
    .program-action {
        align-items: stretch;
        flex-direction: column;
    }

    .booking-section .slot-chip form,
    .booking-section .slot-chip .btn,
    .program-action form,
    .program-action .btn {
        width: 100%;
    }

    .recurring-program-section {
        margin-right: -12px;
        margin-left: -12px;
        padding: 20px 12px;
    }

    .host-analytics-section > .d-flex {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .host-rating-summary {
        text-align: left;
    }

    .host-metric-grid,
    .review-form {
        grid-template-columns: 1fr;
    }

    .review-form > div,
    .review-text-field {
        grid-column: auto;
    }

    .program-repeat-row {
        grid-template-columns: minmax(0, 1fr) 42px;
    }

    .program-repeat-row > select,
    .program-repeat-row > input {
        grid-column: 1;
    }

    .program-repeat-row > button {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

/* Shared mobile behavior for all non-conference application pages. */
@media (max-width: 767.98px) {
    body {
        overflow-x: hidden;
    }

    .container {
        --bs-gutter-x: 1.25rem;
    }

    main > .container,
    main > section > .container {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .navbar .container {
        align-items: center;
    }

    .navbar-collapse {
        margin-top: 10px;
        padding: 10px 0 4px;
        border-top: 1px solid #e5e7eb;
    }

    .navbar-nav {
        gap: 2px;
    }

    .navbar-nav .nav-link {
        padding: 9px 4px;
    }

    .nav-account-actions {
        width: 100%;
        padding-top: 10px;
        justify-content: space-between;
        flex-wrap: wrap;
        border-top: 1px solid #e5e7eb;
    }

    .nav-account-actions form,
    .nav-account-actions .btn {
        min-width: 0;
    }

    .page-header {
        align-items: stretch !important;
        flex-direction: column;
        gap: 12px;
    }

    .page-header > .btn,
    .page-header > a.btn {
        width: 100%;
    }

    .panel {
        max-width: 100%;
    }

    .panel.p-4,
    section.panel.p-4,
    article.panel.p-4 {
        padding: 1rem !important;
    }

    .hero {
        padding: 44px 0;
    }

    .hero .display-4 {
        font-size: 2.5rem;
    }

    .hero .lead {
        font-size: 1.05rem;
    }

    .hero .d-flex.gap-3 {
        align-items: stretch;
        flex-direction: column;
    }

    .hero .btn-lg {
        width: 100%;
    }

    .table-responsive {
        margin-right: -.25rem;
        margin-left: -.25rem;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
    }

    .table-responsive .table {
        min-width: 680px;
        margin-bottom: 0;
    }

    .table-responsive th,
    .table-responsive td {
        padding: .65rem .75rem;
        white-space: nowrap;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }

    .pagination .page-link {
        border-radius: 5px;
    }

    .booking-section-heading {
        gap: 10px;
    }

    .booking-section-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 17px;
    }

    .host-card-heading {
        align-items: flex-start;
    }

    .host-card-identity {
        min-width: 0;
    }

    .host-card-identity > div:last-child {
        min-width: 0;
    }

    .host-card-identity h2,
    .host-card-identity p {
        overflow-wrap: anywhere;
    }

    .host-card-action {
        align-items: stretch !important;
        flex-direction: column;
        gap: 10px;
    }

    .host-card-action .btn {
        width: 100%;
    }

    .host-profile-photo {
        width: 92px;
        height: 92px;
    }

    .host-analytics-section {
        padding: 18px 0;
    }

    .review-item > .d-flex,
    .program-choice > .d-flex,
    .booking-date-group > .d-flex {
        align-items: flex-start !important;
        flex-wrap: wrap;
    }

    .feedback-label {
        margin-left: 57px;
    }

    .program-editor-main {
        gap: 14px;
    }

    .program-summary .program-flow {
        display: none;
    }

    .package-service-context {
        padding: 10px;
    }

    .program-transfer-form {
        grid-template-columns: 1fr;
    }

    .program-transfer-form .btn {
        width: 100%;
    }

    .admin-action-bar .btn {
        flex: 1 1 190px;
    }

    .program-module-row > .d-flex {
        align-items: stretch;
    }

    .program-public-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .interactive-stars label {
        font-size: 27px;
    }

    .help-popover,
    .bulk-slot-popover {
        --bs-popover-max-width: calc(100vw - 24px);
    }

    input,
    select,
    textarea,
    .form-control,
    .form-select {
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    .container {
        --bs-gutter-x: 1rem;
    }

    h1.h3 {
        font-size: 1.45rem;
    }

    h2.h4 {
        font-size: 1.25rem;
    }

    .host-card-heading {
        flex-direction: column;
    }

    .host-card-heading > .badge {
        margin-left: 72px;
    }

    .host-metric-grid,
    .program-public-metrics {
        grid-template-columns: 1fr;
    }

    .program-module-row > .d-flex {
        flex-direction: column;
    }

    .program-module-row > .d-flex .btn {
        align-self: flex-end;
    }

    .feedback-label {
        margin-left: 0;
    }
}

/* Client dashboard summary and tabbed operational workspace. */
.client-summary-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.client-summary-card > i {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #1d4ed8;
    background: #eaf2ff;
    font-size: 20px;
}

.client-summary-card span,
.client-summary-card strong {
    display: block;
}

.client-summary-card span {
    color: #64748b;
    font-size: 13px;
}

.client-summary-card strong {
    margin-top: 2px;
    font-size: 24px;
    line-height: 1.15;
}

.client-workspace {
    overflow: hidden;
}

.client-dashboard-tabs {
    padding: 0 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    border-bottom: 1px solid #dbe2ea;
    background: #f8fafc;
}

.client-dashboard-tabs .nav-tabs {
    width: max-content;
    min-width: 100%;
    border-bottom: 0;
}

.client-dashboard-tabs .nav-link {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: #52606d;
    white-space: nowrap;
}

.client-dashboard-tabs .nav-link:hover {
    color: #1d4ed8;
}

.client-dashboard-tabs .nav-link.active {
    color: #1d4ed8;
    border-bottom-color: #246bfe;
    background: transparent;
    font-weight: 600;
}

.client-dashboard-tabs .badge {
    min-width: 22px;
    color: #475569;
    background: #e2e8f0;
}

.client-dashboard-tabs .nav-link.active .badge {
    color: #fff;
    background: #246bfe;
}

.client-dashboard-content {
    padding: 22px;
}

.client-dashboard-content > .tab-pane {
    min-height: 240px;
}

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

.client-tab-heading h2 {
    margin: 0;
    font-size: 20px;
}

.client-tab-heading p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
}

.client-tab-empty {
    padding: 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 7px;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
}

.client-program-card,
.client-recording-card {
    background: #fff;
}

@media (max-width: 576px) {
    .host-dashboard-tabs {
        --bs-gutter-y: 0.65rem;
    }

    .host-dashboard-tabs .dashboard-stat {
        padding: 0.9rem 1rem !important;
    }

    .host-dashboard-tabs .dashboard-stat .fs-3 {
        font-size: 1.35rem !important;
    }

    .host-dashboard-tabs .dashboard-stat span {
        margin-top: 4px;
        font-size: 13px;
    }

    .host-dashboard-content .panel {
        padding: 14px 10px !important;
    }

    .client-summary-grid {
        --bs-gutter-y: 0.65rem;
    }

    .client-summary-card {
        padding: 0.85rem 1rem !important;
    }

    .client-summary-card > i {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 18px;
    }

    .client-summary-card strong {
        font-size: 20px;
    }

    .client-dashboard-tabs {
        padding: 0 6px;
    }

    .client-dashboard-tabs .nav-link {
        min-height: 50px;
        padding: 8px 10px;
        gap: 5px;
        font-size: 13px;
    }

    .client-dashboard-tabs .nav-link i {
        font-size: 15px;
    }

    .client-dashboard-tabs .badge {
        padding: 3px 5px;
        font-size: 10px;
    }

    .client-dashboard-content {
        padding: 14px 10px 16px;
    }

    .client-dashboard-content > .tab-pane {
        min-height: 180px;
    }

    .client-tab-heading {
        margin-bottom: 14px;
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .client-tab-heading h2 {
        font-size: 18px;
    }

    .client-tab-heading .btn {
        width: 100%;
    }

    .client-program-card,
    .client-recording-card {
        padding: 12px !important;
    }

    #ratings-panel .review-form {
        padding: 14px 4px;
    }

    #ratings-panel .review-form .btn {
        width: 100%;
    }
}
