SPB Git

Repository Public

admin.css 34.1 KB 455 lines css

1/* MacLustr LLM API — Dashboard administrateur, connexion et activation.2   Les jetons de design viennent de tokens.css (importé par les pages) ; rien n'y est redéfini ici. */34:root {5  /* Séries de graphiques (palette validée : bande de clarté, séparation daltonisme, contraste ≥ 3:1) */6  --c1: #1fab80; --c2: #8878f0; --c3: #d07841;7  --chart-grid: rgba(255, 255, 255, 0.06);8  --sidebar-w: 248px;9  --tabbar-h: 60px;10  --scene-1: rgba(94, 242, 196, 0.16); --scene-2: rgba(76, 201, 240, 0.13); --scene-3: rgba(155, 140, 255, 0.15);11}12:root[data-theme="light"] {13  --c1: #0a8f6c; --c2: #6a55e0; --c3: #c2621b;14  --chart-grid: rgba(12, 18, 28, 0.07);15  --scene-1: rgba(10, 143, 108, 0.13); --scene-2: rgba(33, 150, 209, 0.1); --scene-3: rgba(106, 85, 224, 0.11);16}17@media (prefers-color-scheme: light) {18  :root:not([data-theme]) {19    --c1: #0a8f6c; --c2: #6a55e0; --c3: #c2621b;20    --chart-grid: rgba(12, 18, 28, 0.07);21    --scene-1: rgba(10, 143, 108, 0.13); --scene-2: rgba(33, 150, 209, 0.1); --scene-3: rgba(106, 85, 224, 0.11);22  }23}2425html, body { height: 100%; }26body { overflow-x: hidden; }27[hidden] { display: none !important; }28h1, h2, h3, p { margin: 0; }29h1, h2, h3 { letter-spacing: var(--tracking-tight); line-height: 1.2; font-weight: 620; }30button, input, select, textarea { font: inherit; color: inherit; }31code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 0.1em 0.4em;32  white-space: nowrap; }33.num, td.n, th.n { font-variant-numeric: tabular-nums; }34.muted { color: var(--text-2); }35.faint { color: var(--text-3); }36.mono { font-family: var(--font-mono); font-size: 0.9em; }37.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7;38  stroke-linecap: round; stroke-linejoin: round; }39.icon-sm { width: 16px; height: 16px; }4041/* --- Boutons ----------------------------------------------------------------------------------- */42.btn {43  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;44  padding: 0 16px; border-radius: var(--radius-md); border: 1px solid var(--border-strong);45  background: var(--surface-2); color: var(--text); font-weight: 560; font-size: var(--text-base);46  cursor: pointer; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent;47  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast), opacity var(--dur-fast);48}49.btn:hover { background: var(--surface-3); }50.btn:active { transform: scale(0.98); }51.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }52.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-contrast); }53.btn-primary:hover { background: var(--accent-strong); }54.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }55.btn-ghost:hover { background: var(--surface-2); color: var(--text); }56.btn-danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }57.btn-danger:hover { background: var(--danger); color: #fff; }58.btn-sm { min-height: 36px; padding: 0 12px; font-size: var(--text-sm); border-radius: 10px; }59.btn-lg { min-height: 52px; padding: 0 22px; font-size: var(--text-md); border-radius: 14px; width: 100%; }60.btn-icon { width: 44px; padding: 0; }61.btn-sm.btn-icon { width: 36px; }62.btn .spinner { width: 16px; height: 16px; }63@media (pointer: coarse) { .btn-sm { min-height: 44px; } .btn-sm.btn-icon { width: 44px; } }6465.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong);66  border-top-color: var(--accent); animation: spin 0.8s linear infinite; flex: none; }67.btn-primary .spinner { border-color: rgba(0, 0, 0, 0.2); border-top-color: currentColor; }68@keyframes spin { to { transform: rotate(360deg); } }6970/* --- Scène (connexion, activation) --------------------------------------------------------------- */71.boot { min-height: 100dvh; display: grid; place-items: center; }72.gate {73  position: relative; min-height: 100dvh; display: grid; place-items: center; overflow: hidden; isolation: isolate;74  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))75    max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));76}77.scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }78.scene::after { content: ""; position: absolute; inset: 0;79  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);80  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);81  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%); }82.scene i { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; filter: blur(70px);83  will-change: transform; }84.scene i:nth-child(1) { background: radial-gradient(circle, var(--scene-1), transparent 62%); top: -30vmax; left: -18vmax;85  animation: drift-a 26s var(--ease-out) infinite alternate; }86.scene i:nth-child(2) { background: radial-gradient(circle, var(--scene-2), transparent 62%); bottom: -34vmax; right: -20vmax;87  animation: drift-b 32s ease-in-out infinite alternate; }88.scene i:nth-child(3) { background: radial-gradient(circle, var(--scene-3), transparent 62%); top: 20%; right: -30vmax;89  animation: drift-c 38s ease-in-out infinite alternate; }90@keyframes drift-a { to { transform: translate3d(14vmax, 9vmax, 0) scale(1.12); } }91@keyframes drift-b { to { transform: translate3d(-12vmax, -8vmax, 0) scale(1.08); } }92@keyframes drift-c { to { transform: translate3d(-16vmax, 6vmax, 0) scale(0.92); } }9394.gate-card {95  width: min(100%, 440px); background: var(--glass); border: 1px solid var(--border-strong);96  border-radius: var(--radius-xl); padding: clamp(24px, 6vw, 40px); box-shadow: var(--shadow-3);97  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);98  animation: rise var(--dur-slow) var(--ease-out) both;99}100@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.985); } }101.gate-brand { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-6); }102.gate-brand img { width: 40px; height: 40px; }103.gate-brand b { display: block; font-size: var(--text-md); letter-spacing: var(--tracking-tight); font-weight: 640; line-height: 1.2; }104.gate-brand span { display: block; font-size: var(--text-xs); color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }105.gate-emblem { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;106  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-ring); margin-bottom: var(--space-5); }107.gate-emblem .icon { width: 28px; height: 28px; }108.gate-emblem.is-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }109.gate-emblem.is-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }110.gate-card h1 { font-size: var(--text-xl); margin-bottom: var(--space-3); }111.gate-card p { color: var(--text-2); }112.gate-card p + p { margin-top: var(--space-3); }113.gate-actions { margin-top: var(--space-6); display: grid; gap: var(--space-3); }114.gate-foot { margin-top: var(--space-5); font-size: var(--text-sm); color: var(--text-3); text-align: center; }115.gate-foot a { color: var(--text-2); }116.gate-top { position: absolute; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); }117.facts { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-3); }118.facts li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; color: var(--text-2); font-size: var(--text-base); line-height: 1.5; }119.facts .icon { color: var(--accent); margin-top: 2px; }120.countdown { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--space-5); padding: 6px 12px;121  border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border);122  font-size: var(--text-sm); color: var(--text-2); font-variant-numeric: tabular-nums; }123.countdown.is-low { color: var(--warn); background: var(--warn-soft); border-color: transparent; }124.cmd { display: block; margin-top: var(--space-2); padding: 10px 12px; border-radius: 10px; background: var(--code-bg);125  color: var(--code-text); font-family: var(--font-mono); font-size: var(--text-sm); border: 1px solid var(--border);126  overflow-x: auto; white-space: nowrap; }127.steps { margin: var(--space-5) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-4); }128.steps li { font-size: var(--text-sm); color: var(--text-2); }129.steps b { color: var(--text); font-weight: 580; }130131/* --- Messages ------------------------------------------------------------------------------------ */132.note { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md);133  background: var(--info-soft); color: var(--text); font-size: var(--text-sm); line-height: 1.5; border: 1px solid transparent; }134.note .icon { color: var(--info); margin-top: 1px; }135.note.is-warn { background: var(--warn-soft); } .note.is-warn .icon { color: var(--warn); }136.note.is-danger { background: var(--danger-soft); } .note.is-danger .icon { color: var(--danger); }137.note.is-ok { background: var(--ok-soft); } .note.is-ok .icon { color: var(--ok); }138.note b { font-weight: 600; }139.gate-card .note { margin-top: var(--space-4); }140.gate-card .note p { color: inherit; }141142/* --- Champs -------------------------------------------------------------------------------------- */143.field { display: grid; gap: 6px; min-width: 0; }144.field > label, .field > .label, fieldset.field > legend { font-size: var(--text-sm); font-weight: 560; color: var(--text); padding: 0; }145.field .hint { font-size: var(--text-xs); color: var(--text-3); line-height: 1.45; }146.field .err { font-size: var(--text-xs); color: var(--danger); }147fieldset.field { border: 0; margin: 0; padding: 0; }148.input, select.input {149  width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--radius-md); background: var(--bg-raised);150  border: 1px solid var(--border-strong); color: var(--text); font-size: 16px; min-width: 0;151  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);152}153.input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }154.input[aria-invalid="true"] { border-color: var(--danger); }155select.input { appearance: none; -webkit-appearance: none; padding-right: 34px;156  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);157  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }158.gate-card .field { margin-top: var(--space-5); }159.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }160.form-grid .span2 { grid-column: 1 / -1; }161@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }162.checks { display: flex; flex-wrap: wrap; gap: 8px; }163.check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: var(--radius-pill);164  border: 1px solid var(--border-strong); background: var(--bg-raised); font-size: var(--text-sm); cursor: pointer; }165.check input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }166.check:has(input:checked) { border-color: var(--accent-ring); background: var(--accent-soft); }167.check:has(input:disabled) { opacity: 0.5; cursor: not-allowed; }168.check:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }169170/* --- Coquille ------------------------------------------------------------------------------------- */171.app { min-height: 100dvh; display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }172.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: var(--space-5);173  padding: var(--space-5) var(--space-4); background: var(--bg-raised); border-right: 1px solid var(--border); overflow-y: auto; }174.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; text-decoration: none; }175.brand img { width: 32px; height: 32px; }176.brand b { display: block; font-weight: 640; letter-spacing: var(--tracking-tight); line-height: 1.15; }177.brand span { display: block; font-size: 0.6875rem; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }178.nav { display: grid; gap: 2px; }179.nav-title { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); padding: 0 12px 6px; }180.nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px;181  color: var(--text-2); text-decoration: none; font-weight: 520; font-size: var(--text-base); border: 0; background: none;182  cursor: pointer; width: 100%; text-align: left; transition: background var(--dur-fast), color var(--dur-fast); }183.nav-link:hover { background: var(--surface-2); color: var(--text); }184.nav-link[aria-current="page"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }185.nav-link[aria-current="page"] .icon { color: var(--accent); }186.nav-link[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px;187  border-radius: 0 3px 3px 0; background: var(--gradient-aurora); }188.sidebar-foot { margin-top: auto; display: grid; gap: 2px; padding-top: var(--space-4); border-top: 1px solid var(--border); }189190.main { min-width: 0; display: flex; flex-direction: column; }191.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;192  padding: 14px clamp(16px, 3vw, 36px); background: var(--glass); border-bottom: 1px solid var(--border);193  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }194.topbar-logo { display: none; width: 28px; height: 28px; }195.topbar h1 { font-size: var(--text-lg); }196.topbar-title { min-width: 0; flex: 1 1 auto; }197.topbar-title p { font-size: var(--text-sm); color: var(--text-3); line-height: 1.3; }198.topbar-actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }199.view { padding: clamp(16px, 3vw, 36px); display: grid; gap: var(--space-5); align-content: start;200  max-width: 1480px; width: 100%; outline: none; animation: view-in var(--dur-med) var(--ease-out) both; }201@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }202203.tabbar { display: none; }204@media (max-width: 899px) {205  .app { grid-template-columns: minmax(0, 1fr); }206  .sidebar { display: none; }207  .topbar { padding-top: max(12px, env(safe-area-inset-top)); padding-left: max(16px, env(safe-area-inset-left));208    padding-right: max(16px, env(safe-area-inset-right)); gap: var(--space-3); }209  .topbar-logo { display: block; }210  .topbar-title p { display: none; }211  .view { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right));212    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px); gap: var(--space-4); }213  .tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);214    padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));215    background: var(--glass); border-top: 1px solid var(--border);216    -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); }217  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tabbar-h);218    min-width: 0; color: var(--text-3); text-decoration: none; font-size: 0.6875rem; font-weight: 560; border: 0; background: none;219    cursor: pointer; -webkit-tap-highlight-color: transparent; }220  .tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }221  .tab[aria-current="page"], .tab[aria-expanded="true"] { color: var(--accent); }222  .tab .icon { width: 22px; height: 22px; }223}224225/* --- Cartes, grilles ------------------------------------------------------------------------------ */226.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1);227  min-width: 0; }228.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap;229  padding: 16px 20px 0; }230.card-head h2, .card-head h3 { font-size: var(--text-base); font-weight: 600; }231.card-head p { font-size: var(--text-sm); color: var(--text-3); }232.card-body { padding: 16px 20px 20px; min-width: 0; }233.card-body.flush { padding: 8px 0 0; }234.cols { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }235.cols-2 { display: grid; gap: var(--space-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }236.cols-3 { display: grid; gap: var(--space-5); grid-template-columns: repeat(3, minmax(0, 1fr)); }237@media (max-width: 1100px) { .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }238@media (max-width: 899px) { .cols, .cols-2, .cols-3 { gap: var(--space-4); } }239@media (max-width: 760px) { .cols-2, .cols-3 { grid-template-columns: minmax(0, 1fr); } }240.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: var(--space-3); }241.section-title h2 { font-size: var(--text-md); }242.section-title p { font-size: var(--text-sm); color: var(--text-3); }243244.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 0; overflow: hidden; position: relative; }245.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gradient-aurora); opacity: 0.55; }246.hero > div { padding: 20px; border-left: 1px solid var(--border); min-width: 0; }247.hero > div:first-child { border-left: 0; }248.hero .k { font-size: var(--text-xs); color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }249.hero .v { font-size: var(--text-lg); font-weight: 620; letter-spacing: var(--tracking-tight); margin-top: 4px; line-height: 1.25;250  overflow-wrap: anywhere; }251.hero .s { font-size: var(--text-sm); color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; }252@media (max-width: 1100px) { .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }253  .hero > div:nth-child(odd) { border-left: 0; } .hero > div:nth-child(n+3) { border-top: 1px solid var(--border); } }254@media (max-width: 480px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero > div { border-left: 0; padding: 16px 20px; }255  .hero > div + div { border-top: 1px solid var(--border); } }256257.kpis { display: grid; gap: var(--space-4); grid-template-columns: repeat(4, minmax(0, 1fr)); }258@media (max-width: 1240px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }259@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); } }260.kpi { padding: 16px 18px; display: grid; gap: 4px; align-content: start; position: relative; overflow: hidden; }261.kpi-label { font-size: var(--text-sm); color: var(--text-2); line-height: 1.3; }262.kpi-value { font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 640; letter-spacing: -0.03em; line-height: 1.15;263  font-variant-numeric: tabular-nums; white-space: nowrap; }264.kpi-value small { font-size: 0.5em; font-weight: 520; color: var(--text-2); letter-spacing: 0; margin-left: 3px; }265.kpi-sub { font-size: var(--text-xs); color: var(--text-3); line-height: 1.4; font-variant-numeric: tabular-nums; }266.kpi-spark { margin-top: 8px; height: 34px; }267.kpi-spark svg { display: block; width: 100%; height: 34px; overflow: visible; }268.spark-line { fill: none; stroke: var(--sc, var(--c1)); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round;269  vector-effect: non-scaling-stroke; }270.spark-area { fill: var(--sc, var(--c1)); opacity: 0.1; }271.spark-dot { fill: var(--sc, var(--c1)); stroke: var(--surface); stroke-width: 2; }272.spark-empty { font-size: var(--text-xs); color: var(--text-3); line-height: 34px; }273@media (max-width: 420px) { .kpi { padding: 14px; } }274275.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-pill);276  font-size: var(--text-xs); font-weight: 580; background: var(--surface-2); color: var(--text-2); white-space: nowrap; line-height: 1.5; }277.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }278.pill.plain::before { display: none; }279.pill.ok { background: var(--ok-soft); color: var(--ok); }280.pill.warn { background: var(--warn-soft); color: var(--warn); }281.pill.danger { background: var(--danger-soft); color: var(--danger); }282.pill.info { background: var(--info-soft); color: var(--info); }283.pill.live::before { animation: pulse 2.4s ease-in-out infinite; }284@keyframes pulse { 50% { opacity: 0.35; } }285.status-xl { display: flex; align-items: center; gap: 10px; }286.status-xl .orb { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); flex: none; }287.status-xl.ok .orb { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }288.status-xl.warn .orb { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }289.status-xl.danger .orb { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }290291.meter { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }292.meter > i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--c1);293  transition: width var(--dur-slow) var(--ease-out); }294.meter.warn > i { background: var(--warn); } .meter.danger > i { background: var(--danger); }295.meter.c2 > i { background: var(--c2); } .meter.c3 > i { background: var(--c3); }296.gauge { display: grid; gap: 8px; }297.gauge-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }298.gauge-top b { font-size: var(--text-xl); font-weight: 640; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }299.gauge-top span { font-size: var(--text-sm); color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; }300.cores { display: grid; grid-template-columns: repeat(auto-fill, minmax(26px, 1fr)); gap: 6px; margin-top: 16px; }301.core { display: grid; gap: 4px; justify-items: center; font-size: 0.625rem; color: var(--text-3); font-variant-numeric: tabular-nums; }302.core > i { display: flex; align-items: flex-end; width: 100%; height: 54px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }303.core > i > b { display: block; width: 100%; background: var(--c1); border-radius: 4px 4px 0 0; transition: height var(--dur-slow) var(--ease-out); }304305.dl { display: grid; margin: 0; }306.dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0;307  border-top: 1px solid var(--border); font-size: var(--text-sm); }308.dl > div:first-child { border-top: 0; }309.dl dt { color: var(--text-2); flex: none; }310.dl dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; font-weight: 520; }311312/* --- Contrôle segmenté ---------------------------------------------------------------------------- */313.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); gap: 2px; }314.seg button { min-height: 36px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--text-2);315  font-size: var(--text-sm); font-weight: 560; cursor: pointer; font-variant-numeric: tabular-nums;316  transition: background var(--dur-fast), color var(--dur-fast); }317.seg button:hover { color: var(--text); }318.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1), 0 0 0 1px var(--border); }319@media (pointer: coarse) { .seg button { min-height: 44px; } }320321/* --- Graphiques ----------------------------------------------------------------------------------- */322.chart { position: relative; min-width: 0; border-radius: 8px; touch-action: pan-y; }323.chart:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }324.chart svg { display: block; width: 100%; overflow: visible; }325.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; font-size: var(--text-xs); color: var(--text-2); }326.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }327.sw { width: 10px; height: 10px; border-radius: 3px; background: var(--sc); flex: none; }328.ch-grid { stroke: var(--chart-grid); stroke-width: 1; shape-rendering: crispEdges; }329.ch-axis { fill: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; font-family: var(--font-sans); }330.ch-line { fill: none; stroke: var(--sc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }331.ch-area { fill: var(--sc); opacity: 0.12; }332.ch-bar { fill: var(--sc); }333.ch-pt { fill: var(--sc); stroke: var(--surface); stroke-width: 2; }334.ch-cross { stroke: var(--border-strong); stroke-width: 1; shape-rendering: crispEdges; }335.ch-band { fill: var(--text); opacity: 0.06; }336.chart-tip { position: absolute; top: 0; left: 0; z-index: 5; pointer-events: none; min-width: 132px; max-width: 240px; padding: 8px 10px;337  border-radius: 10px; background: var(--surface-3); border: 1px solid var(--border-strong); box-shadow: var(--shadow-2);338  font-size: var(--text-xs); line-height: 1.5; opacity: 0; transition: opacity var(--dur-fast); }339.chart-tip.on { opacity: 1; }340.chart-tip .t { color: var(--text-2); margin-bottom: 2px; white-space: nowrap; }341.chart-tip .r { display: flex; align-items: center; gap: 6px; white-space: nowrap; }342.chart-tip .r b { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; font-weight: 620; }343.empty { display: grid; place-items: center; text-align: center; gap: 6px; padding: 28px 16px; color: var(--text-3); font-size: var(--text-sm); }344.empty b { color: var(--text-2); font-weight: 580; font-size: var(--text-base); }345.empty .icon { width: 26px; height: 26px; opacity: 0.7; }346.chart .empty { min-height: 160px; align-content: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); }347348/* --- Tableaux ------------------------------------------------------------------------------------- */349.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }350table.rt { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }351.rt th { text-align: left; font-weight: 560; color: var(--text-3); font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase;352  padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }353.rt td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }354.rt th:first-child, .rt td:first-child { padding-left: 20px; } .rt th:last-child, .rt td:last-child { padding-right: 20px; }355.rt tbody tr:last-child td { border-bottom: 0; }356.rt tbody tr { transition: background var(--dur-fast); }357.rt tbody tr:hover { background: var(--surface-2); }358.rt .n { text-align: right; white-space: nowrap; }359.rt .nw { white-space: nowrap; }360.rt td .sub { display: block; font-size: var(--text-xs); color: var(--text-3); }361.rt tr.is-off td { color: var(--text-3); }362.bar-cell { display: grid; gap: 5px; min-width: 72px; }363.row-actions { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }364@media (max-width: 760px) {365  table.rt.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }366  table.rt.stack, table.rt.stack tbody, table.rt.stack tr, table.rt.stack td { display: block; width: 100%; }367  table.rt.stack tr { padding: 12px 20px; border-bottom: 1px solid var(--border); }368  table.rt.stack tbody tr:last-child { border-bottom: 0; }369  table.rt.stack td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 4px 0 !important; border: 0;370    text-align: right; }371  table.rt.stack td::before { content: attr(data-label); color: var(--text-3); font-size: var(--text-xs); flex: none; text-align: left; }372  table.rt.stack td.lead { display: block; text-align: left; font-weight: 600; font-size: var(--text-base); padding-bottom: 6px !important; }373  table.rt.stack td.lead::before, table.rt.stack td.acts::before { display: none; }374  table.rt.stack td.acts { justify-content: flex-start; padding-top: 10px !important; }375  table.rt.stack td .sub { display: inline; margin-left: 6px; }376  table.rt.stack td.lead .sub { display: block; margin-left: 0; font-weight: 400; }377  table.rt.stack .bar-cell { min-width: 0; flex: 1; max-width: 60%; }378  .row-actions { justify-content: flex-start; }379}380381/* --- Listes d'objets (clés API, passkeys, sessions) --------------------------------------------- */382.items { display: grid; }383.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center; padding: 16px 20px;384  border-top: 1px solid var(--border); }385.item:first-child { border-top: 0; }386.item-main { min-width: 0; display: grid; gap: 6px; }387.item-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; }388.item-title .name { overflow-wrap: anywhere; }389.item-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--text-sm); color: var(--text-2); }390.item-meta span { white-space: nowrap; font-variant-numeric: tabular-nums; }391.item.is-off .item-title .name, .item.is-off .item-meta { color: var(--text-3); }392.item-usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 20px; margin-top: 4px; }393.usage { display: grid; gap: 5px; font-size: var(--text-xs); color: var(--text-2); font-variant-numeric: tabular-nums; }394.usage > div { display: flex; justify-content: space-between; gap: 8px; }395@media (max-width: 760px) { .item { grid-template-columns: minmax(0, 1fr); } }396397/* --- Dialogues ------------------------------------------------------------------------------------ */398dialog.dialog { width: min(560px, calc(100vw - 24px)); max-height: min(88dvh, 900px); padding: 0; border: 1px solid var(--border-strong);399  border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-3); overflow: hidden; }400dialog.dialog.wide { width: min(980px, calc(100vw - 24px)); }401dialog.dialog[open] { display: flex; flex-direction: column; animation: rise var(--dur-med) var(--ease-out) both; }402dialog.dialog::backdrop { background: rgba(4, 6, 9, 0.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }403.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 0; }404.dialog-head h2 { font-size: var(--text-lg); }405.dialog-head .btn { margin: -8px -8px 0 0; }406.dialog-body { padding: 16px 20px 20px; overflow-y: auto; display: grid; gap: var(--space-4); min-width: 0; }407.dialog-body > p { color: var(--text-2); }408.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 14px 20px;409  border-top: 1px solid var(--border); background: var(--bg-raised); }410@media (max-width: 560px) {411  dialog.dialog, dialog.dialog.wide { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0;412    border-bottom: 0; max-height: 92dvh; }413  .dialog-foot { padding-bottom: max(14px, env(safe-area-inset-bottom)); }414  .dialog-foot .btn { flex: 1 1 auto; }415}416.secret { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }417.secret output { display: block; padding: 12px; border-radius: var(--radius-md); background: var(--code-bg); color: var(--code-text);418  font-family: var(--font-mono); font-size: var(--text-sm); border: 1px solid var(--border-strong); overflow-wrap: anywhere;419  user-select: all; -webkit-user-select: all; line-height: 1.5; }420.sheet-links { display: grid; gap: 2px; }421422/* --- Toasts --------------------------------------------------------------------------------------- */423.toasts { position: fixed; z-index: 100; right: 16px; bottom: 16px; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px));424  pointer-events: none; }425.toast { pointer-events: auto; display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md);426  background: var(--surface-3); border: 1px solid var(--border-strong); box-shadow: var(--shadow-2); font-size: var(--text-sm);427  animation: rise var(--dur-med) var(--ease-out) both; }428.toast .icon { color: var(--ok); } .toast.is-danger .icon { color: var(--danger); } .toast.is-info .icon { color: var(--info); }429@media (max-width: 899px) { .toasts { left: 16px; right: 16px; width: auto; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); } }430431.prose { color: var(--text-2); font-size: var(--text-sm); display: grid; gap: 10px; }432.prose b { color: var(--text); font-weight: 580; }433.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }434.toolbar .input { width: auto; min-width: 180px; }435.skeleton { border-radius: 8px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));436  background-size: 200% 100%; animation: shimmer 1.4s linear infinite; min-height: 120px; }437@keyframes shimmer { to { background-position: -200% 0; } }438.center { display: grid; place-items: center; padding: 20px; }439.dd-meter { display: grid; gap: 6px; min-width: min(180px, 40vw); }440.view > div:empty { display: none; }441.cols-3 .rt th, .cols-3 .rt td { padding-left: 8px; padding-right: 8px; }442.cols-3 .rt th:first-child, .cols-3 .rt td:first-child { padding-left: 20px; }443.cols-3 .rt th:last-child, .cols-3 .rt td:last-child { padding-right: 20px; }444.gate-card h1:focus, .gate-card h1:focus-visible { outline: none; }445@media (max-width: 560px) { .gate { padding-top: max(68px, calc(env(safe-area-inset-top) + 60px)); align-items: start; } }446.gate { grid-template-columns: minmax(0, 1fr); justify-items: center; }447.gate-card { min-width: 0; }448.gate-card code { white-space: normal; overflow-wrap: anywhere; }449.input, select.input { height: 44px; }450.stack { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); min-width: 0; }451.stack.tight { gap: var(--space-4); }452.dialog-body, .view { grid-template-columns: minmax(0, 1fr); }453.btn-lg { white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; min-width: 0; }454@media (max-width: 899px) { .stack { gap: var(--space-4); } }455
Files main
Menu

Theme