
#auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: opacity 0.4s;
}

#auth-overlay.auth-hidden {
    opacity: 0;
    pointer-events: none;
}

html.authlock {
    overflow: hidden;
}

html.authlock .wrapper {
    pointer-events: none;
    user-select: none;
}

.auth-card {
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 32px 28px 28px;
    font-family: "SF Pro Display Regular", -apple-system, sans-serif;
    text-align: center;
}

.auth-card .auth-logo {
    width: 120px;
    height: 60px;
    margin: 0 auto 8px;
    background: url(../images/icons/logo.svg) center no-repeat;
    background-size: contain;
}

.auth-card h2 {
    font-family: "SF Pro Display Bold", -apple-system, sans-serif;
    font-size: 20px;
    margin: 0 0 4px;
}

.auth-card .auth-sub {
    font-size: 14px;
    color: #808080;
    margin: 0 0 20px;
}

.auth-card label {
    display: block;
    text-align: left;
    font-size: 13px;
    color: #808080;
    margin: 0 0 4px 12px;
}

.auth-card input {
    width: 100%;
    height: 44px;
    padding: 10px 16px;
    margin-bottom: 14px;
    border: 1px solid #dedede;
    border-radius: 555px;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.auth-card input:focus {
    border-color: #000;
}

.auth-card input.auth-invalid {
    border-color: #d33;
}

.auth-error {
    display: none;
    color: #d33;
    font-size: 13px;
    margin: -6px 0 12px;
}

.auth-error.show {
    display: block;
}

.auth-submit {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 555px;
    background-color: #000;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s;
}

.auth-submit:hover {
    background-color: rgba(0, 0, 0, 0.75);
}

.auth-submit:disabled {
    background-color: rgba(0, 0, 0, 0.4);
    cursor: default;
}


#auth-overlay {
    flex-direction: column;
    gap: 12px;
}

.auth-code {
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    font-family: "SF Pro Display Regular", -apple-system, sans-serif;
    overflow: hidden;
}

.auth-code-toggle {
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: none;
    font: inherit;
    font-size: 14px;
    color: #808080;
    cursor: pointer;
    text-align: center;
}

.auth-code-toggle:hover {
    color: #000;
}

.auth-code-body {
    display: none;
    padding: 0 28px 24px;
    text-align: center;
}

.auth-code.is-open .auth-code-body {
    display: block;
}

.auth-code-hint {
    font-size: 13px;
    color: #808080;
    margin: 0 0 14px;
}

.auth-code-body input {
    width: 100%;
    height: 44px;
    padding: 10px 16px;
    margin-bottom: 12px;
    border: 1px solid #dedede;
    border-radius: 555px;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    box-sizing: border-box;
}

.auth-code-body input:focus {
    border-color: #000;
}

.auth-code-body input.auth-invalid {
    border-color: #d33;
}

.auth-code-submit {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 555px;
    background-color: #000;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
}

.auth-code-submit:hover {
    background-color: rgba(0, 0, 0, 0.75);
}




html.viewer .wrapper,
html.viewer-loading .wrapper {
    grid-template-columns: 1fr;
}


.viewer-bar {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 29rem);
    transform: translateX(-50%);
    z-index: 100003;
    display: flex;
    gap: 10rem;
    white-space: nowrap;
}


.viewer-bar.is-detached {
    position: fixed;
    bottom: 96rem;
}

.viewer-group {
    display: flex;
    gap: 6rem;
    padding: 6rem;
    background: var(--white, #fff);
    border: 1rem solid var(--gray, rgba(0, 0, 0, 0.12));
    border-radius: 555rem;
}

.viewer-btn {
    min-width: 56rem;
    height: 36rem;
    padding: 0 16rem;
    border: none;
    border-radius: 555rem;
    background: none;
    font-family: "SF Pro Display Regular", -apple-system, sans-serif;
    font-size: 20rem;
    color: #000;
    cursor: pointer;
}

.viewer-btn.is-active {
    background: #000;
    color: #fff;
}


#viewer-message {
    position: fixed;
    inset: 0;
    z-index: 100011;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

html.viewer-blocked {
    overflow: hidden;
}

.viewer-message-card {
    width: 380px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 32px 28px 28px;
    font-family: "SF Pro Display Regular", -apple-system, sans-serif;
    text-align: center;
}

.viewer-message-logo {
    width: 120px;
    height: 60px;
    margin: 0 auto 8px;
    background: url(../images/icons/logo.svg) center no-repeat;
    background-size: contain;
}

.viewer-message-card h2 {
    font-family: "SF Pro Display Bold", -apple-system, sans-serif;
    font-size: 20px;
    margin: 0 0 6px;
}

.viewer-message-card p {
    font-size: 14px;
    color: #808080;
    margin: 0;
}


html.viewer [data-viewer-hide] {
    display: none !important;
}


html.viewer-loading [data-viewer-hide] {
    opacity: 0 !important;
    pointer-events: none !important;
}


.access-bar {
    position: fixed;
    left: 20rem;
    top: 20rem;
    z-index: 100004;
    display: flex;
    align-items: center;
    gap: 8rem;
    font-family: "SF Pro Display Regular", -apple-system, sans-serif;
}

.access-bar.is-hidden {
    display: none;
}

.access-clock {
    display: flex;
    align-items: center;
    gap: 7rem;
    height: 44rem;
    padding: 0 14rem;
    background: var(--white, #fff);
    border: 1rem solid var(--gray, rgba(0, 0, 0, 0.12));
    border-radius: 555rem;
    font-size: 14rem;
    
    font-variant-numeric: tabular-nums;
}

.access-clock-icon {
    width: 18rem;
    height: 18rem;
    background: center / contain no-repeat
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

.access-bar.is-warning .access-clock {
    border-color: #d33;
    color: #d33;
}

.access-bar.is-warning .access-clock-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dd3333' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

#access-lock {
    position: fixed;
    inset: 0;
    z-index: 100010;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

html.access-expired {
    overflow: hidden;
}

.access-lock-card {
    width: 420px;
    max-width: calc(100vw - 40px);
    padding: 32px 28px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
    text-align: center;
    font-family: "SF Pro Display Regular", -apple-system, sans-serif;
}

.access-lock-logo {
    width: 120px;
    height: 60px;
    margin: 0 auto 8px;
    background: url(../images/icons/logo.svg) center no-repeat;
    background-size: contain;
}

.access-lock-title {
    font-family: "SF Pro Display Bold", -apple-system, sans-serif;
    font-size: 20px;
    margin: 0 0 4px;
}

.access-lock-text {
    font-size: 14px;
    color: #808080;
    margin: 0;
}
