/* 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(--ink); --bshadow-sm: 2px 2px 0 var(--ink); --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: 2px solid var(--ink); 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: 2px solid var(--ink); 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: 1px 1px 0 var(--ink); } .btn-cta.small { font-size: 13.5px; padding: 8px 16px; box-shadow: var(--bshadow-sm); } .btn-ghost { background: var(--card); border: 1.5px solid var(--ink); 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: 2px 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: 2px solid var(--ink); border-radius: var(--r-xl); box-shadow: 6px 6px 0 var(--ink); 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: 2px solid var(--ink); 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: 2px solid var(--ink); 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: 1.5px solid var(--ink); 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: 2px solid var(--ink); 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: 2px solid var(--ink); 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: 1.5px solid var(--ink); } /* ================= Vue chat ================= */ .chatbar { display: flex; gap: 7px; align-items: center; padding: 9px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1.5px 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: 2px solid var(--ink); 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: 1.5px solid var(--ink); 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: 1.5px 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: 2px solid var(--ink); 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: 2px solid var(--ink); 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: #f2efe7; border: 1.5px 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: 1.5px 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: 1.5px 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: 2px 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: 2px solid var(--ink); 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: 1.5px solid var(--ink); 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: 2px solid var(--ink); padding: 9px 13px 11px; background: var(--card2); } .tool-body pre { margin: 6px 0; background: var(--card); border: 1.5px 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: 1.5px 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: #ffe4e1; color: #8c1622; } .diff .add { background: #ddf3e4; color: #0c5326; } .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: 2px solid var(--ink); border-radius: var(--r-lg); padding: 14px; font-size: 13.5px; box-shadow: 4px 4px 0 var(--ink); } .perm-title { font-weight: 800; margin-bottom: 8px; font-size: 14.5px; } .perm pre { background: var(--card); border: 1.5px 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: 2px solid var(--ink); } .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: 2px solid var(--ink); 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: 1.5px 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: 2px solid var(--ink); 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(--ink); 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: 1.5px solid var(--ink); 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: 2px solid var(--ink); 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: 2px solid var(--ink); 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: 2px solid var(--ink); 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: 1.5px solid var(--ink); 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: 2px solid var(--ink); 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: 1.5px solid var(--ink); 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(--ink); } .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: 1.5px solid var(--ink); 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: 1.5px 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: 2px solid var(--ink); 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: 2px solid var(--ink); 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: 2px solid var(--ink); 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: 2px solid var(--ink); 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: 3px 3px 0 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: 1.5px solid var(--ink); 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: 2px solid var(--ink); 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: 1.5px solid var(--ink); 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: 1.5px 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(--ink); color: #e8e6df; 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: 2px solid var(--ink); 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: 1.5px 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: 1.5px 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: 1.5px 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: 1.5px 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: 2px solid var(--ink); 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: 2px solid var(--ink); 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: 1.5px 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: 1.5px 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: 2px solid var(--ink); 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: 1.5px solid var(--ink); 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:2px solid var(--ink,#1a1a1a);border-radius:16px;padding:14px 16px;margin:0 0 14px;box-shadow:3px 3px 0 var(--ink,#1a1a1a);} .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:2px solid var(--ink,#1a1a1a);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:2px solid var(--ink,#1a1a1a);align-self:center;} #view-social textarea{width:100%;padding:10px 12px;border:2px solid var(--ink,#1a1a1a);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:2px solid var(--ink,#1a1a1a);border-radius:14px;overflow:hidden;box-shadow:3px 3px 0 var(--ink,#1a1a1a);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:2px solid var(--ink,#1a1a1a);border-radius:18px;padding:26px 30px;text-align:center;box-shadow:4px 4px 0 var(--ink,#1a1a1a);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:2px solid var(--ink,#1a1a1a);border-radius:14px;padding:14px;text-align:center;box-shadow:3px 3px 0 var(--ink,#1a1a1a)} .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:2px solid var(--ink,#1a1a1a);border-radius:16px;padding:16px;box-shadow:3px 3px 0 var(--ink,#1a1a1a)} .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}