:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --surface-muted: #ebe5d9;
  --surface-tint: #edf2ee;
  --text: #26241f;
  --text-soft: #48453e;
  --muted: #6b675e;
  --line: #d9d1c3;
  --line-strong: #bdb3a4;
  --brand: #315c50;
  --brand-strong: #23443b;
  --brand-soft: #dbe8e1;
  --accent: #b75d3e;
  --accent-soft: #f2ded5;
  --success: #347451;
  --success-soft: #dfeee4;
  --warning: #a56524;
  --warning-soft: #f5e7d1;
  --danger: #a4453e;
  --focus: #2475c7;
  --ink: #172b27;
  --ink-text: #f4f1e9;
  --shadow: 0 16px 46px rgba(49, 42, 31, 0.1);
  --shadow-small: 0 8px 24px rgba(49, 42, 31, 0.08);
  --radius: 16px;
  --radius-small: 10px;
  --font-ui: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, sans-serif;
  --font-serif: "Iowan Old Style", "Noto Serif KR", "Nanum Myeongjo", Georgia, serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --header-height: 76px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171916;
  --surface: #20231f;
  --surface-strong: #252824;
  --surface-muted: #292d28;
  --surface-tint: #26322d;
  --text: #f0ede4;
  --text-soft: #d6d1c6;
  --muted: #b5b0a6;
  --line: #41463f;
  --line-strong: #5a6157;
  --brand: #82b9a6;
  --brand-strong: #a1cbbb;
  --brand-soft: #263b34;
  --accent: #e08b6c;
  --accent-soft: #4a3028;
  --success: #79bd91;
  --success-soft: #293f31;
  --warning: #dfaa61;
  --warning-soft: #483923;
  --danger: #e17f76;
  --focus: #72b6f2;
  --ink: #0f1714;
  --ink-text: #f0ede4;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  --shadow-small: 0 8px 24px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.publishing-app {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
summary {
  cursor: pointer;
}

a {
  color: inherit;
}

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

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

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

h1 {
  font-size: clamp(2.7rem, 5.6vw, 5.55rem);
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.65rem);
}

h3 {
  line-height: 1.4;
}

::selection {
  background: var(--brand);
  color: var(--surface);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sr-only,
.visually-hidden-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--focus);
  color: #fff;
  text-decoration: none;
  transform: translateY(-150%);
}

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

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: clamp(76px, 10vw, 132px) 0;
}

.kicker,
.eyebrow {
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.84em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.button-primary {
  background: var(--brand);
  color: #fff;
}

[data-theme="dark"] .button-primary {
  color: #11241e;
}

.button-primary:hover:not(:disabled) {
  background: var(--brand-strong);
}

.button-outline {
  border-color: var(--line-strong);
  background: var(--surface);
}

.button-outline:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}

.button-quiet {
  color: var(--text-soft);
}

.button-quiet:hover:not(:disabled) {
  color: var(--brand);
}

.button-light {
  background: var(--ink-text);
  color: var(--ink);
}

.button-small {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.button-full {
  width: 100%;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--brand);
  font-weight: 750;
  text-decoration: none;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 22px rgba(40, 35, 27, 0.05);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
}

.brand-readmade {
  gap: 0;
}

.brand-logo {
  display: block;
  width: 174px;
  max-width: 100%;
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  flex: 0 0 39px;
  width: 39px;
  height: 44px;
  place-items: center;
  border-radius: 2px 9px 9px 2px;
  background: var(--brand);
  box-shadow: inset 4px 0 0 color-mix(in srgb, #fff 32%, transparent);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand strong {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.65rem;
}

.site-nav {
  display: flex;
  gap: 30px;
  justify-self: center;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 1.027rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

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

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(68px, 8vw, 112px);
}

.hero::before {
  position: absolute;
  top: -180px;
  left: -210px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 10%, transparent), transparent 68%);
  content: "";
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(48px, 6vw, 86px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  letter-spacing: 0.045em;
  text-transform: none;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
}

.hero h1 {
  margin: 24px 0 25px;
}

.hero h1 em {
  color: var(--brand);
  font-style: normal;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: clamp(1.04rem, 1.6vw, 1.2rem);
  line-height: 1.8;
}

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

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.82rem;
  list-style: none;
}

.trust-list li {
  display: flex;
  gap: 6px;
  align-items: center;
}

.trust-list li span {
  color: var(--success);
  font-weight: 900;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-visual::before {
  position: absolute;
  z-index: -1;
  inset: 8% -6% -5% 13%;
  border-radius: 52% 48% 34% 66% / 42% 40% 60% 58%;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  content: "";
}

.hero-visual img {
  width: 100%;
  height: 560px;
  border-radius: 44% 10% 10% 12% / 24% 10% 10% 12%;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: 66% center;
}

.visual-note {
  position: absolute;
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 215px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 93%, transparent);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(12px);
}

.visual-note span:last-child {
  display: flex;
  flex-direction: column;
}

.visual-note strong {
  font-size: 0.82rem;
}

.visual-note small {
  color: var(--muted);
  font-size: 0.68rem;
}

.visual-note-top {
  top: 38px;
  right: -24px;
}

.visual-note-bottom {
  bottom: 38px;
  left: -24px;
}

.status-dot {
  display: inline-block;
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.status-good {
  background: var(--success);
  box-shadow: 0 0 0 5px var(--success-soft);
}

.status-check {
  background: var(--warning);
  box-shadow: 0 0 0 5px var(--warning-soft);
}

.section-heading h2 {
  margin-bottom: 20px;
}

.section-heading > p:last-child,
.split-heading > p {
  max-width: 530px;
  color: var(--muted);
  line-height: 1.8;
}

.split-heading {
  display: flex;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 45px;
}

.split-heading h2 {
  margin-bottom: 0;
}

.split-heading > p {
  margin-bottom: 8px;
}

.centered {
  max-width: 720px;
  margin: 0 auto 46px;
  text-align: center;
}

.centered > p:last-child {
  margin-inline: auto;
}

.process-section {
  border-top: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-card {
  position: relative;
  min-height: 316px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.process-card::after {
  position: absolute;
  right: -40px;
  bottom: -45px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 7%, transparent);
  content: "";
}

.step-number {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.step-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 32px 0 24px;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 800;
}

.process-card h3 {
  margin-bottom: 9px;
  font-size: 1.15rem;
}

.process-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
}

.paper-section {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--surface-muted);
}

.prepare-grid {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: clamp(50px, 8vw, 100px);
  align-items: center;
}

.document-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  transform: rotate(-1deg);
}

.document-card {
  position: relative;
  min-height: 205px;
  padding: 25px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 5px 7px 0 color-mix(in srgb, var(--line) 55%, transparent);
}

.document-card:nth-child(2),
.document-card:nth-child(3) {
  transform: translateY(14px);
}

.document-primary {
  border-top: 4px solid var(--brand);
}

.optional-card {
  opacity: 0.82;
}

.doc-index,
.doc-type {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 800;
}

.doc-index {
  color: var(--muted);
}

.doc-type {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}

.document-card h3 {
  margin: 31px 0 6px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.document-card p {
  color: var(--muted);
  font-size: 0.8rem;
}

.format-row {
  display: flex;
  gap: 6px;
  margin-top: 18px;
}

.format-row span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

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

.format-card {
  position: relative;
  min-height: 290px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 180ms ease, transform 180ms ease;
}

.format-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.format-symbol {
  display: grid;
  width: 46px;
  height: 50px;
  place-items: center;
  border-radius: 6px 13px 13px 6px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 800;
}

.docs-symbol { background: #3974d7; }
.word-symbol { background: #315dab; }
.hwp-symbol { background: #08a5a1; }
.pdf-symbol { background: #bb5046; }

.format-card h3 {
  margin: 24px 0 8px;
}

.format-card p {
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 0.86rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.2;
}

.badge-good {
  background: var(--success-soft);
  color: var(--success);
}

.badge-check {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-warn {
  background: var(--accent-soft);
  color: var(--accent);
}

.ink-section {
  background: var(--ink);
  color: var(--ink-text);
}

.light-heading .kicker {
  color: #9ac4b5;
}

.light-heading > p {
  color: rgba(244, 241, 233, 0.65);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
}

.principle-card {
  min-height: 260px;
  padding: 28px;
  background: var(--ink);
}

.principle-card > span {
  color: #9ac4b5;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.principle-card h3 {
  margin: 68px 0 12px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.principle-card p {
  color: rgba(244, 241, 233, 0.62);
  font-size: 0.84rem;
}

.grade-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
  align-items: center;
}

.grade-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.grade-list article {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.grade-list article:last-child {
  border-bottom: 0;
}

.grade {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
}

.grade-a { background: var(--success-soft); color: var(--success); }
.grade-b { background: var(--warning-soft); color: var(--warning); }
.grade-c { background: var(--accent-soft); color: var(--accent); }

.grade-list h3 {
  margin: 0 0 2px;
  font-size: 0.96rem;
}

.grade-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.faq-section {
  border-top: 1px solid var(--line);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 80px;
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion details:first-child {
  border-top: 1px solid var(--line);
}

.accordion summary {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-weight: 750;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary span {
  color: var(--brand);
  font-size: 1.2rem;
  transition: transform 180ms ease;
}

.accordion details[open] summary span {
  transform: rotate(45deg);
}

.accordion details p {
  max-width: 720px;
  padding: 0 38px 24px 0;
  color: var(--muted);
}

.final-cta {
  padding-top: 0;
}

.final-cta-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: end;
  padding: clamp(42px, 6vw, 72px);
  border-radius: 24px;
  background: var(--brand);
  color: #fff;
}

.final-cta-card .kicker {
  color: rgba(255, 255, 255, 0.7);
}

.final-cta-card h2 {
  margin-bottom: 0;
}

.final-cta-card > div:last-child p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  padding: 62px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.65fr 0.65fr;
  gap: 45px;
  padding-bottom: 52px;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.78rem;
}

.footer-grid > div:not(:first-child) strong {
  margin-bottom: 6px;
  font-size: 0.76rem;
}

.footer-grid a,
.footer-grid span {
  color: var(--muted);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
}

.compact-footer {
  padding-top: 22px;
}

.compact-footer .footer-bottom {
  padding-top: 0;
  border-top: 0;
}

/* Workspace common */
.workspace-main {
  min-height: calc(100vh - var(--header-height));
}

.workspace-head {
  padding: 58px 0 48px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.workspace-title,
.project-title-row {
  display: flex;
  gap: 35px;
  align-items: center;
  justify-content: space-between;
}

.workspace-title h1,
.project-title-row h1 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
}

.workspace-title p:last-child,
.project-title-row p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.demo-badge {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.demo-badge span {
  color: var(--success);
  font-size: 0.55rem;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: start;
  padding-block: 38px 100px;
}

.form-workspace,
.summary-sticky,
.timeline-card,
.studio-card,
.review-card,
.parity-card,
.proof-card,
.approval-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(44, 38, 28, 0.04);
}

.form-workspace {
  overflow: hidden;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.step-button {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 1px 9px;
  padding: 18px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.step-button:last-child {
  border-right: 0;
}

.step-button > span {
  display: grid;
  grid-row: 1 / 3;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.step-button strong {
  font-size: 0.78rem;
}

.step-button small {
  font-size: 0.65rem;
}

.step-button.is-active {
  background: var(--surface);
  color: var(--text);
}

.step-button.is-active::after {
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 3px;
  background: var(--brand);
  content: "";
}

.step-button.is-active > span,
.step-button.is-complete > span {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.form-step {
  min-height: 625px;
  padding: clamp(28px, 5vw, 52px);
}

.form-section-head,
.card-head {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  justify-content: space-between;
}

.form-section-head {
  margin-bottom: 32px;
}

.form-section-head h2 {
  margin: 6px 0 8px;
  font-family: var(--font-ui);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.form-section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-count {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
}

.source-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.source-choice {
  position: relative;
  display: flex;
  min-height: 154px;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.source-choice input {
  position: absolute;
  opacity: 0;
}

.source-choice .format-symbol {
  width: 35px;
  height: 38px;
  margin-bottom: 14px;
  font-size: 0.93rem;
}

.source-choice strong {
  font-size: 0.9rem;
}

.source-choice small {
  color: var(--muted);
  font-size: 0.7rem;
}

.choice-check {
  position: absolute;
  top: 16px;
  right: 16px;
  display: none;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
}

.source-choice:has(input:checked) {
  border-color: var(--brand);
  background: var(--surface-tint);
}

.source-choice input:checked ~ .choice-check {
  display: grid;
}

.source-choice:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.source-input {
  margin-bottom: 20px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
}

.source-input > label,
.compact-upload > label,
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}

.inline-field {
  display: flex;
  gap: 8px;
}

.inline-field input {
  flex: 1;
}

.field-help {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

input[type="text"],
input[type="url"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-strong);
}

textarea {
  resize: vertical;
}

.upload-zone {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 116px;
  padding: 22px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-muted) 60%, transparent);
  transition: border-color 180ms ease, background 180ms ease;
}

.upload-zone.is-dragging {
  border-color: var(--brand);
  background: var(--surface-tint);
}

.upload-zone > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.upload-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 800;
}

.upload-zone > div:nth-child(3) {
  display: flex;
  flex-direction: column;
}

.upload-zone strong {
  font-size: 0.84rem;
}

.upload-zone span {
  color: var(--muted);
  font-size: 0.69rem;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
}

.file-row {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-tint);
  font-size: 0.73rem;
}

.file-row > span:first-child {
  color: var(--success);
  font-weight: 900;
}

.file-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-row small {
  margin-left: auto;
  color: var(--muted);
}

.file-row button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.conditional-box {
  margin-top: 20px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.conditional-box > div:first-child {
  display: flex;
  gap: 13px;
  align-items: center;
}

.conditional-box > div:first-child > span:last-child {
  display: flex;
  flex-direction: column;
}

.conditional-icon {
  display: grid;
  flex: 0 0 35px;
  width: 35px;
  height: 39px;
  place-items: center;
  border-radius: 4px 10px 10px 4px;
  background: #bb5046;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 800;
}

.conditional-box strong {
  font-size: 0.82rem;
}

.conditional-box small {
  color: var(--muted);
  font-size: 0.69rem;
}

.switch-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 15px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

.switch-row input {
  position: absolute;
  opacity: 0;
}

.switch {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--line-strong);
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 160ms ease;
}

.switch-row input:checked + .switch {
  background: var(--brand);
}

.switch-row input:checked + .switch::after {
  transform: translateX(16px);
}

.switch-row input:focus-visible + .switch {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.compact-upload {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.check-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 17px;
  cursor: pointer;
}

.check-row input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brand);
}

.check-row > span {
  display: flex;
  flex-direction: column;
}

.check-row strong {
  font-size: 0.78rem;
}

.check-row small {
  color: var(--muted);
  font-size: 0.68rem;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 15px;
  align-items: center;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}

.form-actions [data-step-prev] {
  justify-self: start;
}

.form-actions [data-step-next] {
  justify-self: end;
}

.autosave-status {
  color: var(--muted);
  font-size: 0.67rem;
}

.summary-sticky {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  padding: 25px;
}

.summary-sticky h2 {
  margin-bottom: 14px;
  font-family: var(--font-ui);
  font-size: 1.65rem;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 220ms ease;
}

.summary-checks {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.summary-checks li {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.74rem;
}

.summary-checks li.is-complete {
  color: var(--text);
}

.summary-checks li.is-complete span {
  color: var(--success);
}

.summary-principle {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border-radius: 9px;
  background: var(--brand-soft);
}

.summary-principle > span {
  color: var(--brand);
  font-size: 1.1rem;
}

.summary-principle div {
  display: flex;
  flex-direction: column;
}

.summary-principle strong {
  font-size: 0.71rem;
}

.summary-principle p {
  margin: 0;
  color: var(--brand);
  font-size: 0.63rem;
}

.summary-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.62rem;
}

.label-rule {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
}

.label-example {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  font-size: 0.74rem;
  white-space: nowrap;
}

.label-example .mono {
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
}

.connector {
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}

.label-rule p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.asset-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.asset-add {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 0.74rem;
  font-weight: 750;
}

.asset-add span {
  color: var(--brand);
  font-size: 1rem;
}

.asset-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.asset-empty {
  display: grid;
  min-height: 230px;
  place-items: center;
  align-content: center;
  padding: 28px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.asset-empty > span {
  margin-bottom: 9px;
  color: var(--brand);
  font-size: 2rem;
}

.asset-empty strong {
  color: var(--text);
  font-size: 0.87rem;
}

.asset-empty p {
  max-width: 480px;
  margin: 5px 0 15px;
  font-size: 0.71rem;
}

.asset-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
}

.asset-item-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.asset-type-chip {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.65rem;
  font-weight: 800;
}

.asset-item-head .mono {
  font-size: 0.76rem;
}

.asset-confirmed {
  margin-left: auto;
  color: var(--success);
  font-size: 0.65rem;
  font-weight: 800;
}

.asset-remove {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.asset-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}

.asset-fields label {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 750;
}

.asset-fields label span {
  display: block;
  margin-bottom: 4px;
}

.asset-fields input,
.asset-fields select {
  min-height: 39px;
  font-size: 0.72rem;
}

.asset-fields .asset-wide {
  grid-column: 1 / -1;
}

.help-panel {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.help-panel summary {
  display: flex;
  justify-content: space-between;
  padding: 17px 0;
  font-size: 0.76rem;
  font-weight: 800;
  list-style: none;
}

.help-panel summary::-webkit-details-marker { display: none; }

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-bottom: 14px;
}

.help-grid p {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.67rem;
}

.help-grid strong {
  display: block;
  color: var(--text);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 17px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label span {
  color: var(--accent);
  font-size: 0.64rem;
}

.cover-row {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 23px;
  align-items: center;
  margin-top: 27px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.cover-placeholder {
  display: flex;
  width: 112px;
  height: 160px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 13px;
  border-radius: 3px 10px 10px 3px;
  background: linear-gradient(150deg, var(--brand), var(--brand-strong));
  box-shadow: inset 6px 0 0 rgba(255, 255, 255, 0.16), var(--shadow-small);
  color: #fff;
}

.cover-placeholder span {
  font-family: var(--font-serif);
  font-size: 1rem;
}

.cover-placeholder small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.51rem;
}

.cover-row h3 {
  margin: 0 0 5px;
}

.cover-row p {
  color: var(--muted);
  font-size: 0.72rem;
}

.compact-list {
  margin-top: 8px;
}

.consent-card {
  margin: 27px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.consent-card legend {
  padding: 0 7px;
  font-size: 0.82rem;
  font-weight: 800;
}

.privacy-principle {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 19px;
  padding: 16px;
  border-radius: 10px;
  background: var(--brand-soft);
}

.privacy-lock {
  color: var(--brand);
  font-size: 1.5rem;
}

.privacy-principle strong {
  font-size: 0.77rem;
}

.privacy-principle p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.66rem;
}

.readiness-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 26px;
  border-radius: 14px;
  background: var(--surface-tint);
}

.readiness-grade {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  align-content: center;
  border: 2px solid var(--brand);
  border-radius: 50%;
}

.readiness-grade > span {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.readiness-grade small {
  color: var(--muted);
  font-size: 0.52rem;
}

.readiness-result .kicker {
  margin-bottom: 2px;
}

.readiness-result h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.readiness-result p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.review-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.review-columns section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.review-columns h3 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.7rem;
  list-style: none;
}

.review-list li::before {
  margin-right: 7px;
  color: var(--brand);
  content: "—";
}

.prototype-notice {
  margin-top: 18px;
  padding: 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

.prototype-notice strong {
  font-size: 0.78rem;
}

.prototype-notice p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.result-actions {
  display: flex;
  gap: 9px;
  margin-top: 19px;
}

/* Project */
.project-identity {
  display: flex;
  gap: 20px;
  align-items: center;
}

.mini-cover {
  display: flex;
  width: 80px;
  height: 110px;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 11px;
  border-radius: 2px 8px 8px 2px;
  background: linear-gradient(150deg, #b8694a, #704434);
  box-shadow: inset 5px 0 0 rgba(255, 255, 255, 0.13), var(--shadow-small);
  color: #fff;
}

.mini-cover span {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.25;
}

.mini-cover small {
  font-size: 0.46rem;
  letter-spacing: 0.13em;
}

.project-title-row h1 {
  font-size: 2.75rem;
}

.project-status {
  display: grid;
  justify-items: end;
}

.project-status strong {
  margin-top: 8px;
  font-size: 0.93rem;
}

.project-status small {
  color: var(--muted);
}

.project-workspace {
  padding-block: 32px 90px;
}

.timeline-card,
.studio-card,
.review-card,
.parity-card,
.proof-card {
  padding: 25px;
}

.card-head {
  margin-bottom: 20px;
}

.card-head .kicker {
  margin-bottom: 3px;
}

.card-head h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.28rem;
  letter-spacing: -0.035em;
}

.version-chip {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

.project-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 9px;
  align-items: center;
}

.project-timeline li::after {
  position: absolute;
  z-index: 0;
  top: 16px;
  right: 9px;
  left: 41px;
  height: 1px;
  background: var(--line);
  content: "";
}

.project-timeline li:last-child::after {
  display: none;
}

.project-timeline > li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.project-timeline li.is-complete > span {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.project-timeline li.is-current > span {
  border-color: var(--warning);
  background: var(--warning-soft);
  color: var(--warning);
}

.project-timeline li > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.project-timeline strong {
  font-size: 0.73rem;
}

.project-timeline small {
  color: var(--muted);
  font-size: 0.61rem;
}

.project-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.studio-card {
  margin-top: 22px;
  overflow: hidden;
}

.studio-toolbar {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}

.studio-toolbar .kicker {
  margin-bottom: 2px;
}

.studio-toolbar h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.3rem;
  letter-spacing: -0.035em;
}

.studio-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.save-state {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-right: 5px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
}

.studio-grid {
  display: grid;
  grid-template-columns: 204px minmax(400px, 1fr) 348px;
  min-height: 710px;
}

.book-structure,
.content-editor,
.studio-proof {
  min-width: 0;
}

.book-structure {
  border-right: 1px solid var(--line);
  background: var(--surface-muted);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.panel-title strong {
  font-size: 0.76rem;
}

.panel-title button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--brand);
}

.chapter-tree {
  padding: 9px;
}

.chapter-tree > button {
  display: grid;
  width: 100%;
  grid-template-columns: 16px 1fr;
  gap: 6px;
  align-items: start;
  padding: 10px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-soft);
  text-align: left;
}

.chapter-tree > button:hover,
.chapter-tree > button.is-active {
  background: var(--surface);
  color: var(--text);
}

.chapter-tree > button > span:first-child {
  color: var(--muted);
  font-size: 0.65rem;
}

.chapter-tree > button > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.chapter-tree strong {
  overflow: hidden;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-tree small {
  color: var(--muted);
  font-size: 0.55rem;
}

.chapter-children {
  display: flex;
  flex-direction: column;
  margin: 3px 0 7px 22px;
  padding-left: 8px;
  border-left: 1px solid var(--line-strong);
}

.chapter-children button {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 6px 7px;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 0.59rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-children button.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}

.chapter-children button > span:first-child {
  min-width: 22px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
}

.structure-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 12px 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.structure-summary span {
  display: flex;
  flex-direction: column;
  padding: 8px 4px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.51rem;
  text-align: center;
}

.structure-summary strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.content-editor {
  border-right: 1px solid var(--line);
  background: var(--surface-muted);
}

.editor-breadcrumb {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.63rem;
}

.editor-breadcrumb strong {
  color: var(--text);
}

.editor-breadcrumb .badge {
  margin-left: auto;
}

.format-toolbar {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.format-toolbar button {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.63rem;
}

.format-toolbar button:hover {
  border-color: var(--line);
  background: var(--surface-muted);
}

.format-toolbar > span {
  width: 1px;
  height: 20px;
  margin: 0 3px;
  background: var(--line);
}

.editing-sheet {
  margin: 18px;
  padding: 31px clamp(22px, 4vw, 46px);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow-small);
}

.editor-field {
  position: relative;
  display: block;
  margin-bottom: 17px;
}

.editor-field > span,
.asset-edit-fields label > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.55rem;
  font-weight: 750;
}

.editor-field input,
.editor-field textarea,
.asset-edit-fields input,
.asset-edit-fields textarea {
  min-height: 0;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
}

.editor-field input:hover,
.editor-field textarea:hover,
.asset-edit-fields input:hover,
.asset-edit-fields textarea:hover {
  border-bottom-color: var(--line);
}

.editor-field input:focus,
.editor-field textarea:focus,
.asset-edit-fields input:focus,
.asset-edit-fields textarea:focus {
  outline: 0;
  border-bottom-color: var(--brand);
}

.editor-kicker input {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.editor-title input {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 650;
}

.editor-body textarea {
  overflow: hidden;
  resize: none;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.85;
}

.editor-asset-block {
  margin: 23px -15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.editor-asset-head {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.57rem;
}

.editor-asset-head button {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  font-size: 0.56rem;
}

.asset-layout-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.asset-layout-controls > span {
  color: var(--text-soft);
  font-size: 0.56rem;
  font-weight: 800;
}

.asset-layout-controls > small {
  color: var(--muted);
  font-size: 0.51rem;
  white-space: nowrap;
}

.asset-alignment-tabs {
  display: flex;
  width: max-content;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
}

.asset-alignment-tabs button {
  display: inline-flex;
  min-height: 29px;
  gap: 5px;
  align-items: center;
  padding: 5px 8px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.53rem;
  font-weight: 800;
}

.asset-alignment-tabs button:last-child {
  border-right: 0;
}

.asset-alignment-tabs button:hover {
  color: var(--text);
}

.asset-alignment-tabs button.is-active {
  background: var(--brand);
  color: #fff;
}

.asset-align-glyph {
  display: flex;
  width: 15px;
  height: 11px;
  align-items: center;
  padding: 2px;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.asset-align-glyph i {
  width: 7px;
  height: 5px;
  border-radius: 1px;
  background: currentColor;
}

[data-asset-align="left"] .asset-align-glyph i {
  margin-right: auto;
}

[data-asset-align="center"] .asset-align-glyph i {
  margin-inline: auto;
}

[data-asset-align="right"] .asset-align-glyph i {
  margin-left: auto;
}

.editor-asset-preview {
  display: flex;
  padding: 14px;
  background: #e7ece6;
}

.editor-asset-preview[data-asset-align="left"] { justify-content: flex-start; }
.editor-asset-preview[data-asset-align="center"] { justify-content: center; }
.editor-asset-preview[data-asset-align="right"] { justify-content: flex-end; }

.editor-diagram {
  display: flex;
  width: min(100%, 275px);
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 106px;
  padding: 18px 14px;
  border: 1px solid rgba(49, 92, 80, 0.12);
  border-radius: 8px;
  background: #f4f7f2;
  color: #27332f;
}

.editor-node {
  padding: 8px 10px;
  border: 1px solid #81988e;
  border-radius: 8px;
  background: #f7faf6;
  font-size: 0.64rem;
  font-weight: 750;
}

.node-b {
  border-color: #c17b61;
  background: #f4ded5;
}

.editor-arrow {
  color: #6d8379;
}

.asset-edit-fields {
  display: grid;
  gap: 8px;
  padding: 11px 13px;
}

.asset-edit-fields input,
.asset-edit-fields textarea {
  width: 100%;
  font-size: 0.68rem;
}

.add-content-block {
  width: 100%;
  padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.64rem;
}

.add-content-block:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.studio-proof {
  position: static;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.studio-proof .reader-stage {
  min-height: 506px;
  padding-inline: 12px;
}

.studio-proof .reader-device.tablet {
  width: 310px;
}

.studio-card.preview-mode .book-structure,
.studio-card.preview-mode .content-editor {
  display: none;
}

.studio-card.preview-mode .studio-grid {
  grid-template-columns: 1fr;
}

.studio-card.preview-mode .studio-proof {
  padding: 28px;
}

.studio-card.preview-mode .reader-stage {
  min-height: 670px;
}

.studio-card.preview-mode .magazine-stage {
  min-height: 670px;
  padding-inline: 32px;
}

.studio-card.preview-mode .reader-device.tablet {
  width: min(620px, 92%);
}

.project-review-columns {
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
}

.project-primary {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.filter-tabs,
.device-tabs {
  display: flex;
  padding: 3px;
  border-radius: 8px;
  background: var(--surface-muted);
}

.filter-tabs button,
.device-tabs button {
  padding: 6px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.filter-tabs button.is-active,
.device-tabs button.is-active {
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(40, 35, 27, 0.08);
  color: var(--text);
}

.count-pill {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  margin-left: 5px;
  place-items: center;
  border-radius: 50%;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.7rem;
}

.issue-list {
  display: flex;
  flex-direction: column;
}

.issue-item {
  display: grid;
  grid-template-columns: 47px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 19px 0;
  border-top: 1px solid var(--line);
}

.issue-item[hidden] {
  display: none;
}

.issue-kind {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 11px;
  font-size: 0.65rem;
  font-weight: 850;
}

.table-kind { background: var(--warning-soft); color: var(--warning); }
.image-kind { background: var(--brand-soft); color: var(--brand); }
.diagram-kind { background: var(--accent-soft); color: var(--accent); }

.issue-title-row {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 4px;
}

.issue-item h3 {
  margin: 0 0 3px;
  font-size: 0.83rem;
}

.issue-item p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.68rem;
}

.issue-owner {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 750;
}

.issue-item.is-resolved {
  opacity: 0.68;
}

.resolved-mark {
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 850;
}

.parity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.parity-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.parity-icon {
  display: grid;
  grid-row: 1 / 3;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--brand);
  font-weight: 850;
}

.parity-grid article > div {
  display: flex;
  flex-direction: column;
}

.parity-grid strong {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parity-grid span,
.parity-grid small {
  color: var(--muted);
  font-size: 0.59rem;
}

.parity-grid small {
  grid-column: 2;
  color: var(--success);
}

.validation-row {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.validation-row > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.validation-row > div > span:last-child {
  display: flex;
  flex-direction: column;
}

.validation-row strong {
  font-size: 0.7rem;
}

.validation-row small {
  color: var(--muted);
  font-size: 0.58rem;
}

.validation-row .text-link {
  margin-left: auto;
  font-size: 0.66rem;
}

.proof-card {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.publication-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
  padding: 4px;
  border-radius: 11px;
  background: var(--surface-muted);
}

.publication-tabs button {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.publication-tabs button:hover {
  color: var(--text);
}

.publication-tabs button.is-active {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 3px 10px rgba(40, 35, 27, 0.08);
  color: var(--brand);
}

.publication-tabs span {
  font-size: 0.64rem;
  font-weight: 850;
}

.publication-tabs small {
  overflow: hidden;
  font-size: 0.49rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.print-preset-panel {
  margin: 0 0 11px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
}

.print-preset-panel[hidden] {
  display: none;
}

.print-preset-heading {
  display: flex;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 9px;
}

.print-preset-heading > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.print-preset-heading strong {
  font-size: 0.6rem;
}

.print-preset-heading output {
  margin-top: 1px;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.45rem;
  text-align: right;
}

.print-preset-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.print-preset-row > span {
  color: var(--muted);
  font-size: 0.49rem;
  font-weight: 800;
}

.print-preset-options,
.print-purpose-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.print-preset-options button,
.print-purpose-options button {
  min-height: 26px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.48rem;
  font-weight: 850;
}

.print-preset-options button:hover,
.print-purpose-options button:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.print-preset-options button.is-active,
.print-purpose-options button.is-active {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: var(--brand);
  color: #fff;
}

.print-preset-panel > p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.48rem;
  line-height: 1.5;
}

.preview-template-help {
  margin: 0 2px 13px;
  color: var(--muted);
  font-size: 0.56rem;
}

.preview-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.magazine-preview[hidden],
.reflow-preview[hidden],
[data-reflow-control][hidden],
[data-page-sound][hidden] {
  display: none;
}

.sound-toggle {
  display: inline-flex;
  min-height: 31px;
  gap: 6px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
}

.sound-toggle:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.sound-toggle[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
  background: var(--brand-soft);
  color: var(--brand);
}

.sound-toggle-icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.66rem;
  line-height: 1;
}

.sound-toggle[aria-pressed="false"] .sound-toggle-icon {
  background: var(--surface-muted);
  color: var(--muted);
}

.magazine-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.52rem;
}

.magazine-stage {
  position: relative;
  display: grid;
  min-height: 500px;
  place-items: center;
  padding: 36px 10px 16px;
  overflow: hidden;
  border-radius: 13px;
  background:
    radial-gradient(circle at 20% 12%, rgba(183, 93, 62, 0.12), transparent 26%),
    linear-gradient(145deg, var(--surface-muted), var(--surface-tint));
}

.magazine-drag-hint {
  position: absolute;
  z-index: 20;
  top: 11px;
  left: 50%;
  margin: 0;
  color: var(--muted);
  font-size: 0.52rem;
  font-weight: 750;
  white-space: nowrap;
  transform: translateX(-50%);
}

.page-turn-coach {
  position: absolute;
  z-index: 40;
  top: 47%;
  right: 9%;
  left: 9%;
  height: 68px;
  pointer-events: none;
  color: #fff;
  user-select: none;
}

.page-turn-coach::before {
  position: absolute;
  inset: -13px -18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 15px;
  background: rgba(18, 34, 29, 0.78);
  box-shadow: 0 12px 30px rgba(15, 23, 20, 0.25);
  backdrop-filter: blur(7px);
  content: "";
  animation: page-coach-panel 3.2s ease-in-out 2 both;
}

.page-turn-coach > span {
  position: absolute;
  z-index: 2;
  top: 3px;
  right: 0;
  left: 0;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  animation: page-coach-copy 3.2s ease-in-out 2 both;
}

.page-turn-coach > i {
  position: absolute;
  z-index: 2;
  right: 12%;
  bottom: 12px;
  width: 68%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35) 18%, #fff 100%);
  transform: scaleX(0);
  transform-origin: right;
  animation: page-coach-line 3.2s cubic-bezier(0.2, 0.8, 0.2, 1) 2 both;
}

.page-turn-coach > i::before {
  position: absolute;
  top: -4px;
  left: -1px;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(45deg);
}

.page-turn-coach > svg {
  position: absolute;
  z-index: 3;
  right: 8%;
  bottom: 1px;
  width: 27px;
  height: 32px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  animation: page-coach-pointer 3.2s cubic-bezier(0.2, 0.8, 0.2, 1) 2 both;
}

.page-turn-coach.is-dismissed {
  display: none;
}

@keyframes page-coach-pointer {
  0%, 8% { opacity: 0; transform: translateX(10px) translateY(7px) rotate(-8deg); }
  18% { opacity: 1; }
  66% { opacity: 1; transform: translateX(-190px) translateY(2px) rotate(-14deg); }
  82%, 100% { opacity: 0; transform: translateX(-205px) translateY(2px) rotate(-14deg); }
}

@keyframes page-coach-line {
  0%, 18% { opacity: 0; transform: scaleX(0); }
  24% { opacity: 1; }
  66% { opacity: 1; transform: scaleX(1); }
  82%, 100% { opacity: 0; transform: scaleX(1); }
}

@keyframes page-coach-copy {
  0%, 8% { opacity: 0; transform: translateY(5px); }
  18%, 70% { opacity: 1; transform: translateY(0); }
  84%, 100% { opacity: 0; transform: translateY(-2px); }
}

@keyframes page-coach-panel {
  0%, 7% { opacity: 0; transform: scale(0.97); }
  15%, 72% { opacity: 1; transform: scale(1); }
  86%, 100% { opacity: 0; transform: scale(1.01); }
}

.magazine-book {
  margin: 0 auto;
}

.magazine-stage.is-phone .stf__parent {
  max-width: 320px !important;
  aspect-ratio: 286 / 404;
}

.magazine-stage.is-tablet .stf__parent {
  max-width: 640px !important;
  aspect-ratio: 572 / 404;
}

.magazine-book.stf__parent > .stf__wrapper {
  position: absolute;
  inset: 0;
  padding-bottom: 0 !important;
}

.magazine-book.stf__parent > .stf__wrapper > .stf__block {
  position: absolute;
  inset: 0;
  height: auto;
  width: auto;
}

.magazine-page {
  position: relative;
  overflow: hidden;
  padding: 30px 25px;
  background: #fffdf7;
  box-shadow: inset 0 0 0 1px rgba(36, 35, 31, 0.06);
  color: #292d29;
  font-family: var(--font-ui);
}

/* ISO 판형은 가로세로 비율이 거의 같으므로, 미리보기에서는 실제 판면의
   여백과 수용 가능한 글 밀도를 바꿔 판형 차이를 확인한다. */
.magazine-stage[data-print-size="a5"] .magazine-page {
  --print-page-pad-y: 30px;
  --print-page-pad-x: 25px;
  --print-copy-scale: 1;
}

.magazine-stage[data-print-size="b5"] .magazine-page {
  --print-page-pad-y: 26px;
  --print-page-pad-x: 21px;
  --print-copy-scale: 0.94;
}

.magazine-stage[data-print-size="a4"] .magazine-page {
  --print-page-pad-y: 22px;
  --print-page-pad-x: 18px;
  --print-copy-scale: 0.86;
}

.magazine-stage[data-print-size] .magazine-page {
  padding: var(--print-page-pad-y) var(--print-page-pad-x);
}

.magazine-stage[data-print-size] .magazine-page h3 {
  font-size: calc(1.45rem * var(--print-copy-scale));
}

.magazine-stage[data-print-size] .magazine-page > p:not(.magazine-kicker, .magazine-caption) {
  font-size: calc(0.62rem * var(--print-copy-scale));
}

.magazine-stage[data-book-purpose="poetry"] .magazine-page > p:not(.magazine-kicker, .magazine-caption) {
  line-height: 2.1;
}

.magazine-stage[data-book-purpose="poetry"] .magazine-feature {
  --print-page-pad-y: 38px;
}

.magazine-stage[data-book-purpose="novel"] .magazine-page > p:not(.magazine-kicker, .magazine-caption) {
  line-height: 1.9;
}

.magazine-stage[data-book-purpose="reference"] .magazine-page > p:not(.magazine-kicker, .magazine-caption),
.magazine-stage[data-book-purpose="textbook"] .magazine-page > p:not(.magazine-kicker, .magazine-caption) {
  line-height: 1.55;
}

.magazine-stage[data-book-purpose="reference"] .magazine-data-page table,
.magazine-stage[data-book-purpose="textbook"] .magazine-data-page table {
  font-size: calc(0.49rem * var(--print-copy-scale));
}

.magazine-stage[data-book-purpose="textbook"] .magazine-bars {
  height: 150px;
}

.magazine-page h3 {
  margin: 7px 0 14px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.22;
  letter-spacing: -0.045em;
}

.magazine-page > p:not(.magazine-kicker, .magazine-caption) {
  margin: 0;
  color: #5d635f;
  font-family: var(--font-serif);
  font-size: 0.62rem;
  line-height: 1.75;
}

.magazine-page > small {
  position: absolute;
  right: 21px;
  bottom: 16px;
  color: #8a8e8b;
  font-family: var(--font-mono);
  font-size: 0.48rem;
}

.magazine-kicker {
  margin: 0;
  color: #b75d3e;
  font-size: 0.48rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.magazine-cover {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #17483d;
  color: #fff9eb;
}

.magazine-cover::before {
  position: absolute;
  top: 38px;
  right: 28px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #ed7849;
  content: "";
}

.magazine-cover > p {
  position: absolute;
  top: 38px;
  left: 25px;
  color: #fff9eb !important;
  font-family: var(--font-ui) !important;
  font-size: 0.46rem !important;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.magazine-cover h3 {
  position: absolute;
  right: 25px;
  bottom: 66px;
  left: 25px;
  margin: 0;
  font-size: 2.55rem;
  line-height: 1.05;
}

.magazine-cover > span,
.magazine-back > span {
  font-size: 0.48rem;
  letter-spacing: 0.08em;
}

.magazine-cover > span {
  position: absolute;
  right: 25px;
  bottom: 30px;
  left: 25px;
}

.magazine-contents ol {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.magazine-contents li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #dfe3df;
  font-size: 0.61rem;
}

.magazine-contents b {
  color: #b75d3e;
}

.magazine-art {
  height: 170px;
  margin: -30px -25px 22px;
  background:
    radial-gradient(circle at 74% 26%, #ed7849 0 28px, transparent 29px),
    linear-gradient(155deg, transparent 50%, #6b8d7e 51% 68%, #315c50 69%);
}

.magazine-feature h3 {
  font-size: 1.32rem;
}

.magazine-diagram-page {
  background: #f2eee4;
}

.magazine-diagram {
  display: flex;
  width: 88%;
  gap: 5px;
  align-items: center;
  justify-content: center;
  margin-top: 25px;
  margin-bottom: 12px;
  padding: 25px 8px;
  border-radius: 7px;
  background: #dfe8e1;
}

.magazine-diagram[data-asset-align="left"] { margin-right: auto; margin-left: 0; }
.magazine-diagram[data-asset-align="center"] { margin-right: auto; margin-left: auto; }
.magazine-diagram[data-asset-align="right"] { margin-right: 0; margin-left: auto; }

.magazine-diagram span {
  padding: 7px 8px;
  border: 1px solid #81988e;
  border-radius: 6px;
  background: #fbfcf7;
  font-size: 0.51rem;
  font-weight: 800;
}

.magazine-diagram i {
  color: #71847b;
  font-style: normal;
  font-size: 0.59rem;
}

.magazine-caption {
  margin: 0 0 18px;
  color: #6c716d;
  font-size: 0.46rem;
  text-align: center;
}

.magazine-bars {
  display: flex;
  height: 135px;
  gap: 12px;
  align-items: end;
  margin: 18px 0 14px;
  padding: 15px 15px 0;
  border-bottom: 1px solid #cfd5d0;
  border-left: 1px solid #cfd5d0;
}

.magazine-bars span {
  display: flex;
  width: 27%;
  height: var(--value);
  align-items: end;
  justify-content: center;
  padding-bottom: 6px;
  background: #315c50;
  color: #fff;
}

.magazine-bars span:nth-child(2) {
  background: #b75d3e;
}

.magazine-bars b {
  font-size: 0.43rem;
}

.magazine-data-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.49rem;
}

.magazine-data-page th,
.magazine-data-page td {
  padding: 6px;
  border-bottom: 1px solid #d9ddd9;
  text-align: left;
}

.magazine-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #202c28;
  color: #f4efe4;
}

.magazine-back p {
  position: absolute;
  top: 44%;
  right: 25px;
  left: 25px;
  color: #f4efe4 !important;
  font-size: 1.25rem !important;
  line-height: 1.5 !important;
  transform: translateY(-50%);
}

.magazine-back span {
  position: absolute;
  bottom: 28px;
}

.font-control {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 0.66rem;
}

.font-control span:last-child {
  font-size: 0.9rem;
}

.font-control input {
  width: 75px;
  accent-color: var(--brand);
}

.reader-stage {
  display: grid;
  min-height: 500px;
  place-items: center;
  padding: 22px;
  overflow: hidden;
  border-radius: 13px;
  background: var(--surface-muted);
}

.reader-device {
  position: relative;
  width: 244px;
  height: 476px;
  padding: 9px;
  overflow: hidden;
  border: 5px solid #252824;
  border-radius: 30px;
  background: #fdfbf4;
  box-shadow: 0 18px 35px rgba(31, 28, 23, 0.18);
  color: #24231f;
  transition: width 220ms ease, border-radius 220ms ease;
}

.reader-device.tablet {
  width: 340px;
  border-radius: 20px;
}

.reader-top {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px 9px;
  border-bottom: 1px solid #e3ddd0;
  color: #777166;
  font-size: 0.55rem;
}

.reader-page {
  padding: 15px 14px;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.7;
}

.reader-page .reader-kicker {
  margin-bottom: 4px;
  color: #93634f;
  font-family: var(--font-ui);
  font-size: 0.5em;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.reader-page h3 {
  margin: 0 0 14px;
  font-size: 1.15em;
}

.reader-page p {
  margin-bottom: 12px;
  font-size: 0.6em;
}

.reader-page figure {
  width: min(100%, 225px);
  margin-top: 14px;
  margin-bottom: 14px;
}

.reader-page figure[data-asset-align="left"] { margin-right: auto; margin-left: 0; }
.reader-page figure[data-asset-align="center"] { margin-right: auto; margin-left: auto; }
.reader-page figure[data-asset-align="right"] { margin-right: 0; margin-left: auto; }

.reader-figure {
  position: relative;
  height: 75px;
  overflow: hidden;
  border-radius: 5px;
  background: #e7ece6;
}

.figure-line {
  position: absolute;
  height: 1px;
  background: #5d776b;
  transform-origin: left;
}

.figure-line.one {
  top: 60%;
  left: 14%;
  width: 48%;
  transform: rotate(-21deg);
}

.figure-line.two {
  top: 32%;
  left: 55%;
  width: 28%;
  transform: rotate(31deg);
}

.figure-dot {
  position: absolute;
  top: 24%;
  left: 54%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #bb694b;
}

@media (max-width: 620px) {
  .asset-layout-controls {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .asset-alignment-tabs {
    width: 100%;
  }

  .asset-alignment-tabs button {
    flex: 1;
    justify-content: center;
  }
}

/* Keep fixed-layout magazines open as a two-page spread in the editor. */
.publishing-app[data-page="project"] .magazine-stage[data-orientation="landscape"].is-phone .stf__parent {
  max-width: 360px !important;
  aspect-ratio: 572 / 404;
}

.publishing-app[data-page="project"] .magazine-stage[data-orientation="landscape"].is-tablet .stf__parent {
  max-width: 640px !important;
  aspect-ratio: 572 / 404;
}

.publishing-app[data-page="project"] .magazine-stage .magazine-book.stf__parent {
  justify-self: center;
  align-self: center;
  margin-inline: auto !important;
}

.publishing-app[data-page="project"] .magazine-stage[data-orientation="landscape"] .stf__block::after {
  position: absolute;
  z-index: 50;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(27, 31, 28, 0.2), rgba(255, 255, 255, 0.78), rgba(27, 31, 28, 0.16));
  box-shadow: -4px 0 8px rgba(25, 28, 25, 0.1), 4px 0 8px rgba(25, 28, 25, 0.08);
  content: "";
  transform: translateX(-1px);
}

.publishing-app[data-page="project"] .magazine-stage[data-orientation="landscape"] .magazine-page {
  padding: clamp(12px, 1.8vw, 26px) clamp(10px, 1.5vw, 22px);
}

.publishing-app[data-page="project"] .magazine-stage[data-orientation="landscape"] .magazine-page h3 {
  margin: 5px 0 10px;
  font-size: clamp(0.82rem, 1.25vw, 1.3rem);
}

.publishing-app[data-page="project"] .magazine-stage[data-orientation="landscape"] .magazine-page > p:not(.magazine-kicker, .magazine-caption) {
  font-size: clamp(0.46rem, 0.62vw, 0.6rem);
  line-height: 1.55;
}

.publishing-app[data-page="project"] .preview-hints button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.48;
}

.reader-page figcaption {
  margin-top: 5px;
  color: #777166;
  font-family: var(--font-ui);
  font-size: 0.42em;
  text-align: center;
}

.reader-progress {
  position: absolute;
  right: 12px;
  bottom: 8px;
  left: 12px;
  height: 2px;
  background: #e1dccf;
}

.reader-progress span {
  display: block;
  width: 38%;
  height: 100%;
  background: #5d776b;
}

.preview-hints {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
}

.preview-hints button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 0.62rem;
  font-weight: 800;
}

.preview-hints span {
  color: var(--muted);
  font-size: 0.56rem;
}

.approval-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 22px;
  padding: 27px;
}

.approval-icon {
  display: grid;
  width: 51px;
  height: 51px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 900;
}

.approval-card.is-ready .approval-icon {
  background: var(--success-soft);
  color: var(--success);
}

.approval-card .kicker {
  margin-bottom: 2px;
}

.approval-card h2 {
  margin: 0 0 3px;
  font-family: var(--font-ui);
  font-size: 1.04rem;
  letter-spacing: -0.025em;
}

.approval-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.approval-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.toast-region {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  display: flex;
  max-width: min(380px, calc(100% - 40px));
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.76rem;
  animation: toast-in 180ms ease-out both;
}

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

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .header-inner {
    gap: 15px;
  }

  .site-nav {
    gap: 18px;
  }

  .hero-grid {
    grid-template-columns: 1fr 0.88fr;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 480px;
    height: 480px;
  }

  .format-grid,
  .principle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .submission-summary {
    grid-row: 1;
  }

  .summary-sticky {
    position: static;
  }

  .summary-checks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .summary-principle,
  .summary-note {
    display: none;
  }

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

  .proof-card {
    position: static;
  }

  .reader-device.tablet {
    width: min(500px, 90%);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 66px;
  }

  .shell {
    width: min(100% - 30px, 1180px);
  }

  .desktop-cta {
    display: none;
  }

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

  .nav-toggle {
    display: inline-grid;
    grid-column: 3;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .site-nav {
    position: fixed;
    z-index: 99;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 25px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 15px 5px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

  .hero-grid,
  .prepare-grid,
  .grade-layout,
  .faq-layout,
  .final-cta-card {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-visual img {
    height: 420px;
  }

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

  .process-card {
    min-height: 260px;
  }

  .step-icon {
    margin-top: 22px;
  }

  .split-heading {
    display: block;
  }

  .split-heading h2 {
    margin-bottom: 16px;
  }

  .document-stack {
    transform: none;
  }

  .grade-layout,
  .faq-layout {
    gap: 35px;
  }

  .workspace-title,
  .project-title-row {
    align-items: flex-start;
  }

  .demo-badge,
  .project-status {
    margin-top: 8px;
  }

  .studio-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .studio-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .save-state {
    margin-right: auto;
  }

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

  .book-structure,
  .content-editor {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .chapter-tree {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .chapter-children {
    grid-column: 1 / -1;
  }

  .structure-summary {
    max-width: 420px;
  }

  .studio-proof .reader-device.tablet {
    width: min(500px, 90%);
  }

  .stepper {
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(135px, 1fr));
  }

  .project-timeline {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-timeline li::after {
    top: 33px;
    bottom: -12px;
    left: 15px;
    width: 1px;
    height: auto;
  }

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

  .approval-card {
    grid-template-columns: auto 1fr;
  }

  .approval-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 620px) {
  body.publishing-app {
    font-size: 15px;
  }

  .section {
    padding: 70px 0;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    flex-basis: 34px;
    width: 34px;
    height: 38px;
  }

  .brand-logo {
    width: 128px;
    max-height: 42px;
  }

  .hero {
    padding-top: 52px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .hero-actions,
  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .result-actions .button {
    width: 100%;
  }

  .trust-list {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 340px;
    height: 340px;
  }

  .hero-visual img {
    object-position: 72% center;
  }

  .visual-note {
    min-width: 185px;
    padding: 10px 12px;
  }

  .visual-note-top {
    top: 15px;
    right: -4px;
  }

  .visual-note-bottom {
    bottom: 15px;
    left: -4px;
  }

  .document-stack,
  .format-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .studio-toolbar {
    padding: 18px;
  }

  .studio-actions .save-state {
    width: 100%;
  }

  .chapter-tree {
    grid-template-columns: 1fr;
  }

  .editing-sheet {
    margin: 10px;
    padding: 24px 18px;
  }

  .editor-asset-block {
    margin-inline: -8px;
  }

  .editor-diagram {
    gap: 4px;
    padding-inline: 8px;
  }

  .editor-node {
    padding-inline: 7px;
  }

  .format-toolbar {
    overflow-x: auto;
  }

  .format-toolbar button {
    flex: 0 0 auto;
  }

  .document-card:nth-child(2),
  .document-card:nth-child(3) {
    transform: none;
  }

  .principle-card {
    min-height: 220px;
  }

  .principle-card h3 {
    margin-top: 45px;
  }

  .grade-list article {
    grid-template-columns: 48px 1fr;
  }

  .grade-list .badge {
    grid-column: 2;
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-bottom,
  .workspace-title,
  .project-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-head {
    padding: 38px 0 32px;
  }

  .workspace-title h1 {
    font-size: 2.35rem;
  }

  .demo-badge {
    align-self: flex-start;
  }

  .workspace-layout {
    width: 100%;
    padding-top: 0;
  }

  .form-workspace,
  .summary-sticky {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .submission-summary {
    width: min(100% - 30px, 1180px);
    margin-inline: auto;
  }

  .summary-sticky {
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 12px;
  }

  .summary-checks {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-step {
    min-height: 0;
    padding: 26px 18px;
  }

  .form-actions {
    grid-template-columns: 1fr 1fr;
    padding: 15px 18px;
  }

  .autosave-status {
    display: none;
  }

  .source-choice-grid,
  .field-grid,
  .review-columns,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .source-choice {
    min-height: 105px;
    padding-left: 70px;
  }

  .source-choice .format-symbol {
    position: absolute;
    top: 24px;
    left: 20px;
  }

  .source-choice strong {
    margin-top: 18px;
  }

  .upload-zone {
    grid-template-columns: auto 1fr;
  }

  .upload-zone > label {
    grid-column: 1 / -1;
  }

  .inline-field {
    flex-direction: column;
  }

  .asset-fields {
    grid-template-columns: 1fr;
  }

  .asset-fields .asset-wide {
    grid-column: auto;
  }

  .cover-row {
    grid-template-columns: 92px 1fr;
    gap: 15px;
    padding: 14px;
  }

  .cover-placeholder {
    width: 86px;
    height: 125px;
  }

  .privacy-principle {
    grid-template-columns: auto 1fr;
  }

  .privacy-principle .badge {
    grid-column: 2;
    justify-self: start;
  }

  .readiness-result {
    align-items: start;
    grid-template-columns: 65px 1fr;
    padding: 18px;
  }

  .readiness-grade {
    width: 65px;
    height: 65px;
  }

  .readiness-grade > span {
    font-size: 1.7rem;
  }

  .project-title-row {
    gap: 20px;
  }

  .project-identity {
    align-items: flex-start;
  }

  .mini-cover {
    width: 64px;
    height: 90px;
  }

  .project-title-row h1 {
    font-size: 2.15rem;
  }

  .project-status {
    justify-items: start;
  }

  .timeline-card,
  .review-card,
  .parity-card,
  .proof-card,
  .approval-card {
    padding: 18px;
  }

  .issue-item {
    grid-template-columns: 40px 1fr;
  }

  .issue-item > .button,
  .resolved-mark {
    grid-column: 2;
    justify-self: start;
  }

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

  .validation-row .text-link {
    margin-left: 0;
  }

  .reader-stage {
    min-height: 470px;
    padding: 12px;
  }

  .reader-device.tablet {
    width: 100%;
  }

  .approval-card {
    grid-template-columns: 1fr;
  }

  .approval-actions {
    grid-column: auto;
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .page-turn-coach {
    display: none;
  }
}

/* Author studio working sample */
.skip-link {
  top: -80px;
  transform: none;
}

.skip-link:focus {
  top: 12px;
  transform: none;
}

.publishing-app[data-page="project"] {
  background: var(--bg);
}

.publishing-app[data-page="project"] .shell {
  width: min(100% - 40px, 1480px);
}

.studio-site-header {
  border-bottom-color: color-mix(in srgb, var(--line) 78%, var(--brand));
}

.prototype-chip,
.sample-label {
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.prototype-chip {
  padding: 6px 9px;
}

.sample-label {
  padding: 3px 6px;
}

.publishing-app[data-page="project"] .project-workspace {
  padding-block: 18px 60px;
}

.studio-appbar {
  position: sticky;
  z-index: 70;
  top: calc(var(--header-height) + 10px);
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 12px 34px rgba(31, 28, 23, 0.08);
  backdrop-filter: blur(14px);
}

.project-app-identity {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
}

.studio-back {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--text);
  font-weight: 900;
}

.studio-back:hover {
  border-color: var(--line-strong);
  color: var(--brand);
}

.mini-cover-small {
  width: 47px;
  height: 63px;
  flex: 0 0 auto;
  padding: 8px 7px;
  border-radius: 2px 6px 6px 2px;
}

.mini-cover-small span {
  font-size: 0.68rem;
}

.mini-cover-small small {
  font-size: 0.34rem;
}

.project-app-title {
  min-width: 0;
}

.project-app-title > div {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 0.52rem;
}

.project-app-title h1 {
  margin: 3px 0 1px;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-app-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.58rem;
}

.project-workload {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
}

.project-workload > span {
  display: flex;
  min-width: 92px;
  flex-direction: column;
  justify-content: center;
  padding: 8px 12px;
  border-right: 1px solid var(--line);
}

.project-workload > span:last-child {
  border-right: 0;
}

.project-workload small {
  color: var(--muted);
  font-size: 0.47rem;
}

.project-workload strong {
  font-size: 0.63rem;
}

.project-workload .workload-chip {
  position: relative;
  min-width: 128px;
  padding-left: 29px;
  background: var(--success-soft);
}

.workload-chip > i {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 14%, transparent);
  transform: translateY(-50%);
}

.studio-appbar .studio-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.studio-appbar .save-state {
  width: 100%;
  justify-content: flex-end;
  margin: 0 0 1px;
  font-size: 0.56rem;
}

.publishing-app[data-page="project"] .studio-card {
  margin-top: 14px;
  scroll-margin-top: calc(var(--header-height) + 20px);
  border-radius: 15px;
  box-shadow: 0 14px 36px rgba(44, 38, 28, 0.06);
}

@media (min-width: 1024px) {
  .publishing-app[data-page="project"] .studio-card {
    scroll-margin-top: calc(var(--header-height) + 118px);
  }
}

.publishing-app[data-page="project"] .studio-toolbar {
  min-height: 72px;
  padding: 14px 18px;
}

.publishing-app[data-page="project"] .studio-toolbar h2 {
  font-size: 1.06rem;
}

.studio-mobile-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}

.studio-nav-open,
.mobile-workspace-switch {
  display: none;
}

.publishing-app[data-page="project"] .studio-grid {
  grid-template-columns: 252px minmax(560px, 1fr) 390px;
  min-height: 760px;
}

.publishing-app[data-page="project"] .book-structure {
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-muted) 88%, var(--brand-soft));
}

.nav-panel-header {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.nav-panel-header strong {
  font-size: 0.68rem;
}

.studio-drawer-close {
  display: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 1rem;
}

.workspace-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 7px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.workspace-tabs button {
  min-height: 35px;
  padding: 5px 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 850;
}

.workspace-tabs button:hover {
  color: var(--text);
}

.workspace-tabs button.is-active {
  background: var(--brand-soft);
  color: var(--brand);
}

.workspace-tabs button > span {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 2px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.44rem;
}

.workspace-tabs button.is-active > span {
  background: var(--surface);
  color: var(--brand);
}

.workspace-tabs .nav-count {
  background: var(--warning-soft);
  color: var(--warning);
}

.studio-side-panel[hidden] {
  display: none;
}

.panel-search {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 10px 9px 4px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.panel-search input {
  min-width: 0;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.59rem;
}

.panel-search input:focus {
  outline: 0;
}

.publishing-app[data-page="project"] .panel-title {
  min-height: 43px;
  padding: 8px 12px;
  background: transparent;
}

.side-panel-heading {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 11px 10px;
  border-bottom: 1px solid var(--line);
}

.side-panel-heading > div:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.side-panel-heading strong {
  font-size: 0.68rem;
}

.side-panel-heading small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.49rem;
}

.asset-queue-list {
  display: flex;
  flex-direction: column;
  padding: 7px;
}

.asset-queue-list > button {
  display: grid;
  width: 100%;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 7px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.asset-queue-list > button:hover {
  border-radius: 7px;
  background: var(--surface);
}

.asset-queue-thumb {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  font-size: 0.49rem;
  font-weight: 850;
}

.asset-queue-list button > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.asset-queue-list strong {
  font-family: var(--font-mono);
  font-size: 0.57rem;
}

.asset-queue-list small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.48rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-queue-list i {
  padding: 3px 5px;
  border-radius: 999px;
  font-size: 0.44rem;
  font-style: normal;
  font-weight: 850;
}

.queue-ready {
  background: var(--success-soft);
  color: var(--success);
}

.queue-processing {
  background: var(--brand-soft);
  color: var(--brand);
}

.queue-warn {
  background: var(--warning-soft);
  color: var(--warning);
}

.side-panel-action {
  width: calc(100% - 18px);
  min-height: 36px;
  margin: 7px 9px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--brand);
  font-size: 0.56rem;
  font-weight: 800;
}

.compact-issue-list {
  padding: 0 9px 10px;
}

.compact-issue-list .issue-item {
  grid-template-columns: 32px 1fr;
  gap: 8px;
  align-items: start;
  padding: 12px 0;
}

.compact-issue-list .issue-kind {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.48rem;
}

.compact-issue-list .issue-title-row {
  flex-wrap: wrap;
  gap: 4px;
}

.compact-issue-list .issue-item h3 {
  font-size: 0.61rem;
  line-height: 1.42;
}

.compact-issue-list .issue-item p {
  font-size: 0.51rem;
  line-height: 1.5;
}

.issue-actions {
  display: flex;
  gap: 5px;
  margin-top: 7px;
}

.issue-actions button {
  min-height: 27px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--brand);
  font-size: 0.49rem;
  font-weight: 800;
}

.issue-actions button:last-child {
  color: var(--muted);
}

.studio-drawer-backdrop {
  display: none;
}

.publishing-app[data-page="project"] .content-editor {
  background: color-mix(in srgb, var(--surface-muted) 94%, var(--surface));
}

.import-receipt-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  margin: 12px 18px 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--success) 24%, var(--line));
  border-radius: 9px;
  background: var(--success-soft);
}

.receipt-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
}

.import-receipt-strip > div {
  display: flex;
  flex-direction: column;
}

.import-receipt-strip strong {
  font-size: 0.6rem;
}

.import-receipt-strip small {
  color: var(--muted);
  font-size: 0.49rem;
}

.import-receipt-strip button {
  padding: 5px 7px;
  border: 0;
  background: transparent;
  color: var(--success);
  font-size: 0.5rem;
  font-weight: 850;
}

.extraction-layer-receipt {
  margin: 10px 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.layer-receipt-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--brand-soft) 42%, var(--surface));
}

.layer-receipt-heading > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.layer-receipt-heading .sample-label {
  width: fit-content;
}

.layer-receipt-heading strong {
  font-size: 0.6rem;
}

.layer-receipt-heading button {
  flex: 0 0 auto;
  padding: 5px 6px;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 0.5rem;
  font-weight: 850;
}

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

.layer-receipt-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 9px 11px;
}

.layer-receipt-item + .layer-receipt-item {
  border-left: 1px solid var(--line);
}

.layer-kind {
  padding: 4px 5px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.45rem;
  font-weight: 900;
}

.asset-layer .layer-kind {
  background: var(--warning-soft);
  color: var(--warning);
}

.layer-receipt-item > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.layer-receipt-item strong {
  font-size: 0.55rem;
}

.layer-receipt-item small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.47rem;
  line-height: 1.42;
  text-overflow: ellipsis;
}

.layer-receipt-item b {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.5rem;
}

.extraction-layer-receipt > p {
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.49rem;
  line-height: 1.55;
}

.extraction-layer-receipt > p strong {
  color: var(--text);
}

.publishing-app[data-page="project"] .format-toolbar {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.publishing-app[data-page="project"] .editing-sheet {
  margin-top: 14px;
}

.asset-ready-state {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  margin-left: auto;
  color: var(--success);
  font-size: 0.5rem;
  font-weight: 850;
}

.asset-ready-state > i,
.preview-sync > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.editor-asset-head .asset-ready-state + button {
  margin-left: 0;
}

.asset-processing-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 7px;
  align-items: center;
  padding: 8px 11px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--brand-soft) 60%, var(--surface));
}

.asset-processing-note span {
  grid-row: 1 / 3;
  padding: 3px 5px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--brand);
  font-size: 0.46rem;
  font-weight: 850;
}

.asset-processing-note strong {
  font-family: var(--font-mono);
  font-size: 0.53rem;
}

.asset-processing-note small {
  color: var(--muted);
  font-size: 0.47rem;
}

.publishing-app[data-page="project"] .studio-proof {
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.preview-sync {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  margin-top: 3px;
  color: var(--success);
  font-size: 0.49rem;
  font-weight: 800;
}

.studio-job-tray {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(260px, 0.8fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 61px;
  padding: 10px 17px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-muted) 84%, var(--brand-soft));
}

.job-summary {
  display: flex;
  gap: 10px;
  align-items: center;
}

.job-summary > div {
  display: flex;
  flex-direction: column;
}

.job-summary strong {
  font-size: 0.62rem;
}

.job-summary small,
.job-progress small {
  color: var(--muted);
  font-size: 0.49rem;
}

.job-pulse {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 12%, transparent);
}

.job-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 9px;
  align-items: center;
}

.job-progress > span {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.job-progress > span > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--success));
}

.job-progress small {
  grid-column: 1 / -1;
}

.studio-job-tray > button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--brand);
  font-size: 0.54rem;
  font-weight: 850;
}

.prototype-boundary {
  margin: 11px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.49rem;
  text-align: center;
}

@media (max-width: 1260px) {
  .publishing-app[data-page="project"] .studio-grid {
    grid-template-columns: 224px minmax(470px, 1fr) 350px;
  }

  .project-workload > span:not(.workload-chip) {
    display: none;
  }

  .project-workload .workload-chip {
    border-right: 0;
  }
}

@media (max-width: 1180px) {
  .publishing-app[data-page="project"] .shell {
    width: min(100% - 28px, 1480px);
  }

  .studio-appbar {
    position: static;
    grid-template-columns: minmax(260px, 1fr) auto;
  }

  .project-workload {
    display: none;
  }

  .publishing-app[data-page="project"] .studio-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .publishing-app[data-page="project"] .book-structure {
    position: fixed;
    z-index: 230;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(340px, 88vw);
    overflow-y: auto;
    border-right: 1px solid var(--line);
    background: var(--surface-muted);
    box-shadow: none;
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .studio-card.nav-drawer-open .book-structure {
    box-shadow: 18px 0 45px rgba(25, 22, 18, 0.22);
    transform: translateX(0);
  }

  .studio-drawer-close {
    display: grid;
  }

  .studio-drawer-backdrop {
    position: fixed;
    z-index: 220;
    inset: 0;
    border: 0;
    background: rgba(25, 22, 18, 0.48);
  }

  .studio-card.nav-drawer-open .studio-drawer-backdrop {
    display: block;
  }

  .studio-nav-open {
    display: inline-flex;
  }

  .publishing-app[data-page="project"] .content-editor {
    border-right: 0;
  }

  .studio-job-tray {
    grid-template-columns: 1fr auto;
  }

  .job-progress {
    display: none;
  }
}

@media (max-width: 767px) {
  .prototype-chip,
  .studio-site-nav {
    display: none;
  }

  .publishing-app[data-page="project"] .project-workspace {
    padding-top: 10px;
  }

  .studio-appbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 11px;
  }

  .studio-back,
  .mini-cover-small {
    display: none;
  }

  .project-app-title h1 {
    font-size: 1.15rem;
  }

  .studio-appbar .studio-actions {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    width: 100%;
  }

  .studio-appbar .save-state {
    width: auto;
    justify-content: flex-start;
    margin: 0;
  }

  .publishing-app[data-page="project"] .studio-toolbar {
    min-height: 0;
    gap: 10px;
    align-items: stretch;
    flex-direction: column;
    padding: 13px;
  }

  .publishing-app[data-page="project"] .studio-toolbar h2 {
    font-size: 0.9rem;
  }

  .studio-mobile-tools {
    justify-content: space-between;
  }

  .mobile-workspace-switch {
    display: flex;
    padding: 3px;
    border-radius: 8px;
    background: var(--surface-muted);
  }

  .mobile-workspace-switch button {
    min-height: 35px;
    padding: 5px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 850;
  }

  .mobile-workspace-switch button.is-active {
    background: var(--surface);
    box-shadow: 0 2px 7px rgba(30, 27, 22, 0.09);
    color: var(--brand);
  }

  .publishing-app[data-page="project"] .studio-grid {
    display: block;
    min-height: 0;
  }

  .publishing-app[data-page="project"] .studio-proof {
    display: none;
    border-left: 0;
  }

  .studio-card.mobile-show-preview .content-editor {
    display: none;
  }

  .studio-card.mobile-show-preview .studio-proof {
    display: block;
  }

  .publishing-app[data-page="project"] .editor-breadcrumb {
    min-height: 48px;
  }

  .import-receipt-strip {
    grid-template-columns: auto 1fr;
    margin: 10px 10px 0;
  }

  .import-receipt-strip button {
    grid-column: 2;
    justify-self: start;
    padding-left: 0;
  }

  .extraction-layer-receipt {
    margin: 10px 10px 0;
  }

  .layer-receipt-grid {
    grid-template-columns: 1fr;
  }

  .layer-receipt-item + .layer-receipt-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .print-preset-heading {
    align-items: center;
  }

  .print-preset-heading output {
    max-width: 132px;
    line-height: 1.35;
  }

  .asset-ready-state {
    display: none;
  }

  .studio-job-tray {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .job-summary small {
    display: none;
  }
}

/* Free EPUB editor: text behaves like a small document, visual elements stay
   inline and editable instead of opening a separate settings panel. */
.publishing-app[data-page="project"] .free-editor-document {
  margin: 14px 18px 18px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f1efe9;
  box-shadow: none;
}

.publishing-app[data-page="project"] .editor-page {
  min-height: 610px;
  padding: clamp(24px, 5vw, 54px);
  background: var(--surface-strong);
}

.publishing-app[data-page="project"] .editor-page[hidden] {
  display: none;
}

.publishing-app[data-page="project"] .free-editor-document [hidden],
.publishing-app[data-page="project"] .reader-page [hidden],
.publishing-app[data-page="project"] .magazine-page [hidden] {
  display: none !important;
}

.editor-page-head {
  display: flex;
  justify-content: space-between;
  margin: 0 0 32px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--studio-caption);
}

.editor-page-content {
  width: min(100%, 650px);
  margin: 0 auto;
}

.free-editor-document .editor-field {
  margin-bottom: 14px;
}

.free-editor-document .editor-field > span,
.free-editor-document .inline-caption > span,
.free-editor-document .inline-asset-details label > span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: var(--studio-caption);
}

.free-editor-document .editor-kicker input {
  padding: 4px 0;
  font-size: 0.8rem;
}

.free-editor-document .editor-title input {
  padding: 5px 0 12px;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  line-height: 1.2;
}

.word-paragraph {
  min-height: 5.4em;
  margin: 0 0 18px;
  padding: 3px 0;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.92;
  white-space: pre-wrap;
}

.word-paragraph:hover,
.word-paragraph:focus {
  outline: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-soft) 45%, transparent), transparent 84%);
}

.word-paragraph:focus {
  box-shadow: inset 2px 0 0 var(--brand);
}

.word-paragraph h3 {
  margin: 8px 0;
  font-family: var(--font-serif);
  font-size: 1.25em;
}

.word-paragraph blockquote {
  margin: 9px 0;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  color: var(--text-soft);
}

.inline-insert {
  width: auto;
  margin: 3px 0 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--studio-caption);
}

.inline-insert:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-asset-block {
  margin: 27px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.inline-asset-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.inline-asset-toolbar .asset-type-chip {
  min-width: 34px;
  text-align: center;
}

.inline-asset-anchor {
  margin-right: auto;
  color: var(--muted);
  font-size: var(--studio-caption);
}

.inline-select select {
  height: 30px;
  padding: 0 23px 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: var(--studio-caption);
}

.inline-upload {
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--brand);
  font-size: var(--studio-caption);
  font-weight: 800;
}

.manual-asset-canvas {
  display: flex;
  min-height: 170px;
  padding: 18px;
  align-items: center;
  justify-content: center;
  background: #edf0ea;
}

.manual-asset-canvas[data-asset-align="left"] { justify-content: flex-start; }
.manual-asset-canvas[data-asset-align="center"] { justify-content: center; }
.manual-asset-canvas[data-asset-align="right"] { justify-content: flex-end; }

.manual-asset-canvas .manual-diagram {
  width: min(100%, 380px);
  min-height: 104px;
  margin: 0;
}

.manual-diagram [contenteditable="true"]:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 56%, transparent);
  outline-offset: 2px;
}

.manual-image-empty {
  padding: 28px;
  border: 1px dashed color-mix(in srgb, var(--brand) 42%, var(--line));
  border-radius: 8px;
  color: var(--muted);
  font-size: var(--studio-copy);
  text-align: center;
}

.manual-image-empty button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.manual-uploaded-image {
  display: block;
  max-width: min(100%, 470px);
  max-height: 330px;
  border-radius: 4px;
  object-fit: contain;
}

.manual-table-wrap {
  width: min(100%, 510px);
}

.manual-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: var(--studio-copy);
}

.manual-table th,
.manual-table td {
  padding: 8px 9px;
  border: 1px solid var(--line);
  text-align: left;
}

.manual-table th {
  background: var(--brand-soft);
  color: var(--brand);
}

.manual-table [contenteditable="true"]:focus {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.table-add-row {
  margin-top: 8px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: var(--studio-caption);
  font-weight: 800;
}

.inline-caption {
  display: block;
  padding: 10px 13px;
  border-top: 1px solid var(--line);
}

.inline-caption input,
.inline-asset-details textarea {
  width: 100%;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: var(--studio-copy);
}

.inline-caption input:focus,
.inline-asset-details textarea:focus {
  outline: 0;
  border-bottom-color: var(--brand);
}

.inline-asset-details {
  border-top: 1px solid var(--line);
}

.inline-asset-details summary {
  padding: 9px 13px;
  color: var(--muted);
  cursor: pointer;
  font-size: var(--studio-caption);
  font-weight: 800;
}

.inline-asset-details label {
  display: block;
  padding: 0 13px 12px;
}

.editor-page-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}

.editor-page-nav button {
  width: fit-content;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: var(--studio-caption);
}

.editor-page-nav button:last-child {
  justify-self: end;
}

.editor-page-nav button:disabled {
  opacity: 0.42;
}

.editor-page-nav output {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--studio-caption);
}

.reader-uploaded-image,
.magazine-uploaded-image {
  display: block;
  width: min(100%, 100%);
  max-height: 240px;
  margin: 10px auto;
  object-fit: contain;
}

.reader-inline-table {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
  font-size: 0.64em;
}

.reader-inline-table th,
.reader-inline-table td {
  padding: 5px;
  border: 1px solid currentColor;
}

.magazine-inline-table {
  width: 100%;
  margin: 10px 0;
  border-collapse: collapse;
  font-size: 0.58rem;
}

.magazine-inline-table th,
.magazine-inline-table td {
  padding: 4px;
  border: 1px solid currentColor;
  text-align: left;
}

@media (max-width: 767px) {
  .publishing-app[data-page="project"] .free-editor-document {
    margin: 10px;
    border-radius: 8px;
  }

  .publishing-app[data-page="project"] .editor-page {
    min-height: 500px;
    padding: 22px 17px;
  }

  .editor-page-head {
    margin-bottom: 24px;
  }

  .word-paragraph {
    font-size: 1rem;
    line-height: 1.86;
  }

  .inline-asset-toolbar {
    gap: 6px;
  }

  .inline-asset-anchor {
    width: 100%;
    margin-right: 0;
  }

  .manual-asset-canvas {
    min-height: 144px;
    padding: 12px;
  }
}

@media (max-width: 520px) {
  .publishing-app[data-page="project"] .shell {
    width: min(100% - 18px, 1480px);
  }

  .studio-appbar .studio-actions {
    grid-template-columns: 1fr auto auto;
  }

  .studio-appbar [data-open-proof] {
    display: none;
  }

  .studio-appbar .button {
    min-height: 36px;
    padding-inline: 9px;
  }

  .project-app-title > div .mono,
  .project-app-title p {
    font-size: 0.49rem;
  }

  .studio-nav-open {
    min-height: 41px;
  }

  .mobile-workspace-switch button {
    min-height: 41px;
  }

  .publishing-app[data-page="project"] .editing-sheet {
    margin: 8px;
    padding: 22px 15px;
  }

  .asset-processing-note strong,
  .asset-processing-note small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .asset-layout-controls {
    padding: 9px;
  }

  .studio-job-tray > button {
    max-width: 88px;
  }
}

/* Expanded proof must override every desktop and tablet workspace column rule. */
.publishing-app[data-page="project"] .studio-card.preview-mode .studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.publishing-app[data-page="project"] .studio-card.preview-mode .book-structure,
.publishing-app[data-page="project"] .studio-card.preview-mode .content-editor,
.publishing-app[data-page="project"] .studio-card.preview-mode .studio-drawer-backdrop {
  display: none;
}

.publishing-app[data-page="project"] .studio-card.preview-mode .studio-proof {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  padding: clamp(18px, 3vw, 38px);
  overflow: hidden;
  border-left: 0;
}

.publishing-app[data-page="project"] .studio-card.preview-mode .reader-stage,
.publishing-app[data-page="project"] .studio-card.preview-mode .magazine-stage {
  width: 100%;
  min-width: 0;
  min-height: clamp(560px, 70vh, 760px);
}

.publishing-app[data-page="project"] .studio-card.preview-mode .reader-device.tablet {
  width: min(620px, 92%);
}

@media (min-width: 768px) and (max-width: 900px) {
  .publishing-app[data-page="project"] .studio-card.preview-mode .studio-proof {
    padding: 18px;
  }

  .publishing-app[data-page="project"] .studio-card.preview-mode .magazine-stage {
    padding-inline: 14px;
  }
}

/* Author UI body and helper copy: +2pt. Headings and code-style labels stay unchanged. */
.publishing-app[data-page="project"] .brand small {
  font-size: calc(0.65rem + 2pt);
}

.publishing-app[data-page="project"] .project-app-title p {
  font-size: calc(0.58rem + 2pt);
}

.publishing-app[data-page="project"] .project-workload small {
  font-size: calc(0.47rem + 2pt);
}

.publishing-app[data-page="project"] .studio-appbar .save-state {
  font-size: calc(0.56rem + 2pt);
}

.publishing-app[data-page="project"] .button-small {
  font-size: calc(0.8rem + 2pt);
}

.publishing-app[data-page="project"] .studio-proof > .button-full {
  font-size: calc(0.92rem + 2pt);
}

.publishing-app[data-page="project"] .panel-search input {
  font-size: calc(0.59rem + 2pt);
}

.publishing-app[data-page="project"] .chapter-tree small {
  font-size: calc(0.55rem + 2pt);
}

.publishing-app[data-page="project"] .structure-summary span {
  font-size: calc(0.51rem + 2pt);
}

.publishing-app[data-page="project"] .side-panel-heading small {
  font-size: calc(0.49rem + 2pt);
}

.publishing-app[data-page="project"] .asset-queue-list small {
  font-size: calc(0.48rem + 2pt);
}

.publishing-app[data-page="project"] .asset-queue-list i {
  font-size: calc(0.44rem + 2pt);
}

.publishing-app[data-page="project"] .side-panel-action {
  font-size: calc(0.56rem + 2pt);
}

.publishing-app[data-page="project"] .compact-issue-list .issue-item p {
  font-size: calc(0.51rem + 2pt);
}

.publishing-app[data-page="project"] .issue-actions button {
  font-size: calc(0.49rem + 2pt);
}

.publishing-app[data-page="project"] .editor-breadcrumb,
.publishing-app[data-page="project"] .format-toolbar button {
  font-size: calc(0.63rem + 2pt);
}

.publishing-app[data-page="project"] .import-receipt-strip small,
.publishing-app[data-page="project"] .preview-sync,
.publishing-app[data-page="project"] .job-summary small,
.publishing-app[data-page="project"] .job-progress small {
  font-size: calc(0.49rem + 2pt);
}

.publishing-app[data-page="project"] .import-receipt-strip button,
.publishing-app[data-page="project"] .asset-ready-state {
  font-size: calc(0.5rem + 2pt);
}

.publishing-app[data-page="project"] .asset-processing-note small {
  font-size: calc(0.47rem + 2pt);
}

.publishing-app[data-page="project"] .editor-field > span,
.publishing-app[data-page="project"] .asset-edit-fields label > span {
  font-size: calc(0.55rem + 2pt);
}

.publishing-app[data-page="project"] .editor-asset-head {
  font-size: calc(0.57rem + 2pt);
}

.publishing-app[data-page="project"] .asset-layout-controls > span {
  font-size: calc(0.56rem + 2pt);
}

.publishing-app[data-page="project"] .asset-layout-controls > small {
  font-size: calc(0.51rem + 2pt);
}

.publishing-app[data-page="project"] .editor-body textarea {
  font-size: calc(0.9rem + 2pt);
}

.publishing-app[data-page="project"] .asset-alignment-tabs button {
  font-size: calc(0.53rem + 2pt);
}

.publishing-app[data-page="project"] .asset-edit-fields input,
.publishing-app[data-page="project"] .asset-edit-fields textarea {
  font-size: calc(0.68rem + 2pt);
}

.publishing-app[data-page="project"] .add-content-block {
  font-size: calc(0.64rem + 2pt);
}

.publishing-app[data-page="project"] .publication-tabs small {
  font-size: calc(0.49rem + 2pt);
}

.publishing-app[data-page="project"] .preview-template-help,
.publishing-app[data-page="project"] .preview-hints span {
  font-size: calc(0.56rem + 2pt);
}

.publishing-app[data-page="project"] .filter-tabs button,
.publishing-app[data-page="project"] .device-tabs button {
  font-size: calc(0.66rem + 2pt);
}

.publishing-app[data-page="project"] .sound-toggle,
.publishing-app[data-page="project"] .preview-hints button {
  font-size: calc(0.62rem + 2pt);
}

.publishing-app[data-page="project"] .magazine-drag-hint {
  font-size: calc(0.52rem + 2pt);
}

.publishing-app[data-page="project"] .page-turn-coach > span {
  font-size: calc(0.55rem + 2pt);
}

.publishing-app[data-page="project"] .studio-job-tray > button {
  font-size: calc(0.54rem + 2pt);
}

.publishing-app[data-page="project"] .compact-footer .footer-bottom {
  font-size: calc(0.7rem + 2pt);
}

.publishing-app[data-page="project"] .toast {
  font-size: calc(0.76rem + 2pt);
}

@media (max-width: 520px) {
  .publishing-app[data-page="project"] .publication-tabs small {
    overflow: visible;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
  }

  .publishing-app[data-page="project"] .preview-hints {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
  }

  .publishing-app[data-page="project"] .preview-hints span {
    grid-row: 1;
    grid-column: 1 / -1;
    text-align: center;
  }

  .publishing-app[data-page="project"] .preview-hints button:first-child {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
  }

  .publishing-app[data-page="project"] .preview-hints button:last-child {
    grid-row: 2;
    grid-column: 2;
    justify-self: end;
  }

  .publishing-app[data-page="project"] .studio-job-tray > button {
    max-width: 108px;
    white-space: nowrap;
  }
}

/* Formal manuscript intake: DOCX, PDF, HWPX. */
.pdf-route-note,
.auto-detect-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  margin: 0 0 18px;
  padding: 15px 17px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: 11px;
  background: color-mix(in srgb, var(--brand-soft) 64%, var(--surface));
}

.pdf-route-note[hidden],
.pdf-preflight[hidden] {
  display: none;
}

.pdf-route-note p,
.auto-detect-card p,
.pdf-preflight p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.route-note-icon,
.auto-detect-card > span:first-child {
  display: grid;
  width: 38px;
  height: 42px;
  place-items: center;
  border-radius: 7px 12px 12px 7px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 850;
}

.auto-detect-card {
  border-color: color-mix(in srgb, var(--success) 30%, var(--line));
  background: color-mix(in srgb, var(--success) 8%, var(--surface));
}

.auto-detect-card > span:first-child {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--success);
}

.pdf-preflight {
  margin: 18px 0;
  padding: 19px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand-soft) 46%, var(--surface));
}

.pdf-preflight.is-restored {
  border-style: dashed;
}

.pdf-preflight-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.pdf-preflight-head > div {
  display: grid;
  gap: 3px;
}

.pdf-preflight-head > div > span,
.pdf-preflight > small {
  color: var(--muted);
  font-size: 0.64rem;
}

.pdf-preflight-metrics,
.pdf-generic-guide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 15px;
}

.pdf-preflight-metrics[hidden],
.pdf-preflight-alerts[hidden],
.pdf-generic-guide[hidden] {
  display: none;
}

.pdf-preflight-metrics > span,
.pdf-generic-guide > span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.pdf-preflight-metrics strong {
  font-size: 0.77rem;
}

.pdf-preflight-metrics small,
.pdf-generic-guide > span {
  color: var(--muted);
  font-size: 0.64rem;
}

.pdf-preflight-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

.pdf-preflight-alerts span {
  padding: 5px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--check) 14%, var(--surface));
  color: var(--text);
  font-size: 0.63rem;
  font-weight: 760;
}

.file-row.is-restored {
  border-style: dashed;
  background: color-mix(in srgb, var(--check) 7%, var(--surface));
}

.file-row.is-restored > span,
.file-row.is-restored small {
  color: var(--check);
}

/* Three-step author guide for first-time POD authors. */
.author-guide-path {
  display: grid;
  grid-template-columns: minmax(145px, 0.8fr) auto minmax(145px, 0.8fr) auto minmax(145px, 0.8fr) minmax(250px, 1.25fr);
  gap: 8px;
  align-items: stretch;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-muted) 78%, var(--surface));
}

.author-guide-path > button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 1px 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.author-guide-path > button > span {
  display: grid;
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 850;
}

.author-guide-path > button strong {
  overflow: hidden;
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.author-guide-path > button small {
  overflow: hidden;
  font-size: 0.51rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.author-guide-path > button.is-active {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  background: var(--brand-soft);
  color: var(--brand);
}

.author-guide-path > button.is-active > span {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.author-guide-path > i {
  align-self: center;
  color: var(--muted);
  font-style: normal;
  font-size: 0.64rem;
}

.author-guide-path > p {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 8px 11px;
  border-left: 1px solid var(--line);
}

.author-guide-path > p strong {
  color: var(--brand);
  font-size: 0.53rem;
}

.author-guide-path > p span {
  color: var(--muted);
  font-size: 0.57rem;
}

@media (max-width: 1180px) {
  .author-guide-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .author-guide-path > i {
    display: none;
  }

  .author-guide-path > p {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 900px) {
  .mobile-workspace-switch {
    display: flex;
    padding: 3px;
    border-radius: 8px;
    background: var(--surface-muted);
  }

  .mobile-workspace-switch button {
    min-height: 35px;
    padding: 5px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 850;
  }

  .mobile-workspace-switch button.is-active {
    background: var(--surface);
    box-shadow: 0 2px 7px rgba(30, 27, 22, 0.09);
    color: var(--brand);
  }

  .publishing-app[data-page="project"] .studio-grid {
    display: block;
    min-height: 0;
  }

  .publishing-app[data-page="project"] .studio-proof {
    display: none;
    border-left: 0;
  }

  .studio-card.mobile-show-preview .content-editor,
  .studio-card.preview-mode .content-editor {
    display: none;
  }

  .studio-card.mobile-show-preview .studio-proof,
  .studio-card.preview-mode .studio-proof {
    display: block;
  }
}

@media (max-width: 620px) {
  .stepper {
    overflow: visible;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .step-button {
    min-width: 0;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 10px 3px;
    text-align: center;
  }

  .step-button > span {
    grid-row: auto;
    width: 25px;
    height: 25px;
  }

  .step-button strong {
    margin-top: 3px;
    font-size: 0.61rem;
  }

  .step-button small {
    display: none;
  }

  .step-button.is-active::after {
    right: 5px;
    left: 5px;
  }

  .pdf-route-note,
  .auto-detect-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pdf-route-note .badge,
  .auto-detect-card .badge {
    grid-column: 2;
    justify-self: start;
  }

  .pdf-preflight-metrics,
  .pdf-generic-guide {
    grid-template-columns: repeat(2, 1fr);
  }

  .author-guide-path {
    gap: 5px;
    padding: 8px;
  }

  .author-guide-path > button {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    padding: 7px 3px;
    text-align: center;
  }

  .author-guide-path > button > span {
    grid-row: auto;
    width: 25px;
    height: 25px;
  }

  .author-guide-path > button strong {
    width: 100%;
    font-size: 0.56rem;
  }

  .author-guide-path > button small {
    display: none;
  }

  .author-guide-path > p {
    padding: 7px 5px;
    text-align: center;
  }
}

/* Compact preview shows one page; expanded preview fills the stage with a spread. */
.publishing-app[data-page="project"] .studio-card.preview-mode .magazine-stage {
  min-height: clamp(620px, 76vh, 820px);
  padding: 36px 22px 22px;
}

.publishing-app[data-page="project"] .studio-card.preview-mode .magazine-stage .magazine-book.stf__parent {
  width: min(100%, 1040px) !important;
  max-width: 1040px !important;
  aspect-ratio: 572 / 404;
}

@media (max-width: 620px) {
  .publishing-app[data-page="project"] .studio-card.preview-mode .magazine-stage {
    min-height: 340px;
    padding: 36px 8px 16px;
  }
}

/* EPUB studio: one author flow, fewer competing panels, readable type floors. */
.publishing-app[data-page="project"] {
  --studio-caption: 0.75rem;
  --studio-label: 0.8125rem;
  --studio-copy: 0.9375rem;
}

.publishing-app[data-page="project"] .analysis-receipt {
  margin: 12px 18px 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--success) 24%, var(--line));
  border-radius: 10px;
  background: var(--surface);
}

.publishing-app[data-page="project"] .analysis-receipt .import-receipt-strip,
.publishing-app[data-page="project"] .analysis-receipt .extraction-layer-receipt {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.publishing-app[data-page="project"] .analysis-receipt .import-receipt-strip {
  min-height: 44px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--success-soft) 78%, var(--surface));
}

.publishing-app[data-page="project"] .analysis-receipt .layer-receipt-heading {
  min-height: 42px;
  padding-block: 7px;
  background: color-mix(in srgb, var(--brand-soft) 30%, var(--surface));
}

.publishing-app[data-page="project"] .analysis-receipt .layer-receipt-grid {
  background: var(--surface);
}

.publishing-app[data-page="project"] .editor-tools {
  margin: 10px 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.publishing-app[data-page="project"] .editor-tools > summary {
  min-height: 36px;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--muted);
  font-size: var(--studio-caption);
  font-weight: 800;
}

.publishing-app[data-page="project"] .editor-tools[open] > summary {
  border-bottom: 1px solid var(--line);
  color: var(--brand);
}

.publishing-app[data-page="project"] .editor-tools .format-toolbar {
  margin: 0;
  padding: 7px 9px;
  border-top: 0;
}

.publishing-app[data-page="project"] .studio-job-tray {
  display: flex;
  min-height: 54px;
  gap: 14px;
  justify-content: space-between;
  padding: 9px 17px;
}

.publishing-app[data-page="project"] .studio-job-tray .job-progress {
  display: none;
}

@media (min-width: 1181px) {
  .publishing-app[data-page="project"] .studio-grid {
    grid-template-columns: 252px minmax(0, 1fr);
    min-height: 700px;
  }

  .publishing-app[data-page="project"] .studio-card:not(.guide-preview):not(.preview-mode) .studio-proof {
    display: none;
  }

  .publishing-app[data-page="project"] .studio-card.guide-preview .studio-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .publishing-app[data-page="project"] .studio-card.guide-preview .book-structure,
  .publishing-app[data-page="project"] .studio-card.guide-preview .content-editor {
    display: none;
  }

  .publishing-app[data-page="project"] .studio-card.guide-preview .studio-proof {
    display: block;
    grid-column: 1 / -1;
    width: 100%;
    padding: clamp(18px, 3vw, 32px);
    border-left: 0;
    position: static;
  }

  .publishing-app[data-page="project"] .studio-card.guide-preview .magazine-stage,
  .publishing-app[data-page="project"] .studio-card.guide-preview .reader-stage {
    min-height: clamp(580px, 68vh, 720px);
  }

  .publishing-app[data-page="project"] .studio-card.guide-preview .studio-job-tray {
    display: none;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .publishing-app[data-page="project"] .studio-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 700px;
  }

  .publishing-app[data-page="project"] .studio-card:not(.guide-preview):not(.preview-mode) .studio-proof {
    display: none;
  }

  .publishing-app[data-page="project"] .studio-card.guide-preview .studio-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .publishing-app[data-page="project"] .studio-card.guide-preview .book-structure,
  .publishing-app[data-page="project"] .studio-card.guide-preview .content-editor {
    display: none;
  }

  .publishing-app[data-page="project"] .studio-card.guide-preview .studio-proof {
    display: block;
    grid-column: 1 / -1;
    width: 100%;
    padding: clamp(18px, 3vw, 32px);
    border-left: 0;
    position: static;
  }

  .publishing-app[data-page="project"] .studio-card.guide-preview .magazine-stage,
  .publishing-app[data-page="project"] .studio-card.guide-preview .reader-stage {
    min-height: clamp(580px, 68vh, 720px);
  }

  .publishing-app[data-page="project"] .studio-card.guide-preview .studio-job-tray {
    display: none;
  }
}

/* Actionable studio copy was previously 7–10px. Keep each decision label at
   least 12px, which is over two points larger than the former smallest copy. */
.publishing-app[data-page="project"] .sample-label,
.publishing-app[data-page="project"] .workspace-tabs button,
.publishing-app[data-page="project"] .workspace-tabs button > span,
.publishing-app[data-page="project"] .nav-panel-header strong,
.publishing-app[data-page="project"] .panel-search input,
.publishing-app[data-page="project"] .side-panel-heading strong,
.publishing-app[data-page="project"] .side-panel-heading small,
.publishing-app[data-page="project"] .asset-queue-list strong,
.publishing-app[data-page="project"] .asset-queue-list small,
.publishing-app[data-page="project"] .asset-queue-list i,
.publishing-app[data-page="project"] .side-panel-action,
.publishing-app[data-page="project"] .compact-issue-list .issue-item h3,
.publishing-app[data-page="project"] .compact-issue-list .issue-item p,
.publishing-app[data-page="project"] .issue-actions button,
.publishing-app[data-page="project"] .editor-breadcrumb,
.publishing-app[data-page="project"] .import-receipt-strip small,
.publishing-app[data-page="project"] .import-receipt-strip button,
.publishing-app[data-page="project"] .layer-receipt-heading strong,
.publishing-app[data-page="project"] .layer-receipt-heading button,
.publishing-app[data-page="project"] .layer-kind,
.publishing-app[data-page="project"] .layer-receipt-item strong,
.publishing-app[data-page="project"] .layer-receipt-item small,
.publishing-app[data-page="project"] .layer-receipt-item b,
.publishing-app[data-page="project"] .asset-processing-note,
.publishing-app[data-page="project"] .asset-ready-state,
.publishing-app[data-page="project"] .preview-sync,
.publishing-app[data-page="project"] .print-preset-heading output,
.publishing-app[data-page="project"] .print-preset-row > span,
.publishing-app[data-page="project"] .print-preset-options button,
.publishing-app[data-page="project"] .print-purpose-options button,
.publishing-app[data-page="project"] .print-preset-panel > p,
.publishing-app[data-page="project"] .preview-template-help,
.publishing-app[data-page="project"] .magazine-meta,
.publishing-app[data-page="project"] .magazine-drag-hint,
.publishing-app[data-page="project"] .preview-hints,
.publishing-app[data-page="project"] .job-summary small,
.publishing-app[data-page="project"] .studio-job-tray > button,
.publishing-app[data-page="project"] .prototype-boundary,
.publishing-app[data-page="project"] .author-guide-path > button small,
.publishing-app[data-page="project"] .author-guide-path > p strong,
.publishing-app[data-page="project"] .author-guide-path > p span {
  font-size: var(--studio-caption);
}

.publishing-app[data-page="project"] .author-guide-path > button strong,
.publishing-app[data-page="project"] .author-guide-path > button > span,
.publishing-app[data-page="project"] .print-preset-heading strong,
.publishing-app[data-page="project"] .import-receipt-strip strong,
.publishing-app[data-page="project"] .job-summary strong {
  font-size: var(--studio-label);
}

.publishing-app[data-page="project"] .reader-page {
  font-size: 20px;
}

.publishing-app[data-page="project"] .reader-page p {
  font-size: 0.75em;
  line-height: 1.78;
}

@media (max-width: 767px) {
  .publishing-app[data-page="project"] .analysis-receipt {
    margin: 10px 10px 0;
  }

  .publishing-app[data-page="project"] .editor-tools {
    margin: 10px;
  }

  .publishing-app[data-page="project"] .author-guide-path > button small,
  .publishing-app[data-page="project"] .author-guide-path > p strong,
  .publishing-app[data-page="project"] .author-guide-path > p span {
    font-size: 0.75rem;
  }
}
