:root{color-scheme:light;--paper:#f4f2ed;--surface:#fffefa;--ink:#272a2a;--muted:#696e6b;--line:#dcded5;--accent:#773d49;--accent-soft:#f4e9e9;--green:#3e6b50;--radius:14px;font-family:"Segoe UI","Yu Gothic UI","Meiryo",sans-serif;font-size:14px}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);line-height:1.65}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #aa6c7e;outline-offset:3px}[hidden]{display:none!important}.topbar{height:74px;padding:0 5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:var(--surface)}.brand{display:flex;align-items:center;gap:15px;text-decoration:none;font-weight:650;letter-spacing:.01em}.brand-symbol{display:grid;place-items:center;width:43px;height:36px;font-size:12px;letter-spacing:.08em;background:var(--ink);color:white;border-radius:7px}.local-label{font-size:12px;color:var(--muted)}.local-label>span{color:var(--green);margin-right:5px;font-size:10px}.page{max-width:1400px;margin:auto;padding:44px 48px 18px}.intro{display:grid;grid-template-columns:1fr 330px;align-items:center;gap:48px;margin-bottom:38px}.eyebrow{color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.14em;display:block;margin:0 0 12px}h1{font-size:36px;line-height:1.38;letter-spacing:.025em;font-weight:600;margin:0 0 17px}h2{font-size:17px;line-height:1.5;font-weight:650;margin:0}.lead{color:var(--muted);font-size:13px;max-width:590px;margin:0 0 18px}.tags{display:flex;flex-wrap:wrap;gap:7px}.tags span{font-size:11px;color:#535854;padding:4px 10px;border:1px solid #ced2c7;border-radius:5px;background:transparent}.reference{display:flex;align-items:center;gap:18px;padding:14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.reference img{width:100px;height:167px;object-fit:contain;mix-blend-mode:multiply}.reference .eyebrow{font-size:9px;letter-spacing:.09em;margin-bottom:6px}.reference h2{font-size:18px}.reference p{font-size:12px;color:var(--muted);margin:8px 0 13px}.text-button{padding:5px 0;border:0;background:transparent;color:var(--accent);font-size:12px;font-weight:600;white-space:nowrap}.text-button:hover{text-decoration:underline}.text-button.quiet{color:var(--muted);font-weight:400}.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:26px;align-items:start}.editor{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);min-width:0;overflow:hidden}.editor-head{padding:0 26px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:12px;min-height:65px}.tabs{display:flex;gap:22px;align-self:stretch}.tabs button{border:0;border-bottom:2px solid transparent;margin-bottom:-1px;padding:18px 0;background:transparent;color:var(--muted);font-size:13px;white-space:nowrap}.tabs button[aria-selected=true]{color:var(--ink);font-weight:650;border-bottom-color:var(--accent)}.tabs button span{font-size:12px;color:#91968d;margin-left:3px}.form-section{padding:27px 26px 23px;border-bottom:1px solid #e8e9e1}.section-heading{display:flex;align-items:center;gap:10px;margin-bottom:18px}.section-heading>span:first-child{font-family:Consolas,monospace;font-size:11px;color:#969a90}.section-heading h2{font-size:14px}.section-note{font-size:11px;color:var(--muted);margin-left:auto}.field{display:block;font-size:12px;font-weight:600;margin-bottom:15px}.field:last-child{margin-bottom:0}.optional{font-size:10px;color:var(--muted);font-weight:400;margin-left:6px}.required{font-size:9px;color:var(--accent);font-weight:500;margin-left:6px}.field input,.field textarea,.field select{display:block;width:100%;margin-top:7px;border:1px solid #d9dcd3;background:#fafaf7;border-radius:7px;padding:10px 12px;color:var(--ink);font-size:13px;font-weight:400;line-height:1.65;transition:border-color .15s,background .15s}.field input:hover,.field textarea:hover,.field select:hover{border-color:#a9aea2}.field input:focus,.field textarea:focus,.field select:focus{background:#fff;border-color:#8d646d}.field textarea{resize:vertical;min-height:74px}.field select{min-height:43px;text-overflow:ellipsis}.field input::placeholder,.field textarea::placeholder{color:#979b92;font-size:12px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:15px}.field-grid .field{margin:0}.help{display:block;color:var(--muted);font-weight:400;font-size:11px;margin-top:6px}.settings-actions{padding:20px 26px 4px;display:flex;gap:9px;flex-wrap:wrap;align-items:center}.settings-actions .text-button{margin-left:auto}.button{border:1px solid #d5d9ce;background:var(--surface);color:var(--ink);padding:10px 15px;border-radius:7px;font-size:12px;font-weight:600;line-height:1.4;min-height:39px;white-space:nowrap}.button:hover:not(:disabled){border-color:#a0a69a;background:#f4f5ef}.button.primary{border-color:var(--accent);background:var(--accent);color:white}.button.primary:hover:not(:disabled){background:#67323d;border-color:#67323d}.button.primary span{margin-left:12px}.storage-status{font-size:10px;color:var(--muted);padding:0 26px;margin:10px 0 23px}.preview{position:sticky;top:20px;min-width:0}.preview-inner{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px 24px 12px}.preview-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.preview-heading .eyebrow{font-size:9px;margin-bottom:5px}.preview-heading h2{font-size:17px}.count{font-size:11px;color:var(--muted);background:var(--paper);padding:4px 9px;border-radius:4px;font-variant-numeric:tabular-nums}.preview-actions{display:flex;gap:9px;margin-bottom:16px}.preview-actions .primary{flex:1}#prompt-output{display:block;width:100%;height:calc(100vh - 248px);min-height:460px;max-height:1100px;resize:vertical;border:0;border-radius:8px;background:#f1f2ec;padding:22px;color:#343b34;font-size:12px;line-height:1.95;tab-size:2;font-family:"Yu Gothic UI","Meiryo",sans-serif;overflow-wrap:anywhere}#prompt-output::selection{background:#d7bfc5}#prompt-output::placeholder{color:#7d8378}.preview-footer{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:9px;color:var(--muted);padding-top:13px}.status-dot{display:inline-block;width:5px;height:5px;background:var(--green);border-radius:50%;vertical-align:middle;margin-right:4px}.errors{background:#faeceb;color:#913d40;padding:11px 13px;font-size:12px;border-radius:7px;margin-bottom:13px;white-space:pre-line}.rules-intro{padding:28px 26px 18px}.rules-intro .eyebrow{font-size:10px}.rules-intro h2{font-size:17px}.rules-intro p{font-size:12px;color:var(--muted);margin-bottom:0}.rule-group{padding:20px 26px;border-top:1px solid var(--line)}.rule-group h3{font-size:13px;margin:0 0 12px}.rule-group pre{font-family:inherit;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.85;color:#596050;margin:0}.rules-footnote{font-size:11px;color:var(--muted);margin:0 26px 24px;padding-top:20px;border-top:1px solid var(--line)}.page-footer{display:flex;justify-content:space-between;gap:16px;font-size:10px;color:var(--muted);padding:28px 0 4px}.page-footer span:first-child{font-weight:600}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:12px 20px;border-radius:8px;background:#2d3832;color:#fff;box-shadow:0 5px 24px #0002;font-size:13px;max-width:calc(100vw - 32px);z-index:10}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1450px){.page{padding-top:54px}.intro{margin-bottom:44px}}
.eye-reference-panel{display:flex;align-items:flex-start;gap:14px;padding:13px;border:1px solid var(--line);border-radius:8px;margin-bottom:16px;background:#fafaf7}.eye-reference-preview{display:block;flex:0 0 94px;max-width:100%;border:1px solid var(--line);border-radius:5px;overflow:hidden;background:white}.eye-reference-preview img{display:block;width:100%;height:86px;object-fit:contain}.eye-reference-content{min-width:0}.eye-reference-content h3{font-size:12px;margin:0 0 5px}.eye-reference-content p{font-size:11px;color:var(--muted);margin:0;overflow-wrap:anywhere}.eye-reference-actions{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:5px}.eye-reference-actions a{display:inline-flex;align-items:center;font-size:11px;white-space:normal;overflow-wrap:anywhere}.rules-intro .eyebrow{overflow-wrap:anywhere}
@media(max-width:1050px){.page{padding:28px 24px 16px}.intro{grid-template-columns:1fr 290px;gap:25px}h1{font-size:30px}.workspace{gap:18px;grid-template-columns:minmax(0,1fr) minmax(0,.95fr)}.editor-head,.form-section{padding-left:20px;padding-right:20px}.preview-inner{padding:20px 18px 12px}.field-grid{grid-template-columns:1fr;gap:15px}.optional{display:block;margin-left:0;margin-top:2px}.reference{gap:12px;padding:12px}.reference img{width:86px;height:154px}.editor-head{flex-wrap:wrap;gap:0 12px}.editor-head>.quiet{margin:0 0 12px}}
@media(max-width:760px){.topbar{height:62px;padding:0 20px}.brand{gap:10px;font-size:12px}.brand-symbol{width:35px;height:32px;font-size:10px}.local-label{font-size:10px}.page{padding:25px 18px 16px}.intro{grid-template-columns:1fr;gap:22px;margin-bottom:23px}h1{font-size:31px}.reference{max-width:none;padding:12px 20px}.reference img{width:70px;height:110px}.reference p{margin:5px 0;display:inline;font-size:11px}.reference p br{display:none}.reference .text-button{display:block;margin-top:7px}.workspace{grid-template-columns:1fr;gap:20px}.preview{position:static}.editor-head{flex-wrap:nowrap;min-height:60px}.editor-head>.quiet{margin:0}.field-grid{grid-template-columns:1fr 1fr}.optional{display:inline;margin-left:5px}.preview-inner{padding:22px 18px 14px}#prompt-output{height:540px;min-height:300px}.page-footer{flex-direction:column;gap:4px}.field input,.field textarea,.field select{font-size:16px}.field input::placeholder,.field textarea::placeholder{font-size:13px}.button{min-height:44px}.text-button{min-height:36px}.reference .text-button{min-height:30px}}
@media(max-width:420px){.field-grid{grid-template-columns:1fr}.page{padding-left:12px;padding-right:12px}.editor-head{padding-left:16px;padding-right:16px}.form-section{padding-left:18px;padding-right:18px}.tabs{gap:16px}.tabs button{font-size:12px}.editor-head>.quiet{font-size:11px}.optional{display:block;margin-left:0}.local-label{display:none}.settings-actions{padding-left:18px;padding-right:18px}.preview-actions{gap:7px}.button{padding-left:12px;padding-right:12px}.button.primary span{margin-left:3px}}
.face-reference-section{margin-top:28px;padding:26px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.face-reference-heading h2{font-size:19px;margin:0 0 10px}.face-reference-heading p{font-size:13px;color:var(--muted);max-width:780px}.face-reference-heading .help{font-size:12px}
.face-reference-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:900px;margin:22px auto}
.face-reference-grid figure{margin:0;min-width:0;border:1px solid var(--line);border-radius:8px;background:white;overflow:hidden}.face-reference-grid a{display:block}.face-reference-grid a:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}.face-reference-grid img{display:block;width:100%;height:auto;aspect-ratio:1230/1278;object-fit:contain}.face-reference-grid figcaption{text-align:center;padding:8px;font-size:12px;color:var(--muted)}
.face-reference-note{font-size:12px;color:var(--muted);margin:0;max-width:900px}
@media(max-width:420px){.face-reference-section{padding:16px 10px}.face-reference-grid{gap:6px}.face-reference-grid figcaption{font-size:10px;padding:5px 1px}.face-reference-heading h2{font-size:17px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:420px){.eye-reference-panel{flex-direction:column;gap:10px}.eye-reference-preview{flex-basis:auto;width:110px}.eye-reference-actions{gap:2px 12px}}
