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

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

.navbar-brand {
    display: inline-flex;
    align-items: center;
    padding-top: .25rem;
    padding-bottom: .25rem;
}

.brand-logo {
    width: auto;
    height: auto;
    max-width: 160px;
    display: block;
    object-fit: contain;
}

.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;
}

.public-host-page {
    max-width: 1180px;
}

.host-profile-summary {
    overflow: hidden;
}

.host-profile-summary-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(280px, .7fr);
    gap: 22px;
    align-items: center;
}

.host-profile-media .host-profile-photo {
    margin: 0;
}

.host-profile-copy {
    min-width: 0;
}

.host-profile-copy h1 {
    margin: 4px 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.05;
}

.host-profile-label {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef5ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.host-profile-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
}

.host-profile-facts > div {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

.host-profile-facts dt {
    margin-bottom: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.host-profile-facts dd {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
}

.host-profile-facts dd span {
    color: #64748b;
    font-weight: 500;
}

.booking-options-panel {
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

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

.booking-options-counts {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.booking-options-counts span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eef5ff;
    color: #31547a;
    font-size: 13px;
}

.booking-options-counts strong {
    color: #0f47b7;
}

.booking-option-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.booking-option-card-membership .booking-section-icon {
    background: #e9f7f1;
    color: #14724a;
}

.booking-option-body {
    padding-right: 0;
}

.booking-choice-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.booking-choice-tabs .nav-item {
    min-width: 0;
}

.booking-choice-tabs .nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #fff;
    color: #31547a;
    font-weight: 700;
}

.booking-choice-tabs .nav-link span {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    place-items: center;
    border-radius: 999px;
    background: #eef5ff;
    color: #1d4ed8;
    font-size: 12px;
}

.booking-choice-tabs .nav-link.active {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
}

.booking-choice-tabs .nav-link.active span {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.booking-choice-content .booking-option-card {
    box-shadow: none;
}

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

.booking-options-panel .slot-chip {
    align-items: flex-end;
    flex-direction: row;
    padding: 16px;
}

.booking-options-panel .slot-chip form,
.booking-options-panel .slot-chip .btn {
    flex: 0 0 auto;
}

.booking-options-panel .slot-chip form {
    display: flex;
    justify-content: flex-end;
}

.booking-options-panel .slot-chip form .btn {
    width: 100%;
}

.booking-options-panel .program-choice {
    box-shadow: none;
}

.booking-options-panel .program-choice + .program-choice {
    margin-top: 14px;
}

.host-work-showcase {
    background: #fff;
}

.host-work-showcase-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 18px;
}

.host-work-showcase-grid,
.host-showcase-manager-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.host-work-showcase-card,
.host-showcase-manager-card {
    overflow: hidden;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #fff;
}

.host-work-showcase-preview,
.host-showcase-manager-preview {
    position: relative;
    min-height: 170px;
    background: #eef5ff;
}

.host-work-showcase-preview a,
.host-work-showcase-preview video,
.host-work-showcase-preview img,
.host-showcase-manager-preview img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
}

.host-work-showcase-preview video {
    background: #0f172a;
}

.showcase-preview-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(15, 23, 42, .78);
    color: #fff;
    font-size: 28px;
}

.showcase-file-preview {
    min-height: 170px;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 18px;
    color: #1d4ed8;
    text-align: center;
    text-decoration: none;
}

.showcase-file-preview i {
    font-size: 38px;
}

.showcase-file-preview span {
    display: block;
    color: #31547a;
    font-weight: 700;
}

.host-work-showcase-body,
.host-showcase-manager-body {
    padding: 16px;
}

.host-work-showcase-type,
.host-showcase-manager-meta {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.host-work-showcase-body h3,
.host-showcase-manager-body h3 {
    margin: 6px 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
}

.host-work-showcase-body p,
.host-showcase-manager-body p {
    margin: 0;
    color: #53647c;
}

.host-showcase-manager-preview {
    min-height: 140px;
}

.host-showcase-manager-preview img {
    min-height: 140px;
}

.host-showcase-manager-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    font-weight: 600;
}

.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 {
    position: relative;
    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-whiteboard-panel {
    flex: 1;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #263044;
    border-radius: 8px;
    background: #0f172a;
}

.whiteboard-topbar {
    min-height: 58px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #263044;
    background: #111827;
}

.whiteboard-topbar strong,
.whiteboard-topbar span {
    display: block;
}

.whiteboard-topbar strong {
    color: #f8fafc;
    font-size: 15px;
}

.whiteboard-topbar span,
.whiteboard-footer {
    color: #94a3b8;
    font-size: 12px;
}

.whiteboard-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.whiteboard-tool.is-active {
    color: #0d6efd;
    border-color: #93c5fd;
    background: #eff6ff;
}

.whiteboard-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background:
        linear-gradient(rgba(148, 163, 184, .16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .16) 1px, transparent 1px),
        #f8fafc;
    background-size: 28px 28px;
}

.whiteboard-file-layer,
.whiteboard-canvas {
    position: absolute;
    inset: 0;
}

.whiteboard-file-layer {
    z-index: 1;
    display: grid;
    place-items: stretch;
    overflow: auto;
}

.whiteboard-canvas {
    z-index: 2;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none;
}

.whiteboard-canvas.is-erasing {
    cursor: cell;
}

.whiteboard-canvas.is-readonly {
    cursor: default;
    pointer-events: none;
}

.whiteboard-empty {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    min-height: 100%;
    padding: 24px;
    color: #64748b;
    text-align: center;
}

.whiteboard-empty i {
    color: #246bfe;
    font-size: 40px;
}

.whiteboard-empty strong {
    color: #0f172a;
    font-size: 18px;
}

.whiteboard-file-preview {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    background: #fff;
}

.whiteboard-text-preview {
    width: min(900px, calc(100% - 36px));
    min-height: calc(100% - 36px);
    margin: 18px auto;
    padding: 22px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    color: #0f172a;
    background: rgba(255, 255, 255, .94);
    font: 14px/1.6 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    white-space: pre-wrap;
}

.whiteboard-footer {
    min-height: 34px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #263044;
    background: #111827;
}

.whiteboard-footer span:first-child {
    min-width: 0;
    overflow: hidden;
    color: #e2e8f0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conference-page.whiteboard-active .conference-video-grid,
.conference-page.whiteboard-active .conference-video-grid:has(.conference-video-tile:nth-of-type(5)) {
    position: absolute;
    z-index: 4;
    right: 24px;
    bottom: 86px;
    width: min(250px, 24vw);
    max-height: min(52%, 420px);
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(82px, 1fr);
    gap: 6px;
}

.conference-page.whiteboard-active .conference-video-grid .conference-empty-stage {
    display: none;
}

.conference-page.whiteboard-active .conference-video-tile,
.conference-page.whiteboard-active .conference-video-tile:only-of-type {
    width: 100%;
    min-height: 82px;
    aspect-ratio: 16 / 9;
    border: 1px solid rgb(255 255 255 / 22%);
    box-shadow: 0 14px 30px rgb(0 0 0 / 24%);
}

.conference-page.whiteboard-active .conference-self-preview {
    right: auto;
    left: 22px;
}

.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,
.conference-tile-mute {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

.conference-tile-mute {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #16a34a;
    background: rgba(248, 250, 252, .92);
}

.conference-tile-mute:hover,
.conference-tile-mute:focus {
    background: #fff;
    color: #15803d;
}

.conference-tile-mute.is-muted {
    color: #dc2626;
}

.conference-tile-mute.is-muted:hover,
.conference-tile-mute.is-muted:focus {
    color: #b91c1c;
}

.raise-hand-icon {
    width: 1.15em;
    height: 1.15em;
    display: inline-block;
    vertical-align: -.18em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.conference-self-preview {
    position: absolute;
    z-index: 12;
    right: 22px;
    bottom: 82px;
    width: min(220px, 26vw);
    aspect-ratio: 16 / 10;
    border: 1px solid rgb(148 163 184 / 36%);
    border-radius: 8px;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 16px 42px rgb(0 0 0 / 34%);
}

.conference-self-preview-tile {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
}

.conference-self-preview-tile .conference-avatar {
    width: 42px;
    height: 42px;
    font-size: 18px;
}

.conference-self-preview-tile .conference-video-name {
    left: 7px;
    bottom: 7px;
    max-width: calc(100% - 48px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conference-self-preview-tile .conference-tile-fullscreen {
    top: 7px;
    right: 7px;
}

.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;
}

.camera-flip-icon {
    position: relative;
    width: 1.35em;
    height: 1.35em;
    display: inline-grid;
    place-items: center;
}

.camera-flip-icon .bi-camera-video {
    font-size: 1.05em;
}

.camera-flip-icon .bi-arrow-repeat {
    position: absolute;
    right: -.35em;
    bottom: -.3em;
    font-size: .78em;
}

#switchCamera.camera-switching > i,
#switchCamera.camera-switching .camera-flip-icon .bi-arrow-repeat {
    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;
}

.evidence-consent-notice {
    color: #1e3a8a;
    background: #eff6ff;
    border-bottom-color: #bfdbfe;
}

.completion-prompt {
    margin: 0 auto 10px;
    width: min(720px, 100%);
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #14532d;
    background: #f0fdf4;
}

.completion-prompt p {
    margin: 3px 0 0;
    color: #166534;
    font-size: 13px;
}

.completion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.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-whiteboard-actions {
    margin-top: -2px;
}

.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-hand.raise-hand-icon {
    padding: 4px;
    stroke-width: 2;
}

.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;
    }

    .evidence-consent-notice {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .completion-prompt {
        margin-bottom: 8px;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
    }

    .completion-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .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-whiteboard-panel {
        min-height: 360px;
        border-radius: 6px;
    }

    .whiteboard-topbar,
    .whiteboard-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .whiteboard-actions {
        justify-content: flex-start;
    }

    .whiteboard-actions .btn {
        min-height: 36px;
    }

    .whiteboard-stage {
        min-height: 300px;
    }

    .whiteboard-text-preview {
        width: calc(100% - 20px);
        min-height: calc(100% - 20px);
        margin: 10px;
        padding: 14px;
        font-size: 13px;
    }

    .conference-control-label {
        display: none;
    }

    .conference-page.whiteboard-active .conference-video-grid,
    .conference-page.whiteboard-active .conference-video-grid:has(.conference-video-tile:nth-of-type(5)) {
        right: 12px;
        bottom: 70px;
        width: min(150px, 42vw);
        grid-auto-rows: minmax(70px, 1fr);
    }

    .conference-page.whiteboard-active .conference-self-preview {
        left: 12px;
        right: auto;
    }

    .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,
    .conference-tile-mute {
        top: 6px;
        right: 6px;
    }

    .conference-self-preview {
        right: 12px;
        bottom: 68px;
        width: min(160px, 42vw);
    }

    .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,
    .conference-controls #requestCompletion {
        font-size: 0;
    }

    .conference-controls #joinRoom i,
    .conference-controls #leaveRoom i,
    .conference-controls #requestCompletion 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;
    }
}

body.conference-focus-active {
    overflow: hidden;
    background: #020617;
}

body.conference-focus-active .navbar,
body.conference-focus-active .site-footer {
    display: none !important;
}

.conference-focus-toggle {
    position: fixed;
    z-index: 2147483006;
    left: 50%;
    bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
    width: 50px;
    height: 50px;
    padding: 0;
    place-items: center;
    border: 1px solid rgb(148 163 184 / 32%);
    border-radius: 50%;
    color: #f8fafc;
    background: rgb(15 23 42 / 88%);
    box-shadow: 0 16px 44px rgb(0 0 0 / 38%);
    transform: translateX(-50%);
    backdrop-filter: blur(12px);
}

.conference-focus-toggle:hover,
.conference-focus-toggle:focus-visible {
    color: #fff;
    border-color: rgb(255 255 255 / 58%);
    background: rgb(30 41 59 / 94%);
}

.conference-focus-mode {
    position: fixed;
    z-index: 2000;
    inset: 0;
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    background: #020617;
}

.conference-focus-mode .conference-header,
.conference-focus-mode .conference-notice,
.conference-focus-mode .recording-consent-notice,
.conference-focus-mode .completion-prompt,
.conference-focus-mode .conference-error,
.conference-focus-mode .alert {
    display: none !important;
}

.conference-focus-mode .conference-shell {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: block;
}

.conference-focus-mode .conference-main {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 0;
}

.conference-focus-mode .conference-video-grid,
.conference-focus-mode .conference-video-grid:has(.conference-video-tile:nth-of-type(5)) {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: 1px;
    background: #020617;
}

.conference-focus-mode .conference-video-grid:has(.conference-video-tile:only-of-type) {
    grid-template-columns: minmax(0, 1fr);
}

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

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

.conference-focus-mode.whiteboard-active .conference-video-grid,
.conference-focus-mode.whiteboard-active .conference-video-grid:has(.conference-video-tile:nth-of-type(5)),
.conference-focus-mode.whiteboard-active .conference-video-grid:has(.conference-video-tile:nth-of-type(7)) {
    position: fixed;
    z-index: 2147483003;
    right: 18px;
    bottom: 88px;
    width: min(240px, 24vw);
    height: auto;
    max-height: min(48vh, 360px);
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(82px, 1fr);
    gap: 6px;
    background: transparent;
}

.conference-focus-mode .conference-whiteboard-panel {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
}

.conference-focus-mode .whiteboard-topbar {
    min-height: 52px;
    background: rgb(15 23 42 / 94%);
}

.conference-focus-mode .whiteboard-footer {
    display: none;
}

.conference-focus-mode .whiteboard-actions .btn:not(.whiteboard-tool) {
    font-size: 0;
}

.conference-focus-mode .whiteboard-actions .btn i {
    margin: 0;
    font-size: 16px;
}

.conference-focus-mode .conference-empty-stage {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: #020617;
}

.conference-focus-mode .conference-video-tile,
.conference-focus-mode .conference-video-tile:only-of-type {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    border: 1px solid #020617;
    border-radius: 0;
    background: #030712;
}

.conference-focus-mode .conference-video-tile.speaking {
    border-color: #22c55e;
    box-shadow: inset 0 0 0 1px #22c55e;
}

.conference-focus-mode .conference-video-name {
    left: 8px;
    bottom: 8px;
    border-radius: 4px;
    background: rgb(2 6 23 / 72%);
}

.conference-focus-mode .conference-tile-fullscreen {
    display: none;
}

.conference-focus-mode .conference-self-preview {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: min(230px, 25vw);
    border-color: rgb(255 255 255 / 24%);
}

.conference-focus-mode .conference-self-preview .conference-tile-fullscreen {
    display: inline-flex;
}

.conference-focus-mode .conference-controls {
    position: fixed !important;
    z-index: 2147483005;
    left: 50%;
    bottom: max(76px, calc(env(safe-area-inset-bottom) + 72px));
    width: max-content;
    max-width: min(94vw, 760px);
    min-height: 56px;
    padding: 8px;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    border: 1px solid rgb(148 163 184 / 24%);
    border-radius: 999px;
    background: rgb(2 6 23 / 86%);
    box-shadow: 0 18px 52px rgb(0 0 0 / 42%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    scrollbar-width: none;
    transform: translate(-50%, 12px);
    transition: opacity .18s ease, transform .18s ease;
    backdrop-filter: blur(14px);
}

.conference-focus-mode .conference-controls #joinRoom {
    display: none !important;
}

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

.conference-focus-mode.focus-controls-visible .conference-controls {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translate(-50%, 0);
}

.conference-focus-mode .conference-controls .btn {
    flex: 0 0 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
}

.conference-focus-mode .conference-controls #leaveRoom,
.conference-focus-mode .conference-controls #requestCompletion {
    flex-basis: auto;
    min-width: 44px;
    font-size: 0;
}

.conference-focus-mode .conference-controls .btn i,
.conference-focus-mode .conference-controls #leaveRoom i,
.conference-focus-mode .conference-controls #requestCompletion i {
    margin: 0;
    font-size: 17px;
}

.conference-focus-mode .conference-control-label {
    display: none;
}

.conference-focus-mode .conference-focus-toggle,
.conference-focus-mode .conference-focus-chat-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.conference-focus-chat-button {
    position: relative;
}

.conference-focus-chat-button .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    padding: 3px 5px;
    border: 2px solid #020617;
    border-radius: 999px;
    font-size: 10px;
}

.conference-focus-mode .conference-sidebar {
    position: fixed;
    z-index: 2147483004;
    top: 16px;
    right: 16px;
    bottom: 86px;
    width: min(360px, calc(100vw - 32px));
    min-height: 0;
    display: none;
    overflow: hidden;
    border: 1px solid rgb(148 163 184 / 24%);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgb(0 0 0 / 42%);
}

.conference-focus-mode.focus-sidebar-open .conference-sidebar {
    display: flex;
}

.conference-sidebar-drag-handle {
    min-height: 34px;
    padding: 7px 12px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #cbd5e1;
    border-bottom: 1px solid #263044;
    background: #0f172a;
    font-size: 12px;
    font-weight: 700;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.conference-sidebar-drag-handle i {
    color: #94a3b8;
    font-size: 16px;
}

.conference-focus-mode .conference-sidebar-drag-handle {
    display: flex !important;
}

.conference-sidebar.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.conference-sidebar.is-dragging .conference-sidebar-drag-handle {
    cursor: grabbing;
}

@media (max-width: 640px) {
    .conference-focus-mode .conference-shell,
    .conference-focus-mode .conference-main,
    .conference-focus-mode .conference-video-grid,
    .conference-focus-mode .conference-video-grid:has(.conference-video-tile:nth-of-type(5)),
    .conference-focus-mode .conference-empty-stage {
        height: 100svh;
        height: 100dvh;
    }

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

    .conference-focus-mode .conference-video-grid:has(.conference-video-tile:only-of-type) {
        grid-template-columns: minmax(0, 1fr);
    }

    .conference-focus-mode.whiteboard-active .conference-video-grid,
    .conference-focus-mode.whiteboard-active .conference-video-grid:has(.conference-video-tile:nth-of-type(3)),
    .conference-focus-mode.whiteboard-active .conference-video-grid:has(.conference-video-tile:nth-of-type(5)),
    .conference-focus-mode.whiteboard-active .conference-video-grid:has(.conference-video-tile:nth-of-type(7)) {
        right: 10px;
        bottom: max(132px, calc(env(safe-area-inset-bottom) + 124px));
        width: min(142px, 42vw);
        height: auto;
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(68px, 1fr);
    }

    .conference-focus-mode .conference-whiteboard-panel {
        height: 100svh;
        height: 100dvh;
    }

    .conference-focus-mode .whiteboard-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .conference-focus-mode .whiteboard-stage {
        min-height: 0;
    }

    .conference-focus-mode .conference-controls {
        width: calc(100vw - 20px);
        max-width: 520px;
        bottom: max(74px, calc(env(safe-area-inset-bottom) + 70px));
        justify-content: flex-start;
        border-radius: 16px;
    }

    .conference-focus-mode .conference-sidebar {
        top: auto;
        right: 10px;
        bottom: max(134px, calc(env(safe-area-inset-bottom) + 126px));
        left: 10px;
        width: auto;
        height: min(54svh, 430px);
        height: min(54dvh, 430px);
    }

    .conference-focus-mode .conference-sidebar-drag-handle {
        display: none !important;
    }

    .conference-focus-mode .conference-self-preview {
        right: 10px;
        bottom: max(132px, calc(env(safe-area-inset-bottom) + 124px));
        width: min(150px, 42vw);
    }

    .conference-focus-mode.whiteboard-active .conference-self-preview {
        left: 10px;
        right: auto;
    }
}

.request-list,
.lead-list,
.proposal-grid {
    display: grid;
    gap: 14px;
}

.request-card-main,
.lead-card,
.request-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.lead-card {
    padding: 18px 0;
    border-bottom: 1px solid #e2e8f0;
}

.lead-card:last-child {
    border-bottom: 0;
}

.lead-action-column {
    display: flex;
    justify-content: flex-end;
}

.request-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #64748b;
    font-size: 14px;
}

.request-meta-row i {
    margin-right: 4px;
    color: #2563eb;
}

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

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

.request-side-note {
    position: sticky;
    top: 88px;
}

.request-side-note ol {
    margin: 0;
    padding-left: 20px;
    color: #475569;
}

.request-side-note li + li {
    margin-top: 10px;
}

.request-price-box {
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
}

.request-detail-list {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px 14px;
    min-width: 280px;
    margin: 0;
}

.request-detail-list dt {
    color: #64748b;
    font-weight: 500;
}

.request-detail-list dd {
    margin: 0;
    font-weight: 600;
}

.proposal-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.proposal-editor-layout {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
}

.proposal-form-panel {
    align-self: stretch;
}

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

.proposal-form-grid .form-control,
.proposal-form-grid .form-select,
.proposal-message-field .form-control {
    width: 100%;
    min-height: 38px;
}

.proposal-form-grid .form-label,
.proposal-message-field .form-label {
    color: #263548;
    font-weight: 600;
}

.proposal-message-field {
    min-width: 0;
}

.proposal-attachment-field {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.proposal-attachment-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    text-decoration: none;
}

.proposal-attachment-link:hover,
.proposal-attachment-link:focus-visible {
    text-decoration: underline;
}

.proposal-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.proposal-card-accepted {
    border-color: #86efac;
    box-shadow: 0 12px 28px rgba(22, 163, 74, .12);
}

.proposal-host-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.proposal-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #dbe2ea;
}

.proposal-price {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.proposal-payment-note {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #14532d;
    background: #f0fdf4;
}

.empty-state i {
    color: #2563eb;
    font-size: 36px;
}

@media (max-width: 900px) {
    .request-editor-layout {
        grid-template-columns: 1fr;
    }

    .request-side-note {
        position: static;
    }
}

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

    .proposal-form-panel {
        padding: 18px !important;
    }

    .proposal-form-panel .btn-lg {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .request-card-main,
    .lead-card,
    .request-detail-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .lead-action-column,
    .request-card-main > .btn {
        justify-content: stretch;
    }

    .lead-action-column .btn,
    .request-card-main > .btn {
        width: 100%;
    }

    .request-detail-list {
        min-width: 0;
        grid-template-columns: 1fr;
    }
}

/* 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,
.client-dashboard-content > .tab-pane {
    min-height: 220px;
    scroll-margin-top: 92px;
}

.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;
}

.recording-consent-notice.evidence-consent-notice {
    color: #1e3a8a;
    background: #eff6ff;
    border-bottom-color: #bfdbfe;
}

@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: 991.98px) {
    .host-profile-summary-main {
        grid-template-columns: 1fr;
    }

    .host-profile-summary-main {
        align-items: flex-start;
    }

    .host-profile-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .booking-option-body {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .booking-options-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .booking-options-counts {
        justify-content: flex-start;
    }
}

@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-profile-summary-main {
        gap: 16px;
    }

    .host-profile-facts {
        grid-template-columns: 1fr;
    }

    .booking-option-card {
        padding: 16px;
    }

    .host-work-showcase-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .host-work-showcase-grid,
    .host-showcase-manager-grid {
        grid-template-columns: 1fr;
    }

    .booking-choice-tabs {
        gap: 8px;
    }

    .booking-choice-tabs .nav-link {
        min-height: 44px;
        padding: 10px 8px;
        font-size: 13px;
    }

    .booking-options-panel .slot-chip-grid {
        grid-template-columns: 1fr;
    }

    .booking-options-panel .slot-chip {
        align-items: stretch;
        flex-direction: column;
    }

    .booking-options-panel .slot-chip form,
    .booking-options-panel .slot-chip .btn {
        width: 100%;
    }

    .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-mobile-dashboard-menu {
    padding: 14px;
    border-bottom: 1px solid #dbe2ea;
    background: #f8fafc;
}

.client-mobile-menu-heading {
    margin-bottom: 12px;
    display: grid;
    gap: 2px;
}

.client-mobile-menu-heading span {
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
}

.client-mobile-menu-heading small {
    color: #64748b;
    font-size: 13px;
}

.client-mobile-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.client-mobile-dashboard-card {
    min-width: 0;
    min-height: 86px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    color: #0f172a;
    text-align: left;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.client-mobile-dashboard-card:hover {
    border-color: #93c5fd;
}

.client-mobile-dashboard-card.active {
    border-color: #246bfe;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px #246bfe, 0 10px 24px rgba(37, 99, 235, .12);
}

.client-mobile-dashboard-card:nth-child(5):last-child {
    grid-column: 1 / -1;
}

.client-mobile-card-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #1d4ed8;
    background: #eaf2ff;
    font-size: 18px;
}

.client-mobile-card-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.client-mobile-card-copy span {
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.client-mobile-card-copy strong {
    color: #0f172a;
    font-size: 22px;
    line-height: 1.05;
}

.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,
.saved-whiteboard-card {
    background: #fff;
}

.saved-whiteboard-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background:
        linear-gradient(rgba(148, 163, 184, .14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .14) 1px, transparent 1px),
        #f8fafc;
    background-size: 24px 24px;
}

.client-program-title-link {
    color: inherit;
    text-decoration: none;
}

.client-program-title-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.client-program-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.client-membership-note {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-left: 3px solid #f59e0b;
    border-radius: 7px;
    color: #475569;
    background: #fffbeb;
    font-size: 13px;
}

.client-membership-note.is-expired {
    border-left-color: #64748b;
    color: #475569;
    background: #f1f5f9;
}

.membership-detail-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.membership-detail-kicker {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.membership-detail-price {
    min-width: 190px;
    padding: 14px;
    border-left: 3px solid #2563eb;
    border-radius: 8px;
    background: #f8fafc;
}

.membership-detail-price span,
.membership-detail-price small,
.membership-detail-stat span {
    display: block;
    color: #64748b;
    font-size: 13px;
}

.membership-detail-price strong {
    display: block;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.15;
}

.membership-detail-stat span {
    margin-bottom: 4px;
}

.membership-detail-stat strong {
    display: block;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.25;
}

.membership-detail-alert {
    border-radius: 8px;
}

.membership-payment-closed {
    padding: 12px;
    display: grid;
    gap: 3px;
    border-radius: 8px;
    color: #475569;
    background: #f1f5f9;
}

.membership-payment-closed strong {
    color: #0f172a;
}

.membership-payment-closed span {
    font-size: 13px;
}

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

.membership-detail-list div {
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.membership-detail-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.membership-detail-list dt {
    color: #64748b;
    font-size: 13px;
}

.membership-detail-list dd {
    margin: 3px 0 0;
    color: #0f172a;
    font-weight: 600;
}

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

.mobile-data-card {
    padding: 14px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.mobile-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.mobile-card-head h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
}

.mobile-card-head p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.mobile-card-head .badge {
    max-width: 45%;
    margin-top: 1px;
    white-space: normal;
    text-align: right;
}

.mobile-card-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    overflow: hidden;
    background: #e2e8f0;
}

.mobile-card-grid > div {
    min-width: 0;
    padding: 10px;
    display: grid;
    gap: 3px;
    background: #fbfdff;
}

.mobile-card-grid span {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.mobile-card-grid strong {
    min-width: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.mobile-card-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.mobile-card-actions form {
    margin: 0;
}

@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-mobile-dashboard-menu {
        padding: 12px 10px 14px;
    }

    .client-mobile-card-grid {
        gap: 8px;
    }

    .client-mobile-dashboard-card {
        min-height: 78px;
        padding: 10px;
        gap: 8px;
    }

    .client-mobile-card-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 16px;
    }

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

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

    .host-dashboard-content > .tab-pane,
    .client-dashboard-content > .tab-pane {
        min-height: 180px;
        scroll-margin-top: 76px;
    }

    .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;
    }

    .client-program-actions {
        display: grid;
    }

    .client-program-actions .btn {
        width: 100%;
    }

    .membership-detail-hero {
        flex-direction: column;
    }

    .membership-detail-price {
        width: 100%;
    }

    .mobile-card-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    }

    .mobile-card-actions .btn,
    .mobile-card-actions form,
    .mobile-card-actions button {
        width: 100%;
    }

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

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

/* Public landing discovery experience. */
.home-hero {
    padding: 74px 0;
    color: #fff;
    background: linear-gradient(120deg, #102047, #1d4ed8 55%, #0f766e);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 44px;
    align-items: center;
}

.home-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 700;
}

.home-hero-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.35rem, 5vw, 4.75rem);
    line-height: 1.02;
}

.home-hero-copy p {
    max-width: 690px;
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 1.12rem;
}

.home-search-panel {
    margin-top: 28px;
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(190px, 1.4fr) minmax(150px, .9fr) minmax(150px, .9fr) auto;
    gap: 10px;
    align-items: end;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    background: rgba(15, 23, 42, .28);
    backdrop-filter: blur(8px);
}

.home-search-panel .form-label {
    color: #dbeafe;
    font-size: 13px;
}

.home-hero-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-live-panel {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 22px 52px rgba(15, 23, 42, .24);
}

.home-live-panel h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

.home-live-steps {
    display: grid;
    gap: 16px;
}

.home-live-steps > div {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.home-live-steps i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #1d4ed8;
    background: #eaf2ff;
    font-size: 20px;
}

.home-live-steps strong,
.home-live-steps span {
    display: block;
}

.home-live-steps span {
    color: #475569;
}

.home-section {
    padding: 44px 0;
}

.home-section-heading {
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
}

.home-section-heading h2 {
    margin: 0;
    font-size: 28px;
}

.home-section-heading p {
    margin: 5px 0 0;
    color: #64748b;
}

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

.home-category-card {
    min-height: 108px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    color: inherit;
    text-decoration: none;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.home-category-card:hover,
.home-category-card:focus-visible {
    color: inherit;
    border-color: #246bfe;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .12);
}

.home-category-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #1d4ed8;
    background: #eaf2ff;
    font-size: 23px;
}

.home-category-card strong,
.home-category-card small {
    display: block;
}

.home-category-card small {
    margin-top: 4px;
    color: #64748b;
}

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

.home-host-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.home-host-action {
    margin-top: auto;
}

.host-directory-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
}

.host-filter-panel .form-label {
    font-weight: 600;
}

.host-status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.host-status-legend span {
    padding: 6px 10px;
    border: 1px solid #dbe2ea;
    border-radius: 999px;
    color: #475569;
    background: #fff;
    font-size: 13px;
}

.host-list-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.host-list-card-media {
    position: relative;
    height: 150px;
    background: #eaf2ff;
}

.host-list-card-media img,
.host-list-photo-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.host-list-photo-fallback {
    font-size: 46px;
}

.host-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: max-content;
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.host-list-card-media .host-status-pill {
    position: absolute;
    right: 12px;
    bottom: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
}

.host-status-pill.is-available {
    color: #166534;
    background: #dcfce7;
}

.host-status-pill.is-appointment {
    color: #1d4ed8;
    background: #dbeafe;
}

.host-status-pill.is-busy {
    color: #475569;
    background: #e2e8f0;
}

.host-list-card-body {
    padding: 18px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.host-mini-rating {
    color: #f59e0b;
    font-weight: 700;
    white-space: nowrap;
}

.host-mini-rating small {
    display: block;
    color: #64748b;
    font-weight: 400;
}

.host-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.host-list-meta span {
    padding: 5px 8px;
    border-radius: 6px;
    color: #475569;
    background: #f1f5f9;
    font-size: 13px;
}

.host-list-meta i {
    margin-right: 4px;
}

.host-list-actions {
    margin-top: auto;
    display: grid;
    gap: 6px;
}

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

@media (max-width: 991.98px) {
    .home-hero-grid,
    .home-search-panel {
        grid-template-columns: 1fr;
    }

    .home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .home-hero {
        padding: 42px 0;
    }

    .home-hero-copy h1 {
        font-size: 2.25rem;
    }

    .home-live-panel {
        padding: 18px;
    }

    .home-section-heading,
    .host-directory-header {
        align-items: stretch;
        flex-direction: column;
    }

    .home-section-heading .btn,
    .host-directory-header .btn {
        width: 100%;
    }

    .home-category-grid,
    .home-host-grid {
        grid-template-columns: 1fr;
    }

    .host-status-legend {
        flex-direction: column;
    }

    .host-list-card-media {
        height: 190px;
    }
}

.home-category-section .home-section-heading {
    margin-bottom: 22px;
}

.home-category-arrow {
    margin-left: auto;
    color: #94a3b8;
    transition: transform .15s ease, color .15s ease;
}

.home-category-card:hover .home-category-arrow,
.home-category-card:focus-visible .home-category-arrow {
    color: #246bfe;
    transform: translateX(3px);
}

/* Lite meeting quick-link surfaces. */
.lite-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #1d4ed8 !important;
    font-weight: 600;
}

.lite-share-box {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.lite-share-box > div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.lite-share-box span {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.lite-share-box code,
.lite-share-box strong,
.lite-share-box small {
    overflow-wrap: anywhere;
}

.lite-join-shell {
    max-width: 520px;
    margin: 0 auto;
}

.lite-join-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #1d4ed8;
    background: #eaf2ff;
    font-size: 27px;
}

.lite-join-meta {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
}

.lite-join-meta div {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
}

.lite-join-meta dt {
    color: #64748b;
    font-weight: 600;
}

.lite-join-meta dd {
    margin: 0;
}

@media (max-width: 576px) {
    .lite-share-box > div,
    .lite-join-meta div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* Host whole-day availability control. */
.dashboard-actions-bar {
    justify-content: flex-end;
}

.whole-day-toggle {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e40af;
    background: #eff6ff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.whole-day-toggle:hover,
.whole-day-toggle:focus-within {
    border-color: #246bfe;
    box-shadow: 0 0 0 .2rem rgba(36, 107, 254, .12);
}

.whole-day-toggle.is-active {
    color: #166534;
    border-color: #86efac;
    background: #dcfce7;
}

.whole-day-toggle .form-check-input {
    width: 2.35rem;
    height: 1.2rem;
    margin: 0;
    cursor: pointer;
}

.whole-day-toggle span {
    display: grid;
    line-height: 1.1;
}

.whole-day-toggle strong {
    font-size: .92rem;
}

.whole-day-toggle small {
    margin-top: 2px;
    color: #64748b;
    font-size: .75rem;
}

@media (max-width: 767.98px) {
    .dashboard-actions-bar,
    .dashboard-action-with-help,
    .whole-day-toggle {
        width: 100%;
    }

    .dashboard-action-with-help .btn {
        flex: 1 1 auto;
    }
}

/* Home page expert-focused hero refinements. */
.home-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 72px;
    background: linear-gradient(120deg, #102047 0%, #1d4ed8 56%, #0f766e 100%);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: rgba(255, 255, 255, .18);
}

.home-kicker {
    gap: 7px;
    align-items: center;
}

.home-rotating-word {
    display: inline-block;
    min-width: 10ch;
    color: #fef3c7;
    transition: opacity .14s ease, transform .14s ease;
}

.home-rotating-word.is-changing {
    opacity: .28;
    transform: translateY(4px);
}

.home-hero-line {
    display: block;
    white-space: nowrap;
}

.home-expert-line {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.home-expert-line span,
.home-more-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.home-expert-line span {
    padding: 7px 12px;
    color: #eff6ff;
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(15, 23, 42, .24);
}

.home-more-link {
    padding: 7px 14px;
    color: #0f172a;
    border: 0;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .18);
}

.home-more-link:hover,
.home-more-link:focus-visible {
    color: #1d4ed8;
}

.home-live-panel {
    border: 0;
}

.home-category-section {
    background: #f8fafc;
}

.home-category-section .home-section-heading {
    justify-content: center;
    text-align: center;
}

.home-category-grid {
    align-items: stretch;
}

.home-category-card {
    min-height: 112px;
}

.home-category-message {
    min-height: 20px;
}

.home-how-section {
    background: #fff;
}

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

.home-how-card {
    position: relative;
    min-height: 390px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .06);
}

.home-how-visual {
    min-height: 190px;
    margin-bottom: 18px;
    display: grid;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(36, 107, 254, .09), rgba(15, 118, 110, .08)),
        #f8fafc;
}

.home-how-step {
    width: max-content;
    padding: 4px 8px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-weight: 700;
    font-size: 12px;
}

.home-how-card h3 {
    margin: 12px 0 8px;
    font-size: 21px;
}

.home-how-card p {
    margin: 0;
    color: #475569;
}

.home-wire-browser,
.home-wire-calendar,
.home-wire-video {
    width: min(100%, 260px);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 30px rgba(37, 99, 235, .1);
}

.home-wire-browser {
    padding: 12px;
}

.home-wire-bar {
    display: flex;
    gap: 5px;
    margin-bottom: 14px;
}

.home-wire-bar span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #bfdbfe;
}

.home-wire-search {
    min-height: 38px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    color: #64748b;
    background: #eff6ff;
    font-size: 13px;
}

.home-wire-list {
    margin-top: 12px;
    display: grid;
    gap: 9px;
}

.home-wire-list span {
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(90deg, #dbeafe 0 22%, #f1f5f9 22% 100%);
}

.home-wire-calendar {
    padding: 14px;
}

.home-wire-calendar-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.home-wire-calendar-head span {
    width: 48px;
    height: 9px;
    border-radius: 999px;
    background: #dbeafe;
}

.home-wire-calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.home-wire-calendar-grid span {
    height: 30px;
    border-radius: 6px;
    background: #f1f5f9;
}

.home-wire-calendar-grid span.is-active {
    background: #246bfe;
}

.home-wire-cta {
    width: 58%;
    height: 32px;
    margin: 14px auto 0;
    border-radius: 6px;
    background: #0f766e;
}

.home-wire-video {
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 10px;
}

.home-wire-video-main {
    min-height: 116px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #bfdbfe;
    background: #0f172a;
    font-size: 28px;
}

.home-wire-video-side {
    display: grid;
    gap: 8px;
}

.home-wire-video-side span {
    border-radius: 6px;
    background: #dbeafe;
}

.home-wire-controls {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.home-wire-controls span {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #e2e8f0;
}

@media (max-width: 991.98px) {
    .home-hero {
        padding: 56px 0;
    }

    .home-hero-grid {
        gap: 30px;
    }

    .home-hero-copy h1 {
        max-width: 620px;
    }

    .home-how-grid {
        grid-template-columns: 1fr;
    }

    .home-how-card {
        min-height: 0;
    }
}

@media (max-width: 767.98px) {
    .home-hero {
        padding: 42px 0;
    }

    .home-rotating-word {
        min-width: 0;
    }

    .home-expert-line {
        gap: 7px;
    }

    .home-expert-line span,
    .home-more-link {
        min-height: 32px;
        font-size: 13px;
    }

    .home-hero-actions .btn {
        width: 100%;
    }

    .home-live-steps > div {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .home-live-steps i {
        width: 34px;
        height: 34px;
    }
}

/* Clickable expert chips and featured profile cards on the public home page. */
.home-expert-line a,
.home-more-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.home-expert-line a {
    padding: 7px 12px;
    color: #eff6ff;
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(15, 23, 42, .24);
}

.home-expert-line a:hover,
.home-expert-line a:focus-visible {
    color: #fff;
    border-color: rgba(255, 255, 255, .52);
    background: rgba(15, 23, 42, .38);
}

.home-featured-section {
    background: #fff;
}

.home-featured-card {
    overflow: hidden;
    padding: 0;
}

.home-featured-media {
    position: relative;
    height: 180px;
    background: #eaf2ff;
}

.home-featured-media img,
.home-featured-media .host-photo-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-featured-media .host-photo-fallback {
    display: grid;
    place-items: center;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: 52px;
    font-weight: 800;
}

.home-profession-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    max-width: calc(100% - 24px);
    padding: 5px 9px;
    overflow: hidden;
    color: #0f172a;
    background: rgba(255, 255, 255, .92);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
}

.home-featured-media .host-status-pill {
    position: absolute;
    right: 12px;
    bottom: 12px;
}

.home-featured-body {
    padding: 18px;
    display: flex;
    min-height: 278px;
    flex-direction: column;
}

.home-featured-body h3 {
    margin: 0 0 4px;
    font-size: 20px;
}

.home-featured-summary {
    margin: 16px 0;
    color: #475569;
}

.home-featured-body .home-host-action {
    margin-top: auto;
}

@media (max-width: 767.98px) {
    .home-expert-line a,
    .home-more-link {
        min-height: 32px;
        font-size: 13px;
    }

    .home-featured-media {
        height: 210px;
    }

    .home-featured-body {
        min-height: 0;
    }
}

/* Compact featured experts: small avatar, no large profile image. */
.home-featured-card-compact {
    padding: 18px;
    overflow: visible;
    gap: 14px;
}

.home-featured-compact-head {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
}

.home-featured-avatar {
    width: 68px;
    height: 68px;
    overflow: hidden;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    background: #eaf2ff;
}

.home-featured-avatar img,
.home-featured-avatar .host-photo-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-featured-avatar .host-photo-fallback {
    display: grid;
    place-items: center;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: 28px;
    font-weight: 800;
}

.home-featured-title h3 {
    margin: 7px 0 4px;
    font-size: 20px;
}

.home-featured-card-compact .home-profession-badge {
    position: static;
    max-width: 100%;
    display: inline-flex;
    width: max-content;
    color: #1d4ed8;
    background: #eaf2ff;
    box-shadow: none;
}

.home-featured-card-compact .home-featured-summary {
    margin: 0;
    color: #475569;
}

.home-featured-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-featured-badges > span:not(.host-status-pill) {
    padding: 5px 8px;
    border-radius: 6px;
    color: #475569;
    background: #f1f5f9;
    font-size: 13px;
}

.home-featured-card-compact .home-host-action {
    margin-top: auto;
}

@media (max-width: 767.98px) {
    .home-featured-card-compact {
        padding: 16px;
    }

    .home-featured-compact-head {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .home-featured-avatar {
        width: 58px;
        height: 58px;
        border-radius: 12px;
    }

    .home-featured-compact-head .host-mini-rating {
        grid-column: 1 / -1;
        text-align: left !important;
    }
}

/* Sample B featured expert list layout. */
.home-featured-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.home-featured-list-card {
    min-height: 132px;
    padding: 18px;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.home-featured-list-avatar {
    width: 70px;
    height: 70px;
    overflow: hidden;
    border: 1px solid #dbe2ea;
    border-radius: 16px;
    background: #eaf2ff;
}

.home-featured-list-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-featured-list-avatar span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #1d4ed8;
    font-size: 28px;
    font-weight: 800;
}

.home-featured-list-heading {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: start;
}

.home-featured-list-heading h3 {
    margin: 0 0 5px;
    font-size: 20px;
}

.home-featured-list-heading p,
.home-featured-list-summary {
    margin: 0;
    color: #64748b;
}

.home-featured-list-summary {
    margin-top: 10px;
}

.home-featured-list-side {
    min-width: 134px;
    display: grid;
    gap: 9px;
    justify-items: end;
    text-align: right;
}

.home-featured-list-side small {
    color: #475569;
}

@media (max-width: 1199.98px) {
    .home-featured-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .home-featured-list-card {
        grid-template-columns: 58px minmax(0, 1fr);
        align-items: start;
    }

    .home-featured-list-avatar {
        width: 58px;
        height: 58px;
        border-radius: 13px;
    }

    .home-featured-list-heading {
        flex-direction: column;
    }

    .home-featured-list-side {
        grid-column: 1 / -1;
        min-width: 0;
        justify-items: stretch;
        text-align: left;
    }

    .home-featured-list-side .btn {
        width: 100%;
    }
}

/* Shared footer and lightweight legal/support pages. */
.site-footer {
    margin-top: 56px;
    padding: 46px 0 22px;
    color: #cbd5e1;
    background: #0f172a;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(0, .75fr));
    gap: 30px;
}

.site-footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
}

.site-footer-logo-image {
    width: auto;
    height: auto;
    max-width: 220px;
    display: block;
    object-fit: contain;
}

.site-footer-logo:hover,
.site-footer-logo:focus-visible {
    background: #eff6ff;
    color: #bfdbfe;
}

.site-footer-brand p {
    max-width: 420px;
    margin: 0;
    color: #94a3b8;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    list-style: none;
}

.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.site-footer-badges {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer-badges span {
    padding: 6px 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 999px;
    color: #e2e8f0;
    font-size: 13px;
}

.site-footer-bottom {
    margin-top: 34px;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(148, 163, 184, .22);
    color: #94a3b8;
    font-size: 13px;
}

.legal-page {
    padding: 46px 0;
}

.legal-panel {
    max-width: 960px;
    margin: 0 auto;
    padding: 34px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .06);
}

.legal-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: #246bfe;
    font-weight: 700;
    font-size: 13px;
}

.legal-panel h1 {
    margin: 0 0 12px;
}

.legal-panel .lead {
    max-width: 760px;
    color: #475569;
}

.legal-content {
    display: grid;
    gap: 18px;
}

.legal-content h2,
.support-grid h2 {
    margin: 0 0 6px;
    font-size: 19px;
}

.legal-content p,
.support-grid p {
    margin: 0;
    color: #475569;
}

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

.support-grid > div {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.support-grid i {
    margin-bottom: 12px;
    display: inline-flex;
    color: #246bfe;
    font-size: 24px;
}

@media (max-width: 991.98px) {
    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .brand-logo {
        height: 36px;
        max-width: 140px;
    }

    .site-footer {
        margin-top: 36px;
        padding: 34px 0 20px;
    }

    .site-footer-logo-image {
        height: 48px;
        max-width: 190px;
    }

    .site-footer-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .site-footer-bottom {
        flex-direction: column;
    }

    .legal-panel {
        padding: 22px;
    }
}
