/* Admin-Ka — identité Groupe KA : crème + orange, néo-brutalisme doux */ :root { --bg: #F2F1EC; --card: #FCFBF8; --card2: #F7F5EF; --ink: #1a1611; --muted: #6d675c; --line: #e3dfd4; --orange: #F97316; --orange-deep: #e05f00; /* traits de graphique (contraste validé) */ --orange-soft: #fee9d8; --good: #178a4c; --good-soft: #e2f3e8; --warn: #946300; --warn-soft: #f7edd4; --bad: #d5303e; --bad-soft: #fbe6e7; --grid: #e5e1d8; --r-xl: 26px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px; --bshadow: 3px 3px 0 var(--shadow); --bshadow-sm: 2px 2px 0 var(--shadow); --z-banner: 140; --z-header: 100; --z-nav: 110; --z-composer: 105; --z-sheet: 200; --z-login: 300; --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; --round: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", Roboto, sans-serif; } * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; } html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font: 15.5px/1.55 var(--round); height: 100%; overscroll-behavior: none; } .hidden { display: none !important; } button { font-family: inherit; color: inherit; } .mono { font-family: var(--mono); font-size: 0.92em; } .ka-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 11px; background: var(--orange); color: var(--ink); border: 1px solid var(--edge); box-shadow: var(--bshadow-sm); font-weight: 800; font-size: 15px; letter-spacing: -0.2px; flex-shrink: 0; } .ka-mark.big { width: 68px; height: 68px; border-radius: 21px; font-size: 28px; box-shadow: var(--bshadow); margin: 0 auto; } .tiret { color: var(--orange); font-weight: 800; } .btn-cta { background: var(--orange); color: var(--ink); border: 1px solid var(--edge); border-radius: 999px; box-shadow: var(--bshadow); font-weight: 800; font-size: 16px; padding: 13px 22px; cursor: pointer; transition: transform 0.08s, box-shadow 0.08s; } .btn-cta:active { transform: translate(2px, 2px); box-shadow: none; } .btn-cta.small { font-size: 13.5px; padding: 8px 16px; box-shadow: var(--bshadow-sm); } .btn-ghost { background: var(--card); border: 1px solid var(--edge); border-radius: 999px; font-weight: 700; font-size: 13.5px; padding: 10px 16px; cursor: pointer; } .btn-danger { display: block; margin: 18px auto calc(20px); background: var(--card); border: 1px solid var(--bad); color: var(--bad); border-radius: 999px; font-weight: 800; font-size: 14.5px; padding: 12px 26px; cursor: pointer; } /* ================= Login ================= */ .login { position: fixed; inset: 0; z-index: var(--z-login); background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; gap: 18px; } .login-box { width: 100%; max-width: 360px; background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-xl); box-shadow: var(--bshadow); padding: 34px 26px 26px; display: flex; flex-direction: column; gap: 13px; text-align: center; } .login-title { margin: 6px 0 0; font-size: 27px; font-weight: 800; letter-spacing: -0.5px; } .login-sub { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; } .login input { background: var(--bg); border: 1px solid var(--edge); color: var(--ink); border-radius: var(--r-md); padding: 14px 16px; font-size: 16px; outline: none; font-family: inherit; } .login input:focus { border-color: var(--orange); } .login-error { color: var(--bad); font-size: 13px; min-height: 18px; font-weight: 600; } .login-foot { color: var(--muted); font-size: 12px; font-family: var(--mono); } /* ================= Coquille ================= */ .app { display: flex; flex-direction: column; height: 100dvh; position: relative; } .header { position: sticky; top: 0; z-index: var(--z-header); display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg); border-bottom: 1px solid var(--edge); padding: 8px 14px; padding-top: calc(8px + env(safe-area-inset-top)); } .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.4px; } .conn-pill { display: flex; align-items: center; gap: 6px; border: 1px solid var(--edge); border-radius: 999px; background: var(--card); font-size: 11.5px; font-weight: 700; padding: 4px 10px; } .conn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); } .conn-pill.on .conn-dot { background: var(--good); } .conn-pill.mid .conn-dot { background: var(--warn); animation: pulse 1s infinite; } @keyframes pulse { 50% { opacity: 0.35; } } /* bannières notification / alerte */ .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; } .banner { pointer-events: auto; cursor: pointer; border: 1px solid var(--edge); border-radius: var(--r-md); box-shadow: var(--bshadow); padding: 11px 14px; font-weight: 700; font-size: 13.5px; display: flex; gap: 10px; align-items: center; animation: drop-in 0.25s ease-out; } @keyframes drop-in { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } } .banner.info { background: var(--orange-soft); } .banner.good { background: var(--good-soft); } .banner.bad { background: var(--bad-soft); } .banner.warn { background: var(--warn-soft); } /* vues */ .view { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; } #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)); } .view-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 14px; } .view-head h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.5px; } /* ================= Bottom nav ================= */ .bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--z-nav); display: flex; background: var(--card); border-top: 1px solid var(--edge); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); } .nav-btn { position: relative; flex: 1; background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 10.5px; font-weight: 700; padding: 6px 2px; border-radius: var(--r-md); } .nav-btn svg { width: 23px; height: 23px; } .nav-btn.active { color: var(--ink); } .nav-btn.active svg { color: var(--orange-deep); } .nav-btn .badge { position: absolute; top: 3px; right: calc(50% - 17px); width: 9px; height: 9px; border-radius: 50%; background: var(--orange); border: 1px solid var(--edge); } /* ================= Vue chat ================= */ .chatbar { display: flex; gap: 7px; align-items: center; padding: 9px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); background: var(--bg); } .chatbar::-webkit-scrollbar { display: none; } .pill-select { appearance: none; -webkit-appearance: none; background: var(--card); color: var(--ink); border: 1px solid var(--edge); border-radius: 999px; font-weight: 800; font-size: 13.5px; font-family: inherit; padding: 7px 26px 7px 13px; box-shadow: var(--bshadow-sm); max-width: 46vw; text-overflow: ellipsis; 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"); background-repeat: no-repeat; background-position: right 9px center; background-size: 12px; } .chip { border: 1px solid var(--edge); border-radius: 999px; background: var(--card2); font-weight: 700; font-size: 12.5px; padding: 7px 12px; cursor: pointer; white-space: nowrap; flex-shrink: 0; } .chip.orange { background: var(--orange-soft); } .chip.warn { background: var(--warn-soft); color: var(--warn); } .chip.ghost { border-style: dashed; color: var(--muted); } .sess-meta { display: flex; gap: 12px; flex-wrap: wrap; padding: 6px 14px; font-size: 11px; font-family: var(--mono); color: var(--muted); border-bottom: 1px solid var(--line); background: var(--card2); } .messages { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 13px calc(20px); display: flex; flex-direction: column; gap: 12px; max-width: 780px; width: 100%; margin: 0 auto; } @keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } } .messages > * { animation: msg-in 0.2s ease-out; } .msg-user { align-self: flex-end; max-width: 86%; background: var(--orange); color: var(--ink); border: 1px solid var(--edge); border-radius: var(--r-lg) var(--r-lg) 6px var(--r-lg); box-shadow: var(--bshadow-sm); padding: 10px 15px; font-weight: 600; white-space: pre-wrap; word-break: break-word; } .msg-claude { align-self: stretch; background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--bshadow-sm); padding: 13px 16px; word-break: break-word; } .msg-claude .md > :first-child { margin-top: 0; } .msg-claude .md > :last-child { margin-bottom: 0; } .md p { margin: 0.55em 0; } .md pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px; overflow-x: auto; font-size: 12.5px; line-height: 1.5; } .md code { font-family: var(--mono); font-size: 0.88em; } .md :not(pre) > code { background: var(--orange-soft); padding: 1px 6px; border-radius: 6px; } .md h1, .md h2, .md h3, .md h4 { font-size: 1.03em; margin: 0.9em 0 0.35em; } .md table { border-collapse: collapse; display: block; overflow-x: auto; font-size: 13px; } .md th, .md td { border: 1px solid var(--line); padding: 5px 9px; } .md th { background: var(--card2); } .md a { color: var(--orange-deep); font-weight: 700; } .md ul, .md ol { padding-left: 1.35em; margin: 0.5em 0; } .md blockquote { margin: 0.6em 0; padding: 2px 12px; border-left: 3px solid var(--orange); color: var(--muted); } .thinking { color: var(--muted); font-style: italic; font-size: 13px; border-left: 3px solid var(--line); padding-left: 12px; white-space: pre-wrap; word-break: break-word; } details.thinking-box summary { color: var(--muted); font-size: 12.5px; cursor: pointer; font-weight: 600; } .meta-line { align-self: center; text-align: center; color: var(--muted); font-size: 11px; font-family: var(--mono); background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .notice-line { align-self: center; color: var(--warn); font-size: 12px; font-weight: 700; } .error-box { background: var(--bad-soft); border: 1px solid var(--bad); color: var(--bad); border-radius: var(--r-md); padding: 11px 14px; font-size: 13px; white-space: pre-wrap; word-break: break-word; font-weight: 600; } /* --- cartes outils --- */ .tool { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-md); overflow: hidden; font-size: 13px; box-shadow: var(--bshadow-sm); } .tool summary { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; list-style: none; user-select: none; min-height: 44px; } .tool summary::-webkit-details-marker { display: none; } .tool .t-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--edge); display: flex; align-items: center; justify-content: center; font-size: 13px; background: var(--card2); } .tool .t-icon.bash { background: var(--ink); color: var(--orange); } .tool .t-icon.edit { background: var(--orange-soft); } .tool .t-icon.read { background: var(--card2); } .tool .t-icon.web { background: var(--good-soft); } .tool .t-name { font-weight: 800; font-family: var(--mono); font-size: 12.5px; flex-shrink: 0; } .tool .t-sub { color: var(--muted); font-family: var(--mono); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; } .tool .t-state { flex-shrink: 0; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 9px; border: 1.5px solid transparent; } .tool .t-state.pending { color: var(--warn); background: var(--warn-soft); } .tool .t-state.ok { color: var(--good); background: var(--good-soft); } .tool .t-state.err { color: var(--bad); background: var(--bad-soft); } .tool-body { border-top: 1px solid var(--edge); padding: 9px 13px 11px; background: var(--card2); } .tool-body pre { margin: 6px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px; overflow-x: auto; font-size: 12px; font-family: var(--mono); white-space: pre-wrap; word-break: break-word; } .tool-body .label { color: var(--muted); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; margin-top: 6px; } .see-more { background: none; border: none; color: var(--orange-deep); font-size: 12.5px; font-weight: 800; cursor: pointer; padding: 4px 0; } .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); } .diff .dl { padding: 2px 10px; white-space: pre-wrap; word-break: break-word; } .diff .del { background: var(--del-bg); color: var(--del-ink); } .diff .add { background: var(--add-bg); color: var(--add-ink); } .todos { margin: 4px 0; padding: 0; list-style: none; font-size: 13.5px; } .todos li { padding: 3px 0; } .todos .done { color: var(--muted); text-decoration: line-through; } .todos .doing { color: var(--orange-deep); font-weight: 800; } /* --- permission --- */ .perm { background: var(--warn-soft); border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 14px; font-size: 13.5px; box-shadow: var(--bshadow); } .perm-title { font-weight: 800; margin-bottom: 8px; font-size: 14.5px; } .perm pre { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px; overflow-x: auto; font-size: 12px; font-family: var(--mono); white-space: pre-wrap; word-break: break-word; max-height: 200px; overflow-y: auto; margin: 0; } .perm-actions { display: flex; gap: 8px; margin-top: 12px; } .perm-actions button { flex: 1; padding: 11px 6px; border-radius: 999px; font-size: 13.5px; font-weight: 800; cursor: pointer; min-height: 46px; border: 1px solid var(--edge); } .perm-allow { background: var(--good); color: #fff; box-shadow: var(--bshadow-sm); } .perm-always { background: var(--good-soft); color: var(--good); line-height: 1.05; } .perm-always small { font-weight: 600; font-size: 9.5px; opacity: 0.8; } .perm-deny { background: var(--card); color: var(--bad); } .perm-allall { width: 100%; margin-top: 8px; padding: 12px; border-radius: 999px; border: 1px solid var(--edge); background: var(--ink); color: var(--orange); font-weight: 800; font-size: 13.5px; cursor: pointer; box-shadow: var(--bshadow-sm); } .perm-allall:active { transform: translate(1px,1px); box-shadow: none; } .perm-resolved { color: var(--muted); font-size: 12.5px; margin-top: 10px; font-weight: 700; } /* bouton copier sur les blocs de code */ .md pre, .tool-body pre { position: relative; } .copied-tag { position: absolute; top: 6px; right: 8px; background: var(--good); color: #fff; font-size: 10px; font-weight: 800; border-radius: 6px; padding: 2px 7px; font-family: var(--round); } /* file d'attente */ .queued-notice { align-self: center; background: var(--warn-soft); border: 1px solid var(--warn); border-radius: 999px; padding: 5px 14px; } .working .work-time { margin-left: 2px; color: var(--orange-deep); font-family: var(--mono); font-size: 12px; } .head-actions { display: flex; align-items: center; gap: 10px; } .working { align-self: flex-start; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; background: var(--card); border: 1px solid var(--edge); border-radius: 999px; padding: 8px 16px; box-shadow: var(--bshadow-sm); } .dots { display: flex; gap: 4px; } .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; } .dots i:nth-child(2) { animation-delay: 0.14s; } .dots i:nth-child(3) { animation-delay: 0.28s; } @keyframes bounce { 0%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-4px); opacity: 1; } } /* --- accueil --- */ .welcome { position: absolute; inset: 130px 0 140px; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 28px; text-align: center; pointer-events: none; } .welcome > * { pointer-events: auto; } .welcome h2 { margin: 6px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.4px; } .welcome p { margin: 0; color: var(--muted); font-size: 14px; max-width: 300px; font-weight: 600; } .hints { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; } .hint { background: var(--card); border: 1px solid var(--edge); font-size: 13px; font-weight: 700; border-radius: 999px; padding: 9px 14px; cursor: pointer; box-shadow: var(--bshadow-sm); } /* --- composer --- */ .composer { position: sticky; bottom: 0; z-index: var(--z-composer); background: var(--bg); padding: 8px 12px calc(72px + env(safe-area-inset-bottom)); } .composer-inner { display: flex; align-items: flex-end; gap: 8px; max-width: 780px; margin: 0 auto; background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-xl); box-shadow: var(--bshadow); padding: 6px 6px 6px 6px; gap: 4px; } .composer-inner #input { padding-left: 8px; } #input { flex: 1; background: none; color: var(--ink); border: none; padding: 10px 0; font-size: 16px; line-height: 1.45; resize: none; outline: none; max-height: 140px; font-family: inherit; font-weight: 600; } #input::placeholder { color: var(--muted); font-weight: 600; } .send-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--edge); background: var(--orange); color: var(--ink); cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; box-shadow: var(--bshadow-sm); transition: transform 0.08s; } .send-btn svg { width: 19px; height: 19px; } .send-btn:active { transform: translate(1px, 1px); box-shadow: none; } .send-btn:disabled { opacity: 0.35; } .send-btn.stop { background: var(--bad); color: #fff; } .wand-btn { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; border: 1px solid var(--edge); background: var(--card2); color: var(--orange-deep); cursor: pointer; display: flex; align-items: center; justify-content: center; align-self: flex-end; margin-bottom: 2px; } .wand-btn svg { width: 19px; height: 19px; } .wand-btn:active { transform: translate(1px,1px); } .wand-btn.busy { animation: wand-pulse 0.9s ease-in-out infinite; color: var(--orange); } @keyframes wand-pulse { 50% { opacity: 0.4; transform: scale(1.08); } } .slash-hint { max-width: 780px; margin: 6px auto 0; display: flex; gap: 6px; flex-wrap: wrap; } .slash-hint button { border: 1px solid var(--edge); background: var(--card2); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 5px 11px; cursor: pointer; } /* ================= Sessions ================= */ .sess-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 0 auto; width: 100%; } .sess-card { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--bshadow-sm); padding: 13px 15px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; } .sess-top { display: flex; align-items: center; gap: 8px; } .sess-title { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sess-badge { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--edge); flex-shrink: 0; } .sess-badge.running { background: var(--orange); animation: pulse 1.4s infinite; } .sess-badge.waiting_perm { background: var(--warn-soft); color: var(--warn); } .sess-badge.idle { background: var(--card2); color: var(--muted); } .batch-tag { background: var(--orange-soft); color: var(--orange-deep); border-radius: 999px; padding: 1px 8px; font-weight: 800; } .pill-select.all-mode { background: var(--orange); box-shadow: 3px 3px 0 var(--shadow); } .sess-info { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); font-family: var(--mono); } .sess-actions { display: flex; gap: 8px; margin-top: 4px; } .sess-actions button { border: 1px solid var(--edge); border-radius: 999px; background: var(--card2); font-size: 12px; font-weight: 800; padding: 6px 13px; cursor: pointer; } .sess-actions .del { color: var(--bad); } .sess-empty { color: var(--muted); text-align: center; padding: 40px 16px; font-weight: 600; } /* Prompt Bank */ .prompt-preview { font-family: var(--mono); font-size: 12px; color: var(--ink); background: var(--card2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; white-space: pre-wrap; word-break: break-word; line-height: 1.45; } .sess-actions .p-send { background: var(--orange); color: var(--ink); border-color: var(--ink); box-shadow: var(--bshadow-sm); } .pe-input { width: 100%; background: var(--bg); border: 1px solid var(--edge); color: var(--ink); border-radius: var(--r-md); padding: 11px 13px; font-size: 15px; font-family: inherit; font-weight: 600; outline: none; } .pe-input:focus { border-color: var(--orange); } .pe-textarea { width: 100%; margin-top: 10px; min-height: 180px; resize: vertical; background: var(--bg); border: 1px solid var(--edge); color: var(--ink); border-radius: var(--r-md); padding: 12px 13px; font-size: 14px; line-height: 1.5; font-family: var(--mono); outline: none; } .pe-textarea:focus { border-color: var(--orange); } /* bottom nav resserrée pour 5 onglets */ .nav-btn span { font-size: 10px; } .nav-btn svg { width: 22px; height: 22px; } /* ================= Écosystème ================= */ .eco-stamp { font-size: 11px; color: var(--muted); font-family: var(--mono); } .eco-overview { display: flex; gap: 10px; margin-bottom: 14px; max-width: 780px; margin-left: auto; margin-right: auto; } .eco-stat { flex: 1; background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--bshadow-sm); padding: 10px 12px; text-align: center; } .eco-stat .v { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; } .eco-stat .l { font-size: 10.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; } .eco-stat.ok .v { color: var(--good); } .eco-stat.bad .v { color: var(--bad); } .eco-grid { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 780px; margin: 0 auto; width: 100%; } @media (min-width: 560px) { .eco-grid { grid-template-columns: 1fr 1fr; } } .eco-loading { color: var(--muted); text-align: center; padding: 40px; font-weight: 700; } .site-card { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--bshadow-sm); padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: transform 0.08s; } .site-card:active { transform: translate(2px, 2px); box-shadow: none; } .site-card.down { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); } .site-top { display: flex; align-items: center; gap: 8px; } .site-name { font-weight: 800; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .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; } .st-pill.up { background: var(--good-soft); color: var(--good); } .st-pill.slow { background: var(--warn-soft); color: var(--warn); } .st-pill.down { background: var(--bad); color: #fff; } .site-mid { display: flex; align-items: flex-end; gap: 10px; } .site-ms { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; } .site-ms small { font-size: 11px; color: var(--muted); font-weight: 700; } .spark { flex: 1; height: 30px; } .site-foot { display: flex; gap: 9px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); font-family: var(--mono); } .site-foot b { color: var(--ink); } .site-foot .foot-bad b { color: var(--bad); } /* nœuds du cluster */ .eco-subhead { max-width: 780px; margin: 20px auto 10px; width: 100%; font-size: 15px; font-weight: 800; letter-spacing: -0.3px; } .node-grid { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 780px; margin: 0 auto; width: 100%; } @media (min-width: 560px) { .node-grid { grid-template-columns: 1fr 1fr; } } .node-card { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--bshadow-sm); padding: 12px 14px; } .node-card.warn { border-color: var(--warn); } .node-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; } .node-name { font-weight: 800; font-size: 15px; font-family: var(--mono); } .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); } .node-apps.bad { background: var(--warn-soft); color: var(--warn); } .nbar { margin: 5px 0; } .nbar-l { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 2px; } .nbar-l b { color: var(--ink); font-family: var(--mono); } .nbar-track { height: 7px; background: var(--card2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; } .nbar-fill { height: 100%; border-radius: 999px; transition: width 0.4s; } /* actions d'admin dans la feuille */ .admin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .admin-actions .btn-ghost { text-align: center; text-decoration: none; } .admin-out { margin-top: 10px; } .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; } .admin-load { color: var(--muted); font-weight: 700; font-size: 13px; } .admin-ok { color: var(--good); font-weight: 800; } .admin-err { color: var(--bad); font-weight: 800; } /* ===== Command Center ===== */ .eco-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 900px; margin: 0 auto 14px; width: 100%; } @media (min-width: 560px) { .eco-overview { grid-template-columns: repeat(6, 1fr); } } .kpi { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-md); box-shadow: var(--bshadow-sm); padding: 9px 8px; text-align: center; } .kpi .v { font-size: 21px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; } .kpi .v small { font-size: 11px; font-weight: 700; color: var(--muted); } .kpi .v .tot { font-size: 13px; color: var(--muted); font-weight: 700; } .kpi .l { font-size: 9.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; } .kpi.ok .v { color: var(--good); } .kpi.bad .v { color: var(--bad); } .eco-grid { max-width: 900px; } @media (min-width: 900px) { .eco-grid { grid-template-columns: 1fr 1fr 1fr; } } .site-logo { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; object-fit: cover; background: var(--card2); border: 1px solid var(--line); } .site-logo.big { width: 34px; height: 34px; border-radius: 9px; } .trend { font-size: 11px; font-weight: 800; font-family: var(--round); margin-left: 4px; } .trend.up { color: var(--bad); } .trend.down { color: var(--good); } .trend.flat { color: var(--muted); } .statusbar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--card2); border: 1px solid var(--line); margin: 4px 0 2px; } .statusbar i { display: block; height: 100%; } .statusbar .s2 { background: var(--good); } .statusbar .s3 { background: #6a9fd8; } .statusbar .s4 { background: var(--warn); } .statusbar .s5, .statusbar .se { background: var(--bad); } .site-metrics { display: flex; gap: 6px; margin: 4px 0 2px; } .site-metrics .m { flex: 1; text-align: center; background: var(--card2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 2px; } .site-metrics .m b { display: block; font-size: 14px; font-weight: 800; letter-spacing: -0.3px; } .site-metrics .m span { font-size: 9px; color: var(--muted); font-weight: 700; text-transform: uppercase; } .pgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; } .pc { text-align: center; background: var(--card2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 2px; } .pc b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -0.4px; } .pc span { font-size: 9.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; } .pc.hot { background: var(--warn-soft); border-color: #f0c36b; } .legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--muted); } .legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 3px; vertical-align: -1px; border: 1px solid var(--line); } .legend .sw.s2 { background: var(--good); } .legend .sw.s3 { background: #6a9fd8; } .legend .sw.s4 { background: var(--warn); } .legend .sw.s5 { background: var(--bad); } .legend .sw.se { background: var(--bad); opacity: 0.5; } .tile .v.red { color: var(--bad); } /* feuille détail */ .sheet { position: fixed; inset: 0; z-index: var(--z-sheet); } .sheet-back { position: absolute; inset: 0; background: rgba(26, 22, 17, 0.45); } @keyframes sheet-up { from { transform: translateY(60%); } to { transform: none; } } .sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg); border: 1px solid var(--edge); border-bottom: none; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); animation: sheet-up 0.22s ease-out; } .sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 6px auto 12px; } .sheet-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .sheet-h h3 { margin: 0; font-size: 21px; font-weight: 800; flex: 1; } .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; } .sheet-sec h4 { margin: 0 0 9px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); } .kv { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 13.5px; } .kv b { font-family: var(--mono); font-weight: 700; } .tile-row { display: flex; gap: 9px; } .tile { flex: 1; background: var(--card2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 6px; text-align: center; } .tile .v { font-size: 17px; font-weight: 800; } .tile .l { font-size: 10px; color: var(--muted); font-weight: 800; text-transform: uppercase; } .chart { width: 100%; } .chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, -110%); background: var(--ink); color: var(--bg); border-radius: 8px; font-size: 11px; font-family: var(--mono); padding: 4px 8px; white-space: nowrap; } .inc-item { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; align-items: baseline; } .inc-item:last-child { border-bottom: none; } .inc-dot { color: var(--bad); font-weight: 800; } .inc-ok { color: var(--good); font-weight: 800; } /* ================= Réglages ================= */ .set-card { max-width: 780px; margin: 0 auto 12px; width: 100%; background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--bshadow-sm); padding: 14px 16px; } .set-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); margin-bottom: 10px; } .seg { display: flex; gap: 7px; } .seg.vert { flex-direction: column; } .seg button { flex: 1; border: 1px solid var(--edge); border-radius: 999px; background: var(--card2); font-weight: 700; font-size: 13.5px; padding: 10px 12px; cursor: pointer; text-align: center; } .seg.vert button { text-align: left; padding-left: 16px; } .seg button.on { background: var(--orange); font-weight: 800; box-shadow: var(--bshadow-sm); } .set-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; font-weight: 600; } .set-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; } /* ---- Social ---- */ .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);} .soc-card h3{margin:0 0 10px;font-size:15px;} .soc-switch{display:flex;align-items:center;gap:10px;font-weight:700;cursor:pointer;} .soc-switch input{width:20px;height:20px;accent-color:var(--accent,#f97316);} .soc-sub{color:var(--muted,#6b7280);font-size:13px;margin-top:8px;} .soc-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:12px;} .soc-select{padding:9px 12px;border:1px solid var(--edge);border-radius:10px;font:inherit;background:#fff;} .soc-draft{margin-top:14px;display:flex;flex-direction:column;gap:10px;} .soc-draft img{width:100%;max-width:340px;border-radius:12px;border:1px solid var(--edge);align-self:center;} #view-social textarea{width:100%;padding:10px 12px;border:1px solid var(--edge);border-radius:10px;font:inherit;resize:vertical;} .soc-log{display:flex;flex-direction:column;gap:6px;max-height:340px;overflow-y:auto;} .soc-logrow{font-size:13px;padding:6px 8px;border-radius:8px;background:rgba(0,0,0,.04);} .soc-logt{color:var(--muted,#6b7280);font-variant-numeric:tabular-nums;margin-right:6px;} #vncPanel canvas{max-width:100%;height:auto;display:block;margin:0 auto} #vncPanel{max-height:70vh} /* ---- Studio ---- */ .st-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px} @media(max-width:640px){.st-grid{grid-template-columns:1fr}} .st-gen h3{margin:0 0 8px} .st-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin-top:8px} .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} .st-media{position:relative;aspect-ratio:4/5;background:#0d0d0d;overflow:hidden} .st-media img,.st-media video{width:100%;height:100%;object-fit:cover;display:block} .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} .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} .st-item-actions{display:flex;gap:6px;padding:0 10px 10px;margin-top:auto} .st-item-actions .btn-cta.small{flex:0 0 auto;text-decoration:none;text-align:center} .st-item-actions .btn-ghost.small{flex:1} /* ---- Studio loading ---- */ #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)} #stLoad.on{display:flex} .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} .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} @keyframes stspin{to{transform:rotate(360deg)}} .stload-msg{font-weight:800;font-size:15px} .stload-sub{font-size:12px;color:var(--muted,#888);margin-top:6px} .st-skel .st-media{position:relative} .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} @keyframes stshim{to{background-position:-200% 0}} /* ---- Visiteurs ---- */ #view-visitors{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:14px 14px calc(86px + env(safe-area-inset-bottom))} .vis-global{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px} .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)} .vg-n{font-size:26px;font-weight:900;color:var(--accent,#f97316)} .vg-l{font-size:11px;font-weight:700;color:var(--muted,#777);text-transform:uppercase;letter-spacing:.05em;margin-top:2px} .vis-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px} .vis-card{background:var(--card,#fff);border:1px solid var(--edge);border-radius:16px;padding:16px;box-shadow:3px 3px 0 var(--shadow)} .vis-h{display:flex;align-items:center;gap:10px} .vis-h img{width:26px;height:26px;border-radius:6px} .vis-name{font-weight:800;font-size:15px;flex:1} .vis-dot{width:9px;height:9px;border-radius:50%;background:#9aa;display:inline-block} .vis-dot.on{background:#22c55e;box-shadow:0 0 0 0 rgba(34,197,94,.6);animation:vpulse 1.6s infinite} .vis-dot.big{width:12px;height:12px} @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)}} .vis-online{display:flex;align-items:center;gap:8px;margin-top:12px} .vis-onN{font-size:34px;font-weight:900;color:var(--accent,#f97316)} .vis-onL{font-size:12px;color:var(--muted,#777);font-weight:700} .vis-row{display:flex;gap:8px;margin-top:12px} .vis-m{flex:1;background:rgba(127,127,127,.08);border-radius:10px;padding:8px;text-align:center} .vm-n{font-size:20px;font-weight:900} .vm-l{font-size:10px;color:var(--muted,#777);font-weight:700;text-transform:uppercase} .vis-pv{font-size:12px;color:var(--muted,#777);margin-top:10px;font-weight:600} .vis-card{cursor:pointer;transition:transform .1s} .vis-card:active{transform:scale(.98)} #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} #visDetail.on{display:flex} .vd-box{background:var(--card,#141414);border:1px solid var(--edge);border-radius:18px;width:100%;max-width:720px;box-shadow:var(--bshadow)} .vd-head{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid rgba(127,127,127,.2)} .vd-head img{width:30px;height:30px;border-radius:8px} .vd-head h3{flex:1;font-size:18px} .vd-head #vdClose{background:none;border:0;font-size:22px;cursor:pointer;color:var(--muted,#888)} .vd-body{padding:18px} .vd-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px} .vd-k{background:rgba(127,127,127,.08);border-radius:12px;padding:12px;text-align:center} .vd-kn{font-size:24px;font-weight:900;color:var(--accent,#f97316)} .vd-kl{font-size:10px;color:var(--muted,#888);font-weight:700;text-transform:uppercase} .vd-title{font-size:13px;font-weight:800;color:var(--muted,#888);text-transform:uppercase;letter-spacing:.06em;margin:20px 0 8px} .vis-chart{width:100%;height:auto;background:rgba(127,127,127,.05);border-radius:12px} .vd-geo{display:flex;align-items:center;gap:10px;margin-bottom:8px} .vd-geoL{width:180px;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .vd-bar{flex:1;height:14px;background:rgba(127,127,127,.15);border-radius:7px;overflow:hidden} .vd-bar>div{height:100%;background:var(--accent,#f97316);border-radius:7px} .vd-geoN{font-size:13px;font-weight:800;width:44px;text-align:right} /* ==================================================================== Admin-Ka v3 — Control Center : layout desktop, dark mode, densité ==================================================================== */ :root { --shadow: #1a1611; --edge: #1a1611; --on-accent: #1a1611; --code-bg: #f2efe7; --term-bg: #1a1611; --term-ink: #e8e6df; --del-bg: #ffe4e1; --del-ink: #8c1622; --add-bg: #ddf3e4; --add-ink: #0c5326; --panel-gap: 14px; } :root[data-theme="dark"] { --bg: #16130e; --card: #201c15; --card2: #2a251c; --ink: #ede6d8; --muted: #a39a89; --line: #3a342a; --grid: #322d24; --edge: #4a4335; --shadow: #0a0806; --orange-soft: #3d2510; --good: #3fbf78; --good-soft: #14301f; --warn: #e0a93e; --warn-soft: #362a10; --bad: #f0616d; --bad-soft: #3a1518; --code-bg: #17140f; --del-bg: #3d1a1d; --del-ink: #f4a9ad; --add-bg: #12301c; --add-ink: #9fdcb2; } :root[data-theme="dark"] .hljs { background: var(--code-bg); color: #d8d2c4; } :root[data-theme="dark"] .site-logo, :root[data-theme="dark"] .vis-h img, :root[data-theme="dark"] .rt-row img { background: #f4f1ea; } /* texte sombre garanti sur les fonds orange (les deux thèmes) */ .btn-cta, .ka-mark, .send-btn:not(.stop), .msg-user, .seg button.on, .pill-select.all-mode, .sess-badge.running, .perm-allall { color: var(--on-accent); } :root[data-theme="dark"] .perm-allall { background: var(--orange); color: var(--on-accent); } /* ---------- coquille : sidebar + colonne principale ---------- */ .app { display: flex; flex-direction: row; height: 100dvh; } .main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100dvh; } .sidebar { display: none; } .desktop-only { display: none !important; } .page-title { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.3px; } .head-right { display: flex; align-items: center; gap: 8px; } .icon-btn { position: relative; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--edge); background: var(--card); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink); } .icon-btn svg { width: 17px; height: 17px; } .icon-btn .badge { position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); border: 1px solid var(--edge); } .top-stamp { font-size: 11px; color: var(--muted); font-family: var(--mono); } .view.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 14px calc(86px + env(safe-area-inset-bottom)); } @media (min-width: 1020px) { .desktop-only { display: block !important; } .mobile-only { display: none !important; } .bottomnav { display: none; } .sidebar { display: flex; flex-direction: column; width: 224px; flex-shrink: 0; background: var(--card); border-right: 1px solid var(--edge); padding: 14px 10px 12px; } .side-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.4px; padding: 2px 8px 14px; } .side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; } .side-nav .nav-btn { flex-direction: row; justify-content: flex-start; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--muted); padding: 9px 12px; border-radius: 10px; text-align: left; } .side-nav .nav-btn svg { width: 18px; height: 18px; flex-shrink: 0; } .side-nav .nav-btn.active { background: var(--orange-soft); color: var(--ink); border: 1px solid var(--edge); padding: 7.5px 10.5px; } .side-nav .nav-btn.active svg { color: var(--orange-deep); } .side-nav .nav-btn .badge { position: absolute; top: 8px; right: 10px; left: auto; } .side-foot { display: flex; flex-direction: column; gap: 8px; padding: 10px 8px 0; border-top: 1px solid var(--line); } .side-node { font-size: 11px; color: var(--muted); } .header { padding: 10px 20px; } .head-right #connPill { display: none; } .view.scroll { padding: 18px 24px 40px; } .messages, .composer-inner, .slash-hint { max-width: 920px; } .eco-grid, .eco-overview, .node-grid, .eco-subhead, .sess-list, .set-card { max-width: 1180px; } .eco-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } .node-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } .eco-overview { grid-template-columns: repeat(6, 1fr); } html, body { font-size: 14.5px; } } /* ---------- KPI v3 ---------- */ .ov-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: var(--panel-gap); max-width: 1180px; } .ov-kpis.compact { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } .kpi2 { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-md); padding: 10px 12px; box-shadow: var(--bshadow-sm); } .kpi2 .kv2 { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.1; font-variant-numeric: tabular-nums; } .kpi2 .kv2 small { font-size: 12px; color: var(--muted); font-weight: 700; } .kpi2 .kl2 { font-size: 10px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; } .kpi2.accent .kv2 { color: var(--orange-deep); } .kpi2.good .kv2 { color: var(--good); } .kpi2.bad .kv2 { color: var(--bad); } .kdelta { display: inline-block; font-size: 11px; font-weight: 800; margin-top: 3px; border-radius: 999px; padding: 1px 8px; } .kdelta.up { background: var(--good-soft); color: var(--good); } .kdelta.down { background: var(--bad-soft); color: var(--bad); } .kdelta.flat { background: var(--card2); color: var(--muted); } /* ---------- panneaux ---------- */ .ov-cols { display: grid; grid-template-columns: 1fr; gap: var(--panel-gap); margin-bottom: var(--panel-gap); max-width: 1180px; } @media (min-width: 900px) { .ov-cols { grid-template-columns: 3fr 2fr; } .ov-cols + .ov-cols { grid-template-columns: 1fr 1fr; } } .panel { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--bshadow-sm); padding: 14px 16px; min-width: 0; } .panel.slim { padding: 10px 14px; margin-bottom: var(--panel-gap); max-width: 1180px; } .panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; } .panel-h h3 { margin: 0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); } .panel-note { font-size: 11px; color: var(--muted); font-weight: 600; } .linklike { background: none; border: none; color: var(--orange-deep); font-weight: 800; font-size: 12px; cursor: pointer; padding: 0; } .sub-h { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.3px; } .defs-note { max-width: 1180px; color: var(--muted); font-size: 11.5px; line-height: 1.6; margin: 14px 2px 0; } /* écosystème compact (overview) */ .ov-eco-chips { display: flex; flex-wrap: wrap; gap: 6px; } .eco-chip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: 1px solid var(--edge); border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 700; background: var(--card2); } .eco-chip b { font-family: var(--mono); font-weight: 700; color: var(--muted); } .eco-chip.up { color: var(--good); } .eco-chip.slow { color: var(--warn); background: var(--warn-soft); } .eco-chip.down { color: #fff; background: var(--bad); border-color: var(--bad); } .eco-chip.down b { color: #fff; } .ov-sess { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--line); cursor: pointer; } .ov-sess:last-child { border-bottom: none; } .ov-sess-t { flex: 1; min-width: 0; font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ov-sess-m { font-size: 11px; color: var(--muted); flex-shrink: 0; } .anom { font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 600; } .anom:last-child { border-bottom: none; } .anom.warn { color: var(--warn); font-weight: 800; } /* répartition humains / bots / datacenter */ .break-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--card2); border: 1px solid var(--line); } .break-bar i { display: block; height: 100%; } /* temps réel */ .rt-list { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; } .rt-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; } .rt-row:last-child { border-bottom: none; } .rt-row img { width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0; } .rt-site { font-weight: 800; flex-shrink: 0; } .rt-path { color: var(--muted); font-size: 11px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rt-loc { color: var(--ink); font-weight: 600; font-size: 11.5px; flex-shrink: 0; } .rt-dev { font-size: 10.5px; flex-shrink: 0; } .rt-dur { color: var(--muted); font-size: 10.5px; flex-shrink: 0; } /* visiteurs v2 */ .vis-grid { max-width: 1180px; } .vis-card { padding: 12px 14px; box-shadow: var(--bshadow-sm); border-width: 2px; } .vis-on-pill { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--line); color: var(--muted); background: var(--card2); flex-shrink: 0; } .vis-on-pill.on { background: var(--good-soft); color: var(--good); border-color: var(--good); } .vis-row { margin-top: 10px; } .vis-m { background: var(--card2); border: 1px solid var(--line); } .vm-n { font-size: 17px; font-variant-numeric: tabular-nums; } .vis-pv { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 11.5px; } .vis-more { color: var(--orange-deep); font-weight: 800; } .seg.mini button { padding: 6px 12px; font-size: 12px; } .seg.mini { gap: 5px; } /* filtres listes */ .filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; max-width: 1180px; } .f-input, .f-select { background: var(--card); border: 1px solid var(--edge); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; font-family: inherit; outline: none; } .f-input { flex: 1; min-width: 140px; } .f-input:focus { border-color: var(--orange); } /* sessions denses */ .sess-card.row { flex-direction: row; align-items: center; gap: 10px; padding: 10px 14px; border-width: 1.5px; box-shadow: none; } .sess-card.row:hover { border-color: var(--orange-deep); } .sess-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .sess-cost, .sess-when { flex-shrink: 0; font-size: 11.5px; color: var(--muted); } .sess-btns { display: flex; gap: 6px; flex-shrink: 0; } .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; } .sess-btns .del { color: var(--bad); padding: 5px 9px; } @media (max-width: 640px) { .sess-when { display: none; } } /* prompts */ .sess-card.prow { box-shadow: none; border-width: 1.5px; } .sess-card.prow:hover { border-color: var(--orange-deep); } .fav-btn { background: none; border: none; font-size: 17px; color: var(--muted); cursor: pointer; padding: 0 2px; flex-shrink: 0; } .fav-btn.on { color: var(--orange-deep); } .sess-top .sess-info { flex-shrink: 0; } /* nav mobile « Plus » */ .more-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 8px; } .more-btn { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-md); box-shadow: var(--bshadow-sm); padding: 13px 14px; font-weight: 800; font-size: 14px; cursor: pointer; } .more-btn svg { width: 20px; height: 20px; color: var(--orange-deep); } /* accueil chat */ .welcome { position: absolute; inset: 110px 0 150px; overflow-y: auto; } .welcome-inner { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 100%; max-width: 560px; margin: auto; } .welcome-recent { width: 100%; margin-top: 18px; display: flex; flex-direction: column; gap: 6px; } .wr-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); text-align: left; } .wr-item { display: flex; align-items: center; gap: 9px; text-align: left; background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-md); padding: 9px 12px; cursor: pointer; font-family: inherit; } .wr-t { flex: 1; min-width: 0; font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); } .wr-m { font-size: 11px; color: var(--muted); flex-shrink: 0; } /* réglages analytics */ .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; } .an-cfg .pe-textarea { font-size: 12px; } /* studio / vieux composants : bascule douce vers les variables */ .soc-select, #view-social textarea { background: var(--card); color: var(--ink); } .vd-box, .stload-box { background: var(--card); } .vd-head h3 { color: var(--ink); } .st-cap { color: var(--muted); } .vis-chart { background: var(--card2); border-radius: 12px; } /* ==================================================================== v3.1 — Modernisation : fini le look jouet. Hairlines, ombres douces, rayons contenus, typo sobre, contrôles fins. ==================================================================== */ :root { --r-xl: 16px; --r-lg: 12px; --r-md: 10px; --r-sm: 8px; --bshadow: 0 1px 2px rgba(24, 18, 10, 0.05), 0 8px 24px rgba(24, 18, 10, 0.06); --bshadow-sm: 0 1px 2px rgba(24, 18, 10, 0.05); --edge: #ddd8cb; --round: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; --bg: #F4F3EE; --card: #FFFFFE; --card2: #F7F5EF; } :root[data-theme="dark"] { --edge: #353026; --bshadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35); --bshadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --bg: #131109; --bg: #14110c; --card: #1c1913; --card2: #242019; } html, body { font: 14.5px/1.5 var(--round); letter-spacing: -0.01em; } /* boutons : sobres, nets */ .btn-cta { border: none; border-radius: 9px; padding: 9px 16px; font-size: 13.5px; font-weight: 700; box-shadow: var(--bshadow-sm); } .btn-cta:active { transform: translateY(1px); box-shadow: none; } .btn-cta.small { font-size: 12.5px; padding: 7px 13px; } .btn-ghost { border: 1px solid var(--edge); background: var(--card); border-radius: 9px; padding: 8px 14px; font-weight: 600; } .btn-danger { border: 1px solid var(--bad); border-radius: 9px; font-weight: 700; padding: 10px 20px; } .icon-btn { border-radius: 9px; } .chip { border-radius: 8px; background: var(--card); font-weight: 600; border-color: var(--edge); } .chip.orange { background: var(--orange-soft); border-color: transparent; color: var(--orange-deep); font-weight: 700; } .pill-select { border-radius: 9px; border: 1px solid var(--edge); box-shadow: none; font-weight: 700; font-size: 13px; } .pill-select.all-mode { box-shadow: none; } /* marque : carré arrondi net, sans cerne */ .ka-mark { border: none; box-shadow: none; border-radius: 9px; width: 30px; height: 30px; font-size: 14px; } .ka-mark.big { border-radius: 18px; box-shadow: var(--bshadow); } .brand, .side-brand { font-size: 16.5px; } /* header + nav */ .header { border-bottom: 1px solid var(--edge); background: var(--bg); } .bottomnav { border-top: 1px solid var(--edge); } .conn-pill { border: 1px solid var(--edge); font-weight: 600; } @media (min-width: 1020px) { .sidebar { border-right: 1px solid var(--edge); background: var(--bg); } .side-nav .nav-btn { font-weight: 600; border-radius: 8px; } .side-nav .nav-btn:hover { background: var(--card2); color: var(--ink); } .side-nav .nav-btn.active { background: var(--orange-soft); border: none; padding: 9px 12px; color: var(--ink); font-weight: 700; } } /* cartes & panneaux : hairline + ombre douce */ .panel, .kpi2, .site-card, .node-card, .sess-card, .set-card, .soc-card, .st-item, .vis-card, .vg-item, .sheet-sec, .login-box, .tool, .msg-claude, .perm, .more-btn, .wr-item, .eco-stat, .kpi { border-width: 1px; border-color: var(--edge); box-shadow: var(--bshadow-sm); } .panel, .login-box, .sheet-panel { box-shadow: var(--bshadow); } .site-card.down { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); } .node-card.warn { border-color: var(--warn); } .sess-card.row, .sess-card.prow { box-shadow: none; } .tile, .vis-m, .site-metrics .m, .pc { border-radius: 8px; } /* segmented controls modernes */ .seg { background: var(--card2); border: 1px solid var(--edge); border-radius: 10px; padding: 3px; gap: 3px; } .seg button { border: none; background: none; border-radius: 7px; font-weight: 600; padding: 8px 12px; color: var(--muted); } .seg button.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: var(--bshadow-sm); } .seg.vert { padding: 4px; } .seg.mini button { padding: 5px 11px; } :root[data-theme="dark"] .seg button.on { background: #38321f; color: var(--ink); } .seg button.on[data-v="bypass"] { color: var(--bad); } /* chat */ .chatbar { border-bottom: 1px solid var(--edge); } .msg-user { border: none; border-radius: 14px 14px 5px 14px; box-shadow: var(--bshadow-sm); font-weight: 500; } .msg-claude { border-radius: 12px; } .composer-inner { border: 1px solid var(--edge); border-radius: 14px; box-shadow: var(--bshadow); background: var(--card); } .send-btn { border: none; width: 38px; height: 38px; box-shadow: none; } .wand-btn { border: 1px solid var(--edge); background: var(--card); } .hint { border: 1px solid var(--edge); box-shadow: none; border-radius: 9px; font-weight: 600; } .working { border: 1px solid var(--edge); box-shadow: var(--bshadow-sm); border-radius: 10px; font-weight: 600; } .dots i { border: none; } .tool { box-shadow: var(--bshadow-sm); } .tool .t-icon { border: none; background: var(--card2); border-radius: 7px; } .tool-body { border-top: 1px solid var(--edge); } .perm { box-shadow: var(--bshadow); border-radius: 12px; } .perm-actions button { border-radius: 9px; border: 1px solid var(--edge); } .perm-allow { border: none; box-shadow: var(--bshadow-sm); } .perm-allall { border: none; border-radius: 9px; box-shadow: var(--bshadow-sm); } .meta-line { border-radius: 7px; } .banner { border: 1px solid var(--edge); box-shadow: var(--bshadow); border-radius: 10px; font-weight: 600; } /* KPI : chiffres droits, hiérarchie fine */ .kpi2 { padding: 12px 14px; border-radius: 12px; } .kpi2 .kv2 { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; } .kpi2 .kl2 { font-weight: 600; letter-spacing: 0.4px; } .kpi .v, .eco-stat .v { font-weight: 700; } .panel-h h3 { font-weight: 700; letter-spacing: 0.5px; } .view-head h2 { font-weight: 700; font-size: 21px; letter-spacing: -0.4px; } .login-title, .welcome h2 { font-weight: 700; } .page-title { font-weight: 700; } .vm-n, .vd-kn, .tile .v, .pc b, .site-ms { font-weight: 700; } .vg-n { font-weight: 700; } /* pills de statut : tags nets */ .st-pill, .sess-badge, .vis-on-pill, .node-apps, .eco-chip { border-radius: 6px; border-width: 1px; font-weight: 700; } .st-pill { border-color: transparent; } .st-pill.up { background: var(--good-soft); } .st-pill.slow { background: var(--warn-soft); } .sess-badge { border-color: transparent; } .sess-badge.idle { background: var(--card2); } .batch-tag { border-radius: 5px; } .kdelta { border-radius: 5px; font-weight: 700; } /* filtres & inputs */ .f-input, .f-select { border-radius: 9px; border: 1px solid var(--edge); font-weight: 500; } .login input, .pe-input, .pe-textarea, .soc-select, #view-social textarea { border: 1px solid var(--edge); border-radius: 9px; } .login input:focus, .pe-input:focus, .pe-textarea:focus, .f-input:focus { border-color: var(--orange); outline: 2px solid var(--orange-soft); } .an-cfg .ac-num { border: 1px solid var(--edge); border-radius: 7px; } .slash-hint button, .sess-actions button, .sess-btns button { border: 1px solid var(--edge); border-radius: 7px; font-weight: 600; } .sess-actions .p-send { border: none; box-shadow: var(--bshadow-sm); font-weight: 700; } .see-more { font-weight: 700; } /* divers */ .sheet-panel { border: 1px solid var(--edge); border-bottom: none; border-radius: 16px 16px 0 0; } .nbar-track, .break-bar, .statusbar { border: none; background: var(--card2); } .vis-chart { background: transparent; } .md pre, .tool-body pre, .perm pre, .diff, .prompt-preview { border-radius: 8px; border: 1px solid var(--line); } .eco-chip b { font-weight: 600; } .welcome p, .login-sub { font-weight: 500; } .nav-btn { font-weight: 600; } .md :not(pre) > code { border-radius: 4px; }