/* Generated from src/styles/index.css. Edit src/styles/, then run npm run build. */
/* src/styles/tokens.css */
:root {
  --sky: #dcecf6;
  --ink: #254966;
  --muted: #687f8c;
  --gold: #967025;
  --honey: #e1be6d;
  --ivory: #fffaf0;
  --line: rgba(60, 96, 121, 0.12);
  --blue: #345b75;
  --soft: #eef5f7;
  --serif:
    Georgia,
    "Times New Roman",
    serif;
  --sans:
    "Segoe UI",
    Arial,
    sans-serif;
}

/* src/styles/base.css */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background: #e5eff4;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #ab812d;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button svg {
  pointer-events: none;
}
svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.65;
  flex-shrink: 0;
}

/* src/styles/presentation.css */
.studio {
  position: absolute;
  left: max(5%, calc((100vw - 1200px) / 2));
  top: 76px;
  width: 395px;
  z-index: 1;
}
.studio-top {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #637e8c;
}
.studio-symbol {
  font-size: 33px;
  color: var(--gold);
}
.studio h1 {
  position: relative;
  margin: 27px 0 23px;
  font-family: var(--serif);
  font-size: 76px;
  font-weight: 400;
  line-height: 0.97;
  color: var(--gold);
  letter-spacing: -3px;
}
.studio h1 em {
  font-weight: 400;
}
.gold-star {
  position: absolute;
  left: 280px;
  top: 18px;
  font-size: 27px;
  font-style: normal;
}
.studio-lead {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.35;
  margin-bottom: 15px;
}
.studio-copy {
  font-size: 13px;
  line-height: 1.8;
  max-width: 330px;
  color: var(--muted);
}
.studio-rule {
  height: 1px;
  background:
    linear-gradient(
      90deg,
      #bacfd9,
      transparent);
  margin: 25px 0;
}
.studio-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
  color: #668292;
}
.screen-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}
.screen-menu button {
  padding: 8px 10px;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  font-size: 11px;
  color: #69818e;
  display: flex;
  gap: 10px;
  align-items: center;
}
.screen-menu button span {
  color: #8a9ca3;
  font-size: 10px;
}
.screen-menu button.active {
  background: #fffaf0;
  border-color: #d4c29c;
  color: var(--ink);
}
.screen-menu button.active span {
  color: var(--gold);
}
.screen-menu button:hover {
  background: #f5f9fa;
}
.studio-foot {
  font-size: 10px;
  line-height: 2;
  color: #6c828c;
  margin-top: 22px;
}
.demo-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 6px;
}
.studio-foot a {
  text-decoration: none;
  color: var(--gold);
  font-size: 12px;
}
.studio-foot a span {
  margin-left: 10px;
}
.preview-zone {
  position: relative;
  min-height: 100vh;
  padding: 40px 0 25px;
  margin-left: 49%;
  display: flex;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 55% 40%,
      #f5fafc 0,
      #e0edf5 48%,
      transparent 72%);
}
.preview-zone:before,
.sky:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(
      circle,
      #ffffffdd 0.9px,
      transparent 1.8px),
    radial-gradient(
      circle,
      #f4dba080 0.9px,
      transparent 1.7px);
  background-size: 53px 89px, 113px 157px;
  background-position: 12px 9px, 41px 31px;
  opacity: 0.8;
}
.preview-zone:after {
  content: "✧";
  position: absolute;
  top: 140px;
  right: 12%;
  color: #d6b36a;
  font-size: 46px;
  pointer-events: none;
  z-index: 0;
}
.preview-caption {
  width: 410px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1px;
  color: #748b98;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.preview-caption span:nth-child(2) {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--ink);
}
.device {
  position: relative;
  background: #fefefe;
  padding: 6px;
  border-radius: 46px;
  width: 402px;
  height: 854px;
  box-shadow: 0 32px 80px #24476124, 0 5px 14px #24476112;
  border: 1px solid #bacdd966;
  z-index: 1;
  overflow: hidden;
}
.device-top {
  height: 38px;
  width: 100%;
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  font-size: 11px;
  font-weight: 650;
  pointer-events: none;
}
.device-island {
  height: 20px;
  width: 85px;
  position: absolute;
  top: 3px;
  left: calc(50% - 42px);
  border-radius: 20px;
  background: #253b45;
}
.device-status {
  font-size: 10px;
  letter-spacing: 1px;
}
.device-status span {
  font-size: 13px;
  margin: 0 3px;
}
.device-bottom {
  position: absolute;
  bottom: 10px;
  left: calc(50% - 50px);
  height: 4px;
  width: 100px;
  border-radius: 10px;
  background: #647c85;
  opacity: 0.65;
  z-index: 5;
  pointer-events: none;
}
.app {
  position: relative;
  width: 390px;
  height: 840px;
  border-radius: 39px;
  overflow: hidden;
  background: #dcecf6;
}
.preview-bottom {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 10px;
  color: #748996;
  z-index: 1;
}
.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 12px;
  border: 1px solid #233d5710;
}
.sky-swatch {
  background: #dcecf6;
}
.gold-swatch {
  background: #cfaa5b;
}
.ivory-swatch {
  background: #fffaf0;
}

/* src/styles/app.css */
.sky {
  position: relative;
  background:
    linear-gradient(
      150deg,
      #e7f3fa 0%,
      #d7e9f4 70%,
      #e8f2f5 100%);
  min-height: 100%;
}
.screen {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 46px 23px 105px;
  position: relative;
}
.screen::-webkit-scrollbar {
  display: none;
}
.screen > * {
  position: relative;
  z-index: 1;
}
.screen.welcome-screen {
  padding: 47px 25px 27px;
  overflow: hidden;
}
.brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  color: var(--gold);
  letter-spacing: -0.7px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.brand span {
  font-size: 16px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 7px 0 23px;
  gap: 10px;
}
.credits-badge {
  background: var(--ivory);
  border: 1px solid #ddc69373;
  color: #806029;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  font-size: 11px;
  min-height: 32px;
}
.credits-badge svg {
  width: 14px;
  height: 14px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.65px;
  font-weight: 600;
  color: #71838b;
  margin-bottom: 9px;
}
.page-title {
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.17;
  letter-spacing: -0.6px;
}
.subtext {
  font-size: 12px;
  line-height: 1.6;
  color: #687e8b;
  margin-top: 8px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 21px 0 12px;
  gap: 10px;
}
.section-head h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}
.text-link {
  border: 0;
  background: none;
  padding: 7px 0;
  min-height: 32px;
  font-size: 11px;
  color: #76581e;
}
.card {
  background: #fffefaed;
  border: 1px solid #ffffffc0;
  border-radius: 20px;
  box-shadow: 0 6px 20px #38587006;
  padding: 18px;
}
.primary,
.secondary {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  padding: 12px 17px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.primary {
  background: var(--blue);
  color: #fffaf1;
  box-shadow: 0 5px 12px #345b7510;
}
.primary:hover {
  background: #294e68;
}
.primary.gold {
  background:
    linear-gradient(
      110deg,
      #f1d78f,
      #dab66a);
  color: #4f431f;
}
.secondary {
  background: #ffffffa8;
  color: var(--ink);
  border: 1px solid #c4d4db;
}
.primary svg,
.secondary svg {
  width: 17px;
  height: 17px;
}
.nav {
  position: absolute;
  z-index: 4;
  bottom: 21px;
  left: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fffef8f5;
  border: 1px solid #fff;
  border-radius: 21px;
  box-shadow: 0 7px 30px #45607912;
  padding: 7px 7px 6px;
  backdrop-filter: blur(12px);
}
.nav button {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: none;
  color: #7b919d;
  font-size: 8px;
  min-height: 46px;
}
.nav button.active {
  color: #826127;
  background: #f9efd7;
}
.nav button.create-nav {
  background: var(--blue);
  color: white;
  margin-top: -18px;
  margin-bottom: 3px;
  border: 5px solid #fffefa;
  border-radius: 50%;
  width: 49px;
  height: 49px;
  justify-self: center;
  min-height: 0;
  padding: 0;
  font-size: 0;
  box-shadow: 0 3px 6px #203a5120;
}
.nav .create-nav svg {
  width: 22px;
  height: 22px;
}
.profile-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0;
}
.profile-pill {
  border: 1px solid #ffffffca;
  background: #ffffff85;
  padding: 6px 12px 6px 6px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  min-height: 40px;
}
.profile-pill.selected {
  background: #fffaf0;
  border-color: #cfb985;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e3cfac;
  color: #765328;
  font-family: var(--serif);
  font-weight: 600;
}
.avatar.luca {
  background: #d3e3da;
  color: #497161;
}
.avatar.large {
  width: 53px;
  height: 53px;
  font-size: 26px;
  flex-shrink: 0;
}
.add-profile {
  border: 1px dashed #97b4c5;
  background: #ffffff50;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.hero-book {
  position: relative;
  overflow: hidden;
  border-radius: 21px;
  height: 209px;
  background: #abc4d6;
  border: 1px solid #e9f0f4;
  box-shadow: 0 8px 24px #486b7c13;
}
.hero-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 67%;
}
.hero-book:after {
  position: absolute;
  content: "";
  inset: 0;
  background:
    linear-gradient(
      0deg,
      #183d57d9,
      transparent 76%);
}
.hero-book-text {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 16px;
  z-index: 1;
  color: #fff9ea;
}
.hero-book-text small {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #f6dfa7;
}
.hero-book-text h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  max-width: 240px;
  margin-top: 6px;
}
.hero-book-text button {
  margin-top: 10px;
  background: #fffaf0f2;
  border: 0;
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--ink);
}
.hero-book-text button svg {
  width: 13px;
  height: 13px;
}
.home-cta {
  margin-top: 14px;
}
.meta-note {
  text-align: center;
  font-size: 9px;
  color: #718591;
  margin-top: 9px;
}
.book-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.book-tile {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  min-width: 0;
}
.cover {
  border-radius: 12px;
  height: 150px;
  position: relative;
  overflow: hidden;
  background: #bcd9e6;
  border: 1px solid #ffffffc0;
  box-shadow: 3px 5px 12px #26486016;
}
.cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      0deg,
      #24476190,
      transparent 62%);
  box-shadow: inset 6px 0 0 #ffffff30, inset 7px 0 0 #24496015;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-title {
  position: absolute;
  left: 13px;
  right: 10px;
  bottom: 14px;
  color: #fffbed;
  z-index: 1;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.12;
}
.book-tile > strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin: 9px 2px 4px;
}
.book-tile > small {
  display: block;
  font-size: 9px;
  color: #6c8593;
  margin: 0 2px;
}
.book-tile .favorite {
  position: absolute;
  right: 9px;
  top: 9px;
  z-index: 2;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffefcb;
  color: #957334;
  border: 0;
}
.favorite svg {
  width: 14px;
  height: 14px;
}
.welcome-art {
  position: absolute;
  inset: 30px -25px auto;
  height: 475px;
  pointer-events: none;
  opacity: 0.92;
}
.welcome-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 26% 67%;
  mask-image: linear-gradient(black 55%, transparent 99%);
}
.welcome-logo {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: 16px;
}
.welcome-logo .tiny-star {
  font-size: 29px;
  color: #a58133;
}
.welcome-logo h2 {
  font-family: var(--serif);
  font-size: 46px;
  letter-spacing: -1.6px;
  font-weight: 400;
  color: #92702b;
  line-height: 1.03;
  margin-top: 8px;
}
.welcome-logo h2 em {
  font-weight: 400;
}
.welcome-logo p {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: #6c8490;
  margin-top: 14px;
}
.welcome-bottom {
  position: absolute;
  bottom: 28px;
  left: 26px;
  right: 26px;
  text-align: center;
}
.welcome-bottom h3 {
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.welcome-bottom > p {
  font-size: 12px;
  line-height: 1.7;
  color: #627c8e;
  margin-bottom: 19px;
}
.gift {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #806227;
  background: #fff7e7b8;
  border: 1px solid #ddcda6;
  border-radius: 22px;
  padding: 7px 11px;
  font-size: 10px;
  margin-bottom: 18px;
}
.gift svg {
  width: 14px;
  height: 14px;
}
.signin-line {
  display: flex;
  justify-content: center;
  gap: 5px;
  align-items: center;
  font-size: 10px;
  color: #6b8391;
  margin-top: 11px;
}
.signin-line button {
  color: #76581e;
  font-size: 10px;
  border: 0;
  background: none;
  padding: 8px 3px;
}
.welcome-bottom .parent-note {
  font-size: 8px;
  line-height: 1.5;
  margin-top: 8px;
  margin-bottom: 0;
  color: #6d8897;
}
.backline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 21px;
  font-size: 10px;
  color: #627f91;
}
.icon-button {
  border: 0;
  background: #ffffff90;
  border-radius: 50%;
  height: 35px;
  width: 35px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.icon-button svg {
  width: 17px;
  height: 17px;
}
.step-bars {
  display: flex;
  gap: 5px;
  margin: 17px 0 24px;
}
.step-bars i {
  height: 3px;
  border-radius: 3px;
  background: #bcd0dc;
  flex: 1;
}
.step-bars i.done {
  background: #b48b3c;
}
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 15px;
}
.option {
  padding: 13px 12px;
  border: 1px solid #ffffff;
  background: #ffffffa3;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  min-height: 57px;
  font-size: 11px;
}
.option.selected {
  border-color: #b9964d;
  background: #fffbf0;
  box-shadow: 0 0 0 1px #c5a86333;
}
.option-icon {
  width: 29px;
  height: 29px;
  background: #e9f0f1;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.option.selected .option-icon {
  background: #f5e9c8;
  color: #9b7627;
}
.option svg {
  width: 18px;
  height: 18px;
}
.field {
  display: block;
  margin: 18px 0;
}
.field > span {
  display: block;
  font-size: 10px;
  color: #4b687c;
  margin-bottom: 8px;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #c8dbe5;
  border-radius: 12px;
  background: #fffffae3;
  color: var(--ink);
  padding: 12px 13px;
  min-height: 44px;
  font-size: 12px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #8d9fa7;
}
.field textarea {
  height: 92px;
  line-height: 1.7;
}
.choice-row {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}
.choice-row button {
  flex: 1;
  background: #ffffff94;
  border: 1px solid #ffffff;
  border-radius: 12px;
  padding: 12px 5px;
  font-size: 11px;
  min-height: 44px;
}
.choice-row button.selected {
  border-color: #c1a063;
  background: #fff9e9;
  color: #7e5d21;
}
.wizard-bottom {
  margin-top: 23px;
}
.wizard-bottom .subtext {
  text-align: center;
  font-size: 9px;
}
.format-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffffa0;
  border: 1px solid #ffffff;
  border-radius: 15px;
  padding: 14px 13px;
  margin: 9px 0;
  text-align: left;
  min-height: 71px;
}
.format-option.selected {
  border-color: #bd9b51;
  background: #fffbef;
}
.format-option .format-detail {
  flex: 1;
}
.format-option strong {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}
.format-option small {
  font-size: 10px;
  color: #7c8d96;
}
.format-price {
  color: #8e6c2f;
  font-size: 12px;
  white-space: nowrap;
}
.summary-lines {
  display: grid;
  gap: 9px;
  font-size: 11px;
  margin-top: 16px;
}
.summary-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.summary-lines span {
  color: #718895;
}
.summary-lines strong {
  font-weight: 500;
}
.summary-divider {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 5px;
}
.section-copy {
  font-size: 10px;
  line-height: 1.6;
  color: #748a95;
  margin-top: 10px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 19px 0 16px;
  overflow: auto;
  scrollbar-width: none;
}
.filter {
  border: 1px solid #ffffff;
  white-space: nowrap;
  min-height: 35px;
  border-radius: 20px;
  background: #ffffff8a;
  padding: 8px 12px;
  font-size: 10px;
}
.filter.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.library-grid .cover {
  height: 198px;
}
.library-grid {
  row-gap: 22px;
}
.library-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.library-top .icon-button {
  background: #ffffff77;
}
.search-field {
  margin: 15px 0 0;
}
.search-field input {
  border-radius: 25px;
  padding-left: 15px;
}
.reader-screen {
  background: #fffaf0;
  padding: 44px 20px 30px;
}
.reader-screen .backline {
  margin-bottom: 14px;
}
.reader-illustration {
  width: 100%;
  height: 268px;
  overflow: hidden;
  border-radius: 17px;
  position: relative;
  margin-bottom: 21px;
}
.reader-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 60%;
}
.reader-chapter {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #997438;
  text-align: center;
  margin-bottom: 11px;
}
.reader-title {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  text-align: center;
  line-height: 1.18;
  letter-spacing: -0.6px;
}
.reader-text {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.72;
  color: #385468;
  margin: 17px 3px 20px;
  white-space: pre-line;
}
.reader-story > .reader-text:first-of-type::first-letter {
  font-size: 35px;
  float: left;
  line-height: 1.1;
  margin: 4px 5px 0 0;
  color: #9d7934;
}
.audio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ecefe9;
  padding: 12px 14px;
  border-radius: 16px;
}
.audio-info small {
  display: block;
  margin-top: 3px;
  color: #8396a0;
  font-size: 9px;
}
.reader-page-illustration {
  margin: 12px 0 18px;
  border-radius: 16px;
  overflow: hidden;
  max-height: 190px;
}
.reader-page-illustration img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.reader-star {
  height: 64px;
  display: grid;
  place-items: center;
  color: #b6934a;
  font-size: 40px;
}
.reader-actions {
  display: flex;
  justify-content: flex-end;
  margin: 14px 0 4px;
}
.reader-actions .secondary {
  width: auto;
  min-height: 34px;
  padding: 8px 13px;
  font-size: 11px;
}
.compact {
  min-height: 42px;
  border-top: 1px solid rgba(37, 73, 102, 0.08);
}
.compact input[type=checkbox] {
  width: 18px;
  height: 18px;
}
.danger-link {
  color: #a95753 !important;
}
.audio-play {
  border: 0;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.audio-play svg {
  width: 15px;
  height: 15px;
}
.audio-info {
  flex: 1;
}
.audio-info strong {
  font-size: 10px;
  font-weight: 600;
  display: block;
}
.audio-track {
  height: 3px;
  background: #cdd6d3;
  border-radius: 3px;
  margin: 7px 0 4px;
  overflow: hidden;
}
.audio-track span {
  display: block;
  height: 100%;
  width: 24%;
  background: #aa8c53;
}
.audio-time {
  font-size: 8px;
  color: #7c8d8f;
  display: flex;
  justify-content: space-between;
}
.reader-pages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  font-size: 10px;
  color: #7e8d91;
}
.reader-pages .icon-button {
  border: 1px solid #d5dbd8;
  background: transparent;
}
.dots {
  display: flex;
  gap: 5px;
}
.dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cad3d3;
}
.dots i.active {
  width: 15px;
  border-radius: 5px;
  background: #b58d45;
}
.world-banner {
  padding: 16px;
  margin: 18px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fffbefcf;
}
.world-banner h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
}
.world-banner p {
  font-size: 10px;
  color: #7e9099;
  margin-top: 5px;
}
.character-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.character {
  border: 1px solid #ffffff;
  border-radius: 17px;
  background: #ffffffaa;
  padding: 16px 10px 13px;
  text-align: center;
  position: relative;
  min-height: 133px;
}
.character.selected {
  border-color: #bca066;
  background: #fff9eab8;
}
.character-icon {
  font-size: 31px;
  height: 43px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.character strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.character small {
  display: block;
  font-size: 9px;
  color: #7c9099;
  margin-top: 5px;
}
.character-check {
  position: absolute;
  top: 9px;
  right: 9px;
  color: #9b7933;
  font-size: 12px;
}
.place-card {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  width: 100%;
  background: #fffffa9e;
  border: 1px solid #ffffff;
  border-radius: 15px;
  padding: 13px;
  font-size: 12px;
  margin-bottom: 17px;
}
.place-card small {
  font-size: 9px;
  display: block;
  color: #7c9099;
  margin-top: 4px;
}
.place-card svg {
  color: #9a793e;
  width: 30px;
  height: 30px;
}
.balance {
  background:
    linear-gradient(
      130deg,
      #fff9e8,
      #f4e5bd);
  border: 1px solid #fff9ea;
  border-radius: 21px;
  padding: 23px 20px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}
.balance:after {
  content: "✦";
  font-size: 93px;
  color: #d5b970;
  position: absolute;
  right: 17px;
  top: 7px;
  opacity: 0.5;
}
.balance small {
  font-size: 10px;
  color: #92733e;
  position: relative;
  z-index: 1;
}
.balance h3 {
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 400;
  color: #7c602a;
  line-height: 1.1;
  margin-top: 7px;
  position: relative;
  z-index: 1;
}
.balance h3 span {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  margin-left: 5px;
}
.balance p {
  font-size: 9px;
  color: #92733e;
  margin-top: 11px;
}
.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 20px;
}
.package {
  border: 1px solid #ffffff;
  border-radius: 14px;
  background: #fffefaaf;
  text-align: center;
  padding: 13px 4px;
  position: relative;
  min-height: 122px;
}
.package.featured {
  background: #fffaec;
  border-color: #c6a05b;
}
.package small {
  font-size: 9px;
  display: block;
  color: #7f9098;
}
.package strong {
  display: block;
  color: #95702b;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  margin-top: 7px;
}
.package span {
  display: block;
  font-size: 8px;
  color: #7b8f9a;
  margin-bottom: 9px;
}
.package b {
  font-weight: 600;
  font-size: 12px;
}
.package-label {
  font-size: 7px !important;
  color: #fff !important;
  position: absolute;
  top: -8px;
  left: 8px;
  right: 8px;
  border-radius: 10px;
  background: #a7823b;
  padding: 3px 1px;
  letter-spacing: 0.3px;
}
.transaction {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.transaction:last-child {
  border: 0;
}
.transaction .option-icon {
  height: 31px;
  width: 31px;
  color: #a38247;
  background: #f8ecd5;
}
.transaction div:nth-child(2) {
  flex: 1;
}
.transaction strong {
  font-size: 10px;
  display: block;
  font-weight: 600;
}
.transaction small {
  font-size: 8px;
  color: #84949b;
  display: block;
  margin-top: 4px;
}
.transaction b {
  font-size: 11px;
  font-weight: 500;
}
.transaction b.positive {
  color: #508879;
}
.movements {
  padding: 3px 15px;
}
.cost-line {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #7b8d96;
  margin: 5px 2px 12px;
}
.profile-card {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 14px 0;
  padding: 19px 17px;
}
.profile-info {
  flex: 1;
}
.profile-info strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}
.profile-info small {
  display: block;
  font-size: 10px;
  color: #7e9099;
  margin-top: 6px;
}
.profile-card .icon-button {
  width: 31px;
  height: 31px;
  background: #eaf1f3;
}
.profile-add {
  border: 1px dashed #9bb5c6;
  background: #ffffff50;
  margin: 18px 0;
}
.notice {
  background: #ffffff70;
  border: 1px solid #ffffff88;
  border-radius: 14px;
  padding: 13px;
  margin-top: 18px;
  font-size: 10px;
  line-height: 1.7;
  color: #667e8c;
  display: flex;
  gap: 10px;
}
.notice svg {
  width: 17px;
  height: 17px;
  color: #9b7940;
  margin-top: 1px;
}
.account-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 20px 0;
}
.account-header strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}
.account-header small {
  font-size: 10px;
  color: #7a919e;
  display: block;
  margin-top: 5px;
}
.subscription {
  background: #fff8e6;
  border: 1px solid #ddc68c;
  padding: 18px;
  margin-bottom: 15px;
}
.subscription .eyebrow {
  color: #987536;
  margin-bottom: 8px;
  font-size: 8px;
}
.subscription h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  display: flex;
  justify-content: space-between;
}
.subscription h3 span {
  font-size: 19px;
}
.subscription h3 small {
  font-family: var(--sans);
  font-size: 10px;
}
.subscription p {
  font-size: 10px;
  color: #827d6c;
  line-height: 1.7;
  margin: 10px 0 15px;
}
.subscription .primary {
  min-height: 40px;
  font-size: 10px;
}
.setting-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 3px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  text-decoration: none;
  width: 100%;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  background: none;
  text-align: left;
}
.setting-row svg {
  width: 17px;
  height: 17px;
  color: #7b909c;
}
.setting-row span {
  flex: 1;
}
.setting-row > small {
  font-size: 10px;
  color: #8a9aa2;
}
.auth-tabs {
  display: flex;
  margin: 23px 0 20px;
  border-bottom: 1px solid #bfd4e1;
}
.auth-tabs button {
  flex: 1;
  border: 0;
  background: none;
  padding: 11px 0;
  font-size: 11px;
  color: #8198a4;
  border-bottom: 2px solid transparent;
}
.auth-tabs button.active {
  color: #846023;
  border-color: #b4934f;
}
.auth-screen .field {
  margin: 16px 0;
}
.auth-screen .primary {
  margin-top: 22px;
}
.auth-benefit {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 22px 0;
  color: #7b8e99;
  font-size: 10px;
  line-height: 1.5;
}
.auth-benefit svg {
  color: #a9843d;
  width: 25px;
  height: 25px;
}
.legal-demo {
  font-size: 9px;
  line-height: 1.65;
  color: #7c919c;
  margin-top: 15px;
  text-align: center;
}
.loading-content {
  text-align: center;
  padding-top: 45px;
}
.loading-art {
  width: 244px;
  height: 244px;
  border-radius: 50%;
  margin: 26px auto;
  position: relative;
  border: 1px solid #e2c785;
  padding: 8px;
}
.loading-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  object-position: 32% 65%;
}
.loading-art:after {
  content: "✦";
  font-size: 38px;
  position: absolute;
  right: -7px;
  top: 32px;
  color: #b78c3a;
}
.loading-content .page-title {
  font-size: 29px;
}
.loading-content .subtext {
  max-width: 260px;
  margin: 12px auto 25px;
}
.loading-steps {
  text-align: left;
  display: grid;
  gap: 19px;
  padding: 19px 28px;
}
.loading-step {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  color: #668497;
}
.loading-step svg {
  width: 18px;
  height: 18px;
  color: #a4823c;
}
.loading-step.pending {
  color: #9aacb5;
}
.loading-step.pending svg {
  color: #9aacb5;
}
.progress-bar {
  height: 4px;
  background: #bad1df;
  border-radius: 5px;
  margin: 22px 10px 10px;
  overflow: hidden;
}
.progress-bar span {
  width: 63%;
  display: block;
  height: 100%;
  background: #b58e44;
  border-radius: 5px;
}
.loading-content .primary {
  margin-top: 27px;
}
.admin-tag {
  background: #294c65;
  color: #fff;
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 8px;
  letter-spacing: 0.7px;
}
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 20px;
}
.metric {
  padding: 16px 13px;
}
.metric small {
  font-size: 9px;
  color: #7f929d;
  display: block;
}
.metric strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  display: block;
  margin-top: 8px;
}
.metric span {
  font-size: 8px;
  color: #658d80;
  display: block;
  margin-top: 5px;
}
.admin-table {
  width: 100%;
  font-size: 10px;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  font-size: 8px;
  color: #7b8e98;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding: 7px 0 11px;
}
.admin-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.admin-table td:last-child {
  text-align: right;
}
.status {
  font-size: 8px;
  background: #e8f1e9;
  color: #56806b;
  border-radius: 10px;
  padding: 4px 7px;
}
.status.pending {
  background: #f9edcf;
  color: #987330;
}
.admin-card .section-head {
  margin-top: 0;
}
.admin-card {
  padding: 17px 14px;
  margin-top: 20px;
}
.admin-cost {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  font-size: 10px;
  border-bottom: 1px solid var(--line);
}
.admin-cost:last-child {
  border: 0;
}
.admin-cost span {
  color: #6f8794;
}
.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  background: #23405755;
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 22px;
}
.modal {
  max-width: 370px;
  width: 100%;
  background: #fffaf0;
  border: 1px solid white;
  border-radius: 23px;
  box-shadow: 0 20px 80px #18324635;
  padding: 26px;
  position: relative;
}
.modal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  margin: 4px 30px 10px 0;
}
.modal p {
  font-size: 12px;
  line-height: 1.8;
  color: #6e8490;
}
.modal .close-modal {
  position: absolute;
  right: 15px;
  top: 15px;
  background: #eaf0ee;
}
.modal .primary {
  margin-top: 20px;
}
.modal .secondary {
  margin-top: 9px;
}
.modal-price {
  font-family: var(--serif);
  font-size: 37px;
  margin: 16px 0 8px;
  color: #967025;
}
.modal-price small {
  font-family: var(--sans);
  font-size: 11px;
}
.checkout-demo {
  font-size: 9px;
  color: #8c7e5f;
  background: #f3ead6;
  border-radius: 9px;
  padding: 9px;
  margin-top: 13px;
}
.modal ul {
  font-size: 12px;
  line-height: 2;
  color: #6e8490;
  padding-left: 16px;
  margin: 15px 0;
}
#toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 35px;
  transform: translate(-50%, 15px);
  max-width: 90vw;
  background: #294c65;
  color: #fffaf0;
  border-radius: 12px;
  font-size: 12px;
  padding: 13px 20px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  box-shadow: 0 5px 20px #24435b22;
}
#toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
.empty-state {
  text-align: center;
  padding: 30px 15px;
  background: #ffffff6f;
  border-radius: 18px;
  font-size: 12px;
  line-height: 1.8;
  color: #738b99;
}
.readable-large .reader-text {
  font-size: 19px;
}

/* src/styles/responsive.css */
.embed .studio,
.embed .preview-caption,
.embed .preview-bottom {
  display: none;
}
.embed .preview-zone {
  margin: 0;
  padding: 0;
  min-height: 0;
  background: none;
}
.embed .preview-zone:before,
.embed .preview-zone:after {
  display: none;
}
.embed .device {
  width: 390px;
  height: 840px;
  padding: 0;
  border: 0;
  border-radius: 30px;
  box-shadow: none;
}
.embed .app {
  border-radius: 30px;
}
.embed .device-top {
  top: 5px;
}
.embed .device-island {
  display: none;
}
.embed .device-bottom {
  bottom: 9px;
}
.embed body {
  background: transparent;
}
@media (min-width: 1550px) {
  .studio {
    top: 92px;
  }
  .preview-zone {
    margin-left: 46%;
    padding-top: 49px;
  }
}
@media (max-width: 950px) and (min-width: 601px) {
  .studio {
    left: 4%;
    width: 285px;
    top: 80px;
  }
  .studio h1 {
    font-size: 62px;
  }
  .gold-star {
    left: 228px;
  }
  .studio-lead {
    font-size: 22px;
  }
  .studio-copy {
    max-width: 260px;
  }
  .preview-zone {
    margin-left: 40%;
  }
  .preview-caption {
    width: 390px;
  }
  .screen-menu {
    gap: 4px;
  }
  .screen-menu button {
    padding: 7px 4px;
    font-size: 10px;
    gap: 7px;
  }
  .device {
    transform: scale(0.88);
    transform-origin: top center;
    margin-bottom: -102px;
  }
  .preview-bottom {
    margin-top: 10px;
  }
  .preview-caption span:last-child {
    display: none;
  }
}
@media (max-width: 600px) {
  body {
    background: var(--sky);
  }
  .studio,
  .preview-caption,
  .preview-bottom {
    display: none;
  }
  .preview-zone {
    margin: 0;
    padding: 0;
    min-height: 0;
    height: 100dvh;
    background: none;
  }
  .preview-zone:after,
  .preview-zone:before {
    display: none;
  }
  .device {
    width: 100%;
    height: 100dvh;
    min-height: 680px;
    border: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .app {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .device-island {
    display: none;
  }
  .device-top {
    top: 7px;
  }
  .screen {
    padding-left: 24px;
    padding-right: 24px;
  }
  .welcome-screen {
    min-height: 760px;
  }
  .welcome-art {
    height: 57%;
    max-height: 470px;
  }
  .device-bottom {
    bottom: 7px;
  }
  .nav {
    bottom: 18px;
  }
  .preview-zone:after {
    display: none;
  }
  #toast {
    bottom: 100px;
    font-size: 11px;
  }
  .modal {
    padding: 23px;
  }
  .reader-illustration {
    height: 31vh;
    min-height: 215px;
    max-height: 310px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* src/styles/refinements.css */
.home-screen .topbar {
  margin-bottom: 18px;
}
.home-screen .page-title {
  font-size: 29px;
}
.home-screen .profile-switch {
  margin: 15px 0;
}
.home-screen .hero-book {
  height: 185px;
}
.home-screen .section-head {
  margin-top: 17px;
}
.home-screen .cover {
  height: 108px;
}
.home-screen .book-tile .text-link {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  font-size: 10px !important;
}
.home-screen .book-tile .text-link svg {
  width: 13px;
  height: 13px;
}
.home-screen .cover-title {
  font-size: 15px;
}
.nav:after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: -18px;
  right: -18px;
  height: 17px;
  background: #e5f0f5;
  pointer-events: none;
}
.welcome-art {
  inset: 30px 0 auto;
}
.cover-open {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}
.book-tile .favorite {
  z-index: 3;
}
.favorite[aria-pressed=true] svg {
  fill: #ead29a;
}
.modal .primary,
.modal .secondary {
  min-height: 44px;
}
.screen-world .character {
  min-height: 109px;
  padding: 12px 8px 9px;
}
.screen-world .character-icon {
  height: 34px;
  font-size: 28px;
  margin-bottom: 4px;
}
.screen-world .world-banner {
  padding: 14px;
  margin: 15px 0;
}
.screen-world .section-head {
  margin-top: 16px;
}
.screen-world .world-banner .avatar {
  width: 45px;
  height: 45px;
}
.screen-world .place-card {
  margin-bottom: 13px;
}
.reader-actions {
  gap: 8px;
  align-items: center;
}
.reader-actions .secondary {
  flex: 1;
}
.reader-actions .liked {
  color: var(--gold);
}
.reader-actions .liked svg {
  fill: currentColor;
}
.reader-audio-error {
  font-size: 12px;
  color: #8b5353;
}
.sync-notice {
  margin: 8px 14px;
  padding: 10px;
  border-radius: 12px;
  background: #fffaf0;
  font-size: 11px;
}
.sync-notice button {
  display: block;
}
.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
  animation: none !important;
  transition: none !important;
}
.welcome-logo p {
  background: #e7f2f4b8;
  border-radius: 14px;
  width: max-content;
  margin: 14px auto 0;
  padding: 5px 8px;
}
.page-title,
.reader-title,
.cover-title {
  overflow-wrap: anywhere;
}
.admin-nav {
  grid-template-columns: repeat(5, 1fr);
}
.loading-content {
  padding-top: 22px;
}
.loading-art {
  width: 230px;
  height: 230px;
  margin: 23px auto;
}
.loading-steps {
  gap: 16px;
}
.character-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.character-wrap > .character {
  width: 100%;
}
.character-wrap > .text-link {
  align-self: center;
}
.character strong,
.character small,
.profile-info {
  overflow-wrap: anywhere;
  min-width: 0;
}
.modal {
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* src/styles/product.css */
body[data-view=product] {
  background:
    linear-gradient(
      145deg,
      #e7f3fa,
      #dcecf6 65%,
      #e8f2f5);
}
body[data-view=product] .studio,
body[data-view=product] .preview-caption,
body[data-view=product] .preview-bottom,
body[data-view=product] .device-top,
body[data-view=product] .device-bottom {
  display: none;
}
body[data-view=product] .preview-zone {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  background: none;
}
body[data-view=product] .preview-zone:after {
  display: none;
}
body[data-view=product] .device {
  width: 100%;
  max-width: 760px;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
body[data-view=product] .app {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: transparent;
}
body[data-view=product] .screen {
  padding: 30px 28px 110px;
}
body[data-view=product] .nav {
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 24px;
  right: 24px;
}
body[data-view=product] .nav:after {
  display: none;
}
body[data-view=product] .auth-screen {
  max-width: 500px;
  margin: 0 auto;
  padding-top: 45px;
}
body[data-view=product] .screen.welcome-screen {
  min-height: max(780px, 100dvh);
  padding: 30px 28px;
  overflow-y: auto;
}
body[data-view=product] .welcome-art {
  top: 0;
  height: 490px;
  max-height: none;
}
body[data-view=product] .welcome-logo {
  margin-top: 0;
}
body[data-view=product] .welcome-bottom {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  width: 100%;
  max-width: 390px;
  margin: 235px auto 0;
}
.payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.payment-method > svg {
  color: var(--gold);
  width: 30px;
  height: 30px;
}
@media (min-width: 601px) {
  body[data-view=product] .screen {
    padding: 35px 50px 115px;
  }
  body[data-view=product] .page-title,
  body[data-view=product] .home-screen .page-title {
    font-size: 36px;
  }
  body[data-view=product] .subtext,
  body[data-view=product] .section-copy {
    font-size: 14px;
  }
  body[data-view=product] .nav {
    left: 45px;
    right: 45px;
  }
  body[data-view=product] .nav button {
    font-size: 10px;
  }
  body[data-view=product] .home-screen .hero-book {
    height: 260px;
  }
  body[data-view=product] .home-screen .cover,
  body[data-view=product] .cover {
    height: 190px;
  }
  body[data-view=product] .reader-text {
    font-size: 17px;
  }
  body[data-view=product] .reader-illustration {
    height: 330px;
  }
  body[data-view=product] .reader-page-illustration,
  body[data-view=product] .reader-page-illustration img {
    max-height: 300px;
    height: 300px;
  }
}

/* src/styles/index.css */
