@font-face {
    font-family: Montserrat;
    src: url("/assets/montserrat-regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Montserrat;
    src: url("/assets/montserrat-medium.ttf") format("truetype");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: Montserrat;
    src: url("/assets/montserrat-semi_bold.ttf") format("truetype");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: Montserrat;
    src: url("/assets/montserrat-bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}
:root {
    font-family: Montserrat, system-ui, sans-serif;
    color: #111827;
    background: #f5f6f8;
    font-size: 13px;
    --navy: #1a2744;
    --muted: #6b7280;
    --line: #e5e7eb;
    --green: #15803d;
    --surface: #fff;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
button,
input,
select {
    font: inherit;
}
button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}
button,
.button {
    cursor: pointer;
}
button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #669bd0;
    outline-offset: 3px;
}
h1,
h2,
h3,
p {
    margin: 0;
}
h1 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.5px;
}
h2 {
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: -0.6px;
}
h3 {
    font-size: 14px;
    line-height: 1.5;
}
p {
    line-height: 1.7;
}
button,
.button {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 14px;
    line-height: 1.5;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.15s,
        border-color 0.15s;
}
button:hover:not(:disabled) {
    filter: brightness(0.96);
}
.primary {
    background: var(--navy);
    color: white;
}
.secondary {
    background: white;
    color: var(--navy);
    border-color: #d7dce4;
}
.danger {
    background: white;
    color: #c83232;
    border-color: #f2b3b3;
}
.quiet {
    background: transparent;
    color: var(--navy);
    padding: 7px 10px;
}
.full-width {
    width: 100%;
}
.small {
    font-size: 11px;
    color: var(--muted);
}
.topbar {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 24px 0 10px;
    background: white;
    border-bottom: 1px solid var(--line);
}
.brand {
    width: 182px;
    height: 51px;
    object-fit: contain;
}
.account {
    display: flex;
    align-items: center;
    gap: 20px;
}
.scope {
    font-size: 11px;
    color: var(--muted);
}
.shell {
    display: grid;
    grid-template-columns: 186px minmax(0, 1fr);
    min-height: calc(100vh - 64px);
}
.sidebar {
    background: white;
    border-right: 1px solid var(--line);
    padding: 30px 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.nav-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 1px;
    padding: 0 12px;
}
.nav-item {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    text-align: left;
    background: white;
    color: #374151;
    margin-bottom: 8px;
    padding: 12px;
    font-size: 11px;
}
.nav-item[aria-current="page"] {
    background: var(--navy);
    color: white;
}
.nav-item > span:first-child {
    font-size: 18px;
    line-height: 1;
}
.nav-count {
    font-size: 10px;
    border-radius: 6px;
    background: #ffffff24;
    padding: 2px 6px;
    margin-left: auto;
}
.sidebar-note {
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
    padding: 20px 12px;
    margin-top: auto;
}
.sidebar-footer {
    font-size: 10px;
    border-top: 1px solid var(--line);
    padding: 20px 12px 0;
    display: flex;
    align-items: center;
    gap: 7px;
}
.status-dot {
    height: 6px;
    width: 6px;
    background: #15803d;
    border-radius: 50%;
}
main {
    min-width: 0;
}
.page-heading {
    min-height: 104px;
    border-bottom: 1px solid var(--line);
    background: white;
    padding: 22px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.page-heading p:last-child {
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
}
.eyebrow {
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 7px;
}
.mode-label {
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 7px 12px;
    font-size: 10px;
    white-space: nowrap;
}
.workspace {
    padding: 30px 32px 40px;
    min-height: calc(100vh - 168px);
    position: relative;
    isolation: isolate;
}
.workspace:before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/assets/cockpit-background.png") center / cover no-repeat;
    mix-blend-mode: multiply;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}
.card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
}
.queue-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 292px;
    gap: 24px;
    align-items: start;
}
.queue-card {
    min-height: 570px;
    padding: 24px 20px;
}
.card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}
.count-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f5f6f8;
    border-radius: 20px;
    padding: 8px 10px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.queue-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.queue-toolbar > p {
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
}
.search-label {
    font-size: 10px;
    color: var(--muted);
    width: min(260px, 100%);
    font-weight: 500;
}
.search-label input {
    margin-top: 6px;
}
.queue-columns,
.request-row {
    display: grid;
    grid-template-columns: minmax(116px, 1.1fr) 60px 65px 80px minmax(
            104px,
            1fr
        );
    align-items: center;
    gap: 12px;
}
.queue-columns {
    padding: 12px;
    background: #f5f6f8;
    border: 1px solid var(--line);
    border-radius: 10px 10px 0 0;
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
}
.request-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}
.request-list:empty {
    border: 0;
}
.request-row {
    padding: 16px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    min-height: 88px;
    background: white;
}
.request-row:last-child {
    border-bottom: 0;
}
.request-row[data-selected="true"] {
    background: #f7f9fc;
}
.request-code {
    text-align: left;
    padding: 0;
    background: transparent;
    color: var(--navy);
    display: block;
    white-space: nowrap;
    border: 0;
    min-width: 0;
}
.request-code strong {
    font-size: 16px;
    letter-spacing: 1.5px;
    display: block;
}
.request-code small {
    display: block;
    font-size: 9px;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--muted);
    margin-top: 4px;
}
.tenant {
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 600;
}
.elapsed {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
.badge {
    font-size: 9px;
    font-weight: 600;
    display: inline-block;
    border-radius: 999px;
    padding: 5px 8px;
    width: max-content;
    background: #f3f4f6;
    color: #6b7280;
}
.badge.active {
    background: #ecfdf5;
    color: #15803d;
}
.row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
}
.row-actions button {
    font-size: 10px;
    padding: 7px 9px;
}
.row-actions .quiet {
    padding: 4px 0;
    font-size: 9px;
    margin-right: 6px;
}
.queue-footnote {
    font-size: 10px;
    color: var(--muted);
    padding-top: 20px;
}
.details-column {
    display: grid;
    gap: 18px;
}
.guidance-card h2 {
    font-size: 23px;
    margin-bottom: 24px;
}
.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 20px;
}
.steps li {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--muted);
}
.steps li > span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    background: #f5f6f8;
    border-radius: 50%;
    color: var(--navy);
    font-weight: 600;
}
.notice {
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    background: #f0fdf4;
    color: #166534;
    padding: 17px;
    font-size: 10px;
    line-height: 1.7;
}
.notice p {
    margin-top: 6px;
}
.empty-state {
    padding: 56px 8px;
    text-align: center;
    color: var(--muted);
}
.empty-state h3 {
    color: var(--navy);
    margin: 14px 0 7px;
}
.empty-state p {
    font-size: 11px;
}
.empty-symbol {
    display: grid;
    place-items: center;
    margin: auto;
    width: 44px;
    height: 44px;
    background: #f5f6f8;
    color: #8794ab;
    border-radius: 12px;
    font-size: 26px;
}
.large-code {
    font-size: 31px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--navy);
    margin: 12px 0 20px;
    font-variant-numeric: tabular-nums;
}
dl {
    margin: 0;
}
dl > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f2f4;
    font-size: 11px;
}
dl > div:last-child {
    border: 0;
}
dt {
    color: var(--muted);
}
dd {
    margin: 0;
    text-align: right;
    font-weight: 500;
}
#selected-open {
    margin-top: 20px;
}
#message {
    color: #873516;
    background: #fff8ef;
    border: 1px solid #efd9be;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 12px;
}
#message:empty {
    display: none;
}
.call-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 292px;
    align-items: start;
    gap: 24px;
}
.viewer {
    background: #eef1f5;
    border: 1px solid #dfe3e8;
    border-radius: 14px;
    overflow: hidden;
    min-width: 0;
}
.viewer-header,
.viewer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 14px 16px;
    font-size: 10px;
    color: var(--muted);
    min-height: 48px;
}
.viewer-header {
    border-bottom: 1px solid #dfe3e8;
}
.viewer-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-weight: 600;
}
.viewer-footer {
    border-top: 1px solid #dfe3e8;
    flex-wrap: wrap;
}
.viewer-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.viewer-tools select {
    font-size: 10px;
    border: 0;
    background: transparent;
    color: #374151;
    padding: 6px;
}
.viewer-tools button {
    font-size: 10px;
}
.video-stage {
    position: relative;
    min-height: 480px;
    height: calc(100vh - 330px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}
#video {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
video {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.video-placeholder {
    position: absolute;
    pointer-events: none;
    text-align: center;
    color: #596579;
    padding: 32px;
}
.video-placeholder > .placeholder-symbol {
    font-size: 46px;
    display: block;
    margin-bottom: 18px;
}
.video-placeholder p {
    font-size: 12px;
}
/* Oversized content must start at the scroll origin. Centering the flex item
   would put its top/left outside the reachable scroll range. */
.viewer.actual-size .video-stage {
    display: block;
}
.viewer.actual-size #video {
    width: max-content;
    height: max-content;
    min-width: 100%;
    min-height: 100%;
}
.viewer.actual-size video {
    flex: none;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
}
.viewer:fullscreen {
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: 0;
}
.viewer:fullscreen .video-stage {
    flex: 1;
    min-height: 0;
}
.session-actions h3 {
    margin-bottom: 10px;
}
.session-actions p {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 18px;
}
.session-actions button + button {
    margin-top: 10px;
}
.session-actions hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 22px 0;
}
.session-actions p.small {
    margin: 10px 0 0;
    text-align: center;
    font-size: 9px;
}
.login-card {
    max-width: 430px;
    margin: 50px auto;
    padding: 36px;
}
.login-card h2 {
    font-size: 26px;
    margin: 12px 0;
}
.login-card > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 12px;
}
.login-mark {
    background: #eef4fa;
    color: #669bd0;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    font-size: 30px;
    margin-bottom: 24px;
}
.login-card form {
    margin-top: 26px;
}
.login-card label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 18px;
}
input {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #dce0e6;
    border-radius: 8px;
    background: white;
    color: var(--navy);
    font-size: 12px;
    min-width: 0;
}
input::placeholder {
    color: #9ca3af;
}
.login-card input {
    margin-top: 8px;
}
.login-card .primary {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}
.login-card > p.login-footnote {
    font-size: 10px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    line-height: 1.7;
}
.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;
}
@media (min-width: 1500px) {
    .workspace {
        padding: 36px 48px;
    }
    .queue-layout,
    .call-layout {
        max-width: 1500px;
    }
    .queue-columns,
    .request-row {
        grid-template-columns: minmax(160px, 1.1fr) 80px 90px 100px minmax(
                140px,
                1fr
            );
    }
}
@media (max-width: 1150px) {
    .queue-layout,
    .call-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .details-column {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    .mode-label {
        display: none;
    }
    .queue-card {
        min-height: 420px;
    }
    .sidebar {
        padding-top: 20px;
    }
    .video-stage {
        height: 60vh;
        min-height: 360px;
    }
    .queue-columns,
    .request-row {
        grid-template-columns: minmax(125px, 1fr) 70px 90px 90px minmax(
                120px,
                1fr
            );
    }
}
@media (max-width: 950px) {
    .shell {
        grid-template-columns: minmax(0, 1fr);
    }
    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 8px 16px;
        gap: 0;
    }
    .nav-label,
    .sidebar-note,
    .sidebar-footer {
        display: none;
    }
    .sidebar nav {
        display: flex;
        gap: 8px;
    }
    .nav-item {
        width: auto;
        margin: 0;
    }
    .topbar {
        padding-right: 10px;
    }
    .scope {
        display: none;
    }
    .page-heading {
        padding: 20px;
        min-height: 90px;
    }
    .workspace {
        padding: 20px 16px;
    }
    .queue-toolbar {
        align-items: end;
    }
    .queue-toolbar > p {
        display: none;
    }
    .queue-columns {
        display: none;
    }
    .request-list {
        border-top: 1px solid var(--line);
        border-radius: 10px;
    }
    .request-row {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }
    .request-row .tenant {
        grid-column: 1;
        grid-row: 2;
    }
    .request-row .elapsed {
        grid-column: 1;
        grid-row: 3;
        color: var(--muted);
    }
    .request-row .row-actions {
        grid-column: 2;
        grid-row: 2 / 4;
        max-width: 155px;
        justify-content: flex-end;
    }
    .request-row > .badge {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }
    .details-column {
        grid-template-columns: 1fr;
    }
    .card {
        padding: 20px;
    }
    .queue-card {
        min-height: 0;
    }
    .login-card {
        margin: 15px auto;
    }
    .viewer-header {
        font-size: 9px;
    }
    .video-stage {
        height: 55vh;
        min-height: 300px;
    }
    .viewer-footer {
        padding: 10px;
    }
    .large-code {
        font-size: 34px;
    }
    .card-heading h2 {
        font-size: 22px;
    }
}
@media (prefers-reduced-motion: reduce) {
    button,
    .button {
        transition: none;
    }
}

[hidden][hidden] {
    display: none;
}
