@font-face{font-family:TBDClean;src:url(fonts/DejaVuSans.ttf) format('truetype');font-display:swap}
@font-face{font-family:TBDClassic;src:url(fonts/DejaVuSerif.ttf) format('truetype');font-display:swap}
@font-face{font-family:TBDStrong;src:url(fonts/DejaVuSans-Bold.ttf) format('truetype');font-display:swap}
@font-face{font-family:TBDMono;src:url(fonts/DejaVuSansMono.ttf) format('truetype');font-display:swap}
#tb-designer{--blue:#132d68;--navy:#0d204b;--gold:#f5c035;--ink:#233858;--line:#d6ddeb;background:#faf8f4;color:var(--ink);font-family:Geist,Arial,sans-serif;line-height:1.55;padding-bottom:64px}
#tb-designer,#tb-designer *{box-sizing:border-box}
#tb-designer [hidden]{display:none!important}
#tb-designer h1,#tb-designer h2,#tb-designer p{margin:0}
#tb-designer h1,#tb-designer h2{color:var(--blue);font-family:'Clash Grotesk',Geist,Arial,sans-serif;letter-spacing:-.04em;text-transform:none;line-height:1.07}
#tb-designer .tbd-review-bar{background:var(--navy);color:white;padding:12px 28px;display:flex;align-items:center;justify-content:center;gap:20px;font-size:13px;border-bottom:3px solid var(--gold)}
#tb-designer .tbd-review-bar strong{color:var(--gold)}
#tb-designer .tbd-wrap{width:min(1440px,calc(100% - 64px));margin-inline:auto}
#tb-designer .tbd-heading{display:flex;align-items:center;justify-content:space-between;gap:48px;padding:40px 0 32px}
#tb-designer .tbd-eyebrow{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--blue);margin-bottom:12px}
#tb-designer h1{font-size:clamp(36px,3.5vw,56px)}
#tb-designer h1 span{font-weight:500}
#tb-designer .tbd-heading>p{max-width:370px;font-size:17px}
#tb-designer .tbd-workspace{display:grid;grid-template-columns:1.08fr 1fr;gap:32px;align-items:start}
#tb-designer .tbd-preview{position:sticky;top:30px;background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden}
#tb-designer .tbd-preview-top{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}
#tb-designer h2{font-size:23px;letter-spacing:-.025em}
#tb-designer .tbd-live{font-size:12px;white-space:nowrap;color:var(--blue)}
#tb-designer .tbd-live:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--gold);margin-right:6px}
#tb-designer canvas{width:100%;height:auto;aspect-ratio:1;display:block;background:#f3eee5}
#tb-designer .tbd-view-options{display:flex;flex-wrap:wrap;gap:10px 20px;padding:14px 24px;border-top:1px solid var(--line)}
#tb-designer .tbd-caption{font-size:12px;line-height:1.6;color:#57647c;padding:0 24px 20px}
#tb-designer .tbd-selection{display:flex;justify-content:space-between;gap:20px;padding:20px 24px;margin-bottom:15px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#faf8f4}
#tb-designer .tbd-selection>div{display:flex;flex-direction:column;gap:4px}
#tb-designer .tbd-selection>div:last-child{text-align:right}
#tb-designer .tbd-selection strong{font-size:20px;color:var(--blue)}
#tb-designer .tbd-selection span{font-size:13px}
#tb-designer fieldset{min-width:0;padding:24px;border:1px solid var(--line);border-radius:14px;background:white;margin:0 0 20px}
#tb-designer legend{float:left;width:100%;display:flex;align-items:center;gap:10px;padding:0;margin:0 0 22px;font-size:20px;line-height:1.3;color:var(--blue);font-weight:700}
#tb-designer legend+*{clear:both}
#tb-designer legend>span{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--blue);color:white;font-size:14px;flex-shrink:0}
#tb-designer label{font-size:14px;display:block;color:var(--blue);font-weight:600;margin:0}
#tb-designer select,#tb-designer input[type=number],#tb-designer textarea{width:100%;padding:12px 13px;border:1px solid #b5c0d6;border-radius:7px;background:#fff;color:var(--ink);font:400 16px/1.45 Geist,Arial,sans-serif;min-height:48px;margin:7px 0 0;box-shadow:none}
#tb-designer input[type=search]{width:100%;padding:12px 13px;border:1px solid #b5c0d6;border-radius:7px;background:white;color:var(--ink);font:400 16px/1.45 Arial,sans-serif;min-height:48px;margin-top:7px;box-shadow:none}
#tb-designer textarea{resize:vertical;min-height:98px;max-height:240px}
#tb-designer input[type=range]{width:100%;accent-color:var(--blue);margin:12px 0;min-height:24px;cursor:pointer}
#tb-designer input[type=checkbox]{accent-color:var(--blue);width:17px;height:17px;margin:0 7px 0 0;vertical-align:middle;flex-shrink:0}
#tb-designer .tbd-two{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
#tb-designer .tbd-two:last-child{margin-bottom:0}
#tb-designer .tbd-mode{display:flex;background:#f0f3f8;border:1px solid var(--line);padding:4px;border-radius:8px;margin-bottom:22px;gap:4px}
#tb-designer button{font:600 14px/1.4 Geist,Arial,sans-serif;cursor:pointer;text-transform:none;letter-spacing:0;box-shadow:none;transition:background .15s ease}
#tb-designer .tbd-mode button{flex:1;padding:11px 7px;background:transparent;border:0;border-radius:5px;color:var(--blue);min-height:44px}
#tb-designer .tbd-mode button[aria-pressed=true]{background:var(--blue);color:white}
#tb-designer .tbd-inline-note{float:right;font-size:12px;font-weight:400;color:#586981}
#tb-designer .tbd-help{color:#586981;font-size:12px;margin:8px 0 16px;line-height:1.6}
#tb-designer .tbd-library{margin-bottom:20px;border:1px solid var(--line);border-radius:9px;padding:14px}
#tb-designer .tbd-library summary{cursor:pointer;color:var(--blue);font-weight:700;font-size:15px;min-height:32px}
#tb-designer .tbd-library summary>span{display:block;font-size:12px;font-weight:400;margin:4px 0 10px}
#tb-designer .tbd-library .tbd-two{margin-top:12px}
#tb-designer .tbd-icon-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;max-height:310px;overflow-y:auto;padding:4px}
#tb-designer .tbd-icon,#tb-designer .tbd-starter{border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--blue);padding:10px 5px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;min-height:78px;font-size:11px;text-align:center}
#tb-designer .tbd-icon svg,#tb-designer .tbd-starter svg{width:32px;height:32px;flex-shrink:0}
#tb-designer .tbd-icon:hover,#tb-designer .tbd-starter:hover{background:#fff4ce;border-color:var(--gold)}
#tb-designer .tbd-icon[aria-pressed=true]{background:var(--blue);color:white;border-color:var(--blue)}
#tb-designer .tbd-starters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#tb-designer .tbd-starter{flex-direction:row;font-size:12px;padding:10px;min-height:60px;justify-content:flex-start}
#tb-designer #tbd-art-name{font-size:14px;overflow-wrap:anywhere}
#tb-designer .tbd-type-size{display:flex;gap:16px;align-items:center}
#tb-designer .tbd-type-size>label{flex:1}
#tb-designer output{float:right;font-weight:400}
#tb-designer .tbd-small-button{background:white;color:var(--blue);padding:10px 14px;border:1px solid #aebbd3;border-radius:6px;min-height:42px;white-space:nowrap}
#tb-designer .tbd-small-button:hover{background:#f0f3f8}
#tb-designer .tbd-upload{border:1px dashed #869abd;border-radius:10px;background:#fafbfd;text-align:center;padding:22px 16px;margin-top:18px;cursor:pointer}
#tb-designer .tbd-upload strong{display:block;font-size:17px}
#tb-designer .tbd-upload>span{display:block;margin:5px 0 10px;font-size:12px;font-weight:400}
#tb-designer .tbd-upload input{max-width:100%;font-size:13px;color:var(--ink)}
#tb-designer .tbd-art-tools-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0}
#tb-designer .tbd-text-button{border:0;background:transparent;color:var(--blue);text-decoration:underline;text-underline-offset:4px;padding:10px 0;min-height:40px}
#tb-designer #tbd-upload-status{font-size:13px;color:var(--blue)}
#tb-designer #tbd-validation{padding:14px;border-left:3px solid var(--gold);background:#faf8f4;font-size:14px;white-space:pre-line}
#tb-designer #tbd-validation[data-valid=true]{border-left-color:var(--blue)}
#tb-designer #tbd-summary{font-size:13px;margin:16px 0;white-space:pre-line;overflow-wrap:anywhere}
#tb-designer .tbd-confirm{display:flex;align-items:flex-start;font-size:13px;font-weight:400;margin:18px 0}
#tb-designer .tbd-confirm input{margin-top:3px}
#tb-designer .tbd-primary{display:flex;justify-content:space-between;align-items:center;gap:14px;width:100%;padding:16px 20px;color:var(--blue);background:var(--gold);border:1px solid var(--gold);border-radius:7px;min-height:54px;font-size:16px}
#tb-designer .tbd-cart-review{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}
#tb-designer .tbd-cart-review .tbd-primary{margin-top:16px;background:var(--blue);border-color:var(--blue);color:white}
#tb-designer button:disabled{opacity:.48;cursor:not-allowed}
#tb-designer .tbd-setup{padding:20px;border:1px solid var(--line);border-radius:12px;font-size:13px}
#tb-designer .tbd-setup summary{font-weight:600;color:var(--blue);cursor:pointer}
#tb-designer .tbd-setup p{margin:16px 0}
#tb-designer .tbd-setup .tbd-two{margin-top:18px}
#tb-designer a:focus-visible,#tb-designer button:focus-visible,#tb-designer input:focus-visible,#tb-designer select:focus-visible,#tb-designer textarea:focus-visible,#tb-designer summary:focus-visible{outline:3px solid #3866cc;outline-offset:3px}
@media(max-width:1000px){#tb-designer .tbd-workspace{gap:20px}#tb-designer .tbd-wrap{width:calc(100% - 40px)}#tb-designer fieldset{padding:20px}#tb-designer .tbd-preview{top:20px}#tb-designer .tbd-preview-top{padding:18px}#tb-designer h2{font-size:20px}}
@media(max-width:760px){#tb-designer .tbd-workspace{grid-template-columns:1fr}#tb-designer .tbd-preview{position:static}#tb-designer .tbd-heading{display:block;padding:28px 0}#tb-designer .tbd-heading>p{margin-top:18px;max-width:none}#tb-designer .tbd-review-bar{flex-direction:column;gap:4px;text-align:center;padding:10px 16px}#tb-designer .tbd-wrap{width:calc(100% - 28px)}#tb-designer .tbd-preview canvas{max-height:540px;object-fit:contain}#tb-designer .tbd-view-options label{font-size:12px}}
@media(max-width:380px){#tb-designer .tbd-two{grid-template-columns:1fr;gap:12px}#tb-designer .tbd-mode button{font-size:12px}#tb-designer .tbd-selection{padding:18px}#tb-designer .tbd-selection strong{font-size:17px}}
@media(prefers-reduced-motion:reduce){#tb-designer *{transition:none!important}}
/* Direct positioning is scoped to the customer preview. */
#tb-designer #tbd-canvas{touch-action:none;user-select:none;-webkit-user-select:none}
#tb-designer #tbd-canvas:focus-visible{outline:3px solid #3866cc;outline-offset:-3px}
#tb-designer .tbd-position-tools{padding:16px 24px;border-top:1px solid var(--line);background:#fff}
#tb-designer .tbd-position-tools .tbd-help{margin:0 0 10px}
#tb-designer .tbd-position-tools .tbd-help:last-child{margin-bottom:0}
#tb-designer .tbd-position-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
#tb-designer .tbd-position-actions [aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:white}
#tb-designer .tbd-nudges{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:12px}
#tb-designer .tbd-nudges>span{font-size:12px;margin-right:4px}
#tb-designer .tbd-nudges button{min-width:44px;min-height:44px;font-size:18px;padding:8px}
/* Independent text lines and graphic elements. */
#tb-designer .tbd-text-row{border:1px solid var(--line);border-radius:10px;padding:15px;margin-bottom:14px;background:#fff}
#tb-designer .tbd-text-row[data-selected=true]{border-color:var(--blue);box-shadow:inset 3px 0 var(--blue)}
#tb-designer .tbd-text-row input[type=text]{width:100%;padding:12px 13px;border:1px solid #b5c0d6;border-radius:7px;background:#fff;color:var(--ink);font:400 16px/1.45 Geist,Arial,sans-serif;min-height:48px;margin:7px 0 12px}
#tb-designer .tbd-line-settings{display:grid;grid-template-columns:minmax(0,1fr) 105px;gap:12px;margin-bottom:8px}
#tb-designer .tbd-row-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px}
#tb-designer .tbd-row-actions button{font-size:12px}
#tb-designer .tbd-position-actions{margin-top:12px}
#tb-designer .tbd-selected-tools{margin-top:16px;border:1px solid var(--line);background:#faf8f4;border-radius:9px;padding:16px}
#tb-designer .tbd-selected-tools strong{display:block;color:var(--blue);margin-bottom:12px}

@font-face{font-family:TBDModern;src:url(fonts/Montserrat.ttf) format('truetype');font-display:swap}
@font-face{font-family:TBDElegant;src:url(fonts/CormorantGaramond.ttf) format('truetype');font-display:swap}
@font-face{font-family:TBDHandwritten;src:url(fonts/Caveat.ttf) format('truetype');font-display:swap}
@font-face{font-family:TBDCondensed;src:url(fonts/Oswald.ttf) format('truetype');font-display:swap}
#tb-designer .tbd-stage{position:relative}
#tb-designer #tbd-canvas-controls{position:absolute;inset:0;pointer-events:none}
#tb-designer #tbd-canvas-controls button{position:absolute;pointer-events:auto;transform:translate(-50%,-50%);padding:0;touch-action:none;display:grid;place-items:center}
#tb-designer .tbd-corner{width:44px;height:44px;background:transparent;border:0;border-radius:0;cursor:nwse-resize}
#tb-designer .tbd-corner[data-resize=ne],#tb-designer .tbd-corner[data-resize=sw]{cursor:nesw-resize}
#tb-designer .tbd-corner span{width:13px;height:13px;background:#fff;border:2px solid var(--blue);border-radius:3px;box-shadow:0 1px 3px #0003}
#tb-designer #tbd-preview-delete{width:36px;height:36px;border:1px solid #9b332c;border-radius:50%;background:white;color:#9b332c;box-shadow:0 2px 6px #0002}
#tb-designer #tbd-preview-delete svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
#tb-designer .tbd-side-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:12px 20px;gap:10px;border-bottom:1px solid var(--line)}
#tb-designer .tbd-side-bar>div{display:flex;gap:4px}
#tb-designer .tbd-side-bar button{min-height:42px;padding:8px 13px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--blue)}
#tb-designer .tbd-side-bar button[aria-pressed=true]{background:var(--blue);color:#fff}
#tb-designer #tbd-reset-status:not(:empty){padding:8px 20px}
#tb-designer .tbd-featured{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
#tb-designer .tbd-featured button{background:#fff;border:1px solid var(--line);border-radius:10px;padding:13px;text-align:left;color:var(--blue);display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:center;min-height:100px}
#tb-designer .tbd-featured svg{width:36px;height:36px}
#tb-designer .tbd-featured small{display:block;font-size:11px;line-height:1.4;color:var(--ink);font-weight:400;margin-top:4px}
#tb-designer .tbd-back-option{margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff8df}
#tb-designer #tbd-price-breakdown{font-weight:600;color:var(--blue)}
/* Mobile: one working step beneath a compact, nearby preview. */
#tb-designer .tbd-device-note{font-size:13px;color:#586981;margin:-8px 0 24px}
#tb-designer .tbd-mobile-nav,#tb-designer .tbd-mobile-next,#tb-designer .tbd-mobile-hint{display:none}
#tb-designer .tbd-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#tb-designer .tbd-controls,#tb-designer .tbd-preview{min-width:0}
#tb-designer .tbd-preview{top:var(--tbd-top,30px)}
#tb-designer #tbd-step-edit .tbd-position-tools{padding:0;border:0}
#tb-designer #tbd-step-edit .tbd-view-options{padding:16px 0;margin-top:16px}
#tb-designer #tbd-step-edit .tbd-caption,#tb-designer #tbd-step-review .tbd-caption{padding:0 0 16px}
#tb-designer #tbd-step-review .tbd-selection{padding:16px;border:1px solid var(--line);border-radius:8px;flex-wrap:wrap}
#tb-designer #tbd-step-review .tbd-selection strong{font-size:18px}
#tb-designer .tbd-small-button,#tb-designer .tbd-text-button,#tb-designer .tbd-library summary{min-height:44px}
@media(max-width:760px){
  #tb-designer .tbd-heading{padding:24px 0 22px}
  #tb-designer .tbd-device-note{margin:0 0 20px;font-size:13px}
  #tb-designer .tbd-workspace{gap:16px}
  #tb-designer .tbd-preview-top{padding:10px 14px}
  #tb-designer .tbd-preview-top h2{font-size:18px}
  #tb-designer .tbd-side-bar{padding:6px 10px;gap:6px}
  #tb-designer .tbd-side-bar button{min-height:44px;padding:8px 10px;font-size:13px}
  #tb-designer #tbd-reset-status:empty{display:none}
  #tb-designer #tbd-reset-status:not(:empty){font-size:12px;margin:0;padding:6px 12px}
  #tb-designer[data-mobile=true] .tbd-stage{height:var(--tbd-stage-height,180px);overflow:hidden;background:#f3eee5}
  #tb-designer[data-mobile=true] #tbd-canvas{position:absolute;width:var(--tbd-canvas-size,100%);height:var(--tbd-canvas-size,100%);max-height:none;left:50%;top:50%;transform:translate(-50%,-53%)}
  #tb-designer[data-mobile=true][data-pin-preview=true] .tbd-preview{position:sticky;top:var(--tbd-top,8px);z-index:25;box-shadow:0 6px 18px #132d681a}
  #tb-designer[data-mobile=true] .tbd-mobile-hint{display:block;text-align:center;padding:5px 10px;font-size:11px;color:#586981;background:white}
  #tb-designer[data-mobile=true] .tbd-mobile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;border-top:1px solid var(--line);padding:6px;background:white}
  #tb-designer .tbd-mobile-nav button{display:flex;align-items:center;justify-content:center;gap:5px;background:#fff;color:var(--blue);border:1px solid transparent;border-radius:6px;min-height:44px;padding:8px 2px;font-size:12px}
  #tb-designer .tbd-mobile-nav button[aria-current=step]{background:var(--blue);color:white}
  #tb-designer .tbd-mobile-nav span{font-size:10px;font-weight:400}
  #tb-designer[data-mobile=true] .tbd-mobile-next{display:block;margin-top:18px}
  #tb-designer[data-pin-preview=true] .tbd-controls :is(input,select,button,summary){scroll-margin-top:calc(var(--tbd-top,8px) + var(--tbd-preview-height,320px) + 16px);scroll-margin-bottom:20px}
  #tb-designer #tbd-preview-delete{width:44px;height:44px}
  #tb-designer fieldset{padding:18px;margin-bottom:0}
  #tb-designer legend{font-size:19px;margin-bottom:18px}
  #tb-designer .tbd-featured button{padding:10px;grid-template-columns:28px minmax(0,1fr);gap:7px;font-size:13px}
  #tb-designer .tbd-featured svg{width:26px;height:26px}
  #tb-designer .tbd-text-row{padding:12px}
  #tb-designer .tbd-line-settings{grid-template-columns:minmax(0,1fr) 82px;gap:10px}
  #tb-designer .tbd-library{padding:10px}
  #tb-designer .tbd-icon-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  #tb-designer .tbd-nudges>span{width:100%}
}

/* 2.6.0: QR controls, scoped to the existing designer. */
#tb-designer .tbd-qr-card{border:1px solid var(--line);border-radius:9px;padding:16px;margin:18px 0 20px;background:#f8faff}
#tb-designer .tbd-qr-card h3{margin:0;color:var(--blue);font:700 16px/1.4 Geist,Arial,sans-serif;letter-spacing:normal;text-transform:none}
#tb-designer #tbd-qr-url{display:block;width:100%;min-width:0;padding:12px 13px;border:1px solid #b5c0d6;border-radius:7px;background:white;color:var(--ink);font:400 16px/1.45 Geist,Arial,sans-serif;min-height:48px;margin:7px 0 12px;box-shadow:none}
#tb-designer #tbd-qr-url[aria-invalid=true]{border-color:#9b332c}
#tb-designer .tbd-qr-actions{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
#tb-designer #tbd-qr-create{background:var(--blue);color:#fff;border-color:var(--blue)}
#tb-designer #tbd-qr-create:hover{background:var(--navy)}
#tb-designer .tbd-qr-card .tbd-help:last-child{margin-bottom:0}

/* 2.6.1: QR sizing only; prevent theme input padding from obscuring the endpoints. */
#tb-designer #tbd-qr-size-limits{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#586981;margin-top:-6px}
#tb-designer .tbd-selected-tools[data-kind=qr] #tbd-selected-size{appearance:none;-webkit-appearance:none;display:block;width:100%;height:44px;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;margin:6px 0;cursor:pointer}
#tb-designer .tbd-selected-tools[data-kind=qr] #tbd-selected-size::-webkit-slider-runnable-track{height:6px;border:0;border-radius:3px;background:#d6ddeb}
#tb-designer .tbd-selected-tools[data-kind=qr] #tbd-selected-size::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:22px;height:22px;margin-top:-8px;border:2px solid white;border-radius:50%;background:var(--blue);box-shadow:0 0 0 1px var(--blue)}
#tb-designer .tbd-selected-tools[data-kind=qr] #tbd-selected-size::-moz-range-track{height:6px;border:0;border-radius:3px;background:#d6ddeb}
#tb-designer .tbd-selected-tools[data-kind=qr] #tbd-selected-size::-moz-range-thumb{width:18px;height:18px;border:2px solid white;border-radius:50%;background:var(--blue);box-shadow:0 0 0 1px var(--blue)}
#tb-designer .tbd-selected-tools[data-kind=qr] #tbd-selected-size:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
#tb-designer #tbd-qr-status:empty{display:none}
#tb-designer #tbd-text-size-help{margin-top:10px}
