/* ==========================================================================
   FiveMRides Weapon Studio ([fivem_weapon_studio]) - scoped to .fwp
   Shared Studio components (top bar, steps, buttons, cards, rail, fields,
   viewport frame, toasts) come from fmr-studio-ui.css (.fsu-*), loaded first:
   same look as the Livery, Chain and Tattoo Studios. This sheet keeps the
   Weapon Studio layout: the weapon picker (step 1) and the Livery paint step
   (rail | sheets + layers | sheet editor | 3D preview, brush, parts, export).
   ========================================================================== */

html.fwp-lock, html.fwp-lock body { overflow: hidden !important; }

.fwp {
    position: fixed; inset: 0; z-index: 2147483000; height: 100vh; height: 100dvh;
    color: var(--fsu-text);
    font: 500 13px/1.45 var(--fsu-font);
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(168, 85, 247, .10), transparent 60%),
        radial-gradient(900px 500px at 100% 120%, rgba(0, 240, 255, .06), transparent 60%),
        var(--fsu-bg);
    isolation: isolate;
    -webkit-font-smoothing: antialiased;
    text-align: left;
}
.fwp *, .fwp *::before, .fwp *::after { box-sizing: border-box; }
.fwp [hidden] { display: none !important; }
:where(.fwp) button, :where(.fwp) input, :where(.fwp) select { font: inherit; color: inherit; }
/* theme guards: the site skin styles bare buttons, headings and inputs */
.fwp button { text-transform: none; letter-spacing: normal; text-shadow: none; min-height: 0; min-width: 0; margin: 0; line-height: 1.2; }
.fwp button:focus { outline: none; }
.fwp button:focus-visible, .fwp [role=button]:focus-visible, .fwp .fwp-layer:focus-visible { outline: 2px solid rgba(0, 240, 255, .7); outline-offset: 2px; }
.fwp a { color: var(--fsu-cyan); }
.fwp a.fsu-btn { color: var(--fsu-text); text-decoration: none; }
.fwp a.fsu-btn-accent { color: #c9fbff; }
.fwp h1, .fwp h2, .fwp h3, .fwp h4 { margin: 0; color: var(--fsu-text); letter-spacing: 0; text-transform: none; }
.fwp p { margin: 0; }
.fwp code { font: 600 11px/1.4 var(--fsu-mono); color: #bff6ff; background: rgba(0, 240, 255, .06); padding: 1px 5px; border-radius: 5px; }
.fwp kbd { font: 600 9px/1 var(--fsu-mono); }
.fwp-inline-i { display: inline-block !important; width: 13px !important; height: 13px !important; vertical-align: -2px; color: var(--fsu-cyan); }

.fwp-app { height: 100%; display: flex; flex-direction: column; }

/* ------------------------------------------------------------------ top bar */
.fwp-top { gap: 10px; }
.fwp-steps { margin-left: 14px; }
.fwp-project { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--fsu-line); }
.fwp .fwp-name {
    width: min(240px, 20vw); height: 22px; padding: 0 6px; margin-left: -6px; border: 1px solid transparent; border-radius: 6px; background: transparent;
    color: var(--fsu-text); font: 700 14px/1 var(--fsu-display); letter-spacing: .01em; outline: none; box-shadow: none;
}
.fwp .fwp-name:hover { border-color: var(--fsu-line2); }
.fwp .fwp-name:focus { border-color: rgba(0, 240, 255, .55); background: var(--fsu-bg2); }
.fwp-save { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--fsu-muted); white-space: nowrap; }
.fwp-save i { width: 6px; height: 6px; border-radius: 50%; background: var(--fsu-warn); }
.fwp-save.is-saved i { background: var(--fsu-good); }
.fwp-save.is-saving i { background: var(--fsu-cyan); animation: fwp-pulse 1s infinite; }
.fwp-save.is-error i { background: var(--fsu-bad); }
.fwp-save.is-new i { background: var(--fsu-dim); }
.fwp-model { display: flex; align-items: baseline; gap: 7px; padding: 6px 11px; border-radius: 8px; background: rgba(255, 255, 255, .03); border: 1px solid var(--fsu-line); white-space: nowrap; }
.fwp-model small { color: var(--fsu-dim); font: 600 10px/1 var(--fsu-mono); text-transform: uppercase; letter-spacing: .08em; }
.fwp .fwp-model code { font: 600 12.5px/1 var(--fsu-mono); color: var(--fsu-cyan); background: none; padding: 0; }
.fwp-credits { text-decoration: none; }

/* ---------------------------------------------------------------- picker */
.fwp-pick { flex: 1; min-height: 0; overflow-y: auto; padding: 28px clamp(16px, 3.5vw, 48px) 48px; scrollbar-width: thin; scrollbar-color: #2a3448 transparent;
    background:
        radial-gradient(700px 380px at 85% 0%, rgba(255, 47, 158, .09), transparent 65%),
        radial-gradient(700px 420px at 5% 100%, rgba(0, 240, 255, .06), transparent 65%); }
.fwp-pick-inner { max-width: 1440px; margin: 0 auto; display: grid; gap: 18px; }
.fwp-pick-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); gap: 24px; align-items: end; }
.fwp .fwp-pick-title { font-size: clamp(30px, 3.6vw, 50px); margin-bottom: 10px; }
.fwp-pick-head .fsu-lead { font-size: 15px; max-width: 680px; }
.fwp-search { height: 44px; border-radius: 12px; }
.fwp .fwp-search input { font-size: 14px; }
.fwp-cats { display: flex; flex-wrap: wrap; gap: 6px; position: sticky; top: -28px; z-index: 2; padding: 10px 0; background: linear-gradient(180deg, var(--fsu-bg) 70%, transparent); }
.fwp-cats .fsu-chip { height: 30px; padding: 0 12px; font-size: 12.5px; }
.fwp-cats em { font-style: normal; color: var(--fsu-dim); margin-left: 3px; font: 600 10.5px var(--fsu-mono); }
.fwp-cats .is-on em { color: #ffd0e8; }
.fwp-subhead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fwp .fwp-subhead h2 { font: 700 13px/1 var(--fsu-display); letter-spacing: .16em; text-transform: uppercase; color: #c9d2e0; }
.fwp-subhead .fsu-btn { margin-left: auto; }
.fwp-grid { display: grid; gap: 26px; }
.fwp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.fwp .fwp-wcard {
    box-shadow: none; display: grid; grid-template-rows: auto auto auto 1fr; gap: 4px; padding: 10px 10px 11px; border-radius: var(--fsu-r); text-align: left; cursor: pointer;
    border: 1px solid var(--fsu-line); background: var(--fsu-card-bg); transition: transform .18s var(--fsu-ease), border-color .18s, box-shadow .18s;
}
.fwp .fwp-wcard:hover, .fwp .fwp-wcard:focus-visible { transform: translateY(-3px); border-color: rgba(255, 47, 158, .55); box-shadow: 0 14px 34px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 47, 158, .18); }
.fwp-wthumb {
    position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; display: grid; place-items: center; margin-bottom: 5px; color: var(--fsu-dim);
    background: radial-gradient(ellipse 70% 70% at 50% 60%, rgba(120, 70, 220, .22), transparent 70%), linear-gradient(180deg, #0f1320, #090b12);
}
.fwp-wthumb img { width: 92%; height: 92%; object-fit: contain; display: block; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55)); transition: transform .25s var(--fsu-ease); }
.fwp-wcard:hover .fwp-wthumb img { transform: scale(1.05); }
.fwp-wthumb .fsu-i { width: 34px; height: 34px; }
.fwp-wname { font: 700 15px/1.15 var(--fsu-display); color: var(--fsu-text); }
.fwp .fwp-wkey { justify-self: start; font-size: 10.5px; color: var(--fsu-muted); background: rgba(255, 255, 255, .04); }
.fwp-wmeta { display: flex; flex-wrap: wrap; gap: 4px; align-self: end; margin-top: 3px; }
.fwp-wmeta em { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--fsu-muted); padding: 2px 7px; border-radius: 99px; border: 1px solid var(--fsu-line2); }
.fwp-wmeta em + em { color: #d8c2ff; border-color: rgba(168, 85, 247, .45); }
.fwp-att-hint { margin-top: -10px; }
.fwp .fwp-linkbtn { box-shadow: none; padding: 0; border: 0; background: none; color: var(--fsu-cyan); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.fwp-nolib { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 60px 20px; border-radius: 18px; border: 1px dashed var(--fsu-line2); color: var(--fsu-muted); }
.fwp-nolib .fsu-i { width: 30px; height: 30px; color: var(--fsu-warn); }
.fwp-nolib b { color: var(--fsu-text); font-size: 15px; }
.fwp-recent-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.fwp .fwp-recent-card { box-shadow: none; display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 12px; border: 1px solid rgba(0, 240, 255, .25); background: linear-gradient(90deg, rgba(0, 240, 255, .07), rgba(168, 85, 247, .05)); cursor: pointer; text-align: left; transition: border-color .15s, transform .15s; }
.fwp .fwp-recent-card:hover { border-color: rgba(0, 240, 255, .6); transform: translateY(-1px); }
.fwp-recent-thumb { width: 60px; height: 46px; flex: none; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #0b0e17; color: var(--fsu-dim); }
.fwp-recent-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fwp-recent-text { display: grid; gap: 2px; min-width: 0; }
.fwp-recent-text b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fwp-recent-text small { color: var(--fsu-dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------- paint step */
.fwp-paint {
    flex: 1; min-height: 0; display: grid; gap: 10px; padding: 10px;
    grid-template-columns: 54px clamp(236px, 16vw, 290px) minmax(0, 1fr) clamp(290px, 21vw, 370px);
}
.fwp-left, .fwp-right, .fwp-work { min-height: 0; }
.fwp-rail-color { position: relative; width: 34px; height: 34px; flex: none; cursor: pointer; }
.fwp-rail-color input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.fwp-rail-color span { display: block; width: 100%; height: 100%; border-radius: 10px; background: #ff2f9e; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85), 0 0 0 1px rgba(0, 0, 0, .6), 0 4px 12px rgba(0, 0, 0, .4); }

/* sheets */
.fwp-sheettabs { flex: none; grid-auto-rows: max-content; display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; max-height: 220px; overflow-y: auto; scrollbar-width: thin; }
.fwp .fwp-sheettab { box-shadow: none; display: grid; gap: 4px; padding: 5px; border-radius: 10px; border: 1px solid var(--fsu-line); background: var(--fsu-bg2); cursor: pointer; transition: all .15s; min-width: 0; }
.fwp-sheettab canvas { width: 100%; aspect-ratio: 1; border-radius: 6px; display: block; background: repeating-conic-gradient(#1a2030 0 25%, #121722 0 50%) 0 0 / 10px 10px; }
.fwp-sheettab span { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--fsu-muted); min-width: 0; text-align: left; }
.fwp-sheettab em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; font-family: var(--fsu-mono); }
.fwp-live { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--fsu-good); box-shadow: 0 0 8px rgba(52, 211, 153, .8); }
.fwp-edited { color: var(--fsu-pink); display: grid; }
.fwp-edited .fsu-i { width: 11px; height: 11px; }
.fwp .fwp-sheettab:hover { border-color: var(--fsu-line2); }
.fwp .fwp-sheettab.is-on { border-color: rgba(255, 47, 158, .6); background: rgba(255, 47, 158, .07); box-shadow: 0 0 14px rgba(255, 47, 158, .2); }
.fwp-sheettab.is-on span { color: #fff; }

/* layers */
.fwp-layers-card { min-height: 300px; }
.fwp-layerlist { flex: 1; min-height: 90px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; scrollbar-color: #2a3448 transparent; }
.fwp-layer {
    display: flex; align-items: center; gap: 7px; padding: 5px 6px 5px 3px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
    background: rgba(255, 255, 255, .02); transition: background .12s, border-color .12s; position: relative; flex: none;
}
.fwp-layer:hover { background: rgba(255, 255, 255, .05); }
.fwp-layer.is-on { border-color: rgba(0, 240, 255, .45); background: linear-gradient(90deg, rgba(0, 240, 255, .10), rgba(0, 240, 255, .03)); }
.fwp-layer.is-hidden .fwp-lthumb, .fwp-layer.is-hidden .fwp-lname { opacity: .4; }
.fwp-layer.is-drag { opacity: .4; }
.fwp-layer.is-dropbefore::before, .fwp-layer.is-dropafter::after { content: ""; position: absolute; left: 8px; right: 8px; height: 2px; border-radius: 2px; background: var(--fsu-pink); box-shadow: 0 0 8px var(--fsu-pink); }
.fwp-layer.is-dropbefore::before { top: -3px; }
.fwp-layer.is-dropafter::after { bottom: -3px; }
.fwp-layer-base { margin-top: 4px; border-top: 1px dashed var(--fsu-line2); border-radius: 0 0 10px 10px; }
.fwp-lock { color: var(--fsu-dim); cursor: default; }
.fwp-lthumb { width: 40px; height: 40px; border-radius: 7px; flex: none; border: 1px solid var(--fsu-line); background: repeating-conic-gradient(#1a2030 0 25%, #121722 0 50%) 0 0 / 10px 10px; }
.fwp-lname { flex: 1; min-width: 0; display: grid; gap: 1px; }
.fwp-lname b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fwp-lname small { font-size: 10.5px; color: var(--fsu-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fwp .fwp-rename { width: 100%; height: 26px; padding: 0 6px; font-size: 12.5px; }
.fwp-layerprops { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--fsu-line); }
.fwp-propsrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.fwp-btnrow-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.fwp-btnrow-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fwp-btnrow-4 .fsu-btn { padding: 0 4px; font-size: 11px; gap: 3px; min-width: 0; }
.fwp-btnrow-4 .fsu-btn .fsu-i { width: 13px; height: 13px; }
.fwp .fwp-danger:not(:disabled):hover { color: #ffb4b4; background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .4); }

/* fields + sliders (Livery look) */
.fwp-field { display: grid; gap: 5px; min-width: 0; }
.fwp-field > span { color: var(--fsu-muted); font-size: 11.5px; font-weight: 600; }
.fwp select, .fwp input[type=text], .fwp input[type=search], .fwp input[type=number] {
    width: 100%; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--fsu-line2);
    background: var(--fsu-bg2); color: var(--fsu-text); outline: none; font-size: 12.5px; box-shadow: none; margin: 0;
}
.fwp .fsu-search input { border: 0; height: 100%; padding: 0; background: transparent; }
.fwp select { padding-right: 26px; cursor: pointer; appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238d98ab' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 9px center; }
.fwp select option { background: #0e121b; color: #e8edf5; }
.fwp select:focus, .fwp input[type=text]:focus, .fwp input[type=number]:focus { border-color: rgba(0, 240, 255, .55); box-shadow: 0 0 0 3px rgba(0, 240, 255, .1); }
.fwp input.is-bad { border-color: rgba(248, 113, 113, .7); }
.fwp-slider { display: grid; gap: 4px; }
.fwp-slider-top { display: flex; justify-content: space-between; align-items: baseline; }
.fwp-slider-top span { color: var(--fsu-muted); font-size: 12px; }
.fwp-slider-top output { font: 600 11.5px/1 var(--fsu-mono); color: var(--fsu-text); }
.fwp input[type=range] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; cursor: pointer; margin: 0; padding: 0; border: 0; }
.fwp input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--fsu-pink), var(--fsu-purple) var(--p), rgba(255, 255, 255, .09) var(--p)); }
.fwp input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--fsu-pink), var(--fsu-purple) var(--p), rgba(255, 255, 255, .09) var(--p)); }
.fwp input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; margin-top: -5.5px; background: #fff; border: 0; box-shadow: 0 0 0 3px rgba(255, 47, 158, .35), 0 2px 6px rgba(0, 0, 0, .5); transition: transform .12s; }
.fwp input[type=range]::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 3px rgba(255, 47, 158, .35); }
.fwp input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18); }
.fwp input[type=range]:focus-visible { outline: none; }
.fwp input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(0, 240, 255, .5); }

/* ------------------------------------------------------------ sheet editor */
.fwp-work { background: #090b12; }
.fwp-main-slot, .fwp-preview-slot { position: relative; }
.fwp-main-slot { position: absolute; inset: 0; }
.fwp-sheet-bg { background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .025) 1px, transparent 1.5px) 0 0 / 22px 22px,
    radial-gradient(ellipse 80% 70% at 50% 45%, #0f1320, #080a10); }
.fwp-sheet-view, .fwp-sheet-over { position: absolute; inset: 0; display: block; }
.fwp-sheet-over { outline: none; touch-action: none; cursor: crosshair; }
.fwp-paint[data-tool="pan"] .fwp-sheet-over { cursor: grab; }
.fwp-paint[data-tool="picker"] .fwp-sheet-over, .fwp-paint[data-tool="fill"] .fwp-sheet-over { cursor: cell; }
.fwp-paint[data-tool="part"] .fwp-sheet-over { cursor: pointer; }
.fwp-paint[data-tool="move"] .fwp-sheet-over { cursor: move; }
.fwp-paint[data-tool="brush"] .fwp-sheet-over, .fwp-paint[data-tool="eraser"] .fwp-sheet-over { cursor: none; }
.fwp-gl { display: block; width: 100%; height: 100%; outline: none; touch-action: none; }
.fwp-floatbar {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; align-items: center; max-width: calc(100% - 24px);
    padding: 5px; border-radius: 13px; background: rgba(10, 13, 21, .82); border: 1px solid var(--fsu-line2); backdrop-filter: blur(12px);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .45); z-index: 2;
}
.fwp-group { display: flex; align-items: center; gap: 2px; padding: 0 3px; }
.fwp-group + .fwp-group { border-left: 1px solid var(--fsu-line); padding-left: 7px; }
.fwp-floatbar .fsu-iconbtn { width: 32px; height: 32px; }
.fwp-floatbar .fsu-iconbtn .fsu-i { width: 17px; height: 17px; }
.fwp .fwp-zoomval { min-width: 54px; height: 30px; padding: 0 4px; box-shadow: none; border: 0; background: transparent; color: var(--fsu-text); font: 600 12px/1 var(--fsu-mono); cursor: pointer; border-radius: 7px; }
.fwp .fwp-zoomval:hover { background: rgba(255, 255, 255, .06); }
.fwp-wire-op { width: 76px !important; }
.fwp-xbar {
    position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 24px);
    padding: 6px 6px 6px 12px; border-radius: 12px; background: rgba(10, 13, 21, .9); border: 1px solid rgba(0, 240, 255, .4); backdrop-filter: blur(10px); box-shadow: var(--fsu-shadow);
}
.fwp-xbar > span { display: flex; align-items: center; gap: 7px; color: #cfd7e3; font-size: 12px; }
.fwp-xbar > span .fsu-i { width: 15px; height: 15px; color: var(--fsu-cyan); }
.fwp-status {
    position: absolute; left: 12px; bottom: 10px; display: flex; gap: 12px; padding: 5px 10px; border-radius: 8px; background: rgba(8, 10, 17, .72);
    border: 1px solid var(--fsu-line); font: 600 11px/1.2 var(--fsu-mono); color: var(--fsu-muted); pointer-events: none; z-index: 2;
}
.fwp-status span:first-child { color: var(--fsu-cyan); }
.fwp-dropzone { position: absolute; inset: 10px; border-radius: 14px; border: 2px dashed var(--fsu-cyan); background: rgba(0, 240, 255, .08); display: grid; place-items: center; z-index: 4; pointer-events: none; backdrop-filter: blur(2px); }
.fwp-dropzone div { display: grid; justify-items: center; gap: 10px; color: #c9fbff; font-size: 16px; }
.fwp-dropzone .fsu-i { width: 40px; height: 40px; }
.fwp-loading { z-index: 5; }
.fwp-loading .fsu-i { width: 28px; height: 28px; color: var(--fsu-warn); }
.fwp-loading span { max-width: 360px; text-align: center; }

/* swapped: the 3D model big in the middle, the sheet small on the right */
.fwp-paint.is-swapped .fwp-floatbar .fwp-zoom, .fwp-paint.is-swapped .fwp-floatbar .fwp-wiregroup, .fwp-paint.is-swapped .fwp-status { display: none; }
.fwp-main-slot .fwp-gl { position: absolute; inset: 0; }

/* -------------------------------------------------------------- right cards */
.fwp-preview-card { padding: 11px; gap: 8px; }
.fwp-preview-card .fsu-card-head { gap: 6px; }
.fwp-preview-card .fsu-card-head h3 { margin-right: auto; }
.fwp-preview-slot {
    height: clamp(190px, 30vh, 380px); flex: none; border-radius: 12px; overflow: hidden; border: 1px solid var(--fsu-line);
    background:
        radial-gradient(ellipse 75% 60% at 50% 72%, rgba(120, 70, 220, .22), transparent 70%),
        linear-gradient(180deg, #0b0e17, #07090f);
}
.fwp-preview-slot.fwp-sheet-bg { background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .025) 1px, transparent 1.5px) 0 0 / 22px 22px,
    radial-gradient(ellipse 80% 70% at 50% 45%, #0f1320, #080a10); }
.fwp-paint[data-tool="brush"] .fwp-preview-slot, .fwp-paint[data-tool="eraser"] .fwp-preview-slot, .fwp-paint.is-swapped[data-tool="brush"] .fwp-main-slot, .fwp-paint.is-swapped[data-tool="eraser"] .fwp-main-slot { box-shadow: inset 0 0 0 2px rgba(255, 47, 158, .45); }
.fwp-paint[data-tool="part"] .fwp-preview-slot, .fwp-paint.is-swapped[data-tool="part"] .fwp-main-slot { box-shadow: inset 0 0 0 2px rgba(0, 240, 255, .55); }
.fwp-paint.is-swapped .fwp-preview-slot { box-shadow: none; }
.fwp-preview-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fwp-preview-note { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fwp-no3d { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; padding: 18px; text-align: center; color: var(--fsu-muted); }
.fwp-no3d .fsu-i { color: var(--fsu-warn); width: 26px; height: 26px; }

.fwp-colorrow { display: flex; gap: 8px; align-items: center; }
.fwp-bigswatch { position: relative; width: 44px; height: 34px; border-radius: 9px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15), 0 4px 14px rgba(0, 0, 0, .35); cursor: pointer; flex: none; }
.fwp-bigswatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.fwp .fwp-hex { flex: 1; min-width: 0; height: 34px; font: 600 13px/1 var(--fsu-mono); text-transform: uppercase; }
.fwp-swatches { display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px; }
.fwp .fwp-swatch { position: relative; width: 100%; aspect-ratio: 1; min-width: 0; border-radius: 7px; border: 0; cursor: pointer; padding: 0;
    background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .4), transparent 45%), var(--c);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 2px 6px rgba(0, 0, 0, .4); transition: transform .15s var(--fsu-ease), box-shadow .15s; }
.fwp .fwp-swatch:hover { transform: scale(1.12); }
.fwp .fwp-swatch.is-on { box-shadow: 0 0 0 2px var(--fsu-bg), 0 0 0 4px var(--fsu-cyan), 0 0 14px rgba(0, 240, 255, .5); }

.fwp-partlist { display: flex; flex-direction: column; gap: 1px; max-height: 210px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; }
.fwp-part { min-height: 32px; }
.fwp-part.is-on { background: rgba(0, 240, 255, .06); }
.fwp-part.is-lock .fsu-row-name { color: var(--fsu-dim); text-decoration: line-through; }
.fwp-part .fsu-row-name { font-family: var(--fsu-font); font-size: 12.5px; }
.fwp-tag { font: 600 9.5px/1.3 var(--fsu-mono); padding: 1px 5px; border-radius: 4px; color: var(--fsu-purple); border: 1px solid rgba(168, 85, 247, .4); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fwp-part .fsu-iconbtn.is-on { color: var(--fsu-warn); background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .35); }

.fwp-price { font-size: 13px; color: #cdd5e2; }
.fwp-price b { color: #fff; font-weight: 800; }
.fwp-warn { color: #f5d38a !important; }
.fwp-terms.is-shake { animation: fsu-shake .45s; }
.fwp-export-card { border-color: rgba(255, 47, 158, .28); }
.fwp-export-card.is-flash { box-shadow: 0 0 0 2px rgba(255, 47, 158, .6), 0 0 40px rgba(255, 47, 158, .25); }
.fwp-progress { height: 6px; border-radius: 99px; background: var(--fsu-panel3); overflow: hidden; }
.fwp-progress i { display: block; height: 100%; background: var(--fsu-grad); transition: width .4s var(--fsu-ease); }
.fwp-done, .fwp-err { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; padding: 9px 10px; border-radius: 10px; }
.fwp-done { color: #c9f7e3; background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .35); }
.fwp-done .fsu-i { color: var(--fsu-good); }
.fwp-err { color: #ffd2d2; background: rgba(248, 113, 113, .08); border: 1px solid rgba(248, 113, 113, .4); }
.fwp-err .fsu-i { color: var(--fsu-bad); }

/* ------------------------------------------------------------------- dialog */
.fwp-modal { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(3, 5, 9, .72); backdrop-filter: blur(4px); padding: 16px; }
.fwp-dialog {
    width: min(660px, 100%); max-height: min(82vh, 760px); display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px;
    background: linear-gradient(180deg, #141a27, #0d1119); border: 1px solid var(--fsu-line2); box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 47, 158, .08);
}
.fwp-dialog-sm { width: min(460px, 100%); }
.fwp-dialog-lead { color: var(--fsu-muted); }
.fwp-dialog-foot { display: flex; justify-content: flex-end; gap: 8px; }
.fwp-dialog-body { min-height: 0; overflow-y: auto; display: grid; gap: 10px; scrollbar-width: thin; }
.fwp-dialog-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fwp-projects { display: grid; gap: 6px; }
.fwp-proj { display: flex; align-items: center; gap: 10px; padding: 7px; border-radius: 11px; border: 1px solid var(--fsu-line); background: rgba(255, 255, 255, .015); }
.fwp-proj.is-on { border-color: rgba(255, 47, 158, .45); }
.fwp-proj-thumb { width: 64px; height: 48px; flex: none; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: #0b0e17; color: var(--fsu-dim); }
.fwp-proj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fwp-proj-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fwp-proj-text b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fwp-proj-text small { color: var(--fsu-dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fwp-revs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 8px 8px 82px; }
.fwp-revs em { font-style: normal; color: var(--fsu-dim); margin-left: 4px; }

@keyframes fwp-pulse { 50% { opacity: .35; } }

/* ------------------------------------------------- wave 2: create panel */
.fwp-pick-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fwp-pick-feats span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border-radius: 999px; border: 1px solid var(--fsu-line2); background: rgba(255, 255, 255, .025); color: #cfd7e3; font-size: 12.5px; font-weight: 600; }
.fwp-pick-feats .fsu-i { width: 15px; height: 15px; color: var(--fsu-pink); }
.fwp-pick-feats span:nth-child(2) .fsu-i { color: var(--fsu-cyan); }
.fwp-pick-feats span:nth-child(3) .fsu-i { color: #f5d38a; }
.fwp-pick-feats span:nth-child(4) .fsu-i { color: var(--fsu-purple); }

.fwp-create-card { padding: 0; gap: 0; overflow: hidden; border-color: rgba(168, 85, 247, .28); }
.fwp-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; padding: 5px; border-bottom: 1px solid var(--fsu-line); background: rgba(6, 8, 14, .55); }
.fwp .fwp-tab {
    box-shadow: none; min-width: 0; display: grid; justify-items: center; gap: 3px; padding: 6px 1px 5px; border: 1px solid transparent; border-radius: 9px;
    background: transparent; color: var(--fsu-muted); cursor: pointer; font-size: 9.5px; font-weight: 700; letter-spacing: -.01em; transition: all .15s;
}
.fwp .fwp-tab span { max-width: 100%; overflow: hidden; text-overflow: clip; white-space: nowrap; }
.fwp .fwp-tab .fsu-i { width: 17px; height: 17px; }
.fwp .fwp-tab:hover { color: var(--fsu-text); background: rgba(255, 255, 255, .04); }
.fwp .fwp-tab.is-on { color: #fff; border-color: rgba(255, 47, 158, .45); background: linear-gradient(180deg, rgba(255, 47, 158, .16), rgba(168, 85, 247, .08)); box-shadow: 0 0 16px rgba(255, 47, 158, .16); }
.fwp .fwp-tab.is-on .fsu-i { color: var(--fsu-pink); }
.fwp .fwp-tab[data-tab="ai"] .fsu-i { color: #d8c2ff; }
.fwp-tabbody { display: flex; flex-direction: column; gap: 10px; padding: 12px 13px 13px; }
.fwp-tabhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fwp .fwp-tabhead h3 { font: 700 12px/1 var(--fsu-display); letter-spacing: .16em; text-transform: uppercase; color: #c9d2e0; }
.fwp-mini { font-size: 11.5px; font-weight: 600; color: var(--fsu-muted); white-space: nowrap; }
.fwp-fieldrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fwp-fieldrow .fsu-note { font-size: 11px; }
.fwp-slots { display: flex; gap: 6px; }
.fwp-slot { position: relative; width: 30px; height: 30px; border-radius: 8px; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 3px 10px rgba(0, 0, 0, .4); transition: transform .12s; }
.fwp-slot:hover { transform: translateY(-1px); }
.fwp-slot input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.fwp-libgroup { display: grid; gap: 6px; }
.fwp-libgroup small { font: 700 10px/1 var(--fsu-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fsu-dim); }
.fwp-patgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.fwp .fwp-patchip, .fwp .fwp-finchip, .fwp .fwp-fontchip, .fwp .fwp-stchip {
    box-shadow: none; display: grid; justify-items: center; gap: 4px; padding: 4px; border-radius: 10px; border: 1px solid var(--fsu-line); background: var(--fsu-bg2);
    cursor: pointer; color: var(--fsu-muted); font-size: 10px; font-weight: 600; transition: all .15s; min-width: 0;
}
.fwp-patchip canvas { width: 100%; aspect-ratio: 1; border-radius: 7px; display: block; }
.fwp-patchip span, .fwp-finchip span, .fwp-fontchip span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fwp .fwp-patchip:hover, .fwp .fwp-finchip:hover, .fwp .fwp-fontchip:hover, .fwp .fwp-stchip:hover { border-color: var(--fsu-line2); color: var(--fsu-text); transform: translateY(-1px); }
.fwp .fwp-patchip.is-on, .fwp .fwp-finchip.is-on, .fwp .fwp-fontchip.is-on, .fwp .fwp-stchip.is-on { border-color: rgba(0, 240, 255, .6); color: #fff; background: rgba(0, 240, 255, .07); box-shadow: 0 0 0 1px rgba(0, 240, 255, .25), 0 0 14px rgba(0, 240, 255, .18); }
.fwp-fingrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.fwp-finchip canvas { width: 44px; height: 44px; display: block; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.fwp-fontgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fwp-fontchip b { font-size: 22px; line-height: 1.1; color: var(--fsu-text); font-weight: 400; }
.fwp .fwp-textarea { width: 100%; min-height: 54px; resize: vertical; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--fsu-line2); background: var(--fsu-bg2); color: var(--fsu-text); font: 600 14px/1.35 var(--fsu-font); outline: none; box-shadow: none; margin: 0; }
.fwp .fwp-textarea:focus { border-color: rgba(0, 240, 255, .55); box-shadow: 0 0 0 3px rgba(0, 240, 255, .1); }
.fwp-styleseg button { flex: 1; justify-content: center; }
.fwp-stcats { display: flex; flex-wrap: wrap; gap: 5px; }
.fwp-stcats .fsu-chip { height: 24px; padding: 0 9px; font-size: 11px; flex: none; }
.fwp-stgrid { flex: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); grid-auto-rows: max-content; align-content: start; gap: 6px; max-height: 236px; overflow-y: auto; padding: 1px; scrollbar-width: thin; scrollbar-color: #2a3448 transparent;
    background: repeating-conic-gradient(rgba(255, 255, 255, .025) 0 25%, transparent 0 50%) 0 0 / 12px 12px; border-radius: 10px; }
.fwp .fwp-stchip { aspect-ratio: 1; width: 100%; height: auto; min-height: 0; padding: 6px; overflow: hidden; place-items: center; background: rgba(14, 18, 27, .7); }
.fwp-stchip svg { width: 100%; height: 100%; max-width: 100%; max-height: 100%; display: block; overflow: hidden; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.fwp-target { display: flex; align-items: flex-start; gap: 7px; padding: 7px 9px; border-radius: 9px; background: rgba(0, 240, 255, .05); border: 1px solid rgba(0, 240, 255, .18); font-size: 11.5px; color: #cfe9ee; }
.fwp-target .fsu-i { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--fsu-cyan); }
.fwp-editing { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 9px; background: rgba(255, 47, 158, .07); border: 1px solid rgba(255, 47, 158, .3); font-size: 11.5px; color: #ffd4ea; }
.fwp-editing .fsu-i { width: 14px; height: 14px; flex: none; color: var(--fsu-pink); }
.fwp-editing span { flex: 1; min-width: 0; }
.fwp-editing .fwp-linkbtn { white-space: nowrap; font-size: 11.5px; }
.fwp-shine { font-size: 11.5px; }
.fwp-gentag { display: inline-flex; align-items: center; gap: 3px; font-style: normal; color: #d8c2ff; padding: 0 5px 0 3px; border-radius: 5px; background: rgba(168, 85, 247, .12); margin-right: 2px; }
.fwp-gentag .fsu-i { width: 10px; height: 10px; }
.fwp .fwp-merge { width: 100%; justify-content: center; }
.fwp-soon { font: 700 10px/1 var(--fsu-mono); letter-spacing: .12em; text-transform: uppercase; color: #d8c2ff; padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(168, 85, 247, .5); background: rgba(168, 85, 247, .1); }
.fwp-aisoon { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 18px 14px; border-radius: 12px; border: 1px dashed rgba(168, 85, 247, .45);
    background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(168, 85, 247, .16), transparent 70%), rgba(10, 13, 21, .5); }
.fwp-aisoon-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--fsu-grad); box-shadow: 0 8px 24px rgba(168, 85, 247, .35); }
.fwp-aisoon-ic .fsu-i { width: 24px; height: 24px; color: #fff; }
.fwp-aisoon b { font-size: 14px; color: #fff; }
.fwp-aisoon p { color: var(--fsu-muted); font-size: 12px; max-width: 280px; }
.fwp .fwp-aisoon-who { color: #d8c2ff; font-weight: 600; }
.fwp-aref { display: flex; align-items: center; gap: 8px; }
.fwp-aref img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; border: 1px solid var(--fsu-line2); }
.fwp-aref span { flex: 1; font-size: 12px; color: var(--fsu-muted); }
.fwp-bakebar { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; background: rgba(10, 13, 21, .9); border: 1px solid rgba(168, 85, 247, .5); font-size: 12px; color: #e3d4ff; box-shadow: var(--fsu-shadow); }
.fwp-bakebar .fsu-spinner { width: 14px; height: 14px; }
.fwp-paint[data-tool="text"] .fwp-sheet-over, .fwp-paint[data-tool="sticker"] .fwp-sheet-over { cursor: copy; }
.fwp-paint[data-tool="text"] .fwp-preview-slot, .fwp-paint[data-tool="sticker"] .fwp-preview-slot, .fwp-paint.is-swapped[data-tool="text"] .fwp-main-slot, .fwp-paint.is-swapped[data-tool="sticker"] .fwp-main-slot { box-shadow: inset 0 0 0 2px rgba(168, 85, 247, .6); }

/* export: modes, skin collection, result */
.fwp-modeseg button { flex: 1; justify-content: center; }
.fwp-modeseg .fsu-i { width: 14px; height: 14px; }
.fwp-skins { display: grid; gap: 5px; }
.fwp-skin { display: flex; align-items: center; gap: 7px; padding: 5px; border-radius: 11px; border: 1px solid var(--fsu-line); background: rgba(255, 255, 255, .02); position: relative; }
.fwp-skin-thumb { width: 54px; height: 40px; flex: none; border-radius: 7px; overflow: hidden; display: grid; place-items: center; background: #0b0e17; color: var(--fsu-dim); }
.fwp-skin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fwp-skin-no { position: absolute; left: 3px; top: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 6px; background: var(--fsu-grad); color: #fff; font: 700 10px/16px var(--fsu-mono); text-align: center; }
.fwp .fwp-skin-name { flex: 1; min-width: 0; height: 28px; font-weight: 600; }
.fwp-skin-acts { display: flex; gap: 1px; }
.fwp-skin-acts .fsu-iconbtn { width: 24px; height: 24px; }
.fwp-skin-acts .fsu-i { width: 13px; height: 13px; }
.fwp-skins-empty { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 10px; border: 1px dashed var(--fsu-line2); color: var(--fsu-muted); font-size: 12px; }
.fwp-skins-empty .fsu-i { width: 22px; height: 22px; flex: none; color: var(--fsu-purple); }
.fwp .fwp-addskin { border-style: dashed; }
.fwp-result { display: grid; gap: 4px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--fsu-line); background: rgba(255, 255, 255, .02); }
.fwp-result small { font: 700 10px/1.2 var(--fsu-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fsu-dim); }
.fwp-result-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.fwp-result-row code { font-size: 10.5px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fwp-names { display: grid; gap: 4px; padding: 8px 10px; border-radius: 10px; border: 1px dashed rgba(0, 240, 255, .28); background: rgba(0, 240, 255, .03); }
.fwp-names small { font: 700 10px/1.2 var(--fsu-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fsu-dim); }
.fwp-install { color: #cfd7e3 !important; }
.fwp-aiprog { display: grid; gap: 5px; }
.fwp-aitime { font-size: 11.5px; color: #d8c2ff; font-variant-numeric: tabular-nums; }
.fwp-howto { border-radius: 10px; border: 1px solid var(--fsu-line); background: rgba(0, 0, 0, .25); }
.fwp-howto summary { display: flex; align-items: center; gap: 7px; padding: 8px 10px; cursor: pointer; font-weight: 700; font-size: 12px; color: #cfd7e3; list-style: none; }
.fwp-howto summary .fsu-i { width: 14px; height: 14px; color: var(--fsu-cyan); }
.fwp-howto > div { display: grid; gap: 4px; padding: 0 10px 10px; font-size: 11.5px; color: var(--fsu-muted); }
.fwp-howto code { display: block; white-space: pre-wrap; word-break: break-word; font-size: 10.5px; padding: 4px 6px; }

/* shop renders */
.fwp-dialog-wide { width: min(980px, 100%); }
.fwp-renders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fwp-renders figure { margin: 0; display: grid; gap: 6px; padding: 6px; border-radius: 12px; border: 1px solid var(--fsu-line); background: repeating-conic-gradient(#161b27 0 25%, #10141e 0 50%) 0 0 / 16px 16px; }
.fwp-renders img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.fwp-renders figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 600; background: rgba(10, 13, 21, .85); border-radius: 8px; padding: 5px 6px; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1500px) {
    .fwp-model { display: none !important; }
}
@media (max-width: 1280px) {
    .fwp-paint { grid-template-columns: 50px 228px minmax(0, 1fr) 286px; gap: 8px; padding: 8px; }
    .fwp-project { display: none !important; }
    .fwp-wire-op { width: 56px !important; }
}
@media (max-height: 820px) {
    .fwp-preview-slot { height: clamp(170px, 28vh, 300px); }
    .fwp-lthumb { width: 34px; height: 34px; }
}
@media (max-width: 1100px) {
    .fwp { overflow-y: auto; }
    .fwp-app { height: auto; min-height: 100%; }
    .fwp-pick { overflow: visible; }
    .fwp-pick-head { grid-template-columns: 1fr; gap: 14px; }
    .fwp-paint { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
    .fwp-work { order: -2; height: 62vh; min-height: 360px; }
    .fwp-rail { order: -1; }
    .fwp-left .fwp-layers-card { min-height: 0; }
    .fwp-layerlist { max-height: 300px; }
    .fwp-sheettabs { grid-template-columns: repeat(auto-fill, minmax(64px, 84px)); }
}
@media (max-width: 640px) {
    .fwp-top .fsu-btn span { display: none; }
    .fwp-top { gap: 4px; }
    .fwp-top .fsu-brand { display: none; }
    .fwp-steps { margin-left: 2px; }
    .fwp-rail .fsu-rail-sep { display: none; }
    .fwp-rail { gap: 2px; padding: 4px; }
    .fwp-rail .fsu-tool { width: 38px; height: 38px; }
    .fwp-recent-card:nth-child(n+3) { display: none; }
    .fwp-pick { padding: 18px 12px 32px; }
    .fwp .fwp-pick-title { font-size: 30px; }
    .fwp-pick-head .fsu-lead { font-size: 13.5px; }
    .fwp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .fwp-wname { font-size: 13.5px; }
    .fwp .fwp-wkey { font-size: 9.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .fwp-paint { padding: 6px; gap: 6px; }
    .fwp-work { height: 56vh; min-height: 320px; }
    .fwp-floatbar { top: 8px; padding: 3px; gap: 2px; flex-wrap: wrap; justify-content: center; }
    .fwp-floatbar .fsu-iconbtn { width: 30px; height: 30px; }
    .fwp-wiregroup .fwp-wire-op { display: none; }
    .fwp-group { padding: 0 1px; }
    .fwp-group + .fwp-group { padding-left: 3px; }
    .fwp-status { display: none; }
    .fwp-xbar > span { display: none; }
    .fwp-recent-row { grid-template-columns: 1fr; }
    .fwp-swatches { grid-template-columns: repeat(9, minmax(0, 1fr)); }
    .fwp-tab span { font-size: 9.5px; }
    .fwp .fwp-tab { min-width: 44px; padding: 5px 4px; }
    .fwp-renders { grid-template-columns: 1fr; }
    .fwp-pick-feats { gap: 6px; }
    .fwp-pick-feats span { font-size: 11.5px; padding: 5px 9px 5px 7px; }
    .fwp-bakebar { top: 84px; }
}

/* ==========================================================================
   Wave 3b: the 3D showroom (attachments, light, looks, compare, skins side by
   side, stats, AR), AI on the whole weapon and the ready-made skins tab.
   ========================================================================== */
.fwp-tabs.has-ready { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.fwp .fwp-tab[data-tab="ready"] .fsu-i { color: #f5d38a; }

/* backgrounds behind the transparent 3D canvas */
.fwp-gl[data-bg="stage"] { background: radial-gradient(ellipse 75% 60% at 50% 72%, rgba(120, 70, 220, .24), transparent 70%), linear-gradient(180deg, #0b0e17, #07090f); }
.fwp-gl[data-bg="sky"] { background: radial-gradient(ellipse 90% 55% at 50% 95%, rgba(255, 236, 205, .55), transparent 70%), linear-gradient(180deg, #5c9be6 0%, #a9cdf3 55%, #e9eef2 100%); }
.fwp-gl[data-bg="night"] { background: radial-gradient(ellipse 60% 45% at 75% 18%, rgba(255, 178, 102, .16), transparent 70%), radial-gradient(ellipse 80% 60% at 50% 85%, rgba(70, 100, 190, .2), transparent 70%), linear-gradient(180deg, #04060c, #0a1020); }
.fwp-gl[data-bg="neon"] { background:
    linear-gradient(180deg, transparent 58%, rgba(255, 47, 158, .18) 58.4%, transparent 59%),
    repeating-linear-gradient(90deg, rgba(0, 229, 255, .09) 0 1px, transparent 1px 44px) 0 58% / 100% 42% no-repeat,
    radial-gradient(ellipse 70% 45% at 50% 58%, rgba(255, 47, 158, .32), transparent 70%),
    linear-gradient(180deg, #12051f 0%, #1c0a33 55%, #07020d 100%); }
.fwp-gl[data-bg="plain"] { background: radial-gradient(ellipse 70% 60% at 50% 45%, #3a3f48, #23262c); }
.fwp-gl[data-bg="light"] { background: radial-gradient(ellipse 80% 70% at 50% 40%, #ffffff, #dfe3e8); }

/* overlay that follows the 3D view (small preview or big view) */
.fwp-stage-ui { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.fwp-stage-ui > * { pointer-events: auto; }
.fwp-stage-ui > .fwp-skinlabels { pointer-events: none; }
.fwp-showbar {
    position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px; border-radius: 11px;
    background: rgba(10, 13, 21, .78); border: 1px solid var(--fsu-line2); backdrop-filter: blur(10px); box-shadow: 0 8px 26px rgba(0, 0, 0, .4); max-width: calc(100% - 12px);
}
.fwp .fwp-sb { box-shadow: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 30px; height: 28px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #c3cbd8; cursor: pointer; transition: all .15s; flex: none; }
.fwp .fwp-sb .fsu-i { width: 16px; height: 16px; }
.fwp .fwp-sb:hover:not(:disabled) { color: #fff; background: rgba(255, 255, 255, .07); }
.fwp .fwp-sb.is-on { color: #fff; border-color: rgba(255, 47, 158, .5); background: linear-gradient(120deg, rgba(255, 47, 158, .28), rgba(168, 85, 247, .22)); }
.fwp .fwp-sb:disabled { opacity: .35; cursor: default; }
.fwp .fwp-sb-ar { width: auto; padding: 0 8px; color: #c9fbff; border-color: rgba(0, 240, 255, .45); font: 700 11px/1 var(--fsu-mono); }
.fwp-stage-ui.is-big .fwp-showbar { bottom: 14px; padding: 4px; gap: 3px; border-radius: 13px; }
.fwp-stage-ui.is-big .fwp-sb { width: 36px; height: 34px; }
.fwp-stage-ui.is-big .fwp-sb .fsu-i { width: 18px; height: 18px; }
.fwp-shownote { position: absolute; left: 10px; top: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(10, 13, 21, .78); border: 1px solid rgba(168, 85, 247, .45); color: #e3d4ff; font-size: 11px; font-weight: 600; pointer-events: none !important; }
.fwp-stage-ui.is-big .fwp-shownote { top: 62px; left: 14px; }

/* light and background popover */
.fwp-lightpop {
    position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); width: min(300px, calc(100% - 12px)); max-height: calc(100% - 56px); overflow-y: auto; display: grid; gap: 8px; padding: 10px;
    border-radius: 13px; background: rgba(12, 15, 24, .94); border: 1px solid var(--fsu-line2); box-shadow: var(--fsu-shadow); backdrop-filter: blur(12px); scrollbar-width: thin;
}
.fwp-stage-ui.is-big .fwp-lightpop { bottom: 62px; }
.fwp-pophead { display: flex; align-items: center; justify-content: space-between; }
.fwp-pophead b { font: 700 11px/1 var(--fsu-display); letter-spacing: .14em; text-transform: uppercase; color: #c9d2e0; }
.fwp-lightgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.fwp .fwp-lightchip { box-shadow: none; display: grid; justify-items: center; gap: 4px; padding: 5px 2px; border-radius: 9px; border: 1px solid var(--fsu-line); background: var(--fsu-bg2); color: var(--fsu-muted); cursor: pointer; font-size: 10.5px; font-weight: 600; min-width: 0; }
.fwp-lightchip i { width: 30px; height: 30px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.fwp-lightchip i[data-lightprev="studio"] { background: radial-gradient(circle at 35% 30%, #fff, #8b93a3 45%, #2a2f3a 75%); }
.fwp-lightchip i[data-lightprev="day"] { background: radial-gradient(circle at 30% 25%, #fff8e0, #ffd27a 25%, #78aeea 60%, #3a6db0); }
.fwp-lightchip i[data-lightprev="night"] { background: radial-gradient(circle at 70% 25%, #ffc285, #4a5a8a 40%, #0b1020 75%); }
.fwp-lightchip i[data-lightprev="neon"] { background: radial-gradient(circle at 25% 30%, #ff2f9e, transparent 45%), radial-gradient(circle at 75% 70%, #00e5ff, transparent 45%), #160822; }
.fwp .fwp-lightchip.is-on, .fwp .fwp-bgchip.is-on { border-color: rgba(0, 240, 255, .6); color: #fff; box-shadow: 0 0 0 1px rgba(0, 240, 255, .25); }
.fwp-bggrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.fwp .fwp-bgchip { box-shadow: none; padding: 3px; border-radius: 9px; border: 1px solid var(--fsu-line); background: var(--fsu-bg2); cursor: pointer; min-width: 0; }
.fwp-bgchip i { display: block; aspect-ratio: 1; border-radius: 6px; }
.fwp-bgchip i[data-bgprev="stage"] { background: radial-gradient(ellipse at 50% 80%, rgba(120, 70, 220, .55), #0b0e17 70%); }
.fwp-bgchip i[data-bgprev="sky"] { background: linear-gradient(180deg, #5c9be6, #e9eef2); }
.fwp-bgchip i[data-bgprev="night"] { background: linear-gradient(180deg, #04060c, #1a2440); }
.fwp-bgchip i[data-bgprev="neon"] { background: repeating-linear-gradient(90deg, rgba(0, 229, 255, .35) 0 1px, transparent 1px 6px) 0 60% / 100% 40% no-repeat, linear-gradient(180deg, #12051f, #3a0f4f); }
.fwp-bgchip i[data-bgprev="plain"] { background: #30343b; }
.fwp-bgchip i[data-bgprev="light"] { background: #eef1f4; }
.fwp-gameswitch { font-size: 12px; }

/* compare split */
.fwp-compare { --x: 50%; position: absolute; inset: 0; pointer-events: none !important; }
.fwp-compare > i { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: linear-gradient(180deg, transparent, #fff 12%, #fff 88%, transparent); box-shadow: 0 0 12px rgba(0, 240, 255, .7); }
.fwp .fwp-cmp-h { pointer-events: auto; position: absolute; top: 50%; left: var(--x); width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: rgba(10, 13, 21, .85); color: #fff; display: grid; place-items: center; cursor: ew-resize; box-shadow: 0 4px 16px rgba(0, 0, 0, .5); touch-action: none; }
.fwp-cmp-h .fsu-i { width: 17px; height: 17px; }
.fwp-cmp-l, .fwp-cmp-r { position: absolute; top: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(10, 13, 21, .78); font: 700 10px/1.2 var(--fsu-mono); letter-spacing: .1em; text-transform: uppercase; color: #cfd7e3; }
.fwp-cmp-l { right: calc(100% - var(--x) + 10px); }
.fwp-cmp-r { left: calc(var(--x) + 10px); color: #ffd0e8; }
.fwp-stage-ui.is-big .fwp-cmp-l, .fwp-stage-ui.is-big .fwp-cmp-r { top: 62px; }

/* skin collection side by side */
.fwp-skinlabels { position: absolute; inset: 0; overflow: hidden; }
.fwp-skinlabel { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(10, 13, 21, .82); border: 1px solid rgba(255, 47, 158, .4); font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap; }
.fwp-skinlabel b { min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; background: var(--fsu-grad); font: 700 10px/1 var(--fsu-mono); }

/* stats (attachments card and the 3D overlay) */
.fwp-statbars { display: grid; gap: 5px; }
.fwp-stat { display: grid; grid-template-columns: 74px minmax(0, 1fr) 40px; align-items: center; gap: 7px; font-size: 11.5px; color: var(--fsu-muted); }
.fwp-stat > b { position: relative; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.fwp-stat > b > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--fsu-grad); transition: width .35s var(--fsu-ease); }
.fwp-stat > b > em { position: absolute; top: 0; bottom: 0; }
.fwp-stat > b > em.up { background: rgba(52, 211, 153, .9); }
.fwp-stat > b > em.down { background: rgba(248, 113, 113, .55); }
.fwp-stat output { font: 600 11px/1 var(--fsu-mono); color: var(--fsu-text); text-align: right; white-space: nowrap; }
.fwp-stat small { margin-left: 2px; font-size: 9.5px; }
.fwp-stat small.up { color: var(--fsu-good); }
.fwp-stat small.down { color: var(--fsu-bad); }
.fwp-statnums { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; font-size: 11px; color: var(--fsu-dim); }
.fwp-statnums b { color: var(--fsu-text); font-family: var(--fsu-mono); }
.fwp-statbars.is-compact { padding-top: 8px; border-top: 1px solid var(--fsu-line); }
.fwp-stats3d { position: absolute; right: 10px; top: 10px; width: min(250px, calc(100% - 20px)); display: grid; gap: 8px; padding: 10px 11px; border-radius: 12px; background: rgba(10, 13, 21, .82); border: 1px solid var(--fsu-line2); backdrop-filter: blur(10px); box-shadow: var(--fsu-shadow); }
.fwp-stage-ui.is-big .fwp-stats3d { top: auto; right: auto; left: 14px; bottom: 14px; width: 260px; }
.fwp-stats3d-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fwp-stats3d-head b { font: 700 15px/1.1 var(--fsu-display); color: #fff; }
.fwp-stats3d-head code { font-size: 9.5px; }

/* attachments card */
.fwp-build-card { gap: 8px; }
.fwp-slots-list { display: grid; gap: 4px; }
.fwp-slotrow { display: grid; grid-template-columns: 22px minmax(0, 1fr) 26px; align-items: center; gap: 6px; }
.fwp-slot-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .04); color: var(--fsu-dim); }
.fwp-slot-ic .fsu-i { width: 13px; height: 13px; }
.fwp-slotrow.is-on .fwp-slot-ic { color: var(--fsu-cyan); background: rgba(0, 240, 255, .08); }
.fwp-slot-label { font-size: 11.5px; font-weight: 600; color: var(--fsu-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fwp .fwp-slotrow select { height: 28px; font-size: 12px; padding-left: 8px; }
.fwp-slotrow .fsu-iconbtn { width: 26px; height: 26px; }
.fwp-slotrow .fsu-iconbtn.is-on { color: var(--fsu-pink); border-color: rgba(255, 47, 158, .45); background: rgba(255, 47, 158, .08); }
.fwp-mini-spin { display: inline-block; width: 12px; height: 12px; vertical-align: -2px; }

/* attachment sheets in the sheet list */
.fwp .fwp-sheettab.is-part { border-style: dashed; }
.fwp-owner { display: block; font: 700 9px/1.1 var(--fsu-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fsu-cyan); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.fwp-preview-only { color: #cfd7e3 !important; }
.fwp-parts-ship { color: #c9f7e3 !important; }

/* AI: whole weapon */
.fwp-aiscope button { flex: 1; justify-content: center; }
.fwp-aiwhole { display: grid; gap: 8px; }
.fwp-aicost { font-size: 12px; color: #e3d4ff; }
.fwp-airows { display: grid; gap: 3px; max-height: 190px; overflow-y: auto; scrollbar-width: thin; }
.fwp-airow { display: grid; grid-template-columns: 18px auto minmax(0, 1fr); align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; background: rgba(255, 255, 255, .02); font-size: 11.5px; }
.fwp-airow b { font-weight: 700; }
.fwp-airow code { font-size: 9.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fwp-airow small { grid-column: 2 / -1; color: #ffd2d2; font-size: 10.5px; }
.fwp-airow-st { display: grid; place-items: center; width: 18px; height: 18px; }
.fwp-airow-st .fsu-i { width: 14px; height: 14px; }
.fwp-airow-st .fsu-spinner { width: 13px; height: 13px; }
.fwp-airow-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--fsu-dim); }
.fwp-airow.is-done .fwp-airow-st { color: var(--fsu-good); }
.fwp-airow.is-fail .fwp-airow-st { color: var(--fsu-bad); }
.fwp-airow.is-run { background: rgba(168, 85, 247, .1); }
.fwp-aiconfirm { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 10px; border: 1px solid rgba(168, 85, 247, .5); background: rgba(168, 85, 247, .08); font-size: 12px; font-weight: 600; }
.fwp-aiconfirm span { flex: 1; }

/* ready-made skins */
.fwp-presetgrid { flex: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); grid-auto-rows: max-content; gap: 6px; max-height: 330px; overflow-y: auto; padding: 1px; scrollbar-width: thin; scrollbar-color: #2a3448 transparent; }
.fwp .fwp-presetchip { box-shadow: none; display: grid; justify-items: center; gap: 4px; padding: 4px 4px 5px; border-radius: 10px; border: 1px solid var(--fsu-line); background: var(--fsu-bg2); cursor: pointer; color: var(--fsu-muted); font-size: 10.5px; font-weight: 600; min-width: 0; transition: all .15s; }
.fwp-presetchip canvas { width: 100%; aspect-ratio: 1; border-radius: 7px; display: block; }
.fwp-presetchip span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fwp .fwp-presetchip:hover { border-color: rgba(245, 211, 138, .55); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }

/* AR dialog */
.fwp-dialog-ar { width: min(560px, 100%); }
.fwp-mv { width: 100%; height: min(60vh, 460px); border-radius: 12px; background: radial-gradient(ellipse at 50% 70%, #1c2233, #0b0e17); --poster-color: transparent; }
.fwp .fwp-ar-go { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); }

@media (max-width: 640px) {
    .fwp-tabs.has-ready { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .fwp .fwp-sb { width: 32px; height: 32px; }
    .fwp-lightpop { width: calc(100% - 12px); }
    .fwp-stats3d { width: calc(100% - 20px); }
    .fwp-presetgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: none; }
}

/* ==========================================================================
   Wave 4: In hand view (the GTA ped holds the skin), scenes (Studio, Sunset,
   Night), moves bar, loading card, cross-dissolve, clip recording.
   ========================================================================== */
@keyframes fwp-shimmer { from { background-position: 160% 0; } to { background-position: -60% 0; } }
@keyframes fwp-rec { 50% { box-shadow: 0 0 0 4px rgba(255, 59, 92, .18); } }

/* scene backdrops behind the canvas until the first frame of a scene is drawn (never a blank frame) */
.fwp-gl[data-scene="sunset"] { background: radial-gradient(ellipse 40% 30% at 38% 62%, rgba(255, 196, 92, .55), transparent 70%), linear-gradient(180deg, #1d0b3f 0%, #8e2a8c 42%, #ff7a45 62%, #2a0f2e 63%, #0e0614 100%); }
.fwp-gl[data-scene="night"] { background: radial-gradient(ellipse 70% 30% at 50% 62%, rgba(42, 26, 74, .9), transparent 70%), linear-gradient(180deg, #01020a 0%, #060b22 50%, #2a1a4a 62%, #05060c 63%, #05060c 100%); }
.fwp-dissolve { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; opacity: 1; }

/* top of the 3D view: Weapon | In hand, and the scene */
.fwp-stagetop { position: absolute; left: 8px; right: 8px; top: 8px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; pointer-events: none !important; }
.fwp-stagetop > * { pointer-events: auto; }
.fwp-stage-ui.is-big .fwp-stagetop { left: 14px; right: 14px; top: 14px; }
.fwp-modeseg, .fwp-sceneseg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(10, 13, 21, .8); border: 1px solid var(--fsu-line2); backdrop-filter: blur(12px); box-shadow: 0 8px 26px rgba(0, 0, 0, .38); }
.fwp .fwp-modeseg button, .fwp .fwp-sceneseg button {
    box-shadow: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid transparent; border-radius: 9px; background: transparent;
    color: #c3cbd8; font: 700 12.5px/1 var(--fsu-display); letter-spacing: .04em; cursor: pointer; white-space: nowrap; transition: background .22s var(--fsu-ease), color .22s var(--fsu-ease), border-color .22s, box-shadow .22s;
}
.fwp .fwp-modeseg button .fsu-i { width: 15px; height: 15px; }
.fwp .fwp-modeseg button:hover:not(:disabled), .fwp .fwp-sceneseg button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.fwp .fwp-modeseg button.is-on { color: #fff; border-color: rgba(255, 47, 158, .55); background: linear-gradient(120deg, rgba(255, 47, 158, .38), rgba(168, 85, 247, .3)); box-shadow: 0 0 18px rgba(255, 47, 158, .25); }
.fwp .fwp-modeseg button:disabled { opacity: .4; cursor: default; }
.fwp .fwp-modeseg button.is-busy .fsu-i { animation: fwp-pulse 1s infinite; }
.fwp .fwp-sceneseg button.is-on { color: #fff; border-color: rgba(0, 240, 255, .5); background: rgba(0, 240, 255, .1); box-shadow: 0 0 16px rgba(0, 240, 255, .18); }
.fwp-sceneseg i, .fwp-scenechip i { display: block; width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
[data-sceneprev="studio"] { background: radial-gradient(circle at 35% 30%, #fff, #8b93a3 45%, #2a2f3a 80%); }
[data-sceneprev="sunset"] { background: linear-gradient(180deg, #3b1260 0%, #d43d8c 45%, #ffb347 58%, #1a0920 60%); }
[data-sceneprev="night"] { background: radial-gradient(circle at 28% 62%, #ff2f9e 0 9%, transparent 11%), radial-gradient(circle at 70% 55%, #00e5ff 0 9%, transparent 11%), linear-gradient(180deg, #02030c, #1c1240); }
.fwp-stage-ui:not(.is-big) .fwp-sceneseg span { display: none; }
.fwp-stage-ui:not(.is-big) .fwp-sceneseg button { padding: 0 7px; }
.fwp-stage-ui:not(.is-big) .fwp-modeseg button { height: 26px; padding: 0 8px; font-size: 11.5px; }
.fwp-stage-ui:not(.is-big) .fwp-sceneseg button { height: 26px; }
.fwp-shownote { top: 46px; }
.fwp-stage-ui.is-big .fwp-shownote { top: 64px; }
.fwp-stats3d { top: 46px; }

/* scene chips in the light popover */
.fwp-scenegrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.fwp .fwp-scenechip { box-shadow: none; display: grid; justify-items: center; gap: 4px; padding: 6px 2px; border-radius: 9px; border: 1px solid var(--fsu-line); background: var(--fsu-bg2); color: var(--fsu-muted); cursor: pointer; font-size: 10.5px; font-weight: 600; min-width: 0; }
.fwp-scenechip i { width: 30px; height: 30px; }
.fwp .fwp-scenechip.is-on { border-color: rgba(0, 240, 255, .6); color: #fff; box-shadow: 0 0 0 1px rgba(0, 240, 255, .25); }

/* paint paused hint */
.fwp-handhint {
    position: absolute; left: 50%; top: 52px; transform: translate(-50%, -6px); display: flex; align-items: center; gap: 7px; max-width: calc(100% - 24px); padding: 7px 12px; border-radius: 999px;
    background: rgba(10, 13, 21, .88); border: 1px solid rgba(0, 240, 255, .35); color: #dff9ff; font-size: 12px; font-weight: 600; box-shadow: var(--fsu-shadow);
    opacity: 0; transition: opacity .28s var(--fsu-ease), transform .28s var(--fsu-ease); pointer-events: none !important;
}
.fwp-handhint .fsu-i { width: 15px; height: 15px; color: var(--fsu-cyan); flex: none; }
.fwp-handhint.is-in { opacity: 1; transform: translate(-50%, 0); }
.fwp-stage-ui.is-big .fwp-handhint { top: 64px; }

/* moves of the ped */
.fwp-animbar {
    position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 14px; max-width: calc(100% - 12px);
    background: rgba(10, 13, 21, .82); border: 1px solid rgba(255, 47, 158, .32); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 30px rgba(255, 47, 158, .08);
}
.fwp-stage-ui.is-big .fwp-animbar { bottom: 64px; }
.fwp-poses { display: flex; gap: 2px; }
.fwp .fwp-poses button {
    box-shadow: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #c3cbd8;
    font: 700 12.5px/1 var(--fsu-display); letter-spacing: .04em; cursor: pointer; transition: background .2s var(--fsu-ease), color .2s, border-color .2s, transform .12s;
}
.fwp .fwp-poses button .fsu-i { width: 16px; height: 16px; }
.fwp .fwp-poses button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.fwp .fwp-poses button:active { transform: scale(.96); }
.fwp .fwp-poses button.is-on { color: #fff; border-color: rgba(255, 47, 158, .5); background: linear-gradient(120deg, rgba(255, 47, 158, .32), rgba(168, 85, 247, .26)); }
.fwp .fwp-poses button[data-pose="fire"] .fsu-i { color: #ffb36b; }
.fwp-gender { display: flex; gap: 2px; padding-left: 6px; border-left: 1px solid var(--fsu-line); }
.fwp .fwp-gender button { box-shadow: none; width: 30px; height: 30px; padding: 0; border-radius: 9px; border: 1px solid transparent; background: transparent; color: #9aa4b6; font: 800 12px/1 var(--fsu-mono); cursor: pointer; }
.fwp .fwp-gender button.is-on { color: #fff; border-color: rgba(0, 240, 255, .5); background: rgba(0, 240, 255, .12); }
.fwp-stage-ui:not(.is-big) .fwp-poses span { display: none; }
.fwp-stage-ui:not(.is-big) .fwp-poses button { padding: 0 8px; height: 30px; }

/* the ped loading: a shimmering silhouette, a bar, words */
.fwp-handload { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 55%, rgba(10, 13, 21, .35), rgba(10, 13, 21, .7)); backdrop-filter: blur(3px); z-index: 3; }
.fwp-handload-card {
    --sil: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 150'><path d='M30 3a10 10 0 1 1 0 20a10 10 0 1 1 0-20zM17 28h26c5 0 8 4 7 9l-5 30c-1 4-3 6-6 6v68c0 3-2 6-6 6s-5-3-5-6V96h-2v45c0 3-2 6-5 6s-6-3-6-6V73c-3 0-5-2-6-6l-5-30c-1-5 2-9 7-9z'/></svg>");
    display: grid; justify-items: center; gap: 8px; padding: 18px 22px 16px; border-radius: 16px; background: rgba(12, 15, 24, .9); border: 1px solid var(--fsu-line2); box-shadow: var(--fsu-shadow); min-width: 220px;
}
.fwp-pedsil {
    width: 46px; height: 112px; fill: transparent;
    background: linear-gradient(100deg, rgba(255, 255, 255, .06) 30%, rgba(255, 47, 158, .55) 48%, rgba(0, 240, 255, .45) 54%, rgba(255, 255, 255, .06) 72%) 0 0 / 260% 100%;
    -webkit-mask: var(--sil) center / contain no-repeat; mask: var(--sil) center / contain no-repeat; animation: fwp-shimmer 1.5s linear infinite;
}
.fwp-handload-card b { font: 700 15px/1.1 var(--fsu-display); letter-spacing: .03em; color: #fff; }
.fwp-handload-text { font-size: 11.5px; color: var(--fsu-muted); }
.fwp-handload-bar { width: 180px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.fwp-handload-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--fsu-pink), var(--fsu-purple), var(--fsu-cyan)); transition: width .25s var(--fsu-ease); }

/* clip recording */
.fwp .fwp-sb.is-rec { color: #ff6b81; border-color: rgba(255, 59, 92, .6); animation: fwp-rec 1s infinite; }
.fwp-clipvid { width: 100%; max-height: 52vh; border-radius: 12px; background: #05060c; display: block; }
.fwp-dialog-foot .fsu-btn + .fsu-btn { margin-left: 8px; }

/* shimmer placeholders (renders being made, weapon opening) */
.fwp-shimmer-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fwp-shimmer-row i { display: block; aspect-ratio: 1; border-radius: 12px; background: linear-gradient(100deg, #121724 30%, #1d2436 50%, #121724 70%) 0 0 / 260% 100%; animation: fwp-shimmer 1.3s linear infinite; }
.fwp-center { text-align: center; }
.fwp-loading { background: linear-gradient(100deg, rgba(14, 18, 28, 0) 30%, rgba(120, 90, 220, .1) 50%, rgba(14, 18, 28, 0) 70%) 0 0 / 260% 100%; animation: fwp-shimmer 1.6s linear infinite; }

@media (max-width: 640px) {
    .fwp-stagetop { left: 6px; right: 6px; top: 6px; gap: 4px; }
    .fwp-stage-ui.is-big .fwp-stagetop { left: 6px; right: 6px; top: 50px; }
    .fwp .fwp-modeseg button, .fwp .fwp-sceneseg button { height: 30px; padding: 0 8px; font-size: 11.5px; }
    .fwp-stage-ui .fwp-sceneseg span { display: none; }
    .fwp-stage-ui.is-big .fwp-shownote, .fwp-stage-ui.is-big .fwp-handhint { top: 92px; }
    .fwp-animbar { bottom: 50px; gap: 3px; padding: 3px; }
    .fwp-stage-ui.is-big .fwp-animbar { bottom: 56px; }
    .fwp .fwp-poses button { flex-direction: column; justify-content: center; gap: 2px; width: 50px; height: 42px; padding: 0; font-size: 9.5px; }
    .fwp-stage-ui .fwp-poses span { display: block !important; }
    .fwp-stage-ui:not(.is-big) .fwp-poses button { height: 42px; padding: 0; }
    .fwp .fwp-gender { flex-direction: column; padding-left: 3px; }
    .fwp .fwp-gender button { width: 26px; height: 20px; font-size: 10.5px; }
    .fwp-handload-card { min-width: 0; width: calc(100% - 40px); }
    .fwp-shimmer-row { grid-template-columns: 1fr; }
}

/* glow in the dark (preview) */
.fwp-glowswitch { font-size: 12px; gap: 6px; }
.fwp-glowswitch .fsu-i { width: 14px; height: 14px; color: #b9ff5c; }
.fwp-glowswitch em { margin-left: auto; font: 700 9.5px/1 var(--fsu-mono); letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: #b9ff5c; padding: 3px 6px; border-radius: 6px; border: 1px solid rgba(185, 255, 92, .35); }
.fwp-glowtag { display: inline-grid; vertical-align: -2px; color: #b9ff5c; font-style: normal; }
.fwp-glowtag .fsu-i { width: 11px; height: 11px; }
.fwp-glowmode { margin-top: 2px; }
.fwp-glow-ok { color: #b9ff5c; }
.fwp-glow-ok .fsu-i { color: #b9ff5c; }
