/* Catalog slots make the customer's actual selection visible. */
#modal:has(.studio-picker){width:min(690px,calc(100% - 24px));padding:25px;border-radius:20px;border-color:#e6dbe5;background:#fffcf9;max-height:90dvh;overflow:auto}
#modal:has(.studio-picker)>h2{font:400 28px/1.2 Georgia,serif;color:#51404b;margin:0 40px 16px 0}
#modal:has(.studio-picker)>.close{width:32px;min-height:32px;padding:7px;right:15px;top:16px;border-radius:50%;background:#f7f0f3;border:0}
.studio-picker-intro{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}
.studio-picker-intro p{font-size:12px;line-height:1.5;color:#887583;margin:0}
.studio-picker-intro>span{font-size:11px;white-space:nowrap;color:#7c5874;background:#f2e8f2;padding:6px 10px;border-radius:8px}
.studio-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.studio-slot{--slot:#f1e9f6;--slot-ink:#865d96;display:flex;flex-direction:column;align-items:stretch;text-align:left;min-width:0;padding:12px;border-radius:13px;border:1px dashed #ddcedb;background:linear-gradient(150deg,#fffdfb,var(--slot));color:#5e505c;transition:box-shadow .2s,transform .2s,border-color .2s}
.studio-slot:nth-child(2){--slot:#fbede4;--slot-ink:#b98565}.studio-slot:nth-child(3){--slot:#eaf2ee;--slot-ink:#6b947e}.studio-slot:nth-child(4){--slot:#ecf1f9;--slot-ink:#718aac}
.studio-slot.is-filled{border-style:solid;border-color:var(--slot-ink)}.studio-slot.is-current{box-shadow:0 0 0 2px #c2a4bc33}
.studio-slot:hover{transform:translateY(-2px);border-color:var(--slot-ink);box-shadow:0 5px 14px #78617112}.studio-slot:focus-visible{outline:2px solid #a17797;outline-offset:3px}
.studio-slot-top{display:flex;justify-content:space-between;align-items:center;gap:6px}.studio-slot-top strong{font-size:12px;font-weight:600}
.studio-slot-check{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#fff9;color:var(--slot-ink);font-size:16px;font-weight:400}
.studio-slot.is-filled .studio-slot-check{background:var(--slot-ink);color:#fff;font-size:12px}
.studio-slot-picture{display:grid;place-items:center;height:96px;margin:7px 0;color:var(--slot-ink)}
.studio-slot-picture>img{width:100%;height:96px;object-fit:contain;mix-blend-mode:multiply}.studio-slot-picture>svg{width:48px;height:52px;opacity:.65}
.studio-slot-picture>.catalog-photo,.studio-slot-picture>.no-photo{width:64px;height:86px;overflow:hidden}.studio-slot-picture .no-photo strong,.studio-slot-picture .no-photo small{display:none}
.studio-slot-name{font-size:11px;font-weight:500;line-height:1.4;min-height:30px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.studio-slot-status{font-size:9px;line-height:1.5;color:var(--slot-ink);margin-top:3px}
.studio-progress{display:flex;align-items:center;gap:10px;margin:15px 0 0;font-size:11px;color:#7e6a79}
.studio-progress b{color:#795070}.studio-progress small{margin-left:auto;font-size:10px;color:#9a8993}
.studio-progress-dots{display:flex;gap:4px}.studio-progress-dots i{height:4px;width:19px;border-radius:3px;background:#e8dee5}.studio-progress-dots i.is-done{background:#a580a2}
.studio-picker-tip{font-size:11px;color:#97828e;text-align:center;line-height:1.5;margin:16px 0 12px}
.studio-continue{display:flex;align-items:center;justify-content:center;gap:18px;width:100%;min-height:44px;border-radius:10px;border:1px solid #dec9dd;background:linear-gradient(110deg,#eedcf6,#f5dfe9 55%,#f9e6dc);color:#734d6c;font-size:13px;font-weight:600;padding:10px 14px}
.studio-continue:hover{background:linear-gradient(110deg,#e7cdef,#f3d1e0 55%,#f7d9cb)}
.studio-back{display:block;margin:9px auto 0;background:none;border:0;font-size:12px;color:#8b7683;min-height:36px}
.studio-picker>p{font-size:13px;line-height:1.7;color:#82717b}
.studio-saved{background:transparent;border:0;border-top:1px solid #e9dfe6;border-radius:0;padding:13px 0 0;margin:18px 0 0}
.studio-saved>summary{font-size:11px;font-weight:500;color:#8d7688}.studio-saved>summary span{margin-left:5px;font-size:10px}
.studio-saved-row{display:flex;justify-content:space-between;align-items:center;width:100%;gap:12px;margin-top:9px;padding:10px;border:1px solid #e8dfe6;border-radius:8px;background:#fffdfa;text-align:left}
.studio-saved-row>span:first-child{display:grid;gap:4px}.studio-saved-row strong{font-size:12px}.studio-saved-row small,.studio-saved-row>span:last-child{font-size:10px;color:#95838e}.studio-saved-row:disabled{opacity:.65;cursor:default}
.studio-page.container{max-width:1140px;padding:20px 28px 45px}.studio-page .breadcrumbs{font-size:11px;margin:0 0 14px}
.studio-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.studio-eyebrow{font-size:9px;letter-spacing:.18em;color:#9b7a8f;margin:0 0 7px}
.studio-heading h1{font:400 32px/1.2 Georgia,serif;margin:0;color:#55464f}.studio-heading p:last-child{font-size:12px;color:#99828f;margin:7px 0 0}
.studio-heading>a{font-size:11px;color:#957087;white-space:nowrap}
.studio-workspace{padding:18px;background:#fffcf9;border:1px solid #e9dfe4;border-radius:17px}
.studio-page .studio-slot-picture{height:90px}.studio-page .studio-slot-picture>img{height:90px}.studio-page .studio-slot-name{min-height:16px}
.studio-catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px}
.studio-catalog-heading h2{font:400 23px/1.2 Georgia,serif;margin:0}.studio-catalog-heading p{font-size:10px;color:#9b8591;margin:5px 0 0}
.studio-clear{border:0;background:none;color:#a18a97;font-size:10px;padding:7px 0}.studio-clear:disabled{opacity:.4}
.studio-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.studio-product{display:grid;grid-template-columns:80px minmax(0,1fr);gap:10px;padding:12px;border:1px solid #e8dee4;border-radius:12px;background:#fffdfa}
.studio-product>a{display:block;border-radius:7px;overflow:hidden;background:#ede7df;height:104px}
.studio-product>a>img{width:100%;height:100%;object-fit:contain}.studio-product .catalog-photo,.studio-product .no-photo{height:104px;width:100%}
.studio-product h3{font-size:12px;font-weight:500;line-height:1.4;margin:3px 0 6px}.studio-product p{font-size:10px;color:#9b8292;line-height:1.4;margin:0 0 9px}
.studio-product-price{font-size:14px;color:#8c5c7d}.studio-product>button{grid-column:1/-1;min-height:33px;font-size:11px;border-radius:7px;border:1px solid #ddcadc;background:#f5ebf4;color:#885d7d}
.studio-product.is-selected{border-color:#b292ad;background:#f8f0f8}.studio-product>button.is-selected{background:#eadce9;color:#775070}
.studio-fit{display:block;font-size:9px;line-height:1.4;color:#7b926c;margin-bottom:7px}.studio-fit.is-bad{color:#a56461}
.studio-empty{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:20px;padding:32px 20px;border:1px dashed #dfd2dc;border-radius:13px;background:#faf5f8;color:#a18b9b}
.studio-empty>svg{width:45px;height:58px;flex:none}.studio-empty h3{font-size:13px;font-weight:500;margin:0 0 7px;color:#89717f}.studio-empty p{font-size:11px;line-height:1.6;margin:0}
.studio-state-note{font-size:11px;color:#a4695e}.studio-extra-groups{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.studio-extra-groups button{font-size:11px}
.studio-bottom-bar{position:fixed;inset:auto 0 0;z-index:60;padding:12px 24px calc(12px + env(safe-area-inset-bottom));background:#fffcf9f7;border-top:1px solid #e4d4df;backdrop-filter:blur(14px);box-shadow:0 -5px 20px #5c3e5108}
.studio-bottom-bar>div{max-width:1040px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px}
.studio-total{display:grid;gap:4px;min-width:0}.studio-total>span{font-size:10px;color:#9c8193}.studio-total>strong{font:400 25px/1.2 Georgia,serif;color:#8b5e7b;white-space:nowrap}
.studio-bottom-actions{display:flex;gap:9px;align-items:stretch}.studio-bottom-actions>button{min-height:42px;font-size:12px;border-radius:9px;padding:9px 18px}
.studio-save{background:#fbf7fa;border:1px solid #ded0dc;color:#94728b}.studio-bottom-actions>.primary{background:linear-gradient(115deg,#a8759d,#bd7e91);border:0;min-width:220px}
.studio-bottom-actions .cart-add-control>.primary{min-width:0;padding:8px 14px;font-size:12px}
body:has(.studio-page){padding-bottom:90px}body:has(.studio-page) #assistant-launcher.assistant-launcher,body:has(.studio-page) #toast{bottom:95px}
body:has(.studio-page) .atelier-header{min-height:64px;padding-block:8px}body:has(.studio-page) .atelier-header .atelier-brand{font-size:24px}body:has(.studio-page) .atelier-world-tabs a{font-size:13px;padding:10px 4px}
@media(max-width:760px){
 #modal:has(.studio-picker){padding:18px;width:calc(100% - 20px);border-radius:16px}#modal:has(.studio-picker)>h2{font-size:25px;margin-bottom:14px}
 .studio-picker-intro{gap:7px;margin-bottom:12px}.studio-picker-intro p{font-size:11px}.studio-picker-intro>span{font-size:10px;padding:5px 8px}
 .studio-slots{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.studio-slot{padding:10px;border-radius:11px}.studio-slot-top strong{font-size:11px}
 .studio-slot-picture,.studio-page .studio-slot-picture{height:64px;margin:3px 0 6px}.studio-slot-picture>img,.studio-page .studio-slot-picture>img{height:64px}.studio-slot-picture>svg{width:36px;height:42px}
 .studio-slot-name{font-size:10px;min-height:14px}.studio-slot-status{font-size:8px}.studio-progress{flex-wrap:wrap;gap:6px 8px;font-size:10px;margin-top:12px}.studio-progress small{font-size:9px}
 .studio-page.container{padding:12px 12px 30px}.studio-page .breadcrumbs{font-size:10px;margin-bottom:12px}.studio-heading{display:block;margin-bottom:14px}.studio-heading h1{font-size:25px}.studio-heading p:last-child{font-size:10px}.studio-heading>a{display:inline-block;font-size:10px;margin-top:8px}.studio-eyebrow{font-size:8px}
 .studio-workspace{padding:11px;border-radius:13px}
 .studio-catalog-heading{margin:18px 0 10px}.studio-catalog-heading h2{font-size:21px}.studio-catalog-heading p{font-size:9px}.studio-clear{font-size:9px}
 .studio-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.studio-product{grid-template-columns:44px minmax(0,1fr);gap:6px;padding:8px;border-radius:10px}.studio-product>a{height:65px}.studio-product h3{font-size:10px;line-height:1.4;margin:1px 0 4px}.studio-product p{font-size:8px;margin-bottom:5px}.studio-product-price{font-size:11px}.studio-product>button{font-size:10px;min-height:32px}
 .studio-empty{padding:24px 15px;gap:13px}.studio-empty h3{font-size:12px}.studio-empty p{font-size:10px}.studio-empty>svg{width:35px}
 .studio-bottom-bar{bottom:calc(64px + env(safe-area-inset-bottom));padding:9px 12px}.studio-bottom-bar>div{gap:10px;align-items:center}.studio-total>span{font-size:8px}.studio-total>strong{font-size:21px}.studio-bottom-actions{gap:5px;min-width:0}.studio-bottom-actions>button{font-size:10px;padding:7px 10px;min-height:40px}.studio-bottom-actions>.primary{min-width:0;max-width:126px}.studio-bottom-actions .cart-add-control>.primary{font-size:10px;padding:5px 7px}.studio-bottom-actions .cart-extra-link{font-size:9px;min-width:42px;max-width:46px;padding:4px}.studio-save{max-width:58px}
 body:has(.studio-page){padding-bottom:145px}body:has(.studio-page) #assistant-launcher.assistant-launcher,body:has(.studio-page) #toast{bottom:calc(144px + env(safe-area-inset-bottom))}
 body:has(.studio-page) .atelier-header{min-height:0;padding-block:3px 0}body:has(.studio-page) .atelier-header .atelier-brand{font-size:20px}body:has(.studio-page) .atelier-world-tabs a{font-size:11px;padding:5px 4px 7px}
}
@media(prefers-reduced-motion:reduce){.studio-slot{transition:none}.studio-slot:hover{transform:none}}

/* Compact size controls; measurements follow the selected size. */
.studio-sizes{margin:0 0 14px}
.studio-sizes-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:7px}
.studio-sizes-heading>strong{font-size:12px;font-weight:500;color:#755f70}
.studio-sizes-heading>small{font-size:10px;color:#95818e;text-align:right}
.studio-size-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:min(100%,360px);gap:6px}
.studio-size-choice{display:flex;align-items:center;justify-content:center;min-width:0;min-height:36px;height:36px;padding:5px 8px;border:1px solid #e5dbe2;border-radius:9px;background:#fffdfc;color:#826f7c;font-size:12px;font-weight:500;line-height:1.2;white-space:nowrap;box-shadow:0 2px 5px #68445a05}
.studio-size-choice.is-selected{background:linear-gradient(145deg,#ede0f0,#f4e4eb);color:#754d6b;font-weight:600;border-color:#b89eb2;box-shadow:inset 0 2px 4px #96678818}
.studio-size-choice:focus-visible{outline:2px solid #a17797;outline-offset:2px}
.studio-size-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 7px;margin:7px 0 0;font-size:11px;line-height:1.5;color:#917b89}
.studio-size-summary>span:not(.sr-only){white-space:nowrap}.studio-size-summary strong{font-weight:500;color:#745a6c}.studio-size-summary i{font-style:normal;color:#b5a0ae}
#modal:has(.studio-picker){max-width:calc(100vw - 24px)}
@media(max-width:760px){
 .studio-sizes{margin-bottom:11px}.studio-sizes-heading{margin-bottom:6px}.studio-sizes-heading>strong{font-size:11px}.studio-sizes-heading>small{font-size:9px;max-width:175px}
 .studio-size-choices{gap:4px}.studio-size-choice{min-height:34px;height:34px;padding:4px 2px;border-radius:8px;font-size:11px}
 .studio-size-summary{margin-top:6px;font-size:10px;gap:4px 6px}
}

.studio-slot:nth-child(5){--slot:#f7eaf0;--slot-ink:#af7c97}
@media(max-width:760px){
 .studio-slots{grid-template-columns:minmax(0,1fr);gap:6px}
 .studio-slot{display:grid;grid-template-columns:38px minmax(0,1fr) 20px;grid-template-rows:auto auto auto;align-items:center;column-gap:9px;row-gap:1px;padding:8px 10px;min-height:64px;border-radius:10px}
 .studio-slot-top{display:contents}.studio-slot-top>strong{grid-column:2;grid-row:1;font-size:12px;line-height:1.3}
 .studio-slot-check{grid-column:3;grid-row:1/4;align-self:center;width:19px;height:19px}
 .studio-slot-picture,.studio-page .studio-slot-picture{grid-column:1;grid-row:1/4;width:38px;height:44px;margin:0}
 .studio-slot-picture>img,.studio-page .studio-slot-picture>img{width:38px;height:44px}
 .studio-slot-picture>svg{width:28px;height:33px}
 .studio-slot-picture>.catalog-photo,.studio-slot-picture>.no-photo{width:34px;height:44px}
 .studio-slot-name,.studio-page .studio-slot-name{grid-column:2;grid-row:2;font-size:10px;line-height:1.3;min-height:0;-webkit-line-clamp:1}
 .studio-slot-status{grid-column:2;grid-row:3;font-size:9px;line-height:1.3;margin:0}
 .studio-slot:hover{transform:none}
 .studio-progress{gap:6px}.studio-progress-dots{gap:3px}.studio-progress-dots i{width:12px}
}

.studio-catalog-section{scroll-margin-top:100px}
.studio-catalog-section h2:focus{outline:none}
.studio-cuts{margin:0 0 14px}
.studio-cuts>strong{display:block;margin-bottom:7px;font-size:12px;font-weight:500;color:#755f70}
.studio-cut-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;max-width:460px}
.studio-cut-choice{min-width:0;min-height:42px;padding:7px 10px;border:1px solid #e5dbe2;border-radius:9px;background:#fffdfc;color:#826f7c;font-size:12px;line-height:1.25;box-shadow:0 2px 5px #68445a05}
.studio-cut-choice.is-selected{background:linear-gradient(145deg,#ede0f0,#f4e4eb);color:#754d6b;font-weight:600;border-color:#b89eb2;box-shadow:inset 0 2px 4px #96678818}
.studio-cut-choice:focus-visible{outline:2px solid #a17797;outline-offset:2px}
@media(max-width:760px){.studio-cuts{margin-bottom:11px}.studio-cuts>strong{font-size:11px}.studio-cut-choices{gap:4px}.studio-cut-choice{min-height:42px;padding:6px 3px;font-size:11px}}
.studio-slot.is-current{border-style:solid;border-color:var(--slot-ink);box-shadow:0 0 0 2px #c2a4bc33}

/* Saved teams sit beside the save action and remain available when empty. */
.studio-bottom-actions>.studio-created-teams{display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 14px;border:1px solid #d4b7d0;border-radius:9px;background:#f2e7f0;color:#714b6a;font-size:12px;line-height:1.3;text-align:center}
.studio-team-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 5px;border-radius:11px;background:#805a79;color:white;font-size:11px;font-variant-numeric:tabular-nums;flex-shrink:0}
.studio-created-teams:focus-visible{outline:2px solid #a17797;outline-offset:3px}
@media(max-width:700px){
 .studio-bottom-bar>div{flex-wrap:wrap;gap:7px}
 .studio-bottom-actions{width:100%;display:flex;gap:6px}
 .studio-bottom-actions>.studio-save{max-width:none;flex:0 1 22%;padding:7px 5px}
 .studio-bottom-actions>.studio-created-teams{flex:1;min-width:0;font-size:10px;padding:7px 6px;gap:4px;min-height:40px}
 .studio-bottom-actions>.primary,.studio-bottom-actions>.cart-add-control{flex:1;min-width:0;max-width:none}
 .studio-bottom-actions>.primary{padding:7px 6px}
 .studio-team-count{min-width:20px;height:20px;font-size:10px}
 .studio-page.container{padding-bottom:100px}
}

.team-series-sizes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
.team-series-size{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #ded0dc;border-radius:10px;cursor:pointer}
.team-series-size input{width:18px;height:18px;flex-shrink:0;accent-color:#805a79}
.team-series-size span{display:grid;gap:4px}.team-series-size small{font-size:12px;color:#786571}
.team-series-size:has(input:checked){background:#f2e7f0;border-color:#a17797}
.team-series-size:has(input:disabled){opacity:.55;cursor:default}
.team-series-total{font-weight:600}

.team-series-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.team-series-actions>button{min-height:44px;padding:10px;font-size:13px}

.saved-team-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.saved-team-actions>*{flex:1;min-height:44px;text-align:center}.team-delete{color:#a33b40;background:#fffafa;border:1px solid #e7c9ca}.team-delete:hover{background:#faeeee}

.teams-empty{min-height:60vh;min-height:60dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 16px;gap:16px}
.teams-empty h1{font:400 clamp(26px,4vw,40px)/1.2 Georgia,serif;margin:0}
.teams-empty p{margin:0;color:#806f77;font-size:14px;line-height:1.6}
.teams-empty>.btn{min-height:44px;margin-top:6px;padding:12px 28px}

.mermaid-size-guide summary{cursor:pointer;font-weight:600}.mermaid-size-guide p{font-size:14px;line-height:1.6}.mermaid-size-guide th,.mermaid-size-guide td{padding:10px;white-space:nowrap}.mermaid-selected-size{background:#f2e7f0}.mermaid-size-guide .table-wrap{overflow-x:auto}

.mermaid-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:24px 0 32px}
.mermaid-category-card{display:block;overflow:hidden;border:1px solid #e4d9ca;border-radius:12px;background:#fffdfa;text-decoration:none;color:inherit}
.mermaid-category-card>img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:#fff}
.mermaid-category-card>div{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:16px}
.mermaid-category-card h2{font:400 23px/1.25 Georgia,serif;margin:0}
.mermaid-category-card:focus-visible{outline:2px solid #976944;outline-offset:3px}
@media(max-width:700px){.mermaid-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mermaid-category-card h2{font-size:19px}.mermaid-category-card>div{padding:12px}}

@media(min-width:701px) and (max-width:1100px){.mermaid-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Center the four covers on desktop; use two complete rows on mobile. */
.mermaid-category-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-width:880px;margin:24px auto 32px;gap:18px;align-items:stretch}
.mermaid-category-card h2{font-size:19px;line-height:1.3}
.mermaid-category-card>div{padding:13px 12px;min-height:68px}
@media(max-width:760px){.mermaid-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:560px;gap:14px}.mermaid-category-card>div{padding:12px 10px;min-height:60px}.mermaid-category-card h2{font-size:18px}}
@media(max-width:430px){.mermaid-category-grid{gap:12px}.mermaid-category-card h2{font-size:17px}}

/* Fit the complete measurement chart into a phone without horizontal scrolling. */
.mermaid-guide-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0}
.mermaid-guide-toolbar p{margin:0}.mermaid-guide-toolbar button{flex-shrink:0}
.mermaid-size-guide .table-wrap{overflow:visible;min-width:0}
.mermaid-size-guide table{width:100%;min-width:0;table-layout:fixed;font-variant-numeric:tabular-nums}
.mermaid-size-guide th,.mermaid-size-guide td{text-align:center;letter-spacing:0;white-space:nowrap;padding:10px 4px}
.mermaid-size-guide th{text-transform:none}
.mermaid-guide-dialog{position:fixed;inset:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;padding:20px;border:0;border-radius:0;overflow:auto;background:#faf8f4}
.mermaid-guide-dialog::backdrop{background:#0008}
.mermaid-guide-close{display:flex;margin:0 0 16px auto}
.mermaid-guide-dialog .mermaid-size-guide{max-width:1000px;margin:0 auto}
@media(max-width:760px){
 .mermaid-size-guide.panel{padding:14px 10px;border-radius:14px}
 .mermaid-size-guide summary{font-size:14px;line-height:1.4}
 .mermaid-size-guide p{font-size:12px;margin-bottom:12px}
 .mermaid-guide-toolbar p{font-size:11px;margin:0}
 .mermaid-guide-toolbar button{font-size:11px;padding:6px 9px;min-height:44px}
 .mermaid-size-guide table{font-size:12px}
 .mermaid-size-guide th,.mermaid-size-guide td{padding:10px 2px;font-size:12px}
 .mermaid-guide-dialog{padding:12px}
}
@media(max-width:360px){.mermaid-size-guide th,.mermaid-size-guide td{font-size:11px}}

.mermaid-model-choices{display:flex;gap:12px;margin:22px 0;flex-wrap:wrap}
.mermaid-model-choices .btn{min-height:48px;text-align:center}
.mermaid-model-choices .is-selected{background:#45493b;border-color:#45493b;color:#fff}
@media(max-width:760px){.mermaid-model-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mermaid-model-choices .btn{font-size:12px;padding:10px 8px;line-height:1.4}}

.studio-workspace{scroll-margin-top:150px}.studio-skirt-controls>strong:not(:first-child){margin-top:12px}.studio-skirt-controls .studio-cut-choices{max-width:650px}.studio-skirt-controls .studio-cut-choices:first-of-type,.studio-skirt-panels{grid-template-columns:repeat(2,minmax(0,1fr));max-width:480px}.studio-skirt-panels{margin-top:8px}

.studio-skirt-controls .studio-cut-choices:first-of-type{grid-template-columns:repeat(4,minmax(0,1fr));max-width:650px}
@media(max-width:760px){.studio-skirt-controls .studio-cut-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-skirt-controls .studio-cut-choices:first-of-type{grid-template-columns:repeat(2,minmax(0,1fr))}}
