@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

    /* =========================
       SCOPE: TODO bajo #gbc-tool
       ========================= */
    #gbc-tool * { box-sizing: border-box; }
    #gbc-tool {
      --font-body: "Manrope", "Trebuchet MS", sans-serif;
      --font-display: "Space Grotesk", "Trebuchet MS", sans-serif;
      --font-legacy: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
      --ink: #1b1b1f;
      --ink-soft: #303038;
      --muted: #6b7280;
      --accent: #667eea;
      --accent-strong: #5568d3;
      --accent-cool: #35d6ff;
      --panel-bg: #ffffff;
      --nav-border: rgba(17, 24, 39, 0.12);
      --shadow-soft: 0 12px 30px rgba(27, 27, 31, 0.08);
      --shadow-pop: 0 12px 20px rgba(102, 126, 234, 0.3);
      --left-col: 560px;
      --sticky-top: calc(var(--header-h, 180px) + 12px);
      --sticky-bottom-gap: 12px;
      --sticky-h: calc(100vh - var(--sticky-top) - var(--sticky-bottom-gap));
      --fixed-cols-h: 0px;
      font-family: var(--font-body);
      color: var(--ink);
      padding: 0;
    }
    #gbc-tool.box-type-pillow .gift-only { display: none; }
    #gbc-tool.box-type-gift .pillow-only { display: none; }
    #gbc-tool.box-type-big .gift-only { display: none; }
    #gbc-tool.box-type-petal .gift-only { display: none; }
    #gbc-tool.box-type-big .pillow-only { display: none; }
    #gbc-tool.box-type-cover .gift-only { display: none; }
    #gbc-tool.box-type-cover .pillow-only { display: none; }
    #gbc-tool.box-type-display .pillow-only { display: none; }
    #gbc-tool.box-type-cover .not-cover { display: none; }
    #gbc-tool.box-type-pillow .not-pillow { display: none; }
    #gbc-tool.box-type-big .not-big { display: none; }
    #gbc-tool.box-type-petal .gift-only { display: none; }
    #gbc-tool.box-type-petal .pillow-only { display: none; }
    #gbc-tool.box-type-petal .big-only { display: none; }
    #gbc-tool.box-type-petal .cover-only { display: none; }
    #gbc-tool.box-type-petal .display-only { display: none; }
    #gbc-tool.box-type-petal .mailer-only { display: none; }
    #gbc-tool .petal-only { display: none; }
    #gbc-tool.box-type-petal .petal-only { display: block; }
    #gbc-tool:not(.box-type-big) .big-only { display: none; }
    #gbc-tool:not(.box-type-big):not(.box-type-cover) .big-cover-only { display: none; }
    #gbc-tool:not(.box-type-cover) .cover-only { display: none; }
    #gbc-tool:not(.box-type-display) .display-only { display: none; }
    #gbc-tool:not(.box-type-mailer) .mailer-only { display: none; }
    #gbc-tool.box-type-mailer .not-mailer { display: none; }
    #gbc-tool:not(.box-type-petal) .petal-only { display: none; }
    #gbc-tool.box-type-petal .not-petal { display: none; }
    #gbc-tool.box-type-display .not-display { display: none; }
    #gbc-tool .container {
      max-width: none;
      margin: 0;
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.18);
      overflow: visible;
      border: 1px solid rgba(0,0,0,0.05);
    }
    #gbc-tool .header {
      background: #ffffff;
      color: #111;
      padding: 20px 0 16px;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      width: 100%;
      z-index: 1000;
    }
    #gbc-tool .dieline-frame {
      position: relative;
      --notch-size: 40px;
      --notch-gap: calc(var(--notch-size) + 8px);
      --notch-center: calc(var(--left-col) + ((100% - var(--left-col)) / 4));
      border: 4px solid #ff2fa6;
      border-top: none;
      border-radius: 18px;
      background: linear-gradient(90deg, #e2b65f 0%, #f6dd9a 50%, #e2b65f 100%);
      padding: 6px 0;
      overflow: visible;
    }
    #gbc-tool .dieline-frame .top-border {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      border-radius: 18px 18px 0 0;
      background: linear-gradient(
        90deg,
        #ff2fa6 0,
        #ff2fa6 calc(var(--notch-center) - (var(--notch-gap) / 2)),
        transparent calc(var(--notch-center) - (var(--notch-gap) / 2)),
        transparent calc(var(--notch-center) + (var(--notch-gap) / 2)),
        #ff2fa6 calc(var(--notch-center) + (var(--notch-gap) / 2)),
        #ff2fa6 100%
      );
      z-index: 2;
      pointer-events: none;
    }
    #gbc-tool .dieline-frame .dieline-notch {
      position: absolute;
      top: 0;
      left: var(--notch-center);
      transform: translateX(-50%);
      width: calc(var(--notch-size) + 8px);
      height: calc((var(--notch-size) / 2) + 8px);
      overflow: hidden;
      background: transparent;
      z-index: 4;
      pointer-events: none;
    }
    #gbc-tool .dieline-frame .dieline-notch::before {
      content: "";
      position: absolute;
      width: var(--notch-size);
      height: var(--notch-size);
      left: 0;
      top: calc(var(--notch-size) / -2);
      border: 4px solid #ff2fa6;
      border-radius: 50%;
      background: #ffffff;
    }
    /* Decorative corner marks */
    #gbc-tool .dieline-frame::after {
      content: "";
      position: absolute;
      top: -8px;
      left: -8px;
      right: -8px;
      bottom: -8px;
      pointer-events: none;
      z-index: 1;
      background:
        radial-gradient(circle at 0 0, transparent 10px, #ff2fa6 10px, #ff2fa6 12px, transparent 12px),
        radial-gradient(circle at 100% 0, transparent 10px, #ff2fa6 10px, #ff2fa6 12px, transparent 12px),
        radial-gradient(circle at 0 100%, transparent 10px, #ff2fa6 10px, #ff2fa6 12px, transparent 12px),
        radial-gradient(circle at 100% 100%, transparent 10px, #ff2fa6 10px, #ff2fa6 12px, transparent 12px);
      background-size: 20px 20px;
      background-position: 0 0, 100% 0, 0 100%, 100% 100%;
      background-repeat: no-repeat;
    }
    #gbc-tool .header-content {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: var(--left-col) 1fr 1fr;
      align-items: center;
      gap: 0;
    }
    /* Left section - Logo image */
    #gbc-tool .header-left {
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      height: 100%;
      padding: 6px 18px 6px 20px;
    }
    #gbc-tool .header-left::after {
      content: "";
      position: absolute;
      right: 0;
      top: 0;
      bottom: 0;
      border-right: 3px dashed #35d6ff;
    }
    #gbc-tool .logo-image {
      max-width: 150px;
      height: auto;
      background: transparent;
      mix-blend-mode: multiply;
    }
    /* Center section - Brand name and tagline */
    #gbc-tool .brand-block {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      position: relative;
      height: 100%;
      padding: 6px 18px;
    }
    #gbc-tool .brand-block::after {
      content: "";
      position: absolute;
      right: 0;
      top: 0;
      bottom: 0;
      border-right: 3px dashed #35d6ff;
    }
    #gbc-tool .brand-name {
      font-family: var(--font-legacy);
      font-size: 36px;
      font-weight: 800;
      color: #111;
      margin-top: 30px;
    }
    #gbc-tool .brand-muted {
      color: #9ca3af;
    }
    #gbc-tool .brand-tagline {
      margin-top: 8px;
      font-size: 24px;
      color: #666;
    }
    #gbc-tool .beta-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-left: 8px;
      padding: 3px 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.2px;
      color: #6b3f00;
      background: linear-gradient(180deg, #f9e08c 0%, #f1c35f 100%);
      border: 1px solid #e6b955;
      box-shadow: 0 1px 0 rgba(0,0,0,0.15);
      text-transform: uppercase;
      vertical-align: middle;
    }
    /* Right section - Headline */
    #gbc-tool .header-headline {
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 800;
      text-align: center;
      color: #111;
      letter-spacing: 0.2px;
      padding: 6px 20px 6px 18px;
    }
    #gbc-tool .headline-main {
      font-size: 22px;
      font-weight: 800;
      color: #111;
    }
#gbc-tool .headline-sub {
      margin-top: 6px;
      font-size: 14px;
      font-weight: 500;
      color: #6b7280;
    }

    #gbc-tool .tab-menu {
      position: absolute;
      top: -18px;
      right: 20px;
      display: flex;
      gap: 10px;
      z-index: 4;
    }
    #gbc-tool .tab-link {
      text-decoration: none;
      color: #111;
      font-weight: 600;
      font-size: 13.5px;
      padding: 8px 14px 10px;
      border: 4px solid #ff2fa6;
      border-radius: 12px 12px 0 0;
      background: #ffffff;
      display: inline-flex;
      align-items: center;
      line-height: 1;
    }
    #gbc-tool .tab-link.is-active {
      font-weight: 800;
    }
    #gbc-tool .fold-line {
      display: none;
    }
    #gbc-tool .dieline-frame .bottom-dotted-line {
      display: none;
    }
    #gbc-tool .header-spacer {
      height: 1px;
    }
    @media (max-width: 768px) {
      #gbc-tool .header-content {
        grid-template-columns: 1fr;
        text-align: left;
      }
      #gbc-tool .dieline-frame {
        --notch-center: 50%;
      }
      #gbc-tool .tab-menu {
        position: static;
        flex-wrap: wrap;
        margin-top: 10px;
      }
      #gbc-tool .fold-line.vertical {
        display: none;
      }
      #gbc-tool .fold-line.horizontal {
        bottom: 12px;
      }
      #gbc-tool .header-spacer {
        display: none;
      }
    }

    #gbc-tool .main-grid{
      display:grid;
      grid-template-columns: var(--left-col) 1fr 1fr;
      gap:0;
      padding-top: var(--header-h, 180px);
      min-height: 640px;
      align-items: start;
    }
    @media (max-width: 1200px){
      #gbc-tool .main-grid{ grid-template-columns: 1fr; }
    }
    @media (max-width: 1200px){
      #gbc-tool .controls-body{
        grid-template-columns: 1fr;
      }
      #gbc-tool .box-type-section{
        margin-left: 0;
        width: 100%;
      }
      #gbc-tool .section-nav{
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 6px;
      }
      #gbc-tool .section-btn{
        min-width: 140px;
        flex: 0 0 auto;
        width: auto;
      }
    }
    @media (max-width: 1200px){
      #gbc-tool .controls-panel{
        height: auto;
        max-height: none;
      }
      #gbc-tool .controls-panel,
      #gbc-tool .dieline-panel,
      #gbc-tool .preview-panel{
        position: static;
        top: auto;
        height: auto;
        max-height: none;
        overflow: visible;
      }
      #gbc-tool .section-content{
        max-height: none;
        overflow-y: visible;
        overflow-x: hidden;
        padding-right: 0;
      }
      #gbc-tool #gbc_update{
        margin-top: 12px;
      }
    }

    /* Panel controles */
    #gbc-tool .controls-panel{
      background: var(--panel-bg);
      padding: 18px 18px 22px;
      border-right:1px solid #e5e7eb;
      overflow: visible;
      overflow-x: visible;
      display:flex;
      flex-direction:column;
      gap: 16px;
      --nav-col: 140px;
      --nav-gap: 16px;
      min-width: 0;
    }
    #gbc-tool .box-type-section{
      background: #ffffff;
      border: 1px solid rgba(17, 24, 39, 0.08);
      border-radius: 14px;
      padding: 14px;
      box-shadow: var(--shadow-soft);
      margin-left: calc(var(--nav-col) + var(--nav-gap));
      width: calc(100% - (var(--nav-col) + var(--nav-gap)));
    }
    #gbc-tool .controls-body{
      display:grid;
      grid-template-columns: var(--nav-col) minmax(0, 1fr);
      gap: var(--nav-gap);
      align-items: start;
      flex: 0 0 auto;
      min-height: var(--fixed-cols-h);
      position: relative;
      isolation: isolate;
    }
    #gbc-tool .section-nav{
      display:flex;
      flex-direction:column;
      gap: 10px;
      position: sticky;
      top: var(--sticky-top);
      align-self: start;
      margin-left: -4px;
      z-index: 5;
    }
    #gbc-tool .section-btn{
      border: 1px solid var(--nav-border);
      border-radius: 16px;
      padding: 12px 14px;
      background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
      color: var(--ink);
      font-size: 12.5px;
      font-weight: 700;
      display:flex;
      align-items:center;
      gap: 10px;
      width: 100%;
      justify-content: flex-start;
      cursor:pointer;
      transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
      box-shadow: 0 10px 18px rgba(27, 27, 31, 0.08);
    }
    #gbc-tool .section-btn:hover{
      transform: translateY(-1px);
      box-shadow: 0 14px 22px rgba(27, 27, 31, 0.12);
    }
    #gbc-tool .section-btn:focus-visible{
      outline: 2px solid var(--accent-cool);
      outline-offset: 2px;
    }
    #gbc-tool .section-btn.is-active{
      background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
      color: #ffffff;
      border-color: transparent;
      box-shadow: var(--shadow-pop);
    }
    #gbc-tool .section-icon{
      width: 28px;
      height: 28px;
      border-radius: 10px;
      display:flex;
      align-items:center;
      justify-content:center;
      background: rgba(102, 126, 234, 0.14);
      color: var(--accent-strong);
      flex-shrink: 0;
    }
    #gbc-tool .section-btn.is-active .section-icon{
      background: rgba(255, 255, 255, 0.24);
      color: #ffffff;
    }
    #gbc-tool .section-icon svg{
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    #gbc-tool .section-label{
      line-height: 1.2;
      white-space: normal;
      text-align: left;
    }
    #gbc-tool .section-content{
      min-width: 0;
      max-height: none;
      min-height: auto;
      height: auto;
      overflow-y: visible;
      overflow-x: visible;
      padding-right: 6px;
      position: relative;
      z-index: 20;
    }
    #gbc-tool .controls-panel input,
    #gbc-tool .controls-panel select,
    #gbc-tool .controls-panel textarea{
      max-width: 100%;
    }
    #gbc-tool .section-panel{
      background:#ffffff;
      border: 1px solid rgba(17, 24, 39, 0.08);
      border-radius: 16px;
      padding: 20px;
      box-shadow: var(--shadow-soft);
      display:none;
      animation: panelIn 0.3s ease;
      min-width: 0;
      position: relative;
      z-index: 20;
    }
    #gbc-tool .section-panel.is-active{
      display:block;
    }
    #gbc-tool .section-panel-title{
      font-family: var(--font-display);
      font-size: 15px;
      font-weight: 700;
      color: var(--ink);
      margin-bottom: 12px;
    }
    #gbc-tool .section-panel .input-group{
      margin-bottom: 18px;
    }
    #gbc-tool .section-panel .row{
      gap: 16px;
      margin-bottom: 10px;
      grid-template-columns: 1fr;
    }
    #gbc-tool .section-panel .radio-group{
      gap: 14px;
      margin-top: 10px;
    }
    #gbc-tool .section-panel .input-group label{
      line-height: 1.4;
      margin-bottom: 8px;
      white-space: normal;
    }
    #gbc-tool .section-panel .muted{
      margin-top: 8px;
    }
    @keyframes panelIn {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }
    #gbc-tool .section{ margin-bottom: 14px; }
    #gbc-tool .section.section-collapsible{
      border-bottom: 1px solid #e5e7eb;
      padding-bottom: 8px;
    }
    #gbc-tool .section.section-collapsible:last-of-type{
      border-bottom: none;
    }
    #gbc-tool .section-title{
      font-family: var(--font-display);
      font-size: 15px;
      font-weight: 700;
      color: var(--ink);
      margin-bottom: 10px;
      padding-bottom: 8px;
      border-bottom: 2px solid var(--accent-cool);
      letter-spacing: 0.2px;
    }
    #gbc-tool .section.section-collapsible > summary.section-title{
      list-style: none;
      cursor: pointer;
      display:flex;
      align-items:center;
      justify-content: space-between;
      margin-bottom: 0;
    }
    #gbc-tool .section.section-collapsible[open] > summary.section-title{
      margin-bottom: 10px;
    }
    #gbc-tool .section.section-collapsible > summary.section-title::after{
      content:"+";
      font-size: 16px;
      font-weight: 800;
      color:#6b7280;
    }
    #gbc-tool .section.section-collapsible[open] > summary.section-title::after{
      content:"-";
    }
    #gbc-tool .section.section-collapsible > summary.section-title::-webkit-details-marker{
      display:none;
    }
    #gbc-tool .input-group{ margin-bottom: 12px; }
    #gbc-tool .input-group label{
      display:block;
      font-size: 12.5px;
      font-weight: 650;
      color: var(--ink-soft);
      margin-bottom: 6px;
    }
    #gbc-tool .label-with-info{
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      width: 100%;
    }
    #gbc-tool .label-with-info::before{
      content: "";
      position: absolute;
      left: 50%;
      top: calc(100% + 2px);
      transform: translateX(-50%) translateY(4px);
      border-width: 6px;
      border-style: solid;
      border-color: transparent transparent #111827 transparent;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.15s ease, transform 0.15s ease;
      z-index: 200;
    }
    #gbc-tool .label-with-info::after{
      content: attr(data-tip-en) "\A\A" attr(data-tip-es);
      position: absolute;
      left: 50%;
      top: calc(100% + 12px);
      transform: translateX(-50%) translateY(4px);
      width: min(320px, calc(100% - 12px));
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid rgba(255,255,255,0.12);
      background: #111827;
      color: #f9fafb;
      font-size: 11px;
      font-weight: 500;
      line-height: 1.35;
      white-space: pre-line;
      text-align: left;
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.15s ease, transform 0.15s ease;
      z-index: 200;
    }
    #gbc-tool .label-with-info:hover::before,
    #gbc-tool .label-with-info:hover::after,
    #gbc-tool .label-with-info:focus-within::before,
    #gbc-tool .label-with-info:focus-within::after{
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
    #gbc-tool .info-tip{
      position: relative;
      width: 16px;
      height: 16px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      font-weight: 800;
      line-height: 1;
      color: #4b5563;
      border: 1px solid #c7cedb;
      background: #f3f4f6;
      cursor: help;
      user-select: none;
    }
    #gbc-tool .info-tip:focus-visible{
      outline: 2px solid var(--accent-cool);
      outline-offset: 1px;
    }
    #gbc-tool input[type="number"],
    #gbc-tool input[type="text"]{
      width: 100%;
      padding: 10px 12px;
      border: 2px solid #e5e7eb;
      border-radius: 10px;
      font-size: 14px;
      transition: .15s;
      background:#fff;
    }
    #gbc-tool select{
      width: 100%;
      padding: 10px 12px;
      border: 2px solid #e5e7eb;
      border-radius: 10px;
      font-size: 14px;
      transition: .15s;
      background:#fff;
    }
    #gbc-tool .build-plate-picker{
      position: relative;
    }
    #gbc-tool .build-plate-native{
      position: absolute;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
      overflow: hidden;
      clip-path: inset(50%);
    }
    #gbc-tool .build-plate-toggle{
      width: 100%;
      min-height: 68px;
      border: 2px solid #d7dbe4;
      border-radius: 12px;
      background: #ffffff;
      padding: 10px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      cursor: pointer;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
      text-align: left;
    }
    #gbc-tool .build-plate-toggle:hover{
      border-color: #bcc3d1;
    }
    #gbc-tool .build-plate-toggle:focus-visible{
      outline: 2px solid var(--accent-cool);
      outline-offset: 2px;
    }
    #gbc-tool .build-plate-selected{
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-width: 0;
    }
    #gbc-tool .build-plate-size{
      font-family: var(--font-body);
      font-size: 14px;
      line-height: 1.3;
      font-weight: 600;
      color: #374151;
    }
    #gbc-tool .build-plate-model{
      font-family: var(--font-body);
      font-size: 14px;
      line-height: 1.3;
      color: #6b7280;
      white-space: normal;
      word-break: break-word;
    }
    #gbc-tool .build-plate-chevron{
      font-size: 15px;
      font-weight: 800;
      color: #6b7280;
      flex-shrink: 0;
    }
    #gbc-tool .build-plate-picker.is-open .build-plate-chevron{
      transform: rotate(180deg);
    }
    #gbc-tool .build-plate-menu{
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      right: 0;
      z-index: 40;
      max-height: 320px;
      overflow-y: auto;
      background: #ffffff;
      border: 1px solid #d7dbe4;
      border-radius: 12px;
      box-shadow: 0 14px 28px rgba(17, 24, 39, 0.14);
      padding: 6px;
    }
    #gbc-tool .build-plate-option{
      width: 100%;
      border: none;
      border-radius: 9px;
      background: transparent;
      padding: 10px 12px;
      text-align: left;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      gap: 2px;
      transition: background 0.15s ease;
    }
    #gbc-tool .build-plate-option:hover{
      background: #f3f4f6;
    }
    #gbc-tool .build-plate-option.is-selected{
      background: #ede8e2;
    }
    #gbc-tool .build-plate-option.is-selected .build-plate-size{
      color: #111827;
    }
    #gbc-tool .custom-bed-fields{
      margin-top: -2px;
      margin-bottom: 8px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #gbc-tool .custom-bed-fields[hidden]{
      display: none !important;
    }
    @media (max-width: 680px){
      #gbc-tool .custom-bed-fields{
        grid-template-columns: 1fr;
      }
    }
    #gbc-tool input[type="number"]:focus,
    #gbc-tool input[type="text"]:focus{
      outline:none;
      border-color: var(--accent-cool);
      box-shadow: 0 0 0 3px rgba(30, 168, 150, 0.16);
    }

    #gbc-tool .radio-group{
      display:flex;
      gap: 12px;
      margin-top: 6px;
      flex-wrap: wrap;
    }
    #gbc-tool .radio-group label{
      display:flex;
      align-items:center;
      gap:6px;
      font-size: 13px;
      cursor:pointer;
      color:#374151;
      font-weight: 600;
    }

    #gbc-tool .row{
      display:grid;
      gap:10px;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      align-items: start;
    }
    #gbc-tool .row > *{
      min-width: 0;
    }

    #gbc-tool .btn{
      width:100%;
      padding: 12px 14px;
      border:none;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 800;
      font-family: var(--font-display);
      letter-spacing: 0.2px;
      cursor:pointer;
      transition: .15s;
      display:flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      user-select:none;
    }
    #gbc-tool .btn:active{ transform: translateY(1px); }

    #gbc-tool .btn-primary{ background: var(--accent); color:#fff; }
    #gbc-tool .btn-primary:hover{ background: var(--accent-strong); box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3); }

    #gbc-tool .btn-secondary{ background:#6b7280; color:#fff; }
    #gbc-tool .btn-secondary:hover{ background:#4b5563; }

    #gbc-tool .btn-success{ background:#10b981; color:#fff; }
    #gbc-tool .btn-success:hover{ background:#059669; }

    #gbc-tool .btn-danger{ background:#ef4444; color:#fff; }
    #gbc-tool .btn-danger:hover{ background:#dc2626; }

    #gbc-tool .file-input-wrapper{ width:100%; }
    #gbc-tool input[type="file"]{ display:none; }
    #gbc-tool .file-input-label{
      display:flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      padding: 10px 14px;
      background:#fff;
      border: 2px dashed #d1d5db;
      border-radius: 10px;
      cursor:pointer;
      transition:.15s;
      font-size: 13px;
      color:#6b7280;
      font-weight: 700;
    }
    #gbc-tool .file-input-label:hover{
      border-color: var(--accent);
      background:#f9fafb;
    }
    #gbc-tool .logo-preview{
      margin-top: 10px;
      padding: 10px;
      background:#fff;
      border: 1px solid #e5e7eb;
      border-radius: 10px;
      text-align:center;
    }
    #gbc-tool .logo-preview img{
      max-width: 100%;
      max-height: 120px;
      border-radius: 6px;
    }
    #gbc-tool .section-panel-subtitle{
      font-size: 12.5px;
      font-weight: 700;
      color: var(--ink-soft);
      margin: 8px 0 12px;
    }
    #gbc-tool .logo-pipeline{
      margin-top: 16px;
      padding-top: 12px;
      border-top: 1px solid #e5e7eb;
    }
    #gbc-tool .logo-debug{
      margin-top: 12px;
      padding: 12px;
      border-radius: 12px;
      border: 1px solid #e5e7eb;
      background: #f9fafb;
      display: grid;
      gap: 10px;
      min-width: 0;
      max-width: 100%;
    }
    #gbc-tool .logo-debug-block{
      background: #ffffff;
      border-radius: 10px;
      border: 1px solid #e5e7eb;
      padding: 8px 10px;
      min-width: 0;
      max-width: 100%;
    }
    #gbc-tool .logo-debug-title{
      font-size: 12px;
      font-weight: 700;
      color: var(--ink-soft);
      margin-bottom: 6px;
    }
    #gbc-tool .logo-debug-palette{
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }
    #gbc-tool .logo-debug-swatch{
      width: 22px;
      height: 22px;
      border-radius: 6px;
      border: 1px solid #e5e7eb;
      cursor: pointer;
      position: relative;
    }
    #gbc-tool .logo-debug-swatch.is-background{
      outline: 2px solid #0f766e;
      outline-offset: 1px;
    }
    #gbc-tool .logo-debug-swatch.is-background::after{
      content: "BACKGROUND";
      position: absolute;
      right: -4px;
      top: -4px;
      background: #0f766e;
      color: #ffffff;
      font-size: 7px;
      padding: 1px 4px;
      border-radius: 4px;
      white-space: nowrap;
    }
    #gbc-tool .logo-debug-hint{
      font-size: 11px;
      margin: 2px 0 6px 0;
    }
    #gbc-tool .logo-debug-masks{
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    #gbc-tool .logo-debug-canvas{
      width: 72px;
      height: auto;
      border-radius: 6px;
      border: 1px solid #e5e7eb;
      background: #ffffff;
    }
    #gbc-tool .logo-debug-svg{
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    #gbc-tool .logo-debug-svg-block{
      width: 72px;
      border-radius: 6px;
      border: 1px solid #e5e7eb;
      background: #ffffff;
      padding: 4px;
    }
    #gbc-tool .logo-debug-svg-block svg{
      width: 100%;
      height: auto;
      display: block;
    }
    #gbc-tool .logo-debug-stats{
      font-size: 12px;
      word-break: break-word;
      overflow-wrap: anywhere;
    }
    #gbc-tool .logo-debug-mask-table{
      overflow-x: hidden;
      max-width: 100%;
    }
    #gbc-tool .logo-mask-table{
      width: 100%;
      table-layout: fixed;
      border-collapse: collapse;
      font-size: 11.5px;
    }
    #gbc-tool .logo-mask-table th,
    #gbc-tool .logo-mask-table td{
      padding: 4px 6px;
      border-bottom: 1px solid #e5e7eb;
      text-align: left;
      vertical-align: middle;
      white-space: normal;
      word-break: break-word;
      overflow-wrap: anywhere;
    }
    #gbc-tool .logo-mask-color{
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    #gbc-tool .logo-mask-swatch{
      width: 16px;
      height: 16px;
      border-radius: 4px;
      border: 1px solid #e5e7eb;
      display: inline-block;
    }
    #gbc-tool .logo-mask-status{
      font-weight: 700;
    }
    #gbc-tool .logo-mask-status.keep{
      color: #059669;
    }
    #gbc-tool .logo-mask-status.skip{
      color: #b91c1c;
    }
    #gbc-tool .logo-mask-preview{
      width: 48px;
      height: auto;
      border-radius: 4px;
      border: 1px solid #e5e7eb;
      background: #ffffff;
      display: block;
    }
    #gbc-tool .logo-debug-controls{
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }
    #gbc-tool .logo-debug-controls select{
      flex: 1 1 180px;
    }
    #gbc-tool .logo-debug-controls .btn{
      width: auto;
      flex: 0 0 auto;
      padding: 8px 12px;
      font-size: 12.5px;
    }
    #gbc-tool .text-toolbar{
      display: flex;
      gap: 10px;
      margin-bottom: 12px;
    }
    #gbc-tool .text-toolbar .btn{
      width: auto;
      flex: 1 1 auto;
    }
    #gbc-tool #gbc_textContent{
      width: 100%;
      min-height: 88px;
      padding: 10px 12px;
      border: 2px solid #e5e7eb;
      border-radius: 10px;
      font-size: 14px;
      line-height: 1.35;
      transition: .15s;
      background: #fff;
      resize: vertical;
    }
    #gbc-tool .text-letter-panel{
      margin-top: 12px;
      padding: 12px;
      border-radius: 12px;
      border: 1px solid #e5e7eb;
      background: #f9fafb;
    }
    #gbc-tool .text-letter-header{
      font-size: 12px;
      font-weight: 700;
      color: var(--ink-soft);
      margin-bottom: 8px;
    }
    #gbc-tool .text-letter-controls{
      display: flex;
      gap: 8px;
      align-items: center;
      margin-bottom: 10px;
      flex-wrap: wrap;
    }
    #gbc-tool .text-letter-controls input[type="color"]{
      width: 46px;
      height: 30px;
      border: 1px solid #e5e7eb;
      border-radius: 6px;
      padding: 0;
      background: #fff;
    }
    #gbc-tool .text-letter-grid{
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(28px, 1fr));
      gap: 6px;
    }
    #gbc-tool .text-letter{
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 28px;
      border-radius: 8px;
      border: 1px solid #d1d5db;
      background: #ffffff;
      font-size: 12px;
      font-weight: 700;
      color: #111827;
      cursor: pointer;
      transition: transform 0.12s ease, border-color 0.12s ease;
    }
    #gbc-tool .text-letter:hover{
      transform: translateY(-1px);
      border-color: var(--accent);
    }
    #gbc-tool .text-letter.is-space{
      color: #9ca3af;
      font-weight: 600;
    }
    #gbc-tool .text-debug{
      margin-top: 12px;
      padding: 12px;
      border-radius: 12px;
      border: 1px solid #e5e7eb;
      background: #ffffff;
    }
    #gbc-tool .text-debug-title{
      font-size: 12px;
      font-weight: 700;
      color: var(--ink-soft);
      margin-bottom: 6px;
    }
    #gbc-tool .color-list{
      display:flex;
      flex-direction:column;
      gap:8px;
      margin-top: 8px;
    }
    #gbc-tool .color-row{
      display:flex;
      align-items:center;
      gap:8px;
      font-size: 12.5px;
      color:#374151;
      font-weight: 650;
    }
    #gbc-tool .color-row.active{
      background:#eef2ff;
      border-radius: 8px;
      padding: 4px 6px;
    }
    #gbc-tool .color-row input[type="color"]{
      width: 48px;
      height: 30px;
      border: 1px solid #e5e7eb;
      border-radius: 6px;
      padding: 0;
      background:#fff;
    }
    #gbc-tool .color-row span{
      min-width: 70px;
    }
    #gbc-tool .color-row select{
      flex: 1;
      padding: 6px 8px;
      border: 1px solid #e5e7eb;
      border-radius: 6px;
      font-size: 12.5px;
      background:#fff;
    }
    #gbc-tool .checkbox-row{
      display:flex;
      align-items:center;
      gap:8px;
      font-size: 12.5px;
      font-weight: 650;
      color: var(--ink-soft);
      margin-top: 8px;
    }
    #gbc-tool .checkbox-row input{
      width:auto;
    }
    #gbc-tool .is-disabled{
      opacity: 0.55;
    }
    #gbc-tool #gbc_svg{
      cursor: pointer;
      touch-action: none;
    }

    /* Panel dieline */
    #gbc-tool .dieline-panel{
      padding: 20px;
      background:#fff;
      border-right:1px solid #e5e7eb;
      position: sticky;
      top: var(--sticky-top);
      align-self: start;
      overflow: visible;
    }
    #gbc-tool .panel-header{
      display:flex;
      justify-content:space-between;
      align-items:center;
      margin-bottom: 12px;
      gap: 10px;
      flex-wrap: wrap;
    }
    #gbc-tool .panel-title{
      font-size: 16px;
      font-weight: 900;
      color: var(--ink);
      font-family: var(--font-display);
    }
    #gbc-tool .bed-fit-warning{
      color: #b91c1c;
      font-size: 12.5px;
      font-weight: 700;
      line-height: 1.25;
      text-align: right;
    }
    #gbc-tool .bed-fit-warning[hidden]{
      display: none !important;
    }
    #gbc-tool .svg-container{
      border: 2px solid #e5e7eb;
      border-radius: 12px;
      background:#fafafa;
      padding: 12px;
      overflow:auto;
    }
    #gbc-tool .legend{
      margin-top: 10px;
      padding: 10px;
      background:#f3f4f6;
      border-radius: 10px;
      font-size: 12px;
      color:#6b7280;
    }
    #gbc-tool .legend-item{
      display:flex;
      align-items:center;
      gap: 8px;
      margin-bottom: 6px;
    }
    #gbc-tool .legend-color{
      width: 28px;
      height: 4px;
      border-radius: 3px;
    }

    /* Panel 3D */
    #gbc-tool .preview-panel{
      padding: 20px;
      background:#fff;
      position: sticky;
      top: var(--sticky-top);
      align-self: start;
      overflow: visible;
    }
    #gbc-tool .three-container{
      width:100%;
      height: 420px;
      border: 2px solid #e5e7eb;
      border-radius: 12px;
      overflow:hidden;
      background:#f3f4f6;
    }
    #gbc-tool .controls-3d{
      margin-top: 12px;
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    #gbc-tool .view-mode-btn{
      background:#6b7280;
      color:#fff;
    }
    #gbc-tool .view-mode-btn:hover{
      background:#4b5563;
    }
    #gbc-tool .view-mode-btn.is-active-view{
      background:#10b981;
    }
    #gbc-tool .view-mode-btn.is-active-view:hover{
      background:#059669;
    }
    #gbc-tool .coming-soon-trigger{
      position: relative;
      overflow: visible;
    }
    #gbc-tool .coming-soon-trigger::before,
    #gbc-tool .coming-soon-trigger::after{
      position: absolute;
      left: 50%;
      opacity: 0;
      pointer-events: none;
      transition: opacity 160ms ease, transform 160ms ease;
      z-index: 6;
    }
    #gbc-tool .coming-soon-trigger::before{
      content: "";
      top: -8px;
      transform: translateX(-50%) translateY(4px);
      border-left: 7px solid transparent;
      border-right: 7px solid transparent;
      border-top: 7px solid #111827;
    }
    #gbc-tool .coming-soon-trigger::after{
      content: attr(data-coming-soon);
      top: -14px;
      transform: translateX(-50%) translateY(4px);
      background: #111827;
      color: #f8fafc;
      border: 1px solid rgba(148, 163, 184, 0.45);
      border-radius: 8px;
      padding: 6px 10px;
      font-size: 12px;
      font-weight: 600;
      white-space: nowrap;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    }
    #gbc-tool .coming-soon-trigger:hover::before,
    #gbc-tool .coming-soon-trigger:hover::after,
    #gbc-tool .coming-soon-trigger:focus::before,
    #gbc-tool .coming-soon-trigger:focus::after,
    #gbc-tool .coming-soon-trigger.show-coming-soon::before,
    #gbc-tool .coming-soon-trigger.show-coming-soon::after{
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    #gbc-tool .view-mode-btn.is-disabled-view{
      position: relative;
      overflow: visible;
      background:#4b5563;
      opacity: 0.7;
      cursor: not-allowed;
    }
    #gbc-tool .view-mode-btn.is-disabled-view:hover{
      background:#4b5563;
    }
    #gbc-tool .btn.is-disabled-feature{
      background:#4b5563 !important;
      color:#fff !important;
      opacity: 0.72;
      cursor: not-allowed;
    }
    #gbc-tool .btn.is-disabled-feature:hover{
      background:#4b5563 !important;
      transform: none;
      box-shadow: none;
    }
    #gbc-tool .tab-link.is-disabled-feature{
      opacity: 0.82;
      cursor: not-allowed;
    }
    #gbc-tool .section-btn.is-disabled-section-btn{
      background: linear-gradient(135deg, #dbe2ea 0%, #cdd5df 100%);
      color: #475569;
      border-color: #cbd5e1;
      opacity: 0.85;
      cursor: not-allowed;
    }
    #gbc-tool .section-btn.is-disabled-section-btn:hover{
      transform: none;
      box-shadow: 0 10px 18px rgba(27, 27, 31, 0.08);
    }
    #gbc-tool .info-box{
      margin-top: 12px;
      padding: 10px;
      background:#eff6ff;
      border-left: 4px solid #3b82f6;
      border-radius: 10px;
      font-size: 12px;
      color:#1e40af;
      line-height: 1.35;
    }
    #gbc-tool .muted{
      font-size: 12px;
      color: var(--muted);
      line-height: 1.35;
    }

    #gbc-tool .pill{
      display:inline-block;
      font-size: 11px;
      font-weight: 800;
      padding: 4px 8px;
      border-radius: 999px;
      background:#111827;
      color:#fff;
    }
    #gbc-tool #gbc_update{
      margin-top: 12px;
    }

    /* Footer */
    #gbc-tool .bp-footer-shell{
      margin: 0;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      background:
        radial-gradient(1200px 400px at 10% -20%, rgba(148, 163, 184, 0.2), transparent 60%),
        radial-gradient(1000px 380px at 90% 120%, rgba(75, 85, 99, 0.28), transparent 60%),
        linear-gradient(180deg, #42505c 0%, #42505c 100%);
      padding: 32px 22px 40px;
    }
    #gbc-tool .bp-footer{
      position: relative;
      max-width: 1460px;
      margin: 0 auto;
      border-radius: 26px;
      border: 1px solid rgba(148, 163, 184, 0.22);
      background: rgba(66, 80, 92, 0.72);
      box-shadow: 0 20px 50px rgba(2, 6, 23, 0.45);
      backdrop-filter: blur(8px);
      padding: 22px;
      overflow: hidden;
    }
    #gbc-tool .bp-footer-backdrop{
      position: absolute;
      inset: -140px -120px auto;
      height: 220px;
      background: radial-gradient(circle at center, rgba(56, 189, 248, 0.25), transparent 70%);
      pointer-events: none;
      filter: blur(26px);
      opacity: 0.5;
    }
    #gbc-tool .bp-footer-cards{
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      margin-bottom: 18px;
      position: relative;
      z-index: 1;
    }
    #gbc-tool .bp-footer-card{
      position: relative;
      border: 1px solid rgba(255, 255, 255, 0.10);
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.35));
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      color: #f8fafc;
      min-height: 130px;
      width: 100%;
      display: flex;
      align-items: flex-start;
      gap: 14px;
      text-align: left;
      cursor: pointer;
      padding: 18px;
      transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
      box-shadow: 0 10px 30px rgba(0,0,0,0.35);
      overflow: hidden;
    }
    #gbc-tool .bp-footer-card::before{
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      pointer-events: none;
      background: radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,0.10), rgba(255,255,255,0.00) 60%);
    }
    #gbc-tool .bp-footer-card > *{
      position: relative;
      z-index: 1;
    }
    #gbc-tool .bp-footer-card:hover{
      transform: translateY(-2px);
      border-color: rgba(255,255,255,0.18);
      box-shadow: 0 14px 42px rgba(15,85,235,0.12), 0 14px 42px rgba(0,0,0,0.40);
    }
    #gbc-tool .bp-footer-card:focus-visible{
      outline: 2px solid #67e8f9;
      outline-offset: 2px;
    }
    #gbc-tool .bp-footer-card-icon{
      flex: 0 0 auto;
      width: 44px;
      height: 44px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(255,255,255,0.08);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #c7d2fe;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    #gbc-tool .bp-footer-card-icon svg{
      width: 22px;
      height: 22px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    #gbc-tool .bp-footer-card-copy{
      display: grid;
      gap: 8px;
    }
    #gbc-tool .bp-footer-card-title{
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 18px;
      color: #ffffff;
    }
    #gbc-tool .bp-footer-card-text{
      font-size: 14px;
      line-height: 1.42;
      color: #d1d5db;
    }

    #gbc-tool .bp-newsletter{
      position: relative;
      z-index: 1;
      border-radius: 24px;
      border: 1px solid rgba(17, 24, 39, 0.22);
      background: linear-gradient(90deg, #e2b65f 0%, #f6dd9a 50%, #e2b65f 100%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 14px 28px rgba(0, 0, 0, 0.22);
      padding: 22px;
      display: grid;
      gap: 18px;
    }
    #gbc-tool .bp-newsletter-head{
      display: grid;
      grid-template-columns: 64px minmax(0, 1fr);
      gap: 14px;
      align-items: center;
    }
    #gbc-tool .bp-newsletter-icon{
      width: 58px;
      height: 58px;
      border-radius: 50%;
      border: 1px solid rgba(17, 24, 39, 0.24);
      background: rgba(255, 255, 255, 0.35);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #111827;
    }
    #gbc-tool .bp-newsletter-icon svg{
      width: 28px;
      height: 28px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    #gbc-tool .bp-newsletter-copy h2{
      margin: 0;
      text-align: center;
      font-family: var(--font-display);
      color: #111827;
      font-size: 30px;
      line-height: 1.1;
      letter-spacing: 0.2px;
    }
    #gbc-tool .bp-newsletter-copy p{
      margin: 10px 0 0;
      text-align: center;
      color: #4b5563;
      font-size: 14px;
      line-height: 1.45;
    }
    #gbc-tool .bp-newsletter-form{
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
    }
    #gbc-tool .bp-newsletter-form input{
      border-radius: 14px;
      border: 1px solid rgba(17, 24, 39, 0.2);
      background: rgba(255, 255, 255, 0.58);
      color: #111827;
      padding: 12px 14px;
      min-height: 46px;
      font-size: 14px;
    }
    #gbc-tool .bp-newsletter-form input::placeholder{
      color: #6b7280;
    }
    #gbc-tool .bp-newsletter-form input:focus-visible{
      outline: 2px solid #67e8f9;
      outline-offset: 2px;
    }
    #gbc-tool .bp-newsletter-submit{
      border: 1px solid rgba(255, 255, 255, 0.35);
      border-radius: 14px;
      background: linear-gradient(180deg, #111827 0%, #0b1220 100%);
      color: #f9fafb;
      font-weight: 700;
      min-height: 46px;
      padding: 0 18px;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
      box-shadow: 0 8px 18px rgba(2, 6, 23, 0.4);
    }
    #gbc-tool .bp-newsletter-submit:hover{
      transform: translateY(-1px);
      border-color: rgba(103, 232, 249, 0.75);
      box-shadow: 0 10px 20px rgba(2, 6, 23, 0.5);
    }
    #gbc-tool .bp-newsletter-submit:focus-visible{
      outline: 2px solid #67e8f9;
      outline-offset: 2px;
    }
    #gbc-tool .bp-newsletter-status{
      margin: 0;
      min-height: 20px;
      font-size: 13px;
      color: #4b5563;
    }
    #gbc-tool .bp-newsletter-status[data-state="error"]{
      color: #b91c1c;
    }
    #gbc-tool .bp-newsletter-status[data-state="success"]{
      color: #166534;
    }
    #gbc-tool .bp-newsletter-status[data-state="info"]{
      color: #6b3f00;
    }
    #gbc-tool .bp-sr-only{
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      padding: 0 !important;
      margin: -1px !important;
      overflow: hidden !important;
      clip: rect(0, 0, 0, 0) !important;
      white-space: nowrap !important;
      border: 0 !important;
    }

    body.bp-modal-open{
      overflow: hidden;
    }
    .bp-feedback-modal{
      position: fixed;
      inset: 0;
      z-index: 10000;
      display: grid;
      place-items: center;
      padding: 18px;
    }
    .bp-feedback-modal[hidden]{
      display: none !important;
    }
    .bp-feedback-modal-backdrop{
      position: absolute;
      inset: 0;
      background: rgba(2, 6, 23, 0.68);
      backdrop-filter: blur(3px);
    }
    .bp-feedback-panel{
      position: relative;
      width: min(680px, calc(100vw - 26px));
      border-radius: 18px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      background: linear-gradient(180deg, #0b1220 0%, #0a101d 100%);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
      padding: 22px;
      color: #f8fafc;
    }
    .bp-feedback-close{
      position: absolute;
      top: 12px;
      right: 12px;
      width: 36px;
      height: 36px;
      border-radius: 10px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      background: #0f172a;
      color: #e5e7eb;
      font-size: 18px;
      cursor: pointer;
    }
    .bp-feedback-close:focus-visible{
      outline: 2px solid #67e8f9;
      outline-offset: 2px;
    }
    .bp-feedback-panel h3{
      margin: 0;
      font-family: var(--font-display);
      font-size: 24px;
      line-height: 1.2;
      color: #ffffff;
    }
    .bp-feedback-subtitle{
      margin: 8px 0 16px;
      color: #cbd5e1;
      font-size: 13px;
      line-height: 1.35;
    }
    .bp-feedback-grid{
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    .bp-feedback-field{
      display: grid;
      gap: 6px;
      margin-bottom: 12px;
    }
    .bp-feedback-field label{
      font-size: 12px;
      color: #cbd5e1;
      font-weight: 600;
    }
    .bp-feedback-field input,
    .bp-feedback-field textarea{
      border-radius: 12px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      background: #0f172a;
      color: #f8fafc;
      padding: 10px 12px;
      font-size: 14px;
      font-family: var(--font-body);
    }
    .bp-feedback-field textarea{
      resize: vertical;
      min-height: 120px;
    }
    .bp-feedback-field input:focus-visible,
    .bp-feedback-field textarea:focus-visible{
      outline: 2px solid #67e8f9;
      outline-offset: 2px;
    }
    .bp-feedback-actions{
      display: flex;
      justify-content: flex-end;
    }
    .bp-feedback-submit{
      border: 1px solid rgba(103, 232, 249, 0.6);
      border-radius: 12px;
      background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
      color: #ffffff;
      min-height: 42px;
      padding: 0 18px;
      font-weight: 700;
      cursor: pointer;
    }
    .bp-feedback-submit:focus-visible{
      outline: 2px solid #67e8f9;
      outline-offset: 2px;
    }
    .bp-feedback-status{
      margin: 10px 0 0;
      min-height: 20px;
      font-size: 13px;
      color: #fde68a;
    }
    .bp-feedback-status[data-state="error"]{
      color: #fecaca;
    }
    .bp-feedback-status[data-state="success"]{
      color: #bbf7d0;
    }

    @media (max-width: 980px){
      #gbc-tool .bp-footer-cards{
        grid-template-columns: 1fr;
      }
      #gbc-tool .bp-newsletter-head{
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
      }
    }
    @media (max-width: 640px){
      #gbc-tool .bp-footer-shell{
        padding: 24px 14px 30px;
      }
      #gbc-tool .bp-footer{
        padding: 14px;
        border-radius: 18px;
      }
      #gbc-tool .bp-newsletter{
        padding: 16px;
        border-radius: 18px;
      }
      #gbc-tool .bp-newsletter-copy h2{
        font-size: 24px;
      }
      #gbc-tool .bp-newsletter-form{
        grid-template-columns: 1fr;
      }
      #gbc-tool .bp-newsletter-submit{
        width: 100%;
      }
      .bp-feedback-grid{
        grid-template-columns: 1fr;
      }
    }

    .wasm-loading{
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(15, 23, 42, 0.35);
      backdrop-filter: blur(2px);
      z-index: 9999;
    }
    .wasm-loading[hidden]{
      display: none;
    }
    .wasm-loading-card{
      min-width: 220px;
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      padding: 18px 22px;
      text-align: center;
      box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
    }
    .wasm-spinner{
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 3px solid #cbd5f5;
      border-top-color: #4f46e5;
      margin: 0 auto 10px;
      animation: wasm-spin 0.9s linear infinite;
    }
    .wasm-loading-title{
      font-weight: 600;
      color: #111827;
      font-size: 0.95rem;
    }
    .wasm-loading-text{
      margin-top: 4px;
      font-size: 0.8rem;
      color: #64748b;
    }
    @keyframes wasm-spin{
      to { transform: rotate(360deg); }
    }

    .bp-access-gate{
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      background: rgba(8, 10, 17, 0.84);
      backdrop-filter: blur(6px);
    }
    .bp-access-gate,
    .bp-access-gate *{
      box-sizing: border-box;
    }
    .bp-access-gate[hidden]{
      display: none !important;
    }
    .bp-access-card{
      width: min(520px, 96vw);
      border: 1px solid rgba(156, 163, 175, 0.35);
      border-radius: 18px;
      padding: 20px;
      background: linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.95));
      box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
      color: #f9fafb;
    }
    .bp-access-title{
      margin: 0 0 8px;
      color: #f8fafc;
      font-size: 30px;
      line-height: 1.15;
      font-weight: 800;
      letter-spacing: -0.01em;
    }
    .bp-access-subtitle{
      margin: 0 0 14px;
      color: #cbd5e1;
      font-size: 14px;
      line-height: 1.45;
    }
    .bp-access-actions{
      display: grid;
      gap: 10px;
    }
    .bp-access-actions-row{
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .bp-access-btn{
      border: 1px solid rgba(148, 163, 184, 0.35);
      border-radius: 12px;
      min-height: 44px;
      padding: 10px 14px;
      cursor: pointer;
      font-size: 15px;
      font-weight: 700;
      transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    }
    .bp-access-btn:hover{
      transform: translateY(-1px);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    }
    .bp-access-btn:disabled{
      opacity: 0.7;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }
    .bp-access-btn-primary{
      color: #0f172a;
      background: #19a974;
      border-color: #19a974;
    }
    .bp-access-btn-secondary{
      color: #e2e8f0;
      background: rgba(15, 23, 42, 0.88);
    }
    .bp-access-form{
      display: grid;
      gap: 12px;
    }
    .bp-access-field{
      display: grid;
      gap: 6px;
    }
    .bp-access-field label{
      color: #cbd5e1;
      font-size: 13px;
      font-weight: 600;
    }
    .bp-access-field input{
      width: 100%;
      max-width: 100%;
      min-height: 44px;
      border-radius: 10px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      background: rgba(15, 23, 42, 0.82);
      color: #f8fafc;
      padding: 10px 12px;
    }
    .bp-access-field input:focus{
      outline: none;
      border-color: #60a5fa;
      box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
    }
    .bp-access-msg{
      margin-top: 14px;
      min-height: 20px;
      font-size: 13px;
      font-weight: 600;
      color: #bfdbfe;
    }
    .bp-access-msg[data-state="success"]{
      color: #86efac;
    }
    .bp-access-msg[data-state="error"]{
      color: #fca5a5;
    }
    .bp-access-msg[data-state="warning"]{
      color: #fcd34d;
    }
    @media (max-width: 640px){
      .bp-access-card{
        padding: 16px;
        border-radius: 14px;
      }
      .bp-access-actions-row{
        grid-template-columns: 1fr;
      }
      .bp-access-title{
        font-size: 24px;
      }
    }

.bp-toast{ position:fixed; right:18px; bottom:18px; max-width:360px; padding:12px 14px; border-radius:12px; font-size:13px; line-height:1.35; z-index:99999; opacity:0; transform:translateY(10px); transition:opacity .25s ease, transform .25s ease; border:1px solid rgba(255,255,255,.10); background:rgba(15,26,46,.92); backdrop-filter:blur(10px); color:rgba(255,255,255,.92); box-shadow:0 18px 60px rgba(0,0,0,.45);}
.bp-toast--show{ opacity:1; transform:translateY(0); }
.bp-toast--success{ border-color:rgba(25,195,125,.35); }
.bp-toast--error{ border-color:rgba(255,99,99,.35); }
