:root{--green:#173c32;--cream:#faf7ef;--text:#243e34;--muted:#647063;--line:#d9d5c6;--gold:#aa8c4c}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--text);font:16px/1.5 Arial,sans-serif}header{background:var(--green);color:var(--cream);padding:20px max(24px,calc((100vw - 1160px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px}header a{color:inherit;text-decoration:none;font:26px Georgia,serif;letter-spacing:3px}header small{display:block;font:9px Arial,sans-serif;letter-spacing:3px;margin-top:5px}header>span{font-size:12px;color:#ddd4b8}button,input{font:inherit}button{min-height:48px;padding:12px 18px;border:1px solid var(--line);border-radius:10px;background:#fffdf7;color:var(--text);cursor:pointer}button:hover{background:#e8eadf}button.primary,button[aria-pressed=true]{background:var(--green);color:var(--cream);border-color:var(--green)}button.quiet{border:0;background:transparent;padding:6px 0;min-height:44px;font-size:13px;text-decoration:underline;text-underline-offset:4px}header button{color:var(--cream)}button:focus-visible,input:focus-visible{outline:3px solid var(--gold);outline-offset:3px}button:disabled{opacity:.4;cursor:default}main{max-width:1160px;margin:42px auto 0;padding:0 24px;display:grid;grid-template-columns:1.1fr 1fr;gap:48px;align-items:start}.board-wrap{position:sticky;top:20px;background:#f0eada;border-radius:20px;padding:22px}.board-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}#piece{font:23px Georgia,serif}#count{font-size:12px;color:var(--muted)}#board{width:100%;height:auto;display:block;max-height:490px}#board [data-bead]{cursor:pointer}#board [data-bead]:hover{stroke:var(--green);stroke-width:3}#measurement{font-size:13px;text-align:center;color:var(--muted);min-height:20px;margin:0}.conversation{padding-top:7px;min-width:0}.guide-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:24px}#chapter{font-size:11px;letter-spacing:2px;color:var(--muted)}h1{font:36px/1.2 Georgia,serif;font-weight:400;margin:0 0 13px}#hint{color:var(--muted);font-size:15px;margin:0 0 25px;min-height:22px}#answer{display:grid;gap:10px}.choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.choices .wide{grid-column:1/-1}.choice{display:flex;align-items:center;justify-content:center;gap:12px;min-height:61px}.stone{justify-content:flex-start}.swatch{display:inline-block;width:33px;height:33px;border-radius:50%;flex:none;box-shadow:inset -5px -5px 8px #0002,inset 3px 3px 5px #fff6}.faceted{clip-path:polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%);border-radius:0}.next-stone{display:flex;align-items:center;gap:14px;padding:20px;background:#eceee2;border-radius:12px;margin-bottom:5px}.next-stone .swatch{width:42px;height:42px}.next-stone span:last-child{font-size:14px;color:var(--muted)}label{font-size:14px;display:block;margin:8px 0}input{background:#fffdf7;border:1px solid var(--line);border-radius:9px;min-height:50px;padding:12px;color:var(--text);width:100%;min-width:0}.inline{display:flex;align-items:center;gap:10px}.inline input{flex:1}.inline>span{min-width:28px}.unit-buttons{display:flex;gap:8px;margin-bottom:14px}.unit-buttons button{flex:1;font-size:14px}.conversion{color:var(--muted);font-size:13px;min-height:22px;margin:5px 0 10px}.shade-help{font-size:14px;color:var(--muted);margin:0}.palette{display:flex;flex-wrap:wrap;gap:9px;margin:8px 0}.palette button{display:flex;align-items:center;gap:7px;padding:12px;font-size:14px}.palette button[aria-pressed=true]{box-shadow:0 0 0 2px var(--gold)}#status{font-size:14px;color:var(--green);min-height:20px}#status:empty{display:none}.review{display:grid;grid-template-columns:110px 1fr;gap:14px;font-size:14px;margin:0 0 16px}.review dt{color:var(--muted)}.review dd{margin:0}.review-buttons{display:flex;flex-wrap:wrap;gap:8px}.review-buttons button{flex:1;font-size:14px}#editing{border-top:1px solid var(--line);padding-top:12px;margin-top:20px}footer{max-width:1160px;margin:32px auto;padding:0 24px;font-size:11px;color:var(--muted)}[hidden]{display:none!important}
@media(max-width:720px){header{padding:13px 16px;gap:10px}header a{font-size:21px;letter-spacing:2px}header>span{display:none}main{grid-template-columns:1fr;gap:22px;margin-top:18px;padding:0 14px}.board-wrap{position:sticky;top:0;z-index:3;padding:12px 16px;border-radius:13px;box-shadow:0 5px 12px #173c3210}#board{max-height:205px}#piece{font-size:20px}#measurement{font-size:12px;min-height:18px}#count{font-size:11px}.conversation{padding:0 5px;min-height:330px}.guide-top{margin-bottom:12px}h1{font-size:29px}#hint{font-size:14px;margin-bottom:18px}.choice{min-height:55px;font-size:14px;padding:11px}.swatch{width:29px;height:29px}.palette button{font-size:13px;padding:10px}.review{grid-template-columns:90px 1fr;gap:12px}.review-buttons{display:grid;grid-template-columns:1fr 1fr}footer{margin:25px auto;padding:0 18px}.next-stone{padding:14px}.guide-top button{min-height:36px}}
@media(max-height:700px) and (max-width:720px){#board{max-height:145px}.board-wrap{padding:8px 12px}#piece{font-size:18px}#measurement{font-size:11px}.guide-top{margin-bottom:6px}h1{font-size:26px}}
@media print{header,.guide-top,button,input,label,footer,#editing,#status{display:none!important}body{background:white}main{display:block;margin:0}.board-wrap{position:static;max-width:500px;margin:auto;print-color-adjust:exact;-webkit-print-color-adjust:exact}#board{max-height:350px}.conversation{margin-top:25px}h1{font-size:26px}.review{font-size:13px}#hint{font-size:12px}}
.board-wrap{background:#eee9db;padding:16px}#board{max-height:630px}#measurement{font-size:12px;margin-top:9px}#board-caption{font-size:12px;color:var(--muted);margin:8px 0 0;text-align:center}.closeup{border-top:1px solid #d3cebc;margin-top:12px;padding-top:10px}#closeup-label{font-size:11px;color:var(--muted)}#bead-closeup{display:grid;grid-template-columns:repeat(8,1fr);gap:3px;margin-top:8px}.closeup-bead{display:flex;align-items:center;flex-direction:column;gap:5px;min-height:51px;padding:5px 1px;border-color:transparent;background:transparent;font-size:10px}.closeup-bead .swatch{width:25px;height:25px}.closeup-bead[aria-pressed=true]{background:#dfe5d5;color:var(--green);border-color:var(--gold)}
@media(max-width:720px){main{margin-top:12px;gap:20px}.board-wrap{position:static;padding:10px 12px}#board{max-height:none;width:100%;height:auto}.closeup-bead{min-height:48px}#measurement{font-size:12px;line-height:1.5}#board-caption{font-size:12px}.conversation{padding-bottom:16px}}
@media(max-height:700px) and (max-width:720px){#board{max-height:none}#measurement{font-size:12px}}
@media print{#board-caption,.closeup{display:none!important}#board{max-height:500px!important}.board-wrap{max-width:420px}#measurement{font-size:11px}}
.board-tools{display:flex;align-items:center;gap:9px}#board-expand{display:none}
@media(max-width:720px){.board-wrap{position:sticky;top:0;z-index:3;box-shadow:0 5px 12px #173c3214}.board-heading{gap:5px}#piece{font-size:17px}.board-tools{align-items:flex-end;flex-direction:column;gap:0}#count{font-size:10px}#board-expand{display:block;min-height:28px;font-size:11px;padding:2px 0}#board{max-height:min(35svh,270px);width:100%;height:auto}#measurement{font-size:11px;line-height:1.4;margin-top:4px}#board-caption{display:none}.closeup{margin-top:7px;padding-top:5px}#closeup-label{font-size:10px}#bead-closeup{margin-top:3px}.closeup-bead{min-height:44px}.closeup-bead .swatch{width:23px;height:23px}.board-wrap.expanded{position:static}.board-wrap.expanded #board{max-height:none}.board-wrap.expanded #board-caption{display:block}}
@media print{.board-tools button{display:none!important}}
.stone-list{max-height:285px;overflow:auto;padding:3px}.real-palette{max-height:295px;overflow:auto;padding:4px}.real-palette button{font-size:12px}.shade-cards{margin-top:3px}.shade-cards summary,.export-options summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:14px}.shade-cards[open]{display:grid;grid-template-columns:1fr 1fr;gap:8px}.shade-cards summary{grid-column:1/-1}.shade-crop{position:relative;display:block;overflow:hidden;width:100%;border-radius:8px}.shade-crop img{position:absolute;max-width:none;height:auto}.export-options{border-top:1px solid var(--line);padding-top:8px;margin-top:10px}.export-options .review-buttons{margin:20px 0 10px}.mirror-check{font-size:13px;display:flex;align-items:center;gap:8px}.mirror-check input{width:18px;min-height:18px;accent-color:var(--green)}
.shade-preview{padding:0;overflow:hidden;background:transparent;border:1px solid var(--line);width:100%}#shade-dialog{width:850px;max-width:95vw;max-height:92svh;overflow:auto;padding:15px;background:var(--cream);color:var(--text);border:1px solid var(--line);border-radius:12px}#shade-dialog::backdrop{background:#173c3288}#shade-close{position:sticky;top:0;z-index:2;margin-bottom:10px}#shade-big-crop{width:100%}
.selected-shades{font-size:14px;color:var(--green);margin:0}
@media print{.conversation,.board-heading,.closeup,#board-caption,#measurement,dialog{display:none!important}.board-wrap{background:transparent;padding:0;box-shadow:none}}
/* Keep the complete working board at its natural size. */
.board-viewport{width:100%;overflow:visible}
.board-wrap[data-view="overview"] #board{width:100%;height:auto;min-width:0;max-height:640px}
.board-wrap[data-view="finished"] #board{width:100%;height:auto;max-height:620px}
.board-wrap[data-view="finished"] .closeup{display:none}
#board-expand{display:none!important}
#bead-closeup{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px}
.closeup-bead{min-height:52px;padding:5px 1px;font-size:12px}
.closeup-bead .swatch{width:28px;height:28px}
#closeup-label{font-size:12px}
#count{font-weight:700;color:var(--green)}
#design-name{border:2px solid var(--gold);background:#fffdf7}
@media(max-width:720px){
.board-wrap{position:static;padding:12px}
.board-wrap[data-view="overview"] #board{max-height:380px}
.board-wrap[data-view="finished"] #board{max-height:420px}
.board-tools{flex-direction:row;align-items:center}
#count{font-size:12px}
#board-caption{display:block;font-size:11px}
}

#cord-shade-request{font:inherit;width:100%;min-height:90px;resize:vertical;border:1px solid var(--line);border-radius:9px;padding:12px;background:#fffdf7;color:var(--text)}

.bead-groups{display:grid;gap:10px;max-height:260px;overflow:auto}
.bead-group{display:grid;grid-template-columns:minmax(0,1fr) 75px 65px;gap:8px;align-items:center;padding:8px;background:#eceee2;border-radius:9px}
.bead-group label{font-size:13px;margin:0}.bead-group input{min-height:42px;padding:8px}.bead-group button{min-height:42px;padding:8px;font-size:12px}
.bead-edit-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;max-height:280px;overflow:auto}
.bead-edit-item{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:58px;padding:5px;font-size:12px}
.bead-edit-item .swatch{width:24px;height:24px}.bead-edit-item[aria-pressed=true]{outline:2px solid var(--gold)}

.typed-pattern{padding:18px 20px;border-top:1px solid #d9d6c9;text-align:left}.typed-pattern summary{cursor:pointer;font-weight:600}.typed-pattern label{display:block;margin:14px 0 6px}.typed-pattern textarea,.typed-pattern select,.typed-pattern input{box-sizing:border-box;width:100%;max-width:100%;padding:10px;font:inherit}.typed-pattern button{margin:12px 8px 0 0}.typed-pattern textarea{resize:vertical}

.studio-intro{padding:16px 20px;border-top:1px solid #d9d6c9}.studio-intro h2{font:24px Georgia,serif;margin:0 0 8px}.studio-intro p{line-height:1.6;margin:0}.typed-pattern #typed-preview{line-height:1.6;overflow-wrap:anywhere}

.typed-tools{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.typed-tools button{width:auto;min-height:40px;padding:8px 12px;font-size:.9rem}#typed-repeat-dialog{width:min(480px,calc(100vw - 32px));max-height:85vh;overflow:auto;border:1px solid #b39754;border-radius:16px;padding:24px;color:#243a2f;background:#fffdf6}#typed-repeat-dialog::backdrop{background:#152c2466}#typed-repeat-dialog label{display:block;margin-top:12px}#typed-repeat-dialog input[type=checkbox]{width:auto;margin-right:8px}#typed-repeat-groups[hidden]{display:none}#typed-repeat-error{color:#9b2929}

#numbered-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 24px));max-height:85svh;overflow:auto;border:1px solid #b39754;border-radius:16px;padding:24px;color:#243a2f;background:#fffdf6}#numbered-dialog::backdrop{background:#152c2466}#numbered-dialog label{display:block;margin:14px 0 6px}#numbered-text{box-sizing:border-box;width:100%;max-width:100%;padding:10px;font:inherit;resize:vertical}#numbered-error{color:#9b2929}

.review-progress{padding:16px;background:#e8ecdf;border:1px solid #a7b394;border-radius:12px;margin:0 0 20px}.review-progress h3{margin:0 0 10px;font-size:18px}.review-progress ol{padding:0;list-style-position:inside;margin:0;display:grid;gap:8px}.review-progress li{padding:6px 10px;border:1px solid #c9cfbd;border-radius:8px;background:#faf8f0}.review-progress li[data-state=current]{border:2px solid #967532}.review-progress button{text-align:left;min-height:44px;white-space:normal;max-width:100%;background:transparent;border:0;padding:5px;font-size:14px}.review-progress li[data-state=complete]{color:#315a40}.bead-edit-item small,.closeup-bead small{display:block;font-size:10px}

/* One editing workspace, with one shared set of controls. */
.editor-modes{grid-column:1/-1;padding:18px 20px;background:#eee9db;border:1px solid var(--line);border-radius:14px}
.editor-modes h2,.typed-pattern h2{font:24px Georgia,serif;margin:0 0 12px}
.mode-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.mode-buttons button{flex:1;min-width:180px}
main.typing-mode{grid-template-columns:minmax(0,1fr);max-width:900px;gap:20px}
.typing-mode .board-wrap{position:static;min-width:0}
.typing-mode #board{max-height:490px}
.typing-mode .typed-pattern{margin-top:16px;padding:20px 0 0}
#typed-control-dock .conversation{margin-top:22px;padding:22px 0 0;border-top:1px solid var(--line)}
#typed-control-dock h1{font-size:27px}
#typed-control-dock .guide-top #back,#typed-control-dock .guide-top #redo{display:none}
#typed-control-dock .choices{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.typing-mode .board-wrap select{font:inherit;max-width:100%;width:100%;padding:10px;border:1px solid var(--line);background:#fffdf7;color:var(--text);border-radius:9px}
@media(max-width:720px){.mode-buttons{flex-direction:column}.mode-buttons button{width:100%;min-width:0}.editor-modes{padding:14px}.typing-mode #board{max-height:330px}.typed-pattern{padding:16px 0}.typed-tools button{margin:0}.typing-mode #bead-closeup{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media print{.editor-modes,.typed-pattern,#board-direct-controls{display:none!important}}

/* Typed design has its own toolbar; the board guide is never duplicated. */
.typing-mode > .conversation,.typing-mode #board-direct-controls,.typing-mode .closeup{display:none!important}
#typed-finish{width:100%;margin-top:12px}#typed-completion{margin-top:18px}
#fill-dialog{box-sizing:border-box;width:min(640px,calc(100vw - 24px));max-height:90svh;overflow:auto;border:1px solid var(--gold);border-radius:16px;padding:24px;background:var(--cream);color:var(--text)}
#fill-dialog::backdrop{background:#152c2477}#fill-dialog h2{font:28px Georgia,serif;margin-top:0}#fill-dialog select{width:100%;padding:12px;border:1px solid var(--line);border-radius:9px;background:#fffdf7;color:var(--text);font:inherit}#fill-summary{font-weight:600}#fill-warning{color:#78551e;font-size:14px}#fill-error{color:#9b2929}.fill-preview{display:grid;grid-template-columns:repeat(auto-fit,24px);gap:7px;margin:18px 0;max-height:220px;overflow:auto}.fill-preview .swatch{width:24px;height:24px}#fill-corrections button{font-size:14px}
@media(max-width:720px){#fill-dialog{padding:18px}.typed-tools button{flex:1 1 140px}.fill-preview{grid-template-columns:repeat(auto-fit,20px);gap:6px}.fill-preview .swatch{width:20px;height:20px}}

/* Complete pattern stays accessible in both editors. */
.board-wrap{position:static}
#all-beads-panel{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
#all-beads-panel summary{font-weight:700;cursor:pointer;padding:10px 0}
.all-beads-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:8px;margin-top:12px}
.all-bead{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;min-height:108px;padding:9px 5px;font-size:12px;overflow-wrap:anywhere}
.all-bead strong{font-size:16px}.all-bead .swatch{width:24px;height:24px}.all-bead small{font-size:11px}
.guru-pattern-bead{grid-column:1/-1}#all-beads-panel[hidden]{display:none}
@media(max-width:720px){.all-beads-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.all-bead{min-height:104px}}
@media print{#all-beads-panel{display:none!important}}

header #open-design{background:#faf7ef;color:#173c32;font-size:14px;flex-shrink:0}header #new{flex-shrink:0}@media(max-width:720px){header{flex-wrap:wrap}header #open-design{margin-left:auto;font-size:12px;padding:8px 10px;min-height:40px}}

/* Phone navigation: keep the picture one tap away without a long index. */
#mobile-design-nav{display:none}
@media(max-width:720px){
 body.mobile-design-active{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
 #mobile-design-nav:not([hidden]){display:flex;position:fixed;bottom:0;left:0;right:0;z-index:800;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:#faf7ef;border-top:1px solid #cbb88d;box-shadow:0 -4px 16px #173c3214}
 #mobile-design-nav button{flex:1;min-width:0;min-height:46px;padding:10px 6px;font-size:13px;line-height:1.25;touch-action:manipulation}
 #mobile-view-board{background:#173c32;color:#fff;border-color:#173c32}
 body.mobile-design-active #tara-launch{bottom:calc(80px + env(safe-area-inset-bottom,0px))}
 #all-beads-grid{max-height:55svh;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 #all-beads-panel{margin-top:12px;padding-top:8px}
 .board-heading,.conversation,.typed-pattern{scroll-margin-top:12px}
}
@media print{#mobile-design-nav{display:none!important}}

/* One compact touch workspace for phones and tablets. */
#bead-closeup{display:flex;overflow-x:auto;gap:8px;scroll-snap-type:x proximity;overscroll-behavior-x:contain;touch-action:pan-x pan-y;padding:8px 0 12px;max-width:100%}
#bead-closeup .closeup-bead{flex:0 0 64px;min-width:64px;scroll-snap-align:center;min-height:100px;padding:7px 3px;font-size:15px}
#bead-closeup .swatch{width:34px;height:34px}#bead-closeup small{font-size:12px}
.bead-jump{display:flex;align-items:center;gap:8px;margin-top:8px}.bead-jump label{margin:0;font-size:14px}.bead-jump input{width:80px;min-width:0;min-height:44px}.bead-jump button{min-height:44px;margin:0}
#range-repeat-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-height:88svh;overflow:auto;border:1px solid var(--gold);border-radius:16px;padding:22px;background:var(--cream);color:var(--text)}
#range-repeat-dialog::backdrop{background:#152c2477}.range-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.range-fields input{box-sizing:border-box;width:100%;font:inherit;min-height:44px}#range-error{color:#9b2929}
@media(max-width:1100px){
 main{grid-template-columns:minmax(0,1fr);gap:16px}.board-wrap{position:static;min-width:0;padding:16px}.board-viewport{max-height:52svh;overflow:auto}#board{max-height:52svh;width:100%}
 #board-direct-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#board-direct-controls button{width:100%;min-width:0;min-height:46px;font-size:14px;line-height:1.3;padding:10px 8px;margin:0}
 #board-add,#board-range-repeat{background:#173c32;color:white}#board-caption{font-size:13px}.conversation{padding:18px}.conversation h1{font-size:26px}
 body.mobile-design-active{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))}
 #mobile-design-nav:not([hidden]){display:flex;position:fixed;bottom:0;left:0;right:0;z-index:800;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:#faf7ef;border-top:1px solid #cbb88d}
 #mobile-design-nav button{flex:1;min-width:0;min-height:46px;font-size:13px;padding:10px 6px}body.mobile-design-active #tara-launch{bottom:calc(82px + env(safe-area-inset-bottom,0px));font-size:14px;padding:10px 14px}
 dialog{box-sizing:border-box;max-width:calc(100vw - 24px);max-height:85svh;overflow:auto}dialog input,dialog select{font-size:16px;min-height:44px}
}

/* Mobile studio: a live picture, one toolbar and focused bottom sheets. */
#mobile-workspace{display:none}
@media screen and (max-width:1100px){
 #mobile-workspace{display:block}
 body.mobile-premium{padding-top:158px;padding-bottom:calc(88px + env(safe-area-inset-bottom,0px));background:#f8f6f0;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
 body.mobile-premium>header{padding:12px 18px;background:transparent;color:var(--green);border-bottom:1px solid #e7e1d5}body.mobile-premium>header a{font-size:17px}body.mobile-premium>header small{display:none}body.mobile-premium>header #new{color:var(--green)}
 body.mobile-premium main{display:flex;flex-direction:column;margin:14px auto;padding:0 16px;gap:16px;max-width:680px}
 body.mobile-premium .board-wrap{width:100%;padding:0;background:transparent;box-shadow:none;border-radius:0;position:static}
 body.mobile-premium .board-heading,body.mobile-premium #board-viewport,body.mobile-premium #board-caption,body.mobile-premium .closeup,body.mobile-premium #board-direct-controls,body.mobile-premium #typed-direct-controls,body.mobile-premium #mobile-design-nav,body.mobile-premium #measurement,body.mobile-premium #making-size-note{display:none!important}
 body.mobile-premium #editor-modes{padding:12px 0;margin:0;border:0;background:transparent;width:100%}body.mobile-premium #editor-modes h2{display:none}body.mobile-premium .mode-buttons{flex-direction:row;gap:6px}body.mobile-premium .mode-buttons button{font-size:12px;padding:8px;min-height:44px}body.mobile-premium #mode-help{display:none}
 #mobile-preview:not([hidden]){display:block;position:fixed;top:0;left:0;right:0;z-index:810;background:#fffdf8;border-bottom:1px solid #ded5bf;padding:8px 16px 9px;box-shadow:0 4px 20px #173c3209;height:158px}
 #mobile-enlarge{display:flex;align-items:center;gap:18px;border:0;background:transparent;width:100%;padding:0;text-align:left;min-height:112px;border-radius:0}
 #mobile-mini-picture{display:block;width:94px;height:112px;flex:none;background:#efeee5;border-radius:12px;overflow:hidden}#mobile-mini-picture svg{display:block;width:100%;height:100%}
 .preview-copy{display:grid;gap:4px;min-width:0}.preview-copy small{font-size:9px;letter-spacing:2px;color:#8e7742}.preview-copy strong{font:22px/1.15 Georgia,serif}.preview-copy>span{font-size:12px;color:#647063}.preview-copy .preview-link{font-size:11px;color:#94763c}
 #mobile-selection{font-size:12px;line-height:1.3;margin:7px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#345346}
 #mobile-tools:not([hidden]){position:fixed;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));bottom:0;left:0;right:0;padding:6px 8px calc(8px + env(safe-area-inset-bottom,0px));gap:2px;background:#fffdf8;border-top:1px solid #ded5bf;box-shadow:0 -5px 24px #173c3208;z-index:820}
 #mobile-tools button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;border-radius:12px;background:transparent;min-height:57px;padding:3px 0;font:10px/1.2 system-ui;color:#254638;touch-action:manipulation}#mobile-tools button span{font-size:23px;line-height:1.1}#mobile-tools button:first-child{background:#173c32;color:#fff}#mobile-tools button:disabled{opacity:.3}
 body.mobile-premium #tara-launch{display:none!important}
 body.mobile-premium .conversation{padding:18px;background:#fffdf8;border:1px solid #e6e0d3;border-radius:18px;width:100%;min-height:0}body.mobile-premium h1{font:26px/1.2 Georgia,serif}body.mobile-premium #hint{font-size:13px;margin-bottom:16px}body.mobile-premium .guide-top{margin-bottom:12px}
 body.mobile-premium input,body.mobile-premium select,body.mobile-premium textarea{font-size:16px!important;min-height:48px;border-radius:12px}body.mobile-premium button{border-radius:12px;min-height:46px}body.mobile-premium .typed-pattern{padding:16px;background:#fffdf8;border:1px solid #e6e0d3;border-radius:18px}
 body.mobile-premium dialog{position:fixed;inset:auto 0 0;margin:0 auto!important;box-sizing:border-box;width:min(680px,100%)!important;max-width:100%!important;max-height:calc(100svh - 18px)!important;padding:22px 20px calc(20px + env(safe-area-inset-bottom,0px))!important;border:1px solid #ded5bf;border-bottom:0;border-radius:24px 24px 0 0!important;background:#fffdf8;color:var(--text);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 -12px 60px #173c3220}
 body.mobile-premium dialog::backdrop{background:#162e255c;backdrop-filter:blur(3px)}body.mobile-premium dialog h2{font:26px/1.2 Georgia,serif;margin:0 0 18px}body.mobile-premium dialog .typed-tools{position:sticky;bottom:calc(-20px - env(safe-area-inset-bottom,0px));margin-bottom:0;background:#fffdf8;padding:12px 0;display:flex;border-top:1px solid #e6e0d3}body.mobile-premium dialog .typed-tools button{flex:1;min-height:48px;font-size:14px}
 .sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.sheet-heading h2{margin:0!important}.sheet-heading>span{font-size:11px;letter-spacing:2px;color:#8e7742}.sheet-heading button{min-height:44px;padding:8px 13px}
 #mobile-extra-tools{display:grid;grid-template-columns:1fr 1fr;gap:9px}#mobile-extra-tools button{font-size:13px;min-height:52px;text-align:left;padding:12px}
 #mobile-guide-sheet .conversation{border:0;padding:0;min-height:0}#mobile-guide-sheet .guide-top{display:none}#mobile-large-picture svg{display:block;width:100%;max-height:68svh}#mobile-large-picture [data-bead]{cursor:pointer}
 body.mobile-premium #all-beads-panel{margin:0;padding:0;border:0}body.mobile-premium #all-beads-panel summary{padding:14px 16px;background:#fffdf8;border:1px solid #e6e0d3;border-radius:12px;font-size:14px;font-weight:500}body.mobile-premium #all-beads-grid{scroll-margin-top:172px}
 @media(max-height:620px){body.mobile-premium{padding-top:120px}#mobile-preview:not([hidden]){height:120px}#mobile-enlarge{min-height:78px}#mobile-mini-picture{height:78px;width:66px}.preview-copy strong{font-size:19px}#mobile-selection{margin-top:5px}}
}
@media print{#mobile-workspace{display:none!important}}

@media screen and (max-width:1100px){
 body.mobile-premium #board-viewport{display:block!important;max-height:38svh;overflow:hidden;border-radius:18px;background:#e8e9df;margin-bottom:14px;padding:10px}
 body.mobile-premium #board{display:block;width:100%;height:34svh!important;max-height:34svh;min-width:0}
 body.mobile-premium:has(.typed-pattern:not([hidden])) #board-viewport{display:none!important}
 body.mobile-premium:has(dialog[open]){overflow:hidden}
}
@media screen and (max-width:1100px){
 body.mobile-premium dialog{max-height:calc(100svh - 166px)!important}body.mobile-premium dialog p{font-size:13px;line-height:1.45}body.mobile-premium dialog select{width:100%;padding:10px;border:1px solid var(--line);background:#fffdf8;color:var(--text)}body.mobile-premium dialog label{margin:10px 0 5px}
 body.mobile-premium #numbered-single>p:first-child,body.mobile-premium #numbered-shades{display:none!important}
 body.mobile-premium #numbered-current{padding:8px 10px;background:#edf0e7;border-radius:9px}
 @media(max-height:620px){body.mobile-premium dialog{max-height:calc(100svh - 126px)!important}}
}

/* Give the customisation controls room at desktop and mobile widths. */
@media screen and (min-width:1101px){main{max-width:1440px;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:32px;padding:0 28px}}
@media screen and (max-width:1100px){body.mobile-premium main{width:100%;max-width:900px;padding:0 12px}body.mobile-premium .conversation{width:100%;padding-left:0;padding-right:0}body.mobile-premium #answer{width:100%}}
@media screen{.conversation button{white-space:normal;overflow-wrap:anywhere;line-height:1.45}#answer>button{padding:14px 18px;min-height:52px}}

/* A clear entrance to the guided product choices. */
.studio-start{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:24px;background:#173c32;color:#fff8e8;border:1px solid #b99a59;border-radius:18px;padding:24px 30px;margin-bottom:20px}.studio-start[hidden]{display:none}.start-eyebrow{font-size:11px;letter-spacing:.14em;color:#e1c78e;font-weight:700}.studio-start h2{margin:8px 0;font-size:28px}.studio-start p{margin:0;max-width:650px;line-height:1.6}.studio-start .primary{background:#e5cc95;color:#173c32;border:1px solid #e5cc95;white-space:nowrap;min-height:48px;padding:12px 22px;font-weight:700}.studio-start button:focus-visible{outline:3px solid white;outline-offset:4px}@media(max-width:760px){.studio-start{flex-direction:column;align-items:stretch;padding:20px;gap:16px}.studio-start h2{font-size:24px}.studio-start .primary{width:100%}}
