:root {
    color-scheme: light;
    --ink: #132634;
    --muted: #607482;
    --paper: #f5f8f6;
    --surface: #fff;
    --subtle: #edf3f1;
    --line: #dce7e3;
    --brand: #096b79;
    --brand-bright: #0c9097;
    --success: #087a55;
    --focus: rgba(12, 144, 151, 0.24);
}
* {
    box-sizing: border-box;
}
html {
    min-height: 100%;
    background: var(--paper);
}
body {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family:
        'IBM Plex Sans',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    -webkit-font-smoothing: antialiased;
}
button,
input,
select {
    font: inherit;
}
button,
a,
summary {
    -webkit-tap-highlight-color: transparent;
}
a {
    color: inherit;
}
.page-shell {
    width: min(1180px, calc(100% - 48px));
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto 1fr auto;
}
.topbar {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}
.brand,
.back-link,
.primary-action {
    text-decoration: none;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.brand-mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--surface);
    background: var(--brand);
    font-family: 'Sora', sans-serif;
    font-size: 21px;
    font-weight: 700;
}
.brand-copy strong,
.brand-copy small {
    display: block;
}
.brand-copy strong {
    font-family: 'Sora', sans-serif;
    font-size: 17px;
    letter-spacing: -0.02em;
}
.brand-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}
.back-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    transition:
        border-color 160ms ease,
        background-color 160ms ease;
}
.back-link:hover {
    border-color: #b9d1cc;
    background: var(--subtle);
}
.back-link svg,
.primary-action svg,
.trust-row svg,
.video-mark svg,
.icon-button svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.main-content {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
    align-items: center;
    gap: clamp(56px, 8vw, 108px);
    padding: 68px 0 72px;
}
.intro {
    max-width: 650px;
}
.status-line {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
}
.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(8, 122, 85, 0.11);
}
h1 {
    max-width: 620px;
    margin: 22px 0 18px;
    font-family: 'Sora', sans-serif;
    font-size: clamp(38px, 5.2vw, 67px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-wrap: balance;
}
.intro-copy {
    max-width: 62ch;
    margin: 0;
    color: var(--muted);
    font-size: clamp(16px, 1.7vw, 18px);
    line-height: 1.65;
}
.primary-action {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 31px;
    padding: 0 19px;
    border-radius: 10px;
    color: var(--surface);
    background: var(--brand);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(9, 107, 121, 0.18);
    transition:
        background-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}
.primary-action:hover {
    background: #075b67;
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(9, 107, 121, 0.22);
}
.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 13px 22px;
    margin-top: 28px;
    color: #405762;
    font-size: 13px;
    font-weight: 600;
}
.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.trust-row svg {
    width: 16px;
    height: 16px;
    color: var(--success);
}
.access-panel {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 18px 42px rgba(19, 38, 52, 0.08);
}
.panel-heading {
    display: flex;
    align-items: center;
    gap: 15px;
}
.video-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--surface);
    background: var(--brand);
}
.video-mark svg {
    width: 25px;
    height: 25px;
}
.panel-heading h2,
.join-room h3 {
    margin: 0;
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.02em;
}
.panel-heading h2 {
    font-size: 19px;
}
.panel-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}
.path-summary {
    margin: 27px 0 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.path-summary > div {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 2px 10px;
    padding: 14px 0;
}
.path-summary > div + div {
    border-top: 1px solid var(--line);
}
.path-summary span {
    grid-row: 1 / span 2;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--subtle);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
}
.path-summary strong {
    font-size: 13px;
}
.path-summary small {
    color: var(--muted);
    font-size: 12px;
}
.technical-access {
    border-radius: 12px;
    background: var(--subtle);
}
.technical-access summary {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 14px;
    border-radius: 12px;
    color: #405762;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 700;
}
.technical-access summary::-webkit-details-marker {
    display: none;
}
.technical-access summary::after {
    content: '+';
    font-size: 19px;
    font-weight: 500;
}
.technical-access[open] summary::after {
    content: '–';
}
.technical-access[open] summary {
    border-bottom: 1px solid var(--line);
    border-radius: 12px 12px 0 0;
}
.technical-note {
    margin: 14px 14px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}
#loginForm {
    display: grid;
    gap: 14px;
    padding: 14px;
}
.field {
    display: grid;
    gap: 7px;
}
.field label {
    color: #405762;
    font-size: 12px;
    font-weight: 700;
}
.field input,
.field select,
#customRoomInput {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #c9d8d4;
    border-radius: 10px;
    outline: none;
    color: var(--ink);
    background: var(--surface);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}
.field input:focus,
.field select:focus,
#customRoomInput:focus {
    border-color: var(--brand-bright);
    box-shadow: 0 0 0 4px var(--focus);
}
.technical-submit,
.icon-button {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}
.technical-submit {
    padding: 0 16px;
    color: var(--surface);
    background: var(--brand);
}
.technical-submit:hover {
    background: #075b67;
}
.technical-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}
.join-room {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.join-room[hidden] {
    display: none;
}
.join-room h3 {
    margin-bottom: 15px;
    font-size: 16px;
}
.join-actions {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 9px;
    margin-top: 12px;
}
.icon-button {
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--brand);
    background: var(--surface);
}
.icon-button svg {
    width: 19px;
    height: 19px;
}
.footer {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}
.footer nav {
    display: flex;
    gap: 18px;
}
.footer a {
    text-decoration: none;
}
.footer a:hover {
    color: var(--brand);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
:focus-visible {
    outline: 3px solid var(--brand-bright);
    outline-offset: 3px;
}
@media (max-width: 840px) {
    .page-shell {
        width: min(100% - 32px, 680px);
    }
    .main-content {
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 52px 0 56px;
    }
    .intro {
        max-width: none;
    }
    .access-panel {
        width: 100%;
    }
}
@media (max-width: 520px) {
    .page-shell {
        width: min(100% - 24px, 470px);
    }
    .topbar {
        min-height: 76px;
    }
    .brand-copy small {
        display: none;
    }
    .back-link {
        padding: 0 11px;
    }
    .main-content {
        gap: 34px;
        padding: 42px 0 46px;
    }
    h1 {
        margin-top: 18px;
        font-size: clamp(34px, 12vw, 48px);
    }
    .intro-copy {
        font-size: 16px;
    }
    .primary-action {
        width: 100%;
    }
    .trust-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .access-panel {
        padding: 21px;
        border-radius: 14px;
    }
    .footer {
        min-height: 92px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
