body.printhab{background:#f3f4f7;color:#253337}.brand-symbol{width:36px;height:36px;color:#315c4d}.brand-symbol svg{display:block;width:100%;height:100%}.brand{font-size:20px;letter-spacing:-.05em}.brand span{color:#315c4d}.toolbar{margin-left:auto;display:flex;gap:12px}.toolbar label{font-size:12px;font-weight:650;color:#50635b;display:flex;gap:6px;align-items:center}.toolbar select{font:inherit;color:#253337;background:#fff;border:1px solid #ccd7d0;border-radius:7px;min-height:38px;padding:0 6px}.printhab .patterns span span{display:inline;padding:0;min-height:0;border:0;background:transparent;color:inherit;font-size:inherit}.printhab .actions{flex-wrap:wrap}.printhab .actions button{min-height:44px}.printhab .actions button:nth-child(3){background:#315c4d;color:#fff}.printhab .preview-footer{justify-content:flex-end}
html[data-theme="dark"]{color-scheme:dark}html[data-theme="dark"] body.printhab{background:#161c20;color:#e6eeea}html[data-theme="dark"] .bar,html[data-theme="dark"] .panel,html[data-theme="dark"] .preview-panel{background:#222b2c;border-color:#485b54}html[data-theme="dark"] .brand-symbol,html[data-theme="dark"] .brand span,html[data-theme="dark"] .eyebrow{color:#aad4bc}html[data-theme="dark"] .heading p:last-child,html[data-theme="dark"] .hint,html[data-theme="dark"] .tip,html[data-theme="dark"] .status,html[data-theme="dark"] .foot,html[data-theme="dark"] .preview-header,html[data-theme="dark"] .toolbar label{color:#c4d1c9}html[data-theme="dark"] .preview-header strong,html[data-theme="dark"] .reset,html[data-theme="dark"] .slider output{color:#e6eeea}html[data-theme="dark"] .stage{background:#35413f}html[data-theme="dark"] .patterns span,html[data-theme="dark"] .colors input,html[data-theme="dark"] .toolbar select{background:#293532;color:#e6eeea;border-color:#657d70}html[data-theme="dark"] .patterns span span{background:transparent;border:0}html[data-theme="dark"] .patterns input:checked+span{background:#8fc4a5;border-color:#8fc4a5;color:#14251b}html[data-theme="dark"] .actions button,html[data-theme="dark"] .actions button:nth-child(3){background:#8fc4a5;border-color:#8fc4a5;color:#14251b}html[data-theme="dark"] .actions button:nth-child(2){background:transparent;color:#d0ebd9}
@media(max-width:600px){.bar{height:auto;min-height:70px;flex-wrap:wrap;padding:12px 16px}.toolbar{width:100%;margin-left:0;justify-content:space-between}.toolbar label{flex:1}.toolbar select{max-width:145px}.printhab .actions{width:100%}.printhab .actions button{flex:1 1 115px}}
@media print{@page{margin:10mm}html,body.printhab{background:#fff!important}.bar,.heading,.panel,.preview-header,.preview-footer,.status,.foot{display:none!important}.page,.workspace,.preview-panel,.stage{display:block!important;margin:0!important;padding:0!important;border:0!important;background:#fff!important;box-shadow:none!important;min-height:0!important}.stage svg{display:block;width:180mm;height:180mm;max-width:100%;box-shadow:none;print-color-adjust:exact;-webkit-print-color-adjust:exact}}
.field{display:grid;gap:8px;font-size:13px;font-weight:650;margin-bottom:14px}.field select,.field textarea{width:100%;padding:10px;border:1px solid #cbd6cf;border-radius:7px;background:#fff;color:#253337;font:inherit}.field textarea{resize:vertical;min-height:72px}.card-controls{border-top:1px solid #dfe6df;padding-top:20px}.card-controls .colors{margin:12px 0 18px}html[data-theme="dark"] .field select,html[data-theme="dark"] .field textarea{background:#293532;color:#e6eeea;border-color:#657d70}@media print{.stage svg{height:auto;max-height:270mm}body[data-paper-size="a5"] .stage svg{width:128mm}body[data-paper-size="square"] .stage svg{width:180mm}}
.snap-option{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:700;min-height:34px}.snap-option input{width:18px;height:18px;accent-color:#315c4d}.snap-help{font-size:12px;line-height:1.45;color:#5e7167;margin:0 0 16px}html[data-theme="dark"] .snap-help{color:#c4d1c9}.printhab .actions button{border-radius:999px;box-shadow:0 3px 0 #1e4034;transition:transform .15s ease,box-shadow .15s ease}.printhab .actions button:hover{transform:translateY(-2px);box-shadow:0 5px 0 #1e4034}.printhab .actions button:active{transform:translateY(2px);box-shadow:0 1px 0 #1e4034}@media(prefers-reduced-motion:reduce){.printhab .actions button{transition:none}}

.selection-actions{display:flex;gap:8px;margin:6px 0 9px}.selection-actions button{flex:1;min-height:42px;padding:8px;border:1px solid #6d887a;border-radius:10px;background:transparent;color:inherit;font-weight:650;font-size:12px}.selection-actions button:hover{background:#dce9df}html[data-theme="dark"] .selection-actions button:hover{background:#3a5146}#layout-warning{color:#a03920;font-weight:700}html[data-theme="dark"] #layout-warning{color:#ffb5a7}

/* Keep the sheet visible while the settings column scrolls on desktop. */
@media screen and (min-width:851px) and (min-height:500px){
  .printhab .preview-panel{position:sticky;top:12px}
  .printhab .stage{min-height:0;padding:16px}
  .printhab .stage svg{width:min(100%,560px);height:auto;max-height:calc(100vh - 230px)}
}

.printhab .foot {
  flex-wrap: wrap;
  gap: 6px 24px;
  line-height: 1.5;
}
@media print {
  @page sheet-a4 { size: A4 portrait; }
  @page sheet-a5 { size: A5 portrait; }
  @page sheet-square { size: 200mm 200mm; }
  body[data-paper-size="a4"] { page: sheet-a4; }
  body[data-paper-size="a5"] { page: sheet-a5; }
  body[data-paper-size="square"] { page: sheet-square; }
}
@media screen {
  .site-footer { align-items: center; flex-wrap: wrap; gap: 1.5rem; padding: 2rem 4vw; background: #19392f; color: #f5faf6; font-size: .95rem; }
  .footer-copy { display: grid; gap: .3rem; }
  .footer-copy strong { font-size: 1.35rem; }
  .site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
  .site-footer a, .info-link { color: inherit; text-underline-offset: .25em; }
  .site-footer a { padding-block: .5rem; }
  .info-link { font-size: .875rem; align-self: center; }
  @media (max-width: 600px) { .bar, .toolbar { flex-wrap: wrap; } }
}
.notice { max-width: 44rem; margin: auto; padding: 2rem 1rem 5rem; color: #21382e; background: white; font: 1.05rem/1.6 system-ui, sans-serif; }
.notice a { color: #24644d; }
.notice h2 { margin-top: 2rem; }
