body[data-wizard-step="1"]>main,body[data-wizard-step="3"]>main{display:block;overflow:auto}
body[data-wizard-step="1"] main>nav,body[data-wizard-step="3"] main>nav,body[data-wizard-step="1"] .workspace,body[data-wizard-step="3"] .workspace,body[data-wizard-step="1"] .inspector,body[data-wizard-step="3"] .inspector{display:none}
body[data-wizard-step="1"] .library,body[data-wizard-step="3"] .library{width:min(1200px,100%);height:auto;max-height:none;margin:auto;padding:32px;background:transparent;border:0;overflow:visible}
body[data-wizard-step="1"] #templateList,body[data-wizard-step="3"] #backStyleList{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px}
#backStyleList .template{width:100%}
.design-flow-progress button{font-size:12px;padding:18px 4px}
#wizardNext{white-space:nowrap;min-width:180px;font-weight:500}
body[data-wizard-step="2"] .pages .page,body[data-wizard-step="4"] .pages .page{display:none}
@media(max-width:900px){.design-flow-bar{gap:8px}.design-flow-progress{overflow:auto;justify-content:flex-start}.design-flow-progress button{white-space:nowrap}#wizardNext{min-width:0;margin-left:auto}}

/* Two clear header rows, aligned to one shared content width. */
body>header{height:68px;padding:0 max(24px,calc((100vw - 1440px)/2));gap:22px;white-space:nowrap;border-bottom:1px solid #e7eaee}
body>header .brand img{width:132px}
body>header .title{display:flex;align-items:center;gap:20px;border:0;padding:0;font-size:14px;font-weight:400;color:#66768a}
.wizard-design-name{border:0;border-left:1px solid #e4e7eb;border-radius:0;padding:0 0 0 20px;color:#506579;font-weight:400;background:none;max-width:280px;overflow:hidden;text-overflow:ellipsis}
body>header .mypage-return{margin-left:auto;font-size:12px;color:#6c8095;text-decoration:none}
body>header #saveState{font-size:11px;color:#9aa3ad}
body>header #save,body>header #wizardPdf{border:0;background:none;padding:8px 0;color:#235d91;font-size:13px;font-weight:400}
.design-flow-bar{height:70px;padding:0 max(24px,calc((100vw - 1440px)/2));gap:22px}
.design-flow-progress{max-width:none;gap:20px}
.design-flow-progress button{padding:23px 0;font-weight:400;color:#a1a9b2}
.design-flow-progress button.active{font-weight:500;color:#244c77}
#wizardPrevious{border:0;background:none;font-size:12px;color:#8692a0;padding:8px}
#wizardNext{width:260px;min-width:260px;height:52px;border-radius:4px;background:#15588c;border-color:#15588c;font-size:16px;margin-left:12px}
body>main{height:calc(100vh - 138px)}
@media(max-width:1100px){body>header{gap:12px}.wizard-design-name{max-width:170px}body>header #saveState{display:none}.design-flow-bar{gap:12px}#wizardNext{width:auto;min-width:180px}.design-flow-progress{gap:12px}}
@media(max-width:900px){body>header{height:auto;padding:12px 16px;flex-wrap:wrap}.design-flow-bar{height:auto;padding:10px 16px}.design-flow-progress{flex-basis:100%}body>main{height:auto}.design-flow-progress button{padding:12px 0}#wizardNext{height:44px;min-width:0}}

/* Original navigation above a separate sequential progress row. */
body>header{height:80px;padding:16px 24px;gap:16px;white-space:normal}
body>header .brand img{width:145px}body>header .title{display:block;border-left:1px solid #ddd;padding-left:20px;font-size:14px;font-weight:700;color:#17243b}
body>header .title small{display:block}body>header .mypage-return{margin-left:auto}
body>header #save{border:1px solid #dfe5ee;border-radius:7px;padding:10px 14px;color:#17243b}
.design-flow-bar{height:66px;padding:0 24px;background:#fff}
.design-flow-progress button:disabled{opacity:1;color:#a1a9b2;cursor:default}
body>main{height:calc(100vh - 146px)}
@media(max-width:900px){body>header{height:auto}.design-flow-bar{height:auto;padding:10px 14px}body>main{height:auto}}

/* Canvas-focused editing steps. */
.wizard-bottom-tools{display:none}
body[data-wizard-step="2"]>main,body[data-wizard-step="4"]>main{display:block;position:relative;height:calc(100vh - 206px);overflow:hidden}
body[data-wizard-step="2"] main>nav,body[data-wizard-step="4"] main>nav{display:none}
body[data-wizard-step="2"] .workspace,body[data-wizard-step="4"] .workspace{width:100%;height:100%;min-height:0;display:flex;flex-direction:column}
body[data-wizard-step="2"] .toolbar,body[data-wizard-step="4"] .toolbar{position:absolute;top:18px;right:28px;background:transparent;border:0;z-index:2;padding:0;gap:5px}
body[data-wizard-step="2"] .toolbar button,body[data-wizard-step="4"] .toolbar button{font-size:11px;padding:6px 9px;background:#ffffffd9}
body[data-wizard-step="2"] .canvasArea,body[data-wizard-step="4"] .canvasArea{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:65px 30px 30px;min-height:0;position:relative}
body[data-wizard-step="2"] .canvasCaption,body[data-wizard-step="4"] .canvasCaption{position:absolute;top:28px;left:max(30px,calc((100vw - 1200px)/2));font-size:13px;color:#647489}
body[data-wizard-step="2"] .canvasHint,body[data-wizard-step="4"] .canvasHint{font-size:11px;color:#9aa3ae;margin-top:22px}
body[data-wizard-step="2"] .pages,body[data-wizard-step="4"] .pages{position:absolute;bottom:15px;right:24px;background:transparent;border:0;padding:0}
body[data-wizard-step="2"] .library,body[data-wizard-step="4"] .library,body[data-wizard-step="2"] .inspector,body[data-wizard-step="4"] .inspector{display:none;position:absolute;top:0;bottom:0;z-index:5;width:290px;max-height:none;background:#fff;overflow-y:auto;padding:24px;box-shadow:0 4px 20px #20304015}
body[data-wizard-step="2"] .library,body[data-wizard-step="4"] .library{left:0}
body[data-wizard-step="2"] .inspector,body[data-wizard-step="4"] .inspector{right:0}
body.wizard-library-open[data-wizard-step="2"] .library,body.wizard-library-open[data-wizard-step="4"] .library,body.wizard-properties-open[data-wizard-step="2"] .inspector,body.wizard-properties-open[data-wizard-step="4"] .inspector{display:block}
body[data-wizard-step="2"] .wizard-bottom-tools,body[data-wizard-step="4"] .wizard-bottom-tools{height:60px;display:flex;justify-content:center;align-items:stretch;background:#fff;border-top:1px solid #e4e8ef;gap:0}
.wizard-bottom-tools button{border:0;border-right:1px solid #edf0f4;border-radius:0;padding:14px 28px;background:white;color:#627185;font-size:12px}
.wizard-bottom-tools button:hover{background:#f4f7fb;color:#164f87}
@media(max-width:900px){body[data-wizard-step="2"]>main,body[data-wizard-step="4"]>main{height:65vh;min-height:400px}.wizard-bottom-tools{overflow-x:auto;justify-content:flex-start!important}.wizard-bottom-tools button{white-space:nowrap;padding:12px 15px}.toolbar .guide,.toolbar .divider{display:none}}

/* Show only the current step in the progress row. */
.design-flow-progress [data-wizard-step]{display:none!important}
.design-flow-progress [data-wizard-step].active{display:block!important;border-bottom:0;font-size:16px;padding:18px 0;color:#244c77}
.design-flow-progress{justify-content:flex-start}

.design-flow-progress [data-wizard-step],.design-flow-progress [data-wizard-step].active{display:flex!important;align-items:center;justify-content:center;flex:1;max-width:90px;height:42px;padding:0;font-size:16px;border-bottom:0}
.design-flow-progress{justify-content:space-between;max-width:650px;gap:20px}
.design-flow-progress [data-wizard-step].active{color:#15588c;font-size:22px;font-weight:600}
.design-flow-progress [data-wizard-step]:disabled{color:#9ba4af}

/* Fixed columns keep both navigation buttons in place across all steps. */
@media(min-width:901px){
.design-flow-bar{display:grid!important;grid-template-columns:minmax(0,1fr) 64px 280px;column-gap:20px;}
.design-flow-progress{display:flex!important;width:100%;max-width:none;margin:0;justify-content:space-around;gap:0;}
.design-flow-progress [data-wizard-step]{flex:0 0 48px;max-width:48px;}
#wizardPrevious{grid-column:2;width:64px;min-width:64px;margin:0;padding:8px 0;}
#wizardNext{grid-column:3;width:280px!important;min-width:280px!important;margin:0!important;white-space:nowrap;}
}
@media(max-width:900px){
.design-flow-bar{display:grid!important;grid-template-columns:64px minmax(0,1fr);}
.design-flow-progress{grid-column:1/3;display:flex!important;justify-content:space-around;width:100%;max-width:none;}
#wizardPrevious{grid-column:1;width:64px;margin:0;}
#wizardNext{grid-column:2;width:100%!important;min-width:0!important;margin:0!important;font-size:13px;}
}

.material-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 20px}.material-grid button{font-size:12px;padding:18px 8px}#materials label{display:block;margin-bottom:16px}#materialColor{display:block;width:100%;height:38px;margin-top:8px}

/* Match the supplied compact two-row header. */
body>header{height:70px;padding:8px 14px 8px 4px}
body>header .title{font-size:13px;padding-left:20px}
body>header .title small{font-size:10px;letter-spacing:0;margin-top:7px}
body>header .mypage-return{font-size:10px}
body>header #saveState{display:inline;font-size:10px}
body>header #save{font-size:12px;padding:12px 15px;border-radius:6px;color:#244f7c}
@media(min-width:901px){
.design-flow-bar{height:66px;padding:0 14px 0 0;grid-template-columns:minmax(0,1fr) 76px 260px;gap:10px}
.design-flow-progress{height:66px;border-right:1px solid #e3e8ee;justify-content:center}
.design-flow-progress [data-wizard-step]{display:none!important}
.design-flow-progress [data-wizard-step].active{display:flex!important;flex:0 1 auto;max-width:none;height:66px;font-size:14px;font-weight:400;color:#244f7c}
#wizardNext{width:260px!important;min-width:260px!important;height:52px;font-size:15px;background:#2b5b8e;border-color:#2b5b8e;font-weight:500}
#wizardPrevious{width:76px;font-size:11px;color:#8591a0}
}
body>main{height:calc(100vh - 136px)}
body[data-wizard-step="2"]>main,body[data-wizard-step="4"]>main{height:calc(100vh - 196px)}

/* Display all five complete step names. */
.design-flow-progress{display:flex!important;justify-content:space-around!important;gap:8px!important;overflow-x:auto}
.design-flow-progress [data-wizard-step],.design-flow-progress [data-wizard-step].active{display:flex!important;flex:0 1 auto!important;max-width:none!important;white-space:nowrap;font-size:12px!important;height:66px!important;padding:0 8px!important;}
.design-flow-progress [data-wizard-step]{color:#8b95a2}
.design-flow-progress [data-wizard-step].active{color:#244f7c;font-weight:600!important;box-shadow:inset 0 -2px #2b5b8e}
@media(max-width:1100px){.design-flow-progress{justify-content:flex-start!important}.design-flow-progress [data-wizard-step]{flex-shrink:0!important}}

@media(min-width:901px){
.design-flow-progress{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;justify-content:stretch!important;gap:0!important;width:100%!important;overflow:visible!important;}
.design-flow-progress [data-wizard-step],.design-flow-progress [data-wizard-step].active{display:flex!important;justify-content:center!important;width:100%!important;min-width:0!important;padding:0 4px!important;font-size:12px!important;white-space:normal!important;text-align:center;line-height:1.5;}
}

.resizeHandle.n{top:-7px;left:calc(50% - 6px);cursor:ns-resize}
.resizeHandle.s{bottom:-7px;left:calc(50% - 6px);cursor:ns-resize}
.resizeHandle.w{left:-7px;top:calc(50% - 6px);cursor:ew-resize}
.resizeHandle.e{right:-7px;top:calc(50% - 6px);cursor:ew-resize}

/* Physical card corner preview: 3mm radius at the editor scale. */
#card{border-radius:22.43px}
.templatePreview{border-radius:7px;overflow:hidden}

.canvasHint .print-guide-note{display:inline-block;margin-top:8px;color:#526579;font-size:12px;line-height:1.7;}

/* Darker secondary interface text for comfortable reading. */
body>header #saveState,body>header .title small,body>header .mypage-return,
.design-flow-progress [data-wizard-step]:not(.active),#wizardPrevious,
.library>p,.inspector>p,.note,.canvasCaption span,.prototypeNote,.page span,
body[data-wizard-step="2"] .canvasHint,body[data-wizard-step="4"] .canvasHint{color:#627185}

/* Slightly larger interface type without changing the card artwork. */
body>header .title{font-size:15px}
body>header .title small,body>header #saveState{font-size:12px}
body>header .mypage-return,body>header #save,#wizardPrevious{font-size:13px}
.design-flow-progress [data-wizard-step],.design-flow-progress [data-wizard-step].active{font-size:14px!important}
.library>p,.inspector>p,.note,.guide,.page span{font-size:13px}
.template>span{font-size:13px;line-height:1.6}
.templateFilters button,.toolbar button,.wizard-bottom-tools button{font-size:14px}
body[data-wizard-step="2"] .toolbar button,body[data-wizard-step="4"] .toolbar button{font-size:13px}
body[data-wizard-step="2"] .canvasCaption,body[data-wizard-step="4"] .canvasCaption{font-size:15px}
body[data-wizard-step="2"] .canvasHint,body[data-wizard-step="4"] .canvasHint,.canvasHint .print-guide-note{font-size:13px;line-height:1.8}
.inspector label,.library label,.check,.reviewSide>p{font-size:14px}
@media(max-width:900px){.design-flow-progress [data-wizard-step],.design-flow-progress [data-wizard-step].active{font-size:13px!important}}

body>header .mypage-return{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:9px 12px;border:1px solid #b8c7d8;border-radius:6px;background:#f3f6fa;color:#294e76;font-size:14px;font-weight:600;line-height:1.4;text-decoration:none;white-space:nowrap}
body>header .mypage-return::before{content:"←";font-size:17px}
body>header .mypage-return:hover{background:#e6eef8;border-color:#7f9dbf;color:#173d65;text-decoration:none}
body>header .mypage-return:focus-visible{outline:3px solid #86b6ff;outline-offset:3px}

/* Final review is a full wizard page. */
body[data-wizard-step="5"]{height:auto;min-height:100vh;overflow:auto}
body[data-wizard-step="5"]>main{display:none}
.wizard-review-page[hidden]{display:none!important}
.wizard-review-page{max-width:1280px;margin:28px auto;padding:28px;background:white;border:1px solid #dfe5ee;border-radius:14px}
.wizard-review-page .modalHead{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid #e4e8ef;padding-bottom:20px;margin-bottom:24px}
.wizard-review-page h2{margin:4px 0;font-size:26px}
.wizard-review-page #reviewCards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.wizard-review-page .reviewSide{min-width:0}
.wizard-review-page .reviewSide>p{font-size:17px;font-weight:600;margin:0 0 12px}
.wizard-review-page .preview{max-width:100%;overflow:hidden;position:relative;margin:0 auto 24px}
.wizard-review-page .approval{display:flex;align-items:center;gap:12px;padding:20px 0;font-size:16px}
.wizard-review-page #orderPreview{padding:16px 24px;font-size:17px;min-height:52px}
.wizard-review-page #orderSummary{margin-top:24px;border-top:1px solid #e4e8ef;padding-top:20px}
@media(max-width:900px){.wizard-review-page{margin:16px;padding:20px}.wizard-review-page #reviewCards{grid-template-columns:1fr}}
.wizard-review-page .reviewSide{width:100%;max-width:none}.wizard-review-page #reviewCards{padding:20px;border-radius:12px;background:#f3f6fa}.wizard-review-page .preview{border-radius:14px}

.wizard-batch-choice{border:1px solid #d6e0ec;border-radius:12px;padding:24px;margin:24px 0}.wizard-batch-choice>label{display:flex;align-items:center;gap:10px;margin:16px 0;font-size:16px}.wizard-batch-frame{width:100%;height:1000px;border:1px solid #dfe5ee;border-radius:10px;background:white}

/* Radio controls must retain their native size inside the review options. */
.wizard-batch-choice>label{display:flex;justify-content:flex-start;align-items:center;gap:12px;width:100%;min-width:0;line-height:1.6;margin:12px 0;padding:12px 14px;border:1px solid #dfe5ee;border-radius:8px;color:#334b67;cursor:pointer}
.wizard-batch-choice>label>input[type="radio"]{display:block!important;flex:0 0 18px!important;width:18px!important;height:18px!important;min-width:18px!important;margin:0!important;padding:0!important;accent-color:#245d91}
.wizard-batch-choice>label:has(input:checked){background:#edf4fc;border-color:#245d91}
@media(max-width:600px){.wizard-batch-choice{padding:16px}.wizard-batch-choice>label{font-size:14px;padding:10px}}

/* Storefront navigation with a separate editor action row. */
.studio-site-nav{display:flex;align-items:center;gap:28px;padding:16px 28px;background:white;border-bottom:1px solid #e5e9ef;min-height:80px;color:#333;font-size:14px;position:relative;z-index:1100}.studio-site-logo img{width:190px;height:38px;object-fit:contain}.studio-site-nav a{color:inherit;text-decoration:none;white-space:nowrap}.studio-site-nav a:hover{color:#17639b}.studio-site-nav nav{display:flex;flex-direction:row;align-items:center;gap:24px;border:0;padding:0}.studio-site-nav details{position:relative}.studio-site-nav summary{cursor:pointer;white-space:nowrap}.studio-site-nav details>div{position:absolute;top:30px;left:0;min-width:220px;padding:12px;background:white;box-shadow:0 8px 24px #17243b25;border:1px solid #e5e9ef;border-radius:8px}.studio-site-nav details a{display:block;padding:10px}.studio-site-actions{display:flex;gap:18px;align-items:center;margin-left:auto}.studio-site-contact{border:1px solid #17639b;border-radius:24px;padding:10px 18px}body>header{padding:10px 28px;height:62px;background:#fff}body>header .title{border:0;padding:0}body>main{height:calc(100vh - 208px)}body[data-wizard-step="2"]>main,body[data-wizard-step="4"]>main{height:calc(100vh - 268px)}
@media(max-width:1200px){.studio-site-nav{gap:18px;flex-wrap:wrap}.studio-site-nav nav{gap:16px}.studio-site-actions{gap:12px}}@media(max-width:900px){.studio-site-nav{padding:12px 16px}.studio-site-logo img{width:150px}.studio-site-nav nav{order:3;width:100%;overflow-x:auto;padding:8px 0}.studio-site-actions{font-size:12px}.studio-site-contact{display:none}body>header{height:auto;padding:12px 16px}body>main,body[data-wizard-step="2"]>main,body[data-wizard-step="4"]>main{height:auto;min-height:620px}}

/* Review: large artwork beside one focused order panel. */
.wizard-review-page{max-width:1500px;background:transparent;border:0;padding:24px;margin:12px auto}.review-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:28px;align-items:start}.review-preview-column{min-width:0}.review-order-column{position:sticky;top:20px;background:#fff;border:1px solid #dfe5ee;border-radius:12px;padding:24px;box-shadow:0 5px 18px #17243b08}.wizard-review-page #reviewCards{background:transparent;padding:0;gap:24px}.wizard-review-page .reviewSide{background:#fff;border:1px solid #e1e7ef;border-radius:12px;padding:20px;text-align:center}.wizard-review-page .reviewSide>p{text-align:left}.wizard-review-page .reviewSide button{margin-top:8px;width:100%;color:#245783}.wizard-review-page #reviewChecks{margin-bottom:20px;background:#eef5fc;border-left:4px solid #2b5b8e;border-radius:6px;padding:10px 18px}.wizard-review-page #reviewChecks .check{font-size:14px;line-height:1.7;border:0}.review-order-column .wizard-batch-choice{border:0;padding:0;margin:0}.review-order-column .wizard-batch-choice h3{font-size:20px;margin:0 0 20px}.review-order-column .wizard-batch-choice>label{padding:12px;border:1px solid #dfe5ee;border-radius:8px;font-size:14px;line-height:1.6;margin:10px 0;align-items:flex-start}.review-order-column .wizard-batch-choice>label:has(input:checked){border-color:#2b5b8e;background:#edf4fc}.review-order-column .approval{font-size:14px;padding:18px 0;align-items:flex-start;line-height:1.7}.review-order-column #orderPreview{width:100%;font-size:16px;padding:15px 10px}.review-order-column .note{font-size:12px;line-height:1.8}.review-extra{border-top:1px solid #e2e7ee;margin-top:20px;padding-top:18px;font-size:13px}.review-extra summary{cursor:pointer;color:#345c80}.review-order-column #orderSummary{background:transparent;padding:10px 0 0;border:0;margin:0}.review-order-column #orderSummary label{font-size:13px}.review-order-column #handoff{width:100%}#wizardBatchArea{margin-top:28px}.wizard-review-page .modalHead{margin-bottom:20px}#closeReview{display:none}
@media(max-width:1000px){.review-layout{grid-template-columns:minmax(0,1fr) 310px;gap:18px}.wizard-review-page #reviewCards{grid-template-columns:1fr}.review-order-column{padding:20px}}@media(max-width:750px){.review-layout{grid-template-columns:1fr}.review-order-column{position:static}.wizard-review-page{padding:16px;margin:0}.wizard-review-page #reviewCards{grid-template-columns:1fr}.wizard-review-page h2{font-size:22px}}

/* The site navigation and step navigation are the only visible header rows. */
body>header[hidden]{display:none!important}body>main{height:calc(100vh - 146px)}body[data-wizard-step="2"]>main,body[data-wizard-step="4"]>main{height:calc(100vh - 206px)}
@media(max-width:900px){body>main,body[data-wizard-step="2"]>main,body[data-wizard-step="4"]>main{height:auto}}

.studio-public-header{height:80px;position:relative;z-index:1200;background:#fff}.studio-public-header header{position:relative!important;top:auto!important;left:auto!important;height:80px!important;width:100%!important;padding:0!important;display:block!important;border-bottom:1px solid #e5e9ef}.studio-public-header .header-container{height:80px!important;max-width:none!important;min-width:0!important;width:100%!important;margin:0!important;padding:0 24px!important;box-sizing:border-box}.studio-public-header nav.main-nav{border:0;padding:0;display:block}.studio-public-header ul{list-style:none;margin:0;padding:0}.studio-public-header .header-left,.studio-public-header .header-right,.studio-public-header .header-container{display:flex;align-items:center}.studio-public-header .header-container{justify-content:space-between}.studio-public-header .main-nav ul{display:flex;align-items:center}.studio-public-header a{text-decoration:none}.studio-public-header .logo img{max-width:230px}.studio-public-header .header-right{gap:18px}.studio-public-header .header-left{gap:24px}.studio-public-header .main-nav ul{gap:20px}.studio-public-header .dropdown-content,.studio-public-header .user-dropdown{z-index:1300}.studio-public-header .main-nav{flex-direction:row}

body>header.studio-editor-header{display:flex!important;height:64px;padding:10px 28px;background:white;gap:20px}.studio-editor-header .title,.studio-editor-header .steps{display:none!important}.studio-editor-header .studio-design-name{font-size:16px;color:#34465d;border-left:1px solid #dfe5ee;padding-left:20px}.studio-editor-header #review{display:inline-flex!important;border:1px solid #b9c8d9;background:#fff;color:#295581;padding:10px 16px;border-radius:6px;font-size:14px}.studio-editor-header .mypage-return{margin-left:auto}body>main{height:calc(100vh - 130px)}body[data-wizard-step="2"]>main,body[data-wizard-step="4"]>main{height:calc(100vh - 190px)}@media(max-width:900px){body>header.studio-editor-header{height:auto;flex-wrap:wrap;padding:12px 16px;gap:12px}body>main,body[data-wizard-step="2"]>main,body[data-wizard-step="4"]>main{height:auto}}

.studio-editor-header .studio-card-kind{font-size:16px;color:#53667e;white-space:nowrap}.studio-editor-header .studio-design-name{display:flex;align-items:center;min-width:0;padding-left:18px}.studio-editor-header .studio-rename-button{display:inline-flex;align-items:center;gap:12px;border:0;background:transparent;padding:8px 4px;color:#35475e;font-size:16px;min-width:90px;text-align:left}.studio-rename-button span{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-editor-header .studio-rename-input{width:240px;max-width:40vw;margin:0;padding:8px 10px;font-size:16px;border:1px solid #4d78a4}.studio-rename-button:hover{background:#f0f5fa!important}.studio-editor-header [hidden]{display:none!important}@media(max-width:600px){.studio-editor-header .studio-card-kind{font-size:13px}.studio-editor-header .studio-rename-button{font-size:14px}.studio-editor-header .studio-design-name{padding-left:10px}.studio-rename-button span{max-width:140px}}

body>header.studio-editor-header #save,body>header.studio-editor-header #review{border:0;background:transparent;color:#295581;font-weight:500;font-size:15px;padding:10px 12px;border-radius:5px;white-space:nowrap}.studio-editor-header #save:hover,.studio-editor-header #review:hover{background:#edf4fa!important}.studio-editor-header #draftSaveStatus{font-size:12px;color:#667b8c;white-space:nowrap}.studio-editor-header .mypage-return{border:0;background:transparent;font-weight:500;font-size:15px;padding:10px 12px}@media(max-width:600px){.studio-editor-header #draftSaveStatus{font-size:11px}.studio-editor-header .mypage-return,.studio-editor-header #save,.studio-editor-header #review{font-size:13px;padding:8px}}

.studio-editor-header #restartDesign,.studio-editor-header #proofPdf{border:0;background:transparent;color:#295581;font-size:15px;padding:10px 12px;white-space:nowrap}.studio-editor-header #review[hidden]{display:none!important}.design-flow-progress button{display:flex;align-items:center;justify-content:center;gap:12px}.progress-marker{font-size:15px;font-weight:600;color:#657a90}.progress-marker.completed{font-size:24px;color:#008b74;line-height:1}.design-flow-progress button.active .progress-marker{color:#2b5b8e}.design-flow-progress button[hidden]{display:none!important}@media(max-width:900px){.studio-editor-header #restartDesign,.studio-editor-header #proofPdf{font-size:13px}.design-flow-progress button{gap:7px}}
/* Six explicit stages share the existing editor and review components. */
@media(min-width:901px){.design-flow-progress{grid-template-columns:repeat(6,minmax(0,1fr))!important}.design-flow-bar{grid-template-columns:minmax(0,1fr) 90px 230px!important}#wizardNext{width:230px!important;min-width:230px!important}#wizardPrevious{width:90px!important;white-space:nowrap}}
.design-flow-progress [data-order-step]{display:flex!important;align-items:center;justify-content:center;color:#627185;opacity:1;font-size:14px;border:0;background:transparent;white-space:nowrap}
@media(max-width:900px){.design-flow-progress [data-order-step]{flex-shrink:0;padding:12px;font-size:13px}.design-flow-progress [data-wizard-step]{white-space:nowrap!important}.design-flow-progress{overflow-x:auto!important}}
.wizard-personalization-hint{max-width:840px;margin:12px auto;padding:10px 16px;background:#eaf2fb;border-radius:6px;line-height:1.7;color:#345675}
.wizard-quantity{display:block!important;padding:14px 0!important;border:0!important}.wizard-quantity[hidden]{display:none!important}.wizard-quantity input{width:100%;margin-top:8px;padding:12px;font-size:16px}
body[data-wizard-step="5"] #wizardPrevious{display:block!important}
.order-flow-progress{padding:20px;background:#eef4fb;color:#355d85;font-size:14px;text-align:center;overflow:auto;white-space:nowrap}

.wizard-login-dialog{width:min(560px,92vw);padding:0;border:1px solid #d5dfe8;border-radius:12px;overflow:hidden;}
.wizard-login-dialog::backdrop{background:rgba(15,35,55,.5);}
.wizard-login-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px;background:#f3f7fa;}
.wizard-login-dialog iframe{display:block;border:0;width:100%;height:min(680px,75vh);}

.wizard-login-dialog{width:min(440px,92vw);background:#fff;}
.wizard-login-head{background:#fff;padding:22px 24px 8px;}
.wizard-login-head strong{font-size:18px;color:#223c50;}
.wizard-login-head button{border:0;background:transparent;font-size:12px;color:#718294;padding:6px;}
.wizard-login-explanation{font-size:12px;line-height:1.8;color:#718294;margin:0;padding:0 24px 14px;}
.wizard-login-dialog iframe{height:min(460px,65vh);}

.wizard-login-dialog{width:min(560px,92vw);}
.wizard-login-head{background:#f3f7fa;padding:16px;}
.wizard-login-dialog iframe{height:min(680px,75vh);}

.wizard-login-dialog{width:min(440px,92vw);}
.wizard-login-dialog iframe{height:min(460px,65vh);}

/* Comfortable login dialog sizing */
.wizard-login-dialog{width:min(600px,94vw);max-height:94vh;}
.wizard-login-head{padding:20px 24px;}
.wizard-login-head strong{font-size:20px;line-height:1.5;}
.wizard-login-head button{font-size:15px;padding:8px 12px;}
.wizard-login-dialog iframe{height:min(600px,76vh);}

/* Physical card edge in confirmation preview; not part of print artwork. */
.wizard-review-page #reviewCards .preview{outline:1px solid #d5dbe3!important;outline-offset:0!important;box-shadow:0 2px 4px rgba(23,36,59,.07),0 10px 24px rgba(23,36,59,.12)!important;border-radius:14px!important;background:#fff!important;margin-bottom:30px!important}

.layer-details{border-top:1px solid #e5e5ea;margin-top:18px;padding-top:16px}
.layer-details summary{cursor:pointer;color:#245783;font-size:14px;font-weight:600;min-height:32px;line-height:1.6}
.layer-details>p{font-size:12px;color:#6e6e73;line-height:1.7;margin:12px 0}
.layer-details .layer{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left}
.layer-details .layer>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.layer-details .layer small{flex-shrink:0;font-size:10px;white-space:nowrap;background:#f0f3f7;border-radius:5px;padding:3px 5px;color:#63758a}

/* 2026-10-17: 編集中（表面＝ステップ2、裏面＝ステップ4）でもテンプレートを変更できるようにする。裏面ではボタンが裏面テンプレートの一覧を開く */
body:not([data-wizard-step="2"]):not([data-wizard-step="4"]) .wizard-bottom-tools [data-wizard-tool="templates"]{display:none}
body[data-wizard-step="4"] .library #backStyles #backStyleList{display:grid;grid-template-columns:1fr;gap:12px}
body[data-wizard-step="2"] .library #templates #templateList{display:grid;grid-template-columns:1fr;gap:12px}
.template-own-preview{display:flex;align-items:center;gap:6px;margin:4px 0 12px;font-size:13px;color:#34465d;cursor:pointer}
.template-own-preview[hidden]{display:none}

/* 2026-10-17 見やすさの改善：下部ツールバーと編集ボタンの文字を濃く・大きく */
.wizard-bottom-tools button{color:#2f3d52;font-size:13px;font-weight:500}
.wizard-bottom-tools button:hover{color:#164f87}
.toolbar button{color:#2f3d52;font-weight:500}
.toolbar button:disabled{color:#97a1ad}
.fill-photo-btn{border:1px solid #164f87!important;border-radius:8px;background:#fff!important;color:#164f87!important;font-weight:600;text-align:center}
.fill-photo-btn:hover{background:#eef4fb!important}

/* 2026-10-17 スマホ表示の見直し：カードを最初の画面に出し、操作ボタンが重ならないようにする（電脳版は変更なし） */
@media(max-width:900px){
 body>header.studio-editor-header{height:auto!important;padding:8px 12px!important;gap:4px 10px!important;flex-wrap:wrap!important}
 body>header.studio-editor-header .title,body>header.studio-editor-header .steps{display:none!important}
 body>header.studio-editor-header .brand img{height:26px!important}
 body>header.studio-editor-header #save,body>header.studio-editor-header #restartDesign,body>header.studio-editor-header #proofPdf,body>header.studio-editor-header .mypage-return{font-size:13px!important;padding:4px 6px!important}
 .design-flow-bar{display:flex!important;flex-wrap:wrap!important;align-items:center;gap:6px 8px!important;padding:6px 12px 8px!important;height:auto!important}
 .design-flow-progress{display:flex!important;flex-direction:row!important;flex:0 0 100%!important;width:100%!important;overflow-x:auto!important;gap:0!important;-webkit-overflow-scrolling:touch}
 .design-flow-progress button{flex:0 0 auto!important;white-space:nowrap!important;padding:8px 10px!important;font-size:12px!important;min-height:0!important}
 .design-flow-bar #wizardPrevious{flex:0 0 auto;padding:8px 12px;min-height:40px}
 .design-flow-bar #wizardNext{flex:1 1 auto;min-height:40px;padding:8px 12px}
 body[data-wizard-step="2"],body[data-wizard-step="4"]{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}
 body[data-wizard-step="2"] .wizard-bottom-tools,body[data-wizard-step="4"] .wizard-bottom-tools{position:fixed!important;left:0;right:0;bottom:0;z-index:60;height:calc(56px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);overflow-x:auto;justify-content:flex-start!important;box-shadow:0 -2px 10px rgba(20,40,70,.08)}
 body[data-wizard-step="2"]>main,body[data-wizard-step="4"]>main{height:auto!important;min-height:0!important}
 body[data-wizard-step="2"] .workspace .toolbar,body[data-wizard-step="4"] .workspace .toolbar{position:static!important;display:flex;flex-wrap:wrap;gap:4px 5px;padding:8px 12px 0!important;justify-content:flex-start}
 body[data-wizard-step="2"] .canvasCaption,body[data-wizard-step="4"] .canvasCaption{position:static!important;padding:8px 14px 0}
 body[data-wizard-step="2"] .canvasArea,body[data-wizard-step="4"] .canvasArea{padding:14px 12px 20px!important}
 .fill-photo-btn{width:auto!important;padding:6px 10px!important;font-size:12px!important}
}
@media(max-width:900px){
 .design-flow-progress{height:auto!important;min-height:0!important}
 .design-flow-progress button{height:40px!important;padding:0 10px!important;line-height:1!important;display:inline-flex!important;align-items:center;gap:6px}
 .design-flow-bar #wizardPrevious{flex:0 0 auto!important;width:auto!important;white-space:nowrap!important}
 .design-flow-bar #wizardNext{flex:1 1 0!important;min-width:0!important;width:auto!important}
}

/* ログインポップアップ（最終）：コンパクトでシンプルに */
.wizard-login-dialog{width:min(420px,92vw)!important;max-height:92vh!important;padding:0!important;border:0!important;border-radius:14px!important;background:#fff!important;box-shadow:0 20px 60px rgba(15,35,55,.28)!important;overflow:hidden!important}
.wizard-login-head{background:#fff!important;padding:20px 22px 6px!important}
.wizard-login-head strong{font-size:18px!important;line-height:1.4!important;color:#1d2b3a!important}
.wizard-login-head button{font-size:13px!important;padding:6px 8px!important;color:#6b7c8d!important}
.wizard-login-dialog iframe{height:min(400px,70vh)!important}
