.stencil-dialog{width:min(1200px,96vw);max-width:96vw;max-height:94dvh;padding:0;border:1px solid #d6dfd5;border-radius:18px;color:#203e32;background:#f8faf5;box-shadow:0 24px 80px #17322940}.stencil-dialog::backdrop{background:#162d2866}.stencil-heading{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid #dde4d8}.stencil-heading h2{margin:4px 0;font-size:20px}.stencil-heading small{font-size:10px;letter-spacing:.16em;color:#61776b}.stencil-layout{display:grid;grid-template-columns:290px minmax(0,1fr);min-height:400px;height:min(63dvh,650px)}.stencil-settings{overflow:auto;padding:18px;border-right:1px solid #dde4d8}.stencil-patterns{margin:0;padding:0;border:0;display:grid;grid-template-columns:repeat(2,1fr);gap:6px}.stencil-patterns legend{font-weight:700;padding-bottom:10px}.stencil-patterns button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px 3px;font-size:11px;border:1px solid #d6dfd5;border-radius:10px;min-height:70px;background:white}.stencil-patterns svg{width:110px;max-width:100%;height:36px;fill:#395745}.stencil-swatch{height:30px;display:grid;place-items:center}.stencil-dialog button[aria-pressed=true]{background:#e2efe2;border-color:#3d7e5f;box-shadow:inset 0 0 0 1px #3d7e5f}.stencil-help{font-size:12px;line-height:1.7;color:#607169}.stencil-range{display:block;margin:19px 0}.stencil-range span{display:flex;justify-content:space-between;gap:8px;font-size:12px}.stencil-range output{font-variant-numeric:tabular-nums;color:#285d43;font-weight:700;white-space:nowrap}.stencil-range input{width:100%;min-height:32px;margin:4px 0;accent-color:#317552}.stencil-select{display:grid;font-size:12px;gap:7px;margin:16px 0}.stencil-select select{width:100%;padding:10px}.stencil-settings details{margin-top:18px;padding-top:14px;border-top:1px solid #dce5da}.stencil-settings summary{cursor:pointer;font-size:13px}.stencil-reset{margin-top:20px;font-size:12px}.stencil-preview{min-width:0;min-height:0;display:flex;flex-direction:column;padding:14px;background:radial-gradient(ellipse at center,#fff,#eef2e9)}.stencil-viewbar{display:flex;gap:5px;flex-wrap:wrap}.stencil-viewbar button{font-size:12px;padding:8px 10px}.stencil-preview canvas{display:block;width:100%;flex:1;min-height:160px;touch-action:none}.stencil-preview p{font-size:12px;margin:7px 0}.stencil-preview small{font-size:11px;color:#68786c;line-height:1.7}.stencil-footer{padding:14px 22px;border-top:1px solid #dde4d8;display:grid;grid-template-columns:1fr auto;gap:8px 18px;align-items:center;background:white}.stencil-footer p{font-size:13px;margin:0;line-height:1.6}.stencil-footer small{grid-column:1/-1;font-size:11px;color:#68786c}.stencil-footer [data-state=error]{color:#a0451c}.stencil-footer .primary{padding:12px 20px;background:#236f50;color:white;border-color:#236f50}.stencil-dialog button:disabled{opacity:.5;cursor:wait}.stencil-dialog button:focus-visible,.stencil-dialog input:focus-visible,.stencil-dialog select:focus-visible{outline:3px solid #da951a;outline-offset:2px}.stencil-open{display:block;width:100%;margin:8px 0 12px}
@media(max-width:700px){.stencil-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.stencil-heading{padding:12px 14px}.stencil-heading h2{font-size:17px}.stencil-layout{height:auto;min-height:0;display:flex;flex-direction:column}.stencil-preview{order:-1;height:36dvh;min-height:250px;position:sticky;top:0;z-index:1;border-bottom:1px solid #d6dfd5}.stencil-preview canvas{min-height:100px}.stencil-preview small{display:none}.stencil-settings{overflow:visible;border:0;padding:16px}.stencil-patterns button{font-size:12px}.stencil-footer{grid-template-columns:1fr;padding:14px;position:sticky;bottom:0;z-index:2;box-shadow:0 -4px 18px #17322910}.stencil-footer small{font-size:10px}.stencil-dialog button{min-height:40px}}

.stencil-shield{margin:20px 0;padding:14px 10px 0;border:1px solid #d6dfd5;border-radius:10px;background:#f0f5ee}.stencil-shield legend{font-size:13px;font-weight:700;padding:0 5px}.stencil-shield .stencil-range{margin:8px 0 15px}
