:root {
  --ink: #173332;
  --ink-soft: #4d6663;
  --paper: #f8f3e9;
  --paper-deep: #eee5d5;
  --white: #fffdf8;
  --teal: #123c3c;
  --teal-2: #1f5a57;
  --teal-3: #d8e8e2;
  --coral: #df6f5e;
  --coral-dark: #b84f42;
  --coral-soft: #f7d8ce;
  --gold: #d49a3a;
  --gold-soft: #f4e2b9;
  --green: #39795e;
  --red: #b44842;
  --shadow-sm: 0 5px 18px rgba(23, 51, 50, .08);
  --shadow-md: 0 18px 55px rgba(23, 51, 50, .14);
  --shadow-lg: 0 28px 90px rgba(14, 45, 44, .24);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --max: 1180px;
  --header-h: 78px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 300px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 6%, rgba(212, 154, 58, .10), transparent 23rem),
    radial-gradient(circle at 94% 24%, rgba(223, 111, 94, .08), transparent 25rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: var(--white);
  background: var(--coral);
}

:focus-visible {
  outline: 3px solid rgba(223, 111, 94, .52);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: white;
  background: var(--teal);
  border-radius: 10px;
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  min-height: var(--header-h);
  color: var(--ink);
  background: rgba(248, 243, 233, .92);
  border-bottom: 1px solid rgba(23, 51, 50, .09);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(calc(100% - 32px), var(--max));
  height: var(--header-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 47px;
  height: 47px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(18, 60, 60, .1));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -.02em;
}

.brand-copy i {
  color: var(--coral);
  font-style: italic;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 10px 11px;
  color: var(--ink-soft);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
  transition: color .2s, background .2s;
}

.nav-link:hover {
  color: var(--teal);
  background: rgba(18, 60, 60, .055);
}

.nav-link.active {
  color: var(--teal);
}

.chat-nav-link {
  color: var(--coral-dark);
  background: rgba(223, 111, 94, .1);
}

.chat-nav-link:hover {
  color: var(--coral-dark);
  background: var(--coral-soft);
}

.nav-link.active::after {
  position: absolute;
  right: 11px;
  bottom: 2px;
  left: 11px;
  height: 2px;
  content: "";
  background: var(--coral);
  border-radius: 10px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-chip {
  display: inline-flex;
  max-width: 180px;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  overflow: hidden;
  color: var(--teal);
  background: var(--white);
  border: 1px solid rgba(18, 60, 60, .14);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(18, 60, 60, .04);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.account-chip span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-chip.active {
  color: white;
  background: var(--teal);
}

.account-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(212, 154, 58, .16);
}

.account-chip.signed-in .account-dot {
  background: #62a981;
  box-shadow: 0 0 0 3px rgba(98, 169, 129, .16);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 12px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  margin: 4px auto;
  display: block;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.menu-button.open span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-button.open span:nth-child(2) {
  opacity: 0;
}

.menu-button.open span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  width: min(calc(100% - 32px), var(--max));
  max-height: 0;
  margin: 0 auto;
  display: none;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
}

.mobile-menu.open {
  max-height: 430px;
  padding-bottom: 16px;
}

.mobile-menu a {
  display: block;
  padding: 12px;
  color: var(--ink-soft);
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none;
}

.mobile-menu a.active {
  color: var(--teal);
  background: rgba(18, 60, 60, .07);
}

.global-banner {
  position: relative;
  z-index: 40;
  padding: 10px 20px;
  color: #6b4920;
  background: #fff2cc;
  border-bottom: 1px solid #ebd28e;
  font-size: 13px;
  font-weight: 680;
  text-align: center;
}

.global-banner.error {
  color: #7b2f2b;
  background: #fde5e1;
  border-color: #edb8b0;
}

main {
  min-height: calc(100vh - var(--header-h) - 260px);
}

.initial-shell {
  min-height: 68vh;
  padding: 90px 24px;
  display: grid;
  place-items: center;
  text-align: center;
}

.initial-shell-inner {
  width: min(620px, 100%);
}

.initial-shell h1 {
  margin: 10px 0 14px;
  font-family: var(--serif);
  font-size: clamp(35px, 7vw, 62px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.initial-shell p {
  color: var(--ink-soft);
}

.skeleton-row {
  margin: 35px auto 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.skeleton-row span {
  width: 11px;
  height: 11px;
  background: var(--coral);
  border-radius: 50%;
  animation: pulse-dot 1.1s infinite ease-in-out;
}

.skeleton-row span:nth-child(2) {
  animation-delay: .14s;
}

.skeleton-row span:nth-child(3) {
  animation-delay: .28s;
}

@keyframes pulse-dot {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-7px); }
}

.page-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 54px 0 88px;
}

.page-shell.compact {
  max-width: 900px;
}

.page-intro {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.page-intro-copy {
  max-width: 720px;
}

.eyebrow {
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 25px;
  height: 2px;
  content: "";
  background: currentColor;
}

.page-intro h1,
.section-title,
.display-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.04em;
}

.page-intro h1 {
  font-size: clamp(40px, 7vw, 72px);
}

.page-intro p {
  max-width: 680px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.btn {
  min-height: 45px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  color: white;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 999px;
  box-shadow: 0 7px 20px rgba(18, 60, 60, .14);
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, background .18s;
}

.btn:hover:not(:disabled) {
  background: var(--teal-2);
  box-shadow: 0 11px 27px rgba(18, 60, 60, .2);
  transform: translateY(-2px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
}

.btn-coral {
  background: var(--coral);
  border-color: var(--coral);
  box-shadow: 0 7px 20px rgba(223, 111, 94, .19);
}

.btn-coral:hover:not(:disabled) {
  background: var(--coral-dark);
}

.btn-secondary {
  color: var(--teal);
  background: transparent;
  border-color: rgba(18, 60, 60, .28);
  box-shadow: none;
}

.btn-secondary:hover:not(:disabled) {
  color: white;
  background: var(--teal);
}

.btn-cream {
  color: var(--teal);
  background: var(--paper);
  border-color: var(--paper);
}

.btn-cream:hover:not(:disabled) {
  color: var(--teal);
  background: white;
}

.btn-danger {
  color: var(--red);
  background: transparent;
  border-color: rgba(180, 72, 66, .28);
  box-shadow: none;
}

.btn-danger:hover:not(:disabled) {
  color: white;
  background: var(--red);
  border-color: var(--red);
}

.btn-small {
  min-height: 37px;
  padding: 8px 13px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid rgba(23, 51, 50, .14);
  border-radius: 50%;
}

.icon-button:hover {
  color: var(--coral-dark);
  border-color: var(--coral);
}

.text-link {
  padding: 0;
  cursor: pointer;
  color: var(--coral-dark);
  background: none;
  border: 0;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(184, 79, 66, .3);
  text-underline-offset: 3px;
}

.muted {
  color: var(--ink-soft);
}

.microcopy {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(8, 38, 37, .94) 0%, rgba(8, 38, 37, .81) 42%, rgba(8, 38, 37, .12) 76%),
    url(/api/asset/61598c63f370cecbe85ec68183d81c9d?slot=hero-library&j=joisk-asset&w=1600) center / cover no-repeat;
}

.hero::after {
  position: absolute;
  right: -80px;
  bottom: -160px;
  width: 440px;
  height: 440px;
  content: "";
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 32px), var(--max));
  margin: auto;
  padding: 82px 0;
}

.hero-copy {
  max-width: 650px;
}

.hero .eyebrow {
  color: #f4bd78;
}

.hero h1 {
  max-width: 640px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(51px, 8.3vw, 96px);
  font-weight: 700;
  line-height: .93;
  letter-spacing: -.055em;
}

.hero h1 em {
  color: #f2a98f;
  font-weight: 400;
}

.hero-lead {
  max-width: 570px;
  margin: 26px 0 29px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.hero-note {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
  font-weight: 700;
}

.avatar-stack {
  display: flex;
}

.mini-avatar {
  width: 28px;
  height: 28px;
  margin-left: -7px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--coral);
  border: 2px solid var(--teal);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 850;
}

.mini-avatar:first-child {
  margin-left: 0;
  background: var(--gold);
}

.mini-avatar:nth-child(2) {
  background: #5c8d78;
}

.mini-avatar:nth-child(3) {
  background: #8c6f9c;
}

.marketing-section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 80px 0;
}

.section-kicker {
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.section-heading-row {
  margin-bottom: 30px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-title {
  margin-top: 7px;
  font-size: clamp(34px, 5vw, 55px);
}

.section-heading-row p {
  max-width: 430px;
  margin: 0;
  color: var(--ink-soft);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  position: relative;
  min-height: 230px;
  padding: 27px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(23, 51, 50, .1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 42px;
  height: 42px;
  margin-bottom: 35px;
  display: grid;
  place-items: center;
  color: var(--coral-dark);
  background: var(--coral-soft);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  font-weight: 700;
}

.step-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: -.02em;
}

.step-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.step-card::after {
  position: absolute;
  right: -28px;
  bottom: -33px;
  width: 105px;
  height: 105px;
  content: "";
  border: 1px solid rgba(23, 51, 50, .07);
  border-radius: 50%;
}

.sample-shelf {
  padding-top: 20px;
  padding-bottom: 95px;
}

.sample-shelf-panel {
  padding: 42px;
  color: white;
  background: var(--teal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.sample-shelf-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  align-items: center;
  gap: 48px;
}

.sample-shelf-copy h2 {
  margin: 8px 0 16px;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 60px);
  line-height: .98;
  letter-spacing: -.045em;
}

.sample-shelf-copy p {
  color: rgba(255,255,255,.72);
}

.sample-books {
  min-height: 310px;
  padding: 20px 10px 0;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 16px;
  border-bottom: 13px solid #0a2e2d;
  border-radius: 0 0 10px 10px;
}

.sample-book {
  position: relative;
  width: 24%;
  max-width: 135px;
  transition: transform .25s;
}

.sample-book:nth-child(2) {
  transform: translateY(-18px) rotate(2deg);
}

.sample-book:nth-child(3) {
  transform: rotate(-2deg);
}

.sample-book:nth-child(4) {
  transform: translateY(-8px) rotate(1deg);
}

.sample-book:hover {
  transform: translateY(-12px) rotate(0);
}

.sample-book img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px 9px 9px 4px;
  box-shadow: 10px 13px 25px rgba(0, 0, 0, .3);
}

.session-check {
  min-height: 62vh;
  padding: 70px 20px;
  display: grid;
  place-items: center;
  text-align: center;
}

.session-card {
  width: min(560px, 100%);
  padding: 42px;
  background: var(--white);
  border: 1px solid rgba(23, 51, 50, .1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.session-card h1 {
  margin: 12px 0;
  font-family: var(--serif);
  font-size: 42px;
}

.auth-gate {
  width: min(calc(100% - 32px), 940px);
  min-height: 66vh;
  margin: 0 auto;
  padding: 70px 0;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  overflow: hidden;
}

.auth-gate-art {
  min-height: 430px;
  background:
    linear-gradient(0deg, rgba(18, 60, 60, .55), rgba(18, 60, 60, .05)),
    url(/api/asset/77e5aea627554347d3c79eb934a1ccf1?slot=account-reading&j=joisk-asset&w=1600) center / cover no-repeat;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.auth-gate-copy {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  border: 1px solid rgba(23, 51, 50, .1);
  border-left: 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.auth-gate-copy h1 {
  margin: 8px 0 13px;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 57px);
  line-height: 1;
  letter-spacing: -.045em;
}

.auth-gate-copy p {
  margin: 0 0 24px;
  color: var(--ink-soft);
}

.form-card {
  padding: 27px;
  background: var(--white);
  border: 1px solid rgba(23, 51, 50, .1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.form-card h2,
.form-card h3 {
  margin: 0 0 7px;
  font-family: var(--serif);
  letter-spacing: -.025em;
}

.form-card h2 {
  font-size: 30px;
}

.form-card h3 {
  font-size: 23px;
}

.form-card > p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.form-grid.one {
  grid-template-columns: 1fr;
}

.form-group {
  min-width: 0;
}

.form-group.span-2 {
  grid-column: 1 / -1;
}

.form-group label,
.field-label {
  margin-bottom: 7px;
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .035em;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(23, 51, 50, .15);
  border-radius: 12px;
  outline: 0;
  transition: border .18s, box-shadow .18s, background .18s;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  background: white;
  border-color: var(--teal-2);
  box-shadow: 0 0 0 4px rgba(31, 90, 87, .1);
}

.input::placeholder,
.textarea::placeholder {
  color: #84938f;
}

.password-wrap {
  position: relative;
}

.password-wrap .input {
  padding-right: 74px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  padding: 7px 8px;
  cursor: pointer;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 850;
  transform: translateY(-50%);
}

.form-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.form-status {
  margin: 15px 0 0;
  padding: 11px 13px;
  color: #2d684f;
  background: #e5f3eb;
  border: 1px solid #c5e4d2;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 680;
}

.form-status.error {
  color: #8f3933;
  background: #fde8e4;
  border-color: #f2c0b8;
}

.form-status.warning {
  color: #77521d;
  background: #fff1cb;
  border-color: #edd58e;
}

.auth-layout {
  width: min(calc(100% - 32px), 1050px);
  margin: 0 auto;
  padding: 62px 0 90px;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  overflow: hidden;
}

.auth-art {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(10, 43, 42, .75), rgba(10, 43, 42, .03)),
    url(/api/asset/77e5aea627554347d3c79eb934a1ccf1?slot=account-reading&j=joisk-asset&w=1600) center / cover no-repeat;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.auth-art-copy {
  position: absolute;
  right: 35px;
  bottom: 35px;
  left: 35px;
  color: white;
}

.auth-art-copy blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-style: italic;
  line-height: 1.23;
}

.auth-art-copy p {
  margin: 12px 0 0;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 750;
}

.auth-panel {
  min-height: 650px;
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  border: 1px solid rgba(23, 51, 50, .1);
  border-left: 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.auth-panel h1 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -.04em;
}

.auth-panel > p {
  margin: 0 0 26px;
  color: var(--ink-soft);
}

.auth-tabs,
.segmented {
  padding: 4px;
  display: flex;
  gap: 4px;
  background: var(--paper-deep);
  border-radius: 13px;
}

.auth-tabs {
  margin-bottom: 23px;
}

.auth-tabs button,
.segmented button {
  min-height: 40px;
  padding: 8px 14px;
  flex: 1;
  cursor: pointer;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 850;
}

.auth-tabs button.active,
.segmented button.active {
  color: var(--teal);
  background: var(--white);
  box-shadow: 0 3px 10px rgba(23, 51, 50, .09);
}

.account-page {
  width: min(calc(100% - 32px), 960px);
  margin: 0 auto;
  padding: 65px 0 100px;
}

.account-welcome {
  padding: 38px;
  color: white;
  background:
    radial-gradient(circle at 95% 0, rgba(223, 111, 94, .4), transparent 18rem),
    var(--teal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.account-welcome h1 {
  margin: 9px 0 10px;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1;
  letter-spacing: -.045em;
}

.account-welcome p {
  margin: 0;
  color: rgba(255,255,255,.72);
}

.account-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
}

.profile-card,
.info-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(23, 51, 50, .1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.profile-heading {
  display: flex;
  align-items: center;
  gap: 17px;
}

.profile-avatar {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: white;
  background: var(--coral);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  box-shadow: 0 0 0 6px var(--coral-soft);
}

.profile-heading h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: 27px;
}

.profile-heading p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.detail-list {
  margin: 26px 0;
  border-top: 1px solid rgba(23, 51, 50, .1);
}

.detail-row {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(23, 51, 50, .1);
  font-size: 14px;
}

.detail-row span:first-child {
  color: var(--ink-soft);
}

.detail-row strong {
  text-align: right;
}

.info-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 24px;
}

.info-card p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.badge {
  min-height: 25px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  background: var(--teal-3);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.badge.coral {
  color: #8b3c32;
  background: var(--coral-soft);
}

.badge.gold {
  color: #765019;
  background: var(--gold-soft);
}

.badge.gray {
  color: #536360;
  background: #e9ece8;
}

.badge.green {
  color: #255e45;
  background: #d9eee2;
}

.creator-note {
  margin-top: 20px;
  padding: 18px;
  color: #68481e;
  background: var(--gold-soft);
  border: 1px solid #ead08e;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.creator-note strong {
  display: block;
  margin-bottom: 4px;
}

.dashboard-hero {
  padding: 47px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 90% 10%, rgba(244, 189, 120, .25), transparent 17rem),
    radial-gradient(circle at 70% 120%, rgba(223, 111, 94, .32), transparent 23rem),
    var(--teal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.dashboard-hero-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
}

.dashboard-hero h1 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: clamp(43px, 6vw, 72px);
  line-height: .97;
  letter-spacing: -.05em;
}

.dashboard-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.72);
}

.poll-switcher {
  min-width: 190px;
}

.poll-switcher label {
  margin-bottom: 6px;
  display: block;
  color: rgba(255,255,255,.65);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.poll-switcher select {
  width: 100%;
  padding: 10px 12px;
  color: white;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 11px;
}

.poll-switcher option {
  color: var(--ink);
}

.phase-track {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.phase {
  position: relative;
  padding-top: 14px;
  color: rgba(255,255,255,.42);
  border-top: 4px solid rgba(255,255,255,.15);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.phase.done {
  color: rgba(255,255,255,.78);
  border-color: #7eb49a;
}

.phase.active {
  color: white;
  border-color: var(--coral);
}

.phase.active::before {
  position: absolute;
  top: -8px;
  left: 0;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--coral);
  border: 2px solid var(--teal);
  border-radius: 50%;
}

.home-section {
  margin-top: 25px;
}

.home-callout {
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: var(--white);
  border: 1px solid rgba(23, 51, 50, .1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.home-callout h2 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -.025em;
}

.home-callout p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.book-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.book-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(23, 51, 50, .1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border .2s;
}

.book-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.book-card.selected {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-soft), var(--shadow-md);
}

.book-cover-wrap {
  position: relative;
  min-height: 245px;
  padding: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.5), transparent 8rem),
    var(--paper-deep);
}

.book-cover-wrap::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, transparent, rgba(18, 60, 60, .08));
}

.book-cover {
  position: relative;
  z-index: 1;
  width: 132px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 3px 8px 8px 3px;
  box-shadow: 12px 15px 25px rgba(15, 46, 45, .24);
}

.book-cover-fallback {
  position: relative;
  z-index: 1;
  width: 132px;
  aspect-ratio: 2 / 3;
  padding: 18px 13px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, var(--teal-2), var(--coral));
  border-radius: 3px 8px 8px 3px;
  box-shadow: 12px 15px 25px rgba(15, 46, 45, .24);
  font-family: var(--serif);
  font-size: 37px;
  text-align: center;
}

.selected-ribbon {
  position: absolute;
  z-index: 3;
  top: 15px;
  right: 15px;
  padding: 7px 10px;
  color: white;
  background: var(--coral);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.winner-ribbon {
  position: absolute;
  z-index: 3;
  top: 15px;
  right: 15px;
  padding: 7px 10px;
  color: #5d3e11;
  background: #f4c870;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.book-card-body {
  padding: 21px;
}

.book-meta {
  min-height: 23px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 780;
}

.book-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.book-author {
  min-height: 24px;
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.vote-meter {
  margin-top: 17px;
}

.vote-meter-row {
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.meter {
  height: 7px;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 999px;
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--coral), #ef9a79);
  border-radius: inherit;
  transition: width .4s ease;
}

.book-card-actions {
  margin-top: 17px;
  display: flex;
  gap: 8px;
}

.book-card-actions .btn {
  flex: 1;
}

.empty-state {
  padding: 45px;
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: center;
  gap: 40px;
  background: var(--white);
  border: 1px dashed rgba(23, 51, 50, .2);
  border-radius: var(--radius-lg);
}

.empty-state img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 18px;
}

.empty-state h2,
.empty-state h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 31px;
  letter-spacing: -.03em;
}

.empty-state p {
  margin: 0 0 19px;
  color: var(--ink-soft);
}

.stats-row {
  margin-top: 19px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  padding: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
}

.stat-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1;
}

.stat-card span {
  margin-top: 5px;
  display: block;
  color: rgba(255,255,255,.6);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 24px;
}

.chat-list {
  min-height: 420px;
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 12px;
  background: var(--white);
  border: 1px solid rgba(23, 51, 50, .1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.chat-message {
  padding: 14px 16px;
  background: var(--paper);
  border-radius: 13px;
}

.chat-message p {
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.chat-message small {
  color: var(--ink-soft);
  font-size: 11px;
}

.two-column {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.sticky-column {
  position: sticky;
  top: calc(var(--header-h) + 22px);
}

.content-stack {
  display: grid;
  gap: 15px;
}

.list-card {
  padding: 23px;
  background: var(--white);
  border: 1px solid rgba(23, 51, 50, .1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.list-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.list-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.list-card p {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.card-details {
  margin-top: 20px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid rgba(23, 51, 50, .1);
}

.card-detail {
  color: var(--ink-soft);
  font-size: 12px;
}

.card-detail strong {
  margin-right: 3px;
  color: var(--ink);
}

.inline-edit {
  margin-top: 20px;
  padding: 18px;
  background: var(--paper);
  border-radius: 14px;
}

.filter-bar {
  margin-bottom: 17px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--white);
  border: 1px solid rgba(23, 51, 50, .1);
  border-radius: 15px;
}

.filter-bar label {
  font-size: 12px;
  font-weight: 850;
}

.filter-bar select {
  max-width: 280px;
}

.data-banner {
  margin-bottom: 18px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #704c1e;
  background: #fff1cb;
  border: 1px solid #ead18c;
  border-radius: 13px;
  font-size: 13px;
}

.data-banner.error {
  color: #84372f;
  background: #fde6e1;
  border-color: #efbbb2;
}

.loading-stack {
  display: grid;
  gap: 13px;
}

.loading-card {
  height: 150px;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
}

.loading-card::after {
  width: 100%;
  height: 100%;
  display: block;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(18,60,60,.06), transparent);
  animation: shimmer 1.2s infinite;
  transform: translateX(-100%);
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.result-group {
  padding: 25px;
  background: var(--white);
  border: 1px solid rgba(23, 51, 50, .1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.result-group + .result-group {
  margin-top: 17px;
}

.result-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.result-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -.03em;
}

.result-heading p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.result-row {
  padding: 13px 0;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1.6fr) 50px;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(23, 51, 50, .08);
}

.result-book strong {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.15;
}

.result-book small {
  color: var(--ink-soft);
}

.result-count {
  font-weight: 850;
  text-align: right;
}

.your-vote {
  margin-top: 18px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #275b46;
  background: #e3f1e9;
  border: 1px solid #c3dfcf;
  border-radius: 13px;
  font-size: 13px;
}

.your-vote strong {
  display: block;
}

.contact-hero {
  min-height: 375px;
  padding: 45px;
  display: grid;
  grid-template-columns: 1fr .75fr;
  align-items: center;
  gap: 36px;
  overflow: hidden;
  color: white;
  background: var(--teal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-hero h1 {
  margin: 8px 0 14px;
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 72px);
  line-height: .95;
  letter-spacing: -.05em;
}

.contact-hero p {
  max-width: 560px;
  color: rgba(255,255,255,.72);
}

.contact-image {
  width: 100%;
  height: 285px;
  object-fit: cover;
  border: 5px solid rgba(255,255,255,.1);
  border-radius: 22px;
  box-shadow: 0 19px 50px rgba(0,0,0,.25);
  transform: rotate(2deg);
}

.contact-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: start;
  gap: 22px;
}

.contact-note {
  padding: 25px;
  color: white;
  background: var(--coral);
  border-radius: var(--radius);
}

.contact-note h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 27px;
}

.contact-note p,
.contact-note li {
  color: rgba(255,255,255,.82);
  font-size: 13px;
}

.contact-note ul {
  padding-left: 19px;
}

.privacy-line {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,.25);
  font-size: 11px;
  font-weight: 800;
}

.modal-layer {
  position: fixed;
  z-index: 200;
  inset: 0;
  padding: 18px;
  display: grid;
  place-items: center;
  background: rgba(7, 30, 29, .73);
  backdrop-filter: blur(8px);
  animation: fade-in .18s ease;
}

.modal {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  padding: 29px;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: modal-in .24s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
}

.modal-header {
  margin-bottom: 22px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.modal-header h2 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.035em;
}

.modal-header p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.toast-host {
  position: fixed;
  z-index: 300;
  right: 18px;
  bottom: 24px;
  width: min(380px, calc(100% - 36px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 15px 17px;
  color: white;
  background: var(--teal);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 700;
  animation: toast-in .25s ease;
  pointer-events: auto;
}

.toast.success {
  background: #2f7055;
}

.toast.error {
  background: #9d413b;
}

.toast.warning {
  color: #5d3d11;
  background: #f4ca76;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
}

.site-footer {
  padding: 48px 0 42px;
  color: rgba(255,255,255,.72);
  background: #0d302f;
}

.footer-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-mark {
  width: 49px;
  height: 49px;
  object-fit: contain;
}

.footer-brand strong {
  color: white;
  font-family: var(--serif);
  font-size: 20px;
}

.footer-brand p {
  margin: 2px 0 0;
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.footer-note {
  grid-column: 1 / -1;
  margin: 5px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 11px;
  text-align: center;
}

.mobile-tabbar {
  display: none;
}

.not-found {
  min-height: 65vh;
  padding: 80px 20px;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found strong {
  color: var(--coral);
  font-family: var(--serif);
  font-size: 100px;
  line-height: 1;
}

.not-found h1 {
  margin: 6px 0 12px;
  font-family: var(--serif);
  font-size: 42px;
}

.not-found p {
  max-width: 470px;
  margin: 0 auto 23px;
  color: var(--ink-soft);
}

.noscript-message {
  position: fixed;
  z-index: 500;
  inset: 0;
  padding: 30px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--teal);
  font-size: 20px;
  text-align: center;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .menu-button,
  .mobile-menu {
    display: block;
  }

  .header-actions {
    margin-left: auto;
  }

  .two-column {
    grid-template-columns: 310px minmax(0, 1fr);
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sample-shelf-grid {
    grid-template-columns: 1fr;
  }

  .sample-shelf-copy {
    max-width: 650px;
  }

  .contact-hero {
    grid-template-columns: 1fr 300px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 67px;
  }

  body {
    padding-bottom: 68px;
  }

  .header-inner {
    height: var(--header-h);
  }

  .brand-mark {
    width: 41px;
    height: 41px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    display: none;
  }

  .account-chip {
    display: none;
  }

  .page-shell {
    padding-top: 38px;
    padding-bottom: 60px;
  }

  .page-intro {
    align-items: start;
    flex-direction: column;
  }

  .page-intro h1 {
    font-size: 45px;
  }

  .intro-actions {
    justify-content: flex-start;
  }

  .hero {
    min-height: calc(100vh - var(--header-h));
    background:
      linear-gradient(0deg, rgba(8, 38, 37, .96) 0%, rgba(8, 38, 37, .63) 65%, rgba(8, 38, 37, .28)),
      url(/api/asset/61598c63f370cecbe85ec68183d81c9d?slot=hero-library&j=joisk-asset&w=1600) 62% center / cover no-repeat;
  }

  .hero-inner {
    padding: 105px 0 60px;
    display: flex;
    align-items: end;
  }

  .hero h1 {
    font-size: clamp(50px, 15vw, 74px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .marketing-section {
    padding: 59px 0;
  }

  .section-heading-row {
    align-items: start;
    flex-direction: column;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: 0;
  }

  .step-number {
    margin-bottom: 20px;
  }

  .sample-shelf-panel {
    padding: 27px 20px;
  }

  .sample-books {
    min-height: 240px;
    gap: 9px;
  }

  .auth-gate {
    padding: 42px 0;
    grid-template-columns: 1fr;
  }

  .auth-gate-art {
    min-height: 250px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .auth-gate-copy {
    padding: 31px 25px;
    border-top: 0;
    border-left: 1px solid rgba(23, 51, 50, .1);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .auth-layout {
    padding: 34px 0 65px;
    grid-template-columns: 1fr;
  }

  .auth-art {
    min-height: 275px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .auth-art-copy {
    right: 24px;
    bottom: 23px;
    left: 24px;
  }

  .auth-art-copy blockquote {
    font-size: 21px;
  }

  .auth-panel {
    min-height: auto;
    padding: 32px 24px;
    border-top: 0;
    border-left: 1px solid rgba(23, 51, 50, .1);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .auth-panel h1 {
    font-size: 40px;
  }

  .account-page {
    padding-top: 38px;
  }

  .account-welcome {
    padding: 28px 24px;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    padding: 30px 23px;
  }

  .dashboard-hero-top {
    flex-direction: column;
  }

  .poll-switcher {
    width: 100%;
  }

  .phase {
    font-size: 9px;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .stat-card {
    padding: 13px 10px;
  }

  .stat-card strong {
    font-size: 24px;
  }

  .home-callout {
    align-items: start;
    flex-direction: column;
  }

  .book-grid {
    grid-template-columns: 1fr;
  }

  .book-card {
    display: grid;
    grid-template-columns: 42% 58%;
  }

  .book-cover-wrap {
    min-height: 285px;
    padding: 14px;
  }

  .book-cover,
  .book-cover-fallback {
    width: min(125px, 85%);
  }

  .book-card-body {
    padding: 19px 17px;
  }

  .book-card h3 {
    font-size: 23px;
  }

  .book-card-actions {
    flex-direction: column;
  }

  .empty-state {
    padding: 25px;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .empty-state img {
    max-height: 180px;
  }

  .chat-layout,
  .two-column {
    grid-template-columns: 1fr;
  }

  .sticky-column {
    position: static;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.span-2 {
    grid-column: auto;
  }

  .filter-bar {
    align-items: start;
    flex-direction: column;
  }

  .filter-bar select {
    max-width: none;
  }

  .result-row {
    grid-template-columns: 1fr 80px 42px;
    gap: 10px;
  }

  .result-book small {
    display: none;
  }

  .contact-hero {
    min-height: 0;
    padding: 31px 24px;
    grid-template-columns: 1fr;
  }

  .contact-image {
    height: 210px;
    transform: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-note {
    grid-column: auto;
  }

  .mobile-tabbar {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 6px 7px env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 253, 248, .96);
    border-top: 1px solid rgba(23, 51, 50, .12);
    box-shadow: 0 -8px 30px rgba(23,51,50,.08);
    backdrop-filter: blur(16px);
  }

  .mobile-tabbar a {
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    color: #70807d;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 850;
    text-decoration: none;
  }

  .mobile-tabbar a.active {
    color: var(--coral-dark);
    background: var(--coral-soft);
  }

  .mobile-tabbar svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .site-footer {
    padding-bottom: 37px;
  }

  .toast-host {
    bottom: 80px;
  }
}

@media (max-width: 450px) {
  .header-inner,
  .page-shell,
  .marketing-section,
  .footer-inner {
    width: min(calc(100% - 24px), var(--max));
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .page-intro h1 {
    font-size: 40px;
  }

  .book-card {
    grid-template-columns: 39% 61%;
  }

  .book-cover-wrap {
    min-height: 275px;
  }

  .book-card-body {
    padding: 16px 13px;
  }

  .book-card h3 {
    font-size: 20px;
  }

  .book-meta {
    align-items: start;
    flex-direction: column;
  }

  .dashboard-hero h1 {
    font-size: 42px;
  }

  .stats-row {
    gap: 6px;
  }

  .stat-card span {
    font-size: 8px;
  }

  .list-card-header,
  .result-heading,
  .your-vote {
    align-items: start;
    flex-direction: column;
  }

  .card-actions {
    justify-content: flex-start;
  }

  .detail-row {
    flex-direction: column;
    gap: 3px;
  }

  .detail-row strong {
    text-align: left;
  }

  .modal {
    padding: 23px 18px;
  }
}