/* RushPvP - Import — noir / orange (même identité que les sites rush-*.botcore.fr) */
:root {
  --bg: #09090b; --bg2: #0e0e11; --panel: #131317; --panel2: #18181d; --panel3: #1e1e24;
  --line: #24242b; --line2: #2f2f38; --text: #f4f4f5; --muted: #a1a1aa; --dim: #71717a;
  --or: #ff7a18; --or2: #ff9a3d; --or3: #e5480b; --or-soft: rgba(255,122,24,.12); --or-glow: rgba(255,122,24,.35);
  --ok: #22c55e; --ok-soft: rgba(34,197,94,.13); --bad: #ef4444; --bad-soft: rgba(239,68,68,.13);
  --blue: #60a5fa; --blue-soft: rgba(96,165,250,.13); --vio: #a78bfa; --vio-soft: rgba(167,139,250,.14);
  --warn: #f59e0b; --warn-soft: rgba(245,158,11,.13);
  --radius: 16px; --radius-s: 11px; --top: 64px; --side: 268px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 24px 70px rgba(0,0,0,.55);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(255,122,24,.07), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(255,122,24,.04), transparent 60%); }
a { color: var(--or2); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--or); color: #000; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #26262d; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #34343d; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .hide { display: none !important; }
.or { color: var(--or2); } .okc { color: var(--ok); } .badc { color: #fca5a5; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.s { width: 15px; height: 15px; } svg.i.l { width: 22px; height: 22px; }

.boot { position: fixed; inset: 0; display: grid; place-items: center; }
.boot img { width: 64px; height: 64px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.88); opacity: .6; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: -300px 0; } 100% { background-position: 300px 0; } }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); border-top-color: var(--or); animation: spin .8s linear infinite; flex: none; }
.spin.l { width: 28px; height: 28px; border-width: 3px; }

/* ── Boutons / champs ─────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--line2); background: var(--panel2); font-weight: 600; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .08s, box-shadow .15s; color: var(--text); }
.btn:hover { background: #202027; border-color: #3a3a44; }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, var(--or2), var(--or) 45%, var(--or3)); border: 0; color: #140800; box-shadow: 0 8px 24px rgba(255,122,24,.28); }
.btn.primary:hover { filter: brightness(1.07); box-shadow: 0 10px 30px rgba(255,122,24,.38); }
.btn.danger { background: var(--bad-soft); border-color: rgba(239,68,68,.35); color: #fca5a5; }
.btn.danger:hover { background: rgba(239,68,68,.22); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--panel2); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; gap: 6px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 7px; gap: 5px; }
.btn.icon { width: 40px; padding: 0; } .btn.sm.icon { width: 32px; } .btn.xs.icon { width: 26px; }
.btn.block { width: 100%; height: 46px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.on { background: var(--or-soft); border-color: rgba(255,122,24,.45); color: var(--or2); }
.input, .select, textarea.input { width: 100%; height: 42px; padding: 0 13px; border-radius: 11px; background: var(--bg2);
  border: 1px solid var(--line2); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 10px 13px; resize: vertical; }
.input:focus, .select:focus { border-color: var(--or); box-shadow: 0 0 0 4px var(--or-soft); }
.input.sm, .select.sm { height: 34px; border-radius: 9px; font-size: 13px; padding: 0 10px; }
.select { appearance: none; padding-right: 32px; cursor: pointer;
  background: var(--bg2) 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='%23a1a1aa' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.field .hint { font-size: 12px; color: var(--dim); }
.err { color: #fca5a5; font-size: 13px; min-height: 18px; margin: 4px 0 10px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line2); gap: 2px; }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 7px; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--or); color: #140800; box-shadow: 0 4px 14px rgba(255,122,24,.3); }
.seg.sm button { height: 26px; padding: 0 10px; font-size: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .03em; background: var(--panel2); border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.chip.or { background: var(--or-soft); border-color: rgba(255,122,24,.35); color: var(--or2); }
.chip.ok { background: var(--ok-soft); border-color: rgba(34,197,94,.35); color: #86efac; }
.chip.bad { background: var(--bad-soft); border-color: rgba(239,68,68,.35); color: #fca5a5; }
.chip.blue { background: var(--blue-soft); border-color: rgba(96,165,250,.35); color: #93c5fd; }
.chip.vio { background: var(--vio-soft); border-color: rgba(167,139,250,.35); color: #c4b5fd; }
.chip.warn { background: var(--warn-soft); border-color: rgba(245,158,11,.35); color: #fcd34d; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(34,197,94,.18); animation: breathe 2.4s ease-in-out infinite; }
.dot.off { background: var(--bad); box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px rgba(34,197,94,.06); } }
.kbd { padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line2); color: var(--dim); font: 600 11px var(--mono); }

/* ── Connexion ─────────────────────────────────────────────── */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.login::before { content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -58%);
  background: radial-gradient(circle, rgba(255,122,24,.13), transparent 62%); pointer-events: none; }
.login-card { position: relative; width: 100%; max-width: 420px; padding: 38px 30px 28px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,122,24,.07), transparent 40%), var(--panel); border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,122,24,.05) inset; animation: fadeUp .35s ease; }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin-bottom: 26px; }
.login-brand img { width: 74px; height: 74px; filter: drop-shadow(0 10px 30px var(--or-glow)); }
.login-brand h1 { font: 800 27px/1.1 Sora, Inter, sans-serif; margin: 0; letter-spacing: -.02em; }
.login-brand h1 span { color: var(--or); }
.nav span:not(.n):not(.soon-tag) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.login-brand p { margin: 0; color: var(--muted); font-size: 13.5px; }
.login-foot { margin-top: 18px; text-align: center; color: var(--dim); font-size: 12px; }
.pwd-wrap { position: relative; }
.pwd-wrap .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--dim); display: grid; place-items: center; }
.pwd-wrap .eye:hover { color: var(--text); background: var(--panel2); }
.meter { display: flex; gap: 4px; margin-top: 8px; } .meter i { flex: 1; height: 4px; border-radius: 4px; background: var(--line2); transition: background .2s; }
.meter.s1 i:nth-child(-n+1) { background: var(--bad); } .meter.s2 i:nth-child(-n+2) { background: var(--warn); }
.meter.s3 i:nth-child(-n+3) { background: #a3e635; } .meter.s4 i { background: var(--ok); }

/* ── Structure ─────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 18px;
  background: rgba(9,9,11,.82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; min-width: calc(var(--side) - 18px); cursor: pointer; }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 4px 14px var(--or-glow)); }
.brand b { font: 800 17px/1 Sora, Inter, sans-serif; letter-spacing: -.02em; white-space: nowrap; display: block; }
.brand b span { color: var(--or); margin-left: 3px; }
.brand small { display: block; font-size: 10px; color: var(--dim); letter-spacing: .16em; text-transform: uppercase; margin-top: 4px; font-weight: 600; }
.burger { display: none; }
.crumbs { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.crumbs b { color: var(--text); }
.crumbs svg { color: var(--dim); }
.top-right { display: flex; align-items: center; gap: 10px; }
.bridge-pill { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 13px 0 11px; border-radius: 12px; border: 1px solid var(--line2);
  background: var(--panel); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.bridge-pill:hover { border-color: #3a3a44; color: var(--text); }
.bridge-pill b { color: var(--text); font-weight: 700; }
.me { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 12px; border: 1px solid transparent; background: none; position: relative; }
.me:hover { background: var(--panel); border-color: var(--line2); }
.avatar { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 800 14px Sora, Inter; color: #140800;
  background: linear-gradient(135deg, var(--or2), var(--or3)); text-transform: uppercase; }
.me div { text-align: left; line-height: 1.2; } .me b { display: block; font-size: 13px; } .me small { color: var(--or2); font-size: 11px; font-weight: 600; }

.layout { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - var(--top)); }
.side { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; padding: 18px 12px 18px 14px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px; background: linear-gradient(180deg, rgba(19,19,23,.6), transparent); }
.side h6 { margin: 16px 10px 6px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.side h6:first-child { margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 12px; border-radius: 11px; color: var(--muted); font-weight: 600; border: 1px solid transparent; position: relative; transition: background .15s, color .15s; }
.nav:hover { background: var(--panel); color: var(--text); }
.nav.on { background: linear-gradient(90deg, var(--or-soft), rgba(255,122,24,.03)); color: var(--text); border-color: rgba(255,122,24,.22); }
.nav.on::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--or); box-shadow: 0 0 12px var(--or); }
.nav.on svg { color: var(--or); }
.nav .n { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--dim); font-family: var(--mono); }
.nav.soon { opacity: .58; cursor: default; } .nav.soon:hover { background: none; color: var(--muted); }
.nav .soon-tag { flex: none; white-space: nowrap; margin-left: auto; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; padding: 2px 7px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--line2); color: var(--dim); }
.side-foot { margin-top: auto; padding: 14px 10px 0; color: var(--dim); font-size: 11.5px; border-top: 1px solid var(--line); }
.main { min-width: 0; padding: 22px 26px 120px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; animation: fadeUp .3s ease; }
.page-head h1 { margin: 0; font: 800 26px/1.15 Sora, Inter, sans-serif; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 720px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h3 { margin: 0 0 12px; font: 700 15px Sora, Inter; display: flex; align-items: center; gap: 9px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 44px; height: 44px; color: var(--dim); margin-bottom: 10px; }
.empty h3 { margin: 0 0 6px; color: var(--text); font: 700 17px Sora, Inter; }

/* ── Bandeau du pack ───────────────────────────────────────── */
.pack-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 20px 22px; border-radius: 20px; border: 1px solid var(--line); margin-bottom: 16px;
  background: radial-gradient(600px 220px at 0% 0%, rgba(255,122,24,.16), transparent 70%), linear-gradient(180deg, #16161b, #111115); animation: fadeUp .3s ease; }
.pack-hero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 280px; height: 280px; background: url(/static/brand/logo.png) no-repeat center/contain; opacity: .045; pointer-events: none; transform: rotate(-8deg); }
.pack-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pack-title h1 { margin: 0; font: 800 25px/1.1 Sora, Inter; letter-spacing: -.02em; }
.pack-title .select { width: auto; height: 36px; font-weight: 700; }
.stats { display: flex; gap: 22px; margin-top: 14px; flex-wrap: wrap; }
.stat b { display: block; font: 800 22px/1 Sora, Inter; letter-spacing: -.02em; }
.stat span { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.stat.or b { color: var(--or2); }
.hero-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; position: relative; z-index: 1; }
.hero-actions .row { display: flex; gap: 8px; }

/* ── Catégories ───────────────────────────────────────────── */
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 8px; scrollbar-width: thin; }
.cat { flex: none; display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 13px 0 11px; border-radius: 12px; border: 1px solid var(--line2);
  background: var(--panel); color: var(--muted); font-weight: 600; font-size: 13px; transition: all .15s; }
.cat:hover { color: var(--text); border-color: #3a3a44; }
.cat .n { font: 700 11.5px var(--mono); color: var(--dim); background: var(--bg2); padding: 1px 7px; border-radius: 6px; }
.cat.on { background: var(--or-soft); border-color: rgba(255,122,24,.5); color: var(--text); }
.cat.on .n { background: var(--or); color: #140800; }
.cat.has-draft::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--or); margin-left: -3px; }
.cat-sep { flex: none; width: 1px; background: var(--line2); margin: 6px 4px; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search-box .input { padding-left: 38px; height: 38px; }
.toolbar .sp { flex: 1; }
.range { accent-color: var(--or); width: 110px; }

/* ── Espace de travail : grille + studio ──────────────────── */
.work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 520px); gap: 18px; align-items: start; }
.work.nosel { grid-template-columns: minmax(0, 1fr); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card, 168px), 1fr)); gap: 12px; }
.item { position: relative; border-radius: 15px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s; animation: fadeUp .25s ease both; user-select: none; }
.item:hover { border-color: #3a3a44; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.item.sel { border-color: var(--or); box-shadow: 0 0 0 3px var(--or-soft), 0 14px 34px rgba(0,0,0,.45); }
.item.drag { opacity: .35; } .item.over { border-color: var(--or2); box-shadow: inset 4px 0 0 var(--or); }
.thumb { aspect-ratio: 1; position: relative; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #24242c, #121216 70%); }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .25s; }
.item:hover .thumb img { transform: scale(1.05); }
.thumb .ph { width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent) #15151a; background-size: 300px 100%; animation: shimmer 1.4s linear infinite; }
.thumb .noimg { color: var(--dim); display: grid; place-items: center; gap: 6px; font-size: 11px; text-align: center; padding: 10px; }
.num { position: absolute; left: 8px; top: 8px; font: 800 12px var(--mono); padding: 3px 7px; border-radius: 7px; background: rgba(9,9,11,.78); border: 1px solid var(--line2); backdrop-filter: blur(6px); }
.ingame { position: absolute; right: 8px; top: 8px; font: 700 10.5px var(--mono); padding: 3px 6px; border-radius: 7px; background: var(--or-soft); color: var(--or2); border: 1px solid rgba(255,122,24,.35); }
.flag { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 4px; }
.flag .chip { height: 19px; font-size: 9.5px; padding: 0 6px; border-radius: 6px; }
.item .meta { padding: 9px 11px 10px; border-top: 1px solid var(--line); }
.item .meta b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .meta b.noname { color: var(--dim); font-weight: 500; font-style: italic; }
.item .meta .sub { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; font-size: 11px; color: var(--dim); }
.texdots { display: flex; gap: 3px; } .texdots i { width: 7px; height: 7px; border-radius: 2px; background: var(--line2); }
.texdots i.on { background: var(--or); }
.item.missing { border-color: rgba(239,68,68,.45); }
.item.isnew { border-color: rgba(34,197,94,.5); }
.list .item { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; animation: none; }
.list .thumb { aspect-ratio: 1; } .list .item .meta { border: 0; } .list .num { position: static; }
.grid.list { grid-template-columns: 1fr; gap: 6px; }
.removed-strip { margin-top: 18px; padding: 12px 14px; border-radius: 13px; border: 1px dashed rgba(239,68,68,.4); background: var(--bad-soft); color: #fca5a5; font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.studio { position: sticky; top: calc(var(--top) + 14px); border-radius: 20px; border: 1px solid var(--line); background: var(--panel); overflow: hidden;
  max-height: calc(100vh - var(--top) - 28px); display: flex; flex-direction: column; animation: fadeUp .25s ease; box-shadow: var(--shadow); }
body.has-dock .studio { max-height: calc(100vh - var(--top) - 118px); }
body.has-dock .main { padding-bottom: 130px; }
.stage { position: relative; height: 400px; flex: none; background: radial-gradient(ellipse at 50% 30%, #23232b 0%, #111115 62%, #0b0b0d 100%); }
.stage canvas { display: block; }
.stage .ov { position: absolute; display: flex; gap: 6px; z-index: 2; }
.stage .ov.tl { left: 12px; top: 12px; flex-direction: column; align-items: flex-start; }
.stage .ov.tr { right: 12px; top: 12px; }
.stage .ov.bl { left: 12px; bottom: 12px; }
.stage .ov.br { right: 12px; bottom: 12px; }
.vbtn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(9,9,11,.62); backdrop-filter: blur(8px);
  display: grid; place-items: center; color: var(--muted); transition: all .15s; }
.vbtn:hover { color: var(--text); border-color: rgba(255,255,255,.18); }
.vbtn.on { color: var(--or2); border-color: rgba(255,122,24,.5); background: rgba(255,122,24,.14); }
.vtag { font: 700 11px var(--mono); padding: 4px 8px; border-radius: 8px; background: rgba(9,9,11,.62); border: 1px solid rgba(255,255,255,.08); color: var(--muted); backdrop-filter: blur(8px); }
.stage .loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(9,9,11,.35); z-index: 3; }
.stage .loading > div { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.stage .verr { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: #fca5a5; font-size: 13px; z-index: 3; }
.views { display: flex; gap: 4px; }
.views button { height: 26px; padding: 0 8px; border-radius: 7px; border: 1px solid rgba(255,255,255,.08); background: rgba(9,9,11,.62); color: var(--muted); font-size: 11px; font-weight: 700; }
.views button:hover { color: var(--text); }
.sbody { padding: 16px 18px 18px; overflow-y: auto; }
.shead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.shead h2 { margin: 0; font: 800 19px/1.2 Sora, Inter; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.shead .cat-name { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 3px; text-transform: uppercase; letter-spacing: .08em; }
.rename { display: flex; gap: 6px; margin-bottom: 14px; }
.sec-t { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 9px; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.sw { position: relative; aspect-ratio: 1; border-radius: 11px; border: 1px solid var(--line2); background: #15151a center/cover; cursor: pointer; overflow: hidden; transition: all .15s; }
.sw:hover { border-color: #4a4a55; }
.sw.on { border-color: var(--or); box-shadow: 0 0 0 3px var(--or-soft); }
.sw .l { position: absolute; left: 4px; bottom: 4px; font: 800 10.5px var(--mono); padding: 1px 5px; border-radius: 5px; background: rgba(9,9,11,.78); }
.sw .new { position: absolute; right: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.sw .acts { position: absolute; inset: auto 3px 3px auto; display: none; gap: 2px; }
.sw:hover .acts { display: flex; }
.sw .acts button { width: 20px; height: 20px; border-radius: 6px; border: 0; background: rgba(9,9,11,.85); color: var(--muted); display: grid; place-items: center; padding: 0; }
.sw .acts button:hover { color: #fff; } .sw .acts button.del:hover { color: #fca5a5; }
.sw.add { display: grid; place-items: center; border-style: dashed; color: var(--dim); background: transparent; }
.sw.add:hover { color: var(--or2); border-color: var(--or); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 12.5px; }
.kv span { color: var(--dim); } .kv b { font-weight: 600; word-break: break-all; }
.acts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.acts-grid .btn { justify-content: flex-start; height: 38px; font-size: 13px; }
.acts-grid .btn.full { grid-column: 1 / -1; }
.inline-form { display: flex; gap: 6px; align-items: center; margin-top: 8px; padding: 10px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line2); animation: fadeUp .2s ease; flex-wrap: wrap; }
.inline-form .input { flex: 1; min-width: 90px; }

/* ── Dock du brouillon ─────────────────────────────────────── */
.dock { position: fixed; left: calc(var(--side) + 26px); right: 26px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 14px;
  padding: 12px 12px 12px 18px; border-radius: 18px; border: 1px solid rgba(255,122,24,.38);
  background: linear-gradient(90deg, rgba(255,122,24,.13), rgba(19,19,23,.95) 40%), rgba(19,19,23,.95); backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,122,24,.1) inset; animation: dockIn .35s cubic-bezier(.2,.9,.3,1.2); }
@keyframes dockIn { from { transform: translateY(30px); opacity: 0; } }
.dock .count { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 800 16px Sora; background: var(--or); color: #140800; box-shadow: 0 6px 20px rgba(255,122,24,.4); flex: none; }
.dock .txt { min-width: 0; flex: 1; }
.dock .txt b { display: block; font-size: 14px; }
.dock .txt small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .btns { display: flex; gap: 8px; flex: none; }

/* ── Fenêtres ─────────────────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,7,.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; border-radius: 22px; background: var(--panel); border: 1px solid var(--line2); box-shadow: var(--shadow); animation: fadeUp .25s ease; overflow: hidden; }
.modal.wide { max-width: 860px; } .modal.xwide { max-width: 1180px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.modal-h h3 { margin: 0; font: 800 18px Sora, Inter; display: flex; align-items: center; gap: 10px; }
.modal-b { padding: 18px 20px; overflow-y: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--bg2); }
.choice { display: flex; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--bg2); cursor: pointer; margin-bottom: 10px; transition: all .15s; }
.choice:hover { border-color: #3d3d47; }
.choice.on { border-color: var(--or); background: var(--or-soft); }
.choice .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--panel2); flex: none; color: var(--or2); }
.choice b { display: block; margin-bottom: 2px; } .choice p { margin: 0; font-size: 12.5px; color: var(--muted); }
.steps { display: flex; flex-direction: column; gap: 10px; }
.stepi { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 13px; background: var(--bg2); border: 1px solid var(--line); }
.stepi .st { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.stepi .st.ok { background: var(--ok); color: #04210f; } .stepi .st.err { background: var(--bad); color: #fff; }
.stepi b { display: block; font-size: 13.5px; } .stepi small { color: var(--muted); font-size: 12px; }
.alert { display: flex; gap: 11px; padding: 12px 14px; border-radius: 13px; font-size: 13px; margin-bottom: 12px; align-items: flex-start; }
.alert svg { margin-top: 1px; }
.alert.warn { background: var(--warn-soft); border: 1px solid rgba(245,158,11,.3); color: #fde68a; }
.alert.bad { background: var(--bad-soft); border: 1px solid rgba(239,68,68,.3); color: #fecaca; }
.alert.ok { background: var(--ok-soft); border: 1px solid rgba(34,197,94,.3); color: #bbf7d0; }
.alert.info { background: var(--blue-soft); border: 1px solid rgba(96,165,250,.3); color: #bfdbfe; }

table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-weight: 800; padding: 8px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:hover td { background: rgba(255,255,255,.015); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.arrow { color: var(--or2); font-weight: 800; padding: 0 4px; }

/* ── Import ───────────────────────────────────────────────── */
.src-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.src-card { padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); text-align: left; transition: all .18s; position: relative; overflow: hidden; }
.src-card:hover { border-color: rgba(255,122,24,.5); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.src-card .big { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--or-soft); color: var(--or2); margin-bottom: 14px; border: 1px solid rgba(255,122,24,.3); }
.src-card h3 { margin: 0 0 6px; font: 800 18px Sora; } .src-card p { margin: 0; color: var(--muted); font-size: 13px; }
.drop { margin-top: 16px; border: 2px dashed var(--line2); border-radius: 18px; padding: 34px 20px; text-align: center; color: var(--muted); transition: all .15s; }
.drop.over { border-color: var(--or); background: var(--or-soft); color: var(--text); }
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 14px; }
.folder { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); text-align: left; transition: all .15s; }
.folder:hover { border-color: rgba(255,122,24,.5); background: var(--panel2); }
.folder .fi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--panel2); color: var(--or2); flex: none; }
.folder b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .folder small { color: var(--dim); font-size: 11.5px; }
.pieces { display: flex; flex-direction: column; gap: 10px; }
.piece { display: grid; grid-template-columns: 92px minmax(0, 1fr) 330px; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.piece.skip { opacity: .55; }
.piece .pthumb { width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 38%, #24242c, #121216 70%); display: grid; place-items: center; cursor: pointer; }
.piece .pthumb img { width: 100%; height: 100%; object-fit: contain; }
.piece h4 { margin: 0 0 4px; font: 700 14px Sora; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.piece .files { font: 11.5px var(--mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.piece .ctl { display: flex; flex-direction: column; gap: 6px; }
.piece .ctl .row { display: flex; gap: 6px; }
.mini-sw { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; } .mini-sw img, .mini-sw i { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line2); background: #15151a; object-fit: cover; }
.mini-sw .dupx { outline: 2px solid var(--warn); outline-offset: -2px; }

/* ── Cabine ───────────────────────────────────────────────── */
.cabine { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; height: calc(100vh - var(--top) - 150px); min-height: 520px; }
.cab-side { overflow-y: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); padding: 14px; }
.cab-stage { position: relative; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #23232b 0%, #111115 62%, #0b0b0d 100%); }
.slot { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; }
.slot:hover { background: var(--bg2); border-color: var(--line); }
.slot.on { background: var(--or-soft); border-color: rgba(255,122,24,.3); }
.slot b { font-size: 12.5px; display: block; } .slot small { font: 11px var(--mono); color: var(--dim); }
.stepper { display: flex; align-items: center; gap: 3px; }
.stepper button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line2); background: var(--panel2); color: var(--muted); display: grid; place-items: center; padding: 0; }
.stepper button:hover { color: var(--text); border-color: #3d3d47; }
.stepper span { min-width: 46px; text-align: center; font: 700 12px var(--mono); }
.stepper span.off { color: var(--dim); }

/* ── Pont Windows ─────────────────────────────────────────── */
.bridge-hero { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 20px; border: 1px solid var(--line); margin-bottom: 16px; background: linear-gradient(180deg, #16161b, #111115); }
.bridge-hero .big { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; flex: none; }
.bridge-hero .big.on { background: var(--ok-soft); color: var(--ok); border: 1px solid rgba(34,197,94,.35); }
.bridge-hero .big.off { background: var(--bad-soft); color: #fca5a5; border: 1px solid rgba(239,68,68,.35); }
.bridge-hero h2 { margin: 0; font: 800 21px Sora; } .bridge-hero p { margin: 4px 0 0; color: var(--muted); }
.checks { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: var(--bg2); border: 1px solid var(--line); font-size: 13px; }
.check .ck { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.check .ck.ok { background: var(--ok-soft); color: var(--ok); } .check .ck.no { background: var(--bad-soft); color: #fca5a5; } .check .ck.opt { background: var(--warn-soft); color: var(--warn); }
.check small { margin-left: auto; color: var(--dim); font-size: 11.5px; }
ol.how { margin: 0; padding-left: 20px; color: var(--muted); } ol.how li { margin-bottom: 8px; } ol.how b { color: var(--text); }
.code { font: 12px var(--mono); background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; color: #e4e4e7; word-break: break-all; }

.soon-page { display: grid; place-items: center; min-height: calc(100vh - var(--top) - 160px); text-align: center; }
.soon-page .big { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; margin: 0 auto 18px; background: var(--or-soft); border: 1px solid rgba(255,122,24,.35); color: var(--or2); box-shadow: 0 20px 60px rgba(255,122,24,.18); }
.soon-page .big svg { width: 44px; height: 44px; }
.soon-page h1 { font: 800 30px Sora; margin: 0 0 8px; } .soon-page p { color: var(--muted); margin: 0 auto; max-width: 460px; }

/* ── Notifications ────────────────────────────────────────── */
.toasts { position: fixed; right: 18px; top: calc(var(--top) + 14px); z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; min-width: 260px; max-width: 400px; padding: 12px 14px; border-radius: 14px; background: #1a1a20; border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: 13px; animation: fadeUp .25s ease; }
.toast.ok { border-color: rgba(34,197,94,.4); } .toast.bad { border-color: rgba(239,68,68,.45); }
.toast.ok svg { color: var(--ok); } .toast.bad svg { color: var(--bad); }
.menu { position: absolute; z-index: 90; min-width: 220px; padding: 6px; border-radius: 14px; background: #1a1a20; border: 1px solid var(--line2); box-shadow: var(--shadow); animation: fadeUp .15s ease; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 600; font-size: 13px; text-align: left; }
.menu button:hover { background: var(--panel2); color: var(--text); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 2px; }

@media (max-width: 1280px) { .work { grid-template-columns: minmax(0, 1fr) 400px; } .piece { grid-template-columns: 80px minmax(0,1fr); } .piece .ctl { grid-column: 1 / -1; } }
@media (max-width: 1060px) {
  :root { --side: 0px; }
  .side { position: fixed; left: 0; top: var(--top); width: 280px; z-index: 70; background: var(--bg); transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: var(--shadow); }
  .burger { display: grid; place-items: center; }
  .layout { grid-template-columns: 1fr; }
  .brand { min-width: 0; }
  .work { grid-template-columns: 1fr; }
  .studio { position: fixed; inset: var(--top) 0 0 0; border-radius: 0; z-index: 65; max-height: none; }
  .studio .stage { height: 46vh; }
  .dock { left: 12px; right: 12px; bottom: 12px; }
  .cabine { grid-template-columns: 1fr; height: auto; } .cab-stage { height: 60vh; }
  .grid2, .grid3, .src-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .main { padding: 16px 14px 120px; }
  .brand small, .bridge-pill span.txt, .me div { display: none; }
  .pack-hero { grid-template-columns: 1fr; } .hero-actions { align-items: stretch; }
  .dock .txt small { display: none; } .dock .btns .btn:not(.primary) { display: none; }
  .crumbs { display: none; }
}
