.z-workshop {
  --ink: #20241e;
  --muted: #50574e;
  --line: #d9d7ca;
  --accent: #e4dceb;
  --accent-dark: #302840;
  --page: #faf8f1;
  --paper: #fffefa;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.55 system-ui, sans-serif;
}
.z-moon { --accent: #dadeee; --accent-dark: #212c4f; }
.z-flowers { --accent: #e6eadb; --accent-dark: #30402d; }
.z-chinese { --accent: #f0dfd4; --accent-dark: #643329; }
.z-workshop *, .z-workshop *::before, .z-workshop *::after { box-sizing: border-box; }
.z-workshop [hidden] { display: none !important; }
.z-workshop a { color: inherit; }
.z-workshop :focus-visible { outline: 3px solid #305fb2; outline-offset: 3px; }
.z-workshop .skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-150%); background: white; padding: 10px 15px; z-index: 110; }
.z-workshop .skip-link:focus { transform: none; }
.z-shell, .z-workshop .site-header-inner { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.z-shell { padding: 38px 0 64px; scroll-margin-top: 96px; }
.z-intro { max-width: 740px; margin-bottom: 30px; }
.z-intro h1 { margin: 0 0 12px; font-size: clamp(2.15rem, 5.2vw, 3.7rem); line-height: 1.05; letter-spacing: -.062em; }
.z-intro p { margin: 0 0 8px; font-size: 1.075rem; color: var(--muted); }
.z-intro .z-privacy { margin-bottom: 0; font-size: .9rem; }
.z-workspace { display: grid; grid-template-columns: minmax(280px, 385px) minmax(0, 1fr); gap: 24px; align-items: start; }
.z-panel, .z-preview, .z-details { padding: 20px; border: 1px solid var(--line); background: var(--paper); border-radius: 16px; }
.z-panel h2, .z-preview h2, .z-details h2 { margin: 0 0 12px; font-size: 1.27rem; letter-spacing: -.025em; line-height: 1.2; }
.z-panel hr { border: 0; border-top: 1px solid var(--line); margin: 17px 0; }
.z-field { min-width: 0; margin-bottom: 14px; }
.z-field label, .z-field > span:first-child { display: block; margin-bottom: 5px; font-size: .9rem; font-weight: 700; }
.z-panel input:not([type='checkbox']), .z-panel select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 9px;
  border: 1px solid #b5bbae;
  border-radius: 7px;
  font: inherit;
  color: var(--ink);
  background: white;
}
.z-panel input::-webkit-date-and-time-value { text-align: left; }
.z-panel input[type='checkbox'] { accent-color: var(--accent-dark); width: 18px; height: 18px; }
.z-help, .z-status, .z-actions + p { margin: 5px 0 0; font-size: .87rem; color: var(--muted); }
.z-status:empty { display: none; }
.z-status[data-error='true'] { color: #84291e; }
.z-check { display: flex; align-items: center; gap: 8px; font-size: .9rem; padding-bottom: 10px; }
.z-fields-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.z-date-fields { grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); }
.z-part { min-width: 0; padding: 12px; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 9px; }
.z-part legend { padding-inline: 5px; font-size: .86rem; font-weight: 800; }
.z-part .z-field:last-child { margin-bottom: 0; }
.z-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.z-button {
  display: inline-flex;
  min-height: 44px;
  padding: 7px 13px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid var(--accent-dark);
  background: var(--accent-dark);
  color: white;
  text-decoration: none;
  font: 700 .91rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}
.z-button:hover { filter: brightness(1.18); }
.z-button.secondary { color: var(--accent-dark); background: var(--paper); }
.z-button.secondary:hover { background: var(--accent); filter: none; }
.z-button:disabled { opacity: .5; cursor: default; filter: none; }
.z-link-button { display: block; min-height: 36px; padding: 4px 0; border: 0; color: var(--accent-dark); background: none; font: 650 .86rem system-ui, sans-serif; text-decoration: underline; cursor: pointer; }
.z-preview { min-width: 0; }
.z-stage { display: grid; place-items: center; min-height: 200px; padding: clamp(10px, 2.8vw, 28px); border-radius: 11px; background: var(--accent); }
.z-stage canvas { display: block; width: 100%; height: auto; max-width: var(--z-preview-width, 460px); box-shadow: 0 3px 16px #24232030; }
.z-big .z-stage { --z-preview-width: 610px; }
.z-stage p { margin: 0; color: var(--accent-dark); text-align: center; }
.z-results { display: grid; gap: 8px; padding: 0; margin: 10px 0 0; list-style: none; }
.z-results li { padding: 8px 9px; border: 1px solid var(--line); border-radius: 6px; overflow-wrap: anywhere; }
.z-results strong, .z-results span { display: block; }
.z-results strong { font-size: .93rem; }
.z-results span { color: var(--muted); font-size: .84rem; }
.z-copy-note { width: 100%; min-height: 44px; padding: 8px; margin-top: 6px; font: inherit; }
.z-places { position: relative; }
.z-suggestions { position: absolute; z-index: 4; inset: 100% 0 auto; max-height: 260px; overflow-y: auto; list-style: none; padding: 3px; margin: 3px 0 0; border: 1px solid #a8afa2; border-radius: 7px; background: white; box-shadow: 0 9px 18px #1c251c16; }
.z-suggestions button { display: block; width: 100%; min-height: 44px; border: 0; background: transparent; padding: 7px; text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.z-suggestions button:hover, .z-suggestions [aria-selected='true'] { background: var(--accent); }
.z-details { margin-top: 26px; }
.z-details p { max-width: 74ch; color: var(--muted); margin: 8px 0; }
.z-details details { padding-block: 10px; border-bottom: 1px solid var(--line); }
.z-details details:last-child { border: 0; }
.z-details summary { cursor: pointer; font-weight: 700; }
.z-print { display: none; }

@media (max-width: 760px) {
  .z-workspace { grid-template-columns: 1fr; gap: 16px; }
  .z-shell { padding-block: 25px 40px; }
}
@media (max-width: 500px) {
  .z-shell, .z-workshop .site-header-inner { width: calc(100% - 24px); }
  .z-workshop .nav-links { gap: 12px; }
  .z-panel, .z-preview, .z-details { padding: 13px; border-radius: 12px; }
  .z-intro { margin-bottom: 20px; }
}
@media (max-width: 375px) {
  .z-workshop .nav-links a:first-child { display: none; }
}

@page { size: letter portrait; margin: 0; }
@media print {
  html:has(.z-workshop), .z-workshop { background: white; }
  .z-workshop:has(.z-print) > :not(.z-print) { display: none !important; }
  .z-workshop .z-print { display: flex; width: 8.5in; min-height: 10.98in; margin: 0; justify-content: center; align-items: center; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .z-print img { display: block; width: var(--z-print-width); height: var(--z-print-height); flex: none; break-inside: avoid; }
}
