:root{--oshi:#c93a22;--oshi-soft:#fdf0eb;--oshi-tint:#faf6f4;--oshi-ink:#8f2414}
*{box-sizing:border-box}body{margin:0;background:var(--oshi-tint);color:#1F1D1B;font-family:"Zen Maru Gothic","Hiragino Maru Gothic ProN","Zen Kaku Gothic New",system-ui,-apple-system,sans-serif}header,main{max-width:1200px;margin:auto;padding:20px}header a{color:#C93A22}h1{font-size:clamp(1.5rem,3vw,2.2rem);margin:.5em 0}h2{font-size:1.1rem}p{line-height:1.6}small,.hint{color:#66615C}.badge{display:inline-block;background:#FDF0EB;border-radius:99px;padding:5px 12px;font-size:.8rem}main{display:grid;grid-template-columns:1fr 1fr;gap:24px}.panel{background:white;border:1px solid #e6dfd8;border-radius:16px;padding:24px;box-shadow:0 8px 25px #1F1D1B0b}label{display:block;font-weight:650;margin:16px 0 6px}input,textarea,select{font:inherit;width:100%;padding:10px;border:1px solid #bec7ce;border-radius:9px;color:#1F1D1B;background:white}input[type=checkbox]{width:auto}button,.file{font:inherit;border:1px solid #C93A22;border-radius:10px;padding:10px 14px;background:white;color:#C93A22;cursor:pointer}button.primary{background:#C93A22;color:white}button:disabled{opacity:.45;cursor:not-allowed}.row{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.row>*{flex:1}.file{display:inline-block;text-align:center}.file input{position:absolute;width:1px;height:1px;opacity:0}.tabs{display:none}canvas{width:100%;height:auto;border-radius:12px;background:#FDF0EB;touch-action:manipulation}.list{display:grid;gap:8px;margin-top:14px}.item{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #E6E0D7;padding:10px;border-radius:10px}.item button{padding:6px 9px}.item span{flex:1}.notice{color:#a52b12}.notice:empty{display:none}.footer{margin-top:20px;border-top:1px solid #eee;padding-top:12px}.mobile-actions{display:none}@media(max-width:700px){header,main{padding:16px}main{display:block;padding-bottom:95px}.panel{padding:18px}.tabs{display:flex;gap:8px;margin:12px 0}.tabs button{flex:1}.tabs button.active{background:#1F1D1B;color:white;border-color:#1F1D1B}.panel.hidden{display:none}.mobile-actions{display:flex;position:fixed;bottom:0;left:0;right:0;background:white;padding:12px 16px;border-top:1px solid #e6dfd8;z-index:2}.mobile-actions button{width:100%}}.row>*{min-width:0}.item{flex-wrap:wrap}.item select{width:auto;min-width:110px;flex:1}.item button{min-height:44px;min-width:44px}.item select{min-height:44px}
.field-error{color:#A52B12;font-size:.9rem;margin:6px 0 0}input[aria-invalid=true]{border-color:#C93A22;outline:2px solid #C93A22}
.site-brand{display:inline-flex;align-items:center;gap:.5rem;font-weight:700;text-decoration:none}.footer{max-width:1200px;margin:20px auto;padding:20px}

#history-fields{margin-top:12px}

.layout-picker{min-width:0;margin:0 0 20px;padding:0;border:0}.layout-picker legend{font-weight:700;margin-bottom:8px}.layout-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.layout-choice{position:relative;display:grid;gap:8px;min-width:0;margin:0;padding:8px;border:2px solid #e6e0d7;border-radius:10px;cursor:pointer;font-size:12px;text-align:center}.layout-choice:has(:checked){border-color:#c0341d;background:#fff7f3}.layout-choice:focus-within{outline:3px solid #266bba;outline-offset:2px}.layout-choice input{width:18px;height:18px;margin:0;accent-color:#c0341d}.layout-choice img{display:block;width:100%;height:88px;object-fit:contain;background:#f5f2ed}.profile-extras{margin-top:16px}.profile-extras summary,#history-fields summary{min-height:44px;align-content:center;cursor:pointer}.profile-empty #preview .ep-preview-scroll{max-height:160px;overflow:hidden}.profile-empty #preview canvas{max-height:160px;width:auto;max-width:100%;margin:auto;object-fit:contain}
.ep-sample-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:10px 0 16px}
.ep-sample-btn{min-height:44px;padding:8px 16px;border:1px solid #C93A22;border-radius:999px;background:#fff;color:#A52B12;font-weight:650}
.ep-sample-btn:hover{background:#fff5f2}
.ep-choice-group{border:0;margin:14px 0 10px;padding:0}
.ep-choice-group legend{font-weight:700;margin-bottom:8px;padding:0}
.ep-choices{display:flex;flex-wrap:wrap;gap:8px}
.ep-choice-btn{min-height:44px;padding:8px 14px;border:1px solid #d4cbc4;border-radius:10px;background:#fff;color:#302b32;font-weight:600;cursor:pointer}
.ep-choice-btn[aria-pressed="true"]{background:var(--oshi);color:#fff;border-color:var(--oshi)}
.ep-avatar-box{margin:14px 0 6px;padding:12px 14px;border:1.5px dashed var(--oshi);border-radius:14px;background:var(--oshi-tint)}
.ep-avatar-title{display:block;font-weight:700;margin-bottom:8px;font-size:.95rem}
.ep-avatar-actions{display:flex;flex-wrap:wrap;gap:8px}
.ep-avatar-actions button{min-height:44px;padding:8px 16px;border-radius:10px}
.ep-avatar-pick{background:#fff;color:var(--oshi-ink);border:1.5px solid var(--oshi);font-weight:700}
.ep-avatar-actions button[hidden]{display:none}
.ep-avatar-box .hint{margin:6px 0 0;min-height:0}
.ep-avatar-box .hint:empty{display:none}
.ep-avatar-frame-group{margin:10px 0 0}
.ep-style-chips{display:flex;flex-wrap:wrap;gap:7px}
.ep-style-chip{min-height:40px;padding:6px 13px;border:1.5px solid #d4cbc4;border-radius:999px;background:#fff;color:#4a4046;font-size:13px;font-weight:700;cursor:pointer;transition:all .12s ease}
.ep-style-chip[aria-pressed="true"]{border-color:var(--oshi);background:var(--oshi-soft);color:var(--oshi-ink)}
.ep-swatches{border:0;margin:16px 0 6px;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ep-swatches legend{font-weight:650;margin-bottom:6px;padding:0}
.ep-swatch{width:44px;height:44px;min-width:44px;padding:0;border:2px solid #fff;border-radius:22px;background:var(--swatch);box-shadow:0 0 0 1px #c8bfb7;cursor:pointer}
.ep-swatch[aria-pressed="true"]{box-shadow:0 0 0 2.5px #1f1d1b}
.ep-swatches .ep-swatch-other{margin:0 0 0 4px;font-weight:500;font-size:14px}
.ep-swatches input[type=color]{width:52px;min-width:52px;height:44px;padding:2px}
.ep-logo-toggle{display:inline-flex;align-items:center;gap:10px;min-height:44px;margin:12px 0 4px;font-weight:600;cursor:pointer}
.ep-logo-toggle input[type=checkbox]{width:20px;height:20px;margin:0;accent-color:#C93A22;flex:none}

