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-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); }332.perm-deny { background: var(--card); color: var(--bad); }333.perm-resolved { color: var(--muted); font-size: 12.5px; margin-top: 10px; font-weight: 700; }334335.working {336 align-self: flex-start;337 display: flex; align-items: center; gap: 10px;338 font-size: 13.5px; font-weight: 700;339 background: var(--card); border: 2px solid var(--ink);340 border-radius: 999px; padding: 8px 16px; box-shadow: var(--bshadow-sm);341}342.dots { display: flex; gap: 4px; }343.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; }344.dots i:nth-child(2) { animation-delay: 0.14s; }345.dots i:nth-child(3) { animation-delay: 0.28s; }346@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-4px); opacity: 1; } }347348/* --- accueil --- */349.welcome {350 position: absolute; inset: 130px 0 140px; z-index: 5;351 display: flex; flex-direction: column; align-items: center; justify-content: center;352 gap: 9px; padding: 28px; text-align: center; pointer-events: none;353}354.welcome > * { pointer-events: auto; }355.welcome h2 { margin: 6px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }356.welcome p { margin: 0; color: var(--muted); font-size: 14px; max-width: 300px; font-weight: 600; }357.hints { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }358.hint {359 background: var(--card); border: 1.5px solid var(--ink);360 font-size: 13px; font-weight: 700;361 border-radius: 999px; padding: 9px 14px; cursor: pointer;362 box-shadow: var(--bshadow-sm);363}364365/* --- composer --- */366.composer {367 position: sticky; bottom: 0; z-index: var(--z-composer);368 background: var(--bg);369 padding: 8px 12px calc(72px + env(safe-area-inset-bottom));370}371.composer-inner {372 display: flex; align-items: flex-end; gap: 8px;373 max-width: 780px; margin: 0 auto;374 background: var(--card);375 border: 2px solid var(--ink); border-radius: var(--r-xl);376 box-shadow: var(--bshadow);377 padding: 6px 6px 6px 17px;378}379#input {380 flex: 1; background: none; color: var(--ink);381 border: none; padding: 10px 0; font-size: 16px; line-height: 1.45;382 resize: none; outline: none; max-height: 140px; font-family: inherit; font-weight: 600;383}384#input::placeholder { color: var(--muted); font-weight: 600; }385.send-btn {386 width: 42px; height: 42px; border-radius: 50%;387 border: 2px solid var(--ink);388 background: var(--orange); color: var(--ink);389 cursor: pointer; flex-shrink: 0;390 display: flex; align-items: center; justify-content: center;391 box-shadow: var(--bshadow-sm);392 transition: transform 0.08s;393}394.send-btn svg { width: 19px; height: 19px; }395.send-btn:active { transform: translate(1px, 1px); box-shadow: none; }396.send-btn:disabled { opacity: 0.35; }397.send-btn.stop { background: var(--bad); color: #fff; }398.slash-hint {399 max-width: 780px; margin: 6px auto 0; display: flex; gap: 6px; flex-wrap: wrap;400}401.slash-hint button {402 border: 1.5px solid var(--ink); background: var(--card2); border-radius: 999px;403 font-size: 12px; font-weight: 700; padding: 5px 11px; cursor: pointer;404}405406/* ================= Sessions ================= */407.sess-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 0 auto; width: 100%; }408.sess-card {409 background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg);410 box-shadow: var(--bshadow-sm); padding: 13px 15px; cursor: pointer;411 display: flex; flex-direction: column; gap: 6px;412}413.sess-top { display: flex; align-items: center; gap: 8px; }414.sess-title { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }415.sess-badge { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 10px; border: 1.5px solid var(--ink); flex-shrink: 0; }416.sess-badge.running { background: var(--orange); animation: pulse 1.4s infinite; }417.sess-badge.waiting_perm { background: var(--warn-soft); color: var(--warn); }418.sess-badge.idle { background: var(--card2); color: var(--muted); }419.sess-info { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }420.sess-actions { display: flex; gap: 8px; margin-top: 4px; }421.sess-actions button {422 border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card2);423 font-size: 12px; font-weight: 800; padding: 6px 13px; cursor: pointer;424}425.sess-actions .del { color: var(--bad); }426.sess-empty { color: var(--muted); text-align: center; padding: 40px 16px; font-weight: 600; }427428/* ================= Écosystème ================= */429.eco-stamp { font-size: 11px; color: var(--muted); font-family: var(--mono); }430.eco-overview {431 display: flex; gap: 10px; margin-bottom: 14px;432 max-width: 780px; margin-left: auto; margin-right: auto;433}434.eco-stat {435 flex: 1; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg);436 box-shadow: var(--bshadow-sm); padding: 10px 12px; text-align: center;437}438.eco-stat .v { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }439.eco-stat .l { font-size: 10.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; }440.eco-stat.ok .v { color: var(--good); }441.eco-stat.bad .v { color: var(--bad); }442.eco-grid {443 display: grid; grid-template-columns: 1fr; gap: 12px;444 max-width: 780px; margin: 0 auto; width: 100%;445}446@media (min-width: 560px) { .eco-grid { grid-template-columns: 1fr 1fr; } }447.eco-loading { color: var(--muted); text-align: center; padding: 40px; font-weight: 700; }448.site-card {449 background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg);450 box-shadow: var(--bshadow-sm); padding: 12px 14px; cursor: pointer;451 display: flex; flex-direction: column; gap: 8px;452 transition: transform 0.08s;453}454.site-card:active { transform: translate(2px, 2px); box-shadow: none; }455.site-card.down { border-color: var(--bad); box-shadow: 3px 3px 0 var(--bad); }456.site-top { display: flex; align-items: center; gap: 8px; }457.site-name { font-weight: 800; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }458.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; }459.st-pill.up { background: var(--good-soft); color: var(--good); }460.st-pill.slow { background: var(--warn-soft); color: var(--warn); }461.st-pill.down { background: var(--bad); color: #fff; }462.site-mid { display: flex; align-items: flex-end; gap: 10px; }463.site-ms { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; }464.site-ms small { font-size: 11px; color: var(--muted); font-weight: 700; }465.spark { flex: 1; height: 30px; }466.site-foot { display: flex; gap: 9px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); font-family: var(--mono); }467.site-foot b { color: var(--ink); }468469/* feuille détail */470.sheet { position: fixed; inset: 0; z-index: var(--z-sheet); }471.sheet-back { position: absolute; inset: 0; background: rgba(26, 22, 17, 0.45); }472@keyframes sheet-up { from { transform: translateY(60%); } to { transform: none; } }473.sheet-panel {474 position: absolute; left: 0; right: 0; bottom: 0;475 max-height: 88dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;476 background: var(--bg); border: 2px solid var(--ink); border-bottom: none;477 border-radius: var(--r-xl) var(--r-xl) 0 0;478 padding: 8px 16px calc(20px + env(safe-area-inset-bottom));479 animation: sheet-up 0.22s ease-out;480}481.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 6px auto 12px; }482.sheet-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }483.sheet-h h3 { margin: 0; font-size: 21px; font-weight: 800; flex: 1; }484.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; }485.sheet-sec h4 { margin: 0 0 9px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); }486.kv { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 13.5px; }487.kv b { font-family: var(--mono); font-weight: 700; }488.tile-row { display: flex; gap: 9px; }489.tile { flex: 1; background: var(--card2); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 8px 6px; text-align: center; }490.tile .v { font-size: 17px; font-weight: 800; }491.tile .l { font-size: 10px; color: var(--muted); font-weight: 800; text-transform: uppercase; }492.chart { width: 100%; }493.chart-tip {494 position: absolute; pointer-events: none; transform: translate(-50%, -110%);495 background: var(--ink); color: var(--bg); border-radius: 8px;496 font-size: 11px; font-family: var(--mono); padding: 4px 8px; white-space: nowrap;497}498.inc-item { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1.5px solid var(--line); font-size: 12.5px; align-items: baseline; }499.inc-item:last-child { border-bottom: none; }500.inc-dot { color: var(--bad); font-weight: 800; }501.inc-ok { color: var(--good); font-weight: 800; }502503/* ================= Réglages ================= */504.set-card {505 max-width: 780px; margin: 0 auto 12px; width: 100%;506 background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg);507 box-shadow: var(--bshadow-sm); padding: 14px 16px;508}509.set-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); margin-bottom: 10px; }510.seg { display: flex; gap: 7px; }511.seg.vert { flex-direction: column; }512.seg button {513 flex: 1; border: 1.5px solid var(--ink); border-radius: 999px;514 background: var(--card2); font-weight: 700; font-size: 13.5px;515 padding: 10px 12px; cursor: pointer; text-align: center;516}517.seg.vert button { text-align: left; padding-left: 16px; }518.seg button.on { background: var(--orange); font-weight: 800; box-shadow: var(--bshadow-sm); }519.set-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; font-weight: 600; }520.set-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }521