/* InkAtlas 2.2.2 — safe-touch UI hotfix (additive: no reading or cloud changes)
   iPhone Dynamic Island / Home Indicator, iPad split-screen / landscape,
   Safari and Add-to-Home-Screen PWA. */
:root {
  --ia-safe-top: env(safe-area-inset-top, 0px);
  --ia-safe-right: env(safe-area-inset-right, 0px);
  --ia-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ia-safe-left: env(safe-area-inset-left, 0px);
  --ia-hit: 46px;
}
html { background: var(--cream); overflow-x: clip; }
body { min-height: 100svh; overflow-x: clip; -webkit-tap-highlight-color: transparent; }
.app { min-height: 100svh; }
.main { min-width: 0; }
/* Opaque reserved status-bar area instead of letting decorative content sit below iOS chrome. */
body::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0;
  height: var(--ia-safe-top); background: var(--cream);
  pointer-events: none; z-index: 101;
}
html[data-reader-paper],
html[data-reader-paper] body,
html[data-reader-paper] body::before { background-color: var(--reader-paper-bg); }

.sidebar {
  height: 100svh;
  height: 100dvh;
  padding-top: calc(26px + var(--ia-safe-top));
  padding-bottom: calc(18px + var(--ia-safe-bottom));
  padding-left: max(18px, var(--ia-safe-left));
  overflow-y: auto; overscroll-behavior-y: contain;
}
.sidebar .nav-item { min-height: 49px; }
.brand { padding-bottom: 26px; }
.sidebar-spacer { min-height: 18px; }
.topbar {
  height: auto;
  min-height: calc(77px + var(--ia-safe-top));
  padding-top: calc(10px + var(--ia-safe-top));
  padding-bottom: 10px;
  padding-left: max(28px, calc(var(--ia-safe-left) + 20px));
  padding-right: max(26px, calc(var(--ia-safe-right) + 18px));
  gap: 12px; position: sticky; top: 0; z-index: 9;
}
.top-actions { flex-shrink: 0; }
.topbar .icon-btn, .topbar .account-pill, .topbar .shelf-action,
.r-icon, .r-text, .plain-close, .page-bottom button {
  min-width: var(--ia-hit); min-height: var(--ia-hit);
  display: inline-flex; align-items: center; justify-content: center;
  touch-action: manipulation;
}
.topbar .shelf-action { padding: 0 14px; white-space: nowrap; }
.reader { height: 100svh; height: 100dvh; }
.reader-top {
  height: auto;
  min-height: calc(76px + var(--ia-safe-top));
  padding-top: calc(10px + var(--ia-safe-top));
  padding-bottom: 10px;
  padding-left: max(18px, calc(var(--ia-safe-left) + 12px));
  padding-right: max(18px, calc(var(--ia-safe-right) + 12px));
  flex-shrink: 0;
}
.reader-top-actions { min-width: 0; gap: 6px; }
.reader-title { min-width: 68px; }
.reader-title b { font-size: 16px; line-height: 1.4; }
.reader-toc { padding-bottom: calc(30px + var(--ia-safe-bottom)); }
.assistant-panel { padding-bottom: calc(28px + var(--ia-safe-bottom)); }
.assistant-panel > .panel-head { font-size: 18px; line-height: 1.4; }
.paper-area { padding-bottom: calc(60px + var(--ia-safe-bottom)); }
.reader-prefs {
  top: calc(90px + var(--ia-safe-top));
  right: max(20px, calc(var(--ia-safe-right) + 16px));
  width: min(300px, calc(100vw - 24px - var(--ia-safe-left) - var(--ia-safe-right)));
  max-height: min(68dvh, 620px); overflow-y: auto;
}
.reader-prefs label { min-width: 0; }
.reader-prefs label:has(select) { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
.reader-prefs select { width: 100%; min-width: 0; min-height: var(--ia-hit); }
.reader-prefs input[type=range] { min-height: var(--ia-hit); }
.selection-bar { bottom: calc(22px + var(--ia-safe-bottom)); }
.selection-bar button { min-height: 46px; min-width: 64px; }
.toast { bottom: calc(26px + var(--ia-safe-bottom)); }
/* Keep login, close control, file actions and on-screen keyboard out of the unsafe strip. */
.account-dialog,
.manage-dialog { max-height: calc(100dvh - var(--ia-safe-top) - var(--ia-safe-bottom) - 28px); }
.auth-close { min-width: 48px; min-height: 48px; top: 12px; right: 16px; z-index: 2; }
.auth-form { padding-bottom: calc(28px + var(--ia-safe-bottom)); }
.account-dialog button,.manage-dialog button { touch-action: manipulation; }
.mobile-tabbar { display: none; }
/* Tablet gestures and split-view: protect landscape left/right system edges too. */
@media (min-width: 761px) {
  .page { padding-right: max(26px, calc(var(--ia-safe-right) + 25px)); }
  .reader-top-actions .r-text, .reader-top-actions .r-icon { flex-shrink: 0; }
  .reader-top-actions { gap: clamp(4px, .6vw, 12px); }
}
/* Phones / narrow iPad Stage Manager: common navigation lives in the thumb zone. */
@media (max-width: 760px) {
  :root { --ia-tabbar-height: 67px; }
  .sidebar { width: min(300px, 86vw); z-index: 35; }
  .mobile-menu { display: inline-flex; }
  .topbar {
    min-height: calc(72px + var(--ia-safe-top));
    padding-top: calc(10px + var(--ia-safe-top));
    padding-bottom: 10px;
    padding-left: max(16px, calc(var(--ia-safe-left) + 12px));
    padding-right: max(16px, calc(var(--ia-safe-right) + 12px));
  }
  .topbar #breadcrumb, .device-label { display: none; }
  .top-actions { gap: 5px; }
  .topbar .account-pill { max-width: 96px; padding-inline: 10px; }
  .topbar .shelf-action { padding-inline: 8px; }
  .page {
    padding: 26px max(17px, calc(var(--ia-safe-right) + 14px))
      calc(var(--ia-tabbar-height) + var(--ia-safe-bottom) + 32px)
      max(17px, calc(var(--ia-safe-left) + 14px));
  }
  .main { padding-bottom: calc(var(--ia-tabbar-height) + var(--ia-safe-bottom)); }
  .mobile-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: calc(var(--ia-tabbar-height) + var(--ia-safe-bottom));
    padding: 7px max(7px, calc(var(--ia-safe-right) + 5px))
      calc(8px + var(--ia-safe-bottom))
      max(7px, calc(var(--ia-safe-left) + 5px));
    background: #F4F0E9; border-top: 1px solid #DCD6CD;
    box-shadow: 0 -8px 28px #222B3013;
  }
  .mobile-tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1px; min-height: 48px; border: 0; border-radius: 10px;
    background: transparent; color: #6E7779; font-size: 11px; font-weight: 600;
    line-height: 1.3; padding: 3px 2px; touch-action: manipulation;
  }
  .mobile-tabbar button .ia-tab-icon { font: 24px/1 Georgia, serif; }
  .mobile-tabbar button[aria-current="page"] { background: #E1DBD1; color: #384248; }
  .theme-night .mobile-tabbar { background: #1F282E; border-color: #465159; }
  .theme-night .mobile-tabbar button { color: #BABEBF; }
  .theme-night .mobile-tabbar button[aria-current="page"] { background: #354147; color: #F4F0E9; }
  .book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .add-tile { padding: 14px; text-align: center; }
  .add-tile strong, .add-tile .add-circle { flex-shrink: 0; }
  .add-tile { overflow: hidden; }
  .add-tile span, .add-tile small { max-width: 100%; overflow-wrap: anywhere; }
  .hero { gap: 10px; }
  /* Compact TWO-ROW reader toolbar: no actions squeezed beside Dynamic Island. */
  .reader-top {
    display: grid; grid-template-columns: 48px minmax(0,1fr);
    grid-template-rows: 48px 52px;
    align-content: center;
    min-height: calc(118px + var(--ia-safe-top));
    padding-top: calc(9px + var(--ia-safe-top));
    padding-bottom: 9px;
    padding-left: max(13px, calc(var(--ia-safe-left) + 10px));
    padding-right: max(13px, calc(var(--ia-safe-right) + 10px));
    column-gap: 8px; row-gap: 2px;
  }
  #backLibrary { grid-column: 1; grid-row: 1; }
  .reader-title { grid-column: 2; grid-row: 1; width: 100%; min-width: 0; }
  .reader-title b, .reader-title small { max-width: 100%; }
  .reader-top-actions {
    grid-column: 1 / -1; grid-row: 2;
    display: flex; justify-content: space-around; align-items: center;
    width: 100%; gap: 3px;
  }
  .reader-top-actions > * { flex: 1; min-width: 44px; max-width: 68px; }
  .reader-top-actions .r-text span { display: none; }
  .reader-body { min-height: 0; flex: 1; }
  .paper-area { height: 100%; padding: 16px max(10px,var(--ia-safe-right)) calc(35px + var(--ia-safe-bottom)) max(10px,var(--ia-safe-left)); }
  .reader-prefs { top: calc(124px + var(--ia-safe-top)); right: max(12px, var(--ia-safe-right)); }
  .reader-toc { width: min(88vw,355px); }
  .assistant-panel { width: min(94vw,420px); }
  .selection-bar { left: max(14px,var(--ia-safe-left)); right: max(14px,var(--ia-safe-right)); bottom: calc(20px + var(--ia-safe-bottom)); }
  .toast { bottom: calc(var(--ia-tabbar-height) + var(--ia-safe-bottom) + 16px); }
  body:has(.reader:not(.hidden)) .toast { bottom: calc(20px + var(--ia-safe-bottom)); }
  .account-dialog { width: calc(100vw - 26px); max-width: 480px; border-radius: 15px; }
  .auth-layout { grid-template-columns: 1fr; min-height: 0; }
  .auth-brand { min-height: 155px; padding: 19px 22px; }
  .auth-brand>span { margin: 6px 0 12px; }
  .auth-form { padding: 18px 22px calc(25px + var(--ia-safe-bottom)); }
  .auth-form h2 { padding-right: 38px; }
  .auth-close { right: 8px; top: 5px; }
}
@media (max-width: 390px) {
  .topbar .account-pill { max-width: 76px; }
  .top-actions { gap: 2px; }
  .reader-top-actions > * { min-width: 43px; }
  .hero .hero-ornament img { width: 44px; }
}
/* Landscape phones have little vertical room: keep dialogs scrollable. */
@media (max-height: 520px) and (orientation: landscape) {
  .auth-brand { display: none; }
  .account-dialog { max-height: calc(100dvh - 18px); }
  .reader-top { min-height: calc(98px + var(--ia-safe-top)); }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-tabbar button, .reader-top, .sidebar { transition: none !important; }
}

/* V2.3: desktop/tablet keep persistent sidebar; do not show redundant hamburger. */
.topbar .mobile-menu { display: none; }
@media (max-width: 760px) { .topbar .mobile-menu { display: inline-flex; } }
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  /* In landscape phones CSS width is often >760px; use the mobile shell anyway. */
  .sidebar { position: fixed; width: min(300px, 86vw); transform: translateX(-110%); transition: transform .2s; box-shadow: 10px 0 30px #12251944; z-index: 35; }
  .sidebar.open { transform: translateX(0); }
  .main { width: 100%; flex: 1; }
  .topbar .mobile-menu { display: inline-flex; }
  .topbar #breadcrumb, .device-label { display:none; }
  .topbar { min-height: calc(60px + var(--ia-safe-top)); padding-left: max(12px,var(--ia-safe-left)); padding-right: max(12px,var(--ia-safe-right)); }
  .page { padding-bottom: calc(88px + var(--ia-safe-bottom)); }
  .mobile-tabbar { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); position:fixed; left:0; right:0; bottom:0; z-index:25; background:var(--cream); border-top:1px solid var(--line); padding:4px 10px calc(5px + var(--ia-safe-bottom)); }
  .mobile-tabbar button { border:0; background:transparent; color:var(--ink); min-height:44px; display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:11px; }
  .mobile-tabbar button .ia-tab-icon { font-size:18px; }
  .reader-top-actions { gap: 3px; }
  .reader-top-actions .r-text span { display:none; }
}
/* V2.3: reader overlays never compete with the bottom app navigation. */
body:has(.reader:not(.hidden)) .mobile-tabbar { display: none; }
.reader-top button, .mobile-tabbar button { flex-shrink: 0; }
.reader-top-actions button { overflow: hidden; white-space: nowrap; }
.book-data b, .book-data span, .reader-title b, .topbar #breadcrumb { overflow-wrap: anywhere; }
.apple-signin { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid #273037; border-radius: 9px; background: #171B20; color: #fff; font-weight: 650; cursor: pointer; }
.apple-signin:hover { background: #31383D; }
.auth-provider-note { font-size: 11px; line-height: 1.55; margin: 8px 0 12px; }
.apple-signin:focus-visible, .mobile-tabbar button:focus-visible { outline: 3px solid #B68E56; outline-offset: 2px; }

/* Fit the spread between the running header and the always reachable footer. */
.reader.page-turn-mode .paper-area {
  display: flex;
  flex-direction: column;
  padding-bottom: max(6px, var(--ia-safe-bottom));
}
.reader.page-turn-mode .reading-surface {
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
  scroll-behavior: auto;
  scroll-snap-type: none;
  touch-action: pan-y pinch-zoom;
}
.reader.page-turn-mode .reading-surface::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: var(--spread-length, 100%);
  height: 1px;
  pointer-events: none;
}
.reader.page-turn-mode .book-content {
  width: 100%;
  column-width: auto;
  column-count: var(--spread-columns, 1);
  column-gap: var(--page-column-gap);
  break-inside: auto;
}
.reader.page-turn-mode .book-content :is(p,li,blockquote,section,article,div) { break-inside: auto; }
.reader.page-turn-mode .book-content img { max-height: 90%; object-fit: contain; }
.reader.page-turn-mode .page-bottom { flex: none; width: 100%; margin: 4px auto 0; }
.reader:not(.page-turn-mode) .paper-area { overflow-y: auto; scroll-behavior: auto; touch-action: pan-y pinch-zoom; }
/* The star owns a single sliding drawer on phone, tablet and desktop.
   Keep it out of the reading layout so opening never repaginates a book. */
.reader .reader-body { overflow: hidden; }
.reader .assistant-panel {
  position: absolute; inset: 0 0 0 auto; width: min(360px, 92%);
  z-index: 20; visibility: hidden; pointer-events: none;
  transform: translateX(calc(100% + 48px));
  box-shadow: -12px 0 32px #16252b24;
  overscroll-behavior: contain;
  transition: transform .32s cubic-bezier(.22,1,.36,1), visibility 0s linear .32s;
}
.reader .assistant-panel.open {
  visibility: visible; pointer-events: auto; transform: translateX(0);
  transition-delay: 0s;
}
html[data-reader-paper] #reader #toggleAssistant.active {
  color: var(--reader-control-on-accent);
  background: var(--reader-control-accent);
  border-radius: 7px;
}
@media (prefers-reduced-motion: reduce) {
  .reader .assistant-panel { transition: none; }
}

.membership-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  text-decoration: none;
}
.topbar .membership-entry {
  min-width: var(--ia-hit);
  margin: 0;
  padding: 0 10px;
  white-space: nowrap;
}
.membership-entry:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
/* Membership gold frame and deep green fill, with brighter warm-gold lettering. */
#membershipBtn {
  min-width: 88px;
  min-height: 46px;
  padding: 0 18px;
  flex-shrink: 0;
  border: 2px solid #d8c696;
  border-radius: 9px;
  background: #244434;
  color: #f4e3ad;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .28em;
  text-indent: .28em;
  box-shadow: 0 2px 6px #183b311a;
  transition: background-color .16s ease, box-shadow .16s ease;
}
#membershipBtn:hover {
  color: #f4e3ad;
  border-color: #d8c696;
  background: #2d5140;
  box-shadow: 0 3px 9px #183b312b;
}
#membershipBtn:active { background: #183b31; box-shadow: inset 0 1px 3px #10291e40; }
#membershipBtn:focus-visible { outline: 2px solid #d8c696; outline-offset: 3px; }
@media (max-width:760px) {
  #membershipBtn { min-width: 76px; padding-inline: 12px; }
}
@media (max-width:360px) {
  #membershipBtn { min-width: 66px; padding-inline: 8px; font-size: 13px; letter-spacing: .24em; text-indent: .24em; }
  .topbar .top-actions { gap: 0; }
}
@media (prefers-reduced-motion:reduce) { #membershipBtn { transition: none; } }

/* Keep both shelf actions readable beside the account and theme controls. */
.topbar .account-pill {
  display: block;
  border-width: 2px;
  text-overflow: ellipsis;
}
.topbar #breadcrumb { min-width: 0; }
.theme-night .topbar #feedbackBtn { color: #222B30; }
@media (max-width: 1140px) {
  .topbar .device-label { display: none; }
}
@media (max-width: 390px) {
  .topbar {
    gap: 3px;
    padding-inline: max(8px, var(--ia-safe-left)) max(8px, var(--ia-safe-right));
  }
  .topbar .account-pill { max-width: clamp(46px, calc(100vw - 274px), 76px); }
  .topbar .shelf-action { padding-inline: 5px; }
}

.shelf-dialog {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 55px #15212533;
  width: min(28rem, calc(100vw - var(--ia-safe-left) - var(--ia-safe-right) - 28px));
  max-height: calc(100dvh - var(--ia-safe-top) - var(--ia-safe-bottom) - 28px);
  margin: auto;
  padding: clamp(18px, 4vw, 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.shelf-dialog::backdrop { background: #17212599; }
.shelf-dialog .panel-head { margin-bottom: 16px; color: var(--ink); }
.shelf-dialog h2 { margin: 0; font-size: 1.25rem; }
.shelf-dialog h2:focus { outline: none; }
.shelf-dialog label { display: block; font-size: 14px; }
.shelf-dialog :is(textarea, input) {
  display: block;
  width: 100%;
  margin: 8px 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--muted);
  border-radius: 7px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.shelf-dialog textarea { resize: vertical; }
.shelf-dialog button { min-height: var(--ia-hit); touch-action: manipulation; }
.shelf-dialog .plain-close { color: var(--muted); }
.shelf-dialog :focus-visible, .shelf-action:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.shelf-dialog-status { margin: 8px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.shelf-dialog-status:empty { margin: 0; }
#feedbackInbox { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
#feedbackList { list-style: none; padding: 0; margin: 0; }
#feedbackList li { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; white-space: pre-wrap; }
#feedbackList time { display: block; font-size: 12px; color: var(--muted); }
#feedbackList p { margin: 4px 0; }

/* The modal opens over public catalog content. The personal view is restored
   after entry, and is never painted beneath the signed-out backdrop. */
#entryPage,
html[data-entry="pending"] #app,
html[data-entry] :is(#page, #reader, .mobile-tabbar, #ia-host-pair),
html[data-entry] #closeAccount,
html[data-entry] #authApple:disabled {
  display: none;
}
html[data-entry="login"] #entryPage { display: block; }
html[data-entry="pending"],
html[data-entry="pending"] body { background: #999da0; }
.auth-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 30px/1 Georgia, 'Songti SC', serif;
  letter-spacing: -.04em;
}
.auth-wordmark img { width: 48px; height: 48px; }
.account-dialog .auth-cta,
.account-dialog .auth-guest { min-height: 46px; }
.account-dialog .auth-form input { min-height: 46px; font-size: 16px; }
.account-dialog :is(input, button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
#authTitle:focus:not(:focus-visible) { outline: none; }

html[data-entry] #accountDialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(24px, var(--ia-safe-top)) max(24px, var(--ia-safe-right))
    max(24px, var(--ia-safe-bottom)) max(24px, var(--ia-safe-left));
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
html[data-entry] #accountDialog[open] {
  display: flex;
}
#accountDialog::backdrop {
  background-color: rgba(39, 43, 47, .35);
  -webkit-backdrop-filter: grayscale(.9) blur(8px);
  backdrop-filter: grayscale(.9) blur(8px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-entry="login"] #app { filter: grayscale(.9) blur(8px); }
}
@media (prefers-reduced-transparency: reduce) {
  #accountDialog::backdrop {
    background-color: #555a5e;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
html[data-entry] .auth-layout {
  width: min(860px, 100%);
  margin: auto;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
html[data-entry] .auth-brand { padding: clamp(30px, 4vw, 48px); }
html[data-entry] .auth-brand h2 {
  position: relative;
  z-index: 1;
  margin: 78px 0 6px;
  font-size: clamp(25px, 3vw, 34px);
}
html[data-entry] .auth-brand p { position: relative; z-index: 1; margin: 0; }
html[data-entry] .auth-form {
  padding: clamp(26px, 4.5vw, 48px);
  background: var(--paper);
  overflow: visible;
}
html[data-entry] #authTitle { padding: 0; margin: 0; }
html[data-entry] #authTitle:focus { outline: none; }
html[data-entry] #authState { margin: 8px 0 22px; min-height: 1.8em; }
html[data-entry] .auth-form label { margin-top: 14px; }
html[data-entry] #authSignIn { margin-top: 24px; }
html[data-entry] .auth-cta { margin-top: 9px; }
html[data-entry] .auth-guest { margin: 12px auto 0; }
@media (max-width: 680px), (max-height: 520px) and (max-width: 950px) {
  html[data-entry] #accountDialog {
    padding: max(10px, var(--ia-safe-top)) max(10px, var(--ia-safe-right))
      max(10px, var(--ia-safe-bottom)) max(10px, var(--ia-safe-left));
  }
  html[data-entry] #accountDialog:not([open]) { display: none; }
  html[data-entry] .auth-layout { width: 100%; min-height: 0; grid-template-columns: minmax(0,1fr); border: 0; border-radius: 0; }
  html[data-entry] .auth-brand {
    display: block;
    min-height: 0;
    padding: calc(18px + var(--ia-safe-top)) max(24px, var(--ia-safe-right))
      18px max(24px, var(--ia-safe-left));
  }
  html[data-entry] .auth-wordmark { position: relative; z-index: 1; font-size: 24px; }
  html[data-entry] .auth-wordmark img { width: 36px; height: 36px; }
  html[data-entry] .auth-brand :is(h2, p, .auth-landscape) { display: none; }
  html[data-entry] .auth-form {
    width: min(100%, 470px);
    margin: 0 auto;
    padding: 28px max(24px, var(--ia-safe-right)) calc(22px + var(--ia-safe-bottom)) max(24px, var(--ia-safe-left));
  }
}
