@charset "UTF-8";
:root { color-scheme: dark; --bg:#101113; --surface:#17191c; --raised:#1d1f23; --border:#2a2c31; --muted:#979ba4; --text:#eeeee9; --red:#ed5557; --red-dark:#9b2c32; --green:#a8c4ac; --amber:#d6b47b; font-family:Inter,"Segoe UI",Arial,sans-serif; font-synthesis:none; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-size:14px; line-height:1.5; }
[hidden] { display:none!important; }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
a { color:inherit; text-decoration:none; }
button { color:inherit; }
button:disabled { cursor:wait; opacity:.55; }
:focus-visible { outline:2px solid var(--red); outline-offset:4px; }
input:focus-visible,select:focus-visible,textarea:focus-visible { outline-offset:1px; }
h1,h2,h3,p { margin:0; }
h1 { font-size:clamp(28px,3vw,39px); letter-spacing:-1.5px; line-height:1.2; font-weight:650; }
h2 { font-size:17px; font-weight:600; letter-spacing:-.35px; }
h3 { font-size:15px; font-weight:550; }
code { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; }
.muted { color:var(--muted); }
.eyebrow,.sidebar-label,.summary-label,.section-marker { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:10px; letter-spacing:1.5px; font-weight:500; }
.eyebrow { color:var(--muted); margin-bottom:12px; }
.heading-dot { color:var(--red); }
.brand { font-family:Impact,"Arial Narrow",sans-serif; font-size:30px; font-weight:800; letter-spacing:2px; line-height:1; white-space:nowrap; }
.brand b,.brand-dot { color:var(--red); font-weight:inherit; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; top:-100px; left:20px; padding:12px; background:var(--red); color:#121214; z-index:100; }
.skip-link:focus { top:12px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:10px; border:1px solid transparent; border-radius:5px; padding:11px 16px; font-size:12px; font-weight:600; min-height:42px; transition:background .15s,border-color .15s; }
.primary { background:var(--red); color:#141416; }
.primary:hover { background:#ff6c6e; }
.secondary { background:#202226; color:var(--text); border-color:#36383e; }
.secondary:hover { background:#2b2d32; border-color:#555860; }
.icon-button { border:1px solid transparent; background:transparent; color:var(--muted); font-size:22px; width:36px; height:36px; display:inline-grid; place-items:center; border-radius:5px; flex-shrink:0; }
.icon-button:hover { background:var(--raised); color:var(--text); }
.text-button { color:var(--text); background:transparent; border:0; text-decoration:underline; text-underline-offset:4px; padding:6px; }
label { display:block; font-size:12px; font-weight:550; margin:23px 0 8px; }
input,select,textarea { color:var(--text); border:1px solid #36383f; border-radius:5px; background:#121315; padding:12px; width:100%; min-width:0; }
input::placeholder { color:#797e88; }
input:focus,select:focus,textarea:focus { border-color:var(--red); }
textarea { resize:none; }
.form-error { color:#ff9b9c; background:#ed555710; padding:10px 12px; border-left:2px solid var(--red); margin:16px 0; font-size:13px; }
.status-dot { display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--green); flex-shrink:0; }
.status-dot.offline { background:var(--red); }
.status-dot.waiting { background:var(--amber); }
.status-pill { display:inline-flex; align-items:center; gap:7px; font-size:11px; color:var(--green); white-space:nowrap; }
.status-pill.offline { color:#f18e8f; }
.status-pill.waiting { color:var(--amber); }
.boot { min-height:100vh; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:25px; color:var(--muted); }
.boot .brand { color:var(--text); font-size:42px; }

/* Connexion */
.login-screen { display:grid; grid-template-columns:1.05fr 1fr; min-height:100vh; }
.login-story { position:relative; display:flex; flex-direction:column; justify-content:space-between; padding:48px 64px; border-right:1px solid var(--border); overflow:hidden; background:radial-gradient(ellipse at 0% 80%,#56202733,transparent 65%),#131416; }
.login-story::after { content:"R"; position:absolute; right:-65px; bottom:30px; font-family:Impact,sans-serif; font-size:650px; line-height:1; color:#ffffff02; pointer-events:none; transform:rotate(-10deg); }
.login-story .brand,.login-pitch,.login-footer { position:relative; z-index:1; }
.login-pitch { padding:80px 0; }
.login-pitch .eyebrow { color:var(--red); }
.login-pitch h1 { font-size:clamp(55px,6vw,88px); font-weight:700; line-height:1.03; letter-spacing:-4px; margin:26px 0; }
.login-pitch em { font-style:normal; color:var(--red); }
.login-pitch>p:last-child { font-size:15px; line-height:1.85; color:var(--muted); }
.login-footer { color:#94969e; font-family:ui-monospace,monospace; font-size:10px; letter-spacing:1.5px; display:flex; align-items:center; gap:12px; }
.tiny-cross { color:var(--red); font-size:20px; }
.login-form-wrap { display:flex; align-items:center; justify-content:center; padding:60px 32px; }
.login-form { width:100%; max-width:360px; }
.section-marker { color:var(--red); margin-bottom:32px; }
.login-form h2 { font-size:29px; letter-spacing:-1px; margin-bottom:8px; }
.login-form>.muted { font-size:14px; margin-bottom:32px; }
.password-wrap { position:relative; }
.password-wrap input { padding-right:85px; }
.password-toggle { position:absolute; right:4px; top:4px; bottom:4px; border:0; background:transparent; color:var(--muted); padding:0 10px; font-size:11px; }
.password-toggle:hover { color:var(--text); }
.login-submit { width:100%; margin-top:25px; justify-content:space-between; min-height:47px; }
.login-note { text-align:center; font-size:11px; color:var(--muted); margin-top:22px; }

/* Structure */
.app-shell { min-height:100vh; display:grid; grid-template-columns:224px minmax(0,1fr); }
.sidebar { position:fixed; inset:0 auto 0 0; width:224px; padding:33px 20px 0; border-right:1px solid var(--border); display:flex; flex-direction:column; background:#141517; z-index:10; }
.sidebar>.brand { margin:0 10px 50px; font-size:28px; }
.sidebar-label { color:#838791; font-size:9px; margin:0 11px 15px; letter-spacing:1.1px; }
.nav-link { display:flex; align-items:center; gap:10px; border:1px solid #ed555721; border-radius:5px; background:#ed55570d; color:#f2787a; padding:11px 12px; font-size:12px; }
.sidebar nav { display:grid; gap:8px; }
.nav-link:not(.active) { border-color:transparent; background:transparent; color:var(--muted); }
.nav-link:not(.active):hover { background:var(--raised); color:var(--text); }
.package-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; margin:22px 0; }
.package-card { padding:24px; max-width:600px; display:flex; flex-direction:column; }
.package-version { color:var(--muted); font-size:13px; margin:8px 0 0; }
.package-download { margin-top:auto; width:100%; }
.package-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.package-platform { font:12px ui-monospace,monospace; border:1px solid var(--border); border-radius:4px; padding:5px 10px; color:var(--muted); }
.package-hash { display:block; font-size:11px; overflow-wrap:anywhere; color:var(--muted); margin:10px 0 24px; }
.download-help { padding:24px; margin-top:24px; }
.settings-form { max-width:780px; }
.settings-form > input { max-width:240px; }
.settings-form > .muted { margin:8px 0 24px; line-height:1.7; }
.settings-form input[type="checkbox"] { width:auto; margin-right:8px; }
.settings-form .notice { margin:12px 0 24px; }
.download-help ol { padding-left:18px; color:var(--muted); line-height:2.2; font-size:12px; }
.download-help>p { color:var(--muted); font-size:12px; max-width:700px; }
#download-dialog { max-width:760px; }
#download-command { font:11px/1.8 ui-monospace,monospace; white-space:pre; overflow:auto; }
#download-install-note { margin:18px 0 0; }
.nav-link>span:first-child { font-size:20px; }
.nav-count { margin-left:auto; font:10px ui-monospace,monospace; background:#ed55571c; padding:2px 5px; border-radius:3px; }
.sidebar-bottom { margin-top:auto; padding-top:60px; }
.network-tag { display:flex; align-items:center; gap:9px; font:9px ui-monospace,monospace; letter-spacing:1px; color:#b1b7b0; padding:0 10px; }
.sidebar-bottom>p { color:#747982; font-size:10px; padding:9px 10px 25px; }
.account { display:flex; align-items:center; gap:10px; border-top:1px solid var(--border); padding:20px 0; }
.avatar { width:30px; height:32px; display:grid; place-items:center; color:#b8bbc1; background:#232529; border:1px solid #373a40; border-radius:5px; font:11px ui-monospace,monospace; }
.account>div { min-width:0; flex:1; }
.account strong { display:block; overflow:hidden; text-overflow:ellipsis; font-size:11px; font-weight:500; }
.account>div>span { font-size:9px; color:var(--muted); }
.workspace { grid-column:2; min-width:0; display:flex; flex-direction:column; }
.topbar { height:65px; border-bottom:1px solid var(--border); padding:0 38px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.breadcrumb { display:flex; gap:15px; align-items:center; font-size:11px; min-width:0; }
.breadcrumb span:first-child { font:9px ui-monospace,monospace; letter-spacing:1px; color:var(--muted); }
.breadcrumb span:nth-child(2) { color:#555a64; }
.breadcrumb span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.topbar-label { color:#7e838e; font:9px ui-monospace,monospace; letter-spacing:1.3px; white-space:nowrap; }
.mobile-logout { display:none; }
.header-actions { display:flex; align-items:center; gap:18px; }
.button.compact { min-height:30px; padding:5px 10px; font-size:10px; }
.detail-controls { display:flex; flex-direction:column; align-items:flex-end; gap:14px; }
.managed-name { font:12px/1.7 ui-monospace,monospace; color:var(--muted); overflow-wrap:anywhere; }
.management-section { border-top:1px solid var(--border); margin-top:22px; padding-top:22px; }
.management-section h3 { margin-bottom:8px; }
.management-section>.button { margin-top:16px; }
.management-section .dialog-actions { margin-top:15px; }
.danger-section h3 { color:#f18e8f; }
.danger-outline { border-color:#a3494c; color:#ffabad; background:#ed55570a; }
.danger-outline:hover { background:#ed555720; border-color:var(--red); }
.danger { background:#b7363c; color:#fff; }
.danger:hover { background:#d74249; }
#machine-confirm-form { margin-top:24px; }
#machine-expected-name { display:block; margin-top:8px; font:12px ui-monospace,monospace; color:var(--text); overflow-wrap:anywhere; }
.small-note pre { padding:12px; background:#101214; border:1px solid var(--border); border-radius:4px; white-space:pre-wrap; overflow-wrap:anywhere; }
main { width:100%; max-width:1600px; margin:0 auto; padding:39px 38px 24px; flex:1; }
.page-heading { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:30px; }
.page-heading .eyebrow { font-size:9px; }
.page-heading h1 { margin-bottom:10px; overflow-wrap:anywhere; }
.page-heading .muted { font-size:12px; }
.page-heading>.button { flex-shrink:0; }
.summary-grid,.detail-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; margin-bottom:30px; }
.summary-card { border:1px solid var(--border); border-radius:6px; background:var(--surface); padding:19px 21px; }
.summary-label { display:flex; align-items:center; gap:8px; color:#aaadb6; font-size:9px; letter-spacing:1.2px; }
.summary-card>div { display:flex; justify-content:space-between; align-items:center; margin:10px 0 4px; }
.summary-card strong { font:500 34px/1.25 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:-1px; }
.summary-symbol { display:grid; place-items:center; background:#ffffff04; border:1px solid #ffffff05; color:#737985; width:32px; height:32px; border-radius:6px; font-size:21px; }
.summary-card>p,.stat-card>p { color:var(--muted); font-size:10px; }
.panel { border:1px solid var(--border); border-radius:6px; background:var(--surface); overflow:hidden; }
.panel-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:22px 23px; }
.panel-heading h2 { display:flex; align-items:center; gap:10px; font-size:15px; }
.panel-heading p { color:var(--muted); font-size:11px; margin-top:4px; }
.count-tag { border:1px solid #363940; border-radius:4px; padding:1px 6px; color:#a7acb6; font:9px ui-monospace,monospace; }
.refresh-status { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:10px; white-space:nowrap; }
.refresh-status .icon-button { margin-left:4px; }
.fleet-controls { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 23px 20px; }
.search-wrap { position:relative; max-width:320px; width:100%; }
.search-wrap>span { position:absolute; left:12px; top:6px; font-size:22px; color:#898e98; }
.search-wrap input { padding:10px 12px 10px 37px; font-size:11px; background:#121416; border-color:#303238; }
.filter-group { display:flex; border:1px solid #303238; background:#121416; padding:3px; border-radius:5px; flex-shrink:0; }
.filter { border:1px solid transparent; background:transparent; color:var(--muted); font-size:10px; padding:6px 11px; border-radius:3px; }
.filter:hover { color:var(--text); }
.filter.active { background:#282b30; color:var(--text); border-color:#373a41; }
.table-scroll { overflow-x:auto; }
.fleet-table { width:100%; border-collapse:collapse; text-align:left; white-space:nowrap; }
.fleet-table thead { background:#131517; }
.fleet-table th { font:9px ui-monospace,monospace; color:#8e939d; letter-spacing:1px; padding:12px 16px; border-block:1px solid var(--border); }
.fleet-table td { padding:19px 16px; border-bottom:1px solid #272a2f; font-size:11px; }
.fleet-table tr:last-child td { border-bottom:0; }
.fleet-table th:first-child,.fleet-table td:first-child { padding-left:23px; }
.fleet-table tbody tr:hover { background:#ffffff05; }
.machine-cell { display:flex; align-items:center; gap:11px; }
.machine-icon { display:flex; flex-direction:column; gap:3px; width:30px; height:32px; align-items:center; justify-content:center; border:1px solid #373a40; border-radius:5px; background:#202226; color:#b3b7c0; flex-shrink:0; }
.machine-icon::before,.machine-icon::after { content:""; height:5px; width:16px; border:1px solid currentColor; border-radius:1px; background:linear-gradient(90deg,transparent 70%,currentColor 70%,currentColor 80%,transparent 80%); }
.machine-name { font-size:12px; display:block; font-weight:550; max-width:200px; overflow:hidden; text-overflow:ellipsis; }
.machine-name:hover { color:var(--red); }
.machine-subtitle { display:block; font-size:9px; color:var(--muted); margin-top:4px; max-width:200px; overflow:hidden; text-overflow:ellipsis; }
.meter-cell { min-width:86px; max-width:120px; }
.meter-top { display:flex; justify-content:space-between; gap:7px; align-items:center; font-family:ui-monospace,monospace; }
.meter { height:3px; margin-top:7px; border-radius:2px; overflow:hidden; background:#30333a; }
.meter-fill { height:100%; width:var(--meter-width); background:#aaaeb8; border-radius:2px; }
.meter-fill.warning { background:var(--amber); }
.meter-fill.critical { background:var(--red); }
.meter-fill.memory { background:#a9b9c8; }
.meter-caption { color:var(--muted); font:9px ui-monospace,monospace; display:block; margin-top:5px; }
.stale-value { opacity:.55; }
.row-arrow { display:grid; place-items:center; width:28px; height:28px; border:1px solid #35383e; border-radius:4px; color:#a5aab4; font-size:15px; }
.row-arrow:hover { border-color:var(--red); color:var(--red); }
.no-value { color:#767c86; font-size:11px; }
.panel-foot { display:flex; justify-content:space-between; gap:12px; color:#8e939e; font-size:10px; border-top:1px solid var(--border); padding:13px 23px; }
.panel-foot>span:last-child { font:8px ui-monospace,monospace; letter-spacing:.8px; }
.page-footnote { display:flex; gap:8px; color:#8d929d; font-size:10px; margin:17px 0; line-height:1.8; }
.page-footnote>span { color:var(--red); }
.workspace-footer { display:flex; justify-content:space-between; gap:20px; border-top:1px solid var(--border); margin:20px 38px 0; padding:16px 0; color:#858b96; font:8px ui-monospace,monospace; letter-spacing:.7px; }
.footer-divider { color:var(--red); margin:0 7px; }
.empty-state { padding:55px 24px; text-align:center; border-top:1px solid var(--border); }
.empty-icon { display:block; font-size:35px; color:#888f9b; margin-bottom:12px; }
.empty-state h3 { margin-bottom:8px; }
.empty-state p { color:var(--muted); font-size:12px; max-width:360px; margin:0 auto 22px; }
.notice { display:flex; align-items:center; justify-content:space-between; gap:16px; border:1px solid #73523b; background:#d6b47b09; color:#e0c4a5; border-radius:5px; padding:12px 16px; margin-bottom:22px; font-size:12px; }

/* Détail et courbes */
.back-link { color:var(--muted); font-size:11px; display:inline-block; margin-bottom:23px; }
.back-link:hover { color:var(--text); }
.detail-heading { margin-bottom:25px; }
.detail-meta { display:flex; align-items:center; gap:17px; flex-wrap:wrap; font-size:11px; }
.agent-version { font:10px ui-monospace,monospace; color:var(--muted); border:1px solid var(--border); border-radius:4px; padding:4px 7px; overflow-wrap:anywhere; }
.range-control { display:flex; align-items:center; gap:12px; margin:0; color:var(--muted); font-size:11px; flex-shrink:0; }
.range-control select { width:auto; padding:10px 12px; font-size:11px; }
.detail-stats { margin-bottom:30px; }
.stat-card { padding:20px; border:1px solid var(--border); background:var(--surface); border-radius:6px; }
.stat-card strong { display:block; font:500 clamp(21px,2.3vw,30px)/1.3 ui-monospace,monospace; margin:12px 0 7px; letter-spacing:-1px; }
.history-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; gap:12px; }
.history-heading h2 { font-size:15px; }
.history-heading>span { color:var(--muted); font-size:10px; }
.charts-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:20px; }
.chart-panel { padding:20px 20px 10px; }
.chart-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:15px; }
.chart-heading h3 { font-size:13px; }
.chart-legend { color:var(--muted); font-size:10px; display:flex; align-items:center; gap:7px; }
.chart-legend::before { content:""; width:13px; height:2px; background:var(--red); }
.memory-legend::before { background:#a8bed2; }
.chart-host { min-height:200px; position:relative; }
.chart-host svg { display:block; width:100%; height:auto; overflow:visible; }
.chart-host .chart-empty { min-height:190px; display:grid; place-items:center; text-align:center; padding:30px; color:var(--muted); font-size:12px; }
.chart-grid { stroke:#30333a; stroke-width:1; stroke-dasharray:3 5; }
.chart-axis-label { fill:#9ca1ac; font:10px ui-monospace,monospace; }
.chart-line { fill:none; stroke:var(--red); stroke-width:2; stroke-linejoin:round; stroke-linecap:round; vector-effect:non-scaling-stroke; }
.chart-line.memory-line { stroke:#a8bed2; }
.chart-line.disk-line { stroke:var(--amber); }
.chart-point { fill:var(--red); }
.chart-point.memory-line { fill:#a8bed2; }
.chart-point.disk-line { fill:var(--amber); }
.chart-overlay { fill:transparent; pointer-events:all; cursor:crosshair; }
.chart-crosshair { stroke:#8b919c; stroke-dasharray:3 3; pointer-events:none; }
.chart-tooltip { position:absolute; z-index:3; top:8px; right:8px; color:var(--text); font:10px/1.8 ui-monospace,monospace; background:#0d0f12f5; border:1px solid #40444e; padding:9px 12px; border-radius:4px; white-space:pre-line; pointer-events:none; max-width:calc(100% - 16px); }
.chart-tooltip time { color:var(--muted); }
.disk-panel .panel-heading { border-bottom:1px solid var(--border); }
.disk-panel select { max-width:220px; padding:9px 12px; font:11px ui-monospace,monospace; }
.disk-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:15px; padding:22px; border-bottom:1px solid var(--border); }
.disk-card { padding:15px; border:1px solid #35383e; border-radius:5px; background:#141619; min-width:0; }
.disk-card-head { display:flex; justify-content:space-between; align-items:center; gap:12px; font:11px ui-monospace,monospace; }
.disk-card-head strong { overflow-wrap:anywhere; font-weight:500; }
.disk-card p { color:var(--muted); font-size:10px; margin-top:10px; }
.disk-card .meter { height:4px; margin-top:12px; }
.disk-chart { padding:20px; }
.disk-list:empty { display:none; }

/* Ajout de machine */
dialog { width:calc(100% - 32px); max-width:540px; border:1px solid #45434a; border-top:2px solid var(--red); border-radius:7px; padding:28px; background:#17191c; color:var(--text); box-shadow:0 25px 100px #0007; max-height:90dvh; overflow-y:auto; }
dialog::backdrop { background:#08090bc9; backdrop-filter:blur(4px); }
.dialog-heading { display:flex; align-items:center; justify-content:space-between; }
.dialog-heading .eyebrow { margin:0; font-size:9px; }
dialog h2 { font-size:25px; margin:14px 0 12px; }
dialog .muted { font-size:12px; }
.dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:30px; }
.success-banner { color:var(--green); border:1px solid #a8c4ac33; background:#a8c4ac09; padding:12px; margin:18px 0; border-radius:4px; font-size:12px; }
#agent-token { font:12px/1.7 ui-monospace,monospace; overflow-wrap:anywhere; }
.token-actions { display:flex; gap:10px; margin-top:12px; }
.token-actions .button { font-size:11px; }
.small-note { color:var(--muted); font-size:11px; line-height:1.8; margin:18px 0; }
.full-width { width:100%; margin-top:17px; }
.toast { position:fixed; right:24px; bottom:24px; padding:13px 18px; color:var(--text); background:#272b30; border:1px solid #4a505a; border-left:3px solid var(--green); border-radius:5px; box-shadow:0 10px 35px #0005; z-index:30; max-width:calc(100% - 48px); font-size:12px; }

@media(min-width:1600px) { main { padding-top:48px; } .summary-card { padding:24px; } .fleet-table td { padding-block:24px; } }
@media(max-width:1200px) { .app-shell { grid-template-columns:190px minmax(0,1fr); } .sidebar { width:190px; padding-inline:13px; } .sidebar>.brand { font-size:25px; margin-inline:6px; } main { padding:30px 23px 20px; } .topbar { padding-inline:23px; } .workspace-footer { margin-inline:23px; } .summary-grid { gap:10px; } .summary-card { padding:16px; } .summary-symbol { display:none; } .fleet-table td,.fleet-table th { padding-inline:12px; } .fleet-table { min-width:760px; } }
@media(max-width:900px) { .sidebar { position:static; width:auto; grid-column:1/-1; padding:15px 22px; display:flex; flex-direction:row; align-items:center; gap:25px; border-right:0; border-bottom:1px solid var(--border); } .app-shell { display:flex; flex-direction:column; } .sidebar>.brand { margin:0; } .sidebar-label,.sidebar-bottom { display:none; } .sidebar nav { margin-left:auto; } .nav-link { padding:6px 10px; } .workspace { flex:1; } .topbar { height:48px; } .topbar-label { font-size:8px; } .sidebar .nav-count { min-width:18px; text-align:center; } .account-mobile { display:block; } .login-story { padding:38px; } .login-pitch h1 { font-size:64px; } .login-pitch { padding:55px 0; } .login-footer { font-size:8px; } }
@media(max-width:640px) { body { font-size:13px; } main { padding:25px 16px 15px; } .topbar { padding-inline:16px; } .topbar-label { display:none; } .sidebar { padding:18px 16px; gap:10px; } .sidebar>.brand { font-size:24px; } .nav-link { font-size:10px; gap:6px; } .page-heading { align-items:flex-start; flex-direction:column; gap:18px; margin-bottom:24px; } .page-heading>.button { width:100%; } .page-heading .eyebrow { font-size:8px; letter-spacing:1px; } h1 { font-size:30px; } .summary-grid,.detail-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:22px; } .summary-card { padding:16px; } .summary-card strong { font-size:29px; } .summary-label { font-size:8px; } .panel-heading { padding:18px 16px; align-items:flex-start; } .panel-heading h2 { font-size:14px; } .panel-heading p { font-size:10px; } .refresh-status { gap:6px; } #refresh-label { max-width:100px; white-space:normal; font-size:9px; } .refresh-status .icon-button { margin-left:0; width:24px; height:24px; } .fleet-controls { padding:0 16px 16px; flex-direction:column; align-items:stretch; gap:12px; } .search-wrap { max-width:none; } .filter-group { align-self:flex-start; } .panel-foot { padding:12px 16px; } .panel-foot>span:last-child { display:none; } .workspace-footer { margin-inline:16px; font-size:7px; flex-wrap:wrap; gap:8px; } .page-footnote { font-size:10px; } .charts-grid { grid-template-columns:1fr; } .range-control { width:100%; justify-content:space-between; } .range-control select { flex:1; max-width:220px; } .detail-meta { gap:10px; } .history-heading { align-items:flex-start; } .history-heading>span { text-align:right; } .disk-panel .panel-heading { flex-wrap:wrap; } .disk-panel select { width:100%; max-width:none; } .disk-list { padding:16px; } .disk-chart { padding:12px; } .stat-card { padding:16px; } .stat-card strong { font-size:23px; } .login-screen { display:flex; flex-direction:column; } .login-story { padding:28px 24px; border-right:0; border-bottom:1px solid var(--border); } .login-story .brand { font-size:28px; } .login-pitch { padding:35px 0 0; } .login-pitch h1 { font-size:47px; letter-spacing:-2px; margin:12px 0; } .login-pitch h1 br { display:none; } .login-pitch h1 br::after { content:" "; } .login-pitch h1 { max-width:290px; } .login-pitch>p:last-child,.login-footer { display:none; } .login-form-wrap { padding:35px 24px; } .section-marker { margin-bottom:18px; } .login-form h2 { font-size:25px; } .token-actions { flex-direction:column; } dialog { padding:22px; } .notice { flex-wrap:wrap; } }
@media(prefers-reduced-motion:reduce) { * { transition:none!important; scroll-behavior:auto!important; } }
@media(max-width:900px) { .mobile-logout { display:inline-grid; } }
@media(max-width:640px) { .header-actions { gap:5px; } .detail-controls { width:100%; align-items:stretch; } .dialog-actions { flex-wrap:wrap; } }
@media(max-width:900px) { .sidebar { flex-wrap:wrap; } .sidebar nav { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) { .sidebar nav { width:100%; margin-top:8px; } .package-list { grid-template-columns:minmax(0,1fr); } .package-card { padding:20px; } }

.system-panel { margin-bottom:24px; }
.system-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; padding:24px; margin:0; }
.system-grid dt { color:var(--muted); font-size:12px; margin-bottom:6px; }
.system-grid dd { margin:0; overflow-wrap:anywhere; font-size:14px; }
@media(max-width:640px) { .system-grid { grid-template-columns:1fr; padding:16px; gap:18px; } }

.agent-update { display:inline-block; color:var(--amber); border:1px solid #d6b47b55; border-radius:4px; padding:3px 7px; font-size:11px; margin-top:4px; }
.agent-update:hover { background:#d6b47b15; }
.agent-update-status { color:var(--muted); font-size:11px; }

.disk-state { display:inline-block; font-size:11px; border:1px solid var(--border); border-radius:4px; padding:3px 7px; margin:0 0 12px; }
.disk-state.warning { color:var(--amber); border-color:#d6b47b66; }
.disk-state.critical { color:var(--red); border-color:#ed555766; }
.disk-state.normal { color:var(--green); }
.disk-card.disk-warning { border-color:#d6b47b66; }
.disk-card.disk-critical { border-color:#ed555766; }
.disk-alert-summary { padding:0 24px; margin-top:16px; color:var(--muted); font-size:12px; overflow-wrap:anywhere; }

.settings-group { border:1px solid var(--border); border-radius:5px; margin:0 0 24px; padding:20px; min-width:0; }
.settings-group legend { padding:0 8px; font-size:17px; font-weight:600; }
.settings-group input { max-width:240px; }
.settings-group .muted { font-size:12px; line-height:1.7; margin:8px 0 20px; }
.settings-group h3 { margin-top:24px; }
.resource-state { font-size:11px; color:var(--muted); }
.resource-state.warning { color:var(--amber); }
.resource-state.critical { color:var(--red); }

.backup-panel { max-width:780px; }
.backup-panel input:not([type="checkbox"]) { max-width:240px; }
.backup-panel .muted { font-size:12px; line-height:1.7; margin:12px 0; }
.backup-toggle input { width:auto; margin-right:8px; }
.backup-panel .panel-heading { padding:24px 0 8px; gap:12px; flex-wrap:wrap; }
.backup-archives { list-style:none; padding:0; }
.backup-archives li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-top:1px solid var(--border); flex-wrap:wrap; }
.two-factor-panel { max-width: 780px; }
.two-factor-panel input { max-width: 420px; }
.two-factor-panel form > button { margin-top: 16px; }
#two-factor-qr { display: block; width: min(240px, 100%); height: auto; margin: 16px 0; background: white; }
#two-factor-secret, #two-factor-codes { font-family: monospace; }
#two-factor-codes { width: 100%; font-size: 12px; }
.settings-tabs { display:flex; gap:4px; overflow-x:auto; border-bottom:1px solid var(--border); margin-bottom:24px; padding-bottom:4px; }
.settings-tab { flex-shrink:0; background:transparent; border:0; border-bottom:2px solid transparent; color:var(--muted); padding:14px 18px; min-height:48px; font-weight:600; font-size:13px; }
.settings-tab:hover { color:var(--text); background:var(--raised); }
.settings-tab[aria-selected="true"] { color:var(--text); border-bottom-color:var(--red); background:var(--surface); }
.settings-tab-panel { max-width:780px; }
.settings-tab-panel .panel + .panel { margin-top:24px; }
.account-panel h3 { margin-top:28px; }
.account-panel input { max-width:420px; }
.account-panel form > .muted { margin-top:12px; }
.security-state { display:inline-block; border:1px solid var(--border); border-radius:20px; padding:6px 12px; margin:16px 0; font-size:12px; color:var(--muted); }
.security-state.enabled { color:var(--green); border-color:var(--green); }
.settings-tab-panel .settings-group { border:0; padding:0; margin:0; }
.settings-tab-panel .settings-group legend { padding:0; margin-bottom:12px; }

.settings-draft-badge { color: #e6b454; margin-left: 8px; font-size: .75em; }
.draft-notice { color: #e6b454; border-left: 2px solid #e6b454; padding: 10px 14px; background: #e6b4540a; font-size: .875rem; }

/* Navigation de la fiche et actions */
.detail-tabs { margin-bottom:24px; }
.history-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.history-toolbar h2 { font-size:15px; }
.management-panel { padding:24px; max-width:780px; }
.management-panel h2 { margin-bottom:12px; }
.management-panel > .muted { font-size:13px; }
.sort-button { border:0; padding:4px 0; background:transparent; color:inherit; font:inherit; letter-spacing:inherit; text-align:left; }
.sort-button span { margin-left:5px; color:var(--muted); }
th[aria-sort="ascending"] .sort-button, th[aria-sort="descending"] .sort-button { color:var(--text); }
.button[aria-busy="true"] { cursor:progress; }
.form-success { color:var(--green); font-size:12px; margin-top:16px; }
.toast[data-tone="info"] { border-left-color:#a8bed2; }
.toast[data-tone="error"] { border-left-color:var(--red); }
.toast[data-tone="success"] { border-left-color:var(--green); }
@media(max-width:640px) { .history-toolbar { align-items:flex-start; flex-direction:column; } .management-panel { padding:20px; } }

/* Dernières finitions de la série 0.7 */
button:disabled { cursor:not-allowed; }
button[aria-busy="true"] { cursor:progress; }
.machine-subtitle,.meter-caption { font-size:11px; }
.fleet-table th { font-size:10px; }
.fleet-table td { font-size:12px; }
dialog .dialog-actions { padding-top:18px; border-top:1px solid var(--border); }
dialog .dialog-actions .button { min-height:44px; }
dialog .dialog-heading { gap:16px; }
dialog .dialog-heading .icon-button { width:44px; height:44px; }
dialog h2,dialog h3,dialog p { overflow-wrap:anywhere; }
dialog .danger-section { border:1px solid #a3494c66; border-radius:5px; padding:18px; }
#history-error .button { flex-shrink:0; }
@media(max-width:640px) {
  .icon-button,.filter,.sort-button,.row-arrow { min-width:44px; min-height:44px; }
  .filter { font-size:12px; }
  .nav-link { font-size:12px; min-height:44px; }
  .refresh-status .icon-button { width:44px; height:44px; }
  .dialog-actions { flex-direction:column; align-items:stretch; }
  .dialog-actions .button { width:100%; }
  .range-control { flex-wrap:wrap; }
  #history-error .button { width:100%; }
}
@media(forced-colors:active) {
  .settings-tab[aria-selected="true"],.filter.active { border-color:Highlight; }
  :focus-visible { outline-color:Highlight; }
}

/* Contrôles indépendants des agents */
.overview-lists { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.overview-filters { display:flex; gap:12px; padding:16px 22px; align-items:center; }
.overview-filters input { flex:1; min-width:0; }
.overview-filters select { width:auto; max-width:180px; }
.monitor-list { list-style:none; margin:0; padding:0; }
.monitor-list li { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 22px; border-top:1px solid var(--border); flex-wrap:wrap; }
.monitor-list li > div:first-child { min-width:0; }
.monitor-list .machine-name,.monitor-list .machine-subtitle { max-width:100%; overflow-wrap:anywhere; white-space:normal; }
.control-list-status { display:flex; flex-direction:column; align-items:flex-end; gap:8px; font-size:11px; }
.list-empty { padding:24px; color:var(--muted); font-size:13px; }
.control-badge { display:inline-block; padding:4px 8px; border:1px solid var(--border); border-radius:4px; font-size:12px; color:var(--amber); }
.control-badge.available { color:var(--green); border-color:#a8c4ac66; }
.control-badge.unavailable { color:var(--red); border-color:#ed555766; }
.control-badge.paused { color:var(--muted); }
.control-badge.error { color:#c8a6ed; border-color:#c8a6ed66; }
.control-actions { display:flex; flex-wrap:wrap; gap:10px; }
.control-setting { border-top:1px solid var(--border); padding-bottom:12px; margin-top:24px; }
.control-setting .backup-toggle { margin:12px 0; }
#control-detail .management-panel { margin-bottom:24px; }
#control-latency-chart { padding:20px; margin:20px 0; }
.control-state-chart { padding:20px; margin:20px 0; }
.availability-strip { display:flex; gap:2px; margin-top:18px; height:28px; }
.availability-strip span { flex:1; min-width:0; background:var(--raised); }
.availability-strip .available { background:var(--green); }
.availability-strip .unavailable { background:var(--red); }
.availability-strip .pending { background:var(--amber); }
.availability-strip .error { background:#c8a6ed; }
#control-results { margin-top:20px; }
@media(max-width:1100px) { .overview-lists { grid-template-columns:1fr; } }
@media(max-width:640px) {
  .overview-filters { padding:16px; flex-direction:column; align-items:stretch; }
  .overview-filters select { width:100%; max-width:none; }
  .monitor-list li { padding:16px; }
  .control-list-status { align-items:flex-start; }
  .control-actions { width:100%; }
  .control-actions .button { flex:1; }
  .overview-list .panel-heading { flex-wrap:wrap; }
}

#control-host { overflow-wrap:anywhere; letter-spacing:.5px; }
.page-heading > div:first-child { min-width:0; }
.overview-filters { flex-wrap:wrap; }
.overview-filters input { flex:1 1 160px; }
.control-list-status { max-width:100%; overflow-wrap:anywhere; }
#control-http-settings { margin-top:24px; padding-top:8px; border-top:1px solid var(--border); }
@media(max-width:640px) { .overview-filters input { flex:auto; } }

/* Disponibilité sur 24 heures */
.uptime-card { padding:22px; margin-bottom:24px; min-width:0; }
.uptime-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.uptime-heading h2 { font-size:15px; }
.uptime-percentage { font:600 22px ui-monospace,monospace; white-space:nowrap; }
.uptime-strip { display:flex; gap:2px; height:32px; }
.uptime-bar { flex:1; min-width:0; border:0; padding:0; background:#34383f; border-radius:2px; }
.uptime-bar.available { background:var(--green); }
.uptime-bar.unavailable { background:var(--red); }
.uptime-bar.paused { background:#727883; }
.uptime-bar.partial { background-image:repeating-linear-gradient(135deg,transparent 0 3px,#10111355 3px 5px); }
.uptime-bar:hover,.uptime-bar:focus-visible { filter:brightness(1.25); }
.uptime-axis { display:flex; justify-content:space-between; color:var(--muted); font-size:10px; margin-top:9px; }
.uptime-coverage,.uptime-loading,.uptime-legend { color:var(--muted); font-size:11px; margin-top:12px; line-height:1.7; }
.uptime-tooltip { background:var(--raised); padding:12px; border:1px solid var(--border); font-size:12px; margin-top:12px; }
.uptime-card.compact { width:100%; padding:0; margin:4px 0 0; }
.uptime-card.compact .uptime-heading { margin-bottom:9px; font-size:11px; }
.uptime-card.compact .uptime-percentage { font-size:14px; }
.uptime-card.compact .uptime-strip { height:18px; gap:1px; }
.uptime-card.compact .uptime-axis { font-size:9px; }
.uptime-card.compact .uptime-coverage { font-size:10px; margin-top:7px; }
.control-kind { display:inline-flex; width:max-content; max-width:100%; color:#ff8587; background:#ed555712; border:1px solid #ed555766; border-radius:4px; padding:4px 8px; font-size:11px; font-weight:600; margin-top:6px; }
.detail-meta .control-kind { margin-top:0; }
.catalogue-heading { margin-top:24px; margin-bottom:8px; }
.previous-packages { padding:20px 24px; margin-bottom:24px; }
.previous-packages summary { cursor:pointer; font-weight:600; padding:4px 0; }
.previous-packages .count-tag { margin-left:8px; }
.rpd-tag { line-height:1.8; font-size:9px; color:#c8c1b1; letter-spacing:1px; }
@media(max-width:640px) { .uptime-card { padding:18px 16px; } .uptime-strip { gap:1px; } .uptime-percentage { font-size:19px; } .previous-packages { padding:16px; } .previous-packages summary { min-height:44px; } }

.uptime-info { display:inline-block; color:var(--muted); font-size:12px; font-weight:normal; cursor:help; }
.uptime-info:focus-visible { outline:2px solid var(--red); outline-offset:3px; }

.summary-grid .summary-card { display:block; min-width:0; padding:15px 18px; text-align:left; color:var(--text); }
.summary-grid .summary-card>div { justify-content:flex-start; flex-wrap:wrap; gap:8px; margin:8px 0 0; }
.summary-grid .summary-card strong { font-size:28px; }
.summary-total,.summary-unit { color:var(--muted); }
.summary-grid .summary-card .summary-total { font-size:17px; }
.summary-unit { font-size:11px; }
.summary-card:hover { border-color:#62656c; }
.summary-card.has-incidents strong { color:var(--red); }
.summary-card.has-warnings strong { color:var(--amber); }

#smtp-form input[type="checkbox"] { width:auto; margin-right:8px; }
#smtp-form select { max-width:420px; }
#account-email-status,#account-email-feedback,#smtp-delivery-status { overflow-wrap:anywhere; }
#smtp-test-form button { display:block; margin-top:14px; }
