/* FullFlow CONCRETE PATIO estimator: what the patio page adds to the shared estimator styles (estimator.css,
   catalog-cards.css). CONCRETE ONLY. Built from estimator.css's tokens (--brand, --line, --radius ...), so a contractor's
   brand color carries. The drawing studio imitates the deck studio (sierra-studio-ff.css): a full-screen sheet, white
   header with a 3px brand underline, pill tools, a light grid, the dark brand "SKETCHED" card. */
:root{--cs-canvas:color-mix(in srgb,var(--brand) 3%,#fff)}

/* step 2: the plan preview */
.cx-preview{padding:4px 10px 6px;background:#fafbfc}
.cx-preview svg{display:block;width:100%;height:auto;max-height:480px}
.cx-sample-note{margin:0 12px 4px}
/* step 3: the close-up; steps 4-5: the whole patio */
.cx-closeup{margin:0 0 16px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--sh-1);overflow:hidden}
.cx-closeup .cx-pic svg{display:block;width:100%;height:auto;max-height:300px}
.cx-closeup p{margin:0;padding:8px 14px 12px;color:var(--muted);font-size:15px;border-top:1px solid var(--line)}
.cx-render{margin:0 0 16px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--sh-1);overflow:hidden}
.cx-render:empty{display:none}
.cx-render-h{margin:0;padding:12px 14px 2px;font-size:17px;font-weight:750;color:var(--ink)}
.cx-render-sub{margin:0;padding:0 14px 8px;color:var(--muted);font-size:14px}
.cx-render .cx-pic{padding:0 10px 10px}
.cx-render .cx-pic svg{display:block;width:100%;height:auto;max-height:460px}
.cx-render .cx-sect{padding:0 10px 10px;border-top:1px solid var(--line)}
.cx-render .cx-sect svg{display:block;width:100%;height:auto}
.ffc-media.cx-drawn{display:block;background:#e9ede4}
.ffc-media.cx-drawn svg{width:100%;height:100%}
.cx-help-after{margin-top:10px}
.cx-carry{margin-top:12px;max-width:420px}
.cx-parts{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:8px}
.cx-parts li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 10px;align-items:center;padding:10px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:#fff}
.cx-parts li span{color:var(--muted);font-size:14px}
.cx-quick{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.cx-quick .ff-btn{min-height:44px;max-width:100%;white-space:normal} /* a 280 px screen: the words wrap, the button stays on screen */
.cx-pic{overflow:hidden}
#cx-wall-h{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:520px){#cx-wall-h{grid-template-columns:repeat(2,minmax(0,1fr))}}
#cx-pick-staincolor:not(:empty),#cx-pick-bordercolor:not(:empty){margin-top:4px}

/* the studio: the deck studio's frame (sierra-studio.css + sierra-studio-ff.css under .ff-studio: .builder-modal,
   .builder-toolbar, .deck-canvas, .plan-sidebar, .builder-hint, the add-on photo row). Here only what the patio adds,
   and the deck rules that name the deck's own ids (#builder-modal-close, #open-builder-addons, #deck-plan). */
body.cs-open{overflow:hidden}
.cs-ffs .cs-studio[hidden]{display:none!important}
.cs-ffs .builder-modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:#fff;border-bottom:3px solid var(--brand)}
.cs-ffs .builder-modal-header span{display:block;font-size:12px;font-weight:800;letter-spacing:.12em;color:var(--brand)}
.cs-ffs .builder-modal-header h4{margin:0;font-size:22px;line-height:1.15;color:var(--ink)}
@media (max-width:700px){.cs-ffs .builder-modal-header span{display:none}.cs-ffs .builder-modal-header h4{font-size:20px}.cs-ffs .builder-modal-header{padding:6px 10px}}
.cs-ffs #cs-done{background:var(--brand)!important;color:var(--brand-ink,#fff)!important;border-color:var(--brand)!important}
.cs-ffs .builder-modal-body{overflow:auto}
.cs-ffs .builder-level-row{display:flex;align-items:center;gap:8px 12px}
.cs-ffs .builder-level-row>span{margin-left:auto;font-weight:700;color:var(--brand);font-size:13px}
.cs-ffs .builder-level-row>strong{color:var(--muted);font-size:11px;letter-spacing:.08em}
.cs-ffs .builder-modal .builder.is-expanded .builder-toolbar[role="toolbar"] #cs-t-addons.feature-launch{display:inline-flex!important;grid-template-columns:none!important;height:auto!important;min-height:44px!important;min-width:0!important;padding:0 14px!important;border:1px solid var(--brand)!important;background:var(--brand)!important;color:var(--brand-ink,#fff)!important;border-radius:10px;overflow:visible;animation:none}
.cs-ffs .builder-modal .builder.is-expanded .builder-toolbar[role="toolbar"] #cs-t-addons.ffb-full{background:#fff!important;color:var(--brand)!important}
.cs-ffs .builder-toolbar .builder-add[hidden]{display:none!important}
.cs-ffs .builder-toolbar .cs-t-finish{background:var(--brand)!important;color:var(--brand-ink,#fff)!important;border-color:var(--brand)!important}
.cs-ffs .ffb-menu .builder-add{width:100%;justify-content:flex-start;text-align:left}
.cs-ffs .ffb-menu .ffb-shapes{display:grid;grid-template-columns:1fr 1fr;gap:6px}
/* the plan fills the canvas above the bottom strip (where the deck has its zoom; the patio its Snap) */
.cs-ffs .deck-canvas{position:relative;background-color:var(--cs-canvas)}
.cs-ffs #cs-plan{position:absolute;left:0;top:0;width:100%;height:calc(100% - 50px);display:block;touch-action:none;user-select:none;-webkit-user-select:none}
.cs-ffs .deck-canvas::after{content:"";position:absolute;left:0;right:0;bottom:0;height:50px;background:#fff;border-top:1px solid var(--line);z-index:1;pointer-events:none}
.cs-ffs .cs-zoom{position:absolute;left:6px;bottom:4px;z-index:3;display:flex;align-items:center;gap:6px}
/* zoom the plan (the fence studio's .fx-pzoom look on the 8 px scale: 04-UI-SPEC.md section 3); neutral, never the brand */
.cs-ffs .cs-pzoom{position:absolute;right:8px;top:8px;z-index:3;display:flex;gap:8px}
.cs-ffs .cs-pzoom button{width:44px;height:44px;padding:0;border:1.5px solid var(--line);border-radius:var(--radius-sm);background:rgba(255,255,255,.95);font-weight:700;font-size:16px;line-height:1;color:var(--ink);cursor:pointer;touch-action:manipulation}
.cs-ffs .cs-pzoom button:active{border-color:var(--line-strong);background:var(--bg)}
.cs-ffs .cs-pzoom button:focus-visible{outline:3px solid #1d232b;outline-offset:2px}
.cs-ffs .cs-pzoom button[aria-disabled=true]{opacity:.5;cursor:not-allowed}
@media (hover:hover){.cs-ffs .cs-pzoom button:hover:not([aria-disabled=true]){border-color:var(--line-strong)}}
/* the key stays clear of the zoom buttons (two 44 px buttons, 8 px apart, 8 px in from the edge) */
.cs-ffs .cs-canvas .cs-key{max-width:calc(100% - 128px)}
.cs-ffs .cs-snap{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 8px;font-size:13px;background:#fff;cursor:pointer}
.cs-ffs .cs-snap input{width:18px;height:18px;min-height:0;accent-color:var(--brand)}
.cs-ffs .cs-key i{display:inline-block;width:18px;height:0;margin-right:5px;vertical-align:middle;font-style:normal}
.cs-ffs .cs-key i.h{border-top:5px solid #5f6874}
.cs-ffs .cs-key i.w{border-top:7px solid #b8b1a5}
.cs-ffs .cs-key i.r{border-top:4px solid #1d1f21}
.cs-ffs .cs-key i.a{height:auto;width:auto;font-weight:800}
.cs-ffs .cs-drop-on{box-shadow:inset 0 0 0 3px var(--brand)}
.cs-drag-ghost{position:fixed;left:0;top:0;z-index:200;width:72px;height:72px;border-radius:12px;overflow:hidden;box-shadow:0 10px 24px rgba(0,0,0,.3);border:2px solid var(--brand);pointer-events:none;background:#fff}
.cs-drag-ghost img{width:100%;height:100%;object-fit:cover;display:block}
/* the sidebar: the deck's (the tip, the area card, the sides); the patio's own panels below */
.cs-ffs .plan-sidebar{flex-direction:column;gap:10px}
.cs-ffs .plan-sidebar>*{flex:0 0 auto}
.cs-ffs .plan-sidebar:has(#cs-selpanel:not([hidden])) :is(.plan-total,#cs-sides-panel,.cs-tip){display:none!important}
.cs-ffs .cs-tip{background:#fff;color:var(--ink);border:2px solid var(--brand);border-radius:14px;padding:12px 14px}
.cs-ffs .cs-tip h5{margin:0 0 4px;font-size:18px;font-weight:600;color:var(--brand)}
.cs-ffs .cs-tip p{margin:0;font-size:14px;line-height:1.4;color:var(--ink)}
.cs-ffs .plan-total strong{font-variant-numeric:tabular-nums}
.cs-ffs .builder-hint{margin:0;font-weight:600;font-size:14px}
.cs-ffs .builder-hint.warn{border-left:4px solid #b45309;background:#fff8ed}
.cs-snote{margin:0}
.cs-snote textarea{width:100%}
/* the add-on photo row: the deck's (his markup), with the patio's own ids */
.cs-ffs .cs-tray .builder-feature-carousel>img{width:100%;object-fit:cover}
.cs-ffs .cs-tray .addon-card{touch-action:pan-x}
.cs-ffs .cs-tray .addon-card img{-webkit-user-drag:none;user-select:none}
.cs-ffs .cs-tray .addon-category-tabs button{min-height:40px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:650}
.cs-ffs .cs-tray .addon-category-tabs button.active{background:var(--brand);color:var(--brand-ink,#fff);border-color:var(--brand)}
.cs-ffs .cs-tray #cs-tray-place{min-height:44px;padding:0 16px;border:0;border-radius:10px;background:var(--brand);color:var(--brand-ink,#fff);font-weight:700}
.cs-ffs .cs-tray .builder-feature-nav button{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:10px;background:#fff}
/* the ground panel in the sidebar: the picture cards one per row, small */
.cs-ffs .cs-ground h5{margin:0 0 6px;font-size:12px;font-weight:800;letter-spacing:.12em;color:var(--accent)}
.cs-ffs .cs-ground-side{margin-top:8px}
.cs-ffs .cs-ground-side svg{display:block;width:100%;height:auto}
.cs-ffs .cs-ground-side .ff-help{font-size:12px;margin:4px 0 0}
.cs-tool{border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:8px 12px;font-weight:650;font-size:14px;cursor:pointer;min-height:44px;color:var(--ink)}
.cs-tool:hover:not(:disabled){border-color:var(--brand)}
.cs-tool:disabled{opacity:.45;cursor:not-allowed}
.cs-tool.dark,.cs-tool[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.cs-tool:focus-visible,.cs-sideitem:focus-visible,.cs-rail:focus-visible{outline:3px solid #1d232b;outline-offset:2px}
.cs-side{min-width:0}
.cs-panel{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:12px}
.cs-panel h5{margin:0 0 8px;font-size:12px;font-weight:800;letter-spacing:.12em;color:var(--accent)}
.cs-sides{display:grid;gap:6px}
.cs-sideitem{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:center;padding:6px 8px;border:1px solid var(--line);border-radius:10px;background:#fcfdfc;cursor:pointer}
.cs-sideitem.sel{border-color:var(--brand);box-shadow:0 0 0 1.5px var(--brand);background:var(--brand-soft)}
.cs-sideitem b{font-size:13px;font-variant-numeric:tabular-nums;color:var(--brand);text-decoration:underline dotted;white-space:nowrap}
.cs-sideitem select{width:100%;min-height:40px;border:1.5px solid var(--line-strong);border-radius:8px;padding:4px 6px;font-weight:650;font-size:14px;background:#fff}
.cs-sel label{display:block;font-size:13px;font-weight:650;margin:8px 0 4px;color:var(--ink)}
.cs-sel select,.cs-sel input{width:100%;min-height:44px;border:1.5px solid var(--line-strong);border-radius:10px;padding:6px 10px;background:#fff}
.cs-sel .cs-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.cs-sel .cs-seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.cs-sel .cs-seg .cs-tool{padding:6px 8px;font-size:13px}
.cs-sel dl{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;margin:4px 0 0;font-size:14px}
.cs-sel dt{color:var(--muted)}
.cs-sel dd{margin:0;font-weight:650;font-variant-numeric:tabular-nums}
.cs-sel .ff-help{font-size:13px;margin:6px 0 0}
.cs-sel h5{margin:0 0 8px;font-size:12px;font-weight:800;letter-spacing:.12em;color:var(--accent)}
/* a set of steps' handrail: the deck's railing photos as small cards, the 4+ riser suggestion */
.cs-rails{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:6px}
.cs-rail{display:flex;flex-direction:column;align-items:stretch;padding:0;border:1.5px solid var(--line);border-radius:10px;background:#fff;overflow:hidden;cursor:pointer;min-height:44px;font-weight:650;font-size:13px;color:var(--ink)}
.cs-rail img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#eef1f3}
.cs-rail span{padding:4px 6px;text-align:center}
.cs-rail[aria-pressed=true]{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand)}
.cs-rail-hint,.cx-rail-hint,.cg-guard{margin:8px 0 0;padding:8px 10px;border-left:4px solid #b45309;background:#fff8ed;border-radius:0 8px 8px 0;font-size:14px;font-weight:600;color:#7a3d06}
@media (prefers-reduced-motion:reduce){.cs-studio *{scroll-behavior:auto!important}}

/* the pergola panel: wrapping button rows, color chips, the custom size boxes */
.cs-sel .cs-seg.cs-seg-wrap{display:flex;flex-wrap:wrap;gap:6px}
.cs-sel .cs-seg.cs-seg-wrap .cs-tool{flex:1 1 calc(50% - 6px);min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-align:center;line-height:1.2}
.cs-chip{display:inline-block;flex:0 0 auto;width:16px;height:16px;border-radius:50%;background:var(--cs-chip,#ccc);box-shadow:inset 0 0 0 1px rgba(0,0,0,.25)}
.cs-sel .cs-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
/* the Extras step: the pergola picker and the add-on photo cards */
.cx-addon-grid .ffc-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.cx-pg-none{display:flex;gap:14px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:var(--radius);background:#fff}
.cx-pg-none img{flex:0 0 auto;width:120px;height:90px;object-fit:cover;border-radius:10px}
.cx-pg-none p{margin:0 0 8px;color:var(--muted);font-size:15px}
@media (max-width:480px){.cx-pg-none{flex-direction:column;align-items:stretch}.cx-pg-none img{width:100%;height:150px}}
.cx-pg-sub{margin:14px 0 6px;font-weight:700;color:var(--ink)}
.cx-pg-custom{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:420px;margin:8px 0 0}
.cx-pg-acts{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}
.cx-pg-acts .ff-btn{min-height:44px}
@media (max-width:420px){.cx-addon-grid .ffc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* the add-ons on the drawing, each with Move / Remove / ＋ Another (Extras step; bots-v5 patio-b #2) */
.cx-placed-h{margin:18px 0 6px}
.cx-placed{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.cx-placed li{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line,#e3e7ec);border-radius:12px;background:#fff}
.cx-placed li>span{flex:1 1 140px;font-weight:650}
.cx-placed .ff-btn{min-height:44px}
/* the studio plan: a thing picked with the keyboard shows a focus ring (bots-v5 patio-b #4) */
#cs-plan [tabindex]:focus{outline:none}
#cs-plan [tabindex]:focus-visible{outline:none;stroke:#1d232b;stroke-width:.35;stroke-dasharray:none}
/* how the ground sits (concrete-ground.js): five picture cards, then how much it drops (chips + exact inches) */
.cg-cards{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.cg-card .ffc-media.cg-pic{aspect-ratio:120/64;background:#f6f9f6}
.cg-card .ffc-media.cg-pic svg{width:100%;height:100%;display:block}
.cg-drop{margin-top:12px}
.cg-chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}
.cg-chips .ff-choice{min-height:44px;padding:8px 10px}
.cg-inches{margin-top:10px;max-width:320px}
.cg-compact .ff-help{font-size:13px}
.cg-compact .cg-cards{grid-template-columns:minmax(0,1fr);gap:6px}
.cg-compact .cg-card{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;min-height:0}
.cg-compact .cg-card .ffc-media.cg-pic{grid-row:span 2;height:44px;aspect-ratio:auto}
.cg-compact .cg-card .ffc-text{padding:6px 8px}
.cg-compact .cg-card .ffc-text span{display:none}
.cg-compact .cg-card .ffc-tick{display:none}
.cg-compact .cg-chips{grid-template-columns:1fr 1fr}
.cx-ground-side{margin-top:12px}
.cx-ground-side .cx-sect svg{display:block;width:100%;height:auto}
/* drop-down groups on the Finish step (the deck's "More options" sections), one open at a time */
.cx-acc{display:grid;gap:8px}
.cx-acc>.ffc-more{margin:0}
.cx-acc>.ffc-more>summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;justify-content:space-between;list-style:none}
.cx-acc>.ffc-more>summary::-webkit-details-marker{display:none}
.cx-acc>.ffc-more>summary::after{content:"▾";margin-left:auto;font-size:14px;color:var(--muted)}
.cx-acc>.ffc-more[open]>summary::after{content:"▴"}
.cx-acc .cx-acc-t{font-size:16px;color:var(--ink)}
.cx-acc .cx-acc-sel{font-size:14px;font-weight:600;color:var(--muted)}
.cx-acc .cx-acc-on .cx-acc-sel{color:var(--brand)}
.cx-acc .cx-acc-on .cx-acc-sel::before{content:"✓ "}
.cx-acc-search input{width:100%;min-height:44px;border:1.5px solid var(--line-strong);border-radius:10px;padding:6px 12px;font-size:16px;background:#fff}
.cx-acc-results:empty{display:none}
.cx-acc>details[hidden]{display:none}
/* the steps' handrails on the Finish step */
.cx-rail-row{margin:0 0 12px}
/* the Extras step's short list of what is on the drawing */
.cx-addons{margin:0 0 10px}
.cx-placed-pic{flex:0 0 auto;width:56px;height:42px;object-fit:cover;border-radius:8px}
/* the studio sits over the page (the deck's is a <dialog> in the top layer): above the sticky Back / Continue bar, with
   the deck's dark backdrop around it */
.cs-ffs .cs-studio{z-index:1000}
body.cs-open .cs-ffs::before{content:"";position:fixed;inset:0;z-index:999;background:rgba(15,20,25,.55)}
.cs-ffs .builder-toolbar #cs-t-addons .ffb-addons-word{display:inline!important;font-size:inherit!important;color:inherit!important;margin:0!important;font-weight:700}
/* the tip docked between the toolbar and the plan on a narrow screen (the deck's docked guide card) */
.cs-ffs .builder>.cs-tip{margin:0 0 8px}
.cs-ffs .builder-modal .cs-zoom .cs-snap{min-height:44px!important}
.cs-ffs #cs-cancel{white-space:nowrap;min-height:44px}
.cs-ffs .cs-snap:has(input:focus-visible){outline:3px solid #1d232b;outline-offset:2px}
.cs-ffs #cs-studio .cs-tray>summary>.cs-tray-short{display:none!important} /* the phone's Add-ons bar label (below) */

/* ---- phones, and phones on their side (D-04; 04-UI-SPEC.md sections 1, 2, 14). The same two conditions as phoneMQ in
   concrete-studio.js. The plan keeps the screen: one row of tools that scrolls sideways, the plan, the message under
   it; the add-on row is closed to an Add-ons bar and opens as a sheet over the bottom of the plan (the plan never
   moves). The #cs-studio id beats the shared sierra-studio(-ff).css rules, which belong to the deck. */
@media (max-width:640px), (max-height:500px) and (orientation:landscape){
.cs-ffs #cs-studio{inset:0!important;width:100vw!important;height:100dvh!important;border:0!important}
.cs-ffs #cs-studio .builder-modal-header{flex-wrap:nowrap!important;height:auto!important;min-height:0!important;gap:8px;padding:4px max(8px,env(safe-area-inset-right)) 4px max(8px,env(safe-area-inset-left))!important}
.cs-ffs #cs-studio .builder-modal-header span{display:none}
.cs-ffs #cs-studio .builder-modal-header h4{font-size:16px!important;line-height:1.25;min-width:0}
.cs-ffs #cs-studio .ffb-head-actions button{padding:0 8px!important;font-size:14px!important}
.cs-ffs #cs-studio .builder-modal-body{padding:8px max(8px,env(safe-area-inset-right)) 8px max(8px,env(safe-area-inset-left))!important}
.cs-ffs #cs-studio .builder.is-expanded>.builder-level-row{display:none!important}
/* one row of tools that scrolls sideways, with the fence studio's fade at the right edge (fence.css .fx-tools) */
.cs-ffs #cs-studio .builder.is-expanded .builder-toolbar[role="toolbar"]{display:flex!important;flex:0 0 auto;flex-wrap:nowrap!important;align-items:center;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:none;scroll-behavior:auto!important;gap:8px!important;padding:8px!important;min-height:0!important;max-height:none!important;margin:0!important;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)!important;mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)!important}
.cs-ffs #cs-studio .builder.is-expanded .builder-toolbar[role="toolbar"]::-webkit-scrollbar{display:none}
.cs-ffs #cs-studio .builder.is-expanded .builder-toolbar[role="toolbar"]:is(.cs-tb-end,.cs-menu-open){-webkit-mask-image:none!important;mask-image:none!important}
.cs-ffs #cs-studio .builder-toolbar .ffb-tb-group{display:contents}
.cs-ffs #cs-studio .builder.is-expanded .builder-toolbar[role="toolbar"] .builder-add{flex:0 0 auto!important;width:auto!important;min-width:44px!important;min-height:44px!important;padding:0 8px!important;font-size:14px!important;white-space:nowrap}
.cs-ffs #cs-studio .builder.is-expanded .builder-toolbar[role="toolbar"] #cs-t-addons.feature-launch{padding:0 8px!important}
.cs-ffs #cs-studio .builder.is-expanded .builder-toolbar[role="toolbar"] .toolbar-scroll-arrow{display:none!important}
/* the Shapes menu: fixed to the screen under its button (placed by shapesMenu() in concrete-studio.js) */
.cs-ffs #cs-studio .ffb-menu.cs-menu-fixed{position:fixed;z-index:70;min-width:0;width:max-content;max-width:calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));overflow-y:auto;overscroll-behavior:contain}
.cs-ffs #cs-studio .ffb-menu.cs-menu-fixed .builder-add{min-height:44px!important}
/* the plan, then the message under it; the tip and the panels follow, scrolled to */
.cs-ffs #cs-studio .builder.is-expanded{display:flex!important;flex-direction:column;gap:8px;height:auto!important;overflow:visible!important}
.cs-ffs #cs-studio .builder.is-expanded>.builder-workspace{display:contents!important}
.cs-ffs #cs-studio .builder.is-expanded .cs-canvas{order:3;flex:0 0 auto;margin:0!important;min-height:160px!important;height:calc(100dvh - 268px)!important}
.cs-ffs #cs-studio .builder.is-expanded .builder-hint{order:4;flex:0 0 auto;box-sizing:border-box;height:auto!important;min-height:0!important;max-height:80px!important;overflow-y:auto!important;margin:0!important;padding:8px!important;border-bottom-width:1px!important;line-height:1.4;display:block!important;-webkit-line-clamp:unset!important}
.cs-ffs #cs-studio .builder.is-expanded>.cs-tip{order:5;margin:0!important}
.cs-ffs #cs-studio .builder.is-expanded .plan-sidebar{order:6;overflow:visible!important}
/* the add-on row: closed, one Add-ons bar with a drawn chevron; open, a sheet over the bottom of the plan */
.cs-ffs #cs-studio .cs-tray{display:block!important;position:static!important;flex:0 0 auto;inset:auto!important;width:auto!important;height:auto!important;max-height:none!important;margin:0!important;padding:0 max(8px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px,env(safe-area-inset-left))!important;overflow:visible!important;background:#fff!important;border:0!important;border-top:1px solid var(--line-strong)!important;border-radius:0!important;box-shadow:none!important;transform:none!important}
.cs-ffs #cs-studio .cs-tray>summary{position:relative!important;top:auto!important;display:flex!important;align-items:center;gap:8px;min-height:44px;margin:0!important;padding:0 8px!important;list-style:none;background:#fff!important;color:var(--ink)!important;font-size:14px!important;font-weight:700;line-height:1.2;cursor:pointer;border-radius:var(--radius-sm)}
.cs-ffs #cs-studio .cs-tray>summary::-webkit-details-marker{display:none}
.cs-ffs #cs-studio .cs-tray>summary>span:not(.cs-tray-short),.cs-ffs #cs-studio .cs-tray>summary>.addon-toggle-label{display:none!important}
.cs-ffs #cs-studio .cs-tray>summary>.cs-tray-short{display:inline!important;margin:0!important;color:var(--ink)!important;font-size:14px!important;font-weight:700;letter-spacing:normal;white-space:nowrap}
.cs-ffs #cs-studio .cs-tray>summary::after{content:"";flex:0 0 auto;width:8px;height:8px;margin:0 4px 0 auto;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(2px) rotate(-135deg);transition:transform .15s var(--ease)}
.cs-ffs #cs-studio .cs-tray[open]>summary::after{transform:translateY(-2px) rotate(45deg)}
.cs-ffs #cs-studio .cs-tray>summary:active{background:var(--bg)!important}
.cs-ffs #cs-studio .cs-tray>summary:focus-visible{outline:3px solid #1d232b;outline-offset:-3px}
.cs-ffs #cs-studio .cs-tray[open]{position:absolute!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;z-index:30!important;max-height:min(60dvh,360px)!important;overflow-y:auto!important;overscroll-behavior:contain;border:1px solid var(--line-strong)!important;border-bottom:0!important;border-radius:var(--radius-sm) var(--radius-sm) 0 0!important;box-shadow:0 -8px 24px rgba(0,0,0,.12)!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important}
.cs-ffs #cs-studio .cs-tray[open]>summary{position:sticky!important;top:0!important;z-index:2}
}
/* a phone on its side: the plan on the left at the full height, the message, the tip and the panels beside it; the
   Add-ons bar is left out (the + Add-ons tool opens the same sheet) so the plan keeps the short screen */
@media (max-height:500px) and (orientation:landscape){
.cs-ffs #cs-studio .builder-modal-body{display:flex!important;flex-direction:column;overflow:hidden!important}
.cs-ffs #cs-studio .builder.is-expanded{display:grid!important;flex:1 1 auto;min-height:0;grid-template-columns:minmax(0,1fr) minmax(200px,36%)!important;grid-template-rows:auto auto auto minmax(0,1fr)!important;overflow:hidden!important}
.cs-ffs #cs-studio .builder.is-expanded .builder-toolbar[role="toolbar"]{grid-area:1/1/2/3!important}
.cs-ffs #cs-studio .builder.is-expanded .cs-canvas{grid-area:2/1/5/2!important;height:auto!important;min-height:0!important}
.cs-ffs #cs-studio .builder.is-expanded .builder-hint{grid-area:2/2/3/3!important;max-height:96px!important}
.cs-ffs #cs-studio .builder.is-expanded>.cs-tip{grid-area:3/2/4/3!important}
.cs-ffs #cs-studio .builder.is-expanded .plan-sidebar{grid-area:4/2/5/3!important;min-height:0;overflow-y:auto!important;overscroll-behavior:contain}
.cs-ffs #cs-studio .cs-tray:not([open]){display:none!important}
/* the shared short-screen rules move the deck's zoom strip to the top right and drop the white strip under the plan:
   the patio keeps Snap bottom left on its strip (the top right is the zoom buttons') */
.cs-ffs #cs-studio .cs-canvas .cs-zoom{left:8px!important;right:auto!important;top:auto!important;bottom:4px!important;flex-direction:row!important}
.cs-ffs #cs-studio .cs-canvas::after{display:block!important}
}
@media (prefers-reduced-motion:reduce){.cs-ffs #cs-studio .cs-tray>summary::after{transition:none}}
