/* Minimal account entry; shared shell palette and drawer surface. */
.access-dialog {
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #e5e5df;
    border-radius: 22px;
    background: #fff;
    color: #0e1b35;
    box-shadow: 0 28px 70px rgb(14 27 53 / 20%);
    font-family: var(--site-font, sans-serif);
}
.access-dialog::backdrop { background: rgb(14 27 53 / 32%); backdrop-filter: blur(7px); }
.access-dialog[open] { animation: access-enter 240ms cubic-bezier(.22, 1, .36, 1) both; }
.access-dialog[open]::backdrop { animation: access-backdrop 180ms ease-out both; }
.access-dialog.is-closing { animation: access-leave 140ms ease-in both; }
body.access-open { overflow: hidden; }
.access-panel { padding: 26px 28px 20px; font-family: var(--site-font, sans-serif); text-align: start; }
.access-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 26px; }
.access-header h1 { margin: 0; color: #0e1b35; font-size: 1.25rem; line-height: 1.8; font-weight: 800; }
.access-close { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; padding: 0; border: 1px solid #e5e5df; border-radius: 10px; background: #f7f5f1; color: #536075; font: inherit; font-size: 1.5rem; cursor: pointer; transition: background 150ms, color 150ms; }
.access-close:hover { background: #e8f6fd; color: #007eac; }
.access-description { margin: 0 0 20px; color: #536075; font-size: .88rem; line-height: 1.9; }
.access-destination { margin: -12px 0 22px; color: #0e1b35; font-size: .95rem; text-align: start; overflow-wrap: anywhere; }
.access-form { display: grid; gap: 10px; }
.access-form label { color: #24334d; font-size: .83rem; font-weight: 700; }
.access-profile { gap: 16px; }
.access-profile-field { display: grid; align-content: start; gap: 7px; min-width: 0; }
.access-name-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.access-profile input { box-sizing: border-box; width: 100%; min-height: 50px; padding: 10px 12px; border: 1px solid #d9dfe5; border-radius: 12px; outline: none; background: #fff; color: #0e1b35; font: inherit; font-size: 16px; transition: border-color 150ms, box-shadow 150ms; }
.access-profile input:focus { border-color: #009ee0; box-shadow: 0 0 0 3px rgb(0 169 230 / 12%); }
.access-profile input[aria-invalid="true"] { border-color: #cd7777; }
.access-profile .access-help { margin: 0; }
.access-field-error { margin: 0; color: #a53030; font-size: .75rem; line-height: 1.8; overflow-wrap: anywhere; }
.access-input-wrap { position: relative; }
.access-input-wrap > svg { position: absolute; inset-inline-start: 15px; top: 17px; width: 21px; height: 21px; color: #8b95a7; pointer-events: none; }
.access-input-wrap input, .access-code-wrap > input { box-sizing: border-box; width: 100%; min-height: 56px; border: 1px solid #d9dfe5; border-radius: 12px; outline: none; background: #fff; color: #0e1b35; font: inherit; font-size: 16px; transition: border-color 150ms, box-shadow 150ms; }
.access-input-wrap input { padding: 12px 46px 12px 14px; }
.access-input-wrap input::placeholder { color: #8b95a7; font-size: .8rem; }
.access-password .access-input-wrap input { padding: 12px 14px; }
.access-password .access-password-wrap input { padding-left: 74px; }
.access-password-toggle { position: absolute; inset-inline-end: 7px; top: 7px; min-width: 60px; min-height: 42px; padding: 6px; border: 0; border-radius: 8px; background: #f1f7fa; color: #00749f; font: inherit; font-size: .75rem; cursor: pointer; }
.access-password .access-text-button { justify-self: start; margin-block-end: 2px; }
.access-input-wrap input:focus { border-color: #009ee0; box-shadow: 0 0 0 3px rgb(0 169 230 / 12%); }
.access-help { margin: 0 0 12px; color: #6b788c; font-size: .75rem; line-height: 1.9; }
.access-primary { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; gap: 9px; padding: 10px 16px; border: 1px solid transparent; border-radius: 12px; background: #007fae; color: #fff; font: inherit; font-weight: 800; cursor: pointer; transition: background 160ms, box-shadow 160ms, transform 160ms; }
.access-primary:hover:not(:disabled) { background: #006d98; box-shadow: 0 5px 16px rgb(0 127 174 / 18%); transform: translateY(-1px); }
.access-primary:active:not(:disabled) { transform: translateY(0); }
.access-primary:disabled { cursor: wait; opacity: .65; }
.access-primary.is-loading::before { content: ''; width: 15px; height: 15px; border: 2px solid #ffffff60; border-top-color: #fff; border-radius: 50%; animation: access-spin 700ms linear infinite; }
.access-error { margin: 0 0 16px; padding: 10px 12px; border: 1px solid #f1d9d9; border-radius: 10px; background: #fff8f8; color: #a53030; font-size: .8rem; line-height: 1.9; overflow-wrap: anywhere; }
.access-error p, .access-error ul { margin: 0; padding: 0; list-style: none; }
.access-code-wrap { position: relative; direction: ltr; }
.access-code-wrap > input { display: block; padding: 10px; text-align: center; letter-spacing: .7rem; }
.access-code-slots { display: none; }
.access-panel.is-enhanced .access-code-wrap > input { position: absolute; inset: 0; z-index: 1; height: 100%; padding: 0; border: 0; opacity: .01; color: transparent; caret-color: transparent; letter-spacing: normal; }
.access-panel.is-enhanced .access-code-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; pointer-events: none; }
.access-code-slots span { display: grid; height: 54px; place-items: center; border: 1px solid #d9dfe5; border-radius: 10px; background: #fff; color: #0e1b35; font-family: ui-monospace, monospace; font-size: 1.5rem; transition: border-color 150ms, box-shadow 150ms; }
.access-code-wrap:focus-within .access-code-slots span.is-current { border-color: #009ee0; box-shadow: 0 0 0 3px rgb(0 169 230 / 12%); }
.access-code-wrap.has-error .access-code-slots span { border-color: #cd7777; }
.access-code-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block-start: 18px; }
.access-text-button { display: inline-flex; min-height: 40px; align-items: center; padding: 0; border: 0; background: transparent; color: #00749f; text-decoration: none; font: inherit; font-size: .76rem; cursor: pointer; }
.access-text-button:hover:not(:disabled) { color: #005b80; text-decoration: underline; text-underline-offset: 4px; }
.access-text-button:disabled { color: #6b788c; cursor: default; }
.access-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-start: 24px; padding-block-start: 17px; border-top: 1px solid #eceeeF; color: #8b95a7; font-size: .72rem; }
.access-footer a { min-height: 30px; display: inline-flex; align-items: center; color: #536075; }
.access-footer a:hover { color: #00749f; }
.access-footer span { direction: ltr; }
.access-panel :is(button, a, input):focus-visible { outline: 3px solid #00a9e64d; outline-offset: 3px; }
.access-status { position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }
.access-content { opacity: 1; filter: blur(0); transform: translateY(0); transition: opacity 140ms ease, filter 140ms ease, transform 180ms ease; }
.access-content.is-changing { opacity: 0; filter: blur(3px); transform: translateY(4px); pointer-events: none; }
.access-panel [hidden] { display: none !important; }
.access-page { display: grid; min-height: calc(100dvh - var(--topbar-height)); place-items: center; padding: 36px 16px; background: #fafaf8; }
.access-standalone { width: min(460px, 100%); border: 1px solid #e5e5df; border-radius: 22px; background: #fff; box-shadow: 0 16px 40px rgb(14 27 53 / 6%); }
.topbar .access-trigger { white-space: nowrap; }
@keyframes access-enter { from { opacity: 0; transform: translateY(10px) scale(.98); filter: blur(3px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes access-leave { to { opacity: 0; transform: translateY(5px) scale(.99); } }
@keyframes access-backdrop { from { background: rgb(14 27 53 / 0%); backdrop-filter: blur(0); } }
@keyframes access-spin { to { transform: rotate(360deg); } }
@media (max-width: 540px) {
    .access-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 18px; }
    .access-panel { padding: 22px 20px 16px; }
    .access-header { margin-block-end: 22px; }
    .access-header h1 { font-size: 1.12rem; }
    .access-code-slots { gap: 7px; }
    .access-code-slots span { height: 49px; }
    .access-code-actions { flex-wrap: wrap; }
    .access-page { align-items: start; padding-block-start: 30px; }
    .access-close { flex-basis: 40px; width: 40px; height: 40px; }
}
@media (max-width: 350px) { .access-name-row { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
    .access-dialog, .access-dialog::backdrop, .access-content, .access-panel * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
