/* Cabinet shell and the compositions of the AirLock edition. */
.airlock-edition {
  --nav-size: 61px;
  --chapter-gap: clamp(14px, 2.2vw, 33px);
  --column: 656px;
  --book-height: clamp(365px, 115vw, 750px);
  --chapter-top: var(--air-safe-top);
  --chapter-height: calc(100dvh - var(--chapter-top));
}
.airlock-edition, .airlock-edition body { max-width: 100%; overflow-x: clip; }
.airlock-edition .stage {
  display: block;
  min-height: 100dvh;
  padding: var(--air-safe-top) max(0px, var(--air-safe-right)) 0 max(0px, var(--air-safe-left));
  background: #122634 var(--stock);
  background-blend-mode: multiply;
}
.airlock-edition .app {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  width: min(100%, var(--column));
  max-width: none;
  margin: 0 auto;
  position: relative;
  min-height: calc(100dvh - var(--air-safe-top));
  background:
    radial-gradient(ellipse at 80% 56%, #3e8ca5a1, transparent 69%),
    radial-gradient(circle, #9ecad442 .8px, transparent 1.1px) 1px 2px/6px 6px,
    linear-gradient(#2c5265 42%, #143348 98%);
  border: 0;
  border-radius: 0;
  box-shadow: 0 12px 31px #07131b8f;
  overflow: visible;
  isolation: isolate;
}
.airlock-edition .app::before { display: none; }
.airlock-edition .app > .header {
  display: flex;
  grid-column: 1/-1;
  position: relative;
  z-index: 11;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
  padding: 4px clamp(14px, 4vw, 22px);
  background: transparent;
  border: 0;
  box-shadow: none;
}
.a-brand { display: inline-flex; gap: .36em; align-items: center; width: max-content; max-width: 100%; }
.a-brand-mark { width: .95em; height: 1.35em; flex: none; }
.a-brand-word {
  font: italic 780 1em/1 var(--font);
  font-synthesis: style;
  letter-spacing: -.055em;
  white-space: nowrap;
  color: var(--ink);
}
.a-brand-word b { font-weight: inherit; color: var(--coral); }
.header .a-brand { font-size: clamp(1.25rem, 5.7vw, 1.58rem); flex-shrink: 0; }
.header .a-brand-word {
  color: var(--ink);
  text-shadow: none;
}
.header .a-brand-word b { color: var(--coral); }
.airlock-edition .web-logout-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  order: 3;
  min-height: 44px;
  margin: 0 0 0 auto;
  flex: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  padding: 4px 21px 7px 24px;
  font: italic 760 .82rem/1 var(--font);
  font-synthesis: style;
}
.web-logout-button::before {
  content: "";
  position: absolute;
  inset: 1px 0;
  z-index: -1;
  background: var(--plate-cream) center/100% 100% no-repeat;
  transition: filter .16s;
}
@media (hover: hover) and (pointer: fine) {
  .web-logout-button:not(:disabled):hover::before { filter: brightness(1.1) drop-shadow(0 2px 1px #162d3860); }
}
.airlock-edition .content {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 16px clamp(12px, 3.65vw, 24px) calc(var(--nav-size) + var(--air-safe-bottom) + 18px);
  background: transparent;
  overflow: visible;
}
.airlock-edition .screen { min-width: 0; animation: none; }
#account-gate > .button + .button { margin-top: 10px; }
.airlock-edition .nav {
  --nav-inset: 5px;
  position: fixed;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  z-index: 12;
  bottom: 0;
  left: max(var(--air-safe-left), calc((100% - var(--column) + var(--air-safe-left) - var(--air-safe-right)) / 2));
  right: max(var(--air-safe-right), calc((100% - var(--column) + var(--air-safe-right) - var(--air-safe-left)) / 2));
  width: auto;
  max-width: none;
  min-height: var(--nav-size);
  padding: var(--nav-inset) var(--nav-inset) calc(var(--nav-inset) + var(--air-safe-bottom));
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  isolation: isolate;
}
.airlock-edition .nav button {
  --tab-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 70' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='p' x2='.12' y2='1'%3E%3Cstop stop-color='%23fff3d7'/%3E%3Cstop offset='1' stop-color='%23efd4a0'/%3E%3C/linearGradient%3E%3Cpattern id='g' width='5' height='5' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='1' cy='1' r='.4' fill='%23182e37' opacity='.2'/%3E%3Ccircle cx='3' cy='4' r='.4' fill='%23fff7e2' opacity='.65'/%3E%3C/pattern%3E%3C/defs%3E%3Cpath d='M7 3H82L77 61H2Z' fill='%23132c39' stroke='%23132c39' stroke-width='2' transform='translate%281 5%29'/%3E%3Cpath d='M7 3H82L77 61H2Z' fill='%23fff1ce' stroke='%23132c39' stroke-width='2.8'/%3E%3Cpath d='M9 6H79L74 58H5Z' fill='url%28%23p%29'/%3E%3Cpath d='M9 6H79L74 58H5Z' fill='url%28%23g%29'/%3E%3Cpath d='M10 7H78M6 57H73' stroke='%23fff3d5' stroke-width='1.1' fill='none'/%3E%3C/svg%3E");
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 18px 13px;
  justify-items: center;
  align-items: center;
  align-content: center;
  gap: 2px;
  min-width: 0;
  height: 49px;
  min-height: 44px;
  margin: 0;
  padding: 2px 3px 7px;
  border: 0;
  border-radius: var(--print-radius);
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  text-shadow: none;
  font: normal 750 clamp(9px, 2.6vw, 12px)/13px var(--font);
  font-synthesis: none;
  transform: none;
}
.nav-plate {
  position: absolute;
  z-index: -1;
  inset: var(--tab-inset, -2px -1px -2px);
  pointer-events: none;
  background: var(--tab-art) center/100% 100% no-repeat;
  transition: filter .16s ease;
}
.airlock-edition .nav button::after,
.cover-chapter :is(.a-ribbon, .a-pass-title)::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -3;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 110' preserveAspectRatio='none'%3E%3Cg fill='%23fff0d5' stroke='%23162d38' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M14 39 2 16 42 32 34 4 72 28 86 11 101 33Z'/%3E%3Cpath d='M252 28 270 4 277 24 310 9 303 35 338 29 320 51Z'/%3E%3Cpath d='M34 78 8 93 43 91 31 108 78 84Z'/%3E%3Cpath d='M265 82 288 107 292 88 331 101 314 75Z'/%3E%3C/g%3E%3Cg stroke='%23a33d32' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M4 51 22 53 M315 58 337 56 M91 5 106 19 M245 101 255 89'/%3E%3C/g%3E%3C/svg%3E") center/100% 100% no-repeat;
  opacity: 0;
}
.airlock-edition .nav button.active {
  --tab-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 70' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='p' x2='.12' y2='1'%3E%3Cstop stop-color='%23f68b6b'/%3E%3Cstop offset='1' stop-color='%23d34d3f'/%3E%3C/linearGradient%3E%3Cpattern id='g' width='5' height='5' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='1' cy='1' r='.4' fill='%23182e37' opacity='.2'/%3E%3Ccircle cx='3' cy='4' r='.4' fill='%23fff7e2' opacity='.65'/%3E%3C/pattern%3E%3C/defs%3E%3Cpath d='M7 3H82L77 61H2Z' fill='%23132c39' stroke='%23132c39' stroke-width='2' transform='translate%281 5%29'/%3E%3Cpath d='M7 3H82L77 61H2Z' fill='%23fff1ce' stroke='%23132c39' stroke-width='2.8'/%3E%3Cpath d='M9 6H79L74 58H5Z' fill='url%28%23p%29'/%3E%3Cpath d='M9 6H79L74 58H5Z' fill='url%28%23g%29'/%3E%3Cpath d='M10 7H78M6 57H73' stroke='%23fff3d5' stroke-width='1.1' fill='none'/%3E%3C/svg%3E");
  z-index: 1;
  background: transparent;
  color: #fff5df;
}
.airlock-edition .nav button:focus-visible { outline: 2px solid #fff3ca; outline-offset: 1px; }
.airlock-edition .nav button:disabled { opacity: .45; }
.airlock-edition .nav button:not(:disabled):active .nav-plate { filter: brightness(.9); }
.airlock-edition .nav button svg { display: block; width: 18px; height: 18px; flex: none; }
.airlock-edition .nav button > span:not(.nav-plate) { display: block; text-align: center; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .airlock-edition .nav button { transition: translate .17s var(--ease-print), scale .17s var(--ease-print); }
  .airlock-edition .nav button:not(:disabled):active { translate: 0 3px; scale: .94; }
  .airlock-edition .nav button.active::after,
  .airlock-edition .nav button:not(:disabled):active::after,
  .cover-chapter :is(.a-ribbon, .a-pass-title):not(:disabled):active::after {
    animation: comic-impact .42s var(--ease-print) both;
  }
  @keyframes comic-impact {
    0% { opacity: 0; scale: .8; }
    28% { opacity: 1; scale: 1.28; }
    70% { opacity: .7; scale: 1.38; }
    100% { opacity: var(--impact-rest, 0); scale: 1; }
  }
}
.chapter-heading {
  max-width: 68ch;
  padding: 8px 0 17px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.chapter-heading .subcopy { margin: 0; max-width: 58ch; }
.client-refresh-alert { margin-bottom: 14px; }
.native-fullscreen-controls { margin: 18px 0; }
/* The artwork belongs to the book, underneath the live header, tabs and pages. */
.book-artwork {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}
.book-illustration {
  display: block;
  height: var(--book-height);
  border-radius: inherit;
}
.book-illustration img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
/* Keep a single print treatment for the new illustration across cabinet and login. */
:is(.book-illustration img, .web-auth .account-hero, .comic-turn-art img, .a-brand-mark, .account-cover-title img) {
  filter: saturate(.88) contrast(.98) sepia(.03);
}
.airlock-edition .app:has(> .content > .chapter-sheet:not([hidden])) {
  min-height: var(--chapter-height);
  background: transparent;
}
/* Keep the complete spread behind the scrolling text. */
.app:has(> .content > .chapter-sheet:not([hidden])) .book-illustration {
  position: sticky;
  top: var(--chapter-top);
  height: var(--chapter-height);
  mask-image: none;
}
.app:has(> .content > .chapter-sheet:not([hidden])) .book-illustration::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 54% 45%, #fff1d5ea 22%, #fff1d5d8 65%, #fff1d5b5);
}
.cover-layout {
  position: relative;
  display: grid;
  gap: clamp(5px, 1.1dvh, 10px);
  padding: 0;
}
.cover-masthead, .cover-tagline, .action-note { display: none; }
.cover-masthead .a-brand { gap: .16em; margin: 0; }
.cover-masthead p {
  font: italic 785 .94rem/1.4 var(--font);
  font-synthesis: style;
  text-transform: uppercase;
  letter-spacing: .18em;
  rotate: -3deg;
}
.cover-masthead p::after {
  content: "";
  display: block;
  width: 83%;
  height: .52em;
  margin: .55em auto 0;
  border-top: .19em solid var(--coral);
  border-radius: 50%;
}
/* A single continuous ink outline, including the curved tapered tail. */
.action-note {
  position: relative;
  isolation: isolate;
  z-index: 2;
  width: fit-content;
  max-width: 79%;
  margin: 0 auto 5px;
  padding: .54em 1.1em;
  background: transparent;
  color: var(--ink);
  text-align: center;
  font: italic 800 .83rem/1.16 var(--font);
  font-synthesis: style;
}
.action-note::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: -5px -17px -12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 92' preserveAspectRatio='none'%3E%3Cpath d='M5 42 C6 12 67 2 171 3 C268 2 334 14 334 41 C333 68 270 77 157 74 Q127 87 93 89 Q113 78 119 72 C46 68 4 62 5 42Z' fill='%23fff0d5' stroke='%23162d38' stroke-width='2.8' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.reference-subscription {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 0 6% 21px;
  background: var(--pass-stock) center/100% 100% no-repeat;
}
.a-pass-title {
  --plate: var(--plate-red);
  --plate-fill: var(--coral);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 58px;
  gap: 6px;
  margin: -6px 0 0;
  padding: 4px 10% 8px 12%;
  border: 0;
  background: transparent;
  color: #fff5e1;
  font: italic 840 clamp(1.07rem, 4.6vw, 1.45rem)/1.1 var(--font);
  font-synthesis: style;
  text-align: left;
  text-transform: uppercase;
}
.a-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.a-metric { display: grid; align-content: start; justify-items: center; min-width: 0; gap: 3px; padding: 1px 3px; text-align: center; }
.a-metric + .a-metric { border-left: 1px solid var(--rule); }
.a-metric > .a-icon { width: 25px; height: 25px; color: var(--blue-deep); }
.a-metric dt { font: 740 clamp(.60rem, 2.35vw, .71rem)/1.3 var(--font); text-transform: uppercase; }
.a-metric dd {
  margin: 0;
  max-width: 100%;
  font: italic 825 clamp(.90rem, 3.7vw, 1.32rem)/1.23 var(--font);
  font-synthesis: style;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.reference-access-status {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: #5b4e39;
  background: #f6e9cb;
  font: 740 .67rem/1.3 var(--font);
  letter-spacing: .035em;
  text-align: center;
  text-transform: uppercase;
}
.reference-access-status::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.reference-access-status[data-status="active"] { color: #25402b; background: #ddedb2; }
.reference-access-status[data-status="inactive"] { color: #84392e; background: #f5dfcf; }
.cover-actions, .cover-controls { display: grid; min-width: 0; }
.cover-controls { align-content: start; gap: 8px; }
.cover-action { min-width: 0; }
.cover-action:has(> .a-ribbon[hidden]) { display: none; }
:is(#home-commerce-bubble, [data-paper-id="home-commerce-bubble"]) {
  margin: 0 6%;
  padding: 7px 9px;
  background: var(--paper);
  border-left: 3px solid var(--coral);
  color: var(--ink);
  font-size: .78rem;
  text-align: center;
}
:is(#home-commerce-note, [data-paper-id="home-commerce-note"]):empty { display: none; }
.a-ribbon {
  --plate: var(--plate-red);
  --plate-fill: var(--coral);
  --plate-ink: #fff6e4;
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
  min-height: 62px;
  padding: 8px 10% 13px 12%;
  color: var(--plate-ink);
  font: italic 830 clamp(.93rem, 3.8vw, 1.25rem)/1.12 var(--font);
  font-synthesis: style;
  text-align: left;
  text-transform: uppercase;
  border: 0;
  background: transparent;
}
.a-ribbon.ribbon-blue { --plate: var(--plate-blue); --plate-fill: var(--blue-deep); }
.a-ribbon.ribbon-cream { --plate: var(--plate-cream); --plate-fill: var(--yellow); --plate-ink: var(--ink); }
.a-ribbon-label { display: grid; gap: 2px; padding: 3px 0 3px 9px; border-left: 1px solid currentColor; min-width: 0; }
.a-ribbon-label strong { font: inherit; overflow-wrap: break-word; }
.a-ribbon-label small { font: 650 .72rem/1.2 var(--font); text-transform: none; }
.a-ribbon .a-arrow { width: 20px; }

:is(.a-ribbon, .a-pass-title) {
  isolation: isolate;
  transition: translate .21s var(--ease-print), rotate .22s var(--ease-print), scale .18s var(--ease-print);
}
:is(.a-ribbon, .a-pass-title)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--plate) center/100% 100% no-repeat, linear-gradient(var(--plate-fill), var(--plate-fill)) center/82% 60% no-repeat;
  filter: drop-shadow(0 3px 1px #10273350);
  transition: filter .18s ease;
}
:is(.a-ribbon, .a-pass-title) .a-arrow { transition: translate .22s var(--ease-print); }
:is(.a-ribbon, .a-pass-title):not(:disabled):focus-visible { outline: 3px solid #fdf1c7; outline-offset: -1px; }
:is(.a-ribbon, .a-pass-title):not(:disabled):focus-visible::before { filter: drop-shadow(0 0 2px var(--blue-deep)); }
@media (hover: hover) and (pointer: fine) {
  .airlock-edition .nav button:not(:disabled):not(:active):hover .nav-plate { filter: brightness(1.06); }
  :is(.a-ribbon, .a-pass-title):not(:disabled):hover::before { filter: brightness(1.16) drop-shadow(0 7px 3px #061d2a80); }
}
@media (min-width: 980px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .airlock-edition .nav button:not(:disabled):not(:active):hover { translate: 4px -3px; scale: 1.035; }
  :is(.a-ribbon, .a-pass-title):not(:disabled):hover { translate: 0 -5px; rotate: -.7deg; scale: 1.035; }
  :is(.a-ribbon, .a-pass-title):not(:disabled):hover .a-arrow { translate: 7px 0; }
  :is(.a-ribbon, .a-pass-title):not(:disabled):active .a-arrow { translate: 1px 0; }
}
:is(.a-ribbon, .a-pass-title):not(:disabled):active::before { filter: brightness(.9); }
@media (prefers-reduced-motion: no-preference) {
  :is(.a-ribbon, .a-pass-title):not(:disabled):active { translate: 0 3px; rotate: 0deg; scale: .96; }
}

.chapter-sheet {
  --muted: #263e48;
  padding: clamp(8px, 1vw, 16px) clamp(4px, 1.6vw, 24px) 30px;
}
.chapter-sheet .chapter-heading {
  max-width: none;
  padding: 8px 0 0;
  border: 0;
}
.chapter-sheet .chapter-heading h1 { font: italic 860 clamp(1.65rem, 4.35vw, 3.5rem)/1.06 var(--font); font-synthesis: style; }
.chapter-sheet .eyebrow { color: #94382c; }
:is(.chapter-sheet, .paper-panel, .web-auth, .public-access) .button.primary,
.public-access .btn-primary { --control-bg: #a33d32; text-shadow: 0 1px #2c100845; }
:is(.chapter-sheet, .paper-panel, .web-auth) .button.primary:hover { background-color: #8a2e25; }
:is(.chapter-sheet, .paper-panel, .web-auth, .public-access) .button {
  border-radius: 4px 6px 5px 4px;
  box-shadow: 2px 3px 0 var(--ink), inset 0 1px #ffffff70;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.chapter-sheet, .paper-panel, .web-auth, .public-access) .button:not(:disabled):not([aria-disabled="true"]):hover {
    translate: 0 -2px;
    box-shadow: 2px 5px 0 var(--ink), inset 0 1px #ffffff70;
  }
}
:is(.chapter-sheet, .paper-panel, .web-auth, .public-access) .button:not(:disabled):active {
  box-shadow: inset 1px 2px 3px #172c4155;
}
@media (max-width: 365px) {
  .a-ribbon { gap: 7px; }
}
@media (min-width: 760px) and (max-width: 979px) {
  .airlock-edition { --column: 720px; }
}
@media (min-width: 980px) {
  :is(.airlock-edition body.web-cabinet, body.web-auth:not(.web-link)) {
    --column: 1660px;
    --chapter-top: 7px;
    --chapter-bottom: 20px;
    /* A desktop book is one stable spread, including its illustrated cover. */
    --chapter-height: calc(100dvh - var(--chapter-top) - var(--chapter-bottom));
    --book-height: var(--chapter-height);
    --desktop-nav-width: clamp(152px, 15.25vw, 255px);
    --desktop-column-gap: clamp(11px, 1.5vw, 24px);
  }
  :is(.airlock-edition body.web-cabinet, body.web-auth:not(.web-link)) .stage { padding: var(--chapter-top) clamp(7px, .9vw, 18px) var(--chapter-bottom); }
  .airlock-edition body.web-cabinet .app {
    box-sizing: border-box;
    background: transparent;
    height: var(--book-height);
    min-height: var(--book-height);
    padding: clamp(5px, 1vh, 13px) clamp(10px, 1.65vw, 26px) 21px;
    grid-template-columns: var(--desktop-nav-width) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(10px, 1.3vw, 21px) var(--desktop-column-gap);
    border-radius: 8px;
  }
  .web-cabinet .book-illustration img { object-fit: fill; border-radius: 8px; }
  .web-cabinet .app:has(> .content > .chapter-sheet:not([hidden])) .book-illustration::after {
    background: linear-gradient(90deg, transparent 12%, #fff1d554 17%, #fff1d5df 24% 64%, #fff1d5c9 96%, transparent 99%);
    mask-image: linear-gradient(transparent, #000 3% 96%, transparent);
  }
  .airlock-edition body.web-cabinet .header {
    box-sizing: border-box;
    height: clamp(44px, calc(var(--book-height) * .073), 84px);
    min-height: 0;
    padding: 0 clamp(10px, 1.2vw, 22px);
  }
  .web-cabinet .app:has(> .content:not([hidden]) > .cover-chapter:not([hidden])) > .header .a-brand {
    display: none;
  }
  .airlock-edition body.web-cabinet .header .a-brand {
    font-size: clamp(1.35rem, calc(var(--book-height) * .042), 2.45rem);
  }
  /* Scroll the printed content, not the book. The full-width scrollport
     also preserves the cover's illustrated FAQ ribbon in the left margin. */
  .airlock-edition body.web-cabinet .app > .content {
    grid-column: 1/-1;
    grid-row: 2;
    box-sizing: border-box;
    min-height: 0;
    padding: 0 0 8px calc(var(--desktop-nav-width) + var(--desktop-column-gap));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
  }
  .airlock-edition body.web-cabinet .app > .content::-webkit-scrollbar { display: none; }
  .airlock-edition body.web-cabinet .app:has(.nav[hidden]) > .content { padding-left: 0; }
  /* The cover is a fitted spread, never a scrollable chapter. */
  .airlock-edition body.web-cabinet .app > .content:has(> .cover-chapter:not([hidden])) {
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
  }
  .web-cabinet .content > .cover-chapter:not([hidden]) {
    flex: 1 1 0;
    min-height: 0;
    container-type: size;
  }
  .web-cabinet .comic-turn-print.cover-chapter { container-type: size; }

  .airlock-edition body.web-cabinet .nav {
    --nav-inset: clamp(4px, .57vw, 10px);
    --row: clamp(46px, 3.65vw, 61px);
    --row-gap: clamp(9px, .8vw, 13px);
    position: relative;
    grid-column: 1;
    grid-row: 2;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--row-gap);
    align-self: start;
    padding: clamp(24px, 4.5vh, 47px) var(--nav-inset) 9px;
  }
  .airlock-edition body.web-cabinet .nav button {
    /* A wider illustration uses the same single-plate renderer. */
    --tab-inset: -4px -4px -5px;
    --tab-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 76' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='face' x2='.15' y2='1'%3E%3Cstop stop-color='%23fff3d7'/%3E%3Cstop offset='1' stop-color='%23f4dfb1'/%3E%3C/linearGradient%3E%3Cpattern id='grain' width='7' height='7' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='1.2' cy='2.1' r='.6' fill='%23162d38' opacity='.15'/%3E%3Ccircle cx='5' cy='5' r='.5' fill='%23fff7e2' opacity='.7'/%3E%3C/pattern%3E%3C/defs%3E%3Cpath d='M37 8 307 8 281 63 15 63Z' transform='translate%280 8%29' fill='%23102733' stroke='%23102733' stroke-width='3' stroke-linejoin='miter'/%3E%3Cpath d='M37 8 307 8 281 63 15 63Z' fill='%23fff1ce' stroke='%23102733' stroke-width='4.5' stroke-linejoin='miter'/%3E%3Cpath d='M40 12 299 12 278 59 23 59Z' fill='url%28%23face%29' stroke='%23a77d4d' stroke-width='.65'/%3E%3Cpath d='M40 12 299 12 278 59 23 59Z' fill='url%28%23grain%29'/%3E%3Cpath d='M43 14H270 M25 57H262' fill='none' stroke='%23fff7df' stroke-width='1.5' opacity='.85'/%3E%3Cpath d='M19 67H272' fill='none' stroke='%23355c6d' stroke-width='1.2'/%3E%3Cg fill='%23162d38' opacity='.28'%3E%3Ccircle cx='47' cy='19' r='1'/%3E%3Ccircle cx='55' cy='16' r='.7'/%3E%3Ccircle cx='282' cy='52' r='1'/%3E%3Ccircle cx='270' cy='56' r='.7'/%3E%3Cpath d='M43 24l4 -2 -2 3Z M265 52l5 -3 -2 3Z'/%3E%3C/g%3E%3C/svg%3E");
    display: flex;
    justify-content: center;
    flex-direction: row;
    height: var(--row);
    padding: 0 11% 5px 14%;
    font: italic 850 clamp(.9rem, 1.55vw, 1.48rem)/1.1 var(--font);
    font-synthesis: style;
    letter-spacing: -.025em;
    rotate: -7deg;
  }
  .web-cabinet .nav button svg { display: none; }
  .airlock-edition body.web-cabinet .nav button.active {
    --tab-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 76' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='face' x2='.15' y2='1'%3E%3Cstop stop-color='%23fa987a'/%3E%3Cstop offset='1' stop-color='%23e15a47'/%3E%3C/linearGradient%3E%3Cpattern id='grain' width='7' height='7' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='1.2' cy='2.1' r='.6' fill='%23162d38' opacity='.15'/%3E%3Ccircle cx='5' cy='5' r='.5' fill='%23fff7e2' opacity='.7'/%3E%3C/pattern%3E%3C/defs%3E%3Cpath d='M37 8 306 8 287 23 306 29 283 43 301 49 282 63 15 63Z' transform='translate%280 8%29' fill='%23102733' stroke='%23102733' stroke-width='3' stroke-linejoin='miter'/%3E%3Cpath d='M37 8 306 8 287 23 306 29 283 43 301 49 282 63 15 63Z' fill='%23fff1ce' stroke='%23102733' stroke-width='4.5' stroke-linejoin='miter'/%3E%3Cpath d='M40 12 295 12 281 24 296 29 276 43 290 50 279 59 23 59Z' fill='url%28%23face%29' stroke='%23a77d4d' stroke-width='.65'/%3E%3Cpath d='M40 12 295 12 281 24 296 29 276 43 290 50 279 59 23 59Z' fill='url%28%23grain%29'/%3E%3Cpath d='M43 14H270 M25 57H262' fill='none' stroke='%23fff7df' stroke-width='1.5' opacity='.85'/%3E%3Cpath d='M19 67H272' fill='none' stroke='%23355c6d' stroke-width='1.2'/%3E%3Cg fill='%23162d38' opacity='.28'%3E%3Ccircle cx='47' cy='19' r='1'/%3E%3Ccircle cx='55' cy='16' r='.7'/%3E%3Ccircle cx='282' cy='52' r='1'/%3E%3Ccircle cx='270' cy='56' r='.7'/%3E%3Cpath d='M43 24l4 -2 -2 3Z M265 52l5 -3 -2 3Z'/%3E%3C/g%3E%3C/svg%3E");
    --impact-rest: 1;
    color: var(--ink);
  }
  .airlock-edition body.web-cabinet .nav button::after {
    inset: -33% -25% -25% auto;
    width: 58%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 130'%3E%3Cpath d='M9 49 49 41 29 13 72 30 93 2 100 28 153 4 132 40 179 33 143 59 179 76 135 79 158 115 111 94 98 129 78 96 36 118 48 85 4 93 26 66Z' fill='%23fff0cb'/%3E%3Cg fill='%23142e3c'%3E%3Cpath d='M68 47 100 7 94 39 142 12 111 48 167 40 127 61 171 74 118 72 146 105 104 84 98 119 83 83 49 106 68 75 24 83 57 62 20 48Z'/%3E%3Cpath d='M41 25 12 7 31 31Z M151 92 177 108 153 103Z'/%3E%3C/g%3E%3Cpath d='M48 59 96 36 87 54 126 47 105 65 130 76 101 75 108 91 85 79 72 92 76 73 48 80 65 65Z' fill='%23fff0cb'/%3E%3C/svg%3E") center/100% 100% no-repeat;
    transform-origin: 25% 50%;
  }
  .airlock-edition body.web-cabinet .nav button.active::after {
    opacity: var(--impact-rest);
  }
  .web-cabinet .cover-layout {
    height: 100%;
    min-height: 0;
    grid-template: "mast actions" minmax(0, 1fr)
                   "pass actions" auto
                   "help actions" minmax(0, .65fr) / minmax(0, 1.22fr) minmax(0, 1fr);
    gap: min(10px, 1.25cqh) 0;
    padding: 0;
  }
  .web-cabinet .cover-masthead {
    grid-area: mast;
    display: block;
    position: relative;
    isolation: isolate;
    z-index: 2;
    align-self: start;
    justify-self: start;
    width: 87%;
    margin: 0 0 0 4%;
    padding: 0 1% min(2cqh, 14px);
    text-align: center;
    background: radial-gradient(ellipse at 50% 43%, #fff0d5c7 0%, #fff0d56b 46%, transparent 74%);
  }
  .web-cabinet .cover-masthead .a-brand {
    font-size: min(clamp(2rem, 4.6vw, 5.1rem), 9.3cqh);
    width: 100%;
    align-items: flex-end;
    justify-content: center;
    gap: .06em;
    max-width: 100%;
  }
  .web-cabinet .cover-masthead .a-brand-mark {
    width: 1.62em;
    height: 2.12em;
    flex: none;
  }
  .web-cabinet .cover-masthead .a-brand-word {
    padding-bottom: .38em;
    rotate: -3deg;
  }
  .web-cabinet .cover-masthead p {
    margin: -1.65em 0 0 31%;
    font-size: min(clamp(.65rem, 1.15vw, 1.02rem), 2.4cqh);
  }
  .web-cabinet .cover-masthead::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    inset: -11% -6% -13%;
    opacity: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 224' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cpath id='tear' d='M24 60 L36 53 39 44 71 47 83 36 114 38 124 24 150 30 176 18 209 23 222 14 250 19 282 13 313 25 339 20 352 35 380 29 399 42 427 35 439 49 468 47 471 61 492 68 481 85 505 101 490 117 498 135 477 142 479 155 455 158 450 176 421 175 409 190 379 181 362 196 326 190 309 202 280 194 260 206 232 196 205 204 185 193 154 199 143 185 109 190 98 177 73 182 63 164 38 164 42 149 20 137 30 122 12 105 28 90 18 76Z'/%3E%3ClinearGradient id='edge' x1='0' y1='0' x2='.2' y2='1'%3E%3Cstop stop-color='%23ffefd0'/%3E%3Cstop offset='.45' stop-color='%23cfad79'/%3E%3Cstop offset='1' stop-color='%23a78454'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cuse href='%23tear' fill='%23162d38' opacity='.18' transform='translate%282 7%29'/%3E%3Cuse href='%23tear' fill='url%28%23edge%29' stroke='%2372573b' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M35 67 49 58 55 53 75 58 88 46 119 48 129 36 151 41 177 28 213 32 224 25 251 30 281 24 311 36 337 31 350 46 380 40 399 52 428 47 438 59 459 59 461 70 478 75 469 87 491 103 477 119 485 130 467 135 467 147 446 148 440 164 418 163 407 179 379 169 360 184 326 179 308 190 280 183 260 194 232 184 205 192 185 180 155 187 146 173 112 179 100 166 80 170 72 153 50 153 53 143 35 134 43 120 25 105 40 90 32 77Z' fill='%23fff0d5' stroke='%23f9e5bd' stroke-width='2'/%3E%3Cpath d='M39 44 Q43 61 55 53 L71 47 M124 24 Q130 40 151 41 M313 25 L311 36 339 20 M468 47 Q452 54 461 70 L492 68 M450 176 Q445 165 418 163 L421 175 M205 204 Q205 193 185 180 L185 193 M38 164 Q51 151 72 153 L63 164' fill='%23f2d6a2' stroke='%23aa8656' stroke-width='1.2' stroke-linejoin='round'/%3E%3Cg fill='none' stroke='%23f9ebd0' stroke-width='1.3' opacity='.9'%3E%3Cpath d='M78 37 78 43 M96 38 100 44 M162 26 166 33 M228 16 230 24 M288 16 292 24 M352 35 355 41 M475 84 471 92 M474 147 466 151 M365 190 364 182 M286 196 282 189 M169 197 168 188 M87 181 83 173 M27 129 34 126'/%3E%3C/g%3E%3Cg stroke='%23193542' fill='none' stroke-width='2.7' stroke-linecap='round'%3E%3Cpath d='M5 38 17 47 M4 22 29 40 M493 32 513 18 M499 43 516 39'/%3E%3C/g%3E%3C/svg%3E") center/100% 100% no-repeat;
  }
  @media (prefers-reduced-motion: no-preference) {
    #screen-home:not([hidden]) .cover-masthead[data-brand-intro] {
      animation: brand-reveal 1.4s ease-out both;
      transform-origin: center;
    }
    #screen-home:not([hidden]) .cover-masthead[data-brand-intro]::before {
      animation: brand-paper-open 1.4s ease-out both;
      transform-origin: center;
    }
    #screen-home:not([hidden]) .cover-masthead[data-brand-intro] :is(.a-brand, p) {
      animation: brand-ink 1.4s ease-out both;
    }
    @keyframes brand-reveal {
      0%, 15% { transform: perspective(700px) translateZ(-65px); }
      55% { transform: perspective(700px) translateZ(13px); }
      100% { transform: none; }
    }
    @keyframes brand-paper-open {
      0% { opacity: 0; transform: scale(.08,.55) rotate(-3deg); }
      15% { opacity: 1; transform: scale(.24,.72) rotate(-2deg); }
      48% { opacity: 1; transform: scale(1.04,1.02); }
      68% { opacity: .9; transform: none; }
      100% { opacity: 0; transform: scale(1.08); }
    }
    @keyframes brand-ink {
      0%, 20% { opacity: 0; scale: .86; }
      55% { opacity: 1; scale: 1.025; }
      100% { opacity: 1; scale: 1; }
    }
  }
  .web-cabinet .reference-subscription {
    grid-area: pass;
    gap: min(clamp(12px, 1.38vw, 25px), 2.5cqh);
    margin: 0 0 0 27%;
    padding: 0 10% min(clamp(20px, 2vw, 34px), 4cqh);
    rotate: -1.5deg;
  }
  .web-cabinet .a-pass-title {
    min-height: min(clamp(55px, 6.4vw, 102px), 12cqh);
    margin: -8px -3% 0;
    width: 106%;
    padding-inline: 11% 8%;
    font-size: min(clamp(.93rem, 1.65vw, 1.92rem), 3.8cqh);
    letter-spacing: -.025em;
    white-space: nowrap;
  }
  .web-cabinet .a-metric + .a-metric { border-left: 0; position: relative; }
  .web-cabinet .a-metric + .a-metric::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--rule); transform: skewX(-12deg); }
  .web-cabinet .a-metric > .a-icon { width: min(clamp(26px, 3vw, 51px), 6cqh); height: min(clamp(26px, 3vw, 51px), 6cqh); }
  .web-cabinet .a-metric dt { font-size: min(clamp(.59rem, 1.02vw, 1rem), 2.4cqh); }
  .web-cabinet .a-metric dd { font-size: min(clamp(1.04rem, 2.05vw, 2rem), 4.2cqh); }
  .web-cabinet .reference-access-status { font-size: min(clamp(.64rem, 1vw, .97rem), 2.3cqh); }
  .web-cabinet .cover-actions {
    grid-area: actions;
    align-self: start;
    position: relative;
    --action-offset: min(clamp(70px, 7.3vw, 126px), 16cqh);
    margin: var(--action-offset) 1% 0;
    padding-bottom: min(16px, 2cqh);
  }
  .web-cabinet .cover-controls { gap: min(clamp(8px, 1.1vw, 17px), 2cqh); }
  .web-cabinet .cover-action { rotate: -3deg; }
  .web-cabinet .cover-action:nth-last-child(2) { margin-left: -2.5%; }
  .web-cabinet .cover-action:nth-last-child(1) { margin-left: -4%; }
  .web-cabinet .cover-controls .a-ribbon {
    grid-template-columns: clamp(32px, 4.8vw, 75px) minmax(0, 1fr) clamp(23px, 3.65vw, 53px);
    gap: clamp(7px, 1vw, 15px);
    min-height: min(clamp(70px, 7.1vw, 116px), 14cqh);
    padding: min(6px, 1cqh) 11% min(22px, 2.7cqh) 13%;
    font-size: min(clamp(1rem, 1.85vw, 2.05rem), 4.1cqh);
    line-height: 1.06;
  }
  .web-cabinet .cover-controls .a-ribbon .a-icon { width: min(88%, 9cqh); height: auto; aspect-ratio: 1; }
  .web-cabinet :is(.cover-controls .a-ribbon, .a-pass-title) .a-arrow { width: clamp(23px, 3.35vw, 49px); height: auto; aspect-ratio: 1; }
  .web-cabinet .cover-controls .a-ribbon-label { padding-left: clamp(7px, 1.06vw, 17px); }
  .web-cabinet .action-note {
    display: block;
    font-size: min(clamp(.68rem, 1.08vw, 1.04rem), 2.25cqh);
    max-width: 74%;
    padding: .4em 1.15em;
  }
  .web-cabinet .cover-tagline {
    display: block;
    position: absolute;
    z-index: 2;
    left: -12%;
    top: calc(6px - var(--action-offset));
    width: 53%;
    padding: .85em 1.15em 1.65em;
    margin: 0;
    isolation: isolate;
    text-align: center;
    text-transform: uppercase;
    font: italic 880 min(clamp(.72rem, 1.32vw, 1.19rem), 2.5cqh)/1.15 var(--font);
    text-wrap: balance;
  }
  .web-cabinet .cover-tagline::before {
    content: "";
    position: absolute;
    inset: 0 -5px -14px;
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 150' preserveAspectRatio='none'%3E%3Cpath d='M5 57 C6 19 63 3 151 3 C237 3 296 22 296 58 C294 96 239 113 146 112 Q93 131 12 147 Q62 119 69 104 C22 92 5 76 5 57Z' fill='%23fff0d5' stroke='%23162d38' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  }
  .web-cabinet .cover-action:has(:is(#home-pay, [data-paper-id="home-pay"])) .action-note {
    margin-left: auto;
    margin-right: 4%;
    max-width: 52%;
  }
  .web-cabinet .cover-help {
    grid-area: help;
    position: relative;
    align-self: end;
    width: clamp(270px, 31vw, 507px);
    grid-template-columns: clamp(25px, 3.1vw, 51px) minmax(0, 1fr) 20px;
    min-height: min(clamp(62px, 6vw, 99px), 12cqh);
    margin: 0 0 min(9px, 1cqh) calc(-1 * clamp(141px, 15vw, 245px));
    font-size: min(clamp(.91rem, 1.58vw, 1.76rem), 3.5cqh);
    white-space: nowrap;
    rotate: -3deg;
  }
  .web-cabinet .cover-help .a-icon { width: 100%; height: auto; aspect-ratio: 1; }
  .web-cabinet .cover-layout:has(#home-trial:not([hidden]), [data-paper-id="home-trial"]:not([hidden]), #home-commerce-bubble:not([hidden]), [data-paper-id="home-commerce-bubble"]:not([hidden])) .cover-controls .a-ribbon {
    min-height: min(clamp(65px, 6.5vw, 112px), 13cqh);
    font-size: min(clamp(.95rem, 1.8vw, 2rem), 3.8cqh);
  }
  .web-cabinet .cover-layout:has(#home-trial:not([hidden]), [data-paper-id="home-trial"]:not([hidden]), #home-commerce-bubble:not([hidden]), [data-paper-id="home-commerce-bubble"]:not([hidden])) .cover-actions {
    --action-offset: min(90px, 9.5cqh);
  }

}
@media (max-width: 979px) {
  .book-illustration { mask-image: linear-gradient(#000 82%, transparent); }
  /* One vertical illustration, shared by all mobile chapters. Home uses
     the actual artwork without a duplicate inset panel or paper tint. */
  .airlock-edition .app:has(> .content:not([hidden]) > .cover-chapter:not([hidden])) {
    background: var(--paper) var(--stock);
    min-height: calc(100dvh - var(--air-safe-top));
  }
  .app:has(> .content:not([hidden]) > .cover-chapter:not([hidden])) .book-illustration {
    position: absolute;
    inset: 0 0 auto;
    height: calc(100% - var(--nav-size) - var(--air-safe-bottom));
    mask-image: none;
  }
  .app:has(> .content:not([hidden]) > .cover-chapter:not([hidden])) .book-illustration img {
    object-fit: cover;
    object-position: left 55%;
  }
  .airlock-edition .app:has(> .content:not([hidden]) > .cover-chapter:not([hidden])) > .header {
    position: absolute;
    inset: 0 0 auto;
    min-height: 44px;
    padding: 0 5px;
    justify-content: flex-end;
    pointer-events: none;
  }
  .airlock-edition .app:has(> .content:not([hidden]) > .cover-chapter:not([hidden])) > .header .a-brand {
    display: none;
  }
  .airlock-edition .header .web-logout-button { pointer-events: auto; }
  .airlock-edition .app:has(> .content:not([hidden]) > .cover-chapter:not([hidden])) > .content {
    padding: 8px clamp(6px, 1.8vw, 12px) calc(var(--nav-size) + var(--air-safe-bottom) + 5px);
  }
  .cover-chapter .cover-layout {
    --cover-controls-width: min(100%, max(72%, 226px));
    --cover-height: calc(100dvh - var(--air-safe-top) - var(--nav-size) - var(--air-safe-bottom) - 13px);
    --cover-gap: clamp(3px, calc((var(--cover-height) - 430px) * .035), 10px);
    grid-template-rows: minmax(clamp(68px, calc(var(--cover-height) * .22), 200px), auto) auto auto auto;
    align-content: start;
    gap: var(--cover-gap);
    min-height: max(0px, var(--cover-height));
  }
  .cover-chapter .cover-masthead {
    display: block;
    align-self: start;
    justify-self: end;
    width: var(--cover-controls-width);
    padding: 3px 0 3px clamp(18px, 6vw, 30px);
    background: radial-gradient(ellipse at 56% 45%, #fff0d5e8 0%, #fff0d5aa 42%, transparent 74%);
    text-align: center;
  }
  /* The web-only logout sits above the masthead; Telegram needs no reservation. */
  .web-cabinet .app:has(> .header > .web-logout-button:not([hidden])) .cover-chapter .cover-masthead {
    padding-top: 32px;
  }
  .cover-chapter .cover-masthead .a-brand {
    width: 100%;
    font-size: clamp(1.45rem, min(10vw, calc(var(--cover-height) * .067)), 3.5rem);
    align-items: flex-end;
    justify-content: center;
    gap: .06em;
  }
  .cover-chapter .cover-masthead .a-brand-mark { width: 1.38em; height: 1.9em; }
  .cover-chapter .cover-masthead .a-brand-word { padding-bottom: .32em; rotate: -3deg; }
  .cover-chapter .cover-masthead p {
    margin: -1.05em 0 0 31%;
    font-size: clamp(.58rem, 2.5vw, .95rem);
    letter-spacing: .09em;
  }
  .cover-chapter :is(.reference-subscription, .cover-actions, .cover-help) {
    width: var(--cover-controls-width);
    justify-self: end;
  }
  .cover-chapter .reference-subscription {
    gap: clamp(3px, calc((var(--cover-height) - 430px) * .025), 8px);
    padding: 0 6% clamp(9px, calc(var(--cover-height) * .022), 17px);
  }
  .cover-chapter .a-pass-title {
    min-height: clamp(44px, calc(var(--cover-height) * .07), 52px);
    padding: 4px 8% 9px 10%;
    font-size: clamp(.78rem, 3.55vw, 1.35rem);
  }
  .cover-chapter .a-metric > .a-icon { width: clamp(18px, calc(var(--cover-height) * .031), 23px); height: clamp(18px, calc(var(--cover-height) * .031), 23px); }
  .cover-chapter .a-metric { gap: clamp(2px, calc((var(--cover-height) - 430px) * .015), 4px); padding-inline: 1px; }
  .cover-chapter .a-metric dt {
    max-width: 100%;
    font-size: clamp(.51rem, 2.35vw, .71rem);
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
  }
  .cover-chapter .reference-access-status { padding: 3px 7px; }
  .cover-chapter .cover-controls { gap: clamp(2px, var(--cover-gap), 5px); }
  .cover-chapter .a-ribbon {
    min-height: clamp(44px, calc(var(--cover-height) * .08), 62px);
    transition: none;
    grid-template-columns: clamp(20px, 5.5vw, 29px) minmax(0, 1fr) 16px;
    gap: 5px;
    padding: 3px 8% 6px 12%;
    font-size: clamp(.78rem, 3.4vw, 1.2rem);
  }
  .cover-chapter .a-ribbon-label { padding: 2px 0 2px 6px; }
  .cover-chapter .a-ribbon .a-arrow { width: 16px; }
  .airlock-edition .nav {
    background: var(--paper) var(--stock);
    box-shadow: 0 -2px 0 #162d3850;
    gap: 1px;
    padding-inline: 4px;
  }
}
@media (max-height: 460px) and (orientation: landscape) {
  .airlock-edition { --nav-size: 50px; }
  .airlock-edition .app > .header { min-height: 47px; }
  .airlock-edition .nav button {
    display: flex;
    height: 44px;
    flex-direction: row;
    justify-content: center;
    gap: 4px;
  }
}

/* The three illustrated installation frames. */
.setup-picker {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
.setup-picker .switch-device, .setup-picker .product-picker { margin: 0; }
.setup-picker .switch-device {
  min-height: 61px;
  padding: 0;
  background: transparent;
  border: 0;
}
.setup-picker .device-symbol { width: 44px; height: 44px; color: var(--blue-deep); background: transparent; }
.setup-picker .device-symbol .a-icon,
.paper-panel .sheet-device .badge-icon .a-icon,
.paper-panel .device-choice .a-icon { width: 28px; height: 28px; }
.device-art {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: none;
}
.setup-picker .device-symbol .device-art { width: 42px; height: 42px; }
.paper-panel .device-choice {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 8px;
  text-align: left;
}
.paper-panel .device-choice[aria-pressed="true"] { background: var(--blue-lite); }
.paper-panel .device-choice .device-choice-check { width: 22px; height: 22px; justify-self: end; }
.setup-picker .device-mode { font-size: .74rem; }
.setup-picker .tiny-link { padding: 8px 4px; min-height: 44px; font-size: .78rem; }
.app-picker-label { margin: 3px 0 0; }
.product-picker .product {
  min-height: 47px;
  padding: 6px 8px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--print-radius);
}
.product-picker .product.active { border-color: var(--ink); background: var(--blue-lite); }
.product-picker .product .product-icon { width: 27px; height: 27px; flex: none; background: var(--blue-deep); color: var(--surface); border-radius: 4px; }
.product-picker .product.active .product-icon { background: var(--coral); }
.product-picker .check { width: 19px; height: 19px; background: transparent; color: var(--ink); }
.product-picker .check svg { width: 17px; height: 17px; }
:is(#screen-setup, [data-paper-id="screen-setup"]) .story-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 0 16px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
}
:is(#screen-setup, [data-paper-id="screen-setup"]) .story-step::before { display: none; }
.story-art {
  position: relative;
  overflow: hidden;
  display: grid;
  min-width: 0;
  min-height: 108px;
  background: var(--blue-lite);
  border: 1px solid var(--ink);
  border-radius: 6px 4px 6px 4px;
  aspect-ratio: 2.45;
}
.story-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.story-art .story-number {
  position: absolute;
  top: 8px;
  left: 8px;
  color: var(--surface);
  background: var(--coral);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font: italic 700 1rem/1 var(--display);
}
.story-body {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.story-body h2 { margin: 0 0 6px; }
.story-body p { max-width: 76ch; font-size: .875rem; line-height: 1.5; margin: 0 0 8px; }
.story-body .disclosure { margin-top: 9px; }
@media (min-width: 650px) {
  .setup-picker {
    max-width: 850px;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
    column-gap: 26px;
    align-items: center;
  }
  .setup-picker .switch-device { grid-row: 1/3; }
}
@media (min-width: 500px) {
  :is(#screen-setup, [data-paper-id="screen-setup"]) .story-step {
    grid-template-columns: minmax(128px, min(24%, 220px)) minmax(0, 1fr);
    gap: clamp(12px, 2vw, 23px);
    align-items: start;
    margin-bottom: 6px;
    padding-bottom: 12px;
  }
  .story-art { aspect-ratio: 1.85; }
  .story-body .button.full { width: auto; max-width: 100%; margin-inline-end: 8px; }
  .story-body .disclosure { max-width: 660px; }
}

/* Subscription details and published purchase prices. */
.chapter-heading .subcopy:empty, #current-plan-slot:empty, #switch-plan-copy:empty { display: none; }
.subscription-overview {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 16px;
}
.subscription-facts {
  flex: 1 1 440px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
}
.subscription-facts > div {
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.subscription-facts dt {
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: .055em;
  font: 730 .67rem/1.25 var(--font);
}
.subscription-facts dd {
  margin: 4px 0 0;
  font: 780 clamp(.9rem, 1.35vw, 1.28rem)/1.18 var(--font);
  overflow-wrap: anywhere;
}
.subscription-facts small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 550 .74rem/1.25 var(--font);
}
@media (max-width: 370px) {
  .subscription-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
:is(#payment-history, [data-paper-id="payment-history"]) {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  align-self: flex-start;
}
:is(#payment-history, [data-paper-id="payment-history"]) .a-icon { width: 18px; height: 18px; }
.renewal-options, .plan-catalog {
  margin: 15px 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.renewal-options { max-width: 660px; }
.renewal-options h2, .plan-catalog h2 { margin: 0 0 6px; }
.plan-catalog > p { margin: 0 0 12px; }
.plan-options { display: grid; gap: 14px; }
.plan-option {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 9px 0 4px;
  border-top: 1px solid var(--rule);
}
.plan-option h3 { display: flex; gap: 7px; align-items: center; margin: 0; }
.plan-option h3 .a-icon { flex: 0 0 22px; }
.plan-option .button { width: 100%; }
.periods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.period {
  display: grid;
  align-content: start;
  justify-content: stretch;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 0;
  padding: 6px 4px;
  border: 0;
  border-right: 1px dashed var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  text-align: center;
  font: 650 .77rem/1.3 var(--font);
}
.period:last-child { border-right: 0; }
.period:hover { background: transparent; }
.period strong {
  font: italic 700 clamp(1rem, 2.1vw, 1.25rem)/1.1 var(--display);
  font-variant-numeric: tabular-nums;
  color: inherit;
}
button.period strong {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 164px;
  min-height: 40px;
  padding: 4px 9px 7px 13px;
  isolation: isolate;
  color: #fff6e4;
  transition: translate .16s var(--ease-print);
}
button.period strong::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--plate-red) center/100% 100% no-repeat;
  transition: filter .16s ease;
}
.period span, .period small { overflow-wrap: anywhere; white-space: normal; }
.period-gift { display: block; color: var(--blue-deep); font-size: .69rem; }
/* Highlight the server-provided promotional term with a static ink burst.
   Its background stays within the cell; keyboard focus remains independent. */
.period.period-promo {
  background: url("/web/client/edition-period-promo") center / 100% 100% no-repeat;
  border-right-color: transparent;
}
/* Keep the baseline aligned across the row and the burst away from text. */
.periods:has(.period-promo) .period { padding-block: 14px; }
.period-promo .period-days { color: #7c3028; font-weight: 850; }
@media (hover: hover) and (pointer: fine) {
  button.period:not(:disabled):hover strong::before { filter: brightness(1.12) drop-shadow(0 2px 1px #162d3860); }
}
@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) and (pointer: fine) {
    button.period:not(:disabled):hover strong { translate: 0 -2px; }
  }
  button.period:not(:disabled):active strong { translate: 0 1px; }
}
:is(#current-plan-slot, [data-paper-id="current-plan-slot"]) > .tariff-focus {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
:is(#plans-trial, [data-paper-id="plans-trial"]) {
  padding: 13px 16px;
  margin: 0 0 16px;
  background: var(--yellow);
  border: 1px solid var(--rule);
  border-radius: var(--print-radius);
}
:is(#plans-trial, [data-paper-id="plans-trial"]) h2 { margin: 0 0 8px; }
.payment-history-item { padding: 10px 0 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.payment-history-item p { margin: 5px 0; }
@media (min-width: 570px) {
  .plan-options { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
}

/* Referral poster and the route to share it. */
:is(#screen-bonuses, [data-paper-id="screen-bonuses"]) .bonus-hero {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 0;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.bonus-hero > img {
  display: block;
  width: 100%;
  height: auto;
  mask-image: linear-gradient(90deg, transparent, #000 15% 85%, transparent),
    linear-gradient(180deg, transparent, #000 13% 80%, transparent);
  mask-composite: intersect;
}
.bonus-awards h2 { margin: 0 0 8px; }
.bonus-hero .bonus-grid {
  margin: 0;
  padding: 7px 0;
  gap: 0;
  border-block: 1px solid var(--line);
}
.bonus-hero .bonus {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 8px 4px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
}
.bonus-hero .bonus + .bonus { border-left: 1px solid var(--line); }
.bonus-hero .bonus strong { margin: 1px 0 3px; font: italic 700 clamp(1.55rem, 4vw, 2.85rem)/1.06 var(--display); color: var(--coral); }
.bonus-hero .bonus small { color: var(--ink); font-size: .73rem; white-space: normal; }
.share-postcard {
  margin: 13px 0 22px;
  padding: 12px 0 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.share-postcard .ref-share-actions { gap: 9px; margin: 0 0 9px; }
.share-postcard .disclosure { margin-bottom: 0; }
:is(#screen-bonuses, [data-paper-id="screen-bonuses"]) .how { gap: 14px; }
:is(#screen-bonuses, [data-paper-id="screen-bonuses"]) .how-item { align-items: start; background: transparent; border: 0; padding: 0; }
:is(#screen-bonuses, [data-paper-id="screen-bonuses"]) .how-number { background: var(--coral); color: var(--surface); border: 0; border-radius: 4px; }
:is(#screen-bonuses, [data-paper-id="screen-bonuses"]) .ref-stats { margin: 16px 0; gap: 6px; }
:is(#screen-bonuses, [data-paper-id="screen-bonuses"]) .ref-stats > * { border-color: var(--line); background: transparent; border-radius: 4px; }
.bonus-hero .referral-heading { margin: 0; grid-column: 1 / -1; }
:is(#screen-bonuses, [data-paper-id="screen-bonuses"]) .bonus-hero[data-offer="campaign"] {
  gap: 0;
  border: 2px solid var(--ink);
  background: #fff3d8;
  box-shadow: 4px 5px 0 var(--ink);
  border-radius: 3px;
  overflow: hidden;
  margin: 14px 5px 22px 0;
}
.bonus-hero .ref-campaign {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  background: #103c58;
  color: #fff4d8;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}
.ref-campaign .campaign-art {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 70% center;
  border-right: 2px solid var(--ink);
}
.ref-campaign .campaign-copy {
  min-width: 0;
  padding: clamp(9px, 3vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: repeating-conic-gradient(from -15deg at 100% 100%, #af2926 0deg 12deg, #952321 12deg 24deg);
}
.ref-campaign .campaign-badge {
  display: inline-block;
  background: #ffe193;
  color: #70231e;
  padding: 5px 8px;
  font-weight: 850;
  font-size: clamp(.62rem, 2.5vw, .85rem);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ref-campaign .campaign-kicker {
  margin: 8px 0 3px;
  font-weight: 750;
  font-size: clamp(.76rem, 3.4vw, 1.15rem);
  color: inherit;
}
.bonus-hero .ref-campaign h2 {
  margin: 0;
  font: italic 800 clamp(1.65rem, 7.3vw, 4rem)/1.02 var(--display);
  color: #fff4d8;
  text-shadow: 2px 3px 0 #172b37;
  text-wrap: balance;
  overflow-wrap: normal;
}
.bonus-hero[data-offer="campaign"] .bonus-awards { grid-column: 1 / -1; padding: 10px clamp(9px, 3vw, 20px) 12px; }
.bonus-hero[data-offer="campaign"] .bonus-awards h2 { font-size: clamp(1rem, 4vw, 1.45rem); }
.bonus-hero[data-offer="campaign"] .bonus strong { color: #9c2925; font-size: clamp(1.7rem, 7vw, 3rem); }
.bonus-hero .campaign-terms { margin: 8px 0 0; color: var(--ink); }
@media (min-width: 650px) {
  :is(#screen-bonuses, [data-paper-id="screen-bonuses"]) .bonus-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .bonus-hero > img { grid-column: 2; grid-row: 2; }
  .bonus-awards { grid-column: 1; grid-row: 2; }
  :is(#screen-bonuses, [data-paper-id="screen-bonuses"]) .how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Help desk and topic index. */
.diag-card { padding: clamp(12px, 2.8vw, 21px); margin: 0 0 17px; min-width: 0; }
.chapter-sheet .diag-card {
  padding: 12px 0 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.diag-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--blue-deep); }
.diag-heading { display: flex; align-items: center; gap: 10px; margin: 9px 0; }
.diag-heading h2 { margin: 0; }
.diag-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border: 1px solid var(--ink); border-radius: 5px; background: var(--blue-lite); }
.diag-card p { overflow-wrap: anywhere; }
.diag-hero .button { width: auto; max-width: 100%; }
.diag-section-title { margin: 19px 0 11px; }
.diag-back { min-height: 44px; padding: 8px 0; background: none; border: 0; color: var(--blue-deep); font-weight: 650; }
.diag-notice { padding: 10px 12px; border-left: 3px solid var(--blue); background: var(--blue-lite); }
.diag-metrics { margin: 12px 0; }
.diag-metric { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.diag-metric dd { margin: 0; text-align: right; font-weight: 680; overflow-wrap: anywhere; }
.diag-metric[data-tone="ok"] dd { color: var(--green); }
.diag-metric[data-tone="warn"] dd { color: var(--coral); }
.diag-issues { display: grid; gap: 7px; }
.diag-issues button {
  min-height: 47px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  text-align: left;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--print-radius);
}
.diag-issues button span:last-child { justify-self: end; }
.diag-fields, .diag-actions { display: grid; gap: 8px; margin: 14px 0; }
.diag-fields select, .diag-card textarea { max-width: 100%; width: 100%; }
.diag-card textarea { min-height: 145px; resize: vertical; margin: 7px 0; }
.client-id-card { margin-top: 12px; padding-top: 5px; border-top: 1px solid var(--line); }
.client-id-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; align-items: center; gap: 7px; }
.client-id-row label { font-size: .78rem; font-weight: 650; white-space: nowrap; }
:is(#screen-help, [data-paper-id="screen-help"]) :is(#client-id-value, [data-paper-id="client-id-value"]) {
  min-width: 0;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  user-select: all;
}
.client-id-row :is(#copy-client-id, [data-paper-id="copy-client-id"]) { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; color: var(--blue-deep); border: 0; border-radius: 5px; }
:is(#client-id-copy-status, [data-paper-id="client-id-copy-status"]) { margin: 0; font-size: .75rem; }
:is(#client-id-copy-status, [data-paper-id="client-id-copy-status"]):empty { display: none; }
.faq-search { background: transparent; border: 0; border-radius: 0; padding: 0; margin-bottom: 17px; }
.faq-search label { display: flex; gap: 7px; align-items: center; margin-bottom: 6px; }
.faq-search input { width: 100%; }
.faq-search label .a-icon { width: 18px; height: 18px; }
.faq-list .faq-group-title { font: italic 700 1.26rem/1.25 var(--display); margin: 20px 0 4px; }
.faq-list .faq-entry { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; }
.faq-list .faq-entry summary { min-height: 46px; padding-inline: 0; }
.faq-list .faq-entry > div { border: 0; padding: 6px 0 13px; }
.help-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 17px 0 20px; }
.help-contact .button { margin: 0; }
@media (max-width: 355px) { .help-contact .button { font-size: .78rem; } }

.legal-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.help-legal { margin-top: 16px; }
.legal-chip {
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid var(--ink);
  border-radius: 4px 6px 4px 5px;
  background: var(--paper) var(--stock) center/220px;
  box-shadow: 1px 2px 0 var(--ink);
  color: var(--ink);
  font: 700 .79rem/1.25 var(--font);
}
.legal-chip:hover { background-color: var(--blue-lite); }
.legal-chip:active { box-shadow: 0 1px 0 var(--ink); }
.payment-legal {
  margin: 12px 0 8px;
  padding: 9px 0 4px;
  border-top: 1px solid var(--line);
}
.payment-legal p { margin: 0 0 8px; color: var(--muted); font-size: .81rem; line-height: 1.5; }
.airlock-legal-dialog {
  width: min(640px, calc(100% - 24px));
  height: min(640px, calc(var(--modal-viewport-height, 100dvh) - 26px));
  max-height: calc(var(--modal-viewport-height, 100dvh) - 26px);
  padding: clamp(14px, 3.5vw, 28px);
  border: 2px solid var(--ink);
  border-radius: 5px 8px 5px 6px;
  background: var(--paper) var(--stock) center/360px;
  box-shadow: 5px 6px 0 #122c39;
  color: var(--ink);
}
.airlock-legal-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.airlock-legal-dialog::backdrop { background: #0c263cc2; }
.airlock-legal-dialog[data-closing] { pointer-events: none; }
html:has(.airlock-legal-dialog[open]) .scrim { visibility: hidden; }
.airlock-legal-dialog > h2 { margin: 0; }
.airlock-legal-dialog > .legal-actions { justify-content: flex-end; }
.legal-document {
  padding-inline-end: 8px;
  overflow: auto;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
  border-block: 1px solid var(--line);
  font-size: .9rem;
}
.legal-document h3, .legal-document h4 { margin: 14px 0 5px; }
.legal-document p { margin: 8px 0; white-space: pre-line; }
html:has(.airlock-legal-dialog[open]) { overflow-y: hidden; }

/* A single sheet and a soft, continuous fold. Keep native vertical scrolling. */
#content > .screen { touch-action: pan-y pinch-zoom; }
.comic-turn-surface {
  position: fixed;
  z-index: 9;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
  pointer-events: none;
  user-select: none;
}
.comic-turn-sheet {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--paper) var(--stock) center/360px;
  will-change: clip-path;
}
.comic-turn-surface[data-spread] { border-radius: 8px; }
.comic-turn-surface[data-spread] .comic-turn-fold {
  background:
    linear-gradient(var(--fold-light-angle, 145deg), #b59a705c, #fff9eb8c 28%, #fff7e31f 64%, #aa845541),
    var(--paper) var(--stock) center/360px;
}
.comic-turn-viewport { position: absolute; overflow: hidden; }
.comic-turn-print { position: absolute !important; margin: 0 !important; }
.comic-turn-background, .comic-turn-art { position: absolute; pointer-events: none; }
.comic-turn-art img { display: block; width: 100%; height: 100%; }
.comic-turn-tint { position: absolute; inset: 0; }
/* The reverse is a full sheet projected across the crease, not a strip. */
.comic-turn-fold {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  background:
    linear-gradient(var(--fold-light-angle, 145deg), #b59a7048, #fff9eb9c 48%, #fff7e336 72%, #bd9a6b46),
    var(--paper) var(--stock) center/360px;
  will-change: clip-path;
}
.comic-turn-shadow {
  position: absolute;
  inset: 0 auto auto 0;
  width: 68px;
  transform-origin: 0 0;
  background: linear-gradient(90deg,
    transparent 0%, #76552c0a 18%, #73512e25 40%, #fff9e968 49%,
    #59452940 52%, #162d3824 66%, transparent 100%);
  will-change: transform, opacity;
}
.comic-turn-shadow.reverse {
  background: linear-gradient(270deg,
    transparent 0%, #76552c0a 18%, #73512e25 40%, #fff9e968 49%,
    #59452940 52%, #162d3824 66%, transparent 100%);
}

/* The rim and its two curled corners open from a narrow break in the page. */
.airlock-edition:has(body.airlock-overlay-open),
.airlock-edition body.airlock-overlay-open { overflow: hidden; }
.airlock-edition .scrim {
  position: fixed;
  inset: var(--modal-viewport-top, 0px) 0 auto;
  height: var(--modal-viewport-height, 100dvh);
  z-index: 30;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: max(10px, var(--air-safe-top)) max(6px, var(--air-safe-right)) max(10px, var(--air-safe-bottom)) max(6px, var(--air-safe-left));
  background: #0c263cc2;
}
.airlock-edition .scrim[data-closing][hidden] { display: grid !important; pointer-events: none; }
.paper-portal {
  --tear: clamp(19px, 5vw, 39px);
  position: relative;
  isolation: isolate;
  display: grid;
  width: min(100%, 610px);
  max-width: 100%;
  padding: var(--tear);
}
.paper-portal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border: var(--tear) solid transparent;
  border-image: url("/web/client/payment-paper-frame") 110 75 110 75 fill / var(--tear) stretch;
  filter: drop-shadow(0 9px 15px #0415218c);
  pointer-events: none;
}
.paper-portal .paper-panel {
  width: 100%;
  max-width: none;
  max-height: max(48px, calc(var(--modal-viewport-height, 100dvh) - max(10px, var(--air-safe-top)) - max(10px, var(--air-safe-bottom)) - 2 * var(--tear)));
  min-width: 0;
  margin: 0;
  padding: clamp(13px, 3.6vw, 23px);
  background: var(--surface) var(--stock) center/330px;
  border: 0;
  box-shadow: 0 0 12px #c4a16a54;
  border-radius: 3px;
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
  animation: none;
}
.paper-portal .paper-panel:focus { outline: 0; }
.paper-portal .sheet-head h2 { margin: 0 0 5px; }
.paper-panel :is(p, .dialog-body, .tiny) { font-size: .88rem; line-height: 1.55; }
.paper-panel .sheet-handle { display: none; }
.paper-panel .close-icon {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--print-radius);
  color: var(--ink);
}
.paper-panel .close-icon:hover { background: var(--coral-lite); }
.paper-panel .sheet-device { border-color: var(--line); background: var(--surface); border-radius: var(--print-radius); }
.paper-panel .sheet-device .device-text { overflow-wrap: anywhere; }
.paper-panel .sheet-device button { min-height: 44px; flex-shrink: 0; }
.paper-panel .sheet-device .badge-icon { background: transparent; flex: none; }
.paper-panel .price-chosen { background: var(--blue-lite); border: 1px solid var(--line); border-radius: var(--print-radius); }
/* Reserve the recorded video's aspect ratio before metadata arrives. */
#video-dialog #appstore-video {
  --video-height: min(calc(var(--modal-viewport-height, 100dvh) * .58), 560px);
  width: min(100%, calc(var(--video-height) * 464 / 848));
  height: auto;
  max-height: none;
  aspect-ratio: 464 / 848;
  object-fit: contain;
}
.tear-flaps { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.tear-flaps::before, .tear-flaps::after {
  content: "";
  position: absolute;
  width: 32%;
  height: calc(var(--tear) * 1.22);
  filter: drop-shadow(1px 3px 2px #4e3a25b8);
  background: linear-gradient(160deg, #a88966 1%, #f0dbb5 25%, #ffefd1 46%, #d8bd96 74%, #fff4dc 100%);
  clip-path: polygon(0 21%, 7% 11%, 11% 12%, 16% 5%, 21% 11%, 27% 8%, 36% 13%, 45% 13%, 54% 19%, 62% 18%, 70% 28%, 81% 30%, 91% 41%, 100% 48%, 88% 60%, 78% 62%, 65% 77%, 49% 79%, 34% 90%, 25% 84%, 17% 94%, 11% 79%, 6% 66%);
}
.tear-flaps::before { top: 1%; left: 10%; rotate: -10deg; transform-origin: 64% 85%; }
.tear-flaps::after { right: 7%; bottom: 1%; rotate: 172deg; transform-origin: 60% 20%; }
/* The paper and its rim move as one layer. The backdrop never outlasts it.
   Reversals supply the current painted frame through the shared motion controller. */
.scrim[data-opening],
.airlock-legal-dialog[data-opening]::backdrop { animation: paper-shade-in .22s ease-out both; }
.scrim[data-closing],
.airlock-legal-dialog[data-closing]::backdrop { animation: paper-shade-out .22s ease-in both; }
.scrim[data-opening] .paper-portal,
.airlock-legal-dialog[data-opening] { animation: paper-enter .32s cubic-bezier(.25,.55,.3,1) both; }
.scrim[data-closing] .paper-portal,
.airlock-legal-dialog[data-closing] { animation: paper-exit .22s ease-in both; }
/* Keep the shade solid across a handoff, including a return to the parent dialog. */
.scrim[data-opening][data-handoff],
.airlock-legal-dialog[data-handoff]::backdrop { animation: none; }
@keyframes paper-shade-in { from { background-color: var(--paper-from-shade, #0c263c00); } to { background-color: #0c263cc2; } }
@keyframes paper-shade-out { from { background-color: var(--paper-from-shade, #0c263cc2); } to { background-color: #0c263c00; } }
@keyframes paper-enter {
  from {
    opacity: var(--paper-from-opacity, 0);
    clip-path: var(--paper-from-clip, polygon(47% 41%, 55% 45%, 56% 60%, 51% 65%, 47% 60%, 45% 49%));
    transform: var(--paper-from-transform, scale(.97));
  }
  to { opacity: 1; clip-path: polygon(-8% -8%, 108% -8%, 108% 33%, 108% 108%, -8% 108%, -8% 61%); transform: none; }
}
@keyframes paper-exit {
  from {
    opacity: var(--paper-from-opacity, 1);
    clip-path: var(--paper-from-clip, polygon(-8% -8%, 108% -8%, 108% 33%, 108% 108%, -8% 108%, -8% 61%));
    transform: var(--paper-from-transform, none);
  }
  to { opacity: 0; clip-path: polygon(47% 41%, 55% 45%, 56% 60%, 51% 65%, 47% 60%, 45% 49%); transform: scale(.97); }
}
@media (max-height: 470px) {
  .paper-portal { --tear: 16px; }
  .paper-portal .paper-panel { padding: 10px 12px; }
}

/* Final payment frame, from both the cabinet and Telegram checkout. */
.payment-celebration {
  display: flex;
  align-items: center;
  gap: clamp(9px, 3vw, 16px);
  padding: 11px 10px;
  margin: 0 0 12px;
  min-height: 70px;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 18% 65%, #fff6d8 0, #fff6d813 59%, transparent 65%),
    repeating-conic-gradient(from -15deg at 14% 65%, #ddb57c45 0 3.5deg, transparent 3.6deg 12deg),
    var(--yellow);
  border-bottom: 1px solid var(--line);
}
.payment-celebration :is(h1, h2) { font: italic 700 clamp(1.42rem, 4.5vw, 2.05rem)/1.13 var(--display); margin: 0; }
.payment-stamp {
  display: grid;
  place-items: center;
  flex: 0 0 clamp(37px, 12vw, 54px);
  aspect-ratio: 1;
  color: var(--green);
  border: 3px double currentColor;
  border-radius: 50%;
  rotate: -11deg;
  animation: ink-stamp .32s .13s var(--ease-print) both;
}
.payment-stamp svg { width: 68%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes ink-stamp { from { transform: scale(1.24); opacity: .15; } }
#dialog-panel[data-variant="payment-success"] .sheet-head { align-items: center; margin-bottom: 8px; }
#dialog-panel[data-variant="payment-success"] .payment-celebration { margin: 0; flex: 1; }
#dialog-panel[data-variant="payment-success"] .payment-result-copy { margin: 0 0 9px; }
.payment-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px 7% 18px;
  gap: 0 12px;
  background: var(--receipt-stock) center/100% 100% no-repeat;
  margin-bottom: 12px;
}
.payment-facts .row { display: grid; align-content: start; gap: 3px; border: 0; padding: 6px 0; min-width: 0; }
.payment-facts :is(dt, .payment-days span) { color: var(--muted); font-size: .76rem; }
.payment-facts dd { margin: 0; }
.payment-facts .row strong { font: italic 700 clamp(.9rem, 3.85vw, 1.22rem)/1.15 var(--display); overflow-wrap: anywhere; }
.payment-facts .payment-plan { grid-column: 1/-1; border-bottom: 1px solid var(--line); }
.payment-facts .payment-amount { grid-column: 1/-1; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }
.payment-facts .payment-days strong { color: var(--coral); font: italic 700 clamp(1.3rem, 5.5vw, 1.87rem)/1.1 var(--display); }
.payment-facts .payment-days strong::before { content: "+"; }
.standalone-payment .payment-days strong { display: block; }
#dialog-panel[data-variant="payment-success"] .dialog-footer .a-ribbon { min-height: 59px; }

.standalone-payment { min-height: 100dvh; padding: max(18px, var(--air-safe-top)) 9px max(20px, var(--air-safe-bottom)); }
.standalone-payment .shell { max-width: 545px; margin: 0 auto; }
.standalone-payment .identity { display: grid; justify-items: center; gap: 3px; text-align: center; margin-bottom: 12px; }
.standalone-payment .payment-brand { display: block; width: 151px; height: auto; }
.standalone-payment .tag, .standalone-payment .helper, .standalone-payment .footer { color: var(--muted); font-size: .84rem; }
.standalone-payment .price { font: italic 700 clamp(1.7rem, 7vw, 2.55rem)/1.18 var(--display); }
.standalone-payment .line { border-bottom: 1px solid var(--line); margin: 13px 0; }
.standalone-payment .paper-panel { max-height: none; }
.standalone-payment .input { display: block; width: 100%; margin: 6px 0; }
.standalone-payment .button { margin-top: 9px; }
.standalone-payment .footer { text-align: center; margin-top: 12px; }
.standalone-payment .status-box { background: var(--blue-lite); padding: 9px; border-radius: var(--print-radius); }
.standalone-payment .error { color: var(--coral); overflow-wrap: anywhere; }
.standalone-payment .error:empty, .standalone-payment .fallback:not(.visible) { display: none; }
.standalone-payment .fallback { margin-top: 11px; }
.standalone-payment .fallback a { color: var(--blue-deep); text-decoration: underline; }
.standalone-payment .success-data { grid-column: 1/-1; margin: 3px 0; white-space: pre-line; }
.standalone-payment .payment-days { grid-column: 1/-1; }

/* Email entry and verified linking use the same typography and controls. */
.web-auth .stage { display: grid; grid-template-columns: minmax(0, 1fr); place-items: start center; padding: max(12px, var(--air-safe-top)) 12px 32px; background: transparent; }
.web-auth:not(.web-link) .stage { min-height: 100dvh; background: #122634 var(--stock); background-blend-mode: multiply; }
.web-auth .account-shell { width: min(100%, 550px); min-height: 0; border: 0; border-radius: 5px; background: transparent; box-shadow: none; overflow: visible; }
.web-auth .account-shell::before { display: none; }
.web-auth .account-art { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; overflow: hidden; }
.web-auth .account-hero { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.web-auth:not(.web-link) .account-shell { position: relative; isolation: isolate; min-height: calc(100dvh - 44px); padding: 12px; }
.web-auth .account-cover { position: relative; min-height: clamp(145px, 42vw, 235px); display: flex; justify-content: center; align-items: flex-start; }
.account-cover-title { position: relative; width: min(64%, 280px); padding: 0 4px; text-align: center; }
.account-cover-title img { display: block; width: 100%; height: auto; margin: 0 auto; }
.account-cover-title p { font-size: .72rem; font-weight: 750; margin: 8px 0 0; text-transform: uppercase; letter-spacing: .04em; background: var(--paper); }
.web-auth:not(.web-link) .account-content { position: relative; }

.web-auth .account-content { min-height: 0; padding: 13px 0 0; }
.web-auth .screen { animation: none; }
.web-auth .account-panel { padding: clamp(15px, 4.5vw, 26px); background: var(--surface); overflow-wrap: anywhere; }
.web-auth .account-panel h1 { font-size: clamp(1.68rem, 5vw, 2.65rem); }
.web-auth .account-panel form { display: grid; gap: 9px; }
.web-auth .account-panel form label { font-size: .87rem; font-weight: 650; }
.web-auth form input { width: 100%; }
.web-auth .remember-browser { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.web-auth .remember-browser input { flex: none; width: 18px; height: 18px; margin: 0; }
.web-auth :is(#remember-hint, .login-actions) { margin-bottom: 3px; }
.web-auth .login-actions { display: grid; gap: 10px; margin-top: 12px; }
.web-auth p[role="status"]:empty { display: none; }
.web-auth p[role="status"] { margin: 12px 0 0; color: var(--blue-deep); }
.web-auth .link-brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 0 0 7px; }
.web-auth .link-brand span { font-size: .78rem; color: var(--muted); text-align: right; }
.web-auth .link-brand img { width: 118px; }
.web-auth .link-accounts { display: grid; gap: 9px; }
.web-auth .link-account { min-width: 0; border: 1px solid var(--line); border-radius: var(--print-radius); padding: 9px 12px; background: var(--paper); }
.web-auth .link-account dl { margin: 8px 0 0; }
.web-auth .link-account dl div { display: flex; justify-content: space-between; gap: 7px; border-top: 1px solid var(--line); padding: 4px 0; }
.web-auth .link-account dd { margin: 0; text-align: right; font-weight: 650; }
.web-auth .link-status { display: inline-block; padding: 2px 5px; border-radius: 4px; color: var(--coral); background: var(--coral-lite); font-size: .74rem; }
.web-auth .link-account[data-status="ACTIVE"] .link-status { color: var(--green); background: var(--mint); }
.web-auth .link-review-list { padding-left: 1.4rem; }
.web-auth .link-consent { display: flex; align-items: flex-start; gap: 7px; min-height: 44px; }
.web-auth .link-consent input { width: 19px; height: 19px; flex: none; }
.web-auth .link-actions { display: grid; gap: 7px; margin-top: 11px; }
.web-auth .link-success { border-left: 4px solid var(--green); padding-left: 12px; }
@media (min-width: 980px) {
  .web-auth:not(.web-link) .stage {
    padding: var(--chapter-top) clamp(7px, .9vw, 18px) var(--chapter-bottom);
  }
  .web-auth:not(.web-link) .account-shell {
    box-sizing: border-box; width: min(100%, var(--column)); max-width: none; min-height: var(--book-height);
    height: var(--book-height); padding: clamp(12px, 3.4vh, 48px) 4% 20px;
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto minmax(0, 1fr);
    align-content: start; align-items: start; gap: 16px 0; border-radius: 8px;
    box-shadow: 0 12px 31px #07131b8f;
  }
  .web-auth .account-hero { object-fit: fill; }
  .web-auth:not(.web-link) .account-cover {
    grid-column: 2; grid-row: 1; min-height: 0; justify-content: center;
    padding-top: min(4vh, 44px);
  }
  .web-auth .account-cover-title { width: min(74%, 380px); padding: 8px 4px; }
  .account-cover-title p { font-size: clamp(.72rem, 1vw, 1rem); }
  .web-auth:not(.web-link) .account-content {
    grid-column: 2; grid-row: 2; width: min(100%, 480px); justify-self: center; margin: 0;
    min-height: 0; max-height: 100%; padding: 0 4px 8px;
    overflow-y: auto; scrollbar-width: none;
  }
  .web-auth:not(.web-link) .account-content::-webkit-scrollbar { display: none; }
}

.cabinet-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  grid-column: 1/-1;
  width: max-content;
  max-width: 100%;
  margin: 28px auto;
  padding: 13px 17px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--print-radius);
}
.cabinet-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--blue-deep);
  border-radius: 50%;
  animation: ink-loading .75s linear infinite;
}
@keyframes ink-loading { to { transform: rotate(360deg); } }

.faq-list { display: grid; gap: 15px; }
.faq-group:has(> h2[hidden]) { display: none; }
.faq-list .faq-group-title {
  padding: 6px 5px;
  border-bottom: 1px solid var(--ink);
  margin: 0 0 3px;
}
.faq-list .faq-entry summary { padding-inline: 5px; }
.faq-list .faq-entry > div { padding-inline: 5px; }
@media (min-width: 740px) {
  .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* Public enrollment and recovery share the same print composition. */
.public-access .page {
  width: min(100%, 940px);
  margin: 0 auto;
  padding: clamp(13px, 4vw, 34px) clamp(12px, 4vw, 28px) 36px;
}
.public-access .hero {
  display: grid;
  align-items: center;
  gap: 17px;
  margin: 0 0 20px;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.public-access .hero::after { display: none; }
.public-access .public-cover {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
  border-radius: 5px;
}
.public-access .public-intro, .public-access .result-item { min-width: 0; }
.public-access .badge {
  color: var(--coral);
  font: 700 .69rem/1.35 var(--font);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 7px;
}
.public-access .title { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
.public-access .grid, .public-access .result { display: grid; gap: 12px; }
.public-access .card { padding: clamp(13px, 3vw, 22px); }
.public-access .card h2 { margin: 0 0 8px; }
.public-access :is(.subtitle, .muted, .mini-guide p) { color: var(--muted); margin-bottom: 0; }
.public-access .field { margin-top: 13px; }
.public-access .label { display: block; font-weight: 650; margin-bottom: 5px; }
.public-access .input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--print-radius);
  background: #fffbf0;
  font-size: 1rem;
}
.public-access .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.public-access .btn { display: inline-flex; align-items: center; justify-content: center; }
.public-access .btn:hover:not(:disabled) { filter: brightness(1.1); }
.public-access :is(.info-line, .footer-note, .support) { color: var(--muted); font-size: .84rem; margin: 12px 0 0; }
.public-access .support { text-align: center; }
.public-access :is(.support a, .result-link) { color: var(--blue-deep); text-decoration: underline; overflow-wrap: anywhere; }
.public-access :is(.mini-guide, .result-item, .notice) {
  min-width: 0;
  margin: 12px 0 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--print-radius);
  background: var(--blue-lite);
}
.public-access :is(.mini-guide-title, .result-item strong) { display: block; font-weight: 700; margin-bottom: 5px; }
.public-access :is(.result-text, .notice) { overflow-wrap: anywhere; }
.public-access .notice.success { background: var(--mint); color: var(--green); }
.public-access .notice.error { background: var(--coral-lite); color: var(--coral); }
.public-access .hidden { display: none !important; }
@media (min-width: 700px) {
  .public-access .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 520px) {
  .public-access .actions .btn { width: 100%; }
}


/* Forms are printed on the same stock with the artwork visible at their edges. */
body:is(.web-auth.web-link, .public-access, .standalone-payment) {
  min-height: 100dvh;
  background:
    linear-gradient(#12263443, #172c3b80),
    var(--book-art) center top / max(100vw, 980px) auto no-repeat fixed,
    #172c3b;
}
.web-auth .account-panel, .public-access .card {
  border: 2px solid var(--ink);
  box-shadow: 4px 5px 0 #102c3da8;
}
.public-access .page {
  margin-block: clamp(8px, 1.25vw, 20px);
  background: var(--paper) var(--stock);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 5px 7px 0 #102c3da8;
}
.web-auth .link-brand, .standalone-payment .identity, .standalone-payment .footer {
  padding: 8px 12px;
  background: var(--paper) var(--stock);
  border: 1px solid var(--ink);
  border-radius: 4px;
}
.standalone-payment .identity { width: fit-content; margin-inline: auto; }

@media (max-width: 760px) {
  body:is(.web-auth.web-link, .public-access, .standalone-payment) {
    --book-art: url("/web/client/edition-cover-mobile");
    background-size: auto, 100% auto;
    background-attachment: scroll;
  }
}
#diag-answers .button {text-align:center;min-height:44px}
#diag-feedback .button {margin-top:8px}

#diag-meter {width:100%;height:6px;accent-color:currentColor;margin-top:12px}
#diag-context {margin:8px 0}
#diag-context-save {margin:8px 0}
#diag-report-extra {width:100%;box-sizing:border-box}
.faq-group-title > button {text-align:left;justify-content:space-between}
#diag-context[open] + #diag-question-panel {display:none}

/* Diagnostic screenshots are optional and sized for the actual question. */
#diag-visual-hint { margin: 8px 0; }
.diag-guide-figure { margin: 8px 0 12px; }
.diag-guide-image { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; border-radius: 6px; }
.diag-guide-image[hidden] { display: none; }
.diag-guide-figure figcaption { margin: 4px 0; }

/* Labelled action diagrams use the existing cabinet brand and palette. */
.diag-guide-diagram {border:1px solid var(--line,#a9967a);border-radius:8px;padding:12px;background:var(--surface,#fff7e8);color:var(--ink,#162d38)}
.diag-guide-heading {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.diag-guide-brand {display:inline-flex!important;align-items:center;max-width:115px;gap:4px;margin:0!important}
.diag-guide-brand img {max-width:100%;height:auto}
.diag-guide-brand .a-brand-mark {width:21px;height:30px}
.diag-guide-brand .a-brand-word {font-size:20px;line-height:1.15}
.diag-guide-title {font-weight:700;margin-top:10px!important}
.diag-guide-sequence {padding-left:22px;list-style:decimal;margin:10px 0}
.diag-guide-step {padding:8px 0;border-bottom:1px solid var(--line,#a9967a)}
.diag-guide-step:last-child {border-bottom:0}
.diag-guide-control {display:inline-block;padding:6px 10px;border:1px solid var(--blue,#245a71);border-radius:5px;background:var(--blue-lite,#dce9e7);color:var(--ink,#162d38);overflow-wrap:anywhere}
.diag-guide-step p {margin:5px 0 0;line-height:1.45}

.faq-guide-selectors {display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:8px;margin:8px 0}
.faq-guide-selectors label {display:block;min-width:0}
.faq-guide-selectors select {display:block;width:100%;margin-top:4px}
[data-guide-content] .diag-guide-diagram {margin:8px 0}
.diag-guide-diagram .diag-guide-figure {margin:10px 0}
.diag-guide-diagram .diag-guide-image {max-width:100%}

/* PROMO-001: one editorial ticket system using the existing print palette. */
.referral-heading { font: italic 700 clamp(1.25rem,4vw,1.8rem)/1.18 var(--display); color:var(--ink); margin: 0 0 12px; }
.campaign-ticket { border: 1.5px solid var(--ink); border-radius: var(--print-radius); background:var(--surface) var(--stock); box-shadow:var(--print-edge); padding:15px; margin:12px 0; }
.campaign-ticket :is(h2,h3) { margin:10px 0 4px; font:italic 700 1.45rem/1.2 var(--display); color:var(--coral); }
.campaign-ticket p { margin:8px 0; }
.campaign-ticket small { display:block; color:var(--muted); margin-top:12px; line-height:1.45; }
.campaign-channel-art { display:grid; place-items:center end; min-height:145px; border:1px solid var(--ink); background:var(--book-art) center 56%/cover; padding:14px; border-radius:var(--print-radius); overflow:hidden; }
.campaign-channel-art span { color:var(--surface); background:var(--coral); background-image:radial-gradient(circle,rgba(22,45,56,.14) .6px,transparent .9px); background-size:4px 4px; border:2px solid var(--ink); box-shadow:3px 3px 0 var(--ink); transform:rotate(-4deg); padding:8px 16px; font:italic 700 clamp(1.85rem,7vw,3rem)/1 var(--display); }
.campaign-buttons { display:grid; gap:9px; margin-top:12px; }
@media(min-width:600px){.campaign-buttons{grid-template-columns:repeat(2,minmax(0,1fr));}}

@media(min-width:980px){#campaign-channel .campaign-channel-art{min-height:210px;}}
.public-promotions .campaign-ticket{margin:10px 0 0;}

/* Guest renewal uses the existing account cover and printed controls. */
.guest-renewal .account-panel > form + form:not([hidden]) { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.guest-renewal .account-panel > .button { margin-top: 12px; }
.guest-renewal .account-panel .legal-actions { flex-wrap: wrap; }

/* Reuse the cabinet's three-column period controls for guest selection. */
.guest-renewal .renewal-term-group {
  min-width: 0;
  margin: 6px 0 5px;
  padding: 0;
  border: 0;
}
.guest-renewal .renewal-term-group legend {
  padding: 0;
  margin-bottom: 9px;
  font: 650 .87rem/1.4 var(--font);
}
.guest-renewal .periods .period {
  cursor: pointer;
  border-right: 0;
}
/* Selection uses the original blue printed plate, not an added rectangle. */
.guest-renewal button.period[aria-pressed="true"] strong::before {
  background-image: var(--plate-blue);
}
.guest-renewal button.period:focus-visible {
  outline: none;
}
.guest-renewal button.period:focus-visible strong::before {
  filter: drop-shadow(0 0 2px var(--blue-deep)) drop-shadow(0 0 2px var(--blue-deep));
}
@media (forced-colors: active) {
  .guest-renewal button.period:focus-visible { outline: 2px solid Highlight; }
  .guest-renewal button.period[aria-pressed="true"] strong { color: Highlight; }
}
.guest-renewal .renewal-term-selected {
  margin: 8px 0 0;
  color: var(--blue-deep);
  font: 650 .76rem/1.35 var(--font);
  text-align: center;
}
