@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg: #06101e;
  --surface: rgba(10, 17, 32, 0.98);
  --surface-strong: #0d1a2e;
  --surface-muted: #162035;
  --line: rgba(148, 163, 184, 0.16);
  --ink: #e8f0fc;
  --ink-soft: #8ea6c8;
  --accent: #4fc8ec;
  --accent-2: #e07a5f;
  --accent-3: #4a9fd5;
  --ok: #34d399;
  --shadow: 0 24px 60px rgba(1, 4, 15, 0.7);
  --shadow-soft: 0 14px 32px rgba(1, 4, 15, 0.55);
  --radius: 10px;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
}

body[data-theme="light"] {
  --bg: #f6f7fb;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --surface-muted: #eef3f8;
  --line: rgba(45, 52, 66, 0.1);
  --ink: #1f2430;
  --ink-soft: #606878;
  --accent: #4fc8ec;
  --accent-2: #d85f3f;
  --accent-3: #184e77;
  --ok: #237a57;
  --shadow: 0 24px 60px rgba(32, 30, 26, 0.1);
  --shadow-soft: 0 14px 32px rgba(31, 36, 48, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 0%, rgba(79, 200, 236, 0.16), transparent 32%),
    radial-gradient(circle at 90% 14%, rgba(224, 122, 95, 0.12), transparent 30%),
    linear-gradient(145deg, var(--bg), var(--surface-strong));
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(16px, 4vw, 42px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(140deg, rgba(79, 200, 236, 0.22), rgba(224, 122, 95, 0.2));
  border: 1px solid var(--line);
  color: var(--accent);
  box-shadow: var(--shadow-soft);
  flex: 0 0 auto;
}

.brand strong,
h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.05;
}

.brand small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.78rem;
  margin-top: 3px;
}

.top-actions,
.button-row,
.preview-actions,
.reader-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
}

.nav-link.active,
.nav-link:hover,
.secondary-link:hover {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface-muted);
}

.secondary-link {
  min-height: 42px;
  border-color: var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-strong) 92%, var(--accent) 8%);
}

.account-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--ok) 38%, var(--line));
  border-radius: 999px;
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 9%, var(--surface-muted));
  font-size: 0.78rem;
  font-weight: 800;
}

.icon-button,
.primary-button,
.secondary-button,
.text-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface-strong);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  padding: 0;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  color: #ffffff;
}

.secondary-button {
  background: color-mix(in srgb, var(--surface-strong) 92%, var(--accent) 8%);
}

.text-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}

.icon-button:hover,
.primary-button:hover,
.secondary-button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.shopfront-view,
.manage-view {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px);
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(300px, 0.75fr);
  gap: clamp(18px, 4vw, 46px);
  align-items: center;
  min-height: calc(100vh - 190px);
}

.shop-copy {
  max-width: 760px;
}

.price-card {
  display: grid;
  gap: 6px;
  width: min(460px, 100%);
  margin: 24px 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface));
  box-shadow: var(--shadow-soft);
}

.price-card strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.price-card span,
.fine-print {
  color: var(--ink-soft);
  line-height: 1.5;
}

.fine-print {
  max-width: 560px;
  margin-top: 14px;
  font-size: 0.9rem;
}

.shop-card {
  min-width: 0;
}

.storybook-card.compact {
  display: block;
  min-height: auto;
}

.storybook-card.compact .cover {
  min-height: 620px;
  box-shadow: var(--shadow);
}

.feature-grid,
.metric-grid,
.manage-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.feature-card,
.metric-card,
.manage-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  padding: 20px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 10px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-muted));
  border: 1px solid var(--line);
}

.workspace {
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(18px, 4vw, 42px);
  max-width: 1500px;
  margin: 0 auto;
}

.workspace.active {
  display: grid;
}

.portal-banner {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.portal-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  text-align: left;
  color: var(--ink);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.portal-card.owned {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface-muted)), var(--surface-muted));
}

.portal-card span {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.creator,
.preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.creator {
  padding: 24px;
  position: sticky;
  top: 92px;
}

.preview {
  padding: clamp(18px, 3vw, 30px);
}

.section-label {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

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

.story-form {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--ink);
  outline: 0;
  padding: 12px 13px;
}

textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

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

.choice-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.choice {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface-muted);
  font-weight: 700;
}

.choice.selected {
  color: #ffffff;
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.character-card {
  display: grid;
  gap: 9px;
  justify-items: center;
  min-height: 118px;
  padding: 12px 8px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.character-card.selected {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 24%, transparent);
}

.character-card strong {
  font-size: 0.8rem;
}

.character-art,
.upload-preview {
  position: relative;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(145deg, #8cc7d8, #244c6d);
  border: 1px solid color-mix(in srgb, var(--line) 75%, #ffffff);
}

.character-art::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0c6a8;
}

.character-art::after {
  content: "";
  position: absolute;
  left: 13px;
  bottom: -5px;
  width: 32px;
  height: 33px;
  border-radius: 14px 14px 6px 6px;
  background: #e07a5f;
}

.dreamer {
  background: linear-gradient(145deg, #c8b6ff, #2d3b68);
}

.dreamer::after {
  background: #4fc8ec;
}

.inventor {
  background: linear-gradient(145deg, #f6ad55, #184e77);
}

.inventor::after {
  background: #34d399;
}

.upload-preview {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--surface-strong) 80%, var(--accent) 20%);
  color: var(--accent);
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.safe-note {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--ok) 38%, var(--line));
  border-radius: 8px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--ok) 9%, var(--surface-muted));
  font-size: 0.88rem;
  line-height: 1.45;
}

.safe-note svg {
  color: var(--ok);
}

.preview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.storybook-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
  gap: 18px;
  min-height: 560px;
}

.cover,
.page,
.reader-cover,
.reader-page {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-strong);
}

.cover,
.reader-cover {
  position: relative;
  min-height: 520px;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 244, 201, 0.75), transparent 8%),
    linear-gradient(180deg, #10233d 0 48%, #2c6b64 49% 68%, #d4a857 69%);
}

body[data-theme="light"] .cover,
body[data-theme="light"] .reader-cover {
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 244, 201, 0.9), transparent 8%),
    linear-gradient(180deg, #37587a 0 48%, #6ca487 49% 68%, #e8c878 69%);
}

.moon {
  position: absolute;
  top: 46px;
  right: 54px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff4c9;
  box-shadow: 0 0 50px rgba(255, 244, 201, 0.45);
}

.hills {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background:
    linear-gradient(150deg, transparent 0 18%, rgba(20, 74, 64, 0.9) 19% 34%, transparent 35%),
    linear-gradient(210deg, transparent 0 28%, rgba(43, 91, 72, 0.95) 29% 46%, transparent 47%),
    linear-gradient(180deg, rgba(109, 165, 125, 0.95), rgba(51, 97, 72, 0.98));
}

.story-character {
  position: absolute;
  left: 40%;
  bottom: 140px;
  width: 70px;
  height: 112px;
  z-index: 2;
}

.story-character::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0c6a8;
}

.story-character::after {
  content: "";
  position: absolute;
  top: 34px;
  left: 12px;
  width: 52px;
  height: 72px;
  border-radius: 20px 20px 9px 9px;
  background: var(--accent-2);
}

.story-character.upload::before,
.story-character.upload::after {
  display: none;
}

.cover-copy {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 28px;
  z-index: 3;
  color: #ffffff;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.42);
}

.cover-copy span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 800;
}

.cover-copy h2 {
  max-width: 11ch;
  margin-bottom: 10px;
  font-size: clamp(2.3rem, 4.8vw, 4.7rem);
  line-height: 0.92;
}

.cover-copy p {
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.86);
}

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 4vw, 38px);
  background:
    linear-gradient(90deg, rgba(79, 200, 236, 0.08), transparent 16%),
    var(--surface-strong);
}

.page-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.83rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.page h3 {
  margin-top: 28px;
  font-size: clamp(1.5rem, 3vw, 2.7rem);
}

.page p {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.75;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.progress-dots {
  display: flex;
  gap: 7px;
}

.progress-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink-soft) 55%, transparent);
}

.progress-dots span.active {
  background: var(--accent);
}

.reader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  padding: clamp(16px, 4vw, 48px);
  background:
    radial-gradient(circle at 18% 0%, rgba(79, 200, 236, 0.14), transparent 30%),
    var(--bg);
}

.reader.active {
  display: grid;
  place-items: center;
}

.reader-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.reader-book {
  width: min(1180px, 100%);
  min-height: min(720px, 86vh);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.reader-cover,
.reader-page {
  min-height: min(720px, 86vh);
}

.reader-cover h2 {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  max-width: 10ch;
  color: #ffffff;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.42);
}

.reader-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 5vw, 58px);
  background: var(--surface-strong);
}

.reader-page span {
  color: var(--accent);
  font-weight: 800;
}

.reader-page h3 {
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
}

.reader-page p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2.4vw, 2rem);
  line-height: 1.7;
}

.library-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: min(420px, 100%);
  display: none;
  padding: 22px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: auto;
}

.library-panel.active {
  display: block;
}

.library-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.library-list {
  display: grid;
  gap: 10px;
}

.library-item {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 14px;
  text-align: left;
  color: var(--ink);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.library-item strong {
  font-family: var(--font-display);
}

.library-item span {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.empty-state {
  padding: 16px;
  color: var(--ink-soft);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.manage-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.login-card {
  display: grid;
  gap: 15px;
  width: min(520px, 100%);
  margin: clamp(32px, 8vw, 90px) auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.manage-content[hidden],
.login-card[hidden] {
  display: none;
}

.manage-head h1 {
  margin-bottom: 10px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.metric-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.metric-card span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-card strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.manage-grid {
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.95fr);
  align-items: start;
}

.manage-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill.pass {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 38%, var(--line));
  background: color-mix(in srgb, var(--ok) 9%, var(--surface-muted));
}

.status-pill.warn {
  color: #f6ad55;
  border-color: color-mix(in srgb, #f6ad55 42%, var(--line));
  background: color-mix(in srgb, #f6ad55 10%, var(--surface-muted));
}

.health-list,
.event-list {
  display: grid;
  gap: 10px;
}

.health-row,
.event-row {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.health-row strong,
.event-row strong {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
}

.health-row span,
.event-row span {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

.usage-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.usage-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  transition: width 0.2s ease;
}

@media (max-width: 1040px) {
  .workspace,
  .workspace.active,
  .storybook-card,
  .shop-hero,
  .feature-grid,
  .metric-grid,
  .manage-grid,
  .reader-book {
    grid-template-columns: 1fr;
  }

  .creator {
    position: static;
  }
}

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

  .top-actions .secondary-button,
  .top-actions .primary-button {
    display: none;
  }

  .workspace,
  .shopfront-view,
  .manage-view {
    padding: 14px;
  }

  .creator,
  .preview {
    padding: 18px;
  }

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

  .preview-head,
  .page-footer,
  .manage-head,
  .card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .cover,
  .reader-cover {
    min-height: 420px;
  }
}
