/* Banner / sign design tool (round 9). A full-screen app: top bar with the four steps, then the step itself.
   Calm on purpose: no motion beyond a short fade, one orange button per screen, blue for "picked". */
body:has(.bdt-app) { overflow: hidden; }
.bdt-loading { padding: 80px 20px; text-align: center; color: #5b6779; font: 500 16px "Plus Jakarta Sans", system-ui, sans-serif; }
.bdt-app {
  --ink: #0f172a; --body: #334155; --mute: #5b6779; --line: #e2e8f0; --line2: #cbd5e1; --bg: #f3f6fa; --blue: #107fb7; --blue-t: #e8f4fa;
  --orange: #ff5c00; --orange-h: #e65300; --warn: #b45309; --warn-t: #fff8eb; --ok: #15803d; --bad: #b91c1c;
  position: fixed; left: 0; right: 0; top: 0; height: 100%; z-index: 2147483000; display: flex; flex-direction: column;
  background: var(--bg); color: var(--body); font: 400 15px/1.45 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%;
}
.bdt-app *, .bdt-app *::before, .bdt-app *::after { box-sizing: border-box; }
.bdt-app [hidden] { display: none !important; }
.bdt-app button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bdt-app button:disabled { cursor: default; opacity: .4; }
.bdt-app h1 { font: 800 28px/1.2 "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); margin: 0 0 6px; letter-spacing: -.01em; }
.bdt-app h2 { font: 700 16px/1.3 "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); margin: 28px 0 10px; }
.bdt-app h3 { font: 700 12px/1.3 "Plus Jakarta Sans", system-ui, sans-serif; color: var(--mute); margin: 0 0 8px; letter-spacing: .02em; }
.bdt-app h4 { font: 700 11px/1.3 "Plus Jakarta Sans", system-ui, sans-serif; color: var(--mute); margin: 10px 10px 2px; text-transform: uppercase; letter-spacing: .05em; }
.bdt-app p { margin: 0; }
.bdt-app :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.bdt-ic { flex: none; display: block; }
.bdt-lead { color: var(--mute); font-size: 16px; }
.bdt-note { color: var(--mute); font-size: 13px; margin-top: 8px !important; }
.bdt-note.warn { color: var(--warn); } .bdt-note.bad { color: var(--bad); }
.bdt-center-t { text-align: center; }
.bdt-link { background: none; border: 0; padding: 0; color: var(--blue) !important; font-weight: 600 !important; text-decoration: underline; text-underline-offset: 2px; }

/* buttons */
.bdt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line2); background: #fff; color: var(--ink) !important; font-weight: 700 !important; font-size: 15px; white-space: nowrap; text-decoration: none; }
.bdt-btn:hover { border-color: #94a3b8; }
.bdt-btn-main { background: var(--orange); border-color: var(--orange); color: #fff !important; }
.bdt-btn-main:hover { background: var(--orange-h); border-color: var(--orange-h); }
.bdt-btn-blue { background: var(--blue); border-color: var(--blue); color: #fff !important; }
.bdt-btn-blue:hover { background: #0d6c9c; border-color: #0d6c9c; }
.bdt-btn-wide { width: 100%; }
.bdt-ib { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; border: 0; background: transparent; color: var(--ink) !important; flex: none; }
.bdt-ib:hover:not(:disabled) { background: #e9eef4; }
.bdt-tb { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; min-width: 38px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line2); background: #fff; font-size: 13px; font-weight: 600 !important; color: var(--ink) !important; }
.bdt-tb.on { background: var(--blue-t); border-color: var(--blue); color: #0b5d87 !important; }
.bdt-tb-b { font-weight: 800 !important; font-size: 15px; } .bdt-tb-i { font-style: italic; font-family: Georgia, serif !important; font-size: 16px; }
.bdt-chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; font-weight: 600 !important; font-size: 14px; color: var(--ink) !important; white-space: nowrap; }
.bdt-chip.on { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.bdt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bdt-in, .bdt-app textarea, .bdt-app input[type="number"], .bdt-app input[type="text"] { width: 100%; border: 1px solid var(--line2); border-radius: 9px; padding: 9px 11px; font: 500 15px/1.35 "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); background: #fff; resize: none; margin: 0; box-shadow: none; }
.bdt-app textarea:focus, .bdt-app input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }

/* top bar */
.bdt-top { flex: none; display: flex; align-items: center; gap: 16px; height: 58px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); }
.bdt-brand { flex: none; display: flex; align-items: center; } .bdt-brand img { display: block; height: 25px; width: auto; }
.bdt-steps { flex: 1; display: flex; justify-content: center; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; min-width: 0; }
.bdt-steps li { display: flex; align-items: center; }
.bdt-steps li + li::before { content: ""; width: 26px; height: 1px; background: var(--line2); margin: 0 6px; }
.bdt-steps button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 4px; font-size: 14px; font-weight: 600 !important; color: var(--mute) !important; }
.bdt-steps button:disabled { opacity: .55; }
.bdt-steps b { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line2); font-size: 12px; font-weight: 700; color: var(--mute); background: #fff; }
.bdt-steps .on button { color: var(--ink) !important; } .bdt-steps .on b { background: var(--ink); border-color: var(--ink); color: #fff; }
.bdt-steps .done b { background: var(--blue-t); border-color: var(--blue); color: #0b5d87; }
.bdt-top-r { flex: none; display: flex; align-items: center; gap: 12px; }
.bdt-saved { font-size: 13px; color: var(--mute); }
.bdt-exit { min-height: 38px; padding: 0 14px; font-size: 14px; }

/* the step area */
.bdt-main { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; position: relative; display: flex; flex-direction: column; }
.bdt-app[data-step="design"] .bdt-main { overflow: hidden; }
.bdt-page { width: 100%; max-width: 900px; margin: 0 auto; padding: 32px 20px 40px; flex: 1 0 auto; }
.bdt-page-wide { max-width: 1240px; }
.bdt-foot { position: sticky; bottom: 0; flex: none; background: #fff; border-top: 1px solid var(--line); z-index: 3; }
.bdt-foot-in { max-width: 900px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 12px; }
.bdt-foot-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bdt-foot-t b { color: var(--ink); font-size: 16px; } .bdt-foot-t span { font-size: 13px; color: var(--mute); min-height: 18px; }

/* step 1: size */
.bdt-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 22px; }
.bdt-size { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }
.bdt-size:hover { border-color: #94a3b8; }
.bdt-size.on { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); background: #fbfdff; }
.bdt-size b { color: var(--ink); font-size: 16px; font-weight: 700; } .bdt-size small { font-size: 12px; color: var(--mute); }
.bdt-size-pic { height: 72px; width: 100%; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.bdt-size-pic i { display: block; background: #dbe9f3; border: 1.5px solid #8fb9d3; border-radius: 2px; }
.bdt-size.on .bdt-size-pic i { background: #bfe0f1; border-color: var(--blue); }
.bdt-size-pic i.bdt-size-any { width: 56px; height: 34px; background: none; border-style: dashed; }
.bdt-custom { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.bdt-custom > div { display: flex; align-items: center; gap: 8px; } .bdt-custom label { font-weight: 700; color: var(--ink); width: 54px; }
.bdt-custom span { display: inline-flex; align-items: center; gap: 5px; color: var(--mute); font-size: 14px; } .bdt-custom input { width: 68px !important; text-align: center; }
.bdt-custom .bdt-note { flex-basis: 100%; margin-top: 0 !important; }
.bdt-edges { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.bdt-edge { text-align: left; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.bdt-edge.on { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.bdt-edge b { color: var(--ink); font-size: 15px; } .bdt-edge small { color: var(--mute); font-size: 13px; line-height: 1.4; }

/* step 2: templates */
.bdt-cats { display: flex; gap: 8px; overflow-x: auto; margin: 18px -20px 0; padding: 2px 20px 10px; scrollbar-width: thin; }
.bdt-cats .bdt-chip { flex: none; }
.bdt-tpls { display: grid; gap: 22px 18px; margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.bdt-tpls-land { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.bdt-tpls-square { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.bdt-tpls-tall { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.bdt-tpl-pic { display: block; width: 100%; padding: 0; border: 1px solid var(--line2); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.bdt-tpl-pic:hover { box-shadow: 0 0 0 2px var(--blue); border-color: var(--blue); }
.bdt-tpl.cur .bdt-tpl-pic { box-shadow: 0 0 0 2px var(--ink); border-color: var(--ink); }
.bdt-tpl-pic svg { display: block; width: 100%; height: 100%; }
.bdt-tpl-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; min-height: 24px; }
.bdt-tpl-meta b { font-size: 14px; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bdt-tpl-meta em { font-style: normal; font-size: 11px; font-weight: 700; color: #0b5d87; background: var(--blue-t); border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.bdt-dots { display: flex; gap: 5px; flex: none; }
.bdt-dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(15, 23, 42, .22); padding: 0; position: relative; }
.bdt-dot.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.bdt-dot::after { content: ""; position: absolute; inset: -7px; }

/* step 3: design */
.bdt-work { flex: 1; min-height: 0; display: grid; grid-template-columns: 80px 320px minmax(0, 1fr); }
.bdt-rail { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; overflow-y: auto; }
.bdt-rail button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px; border: 0; background: none; border-radius: 10px; font-size: 11px; font-weight: 600 !important; color: var(--body) !important; }
.bdt-rail button:hover { background: var(--bg); }
.bdt-rail button.on { background: var(--blue-t); color: #0b5d87 !important; }
.bdt-panel { background: #fff; border-right: 1px solid var(--line); min-height: 0; display: flex; flex-direction: column; }
.bdt-panel-in { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 24px; }
.bdt-ph { display: flex; align-items: center; gap: 6px; padding: 12px 12px 12px 16px; position: sticky; top: 0; background: #fff; z-index: 2; border-bottom: 1px solid var(--line); min-height: 54px; }
.bdt-ph b { flex: 1; color: var(--ink); font-size: 16px; font-weight: 700; }
.bdt-ph .bdt-ib:first-child { margin-left: -8px; }
.bdt-sheet-x { display: none; }
.bdt-sec { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.bdt-sec > .bdt-btn + .bdt-btn { margin-top: 8px; }
.bdt-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.bdt-row:first-child { margin-top: 0; }
.bdt-gap { flex: 1; }
.bdt-row-ic .bdt-tb { flex: 1 1 0; flex-direction: column; gap: 3px; min-height: 54px; padding: 4px 2px; font-size: 11px; }
.bdt-tb-del:hover { border-color: var(--bad); color: var(--bad) !important; }
.bdt-sw { display: flex; flex-wrap: wrap; gap: 7px; }
.bdt-swb { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(15, 23, 42, .2); padding: 0; position: relative; flex: none; background: #fff; }
.bdt-swb.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.bdt-sw-none { background: linear-gradient(135deg, #fff 46%, #e11d2e 46%, #e11d2e 54%, #fff 54%); }
.bdt-sw-any { background: conic-gradient(#e11d2e, #ffd23f, #15803d, #22d3ee, #0b5fff, #db2777, #e11d2e); overflow: hidden; cursor: pointer; }
.bdt-sw-any input { position: absolute; inset: -6px; width: 44px; height: 44px; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.bdt-sw-g { width: 46px; border-radius: 8px; }
.bdt-range { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 8px; font-size: 13px; margin-top: 10px; color: var(--body); }
.bdt-range:first-child { margin-top: 0; }
.bdt-range input { width: 100%; accent-color: var(--blue); margin: 0; height: 28px; }
.bdt-range output { text-align: right; font-variant-numeric: tabular-nums; color: var(--mute); }
.bdt-step { display: inline-flex; align-items: center; gap: 6px; }
.bdt-step input { width: 78px !important; text-align: center; font-weight: 700 !important; }
.bdt-step .bdt-ib { border: 1px solid var(--line2); }
.bdt-step span { color: var(--mute); font-size: 14px; margin-right: 4px; }
.bdt-line { display: block; margin-top: 10px; } .bdt-line:first-child { margin-top: 0; }
.bdt-line span { display: block; font-size: 12px; color: var(--mute); font-weight: 600; margin-bottom: 4px; }
.bdt-line-gone textarea { border-style: dashed; background: #fafbfc; }
.bdt-fontcur { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 9px; background: #fff; }
.bdt-fontcur span { font-size: 19px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bdt-fontcur i { font-style: normal; font-size: 13px; color: var(--blue); font-weight: 600; }
.bdt-fonts { margin-top: 8px; max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; padding-bottom: 6px; }
.bdt-font { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; font-size: 20px !important; line-height: 1.25; color: var(--ink) !important; font-weight: 400 !important; }
.bdt-font:hover { background: var(--bg); } .bdt-font.on { background: var(--blue-t); }
.bdt-shapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bdt-shapes button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 11px; color: var(--body) !important; }
.bdt-shapes button:hover { border-color: var(--blue); } .bdt-shapes svg { color: #475569; }
.bdt-pals { display: flex; flex-wrap: wrap; gap: 8px; }
.bdt-pal { display: flex; width: 66px; height: 34px; padding: 0; border-radius: 8px; overflow: hidden; border: 1px solid rgba(15, 23, 42, .2); }
.bdt-pal i { flex: 1; } .bdt-pal i:first-child { flex: 2; }
.bdt-pal.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.bdt-assets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bdt-asset { aspect-ratio: 1; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.bdt-asset img, .bdt-bgph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bdt-bgph { height: 90px; border-radius: 9px; overflow: hidden; background: var(--bg); margin-bottom: 10px; } .bdt-bgph img { object-fit: cover; }
.bdt-layer { display: flex; align-items: center; gap: 2px; border-radius: 9px; } .bdt-layer.on { background: var(--blue-t); }
.bdt-layer-n { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 7px 6px; text-align: left; font-size: 14px; }
.bdt-layer-n span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); } .bdt-layer-n .bdt-ic { width: 14px; height: 14px; color: var(--mute); }
.bdt-layer-t { flex: none; width: 30px; height: 26px; border-radius: 6px; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 700; color: var(--mute); }
.bdt-layer-t b { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(15, 23, 42, .2); }

.bdt-center { min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; }
.bdt-bar { flex: none; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--line); }
.bdt-bar-l, .bdt-bar-m, .bdt-bar-r { display: flex; align-items: center; gap: 6px; } .bdt-bar-l { flex: 1; min-width: 0; }
.bdt-sizechip { min-height: 38px; border: 1px solid var(--line2); background: #fff; border-radius: 9px; padding: 0 12px; font-size: 14px; font-weight: 700 !important; color: var(--ink) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 6px; }
.bdt-sizechip span { font-weight: 500; color: var(--mute); } .bdt-sizechip u { color: var(--blue); font-weight: 600; font-size: 13px; margin-left: 6px; text-underline-offset: 2px; }
.bdt-zoom { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 9px; overflow: hidden; }
.bdt-zoom .bdt-ib { border-radius: 0; height: 36px; width: 34px; }
.bdt-zoomv i { display: none; font-style: normal; }
.bdt-zoomv { border: 0; background: none; min-width: 52px; height: 36px; font-size: 13px; font-weight: 700 !important; font-variant-numeric: tabular-nums; }
.bdt-bar .bdt-btn-main { min-height: 40px; }
.bdt-stage { flex: 1; min-height: 0; position: relative; background: #e9eef4; }
.bdt-scroll { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; }
.bdt-pad { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bdt-sheet { position: relative; flex: none; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .18), 0 10px 28px rgba(15, 23, 42, .12); touch-action: none; user-select: none; -webkit-user-select: none; cursor: default; }
.bdt-art { position: absolute; inset: 0; overflow: hidden; } .bdt-art svg { display: block; }
.bdt-art [data-id] { cursor: pointer; }
.bdt-sheet.is-drag, .bdt-sheet.is-drag [data-id] { cursor: grabbing; }
.bdt-over { position: absolute; inset: 0; pointer-events: none; }
.bdt-rule { position: absolute; pointer-events: none; } .bdt-rule-x { left: 0; top: -22px; height: 18px; } .bdt-rule-y { top: 0; left: -22px; width: 18px; }
.bdt-rule svg { display: block; overflow: visible; } .bdt-rule line { stroke: #94a3b8; stroke-width: 1; } .bdt-rule text { font: 500 10px "Plus Jakarta Sans", system-ui, sans-serif; fill: #5b6779; }
.bdt-sizetag { margin-top: 14px; font-size: 13px; color: var(--mute); text-align: center; flex: none; } .bdt-sizetag b { color: var(--ink); }
.bdt-sel { position: absolute; border: 1.5px solid var(--blue); box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); }
.bdt-sel.is-locked { border-style: dashed; }
.bdt-sel.is-multi { border-width: 1.5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); }
.bdt-marq { position: absolute; border: 1px dashed var(--blue); background: rgba(16, 127, 183, .09); }
.bdt-h { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: #fff; border: 1.5px solid var(--blue); border-radius: 50%; pointer-events: auto; box-shadow: 0 1px 2px rgba(15, 23, 42, .25); touch-action: none; }
.bdt-h::after { content: ""; position: absolute; inset: -9px; }
.bdt-h-nw { left: 0; top: 0; cursor: nwse-resize; } .bdt-h-n { left: 50%; top: 0; cursor: ns-resize; } .bdt-h-ne { left: 100%; top: 0; cursor: nesw-resize; }
.bdt-h-e { left: 100%; top: 50%; cursor: ew-resize; } .bdt-h-se { left: 100%; top: 100%; cursor: nwse-resize; } .bdt-h-s { left: 50%; top: 100%; cursor: ns-resize; }
.bdt-h-sw { left: 0; top: 100%; cursor: nesw-resize; } .bdt-h-w { left: 0; top: 50%; cursor: ew-resize; }
.bdt-h-n, .bdt-h-s { width: 20px; height: 8px; margin: -4px 0 0 -10px; border-radius: 4px; } .bdt-h-e, .bdt-h-w { width: 8px; height: 20px; margin: -10px 0 0 -4px; border-radius: 4px; }
.bdt-h-rot { left: 50%; top: 100%; margin-top: 18px; width: 22px; height: 22px; margin-left: -11px; cursor: grab; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23107fb7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.6-5.9M20 4v5h-5'/%3E%3C/svg%3E") center/13px no-repeat; }
.bdt-dim { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); background: var(--ink); color: #fff; font: 600 11px/1 "Plus Jakarta Sans", system-ui, sans-serif; padding: 5px 7px; border-radius: 5px; white-space: nowrap; font-style: normal; }
.bdt-snap { position: absolute; background: #e11d8f; } .bdt-snap-x { top: 0; bottom: 0; width: 1px; } .bdt-snap-y { left: 0; right: 0; height: 1px; }
.bdt-quick { display: none; }
.bdt-help { display: none; }
.bdt-many { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; } .bdt-sum .bdt-many h2 { margin: 0; }

/* step 4: review */
.bdt-review { width: 100%; max-width: 1200px; margin: 0 auto; padding: 28px 20px 48px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 36px; align-items: start; }
.bdt-proof { position: sticky; top: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bdt-proof-pic { width: min(100%, calc(60vh * var(--r, 2))); background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .18), 0 12px 32px rgba(15, 23, 42, .14); }
.bdt-proof-pic svg { display: block; width: 100%; height: 100%; }
.bdt-proof-cap { font-size: 14px; color: var(--mute); text-align: center; } .bdt-proof-cap b { color: var(--ink); }
.bdt-sum { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.bdt-sum h1 { font-size: 24px; } .bdt-sum h2 { margin-top: 22px; }
.bdt-checks { margin-top: 16px; }
.bdt-checks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bdt-checks li { background: var(--warn-t); border: 1px solid #f5dfb3; border-radius: 10px; padding: 10px 12px; font-size: 14px; color: #7a3d06; display: flex; flex-direction: column; gap: 6px; }
.bdt-check-b { display: flex; gap: 16px; }
.bdt-allgood { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; font-size: 14px; background: #f0faf3; border: 1px solid #cfead8; border-radius: 10px; padding: 10px 12px; }
.bdt-fact { display: flex; justify-content: space-between; margin-top: 18px !important; font-size: 14px; } .bdt-fact b { color: var(--ink); }
.bdt-price { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.bdt-price-u { font-size: 14px; color: var(--mute); } .bdt-price-t { font-size: 32px; line-height: 1.2; font-weight: 800; color: var(--ink); } .bdt-price small { font-size: 13px; color: var(--mute); margin-top: 2px; }
.bdt-approve { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 14px; padding: 12px; border: 1px solid var(--line2); border-radius: 10px; font-size: 14px; color: var(--ink); cursor: pointer; }
.bdt-approve input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.bdt-approve.need { border-color: var(--warn); background: var(--warn-t); }
/* round 11: a check that needs an answer (blurry picture, letters that cannot print) reads stronger than a tip */
.bdt-checks li.bdt-check-strong { background: #fdecec; border-color: #f0b4b4; color: #8a1c1c; font-weight: 600; }
.bdt-approve.bdt-blur { margin: 10px 0 0; border-color: #f0b4b4; }
.bdt-approve.bdt-blur.need { border-color: #c62828; background: #fdecec; }
/* round 16: the reminder to tick a box shows right under that box, not as a message over the page */
.bdt-needmsg { color: #8a4b00; font-size: 14px; font-weight: 600; margin: -6px 0 12px !important; } .bdt-blur + .bdt-needmsg { margin: 6px 0 0 !important; color: var(--bad); }
.bdt-err { color: var(--bad); font-size: 14px; font-weight: 600; margin-bottom: 10px !important; }
.bdt-add { min-height: 52px; font-size: 17px; }
.bdt-soon { margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--bg); } .bdt-soon b { color: var(--ink); } .bdt-soon p { margin: 6px 0 4px; font-size: 14px; }

/* toast + dialog */
.bdt-toast { position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); max-width: min(92vw, 520px); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; z-index: 30; box-shadow: 0 8px 24px rgba(15, 23, 42, .25); text-align: center; }
.bdt-modal { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); z-index: 40; display: flex; align-items: center; justify-content: center; padding: 20px; }
.bdt-dialog { background: #fff; border-radius: 16px; padding: 24px; max-width: 420px; width: 100%; box-shadow: 0 20px 50px rgba(15, 23, 42, .3); }
.bdt-dialog h2 { margin: 0 0 8px; font-size: 20px; } .bdt-dialog-b { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- phone and small tablets ---------- */
@media (max-width: 859px) {
  .bdt-app h1 { font-size: 23px; }
  .bdt-app textarea, .bdt-app input[type="number"], .bdt-app input[type="text"] { font-size: 16px; }
  .bdt-top { height: 50px; gap: 8px; padding: 0 8px 0 10px; }
  .bdt-brand, .bdt-saved { display: none; }
  .bdt-steps { justify-content: flex-start; gap: 0; }
  .bdt-steps li + li::before { width: 10px; margin: 0 3px; }
  .bdt-steps button { gap: 5px; padding: 6px 2px; font-size: 13px; }
  .bdt-steps li:not(.on) span { display: none; }
  .bdt-exit { min-height: 36px; padding: 0 10px; font-size: 13px; }
  .bdt-page { padding: 20px 16px 28px; }
  .bdt-sizes { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
  .bdt-size-pic { height: 56px; }
  .bdt-foot-in { padding: 10px 12px; flex-wrap: wrap; } .bdt-foot-t { flex-basis: 100%; } .bdt-foot .bdt-btn-main { flex: 1; }
  .bdt-cats { margin: 14px -16px 0; padding: 2px 16px 10px; }
  .bdt-tpls, .bdt-tpls-land { grid-template-columns: 1fr; gap: 18px; }
  .bdt-tpls-square { grid-template-columns: repeat(2, 1fr); } .bdt-tpls-tall { grid-template-columns: repeat(2, 1fr); }
  .bdt-work { display: flex; flex-direction: column; }
  .bdt-center { order: 1; flex: 1; }
  .bdt-rail { order: 3; flex: none; flex-direction: row; border-right: 0; border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); overflow-x: auto; overflow-y: hidden; gap: 0; }
  .bdt-rail button { flex: 1 0 50px; padding: 7px 0 5px; font-size: 10px; }
  .has-sel .bdt-rail { display: none; }
  .bdt-panel { display: none; position: absolute; left: 0; right: 0; bottom: 0; top: auto; max-height: 62%; z-index: 20; border-right: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(15, 23, 42, .2); overflow: hidden; padding-bottom: env(safe-area-inset-bottom); }
  .bdt-panel.open { display: flex; }
  .bdt-sheet-x { display: inline-flex; }
  .bdt-ph [data-a="desel"] { display: none; }
  .bdt-bar { height: 48px; padding: 0 6px; gap: 4px; }
  .bdt-bar-m .bdt-zoom .bdt-ib, .bdt-sizechip span { display: none; }
  .bdt-zoom { border: 0; } .bdt-zoomv { min-width: 44px; border: 1px solid var(--line2); border-radius: 9px; } .bdt-zoomv.is-fit, .bdt-zoomv span { display: none; } .bdt-zoomv i { display: inline; }
  .bdt-sizechip { flex: 0 1 auto; min-width: 56px; }
  .bdt-sizechip { padding: 0 8px; font-size: 13px; margin-left: 2px; } .bdt-sizechip u { display: none; }
  .bdt-bar .bdt-tb { padding: 0 8px; } .bdt-bar .bdt-btn-main { padding: 0 12px; min-height: 38px; font-size: 14px; }
  .bdt-sizetag { font-size: 12px; margin-top: 8px; } .bdt-sizetag span:last-child { display: none; }
  .bdt-h { width: 18px; height: 18px; margin: -9px 0 0 -9px; } .bdt-h::after { inset: -12px; }
  .bdt-h-n, .bdt-h-s { width: 26px; height: 10px; margin: -5px 0 0 -13px; } .bdt-h-e, .bdt-h-w { width: 10px; height: 26px; margin: -13px 0 0 -5px; }
  .bdt-h-rot { width: 28px; height: 28px; margin-left: -14px; margin-top: 22px; }
  .has-sel .bdt-quick { display: block; flex: none; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bdt-qrow { display: flex; }
  .bdt-qrow button { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 7px; border: 0; background: none; font-size: 11px; font-weight: 600 !important; color: var(--ink) !important; min-width: 0; }
  .bdt-qrow .bdt-q-done { color: var(--blue) !important; }
  .bdt-type { display: flex; gap: 8px; padding: 8px; align-items: flex-end; } .bdt-type textarea { flex: 1; max-height: 96px; }
  .bdt-type .bdt-btn { min-height: 42px; padding: 0 14px; }
  .bdt-review { grid-template-columns: 1fr; gap: 20px; padding: 16px 16px 32px; }
  .bdt-proof { position: static; } .bdt-proof-pic { width: min(100%, calc(42vh * var(--r, 2))); }
  .bdt-sum { padding: 18px 16px; }
  .bdt-toast { bottom: 76px; }
  /* round 15: on the review step a message shows at the top, never over Add to cart */
  .bdt-app[data-step="review"] .bdt-toast { bottom: auto; top: 58px; }
  /* round 15: everything a finger taps is at least 40 x 40 */
  .bdt-steps li + li::before { width: 6px; margin: 0 2px; }
  .bdt-steps button { min-width: 40px; min-height: 40px; justify-content: center; padding: 6px 4px; }
  .bdt-dots { gap: 0; margin: -8px -8px -8px 0; }
  .bdt-dot { width: 40px; height: 40px; border: 10px solid transparent; background-clip: padding-box !important; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .25); }
  .bdt-dot.on { box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px #fff; }
  .bdt-dot::after { display: none; }
  .bdt-sw { gap: 8px; } .bdt-swb { width: 40px; height: 40px; } .bdt-sw-g { width: 52px; }
  .bdt-bar .bdt-ib { width: 40px; height: 40px; }
  .bdt-exit, .bdt-sizechip, .bdt-bar .bdt-tb, .bdt-bar .bdt-btn-main { min-height: 40px; }
  .bdt-check-b .bdt-link, .bdt-buy .bdt-link { display: inline-flex; align-items: center; min-height: 40px; min-width: 40px; }
  .bdt-check-b { gap: 20px; margin: -6px 0 -8px; }
  .bdt-rail button { flex: 1 1 auto; min-width: 40px; min-height: 48px; padding: 7px 3px 5px; font-size: 10px; letter-spacing: -.01em; }
  .bdt-step .bdt-ib { width: 40px; height: 40px; }
  /* round 16: the sheet's Close and every button inside the sheet are at least 44 x 44 */
  .bdt-sheet-x, .bdt-panel .bdt-ph .bdt-ib { width: 44px; height: 44px; }
  .bdt-panel .bdt-tb { min-height: 44px; min-width: 44px; }
  .bdt-rail button span, .bdt-rail button { white-space: nowrap; }
  /* round 17: every control a finger taps on a phone is at least 44 x 44 */
  .bdt-steps button { min-width: 44px; min-height: 44px; }
  .bdt-bar .bdt-ib, .bdt-step .bdt-ib { width: 44px; height: 44px; }
  .bdt-exit, .bdt-sizechip, .bdt-bar .bdt-tb, .bdt-bar .bdt-btn-main, .bdt-chip, .bdt-zoomv { min-height: 44px; }
  .bdt-bar .bdt-tb, .bdt-sizechip, .bdt-exit { min-width: 44px; }
  .bdt-check-b .bdt-link, .bdt-buy .bdt-link { min-height: 44px; min-width: 44px; }
  .bdt-swb { width: 44px; height: 44px; } .bdt-sw-g { width: 56px; }
  .bdt-step .bdt-tb { min-height: 44px; min-width: 44px; }
  .bdt-dialog .bdt-btn { min-height: 44px; }
  .bdt-dot { width: 44px; height: 44px; border-width: 12px; } .bdt-rail button { min-width: 44px; } .bdt-type .bdt-btn { min-height: 44px; } .bdt-app textarea, .bdt-app input[type="number"], .bdt-app input[type="text"], .bdt-app select { min-height: 44px; } .bdt-pal { height: 44px; }
  .bdt-layer-n { min-height: 44px; } .bdt-layer .bdt-ib { width: 44px; height: 44px; }
  /* round 14: a wide banner sits near the top and the space under it is put to use; the sheet leaves room for the banner */
  .bdt-panel { max-height: 56%; }
  .has-room:not(.has-sel):not(.has-sheet):not(.is-typing) .bdt-pad { justify-content: flex-start; }
  .has-room:not(.has-sel):not(.has-sheet):not(.is-typing) .bdt-help { display: block; position: absolute; left: 12px; right: 12px; bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
  .bdt-help p { font-size: 14px; color: var(--mute); margin: 0 0 10px; text-align: center; }
  .bdt-help div { display: flex; gap: 8px; } .bdt-help .bdt-btn { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 8px; font-size: 14px; justify-content: center; gap: 6px; }
}
@media (max-width: 400px) {
  .bdt-bar { gap: 2px; padding: 0 4px; } .bdt-bar-l, .bdt-bar-m, .bdt-bar-r { gap: 2px; }
  .bdt-top { gap: 4px; padding: 0 6px 0 4px; } .bdt-steps li + li::before { display: none; } .bdt-steps button { padding: 6px 2px; gap: 4px; } .bdt-exit { padding: 0 8px; font-size: 12.5px; white-space: nowrap; }
  .bdt-bar .bdt-tb { padding: 0 6px; font-size: 13px; } .bdt-bar .bdt-btn-main { padding: 0 9px; } .bdt-bar .bdt-btn-main svg { display: none; }
  .bdt-sizechip { overflow: visible; text-overflow: clip; padding: 0 6px; font-size: 12.5px; margin-left: 0; flex: none; }
}
@media (min-width: 860px) {
  /* round 14: Add to cart stays in view on a short screen */
  .bdt-review { padding-top: 20px; } .bdt-sum { padding: 20px 24px 0; } .bdt-sum h2 { margin-top: 16px; }
  .bdt-price { margin-top: 0; padding-top: 12px; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 12px; } .bdt-price-u { order: 2; } .bdt-price-t { order: 1; font-size: 28px; } .bdt-price small { order: 3; flex-basis: 100%; }
  .bdt-approve { margin: 10px 0 10px; padding: 10px 12px; }
  .bdt-buy { margin-top: 16px !important; }
  /* round 16: the Edges choices sit on one row, so they and How many? show with the price, the tick box and Add to cart on a 1280 x 800 screen */
  .bdt-sum .bdt-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .bdt-sum .bdt-chip { padding: 0 6px; }
  /* the choices (material, edges, how many) come first and the notes about the design after them: a long note can never push the choices under the pinned price block */
  .bdt-sum { display: flex; flex-direction: column; } .bdt-sum > .bdt-checks { order: 5; margin-top: 16px; } .bdt-sum > .bdt-buy, .bdt-sum > .bdt-soon { order: 9; }
  .bdt-sum .bdt-lead { font-size: 15px; margin-top: 4px; } .bdt-sum .bdt-fact { margin-top: 14px !important; } .bdt-sum .bdt-many { margin-top: 14px; }
  /* round 15: the size step fits a 1280 x 800 screen without the last row sitting under the bottom bar */
  .bdt-app[data-step="size"] .bdt-page { padding-top: 20px; padding-bottom: 20px; }
  .bdt-app[data-step="size"] .bdt-sizes { margin-top: 14px; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(134px, 1fr)); }
  .bdt-app[data-step="size"] .bdt-size { padding: 8px 8px 9px; } .bdt-app[data-step="size"] .bdt-size-pic { height: 54px; margin-bottom: 4px; }
  .bdt-app[data-step="size"] h2 { margin-top: 18px; } .bdt-app[data-step="size"] .bdt-edge { padding: 11px 14px; }
  .bdt-app[data-step="review"] .bdt-toast { bottom: auto; top: 70px; }
  .bdt-buy { position: sticky; bottom: 0; background: #fff; padding: 2px 0 14px; margin-top: 0; box-shadow: 0 -10px 12px -6px rgba(255, 255, 255, .95); border-radius: 0 0 16px 16px; z-index: 2; }
}
@media (min-width: 860px) and (max-width: 1100px) { .bdt-work { grid-template-columns: 72px 280px minmax(0, 1fr); } .bdt-steps li + li::before { width: 12px; } .bdt-sizechip span { display: none; } }
@media (prefers-reduced-motion: no-preference) { .bdt-toast { animation: bdt-in .18s ease-out; } }
@keyframes bdt-in { from { opacity: 0; } to { opacity: 1; } }
@media print { .bdt-app { position: static; } }

/* round 17 */
.bdt-prog { text-align: center; margin-top: 8px !important; } .bdt-signin { text-align: center; margin-top: 8px !important; color: var(--ink); font-weight: 600; }

/* Dec 1 studio (BANNER_STUDIO_LIVE): only pages whose root carries .bdt-studio. Off = none of this matches. */
.bdt-props { display: none; }
.bdt-studio .bdt-qty input { width: 84px !important; text-align: center; font-weight: 700; font-size: 17px; }
.bdt-studio .bdt-qty.over input { border-color: var(--bad); color: var(--bad); }
.bdt-qchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bdt-qchip { min-width: 44px; min-height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; font-size: 13px; font-weight: 600 !important; color: var(--ink) !important; }
.bdt-qchip:hover { border-color: var(--blue); }
.bdt-qchip.on { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.bdt-qnote { font-size: 13px; color: var(--mute); margin: 10px 0 0 !important; line-height: 1.45; }
.bdt-qnote a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.bdt-qover { color: var(--bad); display: block; margin-bottom: 2px; }
.bdt-studio .bdt-add.is-over { opacity: .55; }
.bdt-tips { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--mute); line-height: 1.5; }
.bdt-tips li + li { margin-top: 6px; }
.bdt-tips kbd { display: inline-block; min-width: 20px; padding: 0 5px; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; background: #f8fafc; font: 600 11px/18px "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); text-align: center; }
.bdt-fact-big { flex-direction: column; justify-content: flex-start; gap: 2px; margin: 0 0 10px !important; }
.bdt-fact-big b { font-size: 18px; } .bdt-fact-big span { color: var(--mute); font-size: 13px; }
@media (min-width: 1100px) {
  .bdt-studio .bdt-work { grid-template-columns: 76px 272px minmax(0, 1fr) 296px; }
  .bdt-studio .bdt-sizechip span, .bdt-studio .bdt-sizechip u { display: none; } .bdt-studio .bdt-sizechip { flex: none; max-width: none; }
  .bdt-studio .bdt-props { display: flex; flex-direction: column; min-height: 0; background: #fff; border-left: 1px solid var(--line); }
  .bdt-studio .bdt-props-in { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 24px; }
  .bdt-studio .bdt-props .bdt-sheet-x { display: none; }
  .bdt-studio .bdt-stage { background-color: #eef2f7; background-image: radial-gradient(#d3dbe6 1px, transparent 1.2px); background-size: 20px 20px; }
  .bdt-studio .bdt-bar { height: 60px; padding: 0 14px; }
  .bdt-studio .bdt-bar-r { gap: 12px; }
  .bdt-barqty { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
  .bdt-barqty input { width: 64px !important; min-height: 40px; text-align: center; font-weight: 700 !important; padding: 6px 8px !important; }
  .bdt-barprice { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; min-width: 96px; }
  .bdt-barprice b { color: var(--ink); font-size: 18px; font-weight: 800; }
  .bdt-barprice small { color: var(--mute); font-size: 12px; white-space: nowrap; }
}
.bdt-studio .bdt-many { flex-wrap: wrap; }
.bdt-studio .bdt-many .bdt-qchips, .bdt-studio .bdt-many .bdt-qnote { flex-basis: 100%; }
.bdt-studio .bdt-many .bdt-qchips { margin-top: 0; }
/* studio: while Add runs, the tool cannot be changed (the add button shows its progress) */
.bdt-studio.bdt-adding .bdt-main, .bdt-studio.bdt-adding .bdt-steps, .bdt-studio.bdt-adding .bdt-top-r { pointer-events: none; }
.bdt-studio.bdt-adding .bdt-main input, .bdt-studio.bdt-adding .bdt-main textarea { opacity: .7; }

/* Dec 4: typing right on the banner (bdt-app.js ipOpen). The box sits over the words, in their font and color. */
.bdt-ip { position: absolute; z-index: 6; margin: 0; border: 0; outline: 2px solid rgba(11, 95, 255, .55); outline-offset: 2px; resize: none; overflow: hidden; box-sizing: border-box; background: transparent; font-kerning: normal; font-variant-ligatures: common-ligatures; paint-order: stroke fill; -webkit-appearance: none; appearance: none; box-shadow: none; min-width: 0; max-width: none; pointer-events: auto; touch-action: manipulation; }
.bdt-ip::selection { background: rgba(11, 95, 255, .28); }
.bdt-app.is-inplace .bdt-over .bdt-h, .bdt-app.is-inplace .bdt-over .bdt-dim { display: none; }
.bdt-app.is-inplace .bdt-over .bdt-sel { border-color: transparent; box-shadow: none; }
/* Dec 4: the choices that came from /banners, said once on the designs page */
.bdt-chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 24px; padding: 8px 16px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; font-size: 15px; color: #475569; }
.bdt-chosen b { color: #0f172a; font-weight: 600; }
.bdt-chosen .bdt-link { margin-left: auto; }
.bdt-ip { user-select: text; -webkit-user-select: text; cursor: text; }
.bdt-ip { min-height: 0 !important; max-height: none !important; }
/* Dec 4: Review notes, calm. Sample words in one block; other notes as quiet rows with a coloured edge. On a wide
   screen the notes sit under the proof (left), so nothing is squeezed between the choices and Add to cart. */
.bdt-checks-l { margin-top: 24px; width: 100%; text-align: left; align-self: stretch; }
.bdt-starters li { background: none; border-left: 0; border-right: 0; border-bottom: 0; border-radius: 0; flex-direction: row; }
.bdt-checks > ul > li, .bdt-checks > ul > li.bdt-check-strong { background: #fff; border: 1px solid #e2e8f0; border-left: 3px solid #d97706; border-radius: 8px; padding: 8px 16px; color: #334155; font-weight: 400; font-size: 14px; }
.bdt-checks > ul > li.bdt-check-strong { border-left-color: #dc2626; color: #0f172a; font-weight: 500; }
.bdt-starters { background: #fff; border: 1px solid #e2e8f0; border-left: 3px solid #d97706; border-radius: 8px; padding: 16px; margin: 0 0 8px; }
.bdt-starters-h { margin: 0; font-size: 15px; font-weight: 600; color: #0f172a; }
.bdt-starters-s { margin: 4px 0 8px; font-size: 14px; color: #64748b; }
.bdt-starters ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bdt-starters li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid #f1f5f9; font-size: 14px; color: #334155; }
.bdt-starters-w { min-width: 0; overflow-wrap: anywhere; }
.bdt-starters .bdt-check-b { flex: none; margin: 0; gap: 16px; }
.bdt-starters .bdt-approve { margin: 8px 0 0; border-color: #e2e8f0; }
.bdt-checks .bdt-approve.bdt-blur { border-color: #e2e8f0; }
.bdt-checks .bdt-approve.bdt-blur.need { border-color: #d97706; background: #fffbeb; }
@media (max-width: 859px) { .bdt-starters li { padding: 4px 0; } .bdt-starters .bdt-check-b .bdt-link { min-height: 40px; } }
@media (max-width: 859px) { .bdt-sum { display: flex; flex-direction: column; } .bdt-sum > .bdt-checks { order: 5; margin-top: 16px; } .bdt-sum > .bdt-buy, .bdt-sum > .bdt-soon { order: 9; } .bdt-starters { padding: 16px; } }
@media (max-width: 859px) { .bdt-sum .bdt-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .bdt-sum .bdt-chip { padding: 0 4px; font-size: 14px; } }
/* Dec 4: phones: the site's accessibility button sits over the bottom-left corner (16px in, 52px wide). Our bottom
   bars start to the right of it, so no label is hidden. The button itself is not changed. */
@media (max-width: 859px) {
  .bdt-rail { padding-left: 72px; }
  .bdt-rail button { flex: 0 0 58px; }
  .bdt-qrow { padding-left: 72px; }
}
.bdt-chosen { flex-wrap: nowrap; align-items: flex-start; } .bdt-chosen > span { flex: 1 1 0; min-width: 0; } .bdt-chosen .bdt-link { flex: none; }

/* Dec 4 evening: the quiet note in the editor while a piece sits past the safe line, over a grommet or off the banner */
.bdt-edgenote { position: absolute; left: 50%; top: 62px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 12px; max-width: min(94%, 620px); background: #fffbeb; border: 1px solid #f5dfb3; border-left: 3px solid #d97706; border-radius: 8px; padding: 6px 12px; font-size: 13px; line-height: 1.35; color: #5b3a06; box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.bdt-edgenote[hidden] { display: none; }
.bdt-edgenote[data-k^="off"] { background: #fff5f5; border-color: #f0b4b4; border-left-color: #dc2626; color: #7a1c1c; }
.bdt-edgenote .bdt-link { flex: none; white-space: nowrap; min-height: 32px; }
.bdt-studio .bdt-edgenote { top: 68px; }
@media (max-width: 859px) { .bdt-edgenote, .bdt-studio .bdt-edgenote { top: 54px; width: calc(100% - 16px); max-width: none; font-size: 12.5px; padding: 4px 10px; gap: 8px; } .bdt-edgenote .bdt-link { min-height: 40px; } }
.bdt-checks > ul.bdt-checks-top { margin-bottom: 12px; } .bdt-checks > ul.bdt-checks-top > li.bdt-check-strong { background: #fff5f5; border-color: #f0b4b4; border-left: 3px solid #dc2626; font-weight: 600; }

/* Grok Dec 4 evening (BN-C10): on a phone the price and Add to cart stay at the bottom of the Review screen
   until the real button (with its tick box) is on screen */
.bdt-paybar { display: none; }
@media (max-width: 859px) {
  .bdt-paybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 12px; background: #fff; border-top: 1px solid #e5e7eb; box-shadow: 0 -6px 14px -8px rgba(15, 23, 42, .2); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .bdt-paybar[hidden] { display: none; }
  .bdt-paybar-p { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
  .bdt-paybar-p b { font-size: 22px; font-weight: 800; color: #0f172a; } .bdt-paybar-p span { font-size: 13px; color: #5b6472; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bdt-paybar .bdt-btn { flex: 0 0 auto; min-height: 48px; padding: 0 22px; }
  .bdt-app[data-step="review"] .bdt-review { padding-bottom: 84px; }
  .bdt-app.bdt-adding .bdt-paybar { display: none; }
}

/* ---------- Dec 5: shared template grid extras (bdt-gallery.js) ---------- */
/* "Upload my own artwork" card (on /banners/templates only) */
.bdt-tpl-up .bdt-tpl-pic { display: flex; align-items: center; justify-content: center; background: #f8fafc; border-style: dashed; color: var(--blue); }
.bdt-tpl-up .bdt-tpl-pic > span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; text-align: center; }
.bdt-tpl-up .bdt-tpl-pic svg { width: 34px; height: 34px; }
.bdt-tpl-up .bdt-tpl-pic small { font-size: 12px; color: var(--mute); }
/* "Browse templates" on the Design step: a button in the top bar and the grid as a panel over the design */
.bdt-bar .bdt-browse { margin-left: 6px; flex: none; }
/* studio bar (price + button on the right): too narrow for the words under 1600 px, the icon stays (its title says it) */
@media (max-width: 1599px) { .bdt-studio .bdt-bar .bdt-browse span { display: none; } .bdt-studio .bdt-bar .bdt-browse { padding: 0 9px; } }
.bdt-gal { position: absolute; inset: 0; z-index: 35; background: var(--bg); display: flex; flex-direction: column; }
.bdt-gal-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.bdt-gal-top b { display: block; font-size: 18px; font-weight: 800; color: var(--ink); }
.bdt-gal-top span { display: block; font-size: 14px; color: var(--mute); }
.bdt-gal-in { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; width: 100%; padding: 4px 20px 32px; }
.bdt-gal-in > .bdt-cats, .bdt-gal-in > .bdt-tpls { max-width: 1240px; margin-left: auto; margin-right: auto; }
.bdt-gal-in > .bdt-cats { margin-top: 12px; padding-left: 0; padding-right: 0; }
.bdt-toast-undo { margin-left: 10px; background: none; border: 0; padding: 0; color: #9bd5f2 !important; font-weight: 700 !important; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 859px) {
  .bdt-bar .bdt-browse { display: none; }
  .bdt-gal-top { padding: 10px 12px; } .bdt-gal-top b { font-size: 16px; } .bdt-gal-top span { font-size: 13px; }
  .bdt-gal-in { padding: 0 16px 24px; }
}
.bdt-tpl-up-l { display: none; }
