:root{--paper:#f5f2e9;--ink:#253e36;--muted:#6f7c70;--line:#d8ddd0;--green:#295944;--accent:#e6b950;font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #d39b24;outline-offset:4px}button:disabled{cursor:wait;opacity:.6}.header{max-width:1200px;margin:auto;padding:25px 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:13px;align-items:center;text-decoration:none;font-size:17px;font-weight:bold;letter-spacing:.03em}.brand small{display:block;font-size:9px;letter-spacing:.17em;margin-top:5px;color:var(--muted)}.brand-mark{display:grid;place-items:center;border:2px solid var(--ink);border-radius:50%;width:47px;height:47px;padding:6px;font-size:16px}.brand-mark span{font-size:12px;color:#b28b36}.header-link{font-size:12px;text-underline-offset:5px}main{max-width:1120px;padding:0 24px 70px;margin:auto}.hero{display:grid;grid-template-columns:1.15fr 1fr;gap:40px;align-items:center;padding:70px 0 60px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.18em;color:var(--muted)}h1{font-size:clamp(32px,4.2vw,53px);line-height:1.5;letter-spacing:.035em;margin:15px 0 20px}.hero h1 em{font-style:normal;background:linear-gradient(transparent 65%,#e6cb7b 65%)}.hero p{font-size:14px;line-height:2;color:var(--muted)}.hero-note{display:flex;gap:14px;font-size:11px;margin-top:26px}.hero-note span{border:1px solid var(--line);padding:7px 12px;border-radius:30px}.hero-art{position:relative;min-height:310px;display:grid;place-items:center;background:radial-gradient(circle,#e7e7d7 1px,transparent 1px);background-size:13px 13px;border-radius:50%}.sample-board{width:300px;background:#fffef8;padding:20px;transform:rotate(-6deg);border:1px solid #d9dfd2;box-shadow:10px 15px 0 #e4e7da;border-radius:12px}.sample-board b{font-size:12px}.sample-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:14px}.sample-cell{display:flex;flex-direction:column;align-items:center;background:#edf1e6;border-radius:6px;padding:6px}.sample-cell img{width:65px;height:65px;object-fit:contain;image-rendering:pixelated}.sample-cell span{font-size:9px}.art-tag{position:absolute;bottom:0;right:5px;background:var(--accent);padding:10px 17px;transform:rotate(5deg);font-size:12px;font-weight:bold}.section-heading{display:flex;align-items:end;justify-content:space-between;border-top:1px solid var(--line);padding-top:28px;margin:8px 0 24px}.section-heading h2{font-size:23px;margin:7px 0 0}.section-heading>span{font-size:12px;color:var(--muted)}.maker-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:19px}.maker-card{background:#fffcf5;border:1px solid var(--line);border-radius:12px;overflow:hidden;text-decoration:none;transition:transform .18s,box-shadow .18s}.maker-card:hover{transform:translateY(-4px);box-shadow:0 8px 20px #263e3610}.card-art{height:144px;background:var(--tint);display:flex;align-items:center;justify-content:center;position:relative;gap:3px;overflow:hidden}.card-art:before{content:"";position:absolute;width:160px;height:160px;border:1px solid #ffffff80;border-radius:50%}.card-art img{position:relative;width:83px;height:100px;object-fit:contain;image-rendering:pixelated}.card-number{position:absolute;left:16px;top:13px;font-size:10px;letter-spacing:.1em;opacity:.65}.card-content{padding:19px}.card-content small{font-size:10px;color:var(--muted)}.card-content h3{font-size:16px;line-height:1.7;margin:7px 0}.card-content p{font-size:11px;color:var(--muted);line-height:1.8;min-height:38px;margin:0}.card-bottom{border-top:1px solid var(--line);margin-top:15px;padding-top:12px;font-size:11px;display:flex;justify-content:space-between}.music-mini{position:relative;background:#fffcf6;padding:15px 22px;box-shadow:6px 6px 0 #d5c4b4;font-size:13px;line-height:1.8;transform:rotate(-4deg);border-left:4px solid #b58d66}.music-mini small{font-size:9px;display:block}.howto{margin-top:44px;padding:25px 28px;border:1px solid var(--line);border-radius:12px;display:flex;gap:24px;align-items:center;font-size:12px;line-height:1.9}.howto strong{white-space:nowrap}footer{border-top:1px solid var(--line);padding:32px max(24px,calc((100vw - 1072px)/2));font-size:10px;color:var(--muted);line-height:1.9}footer p{margin:7px 0}.footer-brand{color:var(--ink);font-weight:bold;font-size:13px;margin-bottom:18px}.breadcrumb{font-size:12px;margin:30px 0 24px}.editor-heading h1{font-size:29px;margin:10px 0}.editor-heading p{color:var(--muted);font-size:13px;line-height:1.9}.editor-topline{display:flex;align-items:center;justify-content:space-between;gap:15px}.count-pill{background:#e4eadd;border-radius:25px;padding:9px 14px;font-size:12px;white-space:nowrap}.editor-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:26px 0}.slot{border:1px solid var(--line);background:#fffcf5;border-radius:10px;overflow:hidden;padding:0;text-align:left;color:var(--ink);min-width:0}.slot-label{display:block;border-left:5px solid var(--row-color);background:color-mix(in srgb,var(--row-color) 13%,#fffdf6);padding:11px 12px;font-size:12px;font-weight:bold}.slot-body{height:120px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:10px;gap:4px}.slot-body img{height:78px;width:90px;object-fit:contain;image-rendering:pixelated}.slot-body .item-name{font-size:12px;font-weight:bold;text-align:center;overflow-wrap:anywhere}.empty-plus{font-size:28px;font-weight:300;color:#96a693}.empty-text{font-size:11px;color:var(--muted)}.slot:hover{border-color:var(--row-color)}.music-slot .slot-body{height:110px;align-items:start;padding:16px}.music-slot .item-name{font-size:13px;text-align:left}.category{font-size:10px;color:var(--muted);margin-top:5px}.editor-actions{position:sticky;bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f5f2e9f2;border:1px solid var(--line);border-radius:12px;padding:14px;backdrop-filter:blur(10px);z-index:2}.primary,.secondary{border-radius:7px;padding:13px 19px;font-size:13px;font-weight:bold;border:1px solid var(--green)}.primary{background:var(--green);color:white}.secondary{background:transparent;color:var(--green)}.text-button{border:0;background:none;text-decoration:underline;text-underline-offset:4px;color:var(--muted);font-size:12px;min-height:40px}.saved-note{font-size:11px;color:var(--muted)}dialog{border:1px solid var(--line);color:var(--ink);background:var(--paper);padding:24px;box-shadow:0 12px 90px #142b3440}dialog::backdrop{background:#19332c85;backdrop-filter:blur(3px)}.sheet{width:min(760px,100%);max-height:87dvh;margin:auto auto 0;border-radius:20px 20px 0 0}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.sheet-head h2{font-size:20px;margin:8px 0}.icon-button{background:transparent;border:1px solid var(--line);width:42px;height:42px;flex-shrink:0;border-radius:50%;color:var(--ink);font-size:24px}.search-wrap{display:block;margin:20px 0 4px}.search-wrap>span{font-size:11px;font-weight:bold;display:block;margin-bottom:8px}input{width:100%;border:1px solid #b5c1af;background:#fffdf8;border-radius:8px;padding:13px;color:var(--ink);font-size:16px}.picker-meta{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);gap:8px}.choices{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;overflow:auto;max-height:52dvh;padding:3px 3px 20px}.choice{border:1px solid var(--line);border-radius:8px;background:#fffdf7;color:var(--ink);padding:8px 4px;display:flex;align-items:center;flex-direction:column;justify-content:center;min-height:120px}.choice[aria-pressed=true]{outline:2px solid var(--green);background:#e7eddd}.choice img{width:80px;height:80px;object-fit:contain;image-rendering:pixelated}.choice b{font-size:12px;overflow-wrap:anywhere}.choice small{font-size:10px;color:var(--muted);margin-top:4px}.choice.music-choice{align-items:start;min-height:90px;padding:13px;text-align:left;border-left:4px solid var(--row-color)}.choices.music-choices{grid-template-columns:repeat(2,1fr)}.no-results{grid-column:1/-1;padding:36px 12px;text-align:center;font-size:13px;color:var(--muted)}.preview-dialog{width:min(720px,94vw);max-height:92dvh;border-radius:16px}.preview-dialog>p{font-size:12px;color:var(--muted)}canvas{width:100%;height:auto;display:block;border-radius:8px}.preview-actions{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}.share-label{display:block;font-size:11px;margin-top:20px}.share-label textarea{width:100%;font-size:12px;background:#fffdf6;border:1px solid var(--line);border-radius:7px;padding:10px;margin-top:6px;color:var(--ink)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:8px;padding:12px 20px;font-size:12px;z-index:10;display:none;max-width:90vw}.loading{padding:70px 0;text-align:center}.error{padding:50px 0;line-height:2}
@media(min-width:900px){.editor-grid{grid-template-columns:repeat(4,1fr)}.editor{max-width:960px;margin:auto}}
@media(max-width:650px){.header{padding:19px 18px}.brand{font-size:13px;gap:8px}.brand small{font-size:8px}.brand-mark{width:38px;height:38px;font-size:13px}.header-link{font-size:10px}main{padding:0 18px 45px}.hero{grid-template-columns:1fr;gap:20px;padding:32px 0 39px}.hero h1{font-size:clamp(25px,7.3vw,30px);margin:12px 0}.hero p{font-size:12px}.hero-note{margin-top:18px}.hero-art{min-height:245px;max-width:340px;width:100%;margin:0 auto}.sample-board{width:255px;padding:16px}.sample-cell img{width:53px;height:53px}.art-tag{bottom:0;font-size:10px}.section-heading h2{font-size:20px}.section-heading>span{font-size:10px}.maker-grid{grid-template-columns:repeat(2,1fr);gap:12px}.card-art{height:112px}.card-art img{width:53px;height:78px}.card-content{padding:12px}.card-content h3{font-size:13px;min-height:44px;line-height:1.65}.card-content p{font-size:10px;min-height:53px}.card-content small{font-size:9px}.card-bottom{font-size:10px}.card-number{font-size:8px;left:10px;top:9px}.music-mini{padding:10px;font-size:10px}.howto{display:block;font-size:11px;padding:20px}.howto strong{display:block;margin-bottom:6px}.editor-heading h1{font-size:25px}.editor-heading p{font-size:12px}.editor-grid{grid-template-columns:repeat(2,1fr);gap:10px}.slot-label{padding:10px 8px;font-size:11px}.slot-body{height:115px}.editor-actions{bottom:8px;padding:10px;flex-wrap:wrap}.saved-note{width:100%;text-align:center;order:3;font-size:10px}.editor-actions .primary{flex:1}.sheet{padding:19px 14px}.sheet-head h2{font-size:17px}.choices{grid-template-columns:repeat(3,1fr)}.choice{min-height:110px}.choice img{width:72px;height:72px}.choice b{font-size:11px}.preview-dialog{padding:17px}.preview-actions button{width:100%}.count-pill{font-size:10px;padding:8px 10px}.eyebrow{font-size:9px}footer{padding:27px 20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Shared design tokens and collection themes */
:root{--accent:#295944;--accent-dark:#173d2d;--accent-light:#e4eadd;--surface:#fffdf7;--paper:#f5f2e9;--ink:#20372f;--muted:#526458;--line:#c9d2c6;--green:var(--accent);--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--radius-sm:8px;--radius-md:12px;--radius-lg:20px;--shadow:0 8px 24px #10251a1c;--text-sm:12px;--text-base:16px;--text-lg:20px;--text-xl:28px;--duration:180ms}
body{line-height:1.6}.header{position:sticky;top:0;z-index:5;max-width:none;padding:12px max(24px,calc((100vw - 1120px)/2));background:color-mix(in srgb,var(--paper) 92%,transparent);backdrop-filter:blur(10px)}.header-link{min-height:44px;display:flex;align-items:center}.hero{display:block;padding:48px 0 32px}.hero h1{font-size:clamp(28px,4vw,48px)}.ip-section{margin:0 0 var(--space-8)}.section-heading{border-top:0;margin:0 0 var(--space-4);padding:var(--space-6);background:var(--accent-light);border-radius:var(--radius-md);color:var(--accent-dark)}.section-heading h2{margin:0}.section-heading p{margin:4px 0 0;font-size:14px}.maker-grid{gap:var(--space-4)}.maker-card{background:var(--surface);border-radius:var(--radius-md);transition:transform var(--duration),opacity var(--duration)}.maker-card:first-child{grid-column:span 2}.maker-card:hover{transform:translateY(-3px);box-shadow:none}.maker-card:active,button:active{transform:scale(.98)}.card-content{padding:var(--space-6)}.card-content h3{font-size:18px}.card-content p{font-size:14px;min-height:0}.card-bottom{font-size:12px}.editor-actions{position:fixed;bottom:0;left:0;right:0;z-index:4;border-radius:12px 12px 0 0;background:var(--surface);backdrop-filter:none;box-shadow:var(--shadow);padding:12px max(16px,calc((100vw - 960px)/2));}.editor{padding-bottom:110px}.primary,.secondary,.text-button,.icon-button{min-height:44px}.primary{background:var(--accent);border-color:var(--accent);color:#fff}.secondary{color:var(--accent);border-color:var(--accent)}.slot,.choice,input,.share-label textarea{background:var(--surface)}.slot-label{background:var(--accent-light);color:var(--ink)}dialog::backdrop{backdrop-filter:none}.sheet{backdrop-filter:blur(10px)}button,a{transition:transform var(--duration),opacity var(--duration)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #bd6900;outline-offset:3px}.count-pill{background:var(--accent-light)}
@media(max-width:650px){.header{padding:8px 16px}.hero{padding:32px 0}.maker-grid{grid-template-columns:repeat(2,1fr)}.maker-card:first-child{grid-column:span 2}.card-content{padding:16px}.card-content h3{min-height:0;font-size:16px}.card-content p{font-size:13px;min-height:0}.editor-actions{bottom:0;flex-wrap:nowrap;padding:8px}.editor-actions .saved-note{display:none}.editor-actions .primary,.editor-actions .secondary{flex:1;padding:10px 8px;font-size:12px}.editor-actions .text-button{font-size:11px}.editor{padding-bottom:90px}}
@media(prefers-color-scheme:dark){:root{--paper:#141e19;--surface:#202d26;--ink:#f0f5ee;--muted:#c0cfc2;--line:#52665a;--accent:#a8d6b8;--accent-dark:#e2f4e5;--accent-light:#2a4032;--green:var(--accent)}.section-heading,.slot-label,.count-pill{background:var(--surface);color:var(--ink)}.primary{background:#a8d6b8;color:#13251a;border-color:#a8d6b8}.secondary{color:var(--ink);border-color:var(--ink)}.choice[aria-pressed=true]{background:#344c3a}.header{background:#141e19ee}.music-mini{color:#20372f}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
.maker-search{display:block;width:min(100%,520px);margin:2rem auto;padding:1rem;border:1px solid #bdcbbf;border-radius:12px;font:inherit}.maker-card[hidden],.ip-section[hidden]{display:none}.slot-holder{position:relative;min-width:0}.slot-holder .slot{width:100%;height:100%}.slot-clear{position:absolute;right:6px;top:6px;z-index:1;width:30px;height:30px;border:0;border-radius:50%;background:#fff;color:#334;font-size:21px;cursor:pointer;box-shadow:0 1px 5px #0003}.progress{height:5px;background:#dfe7df;border-radius:8px;overflow:hidden;margin:12px 0}.progress span{display:block;height:100%;background:var(--accent);transition:width .2s}.complete{box-shadow:0 0 0 4px #e6bd56;transform:scale(1.03)}.complete-note{color:var(--accent-dark);font-weight:700}
.jump-chips{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.5rem 0}.jump-chips a{background:#fff;border:1px solid #d7ccc3;border-radius:999px;padding:.5rem 1rem;color:inherit;text-decoration:none;font-weight:700}.diagnostic-question,.diagnostic-result{background:#fff;border-radius:20px;padding:clamp(1.5rem,5vw,3rem);margin:2rem 0;box-shadow:0 5px 22px #49352a12}.diagnostic-option{display:block;width:100%;margin:.75rem 0;text-align:left}.diagnostic-result{border-top:12px solid var(--result-color)}.diagnostic-result h2{color:var(--result-color);font-size:2rem}.diagnostic-result img{width:120px;height:120px;object-fit:contain;image-rendering:pixelated}

/* Keep controls readable and reserve space for the fixed editor actions. */
button{white-space:nowrap;min-height:40px;touch-action:manipulation}
.diagnostic-option{white-space:normal}
.slot-clear{width:40px;height:40px}
.choice b,.slot-body .item-name{white-space:normal}
.maker-search{font-size:16px}
.editor-heading h1{font-size:clamp(24px,4vw,29px);min-width:0}
.editor-topline{flex-wrap:wrap}
.editor-topline h1{flex:1 1 240px}
.editor{padding-bottom:calc(var(--editor-actions-height, 110px) + 24px)}
.complete-note{position:fixed;right:16px;bottom:calc(var(--editor-actions-height, 110px) + 12px);z-index:4;background:var(--surface);border-radius:8px;padding:4px 8px;box-shadow:var(--shadow)}
.complete-note:empty{display:none}
#toast{bottom:calc(var(--editor-actions-height, 0px) + 16px)}
@media(max-width:640px){
 .editor > .editor-actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
 .editor > .editor-actions #make-preview,.editor > .editor-actions #action-share{grid-row:1;grid-column:span 3;min-height:52px;font-size:15px;padding:8px}
 .editor > .editor-actions .secondary,.editor > .editor-actions .text-button{grid-row:2;grid-column:span 2;min-height:40px;font-size:13px;padding:4px 2px}
 .editor > .editor-actions .text-button{order:3}
 .editor > .editor-actions .secondary{order:2}
 .editor > .editor-actions #make-preview,.editor > .editor-actions #action-share{order:1}
 .editor > .editor-actions .complete{transform:none}
 .editor-topline{gap:0 12px}
 .editor-topline h1{flex-basis:100%;margin-bottom:4px}
 .editor-topline .count-pill{margin-left:auto}
}
/* V6: paper, ink and stamped accents */
:root{--paper:#f7f3ea;--ink:#1e2420;--line:#d8d2c2;--muted:#59635b;--surface:#fffdf7;--shadow:4px 4px 0 #1e2420;font-family:'Zen Kaku Gothic New',sans-serif}
h1,h2,h3{font-family:'Shippori Mincho B1',serif;font-weight:700}.brand-mark{border:0;border-radius:3px;background:#c8402a;color:white}.brand small{letter-spacing:0}.hero{display:block}.hero h1 em{background:none}.hero-note{display:block}.section-heading{background:none;border-radius:0;border-top:2px solid var(--ink);padding:20px 0 0;color:var(--ink)}.section-heading h2:first-letter{color:#c8402a}.maker-card,.slot,.choice,.diagnostic-question,.diagnostic-result,dialog,.howto{border:2px solid var(--ink);border-radius:6px;box-shadow:4px 4px 0 #1e2420}.maker-card:hover{box-shadow:4px 4px 0 #1e2420}.editor-actions{border:2px solid var(--ink);border-radius:6px 6px 0 0;box-shadow:4px 4px 0 #1e2420}.primary,.secondary,input,.maker-search,.share-label textarea,.count-pill,.jump-chips a{border-radius:6px}.jump-chips a{background:var(--surface)}.slot-clear{box-shadow:none;border:1px solid var(--ink);border-radius:6px}.diagnostic-question,.diagnostic-result{background:var(--surface)}.diagnostic-result{border-top:6px solid var(--result-color)}.complete{box-shadow:4px 4px 0 #1e2420}.header,.sheet{backdrop-filter:none}.sample-board,.art-tag,.music-mini{transform:none}.hero-art{background:none}.hero-note span{border:0}
@media(prefers-color-scheme:dark){:root{--paper:#18221c;--ink:#f1eadb;--line:#566356;--muted:#b9c6b9;--surface:#26352b;--shadow:4px 4px 0 #090f0b}.maker-card,.slot,.choice,.diagnostic-question,.diagnostic-result,dialog,.howto,.editor-actions{box-shadow:4px 4px 0 #090f0b}.section-heading{color:var(--ink)}.jump-chips a{background:var(--surface)}.slot-label{background:#334b3b;color:var(--ink)}}
.hero{display:grid;grid-template-columns:1fr 1fr;gap:40px}.hero-art{min-height:310px}.sample-board{width:min(100%,360px);border:2px solid var(--ink);border-radius:6px;box-shadow:4px 4px 0 #1e2420;background:var(--surface)}.sample-cell{background:var(--paper)}
@media(max-width:650px){.hero{grid-template-columns:1fr;gap:20px}.hero-art{min-height:0}.sample-board{width:min(100%,320px)}}
/* V6 verification fix: diagnosis result action bar — two equal columns so the primary button never collapses to one grid track */
.diagnostic .editor-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
.diagnostic .editor-actions .primary,.diagnostic .editor-actions .secondary{grid-row:auto;grid-column:auto;min-height:52px;font-size:15px;padding:8px;white-space:nowrap}
.sample-grid{grid-template-columns:repeat(6,1fr);gap:3px}.sample-cell{padding:2px;min-width:0}.sample-cell img{width:100%;height:40px}.sample-cell span{font-size:7px;white-space:nowrap}.card-art{--tint:var(--accent-light);height:125px}.card-art img{width:22%;height:100px}.type-thumb{font-family:'Shippori Mincho B1',serif;color:var(--accent-dark);font-size:36px;font-weight:bold;letter-spacing:.12em}.howto{display:block}.howto-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.howto figure{margin:0}.howto img{width:100%;border:1px solid var(--ink)}.howto figcaption{font-weight:bold}.diagnostic-result img[src*="diagnostics"],img[src*="sushi"]{image-rendering:auto}@media(max-width:650px){.sample-cell img{height:35px}.howto-steps{grid-template-columns:1fr}.card-art img{height:80px}.type-thumb{font-size:27px}}
.howto-missing{display:grid;place-items:center;min-height:150px;background:var(--paper);border:1px solid var(--ink)}

/* Keep the caption below the sample board, outside its cells. */
.hero-art{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}
.art-tag{position:static;align-self:center;transform:none}
