/* Interface « terminal » : pages Enquêtes (/reports/investigations) et Archives (/archives, /archives/organization)
   reconstruites selon les maquettes Enquetes.dc et Archives.dc (structure posée par terminal-enquetes.js).
   Chargée après terminal.css et terminal-reports.css : surcharge leur premier habillage sur ces seules pages. */

html[data-interface="terminal"]:not(#tq) :is(#labView,#archiveView){
  --tq-mono:var(--mono,"Departure Mono",monospace);
  --tq-sans:"Segoe UI",system-ui,sans-serif;
  --tq-or:var(--terminal-orange,#f47732);
  --tq-glow:0 0 8px rgba(244,119,50,.45);
  --tq-stripes:repeating-linear-gradient(135deg,rgba(244,119,50,.22) 0 7px,transparent 7px 14px);
}
@keyframes tq-blink{50%{opacity:.2}}

/* ══════════════ Enquêtes : en-tête, chiffres et niveaux de lecture ══════════════ */
html[data-interface="terminal"]:not(#tq) #labView > :is(.tq-enq-hero,.tq-levels){display:none}
html[data-interface="terminal"]:not(#tq) #labView:has(> #reportLibrary:not([hidden])) > .tq-enq-hero{display:flex}
html[data-interface="terminal"]:not(#tq) #labView:has(> #reportLibrary:not([hidden])) > .tq-levels{display:grid}
html[data-interface="terminal"]:not(#tq) #labView:has(> #reportLibrary:not([hidden])) .report-section-nav::before{content:var(--ekl-i18n-925df7ada6,"EKL / RAPPORTS / ENQUÊTES DOCUMENTÉES")}
html[data-interface="terminal"]:not(#tq):lang(en) #labView:has(> #reportLibrary:not([hidden])) .report-section-nav::before{content:var(--ekl-i18n-a79370fbd9,"EKL / REPORTS / DOCUMENTED INVESTIGATIONS")}
html[data-interface="terminal"]:not(#tq) #labView .tq-tabcount{display:none}
html[data-interface="terminal"]:not(#tq) #labView:has(> #reportLibrary:not([hidden])) [data-report-nav="browse"] .tq-tabcount:not([hidden]){display:inline-block;margin-left:8px;padding:1px 5px;border:1px solid rgba(244,119,50,.6);font-size:9px;line-height:1.3;letter-spacing:.04em;text-shadow:none}

@media (min-width:1100px){
  html[data-interface="terminal"]:not(#tq) #labView.active:has(> #reportLibraryFilters:not([hidden])):has(> #reportLibrary:not([hidden])){column-gap:20px;grid-template-columns:minmax(260px,290px) minmax(0,1fr)}
  html[data-interface="terminal"]:not(#tq) #labView.active:has(> #reportLibrary:not([hidden])) > :is(.tq-enq-hero,.tq-levels){grid-column:1 / -1}
  html[data-interface="terminal"]:not(#tq) #labView.active:has(> #reportLibrary:not([hidden])) > .tq-enq-hero{grid-row:2}
  html[data-interface="terminal"]:not(#tq) #labView.active:has(> #reportLibrary:not([hidden])) > .tq-levels{grid-row:3}
  html[data-interface="terminal"]:not(#tq) #labView.active:has(> #reportLibrary:not([hidden])) > #reportLibraryFilters:not([hidden]){grid-row:4}
  html[data-interface="terminal"]:not(#tq) #labView.active:has(> #reportLibraryFilters:not([hidden])) > #reportLibrary:not([hidden]){grid-row:4}
}

html[data-interface="terminal"]:not(#tq) #labView .tq-enq-hero{flex-wrap:wrap;gap:20px 32px;align-items:flex-end;margin:0;padding:6px 0 20px}
html[data-interface="terminal"]:not(#tq) #labView .tq-enq-hero-text{flex:999 1 420px;min-width:0}
html[data-interface="terminal"]:not(#tq) :is(#labView,#archiveView) .tq-eyebrow{margin:0;font:9.5px/1.4 var(--tq-mono);letter-spacing:.16em;color:var(--tq-or);text-shadow:var(--tq-glow);text-transform:uppercase}
html[data-interface="terminal"]:not(#tq) #labView .tq-enq-title{margin:8px 0 6px;font:400 clamp(26px,3vw,36px)/1.1 var(--tq-mono);letter-spacing:-.01em;color:#f2f2f2;text-transform:none}
html[data-interface="terminal"]:not(#tq) #labView .tq-enq-title::after{content:none}
html[data-interface="terminal"]:not(#tq) #labView .tq-enq-lede{margin:0;max-width:680px;color:#c9cad1;font:14.5px/1.5 var(--tq-sans)}
html[data-interface="terminal"]:not(#tq) #labView .tq-enq-meta{margin:10px 0 0;font:10px/1.5 var(--tq-mono);letter-spacing:.08em;color:#8b8d98}
html[data-interface="terminal"]:not(#tq) #labView .tq-stats{position:relative;flex:1 1 340px;max-width:480px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid rgba(255,255,255,.1);background:#050506}
html[data-interface="terminal"]:not(#tq) #labView .tq-corner{position:absolute;width:8px;height:8px;pointer-events:none}
html[data-interface="terminal"]:not(#tq) #labView .tq-corner--tl{top:-1px;left:-1px;border-top:1px solid var(--tq-or);border-left:1px solid var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #labView .tq-corner--br{bottom:-1px;right:-1px;border-bottom:1px solid var(--tq-or);border-right:1px solid var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #labView .tq-stat{display:flex;flex-direction:column;gap:2px;min-width:0;padding:12px 14px}
html[data-interface="terminal"]:not(#tq) #labView .tq-stat + .tq-stat{border-left:1px solid rgba(255,255,255,.1)}
html[data-interface="terminal"]:not(#tq) #labView .tq-stat-value{font:400 28px/1.1 var(--tq-mono);color:#f2f2f2}
html[data-interface="terminal"]:not(#tq) #labView .tq-stat-value.is-accent{color:var(--tq-or);text-shadow:0 0 10px rgba(244,119,50,.5)}
html[data-interface="terminal"]:not(#tq) #labView .tq-stat-label{font:8.5px/1.35 var(--tq-mono);letter-spacing:.12em;color:#8b8d98}

html[data-interface="terminal"]:not(#tq) #labView .tq-levels{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));margin:0 0 20px;border:1px solid rgba(255,255,255,.1);background:#08080a}
html[data-interface="terminal"]:not(#tq) #labView .tq-level{position:relative;min-width:0;padding:14px 16px;border-right:1px solid rgba(255,255,255,.08)}
html[data-interface="terminal"]:not(#tq) #labView .tq-level:last-child{border-right:0}
html[data-interface="terminal"]:not(#tq) #labView .tq-level-kicker{margin:0;font:400 9.5px/1.4 var(--tq-mono);letter-spacing:.14em;color:var(--tq-or);text-transform:none}
html[data-interface="terminal"]:not(#tq) #labView .tq-level-kicker::before{content:none}
html[data-interface="terminal"]:not(#tq) #labView .tq-level-lead{margin:6px 0 0;font:15px/1.3 var(--tq-mono);color:#f2f2f2}
html[data-interface="terminal"]:not(#tq) #labView .tq-level-note{margin:4px 0 0;font:12px/1.5 var(--tq-sans);color:#8b8d98}
html[data-interface="terminal"]:not(#tq) #labView .tq-level-head{display:flex;align-items:center;gap:8px;margin:0;padding-right:84px;font:9.5px/1.4 var(--tq-mono);letter-spacing:.14em;color:#e4e4e8}
html[data-interface="terminal"]:not(#tq) #labView .tq-level-head.is-accent,html[data-interface="terminal"]:not(#tq) #labView .tq-box-head.is-accent{color:var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #labView .tq-level-text{margin:6px 0 0;font:12.5px/1.55 var(--tq-sans);color:#c9cad1}
html[data-interface="terminal"]:not(#tq) #labView .tq-check{flex:none;width:16px;height:16px;display:grid;place-items:center;background:#f2f2f2;color:#050505;font:10px/1 var(--tq-mono);letter-spacing:0}
html[data-interface="terminal"]:not(#tq) #labView .tq-check--small{width:13px;height:13px;font-size:8.5px}
html[data-interface="terminal"]:not(#tq) #labView .tq-stamp{position:absolute;top:10px;right:12px;padding:1px 6px;border:2px solid var(--tq-or);color:var(--tq-or);font:8.5px/1.4 var(--tq-mono);letter-spacing:.14em;transform:rotate(-5deg);pointer-events:none;white-space:nowrap}
html[data-interface="terminal"]:not(#tq) #labView .tq-stamp--small{top:6px;right:8px;padding:0 5px;border-width:1.5px;font-size:8px;transform:rotate(-4deg)}

/* ══════════════ Enquêtes : panneau des paramètres (formulaire d'origine réorganisé) ══════════════ */
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters:has(> .tq-filters){padding:0;border:0;background:none;box-shadow:none}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-filters{display:flex;flex-direction:column;gap:0;margin:0;padding:0 0 16px;background:#08080a;border:1px solid rgba(255,255,255,.08)}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-filters .tq-native,
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-filters .tq-native-grid{display:none !important}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-filters .tq-f-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin:0;padding:16px 16px 0;border:0}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-head .eyebrow{margin:0;font:9.5px/1.4 var(--tq-mono);letter-spacing:.16em;color:var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-head h2{margin:5px 0 0;font:400 19px/1.15 var(--tq-mono);letter-spacing:0;color:#f2f2f2}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-head button{flex:none;min-height:30px;padding:0 9px;background:none;border:1px solid rgba(255,255,255,.18);color:#e4e4e8;font:9.5px/1 var(--tq-mono);letter-spacing:.06em;text-transform:uppercase;cursor:pointer}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-head button:hover{border-color:var(--tq-or);color:var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-query{padding:14px 16px 0}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-filters label.tq-f-field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;font:9.5px/1.3 var(--tq-mono);letter-spacing:.08em;color:#c9cad1;text-transform:uppercase}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-prompt{display:flex;align-items:center;height:38px;background:#0d0d10;border:1px solid rgba(255,255,255,.14)}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-prompt:focus-within{border-color:var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-caret{padding:0 8px 0 10px;font:12px/1 var(--tq-mono);letter-spacing:0;color:var(--tq-or);text-shadow:var(--tq-glow)}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-filters .tq-f-prompt input{flex:1;min-width:0;width:auto;height:100%;min-height:0;margin:0;padding:0 8px 0 0;background:none;border:0;box-shadow:none;outline:none;color:#fff;font:12.5px/1.2 var(--tq-sans);letter-spacing:0;text-transform:none}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-filters :is(.tq-f-field select,.tq-f-field input:not([type=checkbox])){width:100%;min-width:0;min-height:36px;margin:0;padding:0 8px;background:#0d0d10;border:1px solid rgba(255,255,255,.12);border-radius:0;color:#fff;font:12px/1.2 var(--tq-sans);letter-spacing:0;text-transform:none;color-scheme:dark}

html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-cats{min-width:0;margin:0;padding:16px 16px 0;border:0}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-legend{float:left;width:100%;display:flex;justify-content:space-between;gap:8px;margin:0 0 8px;padding:0;font:9.5px/1.3 var(--tq-mono);letter-spacing:.14em;text-transform:uppercase}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-legend-k{color:#8b8d98}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-legend-v{color:#c9cad1}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-catlist{clear:both;display:flex;flex-direction:column;gap:2px}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-catbtn{display:flex;align-items:center;gap:9px;width:100%;min-height:32px;margin:0;padding:4px 8px;background:transparent;border:1px solid transparent;border-radius:0;color:#d4d5db;text-align:left;font:12px/1.25 var(--tq-sans);letter-spacing:0;text-transform:none;cursor:pointer}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-catbtn svg{flex-shrink:0}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-catbtn:hover{background:rgba(255,255,255,.04);color:#fff}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-catbtn[aria-pressed="true"]{background:rgba(244,119,50,.1);border-color:rgba(244,119,50,.7);box-shadow:inset 2px 0 0 var(--tq-or);color:#fff}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-catname{flex:1;min-width:0}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-catcount{font:9.5px/1 var(--tq-mono);color:#8b8d98}

html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-group{display:flex;flex-direction:column;gap:14px;margin-top:14px;padding:16px 16px 0;border-top:1px dashed rgba(255,255,255,.12)}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-label{margin:0 0 6px;font:9.5px/1.3 var(--tq-mono);letter-spacing:.08em;color:#c9cad1;text-transform:uppercase}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-segrow{display:grid;grid-template-columns:repeat(var(--tq-cols,2),minmax(0,1fr));gap:1px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.12)}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-segbtn{min-width:0;min-height:32px;margin:0;padding:4px;background:#08080a;border:0;border-radius:0;color:#c9cad1;font:9.5px/1.2 var(--tq-mono);letter-spacing:.02em;text-transform:uppercase;overflow-wrap:anywhere;cursor:pointer}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-segbtn:hover{color:#fff;background:#111114}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-segbtn[aria-pressed="true"]{background:#f2f2f2;color:#050505}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-seg--sensitivity .tq-f-segbtn[aria-pressed="true"]{background:rgba(255,255,255,.1);color:#fff}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-seg--media .tq-f-segrow{gap:4px;background:none;border:0}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-segbtn.is-tile{min-height:42px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:#0d0d10;border:1px solid rgba(255,255,255,.1);font-size:9px}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-segbtn.is-tile[aria-pressed="true"]{background:rgba(244,119,50,.12);border-color:rgba(244,119,50,.7);color:var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-filters label.tq-f-check{display:flex;flex-direction:row;align-items:center;gap:10px;min-height:0;margin:0;padding:0;border:0;background:none;color:#e4e4e8;font:12.5px/1.35 var(--tq-sans);letter-spacing:0;text-transform:none;cursor:pointer}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-filters input[type=checkbox]{flex-shrink:0;width:16px;height:16px;margin:0;accent-color:var(--tq-or)}

html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-people{display:block;min-width:0;margin:14px 0 0;padding:6px 16px 0;border:0;border-top:1px dashed rgba(255,255,255,.12);background:none}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-people > legend{float:left;width:100%;margin:0;padding:10px 0 6px;font:9.5px/1.3 var(--tq-mono);letter-spacing:.14em;color:#8b8d98;text-transform:uppercase}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-people > .tq-f-seg{clear:both;padding-top:8px}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-people > .report-filter-grid{display:flex;flex-direction:column;gap:12px;margin:12px 0 0}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-locked{position:relative;margin:12px 0 0;padding:12px;border:1px dashed rgba(255,255,255,.16);background:#050506}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-locked.is-open{border-style:solid;border-color:rgba(255,255,255,.1)}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-locked-title{margin:0 0 8px;font:9px/1.3 var(--tq-mono);letter-spacing:.14em;color:#8b8d98}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-locked .report-filter-personal{display:flex;flex-direction:column;gap:7px;margin:0;padding:0;border:0;background:none}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-locked .report-filter-personal::before{content:none;display:none}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-locked .report-filter-personal label{display:flex;align-items:center;gap:10px;min-height:0;margin:0;padding:0;border:0;background:none;box-shadow:none;color:#e4e4e8;font:12.5px/1.35 var(--tq-sans);letter-spacing:0;text-transform:none;cursor:pointer}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-locked .report-filter-personal label:has(input:disabled){color:#8b8d98;cursor:not-allowed}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-locked .report-filter-personal input{width:15px;height:15px}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-locked > p{margin:10px 0 8px;color:#c9cad1;font:12px/1.45 var(--tq-sans)}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-signin{width:100%;min-height:36px;margin:0;background:none;border:1px solid rgba(244,119,50,.6);border-radius:0;color:var(--tq-or);font:10px/1 var(--tq-mono);letter-spacing:.06em;cursor:pointer}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-f-signin:hover{background:rgba(244,119,50,.1)}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-filters .report-filter-status{margin:0;padding:10px 16px 0;font:10px/1.4 var(--tq-mono);letter-spacing:.08em;color:var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #reportLibraryFilters .tq-filters .report-filter-status:empty{display:none}

/* ══════════════ Enquêtes : résultats ══════════════ */
html[data-interface="terminal"]:not(#tq) #reportLibrary.tq-library{display:flex;flex-direction:column;min-width:0}
html[data-interface="terminal"]:not(#tq) #reportLibrary.tq-library[hidden]{display:none}
html[data-interface="terminal"]:not(#tq) #reportLibrary.tq-library > .report-library-head{display:none}
html[data-interface="terminal"]:not(#tq) #reportLibrary.tq-library > p[role="status"]{margin:0;padding:12px 0;font:10.5px/1.4 var(--tq-mono);letter-spacing:.1em;color:var(--tq-or);text-shadow:var(--tq-glow);text-transform:uppercase}
html[data-interface="terminal"]:not(#tq) #reportLibrary.tq-library > p[role="status"]::before{content:"■ ";content:"■ " / "";animation:tq-blink 1.2s steps(2) infinite}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding-bottom:12px;border-bottom:1px dashed rgba(255,255,255,.12)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-count{display:inline-flex;align-items:center;gap:8px;min-height:30px;padding:0 10px;background:#070708;border:1px solid rgba(244,119,50,.5);color:#f2f2f2;font:10.5px/1.2 var(--tq-mono);letter-spacing:.06em}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-count-dot{width:8px;height:8px;background:var(--tq-or);animation:tq-blink 1.2s steps(2) infinite}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-count-n{color:var(--tq-or);text-shadow:0 0 8px rgba(244,119,50,.6)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-chip{display:inline-flex;align-items:center;gap:7px;min-height:30px;max-width:100%;padding:0 9px;background:#070708;border:1px solid var(--tq-or);border-radius:0;color:#f2f2f2;font:10px/1.2 var(--tq-mono);letter-spacing:.04em;text-transform:uppercase;cursor:pointer}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-chip:hover{background:rgba(244,119,50,.1)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-chip-swatch{flex:none;width:7px;height:7px;background:var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-chip-x{color:#8b8d98}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-views{display:flex;margin-left:auto;border:1px solid rgba(255,255,255,.14)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-viewbtn{display:flex;align-items:center;gap:6px;min-height:30px;margin:0;padding:0 10px;background:transparent;border:0;border-radius:0;color:#c9cad1;font:9.5px/1 var(--tq-mono);letter-spacing:.06em;cursor:pointer}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-viewbtn[aria-pressed="true"]{background:rgba(244,119,50,.14);color:var(--tq-or)}

html[data-interface="terminal"]:not(#tq) #reportLibrary.tq-library > .report-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:12px;margin:14px 0 0;padding:0}
html[data-interface="terminal"]:not(#tq) #reportLibrary.tq-library > .report-library-grid.tq-grid-empty{display:none}
html[data-interface="terminal"]:not(#tq) #reportLibrary.tq-library.tq-view-table > .report-library-grid{display:none}
html[data-interface="terminal"]:not(#tq) #reportLibrary .report-library-card.tq-card{position:relative;display:flex;flex-direction:column;gap:0;min-width:0;margin:0;padding:0;background:#0c0c0f;border:1px solid rgba(255,255,255,.07);box-shadow:none}
html[data-interface="terminal"]:not(#tq) #reportLibrary .report-library-card.tq-card:hover,
html[data-interface="terminal"]:not(#tq) #reportLibrary .report-library-card.tq-card:focus-within{border-color:rgba(244,119,50,.45);box-shadow:inset 2px 0 0 var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .report-library-card.tq-card > :not(.tq-card-cover):not(.tq-card-body){display:none}
html[data-interface="terminal"]:not(#tq) #reportLibrary .report-library-card.tq-card > .tq-card-cover{position:relative;flex:none;height:132px;margin:0;padding:0;overflow:hidden;background:#111114;border-bottom:1px solid rgba(255,255,255,.08)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .report-library-card.tq-card > .tq-card-cover::after{content:none}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:grayscale(.35) contrast(1.1)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card:hover .tq-card-cover img{filter:grayscale(.1) contrast(1.05)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card-cover .report-library-placeholder{display:none}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card-ph{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:repeating-linear-gradient(135deg,rgba(255,255,255,.05) 0 6px,transparent 6px 12px);font:9px/1.3 var(--tq-mono);letter-spacing:.14em;color:#8b8d98}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card-scan{position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(to bottom,rgba(0,0,0,.25) 0 1px,transparent 1px 3px)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card-code{position:absolute;top:8px;left:8px;padding:2px 6px;background:#050505;border:1px solid rgba(244,119,50,.5);color:var(--tq-or);font:9.5px/1.3 var(--tq-mono);letter-spacing:.08em}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card-coords{position:absolute;left:8px;bottom:8px;padding:2px 6px;background:#050505;color:#c9cad1;font:8.5px/1.3 var(--tq-mono);letter-spacing:.12em}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card-cover .story-visibility-badges{position:absolute;top:8px;right:8px;left:auto;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px;max-width:60%}
html[data-interface="terminal"]:not(#tq) #reportLibrary .report-library-card.tq-card > .tq-card-body{flex:1;display:flex;flex-direction:column;gap:9px;min-width:0;margin:0;padding:12px 14px 14px}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card-top{display:flex;justify-content:space-between;gap:8px;font:9px/1.3 var(--tq-mono);letter-spacing:.06em}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card-cat{display:flex;align-items:center;gap:6px;min-width:0;color:#c9cad1}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card-cat svg{flex-shrink:0}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-ellipsis{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card-lang{flex-shrink:0;color:#c9cad1}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card .tq-card-title{margin:0;font:400 14px/1.32 var(--tq-mono);letter-spacing:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card .tq-card-title a{color:#f2f2f2;text-decoration:none}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card .tq-card-title a:hover{color:var(--tq-or);text-shadow:var(--tq-glow)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card .tq-card-title a::after{content:none}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-rows{display:flex;flex-direction:column;gap:5px;font:9.5px/1.35 var(--tq-mono)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-row{display:flex;align-items:baseline;gap:6px;min-width:0}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-row-k{flex-shrink:0;color:#8b8d98;letter-spacing:.1em}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-row-dots{flex:1;min-width:10px;border-bottom:1px dotted rgba(255,255,255,.22);transform:translateY(-3px)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-row-v{max-width:70%;color:#f2f2f2;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-row-v a{color:inherit;text-decoration:none}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-row-v a:hover{color:var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-box{position:relative;padding:8px 10px;background:#08080a;border:1px solid rgba(255,255,255,.08)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-box--open{border-color:rgba(244,119,50,.35)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-box-head{display:flex;align-items:center;gap:7px;margin:0;padding-right:80px;font:9px/1.3 var(--tq-mono);letter-spacing:.14em;color:#e4e4e8}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-box-text,
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card .tq-card-summary{margin:4px 0 0;color:#c9cad1;font:12px/1.5 var(--tq-sans);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card .tq-card-summary{margin:0;font-size:12.5px;-webkit-line-clamp:3}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card-actions{display:flex;gap:6px;margin-top:auto}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card-open{flex:1;min-height:38px;display:grid;place-items:center;padding:0 8px;border:1px solid rgba(244,119,50,.7);color:var(--tq-or);text-decoration:none;font:10px/1.2 var(--tq-mono);letter-spacing:.08em;text-align:center}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card-open:hover{background:rgba(244,119,50,.1);text-decoration:none}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card-map{flex:none;width:38px;height:38px;display:grid;place-items:center;margin:0;padding:0;background:none;border:1px solid rgba(255,255,255,.2);border-radius:0;color:#f2f2f2;cursor:pointer}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-card-map:hover{border-color:var(--tq-or);color:var(--tq-or)}

html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-table{display:none;margin-top:14px;border:1px solid rgba(255,255,255,.08);background:#08080a}
html[data-interface="terminal"]:not(#tq) #reportLibrary.tq-view-table .tq-table{display:block}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-tr{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;padding:10px 14px;border-bottom:1px solid rgba(255,255,255,.06)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-tr:last-child{border-bottom:0}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-tr:not(.tq-tr--head):hover{background:rgba(255,255,255,.025)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-tr--head{padding:9px 14px;border-bottom:1px solid rgba(255,255,255,.1);font:9px/1.3 var(--tq-mono);letter-spacing:.14em;color:#8b8d98}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-td:nth-child(1){flex:0 0 64px}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-td:nth-child(2){flex:1 1 260px;min-width:0}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-td:nth-child(3){flex:0 1 170px;min-width:0}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-td:nth-child(4){flex:0 1 190px;min-width:0}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-td:nth-child(5){flex:0 0 80px;text-align:right}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-td--code{font:10px/1.3 var(--tq-mono);color:var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-td--title{display:flex;flex-direction:column}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-td--title a{color:#f2f2f2;text-decoration:none;font:12.5px/1.35 var(--tq-mono)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-td--title a:hover{color:var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-td-sub{color:#8b8d98;font:11.5px/1.4 var(--tq-sans)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-td--cat{display:flex;align-items:center;gap:6px;color:#c9cad1;font:9.5px/1.3 var(--tq-mono)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-td--cat svg{flex-shrink:0}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-td--anchor{color:#c9cad1;font:9.5px/1.4 var(--tq-mono);text-transform:uppercase}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-td--num{font:11px/1.3 var(--tq-mono);color:#f2f2f2}

html[data-interface="terminal"]:not(#tq) :is(#labView,#archiveView) .tq-btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;margin:0;padding:0 14px;border-radius:0;font:10.5px/1.2 var(--tq-mono);letter-spacing:.06em;text-decoration:none;text-transform:uppercase;cursor:pointer}
html[data-interface="terminal"]:not(#tq) :is(#labView,#archiveView) .tq-btn--light{background:#f2f2f2;border:0;color:#050505}
html[data-interface="terminal"]:not(#tq) :is(#labView,#archiveView) .tq-btn--ghost{background:none;border:1px solid rgba(255,255,255,.2);color:#f2f2f2}
html[data-interface="terminal"]:not(#tq) :is(#labView,#archiveView) .tq-btn--ghost:hover{border-color:var(--tq-or);color:var(--tq-or)}
html[data-interface="terminal"]:not(#tq) :is(#labView,#archiveView) .tq-btn--primary{background:var(--tq-or);border:0;color:#050505;box-shadow:0 0 18px rgba(244,119,50,.35)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-empty{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:14px;padding:24px;border:1px dashed rgba(244,119,50,.5);background:rgba(244,119,50,.03)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-empty-title{margin:0;font:14px/1.35 var(--tq-mono);color:var(--tq-or);text-shadow:var(--tq-glow)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-empty-text{margin:0;max-width:560px;color:#c9cad1;font:13px/1.55 var(--tq-sans)}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-empty-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}

html[data-interface="terminal"]:not(#tq) #reportLibrary .report-library-pages.tq-pages{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin:16px 0 0;padding:0;border:0;font:9.5px/1.3 var(--tq-mono);letter-spacing:.06em;color:#8b8d98}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-pages > span:not(.tq-pages-label):not(.tq-pages-buttons){display:none}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-pages-buttons{display:flex;gap:4px}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-pages-buttons button{min-height:34px;margin:0;padding:0 12px;background:none;border:1px solid rgba(255,255,255,.24);border-radius:0;color:#f2f2f2;font:9.5px/1 var(--tq-mono);letter-spacing:.06em;text-transform:uppercase;cursor:pointer}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-pages-buttons button:disabled{border-color:rgba(255,255,255,.1);color:#8b8d98;cursor:default}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-pages-buttons [data-report-page="previous"]::before{content:"◂ ";content:"◂ " / ""}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-pages-buttons [data-report-page="next"]::after{content:" ▸";content:" ▸" / ""}
html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-enq-foot{margin:16px 0 0;padding-top:12px;border-top:1px solid rgba(255,255,255,.06);color:#8b8d98;font:9.5px/1.6 var(--tq-mono);letter-spacing:.03em}

/* ══════════════ Archives : onglets, bandeau, en-tête et dossier vedette ══════════════ */
html[data-interface="terminal"]:not(#tq) #archiveView:has(> .archive-hero.tq-arc-hero) > .archive-nav,
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-tabs{display:flex;flex-wrap:wrap;align-items:stretch;gap:0 4px;margin:0;padding:0;background:#08080a;border:0;border-bottom:1px solid rgba(255,255,255,.08)}
html[data-interface="terminal"]:not(#tq) #archiveView:has(> .archive-hero.tq-arc-hero) > .archive-nav a,
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-tab{display:flex;align-items:center;gap:8px;min-height:50px;padding:0 14px;border:0;background:none;box-shadow:none;color:#8b8d98;text-decoration:none;font:11px/1.2 var(--tq-mono);letter-spacing:.08em;text-transform:uppercase}
html[data-interface="terminal"]:not(#tq) #archiveView:has(> .archive-hero.tq-arc-hero) > .archive-nav a::before{margin-right:0;font-size:9px}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-tab-n{font-size:9px}
html[data-interface="terminal"]:not(#tq) #archiveView:has(> .archive-hero.tq-arc-hero) > .archive-nav a:hover,
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-tab:hover{color:#f2f2f2;background:rgba(255,255,255,.03);text-decoration:none}
html[data-interface="terminal"]:not(#tq) #archiveView:has(> .archive-hero.tq-arc-hero) > .archive-nav a[aria-current="page"],
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-tab[aria-current="page"]{color:var(--tq-or);background:rgba(244,119,50,.06);box-shadow:inset 0 -2px 0 var(--tq-or);text-shadow:var(--tq-glow)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-crumb{margin-left:auto;align-self:center;padding:8px 0;color:#8b8d98;font:9.5px/1.3 var(--tq-mono);letter-spacing:.14em;white-space:nowrap}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-crumb strong{font-weight:400;color:#f2f2f2}
html[data-interface="terminal"]:not(#tq) #archiveView:has(> .archive-hero.tq-arc-hero) > .archive-nav::after,
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-banner{flex:0 0 100%;display:flex;align-items:center;justify-content:center;min-height:20px;margin:0;padding:3px 12px;box-sizing:border-box;border:0;background:var(--tq-stripes);color:#f2f2f2;font:8.5px/1.4 var(--tq-mono);letter-spacing:.24em;text-align:center}
html[data-interface="terminal"]:not(#tq) #archiveView:has(> .archive-hero.tq-arc-hero) > .archive-nav::after{margin:0 -1px -1px}

html[data-interface="terminal"]:not(#tq) #archiveView > .archive-hero.tq-arc-hero{display:flex;flex-wrap:wrap;align-items:center;gap:24px 32px;margin:28px 0 20px;padding:0;border:0;background:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-hero-text{flex:999 1 420px;min-width:0}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-hero .archive-kicker{margin:0;font:9.5px/1.4 var(--tq-mono);letter-spacing:.16em;color:var(--tq-or);text-shadow:var(--tq-glow)}
html[data-interface="terminal"]:not(#tq) #archiveView > .archive-hero.tq-arc-hero h1{max-width:none;margin:10px 0 8px;font:400 clamp(26px,3vw,36px)/1.12 var(--tq-mono);letter-spacing:-.01em;color:#f2f2f2;text-shadow:none}
html[data-interface="terminal"]:not(#tq) #archiveView > .archive-hero.tq-arc-hero h1::after{content:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-hero-text > p:not(.archive-kicker){max-width:640px;margin:0;color:#c9cad1;font:14.5px/1.5 var(--tq-sans)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-hero .archive-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-hero .archive-actions .archive-button{display:flex;align-items:center;min-height:44px;padding:0 16px;border-radius:0;font:11px/1.2 var(--tq-mono);letter-spacing:.06em;text-transform:uppercase;text-decoration:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-hero .archive-actions .archive-button:not(.archive-secondary){background:var(--tq-or) !important;border:0 !important;color:#050505 !important;box-shadow:0 0 18px rgba(244,119,50,.35)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-hero .archive-actions .archive-button:not(.archive-secondary)::after{content:" ▸";content:" ▸" / "";white-space:pre}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-hero .archive-actions .archive-secondary{background:none !important;border:1px solid rgba(255,255,255,.22) !important;color:#f2f2f2 !important;box-shadow:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-hero .archive-actions .archive-secondary:hover{border-color:var(--tq-or) !important;color:var(--tq-or) !important}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-legend{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:16px;color:#c9cad1;font:12px/1.4 var(--tq-sans)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-legend-item{display:flex;align-items:center;gap:8px}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-tag{flex:none;padding:1px 6px;font:8.5px/1.4 var(--tq-mono);letter-spacing:.14em;white-space:nowrap}
html[data-interface="terminal"]:not(#tq) #archiveView :is(.tq-tag--fiction,.tq-tag--assumed){border:1px dashed #c9cad1;color:#e4e4e8}
html[data-interface="terminal"]:not(#tq) #archiveView :is(.tq-tag--sources,.tq-tag--real){border:1px solid #f2f2f2;background:#f2f2f2;color:#050505}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-tag--exercise{border:1px solid var(--tq-or);color:var(--tq-or)}

html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-feature{position:relative;flex:1 1 340px;max-width:520px;aspect-ratio:16 / 10;display:block;overflow:hidden;background:#111114;border:1px solid rgba(255,255,255,.12);color:#f2f2f2;text-decoration:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-feature:hover,
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-feature:focus-visible{border-color:rgba(244,119,50,.6)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-feature img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:grayscale(.35) contrast(1.1)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-feature-scan{position:absolute;inset:0;background:repeating-linear-gradient(to bottom,rgba(0,0,0,.28) 0 1px,transparent 1px 3px),linear-gradient(to top,rgba(4,4,5,.9),transparent 55%)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-corner{position:absolute;width:14px;height:14px;border:0 solid var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-corner--tl{top:10px;left:10px;border-top-width:2px;border-left-width:2px}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-corner--tr{top:10px;right:10px;border-top-width:2px;border-right-width:2px}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-corner--bl{bottom:10px;left:10px;border-bottom-width:2px;border-left-width:2px}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-corner--br{bottom:10px;right:10px;border-bottom-width:2px;border-right-width:2px}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-feature-tag{position:absolute;top:18px;left:22px;padding:2px 6px}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-feature-stamp{position:absolute;top:46px;right:22px;padding:3px 8px;border:2px solid var(--tq-or);background:rgba(4,4,5,.7);color:var(--tq-or);font:10px/1.3 var(--tq-mono);letter-spacing:.14em;transform:rotate(-5deg)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-feature-caption{position:absolute;left:22px;right:22px;bottom:20px;display:flex;flex-direction:column;gap:3px}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-feature-kicker{font:9.5px/1.3 var(--tq-mono);letter-spacing:.12em;color:var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-feature-title{font:16px/1.25 var(--tq-mono)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-feature-coords{font:9px/1.3 var(--tq-mono);color:#c9cad1}

/* ══════════════ Archives : entrées, avertissement, registre ══════════════ */
html[data-interface="terminal"]:not(#tq) #archiveView > .archive-grid.tq-entries{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px;margin:0 0 20px;padding:0;background:none;border:0}
html[data-interface="terminal"]:not(#tq) #archiveView > .archive-grid.tq-entries article.tq-entry{position:relative;display:flex;flex-direction:column;gap:8px;min-width:0;padding:18px;background:#0c0c0f;border:1px solid rgba(255,255,255,.14)}
html[data-interface="terminal"]:not(#tq) #archiveView > .archive-grid.tq-entries article.tq-entry--fiction{border:1px dashed rgba(255,255,255,.22)}
html[data-interface="terminal"]:not(#tq) #archiveView > .archive-grid.tq-entries article.tq-entry--exercise{border-color:rgba(244,119,50,.35)}
html[data-interface="terminal"]:not(#tq) #archiveView > .archive-grid.tq-entries article.tq-entry::before,
html[data-interface="terminal"]:not(#tq) #archiveView > .archive-grid.tq-entries article.tq-entry::after{content:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-entry-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-entry-top .tq-entry-n{margin:0;font:9.5px/1.3 var(--tq-mono);letter-spacing:.16em;color:var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #archiveView > .archive-grid.tq-entries h3{margin:0;font:400 18px/1.25 var(--tq-mono);color:#f2f2f2}
html[data-interface="terminal"]:not(#tq) #archiveView > .archive-grid.tq-entries p:not(.tq-entry-meta){margin:0;color:#c9cad1;font:13px/1.55 var(--tq-sans)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-entry-meta{margin:0;color:#8b8d98;font:9.5px/1.4 var(--tq-mono);letter-spacing:.06em}
html[data-interface="terminal"]:not(#tq) #archiveView > .archive-grid.tq-entries a.tq-entry-cta{display:flex;align-items:center;align-self:flex-start;min-height:38px;margin-top:auto;padding:0 12px;border:1px solid rgba(244,119,50,.7);color:var(--tq-or);text-decoration:none;font:10px/1.2 var(--tq-mono);letter-spacing:.06em;text-transform:uppercase}
html[data-interface="terminal"]:not(#tq) #archiveView > .archive-grid.tq-entries a.tq-entry-cta:hover{background:rgba(244,119,50,.1);text-decoration:none}
html[data-interface="terminal"]:not(#tq) #archiveView > .archive-fine.tq-arc-warning{display:flex;gap:12px;margin:0 0 20px;padding:12px 16px;border:1px solid rgba(255,255,255,.1);background:#08080a;color:#c9cad1;font:12.5px/1.55 var(--tq-sans)}
html[data-interface="terminal"]:not(#tq) #archiveView > .archive-fine.tq-arc-warning::before{flex:none;font-family:var(--tq-mono);color:var(--tq-or)}

html[data-interface="terminal"]:not(#tq) #archiveView > .archive-section.tq-register{margin:0 0 20px;padding:0;border:1px solid rgba(255,255,255,.08);background:#08080a}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-register-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px;padding:16px 18px 12px;border-bottom:1px solid rgba(255,255,255,.08)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-register-head h2{margin:5px 0 0;font:400 21px/1.2 var(--tq-mono);letter-spacing:0;color:#f2f2f2}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-register-head h2::before{content:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-register-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-register-count{display:inline-flex;align-items:center;min-height:32px;padding:0 10px;border:1px solid rgba(255,255,255,.14);background:#f2f2f2;color:#050505;font:9.5px/1 var(--tq-mono);letter-spacing:.06em}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-register-count:empty{display:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-register-all{display:flex;align-items:center;min-height:34px;padding:0 10px;border-bottom:1px dotted var(--tq-or);color:var(--tq-or);text-decoration:none;font:10px/1.2 var(--tq-mono);letter-spacing:.06em}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-register-list{margin:0;padding:0}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-register-list > p{margin:0;padding:16px 18px;color:#c9cad1;font:10.5px/1.4 var(--tq-mono);letter-spacing:.08em}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-register-list .archive-case-grid{display:block;margin:0;padding:0;border:0;background:none}
html[data-interface="terminal"]:not(#tq) #archiveView .archive-case-card.tq-case{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0;padding:12px 18px;border:0;border-bottom:1px solid rgba(255,255,255,.06);background:none;box-shadow:none}
html[data-interface="terminal"]:not(#tq) #archiveView .archive-case-card.tq-case:last-child{border-bottom:0}
html[data-interface="terminal"]:not(#tq) #archiveView .archive-case-card.tq-case::before{content:none;display:none}
html[data-interface="terminal"]:not(#tq) #archiveView .archive-case-card.tq-case:hover{background:rgba(255,255,255,.02)}
html[data-interface="terminal"]:not(#tq) #archiveView .archive-case-card.tq-case:has(.archive-unread){box-shadow:inset 2px 0 0 var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-case .tq-native{display:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-case-code{flex:0 0 96px;display:flex;flex-direction:column;gap:2px;font-family:var(--tq-mono)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-case-id{font-size:10px;color:var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-case-date{font-size:9.5px;color:#8b8d98}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-case-main{flex:999 1 320px;min-width:0;display:flex;flex-direction:column;gap:3px}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-case-main h3{margin:0;font:400 13.5px/1.3 var(--tq-mono)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-case-main h3 a{color:#f2f2f2;text-decoration:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-case-main h3 a:hover{color:var(--tq-or);text-shadow:var(--tq-glow)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-case-main h3 a::after{content:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-case-meta{color:#8b8d98;font:9.5px/1.4 var(--tq-mono);letter-spacing:.04em}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-case .tq-case-summary{margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#c9cad1;font:12.5px/1.45 var(--tq-sans)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-case-side{flex:1 1 200px;display:flex;justify-content:flex-end;align-items:center;gap:8px}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-case-side:empty{display:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-case-side .archive-unread{display:inline-flex;align-items:center;gap:6px;margin:0;padding:3px 8px;border:1px solid rgba(244,119,50,.6);color:var(--tq-or);font:400 9px/1.3 var(--tq-mono);letter-spacing:.06em;text-transform:uppercase}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-case-side .archive-unread::before{content:"";width:7px;height:7px;background:var(--tq-or);animation:tq-blink 1.2s steps(2) infinite}

/* ══════════════ Archives : nomination et studio ══════════════ */
html[data-interface="terminal"]:not(#tq) #archiveView > .tq-arc-panel{margin:0 0 20px;padding:18px;background:#08080a;border:1px solid rgba(255,255,255,.08)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-panel-title{margin:5px 0 6px;font:400 19px/1.25 var(--tq-mono);letter-spacing:0;color:#f2f2f2}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-panel-title::before{content:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-panel-lede{margin:0 0 14px;color:#8b8d98;font:12.5px/1.5 var(--tq-sans)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-nom .archive-section{margin:0;padding:0;border:0;background:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-nom .archive-section > h3{display:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-nom .archive-section > p{margin:0;padding:10px 12px;border:1px dashed rgba(255,255,255,.16);background:#050506;color:#c9cad1;font:12px/1.5 var(--tq-sans)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-nom form.archive-tool{display:flex;flex-direction:column;gap:14px;max-width:760px;margin:0;padding:0;border:0;background:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-nom form.archive-tool label{display:flex;flex-direction:column;gap:6px;color:#c9cad1;font:10px/1.3 var(--tq-mono);letter-spacing:.08em;text-transform:uppercase}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-nom form.archive-tool :is(input,textarea){width:100%;box-sizing:border-box;min-height:42px;padding:0 12px;background:#0d0d10;border:1px solid rgba(255,255,255,.16);border-radius:0;color:#fff;font:14px/1.4 var(--tq-sans);letter-spacing:0;text-transform:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-nom form.archive-tool textarea{min-height:110px;padding:10px 12px;line-height:1.6;resize:vertical}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-nom .tq-hint{color:#8b8d98;font:11.5px/1.4 var(--tq-sans);letter-spacing:0;text-transform:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-nom form.archive-tool button[type="submit"]{min-height:44px;padding:0 16px;background:#f2f2f2 !important;border:0 !important;border-radius:0;color:#050505 !important;font:11px/1.2 var(--tq-mono);letter-spacing:.06em;text-transform:uppercase;cursor:pointer}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-nom form.archive-tool button[type="submit"]::after{content:" ▸";content:" ▸" / ""}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-nom form.archive-tool [role="status"]{min-height:0;margin:0;color:#8b8d98;font:11.5px/1.4 var(--tq-sans)}
html[data-interface="terminal"]:not(#tq) #archiveView > .tq-arc-studio{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:0 0 20px;padding:14px 18px;border:1px dashed rgba(255,255,255,.16);background:#050506}
html[data-interface="terminal"]:not(#tq) #archiveView:has(.tq-arc-studio-host > .archive-section) > .tq-arc-studio{display:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-studio-text{flex:999 1 360px;display:flex;flex-direction:column;gap:2px;color:#8b8d98;font:12.5px/1.5 var(--tq-sans)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-studio-text strong{font:400 10.5px/1.4 var(--tq-mono);letter-spacing:.12em;color:#e4e4e8}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-studio-note{flex:1 1 auto;text-align:right;color:#8b8d98;font:9px/1.3 var(--tq-mono);letter-spacing:.12em}
html[data-interface="terminal"]:not(#tq) #archiveView > .tq-arc-studio-host:empty{display:none}
html[data-interface="terminal"]:not(#tq) #archiveView > .tq-arc-studio-host > p{margin:-12px 0 20px;color:#8b8d98}

/* ══════════════ Organisation : intro, dossiers, lecteur ══════════════ */
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-tabs + .tq-arc-banner{margin-bottom:0}
html[data-interface="terminal"]:not(#tq) #archiveView > .organisation-intro.tq-org-intro{position:relative;margin:28px 0 20px;padding:0 220px 0 0;border:0;background:none;box-shadow:none}
html[data-interface="terminal"]:not(#tq) #archiveView > .organisation-intro.tq-org-intro .eyebrow{margin:0;font:9.5px/1.4 var(--tq-mono);letter-spacing:.16em;color:var(--tq-or);text-shadow:var(--tq-glow)}
html[data-interface="terminal"]:not(#tq) #archiveView > .organisation-intro.tq-org-intro h1{margin:10px 0 8px;font:400 clamp(26px,3vw,36px)/1.12 var(--tq-mono);letter-spacing:-.01em;color:#f2f2f2;text-shadow:none}
html[data-interface="terminal"]:not(#tq) #archiveView > .organisation-intro.tq-org-intro h1::after{content:none}
html[data-interface="terminal"]:not(#tq) #archiveView > .organisation-intro.tq-org-intro > p:not(.eyebrow){margin:0;color:#c9cad1;font:14.5px/1.5 var(--tq-sans)}
html[data-interface="terminal"]:not(#tq) #archiveView > .organisation-intro.tq-org-intro::after{top:auto;right:6px;bottom:8px;padding:5px 12px;border:2px dashed #f2f2f2;color:#f2f2f2;font:12px/1.3 var(--tq-mono);letter-spacing:.2em;transform:rotate(-4deg)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-layout{display:flex;flex-wrap:wrap;align-items:flex-start;gap:20px;margin:0 0 20px}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-files{flex:1 1 240px;min-width:0;display:flex;flex-direction:column;gap:2px;padding:10px;background:#08080a;border:1px solid rgba(255,255,255,.08)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-files-title{margin:0;padding:4px 6px 8px;color:#8b8d98;font:9.5px/1.3 var(--tq-mono);letter-spacing:.14em}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-file{display:flex;align-items:center;gap:10px;min-height:42px;margin:0;padding:0 10px;background:transparent;border:0;border-radius:0;box-shadow:none;color:#c9cad1;text-align:left;font:13px/1.3 var(--tq-sans);letter-spacing:0;text-transform:none;cursor:pointer}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-file:hover{background:rgba(255,255,255,.04);color:#fff}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-file[aria-current="page"]{background:rgba(244,119,50,.08);box-shadow:inset 2px 0 0 var(--tq-or);color:#fff}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-file-n{flex:none;color:#8b8d98;font:10px/1 var(--tq-mono)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-file[aria-current="page"] .tq-org-file-n{color:var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-reader{position:relative;flex:999 1 480px;min-width:0;background:#08080a;border:1px solid rgba(255,255,255,.1)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-strip{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;padding:8px 18px;border-bottom:1px solid rgba(255,255,255,.08);color:#8b8d98;font:9px/1.3 var(--tq-mono);letter-spacing:.14em}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-body{padding:22px clamp(18px,3vw,36px) 24px}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-body .organisation-file{margin:0;padding:0;border:0;background:none;box-shadow:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-body .organisation-file[hidden]{display:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-body .organisation-file::before,
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-body .organisation-file::after{content:none;display:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-body .organisation-file .eyebrow{margin:0;font:9.5px/1.4 var(--tq-mono);letter-spacing:.16em;color:var(--tq-or)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-body .organisation-file h2{margin:6px 0 14px;font:400 24px/1.2 var(--tq-mono);letter-spacing:0;color:#f2f2f2}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-body .organisation-file p:not(.eyebrow){max-width:68ch;margin:0 0 14px;color:#d4d5db;font:15px/1.72 var(--tq-sans)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 18px;border-top:1px solid rgba(255,255,255,.08)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-foot .tq-btn{min-height:36px;padding:0 12px;font-size:10px}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-counter{color:#8b8d98;font:10px/1 var(--tq-mono)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-truth{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));margin:0 0 20px;border:1px solid rgba(255,255,255,.1);background:#08080a}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-truth-col{padding:16px 18px}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-truth-col + .tq-org-truth-col{border-left:1px solid rgba(255,255,255,.08)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-truth-head{display:flex;align-items:center;gap:8px;margin:0;color:#e4e4e8;font:9.5px/1.3 var(--tq-mono);letter-spacing:.14em}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-truth ul{margin:10px 0 0;padding-left:18px;color:#c9cad1;font:13px/1.7 var(--tq-sans)}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-warning{margin:0 0 20px;color:#8b8d98;font:9.5px/1.6 var(--tq-mono);letter-spacing:.03em}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 32px}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-actions .tq-btn{min-height:44px;padding:0 16px;font-size:11px}

/* ══════════════ Repli mobile ══════════════ */
@media (max-width:760px){
  html[data-interface="terminal"]:not(#tq) #labView .tq-stats{max-width:none}
  html[data-interface="terminal"]:not(#tq) #labView .tq-level{border-right:0;border-bottom:1px solid rgba(255,255,255,.08)}
  html[data-interface="terminal"]:not(#tq) #labView .tq-level:last-child{border-bottom:0}
  html[data-interface="terminal"]:not(#tq) #reportLibrary .tq-views{margin-left:0}
  html[data-interface="terminal"]:not(#tq) #archiveView .tq-crumb{display:none}
  html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-feature{max-width:none}
  html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-studio-note{text-align:left}
  html[data-interface="terminal"]:not(#tq) #archiveView > .organisation-intro.tq-org-intro{padding-right:0}
  html[data-interface="terminal"]:not(#tq) #archiveView > .organisation-intro.tq-org-intro::after{position:static;display:inline-block;margin-top:14px}
  html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-truth-col + .tq-org-truth-col{border-left:0;border-top:1px solid rgba(255,255,255,.08)}
}
@media (max-width:620px){
  html[data-interface="terminal"]:not(#tq) #labView .tq-stat{padding:10px}
  html[data-interface="terminal"]:not(#tq) #labView .tq-stat-value{font-size:22px}
  html[data-interface="terminal"]:not(#tq) #archiveView:has(> .archive-hero.tq-arc-hero) > .archive-nav a,
  html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-tab{flex:1 1 auto;min-height:44px;padding:0 10px;font-size:10px}
  html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-banner{letter-spacing:.08em;font-size:7.5px}
  html[data-interface="terminal"]:not(#tq) #archiveView .tq-case-code{flex-basis:100%;flex-direction:row;gap:10px}
  html[data-interface="terminal"]:not(#tq) #archiveView .tq-case .tq-case-summary{white-space:normal}
  html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-feature-stamp{top:40px;font-size:9px}
  html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-foot .tq-btn{padding:0 8px}
}
@media (prefers-reduced-motion:reduce){
  html[data-interface="terminal"]:not(#tq) #labView .tq-count-dot,html[data-interface="terminal"]:not(#tq) #archiveView .archive-unread::before{animation:none}
  html[data-interface="terminal"]:not(#tq) #reportLibrary.tq-library > p[role="status"]::before{animation:none}
}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-arc-feature:not(:has(img)){background:repeating-linear-gradient(135deg,rgba(255,255,255,.05) 0 6px,transparent 6px 12px),#111114}
html[data-interface="terminal"]:not(#tq) #archiveView .archive-case-card.tq-case::after{content:none;display:none}
html[data-interface="terminal"]:not(#tq) #archiveView .archive-case-card.tq-case{background-image:none}
html[data-interface="terminal"]:not(#tq) #archiveView .tq-org-body .organisation-file h2:focus{outline:none}
