SPB Git

spb/admin-ka

Public
33.9 KB · 663 lines css
1/* Admin-Ka — identité Groupe KA : crème + orange, néo-brutalisme doux */2:root {3  --bg: #F2F1EC;4  --card: #FCFBF8;5  --card2: #F7F5EF;6  --ink: #1a1611;7  --muted: #6d675c;8  --line: #e3dfd4;9  --orange: #F97316;10  --orange-deep: #e05f00;    /* traits de graphique (contraste validé) */11  --orange-soft: #fee9d8;12  --good: #178a4c;13  --good-soft: #e2f3e8;14  --warn: #946300;15  --warn-soft: #f7edd4;16  --bad: #d5303e;17  --bad-soft: #fbe6e7;18  --grid: #e5e1d8;19  --r-xl: 26px;20  --r-lg: 20px;21  --r-md: 14px;22  --r-sm: 10px;23  --bshadow: 3px 3px 0 var(--ink);24  --bshadow-sm: 2px 2px 0 var(--ink);25  --z-banner: 140;26  --z-header: 100;27  --z-nav: 110;28  --z-composer: 105;29  --z-sheet: 200;30  --z-login: 300;31  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;32  --round: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", Roboto, sans-serif;33}34* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }35html, body {36  margin: 0; padding: 0;37  background: var(--bg); color: var(--ink);38  font: 15.5px/1.55 var(--round);39  height: 100%;40  overscroll-behavior: none;41}42.hidden { display: none !important; }43button { font-family: inherit; color: inherit; }44.mono { font-family: var(--mono); font-size: 0.92em; }4546.ka-mark {47  display: inline-flex; align-items: center; justify-content: center;48  width: 34px; height: 34px; border-radius: 11px;49  background: var(--orange); color: var(--ink);50  border: 2px solid var(--ink); box-shadow: var(--bshadow-sm);51  font-weight: 800; font-size: 15px; letter-spacing: -0.2px;52  flex-shrink: 0;53}54.ka-mark.big { width: 68px; height: 68px; border-radius: 21px; font-size: 28px; box-shadow: var(--bshadow); margin: 0 auto; }55.tiret { color: var(--orange); font-weight: 800; }5657.btn-cta {58  background: var(--orange); color: var(--ink);59  border: 2px solid var(--ink); border-radius: 999px;60  box-shadow: var(--bshadow);61  font-weight: 800; font-size: 16px; padding: 13px 22px; cursor: pointer;62  transition: transform 0.08s, box-shadow 0.08s;63}64.btn-cta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }65.btn-cta.small { font-size: 13.5px; padding: 8px 16px; box-shadow: var(--bshadow-sm); }66.btn-ghost {67  background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px;68  font-weight: 700; font-size: 13.5px; padding: 10px 16px; cursor: pointer;69}70.btn-danger {71  display: block; margin: 18px auto calc(20px);72  background: var(--card); border: 2px solid var(--bad); color: var(--bad);73  border-radius: 999px; font-weight: 800; font-size: 14.5px; padding: 12px 26px; cursor: pointer;74}7576/* ================= Login ================= */77.login {78  position: fixed; inset: 0; z-index: var(--z-login);79  background: var(--bg);80  display: flex; flex-direction: column; align-items: center; justify-content: center;81  padding: 24px; gap: 18px;82}83.login-box {84  width: 100%; max-width: 360px;85  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-xl);86  box-shadow: 6px 6px 0 var(--ink);87  padding: 34px 26px 26px;88  display: flex; flex-direction: column; gap: 13px; text-align: center;89}90.login-title { margin: 6px 0 0; font-size: 27px; font-weight: 800; letter-spacing: -0.5px; }91.login-sub { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; }92.login input {93  background: var(--bg); border: 2px solid var(--ink); color: var(--ink);94  border-radius: var(--r-md); padding: 14px 16px; font-size: 16px; outline: none;95  font-family: inherit;96}97.login input:focus { border-color: var(--orange); }98.login-error { color: var(--bad); font-size: 13px; min-height: 18px; font-weight: 600; }99.login-foot { color: var(--muted); font-size: 12px; font-family: var(--mono); }100101/* ================= Coquille ================= */102.app { display: flex; flex-direction: column; height: 100dvh; position: relative; }103104.header {105  position: sticky; top: 0; z-index: var(--z-header);106  display: flex; align-items: center; justify-content: space-between; gap: 10px;107  background: var(--bg);108  border-bottom: 2px solid var(--ink);109  padding: 8px 14px;110  padding-top: calc(8px + env(safe-area-inset-top));111}112.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.4px; }113.conn-pill {114  display: flex; align-items: center; gap: 6px;115  border: 1.5px solid var(--ink); border-radius: 999px;116  background: var(--card); font-size: 11.5px; font-weight: 700;117  padding: 4px 10px;118}119.conn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }120.conn-pill.on .conn-dot { background: var(--good); }121.conn-pill.mid .conn-dot { background: var(--warn); animation: pulse 1s infinite; }122@keyframes pulse { 50% { opacity: 0.35; } }123124/* bannières notification / alerte */125.banners { position: fixed; top: calc(52px + env(safe-area-inset-top)); left: 0; right: 0; z-index: var(--z-banner); display: flex; flex-direction: column; gap: 8px; padding: 8px 14px; pointer-events: none; }126.banner {127  pointer-events: auto; cursor: pointer;128  border: 2px solid var(--ink); border-radius: var(--r-md);129  box-shadow: var(--bshadow); padding: 11px 14px;130  font-weight: 700; font-size: 13.5px;131  display: flex; gap: 10px; align-items: center;132  animation: drop-in 0.25s ease-out;133}134@keyframes drop-in { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }135.banner.info { background: var(--orange-soft); }136.banner.good { background: var(--good-soft); }137.banner.bad { background: var(--bad-soft); }138.banner.warn { background: var(--warn-soft); }139140/* vues */141.view { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }142#view-sessions, #view-prompts, #view-eco, #view-settings { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 14px calc(86px + env(safe-area-inset-bottom)); }143.view-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 14px; }144.view-head h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }145146/* ================= Bottom nav ================= */147.bottomnav {148  position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--z-nav);149  display: flex;150  background: var(--card);151  border-top: 2px solid var(--ink);152  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));153}154.nav-btn {155  position: relative; flex: 1;156  background: none; border: none; cursor: pointer;157  display: flex; flex-direction: column; align-items: center; gap: 2px;158  color: var(--muted); font-size: 10.5px; font-weight: 700;159  padding: 6px 2px; border-radius: var(--r-md);160}161.nav-btn svg { width: 23px; height: 23px; }162.nav-btn.active { color: var(--ink); }163.nav-btn.active svg { color: var(--orange-deep); }164.nav-btn .badge {165  position: absolute; top: 3px; right: calc(50% - 17px);166  width: 9px; height: 9px; border-radius: 50%;167  background: var(--orange); border: 1.5px solid var(--ink);168}169170/* ================= Vue chat ================= */171.chatbar {172  display: flex; gap: 7px; align-items: center;173  padding: 9px 12px; overflow-x: auto; scrollbar-width: none;174  border-bottom: 1.5px solid var(--line);175  background: var(--bg);176}177.chatbar::-webkit-scrollbar { display: none; }178.pill-select {179  appearance: none; -webkit-appearance: none;180  background: var(--card); color: var(--ink);181  border: 2px solid var(--ink); border-radius: 999px;182  font-weight: 800; font-size: 13.5px; font-family: inherit;183  padding: 7px 26px 7px 13px;184  box-shadow: var(--bshadow-sm);185  max-width: 46vw; text-overflow: ellipsis;186  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%231a1611' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");187  background-repeat: no-repeat; background-position: right 9px center; background-size: 12px;188}189.chip {190  border: 1.5px solid var(--ink); border-radius: 999px;191  background: var(--card2); font-weight: 700; font-size: 12.5px;192  padding: 7px 12px; cursor: pointer; white-space: nowrap; flex-shrink: 0;193}194.chip.orange { background: var(--orange-soft); }195.chip.warn { background: var(--warn-soft); color: var(--warn); }196.chip.ghost { border-style: dashed; color: var(--muted); }197.sess-meta {198  display: flex; gap: 12px; flex-wrap: wrap;199  padding: 6px 14px; font-size: 11px; font-family: var(--mono); color: var(--muted);200  border-bottom: 1.5px solid var(--line); background: var(--card2);201}202203.messages {204  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;205  padding: 16px 13px calc(20px);206  display: flex; flex-direction: column; gap: 12px;207  max-width: 780px; width: 100%; margin: 0 auto;208}209@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }210.messages > * { animation: msg-in 0.2s ease-out; }211212.msg-user {213  align-self: flex-end; max-width: 86%;214  background: var(--orange); color: var(--ink);215  border: 2px solid var(--ink); border-radius: var(--r-lg) var(--r-lg) 6px var(--r-lg);216  box-shadow: var(--bshadow-sm);217  padding: 10px 15px; font-weight: 600;218  white-space: pre-wrap; word-break: break-word;219}220.msg-claude {221  align-self: stretch;222  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg);223  box-shadow: var(--bshadow-sm);224  padding: 13px 16px; word-break: break-word;225}226.msg-claude .md > :first-child { margin-top: 0; }227.msg-claude .md > :last-child { margin-bottom: 0; }228.md p { margin: 0.55em 0; }229.md pre {230  background: #f2efe7; border: 1.5px solid var(--line); border-radius: var(--r-sm);231  padding: 11px; overflow-x: auto; font-size: 12.5px; line-height: 1.5;232}233.md code { font-family: var(--mono); font-size: 0.88em; }234.md :not(pre) > code { background: var(--orange-soft); padding: 1px 6px; border-radius: 6px; }235.md h1, .md h2, .md h3, .md h4 { font-size: 1.03em; margin: 0.9em 0 0.35em; }236.md table { border-collapse: collapse; display: block; overflow-x: auto; font-size: 13px; }237.md th, .md td { border: 1.5px solid var(--line); padding: 5px 9px; }238.md th { background: var(--card2); }239.md a { color: var(--orange-deep); font-weight: 700; }240.md ul, .md ol { padding-left: 1.35em; margin: 0.5em 0; }241.md blockquote { margin: 0.6em 0; padding: 2px 12px; border-left: 3px solid var(--orange); color: var(--muted); }242243.thinking {244  color: var(--muted); font-style: italic; font-size: 13px;245  border-left: 3px solid var(--line); padding-left: 12px;246  white-space: pre-wrap; word-break: break-word;247}248details.thinking-box summary { color: var(--muted); font-size: 12.5px; cursor: pointer; font-weight: 600; }249.meta-line {250  align-self: center; text-align: center;251  color: var(--muted); font-size: 11px; font-family: var(--mono);252  background: var(--card2); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 12px;253  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;254}255.notice-line { align-self: center; color: var(--warn); font-size: 12px; font-weight: 700; }256.error-box {257  background: var(--bad-soft); border: 2px solid var(--bad);258  color: var(--bad); border-radius: var(--r-md); padding: 11px 14px;259  font-size: 13px; white-space: pre-wrap; word-break: break-word; font-weight: 600;260}261262/* --- cartes outils --- */263.tool {264  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-md);265  overflow: hidden; font-size: 13px; box-shadow: var(--bshadow-sm);266}267.tool summary {268  display: flex; align-items: center; gap: 10px;269  padding: 9px 12px; cursor: pointer; list-style: none; user-select: none; min-height: 44px;270}271.tool summary::-webkit-details-marker { display: none; }272.tool .t-icon {273  flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px;274  border: 1.5px solid var(--ink);275  display: flex; align-items: center; justify-content: center;276  font-size: 13px; background: var(--card2);277}278.tool .t-icon.bash { background: var(--ink); color: var(--orange); }279.tool .t-icon.edit { background: var(--orange-soft); }280.tool .t-icon.read { background: var(--card2); }281.tool .t-icon.web { background: var(--good-soft); }282.tool .t-name { font-weight: 800; font-family: var(--mono); font-size: 12.5px; flex-shrink: 0; }283.tool .t-sub {284  color: var(--muted); font-family: var(--mono); font-size: 12px;285  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;286}287.tool .t-state { flex-shrink: 0; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 9px; border: 1.5px solid transparent; }288.tool .t-state.pending { color: var(--warn); background: var(--warn-soft); }289.tool .t-state.ok { color: var(--good); background: var(--good-soft); }290.tool .t-state.err { color: var(--bad); background: var(--bad-soft); }291.tool-body { border-top: 2px solid var(--ink); padding: 9px 13px 11px; background: var(--card2); }292.tool-body pre {293  margin: 6px 0; background: var(--card); border: 1.5px solid var(--line);294  border-radius: var(--r-sm); padding: 9px;295  overflow-x: auto; font-size: 12px; font-family: var(--mono);296  white-space: pre-wrap; word-break: break-word;297}298.tool-body .label { color: var(--muted); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; margin-top: 6px; }299.see-more { background: none; border: none; color: var(--orange-deep); font-size: 12.5px; font-weight: 800; cursor: pointer; padding: 4px 0; }300301.diff { font-family: var(--mono); font-size: 12px; margin: 6px 0; border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--card); }302.diff .dl { padding: 2px 10px; white-space: pre-wrap; word-break: break-word; }303.diff .del { background: #ffe4e1; color: #8c1622; }304.diff .add { background: #ddf3e4; color: #0c5326; }305306.todos { margin: 4px 0; padding: 0; list-style: none; font-size: 13.5px; }307.todos li { padding: 3px 0; }308.todos .done { color: var(--muted); text-decoration: line-through; }309.todos .doing { color: var(--orange-deep); font-weight: 800; }310311/* --- permission --- */312.perm {313  background: var(--warn-soft); border: 2px solid var(--ink);314  border-radius: var(--r-lg); padding: 14px; font-size: 13.5px;315  box-shadow: 4px 4px 0 var(--ink);316}317.perm-title { font-weight: 800; margin-bottom: 8px; font-size: 14.5px; }318.perm pre {319  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 9px;320  overflow-x: auto; font-size: 12px; font-family: var(--mono);321  white-space: pre-wrap; word-break: break-word;322  max-height: 200px; overflow-y: auto; margin: 0;323}324.perm-actions { display: flex; gap: 8px; margin-top: 12px; }325.perm-actions button {326  flex: 1; padding: 11px 6px; border-radius: 999px;327  font-size: 13.5px; font-weight: 800; cursor: pointer; min-height: 46px;328  border: 2px solid var(--ink);329}330.perm-allow { background: var(--good); color: #fff; box-shadow: var(--bshadow-sm); }331.perm-always { background: var(--good-soft); color: var(--good); line-height: 1.05; }332.perm-always small { font-weight: 600; font-size: 9.5px; opacity: 0.8; }333.perm-deny { background: var(--card); color: var(--bad); }334.perm-allall {335  width: 100%; margin-top: 8px; padding: 12px; border-radius: 999px;336  border: 2px solid var(--ink); background: var(--ink); color: var(--orange);337  font-weight: 800; font-size: 13.5px; cursor: pointer; box-shadow: var(--bshadow-sm);338}339.perm-allall:active { transform: translate(1px,1px); box-shadow: none; }340.perm-resolved { color: var(--muted); font-size: 12.5px; margin-top: 10px; font-weight: 700; }341342/* bouton copier sur les blocs de code */343.md pre, .tool-body pre { position: relative; }344.copied-tag {345  position: absolute; top: 6px; right: 8px;346  background: var(--good); color: #fff; font-size: 10px; font-weight: 800;347  border-radius: 6px; padding: 2px 7px; font-family: var(--round);348}349350/* file d'attente */351.queued-notice { align-self: center; background: var(--warn-soft); border: 1.5px solid var(--warn); border-radius: 999px; padding: 5px 14px; }352.working .work-time { margin-left: 2px; color: var(--orange-deep); font-family: var(--mono); font-size: 12px; }353354.head-actions { display: flex; align-items: center; gap: 10px; }355356.working {357  align-self: flex-start;358  display: flex; align-items: center; gap: 10px;359  font-size: 13.5px; font-weight: 700;360  background: var(--card); border: 2px solid var(--ink);361  border-radius: 999px; padding: 8px 16px; box-shadow: var(--bshadow-sm);362}363.dots { display: flex; gap: 4px; }364.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); border: 1px solid var(--ink); animation: bounce 1.1s ease-in-out infinite; }365.dots i:nth-child(2) { animation-delay: 0.14s; }366.dots i:nth-child(3) { animation-delay: 0.28s; }367@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-4px); opacity: 1; } }368369/* --- accueil --- */370.welcome {371  position: absolute; inset: 130px 0 140px; z-index: 5;372  display: flex; flex-direction: column; align-items: center; justify-content: center;373  gap: 9px; padding: 28px; text-align: center; pointer-events: none;374}375.welcome > * { pointer-events: auto; }376.welcome h2 { margin: 6px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }377.welcome p { margin: 0; color: var(--muted); font-size: 14px; max-width: 300px; font-weight: 600; }378.hints { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }379.hint {380  background: var(--card); border: 1.5px solid var(--ink);381  font-size: 13px; font-weight: 700;382  border-radius: 999px; padding: 9px 14px; cursor: pointer;383  box-shadow: var(--bshadow-sm);384}385386/* --- composer --- */387.composer {388  position: sticky; bottom: 0; z-index: var(--z-composer);389  background: var(--bg);390  padding: 8px 12px calc(72px + env(safe-area-inset-bottom));391}392.composer-inner {393  display: flex; align-items: flex-end; gap: 8px;394  max-width: 780px; margin: 0 auto;395  background: var(--card);396  border: 2px solid var(--ink); border-radius: var(--r-xl);397  box-shadow: var(--bshadow);398  padding: 6px 6px 6px 6px; gap: 4px;399}400.composer-inner #input { padding-left: 8px; }401#input {402  flex: 1; background: none; color: var(--ink);403  border: none; padding: 10px 0; font-size: 16px; line-height: 1.45;404  resize: none; outline: none; max-height: 140px; font-family: inherit; font-weight: 600;405}406#input::placeholder { color: var(--muted); font-weight: 600; }407.send-btn {408  width: 42px; height: 42px; border-radius: 50%;409  border: 2px solid var(--ink);410  background: var(--orange); color: var(--ink);411  cursor: pointer; flex-shrink: 0;412  display: flex; align-items: center; justify-content: center;413  box-shadow: var(--bshadow-sm);414  transition: transform 0.08s;415}416.send-btn svg { width: 19px; height: 19px; }417.send-btn:active { transform: translate(1px, 1px); box-shadow: none; }418.send-btn:disabled { opacity: 0.35; }419.send-btn.stop { background: var(--bad); color: #fff; }420.wand-btn {421  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;422  border: 2px solid var(--ink); background: var(--card2); color: var(--orange-deep);423  cursor: pointer; display: flex; align-items: center; justify-content: center;424  align-self: flex-end; margin-bottom: 2px;425}426.wand-btn svg { width: 19px; height: 19px; }427.wand-btn:active { transform: translate(1px,1px); }428.wand-btn.busy { animation: wand-pulse 0.9s ease-in-out infinite; color: var(--orange); }429@keyframes wand-pulse { 50% { opacity: 0.4; transform: scale(1.08); } }430.slash-hint {431  max-width: 780px; margin: 6px auto 0; display: flex; gap: 6px; flex-wrap: wrap;432}433.slash-hint button {434  border: 1.5px solid var(--ink); background: var(--card2); border-radius: 999px;435  font-size: 12px; font-weight: 700; padding: 5px 11px; cursor: pointer;436}437438/* ================= Sessions ================= */439.sess-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 0 auto; width: 100%; }440.sess-card {441  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg);442  box-shadow: var(--bshadow-sm); padding: 13px 15px; cursor: pointer;443  display: flex; flex-direction: column; gap: 6px;444}445.sess-top { display: flex; align-items: center; gap: 8px; }446.sess-title { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }447.sess-badge { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 10px; border: 1.5px solid var(--ink); flex-shrink: 0; }448.sess-badge.running { background: var(--orange); animation: pulse 1.4s infinite; }449.sess-badge.waiting_perm { background: var(--warn-soft); color: var(--warn); }450.sess-badge.idle { background: var(--card2); color: var(--muted); }451.batch-tag { background: var(--orange-soft); color: var(--orange-deep); border-radius: 999px; padding: 1px 8px; font-weight: 800; }452.pill-select.all-mode { background: var(--orange); box-shadow: 3px 3px 0 var(--ink); }453.sess-info { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }454.sess-actions { display: flex; gap: 8px; margin-top: 4px; }455.sess-actions button {456  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card2);457  font-size: 12px; font-weight: 800; padding: 6px 13px; cursor: pointer;458}459.sess-actions .del { color: var(--bad); }460.sess-empty { color: var(--muted); text-align: center; padding: 40px 16px; font-weight: 600; }461462/* Prompt Bank */463.prompt-preview {464  font-family: var(--mono); font-size: 12px; color: var(--ink);465  background: var(--card2); border: 1.5px solid var(--line); border-radius: var(--r-sm);466  padding: 8px 10px; white-space: pre-wrap; word-break: break-word; line-height: 1.45;467}468.sess-actions .p-send { background: var(--orange); color: var(--ink); border-color: var(--ink); box-shadow: var(--bshadow-sm); }469.pe-input {470  width: 100%; background: var(--bg); border: 2px solid var(--ink); color: var(--ink);471  border-radius: var(--r-md); padding: 11px 13px; font-size: 15px; font-family: inherit; font-weight: 600; outline: none;472}473.pe-input:focus { border-color: var(--orange); }474.pe-textarea {475  width: 100%; margin-top: 10px; min-height: 180px; resize: vertical;476  background: var(--bg); border: 2px solid var(--ink); color: var(--ink);477  border-radius: var(--r-md); padding: 12px 13px; font-size: 14px; line-height: 1.5;478  font-family: var(--mono); outline: none;479}480.pe-textarea:focus { border-color: var(--orange); }481482/* bottom nav resserrée pour 5 onglets */483.nav-btn span { font-size: 10px; }484.nav-btn svg { width: 22px; height: 22px; }485486/* ================= Écosystème ================= */487.eco-stamp { font-size: 11px; color: var(--muted); font-family: var(--mono); }488.eco-overview {489  display: flex; gap: 10px; margin-bottom: 14px;490  max-width: 780px; margin-left: auto; margin-right: auto;491}492.eco-stat {493  flex: 1; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg);494  box-shadow: var(--bshadow-sm); padding: 10px 12px; text-align: center;495}496.eco-stat .v { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }497.eco-stat .l { font-size: 10.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; }498.eco-stat.ok .v { color: var(--good); }499.eco-stat.bad .v { color: var(--bad); }500.eco-grid {501  display: grid; grid-template-columns: 1fr; gap: 12px;502  max-width: 780px; margin: 0 auto; width: 100%;503}504@media (min-width: 560px) { .eco-grid { grid-template-columns: 1fr 1fr; } }505.eco-loading { color: var(--muted); text-align: center; padding: 40px; font-weight: 700; }506.site-card {507  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg);508  box-shadow: var(--bshadow-sm); padding: 12px 14px; cursor: pointer;509  display: flex; flex-direction: column; gap: 8px;510  transition: transform 0.08s;511}512.site-card:active { transform: translate(2px, 2px); box-shadow: none; }513.site-card.down { border-color: var(--bad); box-shadow: 3px 3px 0 var(--bad); }514.site-top { display: flex; align-items: center; gap: 8px; }515.site-name { font-weight: 800; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }516.st-pill { font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 3px 10px; border: 1.5px solid var(--ink); flex-shrink: 0; display: flex; gap: 4px; align-items: center; }517.st-pill.up { background: var(--good-soft); color: var(--good); }518.st-pill.slow { background: var(--warn-soft); color: var(--warn); }519.st-pill.down { background: var(--bad); color: #fff; }520.site-mid { display: flex; align-items: flex-end; gap: 10px; }521.site-ms { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; }522.site-ms small { font-size: 11px; color: var(--muted); font-weight: 700; }523.spark { flex: 1; height: 30px; }524.site-foot { display: flex; gap: 9px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); font-family: var(--mono); }525.site-foot b { color: var(--ink); }526527.site-foot .foot-bad b { color: var(--bad); }528529/* nœuds du cluster */530.eco-subhead { max-width: 780px; margin: 20px auto 10px; width: 100%; font-size: 15px; font-weight: 800; letter-spacing: -0.3px; }531.node-grid { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 780px; margin: 0 auto; width: 100%; }532@media (min-width: 560px) { .node-grid { grid-template-columns: 1fr 1fr; } }533.node-card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--bshadow-sm); padding: 12px 14px; }534.node-card.warn { border-color: var(--warn); }535.node-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }536.node-name { font-weight: 800; font-size: 15px; font-family: var(--mono); }537.node-apps { font-size: 11px; font-weight: 800; border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 9px; background: var(--good-soft); color: var(--good); }538.node-apps.bad { background: var(--warn-soft); color: var(--warn); }539.nbar { margin: 5px 0; }540.nbar-l { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }541.nbar-l b { color: var(--ink); font-family: var(--mono); }542.nbar-track { height: 7px; background: var(--card2); border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }543.nbar-fill { height: 100%; border-radius: 999px; transition: width 0.4s; }544545/* actions d'admin dans la feuille */546.admin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }547.admin-actions .btn-ghost { text-align: center; text-decoration: none; }548.admin-out { margin-top: 10px; }549.admin-out pre { background: var(--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; }550.admin-load { color: var(--muted); font-weight: 700; font-size: 13px; }551.admin-ok { color: var(--good); font-weight: 800; }552.admin-err { color: var(--bad); font-weight: 800; }553554/* ===== Command Center ===== */555.eco-overview {556  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;557  max-width: 900px; margin: 0 auto 14px; width: 100%;558}559@media (min-width: 560px) { .eco-overview { grid-template-columns: repeat(6, 1fr); } }560.kpi {561  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-md);562  box-shadow: var(--bshadow-sm); padding: 9px 8px; text-align: center;563}564.kpi .v { font-size: 21px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; }565.kpi .v small { font-size: 11px; font-weight: 700; color: var(--muted); }566.kpi .v .tot { font-size: 13px; color: var(--muted); font-weight: 700; }567.kpi .l { font-size: 9.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; }568.kpi.ok .v { color: var(--good); } .kpi.bad .v { color: var(--bad); }569.eco-grid { max-width: 900px; }570@media (min-width: 900px) { .eco-grid { grid-template-columns: 1fr 1fr 1fr; } }571572.site-logo { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; object-fit: cover; background: var(--card2); border: 1.5px solid var(--line); }573.site-logo.big { width: 34px; height: 34px; border-radius: 9px; }574.trend { font-size: 11px; font-weight: 800; font-family: var(--round); margin-left: 4px; }575.trend.up { color: var(--bad); } .trend.down { color: var(--good); } .trend.flat { color: var(--muted); }576.statusbar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--card2); border: 1.5px solid var(--line); margin: 4px 0 2px; }577.statusbar i { display: block; height: 100%; }578.statusbar .s2 { background: var(--good); } .statusbar .s3 { background: #6a9fd8; }579.statusbar .s4 { background: var(--warn); } .statusbar .s5, .statusbar .se { background: var(--bad); }580.site-metrics { display: flex; gap: 6px; margin: 4px 0 2px; }581.site-metrics .m { flex: 1; text-align: center; background: var(--card2); border: 1.5px solid var(--line); border-radius: 8px; padding: 5px 2px; }582.site-metrics .m b { display: block; font-size: 14px; font-weight: 800; letter-spacing: -0.3px; }583.site-metrics .m span { font-size: 9px; color: var(--muted); font-weight: 700; text-transform: uppercase; }584.pgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; }585.pc { text-align: center; background: var(--card2); border: 1.5px solid var(--line); border-radius: 9px; padding: 7px 2px; }586.pc b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -0.4px; }587.pc span { font-size: 9.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; }588.pc.hot { background: var(--warn-soft); border-color: #f0c36b; }589.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--muted); }590.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 3px; vertical-align: -1px; border: 1px solid var(--line); }591.legend .sw.s2 { background: var(--good); } .legend .sw.s3 { background: #6a9fd8; }592.legend .sw.s4 { background: var(--warn); } .legend .sw.s5 { background: var(--bad); } .legend .sw.se { background: var(--bad); opacity: 0.5; }593.tile .v.red { color: var(--bad); }594595/* feuille détail */596.sheet { position: fixed; inset: 0; z-index: var(--z-sheet); }597.sheet-back { position: absolute; inset: 0; background: rgba(26, 22, 17, 0.45); }598@keyframes sheet-up { from { transform: translateY(60%); } to { transform: none; } }599.sheet-panel {600  position: absolute; left: 0; right: 0; bottom: 0;601  max-height: 88dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;602  background: var(--bg); border: 2px solid var(--ink); border-bottom: none;603  border-radius: var(--r-xl) var(--r-xl) 0 0;604  padding: 8px 16px calc(20px + env(safe-area-inset-bottom));605  animation: sheet-up 0.22s ease-out;606}607.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 6px auto 12px; }608.sheet-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }609.sheet-h h3 { margin: 0; font-size: 21px; font-weight: 800; flex: 1; }610.sheet-sec { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--bshadow-sm); padding: 13px 15px; margin-bottom: 12px; }611.sheet-sec h4 { margin: 0 0 9px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); }612.kv { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 13.5px; }613.kv b { font-family: var(--mono); font-weight: 700; }614.tile-row { display: flex; gap: 9px; }615.tile { flex: 1; background: var(--card2); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 8px 6px; text-align: center; }616.tile .v { font-size: 17px; font-weight: 800; }617.tile .l { font-size: 10px; color: var(--muted); font-weight: 800; text-transform: uppercase; }618.chart { width: 100%; }619.chart-tip {620  position: absolute; pointer-events: none; transform: translate(-50%, -110%);621  background: var(--ink); color: var(--bg); border-radius: 8px;622  font-size: 11px; font-family: var(--mono); padding: 4px 8px; white-space: nowrap;623}624.inc-item { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1.5px solid var(--line); font-size: 12.5px; align-items: baseline; }625.inc-item:last-child { border-bottom: none; }626.inc-dot { color: var(--bad); font-weight: 800; }627.inc-ok { color: var(--good); font-weight: 800; }628629/* ================= Réglages ================= */630.set-card {631  max-width: 780px; margin: 0 auto 12px; width: 100%;632  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg);633  box-shadow: var(--bshadow-sm); padding: 14px 16px;634}635.set-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); margin-bottom: 10px; }636.seg { display: flex; gap: 7px; }637.seg.vert { flex-direction: column; }638.seg button {639  flex: 1; border: 1.5px solid var(--ink); border-radius: 999px;640  background: var(--card2); font-weight: 700; font-size: 13.5px;641  padding: 10px 12px; cursor: pointer; text-align: center;642}643.seg.vert button { text-align: left; padding-left: 16px; }644.seg button.on { background: var(--orange); font-weight: 800; box-shadow: var(--bshadow-sm); }645.set-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; font-weight: 600; }646.set-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }647648649/* ---- Social ---- */650.soc-card{background:var(--card,#fff);border:2px solid var(--ink,#1a1a1a);border-radius:16px;padding:14px 16px;margin:0 0 14px;box-shadow:3px 3px 0 var(--ink,#1a1a1a);}651.soc-card h3{margin:0 0 10px;font-size:15px;}652.soc-switch{display:flex;align-items:center;gap:10px;font-weight:700;cursor:pointer;}653.soc-switch input{width:20px;height:20px;accent-color:var(--accent,#f97316);}654.soc-sub{color:var(--muted,#6b7280);font-size:13px;margin-top:8px;}655.soc-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:12px;}656.soc-select{padding:9px 12px;border:2px solid var(--ink,#1a1a1a);border-radius:10px;font:inherit;background:#fff;}657.soc-draft{margin-top:14px;display:flex;flex-direction:column;gap:10px;}658.soc-draft img{width:100%;max-width:340px;border-radius:12px;border:2px solid var(--ink,#1a1a1a);align-self:center;}659#view-social textarea{width:100%;padding:10px 12px;border:2px solid var(--ink,#1a1a1a);border-radius:10px;font:inherit;resize:vertical;}660.soc-log{display:flex;flex-direction:column;gap:6px;max-height:340px;overflow-y:auto;}661.soc-logrow{font-size:13px;padding:6px 8px;border-radius:8px;background:rgba(0,0,0,.04);}662.soc-logt{color:var(--muted,#6b7280);font-variant-numeric:tabular-nums;margin-right:6px;}663
Files · 23a7546cc58ef90166773e2568e64941d4c0df46
Menu

Theme