/* FlypigBOX V8.1.2 — Template Center vertical scroll fix */
:root{--fp-v8-navy:#0b2342;--fp-v8-blue:#147dd1;--fp-v8-orange:#ff8b24;--fp-v8-green:#22a979;--fp-v8-bg:#f4f8fc;--fp-v8-line:#dbe5ef;--fp-v8-text:#15283f;--fp-v8-muted:#6b7d90}
.fp-v8-trigger{border:0;border-radius:10px;background:linear-gradient(135deg,var(--fp-v8-navy),var(--fp-v8-blue));color:#fff;font:700 13px/1 system-ui,-apple-system,"Segoe UI",sans-serif;padding:10px 14px;cursor:pointer;box-shadow:0 8px 20px rgba(15,77,137,.2)}
.fp-v8-backdrop{position:fixed;inset:0;background:rgba(4,18,35,.52);backdrop-filter:blur(6px);z-index:99990;display:none;align-items:center;justify-content:center;padding:18px}.fp-v8-backdrop.is-open{display:flex}
.fp-v8-modal{width:min(1120px,100%);height:min(760px,calc(100dvh - 36px));max-height:calc(100dvh - 36px);background:#fff;border-radius:18px;box-shadow:0 24px 90px rgba(0,0,0,.28);display:grid;grid-template-columns:238px minmax(0,1fr);overflow:hidden;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--fp-v8-text)}
.fp-v8-side{background:linear-gradient(180deg,#0b2342,#112d50);padding:18px 12px;display:flex;flex-direction:column;color:#fff}.fp-v8-logo{font-weight:900;letter-spacing:.2px;padding:4px 9px 18px;font-size:16px}.fp-v8-logo span{display:block;font-size:11px;font-weight:600;color:#b8d8f3;margin-top:4px}.fp-v8-nav{display:grid;gap:5px}.fp-v8-nav button{background:transparent;border:0;color:#d7e9f9;text-align:left;padding:11px 10px;border-radius:9px;cursor:pointer;font:700 13px/1.2 inherit}.fp-v8-nav button:hover,.fp-v8-nav button.is-active{background:rgba(255,255,255,.13);color:#fff}.fp-v8-side-footer{margin-top:auto;font-size:11px;color:#b8d8f3;padding:10px}.fp-v8-main{display:flex;min-width:0;min-height:0;flex-direction:column;background:var(--fp-v8-bg)}.fp-v8-head{padding:20px 24px 15px;background:#fff;border-bottom:1px solid var(--fp-v8-line);display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.fp-v8-head h2{margin:0;font-size:20px}.fp-v8-head p{margin:5px 0 0;color:var(--fp-v8-muted);font-size:12px}.fp-v8-close{border:0;background:#edf3f9;color:#466277;width:32px;height:32px;border-radius:8px;font-size:19px;cursor:pointer}.fp-v8-content{min-height:0;padding:20px 24px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.fp-v8-status{font-size:12px;color:var(--fp-v8-muted);margin:0 0 13px}.fp-v8-alert{border:1px solid #bfdff9;background:#eff8ff;color:#195486;padding:11px 12px;border-radius:10px;font-size:12px;line-height:1.55;margin-bottom:14px}.fp-v8-vault-alert{border-color:#f5c98c;background:#fff8ee;color:#7a4a12}.fp-v8-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}.fp-v8-button{border:0;border-radius:9px;padding:10px 13px;font:750 13px/1 system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer}.fp-v8-primary{background:var(--fp-v8-blue);color:#fff}.fp-v8-orange{background:var(--fp-v8-orange);color:#fff}.fp-v8-secondary{background:#e7eef5;color:#2b4d6c}.fp-v8-danger{background:#fff0f0;color:#ad3030}.fp-v8-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:13px}.fp-v8-card{background:#fff;border:1px solid var(--fp-v8-line);border-radius:13px;padding:15px;display:flex;flex-direction:column;gap:10px}.fp-v8-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.fp-v8-card h3{font-size:14px;line-height:1.35;margin:0}.fp-v8-card p{font-size:12px;color:var(--fp-v8-muted);line-height:1.45;margin:0;min-height:34px}.fp-v8-pill{font-size:10px;font-weight:800;color:#1764a5;background:#eaf5ff;padding:5px 7px;border-radius:999px;white-space:nowrap}.fp-v8-pill.vault{background:#fff2e2;color:#a65b09}.fp-v8-tags{display:flex;gap:5px;flex-wrap:wrap}.fp-v8-tags span{background:#f1f5f8;color:#557087;border-radius:5px;padding:4px 6px;font-size:10px}.fp-v8-card-actions{display:flex;gap:8px;margin-top:auto}.fp-v8-card-actions button{padding:8px 10px;font-size:11px}.fp-v8-empty{border:1px dashed #b8c8d8;border-radius:12px;padding:32px 18px;text-align:center;color:var(--fp-v8-muted);background:#fff;font-size:13px}.fp-v8-editor{background:#fff;border:1px solid var(--fp-v8-line);border-radius:13px;padding:16px;display:grid;gap:12px}.fp-v8-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.fp-v8-editor label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#466277}.fp-v8-editor input,.fp-v8-editor select,.fp-v8-editor textarea{width:100%;border:1px solid #c9d8e6;border-radius:8px;padding:10px;font:600 13px/1.35 inherit;color:var(--fp-v8-text);background:#fff}.fp-v8-editor textarea{min-height:160px;resize:vertical}.fp-v8-note{font-size:11px;line-height:1.45;color:var(--fp-v8-muted)}.fp-v8-lock-panel{max-width:560px;margin:15px auto;background:#fff;border:1px solid var(--fp-v8-line);border-radius:14px;padding:24px}.fp-v8-lock-panel h3{margin:0 0 8px}.fp-v8-lock-panel p{color:var(--fp-v8-muted);font-size:13px;line-height:1.55}.fp-v8-lock-panel input{width:100%;border:1px solid #c9d8e6;border-radius:8px;padding:11px;margin:8px 0 12px;font:600 14px inherit}.fp-v8-divider{height:1px;background:var(--fp-v8-line);margin:16px 0}
@media(max-width:760px){.fp-v8-backdrop{padding:0}.fp-v8-modal{height:100vh;border-radius:0;grid-template-columns:1fr;grid-template-rows:auto 1fr}.fp-v8-side{padding:10px 12px;display:block}.fp-v8-logo{display:none}.fp-v8-nav{display:flex;gap:5px;overflow:auto}.fp-v8-nav button{white-space:nowrap;padding:9px 10px;font-size:11px}.fp-v8-side-footer{display:none}.fp-v8-head{padding:16px}.fp-v8-content{min-height:0;padding:15px 15px calc(28px + env(safe-area-inset-bottom));overflow-y:auto}.fp-v8-form-grid{grid-template-columns:1fr}.fp-v8-grid{grid-template-columns:1fr}.fp-v8-trigger{font-size:12px;padding:9px 11px}}


/* FlypigBOX V9.0 — Template Center catalogue, brand studio and PDF themes */
.fp-v9-modal{height:min(800px,calc(100dvh - 30px))}
.fp-v8-status[data-type="error"]{color:#b42318}.fp-v8-status[data-type="ok"]{color:#147451}
.fp-v9-filterbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 12px}.fp-v9-filterbar label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#456176}.fp-v9-filterbar input,.fp-v9-filterbar select{width:100%;border:1px solid #c9d8e6;border-radius:8px;padding:9px;background:#fff;color:#15283f}.fp-v9-search{grid-column:auto}.fp-v9-public-actions{justify-content:space-between}.fp-v9-count{font-size:12px;color:#6b7d90;font-weight:700}.fp-v9-card{min-height:238px}.fp-v9-meta{font-size:11px;font-weight:800;color:#385b7b}.fp-v8-card-actions{flex-wrap:wrap}.fp-v8-card-actions .fp-v8-button{flex:1 1 auto}
.fp-v9-preview h3{margin:0;font-size:19px}.fp-v9-preview-summary{margin:0;color:#61758a;font-size:13px;line-height:1.6}.fp-v9-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.fp-v9-info-grid>div{border:1px solid #dbe5ef;background:#f8fbfe;border-radius:9px;padding:9px}.fp-v9-info-grid b,.fp-v9-info-grid span{display:block}.fp-v9-info-grid b{font-size:11px;color:#6b7d90}.fp-v9-info-grid span{font-size:12px;color:#15283f;margin-top:3px}.fp-v9-preview-table{width:100%;border-collapse:collapse}.fp-v9-preview-table th,.fp-v9-preview-table td{border:1px solid #dbe5ef;padding:9px;text-align:left;font-size:12px;vertical-align:top}.fp-v9-preview-table th{width:34%;background:#f5f8fc;color:#456176}.fp-v9-note-content{white-space:normal;border:1px solid #dbe5ef;background:#fffdf8;border-radius:9px;padding:12px;color:#3d5165;font-size:13px;line-height:1.7}.fp-v9-theme-preview{border:1px solid #dbe5ef;background:#f8fbfe;border-radius:9px;padding:10px;font-size:12px}
.fp-v9-vault-fields{display:grid;gap:10px}.fp-v9-vault-fields label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#456176}.fp-v9-vault-fields input{margin:0}
.fp-v9-mode-tabs{margin-bottom:0}.fp-v9-brand-inline{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px dashed #b9cfdf;border-radius:9px;background:#fbfdff;color:#5f7186;font-size:12px}.fp-v9-brand-inline b{color:#15283f}
.fp-v9-brand-studio{gap:15px}.fp-v9-theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.fp-v9-theme-card{min-height:118px;text-align:left;border:1px solid #dbe5ef;background:#fff;border-radius:12px;padding:12px;cursor:pointer;display:grid;gap:5px;align-content:start;color:#15283f}.fp-v9-theme-card:hover{border-color:#147dd1;transform:translateY(-1px)}.fp-v9-theme-card.is-selected{border-color:#147dd1;box-shadow:0 0 0 3px rgba(20,125,209,.12);background:#f7fbff}.fp-v9-theme-card small{font-size:11px;line-height:1.45;color:#6b7d90}.fp-v9-theme-swatch{display:block;width:32px;height:7px;border-radius:99px}.fp-v9-checkbox{display:flex!important;align-items:center;gap:8px}.fp-v9-checkbox input{width:auto!important;margin:0}.fp-v9-logo-box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px dashed #c3d4e3;border-radius:11px;padding:13px;background:#fbfdff}.fp-v9-logo-box b,.fp-v9-logo-box small{display:block}.fp-v9-logo-box small{font-size:11px;color:#6b7d90;line-height:1.45;margin-top:4px}.fp-v9-logo-preview{width:110px;max-height:62px;object-fit:contain;background:#fff;border:1px solid #e1e9f0;border-radius:7px}.fp-v9-logo-empty{font-size:12px;color:#6b7d90}.fp-v9-logo-box .fp-v8-actions{grid-column:1/-1;margin:0}.fp-v9-upload{position:relative;overflow:hidden;display:inline-flex}.fp-v9-upload input{position:absolute!important;inset:0;opacity:0;cursor:pointer}
.doc{--fp-brand-color:#0f7bdc}.doc.fp-brand-theme-business_blue{--fp-brand-color:#0f7bdc}.doc.fp-brand-theme-minimal_black{--fp-brand-color:#1b1f26}.doc.fp-brand-theme-navy_gold{--fp-brand-color:#173b69}.doc.fp-brand-theme-fragrance_ivory{--fp-brand-color:#9a6a4b;background:#fffdfa}.doc.fp-brand-theme-fashion_sage{--fp-brand-color:#5d7c6e}.doc.fp-brand-theme-clearance_clean{--fp-brand-color:#2f5f86}.doc.fp-brand-theme-fragrance_ivory table,.doc.fp-brand-theme-fragrance_ivory .doc-section{border-color:#7b5d48}.doc.fp-brand-theme-fashion_sage table,.doc.fp-brand-theme-fashion_sage .doc-section{border-color:#506f61}.doc .doc-hero{border-bottom-color:var(--fp-brand-color)}.doc .doc-hero h2{color:var(--fp-brand-color)}.doc .doc-section{background:var(--fp-brand-color)}.doc .doc-hero p{color:var(--fp-brand-color)}.doc .money-table .total th,.doc .money-table .total td{border-color:var(--fp-brand-color)}.doc .money-table .total td{color:var(--fp-brand-color)!important}.doc.fp-brand-theme-minimal_black .doc-section{background:#1b1f26}.doc.fp-brand-theme-clearance_clean .doc-hero,.doc.fp-brand-theme-clearance_clean .doc-section{border-radius:0}
.fp-doc-brand-logo-row{display:flex;align-items:center;margin:0 0 12px;padding:0 2px}.fp-doc-brand-logo-row--left{justify-content:flex-start}.fp-doc-brand-logo-row--center{justify-content:center}.fp-doc-brand-logo-row--right{justify-content:flex-end}.fp-doc-brand-logo{display:flex;align-items:center;justify-content:center;max-width:180px;min-width:80px}.fp-doc-brand-logo img{display:block;max-width:150px;max-height:58px;object-fit:contain}.fp-doc-brand-logo-row--center .fp-doc-brand-logo img{max-width:170px}.fp-doc-brand-header{margin:0 0 10px;padding:7px 0;border-top:1px solid #d8e2eb;border-bottom:1px solid #d8e2eb;color:#55677c;text-align:center;font-size:10.5px;line-height:1.45}.fp-doc-brand-footer{margin:24px 0 0;padding-top:9px;border-top:1px solid #d8e2eb;color:#61758a;text-align:center;font-size:10px;line-height:1.45}
.doc .pdf-template>.fp-doc-brand-footer{margin-top:auto}
@media(max-width:760px){.fp-v9-filterbar{grid-template-columns:1fr 1fr}.fp-v9-search{grid-column:1/-1}.fp-v9-theme-grid{grid-template-columns:1fr 1fr}.fp-v9-info-grid{grid-template-columns:1fr}.fp-v9-brand-inline{align-items:flex-start;flex-direction:column}.fp-v9-logo-box{grid-template-columns:1fr}.fp-v9-logo-preview{width:130px}.fp-doc-brand-logo-row{margin-bottom:9px}.fp-doc-brand-logo img{max-height:42px;max-width:110px}}


/* FlypigBOX V9.1 — clearer profile sync, VIP brand gate and visible feedback */
.fp-v9-toast{position:fixed;z-index:100010;left:50%;bottom:28px;transform:translate(-50%,18px);max-width:min(680px,calc(100vw - 32px));padding:12px 15px;border-radius:10px;background:#173b69;color:#fff;box-shadow:0 16px 38px rgba(15,31,54,.26);font-size:13px;font-weight:750;line-height:1.45;opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease}.fp-v9-toast.is-visible{opacity:1;transform:translate(-50%,0)}.fp-v9-toast[data-type="error"]{background:#a52c2c}.fp-v9-toast[data-type="info"]{background:#48657f}.fp-v9-brand-lock{max-width:620px}.fp-v9-brand-lock h3{color:#15283f}.fp-v9-brand-state{padding:10px 12px;border-radius:9px;border:1px solid #f1d59c;background:#fffaf0;color:#72531b;font-size:12px;line-height:1.55}.fp-v9-brand-studio .fp-v8-alert{margin-bottom:0}.fp-v9-brand-studio .fp-v9-brand-state{margin-top:-3px}.doc[data-fp-document-type="packing_list"] .money-table{display:none}.doc[data-fp-document-type="sales_contract"] .doc-section{letter-spacing:.025em}.doc[data-fp-document-type="commercial_invoice"] .products th{font-size:11px}.doc[data-fp-document-type="packing_list"] .products td{padding-top:10px;padding-bottom:10px}
@media(max-width:760px){.fp-v9-toast{bottom:16px;font-size:12px}.fp-v9-brand-state{font-size:11.5px}}

/* Brand/member gate polish V1. */
.fp-v9-brand-lock{background:linear-gradient(145deg,#fff,#f7fbff)}
.fp-v9-brand-lock .fp-v8-actions{margin:14px 0 0}
.fp-v9-brand-studio button:disabled,.fp-v9-brand-studio input:disabled,.fp-v9-brand-studio select:disabled{opacity:.55;cursor:not-allowed}

/* PDF Style Templates V3: selectable PDF layout templates. They do not change field values, totals, watermark, or export permissions. */
.fp-v9-style-section{display:grid;gap:7px}.fp-v9-style-section h3{margin:0;color:#15283f;font-size:14px}.fp-v9-style-section p{margin:0;color:#6b7d90;font-size:12px;line-height:1.45}.fp-v9-style-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.fp-v9-style-card{min-height:96px;text-align:left;border:1px solid #dbe5ef;background:#fff;border-radius:12px;padding:11px;cursor:pointer;display:grid;gap:6px;align-content:start;color:#15283f}.fp-v9-style-card:hover{border-color:#147dd1;transform:translateY(-1px)}.fp-v9-style-card.is-selected{border-color:#147dd1;box-shadow:0 0 0 3px rgba(20,125,209,.12);background:#f7fbff}.fp-v9-style-card small{font-size:10.8px;line-height:1.42;color:#6b7d90}
.doc[class*="fp-pdf-style-"] .doc-hero,.doc[class*="fp-pdf-style-"] .pdf-quotation-hero,.doc[class*="fp-pdf-style-"] .pdf-commercial-hero,.doc[class*="fp-pdf-style-"] .pdf-contract-hero,.doc[class*="fp-pdf-style-"] .pdf-packing-hero{border-bottom:2px solid var(--fp-brand-color)}
.doc[class*="fp-pdf-style-"] .doc-section{background:var(--fp-brand-color);color:#fff}.doc[class*="fp-pdf-style-"] .products th{background:var(--fp-brand-color);color:#fff}.doc[class*="fp-pdf-style-"] .info th{color:#33485c}.doc[class*="fp-pdf-style-"] .money-table .total th,.doc[class*="fp-pdf-style-"] .money-table .total td{border-color:var(--fp-brand-color)}
.doc.fp-pdf-style-classic_business{background:#fff}.doc.fp-pdf-style-classic_business .pdf-template{letter-spacing:0}.doc.fp-pdf-style-classic_business table{border-color:#d9e5ef}.doc.fp-pdf-style-classic_business .products td,.doc.fp-pdf-style-classic_business .info td{background:#fff}
.doc.fp-pdf-style-minimal_trade{background:#fff;color:#1f2933}.doc.fp-pdf-style-minimal_trade .doc-hero,.doc.fp-pdf-style-minimal_trade .pdf-quotation-hero,.doc.fp-pdf-style-minimal_trade .pdf-commercial-hero,.doc.fp-pdf-style-minimal_trade .pdf-contract-hero,.doc.fp-pdf-style-minimal_trade .pdf-packing-hero{border-bottom:1px solid #1b1f26}.doc.fp-pdf-style-minimal_trade .doc-section{background:#fff!important;color:#1b1f26;border:1px solid #1b1f26;border-left:0;border-right:0;border-radius:0;letter-spacing:.05em}.doc.fp-pdf-style-minimal_trade .products th{background:#f2f3f4!important;color:#1b1f26;border-color:#9ca3ad}.doc.fp-pdf-style-minimal_trade table,.doc.fp-pdf-style-minimal_trade th,.doc.fp-pdf-style-minimal_trade td{border-color:#9ca3ad!important}.doc.fp-pdf-style-minimal_trade .fp-doc-brand-footer{border-top-color:#9ca3ad;color:#4b5563}
.doc.fp-pdf-style-formal_contract{background:#fffdf8;color:#18263a}.doc.fp-pdf-style-formal_contract .pdf-contract-hero,.doc.fp-pdf-style-formal_contract .doc-hero,.doc.fp-pdf-style-formal_contract .pdf-quotation-hero,.doc.fp-pdf-style-formal_contract .pdf-commercial-hero,.doc.fp-pdf-style-formal_contract .pdf-packing-hero{padding-bottom:13px;border-bottom:3px double var(--fp-brand-color)}.doc.fp-pdf-style-formal_contract h2{letter-spacing:.08em}.doc.fp-pdf-style-formal_contract .doc-section{background:#fff!important;color:var(--fp-brand-color);border-left:4px solid var(--fp-brand-color);border-radius:0;padding-left:9px;text-transform:uppercase}.doc.fp-pdf-style-formal_contract .products th{background:#173b69!important;color:#fff}.doc.fp-pdf-style-formal_contract .pdf-contract-signatures>div,.doc.fp-pdf-style-formal_contract .signature-zone{border-color:#b9a477;background:#fffef9}
.doc.fp-pdf-style-brand_showcase{background:linear-gradient(180deg,#fffdfa 0,#fff 28%)}.doc.fp-pdf-style-brand_showcase .doc-hero,.doc.fp-pdf-style-brand_showcase .pdf-quotation-hero,.doc.fp-pdf-style-brand_showcase .pdf-commercial-hero,.doc.fp-pdf-style-brand_showcase .pdf-contract-hero,.doc.fp-pdf-style-brand_showcase .pdf-packing-hero{padding:16px;border:1px solid var(--fp-brand-color);border-left:6px solid var(--fp-brand-color);border-radius:14px;background:linear-gradient(135deg,#f6f9fc,#fff)}.doc.fp-pdf-style-brand_showcase .doc-section{border-radius:999px;background:var(--fp-brand-color)}.doc.fp-pdf-style-brand_showcase .products th{background:var(--fp-brand-color)!important}.doc.fp-pdf-style-brand_showcase .pdf-party-card{border-top:3px solid var(--fp-brand-color)}
.doc.fp-pdf-style-customs_clean{background:#fff;color:#102235}.doc.fp-pdf-style-customs_clean .doc-hero,.doc.fp-pdf-style-customs_clean .pdf-quotation-hero,.doc.fp-pdf-style-customs_clean .pdf-commercial-hero,.doc.fp-pdf-style-customs_clean .pdf-contract-hero,.doc.fp-pdf-style-customs_clean .pdf-packing-hero{border:1px solid #2f5f86;border-left:0;border-right:0;padding:10px 0;border-radius:0}.doc.fp-pdf-style-customs_clean .doc-section{background:#f5f8fb!important;color:#163b59;border:1px solid #8da9bf;border-radius:0}.doc.fp-pdf-style-customs_clean table,.doc.fp-pdf-style-customs_clean th,.doc.fp-pdf-style-customs_clean td{border-color:#6f879b!important}.doc.fp-pdf-style-customs_clean .products th{background:#e8f0f7!important;color:#102235}.doc.fp-pdf-style-customs_clean .pdf-packing-table th,.doc.fp-pdf-style-customs_clean .pdf-commercial-table th{font-size:10px}
@media(max-width:760px){.fp-v9-style-grid{grid-template-columns:1fr 1fr}.fp-v9-style-card{min-height:86px}}

/* PDF Style Templates V2: visible layout thumbnails in Template Center. */
.fp-v10-style-thumb{height:46px;border:1px solid #d8e3ee;border-radius:9px;background:#fff;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:14px 1fr;gap:5px;padding:7px;overflow:hidden}
.fp-v10-style-thumb:before{content:'';grid-column:1/-1;border-radius:999px;background:var(--fp-v8-blue)}
.fp-v10-style-thumb i{display:block;border-radius:4px;background:#e8eef5}.fp-v10-style-thumb i:first-child{grid-row:2;grid-column:1}.fp-v10-style-thumb i:nth-child(2){grid-row:2;grid-column:2}.fp-v10-style-thumb i:nth-child(3){display:none}
.fp-v10-style-thumb-minimal_trade{background:#fff}.fp-v10-style-thumb-minimal_trade:before{height:2px;margin-top:6px;background:#1b1f26}.fp-v10-style-thumb-minimal_trade i{border-radius:0;background:#f4f4f5;border-top:1px solid #a1a1aa}
.fp-v10-style-thumb-formal_contract{grid-template-columns:1fr;grid-template-rows:12px 1fr 10px;background:#fffdf8}.fp-v10-style-thumb-formal_contract:before{border-radius:0;background:#173b69;box-shadow:0 4px 0 #d7b46a}.fp-v10-style-thumb-formal_contract i{border:1px solid #b9a477;background:#fff}.fp-v10-style-thumb-formal_contract i:nth-child(2){display:none}.fp-v10-style-thumb-formal_contract i:nth-child(3){display:block;background:#fff8e8}
.fp-v10-style-thumb-brand_showcase{grid-template-columns:repeat(3,1fr);grid-template-rows:14px 1fr 9px;background:linear-gradient(135deg,#fff8ef,#fff)}.fp-v10-style-thumb-brand_showcase:before{grid-column:1/-1;border-radius:8px;background:linear-gradient(135deg,var(--fp-v8-blue),#fff)}.fp-v10-style-thumb-brand_showcase i{height:auto;border-radius:8px;background:#f0dcc8}.fp-v10-style-thumb-brand_showcase i:nth-child(3){display:block}
.fp-v10-style-thumb-customs_clean{grid-template-columns:repeat(3,1fr);grid-template-rows:10px 1fr;background:#fbfdff}.fp-v10-style-thumb-customs_clean:before{border-radius:0;background:#2f5f86}.fp-v10-style-thumb-customs_clean i{border-radius:0;background:#f8fafc;border:1px solid #8da9bf}.fp-v10-style-thumb-customs_clean i:nth-child(3){display:block}
@media(max-width:760px){.fp-v10-style-thumb{height:40px}}

/* PDF Brand Panel Simplify + Unified Color V1 */
.fp-v10-brand-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.fp-v10-brand-summary>div{border:1px solid #dbe5ef;background:linear-gradient(180deg,#fff,#f8fbff);border-radius:12px;padding:11px;min-width:0}
.fp-v10-brand-summary span{display:block;color:#6b7d90;font-size:11px;font-weight:800;margin-bottom:5px}
.fp-v10-brand-summary b{display:flex;align-items:center;gap:7px;color:#15283f;font-size:12px;line-height:1.45;min-width:0;overflow-wrap:anywhere}
.fp-v10-brand-summary i{display:inline-block;width:18px;height:18px;border-radius:999px;border:1px solid rgba(15,31,54,.16);box-shadow:0 0 0 3px rgba(15,31,54,.04)}
.fp-v10-brand-color-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;border:1px solid #dbe5ef;background:#fbfdff;border-radius:13px;padding:13px}
.fp-v10-brand-color-panel h3{margin:0 0 5px;color:#15283f;font-size:14px}
.fp-v10-brand-color-panel p{margin:0;color:#6b7d90;font-size:12px;line-height:1.45}
.fp-v10-color-picker{display:grid!important;gap:6px;min-width:132px}
.fp-v10-color-picker span{font-size:12px;font-weight:850;color:#456176}
.fp-v10-color-picker input[type=color]{width:100%;height:42px;padding:3px;border-radius:10px}
.fp-v10-color-chip-row{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}
.fp-v10-color-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #dbe5ef;background:#fff;border-radius:999px;padding:7px 10px;color:#33485c;font-size:12px;font-weight:800;cursor:pointer}
.fp-v10-color-chip:hover{border-color:#147dd1;transform:translateY(-1px)}
.fp-v10-color-chip.is-selected{border-color:#147dd1;background:#f2f8ff;box-shadow:0 0 0 3px rgba(20,125,209,.1);color:#15283f}
.fp-v10-color-chip span{display:inline-block;width:14px;height:14px;border-radius:999px;border:1px solid rgba(15,31,54,.14)}
.fp-v10-brand-advanced{border:1px solid #dbe5ef;border-radius:13px;background:#fff;padding:0;overflow:hidden}
.fp-v10-brand-advanced summary{cursor:pointer;padding:12px 14px;font-weight:900;color:#15283f;background:#f8fbfe}
.fp-v10-brand-advanced[open]{padding-bottom:13px}
.fp-v10-brand-advanced[open] summary{border-bottom:1px solid #e1e9f0;margin-bottom:12px}
.fp-v10-brand-advanced .fp-v8-form-grid,.fp-v10-brand-advanced>.fp-v9-checkbox,.fp-v10-brand-advanced>label,.fp-v10-brand-advanced>.fp-v9-logo-box{margin-left:13px;margin-right:13px}
@media(max-width:760px){.fp-v10-brand-summary,.fp-v10-brand-color-panel{grid-template-columns:1fr}.fp-v10-color-picker{min-width:0}.fp-v10-color-chip-row{gap:7px}.fp-v10-color-chip{font-size:11.5px;padding:7px 9px}}

/* FlypigBOX official logo replacement. */
.fp-v8-logo{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fp-v8-logo img{width:30px;height:30px;object-fit:contain;border-radius:8px;background:#fff;padding:2px}
.fp-v8-logo span{flex-basis:100%;margin-left:38px}

/* Template Center shared filters V1. */
.fp-v11-template-filterbar{background:#fff;border:1px solid #dbe5ef;border-radius:13px;padding:12px;margin-bottom:10px}
.fp-v11-filter-actions{margin-bottom:14px}
.fp-v11-filter-actions .fp-v8-button{white-space:nowrap}
.fp-v12-template-home{display:grid;gap:12px;margin-bottom:14px}.fp-v12-template-guide{border:1px solid #cfe0f1;background:linear-gradient(135deg,#f4f9ff,#fff);border-radius:13px;padding:13px;color:#173b69}.fp-v12-template-guide b{display:block;font-size:15px;margin-bottom:5px}.fp-v12-template-guide p{margin:0;color:#526d87;font-size:12.5px;line-height:1.55}.fp-v12-template-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.fp-v12-template-steps span{border:1px solid #dbe5ef;background:#fff;border-radius:11px;padding:11px;color:#52677b;font-size:12px;line-height:1.45}.fp-v12-template-steps b{display:block;color:#162b43;font-size:13px;margin-bottom:4px}.fp-v12-template-actions{margin:0}.fp-v12-template-actions .fp-v8-button{min-height:38px}.fp-v12-template-count{margin:0;color:#6b7d90;font-size:12px;line-height:1.5}.fp-v12-library-filterbar{grid-template-columns:minmax(0,.8fr) minmax(0,.8fr) minmax(0,1.4fr)}
.fp-v12-editor-guide{border:1px solid #cfe0f1;background:#f5faff;border-radius:12px;padding:12px}.fp-v12-editor-guide b{display:block;color:#15283f;font-size:14px;margin-bottom:4px}.fp-v12-editor-guide p{margin:0;color:#567087;font-size:12px;line-height:1.55}.fp-v12-template-advanced-tags{border:1px solid #dbe5ef;border-radius:11px;background:#fbfdff;padding:10px 12px}.fp-v12-template-advanced-tags summary{cursor:pointer;font-weight:850;color:#2c526f}.fp-v12-template-advanced-tags .fp-v8-form-grid,.fp-v12-template-advanced-tags>label{margin-top:10px}.fp-v12-simple-note{border-left:3px solid #0f7bdc;background:#f5faff;border-radius:0 8px 8px 0;padding:9px 11px;color:#426178!important}
@media(max-width:760px){.fp-v12-template-steps,.fp-v12-library-filterbar{grid-template-columns:1fr}.fp-v12-template-actions .fp-v8-button{width:100%}}
@media(max-width:520px){.fp-v11-template-filterbar{grid-template-columns:1fr}.fp-v11-filter-actions{align-items:stretch}.fp-v11-filter-actions .fp-v8-button{width:100%}}
