:root {
  color-scheme: light;
  --floral-ink: #262921;
  --floral-muted: #545c4e;
  --floral-border: #cbd1c1;
  --floral-cream: #fffaf0;
  --floral-panel: #fffefa;
  --floral-leaf: #293d2a;
  --floral-wash: #eef1e5;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--floral-cream);
  color: var(--floral-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
.skip-link { position: fixed; z-index: 101; left: 8px; top: 8px; padding: 10px; color: #242720; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
button, input, select, textarea { font: inherit; }
.floral-shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.floral-breadcrumb { padding-top: 16px; font-size: .86rem; color: var(--floral-muted); }
.floral-breadcrumb ol { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.floral-breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #737b6a; }
.floral-intro { padding-block: 20px 21px; }
.floral-intro h1 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.055em; line-height: 1.04; margin: 0; }
.floral-intro p { margin: 8px 0 0; max-width: 66ch; line-height: 1.5; }
.floral-trust { font-size: .86rem; color: var(--floral-muted); }
.floral-intro a { margin-left: .4em; font-weight: 700; text-underline-offset: 3px; }
.floral-mobile-link { display: none; }
.floral-workspace { display: grid; grid-template-columns: minmax(330px, .83fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.floral-editor, .floral-preview {
  min-width: 0; background: var(--floral-panel); border: 1px solid var(--floral-border); border-radius: 20px;
  box-shadow: 0 8px 24px #373f2510;
}
.floral-editor { padding: 20px; }
.floral-preview { overflow: hidden; position: sticky; top: 84px; scroll-margin-top: 90px; }
.floral-editor h2, .floral-preview h2 { font-size: 1.12rem; letter-spacing: -.025em; margin: 0 0 13px; }
.floral-preview h2 { margin: 0; }
.floral-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.floral-form-grid label { min-width: 0; display: grid; gap: 5px; font-size: .83rem; font-weight: 700; }
.floral-form-grid label span { line-height: 1.25; }
.floral-form-grid label.floral-check { display: flex; align-items: center; min-height: 44px; gap: 9px; }
.floral-full { grid-column: 1 / -1; }
.floral-form-grid input:not([type="checkbox"]), .floral-form-grid select, .floral-form-grid textarea, #input-view {
  width: 100%; min-width: 0; min-height: 44px; border: 1px solid #aab3a2; border-radius: 9px;
  background: #fff; color: var(--floral-ink); padding: 9px 10px; font-size: .9rem; font-weight: 500;
}
.floral-form-grid input[type="checkbox"] { width: 18px; height: 18px; flex: none; accent-color: var(--floral-leaf); }
.floral-form-grid input[type="file"] { font-size: .8rem; }
.floral-form-grid textarea { resize: vertical; line-height: 1.4; }
.floral-form-grid input[type="range"] { accent-color: var(--floral-leaf); padding-inline: 0; }
.floral-editor details, .floral-downloads, .floral-project { border-top: 1px solid #d9ded0; margin-top: 14px; padding-top: 4px; }
.floral-editor summary, .floral-downloads summary, .floral-project summary {
  display: list-item; min-height: 44px; padding-block: 12px; cursor: pointer; font-size: .88rem; font-weight: 750;
}
.floral-editor details p, .floral-support p, .floral-preview p { margin: 0; }
.floral-help, #floral-print-tip, #floral-spec { color: var(--floral-muted); font-size: .82rem; line-height: 1.4; }
.floral-help { padding: 4px 0 8px; }
.floral-preview-head {
  padding: 14px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 10px; border-bottom: 1px solid var(--floral-border);
}
.floral-preview-head label { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; }
#input-view { width: auto; }
#floral-spec { padding-top: 3px; }
.floral-stage {
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center; min-height: 295px; height: clamp(300px, 49vh, 560px);
  padding: 19px; background-color: #e7eadd;
  background-image: radial-gradient(#7b86652b 1px, transparent 1px); background-size: 12px 12px;
}
#preview {
  display: block; width: 100%; height: 100%; min-width: 0; min-height: 0;
  filter: drop-shadow(0 8px 16px #202b2033); object-fit: contain;
}
.floral-preview-foot { padding: 13px 20px 16px; }
.floral-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.floral-btn {
  display: inline-flex; justify-content: center; align-items: center; min-height: 44px; min-width: 44px;
  padding: 8px 14px; border: 1px solid #9ca595; border-radius: 10px; background: #fff; color: var(--floral-ink);
  font-size: .84rem; font-weight: 750; text-align: center; text-decoration: none; cursor: pointer;
}
.floral-btn:hover:not(:disabled) { background: var(--floral-wash); }
.floral-btn:disabled { opacity: .54; cursor: default; }
.floral-btn-primary { color: #fff; background: var(--floral-leaf); border-color: var(--floral-leaf); }
.floral-btn-primary:hover:not(:disabled) { color: #fff; background: #3f5941; }
.floral-btn-subtle { background: transparent; }
.floral-layout-actions { margin-top: 7px; }
#floral-pagination { justify-content: center; padding: 7px; background: var(--floral-wash); font-size: .84rem; font-weight: 700; }
#floral-print-tip { margin-top: 7px; }
#floral-status { min-height: 1.2em; color: var(--floral-leaf); font-size: .84rem; font-weight: 700; margin-top: 7px; }
#floral-status.has-error, #floral-safety { color: #792e22; }
#floral-safety { border: 1px solid #d7a093; background: #fff5ea; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; font-size: .87rem; font-weight: 700; }
.floral-support { max-width: 86ch; padding-block: 30px 42px; line-height: 1.55; }
.floral-support h2 { margin: 0 0 5px; font-size: 1.18rem; }
.floral-support p a { text-underline-offset: 3px; }
.floral-support h2:nth-of-type(2) { margin-top: 20px; }
.floral-support ul { padding-left: 20px; }
#floral-print-root { display: none; }
.floral-shell :focus-visible { outline: 3px solid #4a6f49; outline-offset: 3px; }
@media (max-width: 880px) {
  .floral-workspace { grid-template-columns: minmax(0, 1fr); }
  .floral-preview { position: static; }
  .floral-mobile-link { display: inline; }
}
@media (max-width: 500px) {
  .site-header .nav-links a:first-child { display: none; }
  .floral-shell { width: calc(100% - 26px); }
  .floral-intro { padding-block: 14px; }
  .floral-editor, .floral-preview { border-radius: 14px; }
  .floral-editor, .floral-preview-head, .floral-preview-foot { padding-inline: 12px; }
  .floral-stage { min-height: 240px; height: 310px; padding: 13px; }
  .floral-form-grid { gap: 9px; }
  .floral-form-grid input:not([type="checkbox"]), .floral-form-grid select, .floral-form-grid textarea, #input-view { font-size: 16px; }
}
@media (max-width: 375px) {
  .floral-form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  html, body { margin: 0 !important; padding: 0 !important; background: #fff; }
  body > * { display: none !important; }
  body > #floral-print-root { display: block !important; }
  .floral-print-page { break-after: page; overflow: hidden; }
  .floral-print-page:last-child { break-after: auto; }
  .floral-print-page canvas { display: block; width: 100%; height: 100%; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
