@font-face { font-family: Onest; src: url("/mobile/assets/onest.ttf"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Alumni; src: url("/mobile/assets/alumni-original.ttf"); font-display: swap; }
:root { --ground: #ece8e1; --ink: #263332; --paper: #fffdf8; --shadow: inset 0 1px 1px #fff9,inset 0 -3px 4px #20151029,0 3px 4px #291b112b,0 13px 24px -4px #291b114d,0 27px 48px -18px #35231640; --ease: cubic-bezier(.23,1,.32,1); font-family: Onest, system-ui, sans-serif; font-synthesis: none; color: var(--ink); background: var(--ground); }
* { box-sizing: border-box; }
body { margin: 0px; min-width: 320px; background: var(--ground); }
button, input, textarea { font: inherit; }
button, a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { text-underline-offset: 4px; }
button { border: 0px; }
button:active { transform: scale(0.975); }
button:disabled { opacity: 0.5; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: rgb(18, 111, 119) solid 2px; outline-offset: 4px; }
::selection { background: rgb(150, 219, 208); color: rgb(21, 61, 55); }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { border-radius: 6px; background: rgba(83, 101, 92, 0.333); }
.mobile-app { height: 100dvh; min-height: 500px; width: min(1060px, 100%); margin: auto; display: flex; flex-direction: column; background: var(--ground); overflow: hidden; isolation: isolate; }
.app-header { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; height: 66px; padding: 10px 18px 9px; z-index: 20; background: color-mix(in srgb,var(--ground) 90%,transparent); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.brand-glyph { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: rgb(32, 39, 34); color: rgb(255, 255, 255); font-size: 21px; font-weight: 760; box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 7px, rgba(255, 255, 255, 0.333) 0px 1px inset; font-variant-numeric: tabular-nums; }
.brand-glyph[data-phase="code"] { font: 650 11px / 1 monospace; color: rgb(171, 199, 191); }
.brand-glyph[data-phase="finish"] { color: rgb(124, 224, 203); box-shadow: rgba(83, 196, 173, 0.33) 0px 0px 14px, rgba(0, 0, 0, 0.2) 0px 3px 7px, rgba(255, 255, 255, 0.267) 0px 1px inset; }
.wordmark { font-size: 17px; font-weight: 740; letter-spacing: -0.055em; }
.wordmark > span { font-weight: 450; }
#route-title { font-size: 11px; line-height: 1.3; font-weight: 650; letter-spacing: 0.045em; text-align: center; margin: 0px; flex: 1 1 0%; }
svg { width: 22px; height: 22px; fill: none; stroke: currentcolor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.round { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 50%; background: rgba(255, 255, 255, 0.337); box-shadow: rgba(51, 51, 51, 0.043) 0px 3px 8px; transition: background 140ms, transform 140ms; color: inherit; }
.round svg { width: 19px; height: 19px; }
#app-main { position: relative; flex: 1 1 0%; min-height: 0px; overflow: hidden; outline: none; }
.route { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px 26px; scrollbar-width: thin; animation: route-in 220ms var(--ease); }
.route:has(.advisor-deck) { padding: 2px 12px 16px; }
.route-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0px 18px; }
.route-top h2 { font-size: 30px; letter-spacing: -0.035em; line-height: 1.05; margin: 0px; font-weight: 650; }
.route-top p { font-size: 13px; line-height: 1.5; margin: 6px 0px 0px; opacity: 0.68; }
.p-sam { --card: linear-gradient(#a4d9f1,#acdcef 61%,#d8eaf0); --card-ink: #163947; --wash: #d3e9f2; --line: #47748566; }
.p-baron { --card: linear-gradient(#8d7c98,#a895af 59%,#c8b9cd); --card-ink: #291b2b; --wash: #cbbdd2; --line: #4e345b66; }
.p-matthew { --card: linear-gradient(155deg,#fbdb80,#ffe6a1 58%,#ffefbf); --card-ink: #302916; --wash: #f6e7bc; --line: #8b723c66; }
.p-bella { --card: linear-gradient(#fc7f89,#ff8e96 64%,#f5b0b2); --card-ink: #3c1b1c; --wash: #f4b6b8; --line: #95494e66; }
.p-guru { --card: linear-gradient(#fffefa,#fffdfa 65%,#f1e4e6); --card-ink: #422031; --wash: #f3e8e9; --line: #ac828e66; }
.card { position: relative; overflow: hidden; min-width: 0px; border-radius: 25px; background: var(--card); color: var(--card-ink); box-shadow: var(--shadow); border: 0px; text-align: left; padding: 22px; transition: transform 180ms var(--ease),box-shadow 180ms; isolation: isolate; }
.card::before { content: ""; position: absolute; inset: 1px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.27); pointer-events: none; }
.card .overline { font-size: 10px; font-weight: 550; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.76; }
.card h2, .card h3 { margin: 0px; font-size: 30px; line-height: 1.03; letter-spacing: -0.025em; text-transform: uppercase; font-weight: 650; max-width: 100%; overflow-wrap: normal; }
.card small { font-size: 13px; line-height: 1.4; }
.card-arrow { position: absolute; right: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.26); border: 1px solid rgba(255, 255, 255, 0.408); }
.card-arrow svg { width: 15px; height: 15px; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0px, 1fr)); grid-template-rows: 186px 142px 142px 112px; gap: 14px; }
.home-atlas { grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.home-atlas h2 { font-size: 37px; max-width: 7em; }
.home-atlas .page-lines { position: absolute; right: 24px; bottom: 22px; width: 90px; height: 104px; border: 1px solid rgba(255, 255, 255, 0.66); border-radius: 14px; background: rgba(255, 255, 255, 0.196); transform: rotate(9deg); box-shadow: rgba(255, 255, 255, 0.133) -7px 7px 0px, rgba(255, 255, 255, 0.08) -14px 14px 0px; }
.page-lines i { display: block; width: 62%; height: 1px; margin: 13px auto 0px; background: currentcolor; opacity: 0.18; }
.home-hq { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.home-hq h2 { font-size: 31px; }
.network-mark { height: 70px; width: 100%; position: relative; opacity: 0.65; }
.network-mark::before, .network-mark::after { content: ""; position: absolute; top: 36px; left: 20%; width: 65%; height: 1px; background: currentcolor; transform: rotate(23deg); }
.network-mark::after { transform: rotate(-31deg); }
.network-mark i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--card-ink); box-shadow: rgba(0, 0, 0, 0.133) 0px 4px 8px; }
.network-mark i:nth-child(1) { left: 18%; top: 16px; }
.network-mark i:nth-child(2) { right: 14%; top: 22px; }
.network-mark i:nth-child(3) { left: 46%; bottom: 5px; width: 19px; height: 19px; }
.home-game, .home-profile { display: flex; flex-direction: column; justify-content: space-between; padding: 19px; }
.home-game h2, .home-profile h2 { font-size: 25px; }
.home-profile .initials { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, 0.533); border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.267); font-size: 12px; font-weight: 650; }
.home-path { grid-column: span 2; display: flex; align-items: flex-end; justify-content: space-between; }
.home-path h2 { font-size: 28px; }
.home-path small { max-width: 110px; text-align: right; font-size: 12px; }
.home-path .card-arrow { top: 14px; right: 16px; width: 25px; height: 25px; }
.app-dock { flex: 0 0 auto; z-index: 20; display: grid; grid-template-columns: repeat(5, minmax(0px, 1fr)); align-items: center; min-height: 80px; padding: 6px 12px max(9px,env(safe-area-inset-bottom)); margin: 0px 10px 9px; border: 1px solid rgba(255, 255, 255, 0.88); border-radius: 26px; background: rgba(250, 251, 249, 0.9); box-shadow: rgb(255, 255, 255) 0px -1px 1px, rgba(32, 54, 44, 0.07) 0px 8px 24px; backdrop-filter: blur(22px); }
.app-dock button { position: relative; display: grid; justify-items: center; align-content: center; gap: 5px; min-height: 54px; border-radius: 18px; background: transparent; color: rgb(87, 96, 92); font-size: 10px; line-height: 1.1; }
.app-dock button[aria-current] { background: rgb(230, 238, 234); color: rgb(30, 68, 58); box-shadow: rgb(255, 255, 255) 0px 1px inset, rgba(56, 86, 75, 0.043) 0px 3px 8px; }
.app-dock .central { margin-top: -15px; background: none; gap: 2px; }
.central .advisor-seal { display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid white; border-radius: 50%; background: linear-gradient(145deg, rgb(255, 255, 255), rgb(233, 239, 233)); box-shadow: rgba(39, 75, 58, 0.1) 0px 5px 11px, rgb(255, 255, 255) 0px 1px 3px inset; }
.central[aria-current] .advisor-seal { box-shadow: rgb(166, 215, 201) 0px 0px 0px 1px, rgba(93, 187, 168, 0.18) 0px 5px 15px; background: rgb(241, 255, 250); }
.advisor-seal img { width: 35px; height: 35px; }
.app-dock .central[aria-current] { background: none; }
.advisor-deck { display: flex; flex-direction: column; gap: 24px; max-width: 430px; margin: auto; scroll-snap-type: y; padding: 2px 3px 24px; }
.advisor-card { padding: 0px; min-height: 455px; scroll-snap-align: start; display: block; width: 100%; border-radius: 25px; }
.advisor-figure { width: 100%; height: 280px; display: block; object-fit: cover; object-position: center center; mask-image: linear-gradient(rgb(0, 0, 0) 75%, transparent); margin-bottom: -24px; pointer-events: none; }
.advisor-copy { display: block; padding: 0px 23px 24px; position: relative; }
.advisor-copy .overline { font-size: 11px; letter-spacing: 0.1em; }
.advisor-copy h2 { font-size: 26px; text-transform: none; line-height: 1.08; margin: 8px 0px 10px; }
.advisor-copy p { font-size: 14px; line-height: 1.5; margin: 0px; max-width: 32ch; opacity: 0.88; }
.advisor-copy .open-note { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.sheet { position: absolute; inset: 0px; z-index: 10; display: flex; flex-direction: column; overflow: hidden; border-radius: 25px; background: var(--card); color: var(--card-ink); box-shadow: var(--shadow); will-change: clip-path; isolation: isolate; }
.sheet > .sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 8px 18px 0px; flex: 0 0 auto; z-index: 3; }
.sheet-bar .caption { font-size: 12px; font-weight: 550; letter-spacing: 0.015em; opacity: 0.75; }
.sheet .round { width: 36px; height: 36px; background: rgba(255, 255, 255, 0.27); }
.sheet-scroll { padding: 20px 24px 28px; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 0%; min-height: 0px; scrollbar-color: var(--line) transparent; }
.sheet h2 { font-size: clamp(30px, 6vw, 45px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 650; margin: 0px 0px 19px; text-wrap: balance; }
.sheet h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; margin: 25px 0px 12px; }
.sheet p { font-size: 16px; line-height: 1.6; margin: 0px 0px 16px; max-width: 68ch; }
.sheet .lede { font-size: 19px; line-height: 1.45; }
.sheet-content { opacity: 0; transform: translateY(12px); transition: opacity 200ms var(--ease),transform 260ms var(--ease); }
.sheet[data-ready] .sheet-content { opacity: 1; transform: none; }
.hero-exit { position: absolute; z-index: 2; top: 10px; left: 50%; width: min(360px, 100%); height: 330px; object-fit: contain; transform: translateX(-50%); pointer-events: none; mask-image: linear-gradient(rgb(0, 0, 0) 70%, transparent); }
.sheet[aria-busy="true"] .sheet-content { pointer-events: none; }
.sheet-content:has(.hq-embed) { height: 100%; }
.sheet-scroll:has(.hq-embed) { padding: 8px 6px 10px; overflow: hidden; }
.hq-embed { width: 100%; height: 100%; border: 0px; background: transparent; border-radius: 18px; display: block; }
.sheet:has(.hq-embed) h2 { font-size: 24px; margin: 0px 8px 8px; }
.surface-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 17px; border: 1px solid rgba(255, 255, 255, 0.67); border-radius: 15px; background: rgba(255, 255, 255, 0.267); box-shadow: rgba(255, 255, 255, 0.467) 0px 1px inset, rgba(56, 44, 33, 0.07) 0px 4px 9px; color: inherit; text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.3; }
.surface-button svg { width: 17px; height: 17px; }
.surface-button.selected { background: rgba(211, 243, 235, 0.667); border-color: rgb(255, 255, 255); color: rgb(23, 82, 75); box-shadow: rgb(255, 255, 255) 0px 1px inset, rgba(52, 138, 119, 0.19) 0px 5px 11px; }
.surface-button.primary { background: color-mix(in srgb,var(--card-ink) 92%,#000); color: rgb(255, 255, 255); border-color: rgba(255, 255, 255, 0.314); }
.button-row { display: flex; align-items: stretch; gap: 8px; margin: 18px 0px; flex-wrap: wrap; }
.button-row > * { flex: 1 1 0%; }
.book-grid, .mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 14px; }
.book-card { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; }
.book-card h2 { font-size: 27px; margin: 0px; }
.book-spine { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.04em; opacity: 0.7; }
.book-spine svg { width: 17px; }
.book-card span:last-child { font-size: 12px; line-height: 1.45; max-width: 18ch; }
.wide-card { grid-column: span 2; min-height: 152px; }
.wide-card h2 { font-size: 30px; }
.section-label { font-size: 13px; font-weight: 500; margin: 0px 0px 14px; opacity: 0.6; }
.note-row { display: flex; align-items: center; gap: 12px; padding: 17px 0px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.note-row svg { width: 18px; height: 18px; }
.note-row span { flex: 1 1 0%; }
.link-row { width: 100%; background: transparent; text-align: left; color: inherit; }
.form-label { display: block; font-size: 13px; font-weight: 550; margin: 18px 0px 7px; }
.input { width: 100%; min-width: 0px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.29); color: inherit; font-size: 15px; line-height: 1.5; outline-offset: 2px; }
textarea.input { min-height: 100px; resize: vertical; }
.hint { opacity: 0.7; font-size: 12px !important; line-height: 1.5 !important; }
.profile-hero { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.profile-hero .initials { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid rgba(255, 255, 255, 0.533); border-radius: 50%; background: rgba(255, 255, 255, 0.25); font-size: 25px; }
.profile-hero h2 { font-size: 33px; }
.profile-options { margin-top: 16px; display: grid; gap: 12px; }
.profile-options .card { min-height: 100px; display: flex; align-items: center; gap: 16px; }
.profile-options h3 { font-size: 19px; }
.profile-options svg { width: 30px; height: 30px; }
.reader { max-width: 68ch; margin: 0px auto; border-left: 1px solid var(--line); padding-left: 19px; }
.reader p { font-size: 17px; line-height: 1.73; letter-spacing: 0.003em; }
.reader h2 { font-size: 34px; margin-top: 0px; }
.reader em { font-style: italic; }
.reader strong { font-weight: 690; }
.reader u { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.reader mark { background: rgba(255, 255, 255, 0.44); color: inherit; padding: 0px 0.15em; border-radius: 3px; }
.chapter-index { display: grid; gap: 10px; margin: 20px 0px; }
.chapter-index button { justify-content: space-between; text-align: left; flex: 1 1 0%; }
.reader-controls { display: flex; gap: 8px; flex-wrap: nowrap; margin: 25px 0px 20px; }
.reader-controls button { flex: 1 1 0%; font-size: 12px; padding: 10px 8px; background: rgba(224, 242, 251, 0.43); }
.reader-controls .selected { background: rgba(198, 233, 246, 0.69); box-shadow: rgb(255, 255, 255) 0px 1px inset, rgba(52, 126, 158, 0.13) 0px 4px 10px; }
.comment-save { margin-top: 8px; width: 100%; background: rgba(255, 255, 255, 0.298); }
.comment-state { font-size: 12px !important; margin-top: 9px !important; }
.chat { display: flex; flex-direction: column; min-height: 100%; gap: 20px; }
.chat-intro h2 { font-size: 39px; max-width: 12ch; }
.chat-intro p { max-width: 30ch; }
.chat-history { display: flex; flex-direction: column; gap: 14px; }
.chat-bubble { background: rgba(255, 255, 255, 0.23); border: 1px solid rgba(255, 255, 255, 0.48); border-radius: 18px 18px 5px; padding: 14px 16px; align-self: flex-end; max-width: 92%; font-size: 15px; line-height: 1.6; }
.chat-system { background: none; padding: 2px 0px; font-size: 12px; opacity: 0.75; line-height: 1.6; max-width: 96%; }
.chat-compose { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: 0px; margin-top: auto; padding: 12px 0px 0px; background: var(--card); }
.chat-compose textarea { min-height: 52px; max-height: 150px; resize: vertical; }
.chat-compose button { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; background: var(--card-ink); color: white; display: grid; place-items: center; }
.swatches { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 20px 0px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; background: var(--card); border: 2px solid rgba(255, 255, 255, 0.6); box-shadow: rgba(0, 0, 0, 0.133) 0px 3px 7px; }
.swatch[aria-pressed="true"] { outline: rgb(45, 92, 84) solid 2px; outline-offset: 3px; }
#toast { position: fixed; z-index: 100; left: 50%; bottom: 105px; transform: translate(-50%, 14px); padding: 12px 16px; border-radius: 14px; background: rgb(34, 62, 54); color: rgb(255, 255, 255); font-size: 13px; max-width: 320px; text-align: center; opacity: 0; pointer-events: none; transition: opacity 160ms, transform 160ms; }
#toast.show { opacity: 1; transform: translate(-50%, 0px); }
@keyframes route-in { 
  0% { opacity: 0.5; transform: translateY(8px); }
  100% { opacity: 1; transform: none; }
}
@media (min-width: 760px) {
  body { padding: 16px; background: rgb(220, 225, 223); }
  .mobile-app { height: calc(100dvh - 32px); border-radius: 30px; box-shadow: rgba(40, 70, 59, 0.14) 0px 20px 60px; }
  .app-header { height: 76px; padding: 14px 26px; }
  #route-title { font-size: 14px; }
  .app-dock { width: 460px; margin: 0px auto 14px; min-height: 74px; }
  .route { padding: 20px 30px 30px; }
  .home-grid { grid-template-columns: repeat(4, minmax(0px, 1fr)); grid-template-rows: 210px 190px; gap: 20px; }
  .home-atlas { grid-area: span 2 / span 2; }
  .home-atlas h2 { font-size: 54px; max-width: 6ch; }
  .home-atlas .page-lines { width: 140px; height: 180px; }
  .home-hq { grid-area: span 1 / span 2; min-height: 210px; }
  .home-hq .network-mark { position: absolute; right: 40px; top: 80px; width: 170px; }
  .home-game { grid-column: span 1; }
  .home-profile { grid-column: span 1; }
  .home-path { grid-column: span 4; min-height: 110px; }
  .sheet { inset: 4px 18px 12px; border-radius: 26px; }
  .sheet-scroll { padding: 24px 32px 32px; }
  .sheet > .sheet-bar { padding: 12px 24px 0px; }
  .book-grid { grid-template-columns: repeat(3, minmax(0px, 1fr)); }
  .book-card { min-height: 280px; }
  .wide-card { grid-column: span 1; }
  .advisor-deck { display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); max-width: none; gap: 20px; padding: 8px 12px 30px; }
  .advisor-card { min-height: 480px; }
  .advisor-figure { height: 260px; }
  .advisor-copy { padding: 0px 20px 24px; }
  .advisor-copy h2 { font-size: 24px; }
  .profile-options { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
  .chat { max-width: 720px; margin: auto; }
  .chat-intro h2 { font-size: 48px; }
  .reader { padding-left: 28px; }
  .profile-hero { max-width: 630px; }
  .home-hq h2 { font-size: 38px; }
}
@media (max-width: 370px) {
  .app-header { gap: 7px; padding-left: 13px; padding-right: 13px; }
  .wordmark { font-size: 15px; }
  #route-title { font-size: 10px; }
  .brand-glyph { width: 32px; height: 32px; }
  .route { padding: 12px 13px 22px; }
  .home-grid { gap: 11px; }
  .card { padding: 18px; }
  .card h2 { font-size: 27px; }
  .home-atlas h2 { font-size: 34px; }
  .home-game h2, .home-profile h2 { font-size: 23px; }
  .sheet-scroll { padding: 17px 19px 25px; }
  .advisor-copy h2 { font-size: 24px; }
  .reader-controls button { font-size: 11px; }
}
body.dark { --ground: #17211f; --ink: #eff4f0; background: rgb(16, 25, 23); }
.dark .mobile-app { background: rgb(23, 33, 31); }
.dark .app-header { background: rgba(23, 33, 31, 0.933); }
.dark .app-dock { background: rgba(38, 51, 45, 0.91); border-color: rgba(255, 255, 255, 0.145); color: rgb(227, 238, 229); }
.dark .app-dock button { color: rgb(214, 228, 218); }
.dark .app-dock button[aria-current] { background: rgb(58, 80, 70); color: white; }
.dark .round { background: rgba(255, 255, 255, 0.082); border-color: rgba(255, 255, 255, 0.15); }
.dark .central .advisor-seal { background: rgb(238, 247, 239); }
.dark #route-title { color: rgb(234, 240, 233); }
.dark .surface-button { color: inherit; }
.dark .sheet .round { color: var(--card-ink); background: rgba(255, 255, 255, 0.27); border-color: rgba(255, 255, 255, 0.627); }
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: auto ease 0s 1 normal none running none !important; transition-duration: 0ms !important; scroll-behavior: auto !important; }
  .sheet-content { transform: none; }
  .sheet { will-change: auto; }
}
.sheet > .sheet-bar { position: absolute; right: 12px; top: 10px; min-height: 0px; padding: 0px; justify-content: flex-end; background: none; }
.sheet-bar .caption { display: none; }
.sheet-scroll { padding-top: 27px; }
.sheet-content > h2:first-child, .reader > h2 { padding-right: 40px; }
.sheet .chat-intro > p:first-child { padding-right: 88px; }
.sheet:has(.hq-embed) > .sheet-scroll { padding-top: 46px; }
.card .overline { opacity: 0.88; }
.book-grid { grid-auto-flow: dense; }
.book-card:nth-child(2) { grid-column: span 2; min-height: 148px; }
.book-card:nth-child(2) h2 { font-size: 30px; }
.book-card:nth-child(2) .card-arrow { top: 16px; right: 16px; }
.book-card:nth-child(2) h2 { padding-right: 0px; }
.book-card:nth-child(2) .book-spine { padding-right: 30px; }
@media (min-width: 760px) {
  .book-card:nth-child(2) { grid-column: span 1; min-height: 280px; }
  .book-card:nth-child(2) h2 { font-size: 25px; }
}
.advisor-figure { object-fit: contain; }
.reader em { font-style: italic; font-synthesis: style; }
.sheet-scroll:has(.chat) { display: flex; flex-direction: column; }
.sheet-content:has(.chat) { display: flex; flex: 1 1 0%; min-height: 100%; }
.chat { flex: 1 1 0%; width: 100%; min-height: 100%; padding-bottom: 0px; }
.chat > .hint { margin-top: auto; }
.chat-compose { background: transparent; margin-top: 0px; position: sticky; bottom: 0px; }
.chat-compose textarea { resize: none; min-height: 52px; }
textarea.input { font-size: 16px; }
.chat-compose textarea { font-size: 16px; }
@supports (padding:max(0px)) {
  .app-header { padding-top: max(10px,env(safe-area-inset-top)); height: calc(66px + env(safe-area-inset-top)); }
}
.home-atlas .page-lines { display: none; }
@media (min-width: 760px) {
  .mobile-app { height: min(820px, 100dvh - 32px); }
  .mobile-app:has(.sheet) { height: calc(100dvh - 32px); }
}