:root{font:16px/1.6 system-ui,"Malgun Gothic",sans-serif;color:#18372e;background:#f6f8f5}
*{box-sizing:border-box}
body{margin:0}
header,footer,main{max-width:820px;margin:auto;padding:20px}
header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe8df}
header img{display:block}
footer{color:#465c53}
a{color:#215d48}
h1,h2{line-height:1.26}
section{background:white;border:1px solid #dce5df;border-radius:12px;padding:clamp(16px,4vw,30px);margin:18px 0}
section h2{margin-top:0}
label,details{display:block;margin:12px 0}
input,select,textarea,button,.button{font:inherit}
input:not([type=checkbox]),select,textarea{display:block;width:100%;padding:9px;border:1px solid #9eb1a8;border-radius:6px;color:inherit;background:white}
textarea{min-height:95px}
button,.button{display:inline-block;padding:8px 14px;background:#225c48;color:white;border:0;border-radius:6px;cursor:pointer;text-decoration:none}
button:disabled{opacity:.65;cursor:wait}
.notice{padding:12px;background:#e9f0e8;border-radius:6px;overflow-wrap:anywhere}
.dimensions,.referral-row{display:flex;align-items:end;gap:10px}
.dimensions label,.referral-row>label{flex:1;min-width:0}
.referral-row>button{margin-bottom:12px}
dl{display:grid;grid-template-columns:auto 1fr;gap:8px 18px}
dd{margin:0}
#banner-preview img{max-width:100%;max-height:480px;object-fit:contain}
