.creation-methods{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 20px}
.creation-methods h2{flex:0 0 100%;font-size:15px;margin:0;line-height:2}
.creation-methods .button{flex:1;min-height:52px;white-space:normal;border:1px solid var(--line);line-height:2;color:var(--ink)}
.creation-methods [aria-pressed=true]{background:#edf3fc;border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
.creation-methods [aria-pressed=true]:before{content:'✓';color:var(--blue)}
.phrase-start{padding:18px;background:#f5f8fd;border-radius:16px;margin:18px 0}
.phrase-start h2{font-size:15px;line-height:2;margin:0 0 12px}
.phrase-start .button{color:var(--ink);border:1px solid var(--blue);white-space:normal}
.preview-characters{margin:16px 38px;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink)}
.preview-characters h3{font-size:14px;line-height:2;margin:0 0 12px}
#previewCharacterButtons{display:flex;flex-wrap:wrap;gap:8px;white-space:pre-wrap;max-height:300px;overflow:auto}
.preview-character{display:grid;place-items:center;width:60px;height:60px;padding:4px;border:1px solid #9cb6d8;border-radius:9px;color:var(--ink);background:#f4f8fe;font:28px var(--font)}
.preview-character.is-missing{border-style:dashed;background:#fff5e9;color:#785120}
.preview-character img{width:100%;height:100%;object-fit:contain}
.export-characters{margin:16px 0;padding:12px;border:1px solid var(--line);border-radius:10px;font-size:12px;line-height:2}
.export-characters p{max-height:130px;overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap;font-size:20px}
#exportProgress{font-size:13px;line-height:2;color:var(--blue)}
.photo-example{grid-column:1/-1;display:flex;gap:18px;align-items:center;margin:0;padding:16px;background:#f5f8fd;border-radius:12px}
.photo-example svg{width:160px;height:auto;flex-shrink:0;fill:none;stroke:none}
.photo-example figcaption{font-size:12px;line-height:2}
.paper-entry{display:inline-flex!important;margin:12px 0;color:var(--ink)}
.studio-top [data-view=paper]{display:flex}
.font-navigation .save-retry{color:var(--ink);border:1px solid var(--blue);background:#fff5e9}
.font-navigation .nav-account{display:none}
.font-navigation{flex-wrap:wrap}
.font-navigation .account-save-status{max-width:none;overflow-wrap:anywhere}
@media(max-width:600px){.font-navigation{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}}
.scan-missing{background:#fff5e9;border-style:dashed!important}
.scan-quality-note{font-size:12px;line-height:2}
.history-entry{border-top:1px solid var(--line);padding:16px 0;overflow-wrap:anywhere}
.variant-list{display:flex;flex-wrap:wrap;gap:12px}.variant-list img{display:block;width:100px;height:80px;object-fit:contain;background:#f4f7fa;border:1px solid #ccd8e5}.variant-list>div{display:grid;gap:8px}
#variantDialog{max-width:560px;padding:24px}#variantDialog p{line-height:2;font-size:13px}#variantDialog>button{margin:8px 8px 0 0}
.month-label{display:grid;gap:10px;margin:16px 0;line-height:2}.month-label input{min-height:44px;max-width:100%;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:8px;background:white}
.compare-dialog{width:min(900px,calc(100vw - 24px));max-height:90dvh;overflow:auto;padding:24px}.compare-dialog label{display:grid;gap:8px;margin:12px 0}.compare-dialog textarea,.compare-dialog select{width:100%;min-height:44px;padding:10px;font:inherit;border:1px solid #ccd8e5;border-radius:8px;box-sizing:border-box}.compare-dialog>p{font-size:13px;line-height:2}
.comparison-panels{display:grid;grid-template-columns:1fr 1fr;gap:16px}.comparison-panels section{min-width:0;padding:16px;border:1px solid #ccd8e5;border-radius:12px}.comparison-panels p{font-size:12px;overflow-wrap:anywhere;line-height:1.8}.comparison-text{font-size:48px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap;font-feature-settings:'calt' 1;min-height:130px}.preview-head{flex-wrap:wrap}#previewText{font-feature-settings:'calt' 1}
@media(max-width:600px){.comparison-panels{grid-template-columns:1fr}.compare-dialog{padding:16px}.comparison-text{font-size:38px}.scan-bottom{flex-wrap:wrap}}
.focus-page-actions{flex-wrap:wrap}.focus-page-actions .button{white-space:normal;min-height:44px;line-height:1.8}
@media(max-width:600px){.preview-characters{margin:14px;padding:12px}.photo-example{flex-direction:column}.creation-methods{gap:8px}.creation-methods .button{padding:12px 8px}.font-navigation .save-retry{grid-column:1/-1}.phrase-start{padding:12px}.preview-character{width:50px;height:52px}}
/* Two purpose-led entrances; secondary choices stay compact. */
.creation-purpose{margin:0 0 20px}.creation-purpose h2{font-size:20px;line-height:2;margin:0 0 12px}.purpose-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.purpose-choice{padding:18px;text-align:left;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);line-height:2}.purpose-choice strong{font-size:16px}.purpose-choice p{font-size:12px;line-height:1.9;margin:8px 0 0;color:var(--muted)}.purpose-choice[aria-pressed=true]{border-color:var(--blue);background:#edf3fc;box-shadow:inset 0 0 0 1px var(--blue)}.purpose-choice[aria-pressed=true] strong:before{content:'✓ ';color:var(--blue)}
.purpose-pending.choosing #setupView>.setup-card,.purpose-pending.choosing #creationMethods{display:none}
body[data-creation-purpose=image] #starterSets,body[data-creation-purpose=image] #extraChoices,body[data-creation-purpose=image] .complete-choice,body[data-creation-purpose=image] #startBtn,body[data-creation-purpose=image] #charactersTitle,body[data-creation-purpose=image] .setup-steps,body[data-creation-purpose=image] #exportPreview,body[data-creation-purpose=image] #exportTop,body[data-creation-purpose=image] #addPhrase,body[data-creation-purpose=image] #showCreated{display:none!important}
body[data-creation-purpose=font] #phraseStart,body:not([data-creation-purpose=image]) #continueAsFont{display:none}
.export-strip{display:flex;flex-wrap:wrap;gap:10px}.export-strip .button{white-space:normal;line-height:1.8;min-height:44px}
.creation-methods .button{flex:0 1 auto;min-height:44px;padding:8px 14px}
.language-choices{display:flex;flex-wrap:wrap;gap:8px}.language-choices button{min-height:44px;padding:9px 14px;font-size:14px;border-radius:8px;gap:10px}
.set-choices{display:flex;flex-wrap:wrap;gap:8px}.set-choice{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;min-width:130px;padding:10px 12px;border-radius:8px}.set-choice input{position:static;grid-row:1/3;align-self:center;width:17px;height:17px}.set-choice .set-example{display:none}.set-choice b{font-size:12px}.set-choice small{grid-column:2}
.set-tabs,.pill-tabs{flex-wrap:wrap;gap:5px}.set-tabs button,.pill-tabs button,.page-tabs button{flex:0 0 auto;min-height:40px;padding:7px 11px;font-size:12px}.set-tabs button.active,.pill-tabs button.active,.page-tabs button.active{background:#edf3fc;color:var(--ink);border-color:var(--blue)}
@media(max-width:600px){.purpose-choices{grid-template-columns:1fr}.purpose-choice{padding:14px}.purpose-choice strong{font-size:15px}.purpose-choice p{margin-top:5px}.creation-purpose h2{font-size:18px}.set-choice{min-width:120px;padding:8px 10px}}
/* My Page prioritizes work, with account and backup tools grouped below. */
#accountDialog.library-dialog{width:min(760px,calc(100vw - 24px));overflow-y:auto;padding:24px;box-sizing:border-box}
#accountDialog.library-dialog .dialog-head{align-items:center;margin-bottom:10px}
#accountDialog.library-dialog .dialog-head>button{min-height:40px;padding:7px 12px;border-radius:8px;font-size:12px}
#accountDialog.library-dialog .button{font-size:12px;padding:8px 12px;min-height:42px;line-height:1.8;border-radius:8px;color:var(--ink)}
#accountDialog.library-dialog .button.primary{background:#edf3fc;border:1px solid var(--blue);color:var(--ink)}
#accountDialog.library-dialog>h3,.mypage-account h3{font-size:13px;line-height:2;margin:18px 0 10px}
#accountDialog.library-dialog .library-actions{justify-content:flex-end;margin:0 0 8px}
#accountDialog.library-dialog .font-library-grid{margin-top:0;gap:12px}
#accountDialog.library-dialog .font-card{padding:14px;border-radius:10px}
#accountDialog.library-dialog .font-card h3{font-size:17px;margin:10px 0 4px}
#accountDialog.library-dialog .font-card p{font-size:11px;line-height:1.8;margin:6px 0}
#accountDialog.library-dialog .font-card [data-account-action=edit]{background:#edf3fc;border:1px solid var(--blue);font-weight:600}
.mypage-account{margin-top:22px;padding-top:2px;border-top:1px solid var(--line)}.mypage-account>.button{margin:4px 6px 4px 0}.mypage-data{margin-top:18px}.mypage-data summary{font-weight:600}
@media(max-width:600px){#accountDialog.library-dialog{padding:18px;max-height:86dvh}.current-draft .font-card-preview{min-height:64px}.current-draft .font-card-preview img{max-height:64px}#accountDialog.library-dialog .dialog-head h2{font-size:20px}}
/* Keep the home screen focused on its two creation entrances. */
body.choosing .font-navigation{display:none}
.header-controls .header-mypage,.header>.header-mypage{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-height:42px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:12px;font-weight:500;line-height:1.7;white-space:normal;max-width:100%}
.header-mypage svg{width:18px;height:18px;flex:none}
body:not(.choosing) .font-navigation{display:flex;align-items:center;gap:8px;padding:7px 20px;margin-bottom:0}
body:not(.choosing) .font-navigation .account-save-status{order:0;flex:1;width:auto;padding:0;margin:0;min-width:0;font-size:11px}
#accountDialog .mypage-save-status{margin:0 0 10px;line-height:1.8}
@media(max-width:730px){.header-controls{gap:8px}.header-controls .interface-switch{gap:6px;min-width:0}.header-controls .header-mypage{margin-left:auto;max-width:48%;font-size:11px;padding:7px 9px}.header-controls .header-right{flex-basis:100%}body:not(.choosing) .font-navigation{padding:7px 14px}}
.header-mypage[hidden],.header-auth-actions[hidden]{display:none!important}
.header-auth-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}
.header-auth-actions .button{min-height:42px;padding:8px 12px;font-size:12px;line-height:1.8;border-radius:8px;color:var(--ink);background:white;border:1px solid var(--line)}
.header-auth-actions [data-account-action=headerRegister]{background:#edf3fc;border-color:#9bb7dc}
.guide-step-number{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--blue);color:white;font:600 15px var(--font);margin-bottom:8px}
.quick-guide-steps li+li:before{top:70px}
.setup-steps{display:none}
.file-save-dialog{width:min(460px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:20px;border:1px solid var(--line);border-radius:16px;color:var(--ink);background:white}
.file-save-dialog::backdrop{background:#18243a88}
.file-save-dialog p{font-size:13px;line-height:2;overflow-wrap:anywhere}
.file-save-dialog .button{margin:5px;min-height:44px;color:var(--ink)}
.file-save-image{display:block;max-width:100%;max-height:45dvh;object-fit:contain;margin:12px auto;touch-action:auto;-webkit-touch-callout:default;user-select:auto;background:repeating-conic-gradient(#eee 0% 25%,white 0% 50%) 0/16px 16px}
#creationPurpose,#creationMethods,.setup-card{scroll-margin-top:16px}
.quick-guide-steps li+li:before{top:42px}
@media(max-width:540px){.quick-guide-steps li+li:before{top:36px}}
@media(max-width:540px){.header-auth-actions{gap:6px}.header-auth-actions .button{padding:7px 10px;font-size:11px}}
