/* Axalyon Console — identité sombre, sobre, façon Linear/Vercel, rouge discret. */
:root {
  --bg: #08090a;
  --panel: #0b0c0e;
  --card: #111214;
  --card-2: #16181b;
  --raised: #1a1c1f;
  --border: rgba(255,255,255,.07);
  --border-2: rgba(255,255,255,.12);
  --text: #f4f5f6;
  --text-2: #c8ccd2;
  --muted: #868b94;
  --muted-2: #565b64;
  --accent: #e5484d;         /* rouge Axalyon, utilisé avec parcimonie */
  --accent-hover: #ef5a5f;
  --accent-soft: rgba(229,72,77,.10);
  --accent-line: rgba(229,72,77,.35);
  --green: #4cc38a; --green-soft: rgba(76,195,138,.12);
  --amber: #e2a13a; --amber-soft: rgba(226,161,58,.12);
  --red: #e5484d; --red-soft: rgba(229,72,77,.12);
  --blue: #6ea8fe;
  --radius: 9px; --radius-sm: 6px;
  --mono: ui-monospace,"SF Mono","JetBrains Mono",Menlo,monospace;
  --sans: system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html,body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; letter-spacing: -0.006em; }
h1 { font-size: 1.35rem; font-weight: 600; margin: 0 0 .25rem; letter-spacing: -0.02em; }
h2 { font-size: .95rem; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h3 { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .6rem; }
.muted { color: var(--muted); } .small { font-size: .8rem; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .82rem; }
.num { font-variant-numeric: tabular-nums; }
code.k { font-family: var(--mono); font-size: .8rem; color: var(--text-2); background: var(--bg); padding: .1rem .35rem; border-radius: 4px; border: 1px solid var(--border); }
a { color: inherit; }

.demo-banner { position: sticky; top: 0; z-index: 50; background: linear-gradient(90deg, rgba(229,72,77,.14), rgba(229,72,77,.06)); border-bottom: 1px solid var(--accent-line); color: var(--text-2); text-align: center; font-size: .72rem; font-weight: 500; padding: .4rem 1rem; letter-spacing: .01em; }

/* ─── Marque + logo A ─── */
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 650; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand.center { justify-content: center; }
.logo-a { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem; flex: none; box-shadow: 0 2px 8px -2px rgba(229,72,77,.5); }
.brand-sub { color: var(--muted); font-weight: 500; font-size: .82rem; letter-spacing: 0; }
.brand-stack { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
/* Wordmark AXALYON : A rouge + XALYON métal argenté */
.wm { font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; line-height: 1; display: inline-flex; align-items: baseline;
  background: linear-gradient(180deg, #ffffff 0%, #d3d7dd 42%, #8b9099 60%, #eef0f3 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.wm-a { -webkit-text-fill-color: var(--accent); color: var(--accent); background: none; margin-right: .5px;
  text-shadow: 0 0 14px rgba(229,72,77,.55); font-size: 1.28em; line-height: 0; }
.brand-stack .wm { font-size: 1.5rem; }
.brand-stack .brand-sub { text-transform: uppercase; font-size: .64rem; letter-spacing: .22em; }

/* ─── Login / 2FA ─── */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem; background: var(--bg); }
.login-card { width: 100%; max-width: 360px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 2rem 1.85rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--shadow); }
.login-card h2 { text-align: center; font-size: 1rem; }
label { display: flex; flex-direction: column; gap: .4rem; font-size: .76rem; color: var(--muted); font-weight: 500; }
input, select, textarea { background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: .55rem .7rem; color: var(--text); font: inherit; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.qr-frame { align-self: center; background: #fff; padding: 11px; border-radius: 10px; line-height: 0; }
.qr-frame img { display: block; width: 196px; height: 196px; }
.code-input { text-align: center; font-family: var(--mono); font-size: 1.5rem; letter-spacing: .45rem; text-indent: .45rem; }
.hint { font-size: .72rem; color: var(--muted-2); text-align: center; }
.hint code { color: var(--muted); font-family: var(--mono); }
.alert-error { background: var(--red-soft); border: 1px solid var(--accent-line); color: #ffb0b2; padding: .55rem .75rem; border-radius: var(--radius-sm); font-size: .82rem; }

/* ─── Boutons ─── */
button { cursor: pointer; font: inherit; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: var(--card-2); color: var(--text-2); padding: .42rem .7rem; font-size: .82rem; font-weight: 500; transition: background .12s, border-color .12s, color .12s; display: inline-flex; align-items: center; gap: .35rem; }
button:hover:not(:disabled) { background: var(--raised); border-color: rgba(255,255,255,.18); color: var(--text); }
button:disabled { opacity: .4; cursor: not-allowed; }
button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.btn-primary { background: var(--accent); border-color: transparent; color: #fff; padding: .55rem .9rem; font-weight: 600; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { background: var(--card-2); color: var(--text); }
.btn-danger { background: transparent; border-color: var(--border-2); color: var(--muted); }
.btn-danger:hover:not(:disabled) { background: var(--red-soft); border-color: var(--accent-line); color: #ffb0b2; }
.btn-sm { padding: .32rem .6rem; font-size: .78rem; }

/* ─── Shell ─── */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100dvh; }
.sidebar { background: var(--panel); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 1.25rem .85rem; gap: 1.5rem; }
.sidebar > .brand { padding: 0 .35rem; }
.sidebar nav { display: flex; flex-direction: column; gap: 1px; }
.navlink { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: var(--radius-sm); color: var(--muted); font-size: .855rem; font-weight: 500; border: none; background: transparent; width: 100%; text-align: left; }
.navlink svg { width: 16px; height: 16px; flex: none; stroke: currentColor; opacity: .85; }
.navlink:hover { background: var(--card); color: var(--text); }
.navlink.active { background: var(--card); color: var(--text); }
.navlink.active svg { color: var(--accent); opacity: 1; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.sidebar-foot .small { padding: 0 .35rem; }
.content { padding: 2rem 2.2rem; max-width: 1040px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.live { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--muted); }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--green-soft); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(76,195,138,.4); } 70% { box-shadow: 0 0 0 6px rgba(76,195,138,0); } 100% { box-shadow: 0 0 0 0 rgba(76,195,138,0); } }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); gap: .8rem; margin-bottom: 1.4rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.15rem; margin-bottom: 1.4rem; }
.stat .stat-label { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.stat-value { font-size: 1.65rem; font-weight: 600; margin: .4rem 0 .1rem; letter-spacing: -0.02em; }
.stat-sub { font-size: .76rem; color: var(--muted); }
.bar { height: 4px; background: var(--bg); border-radius: 3px; overflow: hidden; margin: .55rem 0 .45rem; }
.bar-fill { height: 100%; background: var(--green); border-radius: 3px; transition: width .5s ease; }
.bar-fill.warn { background: var(--amber); } .bar-fill.danger { background: var(--red); }

.card-head { display: flex; align-items: center; justify-content: space-between; padding: .95rem 1.15rem; border-bottom: 1px solid var(--border); }
.card.flush { padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: .855rem; }
thead th { text-align: left; color: var(--muted); font-weight: 500; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; padding: .65rem 1.15rem; border-bottom: 1px solid var(--border); }
tbody td { padding: .7rem 1.15rem; border-bottom: 1px solid var(--border); color: var(--text-2); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,.018); }
.actions { display: flex; gap: .3rem; justify-content: flex-end; flex-wrap: wrap; }
.state { display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .55rem; border-radius: 5px; font-size: .74rem; font-weight: 500; }
.state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.state-active, .state-running { background: var(--green-soft); color: var(--green); }
.state-inactive, .state-failed, .state-stopped { background: rgba(134,139,148,.12); color: var(--muted); }
.state-paused { background: var(--amber-soft); color: var(--amber); }
.state-unknown { background: rgba(134,139,148,.12); color: var(--muted); }

.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: 2px; gap: 2px; flex-wrap: wrap; }
.seg button { border: none; background: transparent; color: var(--muted); padding: .3rem .65rem; border-radius: 5px; font-size: .8rem; }
.seg button.active { background: var(--card-2); color: var(--text); }
.logbox { background: #050506; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1rem; font-family: var(--mono); font-size: .78rem; line-height: 1.6; color: #a7b0bb; white-space: pre-wrap; max-height: 60vh; overflow: auto; margin-top: 1rem; }

.vm-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: .75rem; }

.spice-steps { margin: .2rem 0 .4rem; padding-left: 1.1rem; font-size: .82rem; color: var(--text-2); display: flex; flex-direction: column; gap: .35rem; }
.spice-steps code { font-family: var(--mono); font-size: .78rem; color: var(--accent); }
.dns-note { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .85rem; font-size: .82rem; color: var(--text-2); line-height: 1.5; }
.dns-note code { font-family: var(--mono); font-size: .78rem; color: var(--accent); background: var(--bg); padding: .1rem .35rem; border-radius: 4px; }
.rec-table { width: 100%; border-collapse: collapse; }
.rec-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--border); }
.rec-table tr:last-child td { border-bottom: none; }
.rec-type { font-weight: 700; font-size: .74rem; color: var(--accent); width: 60px; letter-spacing: .04em; }

/* ─── Passe premium : profondeur, dégradés subtils, glow maîtrisé ─── */
body { background:
  radial-gradient(120rem 60rem at 78% -12%, rgba(229,72,77,.05), transparent 55%),
  radial-gradient(90rem 50rem at -10% 108%, rgba(110,168,254,.035), transparent 55%),
  var(--bg); }
.sidebar { background: linear-gradient(180deg, #0c0d10, #0a0b0d); }
.logo-a { background: linear-gradient(160deg, #ef5a5f, #cf3439); box-shadow: 0 2px 10px -2px rgba(229,72,77,.55), inset 0 1px 0 rgba(255,255,255,.18); }
.navlink.active { background: linear-gradient(90deg, rgba(229,72,77,.10), rgba(229,72,77,.02)); box-shadow: inset 2px 0 0 var(--accent); }
.card { background: linear-gradient(180deg, #131417, #101113); box-shadow: 0 1px 0 rgba(255,255,255,.02) inset, 0 10px 30px -22px rgba(0,0,0,.7); }
.btn-primary { background: linear-gradient(180deg, #ec5257, #d93d42); box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 6px 16px -8px rgba(229,72,77,.55); }
.btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #ef6065, #e04347); }
.login-card { background: linear-gradient(180deg, #14151a, #101115); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02); }
.stat-value { background: linear-gradient(180deg, #ffffff, #cfd3da); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-head h1 { font-size: 1.45rem; letter-spacing: -0.025em; }
::selection { background: rgba(229,72,77,.28); }

/* ─── Animations ─── */
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.view-in { animation: viewIn .28s cubic-bezier(.2,.7,.2,1); }
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-fixed, #consoleModal, #rebootAnim { animation: modalIn .2s ease; }
.modal-fixed .login-card, .modal-fixed .console-win { animation: cardIn .26s cubic-bezier(.2,.8,.2,1); }
button { transition: background .12s, border-color .12s, color .12s, transform .05s; }
button:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.navlink { transition: background .14s, color .14s, box-shadow .14s; }
.navlink:hover { transform: translateX(1px); }
.state, .bar-fill { transition: all .3s ease; }
.card { transition: border-color .15s, box-shadow .15s; }
.stat.card:hover { border-color: var(--border-2); }

/* Toasts */
#toastBox { position: fixed; bottom: 1.3rem; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: var(--card-2); border: 1px solid var(--border-2); color: var(--text); padding: .6rem 1rem; border-radius: 9px; font-size: .84rem; font-weight: 500; box-shadow: var(--shadow); opacity: 0; transform: translateY(14px); transition: opacity .25s, transform .25s; max-width: 90vw; }
.toast.show { opacity: 1; transform: none; }
.toast-ok { border-color: var(--green); box-shadow: 0 8px 24px -12px rgba(76,195,138,.5); }
.toast-err { border-color: var(--accent); box-shadow: 0 8px 24px -12px rgba(229,72,77,.5); }
.pulse { transition: none; }

@media (prefers-reduced-motion: reduce) {
  *, .view-in, .modal-fixed, .modal-fixed .login-card { animation: none !important; transition: none !important; }
}

/* Upload ISO */
.upload-btn { cursor: pointer; }
.upload-btn .btn-primary { display: inline-block; }
.iso-drop { margin: 1rem 1.15rem; padding: 1.4rem; border: 1px dashed var(--border-2); border-radius: var(--radius-sm); text-align: center; color: var(--muted); font-size: .84rem; transition: border-color .15s, background .15s; }
.iso-drop b { color: var(--text-2); }
.iso-drop.drag { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.iso-progress { margin: 0 1.15rem 1rem; display: flex; align-items: center; gap: .7rem; }
.iso-progress-bar-wrap { flex: 1; }
.iso-progress { flex-direction: column; align-items: stretch; }
.iso-progress-bar { height: 4px; background: var(--card-2); border-radius: 3px; overflow: hidden; position: relative; }
.iso-progress-bar::after { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: var(--pct, 0%); background: var(--accent); border-radius: 3px; transition: width .2s; }

.modal-fixed { position: fixed; inset: 0; background: rgba(4,5,6,.7); backdrop-filter: blur(3px); z-index: 200; }

/* Reboot animation */
#rebootAnim { position: fixed; inset: 0; z-index: 400; background: var(--bg); display: grid; place-items: center; text-align: center; }
.reboot-anim-inner { max-width: 400px; padding: 2rem; }
.reboot-anim-inner h2 { font-size: 1.05rem; margin: .5rem 0 .4rem; }
.reboot-spinner { width: 46px; height: 46px; margin: 0 auto 1.4rem; border: 3px solid var(--border-2); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reboot-progress { height: 3px; background: var(--card-2); border-radius: 3px; overflow: hidden; margin-top: 1.4rem; }
.reboot-progress-bar { height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .3s linear; }

/* Console noVNC — plein écran */
#consoleModal { position: fixed; inset: 0; z-index: 300; background: #050506; display: flex; flex-direction: column; }
.console-bar { display: flex; align-items: center; gap: .8rem; padding: .55rem .9rem; background: var(--card); border-bottom: 1px solid var(--border); flex: none; }
.console-hint { margin-left: auto; font-size: .68rem; color: var(--green); }
.console-body { flex: 1; display: flex; min-height: 0; }
#xtermHost { flex: 1; min-width: 0; padding: .5rem .6rem; overflow: hidden; }
#xtermHost .xterm { height: 100%; }
.console-screen { flex: 1; padding: 1.1rem 1.3rem; font-family: var(--mono); font-size: .84rem; line-height: 1.55; color: #cdd6df; overflow-y: auto; white-space: pre-wrap; outline: none; cursor: text; }
.console-screen .cprompt { color: #7fdca0; }
.console-screen .cursor { display: inline-block; width: 8px; height: 1em; background: #cdd6df; vertical-align: text-bottom; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.console-ai { width: 340px; max-width: 42vw; border-left: 1px solid var(--border); background: var(--card); display: flex; flex-direction: column; }
.console-ai .ai-messages { flex: 1; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .55rem; }
.console-ai .ai-input { display: flex; gap: .4rem; padding: .7rem; border-top: 1px solid var(--border); }
.console-ai .ai-input input { flex: 1; }
.ai-cmd { margin-top: .45rem; display: flex; align-items: center; gap: .5rem; background: var(--bg); border: 1px solid var(--border-2); border-radius: 6px; padding: .35rem .5rem; }
.ai-cmd code { flex: 1; font-family: var(--mono); font-size: .78rem; color: #9fe0b8; overflow-x: auto; }

/* Assistant IA */
#aiFab { position: fixed; bottom: 1.3rem; right: 1.3rem; z-index: 150; background: var(--card); color: var(--text); border: 1px solid var(--border-2); border-radius: 999px; padding: .6rem 1rem; font-weight: 500; box-shadow: var(--shadow); }
#aiFab:hover { border-color: var(--accent-line); }
#aiPanel { position: fixed; bottom: 1.3rem; right: 1.3rem; z-index: 160; width: 358px; max-width: calc(100vw - 2rem); height: 470px; max-height: calc(100vh - 3rem); background: var(--card); border: 1px solid var(--border-2); border-radius: var(--radius); display: flex; flex-direction: column; box-shadow: var(--shadow); }
#aiPanel .ai-head { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); font-weight: 600; font-size: .88rem; }
.ai-badge { font-size: .6rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; background: var(--card-2); border: 1px solid var(--border-2); color: var(--muted); padding: .1rem .4rem; border-radius: 4px; }
.ai-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.ai-msg { padding: .55rem .75rem; border-radius: 9px; font-size: .84rem; line-height: 1.5; max-width: 86%; white-space: pre-wrap; }
.ai-msg.user { align-self: flex-end; background: var(--accent); color: #fff; }
.ai-msg.bot { align-self: flex-start; background: var(--card-2); border: 1px solid var(--border); color: var(--text-2); }
.ai-input { display: flex; gap: .4rem; padding: .7rem; border-top: 1px solid var(--border); }
.ai-input input { flex: 1; }

@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; align-items: center; flex-wrap: wrap; gap: .5rem; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar-foot { margin: 0 0 0 auto; border: none; padding: 0; }
  .content { padding: 1.1rem; }
}

/* Charge en direct des VM (CPU / RAM / disque) */
.vm-load { display: flex; flex-direction: column; gap: .22rem; min-width: 170px; }
.vm-load-row { display: grid; grid-template-columns: 34px 1fr 42px; align-items: center; gap: .4rem; font-size: .68rem; }
.vm-load-row .lbl { color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-size: .6rem; }
.vm-load-row .bar { margin: 0; height: 5px; }
.vm-load-row .pct { text-align: right; font-variant-numeric: tabular-nums; }
.vm-load .muted { font-size: .7rem; }

/* Vignettes en direct des VM allumées */
.vm-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.vm-thumb { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.vm-thumb:hover { transform: translateY(-2px); border-color: var(--accent); }
.vm-thumb img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #000; }
.vm-thumb .ph { display: grid; place-items: center; width: 100%; aspect-ratio: 16/10; background: #000; color: var(--muted); font-size: .72rem; }
.vm-thumb .cap { display: flex; align-items: center; gap: .5rem; padding: .45rem .65rem; font-size: .76rem; }
.vm-thumb .cap .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.vm-thumb .cap .open { margin-left: auto; color: var(--muted); font-size: .68rem; }
.vm-thumb:hover .cap .open { color: var(--accent); }
/* Plein écran réel de la console */
#consoleModal:fullscreen .console-bar { display: none; }
#consoleModal:fullscreen #vncHost { width: 100vw; height: 100vh; }
.console-fs-exit { display: none; position: fixed; top: 8px; right: 8px; z-index: 400; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.45); color: #fff; opacity: .15; transition: opacity .2s; cursor: pointer; }
.console-fs-exit:hover { opacity: 1; }
#consoleModal:fullscreen .console-fs-exit { display: block; }

/* Onglets de la modale Activité (supervision flotte) */
.fa-tabs{display:flex;gap:.3rem;margin:.4rem 0 .7rem;border-bottom:1px solid rgba(255,255,255,.08)}
.fa-tab{background:none;border:none;color:var(--muted);padding:.45rem .7rem;font-size:.85rem;cursor:pointer;border-bottom:2px solid transparent;border-radius:0}
.fa-tab:hover{color:var(--text)}
.fa-tab.active{color:var(--text);border-bottom-color:var(--red)}
.fa-pane table{width:100%;font-size:.82rem}
.fa-pane td{vertical-align:top}
.fa-pane a{color:var(--text);text-decoration:none}
.fa-pane a:hover{text-decoration:underline}


/* ═══ Finitions v2 — mêmes couleurs, même typographie, rendu plus abouti ═══ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.16); background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

/* Login : halo + carte plus généreuse */
.login-wrap { background: radial-gradient(40rem 26rem at 50% 30%, rgba(229,72,77,.07), transparent 70%), var(--bg); }
.login-card { max-width: 380px; padding: 2.3rem 2rem 2rem; border-color: var(--border-2); position: relative; overflow: hidden; }
.login-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(229,72,77,.6), transparent); }
.brand-stack { margin-bottom: .25rem; }
#pw-fields { display: flex; flex-direction: column; gap: .9rem; }
#pw-fields .btn-primary, #enrollBtn, #totpBtn { justify-content: center; padding: .65rem .9rem; margin-top: .2rem; }

/* Champs : hauteur homogène */
input:not([type=checkbox]):not([type=file]), select { min-height: 36px; }
select { appearance: none; -webkit-appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23868b94' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .65rem center; }
input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; }
input::placeholder { color: var(--muted-2); }

/* Sidebar */
.sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 1.4rem .85rem 1.1rem; }
.sidebar > .brand { padding: .1rem .5rem .9rem; border-bottom: 1px solid var(--border); margin-bottom: -.4rem; }
.sidebar nav::before { content: "Navigation"; display: block; padding: 0 .6rem .45rem; font-size: .64rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
.navlink { padding: .52rem .65rem; }
.navlink:hover { transform: none; }
.sidebar-foot button { width: 100%; justify-content: flex-start; }
.sidebar-foot #whoami { display: flex; align-items: center; gap: .5rem; padding: .2rem .35rem .45rem; color: var(--text-2); }
.sidebar-foot #whoami:not(:empty)::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); flex: none; }

/* Contenu */
.content { padding: 2.2rem 2.6rem 4rem; max-width: 1120px; width: 100%; }
.page-head { align-items: flex-end; padding-bottom: 1.2rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--border); }
.page-head h1 { margin-bottom: .3rem; }
.live { padding: .3rem .6rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(76,195,138,.05); color: var(--text-2); }

/* Cartes */
.card { border-color: var(--border); }
.card:hover { border-color: rgba(255,255,255,.09); }
.card-head { background: rgba(255,255,255,.012); border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); gap: .8rem; flex-wrap: wrap; }
.card:not(.flush) > .card-head { background: none; }
.card > p.muted.small { line-height: 1.6; max-width: 78ch; }

/* Stats */
.stat-grid { gap: .9rem; }
.stat.card { position: relative; overflow: hidden; padding: 1.15rem 1.2rem 1.1rem; margin-bottom: 0; }
.stat.card::after { content: ""; position: absolute; left: 1.2rem; right: 1.2rem; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(229,72,77,.45), transparent); opacity: 0; transition: opacity .2s; }
.stat.card:hover::after { opacity: 1; }
.stat-value { font-size: 1.8rem; margin: .45rem 0 .15rem; }
.bar { height: 5px; background: rgba(255,255,255,.05); }

/* Tables */
thead th { background: rgba(255,255,255,.015); white-space: nowrap; }
tbody td { vertical-align: middle; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: rgba(255,255,255,.025); }
td .actions button, .actions button { padding: .32rem .6rem; font-size: .78rem; }

/* États */
.state { border: 1px solid transparent; }
.state-active, .state-running { border-color: rgba(76,195,138,.18); }
.state-paused { border-color: rgba(226,161,58,.2); }
.state-inactive, .state-failed, .state-stopped, .state-unknown { border-color: rgba(134,139,148,.14); }

/* Segments logs */
.seg { padding: 3px; }
.seg button { padding: .38rem .75rem; }
.seg button.active { box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 1px 2px rgba(0,0,0,.4); }
.logbox { border-color: var(--border); box-shadow: inset 0 1px 0 rgba(255,255,255,.02); }

/* Modales */
.modal-fixed .login-card { border-color: var(--border-2); }
.modal-fixed { overflow-y: auto; }

/* Assistant */
#aiFab { gap: .45rem; padding: .62rem 1.05rem; background: linear-gradient(180deg, #16181b, #111214); }
#aiPanel { overflow: hidden; }
.ai-msg.user { background: linear-gradient(180deg, #ec5257, #d93d42); }

/* Vignettes VM */
.vm-thumb { border-color: var(--border); }
.vm-thumb:hover { border-color: var(--accent-line); box-shadow: 0 12px 30px -18px rgba(229,72,77,.45); }

@media (max-width: 760px) {
  .sidebar { position: static; height: auto; }
  .sidebar nav::before { display: none; }
  .sidebar > .brand { border: 0; margin: 0; padding: 0; }
  .sidebar-foot button { width: auto; }
  .content { padding: 1.2rem 1rem 3rem; }
}

.app { grid-template-columns: 232px minmax(0,1fr); }
.content { min-width: 0; }
.sidebar .brand { flex-wrap: nowrap; gap: .45rem; }
.sidebar .brand-sub { white-space: nowrap; font-size: .76rem; }
.sidebar > .brand { flex-direction: column; align-items: flex-start; gap: .35rem; }
.sidebar .brand-sub { text-transform: uppercase; font-size: .62rem; letter-spacing: .2em; padding-left: 1px; }

/* ═══ Finitions v3 ═══ */
body { letter-spacing: -0.008em; }
.demo-banner { backdrop-filter: blur(8px); background: linear-gradient(90deg, rgba(229,72,77,.16), rgba(229,72,77,.05) 60%, rgba(229,72,77,.12)); }

/* Sidebar : icônes encadrées, actif plus lisible */
.navlink { border-radius: 7px; gap: .7rem; }
.navlink svg { width: 26px; height: 26px; padding: 5px; border-radius: 6px; border: 1px solid transparent; transition: border-color .14s, background .14s, color .14s; box-sizing: border-box; }
.navlink:hover svg { border-color: var(--border); background: rgba(255,255,255,.02); }
.navlink.active svg { border-color: var(--accent-line); background: var(--accent-soft); }
.navlink.active { box-shadow: none; background: linear-gradient(90deg, rgba(229,72,77,.09), rgba(229,72,77,0) 85%); }
.sidebar-foot { gap: .35rem; }

/* En-tête de page : titre plus présent, sous-titre aéré */
.page-head h1 { font-size: 1.6rem; font-weight: 650; letter-spacing: -0.03em; }
.page-head .muted.small { font-size: .82rem; }
.page-head > button, .page-head > .btn-primary { flex: none; }

/* Cartes : relief discret + titre avec repère */
.card { box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 0 0 1px rgba(0,0,0,.25), 0 14px 34px -24px rgba(0,0,0,.85); }
.card-head h2, .card > .card-head > h2 { display: flex; align-items: center; gap: .55rem; }
.card-head h2::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--accent); opacity: .85; flex: none; }
.stat.card .stat-label { display: flex; align-items: center; gap: .45rem; }
.stat.card .stat-label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .7; }
.stat.card { background: linear-gradient(180deg, #141518, #0f1012); }
.stat.card:hover { transform: translateY(-1px); }
.stat.card { transition: border-color .15s, transform .15s, box-shadow .15s; }
.bar { height: 6px; border-radius: 4px; }
.bar-fill { border-radius: 4px; background: linear-gradient(90deg, #3aa874, var(--green)); }
.bar-fill.warn { background: linear-gradient(90deg, #c98a2a, var(--amber)); }
.bar-fill.danger { background: linear-gradient(90deg, #c9383d, var(--red)); }

/* Tables */
thead th { font-size: .66rem; letter-spacing: .08em; color: var(--muted-2); padding-top: .7rem; padding-bottom: .7rem; }
tbody td:first-child { color: var(--text); font-weight: 500; }
tbody tr:hover td:first-child { color: #fff; }

/* Boutons : secondaires plus nets */
button:not(.btn-primary):not(.btn-ghost):not(.navlink):not(.fa-tab):not(.console-fs-exit) { background: linear-gradient(180deg, #1a1c20, #15171a); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.seg button { background: transparent !important; box-shadow: none !important; }
.seg button.active { background: var(--card-2) !important; box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 1px 3px rgba(0,0,0,.5) !important; }
.btn-danger:hover:not(:disabled) { background: var(--red-soft) !important; }
.btn-primary { letter-spacing: -0.005em; }

/* Champs */
input:not([type=checkbox]):not([type=file]), select, textarea { background-color: #0a0b0d; border-color: rgba(255,255,255,.1); }
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: rgba(255,255,255,.16); }

/* Zone ISO */
.iso-drop { border-radius: 8px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.012) 0 10px, transparent 10px 20px); }
.iso-drop:hover { border-color: rgba(255,255,255,.2); color: var(--text-2); }

/* Logs */
.logbox { background: #060708; border-radius: 8px; }

/* Login */
.login-card { border-radius: 16px; }
.login-card h2 { font-size: 1.05rem; color: var(--text-2); font-weight: 550; }

/* Modales */
.modal-fixed { background: rgba(4,5,6,.74); backdrop-filter: blur(6px); }
.modal-fixed .login-card { border-radius: 14px; }

/* Assistant */
#aiFab { border-color: rgba(229,72,77,.28); box-shadow: 0 10px 30px -12px rgba(0,0,0,.8), 0 0 0 4px rgba(229,72,77,.04); }
#aiFab:hover { border-color: var(--accent-line); box-shadow: 0 10px 30px -10px rgba(229,72,77,.35); }
#aiPanel { border-radius: 12px; box-shadow: 0 30px 70px -25px rgba(0,0,0,.9); }
.ai-msg { border-radius: 10px; }
.ai-msg.user { border-bottom-right-radius: 3px; }
.ai-msg.bot { border-bottom-left-radius: 3px; }

/* Toasts */
.toast { border-radius: 10px; backdrop-filter: blur(8px); background: rgba(22,24,27,.92); }
@media (min-width: 1200px) {
  #view-services .actions { flex-wrap: nowrap; }
  #view-services td:has(> .actions) { white-space: nowrap; width: 1%; }
}

/* ═══ Finitions v4 ═══ */
/* Navigation groupée */
.sidebar nav::before { display: none; }
.sidebar nav { gap: 1px; }
.nav-group { padding: .9rem .65rem .4rem; font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); display: flex; align-items: center; gap: .5rem; }
.nav-group::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.nav-group:first-child { padding-top: .2rem; }
.navlink { font-size: .84rem; padding: .42rem .6rem; }
.navlink.active { color: #fff; }

/* En-tête de page collant, flouté */
.page-head { position: sticky; top: 0; z-index: 20; margin: -2.2rem -2.6rem 1.6rem; padding: 1.6rem 2.6rem 1.1rem; background: linear-gradient(180deg, rgba(8,9,10,.92), rgba(8,9,10,.78)); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
.demo-banner:not([hidden]) ~ .app .page-head { top: 29px; }
.page-head h1 { font-size: 1.55rem; }
.page-head .muted.small { display: flex; align-items: center; gap: .4rem; }

/* Rythme vertical */
.content > section > .card, .content > section > .stat-grid { margin-bottom: 1.1rem; }
.content > section > .seg { margin-bottom: .2rem; }

/* Stats : valeur mise en avant */
.stat.card { padding: 1.1rem 1.2rem 1rem; min-height: 124px; display: flex; flex-direction: column; }
.stat.card .stat-sub { margin-top: auto; padding-top: .2rem; }
.stat-value { font-size: 1.95rem; font-weight: 650; letter-spacing: -0.035em; line-height: 1.1; }
.stat.card .bar { margin: .5rem 0 .4rem; }

/* Tables : en-tête collant dans les blocs défilants, lignes zébrées très légères */
.card.flush { overflow: hidden; }
.card.flush > div[style*="overflow-x"] > table thead th { position: sticky; top: 0; background: #121316; z-index: 1; }
tbody tr:nth-child(even) { background: rgba(255,255,255,.008); }
tbody td.mono, td.mono { font-size: .8rem; }
tbody td .small.muted { line-height: 1.45; }
.state { font-size: .72rem; padding: .16rem .5rem .16rem .45rem; }
.state-active::before, .state-running::before { box-shadow: 0 0 6px currentColor; }

/* Formulaires de cartes : grille aérée + labels plus lisibles */
.vm-form label { color: var(--text-2); font-size: .74rem; }
.card > div[style*="display:flex"][style*="margin-top:.8rem"] { padding-top: .9rem; margin-top: 1rem !important; border-top: 1px solid var(--border); }
.card .ai-cmd { border-radius: 7px; background: #070809; }

/* Boutons : focus et primaires plus nets */
.btn-primary { box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 0 0 1px rgba(229,72,77,.5), 0 8px 18px -10px rgba(229,72,77,.6); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 0 0 1px rgba(239,90,95,.6), 0 10px 22px -10px rgba(229,72,77,.7); }
button:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-line) !important; }

/* Logs : barre de segments + boîte alignées */
.seg { background: #0a0b0d; }
.logbox { margin-top: .9rem; min-height: 220px; }

/* Modales : en-tête séparé */
.modal-fixed .login-card > h2:first-child { text-align: left; padding-bottom: .8rem; border-bottom: 1px solid var(--border); font-size: 1.02rem; }
.modal-fixed .login-card { gap: .9rem; }

/* Console */
.console-bar { background: linear-gradient(180deg, #131417, #101113); gap: .6rem; }

@media (max-width: 760px) {
  .nav-group { display: none; }
  .page-head { position: static; margin: 0 0 1.2rem; padding: 0 0 1rem; background: none; backdrop-filter: none; }
}
.stat-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }
#card-login:empty, #loginErr:empty, #enrollErr:empty, #totpErr:empty { display: none; }
.login-card .hint:empty { display: none; }
.login-card .hint { margin: 0; padding-top: .3rem; text-align: center !important; }

/* Lecteur de carte à puce (connexion habituelle) */
.ax-card-box { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 4px 0 2px; }
.ax-reader { position: relative; display: block; width: 200px; height: 122px; padding: 0; border-radius: 14px; background: linear-gradient(180deg, #12151c, #0b0d12) !important; border: 1px solid var(--border-2); box-shadow: inset 0 2px 10px rgba(0,0,0,.6), 0 14px 30px -18px rgba(0,0,0,.9) !important; overflow: hidden; cursor: pointer; transition: border-color .15s; }
.ax-reader:hover:not(:disabled) { border-color: var(--accent-line); }
.ax-slot { position: absolute; left: 20px; right: 20px; top: 30px; height: 8px; border-radius: 6px; background: #05060a; box-shadow: inset 0 1px 2px rgba(0,0,0,.8); }
.ax-chipcard { position: absolute; left: 36px; top: -54px; width: 128px; height: 80px; border-radius: 9px; background: linear-gradient(135deg, #c9a24b, #e9cf86 40%, #b8862f); box-shadow: 0 6px 14px rgba(0,0,0,.5); transition: top .8s cubic-bezier(.5,.05,.3,1); }
.ax-card-box:not(.in) .ax-reader:hover .ax-chipcard { top: -46px; }
.ax-chip { position: absolute; left: 15px; top: 21px; width: 25px; height: 19px; border-radius: 4px; background: linear-gradient(135deg, #8a6d22, #d8b352); }
.ax-card-box.in .ax-chipcard { top: 14px; }
.ax-led { position: absolute; right: 12px; bottom: 10px; width: 10px; height: 10px; border-radius: 50%; background: #4a4f5a; transition: background .2s, box-shadow .2s; }
.ax-led.on { background: #f0a63a; box-shadow: 0 0 10px #f0a63a; }
.ax-led.ok { background: var(--green); box-shadow: 0 0 12px var(--green); }
.ax-led.bad { background: var(--red); box-shadow: 0 0 12px var(--red); }
.ax-msg { font-size: .86rem; color: var(--muted); text-align: center; min-height: 20px; }
.ax-msg b { color: var(--green); }
.ax-insert { width: 100%; justify-content: center; padding: .65rem .9rem; }
.ax-links { display: flex; justify-content: center; font-size: .74rem; }
.ax-links a { color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ax-links a:hover { color: var(--text); }

/* ═══ Page de connexion v2 : carte à puce → pavé Authenticator ═══ */
.login-wrap.lx { position: relative; overflow: hidden; background:
  radial-gradient(46rem 30rem at 50% 18%, rgba(229,72,77,.10), transparent 65%),
  linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px) 0 0 / 44px 44px,
  linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px) 0 0 / 44px 44px,
  var(--bg); }
.login-wrap.lx::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60rem 40rem at 50% 50%, transparent 40%, var(--bg) 85%); }
.lx .login-card { position: relative; z-index: 1; max-width: 400px; padding: 2rem 1.9rem 1.6rem; gap: 1.1rem; }
.lx .login-card > h2 { font-size: 1.15rem; color: var(--text); font-weight: 600; margin-top: -.2rem; }
.lx .brand-stack .wm { font-size: 1.65rem; }

.lx-steps { display: flex; align-items: center; gap: .6rem; margin: -.2rem 0 1.1rem; }
.lx-steps i { flex: 1; height: 1px; background: var(--border-2); }
.lx-step { display: flex; align-items: center; gap: .45rem; font-size: .74rem; font-weight: 500; color: var(--muted-2); white-space: nowrap; transition: color .2s; }
.lx-step span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .68rem; font-weight: 600; border: 1px solid var(--border-2); color: var(--muted); transition: all .25s; }
.lx-step.on { color: var(--text); }
.lx-step.on span { border-color: var(--accent); color: #fff; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lx-step.done { color: var(--text-2); }
.lx-step.done span { border-color: rgba(76,195,138,.4); background: var(--green-soft); color: var(--green); font-size: 0; }
.lx-step.done span::after { content: "✓"; font-size: .7rem; }

.lx-pane { animation: viewIn .3s cubic-bezier(.2,.7,.2,1); }
.lx .ax-card-box { gap: 16px; margin: 0; }
.lx .ax-reader { width: 220px; height: 134px; }
.lx .ax-chipcard { left: 44px; width: 132px; height: 84px; }
.lx .ax-card-box.in .ax-chipcard { top: 18px; }
.lx .ax-msg { font-size: .86rem; }
.lx .ax-links { margin-top: .2rem; padding-top: .9rem; border-top: 1px solid var(--border); }

.lx-card-ok { display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; border: 1px solid rgba(76,195,138,.22); background: rgba(76,195,138,.06); border-radius: 10px; margin-bottom: 1.1rem; font-size: .84rem; }
.lx-card-ok b { font-weight: 600; color: var(--text); }
.lx-chip-mini { width: 34px; height: 24px; border-radius: 5px; background: linear-gradient(135deg, #c9a24b, #e9cf86 40%, #b8862f); position: relative; flex: none; }
.lx-chip-mini::after { content: ""; position: absolute; left: 6px; top: 7px; width: 9px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, #8a6d22, #d8b352); }
.lx-check { margin-left: auto; color: var(--green); font-weight: 700; }

.lx-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .55rem; }
.lx-slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: .45rem; }
.lx-slots span { height: 46px; border-radius: 9px; border: 1px solid var(--border-2); background: #0a0b0d; display: grid; place-items: center; transition: border-color .15s, box-shadow .15s, background .15s; }
.lx-slots span:nth-child(3) { margin-right: .35rem; }
.lx-slots span.full::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--text); animation: lxPop .18s ease; }
.lx-slots span.cur { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.lx-slots.ok span { border-color: rgba(76,195,138,.45); background: rgba(76,195,138,.06); }
.lx-slots.ok span.full::after { background: var(--green); }
@keyframes lxPop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.lx-err { min-height: 1.2rem; margin: .45rem 0 .4rem; font-size: .78rem; text-align: center; color: var(--red); }
.lx-err.wait { color: var(--muted); } .lx-err.good { color: var(--green); }

.lx-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.lx-key { height: 52px; justify-content: center; font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; border-radius: 10px !important; border: 1px solid var(--border-2) !important; background: linear-gradient(180deg, #1a1c20, #141619) !important; color: var(--text) !important; box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 2px 0 rgba(0,0,0,.4) !important; user-select: none; }
.lx-key:hover:not(:disabled) { border-color: rgba(255,255,255,.22) !important; background: linear-gradient(180deg, #202227, #181a1e) !important; }
.lx-key:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 rgba(255,255,255,.03) inset !important; background: var(--accent-soft) !important; border-color: var(--accent-line) !important; }
.lx-key.lx-fn { font-size: .78rem; font-weight: 500; color: var(--muted) !important; background: transparent !important; box-shadow: none !important; }
.lx-key.lx-fn[data-k=del] { font-size: 1.1rem; }
.lx-pad.busy { opacity: .45; pointer-events: none; }
.lx-padnote { margin-top: .7rem; font-size: .7rem; color: var(--muted-2); text-align: center; }
.login-wrap.lx { padding: 1rem; }
.lx .login-card { gap: .9rem; padding-top: 1.6rem; }
.lx-card-ok { margin-bottom: .9rem; padding: .55rem .75rem; }
.lx-key { height: 48px; }
.lx-slots span { height: 44px; }
@media (max-height: 760px) { .lx .brand-stack .wm { font-size: 1.35rem; } .lx-key { height: 42px; } .lx-padnote { display: none; } }
