
.ffhub-shell{--ff-bg:#0a1220;--ff-panel:#101b2d;--ff-panel2:#0c1626;--ff-line:#263653;--ff-text:#eaf2ff;--ff-muted:#9fb0c8;--ff-accent:#2b7cff;--ff-good:#22c55e;max-width:1120px;margin:24px auto;color:var(--ff-text);font-family:Inter,Segoe UI,Arial,sans-serif}
.ffhub-shell *{box-sizing:border-box}
.ffhub-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;background:linear-gradient(135deg,#0e1c31,#12243f);border:1px solid var(--ff-line);border-radius:18px;padding:22px 24px;box-shadow:0 14px 38px rgba(0,0,0,.24)}
.ffhub-kicker{font-size:12px;letter-spacing:.16em;color:#69a4ff;font-weight:800}.ffhub-hero h2{margin:4px 0 6px;font-size:30px;color:#fff}.ffhub-hero h2 span{color:#69a4ff}.ffhub-hero p{margin:0;color:var(--ff-muted);max-width:720px}.ffhub-account{background:#0b1525;border:1px solid var(--ff-line);border-radius:12px;padding:10px 12px;min-width:210px}.ffhub-account span{display:block;font-size:11px;color:var(--ff-muted)}.ffhub-account strong{font-size:13px;word-break:break-all}
.ffhub-section{margin-top:14px;background:var(--ff-panel);border:1px solid var(--ff-line);border-radius:16px;padding:18px}.ffhub-section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.ffhub-section-title h3{margin:0;color:#fff;font-size:18px}
.ffhub-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#172641;border:1px solid #355179;color:#eef5ff;border-radius:9px;padding:9px 13px;cursor:pointer;font-weight:650;line-height:1.1}.ffhub-btn:hover{background:#1c3153;color:#fff}.ffhub-btn:disabled{opacity:.45;cursor:not-allowed}.ffhub-btn-primary{background:#1766d8;border-color:#3181ef}.ffhub-btn-primary:hover{background:#2476e7}.ffhub-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.ffhub-chip,.ffhub-type,.ffhub-quota,.ffhub-version{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:750}.ffhub-chip{background:#142b46;border:1px solid #2e557f;color:#a9d0ff}.ffhub-version{background:#12243b;color:#78b0ff}.ffhub-type{background:#1a273a;color:#a9b8ce}.ffhub-quota{background:#3c1d25;color:#ffb1bf}.ffhub-quota.ok{background:#123723;color:#7ee4a1}
.ffhub-group{margin:12px 0 20px}.ffhub-group>h4{font-size:12px;text-transform:uppercase;letter-spacing:.11em;color:#7891b3;margin:0 0 9px}.ffhub-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:10px}.ffhub-product{background:var(--ff-panel2);border:1px solid var(--ff-line);border-radius:13px;padding:14px;display:flex;flex-direction:column;min-height:172px}.ffhub-product.has-access{border-color:#255a40}.ffhub-product-top,.ffhub-product-bottom,.ffhub-product-meta{display:flex;justify-content:space-between;gap:8px;align-items:center}.ffhub-product h4{font-size:15px;line-height:1.35;margin:13px 0 10px;color:#fff}.ffhub-product-meta{font-size:11px;color:var(--ff-muted);margin-top:auto}.ffhub-product-bottom{margin-top:14px}.ffhub-product-bottom strong{font-size:17px;color:#fff}
.ffhub-custom-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px}.ffhub-field label,.ffhub-logo-label{display:block;font-size:12px;color:var(--ff-muted);margin-bottom:5px}.ffhub-field select,.ffhub-static{width:100%;background:#0b1524;border:1px solid var(--ff-line);color:#eef5ff;border-radius:9px;padding:9px 10px;min-height:39px}.ffhub-logo-row{display:grid;grid-template-columns:1fr 260px;gap:18px;align-items:center;margin:16px 0}.ffhub-logo-file{display:block;width:100%;max-width:520px;background:#0b1524;border:1px solid var(--ff-line);border-radius:9px;padding:8px;color:#d7e6fb}.ffhub-logo-preview{width:256px;height:128px;image-rendering:pixelated;background:#dff7ef;border:1px solid #45606a;border-radius:8px}.ffhub-muted{color:var(--ff-muted);font-size:13px}.ffhub-custom-msg,.ffhub-global-msg{margin-top:10px;color:#9ad0ff}.ffhub-global-msg.error{color:#ff98a9}
.ffhub-pay-return{margin-top:12px;padding:12px 14px;border:1px solid #6d4e1e;background:#2a2111;border-radius:10px;color:#ffd58e}.ffhub-pay-return.success{border-color:#2b6845;background:#10291b;color:#94edb3}
.ffhub-module-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.ffhub-module-head>div{display:flex;gap:8px;align-items:center}.ffhub-module-head h3{margin:0;color:#fff}.ffgps-status{font-weight:700;margin:10px 0}.ffgps-log{background:#060b13;color:#d9e7f8;min-height:180px;max-height:340px;overflow:auto;padding:10px;border-radius:8px;white-space:pre-wrap;border:1px solid #1d2d44}
.ffhub-grant-box{margin-top:12px;background:#08101d;border:1px solid var(--ff-line);border-radius:10px;padding:12px}.ffhub-grant-box>div{font-size:11px;color:var(--ff-muted);margin-top:5px}.ffhub-grant-box code{display:block;word-break:break-all;color:#b6d7ff;margin-top:2px}
.ffhub-loading{padding:20px;text-align:center;color:var(--ff-muted)}
/* Embed the proven old browser engine without the old standalone shell look. */
.ffhub-browser-wrap .ffpg-panel{max-width:none;margin:0;background:transparent;border-radius:0;padding:0;box-shadow:none;color:var(--ff-text)}.ffhub-browser-wrap .ffpg-title{display:none}.ffhub-browser-wrap .ffpg-row:first-of-type{display:none}.ffhub-browser-wrap .ffpg-result-box{background:#0b1524;border-color:var(--ff-line)}.ffhub-browser-wrap .ffpg-input,.ffhub-browser-wrap .ffpg-id-display{background:#08101d;border-color:var(--ff-line);color:#eef5ff}.ffhub-browser-wrap .ff-btn{background:#172641;border-color:#355179}.ffhub-browser-wrap .ff-btn-primary{background:#1766d8;border-color:#3181ef}
@media(max-width:760px){.ffhub-shell{margin:10px 0}.ffhub-hero{flex-direction:column}.ffhub-account{width:100%}.ffhub-custom-grid{grid-template-columns:1fr 1fr}.ffhub-logo-row{grid-template-columns:1fr}.ffhub-logo-preview{max-width:100%;height:auto}.ffhub-product-grid{grid-template-columns:1fr}}

/* V4 commercial/branding additions */
.ffhub-brand-logo{display:block;max-width:260px;max-height:80px;object-fit:contain;margin:0 0 10px 0}
.ffhub-price-tier{display:inline-block;margin-left:8px;padding:2px 7px;border-radius:999px;font-size:11px;font-weight:700;background:#e8f5e9;color:#166534;vertical-align:middle}


/* V4 DEV2: compact device -> mode selector (no product-card wall) */
.ffhub-picker{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr);gap:12px;align-items:end}
.ffhub-picker .ffhub-field select{font-size:15px}
.ffhub-choice-info{grid-column:1/-1;background:var(--ff-panel2);border:1px solid var(--ff-line);border-radius:13px;padding:14px}
.ffhub-choice-title{font-weight:800;font-size:17px;color:#fff}.ffhub-choice-meta{margin-top:5px;color:var(--ff-muted);font-size:12px}
.ffhub-choice-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px}.ffhub-choice-price strong{font-size:18px;color:#fff}
@media(max-width:760px){.ffhub-picker{grid-template-columns:1fr}.ffhub-choice-bottom{align-items:stretch;flex-direction:column}.ffhub-choice-action{width:100%}}

/* V4 DEV3 — compact guided device workflow */
.ffhub-v4-compact{max-width:820px;margin:18px auto;background:#0c1626;border:1px solid #263653;border-radius:16px;padding:14px;box-shadow:0 14px 38px rgba(0,0,0,.22)}
.ffhub-compact-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:2px 4px 12px;border-bottom:1px solid #263653;margin-bottom:12px}.ffhub-compact-head>div{display:flex;align-items:center;gap:12px}.ffhub-compact-head strong{font-size:15px;letter-spacing:.08em}.ffhub-compact-head span{font-size:18px;font-weight:800}.ffhub-compact-head small{color:#9fb0c8;max-width:260px;overflow:hidden;text-overflow:ellipsis}.ffhub-v4-compact .ffhub-brand-logo{max-height:34px;max-width:150px;margin:0}
.ffhub-config-card{background:#101b2d;border:1px solid #263653;border-radius:12px;padding:12px;display:grid;gap:10px}.ffhub-field-row{display:grid;grid-template-columns:150px 1fr;gap:10px;align-items:center}.ffhub-field-row label{color:#b8c6da;font-weight:700}.ffhub-field-row select,.ffhub-field-row input[type=text]{width:100%;background:#08101d;border:1px solid #263653;color:#eef5ff;border-radius:8px;padding:9px 10px;min-height:38px}.ffhub-price-line{display:flex;align-items:center;gap:10px;justify-content:flex-end;border-top:1px solid #1f2c43;padding-top:9px}.ffhub-price-line .ffhub-access-state{margin-right:auto;color:#9fb0c8}.ffhub-price-line .ffhub-price{font-size:18px;color:#fff}
.ffhub-step-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0}.ffhub-step-tab{border:1px solid #263653;background:#0b1524;color:#9fb0c8;padding:9px 8px;border-radius:8px;cursor:pointer;font-weight:750}.ffhub-step-tab.is-active{background:#17345d;color:#fff;border-color:#3b6faa}
.ffhub-stage{background:#101b2d;border:1px solid #263653;border-radius:12px;padding:13px}.ffhub-stage-title{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:12px}.ffhub-stage-title strong{font-size:17px}.ffhub-stage-sub{display:block;color:#9fb0c8;font-size:12px;margin-top:2px}.ffhub-stage-done{color:#7ee4a1;font-weight:800}
.ffhub-logo-compact{display:grid;grid-template-columns:1fr 256px;gap:14px;align-items:center;margin:8px 0 12px}.ffhub-logo-controls{display:flex;flex-direction:column;gap:8px}.ffhub-logo-controls>label:first-child{font-weight:750}.ffhub-logo-controls input[type=file]{max-width:100%;color:#c9d8eb}.ffhub-inline{display:flex;gap:8px;align-items:center;color:#b8c6da}.ffhub-inline input[type=range]{flex:1}.ffhub-link-btn{border:0;background:none;color:#74aaff;text-align:left;padding:0;cursor:pointer}.ffhub-v4-compact .ffhub-logo-preview{width:256px;height:128px;background:#fff;border-radius:7px;border:1px solid #445771;image-rendering:pixelated}
.ffhub-simple-progress{height:9px;background:#07101d;border:1px solid #1c2d45;border-radius:999px;overflow:hidden;margin:10px 0 7px}.ffhub-simple-progress-bar{height:100%;width:0;background:linear-gradient(90deg,#2f80ed,#46b1ff);transition:width .18s ease}.ffhub-stage-status{min-height:20px;color:#b8c6da;font-size:13px}.ffhub-stage-status[data-type=pass],.ffhub-global-msg[data-type=pass]{color:#7ee4a1}.ffhub-stage-status[data-type=error],.ffhub-global-msg[data-type=error]{color:#ff98a9}.ffhub-next{margin-top:10px}.ffhub-rx-tool{margin-top:8px}
.ffhub-gps-compact{padding:0;background:transparent;border:0}.ffhub-mini-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}.ffhub-mini-head>div{display:flex;align-items:center;gap:8px}.ffgps-status{margin:6px 0 0;font-size:13px;color:#b8c6da}.ffgps-live{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.ffgps-live>div{background:#08101d;border:1px solid #263653;border-radius:8px;padding:8px}.ffgps-live span{display:block;color:#8ea1ba;font-size:11px}.ffgps-live strong{display:block;margin-top:3px}.ffhub-global-msg{min-height:20px;margin:10px 2px 0}.ffhub-engineering{margin-top:10px}.ffhub-engineering pre{max-height:180px;overflow:auto;background:#050a12;padding:8px;font-size:11px}
@media(max-width:700px){.ffhub-step-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.ffhub-v4-compact{margin:8px 0;padding:10px}.ffhub-compact-head{align-items:flex-start;flex-direction:column}.ffhub-field-row{grid-template-columns:1fr}.ffhub-logo-compact{grid-template-columns:1fr}.ffhub-v4-compact .ffhub-logo-preview{max-width:100%;height:auto}.ffhub-step-tabs{grid-template-columns:1fr}.ffhub-price-line{flex-wrap:wrap}.ffhub-price-line .ffhub-access-state{width:100%}.ffgps-live{grid-template-columns:1fr 1fr 1fr}}

/* V4 DEV7 — full 128x64 startup-logo editor */
.ffhub-logo-note{color:#9fb0c8;font-size:12px}.ffhub-logo-saved-state{color:#7ee4a1;font-size:12px;min-height:16px}.ffhub-logo-launcher .ffhub-logo-preview{width:320px;height:160px}
body.fflogo-open{overflow:hidden}.fflogo-modal[hidden]{display:none!important}.fflogo-modal{position:fixed;inset:0;z-index:999999}.fflogo-backdrop{position:absolute;inset:0;background:rgba(2,7,15,.78);backdrop-filter:blur(2px)}
.fflogo-dialog{position:relative;z-index:2;width:min(1180px,calc(100vw - 30px));max-height:calc(100vh - 30px);overflow:auto;margin:15px auto;background:#101b2d;color:#eaf2ff;border:1px solid #355179;border-radius:14px;box-shadow:0 24px 80px rgba(0,0,0,.55);padding:14px}
.fflogo-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #263653;padding:2px 2px 10px;margin-bottom:10px}.fflogo-head>div{display:flex;gap:10px;align-items:baseline}.fflogo-head strong{font-size:20px}.fflogo-head span{color:#9fb0c8}.fflogo-close{border:0;background:transparent;color:#fff;font-size:30px;line-height:1;cursor:pointer}
.fflogo-toolbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.fflogo-tool.is-active{background:#1766d8;border-color:#3181ef}.fflogo-check{display:inline-flex!important;align-items:center;gap:6px;color:#c9d8eb!important;font-weight:500!important}
.fflogo-adjust{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:8px 14px;background:#0b1524;border:1px solid #263653;padding:10px;border-radius:10px;margin-bottom:10px}.fflogo-adjust label{display:flex;gap:8px;align-items:center;color:#b8c6da;font-size:12px}.fflogo-adjust input[type=range]{flex:1;min-width:80px}.fflogo-adjust select{background:#08101d;color:#eef5ff;border:1px solid #263653;border-radius:6px;padding:5px}
.fflogo-work{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:12px;align-items:start}.fflogo-canvas-wrap{overflow:auto;background:#07101c;border:1px solid #263653;border-radius:10px;padding:10px;max-height:560px}.fflogo-canvas{display:block;image-rendering:pixelated;background:#c9f5ec;cursor:crosshair;touch-action:none}.fflogo-help{color:#8ea1ba;font-size:11px;margin-top:7px}
.fflogo-text-panel{background:#0b1524;border:1px solid #263653;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:8px}.fflogo-text-panel>label{display:grid;grid-template-columns:58px 1fr;align-items:center;gap:6px;color:#b8c6da;font-size:12px}.fflogo-text-panel input,.fflogo-text-panel select{width:100%;background:#08101d;border:1px solid #263653;color:#eef5ff;border-radius:6px;padding:6px}.fflogo-text-panel hr{width:100%;border:0;border-top:1px solid #263653}
.fflogo-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #263653;margin-top:12px;padding-top:10px}.fflogo-foot>div{display:flex;gap:8px;flex-wrap:wrap}.fflogo-status{color:#9fb0c8;font-size:12px}
@media(max-width:850px){.fflogo-adjust{grid-template-columns:1fr 1fr}.fflogo-work{grid-template-columns:1fr}.fflogo-text-panel{display:grid;grid-template-columns:1fr 1fr}.fflogo-text-panel>strong,.fflogo-text-panel>hr{grid-column:1/-1}.fflogo-foot{align-items:stretch;flex-direction:column}.ffhub-logo-launcher .ffhub-logo-preview{max-width:100%;height:auto}}


/* V4 DEV9 — pixel-accurate FS-i6X startup-logo UI */
.ffhub-logo-launcher{display:block;margin:12px 0 16px}.ffhub-logo-copy{margin:0 0 10px 2px}.ffhub-logo-copy>label{display:block;font-size:18px;line-height:1.2;font-weight:800;color:#f1f6ff;margin:0 0 4px}.ffhub-logo-copy .ffhub-logo-note{display:block;color:#9fb0c8;font-size:13px}.ffhub-logo-main{display:grid;grid-template-columns:minmax(320px,384px) minmax(150px,1fr);gap:16px;align-items:start;justify-content:start}.ffhub-v4-compact .ffhub-logo-preview,.ffhub-logo-launcher .ffhub-logo-preview{display:block;width:384px;max-width:100%;height:auto;aspect-ratio:2/1;image-rendering:pixelated;image-rendering:crisp-edges;background:#B9F1E6!important;border:2px solid #587e7e;border-radius:4px;box-shadow:inset 0 0 0 1px rgba(0,152,160,.2);justify-self:start}.ffhub-logo-actions{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding-top:2px}.ffhub-logo-actions .ffhub-btn{min-width:130px}.ffhub-logo-actions .ffhub-link-btn{padding:2px 0}.ffhub-logo-saved-state{min-height:18px;color:#7ee4a1;font-size:12px}
body.fflogo-open{overflow:hidden!important}.fflogo-modal[hidden]{display:none!important}.fflogo-modal{position:fixed!important;inset:0!important;z-index:2147483600!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;padding:16px!important;isolation:isolate}.fflogo-backdrop{position:absolute!important;inset:0!important;z-index:0!important;background:rgba(2,7,15,.86)!important;backdrop-filter:blur(3px)}.fflogo-dialog{position:relative!important;z-index:2!important;width:min(1260px,calc(100vw - 32px))!important;max-height:calc(100dvh - 32px)!important;margin:0!important;overflow:auto!important;overscroll-behavior:contain;box-sizing:border-box!important;background:#101b2d;color:#eaf2ff;border:1px solid #355179;border-radius:14px;box-shadow:0 28px 100px rgba(0,0,0,.72);padding:14px}.fflogo-head{position:sticky;top:-14px;z-index:10;background:#101b2d;padding:10px 2px 12px;margin:0 0 10px}.fflogo-adjust{grid-template-columns:repeat(3,minmax(190px,1fr))}.fflogo-work{grid-template-columns:minmax(0,1fr) 230px;gap:14px}.fflogo-canvas-wrap{max-width:100%;max-height:min(62vh,650px);overflow:auto;background:#07101c}.fflogo-canvas{display:block;image-rendering:pixelated;image-rendering:crisp-edges;background:#B9F1E6!important;cursor:crosshair}.fflogo-help{line-height:1.45}.fflogo-foot{position:sticky;bottom:-14px;z-index:9;background:#101b2d;padding:12px 0 10px;margin-top:12px}
@media(max-width:900px){.ffhub-logo-main{grid-template-columns:1fr}.ffhub-logo-actions{flex-direction:row;flex-wrap:wrap}.fflogo-adjust{grid-template-columns:1fr 1fr}.fflogo-work{grid-template-columns:1fr}.fflogo-dialog{width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px)!important}}
@media(max-width:560px){.fflogo-modal{padding:6px!important}.fflogo-adjust{grid-template-columns:1fr}.ffhub-v4-compact .ffhub-logo-preview,.ffhub-logo-launcher .ffhub-logo-preview{width:100%}}


/* V4 DEV10 — customer-safe install UI + robust logo editor */
.ffhub-install-warning{display:flex;gap:10px;align-items:flex-start;margin:12px 0;padding:10px 12px;border:1px solid #385473;border-radius:8px;background:#0c1828;color:#cbd8ea;font-size:13px;line-height:1.4}.ffhub-install-warning strong{white-space:nowrap;color:#fff}.ffhub-progress-with-percent{position:relative;height:20px!important;overflow:hidden}.ffhub-progress-with-percent .ffhub-tx-percent{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;text-shadow:0 1px 2px #000;z-index:2}.ffhub-tx-actions .ffhub-install-tx{min-width:190px}.ffhub-logo-preview{background:#B9F1E6!important;image-rendering:pixelated!important;image-rendering:crisp-edges!important}
.fflogo-modal{position:fixed!important;inset:0!important;z-index:2147483647!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:12px!important;transform:none!important;contain:none!important}.fflogo-modal[hidden]{display:none!important}.fflogo-backdrop{position:fixed!important;inset:0!important;z-index:0!important;background:rgba(1,5,12,.9)!important}.fflogo-dialog{position:relative!important;z-index:1!important;width:min(1320px,calc(100vw - 24px))!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important;margin:0!important;top:auto!important;left:auto!important;transform:none!important}.fflogo-head{top:0!important;margin-top:0!important}.fflogo-canvas-wrap{max-height:62dvh!important}.fflogo-canvas{touch-action:none}.fflogo-text-live-note{font-size:11px;line-height:1.35;color:#9fb0c8;margin:4px 0 7px}.fflogo-image-move:disabled,.fflogo-text-move:disabled{opacity:.45}.fflogo-adjust{grid-template-columns:repeat(3,minmax(180px,1fr))}.fflogo-adjust label{min-width:0}.fflogo-adjust input[type=range]{width:100%}
@media(max-width:900px){.fflogo-dialog{width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important}.fflogo-adjust{grid-template-columns:1fr 1fr}.fflogo-work{grid-template-columns:1fr!important}.fflogo-canvas-wrap{max-height:55dvh!important}}
@media(max-width:560px){.fflogo-adjust{grid-template-columns:1fr}.ffhub-install-warning{display:block}.ffhub-install-warning strong{display:block;margin-bottom:4px}}

/* Ensure the HTML hidden attribute wins over button display rules. */
.ffhub-shell [hidden]{display:none!important}


/* DEV16 — administrator-only downloadable browser diagnostics */
.ffhub-admin-debug{
  margin-top:16px;
  border:1px solid #38557a;
  border-radius:10px;
  background:#07111f;
  overflow:hidden;
}
.ffhub-admin-debug>summary{
  cursor:pointer;
  padding:11px 14px;
  font-weight:800;
  color:#dceaff;
  background:#0c1a2e;
  user-select:none;
}
.ffhub-admin-debug-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  padding:12px 14px 6px;
}
.ffhub-debug-note{
  margin:2px 14px 10px;
  color:#8ea3bf;
  font-size:12px;
}
.ffhub-admin-debug .ffhub-diag{
  display:block;
  box-sizing:border-box;
  width:calc(100% - 28px);
  min-height:220px;
  max-height:520px;
  overflow:auto;
  margin:0 14px 14px;
  padding:12px;
  border:1px solid #263d5c;
  border-radius:7px;
  background:#020812;
  color:#b9d7ff;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:12px/1.45 Consolas,"Courier New",monospace;
}


/* DEV20 — global default + text-on-image controls */
.fflogo-save-global{border-color:#b88a19!important;color:#ffd86c!important;background:rgba(184,138,25,.12)!important;font-weight:800}
.fflogo-save-global:hover{background:rgba(184,138,25,.22)!important}
.fflogo-text-panel .fflogo-check{justify-content:flex-start!important}
.fflogo-text-panel input[type=number]{box-sizing:border-box}
.fflogo-text-panel .fflogo-text-live-note{padding:8px;border:1px solid #263653;border-radius:7px;background:#08111f;color:#a9bdd6}
@media(min-width:901px){.fflogo-work{grid-template-columns:minmax(0,1fr) 260px}}


/* DEV21 — tidy text controls. Keep checkboxes and numeric pixel options aligned. */
.fflogo-text-options{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin:2px 0 3px;
  padding:8px;
  border:1px solid #263653;
  border-radius:8px;
  background:#08111f;
}
.fflogo-text-options label{margin:0!important}
.fflogo-option-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 22px!important;
  align-items:center!important;
  gap:10px!important;
  width:100%!important;
  min-height:30px;
  color:#c6d4e8!important;
  font-size:12px!important;
  font-weight:600!important;
}
.fflogo-option-row span{min-width:0;line-height:1.2}
.fflogo-option-row input[type=checkbox]{
  width:16px!important;
  height:16px!important;
  margin:0!important;
  justify-self:end!important;
  accent-color:#1684ff;
}
.fflogo-option-combo{
  display:grid;
  grid-template-columns:minmax(0,1fr) 108px;
  gap:10px;
  align-items:center;
}
.fflogo-option-number{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 54px 18px!important;
  align-items:center!important;
  gap:6px!important;
  width:100%!important;
  color:#c6d4e8!important;
  font-size:12px!important;
  font-weight:600!important;
}
.fflogo-option-number input[type=number]{
  width:54px!important;
  min-width:54px!important;
  padding:5px 4px!important;
  text-align:center;
}
.fflogo-option-number em{
  color:#8297b2;
  font-style:normal;
  font-size:11px;
}
.fflogo-option-combo .fflogo-option-number{
  grid-template-columns:1fr 48px 16px!important;
}
.fflogo-option-combo .fflogo-option-number>span{display:none}
.fflogo-option-combo .fflogo-option-number input[type=number]{width:48px!important;min-width:48px!important}
.fflogo-padding-row{min-height:31px}
@media(max-width:900px){
  .fflogo-option-combo{grid-template-columns:1fr 104px}
}


/* DEV22 — main transmitter logo block is deliberately left aligned.
   The right side of the transmitter stage remains free for future
   transmitter text/language/translation controls. */
.ffhub-logo-launcher{
  width:384px;
  max-width:100%;
  margin:12px 0 16px!important;
}
.ffhub-logo-copy{
  width:100%;
  margin:0 0 10px!important;
  padding:0!important;
  text-align:left!important;
}
.ffhub-logo-copy>label,
.ffhub-logo-copy .ffhub-logo-note{
  text-align:left!important;
}
.ffhub-logo-main{
  display:block!important;
  width:100%!important;
}
.ffhub-logo-preview-col{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  width:100%;
  gap:10px;
}
.ffhub-v4-compact .ffhub-logo-preview,
.ffhub-logo-launcher .ffhub-logo-preview{
  display:block;
  width:384px!important;
  max-width:100%!important;
  height:auto!important;
  margin:0!important;
  justify-self:start!important;
}
.ffhub-logo-actions{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:wrap!important;
  gap:10px 12px!important;
  width:100%;
  padding:0!important;
}
.ffhub-logo-actions .ffhub-btn{
  min-width:118px!important;
}
.ffhub-logo-actions .ffhub-link-btn{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 2px!important;
  white-space:nowrap;
}
.ffhub-logo-saved-state{
  flex-basis:100%;
  min-height:0!important;
  margin-top:-3px;
}
@media(max-width:560px){
  .ffhub-logo-launcher{width:100%}
  .ffhub-logo-actions{gap:8px 12px!important}
}

/* DEV22 — rigid, calm text-option alignment.
   Columns: option name | checkbox | pixel value | unit. */
.fflogo-text-options{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:0!important;
  margin:4px 0 6px!important;
  padding:6px 10px!important;
  border:1px solid #263653!important;
  border-radius:8px!important;
  background:#08111f!important;
}
.fflogo-option-line{
  display:grid!important;
  grid-template-columns:minmax(88px,1fr) 24px 58px 22px!important;
  align-items:center!important;
  column-gap:8px!important;
  min-height:38px!important;
  width:100%!important;
  margin:0!important;
  padding:3px 0!important;
  color:#c6d4e8!important;
  font-size:12px!important;
  font-weight:600!important;
  box-sizing:border-box!important;
}
.fflogo-option-line + .fflogo-option-line{
  border-top:1px solid rgba(38,54,83,.58);
}
.fflogo-option-name{
  min-width:0!important;
  margin:0!important;
  color:#c6d4e8!important;
  line-height:1.2!important;
}
.fflogo-option-line input[type=checkbox]{
  appearance:auto!important;
  -webkit-appearance:checkbox!important;
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  margin:0!important;
  padding:0!important;
  justify-self:center!important;
  align-self:center!important;
  accent-color:#1684ff;
}
.fflogo-option-line input[type=number]{
  display:block!important;
  box-sizing:border-box!important;
  width:58px!important;
  min-width:58px!important;
  height:32px!important;
  margin:0!important;
  padding:4px 5px!important;
  justify-self:end!important;
  text-align:center!important;
}
.fflogo-option-empty{
  display:block;
  width:58px;
  height:1px;
}
.fflogo-option-unit{
  display:block;
  width:22px;
  color:#8297b2!important;
  font-style:normal!important;
  font-size:11px!important;
  text-align:left!important;
}
@media(max-width:900px){
  .fflogo-option-line{
    grid-template-columns:minmax(84px,1fr) 24px 54px 20px!important;
    column-gap:7px!important;
  }
  .fflogo-option-line input[type=number]{width:54px!important;min-width:54px!important}
}

/* DEV24 — administrator-only controlled power-loss test */
.ffhub-engineering-test{
  margin:10px 0;
  padding:10px 12px;
  border:1px solid #7a5d17;
  border-radius:8px;
  background:#171307;
  color:#f1d98a;
  display:flex;
  gap:12px;
  align-items:end;
  flex-wrap:wrap;
}
.ffhub-engineering-test label{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:360px;
}
.ffhub-engineering-test select{
  min-width:360px;
  max-width:100%;
}
.ffhub-engineering-test>span{
  max-width:700px;
  font-size:12px;
  line-height:1.35;
}

/* RC1 account/security gates */
.ffhub-account-gate{max-width:680px;margin:30px auto;padding:24px}.ffhub-account-gate .ffhub-btn{display:inline-flex;margin-right:8px}.ffhub-account-gate input[type="text"],.ffhub-account-gate input[name="code"]{font-size:20px;letter-spacing:.2em;max-width:220px;padding:10px}.ffhub-gate-error{color:#ff7189;font-weight:700}.ffhub-demo-logo-note{padding:12px 14px;border:1px solid #263a5c;border-radius:8px;color:#9cb1ce;margin:12px 0}.ffgps-live{grid-template-columns:repeat(3,minmax(120px,1fr))!important}@media(max-width:700px){.ffgps-live{grid-template-columns:repeat(2,minmax(120px,1fr))!important}}


/* RC2 — production DEMO visibility */
.ffhub-demo-test{margin-left:auto;border-color:#41658f!important;color:#cfe8ff!important;background:#0c1728!important}
.ffhub-demo-test.is-active{border-color:#56a8ff!important;background:#102846!important;box-shadow:0 0 0 1px rgba(86,168,255,.20) inset}
.ffhub-access-state[data-mode="demo"]{color:#7fc4ff!important;font-weight:800}

/* RC2 — actual black LCD pixels on the transmitter logo preview/editor */
.ffhub-logo-preview,.fflogo-canvas{image-rendering:pixelated!important;image-rendering:crisp-edges!important}

/* RC2 — live GPS accuracy + satellite dashboard */
.ffgps-dashboard{margin-top:12px}
.ffgps-visuals{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ffgps-viz-card{background:#07111e;border:1px solid #263a59;border-radius:10px;padding:10px;min-width:0}
.ffgps-viz-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;color:#dce8f7}
.ffgps-viz-head>span{color:#8fa9c8;font-size:12px}
.ffgps-viz-card canvas{display:block;width:100%;height:auto;aspect-ratio:1/1;background:#02060b;border:1px solid #1e314b;border-radius:8px}
.ffgps-legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:8px;color:#9eb0c7;font-size:11px}
.ffgps-legend span:before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px}
.ffgps-legend .gps:before{background:#42e976}.ffgps-legend .glo:before{background:#4b9cff}.ffgps-legend .gal:before{background:#ffad4a}.ffgps-legend .bds:before{background:#bd75ff}
.ffgps-live{display:grid!important;grid-template-columns:repeat(3,minmax(120px,1fr))!important;gap:8px;margin-top:12px}
.ffgps-live>div{background:#08101d;border:1px solid #263653;border-radius:9px;padding:10px;text-align:center}
.ffgps-live span{display:block;color:#8ea1ba;font-size:11px}.ffgps-live strong{display:block;margin-top:4px;color:#f3f7ff;font-size:18px}
.ffgps-fix{color:#51eb86!important}
@media(max-width:850px){.ffgps-visuals{grid-template-columns:1fr}.ffgps-live{grid-template-columns:repeat(2,minmax(120px,1fr))!important}}
@media(max-width:520px){.ffgps-live{grid-template-columns:1fr!important}.ffhub-demo-test{margin-left:0}}


/* RC3 — DEMO channel clarity */
.ffhub-channel-wrap{width:100%}
.ffhub-demo-channel-note{margin-top:7px;padding:8px 10px;border:1px solid #294b70;border-radius:7px;background:#0c1728;color:#b9d8f5;font-size:12px;line-height:1.4}
.ffhub-mode-select[data-demo="1"]{border-color:#41658f!important;color:#d8edff!important;font-weight:800!important;background:#0c1728!important}

/* RC3 — GPS module stability explanation */
.ffgps-viz-note{margin-top:8px;padding:7px 9px;border-radius:7px;background:#08101b;border:1px solid #1f3149;color:#8ea5c0;font-size:11px;line-height:1.4}
.ffgps-boat-key{display:inline-block;color:#f4f8ff;margin-right:4px}

/* RC4 — GPS map action */
.ffgps-map-actions{display:flex;justify-content:flex-start;margin:10px 0 0}
.ffgps-open-map{display:inline-flex!important;width:auto!important;text-decoration:none!important;align-items:center;justify-content:center}
.ffgps-open-map[hidden]{display:none!important}


/* RC6 — GPS persistence proof */
.ffgps-persistence{
  margin:10px 0 12px;padding:10px 12px;border-radius:9px;border:1px solid #2d4768;
  background:#09131f;display:flex;flex-direction:column;gap:3px;
}
.ffgps-persistence-title{font-size:14px}
.ffgps-persistence-detail{font-size:11px;color:#9fb1c7}
.ffgps-persistence[data-state="flash"]{border-color:#1b8f4d;background:#07180f}
.ffgps-persistence[data-state="flash"] .ffgps-persistence-title{color:#55e88e}
.ffgps-persistence[data-state="bbr"]{border-color:#a47b16;background:#191407}
.ffgps-persistence[data-state="bbr"] .ffgps-persistence-title{color:#ffd45e}
.ffgps-persistence[data-state="ram"]{border-color:#a63248;background:#1b0810}
.ffgps-persistence[data-state="ram"] .ffgps-persistence-title{color:#ff718b}
.ffgps-persistence[data-state="legacy"]{border-color:#3177b9;background:#081524}
.ffgps-persistence[data-state="legacy"] .ffgps-persistence-title{color:#7bc3ff}


/* RC9 — simple customer-facing autopilot suitability verdict */
.ffgps-autopilot-status{
  margin:10px 0 12px;padding:11px 12px;border-radius:9px;border:1px solid #2d4768;
  background:#09131f;display:flex;flex-direction:column;gap:3px;
}
.ffgps-autopilot-kicker{font-size:10px;font-weight:800;letter-spacing:.08em;color:#8fa6c1}
.ffgps-autopilot-title{font-size:15px;color:#c5d4e6}
.ffgps-autopilot-detail{font-size:11px;color:#9fb1c7}
.ffgps-autopilot-status[data-state="suitable"]{border-color:#1b8f4d;background:#07180f}
.ffgps-autopilot-status[data-state="suitable"] .ffgps-autopilot-title{color:#55e88e}
.ffgps-autopilot-status[data-state="not_configured"],
.ffgps-autopilot-status[data-state="unsuitable"]{border-color:#a63248;background:#1b0810}
.ffgps-autopilot-status[data-state="not_configured"] .ffgps-autopilot-title,
.ffgps-autopilot-status[data-state="unsuitable"] .ffgps-autopilot-title{color:#ff718b}
.ffgps-autopilot-status[data-state="detected"]{border-color:#375a80;background:#091624}
.ffgps-autopilot-status[data-state="detected"] .ffgps-autopilot-title{color:#8bc9ff}
.ffgps-connection[data-state="connected"]{border-color:#1b8f4d!important;color:#55e88e!important;background:#07180f!important}


/* RC13 — collapsible autopilot verdict + on-demand 60 s GPS accuracy/stability test */
.ffgps-autopilot-panel{margin:10px 0 12px;border:1px solid #2d4768;border-radius:9px;background:#09131f;overflow:hidden}
.ffgps-autopilot-panel>summary{cursor:pointer;list-style:none;padding:10px 12px;font-size:13px;font-weight:800;text-align:center;color:#c5d4e6;user-select:none}
.ffgps-autopilot-panel>summary::-webkit-details-marker{display:none}
.ffgps-autopilot-panel>summary:before{content:'▶';display:inline-block;margin-right:7px;font-size:10px;transition:transform .15s ease}
.ffgps-autopilot-panel[open]>summary:before{transform:rotate(90deg)}
.ffgps-autopilot-panel[data-state="suitable"]{border-color:#1b8f4d;background:#07180f}
.ffgps-autopilot-panel[data-state="suitable"]>summary{color:#55e88e}
.ffgps-autopilot-panel[data-state="not_configured"],.ffgps-autopilot-panel[data-state="unsuitable"]{border-color:#a63248;background:#1b0810}
.ffgps-autopilot-panel[data-state="not_configured"]>summary,.ffgps-autopilot-panel[data-state="unsuitable"]>summary{color:#ff718b}
.ffgps-autopilot-panel[data-state="detected"]{border-color:#375a80;background:#091624}
.ffgps-autopilot-panel[data-state="detected"]>summary{color:#8bc9ff}
.ffgps-autopilot-panel-body{padding:0 10px 10px}
.ffgps-autopilot-panel-body .ffgps-autopilot-status{margin:0 0 10px}
.ffgps-autopilot-panel-body .ffgps-persistence{margin:0}

.ffgps-accuracy-test{margin:12px 0;padding:11px 12px;border:1px solid #2d4768;border-radius:9px;background:#08131f}
.ffgps-accuracy-test-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ffgps-accuracy-test-status{font-size:12px;color:#9fb1c7}
.ffgps-accuracy-progress{height:5px;margin-top:9px;border-radius:99px;background:#122238;overflow:hidden}
.ffgps-accuracy-progress-bar{display:block;width:0;height:100%;background:#4aaeff;transition:width .2s linear}
.ffgps-accuracy-result{margin-top:10px;padding-top:10px;border-top:1px solid #21344d;display:flex;flex-direction:column;gap:4px}
.ffgps-accuracy-result[hidden]{display:none!important}
.ffgps-accuracy-grade{font-size:15px;color:#c5d4e6}
.ffgps-accuracy-result>span{font-size:11px;color:#8fa6c1}
.ffgps-accuracy-metrics{margin-top:6px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.ffgps-accuracy-metrics>div{padding:8px;border:1px solid #21344d;border-radius:7px;background:#06101b;display:flex;flex-direction:column;gap:2px}
.ffgps-accuracy-metrics span{font-size:10px;color:#8fa6c1}
.ffgps-accuracy-metrics b{font-size:13px;color:#e8f1ff}
.ffgps-accuracy-test[data-state="excellent"]{border-color:#1b8f4d;background:#07180f}
.ffgps-accuracy-test[data-state="excellent"] .ffgps-accuracy-grade{color:#55e88e}
.ffgps-accuracy-test[data-state="good"] .ffgps-accuracy-grade{color:#8bc9ff}
.ffgps-accuracy-test[data-state="fair"]{border-color:#a47b16;background:#191407}
.ffgps-accuracy-test[data-state="fair"] .ffgps-accuracy-grade{color:#ffd45e}
.ffgps-accuracy-test[data-state="poor"],.ffgps-accuracy-test[data-state="incomplete"]{border-color:#a63248;background:#1b0810}
.ffgps-accuracy-test[data-state="poor"] .ffgps-accuracy-grade,.ffgps-accuracy-test[data-state="incomplete"] .ffgps-accuracy-grade{color:#ff718b}
@media(max-width:760px){.ffgps-accuracy-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* RC18 — transmitter text/language editor beside the startup logo. */
.ffhub-personalize-grid{
  display:grid;
  grid-template-columns:minmax(340px,384px) minmax(320px,1fr);
  gap:20px;
  align-items:start;
  margin:12px 0 16px;
}
.ffhub-personalize-grid .ffhub-logo-launcher{margin:0!important;width:100%!important}
.ffhub-personalize-grid.is-language-only{grid-template-columns:minmax(320px,620px);justify-content:start}
.ffhub-language-card{
  min-height:100%;
  padding:14px;
  border:1px solid #263d61;
  border-radius:10px;
  background:#0c1a2d;
  box-sizing:border-box;
  display:flex;flex-direction:column;justify-content:flex-start;
}
.ffhub-language-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.ffhub-language-head>div{display:flex;flex-direction:column;gap:3px}
.ffhub-language-head strong{font-size:16px;color:#f1f6ff}
.ffhub-language-head span{font-size:12px;color:#8fa9ca;line-height:1.35}
.ffhub-language-card>label{display:grid;grid-template-columns:92px 1fr;gap:10px;align-items:center;margin:9px 0;color:#cfe0f5;font-size:13px;font-weight:600}
.ffhub-language-card select{width:100%;min-height:36px;border:1px solid #385477;border-radius:7px;background:#081423;color:#eef6ff;padding:5px 8px}
.ffhub-language-card .ffhub-lang-open{margin-top:10px;align-self:center}
.ffhub-language-help{margin-top:12px;padding-top:10px;border-top:1px solid #213654;color:#8fa9ca;font-size:12px;line-height:1.45}
.ffhub-language-card select.is-view-only{border-color:#2c405c;color:#b8c7da;background:#0a1524}
.ffhub-language-state{display:block;min-height:18px;margin-top:8px;color:#6fe3a2;font-size:12px;text-align:center}
.ffhub-language-state[data-type=warn]{color:#ffd267}.ffhub-language-state[data-type=ok]{color:#6fe3a2}

.fftext-modal[hidden]{display:none!important}
.fftext-modal{position:fixed;z-index:100002;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}
.fftext-backdrop{position:absolute;inset:0;background:rgba(0,5,13,.78);backdrop-filter:blur(3px)}
.fftext-dialog{position:relative;display:flex;flex-direction:column;width:min(1180px,96vw);height:min(820px,92vh);overflow:hidden;border:1px solid #355273;border-radius:12px;background:#0c192b;color:#e8f2ff;box-shadow:0 30px 90px rgba(0,0,0,.55)}
.fftext-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;border-bottom:1px solid #263d5c;background:#102139}
.fftext-head>div{display:flex;flex-direction:column;gap:3px}.fftext-head strong{font-size:17px}.fftext-head span{font-size:12px;color:#91a8c7}
.fftext-close{border:0;background:transparent;color:#dbe8f8;font-size:28px;line-height:1;cursor:pointer;padding:0 4px}
.fftext-toolbar{display:grid;grid-template-columns:minmax(180px,250px) auto minmax(240px,1fr) auto;gap:12px;align-items:end;padding:12px 16px;border-bottom:1px solid #203752;background:#0b1728}
.fftext-toolbar label{display:flex;flex-direction:column;gap:5px;color:#9fb4d0;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.fftext-toolbar select,.fftext-toolbar input{min-height:36px;border:1px solid #345273;border-radius:7px;background:#07111e;color:#f1f6ff;padding:6px 8px}
.fftext-encoding{align-self:center;color:#8fa9ca;font-size:12px;text-align:right;max-width:220px;line-height:1.35}
.fftext-table-wrap{flex:1;overflow:auto;background:#081321}
.fftext-table{width:100%;border-collapse:collapse;table-layout:fixed}
.fftext-table th{position:sticky;top:0;z-index:2;padding:9px 8px;background:#102139;color:#b9d2ee;border-bottom:1px solid #35506f;font-size:12px;text-align:left}
.fftext-table td{padding:6px 8px;border-bottom:1px solid #1b2c43;vertical-align:middle;color:#cbd9e9;font-size:12px}
.fftext-table th:nth-child(1),.fftext-table td:nth-child(1){width:45px;text-align:center}.fftext-table th:nth-child(2),.fftext-table td:nth-child(2){width:76px;text-align:center}.fftext-table th:nth-child(3),.fftext-table td:nth-child(3){width:36%}
.fftext-source{color:#aabed7;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap}
.fftext-input-wrap{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.fftext-input{width:100%;min-height:33px;box-sizing:border-box;border:1px solid #2f4a68;border-radius:6px;background:#06101c;color:#f1f7ff;padding:6px 8px}.fftext-input:disabled{opacity:.7;background:#0a1726}.fftext-count{min-width:50px;color:#748da9;font-size:11px;text-align:right}.fftext-count.is-over{color:#ff7d85;font-weight:700}
.fftext-row-changed{background:rgba(25,104,167,.08)}
.fftext-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;border-top:1px solid #29425f;background:#0d1b2e}.fftext-foot>div{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.fftext-status{color:#95abc7;font-size:12px}.fftext-status.is-ok{color:#62e49a}.fftext-status.is-error{color:#ff858d}
@media(max-width:900px){.ffhub-personalize-grid{grid-template-columns:1fr}.fftext-toolbar{grid-template-columns:1fr}.fftext-encoding{text-align:left}.fftext-table th:nth-child(3),.fftext-table td:nth-child(3){width:31%}}
@media(max-width:640px){.fftext-modal{padding:6px}.fftext-dialog{width:100%;height:96vh}.fftext-table th:nth-child(3),.fftext-table td:nth-child(3){display:none}.fftext-table th:nth-child(2),.fftext-table td:nth-child(2){width:62px}.fftext-foot{align-items:flex-start;flex-direction:column}.fftext-foot>div{justify-content:flex-start}}

/* RC21: per-row firmware text locks */
.fftext-row-locked{background:rgba(255,196,64,.045)}
.fftext-row-locked .fftext-input{cursor:not-allowed;opacity:.6}
.fftext-lock-badge{display:inline-block;margin-left:6px;font-size:11px;opacity:.85}

/* RC22: translation helper + hidden protected rows */
.fftext-translate{align-self:end;min-height:36px;white-space:nowrap}
.fftxt-system{color:#8b5e00;font-weight:700}

/* RC29.5 receiver one-time code, staging preflight only */
.ffhub-rx-token-wrap{margin:10px auto 2px;max-width:550px;text-align:left}
.ffhub-rx-token-wrap label{display:block;font-size:12px;font-weight:600;margin:0 0 6px}
.ffhub-rx-token-row{display:flex;gap:8px;align-items:center}
.ffhub-rx-token-input{flex:1;min-width:0;padding:9px 10px;border:1px solid #405670;border-radius:6px;background:#111f32;color:#ecf4ff}
.ffhub-rx-copy-status{font-size:11px;opacity:.8;margin-top:6px}

/* RC32.13: responsive receiver form: select and action occupy separate layout rows. */
.ffhub-v4-compact .ffhub-rx-variant-row{position:relative;z-index:1;margin-bottom:0!important}
.ffhub-v4-compact .ffhub-rx-variant-row select{position:relative;display:block;box-sizing:border-box;min-width:0}
.ffhub-v4-compact .ffhub-install-action-row{display:flex!important;position:relative;z-index:0;clear:both;justify-content:center;align-items:center;min-height:49px;margin:22px 0 18px!important;padding:0!important}
.ffhub-v4-compact .ffhub-install-action-row .ffhub-rc3210-factory-install{position:static!important;display:inline-flex;align-items:center;justify-content:center;min-width:178px;min-height:38px;margin:0!important;padding:10px 22px!important;line-height:1.2!important;white-space:normal;text-align:center}
.ffhub-v4-compact .ffhub-install-action-row [hidden]{display:none!important}
.ffhub-v4-compact .ffhub-minimal-admin{margin:8px auto 16px;max-width:610px;text-align:center;color:#b8cbe8}
.ffhub-v4-compact .ffhub-minimal-admin summary{display:list-item;cursor:pointer;list-style:disclosure-closed;user-select:none}
.ffhub-v4-compact .ffhub-minimal-admin[open] summary{list-style:disclosure-open}
.ffhub-v4-compact .ffhub-minimal-admin .ffhub-admin-tool{margin:12px 5px 4px;max-width:95%;white-space:normal}
@media(max-width:600px){.ffhub-v4-compact .ffhub-install-action-row{margin:26px 0 19px!important}.ffhub-v4-compact .ffhub-install-action-row .ffhub-rc3210-factory-install{width:100%;max-width:360px}}

.ffhub-v4-compact .ffhub-install-action-row[hidden],.ffhub-v4-compact .ffhub-minimal-admin[hidden]{display:none!important}

/* RC32.14 — channel license at top; receiver selection in Receiver step. */
.ffhub-v4-compact .ffhub-mode-legacy-row{display:none!important}
.ffhub-v4-compact .ffhub-receiver-model-row{margin-bottom:14px}
.ffhub-v4-compact .ffhub-receiver-model-row select{display:block;min-width:0}
.ffhub-v4-compact .ffhub-rx-variant-row{margin-top:0}

/* RC32.15 — transmitter plan controls live only inside the Transmitter tab. */
.ffhub-v4-compact .ffhub-transmitter-device-config{margin-bottom:17px}
.ffhub-v4-compact .ffhub-transmitter-device-config .ffhub-field-row select{min-width:0}

/* RC32.21: public, read-only Device Center; account required only on action. */
.ffhub-public-preview{padding:16px;background:#0a1220;border:1px solid #253650;border-radius:15px}
.ffhub-public-preview .ffhub-compact-head{margin-bottom:16px}
.ffhub-public-preview .ffhub-stage{margin-top:12px}
.ffhub-public-preview .ffhub-stage p{color:#bdcce0;line-height:1.5}
.ffhub-guest-actions{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin:18px 0 8px}
.ffhub-guest-modal[hidden]{display:none!important}
.ffhub-guest-modal{position:fixed;inset:0;z-index:2147483000;background:rgba(0,4,12,.76);display:flex;align-items:center;justify-content:center;padding:18px}
.ffhub-guest-dialog{width:min(520px,100%);border:1px solid #45618a;border-radius:14px;padding:22px;background:#101d30;box-shadow:0 20px 60px rgba(0,0,0,.5);color:#edf5ff}
.ffhub-guest-dialog h3{margin:0 0 8px;color:#fff}.ffhub-guest-dialog p{line-height:1.5}
.ffhub-public-preview .ffhub-config-card p{color:#b5c6de}

.ffhub-guest-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.ffhub-guest-feature-grid>div{padding:14px;border:1px solid #263653;border-radius:9px;background:#0b1627}
.ffhub-guest-feature-grid strong{color:#eef6ff;font-size:15px}.ffhub-guest-feature-grid p{margin:7px 0 12px}
@media(max-width:650px){.ffhub-guest-feature-grid{grid-template-columns:1fr}}

/* RC32.22: guest sees full default workspace; installation and payment remain gated. */
.ffhub-guest-full-workspace .ffhub-personalize-grid{margin-top:14px}
.ffhub-guest-full-workspace .ffhub-logo-launcher{min-width:0}
.ffhub-guest-full-workspace .ffhub-language-card{min-width:0}
.ffhub-guest-full-workspace .ffhub-stage-title{margin-top:14px}
.ffhub-guest-full-workspace .ffhub-guest-modal[hidden]{display:none!important}
.ffhub-guest-full-workspace .ffhub-language-state{display:block;margin-top:8px}
.ffhub-guest-full-workspace .ffgps-app{margin-top:12px}

.ffhub-guest-text-modal[hidden]{display:none!important}
.ffhub-guest-text-modal{position:fixed;inset:0;z-index:2147482990;background:rgba(0,4,12,.76);display:flex;align-items:center;justify-content:center;padding:18px}
.ffhub-guest-text-modal .ffhub-guest-dialog{display:flex;flex-direction:column;gap:12px}
.ffhub-guest-text-modal label{display:flex;flex-direction:column;gap:6px}
.ffhub-guest-text-modal select,.ffhub-guest-text-modal input{width:100%;padding:10px;border-radius:8px;border:1px solid #476080;background:#091323;color:#edf5ff}
.ffhub-guest-text-result{margin:0;border:1px solid #3b587b;padding:12px;border-radius:8px}
/* RC32.24: registered-unlicensed language preview is local, never firmware data. */
.ffhub-member-text-modal[hidden]{display:none!important}
.ffhub-member-text-modal{position:fixed;inset:0;z-index:2147482990;background:rgba(0,4,12,.78);display:flex;align-items:center;justify-content:center;padding:18px}
.ffhub-member-text-modal .ffhub-guest-dialog{width:min(520px,100%);display:flex;flex-direction:column;gap:12px}
.ffhub-member-text-modal label{display:flex;flex-direction:column;gap:6px}
.ffhub-member-text-modal input{width:100%;padding:10px;border-radius:8px;border:1px solid #476080;background:#091323;color:#edf5ff}

/* RC32.27: compact activation quantity and direct full-page checkout. */
.ffhub-buy-qty-label{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#d5e6fd;white-space:nowrap}
.ffhub-buy-qty-label[hidden]{display:none!important}
.ffhub-buy-qty{box-sizing:border-box;width:70px!important;min-height:34px;padding:5px 6px;border-radius:7px;border:1px solid #466385;background:#09182a;color:#fff;font:inherit;text-align:center}
@media(max-width:700px){.ffhub-buy-qty-label{margin-left:0}.ffhub-price-line .ffhub-buy{max-width:100%}}

/* RC32.28 — compact, independent transmitter activation balance and account-scoped history */
.ffhub-activation-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 10px;background:#0b1627;border:1px solid #263653;border-radius:8px;color:#c3d9f7;font-size:13px}
.ffhub-activation-summary strong{font-size:18px;color:#f6fbff;font-weight:750;margin-left:auto;font-variant-numeric:tabular-nums}
.ffhub-activation-summary .ffhub-activation-used{color:#93abc9;border-left:1px solid #2f415b;padding-left:10px}
.ffhub-activation-details{padding:0 10px 2px;color:#b4c9e6;font-size:12px}
.ffhub-activation-details summary{cursor:pointer;color:#b9d7fc;font-weight:600;list-style:revert}
.ffhub-activation-history-body{padding-top:9px;color:#a5b9d3}
.ffhub-activation-history-list{border:1px solid #263653;border-radius:8px;overflow:hidden}
.ffhub-activation-history-item{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px 10px;border-bottom:1px solid #263653;flex-wrap:wrap}
.ffhub-activation-history-item:last-child{border-bottom:0}
.ffhub-activation-history-item code{background:transparent;color:#eef5ff;font-size:12px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.ffhub-activation-history-item span{color:#a5b9d3}
.ffhub-activation-history-note{margin:8px 0;color:#b9c8da;font-size:12px}
@media(max-width:700px){.ffhub-activation-summary strong{margin-left:0}.ffhub-activation-summary .ffhub-activation-used{border:0;padding-left:0;width:100%}}

/* RC32.29 private account logo gallery */
.fflogo-library{width:min(100%,540px);margin-top:14px;padding:10px;border:1px solid #314663;border-radius:10px;background:#0b182b;color:#edf5ff}
.fflogo-library-header{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px;font-size:13px}
.fflogo-library-count{color:#b3c9e5}.fflogo-library-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(142px,1fr));gap:9px}
.fflogo-library-card{padding:7px;border-radius:8px;border:1px solid #345070;background:#081221;min-width:0;display:flex;flex-direction:column;gap:6px}
.fflogo-library-thumb{display:block;width:128px;max-width:100%;height:auto;aspect-ratio:2/1;image-rendering:pixelated;background:#B9F1E6}
.fflogo-library-name{font-size:12px;overflow-wrap:anywhere}.fflogo-library-actions{display:flex;gap:5px;flex-wrap:wrap}
.fflogo-library-actions .ffhub-btn{font-size:11px!important;padding:5px 9px!important;min-width:auto!important}
.fflogo-library-info,.fflogo-library-empty{font-size:11px;color:#a9bfd9;margin-top:8px}
.fflogo-delete{color:#ffabab!important}
.fflogo-save-name{background:#0a1423;border:1px solid #456180;border-radius:6px;color:white;padding:7px}

/* RC32.30: visible private library in the logo editor, beneath drawing surface. */
.fflogo-dialog .fflogo-library{width:100%;max-width:none;box-sizing:border-box;margin:12px 0 0;padding:12px}
.fflogo-dialog .fflogo-library-items{grid-template-columns:repeat(auto-fill,minmax(155px,190px))}
.fflogo-dialog .fflogo-library-thumb{width:100%;max-width:160px}
.fflogo-dialog .fflogo-library-header{font-size:14px}
.fflogo-dialog .fflogo-library-new{margin-top:10px}


/* RC32.31: stronger visual separation and exclusive Demo / licensed actions. */
.ffhub-v4-compact.ffhub-shell,.ffhub-public-preview.ffhub-shell{background:#0b1626;border-color:#365073}
.ffhub-v4-compact .ffhub-config-card,.ffhub-public-preview .ffhub-config-card{background:#101f34;border-color:#3a5476}
.ffhub-v4-compact .ffhub-activation-summary{background:#092634;border-color:#277b86;color:#c5f3ed}
.ffhub-v4-compact .ffhub-activation-summary strong{color:#77edd6}
.ffhub-v4-compact .ffhub-activation-details{border-bottom:1px solid #284057;padding-bottom:8px}
.ffhub-v4-compact .ffhub-stage-title{border-color:#344f70}
.ffhub-v4-compact .ffhub-language-card,.ffhub-public-preview .ffhub-language-card{background:#0d2034;border:1px solid #3c6283;border-radius:12px}
.ffhub-v4-compact .ffhub-install-warning,.ffhub-public-preview .ffhub-install-warning{background:#1b2436;border-color:#7b664d;color:#e4e6e9}
.ffhub-v4-compact .ffhub-install-warning strong,.ffhub-public-preview .ffhub-install-warning strong{color:#ffcc83}
.ffhub-v4-compact .ffhub-price-line,.ffhub-public-preview .ffhub-price-line{gap:12px;flex-wrap:wrap}
.ffhub-v4-compact .ffhub-price,.ffhub-public-preview .ffhub-price{color:#fff0d0;font-weight:800}
.ffhub-v4-compact .ffhub-buy,.ffhub-public-preview [data-guest-action="Buy 1 activation"]{background:#174e57;border-color:#32a99e;color:#e8fffc}
.ffhub-v4-compact .ffhub-buy:hover,.ffhub-public-preview [data-guest-action="Buy 1 activation"]:hover{background:#206b70}
.ffhub-v4-compact .ffhub-install-tx,.ffhub-public-preview .ffhub-install-tx{background:#1768d2;border-color:#5fa7ff;color:white}
.ffhub-v4-compact .ffhub-demo-test,.ffhub-public-preview .ffhub-guest-demo{border-color:#c89440!important;color:#ffe0a9!important;background:#312414!important}
.ffhub-v4-compact .ffhub-demo-test:hover,.ffhub-public-preview .ffhub-guest-demo:hover{background:#49321a!important}
.ffhub-v4-compact.is-demo-mode .ffhub-config-card,.ffhub-public-preview.is-demo-mode .ffhub-config-card{background:#241f25;border-color:#bb8941;box-shadow:inset 3px 0 0 #dfab50}
.ffhub-v4-compact.is-demo-mode .ffhub-price-line,.ffhub-public-preview.is-demo-mode .ffhub-price-line{border-color:#80603b}
.ffhub-v4-compact.is-demo-mode .ffhub-access-state,.ffhub-public-preview.is-demo-mode .ffhub-access-state{color:#ffdc91!important;font-weight:800}
.ffhub-v4-compact.is-demo-mode .ffhub-demo-test,.ffhub-public-preview.is-demo-mode .ffhub-guest-demo{background:#57371a!important;border-color:#ffd184!important;color:#fff2d7!important}
.ffhub-v4-compact .ffhub-install-demo,.ffhub-public-preview .ffhub-guest-install-demo{background:#a75b19!important;border-color:#f0ae61!important;color:#fff!important;font-weight:800;min-width:190px}
.ffhub-v4-compact .ffhub-install-demo:hover,.ffhub-public-preview .ffhub-guest-install-demo:hover{background:#bd6a1f!important}
.ffhub-v4-compact .ffhub-price[hidden],.ffhub-v4-compact .ffhub-buy[hidden],.ffhub-v4-compact .ffhub-install-tx[hidden],.ffhub-v4-compact .ffhub-install-demo[hidden],.ffhub-public-preview [hidden]{display:none!important}
@media(max-width:640px){.ffhub-v4-compact .ffhub-price-line,.ffhub-public-preview .ffhub-price-line{align-items:stretch}.ffhub-v4-compact.is-demo-mode .ffhub-access-state,.ffhub-public-preview.is-demo-mode .ffhub-access-state{width:100%}}


/* RC32.31.1 — fail-closed initial state. Do not briefly show install buttons
   or uninitialized language/device controls while catalog AJAX is pending. */
.ffhub-v4-compact .ffhub-loading-status{display:none}
.ffhub-v4-compact.is-initializing .ffhub-loading-status{display:block;margin:16px 0;padding:18px 20px;border:1px solid #365c76;border-radius:10px;background:#112337;color:#cfe6f9;font-weight:650}
.ffhub-v4-compact.is-initializing .ffhub-loading-status.has-error{border-color:#a85c4f;background:#301e28;color:#ffd8d0}
.ffhub-v4-compact.is-initializing > .ffhub-step-tabs,
.ffhub-v4-compact.is-initializing > .ffhub-stage{display:none!important}
.ffhub-v4-compact .ffhub-install-tx[hidden],
.ffhub-v4-compact .ffhub-install-demo[hidden]{display:none!important}

/* RC32.34: Activation ledger and ownership transfer are under WooCommerce My Account. */
.ffhub-account-manage-link{display:block;text-align:center;padding:5px 6px 10px;color:#9bd9fd!important;font-size:12px;text-decoration:underline}

/* Standalone receiver gallery, outside the device selection/installation panel */
.fffw-rx-gallery{max-width:100%;margin:16px 0 22px;padding:12px;border:1px solid #294e75;background:#0c192c;border-radius:14px;box-sizing:border-box}
.fffw-rx-gallery[hidden],.fffw-rx-gallery-card[hidden]{display:none!important}
.fffw-rx-gallery-items{display:grid;gap:10px}
.fffw-rx-gallery-card{border:1px solid #355a81;border-radius:10px;overflow:hidden;background:#0a1424;color:#deebff}
.fffw-rx-gallery-card summary{cursor:pointer;padding:11px 14px;color:#a8d6ff;font-weight:600;list-style:revert}
.fffw-rx-gallery-card img{display:block;width:100%;height:auto;max-height:360px;object-fit:contain;border-radius:9px;margin:0 auto 8px}

/* Dedicated galleries below Ready; no images inside selectors or install controls. */
.fffw-tx-gallery{max-width:100%;margin:16px 0 22px;padding:12px;border:1px solid #294e75;background:#0c192c;border-radius:14px;box-sizing:border-box}
.fffw-tx-gallery[hidden]{display:none!important}
.fffw-tx-gallery-items{display:grid;gap:10px}
/* Keep firmware installation controls at the left edge in both tabs. */
.ffhub-v4-compact .ffhub-install-action-row{justify-content:flex-start!important}
.ffhub-v4-compact .ffhub-tx-actions,.ffhub-public-preview .ffhub-tx-actions{display:flex;justify-content:flex-start!important;align-items:center;text-align:left;margin-left:0!important;margin-right:0!important}
.ffhub-v4-compact .ffhub-tx-actions .ffhub-install-tx,.ffhub-public-preview .ffhub-tx-actions .ffhub-install-tx{margin-left:0!important;margin-right:0!important}

/* R164: show the transfer action only after a verified account-ownership denial. */
.ffhub-transfer-request{margin-top:10px}
.ffhub-transfer-request[hidden]{display:none!important}

/* R190: admin-only read-only USB probe sits alongside Install (never hidden by mode updates). */
.ffhub-v4-compact .ffhub-tx-actions .ffhub-sec2-usb-test{background:transparent;color:#c9deef;border:1px solid #57718d;padding:9px 16px;border-radius:8px;min-width:170px;cursor:pointer}
.ffhub-v4-compact .ffhub-tx-actions .ffhub-sec2-usb-test:hover{border-color:#8daed4;color:#fff}
.ffhub-v4-compact .ffhub-tx-actions .ffhub-sec2-usb-test:disabled{opacity:.55;cursor:wait}
.ffhub-v4-compact .ffhub-tx-actions{flex-wrap:wrap;gap:10px}

/* R198 — visible, accessible invalid LCD characters and one-click safe substitution. */
.fftext-row-invalid{background:rgba(160,30,48,.14)!important}
.fftext-row-invalid .fftext-input{border:2px solid #ff6072;box-shadow:0 0 0 2px rgba(255,66,85,.12)}
.fftext-invalid-preview{margin:5px 0 2px;padding:5px 8px;background:#24111a;color:#f5e6e8;border:1px solid #7a3547;border-radius:5px;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.6 ui-monospace,Consolas,monospace}
.fftext-invalid-preview[hidden],.fftext-validation-message[hidden],.fftext-fix[hidden]{display:none!important}
.fftext-invalid-preview mark{background:#e9334b;color:#fff;border-radius:3px;padding:1px 2px;font-weight:700}
.fftext-invalid-label{display:block;color:#ffacb8;font-weight:600;margin-bottom:2px;font-family:inherit}
.fftext-validation-message{color:#ff99a4;font-size:11px;font-weight:600;margin:3px 0}
.fftext-fix{border:1px solid #d96876;background:#371827;color:#fff;border-radius:5px;padding:5px 8px;margin:4px 0;cursor:pointer;font-size:11px;font-weight:600}
.fftext-fix:hover{background:#602234;border-color:#ff879b}
.fftext-save:disabled{opacity:.53;cursor:not-allowed}

/* R199: persistent working drafts are separate from approved firmware text. */
.fftext-save-draft{border-color:#407ba8!important;color:#e9f4ff!important}
.fftext-restore-draft,.fftext-delete-draft{border-color:#546f88!important}
.fftext-close-bottom{background:transparent!important;color:#b9cbe2!important;border-color:#344b67!important}
.fftext-close-bottom:hover{color:#fff!important}
.fftext-foot>div button[hidden]{display:none!important}


/* RC8 — richer GPS test controls and satellite icons */
.ffgps-legend .other:before{background:#a8b8ca}
.ffgps-accuracy-duration{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 6px}
.ffgps-accuracy-duration button{appearance:none;border:1px solid #2d4e74;background:#091321;color:#c9def7;border-radius:999px;padding:7px 12px;font:600 12px/1.2 system-ui;cursor:pointer}
.ffgps-accuracy-duration button.is-active{border-color:#55b0ff;background:#0f2742;color:#fff;box-shadow:0 0 0 1px rgba(85,176,255,.18) inset}
.ffgps-accuracy-result>span,.ffgps-accuracy-caption{display:block;color:#9fb3cb;font-size:12px;margin-top:2px}
.ffgps-accuracy-metrics{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:8px;margin-top:10px}
.ffgps-accuracy-metrics>div{background:#08101d;border:1px solid #253754;border-radius:9px;padding:10px;text-align:center}
.ffgps-accuracy-metrics span{display:block;color:#8ea1ba;font-size:11px}.ffgps-accuracy-metrics b{display:block;margin-top:4px;color:#f3f7ff;font-size:18px}
@media(max-width:1000px){.ffgps-accuracy-metrics{grid-template-columns:repeat(3,minmax(120px,1fr))}}
@media(max-width:700px){.ffgps-accuracy-metrics{grid-template-columns:repeat(2,minmax(120px,1fr))}}
@media(max-width:430px){.ffgps-accuracy-metrics{grid-template-columns:1fr}}


/* R201 — readable satellite icons and unified coordinates card */
.ffgps-legend-help{color:#829ebf;font-size:11px;margin-left:auto}
.ffgps-coordinates-card{
  margin:10px auto 0;padding:13px 14px 14px;
  border:1px solid #294363;border-radius:10px;background:#07111e;
  display:flex;flex-direction:column;align-items:center;gap:10px;
  width:100%;box-sizing:border-box;text-align:center;
}
.ffgps-coordinates-heading{font-size:13px;color:#dce9f9;font-weight:750;letter-spacing:.02em}
.ffgps-coordinate-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,510px);gap:12px}
.ffgps-coordinate-pair>div{min-width:0;padding:8px 12px;border-radius:8px;background:#091729;border:1px solid #203958}
.ffgps-coordinate-pair span{display:block;color:#8ea7c5;font-size:11px;margin-bottom:4px}
.ffgps-coordinate-pair strong{display:block;color:#eef6ff;font-size:17px;font-weight:750;white-space:nowrap;font-variant-numeric:tabular-nums}
.ffgps-coordinates-card .ffgps-open-map{margin:0 auto;min-height:32px;padding:6px 14px;max-width:100%;font-size:12px;}
.ffgps-coordinates-card .ffgps-open-map[hidden]{display:none!important}
@media(max-width:500px){
  .ffgps-coordinate-pair{grid-template-columns:1fr;max-width:300px;gap:8px}
  .ffgps-coordinate-pair>div{padding:7px 9px}
  .ffgps-coordinate-pair strong{font-size:16px}
}

/* R202 — GPS chart lifecycle: live view, last sample and in-browser reset. */
.ffgps-graph-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:9px 0 3px}
.ffgps-graph-tools button{appearance:none;background:#0a1829;border:1px solid #314e70;border-radius:7px;color:#d9e9ff;cursor:pointer;font:600 11px/1.25 system-ui;padding:7px 9px;white-space:nowrap}
.ffgps-graph-tools button:hover:not(:disabled){border-color:#69b6ff;background:#122945}
.ffgps-graph-tools button.is-active{border-color:#47b1ff;background:#123553;color:#fff}
.ffgps-graph-tools button:disabled{opacity:.45;cursor:not-allowed}
.ffgps-graph-state{display:inline-block;border:1px solid #1d864d;color:#65eea3;background:#071b14;border-radius:100px;font:800 10px/1.1 system-ui;letter-spacing:.03em;padding:7px 9px}
.ffgps-graph-state[data-mode="review"]{border-color:#a47b16;color:#ffd45e;background:#1b1608}
.ffgps-graph-state[data-mode="testing"]{border-color:#398dd7;color:#8dccff;background:#071a2d}
.ffgps-graph-tools .ffgps-graph-reset{margin-left:auto;border-color:#46617d}
@media(max-width:500px){.ffgps-graph-tools button{padding:7px 8px}.ffgps-graph-tools .ffgps-graph-reset{margin-left:0}}

/* R203: plain-English GPS value explanation and safe receiver comparison */
.ffgps-benchmark-mode{margin-top:10px;padding:12px;background:#081c2b;border:1px solid #315a78;border-radius:10px}
.ffgps-benchmark-head{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.ffgps-benchmark-mode p,.ffgps-backup-manager p{color:#adc5d9;font-size:12px;line-height:1.55;margin:8px 0}
.ffgps-benchmark-pill{font-size:10px;letter-spacing:.04em;color:#93aac3;border:1px solid #39516c;border-radius:20px;padding:4px 8px}
.ffgps-benchmark-pill[data-state="readonly"]{color:#58e79a;border-color:#237b53;background:#082619}
.ffgps-benchmark-note{display:block;margin-top:9px;font-size:11px;color:#91acc8}
.ffgps-backup-manager{margin:9px 0;border:1px solid #2b405d;padding:9px 12px;border-radius:9px;background:#071321}
.ffgps-backup-manager summary{cursor:pointer;color:#d3e6fa;font-weight:600;font-size:12px}
.ffgps-backup-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.ffgps-backup-actions label{font-size:11px;color:#9fb8d3;display:flex;flex-direction:column;gap:5px}
.ffgps-backup-actions input{font-size:11px;max-width:230px;color:#bcd3e8}
.ffgps-user-meaning{border:1px solid #2e5a79;background:#091f2d;padding:13px;margin-top:13px;border-radius:10px}
.ffgps-user-meaning[data-level="good"]{border-color:#207a53;background:#0a211d}
.ffgps-user-meaning[data-level="caution"]{border-color:#866720;background:#241d0d}
.ffgps-user-meaning[data-level="poor"]{border-color:#ab4255;background:#28151c}
.ffgps-user-meaning-title{font-size:15px;color:#e9f5ff}
.ffgps-meaning-headline{font-weight:700;font-size:14px;color:#d9ecfc;margin:8px 0 12px}
.ffgps-user-meaning[data-level="good"] .ffgps-meaning-headline{color:#73efaf}
.ffgps-user-meaning[data-level="poor"] .ffgps-meaning-headline{color:#ff8c9e}
.ffgps-meaning-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.ffgps-meaning-grid>div{padding:10px;border:1px solid #34526b;background:rgba(1,9,20,.45);border-radius:8px;min-width:0}
.ffgps-meaning-grid b{font-size:12px;color:#eaf5ff}
.ffgps-meaning-grid p{font-size:12px;line-height:1.5;color:#b9cce0;margin:7px 0 0}
.ffgps-meaning-warning{margin:11px 0;color:#9db6cd;font-size:11px;line-height:1.5}
.ffgps-metric-help{margin-top:10px;border-top:1px solid #2a4057;padding-top:10px}
.ffgps-metric-help summary{cursor:pointer;font-size:12px;font-weight:700;color:#bcdbf5}
.ffgps-metric-help dl{display:grid;grid-template-columns:minmax(90px,125px) 1fr;gap:8px 14px;font-size:12px;line-height:1.5}
.ffgps-metric-help dt{font-weight:700;color:#e1f0ff}.ffgps-metric-help dd{margin:0;color:#aac3d9}
.ffgps-backup-status{color:#a5bfd5;font-size:11px;line-height:1.5}
@media(max-width:860px){.ffgps-meaning-grid{grid-template-columns:1fr}}

/* R204: keep GPS dashboard stable when Chrome translates the page. */
.ffgps-app .ffgps-accuracy-test-head{align-items:center;min-height:52px}
.ffgps-app .ffgps-accuracy-test-status{display:block;flex:1 1 260px;min-width:215px;min-height:2.8em;line-height:1.4;overflow-wrap:break-word}
.ffgps-app .ffgps-phase[hidden]{display:none!important}
.ffgps-app .ffgps-phase:not([hidden]){display:inline}
.ffgps-app .ffgps-phase b{white-space:nowrap;unicode-bidi:isolate;font-variant-numeric:tabular-nums;font-size:inherit}
.ffgps-app .ffgps-accuracy-start{min-height:39px}
.ffgps-app .ffgps-accuracy-start .ffgps-start-seconds{font-variant-numeric:tabular-nums}
.ffgps-app .ffgps-live>div{min-width:0;min-height:70px;box-sizing:border-box}
.ffgps-app .ffgps-live strong,.ffgps-app .ffgps-accuracy-metrics b{font-variant-numeric:tabular-nums;white-space:nowrap;unicode-bidi:isolate}
.ffgps-app .ffgps-accuracy-metrics>div{min-width:0;min-height:71px;box-sizing:border-box}
.ffgps-app .ffgps-coordinate-pair strong{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}
.ffgps-app .ffgps-graph-tools{min-height:43px}
.ffgps-app .ffgps-graph-state{min-width:58px;text-align:center;box-sizing:border-box}
.ffgps-app .ffgps-viz-head{min-height:25px}
.ffgps-app .ffgps-visuals>section{min-width:0}
.ffgps-app .ffgps-dashboard{overflow-anchor:none}
@media(max-width:650px){.ffgps-app .ffgps-accuracy-test-head{align-items:flex-start}.ffgps-app .ffgps-accuracy-test-status{min-width:0}}

/* R205: receiver benchmark is independent of autopilot configuration workflow. */
.ffgps-app[data-benchmark-mode="1"] .ffgps-autopilot-panel{display:none!important}
.ffgps-app[data-benchmark-mode="1"] .ffgps-config,.ffgps-app[data-benchmark-mode="1"] .ffgps-verify{display:none!important}
.ffgps-app .ffgps-phase[data-phase="waiting"]{line-height:1.5}


/* R207: optional manufacturer GNSS specification (enabled by administrator). */
.ffgps-spec-inputs{margin:10px 0;border:1px solid #31536e;border-radius:10px;padding:12px;background:#091a2b;color:#d7eafa}
.ffgps-spec-inputs>summary{cursor:pointer;font-weight:700;font-size:13px;line-height:1.5}
.ffgps-spec-inputs p{font-size:12px;line-height:1.55;color:#a8c3dc;margin:10px 0}
.ffgps-spec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 12px;margin-top:12px}
.ffgps-spec-grid label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#c3d8eb;min-width:0}
.ffgps-spec-grid input,.ffgps-spec-grid select{width:100%;min-height:35px;box-sizing:border-box;background:#061321;color:#e5f4ff;border:1px solid #41617e;border-radius:7px;padding:7px 9px;font:inherit}
.ffgps-spec-grid input:focus,.ffgps-spec-grid select:focus{outline:2px solid #61b8fe;outline-offset:1px}
.ffgps-spec-wide{grid-column:1/-1}
.ffgps-spec-hint{border-left:3px solid #4689c4;padding:5px 9px;background:#091f35}
.ffgps-spec-compare{margin-top:12px;border:1px solid #4d7088;border-radius:9px;padding:12px;background:#071422}
.ffgps-spec-compare[hidden]{display:none!important}
.ffgps-spec-compare>strong{display:block;font-size:13px;margin-bottom:9px}
.ffgps-spec-side-by-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ffgps-spec-side-by-side>div{background:#0a1f32;border-radius:8px;border:1px solid #294762;padding:10px;min-width:0}
.ffgps-spec-side-by-side span{display:block;color:#9ebbd4;font-size:11px;margin-bottom:6px}
.ffgps-spec-side-by-side b{display:block;color:#e3f7ff;font-size:13px;overflow-wrap:anywhere}
.ffgps-signal-quality{margin-left:auto;color:#b6d0e4}
@media(max-width:650px){.ffgps-spec-grid,.ffgps-spec-side-by-side{grid-template-columns:1fr}}

.fftext-speed-managed{background:rgba(27,115,100,.07)}
.fftext-speed-managed .fftext-input{opacity:.9;cursor:default}
