:root {
  color-scheme: light;
  --ink: #2d504d;
  --muted: #6b817d;
  --paper: #fffdf7;
  --cream: #fff5d8;
  --line: #ded5b9;
  --green: #4d9b79;
  --green-dark: #33755d;
  --yellow: #f3bf4f;
  --coral: #eb756a;
  --blue: #64afd2;
  --violet: #8a74ba;
  --pink: #e993b4;
  --shadow: 0 22px 55px rgba(60, 78, 68, 0.13);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  color: var(--ink);
  background: #f8f1e3;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-width: 0; background: #f8f1e3; }

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(244, 191, 79, 0.22) 0 7%, transparent 7.2%),
    radial-gradient(circle at 95% 22%, rgba(100, 175, 210, 0.17) 0 8%, transparent 8.2%),
    linear-gradient(135deg, #fbf6eb, #f5eedf 55%, #f8f2e8);
}

button, input { font: inherit; }

button { color: inherit; }

button, [role="button"] { -webkit-tap-highlight-color: transparent; }

button:focus-visible, input:focus-visible {
  outline: 4px solid rgba(100, 175, 210, 0.36);
  outline-offset: 3px;
}

.app {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0 52px;
}

.loading-card {
  display: grid;
  min-height: 430px;
  place-items: center;
  align-content: center;
  gap: 10px;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 42px;
  box-shadow: var(--shadow);
}

.loading-card span { font-size: 58px; }
.loading-card p { margin: 0; font-size: 18px; font-weight: 900; }

.topbar,
.topbar-actions,
.brand,
.hero-actions,
.section-heading,
.step-card,
.studio-head,
.name-row,
.preview-toolbar,
.history-actions,
.panel-title,
.option-button,
.feedback,
.studio-actions,
.result-actions,
.gallery-card-actions,
.gallery-meta {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  margin-bottom: 18px;
  padding: 8px 10px 8px 14px;
  background: rgba(255, 253, 247, 0.88);
  border: 2px solid rgba(222, 213, 185, 0.9);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(57, 78, 69, 0.09);
  backdrop-filter: blur(10px);
}

.brand {
  gap: 12px;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  background: #f6c85e;
  border: 2px solid #d9a844;
  border-radius: 17px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55);
  font-size: 27px;
  transform: rotate(-3deg);
}

.brand-copy { display: grid; gap: 1px; min-width: 0; }
.brand-copy strong { font-size: 20px; line-height: 1.05; }
.brand-copy small { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }

.topbar-actions { justify-content: flex-end; gap: 9px; }

.top-button,
.primary-button,
.secondary-button,
.tab-button,
.option-button,
.icon-button {
  min-height: 44px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.top-button:hover,
.primary-button:hover,
.secondary-button:hover,
.tab-button:hover,
.option-button:hover,
.icon-button:hover { transform: translateY(-2px); }

.top-button:active,
.primary-button:active,
.secondary-button:active,
.tab-button:active,
.option-button:active,
.icon-button:active { transform: translateY(1px); }

.top-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  background: #f3efe3;
  border: 2px solid var(--line);
  border-radius: 15px;
}

.count-badge {
  display: grid;
  min-width: 27px;
  height: 27px;
  place-items: center;
  padding: 0 6px;
  color: white;
  background: var(--coral);
  border-radius: 999px;
  font-size: 12px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font: 900 11px/1.2 Georgia, serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  min-height: 438px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .88fr);
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 48px 52px;
  background: linear-gradient(108deg, #fffdf7 0 55%, #edf6f3 55% 100%);
  border: 3px solid var(--line);
  border-radius: 43px;
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border-radius: 999px;
}

.hero::before { top: -70px; right: 25%; width: 170px; height: 170px; background: rgba(243, 191, 79, .16); }
.hero::after { right: -45px; bottom: -55px; width: 160px; height: 160px; background: rgba(233, 147, 180, .16); }

.hero-copy { position: relative; z-index: 2; }

.hero h1 {
  max-width: 630px;
  margin: 0 0 18px;
  font-size: clamp(46px, 5.7vw, 70px);
  font-weight: 1000;
  line-height: .94;
  letter-spacing: -.055em;
}

.hero h1 span { color: var(--coral); }

.hero-copy > p:not(.eyebrow) {
  max-width: 570px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 21px;
  border-radius: 16px;
}

.primary-button {
  min-height: 54px;
  color: white;
  background: linear-gradient(180deg, #56a985, #3f8d6d);
  border: 2px solid #337a5e;
  box-shadow: 0 7px 0 #2f6f58, 0 12px 22px rgba(53, 119, 91, .22);
}

.primary-button:hover { box-shadow: 0 8px 0 #2f6f58, 0 14px 24px rgba(53, 119, 91, .25); }
.primary-button:active { box-shadow: 0 3px 0 #2f6f58; }

.secondary-button {
  min-height: 50px;
  background: #fffaf0;
  border: 2px solid #d8cfb5;
  box-shadow: 0 5px 0 #d6cdb4;
}

.secondary-button:active { box-shadow: 0 2px 0 #d6cdb4; }
.secondary-button.compact { min-height: 44px; padding: 0 14px; font-size: 13px; }
.secondary-button.danger { color: #9b504a; border-color: #ebc2bd; box-shadow: none; }

.hero-preview-wrap { position: relative; z-index: 2; display: grid; min-height: 330px; place-items: center; }

.hero-card {
  position: relative;
  width: min(330px, 100%);
  padding: 16px 16px 10px;
  background: rgba(255,255,255,.92);
  border: 3px solid #d6cdb4;
  border-radius: 31px;
  box-shadow: 0 19px 34px rgba(54, 80, 72, .18);
  transform: rotate(2deg);
}

.hero-card::before {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 96px;
  height: 27px;
  content: "";
  background: rgba(243, 191, 79, .48);
  transform: translateX(-50%) rotate(-2deg);
}

.hero-card small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 900; text-align: center; }
.hero-character { width: 100%; aspect-ratio: 1 / 1; }

.floating-chip {
  position: absolute;
  display: grid;
  min-width: 54px;
  height: 54px;
  place-items: center;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 19px;
  box-shadow: 0 12px 20px rgba(63, 78, 71, .14);
  font-size: 25px;
}

.chip-one { top: 38px; left: 5px; transform: rotate(-9deg); }
.chip-two { right: 2px; bottom: 44px; transform: rotate(8deg); }

.how-section, .parts-section, .gallery-section { margin-top: 48px; }

.section-heading { justify-content: space-between; gap: 28px; margin-bottom: 19px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 43px); line-height: 1; letter-spacing: -.035em; }
.section-heading > p { max-width: 410px; margin: 0; color: var(--muted); font-weight: 700; line-height: 1.5; text-align: right; }

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

.step-card {
  min-height: 122px;
  gap: 16px;
  padding: 20px;
  background: rgba(255,253,247,.88);
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 25px rgba(56, 77, 69, .08);
}

.step-number {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: var(--coral);
  border-radius: 17px;
  box-shadow: inset 0 -4px 0 rgba(119, 54, 49, .16);
  font: 900 22px/1 Georgia, serif;
}

.step-card:nth-child(2) .step-number { background: var(--blue); }
.step-card:nth-child(3) .step-number { background: var(--violet); }
.step-card strong { display: block; margin-bottom: 5px; font-size: 17px; }
.step-card small { display: block; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.45; }

.parts-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.part-card { padding: 18px 10px; background: var(--paper); border: 2px solid var(--line); border-radius: 22px; text-align: center; }
.part-card span { display: grid; width: 58px; height: 58px; margin: 0 auto 10px; place-items: center; background: var(--part-bg); border-radius: 19px; font-size: 29px; }
.part-card strong { font-size: 13px; }

.adult-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 19px;
  padding: 17px 19px;
  background: #eef7f2;
  border: 2px dashed #b8d5c7;
  border-radius: 20px;
}
.adult-note span { font-size: 24px; }
.adult-note p { margin: 2px 0 0; color: #55736d; font-size: 13px; font-weight: 700; line-height: 1.5; }

.studio-shell {
  padding: 28px;
  background: rgba(255, 253, 247, .92);
  border: 3px solid var(--line);
  border-radius: 39px;
  box-shadow: var(--shadow);
}

.studio-head { justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.studio-head h1 { margin: 0; font-size: clamp(29px, 4vw, 43px); letter-spacing: -.035em; }
.studio-head p { margin: 5px 0 0; color: var(--muted); font-weight: 700; }

.name-row { gap: 9px; }
.name-row label { font-size: 13px; font-weight: 900; }
.name-row input {
  width: min(240px, 34vw);
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: white;
  border: 2px solid var(--line);
  border-radius: 14px;
  font-weight: 800;
}

.creator-layout { display: grid; grid-template-columns: minmax(330px, .84fr) minmax(0, 1.16fr); gap: 22px; align-items: start; }

.preview-panel {
  position: sticky;
  top: 16px;
  padding: 17px;
  background: #f4efe3;
  border: 2px solid #d9cfb5;
  border-radius: 28px;
}

.idea-card {
  position: relative;
  margin-bottom: 13px;
  padding: 14px 44px 14px 15px;
  background: #fff3c9;
  border: 2px dashed #e0ad3e;
  border-radius: 17px;
}
.idea-card strong { display: block; margin-bottom: 3px; font-size: 13px; }
.idea-card p { margin: 0; color: #765f31; font-size: 12px; font-weight: 700; line-height: 1.4; }
.idea-card button { position: absolute; top: 8px; right: 8px; }

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  background: white;
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 0 #d7cdb2;
  font-size: 19px;
}
.icon-button:disabled { cursor: default; opacity: .42; transform: none; }

.character-stage {
  position: relative;
  display: grid;
  min-height: 455px;
  place-items: center;
  overflow: hidden;
  background: var(--stage-bg, #e7f4ef);
  border: 3px solid rgba(79, 112, 102, .26);
  border-radius: 24px;
}

.character-stage::before,
.character-stage::after { position: absolute; content: ""; pointer-events: none; }
.character-stage::before { inset: auto 7% 5% 7%; height: 24px; background: rgba(50, 75, 68, .14); border-radius: 50%; filter: blur(4px); }
.character-stage::after { top: 19px; right: 20px; width: 38px; height: 38px; background: rgba(255,255,255,.44); border-radius: 50%; box-shadow: -270px 54px 0 rgba(255,255,255,.24); }

.character-svg { position: relative; z-index: 1; width: min(380px, 98%); max-height: 440px; filter: drop-shadow(0 12px 8px rgba(41, 67, 61, .16)); }

.preview-toolbar { justify-content: space-between; gap: 10px; margin-top: 13px; }
.history-actions { gap: 8px; }

.controls-panel { min-width: 0; padding: 18px; background: #fffaf0; border: 2px solid var(--line); border-radius: 28px; }
.panel-title { justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-title h2 { margin: 0; font-size: 24px; }
.panel-title small { color: var(--muted); font-weight: 800; }

.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.tab-button {
  display: grid;
  min-width: 0;
  min-height: 56px;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 7px 4px;
  background: #f2ecdd;
  border: 2px solid transparent;
  border-radius: 15px;
  font-size: 12px;
}
.tab-button span { font-size: 20px; line-height: 1; }
.tab-button[aria-selected="true"] { background: white; border-color: var(--green); box-shadow: 0 5px 0 #c6ded2; }

.options-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; min-height: 282px; align-content: start; }

.option-button {
  position: relative;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 86px;
  padding: 8px 4px;
  background: white;
  border: 2px solid #ded5bf;
  border-radius: 17px;
  box-shadow: 0 4px 0 #ddd3bd;
  font-size: 11px;
  text-align: center;
}
.option-button[aria-pressed="true"] { border-color: var(--coral); box-shadow: 0 4px 0 #e4aaa4; }
.option-button[aria-pressed="true"]::after { position: absolute; top: 6px; right: 7px; content: "✓"; color: #b7544b; font-size: 14px; }
.option-swatch { display: grid; width: 43px; height: 43px; place-items: center; background: var(--swatch, #eee); border: 2px solid rgba(45, 80, 77, .16); border-radius: 15px; font-size: 22px; line-height: 1; }

.feedback {
  min-height: 57px;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 13px;
  color: #536e69;
  background: #eef6f2;
  border: 2px solid #c8ddd3;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}
.feedback.is-error { color: #8b4a45; background: #fff0eb; border-color: #efb8af; }
.feedback.is-success { color: #34725a; background: #e9f7ef; border-color: #a9d3bb; }
.feedback-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; background: white; border-radius: 11px; font-size: 17px; }

.studio-actions { justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 15px; }

.result-shell {
  display: grid;
  grid-template-columns: minmax(330px, .9fr) minmax(0,1.1fr);
  gap: 33px;
  align-items: center;
  padding: 37px;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 41px;
  box-shadow: var(--shadow);
}
.result-preview { padding: 17px; background: #f3eee2; border: 2px solid var(--line); border-radius: 29px; }
.result-preview .character-stage { min-height: 430px; }
.result-copy h1 { margin: 0 0 15px; font-size: clamp(41px, 6vw, 65px); line-height: .95; letter-spacing: -.05em; }
.result-copy h1 span { display: block; color: var(--coral); }
.result-copy > p { margin: 0 0 18px; color: var(--muted); font-size: 17px; font-weight: 700; line-height: 1.55; }
.result-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 22px 0; }
.result-stat { padding: 14px; background: #f5f0e5; border: 2px solid var(--line); border-radius: 17px; }
.result-stat strong { display: block; font-size: 23px; }
.result-stat small { color: var(--muted); font-weight: 800; }
.result-actions { flex-wrap: wrap; gap: 11px; }

.empty-gallery { padding: 45px 24px; background: var(--paper); border: 3px dashed var(--line); border-radius: 30px; text-align: center; }
.empty-gallery span { font-size: 58px; }
.empty-gallery h2 { margin: 10px 0 7px; font-size: 30px; }
.empty-gallery p { max-width: 520px; margin: 0 auto 20px; color: var(--muted); font-weight: 700; line-height: 1.5; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; }
.gallery-card { overflow: hidden; background: var(--paper); border: 2px solid var(--line); border-radius: 26px; box-shadow: 0 14px 30px rgba(56, 76, 68, .09); }
.gallery-preview { display: grid; min-height: 295px; place-items: center; background: var(--card-bg); border-bottom: 2px solid var(--line); }
.gallery-preview svg { width: min(265px, 95%); max-height: 285px; filter: drop-shadow(0 8px 7px rgba(43,67,60,.13)); }
.gallery-meta { justify-content: space-between; gap: 10px; padding: 15px; }
.gallery-meta strong { display: block; margin-bottom: 3px; font-size: 18px; }
.gallery-meta small { color: var(--muted); font-size: 11px; font-weight: 800; }
.gallery-card-actions { gap: 7px; }

.toast {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100% - 36px));
  padding: 13px 17px;
  color: white;
  background: #315e55;
  border-radius: 15px;
  box-shadow: 0 18px 35px rgba(35, 57, 51, .26);
  font-size: 14px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: .2s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr minmax(310px,.72fr); padding: 40px; }
  .creator-layout { grid-template-columns: minmax(300px,.78fr) minmax(0,1.22fr); }
  .character-stage { min-height: 420px; }
  .parts-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 768px) {
  .app { width: min(100% - 22px, 1120px); padding-top: 11px; }
  .topbar { min-height: 62px; border-radius: 19px; }
  .brand-mark { width: 44px; height: 44px; border-radius: 14px; font-size: 23px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { display: none; }
  .top-button { padding: 0 11px; }
  .top-button .button-label { display: none; }
  .hero { grid-template-columns: 1fr; gap: 23px; padding: 34px 29px 27px; }
  .hero-copy { max-width: 660px; }
  .hero-preview-wrap { min-height: 295px; }
  .hero-card { width: 292px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-heading > p { max-width: none; text-align: left; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 100px; }
  .studio-shell { padding: 19px; border-radius: 30px; }
  .studio-head { align-items: flex-start; flex-direction: column; }
  .name-row { width: 100%; align-items: stretch; flex-direction: column; }
  .name-row input { width: 100%; }
  .creator-layout { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .character-stage { min-height: 430px; }
  .tabs { grid-template-columns: repeat(6, minmax(64px,1fr)); overflow-x: auto; padding: 2px 2px 9px; scroll-snap-type: x mandatory; }
  .tab-button { scroll-snap-align: start; }
  .options-grid { grid-template-columns: repeat(4,minmax(0,1fr)); min-height: 0; }
  .result-shell { grid-template-columns: 1fr; padding: 27px; }
  .result-preview .character-stage { min-height: 400px; }
}

@media (max-width: 520px) {
  .app { width: min(100% - 18px, 1120px); }
  .topbar { padding-left: 9px; }
  .brand { gap: 8px; }
  .brand-copy strong { font-size: 15px; }
  .topbar-actions { gap: 6px; }
  .top-button { min-width: 44px; padding: 0 8px; justify-content: center; }
  .hero { min-height: 0; padding: 29px 21px 24px; border-radius: 31px; }
  .hero h1 { font-size: clamp(40px, 13vw, 55px); }
  .hero-copy > p:not(.eyebrow) { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions button { width: 100%; }
  .hero-preview-wrap { min-height: 260px; }
  .hero-card { width: 238px; padding: 12px 12px 8px; border-radius: 25px; }
  .floating-chip { min-width: 46px; height: 46px; font-size: 21px; }
  .how-section, .parts-section, .gallery-section { margin-top: 37px; }
  .parts-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .studio-shell { padding: 13px; border-radius: 25px; }
  .studio-head { margin-bottom: 15px; }
  .studio-head h1 { font-size: 28px; }
  .preview-panel { padding: 10px; border-radius: 22px; }
  .idea-card { padding-left: 12px; }
  .character-stage { min-height: 360px; border-radius: 19px; }
  .character-svg { max-height: 350px; }
  .preview-toolbar { align-items: stretch; flex-direction: column; }
  .preview-toolbar > .secondary-button { width: 100%; }
  .history-actions { justify-content: center; }
  .controls-panel { padding: 12px; border-radius: 22px; }
  .panel-title h2 { font-size: 21px; }
  .panel-title small { display: none; }
  .tabs { margin-right: -3px; margin-left: -3px; }
  .tab-button { min-height: 58px; }
  .options-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .option-button { min-height: 82px; }
  .studio-actions { align-items: stretch; flex-direction: column-reverse; }
  .studio-actions button { width: 100%; }
  .result-shell { padding: 18px; border-radius: 30px; }
  .result-preview { padding: 10px; }
  .result-preview .character-stage { min-height: 350px; }
  .result-copy h1 { font-size: 43px; }
  .result-actions { align-items: stretch; flex-direction: column; }
  .result-actions button { width: 100%; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-preview { min-height: 315px; }
  .gallery-preview svg { max-height: 305px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.print-sheet { display: none; }
@media print {
  @page { size: A4 portrait; margin: 10mm; }
  body > * { display: none !important; }
  body > .print-sheet { display: grid !important; width: 100%; height: 100%; place-items: center; align-content: center; gap: 6mm; color: #2d504d; background: #fff; }
  .print-sheet__art { width: min(145mm, 100%); }
  .print-sheet .character-svg { display: block; width: 100%; max-height: 230mm; filter: none; }
  .print-sheet h1 { margin: 0; font-size: 20pt; text-align: center; }
}
