/* TradePrepNow fleet furniture — the shared floating controls
   (2026-11-15 fleet rollout). One stylesheet for every top-level page:
   the canonical theme disc (mounted by /theme-toggle.js, adopted by
   /furniture.js), the Settings gear (Settings Button One), and the
   feedback droplet (Cool Button One form). All three float on ONE
   engine in furniture.js: six anchors, exclusive seats, springy
   settle. Opacity is the only glass control (Rob's canon 2026-11-15);
   it drives --tpn-glass-o below. No button, and no text or icon
   inside a button, is highlightable anywhere in this furniture. */

:root{--tpn-glass-o:63}

/* The theme disc keeps its canonical look; the engine moves it by
   left/top, so it gets the springy settle transition and touch drag
   behavior here (its own file is never edited). */
.themeToggle{transition:left .45s cubic-bezier(.34,1.56,.64,1),top .45s cubic-bezier(.34,1.56,.64,1);touch-action:none}

/* ---------- Settings gear (Settings Button One) ----------
   A 40x40 glass disc matching the theme disc's form. */
#gearBtn{position:fixed;z-index:9999;width:40px;height:40px;border-radius:50%;background:rgba(128,128,128,.2);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(128,128,128,.3);color:inherit;font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;box-sizing:border-box!important;padding:0!important;margin:0!important;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;transition:left .45s cubic-bezier(.34,1.56,.64,1),top .45s cubic-bezier(.34,1.56,.64,1)}

/* ---------- Feedback droplet (Cool Button One form) ----------
   Adapted from the package droplet CSS (apex droplet.css, wave 0):
   96px glass disc open, 52px round bubble collapsed. The engine
   seats it by left/top; right/bottom below are only the pre-engine
   parking values. */
#tpn-fb-float{position:fixed;right:14px;bottom:22px;z-index:9998;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:96px;height:96px;min-width:96px;min-height:96px;padding:12px;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:radial-gradient(circle at 36% 30%,rgba(255,255,255,.16),rgba(255,255,255,0) 46%),radial-gradient(circle at 50% 50%,rgba(255,255,255,.10) 0%,rgba(255,255,255,.03) 52%,rgba(130,130,130,.06) 72%,rgba(60,60,60,.28) 81%,rgba(228,228,228,.55) 87%,rgba(255,255,255,.85) 92%,rgba(205,205,205,.38) 97%,rgba(150,150,150,.26) 100%);-webkit-backdrop-filter:blur(1px) saturate(1.25);backdrop-filter:blur(1px) saturate(1.25);color:#14314e;font-size:14.5px;font-weight:700;font-family:inherit;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),inset 0 0 14px rgba(110,110,110,.14),0 10px 22px rgba(20,20,20,.28);transition:left .5s cubic-bezier(.34,1.56,.64,1),top .5s cubic-bezier(.34,1.56,.64,1),width .38s cubic-bezier(.34,1.56,.64,1),height .38s cubic-bezier(.34,1.56,.64,1),min-width .38s cubic-bezier(.34,1.56,.64,1),min-height .38s cubic-bezier(.34,1.56,.64,1),padding .38s cubic-bezier(.34,1.56,.64,1),border-radius .38s cubic-bezier(.34,1.56,.64,1)}
#tpn-fb-float::before{content:"";position:absolute;top:7%;left:19%;width:58%;height:30%;border-radius:50%;background:radial-gradient(ellipse at center,rgba(255,255,255,.85),rgba(255,255,255,.28) 55%,rgba(255,255,255,0) 75%);transform:rotate(-14deg);pointer-events:none}
#tpn-fb-float .tpn-fb-bubble{flex:0 0 auto;filter:drop-shadow(0 1px 0 rgba(255,255,255,.5))}
#tpn-fb-float .tpn-fb-word{line-height:1.05;text-shadow:0 1px 0 rgba(255,255,255,.55),0 0 6px rgba(255,255,255,.35)}
#tpn-fb-float.tpn-fb-dragging{cursor:grabbing}
#tpn-fb-float.tpn-fb-collapsed{min-width:52px;min-height:52px;width:52px;height:52px;padding:0;border-radius:50%}
#tpn-fb-float.tpn-fb-collapsed .tpn-fb-word{display:none}
#tpn-fb-float.tpn-fb-collapsed .tpn-fb-bubble{width:26px;height:26px}

/* MARK SWITCH — Rob's canon, 2026-11-15. The mark (the Feedback word
   and the bubble, both currentColor) stays readable on every
   background: navy #14314e on bright backgrounds, white on dark
   ones, never etched. TPN has no scene library: Night and
   Auto-resolved-night take white; Glass takes white (TPN glass sits
   over its dark glass surfaces) with the dark word shadow; Day
   keeps navy. */
html[data-theme-resolved="night"] #tpn-fb-float{color:#fff}
html[data-theme="glass"] #tpn-fb-float{color:#fff}
html[data-theme="glass"] #tpn-fb-float .tpn-fb-word{text-shadow:0 1px 0 rgba(0,0,0,.45),0 0 6px rgba(0,0,0,.30)}

/* ---------- Settings sheet ----------
   Full-screen sheet, own scroll, sticky head with Back and the word
   Settings. Content is ONE block: Optimize Glass View, Opacity only.
   No theme row (the floating theme button is the only theme
   control), no frosting, no tint, no location block. */
#tpn-settings{position:fixed;inset:0;z-index:10001;overflow-y:auto;-webkit-overflow-scrolling:touch;background:#fff;color:#1b1f24;font:15px/1.5 system-ui,sans-serif}
#tpn-settings[hidden]{display:none}
html[data-theme-resolved="night"] #tpn-settings{background:#0d1322;color:#eef1f8}
html[data-theme="glass"] #tpn-settings{background:rgba(16,20,34,calc(var(--tpn-glass-o,63)/100));-webkit-backdrop-filter:blur(20px) saturate(150%);backdrop-filter:blur(20px) saturate(150%);color:#f4f7fb}
.tpn-set-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;padding:12px 16px;background:inherit;border-bottom:1px solid rgba(128,128,128,.35)}
.tpn-set-head .tpn-set-title{font-size:17px;font-weight:700}
#tpn-settings-back{appearance:none;border:1px solid rgba(128,128,128,.45);background:transparent;color:inherit;border-radius:999px;padding:7px 14px;font:600 14px system-ui,sans-serif;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.tpn-set-body{max-width:640px;margin:0 auto;padding:20px 16px 48px}
.tpn-set-block h2{font-size:19px;margin:0 0 8px}
.tpn-set-block p{margin:0 0 12px}
.tpn-set-block .dim{opacity:.75;font-size:13.5px}
.tpn-set-block input[type=range]{width:100%;margin:6px 0 2px;accent-color:#b98a1e}
#tpn-settings button{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}

/* ---------- Feedback panel ----------
   Carried over from feedback-widget.js (Feedback Standard v1) with
   only the launcher changed: the droplet above replaces the fixed
   navy pill (#tpn-fb-btn is gone). Panel, fields, and behavior are
   the site's existing feedback function, unchanged. */
#tpn-fb-panel{position:fixed;right:18px;bottom:70px;z-index:99991;width:340px;max-width:calc(100vw - 24px);max-height:calc(100vh - 96px);overflow-y:auto;background:#fff;color:#1b1f24;border:1px solid #d8d2c4;border-radius:14px;box-shadow:0 18px 50px rgba(20,20,20,.28);padding:16px;font:14px/1.45 system-ui,sans-serif}
#tpn-fb-panel[hidden]{display:none}
#tpn-fb-panel h3{margin:0 0 10px;font-size:16px}
#tpn-fb-doctrine{background:#fdf6e0;border:1px solid #e2b657;border-radius:10px;padding:10px 12px;margin:0 0 12px}
#tpn-fb-doctrine p{margin:0 0 8px}
#tpn-fb-doctrine p:last-child{margin-bottom:0}
#tpn-fb-doctrine .close-line{font-weight:700}
#tpn-fb-panel label{display:block;font-weight:600;margin:10px 0 4px}
#tpn-fb-cats{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 4px}
#tpn-fb-cats button{appearance:none;border:1.5px solid #c9d3e0;background:#fff;color:#1b1f24;border-radius:999px;padding:7px 12px;font:600 13px system-ui,sans-serif;cursor:pointer}
#tpn-fb-cats button.sel{border-color:#b98a1e;background:#fdf6e0}
#tpn-fb-status{margin:2px 0 0;font-size:13px;color:#5c5546;min-height:0}
#tpn-fb-panel textarea{width:100%;box-sizing:border-box;border:1px solid #c9c2b2;border-radius:8px;padding:9px;font:14px system-ui,sans-serif;min-height:96px}
#tpn-fb-panel input[type=email]{width:100%;box-sizing:border-box;border:1px solid #c9c2b2;border-radius:8px;padding:9px;font:14px system-ui,sans-serif}
#tpn-fb-panel .ctx{font-size:12px;color:#6b6357;margin-top:6px}
#tpn-fb-panel .row{display:flex;gap:8px;margin-top:12px}
#tpn-fb-send{flex:1;background:#1a2744;color:#fff;border:0;border-radius:8px;padding:11px;font:700 14px system-ui,sans-serif;cursor:pointer}
#tpn-fb-cancel{background:none;border:0;color:#5c5546;font:13px system-ui,sans-serif;cursor:pointer;text-decoration:underline}
#tpn-fb-msg{margin-top:10px;font-size:13px;min-height:16px}
#tpn-fb-panel button{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
html[data-theme=dark] #tpn-fb-panel,body[data-theme=contrast] #tpn-fb-panel{background:#161d27;color:#e8edf4;border-color:#2a3648}
html[data-theme=dark] #tpn-fb-panel textarea,html[data-theme=dark] #tpn-fb-panel input[type=email]{background:#0f1622;color:#e8edf4;border-color:#2a3648}
html[data-theme=dark] #tpn-fb-doctrine{background:#2a2410;color:#f0e6c8}
html[data-theme=dark] #tpn-fb-cats button{background:#0f1622;color:#e8edf4;border-color:#2a3648}
html[data-theme=dark] #tpn-fb-cats button.sel{border-color:#e2b657;background:#2a2410}
html[data-theme=dark] #tpn-fb-status,html[data-theme=dark] #tpn-fb-panel .ctx{color:#93a1b5}
html[data-theme=dark] #tpn-fb-cancel{color:#93a1b5}

/* ---------- Glass wiring ----------
   In Glass mode the page ground and the .card/.panel surfaces wear
   the site's glass: a translucent dark fill whose alpha IS the
   Opacity setting (--tpn-glass-o, percent), over the Night blur —
   the same treatment as the site's Night cards. This block lives
   here only; no page's own styles are edited. */
html[data-theme="glass"]{background:#070a14}
html[data-theme="glass"] body{background:rgba(16,20,34,calc(var(--tpn-glass-o,63)/100));color:#eef1f8}
html[data-theme="glass"] .card,html[data-theme="glass"] .panel{background:rgba(16,20,34,calc(var(--tpn-glass-o,63)/100));-webkit-backdrop-filter:blur(16px) saturate(150%);backdrop-filter:blur(16px) saturate(150%);border:1px solid rgba(255,255,255,.14);color:#f0f2f5}
/* Never layer glass: while the Settings sheet is open it covers the
   page, and the covered glass goes quiet until the sheet closes. */
html[data-theme="glass"].tpn-settings-open .card,html[data-theme="glass"].tpn-settings-open .panel{-webkit-backdrop-filter:none;backdrop-filter:none}
