JavaScript 65.5%
Python 17.8%
CSS 13%
HTML 3.7%
1/* Admin-Ka — identité Groupe KA : crème + orange, néo-brutalisme doux */2:root {3 --bg: #F2F1EC;4 --card: #FCFBF8;5 --card2: #F7F5EF;6 --ink: #1a1611;7 --muted: #6d675c;8 --line: #e3dfd4;9 --orange: #F97316;10 --orange-deep: #e05f00; /* traits de graphique (contraste validé) */11 --orange-soft: #fee9d8;12 --good: #178a4c;13 --good-soft: #e2f3e8;14 --warn: #946300;15 --warn-soft: #f7edd4;16 --bad: #d5303e;17 --bad-soft: #fbe6e7;18 --grid: #e5e1d8;19 --r-xl: 26px;20 --r-lg: 20px;21 --r-md: 14px;22 --r-sm: 10px;23 --bshadow: 3px 3px 0 var(--shadow);24 --bshadow-sm: 2px 2px 0 var(--shadow);25 --z-banner: 140;26 --z-header: 100;27 --z-nav: 110;28 --z-composer: 105;29 --z-sheet: 200;30 --z-login: 300;31 --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;32 --round: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", Roboto, sans-serif;33}34* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }35html, body {36 margin: 0; padding: 0;37 background: var(--bg); color: var(--ink);38 font: 15.5px/1.55 var(--round);39 height: 100%;40 overscroll-behavior: none;41}42.hidden { display: none !important; }43button { font-family: inherit; color: inherit; }44.mono { font-family: var(--mono); font-size: 0.92em; }4546.ka-mark {47 display: inline-flex; align-items: center; justify-content: center;48 width: 34px; height: 34px; border-radius: 11px;49 background: var(--orange); color: var(--ink);50 border: 1px solid var(--edge); box-shadow: var(--bshadow-sm);51 font-weight: 800; font-size: 15px; letter-spacing: -0.2px;52 flex-shrink: 0;53}54.ka-mark.big { width: 68px; height: 68px; border-radius: 21px; font-size: 28px; box-shadow: var(--bshadow); margin: 0 auto; }55.tiret { color: var(--orange); font-weight: 800; }5657.btn-cta {58 background: var(--orange); color: var(--ink);59 border: 1px solid var(--edge); border-radius: 999px;60 box-shadow: var(--bshadow);61 font-weight: 800; font-size: 16px; padding: 13px 22px; cursor: pointer;62 transition: transform 0.08s, box-shadow 0.08s;63}64.btn-cta:active { transform: translate(2px, 2px); box-shadow: none; }65.btn-cta.small { font-size: 13.5px; padding: 8px 16px; box-shadow: var(--bshadow-sm); }66.btn-ghost {67 background: var(--card); border: 1px solid var(--edge); border-radius: 999px;68 font-weight: 700; font-size: 13.5px; padding: 10px 16px; cursor: pointer;69}70.btn-danger {71 display: block; margin: 18px auto calc(20px);72 background: var(--card); border: 1px solid var(--bad); color: var(--bad);73 border-radius: 999px; font-weight: 800; font-size: 14.5px; padding: 12px 26px; cursor: pointer;74}7576/* ================= Login ================= */77.login {78 position: fixed; inset: 0; z-index: var(--z-login);79 background: var(--bg);80 display: flex; flex-direction: column; align-items: center; justify-content: center;81 padding: 24px; gap: 18px;82}83.login-box {84 width: 100%; max-width: 360px;85 background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-xl);86 box-shadow: var(--bshadow);87 padding: 34px 26px 26px;88 display: flex; flex-direction: column; gap: 13px; text-align: center;89}90.login-title { margin: 6px 0 0; font-size: 27px; font-weight: 800; letter-spacing: -0.5px; }91.login-sub { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; }92.login input {93 background: var(--bg); border: 1px solid var(--edge); color: var(--ink);94 border-radius: var(--r-md); padding: 14px 16px; font-size: 16px; outline: none;95 font-family: inherit;96}97.login input:focus { border-color: var(--orange); }98.login-error { color: var(--bad); font-size: 13px; min-height: 18px; font-weight: 600; }99.login-foot { color: var(--muted); font-size: 12px; font-family: var(--mono); }100101/* ================= Coquille ================= */102.app { display: flex; flex-direction: column; height: 100dvh; position: relative; }103104.header {105 position: sticky; top: 0; z-index: var(--z-header);106 display: flex; align-items: center; justify-content: space-between; gap: 10px;107 background: var(--bg);108 border-bottom: 1px solid var(--edge);109 padding: 8px 14px;110 padding-top: calc(8px + env(safe-area-inset-top));111}112.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.4px; }113.conn-pill {114 display: flex; align-items: center; gap: 6px;115 border: 1px solid var(--edge); border-radius: 999px;116 background: var(--card); font-size: 11.5px; font-weight: 700;117 padding: 4px 10px;118}119.conn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }120.conn-pill.on .conn-dot { background: var(--good); }121.conn-pill.mid .conn-dot { background: var(--warn); animation: pulse 1s infinite; }122@keyframes pulse { 50% { opacity: 0.35; } }123124/* bannières notification / alerte */125.banners { position: fixed; top: calc(52px + env(safe-area-inset-top)); left: 0; right: 0; z-index: var(--z-banner); display: flex; flex-direction: column; gap: 8px; padding: 8px 14px; pointer-events: none; }126.banner {127 pointer-events: auto; cursor: pointer;128 border: 1px solid var(--edge); border-radius: var(--r-md);129 box-shadow: var(--bshadow); padding: 11px 14px;130 font-weight: 700; font-size: 13.5px;131 display: flex; gap: 10px; align-items: center;132 animation: drop-in 0.25s ease-out;133}134@keyframes drop-in { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }135.banner.info { background: var(--orange-soft); }136.banner.good { background: var(--good-soft); }137.banner.bad { background: var(--bad-soft); }138.banner.warn { background: var(--warn-soft); }139140/* vues */141.view { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }142#view-sessions, #view-prompts, #view-eco, #view-social, #view-settings { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 14px calc(86px + env(safe-area-inset-bottom)); }143.view-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 14px; }144.view-head h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }145146/* ================= Bottom nav ================= */147.bottomnav {148 position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--z-nav);149 display: flex;150 background: var(--card);151 border-top: 1px solid var(--edge);152 padding: 6px 8px calc(6px + env(safe-area-inset-bottom));153}154.nav-btn {155 position: relative; flex: 1;156 background: none; border: none; cursor: pointer;157 display: flex; flex-direction: column; align-items: center; gap: 2px;158 color: var(--muted); font-size: 10.5px; font-weight: 700;159 padding: 6px 2px; border-radius: var(--r-md);160}161.nav-btn svg { width: 23px; height: 23px; }162.nav-btn.active { color: var(--ink); }163.nav-btn.active svg { color: var(--orange-deep); }164.nav-btn .badge {165 position: absolute; top: 3px; right: calc(50% - 17px);166 width: 9px; height: 9px; border-radius: 50%;167 background: var(--orange); border: 1px solid var(--edge);168}169170/* ================= Vue chat ================= */171.chatbar {172 display: flex; gap: 7px; align-items: center;173 padding: 9px 12px; overflow-x: auto; scrollbar-width: none;174 border-bottom: 1px solid var(--line);175 background: var(--bg);176}177.chatbar::-webkit-scrollbar { display: none; }178.pill-select {179 appearance: none; -webkit-appearance: none;180 background: var(--card); color: var(--ink);181 border: 1px solid var(--edge); border-radius: 999px;182 font-weight: 800; font-size: 13.5px; font-family: inherit;183 padding: 7px 26px 7px 13px;184 box-shadow: var(--bshadow-sm);185 max-width: 46vw; text-overflow: ellipsis;186 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%231a1611' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");187 background-repeat: no-repeat; background-position: right 9px center; background-size: 12px;188}189.chip {190 border: 1px solid var(--edge); border-radius: 999px;191 background: var(--card2); font-weight: 700; font-size: 12.5px;192 padding: 7px 12px; cursor: pointer; white-space: nowrap; flex-shrink: 0;193}194.chip.orange { background: var(--orange-soft); }195.chip.warn { background: var(--warn-soft); color: var(--warn); }196.chip.ghost { border-style: dashed; color: var(--muted); }197.sess-meta {198 display: flex; gap: 12px; flex-wrap: wrap;199 padding: 6px 14px; font-size: 11px; font-family: var(--mono); color: var(--muted);200 border-bottom: 1px solid var(--line); background: var(--card2);201}202203.messages {204 flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;205 padding: 16px 13px calc(20px);206 display: flex; flex-direction: column; gap: 12px;207 max-width: 780px; width: 100%; margin: 0 auto;208}209@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }210.messages > * { animation: msg-in 0.2s ease-out; }211212.msg-user {213 align-self: flex-end; max-width: 86%;214 background: var(--orange); color: var(--ink);215 border: 1px solid var(--edge); border-radius: var(--r-lg) var(--r-lg) 6px var(--r-lg);216 box-shadow: var(--bshadow-sm);217 padding: 10px 15px; font-weight: 600;218 white-space: pre-wrap; word-break: break-word;219}220.msg-claude {221 align-self: stretch;222 background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-lg);223 box-shadow: var(--bshadow-sm);224 padding: 13px 16px; word-break: break-word;225}226.msg-claude .md > :first-child { margin-top: 0; }227.msg-claude .md > :last-child { margin-bottom: 0; }228.md p { margin: 0.55em 0; }229.md pre {230 background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--r-sm);231 padding: 11px; overflow-x: auto; font-size: 12.5px; line-height: 1.5;232}233.md code { font-family: var(--mono); font-size: 0.88em; }234.md :not(pre) > code { background: var(--orange-soft); padding: 1px 6px; border-radius: 6px; }235.md h1, .md h2, .md h3, .md h4 { font-size: 1.03em; margin: 0.9em 0 0.35em; }236.md table { border-collapse: collapse; display: block; overflow-x: auto; font-size: 13px; }237.md th, .md td { border: 1px solid var(--line); padding: 5px 9px; }238.md th { background: var(--card2); }239.md a { color: var(--orange-deep); font-weight: 700; }240.md ul, .md ol { padding-left: 1.35em; margin: 0.5em 0; }241.md blockquote { margin: 0.6em 0; padding: 2px 12px; border-left: 3px solid var(--orange); color: var(--muted); }242243.thinking {244 color: var(--muted); font-style: italic; font-size: 13px;245 border-left: 3px solid var(--line); padding-left: 12px;246 white-space: pre-wrap; word-break: break-word;247}248details.thinking-box summary { color: var(--muted); font-size: 12.5px; cursor: pointer; font-weight: 600; }249.meta-line {250 align-self: center; text-align: center;251 color: var(--muted); font-size: 11px; font-family: var(--mono);252 background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px;253 max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;254}255.notice-line { align-self: center; color: var(--warn); font-size: 12px; font-weight: 700; }256.error-box {257 background: var(--bad-soft); border: 1px solid var(--bad);258 color: var(--bad); border-radius: var(--r-md); padding: 11px 14px;259 font-size: 13px; white-space: pre-wrap; word-break: break-word; font-weight: 600;260}261262/* --- cartes outils --- */263.tool {264 background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-md);265 overflow: hidden; font-size: 13px; box-shadow: var(--bshadow-sm);266}267.tool summary {268 display: flex; align-items: center; gap: 10px;269 padding: 9px 12px; cursor: pointer; list-style: none; user-select: none; min-height: 44px;270}271.tool summary::-webkit-details-marker { display: none; }272.tool .t-icon {273 flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px;274 border: 1px solid var(--edge);275 display: flex; align-items: center; justify-content: center;276 font-size: 13px; background: var(--card2);277}278.tool .t-icon.bash { background: var(--ink); color: var(--orange); }279.tool .t-icon.edit { background: var(--orange-soft); }280.tool .t-icon.read { background: var(--card2); }281.tool .t-icon.web { background: var(--good-soft); }282.tool .t-name { font-weight: 800; font-family: var(--mono); font-size: 12.5px; flex-shrink: 0; }283.tool .t-sub {284 color: var(--muted); font-family: var(--mono); font-size: 12px;285 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;286}287.tool .t-state { flex-shrink: 0; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 9px; border: 1.5px solid transparent; }288.tool .t-state.pending { color: var(--warn); background: var(--warn-soft); }289.tool .t-state.ok { color: var(--good); background: var(--good-soft); }290.tool .t-state.err { color: var(--bad); background: var(--bad-soft); }291.tool-body { border-top: 1px solid var(--edge); padding: 9px 13px 11px; background: var(--card2); }292.tool-body pre {293 margin: 6px 0; background: var(--card); border: 1px solid var(--line);294 border-radius: var(--r-sm); padding: 9px;295 overflow-x: auto; font-size: 12px; font-family: var(--mono);296 white-space: pre-wrap; word-break: break-word;297}298.tool-body .label { color: var(--muted); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; margin-top: 6px; }299.see-more { background: none; border: none; color: var(--orange-deep); font-size: 12.5px; font-weight: 800; cursor: pointer; padding: 4px 0; }300301.diff { font-family: var(--mono); font-size: 12px; margin: 6px 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--card); }302.diff .dl { padding: 2px 10px; white-space: pre-wrap; word-break: break-word; }303.diff .del { background: var(--del-bg); color: var(--del-ink); }304.diff .add { background: var(--add-bg); color: var(--add-ink); }305306.todos { margin: 4px 0; padding: 0; list-style: none; font-size: 13.5px; }307.todos li { padding: 3px 0; }308.todos .done { color: var(--muted); text-decoration: line-through; }309.todos .doing { color: var(--orange-deep); font-weight: 800; }310311/* --- permission --- */312.perm {313 background: var(--warn-soft); border: 1px solid var(--edge);314 border-radius: var(--r-lg); padding: 14px; font-size: 13.5px;315 box-shadow: var(--bshadow);316}317.perm-title { font-weight: 800; margin-bottom: 8px; font-size: 14.5px; }318.perm pre {319 background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px;320 overflow-x: auto; font-size: 12px; font-family: var(--mono);321 white-space: pre-wrap; word-break: break-word;322 max-height: 200px; overflow-y: auto; margin: 0;323}324.perm-actions { display: flex; gap: 8px; margin-top: 12px; }325.perm-actions button {326 flex: 1; padding: 11px 6px; border-radius: 999px;327 font-size: 13.5px; font-weight: 800; cursor: pointer; min-height: 46px;328 border: 1px solid var(--edge);329}330.perm-allow { background: var(--good); color: #fff; box-shadow: var(--bshadow-sm); }331.perm-always { background: var(--good-soft); color: var(--good); line-height: 1.05; }332.perm-always small { font-weight: 600; font-size: 9.5px; opacity: 0.8; }333.perm-deny { background: var(--card); color: var(--bad); }334.perm-allall {335 width: 100%; margin-top: 8px; padding: 12px; border-radius: 999px;336 border: 1px solid var(--edge); background: var(--ink); color: var(--orange);337 font-weight: 800; font-size: 13.5px; cursor: pointer; box-shadow: var(--bshadow-sm);338}339.perm-allall:active { transform: translate(1px,1px); box-shadow: none; }340.perm-resolved { color: var(--muted); font-size: 12.5px; margin-top: 10px; font-weight: 700; }341342/* bouton copier sur les blocs de code */343.md pre, .tool-body pre { position: relative; }344.copied-tag {345 position: absolute; top: 6px; right: 8px;346 background: var(--good); color: #fff; font-size: 10px; font-weight: 800;347 border-radius: 6px; padding: 2px 7px; font-family: var(--round);348}349350/* file d'attente */351.queued-notice { align-self: center; background: var(--warn-soft); border: 1px solid var(--warn); border-radius: 999px; padding: 5px 14px; }352.working .work-time { margin-left: 2px; color: var(--orange-deep); font-family: var(--mono); font-size: 12px; }353354.head-actions { display: flex; align-items: center; gap: 10px; }355356.working {357 align-self: flex-start;358 display: flex; align-items: center; gap: 10px;359 font-size: 13.5px; font-weight: 700;360 background: var(--card); border: 1px solid var(--edge);361 border-radius: 999px; padding: 8px 16px; box-shadow: var(--bshadow-sm);362}363.dots { display: flex; gap: 4px; }364.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); border: 1px solid var(--edge); animation: bounce 1.1s ease-in-out infinite; }365.dots i:nth-child(2) { animation-delay: 0.14s; }366.dots i:nth-child(3) { animation-delay: 0.28s; }367@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-4px); opacity: 1; } }368369/* --- accueil --- */370.welcome {371 position: absolute; inset: 130px 0 140px; z-index: 5;372 display: flex; flex-direction: column; align-items: center; justify-content: center;373 gap: 9px; padding: 28px; text-align: center; pointer-events: none;374}375.welcome > * { pointer-events: auto; }376.welcome h2 { margin: 6px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }377.welcome p { margin: 0; color: var(--muted); font-size: 14px; max-width: 300px; font-weight: 600; }378.hints { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }379.hint {380 background: var(--card); border: 1px solid var(--edge);381 font-size: 13px; font-weight: 700;382 border-radius: 999px; padding: 9px 14px; cursor: pointer;383 box-shadow: var(--bshadow-sm);384}385386/* --- composer --- */387.composer {388 position: sticky; bottom: 0; z-index: var(--z-composer);389 background: var(--bg);390 padding: 8px 12px calc(72px + env(safe-area-inset-bottom));391}392.composer-inner {393 display: flex; align-items: flex-end; gap: 8px;394 max-width: 780px; margin: 0 auto;395 background: var(--card);396 border: 1px solid var(--edge); border-radius: var(--r-xl);397 box-shadow: var(--bshadow);398 padding: 6px 6px 6px 6px; gap: 4px;399}400.composer-inner #input { padding-left: 8px; }401#input {402 flex: 1; background: none; color: var(--ink);403 border: none; padding: 10px 0; font-size: 16px; line-height: 1.45;404 resize: none; outline: none; max-height: 140px; font-family: inherit; font-weight: 600;405}406#input::placeholder { color: var(--muted); font-weight: 600; }407.send-btn {408 width: 42px; height: 42px; border-radius: 50%;409 border: 1px solid var(--edge);410 background: var(--orange); color: var(--ink);411 cursor: pointer; flex-shrink: 0;412 display: flex; align-items: center; justify-content: center;413 box-shadow: var(--bshadow-sm);414 transition: transform 0.08s;415}416.send-btn svg { width: 19px; height: 19px; }417.send-btn:active { transform: translate(1px, 1px); box-shadow: none; }418.send-btn:disabled { opacity: 0.35; }419.send-btn.stop { background: var(--bad); color: #fff; }420.wand-btn {421 width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;422 border: 1px solid var(--edge); background: var(--card2); color: var(--orange-deep);423 cursor: pointer; display: flex; align-items: center; justify-content: center;424 align-self: flex-end; margin-bottom: 2px;425}426.wand-btn svg { width: 19px; height: 19px; }427.wand-btn:active { transform: translate(1px,1px); }428.wand-btn.busy { animation: wand-pulse 0.9s ease-in-out infinite; color: var(--orange); }429@keyframes wand-pulse { 50% { opacity: 0.4; transform: scale(1.08); } }430.slash-hint {431 max-width: 780px; margin: 6px auto 0; display: flex; gap: 6px; flex-wrap: wrap;432}433.slash-hint button {434 border: 1px solid var(--edge); background: var(--card2); border-radius: 999px;435 font-size: 12px; font-weight: 700; padding: 5px 11px; cursor: pointer;436}437438/* ================= Sessions ================= */439.sess-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 0 auto; width: 100%; }440.sess-card {441 background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-lg);442 box-shadow: var(--bshadow-sm); padding: 13px 15px; cursor: pointer;443 display: flex; flex-direction: column; gap: 6px;444}445.sess-top { display: flex; align-items: center; gap: 8px; }446.sess-title { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }447.sess-badge { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--edge); flex-shrink: 0; }448.sess-badge.running { background: var(--orange); animation: pulse 1.4s infinite; }449.sess-badge.waiting_perm { background: var(--warn-soft); color: var(--warn); }450.sess-badge.idle { background: var(--card2); color: var(--muted); }451.batch-tag { background: var(--orange-soft); color: var(--orange-deep); border-radius: 999px; padding: 1px 8px; font-weight: 800; }452.pill-select.all-mode { background: var(--orange); box-shadow: 3px 3px 0 var(--shadow); }453.sess-info { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }454.sess-actions { display: flex; gap: 8px; margin-top: 4px; }455.sess-actions button {456 border: 1px solid var(--edge); border-radius: 999px; background: var(--card2);457 font-size: 12px; font-weight: 800; padding: 6px 13px; cursor: pointer;458}459.sess-actions .del { color: var(--bad); }460.sess-empty { color: var(--muted); text-align: center; padding: 40px 16px; font-weight: 600; }461462/* Prompt Bank */463.prompt-preview {464 font-family: var(--mono); font-size: 12px; color: var(--ink);465 background: var(--card2); border: 1px solid var(--line); border-radius: var(--r-sm);466 padding: 8px 10px; white-space: pre-wrap; word-break: break-word; line-height: 1.45;467}468.sess-actions .p-send { background: var(--orange); color: var(--ink); border-color: var(--ink); box-shadow: var(--bshadow-sm); }469.pe-input {470 width: 100%; background: var(--bg); border: 1px solid var(--edge); color: var(--ink);471 border-radius: var(--r-md); padding: 11px 13px; font-size: 15px; font-family: inherit; font-weight: 600; outline: none;472}473.pe-input:focus { border-color: var(--orange); }474.pe-textarea {475 width: 100%; margin-top: 10px; min-height: 180px; resize: vertical;476 background: var(--bg); border: 1px solid var(--edge); color: var(--ink);477 border-radius: var(--r-md); padding: 12px 13px; font-size: 14px; line-height: 1.5;478 font-family: var(--mono); outline: none;479}480.pe-textarea:focus { border-color: var(--orange); }481482/* bottom nav resserrée pour 5 onglets */483.nav-btn span { font-size: 10px; }484.nav-btn svg { width: 22px; height: 22px; }485486/* ================= Écosystème ================= */487.eco-stamp { font-size: 11px; color: var(--muted); font-family: var(--mono); }488.eco-overview {489 display: flex; gap: 10px; margin-bottom: 14px;490 max-width: 780px; margin-left: auto; margin-right: auto;491}492.eco-stat {493 flex: 1; background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-lg);494 box-shadow: var(--bshadow-sm); padding: 10px 12px; text-align: center;495}496.eco-stat .v { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }497.eco-stat .l { font-size: 10.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; }498.eco-stat.ok .v { color: var(--good); }499.eco-stat.bad .v { color: var(--bad); }500.eco-grid {501 display: grid; grid-template-columns: 1fr; gap: 12px;502 max-width: 780px; margin: 0 auto; width: 100%;503}504@media (min-width: 560px) { .eco-grid { grid-template-columns: 1fr 1fr; } }505.eco-loading { color: var(--muted); text-align: center; padding: 40px; font-weight: 700; }506.site-card {507 background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-lg);508 box-shadow: var(--bshadow-sm); padding: 12px 14px; cursor: pointer;509 display: flex; flex-direction: column; gap: 8px;510 transition: transform 0.08s;511}512.site-card:active { transform: translate(2px, 2px); box-shadow: none; }513.site-card.down { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }514.site-top { display: flex; align-items: center; gap: 8px; }515.site-name { font-weight: 800; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }516.st-pill { font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--edge); flex-shrink: 0; display: flex; gap: 4px; align-items: center; }517.st-pill.up { background: var(--good-soft); color: var(--good); }518.st-pill.slow { background: var(--warn-soft); color: var(--warn); }519.st-pill.down { background: var(--bad); color: #fff; }520.site-mid { display: flex; align-items: flex-end; gap: 10px; }521.site-ms { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; }522.site-ms small { font-size: 11px; color: var(--muted); font-weight: 700; }523.spark { flex: 1; height: 30px; }524.site-foot { display: flex; gap: 9px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); font-family: var(--mono); }525.site-foot b { color: var(--ink); }526527.site-foot .foot-bad b { color: var(--bad); }528529/* nœuds du cluster */530.eco-subhead { max-width: 780px; margin: 20px auto 10px; width: 100%; font-size: 15px; font-weight: 800; letter-spacing: -0.3px; }531.node-grid { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 780px; margin: 0 auto; width: 100%; }532@media (min-width: 560px) { .node-grid { grid-template-columns: 1fr 1fr; } }533.node-card { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--bshadow-sm); padding: 12px 14px; }534.node-card.warn { border-color: var(--warn); }535.node-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }536.node-name { font-weight: 800; font-size: 15px; font-family: var(--mono); }537.node-apps { font-size: 11px; font-weight: 800; border: 1px solid var(--edge); border-radius: 999px; padding: 2px 9px; background: var(--good-soft); color: var(--good); }538.node-apps.bad { background: var(--warn-soft); color: var(--warn); }539.nbar { margin: 5px 0; }540.nbar-l { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }541.nbar-l b { color: var(--ink); font-family: var(--mono); }542.nbar-track { height: 7px; background: var(--card2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }543.nbar-fill { height: 100%; border-radius: 999px; transition: width 0.4s; }544545/* actions d'admin dans la feuille */546.admin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }547.admin-actions .btn-ghost { text-align: center; text-decoration: none; }548.admin-out { margin-top: 10px; }549.admin-out pre { background: var(--term-bg); color: var(--term-ink); border-radius: var(--r-sm); padding: 10px; font-size: 11px; font-family: var(--mono); overflow-x: auto; max-height: 320px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; margin: 0; }550.admin-load { color: var(--muted); font-weight: 700; font-size: 13px; }551.admin-ok { color: var(--good); font-weight: 800; }552.admin-err { color: var(--bad); font-weight: 800; }553554/* ===== Command Center ===== */555.eco-overview {556 display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;557 max-width: 900px; margin: 0 auto 14px; width: 100%;558}559@media (min-width: 560px) { .eco-overview { grid-template-columns: repeat(6, 1fr); } }560.kpi {561 background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-md);562 box-shadow: var(--bshadow-sm); padding: 9px 8px; text-align: center;563}564.kpi .v { font-size: 21px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; }565.kpi .v small { font-size: 11px; font-weight: 700; color: var(--muted); }566.kpi .v .tot { font-size: 13px; color: var(--muted); font-weight: 700; }567.kpi .l { font-size: 9.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; }568.kpi.ok .v { color: var(--good); } .kpi.bad .v { color: var(--bad); }569.eco-grid { max-width: 900px; }570@media (min-width: 900px) { .eco-grid { grid-template-columns: 1fr 1fr 1fr; } }571572.site-logo { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; object-fit: cover; background: var(--card2); border: 1px solid var(--line); }573.site-logo.big { width: 34px; height: 34px; border-radius: 9px; }574.trend { font-size: 11px; font-weight: 800; font-family: var(--round); margin-left: 4px; }575.trend.up { color: var(--bad); } .trend.down { color: var(--good); } .trend.flat { color: var(--muted); }576.statusbar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--card2); border: 1px solid var(--line); margin: 4px 0 2px; }577.statusbar i { display: block; height: 100%; }578.statusbar .s2 { background: var(--good); } .statusbar .s3 { background: #6a9fd8; }579.statusbar .s4 { background: var(--warn); } .statusbar .s5, .statusbar .se { background: var(--bad); }580.site-metrics { display: flex; gap: 6px; margin: 4px 0 2px; }581.site-metrics .m { flex: 1; text-align: center; background: var(--card2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 2px; }582.site-metrics .m b { display: block; font-size: 14px; font-weight: 800; letter-spacing: -0.3px; }583.site-metrics .m span { font-size: 9px; color: var(--muted); font-weight: 700; text-transform: uppercase; }584.pgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; }585.pc { text-align: center; background: var(--card2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 2px; }586.pc b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -0.4px; }587.pc span { font-size: 9.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; }588.pc.hot { background: var(--warn-soft); border-color: #f0c36b; }589.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--muted); }590.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 3px; vertical-align: -1px; border: 1px solid var(--line); }591.legend .sw.s2 { background: var(--good); } .legend .sw.s3 { background: #6a9fd8; }592.legend .sw.s4 { background: var(--warn); } .legend .sw.s5 { background: var(--bad); } .legend .sw.se { background: var(--bad); opacity: 0.5; }593.tile .v.red { color: var(--bad); }594595/* feuille détail */596.sheet { position: fixed; inset: 0; z-index: var(--z-sheet); }597.sheet-back { position: absolute; inset: 0; background: rgba(26, 22, 17, 0.45); }598@keyframes sheet-up { from { transform: translateY(60%); } to { transform: none; } }599.sheet-panel {600 position: absolute; left: 0; right: 0; bottom: 0;601 max-height: 88dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;602 background: var(--bg); border: 1px solid var(--edge); border-bottom: none;603 border-radius: var(--r-xl) var(--r-xl) 0 0;604 padding: 8px 16px calc(20px + env(safe-area-inset-bottom));605 animation: sheet-up 0.22s ease-out;606}607.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 6px auto 12px; }608.sheet-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }609.sheet-h h3 { margin: 0; font-size: 21px; font-weight: 800; flex: 1; }610.sheet-sec { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--bshadow-sm); padding: 13px 15px; margin-bottom: 12px; }611.sheet-sec h4 { margin: 0 0 9px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); }612.kv { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 13.5px; }613.kv b { font-family: var(--mono); font-weight: 700; }614.tile-row { display: flex; gap: 9px; }615.tile { flex: 1; background: var(--card2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 6px; text-align: center; }616.tile .v { font-size: 17px; font-weight: 800; }617.tile .l { font-size: 10px; color: var(--muted); font-weight: 800; text-transform: uppercase; }618.chart { width: 100%; }619.chart-tip {620 position: absolute; pointer-events: none; transform: translate(-50%, -110%);621 background: var(--ink); color: var(--bg); border-radius: 8px;622 font-size: 11px; font-family: var(--mono); padding: 4px 8px; white-space: nowrap;623}624.inc-item { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; align-items: baseline; }625.inc-item:last-child { border-bottom: none; }626.inc-dot { color: var(--bad); font-weight: 800; }627.inc-ok { color: var(--good); font-weight: 800; }628629/* ================= Réglages ================= */630.set-card {631 max-width: 780px; margin: 0 auto 12px; width: 100%;632 background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-lg);633 box-shadow: var(--bshadow-sm); padding: 14px 16px;634}635.set-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); margin-bottom: 10px; }636.seg { display: flex; gap: 7px; }637.seg.vert { flex-direction: column; }638.seg button {639 flex: 1; border: 1px solid var(--edge); border-radius: 999px;640 background: var(--card2); font-weight: 700; font-size: 13.5px;641 padding: 10px 12px; cursor: pointer; text-align: center;642}643.seg.vert button { text-align: left; padding-left: 16px; }644.seg button.on { background: var(--orange); font-weight: 800; box-shadow: var(--bshadow-sm); }645.set-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; font-weight: 600; }646.set-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }647648649/* ---- Social ---- */650.soc-card{background:var(--card,#fff);border:1px solid var(--edge);border-radius:16px;padding:14px 16px;margin:0 0 14px;box-shadow:3px 3px 0 var(--shadow);}651.soc-card h3{margin:0 0 10px;font-size:15px;}652.soc-switch{display:flex;align-items:center;gap:10px;font-weight:700;cursor:pointer;}653.soc-switch input{width:20px;height:20px;accent-color:var(--accent,#f97316);}654.soc-sub{color:var(--muted,#6b7280);font-size:13px;margin-top:8px;}655.soc-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:12px;}656.soc-select{padding:9px 12px;border:1px solid var(--edge);border-radius:10px;font:inherit;background:#fff;}657.soc-draft{margin-top:14px;display:flex;flex-direction:column;gap:10px;}658.soc-draft img{width:100%;max-width:340px;border-radius:12px;border:1px solid var(--edge);align-self:center;}659#view-social textarea{width:100%;padding:10px 12px;border:1px solid var(--edge);border-radius:10px;font:inherit;resize:vertical;}660.soc-log{display:flex;flex-direction:column;gap:6px;max-height:340px;overflow-y:auto;}661.soc-logrow{font-size:13px;padding:6px 8px;border-radius:8px;background:rgba(0,0,0,.04);}662.soc-logt{color:var(--muted,#6b7280);font-variant-numeric:tabular-nums;margin-right:6px;}663664#vncPanel canvas{max-width:100%;height:auto;display:block;margin:0 auto}665#vncPanel{max-height:70vh}666667/* ---- Studio ---- */668.st-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}669@media(max-width:640px){.st-grid{grid-template-columns:1fr}}670.st-gen h3{margin:0 0 8px}671.st-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin-top:8px}672.st-item{background:var(--card,#fff);border:1px solid var(--edge);border-radius:14px;overflow:hidden;box-shadow:3px 3px 0 var(--shadow);display:flex;flex-direction:column}673.st-media{position:relative;aspect-ratio:4/5;background:#0d0d0d;overflow:hidden}674.st-media img,.st-media video{width:100%;height:100%;object-fit:cover;display:block}675.st-badge{position:absolute;left:8px;top:8px;background:rgba(13,13,13,.82);color:#fff;font-size:11px;font-weight:800;padding:4px 9px;border-radius:999px;letter-spacing:.02em}676.st-cap{font-size:11px;line-height:1.35;color:var(--muted,#555);padding:8px 10px;max-height:76px;overflow:auto;white-space:pre-wrap}677.st-item-actions{display:flex;gap:6px;padding:0 10px 10px;margin-top:auto}678.st-item-actions .btn-cta.small{flex:0 0 auto;text-decoration:none;text-align:center}679.st-item-actions .btn-ghost.small{flex:1}680681/* ---- Studio loading ---- */682#stLoad{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;background:rgba(8,8,10,.72);backdrop-filter:blur(4px)}683#stLoad.on{display:flex}684.stload-box{background:var(--card,#141414);border:1px solid var(--edge);border-radius:18px;padding:26px 30px;text-align:center;box-shadow:var(--bshadow);max-width:80vw}685.stload-spin{width:44px;height:44px;margin:0 auto 14px;border:5px solid rgba(127,127,127,.25);border-top-color:var(--accent,#f97316);border-radius:50%;animation:stspin .8s linear infinite}686@keyframes stspin{to{transform:rotate(360deg)}}687.stload-msg{font-weight:800;font-size:15px}688.stload-sub{font-size:12px;color:var(--muted,#888);margin-top:6px}689.st-skel .st-media{position:relative}690.st-shimmer{position:absolute;inset:0;background:linear-gradient(100deg,#1a1a1a 30%,#2a2a2a 50%,#1a1a1a 70%);background-size:200% 100%;animation:stshim 1.3s linear infinite}691@keyframes stshim{to{background-position:-200% 0}}692693/* ---- Visiteurs ---- */694#view-visitors{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:14px 14px calc(86px + env(safe-area-inset-bottom))}695.vis-global{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}696.vg-item{background:var(--card,#fff);border:1px solid var(--edge);border-radius:14px;padding:14px;text-align:center;box-shadow:3px 3px 0 var(--shadow)}697.vg-n{font-size:26px;font-weight:900;color:var(--accent,#f97316)}698.vg-l{font-size:11px;font-weight:700;color:var(--muted,#777);text-transform:uppercase;letter-spacing:.05em;margin-top:2px}699.vis-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}700.vis-card{background:var(--card,#fff);border:1px solid var(--edge);border-radius:16px;padding:16px;box-shadow:3px 3px 0 var(--shadow)}701.vis-h{display:flex;align-items:center;gap:10px}702.vis-h img{width:26px;height:26px;border-radius:6px}703.vis-name{font-weight:800;font-size:15px;flex:1}704.vis-dot{width:9px;height:9px;border-radius:50%;background:#9aa;display:inline-block}705.vis-dot.on{background:#22c55e;box-shadow:0 0 0 0 rgba(34,197,94,.6);animation:vpulse 1.6s infinite}706.vis-dot.big{width:12px;height:12px}707@keyframes vpulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,.6)}70%{box-shadow:0 0 0 10px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}708.vis-online{display:flex;align-items:center;gap:8px;margin-top:12px}709.vis-onN{font-size:34px;font-weight:900;color:var(--accent,#f97316)}710.vis-onL{font-size:12px;color:var(--muted,#777);font-weight:700}711.vis-row{display:flex;gap:8px;margin-top:12px}712.vis-m{flex:1;background:rgba(127,127,127,.08);border-radius:10px;padding:8px;text-align:center}713.vm-n{font-size:20px;font-weight:900}714.vm-l{font-size:10px;color:var(--muted,#777);font-weight:700;text-transform:uppercase}715.vis-pv{font-size:12px;color:var(--muted,#777);margin-top:10px;font-weight:600}716717.vis-card{cursor:pointer;transition:transform .1s}718.vis-card:active{transform:scale(.98)}719#visDetail{position:fixed;inset:0;z-index:9998;display:none;align-items:flex-start;justify-content:center;background:rgba(8,8,10,.72);backdrop-filter:blur(4px);overflow-y:auto;padding:40px 14px}720#visDetail.on{display:flex}721.vd-box{background:var(--card,#141414);border:1px solid var(--edge);border-radius:18px;width:100%;max-width:720px;box-shadow:var(--bshadow)}722.vd-head{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid rgba(127,127,127,.2)}723.vd-head img{width:30px;height:30px;border-radius:8px}724.vd-head h3{flex:1;font-size:18px}725.vd-head #vdClose{background:none;border:0;font-size:22px;cursor:pointer;color:var(--muted,#888)}726.vd-body{padding:18px}727.vd-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}728.vd-k{background:rgba(127,127,127,.08);border-radius:12px;padding:12px;text-align:center}729.vd-kn{font-size:24px;font-weight:900;color:var(--accent,#f97316)}730.vd-kl{font-size:10px;color:var(--muted,#888);font-weight:700;text-transform:uppercase}731.vd-title{font-size:13px;font-weight:800;color:var(--muted,#888);text-transform:uppercase;letter-spacing:.06em;margin:20px 0 8px}732.vis-chart{width:100%;height:auto;background:rgba(127,127,127,.05);border-radius:12px}733.vd-geo{display:flex;align-items:center;gap:10px;margin-bottom:8px}734.vd-geoL{width:180px;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}735.vd-bar{flex:1;height:14px;background:rgba(127,127,127,.15);border-radius:7px;overflow:hidden}736.vd-bar>div{height:100%;background:var(--accent,#f97316);border-radius:7px}737.vd-geoN{font-size:13px;font-weight:800;width:44px;text-align:right}738739/* ====================================================================740 Admin-Ka v3 — Control Center : layout desktop, dark mode, densité741 ==================================================================== */742:root {743 --shadow: #1a1611;744 --edge: #1a1611;745 --on-accent: #1a1611;746 --code-bg: #f2efe7;747 --term-bg: #1a1611;748 --term-ink: #e8e6df;749 --del-bg: #ffe4e1; --del-ink: #8c1622;750 --add-bg: #ddf3e4; --add-ink: #0c5326;751 --panel-gap: 14px;752}753:root[data-theme="dark"] {754 --bg: #16130e;755 --card: #201c15;756 --card2: #2a251c;757 --ink: #ede6d8;758 --muted: #a39a89;759 --line: #3a342a;760 --grid: #322d24;761 --edge: #4a4335;762 --shadow: #0a0806;763 --orange-soft: #3d2510;764 --good: #3fbf78; --good-soft: #14301f;765 --warn: #e0a93e; --warn-soft: #362a10;766 --bad: #f0616d; --bad-soft: #3a1518;767 --code-bg: #17140f;768 --del-bg: #3d1a1d; --del-ink: #f4a9ad;769 --add-bg: #12301c; --add-ink: #9fdcb2;770}771:root[data-theme="dark"] .hljs { background: var(--code-bg); color: #d8d2c4; }772:root[data-theme="dark"] .site-logo, :root[data-theme="dark"] .vis-h img, :root[data-theme="dark"] .rt-row img { background: #f4f1ea; }773774/* texte sombre garanti sur les fonds orange (les deux thèmes) */775.btn-cta, .ka-mark, .send-btn:not(.stop), .msg-user, .seg button.on,776.pill-select.all-mode, .sess-badge.running, .perm-allall { color: var(--on-accent); }777:root[data-theme="dark"] .perm-allall { background: var(--orange); color: var(--on-accent); }778779/* ---------- coquille : sidebar + colonne principale ---------- */780.app { display: flex; flex-direction: row; height: 100dvh; }781.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100dvh; }782.sidebar { display: none; }783.desktop-only { display: none !important; }784.page-title { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.3px; }785.head-right { display: flex; align-items: center; gap: 8px; }786.icon-btn {787 position: relative; width: 34px; height: 34px; border-radius: 10px;788 border: 1px solid var(--edge); background: var(--card); cursor: pointer;789 display: flex; align-items: center; justify-content: center; color: var(--ink);790}791.icon-btn svg { width: 17px; height: 17px; }792.icon-btn .badge { position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); border: 1px solid var(--edge); }793.top-stamp { font-size: 11px; color: var(--muted); font-family: var(--mono); }794.view.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 14px calc(86px + env(safe-area-inset-bottom)); }795796@media (min-width: 1020px) {797 .desktop-only { display: block !important; }798 .mobile-only { display: none !important; }799 .bottomnav { display: none; }800 .sidebar {801 display: flex; flex-direction: column; width: 224px; flex-shrink: 0;802 background: var(--card); border-right: 1px solid var(--edge);803 padding: 14px 10px 12px;804 }805 .side-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.4px; padding: 2px 8px 14px; }806 .side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }807 .side-nav .nav-btn {808 flex-direction: row; justify-content: flex-start; gap: 10px;809 font-size: 13.5px; font-weight: 700; color: var(--muted);810 padding: 9px 12px; border-radius: 10px; text-align: left;811 }812 .side-nav .nav-btn svg { width: 18px; height: 18px; flex-shrink: 0; }813 .side-nav .nav-btn.active { background: var(--orange-soft); color: var(--ink); border: 1px solid var(--edge); padding: 7.5px 10.5px; }814 .side-nav .nav-btn.active svg { color: var(--orange-deep); }815 .side-nav .nav-btn .badge { position: absolute; top: 8px; right: 10px; left: auto; }816 .side-foot { display: flex; flex-direction: column; gap: 8px; padding: 10px 8px 0; border-top: 1px solid var(--line); }817 .side-node { font-size: 11px; color: var(--muted); }818 .header { padding: 10px 20px; }819 .head-right #connPill { display: none; }820 .view.scroll { padding: 18px 24px 40px; }821 .messages, .composer-inner, .slash-hint { max-width: 920px; }822 .eco-grid, .eco-overview, .node-grid, .eco-subhead, .sess-list, .set-card { max-width: 1180px; }823 .eco-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }824 .node-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }825 .eco-overview { grid-template-columns: repeat(6, 1fr); }826 html, body { font-size: 14.5px; }827}828829/* ---------- KPI v3 ---------- */830.ov-kpis {831 display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));832 gap: 10px; margin-bottom: var(--panel-gap); max-width: 1180px;833}834.ov-kpis.compact { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }835.kpi2 {836 background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-md);837 padding: 10px 12px; box-shadow: var(--bshadow-sm);838}839.kpi2 .kv2 { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.1; font-variant-numeric: tabular-nums; }840.kpi2 .kv2 small { font-size: 12px; color: var(--muted); font-weight: 700; }841.kpi2 .kl2 { font-size: 10px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }842.kpi2.accent .kv2 { color: var(--orange-deep); }843.kpi2.good .kv2 { color: var(--good); }844.kpi2.bad .kv2 { color: var(--bad); }845.kdelta { display: inline-block; font-size: 11px; font-weight: 800; margin-top: 3px; border-radius: 999px; padding: 1px 8px; }846.kdelta.up { background: var(--good-soft); color: var(--good); }847.kdelta.down { background: var(--bad-soft); color: var(--bad); }848.kdelta.flat { background: var(--card2); color: var(--muted); }849850/* ---------- panneaux ---------- */851.ov-cols { display: grid; grid-template-columns: 1fr; gap: var(--panel-gap); margin-bottom: var(--panel-gap); max-width: 1180px; }852@media (min-width: 900px) { .ov-cols { grid-template-columns: 3fr 2fr; } .ov-cols + .ov-cols { grid-template-columns: 1fr 1fr; } }853.panel {854 background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-lg);855 box-shadow: var(--bshadow-sm); padding: 14px 16px; min-width: 0;856}857.panel.slim { padding: 10px 14px; margin-bottom: var(--panel-gap); max-width: 1180px; }858.panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }859.panel-h h3 { margin: 0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }860.panel-note { font-size: 11px; color: var(--muted); font-weight: 600; }861.linklike { background: none; border: none; color: var(--orange-deep); font-weight: 800; font-size: 12px; cursor: pointer; padding: 0; }862.sub-h { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.3px; }863.defs-note { max-width: 1180px; color: var(--muted); font-size: 11.5px; line-height: 1.6; margin: 14px 2px 0; }864865/* écosystème compact (overview) */866.ov-eco-chips { display: flex; flex-wrap: wrap; gap: 6px; }867.eco-chip {868 display: inline-flex; align-items: center; gap: 6px; cursor: pointer;869 border: 1px solid var(--edge); border-radius: 999px; padding: 4px 10px;870 font-size: 11.5px; font-weight: 700; background: var(--card2);871}872.eco-chip b { font-family: var(--mono); font-weight: 700; color: var(--muted); }873.eco-chip.up { color: var(--good); }874.eco-chip.slow { color: var(--warn); background: var(--warn-soft); }875.eco-chip.down { color: #fff; background: var(--bad); border-color: var(--bad); }876.eco-chip.down b { color: #fff; }877.ov-sess { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--line); cursor: pointer; }878.ov-sess:last-child { border-bottom: none; }879.ov-sess-t { flex: 1; min-width: 0; font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }880.ov-sess-m { font-size: 11px; color: var(--muted); flex-shrink: 0; }881.anom { font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 600; }882.anom:last-child { border-bottom: none; }883.anom.warn { color: var(--warn); font-weight: 800; }884885/* répartition humains / bots / datacenter */886.break-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--card2); border: 1px solid var(--line); }887.break-bar i { display: block; height: 100%; }888889/* temps réel */890.rt-list { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; }891.rt-row {892 display: flex; align-items: center; gap: 8px;893 padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px;894}895.rt-row:last-child { border-bottom: none; }896.rt-row img { width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0; }897.rt-site { font-weight: 800; flex-shrink: 0; }898.rt-path { color: var(--muted); font-size: 11px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }899.rt-loc { color: var(--ink); font-weight: 600; font-size: 11.5px; flex-shrink: 0; }900.rt-dev { font-size: 10.5px; flex-shrink: 0; }901.rt-dur { color: var(--muted); font-size: 10.5px; flex-shrink: 0; }902903/* visiteurs v2 */904.vis-grid { max-width: 1180px; }905.vis-card { padding: 12px 14px; box-shadow: var(--bshadow-sm); border-width: 2px; }906.vis-on-pill {907 font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 10px;908 border: 1px solid var(--line); color: var(--muted); background: var(--card2); flex-shrink: 0;909}910.vis-on-pill.on { background: var(--good-soft); color: var(--good); border-color: var(--good); }911.vis-row { margin-top: 10px; }912.vis-m { background: var(--card2); border: 1px solid var(--line); }913.vm-n { font-size: 17px; font-variant-numeric: tabular-nums; }914.vis-pv { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 11.5px; }915.vis-more { color: var(--orange-deep); font-weight: 800; }916.seg.mini button { padding: 6px 12px; font-size: 12px; }917.seg.mini { gap: 5px; }918919/* filtres listes */920.filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; max-width: 1180px; }921.f-input, .f-select {922 background: var(--card); border: 1px solid var(--edge); color: var(--ink);923 border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; font-family: inherit; outline: none;924}925.f-input { flex: 1; min-width: 140px; }926.f-input:focus { border-color: var(--orange); }927928/* sessions denses */929.sess-card.row {930 flex-direction: row; align-items: center; gap: 10px; padding: 10px 14px;931 border-width: 1.5px; box-shadow: none;932}933.sess-card.row:hover { border-color: var(--orange-deep); }934.sess-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }935.sess-cost, .sess-when { flex-shrink: 0; font-size: 11.5px; color: var(--muted); }936.sess-btns { display: flex; gap: 6px; flex-shrink: 0; }937.sess-btns button { border: 1px solid var(--edge); border-radius: 999px; background: var(--card2); font-size: 11.5px; font-weight: 800; padding: 5px 12px; cursor: pointer; }938.sess-btns .del { color: var(--bad); padding: 5px 9px; }939@media (max-width: 640px) { .sess-when { display: none; } }940941/* prompts */942.sess-card.prow { box-shadow: none; border-width: 1.5px; }943.sess-card.prow:hover { border-color: var(--orange-deep); }944.fav-btn { background: none; border: none; font-size: 17px; color: var(--muted); cursor: pointer; padding: 0 2px; flex-shrink: 0; }945.fav-btn.on { color: var(--orange-deep); }946.sess-top .sess-info { flex-shrink: 0; }947948/* nav mobile « Plus » */949.more-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 8px; }950.more-btn {951 display: flex; align-items: center; gap: 10px;952 background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-md);953 box-shadow: var(--bshadow-sm); padding: 13px 14px; font-weight: 800; font-size: 14px; cursor: pointer;954}955.more-btn svg { width: 20px; height: 20px; color: var(--orange-deep); }956957/* accueil chat */958.welcome { position: absolute; inset: 110px 0 150px; overflow-y: auto; }959.welcome-inner { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 100%; max-width: 560px; margin: auto; }960.welcome-recent { width: 100%; margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }961.wr-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); text-align: left; }962.wr-item {963 display: flex; align-items: center; gap: 9px; text-align: left;964 background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-md);965 padding: 9px 12px; cursor: pointer; font-family: inherit;966}967.wr-t { flex: 1; min-width: 0; font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }968.wr-m { font-size: 11px; color: var(--muted); flex-shrink: 0; }969970/* réglages analytics */971.an-cfg .ac-num { width: 74px; background: var(--bg); border: 1px solid var(--edge); color: var(--ink); border-radius: 8px; padding: 5px 8px; font-family: var(--mono); font-size: 13px; }972.an-cfg .pe-textarea { font-size: 12px; }973974/* studio / vieux composants : bascule douce vers les variables */975.soc-select, #view-social textarea { background: var(--card); color: var(--ink); }976.vd-box, .stload-box { background: var(--card); }977.vd-head h3 { color: var(--ink); }978.st-cap { color: var(--muted); }979.vis-chart { background: var(--card2); border-radius: 12px; }980981/* ====================================================================982 v3.1 — Modernisation : fini le look jouet.983 Hairlines, ombres douces, rayons contenus, typo sobre, contrôles fins.984 ==================================================================== */985:root {986 --r-xl: 16px; --r-lg: 12px; --r-md: 10px; --r-sm: 8px;987 --bshadow: 0 1px 2px rgba(24, 18, 10, 0.05), 0 8px 24px rgba(24, 18, 10, 0.06);988 --bshadow-sm: 0 1px 2px rgba(24, 18, 10, 0.05);989 --edge: #ddd8cb;990 --round: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;991 --bg: #F4F3EE;992 --card: #FFFFFE;993 --card2: #F7F5EF;994}995:root[data-theme="dark"] {996 --edge: #353026;997 --bshadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35);998 --bshadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);999 --bg: #131109;1000 --bg: #14110c;1001 --card: #1c1913;1002 --card2: #242019;1003}1004html, body { font: 14.5px/1.5 var(--round); letter-spacing: -0.01em; }10051006/* boutons : sobres, nets */1007.btn-cta {1008 border: none; border-radius: 9px; padding: 9px 16px;1009 font-size: 13.5px; font-weight: 700; box-shadow: var(--bshadow-sm);1010}1011.btn-cta:active { transform: translateY(1px); box-shadow: none; }1012.btn-cta.small { font-size: 12.5px; padding: 7px 13px; }1013.btn-ghost { border: 1px solid var(--edge); background: var(--card); border-radius: 9px; padding: 8px 14px; font-weight: 600; }1014.btn-danger { border: 1px solid var(--bad); border-radius: 9px; font-weight: 700; padding: 10px 20px; }1015.icon-btn { border-radius: 9px; }1016.chip { border-radius: 8px; background: var(--card); font-weight: 600; border-color: var(--edge); }1017.chip.orange { background: var(--orange-soft); border-color: transparent; color: var(--orange-deep); font-weight: 700; }1018.pill-select {1019 border-radius: 9px; border: 1px solid var(--edge); box-shadow: none;1020 font-weight: 700; font-size: 13px;1021}1022.pill-select.all-mode { box-shadow: none; }10231024/* marque : carré arrondi net, sans cerne */1025.ka-mark { border: none; box-shadow: none; border-radius: 9px; width: 30px; height: 30px; font-size: 14px; }1026.ka-mark.big { border-radius: 18px; box-shadow: var(--bshadow); }1027.brand, .side-brand { font-size: 16.5px; }10281029/* header + nav */1030.header { border-bottom: 1px solid var(--edge); background: var(--bg); }1031.bottomnav { border-top: 1px solid var(--edge); }1032.conn-pill { border: 1px solid var(--edge); font-weight: 600; }1033@media (min-width: 1020px) {1034 .sidebar { border-right: 1px solid var(--edge); background: var(--bg); }1035 .side-nav .nav-btn { font-weight: 600; border-radius: 8px; }1036 .side-nav .nav-btn:hover { background: var(--card2); color: var(--ink); }1037 .side-nav .nav-btn.active { background: var(--orange-soft); border: none; padding: 9px 12px; color: var(--ink); font-weight: 700; }1038}10391040/* cartes & panneaux : hairline + ombre douce */1041.panel, .kpi2, .site-card, .node-card, .sess-card, .set-card, .soc-card, .st-item,1042.vis-card, .vg-item, .sheet-sec, .login-box, .tool, .msg-claude, .perm, .more-btn, .wr-item, .eco-stat, .kpi {1043 border-width: 1px; border-color: var(--edge); box-shadow: var(--bshadow-sm);1044}1045.panel, .login-box, .sheet-panel { box-shadow: var(--bshadow); }1046.site-card.down { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }1047.node-card.warn { border-color: var(--warn); }1048.sess-card.row, .sess-card.prow { box-shadow: none; }1049.tile, .vis-m, .site-metrics .m, .pc { border-radius: 8px; }10501051/* segmented controls modernes */1052.seg { background: var(--card2); border: 1px solid var(--edge); border-radius: 10px; padding: 3px; gap: 3px; }1053.seg button { border: none; background: none; border-radius: 7px; font-weight: 600; padding: 8px 12px; color: var(--muted); }1054.seg button.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: var(--bshadow-sm); }1055.seg.vert { padding: 4px; }1056.seg.mini button { padding: 5px 11px; }1057:root[data-theme="dark"] .seg button.on { background: #38321f; color: var(--ink); }1058.seg button.on[data-v="bypass"] { color: var(--bad); }10591060/* chat */1061.chatbar { border-bottom: 1px solid var(--edge); }1062.msg-user { border: none; border-radius: 14px 14px 5px 14px; box-shadow: var(--bshadow-sm); font-weight: 500; }1063.msg-claude { border-radius: 12px; }1064.composer-inner { border: 1px solid var(--edge); border-radius: 14px; box-shadow: var(--bshadow); background: var(--card); }1065.send-btn { border: none; width: 38px; height: 38px; box-shadow: none; }1066.wand-btn { border: 1px solid var(--edge); background: var(--card); }1067.hint { border: 1px solid var(--edge); box-shadow: none; border-radius: 9px; font-weight: 600; }1068.working { border: 1px solid var(--edge); box-shadow: var(--bshadow-sm); border-radius: 10px; font-weight: 600; }1069.dots i { border: none; }1070.tool { box-shadow: var(--bshadow-sm); }1071.tool .t-icon { border: none; background: var(--card2); border-radius: 7px; }1072.tool-body { border-top: 1px solid var(--edge); }1073.perm { box-shadow: var(--bshadow); border-radius: 12px; }1074.perm-actions button { border-radius: 9px; border: 1px solid var(--edge); }1075.perm-allow { border: none; box-shadow: var(--bshadow-sm); }1076.perm-allall { border: none; border-radius: 9px; box-shadow: var(--bshadow-sm); }1077.meta-line { border-radius: 7px; }1078.banner { border: 1px solid var(--edge); box-shadow: var(--bshadow); border-radius: 10px; font-weight: 600; }10791080/* KPI : chiffres droits, hiérarchie fine */1081.kpi2 { padding: 12px 14px; border-radius: 12px; }1082.kpi2 .kv2 { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; }1083.kpi2 .kl2 { font-weight: 600; letter-spacing: 0.4px; }1084.kpi .v, .eco-stat .v { font-weight: 700; }1085.panel-h h3 { font-weight: 700; letter-spacing: 0.5px; }1086.view-head h2 { font-weight: 700; font-size: 21px; letter-spacing: -0.4px; }1087.login-title, .welcome h2 { font-weight: 700; }1088.page-title { font-weight: 700; }1089.vm-n, .vd-kn, .tile .v, .pc b, .site-ms { font-weight: 700; }1090.vg-n { font-weight: 700; }10911092/* pills de statut : tags nets */1093.st-pill, .sess-badge, .vis-on-pill, .node-apps, .eco-chip { border-radius: 6px; border-width: 1px; font-weight: 700; }1094.st-pill { border-color: transparent; }1095.st-pill.up { background: var(--good-soft); }1096.st-pill.slow { background: var(--warn-soft); }1097.sess-badge { border-color: transparent; }1098.sess-badge.idle { background: var(--card2); }1099.batch-tag { border-radius: 5px; }1100.kdelta { border-radius: 5px; font-weight: 700; }11011102/* filtres & inputs */1103.f-input, .f-select { border-radius: 9px; border: 1px solid var(--edge); font-weight: 500; }1104.login input, .pe-input, .pe-textarea, .soc-select, #view-social textarea { border: 1px solid var(--edge); border-radius: 9px; }1105.login input:focus, .pe-input:focus, .pe-textarea:focus, .f-input:focus { border-color: var(--orange); outline: 2px solid var(--orange-soft); }1106.an-cfg .ac-num { border: 1px solid var(--edge); border-radius: 7px; }1107.slash-hint button, .sess-actions button, .sess-btns button { border: 1px solid var(--edge); border-radius: 7px; font-weight: 600; }1108.sess-actions .p-send { border: none; box-shadow: var(--bshadow-sm); font-weight: 700; }1109.see-more { font-weight: 700; }11101111/* divers */1112.sheet-panel { border: 1px solid var(--edge); border-bottom: none; border-radius: 16px 16px 0 0; }1113.nbar-track, .break-bar, .statusbar { border: none; background: var(--card2); }1114.vis-chart { background: transparent; }1115.md pre, .tool-body pre, .perm pre, .diff, .prompt-preview { border-radius: 8px; border: 1px solid var(--line); }1116.eco-chip b { font-weight: 600; }1117.welcome p, .login-sub { font-weight: 500; }1118.nav-btn { font-weight: 600; }1119.md :not(pre) > code { border-radius: 4px; }1120