/* Void Studio — coquille de l'app (le reste vient de crates.css : boutons, fenêtres, éditeur par blocs). */
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; user-select: none; -webkit-user-select: none; }
input, textarea, [contenteditable], .nb-ed, .md { user-select: text; -webkit-user-select: text; }
#app { height: 100%; }
.drag { position: fixed; top: 0; left: 0; right: 0; height: 38px; z-index: 5; }
.shell { display: grid; grid-template-columns: 224px 1fr; height: 100%; }

/* Barre latérale */
.side { background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 46px 10px 12px; gap: 2px; position: relative; z-index: 6; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 16px; font-weight: 700; font-size: 15px; letter-spacing: .2px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.snav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-2); cursor: pointer; border: 0; background: none; width: 100%; text-align: left; font: inherit; }
.snav:hover { background: var(--hover); color: var(--text); }
.snav.on { background: var(--accent-bg); color: var(--text); }
.snav.on svg.i { color: var(--accent-2); }
.snav .badge { margin-left: auto; }
.side .grow { flex: 1; }
.syncline { font-size: 12px; color: var(--muted); padding: 6px 10px; display: flex; align-items: center; gap: 7px; }
.syncline .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.syncline .dot.warn { background: var(--yellow); }
.syncline .dot.err { background: var(--red); }
.me { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 9px; cursor: pointer; }
.me:hover { background: var(--hover); }
.av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--c, var(--accent)); flex: none; }
.av.s { width: 20px; height: 20px; font-size: 10px; }
.me .who { min-width: 0; line-height: 1.25; }
.me .who small { color: var(--muted); font-size: 11.5px; display: block; }

/* Contenu */
.main { overflow: auto; position: relative; }
.page { max-width: 980px; margin: 0 auto; padding: 46px 36px 120px; }
.head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.head h1 { margin: 0; font-size: 26px; letter-spacing: -.3px; }
.head p { margin: 4px 0 0; color: var(--muted); }
.head .sp { flex: 1; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.card-h h2 { margin: 0; font-size: 14.5px; }
.card-h .sp { flex: 1; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); min-height: 30px; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--bg-2); }
.row .ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--accent)) 15%, transparent); color: var(--c, var(--accent)); flex: none; font-size: 15px; }
.row .txt { flex: 1; min-width: 0; }
.row .txt b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .txt small { color: var(--muted); font-size: 12.5px; display: flex; gap: 6px; align-items: center; }
.row .acts { display: flex; gap: 6px; flex: none; }
.row.click { cursor: pointer; }
.hello { padding: 26px 26px 22px; border-radius: 16px; margin-bottom: 22px; background: radial-gradient(120% 140% at 0% 0%, rgba(139, 123, 255, .26), transparent 60%), radial-gradient(120% 140% at 100% 100%, rgba(79, 216, 235, .16), transparent 55%), var(--panel); border: 1px solid var(--line); display: flex; align-items: center; gap: 18px; }
.hello h1 { margin: 0 0 4px; font-size: 24px; }
.hello p { margin: 0; color: var(--text-2); }
.hello .sp { flex: 1; }
.allgood { text-align: center; padding: 36px 20px; color: var(--muted); }
.allgood b { color: var(--text); display: block; font-size: 16px; margin-bottom: 4px; }

/* Fichiers */
.tools { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.tools .in { max-width: 280px; }
.dir { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); cursor: pointer; color: var(--text-2); font-weight: 600; font-size: 13px; }
.dir .tw { transition: transform .15s; display: inline-block; width: 12px; color: var(--muted); }
.dir.closed .tw { transform: rotate(-90deg); }
.dir small { color: var(--muted); font-weight: 400; }
.files .row { padding-left: calc(16px + var(--d, 0) * 18px); }
.dropzone { position: fixed; inset: 0; z-index: 100; background: rgba(11, 10, 18, .78); display: grid; place-items: center; pointer-events: none; }
.dropzone div { border: 2px dashed var(--accent); border-radius: 18px; padding: 40px 60px; font-size: 18px; font-weight: 600; background: var(--accent-bg); }

/* Barre de progression + lecteur */
.prog { position: fixed; left: 224px; right: 0; top: 0; z-index: 20; background: var(--panel-2); border-bottom: 1px solid var(--line); padding: 9px 18px 9px; font-size: 12.5px; display: flex; align-items: center; gap: 12px; }
.prog .bar { flex: 1; height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; max-width: 340px; }
.prog .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); width: 0; transition: width .15s; }
.player { position: fixed; left: 224px; right: 0; bottom: 0; z-index: 20; background: var(--panel-2); border-top: 1px solid var(--line); padding: 10px 18px; display: flex; align-items: center; gap: 14px; }
.player audio { flex: 1; height: 34px; }
.player b { max-width: 300px; }

/* Notes */
.notes { display: grid; grid-template-columns: 270px 1fr; height: 100%; }
.nlist { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; padding-top: 40px; }
.nlist .top { display: flex; gap: 6px; padding: 6px 12px 10px; }
.nlist .items { overflow: auto; flex: 1; padding: 0 8px 20px; }
.nitem { display: flex; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; align-items: flex-start; }
.nitem:hover { background: var(--hover); }
.nitem.on { background: var(--accent-bg); }
.nitem .em { font-size: 17px; line-height: 1.3; width: 22px; text-align: center; flex: none; }
.nitem .t { min-width: 0; flex: 1; }
.nitem .t b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nitem .t small { color: var(--muted); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nitem .new { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); margin-top: 7px; flex: none; }
.nview { overflow: auto; min-height: 0; }
.ndoc { max-width: 780px; margin: 0 auto; padding: 60px 48px 160px; }
.ndoc .emo { font-size: 46px; line-height: 1; cursor: pointer; border: 0; background: none; padding: 4px; border-radius: 10px; }
.ndoc .emo:hover { background: var(--hover); }
.ndoc .ttl { font-size: 34px; font-weight: 750; border: 0; outline: 0; background: none; color: var(--text); width: 100%; margin: 10px 0 6px; font-family: inherit; letter-spacing: -.4px; }
.ndoc .meta { color: var(--muted); font-size: 12.5px; display: flex; gap: 10px; align-items: center; margin-bottom: 22px; }
.ndoc .meta .sp { flex: 1; }
.clash { background: color-mix(in srgb, var(--yellow) 14%, var(--panel)); border: 1px solid color-mix(in srgb, var(--yellow) 45%, transparent); border-radius: 10px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.clash span { flex: 1; }
.emojis { display: grid; grid-template-columns: repeat(8, 34px); gap: 4px; }
.emojis button { font-size: 20px; border: 0; background: none; border-radius: 7px; cursor: pointer; height: 34px; }
.emojis button:hover { background: var(--hover); }

/* Activité */
.day { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; margin: 22px 0 8px 2px; }

/* Connexion */
.login { height: 100%; display: grid; place-items: center; background: radial-gradient(60% 60% at 30% 20%, rgba(139, 123, 255, .22), transparent 70%), radial-gradient(50% 50% at 80% 90%, rgba(79, 216, 235, .14), transparent 70%), var(--bg); }
.login form { width: 340px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.login img { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 4px; }
.login h1 { margin: 0; text-align: center; font-size: 22px; }
.login p { margin: 0 0 6px; text-align: center; color: var(--muted); font-size: 13px; }
.login details { font-size: 12px; color: var(--muted); }
.login .btn { height: 40px; margin-top: 4px; }

/* Prods : tableau */
.page.wide { max-width: none; padding-left: 28px; padding-right: 28px; }
.addlink { max-width: 460px !important; }
.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 20px; align-items: flex-start; min-height: 60vh; }
.col { flex: 0 0 250px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; max-height: calc(100vh - 210px); transition: border-color .12s, background .12s; }
.col.dim { opacity: .75; flex-basis: 210px; }
.col.over { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--bg-2)); }
.col-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 2px solid color-mix(in srgb, var(--c) 60%, transparent); }
.col-h svg.i { color: var(--c); }
.col-h b { flex: 1; font-size: 13.5px; }
.col-b { padding: 10px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; min-height: 80px; }
.col-empty { color: var(--muted); font-size: 12.5px; text-align: center; padding: 22px 8px; border: 1px dashed var(--line-2); border-radius: 10px; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; transition: border-color .12s, transform .12s; touch-action: none; }
.pcard:hover { border-color: var(--line-2); }
.pcard.lifted { opacity: .35; }
.pcard.ghost { position: fixed; z-index: 300; pointer-events: none; transform: rotate(2.5deg); box-shadow: var(--shadow); opacity: .95; }
.thumb { aspect-ratio: 16 / 9; background: #000 center / cover; position: relative; }
.playyt { position: absolute; inset: 0; margin: auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .12s, background .12s; backdrop-filter: blur(4px); }
.pcard:hover .playyt { opacity: 1; }
.playyt:hover { background: var(--accent); }
.newdot { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 0, 0, .4); }
.pc-b { padding: 10px 12px 10px; display: flex; flex-direction: column; gap: 3px; }
.pc-t { font-weight: 600; font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.pc-chips:empty { display: none; }
.pc-f { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.pc-f .sp { flex: 1; }
.like { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; display: flex; align-items: center; gap: 4px; padding: 0 2px; }
.like.on, .like:hover { color: var(--pink); }
.pc-i { color: var(--muted); display: inline-flex; }
.pc-i svg.i { width: 15px; height: 15px; }
.pc-i.ok { color: var(--green); }
.pthumb { width: 56px; height: 32px; border-radius: 6px; background: #000 center / cover; flex: none; }

/* Prods : fiche */
.pdetail { margin: -6px -4px; }
.pd-top { display: flex; gap: 18px; align-items: stretch; position: relative; }
.pd-thumb { width: 250px; aspect-ratio: 16 / 9; border-radius: 12px; background: #000 center / cover; flex: none; cursor: pointer; display: grid; place-items: center; position: relative; overflow: hidden; }
.pd-thumb span { background: rgba(0, 0, 0, .6); color: #fff; padding: 7px 14px; border-radius: 20px; display: flex; gap: 6px; align-items: center; font-weight: 600; font-size: 13px; backdrop-filter: blur(4px); transition: background .12s; }
.pd-thumb:hover span { background: var(--accent); }
.pd-head { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-right: 30px; }
.pd-title { font-size: 21px; font-weight: 700; border: 0; background: none; color: var(--text); outline: 0; font-family: inherit; width: 100%; padding: 2px 0; }
.pd-likes { display: flex; gap: 10px; align-items: center; margin-top: auto; font-size: 13px; }
.pd-close { position: absolute; top: -4px; right: -4px; }
.steps { display: flex; gap: 6px; margin: 18px 0; flex-wrap: wrap; }
.step { flex: 1; min-width: 110px; display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text-2); cursor: pointer; font-weight: 500; font-size: 13px; }
.step:hover { border-color: var(--c); color: var(--text); }
.step.on { background: color-mix(in srgb, var(--c) 22%, var(--panel-2)); border-color: var(--c); color: var(--text); }
.step.on svg.i { color: var(--c); }
.pd-grid { display: grid; grid-template-columns: 1fr 300px; gap: 18px; }
.pd-fields { display: flex; flex-direction: column; gap: 10px; }
.pd-fields .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-side { display: flex; flex-direction: column; gap: 10px; }
.slot { background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; }
.slot-h { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 8px; }
.slot-h svg.i { color: var(--accent-2); }
.slot-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.slot .row .txt b { font-size: 13px; }
.pd-meta { color: var(--muted); font-size: 12px; margin-top: auto; }

.pd-fields select.in { height: 38px; }
