:root{
  --red:#c62828;--dark:#171717;--muted:#6c5a56;--line:#ead8d4;--soft:#fff7f5;--gold:#c99a2b;
}
*{box-sizing:border-box}
body{margin:0;background:#fff;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--dark)}
.wrap{max-width:1280px;margin:0 auto;padding:24px}
.hero{display:flex;gap:18px;align-items:center;background:linear-gradient(135deg,#fff,#fff3ef);border:1px solid var(--line);border-radius:26px;padding:28px;margin-bottom:22px;box-shadow:0 12px 34px rgba(0,0,0,.05)}
.seal{width:76px;height:76px;border-radius:22px;background:var(--red);color:#fff;font-size:30px;font-weight:900;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 26px rgba(198,40,40,.25)}
.eyebrow{color:var(--red);font-weight:900;margin:0 0 6px}
h1{font-size:clamp(30px,4vw,54px);line-height:1;margin:0 0 8px}
.hero p:last-child{font-size:18px;color:var(--muted);margin:0}
.toolGrid{display:grid;grid-template-columns:410px 1fr;gap:22px;align-items:start}
.panel{border:1px solid var(--line);border-radius:24px;background:#fff;padding:20px;box-shadow:0 12px 34px rgba(0,0,0,.06)}
label{display:block;font-weight:900;margin:14px 0 6px}
input,textarea{width:100%;border:1px solid var(--line);border-radius:14px;padding:12px;font-size:16px}
textarea{min-height:104px;resize:vertical}
button{border:1px solid var(--line);background:#fff;border-radius:14px;padding:12px 14px;font-weight:900;cursor:pointer;margin:12px 8px 0 0}
button:hover{transform:translateY(-1px)}
.primary{background:var(--red);color:#fff;border-color:var(--red)}
.helpBox,.warning{margin-top:14px;background:var(--soft);border:1px solid var(--line);border-radius:16px;padding:12px;color:var(--muted);font-size:14px}
.warning{background:#fffaf0;border-color:#efdca7}
summary{font-weight:900;color:var(--red);cursor:pointer;margin-top:14px}
.previewHeader{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}
.previewHeader h2{margin:0}.previewHeader p{margin:4px 0 0;color:var(--muted)}
.status{background:#eaf8ef;color:#18703a;border:1px solid #c8ecd3;border-radius:999px;padding:7px 12px;font-weight:800}
canvas{width:100%;max-width:720px;display:block;margin:0 auto 20px;border-radius:22px;border:1px solid var(--line);box-shadow:0 16px 40px rgba(0,0,0,.11)}
#promptOutput{min-height:240px}
@media(max-width:960px){.toolGrid{grid-template-columns:1fr}.hero{align-items:flex-start}.seal{flex:0 0 76px}}
