:root {
    color-scheme: light;
    font: 16px/1.5 system-ui, sans-serif;
    color: #171717;
    background: #fff;
    --muted: #606060;
    --line: #e8e8e8;
    --hover: #f4f4f4;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h2, p, form { margin: 0; }

button, .login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .45rem .8rem;
    border: 0;
    border-radius: .55rem;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .875rem;
    font-weight: 550;
    white-space: nowrap;
    cursor: pointer;
}

button:not(:disabled):hover, .login:hover { background-color: var(--hover); }
button:disabled { cursor: default; opacity: .55; }

.primary {
    color: #fff;
    background: #171717;
}

.primary:not(:disabled):hover { background-color: #333; }

:focus-visible {
    outline: 2px solid #171717;
    outline-offset: 3px;
}

.entry {
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 1.25rem;
}

.entry-content {
    display: grid;
    justify-items: center;
    gap: .75rem;
    text-align: center;
}

.login {
    gap: .55rem;
    padding-inline: 1rem;
    border-radius: .75rem;
    font-size: 1.25rem;
    font-weight: 650;
    letter-spacing: -.045em;
    text-decoration: none;
}

.login-icon {
    position: relative;
    width: 1.125rem;
    height: 1.125rem;
    color: #000;
}

.login-icon::before {
    position: absolute;
    inset: .0625rem 0 .0625rem .4rem;
    border: 1.5px solid currentColor;
    border-left: 0;
    border-radius: 0 .2rem .2rem 0;
    content: "";
}

.login-arrow {
    position: absolute;
    top: 50%;
    left: 0;
    width: .6875rem;
    height: 1.5px;
    border-radius: 1px;
    background: currentColor;
    transform: translateY(-50%);
}

.login-arrow::after {
    position: absolute;
    top: 50%;
    right: 0;
    width: .375rem;
    height: .375rem;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    content: "";
}

.status-message {
    color: var(--muted);
    font-size: .875rem;
}

.desktop {
    height: 100vh;
    height: 100dvh;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
}

.viewport {
    --viewer-background: #fafafa;
    position: relative;
    height: 100%;
    background: var(--viewer-background);
}

.screen { width: 100%; height: 100%; }

.connection-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .875rem;
    padding: 1rem;
    background: #fff;
    text-align: center;
}

dialog {
    width: min(calc(100% - 2rem), 21rem);
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: .85rem;
    background: #fff;
    color: inherit;
}

dialog::backdrop { background: rgb(0 0 0 / .18); }
dialog form { display: grid; gap: .875rem; }
dialog h2 { font-size: 1rem; font-weight: 650; }

dialog input {
    width: 100%;
    min-height: 2.75rem;
    padding: .45rem .65rem;
    border: 1px solid #767676;
    border-radius: .55rem;
    background: #fff;
    color: inherit;
    font: inherit;
}
