/* Studio vendeur : même identité que la maquette validée (barre latérale sombre, vert, logo Wenze). */
body.studio { --accent: #1AF0A8; }
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 264px; flex: none; background: var(--ag-bg-100); border-right: 1px solid var(--ag-border-100); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar img.logo { height: 52px; max-width: 100%; width: auto; align-self: flex-start; margin: 0 0 14px 4px; }
.sidebar .group { margin-top: 6px; border-radius: 16px; background: #0A2A22; border: 1px solid rgba(26, 240, 168, .3); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.sidebar .group-head { height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 4px; font-size: 15px; font-weight: 700; color: var(--ag-ink); }
.sidebar a.nav, .sidebar .nav.soon { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-radius: 10px; font-size: 15px; color: var(--ag-ink-muted); }
.sidebar .nav.soon { color: #5D7379; cursor: default; }
.sidebar .nav.soon small { font-size: 11px; border: 1px dashed var(--ag-border-100); border-radius: 999px; padding: 2px 8px; }
.sidebar a.nav.sub { height: 34px; padding-left: 43px; font-size: 14px; }
.sidebar .group a.nav { height: 38px; font-size: 14px; }
.sidebar a.nav[aria-current="page"] { background: #0E3A2E; color: var(--accent); font-weight: 700; }
.sidebar a.nav .count { min-width: 24px; height: 22px; border-radius: 11px; background: var(--ag-wa-green); color: var(--accent); font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.sidebar .bottom { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ag-ink-subtle); }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 28px; border-bottom: 1px solid var(--ag-border-100); background: var(--ag-bg-100); position: sticky; top: 0; z-index: 10; }
.topbar .pill { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--ag-border-100); background: var(--ag-bg-200); font-size: 13px; }
.topbar .top-search { flex: 1 1 280px; max-width: 560px; background: var(--ag-bg-300); }
.topbar .me { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ag-wa-green); color: var(--ag-wa-ink); font-weight: 800; display: grid; place-items: center; flex: none; }
.avatar.small { width: 32px; height: 32px; font-size: 12px; }
.topbar .dot { width: 10px; height: 10px; border-radius: 50%; }
.page { padding: 26px 28px 48px; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.page-head small { color: var(--accent); font-weight: 700; font-size: 13px; display: block; margin-bottom: 4px; }
.page-head h1 { font-size: 32px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.stat { background: var(--ag-bg-200); border: 1px solid var(--ag-border-100); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.stat b { font-size: 28px; font-weight: 800; }
.stat span { font-size: 13px; color: var(--ag-ink-subtle); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 12px; font-weight: 700; color: var(--ag-ink-subtle); padding: 10px 12px; border-bottom: 1px solid var(--ag-border-100); }
table.list td { padding: 12px; border-bottom: 1px solid var(--ag-border-100); vertical-align: middle; }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td { background: var(--ag-bg-300); }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--ag-bg-300); color: var(--ag-ink-muted); white-space: nowrap; }
.tag.ok { background: rgba(26, 240, 168, .14); color: var(--accent); }
.tag.warn { background: var(--ag-warning-bg); color: var(--ag-warning); }
.tag.err { background: var(--ag-danger-bg); color: var(--ag-danger); }
.tag.info { background: var(--ag-info-bg); color: var(--ag-info); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ag-border-100); }
.switch input { width: 20px; height: 20px; accent-color: var(--accent); }
.bubble { max-width: 70%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.bubble.in { background: var(--ag-bg-300); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: var(--ag-wa-green); color: var(--ag-wa-ink); align-self: flex-end; border-bottom-right-radius: 4px; }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px 16px; box-sizing: border-box; }
.auth .card { width: min(460px, 100%); position: relative; z-index: 1; }
.auth { position: relative; overflow: hidden; }
.auth-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; opacity: 0; pointer-events: none; transition: opacity .4s ease;
  -webkit-mask-image: radial-gradient(ellipse at 65% 45%, #000 45%, rgba(0,0,0,.35) 100%); mask-image: radial-gradient(ellipse at 65% 45%, #000 45%, rgba(0,0,0,.35) 100%); }
.auth .auth-art { opacity: .95; }
.auth .card { background: rgba(8, 18, 24, .42); backdrop-filter: blur(5px) saturate(1.2); -webkit-backdrop-filter: blur(5px) saturate(1.2); border-color: rgba(255,255,255,.18); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.auth .card .field input, .auth .card .field select { background: rgba(6, 14, 18, .55); border-color: rgba(255,255,255,.2); }
.auth .card h1, .auth .card .field > span, .auth .card label { text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.auth .card [role=tablist] { background: rgba(6, 14, 18, .55) !important; }
@media (max-width: 720px) { .auth .auth-art { opacity: .7; object-position: 72% 30%; } .auth .card { background: rgba(8, 18, 24, .55); } }
.menu-btn { display: none; }
/* ---------- Écrans des lots 1 à 6 ---------- */
.page-head h1 { font-size: clamp(26px, 4vw, 32px); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills .chip[aria-selected="true"] { background: var(--accent); color: var(--ag-on-accent); border-color: var(--accent); }
.pills a.chip { display: inline-flex; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters select, select.inline { height: 46px; border-radius: 12px; border: 1px solid var(--ag-border-200); background: var(--ag-bg-300); color: var(--ag-ink); padding: 0 12px; }
.opp select, .page-head select { height: 40px; border-radius: 10px; border: 1px solid var(--ag-border-200); background: var(--ag-bg-300); color: var(--ag-ink); padding: 0 10px; }
.danger { color: var(--ag-danger); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag.demo { background: transparent; border: 1px dashed var(--ag-warning); color: var(--ag-warning); }
.phone-only { display: none; }
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 12px; }
.counter { border: 1px solid; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; color: var(--ag-ink); }
.counter b { font-size: 30px; font-weight: 800; line-height: 1; }
.counter span { font-size: 13px; color: var(--ag-ink-muted); }
.task { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--ag-border-100); }
.task .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.task .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.internal { background: rgba(245, 210, 122, .08); border: 1px dashed var(--ag-warning); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.internal small { color: var(--ag-warning); font-weight: 700; font-size: 11px; letter-spacing: .04em; }
.ai-slot { border: 1px dashed var(--ag-border-200); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; flex: none; }
.ai-row .ai-slot { flex: 1 1 200px; }
.stack > .search, .stack > label.search, .inbox-list > .search { flex: none; width: 100%; max-width: none; }
.ai-slot .ai-tag { align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--ag-info); border: 1px solid #1E4A57; border-radius: 999px; padding: 2px 8px; }
.ai-slot .chip { height: 30px; font-size: 12px; opacity: .6; }
.ai-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sub-card { background: var(--ag-bg-300); border: 1px solid var(--ag-border-100); border-radius: 14px; padding: 12px 14px; }
details > summary { cursor: pointer; font-weight: 700; }
.choice.off { opacity: .55; cursor: not-allowed; }
.order-line { border: 1px solid var(--ag-border-100); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--ag-bg-300); }
.order-line.bad { border-color: var(--ag-danger); background: var(--ag-danger-bg); }
.summary { position: sticky; top: 96px; }
.mobile-bar { display: none; }
/* Boîte de réception */
.inbox { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.inbox-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.inbox-list .search { flex: none; width: 100%; }
.conv { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--ag-border-100); background: var(--ag-bg-200); color: var(--ag-ink); }
.conv.active { border-color: var(--accent); }
.conv.demo { border-style: dashed; }
.thread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); gap: 16px; align-items: start; min-width: 0; }
.thread-empty { min-height: 240px; display: grid; place-items: center; }
.feed { display: flex; flex-direction: column; gap: 10px; max-height: 56vh; overflow-y: auto; padding: 4px; }
.bubble .meta { font-size: 11px; opacity: .75; margin-top: 4px; }
.bubble.pending { opacity: .7; border: 1px dashed var(--ag-wa-ink); }
.event { align-self: center; font-size: 12px; color: var(--ag-ink-subtle); background: var(--ag-bg-300); border-radius: 999px; padding: 4px 12px; text-align: center; }
.composer textarea { width: 100%; min-height: 80px; border-radius: 12px; border: 1px solid var(--ag-border-200); background: var(--ag-bg-300); color: var(--ag-ink); padding: 10px 12px; font: inherit; }
/* Prospects */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kcol { display: flex; flex-direction: column; gap: 10px; background: var(--ag-bg-100); border: 1px solid var(--ag-border-100); border-radius: 16px; padding: 12px; min-width: 0; }
.kcol .card { padding: 14px; }
@media (max-width: 1100px) {
  .thread { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .desk-only { display: none !important; }
  .phone-only { display: initial; }
  div.phone-only, a.phone-only { display: flex; }
  .cards { display: flex; flex-direction: column; gap: 10px; }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox-list.has-thread { display: none; }
  .kanban { grid-auto-flow: row; grid-auto-columns: auto; }
  .kcol { display: none; }
  .kcol.current { display: flex; }
  .summary { position: static; }
  .new-order { padding-bottom: 84px; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px; gap: 12px; align-items: center; justify-content: space-between; background: var(--ag-bg-100); border-top: 1px solid var(--ag-border-100); }
  .mobile-bar span { display: flex; flex-direction: column; }
  .topbar .me span:last-child { display: none; }
  .topbar .top-search { order: 5; flex-basis: 100%; max-width: none; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; z-index: 30; left: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.6); }
  .sidebar.open { transform: none; }
  .menu-btn { display: grid; }
  .page, .topbar { padding-left: 16px; padding-right: 16px; }
  table.list .hide-sm { display: none; }
}

/* Abonnement Wenze : offres et facture imprimable */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.plan.current { border-color: var(--accent); }
.invoice { background: #fff; color: #10201A; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 20px; max-width: 820px; }
.invoice .inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.invoice .inv-head img { height: 48px; width: auto; background: #050F14; border-radius: 10px; padding: 6px 10px; }
.invoice h1 { font-size: 22px; margin: 0 0 4px; color: #10201A; }
.invoice .inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.invoice .inv-parties div { display: flex; flex-direction: column; gap: 2px; word-break: break-word; }
.invoice small { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: #5B6B66; }
.invoice .inv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.invoice .inv-table th, .invoice .inv-table td { padding: 10px 6px; border-bottom: 1px solid #DCE5E1; text-align: left; color: #10201A; }
.invoice .inv-table tfoot td { font-weight: 800; border-bottom: 0; }
.invoice .inv-foot { margin: 0; font-size: 13px; color: #5B6B66; }
.invoice .inv-void { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FDECEC; color: #9B1C1C; font-weight: 700; }
@media (max-width: 560px) { .invoice { padding: 18px; } .invoice .inv-parties { grid-template-columns: 1fr; } }
@media print {
  .sidebar, .topbar, .no-print, .note { display: none !important; }
  body, .content, .page { background: #fff !important; padding: 0 !important; margin: 0 !important; }
  .invoice { max-width: none; border-radius: 0; padding: 0; }
}

/* Import de produits en masse */
.imp-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; counter-reset: s; flex-wrap: wrap; }
.imp-steps li { counter-increment: s; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ag-border-200); font-size: 13px; color: var(--ag-ink-subtle); }
.imp-steps li::before { content: counter(s) ". "; }
.imp-steps li.on { border-color: var(--accent); color: var(--ag-ink); font-weight: 700; }
.imp-steps li.done { color: var(--accent); }
.imp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.imp-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.imp-ph { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--ag-bg-300); border: 1px solid var(--ag-border-200); }
.imp-ph.small { width: 64px; flex: 0 0 64px; }
.imp-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imp-ph b { position: absolute; left: 6px; top: 6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.75); color: #fff; font-size: 13px; display: grid; place-items: center; }
.imp-ph button { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; padding: 0; }
.imp-item { display: flex; gap: 14px; align-items: flex-start; }
.imp-photos { display: flex; flex-direction: column; gap: 6px; }
.imp-row { display: grid; grid-template-columns: 1fr 90px; gap: 8px; }
.imp-item .field input, .imp-item .field textarea { width: 100%; }
.imp-check { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.imp-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.imp-photos .imp-ph.small { width: 84px; flex-basis: 84px; }
@media (max-width: 520px) { .imp-item { flex-direction: column; } .imp-photos { flex-direction: row; } }
.imp-item.imp-done { opacity: .5; pointer-events: none; }
.imp-item.imp-done::after { content: "✓ créé"; color: var(--accent); font-weight: 800; }
.btn.rec { border-color: var(--ag-danger); color: var(--ag-danger); }
.imp-bar { position: sticky; bottom: 0; z-index: 5; }

/* Fils de discussion du support (Studio et administration) */
.bubble-msg { align-self: flex-start; max-width: 88%; background: var(--ag-bg-300); border: 1px solid var(--ag-border-200); border-radius: 14px 14px 14px 4px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.bubble-msg.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; border-color: var(--accent); }
.bubble-msg small { color: var(--ag-ink-subtle); font-size: 11px; }
.chip.on { border-color: var(--accent); color: var(--accent); }

/* Photo d'ambiance en haut des rubriques du Studio, fondue vers la gauche et vers le bas */
.page.has-art { position: relative; padding-top: 150px; }
.page.has-art > *:not(.page-art) { position: relative; z-index: 1; }
.page-art {
  position: absolute; top: 0; right: 0; z-index: 0; width: min(900px, 78%); height: 380px; object-fit: cover; object-position: 70% 40%;
  opacity: .9; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%), linear-gradient(to right, transparent 0%, #000 42%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 45%, transparent 100%), linear-gradient(to right, transparent 0%, #000 42%);
  mask-composite: intersect;
}
@media (max-width: 720px) {
  .page.has-art { padding-top: 120px; }
  .page-art { width: 100%; height: 280px; opacity: .7; object-position: 75% 35%;
    -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 100%), linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 35%, #000 75%);
    mask-image: linear-gradient(to bottom, #000 35%, transparent 100%), linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 35%, #000 75%); }
}
@media print { .page-art { display: none; } .page.has-art { padding-top: 0; } }

/* Discussions : photo du client avec halo (vert Wenze = a acheté, ambre = intéressé, gris = rien) */
.cust-avatar { position: relative; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; padding: 0; border: 0; cursor: default;
  background: var(--ag-bg-300); color: var(--ag-ink); font-weight: 800; font-size: 15px; }
button.cust-avatar { cursor: pointer; }
.cust-avatar::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--halo, #5B6B66); box-shadow: 0 0 12px 1px var(--halo-glow, transparent); }
.cust-avatar.halo-buyer { --halo: #1AF0A8; --halo-glow: rgba(26,240,168,.55); }
.cust-avatar.halo-interested { --halo: #F59E0B; --halo-glow: rgba(245,158,11,.5); }
.cust-avatar.halo-none { --halo: #3A4A45; }
.cust-avatar.halo-buyer::before, .cust-avatar.halo-interested::before { animation: halo-pulse 2.4s ease-in-out infinite; }
@keyframes halo-pulse { 50% { box-shadow: 0 0 20px 4px var(--halo-glow); } }
@media (prefers-reduced-motion: reduce) { .cust-avatar::before { animation: none !important; } }
.halo-txt { font-size: 12px; font-weight: 700; }
.halo-txt.halo-buyer { color: #1AF0A8; } .halo-txt.halo-interested { color: #F5A524; } .halo-txt.halo-none { color: var(--ag-ink-subtle); }
.conv.with-avatar { display: flex; flex-direction: row; gap: 12px; align-items: flex-start; }
.conv.with-avatar .conv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.conv.with-avatar .cust-avatar { width: 42px; height: 42px; margin: 4px 2px 0 4px; }
/* Vignettes des produits du client */
.tray-wrap { display: none; }
.tray-wrap.open { display: block; animation: chat-tray .2s ease-out; }
@keyframes chat-tray { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.tray { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: var(--ag-bg-200); border: 1px solid var(--ag-border-100); }
.tray-group small { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.tray-group.buyer small { color: #1AF0A8; } .tray-group.interested small { color: #F5A524; }
.tray-row { display: flex; gap: 10px; overflow-x: auto; padding: 8px 4px 6px; }
.tray-item { position: relative; flex: 0 0 auto; width: 76px; padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; display: flex; flex-direction: column; gap: 4px; text-align: left; z-index: 1; }
.tray-item img, .tray-item .noimg { width: 76px; height: 95px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; display: grid; place-items: center; background: var(--ag-bg-300);
  transition: transform .22s ease, box-shadow .22s ease; transform-origin: center top; }
.tray-group.buyer .tray-item img { border-color: rgba(26,240,168,.6); } .tray-group.interested .tray-item img { border-color: rgba(245,158,11,.55); }
.tray-item .cap { font-size: 11px; line-height: 1.3; color: var(--ag-ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) { .tray-item:hover { z-index: 5; } .tray-item:hover img { transform: scale(2.3); box-shadow: 0 16px 40px rgba(0,0,0,.6); } }
.tray-item.big { z-index: 5; } .tray-item.big img { transform: scale(2.3); box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.tray-row { overflow: visible; flex-wrap: wrap; }
.bubble-prod { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 4px; padding: 4px; border-radius: 8px; background: rgba(0,0,0,.18); }
.bubble-prod img { width: 34px; height: 42px; object-fit: cover; border-radius: 6px; }

/* Alertes : cloche, bandeau Urgent, bandeau de nouveauté */
.icon-btn.bell { position: relative; text-decoration: none; font-size: 18px; }
.bell-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #04241A; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.icon-btn.bell.urgent .bell-count { background: var(--ag-danger); color: #fff; animation: bell-pulse 1.6s ease-in-out infinite; }
@keyframes bell-pulse { 50% { box-shadow: 0 0 0 6px rgba(239,68,68,.25); } }
.urgent-box { border: 1px solid var(--ag-danger); background: var(--ag-danger-bg); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.urgent-head { display: flex; align-items: center; gap: 8px; }
.urgent-head b { color: var(--ag-danger); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.urgent-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ag-danger); animation: bell-pulse 1.6s ease-in-out infinite; }
.urgent-item { display: flex; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid rgba(239,68,68,.25); }
.urgent-item .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.urgent-item .grow span { color: var(--ag-ink-muted); font-size: 13px; }
.alert-toast { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 2px; max-width: 340px; text-decoration: none; color: inherit; border-left: 4px solid var(--accent); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .bell-count, .urgent-dot { animation: none !important; } }

/* ---------- Tuiles de couleur en verre (tableaux de bord) ---------- */
.gtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 14px; }
.gtile { --c: 26,240,168; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 20px; text-decoration: none; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, rgba(var(--c), .26), rgba(var(--c), .07) 60%, rgba(10,20,26,.6)); border: 1px solid rgba(var(--c), .45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); transition: transform .2s ease, box-shadow .2s ease, background .35s ease; }
.gtile.green { --c: 26,240,168; } .gtile.orange { --c: 255,159,67; } .gtile.red { --c: 255,107,107; } .gtile.blue { --c: 78,168,255; } .gtile.violet { --c: 167,139,250; } .gtile.yellow { --c: 255,209,102; }
.gtile .gl { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); }
.gtile b { font-size: 28px; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.gtile .gs { font-size: 12px; color: rgba(255,255,255,.65); }
.gtile .go { position: absolute; right: 14px; top: 14px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); font-weight: 800; }
a.gtile:hover, a.gtile:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(var(--c), .25), inset 0 1px 0 rgba(255,255,255,.15); outline: none; }
/* Au clic : la tuile change de couleur (vert ⇄ orange), pulse, puis la page s'ouvre */
a.gtile.pulse { animation: gt-pulse .38s ease-out; }
a.gtile.green.pulse { --c: 255,159,67; } a.gtile.orange.pulse { --c: 26,240,168; } a.gtile:not(.green):not(.orange).pulse { --c: 26,240,168; }
@keyframes gt-pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--c), .7); } 50% { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(var(--c), .2); } 100% { transform: scale(1); box-shadow: 0 0 0 26px rgba(var(--c), 0); } }
.trend { font-size: 12px; font-weight: 800; align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.1); }
.trend.up { color: #1AF0A8; } .trend.down { color: #FF8A8A; }

/* ---------- Graphiques ---------- */
.ch-card { background: rgba(14, 26, 32, .82); border: 1px solid var(--ag-border-100); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ch-title { font-weight: 800; font-size: 15px; }
.ch-svg { width: 100%; height: auto; display: block; }
.ch-grid { stroke: rgba(255,255,255,.08); }
.ch-ax { fill: var(--ag-ink-subtle); font-size: 11px; font-family: inherit; }
.ch-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ag-ink-muted); }
.ch-key { display: inline-flex; align-items: center; gap: 6px; }
.ch-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ch-row { display: grid; grid-template-columns: minmax(80px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.ch-lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ag-ink-muted); }
.ch-track { height: 10px; border-radius: 5px; background: rgba(255,255,255,.06); overflow: hidden; }
.ch-bar { display: block; height: 100%; border-radius: 5px; }
.ch-val { font-weight: 800; min-width: 24px; text-align: right; }
.ch-empty { color: var(--ag-ink-subtle); font-size: 13px; }
.ch-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.health { display: flex; flex-direction: column; gap: 6px; }
.hrow { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); font-size: 14px; }
.hrow.err b { color: #FF8A8A; } .hrow.warn b { color: var(--ag-warning); } .hrow.ok b { color: var(--accent); }
.advice { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.advice li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); line-height: 1.5; font-size: 14px; }
.advice li .tag { flex: 0 0 auto; }
.camp { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid var(--ag-border-100); background: rgba(255,255,255,.03); }
.camp .ct { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cstats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ag-ink-muted); }
.cstats b { color: var(--ag-ink); }
/* Barre de retour en haut des rubriques */
.backbar { display: flex; flex-wrap: wrap; gap: 8px; }
.backbar .wz-pill { color: #fff; }
.inbox-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.wenze-msg { border: 1px solid rgba(26,240,168,.5); background: linear-gradient(135deg, rgba(26,240,168,.14), rgba(14,26,32,.8)); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.wenze-msg.alert { border-color: rgba(255,107,107,.6); background: linear-gradient(135deg, rgba(255,107,107,.16), rgba(14,26,32,.8)); }
.wenze-msg.promo { border-color: rgba(255,159,67,.6); background: linear-gradient(135deg, rgba(255,159,67,.16), rgba(14,26,32,.8)); }
.gtile b.long { font-size: 21px; }
.ch-wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(560px, 100%), 1fr)); gap: 14px; }
.camp textarea { width: 100%; box-sizing: border-box; border-radius: 12px; border: 1px solid var(--ag-border-200); background: var(--ag-bg-300); color: var(--ag-ink); font: inherit; font-size: 14px; padding: 10px 12px; resize: vertical; }
@media (max-width: 600px) {
  .gtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gtile { padding: 14px; } .gtile b { font-size: 22px; } .gtile b.long { font-size: 17px; }
  .ch-ax { font-size: 20px; }
  .inbox-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.page form.row input[type=search] { flex: 1 1 220px; height: 44px; border-radius: 12px; border: 1px solid var(--ag-border-200); background: var(--ag-bg-300); color: var(--ag-ink); font: inherit; font-size: 15px; padding: 0 14px; }
.fn-row { display: grid; grid-template-columns: minmax(150px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.fn-lab b { font-size: 16px; }
.fn-track { height: 14px; border-radius: 7px; background: rgba(255,255,255,.06); overflow: hidden; }
.fn-bar { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, #4EA8FF, #1AF0A8); }
.fn-keep { font-size: 12px; color: var(--ag-ink-subtle); min-width: 110px; text-align: right; }
.fn-row.leak .fn-bar { background: linear-gradient(90deg, #FF9F43, #FF6B6B); }
.fn-row.leak .fn-keep { color: #FF8A8A; font-weight: 800; }
.fn-pages { font-size: 13px; color: var(--ag-ink-muted); line-height: 1.5; }
.mp-preview img, .mp-preview video { max-width: 100%; max-height: 260px; border-radius: 12px; display: block; }
@media (max-width: 600px) { .fn-row { grid-template-columns: 1fr; gap: 4px; } .fn-keep { text-align: left; } }
.dmsg { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border-left: 3px solid var(--ag-border-200); }
.dmsg.merchant { border-left-color: #4EA8FF; } .dmsg.affiliate { border-left-color: #A78BFA; } .dmsg.admin, .dmsg.system { border-left-color: #1AF0A8; background: rgba(26,240,168,.06); }
.dmsg small { color: var(--ag-ink-subtle); } .dmsg p { margin: 4px 0 0; white-space: pre-line; line-height: 1.5; }
.camp textarea, .camp select, .camp input:not([type=checkbox]) { box-sizing: border-box; border-radius: 12px; border: 1px solid var(--ag-border-200); background: var(--ag-bg-300); color: var(--ag-ink); font: inherit; font-size: 14px; padding: 10px 12px; }
.camp form.card input:not([type=checkbox]), .camp form.card select { width: 100%; }
