.zine-panel,
#toasts {
  --ground: #0a0a0a;
  --ink: #ededed;
  --ink-dim: #a1a1a1;
  --ink-faint: #858585;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --hover: rgba(255, 255, 255, 0.07);
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--ink);
}
:is(.zine-panel, #toasts) p { margin: 0; color: inherit; }
:is(.zine-panel, #toasts) :is(button, input) { font-family: inherit; }
.zine {
  --sheet-w: 297;
  --sheet-h: 210;
  --zine-red: #e8492b;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.zine [hidden] { display: none !important; }
.zine-head { order: -1; min-width: 0; }
.zine-stage-col { min-width: 0; order: 0; }
.zine-start { order: 1; min-width: 0; }
.zine:not([data-open]) :is(.zine-bar, .zine-side, .zine-panel, .zine-spares, .zine-more, .zine-foot, .zine-door, .zine-switch, .zine-acts, .zine-hint) { display: none; }
.zine:not([data-step='make']) :is(.zine-side, .zine-panel, .zine-switch, .zine-acts, .zine-hint) { display: none; }
.zine-steps {
  counter-reset: zstep;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.zine-steps li {
  counter-increment: zstep;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: 500 14.5px/1.3 var(--sans);
  color: var(--ink, #1e1e1e);
}
.zine-steps li::before {
  content: counter(zstep);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink, #1e1e1e);
  color: #ffffff;
  font: 700 12px/24px var(--sans);
  text-align: center;
}
.zine-steps li:last-child::before { background: var(--zine-red); }
.zine-add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 22px;
  font-size: 17px;
  cursor: pointer;
}
.zine[data-busy] .zine-add { pointer-events: none; gap: 10px; }
.zine[data-busy] .zine-add::before {
  content: ''; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: zine-turn 0.8s linear infinite;
}
@keyframes zine-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .zine[data-busy] .zine-add::before { animation: none; border-right-color: currentColor; opacity: 0.5; } }
.zine[data-busy] .zine-stage { cursor: progress; }
.zine-file-in { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.zine-ask-note {
  display: none;
  margin: 0;
  font: 400 15px/1.4 var(--sans);
  color: var(--ink-dim, #535353);
}
noscript .zine-ask-note { display: block; }
.zine-resume { margin-top: 10px; width: 100%; }
.zine-start .trust { margin-top: 18px; }
.zine-paper-swap {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink, #1e1e1e);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong, rgba(44, 44, 44, 0.32));
  cursor: pointer;
}
.zine-stage {
  position: relative;
  box-sizing: border-box;
  height: clamp(240px, 72vw, 420px);
  padding: 16px;
  display: grid;
  place-items: center;
  background: var(--desk, #e9e9e9);
}
.zine-sheet {
  display: block;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: var(--sheet-w) / var(--sheet-h);
  background: #fff;
  box-shadow: var(--lift, 0 4px 14px rgba(29, 29, 29, 0.3));
  cursor: pointer;
}
.zine-standing { display: none; }
.zine-drop-say { display: none; }
.zine:not([data-open]) .zine-stage { background: transparent; padding: 18px 8px 28px; overflow: visible; }
.zine:not([data-open]) .zine-sheet {
  transform: rotate(-3deg);
  box-shadow: 0 2px 6px rgba(29, 29, 29, 0.1), 0 24px 56px -24px rgba(29, 29, 29, 0.35);
}
.zine:not([data-open]) .zine-standing {
  display: block;
  position: absolute;
  right: 4%;
  bottom: 4px;
  width: 26%;
  height: auto;
  transform: rotate(6deg);
  background: #fff;
  box-shadow: 4px 4px 0 #f4f4f4, 0 2px 6px rgba(29, 29, 29, 0.12), 0 30px 60px -26px rgba(29, 29, 29, 0.5);
  pointer-events: none;
}
.zine.dropping .zine-stage,
.zine-stage:focus-visible { outline: 2px solid var(--ink, #1e1e1e); outline-offset: -2px; }
.zine.dropping:not([data-open]) .zine-stage { outline-color: var(--zine-red); }
.zine[data-view='flip'] .zine-sheet { background: transparent; box-shadow: none; touch-action: none; }
.zine-bar {
  order: -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line, rgba(30, 30, 30, 0.1));
  background: var(--ground, #fafafa);
}
.zine-bar .hero-cap { flex: 1; min-width: 0; margin: 0; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.zine-bar .zine-cap-paper { display: none; }
.zine-side { order: 2; display: grid; gap: 18px; min-width: 0; }
.zine-viewcard { display: grid; gap: 8px; }
.zine-peek {
  display: none; width: 100%; padding: 14px; border: 0; border-radius: var(--radius, 6px);
  background: var(--desk, #e9e9e9); cursor: pointer;
}
.zine-peek canvas { display: block; width: 100%; }
.zine-peek:focus-visible { outline: 2px solid var(--ink, #1e1e1e); outline-offset: 2px; }
.zine[data-device='computer'] .zine-peek { display: block; }
.zine-side .zine-switch { margin-top: 0; }
.zine-side .zine-switch .ctl-seg { display: flex; width: 100%; box-sizing: border-box; }
.zine-side .zine-switch .ctl-opt { flex: 1; justify-content: center; }
.zine-leaves .ctl-picker,
.zine-switch .ctl-picker { justify-content: flex-start; }
.zine-leaves .ctl-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zine-leaves .ctl-opt:is(:first-child, :last-child) { grid-column: 1 / -1; }
.zine-leaves .ctl-picker { gap: 6px; }
.zine-leaves .ctl-opt {
  display: flex; align-items: center; justify-content: flex-start; gap: 8px;
  padding: 5px 8px 5px 5px; min-width: 0;
  border: 1px solid var(--line, rgba(30, 30, 30, 0.1)); border-radius: var(--radius, 10px);
  background: var(--ground, #fafafa); color: var(--ink-dim, #535353);
}
.zine-leaves .ctl-opt:hover:not(:disabled) { border-color: var(--line-strong); color: var(--ink, #1e1e1e); }
.zine-leaves .ctl-opt.active { border-color: var(--ink, #1e1e1e); color: var(--ink, #1e1e1e); background: var(--ground, #fafafa); }
.zine-leaf-thumb {
  flex: 0 0 auto; display: block; width: 22px; background: #ffffff;
  box-shadow: 0 0 0 1px rgba(30, 30, 30, 0.08), 0 2px 5px -2px rgba(30, 30, 30, 0.35);
}
.zine-switch { display: flex; justify-content: center; margin-top: 10px; }
.zine-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.zine-acts .btn,
.zine-bar .btn { background: var(--ground, #fafafa); }
.zine-acts .btn:hover,
.zine-bar .btn:hover { border-color: var(--line-strong); }
.zine-swap[aria-pressed='true'] { border-color: var(--ink, #1e1e1e); }
.zine .btn.btn-primary { background: var(--brand, #222222); border-color: var(--brand, #222222); color: #f5f5f5; }
.zine .btn.btn-primary:hover { background: var(--brand-hover, #2d2d2d); border-color: var(--brand-hover, #2d2d2d); }
.zine-hint {
  margin: 10px 0 0;
  min-height: 1.45em;
  font: 400 14.5px/1.45 var(--sans);
  color: var(--ink-dim, #535353);
}
html.zine-open { overflow: hidden; }
html.zine-open .dialog-backdrop { z-index: 61; }
html.zine-open .dialog { z-index: 62; }
html.zine-open #toasts { z-index: 63; }
.zine[data-open] {
  position: fixed;
  inset: 0;
  z-index: 60;
  margin: 0;
  padding: 0 16px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  align-content: start;
  gap: 14px;
  background: var(--ground, #fafafa);
}
.zine[data-open] :is(.zine-head, .zine-start) { display: none; }
.zine[data-open] .zine-bar { position: sticky; top: 0; z-index: 2; }
.zine[data-open] .zine-stage { height: clamp(240px, 72vw, 60vh); }
.zine[data-open] .zine-stage-col { order: 1; }
.zine[data-open] .zine-panel { order: 3; }
.zine-right { display: contents; }
.zine-right :is(.zine-spares, .zine-more) { order: 2; }
.zine-right .zine-more { justify-self: start; }
.zine[data-open] .zine-foot { order: 4; }
.zine-spare-in { display: grid; gap: 8px; }
.zine-spare-title { margin: 0; font-weight: 500; font-size: 13.5px; color: var(--ink-dim, #696969); }
.zine-spare-say { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-dim, #696969); }
.zine-spare-row { display: flex; flex-wrap: wrap; gap: 6px; }
.zine-spare {
  width: 64px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; overflow: hidden;
  cursor: grab; background: var(--desk, #e9e9e9);
}
.zine-spare .zine-pick-thumb { display: block; width: 100%; height: 100%; }
.zine-spare.dragging { opacity: 0.4; }
.zine-spare-row.armed .zine-spare { box-shadow: 0 0 0 2px var(--ground, #fafafa), 0 0 0 4px var(--zine-red); }
.zine-spare:focus-visible { outline: 2px solid var(--ink, #1e1e1e); outline-offset: 2px; }
.zine-door {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-top: 14px;
  padding: 18px 18px 20px;
  border: 1px solid var(--line, rgba(30, 30, 30, 0.1));
  border-radius: var(--radius, 10px);
  background: #ffffff url(../paper-grain.png) 0 0 / 256px 256px;
  background-blend-mode: multiply;
  box-shadow: 0 1px 2px rgba(29, 29, 29, 0.05), 0 12px 28px -14px rgba(29, 29, 29, 0.22);
  color: var(--ink, #1e1e1e);
}
.zine-door > div { display: grid; gap: 14px; justify-items: start; }
.zine-door-mark { height: 14px; color: var(--ink, #1e1e1e); }
.zine-door-say {
  margin: 0;
  font: 300 13.5px/1.6 var(--sans);
  letter-spacing: 0.005em;
  color: var(--ink-dim, #696969);
  text-wrap: pretty;
}
.zine-door-act {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #222222;
  border-radius: var(--radius-btn, 6px);
  background: #222222;
  font: 500 14.5px/1.2 var(--sans);
  color: #ffffff;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s;
}
.zine-door-act:hover { background: #2d2d2d; border-color: #2d2d2d; }
.zine-door-act:visited { color: #ffffff; }
.zine-door-act:focus-visible { outline: 2px solid var(--ink, #1e1e1e); outline-offset: 2px; }
.zine-door-note { margin: -4px 0 0; font: 400 13px/1.45 var(--sans); color: var(--ink-dim, #696969); }
.zine-panel {
  background: var(--app-panel, rgba(22, 22, 22, 0.97));
  border: 1px solid var(--app-on, rgba(255, 255, 255, 0.12));
  border-radius: var(--app-radius, 12px);
  box-shadow: var(--app-shadow, 0 3px 8px rgba(29, 29, 29, 0.18), 0 26px 48px rgba(29, 29, 29, 0.3));
  color: var(--app-ink, #ededed);
  padding: var(--card-pad, 12px 16px 16px);
}
.zine-panel:not(:has(*)) { display: none; }
.zine-text { width: 100%; min-width: 0; }
.zine-place.ctl-tiles { grid-template-columns: repeat(3, 32px); width: auto; justify-content: end; }
.zine-place.ctl-tiles .ctl-opt { justify-content: center; min-height: 32px; padding: 0; }
.zine-place .ctl-opt-text { display: none; }
.zine-place .bk-glyph { width: 14px; height: 14px; }
.zine-layouts.ctl-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px 0; }
.zine-layouts .ctl-opt { flex-direction: column; gap: 6px; padding: 6px; font-size: 12px; }
.zine-tile-art { display: block; width: 58px; height: auto; background: #fff; }
.zine-grounds .zine-swatch { width: 14px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px var(--line-strong); }
.zine-grounds .ctl-opt-text { display: none; }
.zine-crop[aria-pressed='true'] { background: var(--on); color: var(--ink); }
.zine:not([data-device='computer']) .zine-panel :is(.tool-side-top, .tool-side-facts, .tool-side-head) { display: none; }
.zine:not([data-device='computer']) :is(.zine-leaves, .zine-switch, .zine-panel) .ctl-opt,
.zine:not([data-device='computer']) :is(.zine-acts, .zine-bar) .btn,
.zine:not([data-device='computer']) :is(.zine-crop, .zine-door-act, .zine-paper-swap) { min-height: 44px; }
.zine:not([data-device='computer']) .zine-place.ctl-tiles { grid-template-columns: repeat(3, 44px); }
.zine:not([data-device='computer']) .zine-place.ctl-tiles .ctl-opt { min-height: 44px; }
.zine[data-device='computer']:not([data-open]) {
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: center;
}
.zine[data-device='computer']:not([data-open]) .zine-start { order: 0; }
.zine[data-device='computer']:not([data-open]) .zine-stage-col { order: 1; }
.zine[data-device='computer']:not([data-open]):has(> .zine-head) { row-gap: 30px; }
.zine[data-device='computer']:not([data-open]) .zine-head { grid-column: 1; grid-row: 1; align-self: end; }
.zine[data-device='computer']:not([data-open]):has(> .zine-head) .zine-start { grid-column: 1; grid-row: 2; align-self: start; }
.zine[data-device='computer']:not([data-open]):has(> .zine-head) .zine-stage-col { grid-column: 2; grid-row: 1 / span 2; }
.zine[data-device='computer'] .zine-head h1 { font-size: clamp(44px, 4.6vw, 64px); }
.zine[data-device='computer'] .zine-steps { display: flex; gap: 22px; }
.zine[data-device='computer'] .zine-steps li { flex-direction: row; align-items: center; gap: 9px; font-size: 15px; }
.zine[data-device='computer'] .zine-add { display: inline-flex; padding: 0 26px; }
.zine[data-device='computer'] .zine-ask-note { display: inline; margin-left: 18px; }
.zine[data-device='computer'] .zine-resume { width: auto; margin-left: 12px; }
.zine[data-device='computer']:not([data-open]) .zine-stage {
  height: clamp(320px, 38vw, 520px);
  padding: 22px 22px 34px;
  border: 2px dashed rgba(232, 73, 43, 0.55);
  border-radius: 18px;
}
.zine[data-device='computer']:not([data-open]):not([data-step='make']) .zine-drop-say {
  display: block;
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  margin: 0;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--ground, #fafafa);
  border: 1px solid rgba(232, 73, 43, 0.55);
  font: 500 14px/1 var(--sans);
  white-space: nowrap;
}
.zine[data-device='computer'][data-open] {
  padding: 0;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  gap: 0;
  grid-template-columns: 232px minmax(0, 1fr) 320px;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: 'bar bar bar' 'side stage panel';
}
.zine[data-device='computer'][data-open] .zine-bar { grid-area: bar; padding: 10px 20px; }
.zine[data-device='computer'][data-open] .zine-bar .zine-cap-paper { display: inline; }
.zine[data-device='computer'][data-open] .zine-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  padding: 16px;
  border-right: 1px solid var(--line, rgba(30, 30, 30, 0.1));
}
.zine[data-device='computer'] .zine-leaves .ctl-opt { font-size: 14px; }
.zine[data-device='computer'][data-open] .zine-stage-col {
  grid-area: stage;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px;
}
.zine[data-device='computer'][data-open] .zine-stage { flex: 1 1 auto; height: auto; min-height: 280px; }
.zine[data-device='computer'][data-open] .zine-hint { text-align: center; }
.zine[data-device='computer'][data-open] .zine-right {
  grid-area: panel;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 22px 20px;
  border-left: 1px solid var(--line, rgba(30, 30, 30, 0.1));
}
.zine[data-device='computer'][data-open] .zine-panel {
  --ground: #fafafa;
  --ink: #1e1e1e;
  --ink-dim: #535353;
  --ink-faint: #696969;
  --line: rgba(44, 44, 44, 0.13);
  --line-strong: rgba(44, 44, 44, 0.32);
  --hover: rgba(44, 44, 44, 0.05);
  --hover-2: rgba(44, 44, 44, 0.08);
  --on: #ffffff;
  --well: #ffffff;
  --accent: #1e1e1e;
  flex: 0 0 auto;
  display: grid;
  gap: 4px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
}
.zine[data-device='computer'][data-open] .zine-panel > .ctl-title { display: none; }
.zine[data-device='computer'][data-open] .zine-panel .ctl-row { border-top: 0; }
.zine[data-device='computer'][data-open] .zine-panel .ctl-seg { background: rgba(44, 44, 44, 0.06); border-color: transparent; }
.zine[data-device='computer'][data-open] .zine-panel .ctl-seg .ctl-opt.active { box-shadow: 0 1px 2px rgba(29, 29, 29, 0.14); }
.zine[data-device='computer'][data-open] .zine-panel .ctl-range:is(:hover, :focus-visible)::-webkit-slider-thumb { background: var(--ink); box-shadow: 0 0 0 3px rgba(44, 44, 44, 0.16); }
.zine[data-device='computer'][data-open] .zine-panel .ctl-tiles .ctl-opt.active { border-color: var(--ink); }
.zine[data-device='computer'][data-open] .zine-right .zine-spares { padding: 0; }
.zine .tool-side-top { display: grid; gap: 8px; }
.zine .tool-side-title {
  margin: 0;
  font: 400 32px/1.05 'Redaction 50', 'Redaction', Georgia, serif;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.zine .tool-side-say { margin: 0; font: 400 14.5px/1.5 var(--sans); color: var(--ink-dim); text-wrap: pretty; }
.zine .tool-side-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 16px;
  margin: 16px 0 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font: 400 13.5px/1.3 var(--sans);
}
.zine .tool-side-facts dt { color: var(--ink-faint); }
.zine .tool-side-facts dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.zine .tool-side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.zine .tool-side-name { margin: 0; font: 500 16px/1.2 var(--sans); color: var(--ink); }
.zine .tool-side-reset {
  height: 32px;
  padding: 0 6px;
  border: 0;
  border-radius: var(--radius-btn, 6px);
  background: none;
  font: 500 13.5px/1 var(--sans);
  color: var(--ink-dim);
  cursor: pointer;
}
.zine .tool-side-reset:hover:not(:disabled) { color: var(--ink); background: var(--hover); }
.zine .tool-side-reset:disabled { opacity: 0.38; cursor: default; }
.zine .tool-side-reset:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.zine[data-device='computer'][data-open] .zine-right .zine-door { margin-top: auto; flex: 0 0 auto; order: 2; }
.zine[data-device='computer'][data-open] .zine-right .zine-panel { order: 0; }
.zine[data-device='computer'][data-open] .zine-right :is(.zine-spares, .zine-more) { order: 1; }
.zine[data-device='computer'][data-open] .zine-right .zine-more { align-self: flex-start; margin: -8px 0 0; }
.zine[data-device='computer'] .zine-foot { display: none; }
