/* Void Vice — ajouts à la coquille Void Studio (web, pas de barre Tauri). */
.side { padding-top: 16px; }
.brand div { line-height: 1.2; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.search-btn { display: flex; align-items: center; gap: 8px; margin: 0 2px 10px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; font: inherit; }
.search-btn span { flex: 1; text-align: left; }
.search-btn kbd { font: 11px var(--mono); }
.search-btn svg.i { width: 15px; height: 15px; }
.nlist { padding-top: 14px; }
.ndoc { padding-top: 34px; }
.prog { left: 224px; }
.login .err { color: var(--red); min-height: 1em; margin: 0; }
.small { font-size: 12.5px; }

/* Chips & statuts */
.vchip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); white-space: nowrap; }
.vprio { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.vsteps { display: flex; gap: 6px; margin: 0 0 22px; flex-wrap: wrap; }
.vstep { height: 30px; padding: 0 14px; border-radius: 15px; border: 1px solid var(--line-2); background: none; color: var(--text-2); cursor: pointer; font: inherit; font-size: 12.5px; }
.vstep:hover { border-color: var(--c); color: var(--text); }
.vstep.on { background: color-mix(in srgb, var(--c) 20%, transparent); border-color: var(--c); color: var(--text); font-weight: 600; }
.vcrumbs { display: flex; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.vcrumbs a { color: var(--text-2); text-decoration: none; }
.vcrumbs a:hover { color: var(--accent-2); }

/* Accueil */
.vhero { display: flex; align-items: center; gap: 20px; background: radial-gradient(120% 160% at 0% 0%, rgba(255, 111, 174, .22), transparent 55%), radial-gradient(120% 160% at 100% 100%, rgba(79, 216, 235, .2), transparent 55%), var(--panel); border: 1px solid var(--line); }
.vpct { text-align: right; }
.vpct b { display: block; font-size: 34px; line-height: 1; background: linear-gradient(90deg, var(--pink), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vpct small { color: var(--muted); }
.vstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.vstat { display: flex; gap: 14px; align-items: center; text-align: left; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; font: inherit; }
.vstat:hover { border-color: var(--line-2); }
.vstat > svg.i { width: 26px; height: 26px; color: var(--accent-2); }
.vstat small { color: var(--muted); display: block; }
.vstat b { font-size: 22px; display: block; line-height: 1.2; }
.vstat span { color: var(--muted); font-size: 12px; }
.vbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line); gap: 2px; }
.vlegend { display: flex; gap: 16px; margin-top: 10px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.vlegend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.vtwo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vtwo .card { margin: 0; }
.row .txt small svg.i { width: 13px; height: 13px; }

/* Arbre du cahier */
.vtree { padding-left: calc(6px + var(--d, 0) * 16px); align-items: center; gap: 6px; position: relative; }
.vtree.over { outline: 1px dashed var(--accent); }
.vtree .em { font-size: 15px; width: 20px; }
.vtree .t b { font-size: 13.5px; }
.vtree .tw { width: 16px; height: 18px; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; transition: transform .12s; flex: none; font-size: 11px; }
.vtree .tw.open { transform: rotate(90deg); }
.vtree .tw.none { cursor: default; }
.vdot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.vadd { opacity: 0; width: 22px; height: 22px; }
.vtree:hover .vadd { opacity: 1; }
.vlinked { margin-top: 46px; border-top: 1px solid var(--line); padding-top: 18px; }
.vlinked-h { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; }
.vlinked-h h3 { margin: 0; font-size: 14px; }
.vlinked-h .sp { flex: 1; }

/* Assets */
.vcats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.vcat { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); cursor: pointer; font: inherit; font-size: 13px; }
.vcat:hover { border-color: var(--line-2); color: var(--text); }
.vcat.on { background: var(--accent-bg); border-color: var(--accent); color: var(--text); }
.vcat small { color: var(--muted); }
.tools select.in { width: auto; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.agrid.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.acard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; transition: border-color .12s, transform .12s; }
.acard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.athumb { aspect-ratio: 4 / 3; background: #07060c center / cover no-repeat; position: relative; display: grid; place-items: center; overflow: hidden; }
.athumb video { width: 100%; height: 100%; object-fit: cover; }
.athumb.ext { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--bg-2)), var(--bg-2)); grid-template-rows: auto auto; align-content: center; gap: 4px; }
.athumb.ext span { font-size: 34px; }
.athumb.ext b { font: 600 12px var(--mono); color: var(--text-2); letter-spacing: 1px; }
.athumb.ext.big { aspect-ratio: 16 / 9; border-radius: 12px; }
.aplay { position: absolute; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .55); display: grid; place-items: center; }
.aplay svg.i { width: 16px; height: 16px; color: #fff; }
.acard-b { padding: 9px 11px 10px; }
.acard-b b { display: block; font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard-b small { color: var(--muted); font-size: 12px; }
.acard-f { display: flex; align-items: center; margin-top: 6px; }
.acard-f .sp { flex: 1; }
.vdrop { border: 2px dashed var(--line-2); border-radius: 16px; padding: 60px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vdrop svg.i { width: 30px; height: 30px; color: var(--accent-2); }
.vdrop b { color: var(--text); font-size: 15px; }
.main.dropping::after { content: "Lâche pour importer"; position: fixed; inset: 0 0 0 224px; display: grid; place-items: center; font-size: 20px; font-weight: 700; background: rgba(11, 10, 18, .78); border: 2px dashed var(--accent); pointer-events: none; z-index: 50; }
.adetail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.apreview { width: 100%; max-height: 62vh; object-fit: contain; border-radius: 12px; background: #07060c; display: block; }
.aright, .tform { display: flex; flex-direction: column; gap: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label.f { display: flex; flex-direction: column; gap: 5px; }
label.f > span { font-size: 12px; color: var(--muted); font-weight: 600; }
textarea.in { resize: vertical; min-height: 80px; padding: 9px 11px; font: inherit; line-height: 1.5; }

/* Tâches */
.col { flex: 1 1 0; min-width: 230px; }
.tcard { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: grab; }
.tcard:hover { border-color: var(--line-2); }
.tcard.lifted { opacity: .4; }
.tc-t { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; line-height: 1.35; }
.tc-f { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.tc-f:empty { display: none; }
.tc-f .sp { flex: 1; }
.tadd { justify-content: flex-start; color: var(--muted); }

/* Recherche */
.vsearch { margin-top: 12px; display: flex; flex-direction: column; max-height: 60vh; overflow: auto; }
.vsearch .row { border: 0; background: none; color: inherit; font: inherit; text-align: left; border-radius: 8px; width: 100%; }
.vsearch .row:hover { background: var(--hover); }
.vfeed .row .txt b { white-space: normal; }

@media (max-width: 900px) {
  .vstats, .vtwo, .adetail { grid-template-columns: 1fr; }
}
@media (min-width: 821px) { .mobile-bar { display: none; } }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .shell .side { position: fixed; padding-top: 16px; }
  .shell .main { min-height: 0; }
  .prog { left: 0; }
  .main.dropping::after { inset: 0; }
  .notes { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .notes .nlist { max-height: 34vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .ndoc { padding: 24px 18px 120px; }
  .page { padding: 24px 16px 100px; }
  .vhero { flex-wrap: wrap; }
}
.snav .badge:empty { display: none; }
.vtree .tw { font-size: 14px; }

/* Arborescence (portée de l'artifact « Voidlabs — L'arborescence ») */
.vt { --void: #07060f; --vpanel: rgba(16, 14, 29, .86); --vline: #2a2345; --vfg: #ece9ff; --vmute: #9a94bd; --violet: #9a6cff; --vcyan: #5fe8f0;
  position: relative; height: 100%; overflow: hidden; color: var(--vfg); font-family: var(--sans);
  background: radial-gradient(70% 55% at 85% 0%, #1d1440 0%, transparent 60%), radial-gradient(60% 50% at 0% 100%, #0b2a33 0%, transparent 60%), var(--void); }
.vt-stars { position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1px 1px at 20% 30%, #fff8, transparent), radial-gradient(1px 1px at 70% 80%, #fff6, transparent), radial-gradient(1.5px 1.5px at 40% 60%, #9a6cff99, transparent), radial-gradient(1px 1px at 90% 20%, #5fe8f088, transparent);
  background-size: 230px 230px, 310px 310px, 410px 410px, 190px 190px; }
.vt-svg { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; display: block; }
.vt-svg.drag { cursor: grabbing; }
.vt .link { fill: none; stroke-width: 1.6; }
.vt .node { cursor: pointer; outline: none; }
.vt .node rect.pill { stroke-width: 1.2; }
.vt .node text { font-family: var(--sans); font-weight: 800; fill: var(--vfg); pointer-events: none; }
.vt .node text.sub { font-family: var(--mono); font-weight: 500; font-size: 10.5px; fill: var(--vmute); }
.vt .node .badge text { font-family: var(--mono); font-size: 10px; font-weight: 500; }
.vt .node:hover rect.pill { filter: brightness(1.35); }
.vt .node.sel rect.pill { stroke-width: 2.4; }
.vt .dim { opacity: .18; }
.vt .hit rect.pill { stroke: #fff !important; stroke-width: 2.4; }
.vt-head, .vt-tools, .vt-legend, .vt-stats, .vt-hint, .vt-card { position: absolute; z-index: 3; }
.vt-head { top: 16px; left: 16px; display: flex; gap: 12px; align-items: center; pointer-events: none; }
.vt-head > svg { width: 34px; height: 34px; filter: drop-shadow(0 0 14px #9a6cff99); }
.vt-head h1 { margin: 0; font-size: 22px; font-weight: 900; line-height: 1.05; letter-spacing: -.01em; }
.vt-head .g, .vt-stats b { background: linear-gradient(100deg, var(--violet), var(--vcyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vt-head p { margin: 2px 0 0; font: 500 11px var(--mono); color: var(--vmute); }
.vt-tools { top: 16px; right: 16px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 340px); }
.vt-btn, .vt-search { font: 800 12px/1 var(--sans); letter-spacing: .04em; color: var(--vfg); background: var(--vpanel); border: 1px solid var(--vline); border-radius: 999px; padding: 10px 14px; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.vt-btn:hover { border-color: var(--violet); }
.vt-btn.pri { background: linear-gradient(100deg, var(--violet), var(--vcyan)); color: var(--void); border: 0; }
.vt-search { cursor: text; width: 190px; font-weight: 600; outline: none; }
.vt-search::placeholder { color: var(--vmute); }
.vt-search:focus { border-color: var(--vcyan); }
.vt-count { font: 500 11px var(--mono); color: var(--vmute); align-self: center; padding: 0 4px; }
.vt-legend { left: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 400px); }
.vt-legend button { display: flex; align-items: center; gap: 7px; font: 800 11.5px var(--sans); color: var(--vfg); background: var(--vpanel); border: 1px solid var(--vline); border-radius: 999px; padding: 7px 11px; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.vt-legend i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.vt-stats { right: 16px; bottom: 16px; display: flex; gap: 6px; }
.vt-stats div { background: var(--vpanel); border: 1px solid var(--vline); border-radius: 14px; padding: 8px 12px; text-align: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.vt-stats b { display: block; font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.vt-stats span { font: 500 10px var(--mono); color: var(--vmute); }
.vt-hint { left: 50%; transform: translateX(-50%); bottom: 70px; margin: 0; font: 600 11px var(--mono); color: var(--vmute); white-space: nowrap; transition: opacity 1s; pointer-events: none; }
.vt-card { right: 16px; top: 76px; width: min(360px, calc(100% - 32px)); max-height: calc(100% - 180px); overflow: auto; background: rgba(13, 11, 28, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--vline); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.vt-card[hidden] { display: none; }
.vt-crumb { font: 500 11px var(--mono); color: var(--vmute); line-height: 1.5; padding-right: 30px; }
.vt-card h2 { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.vt-where { font: 500 12px var(--mono); color: var(--vcyan); word-break: break-word; }
.vt-card p { margin: 0; font-size: 14px; line-height: 1.55; color: #d8d3f2; }
.vt-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.vt-card li button { font: 700 12px var(--sans); color: var(--vfg); background: #ffffff0c; border: 1px solid var(--vline); border-radius: 999px; padding: 5px 10px; cursor: pointer; }
.vt-card li button:hover { border-color: var(--vcyan); }
.vt-open { align-self: flex-start; font: 800 13px/1 var(--sans); color: var(--void); background: linear-gradient(100deg, var(--violet), var(--vcyan)); padding: 10px 14px; border-radius: 999px; border: 0; cursor: pointer; }
.vt-open[hidden] { display: none; }
.vt-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; padding: 0; font-size: 16px; letter-spacing: 0; }
@media (max-width: 1100px) {
  .vt-head p { display: none; }
  .vt-tools { top: 62px; left: 16px; right: 16px; max-width: none; justify-content: flex-start; }
  .vt-stats, .vt-hint { display: none; }
  .vt-legend { max-width: calc(100% - 32px); }
  .vt-card { top: auto; bottom: 60px; max-height: 48%; }
}
