:root {
  color-scheme:light;
  --bg:#f6f4ef;
  --paper:#fffefa;
  --ink:#293b38;
  --muted:#6b746d;
  --line:#dfded5;
  --soft:#e9eee6;
  --accent:#314b40;
  --on-accent:#fffef9;
  --warm:#d5aa94;
  --danger:#9c423d;
  --danger-bg:#f7e6e2;
  --shadow:0 8px 28px #24352906;
  --radius:20px
}
* {
  box-sizing:border-box
}
[hidden] {
  display:none!important
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:100px
}
body {
  margin:0;
  background:linear-gradient(180deg,var(--bg),var(--paper) 1600px);
  color:var(--ink);
  font-family:"Hiragino Sans","Yu Gothic",Meiryo,system-ui,sans-serif;
  font-size:15px;
  line-height:1.8;
  -webkit-tap-highlight-color:transparent
}
button,input,select,textarea {
  font:inherit;
  color:inherit
}
button,a,input,select,textarea {
  -webkit-touch-callout:none
}
button {
  cursor:pointer
}
button,input,select {
  min-height:44px
}
button {
  border:0;
  background:none;
  transition:transform .12s,background .12s
}
button:active {
  transform:translateY(1px)
}
button:disabled {
  cursor:default;
  opacity:.5
}
a {
  color:inherit;
  text-underline-offset:4px
}
h1,h2,h3,h4,p {
  margin:0
}
h1,h2,h3 {
  letter-spacing:.025em
}
h2 {
  font-size:26px;
  line-height:1.5
}
h3 {
  font-size:18px;
  line-height:1.6
}
small,.small {
  font-size:12px;
  line-height:1.8
}
.muted {
  color:var(--muted)
}
.symbols {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}
.icon {
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0;
  vertical-align:middle
}
.masthead {
  max-width:1200px;
  margin:auto;
  padding:24px 40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  line-height:1.5;
  text-decoration:none;
  min-width:0;
  font-size:17px
}
.brand strong {
  font-weight:650
}
.brand small {
  display:block;
  font-size:10px;
  letter-spacing:.1em;
  color:var(--muted);
  margin-top:3px
}
.brand-mark {
  display:grid;
  place-items:center;
  background:var(--accent);
  color:var(--on-accent);
  border-radius:16px;
  width:48px;
  height:48px;
  flex-shrink:0
}
.brand-mark .icon {
  width:29px;
  height:29px
}
.header-actions {
  display:flex;
  gap:8px
}
.icon-button {
  display:inline-grid;
  place-items:center;
  width:44px;
  height:44px;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--paper)
}
main {
  max-width:1120px;
  padding:0 32px;
  margin:auto
}
.intro {
  display:grid;
  grid-template-columns:1fr 350px;
  gap:32px;
  align-items:center;
  padding:48px 16px 64px;
  min-height:420px
}
.eyebrow {
  font-size:10px;
  font-weight:600;
  letter-spacing:.16em;
  line-height:1.6;
  color:var(--muted)
}
.eyebrow>span {
  display:inline-block;
  width:28px;
  height:1px;
  background:var(--warm);
  vertical-align:middle;
  margin-right:12px
}
h1 {
  font-size:54px;
  font-weight:650;
  letter-spacing:.06em;
  line-height:1.45;
  margin:20px 0
}
.intro-text {
  color:var(--muted);
  font-size:15px;
  line-height:2
}
.local-badge {
  display:inline-flex;
  gap:8px;
  align-items:center;
  background:var(--soft);
  border-radius:24px;
  padding:8px 12px;
  margin-top:24px;
  font-size:11px
}
.local-badge .icon {
  width:16px;
  height:16px
}
.hero-art {
  height:310px;
  position:relative;
  isolation:isolate
}
.art-paper {
  position:absolute;
  width:206px;
  height:258px;
  box-shadow:0 8px 24px #26342d12;
  border:1px solid #d9d8cd
}
.paper-front {
  left:24px;
  top:12px;
  transform:rotate(-9deg);
  background:#fffdfa;
  padding:12px;
  color:#35473d;
  text-align:center
}
.paper-front svg {
  width:100%;
  height:197px;
  display:block
}
.paper-front>span {
  font-size:21px;
  font-weight:700;
  letter-spacing:.07em
}
.paper-back {
  right:0;
  top:0;
  transform:rotate(10deg);
  z-index:-1;
  background:#dfe6d9;
  padding:24px;
  color:#5c7162
}
.paper-back>span {
  font-size:10px;
  letter-spacing:.15em;
  line-height:2
}
.paper-back i {
  display:block;
  border-bottom:1px solid #acb9a7;
  margin-top:32px
}
.art-caption {
  position:absolute;
  bottom:0;
  right:0;
  letter-spacing:.1em;
  font-size:10px;
  color:var(--muted)
}
.step-nav {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin-bottom:40px
}
.step {
  position:relative;
  padding:18px 12px;
  color:var(--muted);
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  font-size:14px
}
.step span {
  font-size:11px;
  font-variant-numeric:tabular-nums;
  opacity:.7
}
.step.active {
  color:var(--ink);
  font-weight:700
}
.step.active::after {
  content:"";
  height:3px;
  position:absolute;
  bottom:-1px;
  left:20%;
  right:20%;
  border-radius:3px;
  background:var(--accent)
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:28px
}
.section-heading h2 {
  margin:8px 0
}
.section-heading p:not(.eyebrow) {
  color:var(--muted);
  font-size:13px
}
.primary,.secondary,.text-button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  border-radius:12px;
  min-height:48px;
  padding:10px 18px;
  font-size:13px;
  font-weight:600;
  line-height:1.7;
  overflow-wrap:anywhere
}
.primary {
  background:var(--accent);
  color:var(--on-accent)
}
.primary:hover {
  filter:brightness(1.1)
}
.secondary {
  background:var(--paper);
  border:1px solid var(--line)
}
.secondary:hover {
  background:var(--soft)
}
.text-button {
  color:var(--muted);
  padding:10px 8px
}
.text-button:hover {
  color:var(--ink);
  background:var(--soft)
}
.full {
  width:100%
}
.start-layout {
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr);
  gap:48px
}
.upload-zone {
  border:1px dashed #a4b5a7;
  background:var(--paper);
  border-radius:var(--radius);
  padding:48px 24px;
  text-align:center;
  box-shadow:var(--shadow)
}
.upload-zone.dragging {
  background:var(--soft);
  border:2px solid var(--accent)
}
.upload-symbol {
  display:grid;
  place-items:center;
  width:72px;
  height:72px;
  margin:0 auto 20px;
  background:var(--soft);
  border-radius:20px
}
.upload-symbol .icon {
  width:32px;
  height:32px
}
.upload-zone p {
  font-size:13px;
  color:var(--muted);
  margin:8px 0 24px
}
.upload-zone small {
  display:block;
  color:var(--muted);
  margin-top:16px;
  font-size:10px
}
.start-aside {
  padding:16px 0
}
.aside-number {
  font-size:9px;
  letter-spacing:.1em;
  color:var(--muted)
}
.start-aside h3 {
  font-size:25px;
  line-height:1.7;
  margin:12px 0
}
.tiny-flow {
  padding:0;
  list-style:none;
  margin:24px 0
}
.tiny-flow li {
  display:flex;
  align-items:center;
  gap:14px;
  font-size:12px;
  margin:16px 0
}
.tiny-flow .icon {
  width:19px;
  height:19px;
  color:var(--muted)
}
.start-aside>.small {
  margin-top:12px
}
.resume-strip {
  margin-top:24px;
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px
}
.resume-strip p {
  font-size:12px;
  color:var(--muted)
}
.split-settings {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  margin-bottom:32px
}
.split-settings>summary {
  padding:20px 24px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  min-height:56px
}
.split-layout {
  display:grid;
  grid-template-columns:minmax(200px,1fr) minmax(280px,1fr);
  padding:0 24px 24px;
  gap:32px
}
.sheet-preview {
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center
}
.sheet-preview canvas {
  display:block;
  width:auto;
  max-width:100%;
  max-height:420px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px
}
.sheet-preview p {
  margin-top:12px
}
.split-form {
  min-width:0
}
.field-pair {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px
}
label {
  display:block;
  font-size:12px;
  font-weight:600;
  min-width:0
}
input:not([type=range]):not([type=checkbox]),select,textarea {
  display:block;
  width:100%;
  min-width:0;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  padding:10px 12px;
  outline:none;
  font-size:14px;
  line-height:1.5
}
input:focus,select:focus,textarea:focus {
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--soft)
}
input[type=color] {
  padding:5px!important;
  height:44px
}
input[type=range] {
  width:100%;
  accent-color:var(--accent);
  display:block;
  margin:0
}
label>span {
  font-variant-numeric:tabular-nums;
  float:right;
  color:var(--muted);
  font-weight:400
}
.split-form>label,.split-form>.field-pair {
  margin-bottom:16px
}
.split-form>.small {
  margin:8px 0 16px
}
.collection-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:24px 0
}
.count {
  display:inline-block;
  padding:3px 10px;
  background:var(--soft);
  border-radius:30px;
  font-size:12px;
  font-weight:500;
  font-variant-numeric:tabular-nums;
  margin-left:4px
}
.compact-field {
  display:flex;
  align-items:center;
  gap:12px;
  white-space:nowrap
}
.compact-field select {
  width:auto
}
.sticker-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px
}
.sticker-card {
  min-width:0;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  position:relative
}
.sticker-card.excluded {
  opacity:.55
}
.tile-top {
  padding:8px 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  font-size:11px
}
.tile-top label {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px
}
.tile-top input {
  accent-color:var(--accent);
  width:18px;
  height:18px;
  min-height:18px;
  flex-shrink:0
}
.tile-number {
  font-variant-numeric:tabular-nums;
  letter-spacing:.05em;
  color:var(--muted);
  font-size:11px
}
.tile-preview {
  background-color:#f8f8f6;
  aspect-ratio:320/270;
  display:grid;
  place-items:center;
  border-block:1px solid var(--line);
  overflow:hidden
}
.tile-preview canvas {
  display:block;
  width:100%;
  height:auto;
  max-width:100%
}
.checker {
  background-color:#fff;
  background-image:linear-gradient(45deg,#e8e8e5 25%,transparent 25%),linear-gradient(-45deg,#e8e8e5 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8e8e5 75%),linear-gradient(-45deg,transparent 75%,#e8e8e5 75%);
  background-size:16px 16px;
  background-position:0 0,0 8px,8px -8px,-8px 0
}
.tile-actions {
  display:grid;
  grid-template-columns:minmax(0,1fr) 44px 44px;
  gap:0;
  padding:4px
}
.tile-actions button {
  font-size:12px;
  min-height:44px;
  padding:4px;
  border-radius:8px
}
.tile-actions button:hover {
  background:var(--soft)
}
.tile-warning {
  font-size:10px;
  color:var(--danger);
  padding:8px 12px;
  background:var(--danger-bg)
}
.motion-toolbar {
  display:flex;
  gap:12px;
  align-items:flex-end;
  flex-wrap:wrap;
  background:var(--soft);
  border-radius:16px;
  padding:16px 20px;
  margin-bottom:12px
}
.motion-toolbar label {
  min-width:180px
}
.motion-toolbar select {
  margin-top:4px
}
.motion-toolbar .secondary:last-child {
  margin-left:auto
}
.motion-toolbar+.small {
  margin-bottom:24px
}
.tile-motion {
  padding:12px
}
.tile-motion label+label {
  margin-top:8px
}
.tile-motion .cover-choice {
  width:100%;
  margin-top:12px;
  min-height:44px;
  font-size:11px;
  border-radius:8px;
  border:1px solid var(--line)
}
.cover-choice.chosen {
  background:var(--soft);
  font-weight:700
}
.note {
  font-size:12px;
  color:var(--muted);
  border-left:2px solid var(--warm);
  padding:8px 16px;
  margin:24px 0
}
.export-layout {
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(280px,.85fr);
  gap:32px;
  align-items:start
}
.export-main {
  min-width:0
}
.export-cover {
  background:var(--accent);
  border-radius:var(--radius);
  padding:32px;
  color:var(--on-accent)
}
.export-cover .eyebrow {
  color:inherit;
  opacity:.65
}
.export-cover h3 {
  font-size:56px;
  font-weight:450;
  display:flex;
  align-items:baseline;
  gap:12px;
  margin:16px 0;
  font-variant-numeric:tabular-nums
}
.export-cover h3 small {
  font-size:17px
}
.export-cover>p:not(.eyebrow) {
  font-size:12px;
  opacity:.8;
  margin:12px 0
}
.export-spec {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  font-size:10px;
  margin:20px 0 28px
}
.export-spec span {
  padding:4px 8px;
  border:1px solid #ffffff38;
  border-radius:20px
}
.primary.light {
  color:#314b40;
  background:#f4f0e6;
  width:100%
}
.application-notes {
  padding:24px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  min-width:0
}
.application-notes>p {
  margin:8px 0 24px
}
.application-notes>label {
  margin:16px 0
}
.application-notes input,.application-notes textarea {
  margin-top:6px
}
.field-counter {
  display:block;
  text-align:right;
  margin-top:4px;
  font-size:10px;
  font-weight:400;
  color:var(--muted)
}
.field-counter.invalid {
  color:var(--danger)
}
.submission-help {
  margin-top:24px;
  padding-top:24px;
  border-top:1px solid var(--line);
  font-size:12px
}
.submission-help p {
  color:var(--muted);
  margin:8px 0 16px
}
.external-link {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-weight:600
}
.export-results {
  padding:24px 0
}
.success-line {
  display:flex;
  align-items:center;
  gap:10px
}
.success-line .icon {
  background:var(--soft);
  width:28px;
  height:28px;
  padding:4px;
  border-radius:50%
}
.success-line h3 {
  font-size:16px
}
.export-results>p {
  color:var(--muted);
  font-size:12px;
  margin:12px 0 20px
}
.result-preview {
  display:grid;
  place-items:center;
  min-height:250px;
  border:1px solid var(--line);
  border-radius:16px;
  margin:16px 0 4px;
  padding:16px
}
.result-preview img {
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  max-height:270px;
  image-rendering:auto
}
.download-actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:20px 0
}
.export-results details {
  font-size:12px
}
.export-results summary {
  cursor:pointer;
  min-height:44px;
  padding:8px 0
}
.file-row {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:8px 0;
  border-bottom:1px solid var(--line);
  font-size:11px;
  font-variant-numeric:tabular-nums
}
.project-tools {
  margin:64px 0 32px;
  border-block:1px solid var(--line);
  padding:28px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px
}
.project-tools h3 {
  font-size:18px;
  margin:8px 0
}
.project-tools p {
  font-size:12px;
  color:var(--muted)
}
.project-buttons {
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end
}
footer {
  max-width:1120px;
  padding:0 32px 32px;
  margin:auto;
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:10px
}
footer span:last-child {
  margin-left:auto
}
.empty-panel {
  text-align:center;
  padding:64px 24px;
  border:1px dashed var(--line);
  border-radius:20px
}
.empty-panel>.icon {
  width:44px;
  height:44px;
  color:var(--muted);
  margin-bottom:20px
}
.empty-panel p {
  margin:12px 0 24px;
  color:var(--muted);
  font-size:13px
}
.empty-panel .primary {
  margin-top:20px
}
.page-error {
  color:var(--danger);
  background:var(--danger-bg);
  border-radius:12px;
  padding:16px 20px;
  margin-bottom:24px;
  font-size:13px;
  overflow-wrap:anywhere
}
.preview-notice {
  font-size:12px;
  background:var(--soft);
  border-radius:12px;
  padding:12px 16px;
  margin-bottom:24px
}
.toast {
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  background:var(--ink);
  color:var(--paper);
  border-radius:12px;
  padding:12px 20px;
  max-width:calc(100% - 32px);
  z-index:100;
  font-size:13px;
  box-shadow:0 6px 24px #0002
}
.busy-overlay {
  position:fixed;
  inset:0;
  background:#162b254d;
  z-index:90;
  display:grid;
  place-items:center;
  padding:24px;
  backdrop-filter:blur(4px)
}
.busy-card {
  width:100%;
  max-width:400px;
  padding:32px;
  background:var(--paper);
  border-radius:24px;
  text-align:center;
  box-shadow:var(--shadow)
}
.busy-paw {
  display:grid;
  place-items:center;
  margin:0 auto 20px;
  width:56px;
  height:56px;
  border-radius:16px;
  background:var(--soft)
}
.busy-card p {
  font-size:13px;
  color:var(--muted);
  margin:12px 0 20px;
  overflow-wrap:anywhere
}
.busy-card progress {
  width:100%;
  height:8px;
  accent-color:var(--accent)
}
dialog {
  border:1px solid var(--line);
  border-radius:24px;
  background:var(--paper);
  color:var(--ink);
  max-width:760px;
  width:calc(100% - 32px);
  max-height:calc(100dvh - 32px);
  padding:24px;
  overflow:auto;
  box-shadow:0 24px 96px #0003
}
dialog::backdrop {
  background:#10241c80;
  backdrop-filter:blur(3px)
}
.dialog-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:20px
}
.dialog-heading h2 {
  font-size:22px;
  margin-top:4px
}
.dialog-heading .icon-button {
  flex-shrink:0
}
.edit-tools {
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin:16px 0
}
.edit-tools label {
  flex:1;
  min-width:120px
}
.edit-tools .selected {
  background:var(--accent);
  color:var(--on-accent)
}
.edit-canvas-wrap {
  display:flex;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  max-height:50dvh;
  min-height:140px
}
.edit-canvas-wrap canvas {
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:50dvh;
  object-fit:contain;
  touch-action:none;
  cursor:crosshair
}
.edit-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:16px
}
.help-content {
  font-size:13px;
  color:var(--muted)
}
.help-content ol {
  padding-left:24px
}
.help-content li {
  margin-bottom:16px
}
.help-content h3 {
  margin:24px 0 12px;
  color:var(--ink)
}
.help-content p {
  margin-bottom:16px
}
.help-content a {
  min-height:44px;
  display:inline-flex;
  align-items:center
}
#promptDialog textarea {
  font-size:13px;
  line-height:1.9;
  margin:16px 0;
  resize:vertical
}
button:focus-visible,a:focus-visible,summary:focus-visible {
  outline:3px solid #9caa7c;
  outline-offset:3px
}
:focus:not(:focus-visible) {
  outline:none
}
@media(min-width:1000px) {
  .application-notes {
    position:sticky;
    top:24px
  }
}
@media(max-width:900px) {
  .intro {
    grid-template-columns:minmax(0,1fr) 270px;
    gap:16px;
    padding-inline:0
  }
  h1 {
    font-size:46px
  }
  .hero-art {
    transform:scale(.85);
    transform-origin:right center
  }
  .sticker-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .start-layout {
    gap:28px
  }
  .export-layout {
    gap:24px
  }
  .export-cover {
    padding:24px
  }
}
@media(max-width:680px) {
  body {
    font-size:14px
  }
  .masthead {
    padding:16px 20px
  }
  .brand {
    font-size:13px;
    gap:8px
  }
  .brand strong {
    display:block
  }
  .brand small {
    display:none
  }
  .brand-mark {
    width:40px;
    height:44px;
    border-radius:12px
  }
  .brand-mark .icon {
    width:25px;
    height:25px
  }
  .header-actions {
    gap:4px
  }
  .icon-button {
    width:44px;
    height:44px
  }
  main {
    padding:0 20px
  }
  .intro {
    grid-template-columns:minmax(0,1fr) 104px;
    gap:8px;
    min-height:300px;
    padding:28px 0 36px
  }
  .intro-copy {
    min-width:0
  }
  .intro .eyebrow {
    font-size:7px;
    letter-spacing:.08em
  }
  .intro .eyebrow>span {
    width:16px;
    margin-right:4px
  }
  h1 {
    font-size:30px;
    line-height:1.55;
    letter-spacing:.02em;
    margin:16px 0
  }
  .intro-text {
    font-size:11px;
    line-height:2
  }
  .local-badge {
    margin-top:16px;
    font-size:9px;
    padding:6px 8px;
    gap:4px;
    max-width:100%;
    white-space:normal
  }
  .local-badge .icon {
    width:13px;
    height:13px
  }
  .hero-art {
    transform:none;
    width:104px;
    height:180px;
    align-self:center
  }
  .art-paper {
    width:90px;
    height:120px
  }
  .paper-front {
    left:0;
    top:30px;
    padding:4px;
    transform:rotate(-8deg)
  }
  .paper-front svg {
    height:88px
  }
  .paper-front>span {
    font-size:12px;
    letter-spacing:0
  }
  .paper-back {
    right:0;
    top:20px;
    padding:12px
  }
  .paper-back>span {
    font-size:5px;
    letter-spacing:.02em
  }
  .paper-back i {
    margin-top:12px
  }
  .art-caption {
    font-size:6px;
    bottom:4px;
    right:0;
    letter-spacing:0;
    white-space:nowrap
  }
  .step-nav {
    margin-bottom:28px
  }
  .step {
    padding:12px 4px;
    gap:4px;
    font-size:11px;
    flex-direction:column;
    line-height:1.5
  }
  .step span {
    font-size:9px
  }
  .section-heading {
    align-items:flex-start;
    gap:12px;
    flex-direction:column;
    margin-bottom:24px
  }
  .section-heading h2 {
    font-size:24px
  }
  .section-heading p:not(.eyebrow) {
    font-size:12px
  }
  .section-heading>.secondary,.section-heading>.text-button {
    align-self:flex-end
  }
  .start-layout {
    grid-template-columns:1fr;
    gap:24px
  }
  .upload-zone {
    padding:32px 16px
  }
  .upload-zone h3 {
    font-size:17px
  }
  .upload-zone p {
    font-size:12px
  }
  .start-aside {
    padding:12px 4px
  }
  .start-aside h3 {
    font-size:22px
  }
  .tiny-flow {
    margin:20px 0
  }
  .resume-strip {
    align-items:flex-start;
    flex-direction:column;
    padding:20px
  }
  .split-layout {
    grid-template-columns:1fr;
    gap:24px;
    padding:0 16px 20px
  }
  .split-settings>summary {
    padding:16px;
    font-size:13px
  }
  .sheet-preview canvas {
    max-height:300px
  }
  .field-pair {
    gap:12px
  }
  .split-form>button {
    width:100%
  }
  .collection-toolbar {
    align-items:flex-start;
    gap:12px
  }
  .collection-toolbar h3 {
    font-size:16px
  }
  .count {
    font-size:11px
  }
  .compact-field {
    font-size:10px;
    gap:4px;
    flex-direction:column;
    align-items:flex-start
  }
  .compact-field select {
    font-size:13px;
    padding:8px
  }
  .sticker-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px
  }
  .tile-top {
    padding:4px 8px
  }
  .tile-top label {
    font-size:10px;
    gap:4px
  }
  .tile-number {
    font-size:10px
  }
  .tile-actions {
    grid-template-columns:minmax(0,1fr) 44px 44px;
    padding:2px
  }
  .tile-actions button {
    font-size:10px;
    min-width:0
  }
  .tile-motion {
    padding:8px
  }
  .tile-motion label {
    font-size:10px
  }
  .tile-motion select {
    font-size:11px;
    padding:8px 4px
  }
  .cover-choice {
    font-size:10px!important
  }
  .motion-toolbar {
    padding:16px;
    gap:12px;
    align-items:stretch
  }
  .motion-toolbar label {
    width:100%
  }
  .motion-toolbar .secondary {
    width:100%;
    font-size:12px
  }
  .motion-toolbar .secondary:last-child {
    margin-left:0
  }
  .motion-toolbar+.small {
    font-size:11px
  }
  .note {
    font-size:11px
  }
  .export-layout {
    grid-template-columns:1fr;
    gap:16px
  }
  .export-cover {
    padding:24px
  }
  .application-notes {
    padding:20px
  }
  .export-results {
    padding-bottom:12px
  }
  .result-preview {
    min-height:220px
  }
  .project-tools {
    margin-top:40px;
    align-items:flex-start;
    flex-direction:column;
    padding:24px 0
  }
  .project-buttons {
    justify-content:flex-start;
    width:100%
  }
  .project-buttons .secondary {
    flex:1;
    font-size:12px
  }
  .project-buttons .text-button {
    font-size:12px
  }
  footer {
    padding:0 20px 24px;
    gap:4px 16px;
    font-size:9px
  }
  footer span:last-child {
    margin-left:0;
    width:100%;
    margin-top:4px
  }
  .primary,.secondary,.text-button {
    font-size:12px;
    padding:10px 14px
  }
  .download-actions>* {
    width:100%
  }
  .success-line h3 {
    font-size:14px
  }
  dialog {
    padding:20px;
    width:calc(100% - 24px);
    max-height:calc(100dvh - 24px)
  }
  .dialog-heading h2 {
    font-size:19px
  }
  .edit-tools .secondary {
    padding:8px 12px
  }
  .edit-tools label {
    font-size:10px
  }
  .edit-tools>.text-button {
    width:100%
  }
  .edit-bottom {
    gap:8px
  }
  .edit-bottom .text-button {
    font-size:11px
  }
  .empty-panel {
    padding:44px 16px
  }
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme=light]) {
    color-scheme:dark;
    --bg:#1d2421;
    --paper:#252e29;
    --ink:#edece2;
    --muted:#b3beb0;
    --line:#435044;
    --soft:#334235;
    --accent:#c4d0b5;
    --on-accent:#203024;
    --warm:#bc9584;
    --danger:#f0b7ae;
    --danger-bg:#503431;
    --shadow:0 8px 28px #0001
  }
}
:root[data-theme=dark] {
  color-scheme:dark;
  --bg:#1d2421;
  --paper:#252e29;
  --ink:#edece2;
  --muted:#b3beb0;
  --line:#435044;
  --soft:#334235;
  --accent:#c4d0b5;
  --on-accent:#203024;
  --warm:#bc9584;
  --danger:#f0b7ae;
  --danger-bg:#503431;
  --shadow:0 8px 28px #0001
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
  html {
    scroll-behavior:auto
  }
}

.brand-mark img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:inherit;
}
