/* Public admission page: canonical brand assets and two local Inter fonts. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF;
}
/* Static admission shares the scoped pre-role geometry in access/access.css. */
:root { color-scheme: dark; --bal-page-bg: #000; --bal-shell-soft: #070707; --bal-text: #f5f7fb; --bal-text-soft: #c7cfde; --bal-text-muted: #8b96aa; --bal-accent: #0296aa; }
:root[data-theme="light"] { color-scheme: light; --bal-page-bg: #fff; --bal-shell-soft: #f5f7fa; --bal-text: #0c1220; --bal-text-soft: #2d3748; --bal-text-muted: #5e6b80; --bal-accent: #007f91; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-height: 100dvh; margin: 0; display: flex; flex-direction: column; color: var(--bal-text); background: var(--bal-page-bg); font: 500 1rem/1.55 Inter, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
button:focus-visible { outline: 2px solid var(--bal-accent); outline-offset: 4px; }
.access-header { padding: 20px clamp(20px, 4vw, 64px); display: flex; align-items: center; gap: 16px; }
.header-actions { display: flex; align-items: center; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; color: var(--bal-text-soft); border-radius: 50%; }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-moon, [data-theme="light"] .theme-sun { display: none; }
[data-theme="light"] .theme-moon { display: block; }
.access-main { flex: 1; align-items: center; }
form { display: flex; flex-direction: column; }
input { width: 100%; }
.primary-button { display: flex; align-items: center; justify-content: center; font-size: .875rem; }
.form-error p { margin: 0; }
.access-footer { text-align: center; color: var(--bal-text-muted); }
/* Only pre-role screens opt into this layout. Role deck and workspace remain independent. */
.access-flow { --access-line: #586171; }
.tana-shell.access-flow, .access-flow { font-family: Inter, sans-serif; }
.access-flow[data-theme="light"] { --access-line: #9aa4b3; }
.access-flow .access-header { justify-content: flex-end; min-height: 86px; }
.access-flow .header-actions { gap: 12px; }
.access-flow .icon-button { border: 0; background: transparent; }
.access-flow .icon-button:hover { background: var(--bal-shell-soft); }
.access-flow .access-language { position: relative; display: flex; align-items: center; }
.access-flow .access-language select { appearance: none; width: 54px; min-height: 42px; padding: 8px 24px 8px 8px; border: 0; border-radius: 4px; background: transparent; color: transparent; font: 500 .8125rem/1.5 Inter, sans-serif; cursor: pointer; }
.access-flow .language-flag { position: absolute; left: 8px; pointer-events: none; font-size: 1.125rem; line-height: 1; }
.access-flow .access-language option { color: var(--bal-text); background: var(--bal-page-bg); }
.access-flow .access-language svg { position: absolute; right: 6px; width: 12px; height: 12px; pointer-events: none; fill: none; stroke: var(--bal-text-soft); stroke-width: 1.5; }
.access-flow .access-language select:focus-visible { outline: 2px solid var(--bal-accent); outline-offset: 3px; }
.access-flow .access-main { display: flex; flex-direction: column; justify-content: center; gap: 42px; padding: 32px 24px 70px; }
.access-flow .access-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 190px; flex-shrink: 0; }
.access-flow .access-brand img { display: block; width: 100%; height: auto; object-fit: contain; }
.access-flow .access-card { width: min(100%, 336px); padding: 0; border: 0; border-radius: 0; background: transparent; }
.access-flow .access-card h1 { margin: 0 0 24px; text-align: center; font-size: 1.125rem; font-weight: 500; line-height: 1.45; letter-spacing: -.015em; }
.access-flow .access-card input:not([type="radio"]) { height: 50px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--access-line); border-radius: 0; background: transparent; color: var(--bal-text); caret-color: var(--bal-text); text-align: center; font-size: 1.125rem; letter-spacing: .075em; box-shadow: none; }
.access-flow .access-card input:not([type="radio"]):focus { outline: 0; border-bottom: 2px solid var(--bal-accent); }
.access-flow .access-card input::placeholder { color: var(--bal-text-muted); opacity: 1; }
.access-flow .primary-button { min-height: 48px; margin-top: 24px; padding: 10px 6px; gap: 12px; border: 0; border-radius: 0; background: transparent; color: var(--bal-text-soft); font-weight: 500; }
.access-flow .primary-button:hover:not(:disabled) { color: var(--bal-accent); filter: none; }
.access-flow .primary-button > span { margin-left: 0; font-size: inherit; line-height: inherit; }
.access-flow .continue-arrow { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.access-flow .secondary-button { margin: 16px auto 0; border: 0; background: transparent; font-weight: 500; }
.access-flow .text-button { margin: 16px auto 0; }
.access-flow .form-description, .access-flow .field-help { color: var(--bal-text-muted); text-align: center; font-size: .8125rem; margin: 12px 0 16px; }
.access-flow .form-error { margin: 16px 0 0; padding: 0; background: transparent; color: var(--bal-text-soft); font-family: inherit; font-size: .8125rem; text-align: center; }
.access-flow .form-error p + p { margin-top: 6px; }
.access-flow .context-status { font-size: .8125rem; color: var(--bal-text-muted); text-align: center; }
.access-flow .sign-in-organizations { margin: 0; gap: 0; }
.access-flow .access-card .sign-in-organization { padding: 16px 4px; border: 0; border-bottom: 1px solid var(--access-line); border-radius: 0; background: transparent; }
.access-flow .access-card .sign-in-organization.selected { border-color: var(--bal-accent); background: transparent; color: var(--bal-text); }
.access-flow .access-card .sign-in-organization input { accent-color: var(--bal-accent); }
.access-flow .access-footer { padding: 16px 20px 24px; font: 400 .6875rem/1.5 Inter, sans-serif; letter-spacing: .02em; }
.access-flow .access-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 (max-width: 600px) {
  .access-flow .access-header { min-height: 74px; padding: 16px 20px; }
  .access-flow .access-main { padding: 20px 24px 44px; gap: 34px; }
  .access-flow .access-brand { width: 180px; }
}
@media (max-height: 650px) { .access-flow .access-main { justify-content: flex-start; } }

/* Keep both organizations and the header visible on common laptop heights. */
@media (max-height: 800px) {
  .access-flow:not(.preview-entry) .access-header { min-height: 64px; padding: 10px 24px; }
  .access-flow:not(.preview-entry) .access-main { gap: 20px; padding: 12px 24px; }
  .access-flow:not(.preview-entry) .access-brand { width: 160px; }
  .access-flow:not(.preview-entry) .access-footer { padding: 12px 20px; }
}
@media (max-height: 650px) {
  .access-flow .access-main { gap: 16px; padding: 8px 24px; }
  .access-flow .access-brand { width: 140px; }
  .access-flow:not(.preview-entry) .access-main { gap: 16px; padding: 8px 24px; }
  .access-flow:not(.preview-entry) .access-brand { width: 120px; }
  .access-flow .access-footer { padding: 8px 20px; }
  .access-flow:not(.preview-entry) .access-footer { padding: 8px 20px; }
}
