:root{--ink:#23382d;--green:#275e47;--accent:#cc5e3e;--paper:#f8f7f3;--line:#dddcd6;--muted:#566d60;--radius:14px}*{box-sizing:border-box}body{font-family:system-ui,'Hiragino Kaku Gothic ProN',Meiryo,sans-serif;margin:0;background:var(--paper);color:var(--ink);font-size:16px;line-height:1.65}a{color:var(--green)}button,input,select,textarea{font:inherit}button{cursor:pointer}.topbar{background:#fff;display:flex;align-items:center;justify-content:space-between;padding:10px max(5%,calc((100vw - 1140px)/2));gap:16px;border-bottom:1px solid var(--line);min-height:73px}.brand{text-decoration:none;color:var(--green);font-size:1.28rem;font-weight:900;white-space:nowrap}.brand span{font-weight:500}.topbar nav{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.topbar nav a,.nav-link{text-decoration:none;color:#264938;font-size:.92rem;background:none;border:0;padding:8px 0}.nav-link:hover,.topbar a:hover{text-decoration:underline}.topbar form{margin:0}.menu{display:none;background:#fff;border:1px solid var(--line);border-radius:8px;padding:6px 10px}.container{max-width:1140px;margin:0 auto;padding:26px 20px 90px}.page-title h1{font-size:clamp(1.35rem,3vw,2.3rem);margin:10px 0 24px;line-height:1.35}.panel{border:1px solid #e6e3dc;background:#fff;border-radius:var(--radius);padding:26px;margin:0 0 20px;box-shadow:0 4px 13px rgba(0,0,0,.018)}.panel h2{font-size:1.28rem;margin:0 0 16px}.panel h3{margin:0 0 9px;font-size:1.05rem}.panel p{color:#435b4d}.panel :last-child{margin-bottom:0}.btn{display:inline-block;background:var(--green);border:1px solid var(--green);color:#fff;text-decoration:none;border-radius:9px;padding:11px 17px;font-weight:700;text-align:center;min-width:120px}.btn:hover{filter:brightness(.91)}.btn.secondary{background:#fff;color:var(--green)}.btn.tiny{padding:5px 9px;min-width:0;font-size:.81rem}.btn:disabled{opacity:.42;cursor:not-allowed}.field{margin-bottom:19px;max-width:800px}.field-label{display:flex;align-items:center;gap:7px;margin:0 0 5px;font-weight:700}.help{display:inline-flex;align-items:center;justify-content:center;border:1px solid #8a998e;background:#fff;color:#275e47;font-weight:900;width:23px;height:23px;min-width:23px;border-radius:50%;font-size:.85rem}.field input,.field textarea,.field select,select{width:100%;border:1px solid #c9ccc6;border-radius:8px;background:#fff;padding:11px 12px;color:#1c3227}.field input:focus,.field textarea:focus{outline:3px solid #a0bfab}.field textarea{min-height:105px}.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.tiles .panel{margin:0}.bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:32px 0 16px}.bar h2{margin:0}.actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0}.actions select{max-width:240px}.note{font-size:.89rem;color:var(--muted)}.stats{display:flex;flex-wrap:wrap;gap:22px}.stats b{font-size:1.3rem}.hero-marketing{padding:75px 55px 90px;background:linear-gradient(125deg,#e8e8dc,#fffaf2 54%,#d6e4d8);border-radius:22px;margin-bottom:22px;min-height:380px}.hero-marketing h2{font-size:clamp(2rem,5vw,3.9rem);line-height:1.25;margin:18px 0}.hero-marketing p{max-width:600px}.eyebrow{color:#a35330;letter-spacing:.14em;text-transform:uppercase;font-weight:800}.price{font-size:1.25rem;color:var(--green)}.center{text-align:center}.editable-item{border:1px solid #ddd;border-radius:10px;padding:16px;margin-bottom:14px;background:#fcfdfb}.edit-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.design-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:25px}.design-option{border:1px solid #d6d8cf;border-radius:11px;padding:12px;display:flex;gap:9px;align-items:center;background:#fff;cursor:pointer;min-width:0;font-size:.8rem;word-break:break-word}.design-option input{width:20px;height:20px;flex-shrink:0}.palette{width:50px;height:44px;border-radius:7px;flex-shrink:0;text-align:center;line-height:44px;font-weight:900;font-size:1.4rem}table{width:100%;border-collapse:collapse}th,td{padding:10px;border-bottom:1px solid #eee;text-align:left;vertical-align:top;overflow-wrap:anywhere;font-size:.87rem}pre{white-space:pre-wrap;word-break:break-word;font:inherit}.uploaded-preview{max-width:min(100%,430px);max-height:300px;object-fit:contain;border-radius:10px}dialog{border:0;border-radius:16px;box-shadow:0 13px 45px rgba(0,0,0,.18);width:min(90vw,520px)}dialog::backdrop{background:#0b2b1f80}.dialog-pad{padding:13px}.dialog-pad h3{margin-top:0}.dialog-pad button{margin-top:12px}.field:has([type=radio]){display:flex}details{margin:10px 0;padding:12px;border:1px solid #e7e7df;border-radius:7px}.honey{display:none}@media (max-width:760px){.topbar{padding:14px 18px}.menu{display:inline-block}.topbar nav{display:none;position:absolute;top:68px;left:0;right:0;z-index:5;flex-direction:column;align-items:stretch;background:#fff;padding:15px 22px;border-bottom:1px solid var(--line)}.topbar nav.open{display:flex}.container{padding:17px 13px 75px}.panel{padding:19px}.tiles{grid-template-columns:1fr}.design-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.design-option{flex-wrap:wrap}.hero-marketing{padding:40px 24px;min-height:0}.bar{flex-direction:column;align-items:flex-start}.actions .btn{flex:1}table{display:block;overflow-x:auto}}

/* Visual template selection and reusable template management */
.design-option{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:10px;min-width:0}
.design-choice{display:flex;gap:9px;align-items:flex-start;cursor:pointer;flex:1;min-width:0}
.design-choice>span:last-child{min-width:0;display:grid;gap:2px;line-height:1.4}
.design-choice small{display:block;font-size:.75rem;color:var(--muted)}
.design-thumb{--thumb-bg:#fff;--thumb-ink:#222;--thumb-accent:#475c69;flex:0 0 90px;width:90px;height:90px;display:block;overflow:hidden;border-radius:8px;border:1px solid #e4e4e4;background:var(--thumb-bg);padding:6px;position:relative}
.design-thumb>i{position:absolute;display:block;background:var(--thumb-ink);opacity:.82;border-radius:2px}
.design-thumb .thumb-header{top:8px;left:7px;width:35px;height:5px}
.design-thumb .thumb-title{top:47px;left:8px;width:43px;height:8px}
.design-thumb .thumb-text{top:59px;left:8px;width:52px;height:4px;opacity:.3}
.design-thumb .thumb-pill{top:71px;left:8px;width:27px;height:9px;background:var(--thumb-accent)}
.design-thumb .thumb-art{top:16px;right:8px;width:32px;height:54px;border-radius:6px;background:var(--thumb-accent);opacity:.65}
.design-thumb .thumb-photo_editorial{top:16px;left:8px;right:8px;width:auto;height:25px;border-radius:1px}
.design-thumb .thumb-photo_editorial~.thumb-title{top:47px;left:26px}
.design-thumb .thumb-photo_full_bleed{top:16px;left:7px;right:7px;width:auto;height:63px;opacity:.5;border-radius:3px}
.design-thumb .thumb-photo_portrait{border-radius:40px 40px 2px 2px;width:27px;top:19px}
.design-thumb .thumb-photo_split{right:7px;top:7px;height:74px;width:42px;border-radius:0}
.template-preview-link{font-size:.85rem;align-self:flex-end}
.template-saved-card{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid #e6e3dc}
.template-saved-card>div{min-width:0}.template-saved-card strong{font-size:1.04rem}
.template-saved-card .note{margin:3px 0}
.design-option[hidden]{display:none!important}
@media(max-width:760px){.design-grid{grid-template-columns:1fr}.design-option{flex-direction:row;align-items:center;flex-wrap:wrap}.design-choice{flex:1 1 210px}.template-saved-card{align-items:flex-start}}

.template-preview-banner{background:#fff7df;border-left:5px solid #986327;padding:12px 18px;max-width:950px;margin:6px auto 30px;border-radius:6px;color:#3f3527}

.field-label:has(.field-note){display:grid;gap:.2rem}.field-note{color:var(--muted);font-size:.86rem;line-height:1.5}.panel{min-width:0;overflow-x:auto}
