/* ===== Éditeur (coque d'application) ===== */
body[data-shell="app"] #cursor-glow, body[data-shell="auth"] #cursor-glow { display: none; }
body[data-shell="app"] { background: var(--abyss); }
.app { display: flex; min-height: 100vh; background: var(--abyss); }
.app-side { position: sticky; top: 0; height: 100vh; width: 264px; flex: none; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; background: #01101A; border-right: 1px solid var(--line); overflow-y: auto; }
.app-side .logo { padding: 4px 8px 14px; font-size: 18px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: rgba(24,24,28,.7); border: 1px solid var(--line); margin-bottom: 8px; }
.me-card .av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--marine); flex: none; font-family: var(--f-display); font-weight: 700; overflow: hidden; }
.me-card .av svg { width: 26px; height: 26px; }
.me-card .t { min-width: 0; flex: 1; }
.me-card b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-card button { font-family: var(--f-mono); font-size: 12px; color: var(--mist); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.me-card button:hover { color: var(--cyan); }
.me-card button svg { width: 12px; height: 12px; }
.side-grp { padding: 14px 10px 6px; font-size: 12px; font-weight: 700; color: #8C8C96; letter-spacing: .03em; }
.side-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-2); font-weight: 550; font-size: 14.5px; transition: background .2s, color .2s; }
.side-link svg { width: 19px; height: 19px; }
.side-link:hover { background: rgba(255,255,255,0.036); color: var(--bone); }
.side-link.on { background: rgba(89,216,248,.12); color: var(--bone); }
.side-link.on svg { color: var(--cyan); }
.side-link.on::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cyan); }
.side-link .cnt { margin-left: auto; font-size: 11.5px; font-weight: 750; padding: 2px 7px; border-radius: 7px; background: rgba(89,216,248,.15); color: var(--ice); }
.side-promo { margin-top: auto; padding: 16px; border-radius: 18px; background: radial-gradient(100% 80% at 100% 0%, rgba(89,216,248,.25), transparent 60%), linear-gradient(160deg, var(--marine-2), var(--hull)); border: 1px solid rgba(89,216,248,.25); }
.side-promo b { display: block; font-size: 15px; }
.side-promo p { font-size: 13px; color: var(--text-2); margin: 6px 0 12px; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 24px; background: rgba(10,10,12,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.app-top h1 { font-family: var(--f-display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.app-top .crumbs { display: flex; flex-direction: column; min-width: 0; }
.app-top .crumbs small { color: var(--mist); font-size: 12.5px; }
.app-top .grow { flex: 1; }
.dirty-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #FFD699; }
.dirty-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px rgba(255,194,102,.15); }
.app-burger { display: none; }
.app-content { padding: 26px 24px 60px; min-width: 0; }
.app-content > .sect { animation: viewEnter .5s var(--ease-out) both; }
.demo-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 16px; background: rgba(89,216,248,.08); border: 1px solid rgba(89,216,248,.25); color: var(--ice); font-size: 14.5px; margin-bottom: 20px; }
.demo-banner svg { color: var(--cyan); }
.demo-banner .btn { margin-left: auto; }
@media (max-width: 1080px) {
  .app-side { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%); transition: transform .45s var(--ease-out); box-shadow: 40px 0 80px rgba(0,0,0,.6); }
  .app.side-open .app-side { transform: none; }
  .app-burger { display: inline-flex; }
  .app-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(6,6,8,.6); }
}
@media (max-width: 640px) { .app-top { padding: 10px 14px; } .app-content { padding: 18px 14px 60px; } .app-top .hide-sm { display: none; } }

/* cartes et grilles du tableau de bord */
.card { background: var(--hull); border: 1px solid var(--line); border-radius: 22px; padding: 20px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-h h2, .card-h h3 { font-size: 16px; font-weight: 700; }
.card-h .muted { font-size: 13.5px; }
.grid-dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.c-12 { grid-column: span 12; } .c-8 { grid-column: span 8; } .c-7 { grid-column: span 7; } .c-6 { grid-column: span 6; } .c-5 { grid-column: span 5; } .c-4 { grid-column: span 4; } .c-3 { grid-column: span 3; }
@media (max-width: 1200px) { .c-3 { grid-column: span 6; } .c-8, .c-7, .c-5, .c-4 { grid-column: span 12; } }
@media (max-width: 640px) { .c-3, .c-6 { grid-column: span 12; } }
.kpi { position: relative; overflow: hidden; }
.kpi .k { display: flex; align-items: center; gap: 8px; color: var(--mist); font-size: 13.5px; font-weight: 600; }
.kpi .k svg { width: 16px; height: 16px; }
.kpi .v { margin-top: 10px; font-family: var(--f-display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi .d { position: relative; z-index: 1; margin-top: 4px; font-size: 13px; font-weight: 700; }
.kpi .d.up { color: #8EEBB0; } .kpi .d.dn { color: var(--live-ink); }
.kpi svg.sk { position: absolute; right: 0; bottom: 0; width: 42%; height: 44px; opacity: .8; }
.hello { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.hello h2 { font-family: var(--f-display); font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; }
.linkbox { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 14px; background: rgba(10,10,12,.7); border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 14px; }
.linkbox span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart { position: relative; width: 100%; height: 240px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .gl { stroke: rgba(255,255,255,0.05); stroke-width: 1; }
.chart .ax { fill: #8C8C96; font-size: 11px; font-family: var(--f-body); }
.chart .tip { position: absolute; pointer-events: none; padding: 8px 10px; border-radius: 10px; background: var(--bone); color: var(--ink-on-cyan); font-size: 12.5px; font-weight: 700; white-space: nowrap; transform: translate(-50%, -120%); opacity: 0; transition: opacity .15s; }
.chart .tip small { display: block; font-weight: 500; color: #3E5A6B; }
.bar-list { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; font-size: 14px; }
.bar-row .lbl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar-row .lbl svg { width: 16px; height: 16px; color: var(--cyan); flex: none; }
.bar-row .lbl span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .num { font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-row .track { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255,255,255,0.058); overflow: hidden; }
.bar-row .track b { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); transform-origin: left; animation: stepFill .9s var(--ease-out) both; }
.check-list { display: flex; flex-direction: column; gap: 6px; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; transition: background .2s; }
.check-item:hover { background: rgba(255,255,255,0.029); }
.check-item .cb { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; border: 1.5px solid var(--line-2); flex: none; }
.check-item.ok .cb { background: var(--cyan); border-color: transparent; color: var(--ink-on-cyan); }
.check-item.ok .cb svg { width: 14px; height: 14px; stroke-width: 3; }
.check-item.ok span { color: var(--mist); text-decoration: line-through; text-decoration-color: rgba(143,176,196,.5); }
.check-item a { margin-left: auto; color: var(--cyan); font-size: 13.5px; font-weight: 650; }
.ring { position: relative; width: 64px; height: 64px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 15px; }
.feed { display: flex; flex-direction: column; }
.feed-row { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.feed-row:first-child { border-top: 0; padding-top: 0; }
.feed-row .fi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(89,216,248,.12); color: var(--cyan); flex: none; }
.feed-row .fi svg { width: 16px; height: 16px; }
.feed-row small { display: block; color: var(--mist); font-size: 12.5px; }

/* ===== Personnaliser ===== */
.cust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); gap: 22px; align-items: start; }
@media (max-width: 1280px) { .cust { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); } }
@media (max-width: 960px) { .cust { grid-template-columns: minmax(0, 1fr); } .cust-prev { position: relative !important; top: 0 !important; order: -1; } .cust-prev .pv-box { height: 660px !important; } }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; border-radius: 16px; background: var(--hull); border: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 0; border-radius: 11px; background: transparent; color: var(--mist); font-weight: 650; font-size: 14px; cursor: pointer; transition: all .25s; }
.tabs button svg { width: 17px; height: 17px; }
.tabs button:hover { color: var(--bone); }
.tabs button[aria-selected="true"] { background: var(--hull-2); color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-2); }
.tabs button[aria-selected="true"] svg { color: var(--cyan); }
.opt { padding: 20px; border-radius: 20px; background: var(--hull); border: 1px solid var(--line); }
.opt + .opt { margin-top: 12px; }
.opt-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.opt-h h3 { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.opt-h p { font-size: 13.5px; color: var(--mist); margin-top: 2px; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.opt-row:first-of-type { border-top: 0; padding-top: 0; }
.opt-row .t b { display: block; font-size: 14.5px; font-weight: 650; }
.opt-row .t small { color: var(--mist); font-size: 13px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.opt-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .opt-2 { grid-template-columns: minmax(0, 1fr); } }
.rng { display: flex; flex-direction: column; gap: 6px; }
.rng .top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 650; }
.rng .top span { font-family: var(--f-mono); color: var(--mist); font-weight: 500; font-size: 13px; }
.pick { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 16px; border: 2px solid var(--line); background: rgba(10,10,12,.5); color: var(--bone); cursor: pointer; text-align: left; transition: border-color .25s, transform .3s var(--ease-out); font-weight: 650; font-size: 13.5px; }
.pick:hover { transform: translateY(-2px); border-color: var(--line-2); }
.pick[aria-pressed="true"] { border-color: var(--cyan); }
.pick[aria-pressed="true"]::after { content: ''; position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23021624' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.pick .sw-bg { position: relative; height: 74px; border-radius: 10px; overflow: hidden; }
.pick .sw-bg .pf { position: absolute; inset: 0; }
.pick .lay { height: 74px; border-radius: 10px; background: #0B0B0D; display: grid; place-items: center; }
.pick .lay svg { width: 64px; height: 50px; }
.pick .aa { height: 64px; border-radius: 10px; background: #0B0B0D; display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.pick .nm { height: 64px; border-radius: 10px; background: #0B0B0D; display: grid; place-items: center; overflow: hidden; }
.pick .nm .pf { background: transparent; height: auto; }
.pick .nm .pf-name { font-size: 20px; }
.color-in { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 4px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(10,10,12,.6); font-family: var(--f-mono); font-size: 13px; cursor: pointer; }
.color-in input[type=color] { width: 32px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 8px; }
.color-in input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-in input[type=color]::-webkit-color-swatch { border: 0; border-radius: 8px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 26px; border-radius: 18px; border: 2px dashed var(--line-2); background: rgba(10,10,12,.4); text-align: center; cursor: pointer; transition: border-color .25s, background .25s; color: var(--text-2); font-size: 14px; }
.drop:hover, .drop.over { border-color: var(--cyan); background: rgba(89,216,248,.06); }
.drop svg { width: 26px; height: 26px; color: var(--cyan); }
.drop b { color: var(--bone); }
.drop input { display: none; }
.bio-list { display: flex; flex-direction: column; gap: 8px; }
.bio-item { display: flex; gap: 8px; align-items: center; }
.bio-item .input { min-height: 44px; }
.badge-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-toggles .chip svg { width: 16px; height: 16px; }

/* aperçu */
.cust-prev { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 12px; }
.pv-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pv-bar .lbl { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 650; color: var(--mist); }
.pv-bar .lbl::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(59,214,113,.15); animation: livePulse 2s infinite; }
.pv-box { position: relative; height: calc(100vh - 230px); min-height: 560px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); background: #070708; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); transition: width .5s var(--ease-out); }
.pv-box .pf { position: absolute; inset: 0; }
.pv-box.mobile { background: radial-gradient(60% 60% at 50% 50%, rgba(32,32,38,.6), #070708); display: grid; place-items: center; }
/* aperçu téléphone : écran réel de 390 × 844 px, mis à l'échelle (--ps) */
.phone { --ps: .72; position: relative; flex: none; width: calc(414px * var(--ps)); height: calc(868px * var(--ps)); padding: calc(12px * var(--ps)); border-radius: calc(64px * var(--ps)); background: linear-gradient(145deg, #13324A, #07192A 40%, #0B2235); box-shadow: inset 0 0 0 calc(2px * var(--ps)) rgba(255,255,255,0.115), inset 0 0 0 calc(5px * var(--ps)) #04121D, 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.5); }
.phone::before, .phone::after { content: ''; position: absolute; right: calc(-3px * var(--ps)); width: calc(3px * var(--ps)); border-radius: 0 3px 3px 0; background: #1B3B55; }
.phone::before { top: 26%; height: 10%; } .phone::after { top: 39%; height: 6%; }
.phone .ph-island { position: absolute; z-index: 9; top: calc(24px * var(--ps)); left: 50%; transform: translateX(-50%); width: calc(118px * var(--ps)); height: calc(34px * var(--ps)); border-radius: 99px; background: #000; }
.phone .scr { position: relative; width: calc(390px * var(--ps)); height: calc(844px * var(--ps)); border-radius: calc(52px * var(--ps)); overflow: hidden; background: #0B0B0D; }
.phone .scr-in { position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform: scale(var(--ps)); transform-origin: 0 0; }
.phone .scr-in > .pf { position: absolute; inset: 0; }
.phone .ph-status { position: absolute; z-index: 8; left: 0; right: 0; top: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 40px; color: #fff; font-size: 16px; font-weight: 700; pointer-events: none; }
.phone .ph-status span { display: inline-flex; align-items: center; gap: 6px; }
.phone .ph-status svg { width: 15px; height: 15px; }
.phone .ph-status .bat { width: 24px; height: 12px; border-radius: 4px; border: 1.5px solid rgba(255,255,255,.8); position: relative; }
.phone .ph-status .bat::after { content: ''; position: absolute; inset: 1.5px; right: 5px; border-radius: 2px; background: #fff; }
.pv-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-actions .btn { flex: 1; }

/* liens */
.links-list { display: flex; flex-direction: column; gap: 8px; }
.lrow { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--hull); border: 1px solid var(--line); transition: border-color .2s, box-shadow .3s, opacity .3s, transform .3s var(--ease-out); }
.lrow:hover { border-color: var(--line-2); }
.lrow.dragging { opacity: .5; transform: scale(.98); }
.lrow.over { box-shadow: 0 -3px 0 var(--cyan); }
.lrow.off { opacity: .55; }
.lrow .grip { cursor: grab; color: #8C8C96; display: grid; place-items: center; width: 24px; height: 40px; }
.lrow .grip svg { width: 18px; height: 18px; }
.lrow .pi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(89,216,248,.12); color: var(--cyan); }
.lrow .pi svg { width: 20px; height: 20px; }
.lrow .tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lrow .tx input { background: transparent; border: 0; outline: none; color: var(--bone); font-weight: 650; font-size: 15px; padding: 2px 6px; margin-left: -6px; border-radius: 6px; min-width: 0; }
.lrow .tx input:focus { background: rgba(10,10,12,.7); box-shadow: 0 0 0 1px var(--line-2); }
.lrow .tx .u { font-family: var(--f-mono); font-size: 12.5px; color: var(--mist); padding: 0 0 0 0; }
.lrow .tx .u input { font-family: var(--f-mono); font-size: 12.5px; color: var(--mist); font-weight: 400; }
.lrow .acts { display: flex; align-items: center; gap: 4px; }
.lrow .acts .btn-icon { width: 38px; min-height: 38px; }
.lrow .acts .btn-icon svg { width: 17px; height: 17px; }
.lrow .star[aria-pressed="true"] { color: var(--warn); }
.lrow .star[aria-pressed="true"] svg { fill: var(--warn); }
.lrow .clicks { font-size: 12.5px; color: var(--mist); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) { .lrow { grid-template-columns: auto minmax(0, 1fr) auto; } .lrow .pi { display: none; } .lrow .clicks { display: none; } }
.plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; }
.plat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(10,10,12,.5); cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: all .2s; }
.plat svg { width: 24px; height: 24px; color: var(--bone); }
.plat:hover, .plat[aria-pressed="true"] { border-color: var(--cyan); color: var(--bone); background: rgba(89,216,248,.08); }

/* widgets */
.wid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.wid { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 20px; background: var(--hull); border: 1px solid var(--line); transition: border-color .3s; }
.wid.on { border-color: rgba(89,216,248,.35); }
.wid-h { display: flex; align-items: center; gap: 12px; }
.wid-h .wi { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,0.05); flex: none; }
.wid-h .wi svg { width: 22px; height: 22px; }
.wid-h .t { flex: 1; min-width: 0; }
.wid-h b { display: block; font-size: 15px; }
.wid-h small { color: var(--mist); font-size: 13px; }
.wid .conn { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #8EEBB0; }
.wid .conn svg { width: 15px; height: 15px; }

/* badges */
.bdg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.bdg { position: relative; padding: 18px; border-radius: 20px; background: var(--hull); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; transition: transform .35s var(--ease-out), border-color .3s; }
.bdg:hover { transform: translateY(-3px); }
.bdg .bi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(89,216,248,.14); color: var(--cyan); box-shadow: 0 0 30px -6px rgba(89,216,248,.5); }
.bdg .bi svg { width: 24px; height: 24px; }
.bdg.locked .bi { background: rgba(255,255,255,0.036); color: #55555E; box-shadow: none; }
.bdg.locked { border-style: dashed; }
.bdg b { font-size: 15px; }
.bdg small { color: var(--mist); font-size: 13px; line-height: 1.4; }
.bdg .switch { position: absolute; top: 16px; right: 16px; }
.bdg .lk { position: absolute; top: 18px; right: 18px; color: #55555E; }
.bdg .lk svg { width: 18px; height: 18px; }
.bmaker { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; align-items: center; }
@media (max-width: 760px) { .bmaker { grid-template-columns: minmax(0, 1fr); } }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.icon-pick button { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(10,10,12,.5); color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.icon-pick button svg { width: 20px; height: 20px; }
.icon-pick button[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); background: rgba(89,216,248,.1); }
.bpreview { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px; border-radius: 20px; background: radial-gradient(80% 80% at 50% 0%, rgba(32,32,38,.9), #0B0B0D); border: 1px solid var(--line); }
.bpreview .big { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; animation: bob 4s ease-in-out infinite; }
.bpreview .big svg { width: 40px; height: 40px; }

/* statistiques */
.donut { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut svg { width: 150px; height: 150px; transform: rotate(-90deg); flex: none; }
.legend { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.legend span { display: flex; align-items: center; gap: 10px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }
.legend b { margin-left: auto; padding-left: 16px; font-variant-numeric: tabular-nums; }
.cc { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; background: rgba(255,255,255,0.058); font-family: var(--f-mono); font-size: 11.5px; color: var(--ice); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--mist); font-weight: 650; padding: 0 10px 10px; }
.tbl td { padding: 11px 10px; border-top: 1px solid var(--line); }
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }

/* images */
.storage { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.storage .bar { flex: 1 1 200px; height: 10px; border-radius: 10px; background: rgba(255,255,255,0.058); overflow: hidden; }
.storage .bar b { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); animation: stepFill 1.2s var(--ease-out) both; transform-origin: left; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.gi { position: relative; border-radius: 16px; overflow: hidden; background: var(--hull); border: 1px solid var(--line); animation: rowIn .45s var(--ease-out) both; }
.gi .im { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.gi .meta { padding: 10px 12px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gi .meta span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-mono); font-size: 12px; color: var(--text-2); }
.gi .ov { position: absolute; inset: 0 0 auto 0; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; gap: 6px; background: rgba(6,6,8,.55); opacity: 0; transition: opacity .25s; }
.gi:hover .ov, .gi:focus-within .ov { opacity: 1; }

/* paramètres */
.set-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .set-grid { grid-template-columns: minmax(0, 1fr); } }
.set-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 900px) { .set-nav { position: static; flex-direction: row; overflow-x: auto; } }
.set-nav a { padding: 10px 12px; border-radius: 12px; color: var(--mist); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.set-nav a:hover { color: var(--bone); background: rgba(255,255,255,0.029); }
.set-nav a.on { color: var(--bone); background: rgba(89,216,248,.1); }
.set-sec { scroll-margin-top: 90px; }
.set-sec + .set-sec { margin-top: 16px; }
.conn-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.conn-row:first-of-type { border-top: 0; padding-top: 0; }
.conn-row .ci { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,0.043); flex: none; }
.conn-row .ci svg { width: 22px; height: 22px; }
.conn-row .t { flex: 1; min-width: 0; }
.conn-row b { display: block; font-size: 15px; }
.conn-row small { color: var(--mist); font-size: 13px; }
.danger { border-color: rgba(255,77,109,.3); background: linear-gradient(180deg, rgba(255,77,109,.06), transparent), var(--hull); }
.btn-danger { --bg: rgba(255,77,109,.14); --fg: var(--live-ink); --bd: rgba(255,77,109,.35); }
.btn-danger:hover { background: rgba(255,77,109,.22); border-color: rgba(255,77,109,.6); }
.btn-danger:disabled { opacity: .45; cursor: not-allowed; }
.qr-mock { width: 160px; height: 160px; border-radius: 14px; background: #EEF0EF; padding: 10px; display: grid; grid-template-columns: repeat(21, 1fr); gap: 0; }
.qr-mock i { background: #0A0A0C; }
.qr-mock i.o { background: transparent; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; font-family: var(--f-mono); font-size: 14px; }
.codes span { padding: 8px 10px; border-radius: 8px; background: rgba(10,10,12,.6); border: 1px solid var(--line); text-align: center; }

/* palette de commandes */
.cmdk { width: min(620px, 100%); }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cmdk-in svg { width: 20px; height: 20px; color: var(--mist); }
.cmdk-in input { flex: 1; background: transparent; border: 0; outline: none; color: var(--bone); font-size: 17px; }
.cmdk-list { max-height: 380px; overflow-y: auto; padding: 8px; }
.cmdk-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 12px; background: transparent; color: var(--text-2); font-size: 15px; font-weight: 550; cursor: pointer; text-align: left; }
.cmdk-list button svg { width: 18px; height: 18px; }
.cmdk-list button:hover, .cmdk-list button.on { background: rgba(89,216,248,.1); color: var(--bone); }
.cmdk-list button.on svg { color: var(--cyan); }
kbd { font-family: var(--f-mono); font-size: 11.5px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--mist); }
.notif-pop { position: absolute; top: calc(100% + 8px); right: 0; width: 340px; max-width: calc(100vw - 24px); padding: 8px; border-radius: 18px; background: var(--hull); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); animation: modalIn .35s var(--ease-out); z-index: 40; }
.notif-pop .feed-row { padding: 12px; border-top: 0; border-radius: 12px; }
.notif-pop .feed-row:hover { background: rgba(255,255,255,0.029); }
.notif-dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px var(--abyss); }
.side-logout { border: 0; background: none; cursor: pointer; width: 100%; text-align: left; color: var(--live-ink) !important; }
.side-logout:hover { background: rgba(255,77,109,.1) !important; }
.promo-star { width: 16px; height: 16px; color: var(--cyan); vertical-align: -2px; }
.side-promo b { display: flex; align-items: center; gap: 6px; }
.app-top .acct .head-me { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--marine); border: 1px solid var(--line-2); font-family: var(--f-display); font-weight: 700; }

/* barre du haut de l'éditeur : le titre garde toujours sa place */
.app-top .crumbs { flex: 0 1 auto; min-width: 0; }
.app-top .crumbs h1, .app-top .crumbs small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-top .grow { min-width: 0; }
@media (max-width: 1360px) { .app-top .lbl { display: none; } .app-top [data-cmdk], .app-top [data-viewpage] { width: 40px; padding: 0; justify-content: center; } }
@media (max-width: 1180px) { .app-top .crumbs small { display: none; } .app-top .dirty-pill { display: none; } }
@media (max-width: 480px) { .app-top .lang { display: none; } .app-top #btn-revert { display: none; } }
/* lignes de liens : jamais plus larges que leur colonne */
.lrow .tx input { width: 100%; min-width: 0; }
@media (max-width: 1400px) { .lrow [data-mv] { display: none; } }

/* comptes reliés */
.conn-login { display: flex; flex-wrap: wrap; gap: 8px; }
.conn-login .cl { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(10,10,12,.5); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--mist); }
.conn-login .cl.on { color: var(--bone); border-color: rgba(89,216,248,.35); }
.conn-login .cl svg { width: 16px; height: 16px; }
.conn-login .cl .cl-ok { color: var(--cyan); }
.conn-g { font-size: 13.5px; font-weight: 700; color: var(--mist); margin: 18px 0 10px; }
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.conn-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(10,10,12,.45); border: 1px solid var(--line); min-width: 0; transition: border-color .25s, background .25s; }
.conn-card:hover { border-color: var(--line-2); }
.conn-card.on { border-color: rgba(89,216,248,.35); background: rgba(32,32,38,.4); }
.conn-card .ci { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,0.05); color: var(--bone); flex: none; }
.conn-card .ci svg { width: 22px; height: 22px; }
.conn-card.on .ci { background: rgba(89,216,248,.14); color: var(--ice); }
.conn-card .t { flex: 1; min-width: 0; }
.conn-card b { display: block; font-size: 14.5px; }
.conn-card small { display: block; color: var(--mist); font-size: 12.5px; line-height: 1.35; }
.conn-card.on small { color: #8EEBB0; }
.ok-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }

/* badges : collection complète */
.bdg-head { flex-wrap: wrap; gap: 14px; }
.bdg-meter { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; font-weight: 700; color: var(--ice); font-size: 14px; }
.bdg-meter .bar, .bdg-prog { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,0.058); overflow: hidden; }
.bdg-meter .bar span, .bdg-prog span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2F7FB5, #59D8F8, #B7F1FC); }
.bdg-onpage { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: rgba(10,10,12,.45); border: 1px solid var(--line); margin-bottom: 22px; }
.bdg-onpage .pf-badges { margin: 0; justify-content: flex-start; align-items: center; }
.bdg-grp + .bdg-grp { margin-top: 24px; }
.bdg-gt { display: flex; align-items: baseline; gap: 10px; font-size: 15px; font-weight: 750; margin-bottom: 12px; }
.bdg-gt .muted { font-size: 13px; font-weight: 600; }
.bdg-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.bdg-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; width: 100%; }
.bdg-top .tag { display: inline-flex; align-items: center; gap: 4px; }
.bdg-top .tag svg { width: 10px; height: 10px; }
.tag-lock { background: rgba(255,255,255,0.05); color: var(--mist); }
.bdg .how { color: var(--text-2); font-weight: 650; }
.bdg .bdg-pv { font-size: 12px; margin-top: -4px; }
.bdg-prog { flex: none; width: 100%; height: 6px; }
.bdg-act { margin-top: auto; padding-top: 4px; display: flex; width: 100%; justify-content: flex-start; }
.bdg .switch { position: relative; top: auto; right: auto; } .bdg .lk { position: static; }
.bdg-act .btn { gap: 8px; }
.bdg-pr { opacity: .75; font-weight: 600; }
.bdg.locked .bi { filter: grayscale(1); opacity: .6; }
.bdg.locked:hover .bi { filter: none; opacity: 1; }
.bdg.is-seal .bi { background: rgba(43,166,236,.14); box-shadow: 0 0 30px -6px rgba(43,166,236,.6); }
.bdg .bi[data-b="supporter"] { background: linear-gradient(120deg, #B7F1FC, #59D8F8, #EEF0EF, #59D8F8); background-size: 300% 100%; color: #0A0A0C; animation: gradMove 4s linear infinite; }
.bdg.locked .bi[data-b="supporter"] { animation: none; }

/* fonds et effets d'écran : vignettes */
.bg-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pick .pk-l { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pick .pk-l .tag { font-size: 10px; padding: 2px 6px; }
.sfx-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sfx-pick small { font-size: 11.5px; line-height: 1.35; font-weight: 500; text-align: center; }
.sfx-mini { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #0B0B0D; }
.sfx-mini.none { display: grid; place-items: center; color: var(--mist); border: 1px dashed var(--line-2); background: rgba(10,10,12,.5); }
.sfx-mini.none svg { width: 22px; height: 22px; }
.sfx-mini .pf { position: absolute; inset: 0; display: block; }
.sfx-mini .pf-bg { display: block; }
.sfx-mini .pf-sfx .osd { font-size: 7px; }
.sfx-mini .mini-card { position: absolute; left: 50%; top: 50%; width: 46%; height: 52%; transform: translate(-50%, -50%); border-radius: 10px; background: rgba(24,24,28,.55); border: 1px solid rgba(255,255,255,0.13); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; z-index: 1; backdrop-filter: blur(6px); }
.sfx-mini .mini-card b { width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--a1); }
.sfx-mini .mini-card i { display: block; width: 60%; height: 4px; border-radius: 3px; background: rgba(238,240,239,.7); }
.sfx-mini .mini-card i + i { width: 40%; background: rgba(238,240,239,.35); }
.sfx-mini .sfx-cinema .cin-bar, .sfx-mini .pf-sfx * { animation-play-state: running; }
.opt-link { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: linear-gradient(120deg, rgba(89,216,248,.1), rgba(24,24,28,.4)); }
.opt-link > div { flex: 1 1 220px; min-width: 0; }
.opt-link p { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.opt-link .ol-i { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(89,216,248,.14); color: var(--cyan); flex: none; }
.opt-link .ol-i svg { width: 20px; height: 20px; }
.pick .pk-l { overflow-wrap: anywhere; hyphens: auto; max-width: 100%; }
.conn-card .t { min-width: 0; }
.wid-h .t { min-width: 0; }
.wid-h { flex-wrap: wrap; } .wid-h .t { flex: 1 1 130px; }
.conn-card { flex-wrap: wrap; } .conn-card .t { flex: 1 1 130px; }
.bdg-head > div:first-child { flex: 1 1 240px; min-width: 0; }
.bdg-head .seg { max-width: 100%; overflow-x: auto; }
/* comptes reliés : couleurs de marque et coche */
.conn-card .ci { position: relative; transition: color .3s, background .3s, box-shadow .3s; }
.conn-card:hover .ci, .conn-card.on .ci { color: var(--bc); background: color-mix(in srgb, var(--bc) 15%, transparent); }
.conn-card.on .ci { box-shadow: 0 0 22px -8px var(--bc); }
.conn-card:hover { border-color: color-mix(in srgb, var(--bc) 40%, transparent); }
.conn-card .tk { position: absolute; right: -5px; bottom: -5px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: var(--cyan); color: var(--ink-on-cyan); border: 2px solid #151518; }
.conn-card .tk svg { width: 8px; height: 8px; }

/* section Musique */
.mu-now { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; background: linear-gradient(120deg, rgba(89,216,248,.08), rgba(24,24,28,.5) 60%); }
.mu-cover { position: relative; width: 104px; height: 104px; border-radius: 50%; background: conic-gradient(from 0deg, #1E1E24, var(--a1), var(--a2), #B7F1FC, #1E1E24); box-shadow: 0 0 40px -10px var(--a1), inset 0 0 0 6px rgba(10,10,12,.35); }
.mu-cover.on { animation: spin 10s linear infinite; }
.mu-cover i { position: absolute; inset: 40%; border-radius: 50%; background: #0F0F12; box-shadow: 0 0 0 4px rgba(255,255,255,0.072); }
.mu-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mu-info small { font-size: 12.5px; font-weight: 650; }
.mu-info b { font-family: var(--f-display); font-size: 22px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-info > span { font-size: 14px; }
.mu-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; }
.mu-bar .tm { font-family: var(--f-mono); color: var(--mist); }
.mu-bar .tr { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.072); overflow: hidden; }
.mu-bar .tr i { display: block; width: 22%; height: 100%; background: var(--cyan); border-radius: inherit; }
.mu-on { grid-column: 1 / -1; }
.mu-on .opt-row { border-top: 1px solid var(--line); padding-top: 12px; }
.mu-list { display: flex; flex-direction: column; gap: 8px; }
.mu-row { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) auto auto auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(10,10,12,.45); border: 1px solid var(--line); transition: border-color .2s, opacity .2s, box-shadow .2s; }
.mu-row.first { border-color: rgba(89,216,248,.35); }
.mu-row.dragging { opacity: .5; } .mu-row.over { box-shadow: 0 -3px 0 var(--cyan); }
.mu-row .grip { color: var(--mist); cursor: grab; display: grid; } .mu-row .grip svg { width: 16px; height: 16px; }
.mu-row .n { width: 18px; text-align: center; font-family: var(--f-mono); font-size: 12.5px; color: var(--mist); }
.mu-row .mc { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, hsl(var(--h) 60% 35%), hsl(calc(var(--h) + 60deg) 70% 60%)); }
.mu-row .mt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mu-row .mt .input { height: 30px; padding: 0 8px; font-weight: 650; font-size: 14px; background: transparent; border-color: transparent; }
.mu-row .mt .input:hover, .mu-row .mt .input:focus { border-color: var(--line-2); background: rgba(10,10,12,.5); }
.mu-row .mt .input.sub { height: 26px; font-weight: 500; font-size: 12.5px; color: var(--mist); }
.mu-row .tm { font-family: var(--f-mono); font-size: 12.5px; color: var(--mist); }
.mu-row .tag { display: inline-flex; align-items: center; gap: 4px; } .mu-row .tag svg { width: 10px; height: 10px; }
.mu-warn { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; color: #FFD699; } .mu-warn svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.mu-warn a { color: var(--cyan); font-weight: 650; }
.seg button svg { width: 15px; height: 15px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) { .mu-row { grid-template-columns: auto auto minmax(0, 1fr) auto auto; } .mu-row .n, .mu-row .tag, .mu-row .tm { display: none; } .mu-now { grid-template-columns: minmax(0, 1fr); justify-items: start; } .mu-cover { width: 80px; height: 80px; } }
.mu-row .mt .input { min-height: 0; line-height: 1.2; }
/* téléphone : la page défile, le fond reste en place (fixed = relatif à l'écran mis à l'échelle) */
.phone .scr-in > .pf { overflow-y: auto; overflow-x: hidden; align-content: safe center; padding: 70px 0 96px; scrollbar-width: none; }
.phone .scr-in > .pf::-webkit-scrollbar { display: none; }
.phone .scr-in > .pf > .pf-bg, .phone .scr-in > .pf > .pf-veil, .phone .scr-in > .pf > .pf-tint, .phone .scr-in > .pf > .pf-grain, .phone .scr-in > .pf > .pf-scan, .phone .scr-in > .pf > .pf-sfx { position: fixed; }
.phone .scr-in > .pf > .pf-player { position: fixed; }
.phone .scr-in > .pf > .pf-enter { position: fixed; }
.opt .seg { flex-wrap: wrap; max-width: 100%; }
.phone::before, .phone::after { right: 0; }
.yt-in { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.yt-in .search { flex: 1 1 240px; max-width: none; }
.yt-ex .chip, .mu-yt .chip { min-height: 32px; font-size: 12.5px; }
.yt-ex .chips { gap: 6px; }
.yt-cat { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.yt-cat:first-of-type { border-top: 0; }
.yt-ct { font: 600 11px/32px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.yt-ex .chip[aria-pressed="true"], .mu-yt .chip[aria-pressed="true"] { border-color: #FF4D6A; background: rgba(255,0,51,.12); color: #fff; }
.mu-yt .chip i, .mu-yt .chip svg { color: #FF4D6A; }
.yt-moment { margin-top: 12px; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 6px 14px; align-items: end; padding: 12px; border-radius: 14px; background: rgba(255,0,51,.06); border: 1px solid rgba(255,77,106,.22); }
.yt-moment .hint { grid-column: 1 / -1; margin: 4px 0 0; }
.ytm-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; background: var(--ti) center/cover, linear-gradient(135deg, #2a0a14, #1E1E24); display: grid; place-items: center; color: #fff; font-size: 20px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.ytm-thumb > * { filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); color: #FF2D55; }
.ytm-f { display: flex; align-items: end; gap: 8px; min-width: 0; }
.ytm-f .field { flex: 1 1 0; min-width: 0; }
.ytm-f .input { font-variant-numeric: tabular-nums; }
.ytm-arrow { padding-bottom: 12px; color: var(--mist); flex: none; }
.mu-cover.yt { border-radius: 18px; background: var(--ti) center/cover, conic-gradient(from 0deg, #1E1E24, var(--a1), var(--a2), #1E1E24); animation: none; }
.mu-cover.yt i { inset: auto 8px 8px auto; width: 22px; height: 16px; border-radius: 4px; background: #FF0033; box-shadow: none; }
@media (max-width: 520px) { .yt-moment { grid-template-columns: minmax(0, 1fr); } .ytm-thumb { width: 120px; } .yt-cat { grid-template-columns: minmax(0, 1fr); gap: 4px; } .yt-ct { line-height: 1.6; } }
.opt-h > .btn, .opt-h > .tag { flex: none; }

.st-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 22px 12px; color: var(--mist); font-size: 13.5px; line-height: 1.5; }
.st-empty svg, .st-empty > i { width: 22px; height: 22px; color: rgba(89,216,248,.5); }
.kpi .d.nd { color: var(--mist); font-weight: 500; }
.chart { position: relative; }
.chart-empty { position: absolute; inset: 0 0 26px 36px; display: grid; place-content: center; gap: 4px; text-align: center; pointer-events: none; }
.chart-empty b { font-size: 15px; color: var(--bone); }
.chart-empty span { font-size: 13px; color: var(--mist); }
.plus-need { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.plus-need li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255,194,102,.07); border: 1px solid rgba(255,194,102,.2); font-size: 14px; }
.plus-need li svg { color: #FFC266; width: 14px; height: 14px; flex: none; }

.linklike { background: none; border: 0; padding: 0; color: var(--cyan); font: inherit; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bn-prev { position: relative; height: 92px; border-radius: 12px; overflow: hidden; margin-top: 10px; background: var(--ti, none) center/cover, linear-gradient(120deg, #1E1E24, var(--a2) 50%, var(--a1)); display: flex; align-items: flex-end; padding: 10px 12px; border: 1px solid var(--line); }
.bn-prev video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bn-prev span { position: relative; font-size: 12px; font-weight: 650; padding: 3px 8px; border-radius: 6px; background: rgba(10,10,12,.7); color: var(--bone); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wid .opt-2 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.av-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.av-grid .pick { padding: 18px 8px 10px; gap: 12px; }
.av-mini { display: grid; place-items: center; height: 70px; }
.av-mini .pf-avatar { width: 52px; height: 52px; margin: 0; }
.av-mini .pf-avatar .core b { font-size: 20px; }
.av-mini .pf-avatar .core svg { width: 56%; }
.av-mini .pf-avatar .status { display: none; }
.av-mini .pf-avatar .ring { inset: -4px; }
.cur-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
.cur-grid .pick { padding: 14px 8px 10px; gap: 8px; }
.cur-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(89,216,248,.08); color: var(--cyan); }
.cur-ic svg { width: 18px; height: 18px; }
.cur-opts { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 16px; }
.cur-opts .field { min-width: 0; }
.cur-grid .pk-l, .av-grid .pk-l { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; text-align: center; }

/* ---------- Éditeur sur téléphone ---------- */
.pv-open, .pv-close { display: none; }
@media (max-width: 640px) {
  /* aperçu : petite barre collée en haut, plein écran à la demande */
  .cust-prev { position: sticky !important; top: 66px !important; z-index: 20; margin: -4px -2px 0; padding: 8px 8px 8px 14px; gap: 0; border-radius: 16px; background: rgba(18, 18, 21, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--edge-2, rgba(255,255,255,.12)); }
  .cust-prev .pv-bar #pv-dev { display: none; }
  .cust-prev .pv-open { display: inline-flex; }
  .cust-prev:not(.open) .pv-box, .cust-prev:not(.open) .pv-actions { display: none; }
  .cust-prev.open { position: fixed !important; inset: 0 !important; top: 0 !important; z-index: 95; margin: 0; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); border: 0; border-radius: 0; background: var(--g0, #0B0B0D); gap: 12px; }
  .cust-prev.open .pv-open { display: none; }
  .cust-prev.open .pv-close { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; }
  .cust-prev.open .pv-box { flex: 1; height: auto !important; min-height: 0; aspect-ratio: auto; border-radius: 18px; }
  .cust-prev .pv-actions { flex-wrap: nowrap; }
  .cust-prev .pv-actions .btn { flex: 1 1 0; min-width: 0; padding-inline: 8px; font-size: 13px; }
  .cust-prev .pv-actions .btn .ico { flex: none; }
  html.pv-lock, html.pv-lock body { overflow: hidden; }
  /* les animations d'entrée laissent une transformation qui piégerait l'aperçu plein écran dans la section */
  html.pv-lock .sect, html.pv-lock .view-enter { transform: none !important; filter: none !important; animation: none !important; }
  /* en-têtes d'options : le texte prend toute la largeur, le bouton passe dessous, l'étiquette reste en haut à droite */
  .opt-h { position: relative; flex-wrap: wrap; align-items: flex-start; }
  .opt-h > div { flex: 1 1 100%; min-width: 0; }
  .opt-h > .tag { position: absolute; top: 0; right: 0; }
  .opt-h:has(> .tag) h3 { padding-right: 86px; }
  .opt-h > .btn { margin-top: -4px; }
  .card-h:has(> div + .pill) { position: relative; flex-wrap: wrap; }
  .card-h:has(> div + .pill) > div { flex: 1 1 100%; min-width: 0; }
  .card-h:has(> div + .pill) > .pill { position: absolute; top: 0; right: 0; }
  .card-h:has(> div + .pill) h2 { padding-right: 96px; }
  /* barre du haut : le titre de la section reste lisible */
  .app-top { padding: 10px 12px; gap: 8px; }
  .app-top h1 { font-size: 16.5px; }
  .app-top [data-side] { min-width: 40px; }
  /* comptes reliés : catégories repliables tant qu'on ne cherche pas */
  .set-sec:not(.flt) .conn-group.shut .conn-grid { display: none; }
}
/* cibles tactiles plus grandes, sans changer la mise en page */
@media (pointer: coarse) {
  .switch input { inset: -10px -8px; }
  input[type=range].range { height: 36px; }
  input[type=range].range::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -9px; }
  input[type=range].range::-moz-range-thumb { width: 18px; height: 18px; }
}
.conn-g-b { all: unset; display: flex; align-items: center; gap: 8px; width: 100%; cursor: default; }
.conn-g-b .n { font-weight: 600; color: var(--mist); opacity: .7; }
.conn-g-b .chev { display: none; margin-left: auto; width: 14px; height: 14px; transition: transform .25s; }
.conn-group.shut .conn-g-b .chev { transform: rotate(-90deg); }
@media (max-width: 640px) { .conn-g-b .chev { display: inline-block; } .conn-g-b { cursor: pointer; padding: 6px 0; } .conn-g { margin: 10px 0 6px; padding: 4px 0; border-bottom: 1px solid var(--edge); } .conn-g-b:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; } }
/* petits textes plus lisibles au doigt (téléphone) */
@media (max-width: 640px) {
  .app-content .tag, .app-content .pick .pk-l .tag { font-size: 12px; padding: 3px 8px; letter-spacing: .01em; }
  .app-content small.muted, .app-content .hint, .app-content .opt-h p { font-size: 13px; }
  .app-content .cs-filter .chip .n { font-size: 12.5px; }
  .app-content .yt-ct { font-size: 12px; }
}
/* étiquette levo+ des choix : toujours en haut à gauche de la vignette, pour que tous les noms soient alignés */
.pick .pk-l { position: static; }
.pick .pk-l .tag { position: absolute; top: 8px; left: 8px; z-index: 2; }
/* fichiers du stockage (en ligne) : un son n'a pas d'image, une icône le remplace */
.gi .im-audio { display: grid; place-items: center; background: linear-gradient(135deg, rgba(89,216,248,.18), rgba(47,127,181,.08)); color: var(--cyan); }
.gi .im-audio .ico { width: 30px; height: 30px; }
.conn-login button.cl { cursor: pointer; font-family: inherit; }
.conn-login button.cl:hover { border-color: rgba(89,216,248,.5); color: var(--bone); }
/* Analyse du site (fondateur) */
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.adm-head p { max-width: 70ch; font-size: 14.5px; }
.adm-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.adm-nums > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-nums b { font-family: var(--f-display); font-size: 24px; line-height: 1.1; color: var(--bone); }
.adm-nums span { font-size: 13px; color: var(--text-2); }
.adm-vits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.adm-vit { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(10,10,12,.5); border: 1px solid var(--line); border-left: 3px solid var(--line-2); min-width: 0; }
.adm-vit.ok { border-left-color: #3BD671; } .adm-vit.warn { border-left-color: #FFC266; } .adm-vit.down { border-left-color: #FF4D6D; }
.adm-vit .k { font-size: 13px; color: var(--text-2); }
.adm-vit b { font-family: var(--f-display); font-size: 26px; color: var(--bone); }
.adm-vit small { font-size: 12.5px; color: var(--text-2); }
.adm-errs { display: flex; flex-direction: column; gap: 8px; }
.adm-errs > div { display: flex; gap: 12px; align-items: baseline; min-width: 0; font-size: 13.5px; }
.adm-errs .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
@media (max-width: 900px) { .adm-vits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* levo+ : ton curseur, ton son des clics, tes icônes de liens */
.own { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.own-t { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.own-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; font-size: 14px; }
.own-cur { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.own-cur img { max-width: 32px; max-height: 32px; }
.own-n { font-family: var(--f-mono); font-size: 13px; color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.own-vol { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.own-vol .range { width: 120px; }
.drop.drop-sm { padding: 16px; min-height: 0; }
.lrow .pi-up { cursor: pointer; position: relative; overflow: hidden; }
.lrow .pi-up img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.lrow .pi-up:hover { outline: 2px solid rgba(89,216,248,.5); outline-offset: 1px; }
