/* =====================================================================
   Poste virtuel — styles
   1) Page des labs (jetons du site, thèmes clair/sombre)
   2) Écran Windows simulé : couleurs fixes façon Windows 11, quel que
      soit le thème du site (c'est un « écran » dans la page)
   ===================================================================== */

/* ---------------- 1. Page des labs ---------------- */
.lab-howto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 4px 0 22px; }
.lab-how { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: .92rem; }
.lab-how .ico { color: var(--accent); }
.lab-how .ico svg { width: 22px; height: 22px; }
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.lab-card { display: flex; flex-direction: column; gap: 10px; }
.lab-card h3 { margin: 0; font-size: 1.15rem; }
.lab-card p { margin: 0; }
.lab-card .btn { align-self: flex-start; margin-top: auto; }
.lab-card.locked { opacity: .75; }
.lab-card-foot { margin-top: 2px; }
.lab-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lab-tag { display: inline-block; font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--fg-2); border: 1px solid var(--border); font-weight: 600; }
.lab-grade { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-display); font-weight: 700; font-size: .95rem; padding: 2px 10px; border: 2px solid currentColor; border-radius: 999px; }

.lab-brief { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.lab-brief-main { display: flex; flex-direction: column; gap: 14px; }
.lab-brief-main h1 { margin: 0; }
.lab-brief-side { display: flex; flex-direction: column; gap: 14px; }
.lab-ticket { border: 1px solid var(--border); border-left: 4px solid #2f3f64; border-radius: var(--r); padding: 12px 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.lab-ticket p { margin: 0; }
.lab-ticket-h { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.gl-mini { background: #2f3f64; color: #fec95c; font-weight: 800; font-size: .72rem; padding: 2px 6px; border-radius: 4px; letter-spacing: .04em; }
.lab-rules { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }

.lab-page { display: flex; flex-direction: column; gap: 8px; position: relative; }
.lab-page.is-full, .lab-page:fullscreen { position: fixed; inset: 0; z-index: 400; background: var(--bg); padding: 8px; }
.lab-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 6px 10px; }
.lab-bar-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex: 1 1 260px; }
.lab-bar-title b { font-family: var(--font-display); color: var(--accent); white-space: nowrap; }
.lab-bar-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.lab-clock { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.lab-clock b { font-family: var(--font-mono); font-size: 1.05rem; }
.lab-clock small { color: var(--muted); }
.lab-bar-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lab-places { display: flex; gap: 6px; align-items: center; }
.lab-place-sel { display: inline-flex; align-items: center; gap: 4px; }
.lab-place-sel select { min-height: 30px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--fg); padding: 2px 6px; font: inherit; font-size: .85rem; }
.lab-pop { position: absolute; top: 54px; right: 8px; z-index: 300; width: min(460px, calc(100% - 16px)); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r); box-shadow: 0 12px 40px rgba(0, 0, 0, .25); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; max-height: 70vh; overflow: auto; }
.lab-pop-h { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.lab-pop p { margin: 0; }
.lab-objs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lab-objs li { display: flex; gap: 8px; align-items: flex-start; font-size: .93rem; }
.lab-objs li > svg { flex: none; margin-top: 2px; }
.lab-objs li .dot { flex: none; width: 12px; height: 12px; border: 2px solid var(--border-strong); border-radius: 50%; margin: 4px 2px 0; }
.lab-objs li.met > svg { color: var(--ok); }
.lab-objs li.ready > svg { color: var(--signal); }
.lab-objs li.miss > svg { color: var(--crit); }
.lab-objs li.hidden-ok > svg { color: var(--signal); }
.lab-stage { position: relative; }
.ws-root { height: clamp(500px, calc(100vh - 200px), 940px); }
.lab-page.is-full .ws-root, .lab-page:fullscreen .ws-root, .lab-page.is-full .lab-field, .lab-page:fullscreen .lab-field { height: calc(100vh - 74px); }
.lab-field { height: clamp(500px, calc(100vh - 200px), 940px); overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }

.lab-debrief { display: flex; flex-direction: column; gap: 16px; }
.lab-score { display: flex; gap: 24px; align-items: center; }
.lab-score h1 { margin: 2px 0 6px; }
.lab-score .lead { margin: 0 0 10px; }
.lab-note { margin: 0 0 10px; padding: 10px 14px; border-left: 4px solid var(--border-strong); background: var(--surface-2); border-radius: 0 var(--r) var(--r) 0; white-space: pre-wrap; font-size: .93rem; }
.lab-note.model { border-left-color: var(--ok); }
.lab-fb, .lab-pens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.lab-fb li { display: flex; gap: 6px; align-items: flex-start; }
.lab-fb li.ok svg { color: var(--ok); }
.lab-fb li.ko svg { color: var(--crit); }
.lab-expert { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.lab-journal summary { cursor: pointer; }
.lab-journal ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: .88rem; max-height: 420px; overflow: auto; }
.lab-journal li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; }
.lab-journal time { color: var(--muted); font-variant-numeric: tabular-nums; }
.lab-journal .mono { font-size: .84rem; word-break: break-all; }

/* Terrain : baie de brassage et bureau */
.fld { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.fld-h { display: flex; flex-direction: column; gap: 2px; }
.fld-h b { font-size: 1.1rem; }
.rack { background: #1b1f25; border: 2px solid #0d0f12; border-radius: 6px; padding: 8px; display: flex; flex-direction: column; gap: 8px; overflow-x: auto; }
.rack-u { background: #2a3038; border: 1px solid #111; border-radius: 4px; padding: 8px 10px; }
.rack-u.sw { background: #2c3440; }
.rack-label { font-size: .75rem; color: #a9b8c8; margin-bottom: 6px; letter-spacing: .02em; }
.patch { display: grid; grid-template-columns: repeat(12, 46px); gap: 6px; }
.jack { position: relative; width: 46px; height: 58px; background: #3a414b; border: 1px solid #1a1e24; border-radius: 4px; color: #e3e8ee; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1px; padding: 4px 2px; cursor: pointer; font: inherit; }
.jack:hover { background: #48515d; }
.jack-hole { width: 20px; height: 15px; background: #0b0d10; border-radius: 2px; margin-bottom: 2px; }
.jack.cab .jack-hole { box-shadow: inset 0 0 0 3px #2f86d6; background: #133a63; }
.jack b { font-size: .72rem; line-height: 1; }
.jack small { font-size: .62rem; color: #a9b8c8; line-height: 1.1; min-height: 1em; }
.jack.pick { outline: 3px solid #f2b705; outline-offset: 1px; }
.jack .led, .fld-legend .led { width: 7px; height: 7px; border-radius: 50%; background: #2b2f35; display: inline-block; }
.jack .led { position: absolute; top: 5px; left: 50%; transform: translateX(-50%); }
.led.connected { background: #3ad15b; box-shadow: 0 0 6px #3ad15b; }
.led.disabled { background: #d98e04; }
.jack.port.connected .led { background: #3ad15b; box-shadow: 0 0 6px #3ad15b; }
.jack.port.disabled .led { background: #d98e04; }
.jack.up48 { cursor: default; }
.fld-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .88rem; align-items: center; }
.fld-legend span { display: inline-flex; align-items: center; gap: 6px; }
.office { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; align-items: end; }
.desk-scene { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; padding: 20px; border-radius: 10px; background: linear-gradient(180deg, #e8dcc8 0%, #d9c7a7 100%); }
.mon { width: 270px; max-width: 100%; background: #202020; border: 8px solid #2b2b2b; border-radius: 6px; }
.mon-scr { height: 150px; background: linear-gradient(135deg, #0b3c74, #2c7bd0); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 8px; position: relative; font-family: 'Segoe UI', system-ui, sans-serif; }
.mon.ok .mon-scr { background: linear-gradient(135deg, #0d6b4f, #36b37e); }
.mon-scr small { font-size: .75rem; opacity: .9; }
.mon-net { position: absolute; right: 8px; bottom: 6px; font-size: .75rem; color: #ffb4b4; display: inline-flex; gap: 2px; align-items: center; }
.mon-net svg { width: 14px; height: 14px; }
.mon-foot { font-size: .72rem; color: #c8c8c8; text-align: center; padding: 3px 0; }
.phone { width: 160px; background: #2b2b2b; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; color: #ddd; }
.phone-scr { background: #9fb3c2; color: #18242e; border-radius: 4px; padding: 8px; font-size: .82rem; display: flex; flex-direction: column; gap: 2px; min-height: 56px; }
.phone.ok .phone-scr { background: #bfe6c9; }
.phone small { font-size: .7rem; color: #aaa; }
.wall { display: flex; flex-direction: column; gap: 10px; }
.outlet { background: #f6f6f6; color: #222; border: 2px solid #c8c8c8; border-radius: 6px; padding: 10px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.outlet small { font-size: .72rem; color: #666; }
.outlet.live { border-color: #2fb344; }

/* ---------------- 2. Écran Windows ---------------- */
.ws-root {
  position: relative; border-radius: 10px; overflow: hidden; border: 1px solid #0a1a2c;
  font-family: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, 'Source Sans 3', sans-serif; font-size: 13px; color: #1b1b1b;
  user-select: none; -webkit-user-select: none; color-scheme: light; line-height: 1.35;
}
.ws-root *, .ws-root *::before, .ws-root *::after { box-sizing: border-box; }
.ws-root svg { display: block; }
.ws-root button { font: inherit; color: inherit; }
.ws-screen {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 38% 46% at 64% 58%, rgba(149, 205, 255, .85) 0%, rgba(79, 155, 240, .45) 40%, transparent 70%),
    radial-gradient(ellipse 30% 40% at 52% 66%, rgba(30, 107, 210, .9) 0%, transparent 70%),
    radial-gradient(ellipse 60% 70% at 80% 30%, rgba(42, 119, 214, .55) 0%, transparent 70%),
    linear-gradient(160deg, #061a3d 0%, #0b3474 45%, #1b63c6 80%, #6fb4f5 100%);
}
.ws-screen.remote {
  background: radial-gradient(ellipse 50% 60% at 60% 60%, rgba(128, 214, 170, .7) 0%, transparent 70%), linear-gradient(150deg, #0e3b2e 0%, #1d6b51 55%, #4fae86 100%);
  box-shadow: inset 0 0 0 4px #f2b705;
}
.ws-banner { position: absolute; top: 0; left: 0; right: 0; height: 34px; z-index: 990; display: flex; align-items: center; gap: 10px; background: #fff4ce; color: #3d2f00; border-bottom: 1px solid #f2b705; padding: 0 10px; font-size: 12.5px; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); justify-content: center; white-space: nowrap; }
.ws-banner > span:not(.ws-ico) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ws-banner button { flex: none; }
.ws-screen.banner .ws-layer, .ws-screen.banner .ws-desktop { top: 34px; }
.ws-banner .ws-ico svg { width: 18px; height: 18px; }
.ws-banner button { border: 1px solid #c9a227; background: #fff; border-radius: 4px; padding: 3px 10px; cursor: pointer; }
.ws-banner button.danger { background: #c42b1c; color: #fff; border-color: #c42b1c; }
.ws-desktop { position: absolute; left: 6px; top: 6px; bottom: 54px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 84px); grid-auto-columns: 80px; gap: 2px; }
.ws-dicon { border: 1px solid transparent; background: transparent; border-radius: 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; color: #fff !important; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); font-size: 12px; cursor: default; text-align: center; }
.ws-dicon:hover, .ws-dicon:focus-visible { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .25); outline: none; }
.ws-dicon .ws-ico svg { width: 38px; height: 38px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.ws-layer { position: absolute; inset: 0 0 48px 0; pointer-events: none; }
.ws-layer > * { pointer-events: auto; }
.ws-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; vertical-align: middle; }
.ws-ico svg { width: 16px; height: 16px; }
.ws-ico.ok { color: #0e7a0d; font-weight: 700; width: 18px; }

/* Barre des tâches */
.ws-taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; z-index: 970; background: rgba(236, 241, 248, .9); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); border-top: 1px solid rgba(0, 0, 0, .1); display: flex; align-items: center; justify-content: center; }
.ws-tb-apps { display: flex; align-items: center; gap: 3px; max-width: calc(100% - 210px); overflow-x: auto; scrollbar-width: none; }
.ws-tb-btn { position: relative; width: 42px; height: 40px; border: 0; background: transparent; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: default; flex: none; }
.ws-tb-btn:hover { background: rgba(255, 255, 255, .75); }
.ws-tb-btn .ws-ico svg { width: 24px; height: 24px; }
.ws-tb-btn.running::after { content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 6px; height: 3px; border-radius: 2px; background: #8a8a8a; }
.ws-tb-btn.active { background: rgba(255, 255, 255, .7); }
.ws-tb-btn.active::after { width: 16px; background: #0f6cbd; }
.ws-badge { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; border-radius: 8px; background: #c42b1c; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.ws-tb-search { display: flex; align-items: center; gap: 8px; height: 32px; width: 180px; border: 1px solid rgba(0, 0, 0, .08); background: rgba(255, 255, 255, .8); border-radius: 16px; padding: 0 12px; color: #555 !important; margin: 0 4px; cursor: text; flex: none; }
.ws-tb-search svg { width: 14px; height: 14px; }
.ws-tray { position: absolute; right: 6px; top: 0; bottom: 0; display: flex; align-items: center; gap: 2px; color: #222; }
.ws-tray-ico { position: relative; display: flex; align-items: center; padding: 6px 5px; border-radius: 4px; }
.ws-tray-ico svg { width: 16px; height: 16px; }
.ws-tray-ico:hover { background: rgba(255, 255, 255, .7); }
.ws-dot { position: absolute; top: 4px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: #0f6cbd; }
.ws-clock { display: flex; flex-direction: column; align-items: flex-end; font-size: 11.5px; line-height: 1.25; padding: 0 6px; font-variant-numeric: tabular-nums; }
.ws-clock b { font-weight: 400; }

/* Menu Démarrer */
.ws-start { position: absolute; z-index: 980; bottom: 56px; left: 50%; transform: translateX(-50%); width: min(600px, calc(100% - 16px)); max-height: calc(100% - 70px); overflow: auto; background: rgba(242, 245, 250, .97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(0, 0, 0, .14); border-radius: 8px; box-shadow: 0 16px 48px rgba(0, 0, 0, .35); padding: 18px 22px 0; display: flex; flex-direction: column; gap: 12px; }
.ws-start-search { width: 100%; height: 34px; border-radius: 17px; border: 1px solid #c8c8c8; border-bottom-color: #0f6cbd; padding: 0 16px; font: inherit; background: #fff; color: #1b1b1b; outline: none; }
.ws-start-head { font-size: 13px; }
.ws-start-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 4px; }
.ws-start-app { border: 0; background: transparent; border-radius: 6px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; text-align: center; cursor: default; }
.ws-start-app:hover { background: rgba(255, 255, 255, .85); }
.ws-start-app .ws-ico svg { width: 30px; height: 30px; }
.ws-start-foot { margin: 6px -22px 0; padding: 10px 22px; border-top: 1px solid rgba(0, 0, 0, .08); background: rgba(0, 0, 0, .03); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ws-start-foot > span { display: flex; align-items: center; gap: 6px; }
.ws-start-user { font-size: 12.5px; }
.ws-start-user .ws-ico svg { width: 24px; height: 24px; }
.ws-start-run, .ws-start-power { border: 0; background: transparent; border-radius: 4px; padding: 6px 8px; display: inline-flex; align-items: center; gap: 6px; cursor: default; }
.ws-start-run:hover, .ws-start-power:hover { background: rgba(0, 0, 0, .06); }
.ws-start-power svg { width: 16px; height: 16px; }
.ws-muted { color: #666; font-size: 12.5px; margin: 6px 0; }

/* Notifications */
.ws-toasts { position: absolute; right: 12px; bottom: 58px; z-index: 985; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100% - 24px)); pointer-events: none; }
.ws-toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; text-align: left; background: #f9f9f9; border: 1px solid rgba(0, 0, 0, .12); border-radius: 8px; box-shadow: 0 8px 26px rgba(0, 0, 0, .28); padding: 10px 12px; font-size: 12.5px; animation: ws-in .25s ease-out; transition: opacity .5s, transform .5s; cursor: default; }
.ws-toast .ws-ico svg { width: 20px; height: 20px; }
.ws-toast.obj { border-left: 4px solid #0e7a0d; }
.ws-toast.out { opacity: 0; transform: translateX(20px); }
@keyframes ws-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* Fenêtres */
.ws-win { position: absolute; display: flex; flex-direction: column; background: #f3f3f3; border: 1px solid rgba(0, 0, 0, .3); border-radius: 8px; box-shadow: 0 6px 22px rgba(0, 0, 0, .22); overflow: hidden; min-width: 280px; min-height: 160px; }
.ws-win.focused { box-shadow: 0 12px 40px rgba(0, 0, 0, .38); border-color: rgba(0, 0, 0, .45); }
.ws-win.max { border-radius: 0; border-width: 0 0 1px; min-width: 0; }
.ws-title { flex: none; height: 32px; display: flex; align-items: center; gap: 8px; padding-left: 10px; background: #eef1f5; font-size: 12px; cursor: default; touch-action: none; }
.ws-win:not(.focused) .ws-title { color: #777; background: #f6f6f6; }
.ws-title-ico svg { width: 16px; height: 16px; }
.ws-title-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-title-btns { display: flex; height: 100%; }
.ws-title-btns button { width: 44px; height: 100%; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: default; }
.ws-title-btns button svg { width: 10px; height: 10px; }
.ws-title-btns button:hover { background: rgba(0, 0, 0, .07); }
.ws-title-btns .ws-close:hover { background: #c42b1c; color: #fff; }
.ws-body { flex: 1; min-height: 0; overflow: auto; background: #fff; position: relative; user-select: text; -webkit-user-select: text; }
.ws-grip { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; touch-action: none; }
.ws-win.max .ws-grip { display: none; }

/* Contrôles communs */
.ws-body button, .ws-dlg button { border: 1px solid #c7c7c7; background: #fdfdfd; border-radius: 4px; padding: 4px 11px; min-height: 26px; cursor: default; display: inline-flex; align-items: center; gap: 6px; }
.ws-body button:hover:not(:disabled), .ws-dlg button:hover:not(:disabled) { background: #f0f6fd; border-color: #9fc5ea; }
.ws-body button:disabled, .ws-dlg button:disabled { opacity: .45; }
.ws-body button.primary, .ws-dlg button.primary { background: #0f6cbd; border-color: #0f6cbd; color: #fff; }
.ws-body button.primary:hover, .ws-dlg button.primary:hover { background: #115ea3; }
.ws-root input, .ws-root select, .ws-root textarea { font: inherit; color: #1b1b1b; background: #fff; border: 1px solid #d1d1d1; border-bottom-color: #8a8a8a; border-radius: 4px; padding: 4px 8px; min-height: 26px; outline: none; user-select: text; -webkit-user-select: text; }
.ws-root input:focus, .ws-root select:focus, .ws-root textarea:focus { border-bottom: 2px solid #0f6cbd; }
.ws-root input[type=checkbox] { min-height: 0; accent-color: #0f6cbd; width: 15px; height: 15px; margin: 1px 0 0; flex: none; }
.ws-mmc { display: flex; flex-direction: column; height: 100%; }
.ws-menubar { flex: none; display: flex; gap: 16px; padding: 4px 12px; font-size: 12px; background: #fff; border-bottom: 1px solid #ececec; color: #333; }
.ws-toolbar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; background: #f7f7f7; border-bottom: 1px solid #e3e3e3; }
.ws-toolbar .ws-search { flex: 1 1 200px; min-width: 120px; }
.ws-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.ws-sep { width: 1px; height: 20px; background: #d9d9d9; margin: 0 2px; }
.ws-split { flex: 1; min-height: 0; display: flex; }
.ws-tree { flex: none; width: 232px; max-width: 40%; border-right: 1px solid #e3e3e3; overflow: auto; background: #fff; padding: 4px; }
.ws-node { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 3px; cursor: default; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.ws-node:hover { background: #e5f1fb; }
.ws-node.sel { background: #cce8ff; }
.ws-node.ro { color: #444; }
.ws-node.ro:hover { background: transparent; }
.ws-list { flex: 1; min-width: 0; overflow: auto; background: #fff; }
.ws-listhead { padding: 6px 10px; font-size: 12px; color: #444; background: #fafafa; border-bottom: 1px solid #eee; }
.ws-vsplit { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ws-vsplit .ws-list { flex: 1.3; }
.ws-detail { flex: 1; min-height: 120px; border-top: 2px solid #e3e3e3; overflow: auto; background: #fafafa; padding: 8px 12px; }
.ws-detail-head { font-weight: 600; margin-bottom: 6px; }
.ws-pre { margin: 0 0 8px; white-space: pre-wrap; font-family: 'Segoe UI', system-ui, sans-serif; font-size: 12.5px; background: #fff; border: 1px solid #e6e6e6; padding: 8px 10px; border-radius: 4px; }
.ws-status { flex: none; padding: 3px 10px; font-size: 11.5px; color: #555; border-top: 1px solid #e6e6e6; background: #f7f7f7; }
.ws-status-btn { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; }
.ws-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ws-table th { position: sticky; top: 0; z-index: 1; background: #fff; text-align: left; font-weight: 400; color: #444; border-bottom: 1px solid #e5e5e5; padding: 5px 8px; white-space: nowrap; }
.ws-table td { padding: 3px 8px; border-bottom: 1px solid #f4f4f4; white-space: nowrap; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
.ws-table td .ws-ico { margin-right: 6px; }
.ws-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ws-table tbody tr { cursor: default; }
.ws-table tbody tr:hover td { background: #e5f1fb; }
.ws-table tbody tr.sel td { background: #cce8ff; }
.ws-table tr.disabled td { color: #888; }
.ws-table tr.warnrow td { color: #a4262c; }
.ws-table tr.cut td { opacity: .5; }
.ws-table tr.empty td { color: #777; font-style: italic; padding: 12px 8px; }
.ws-table span.h1 { background: #fff4c4; padding: 0 4px; }
.ws-table span.h2 { background: #ffe08a; padding: 0 4px; }
.ws-table span.h3 { background: #ffb84d; padding: 0 4px; }
.ws-tag { font-style: normal; font-size: 10.5px; background: #eef3f9; color: #0f548c; border-radius: 3px; padding: 0 6px; margin-left: 4px; white-space: nowrap; }
.ws-small { font-size: 12px; color: #444; margin: 6px 0; }

/* Boîtes de dialogue */
.ws-modal { position: absolute; inset: 0; z-index: 100; background: rgba(0, 0, 0, .16); display: flex; align-items: center; justify-content: center; padding: 10px; }
.ws-modal-screen { z-index: 995; }
.ws-dlg { width: min(450px, 100%); max-height: 100%; display: flex; flex-direction: column; background: #f3f3f3; border: 1px solid #8a8a8a; border-radius: 8px; box-shadow: 0 16px 48px rgba(0, 0, 0, .35); overflow: hidden; }
.ws-dlg.wide { width: min(660px, 100%); }
.ws-dlg-title { flex: none; height: 32px; display: flex; align-items: center; gap: 8px; padding-left: 12px; font-size: 12px; }
.ws-dlg-title > span:nth-child(2), .ws-dlg-title > span:first-child:not(.ws-title-ico) { flex: 1; }
.ws-dlg-title .ws-close { width: 44px; height: 32px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; margin-left: auto; }
.ws-dlg-title .ws-close svg { width: 10px; height: 10px; }
.ws-dlg-title .ws-close:hover { background: #c42b1c; color: #fff; }
.ws-dlg-body { flex: 1; min-height: 0; overflow: auto; background: #fff; padding: 12px 16px; border-top: 1px solid #e5e5e5; user-select: text; -webkit-user-select: text; }
.ws-dlg-body p { margin: 6px 0; }
.ws-dlg-btns { flex: none; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-top: 1px solid #e5e5e5; background: #f3f3f3; }
.ws-dlg-btns button { min-width: 84px; justify-content: center; }
.ws-dlg-err { color: #a4262c; font-weight: 600; margin: 8px 0 0; }
.ws-field { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; font-size: 12.5px; }
.ws-check { display: flex; gap: 8px; align-items: flex-start; margin: 7px 0; font-size: 12.5px; }
.ws-check.warn { color: #8a1c13; font-weight: 600; }
.ws-fs { border: 1px solid #d6d6d6; border-radius: 6px; padding: 6px 12px 10px; margin: 10px 0; }
.ws-fs legend { font-size: 12px; color: #333; padding: 0 4px; }
.ws-tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid #d6d6d6; margin: -4px 0 10px; }
.ws-tabs button { border: 0 !important; border-bottom: 2px solid transparent !important; background: transparent !important; border-radius: 0 !important; padding: 6px 10px !important; }
.ws-tabs button.on { border-bottom-color: #0f6cbd !important; font-weight: 600; }
.ws-dl { display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr); gap: 5px 12px; margin: 6px 0; font-size: 12.5px; }
.ws-dl dt { color: #555; }
.ws-dl dd { margin: 0; word-break: break-word; }
.ws-dl-cols { grid-template-columns: repeat(2, max-content minmax(0, 1fr)); }
.ws-box { border: 1px solid #d6d6d6; background: #fff; max-height: 190px; overflow: auto; padding: 3px; border-radius: 3px; margin: 4px 0 8px; }
.ws-row { display: flex; align-items: center; gap: 8px; padding: 3px 4px; flex-wrap: wrap; }
.ws-row > span:not(.ws-ico) { flex: 1; min-width: 0; }
.ws-row.sel { background: #cce8ff; }
.ws-row.dim { color: #777; }
.ws-pick { cursor: default; border-radius: 3px; }
.ws-pick:hover { background: #e5f1fb; }
.ws-perm td:not(:first-child), .ws-perm th:not(:first-child) { text-align: center; width: 80px; }
.ws-chk { color: #0e7a0d; font-weight: 700; }
.ws-chk-inh { color: #8a8a8a; font-weight: 700; }
.ws-no { color: #a4262c; }
.ws-msg { display: flex; gap: 14px; align-items: flex-start; }
.ws-msg-ico svg { width: 34px; height: 34px; }
.ws-msg p { margin: 2px 0; }
.ws-run-txt { margin-top: 0; }
.ws-uac-q { font-size: 15px; font-weight: 600; color: #1b1b1b; }
.ws-ctx { position: absolute; z-index: 120; min-width: 220px; background: #f9f9f9; border: 1px solid rgba(0, 0, 0, .18); border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); padding: 4px; display: flex; flex-direction: column; }
.ws-ctx button { border: 0; background: transparent; text-align: left; padding: 6px 12px; border-radius: 4px; cursor: default; }
.ws-ctx button:hover { background: #e5f1fb; }

/* Terminal */
.ws-term-win { background: #0c0c0c; }
.ws-term-win .ws-title { background: #1f1f1f !important; color: #e0e0e0 !important; }
.ws-term-win .ws-title-btns button:hover { background: #3a3a3a; }
.ws-term-win .ws-body { background: #0c0c0c; }
.ws-term { height: 100%; overflow: auto; background: #0c0c0c; color: #cccccc; font-family: 'Cascadia Mono', 'Cascadia Code', Consolas, 'JetBrains Mono', 'Liberation Mono', monospace; font-size: 13px; line-height: 1.38; padding: 8px 10px 14px; cursor: text; }
.ws-term .tl { white-space: pre; min-height: 1.38em; }
.ws-term .tl.err { color: #f2575b; }
.ws-term .tl.warn { color: #f9f1a5; }
.ws-term .tl.dim { color: #8f8f8f; }
.ws-term .tl.ok { color: #23d18b; }
.ws-term .tl.cmdline { color: #f2f2f2; }
.ws-term-in { display: flex; align-items: baseline; }
.ws-term-prompt { white-space: pre; color: #f2f2f2; }
.ws-root .ws-term-input { flex: 1; min-width: 40px; background: transparent !important; border: 0 !important; color: #f2f2f2 !important; padding: 0 !important; min-height: 0; font: inherit; caret-color: #f2f2f2; border-radius: 0; }

/* Explorateur */
.ws-ex { display: flex; flex-direction: column; height: 100%; }
.ws-ex-bar { flex: none; display: flex; gap: 4px; align-items: center; padding: 6px 8px; background: #f9f9f9; border-bottom: 1px solid #e6e6e6; }
.ws-ex-bar button { width: 30px; justify-content: center; padding: 0 !important; border-color: transparent !important; background: transparent !important; }
.ws-ex-bar button:hover:not(:disabled) { background: #eaeaea !important; }
.ws-addr { flex: 1; min-width: 0; }
.ws-ex-tools { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 5px 8px; border-bottom: 1px solid #e6e6e6; background: #fff; }
.ws-ex-main { flex: 1; min-width: 0; overflow: auto; display: flex; flex-direction: column; }
.ws-thispc { padding: 10px 16px; }
.ws-thispc h4 { margin: 8px 0 6px; font-size: 13px; font-weight: 600; }
.ws-drives { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.ws-body .ws-drive { border: 1px solid transparent !important; background: #fff !important; text-align: left; padding: 8px !important; display: flex !important; gap: 10px; align-items: center; }
.ws-body .ws-drive:hover { background: #e5f1fb !important; }
.ws-drive .ws-ico svg { width: 40px; height: 40px; }
.ws-drive > span:last-child { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ws-drive small { color: #666; }
.ws-drive.off small { color: #c42b1c; font-weight: 600; }
.ws-meter { display: block; height: 14px; background: #e6e6e6; border: 1px solid #bcbcbc; overflow: hidden; }
.ws-meter i { display: block; height: 100%; background: #26a0da; }
.ws-meter.red i { background: #da3b01; }
.ws-meter.big { height: 18px; margin: 6px 0 4px; }
.ws-err-page { display: flex; gap: 16px; padding: 30px 24px; align-items: flex-start; }
.ws-err-page .ws-ico svg { width: 40px; height: 40px; }
.ws-err-page p { color: #444; }

/* Gestionnaire des tâches */
.ws-tm-tabs { display: flex; gap: 2px; padding: 4px 8px 0; background: #f9f9f9; border-bottom: 1px solid #e6e6e6; position: sticky; top: 0; z-index: 2; }
.ws-tm-tabs button { border: 0 !important; background: transparent !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; }
.ws-tm-tabs button.on { border-bottom-color: #0f6cbd !important; font-weight: 600; }
.ws-tm-head { display: grid; grid-template-columns: 1fr 96px 96px 96px; text-align: right; padding: 6px 8px 4px; font-size: 18px; font-weight: 600; border-bottom: 1px solid #eee; }
.ws-tm-head > span { padding: 0 6px; }
.ws-tm-head small { display: block; font-size: 11px; font-weight: 400; color: #555; }
.ws-tm-head .h1 { background: #fff4c4; } .ws-tm-head .h2 { background: #ffe08a; } .ws-tm-head .h3 { background: #ffb84d; }
.ws-perf { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 12px; }
.ws-perf-card { border: 1px solid #e3e3e3; border-radius: 6px; padding: 10px 12px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.ws-perf-val { font-size: 24px; font-weight: 600; }
.ws-perf-val.h3 { color: #c42b1c; } .ws-perf-val.h2 { color: #b45d00; }
.ws-perf-card small { color: #555; }

/* Nettoyage de disque */
.ws-clean { padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; min-height: 100%; }
.ws-clean-head { display: flex; gap: 12px; align-items: flex-start; }
.ws-clean-head .ws-ico svg { width: 34px; height: 34px; }
.ws-clean-head p { margin: 0; }
.ws-clean-list { max-height: 230px; }
.ws-clean-row { cursor: default; border-radius: 2px; }
.ws-clean-row b { font-weight: 400; margin-left: auto; font-variant-numeric: tabular-nums; }
.ws-clean-row.danger > span { color: #a4262c; }
.ws-clean .ws-dlg-btns { margin: auto -16px -12px; }

/* Paramètres */
.ws-settings { display: flex; height: 100%; background: #f3f3f3; }
.ws-set-nav { flex: none; width: 220px; max-width: 40%; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.ws-body .ws-set-nav button { border: 0 !important; background: transparent !important; text-align: left; padding: 8px 10px !important; border-radius: 4px; position: relative; }
.ws-body .ws-set-nav button:hover { background: #eaeaea !important; }
.ws-body .ws-set-nav button.on { background: #e9e9e9 !important; font-weight: 600; box-shadow: inset 3px 0 0 #0f6cbd; }
.ws-set-main { flex: 1; min-width: 0; overflow: auto; padding: 16px 22px; background: #fafafa; }
.ws-set-main h3 { font-size: 22px; font-weight: 600; margin: 0 0 12px; }
.ws-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; padding: 12px 16px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 6px; }
.ws-card small { color: #555; }
.ws-st-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px 70px; gap: 10px; align-items: center; font-size: 12.5px; }
.ws-st-row b { text-align: right; font-weight: 600; }
.ws-toggle-row { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; }
.ws-toggle-row > span { display: flex; flex-direction: column; gap: 2px; }
.ws-body .ws-switch { width: 42px; min-height: 0 !important; height: 22px; border-radius: 11px !important; border: 1px solid #616161 !important; background: #fff !important; padding: 0 !important; position: relative; flex: none; }
.ws-switch i { position: absolute; top: 4px; left: 5px; width: 12px; height: 12px; border-radius: 50%; background: #616161; transition: left .15s; }
.ws-body .ws-switch.on { background: #0f6cbd !important; border-color: #0f6cbd !important; }
.ws-switch.on i { left: 24px; background: #fff; }
.ws-net { flex-direction: row; align-items: center; gap: 12px; }
.ws-net-ico svg { width: 30px; height: 30px; }
.ws-net-ico.off { color: #c42b1c; }
.ws-net > span:last-child { display: flex; flex-direction: column; }

/* Bloc-notes */
.ws-notepad { display: flex; flex-direction: column; height: 100%; }
.ws-root .ws-notepad textarea { flex: 1; border: 0 !important; border-radius: 0; resize: none; padding: 8px 10px; font-family: Consolas, 'Cascadia Mono', 'JetBrains Mono', monospace; font-size: 13px; }

/* Edge + GLPI */
.ws-edge .ws-body { background: #fff; }
.edge { display: flex; flex-direction: column; height: 100%; }
.edge-tabs { flex: none; display: flex; gap: 4px; padding: 6px 8px 0; background: #dfe3e8; }
.edge-tab { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px 6px 0 0; font-size: 12px; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edge-tab.on { background: #fff; }
.edge-tab.add { color: #555; }
.edge-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: #fff; border-bottom: 1px solid #e3e3e3; }
.edge-nav { color: #777; letter-spacing: .1em; white-space: nowrap; }
.edge-url { flex: 1; min-width: 0; background: #f1f3f4; border-radius: 16px; padding: 5px 14px; color: #333; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl { flex: 1; min-height: 0; display: flex; font-family: Inter, 'Segoe UI', system-ui, sans-serif; font-size: 13px; color: #1f2a3c; }
.gl-side { flex: none; width: 196px; background: #2f3f64; color: #e6ebf5; display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; overflow: auto; }
.gl-logo { font-size: 22px; font-weight: 800; color: #fec95c; padding: 4px 10px 14px; letter-spacing: .05em; }
.ws-body .gl-side button { border: 0 !important; background: transparent !important; color: #e6ebf5 !important; text-align: left; padding: 8px 10px !important; border-radius: 6px; justify-content: flex-start; }
.ws-body .gl-side button:hover { background: rgba(255, 255, 255, .08) !important; }
.ws-body .gl-side button.on { background: rgba(254, 201, 92, .16) !important; color: #fff !important; box-shadow: inset 3px 0 0 #fec95c; }
.gl-side-foot { margin-top: auto; font-size: 11px; opacity: .7; padding: 10px; line-height: 1.5; }
.gl-main { flex: 1; min-width: 0; overflow: auto; background: #f5f7fb; }
.gl-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 18px; background: #fff; border-bottom: 1px solid #e6e9ef; position: sticky; top: 0; z-index: 3; }
.gl-crumb { color: #5b6b86; }
.gl-user { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.gl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px 8px; }
.gl-head h2 { font-size: 17px; font-weight: 600; margin: 0; flex: 1; min-width: 200px; }
.gl-status { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.gl-status.run { border: 3px solid #2fb344; background: #fff; }
.gl-status.done { background: #9aa3b0; }
.gl-ticket { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; padding: 4px 18px 18px; align-items: start; }
.gl-timeline { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gl-item { display: flex; gap: 10px; align-items: flex-start; }
.gl-item.me { flex-direction: row-reverse; }
.gl-av { flex: none; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.gl-av.sm { width: 24px; height: 24px; font-size: 9.5px; }
.gl-bubble { flex: 1; min-width: 0; background: #fff; border: 1px solid #e3e7ee; border-radius: 8px; padding: 10px 12px; }
.gl-item.me .gl-bubble { flex: 0 1 88%; }
.gl-ih { font-size: 11.5px; color: #6b7a90; margin-bottom: 4px; }
.gl-bubble h4 { margin: 0 0 6px; font-size: 14px; }
.gl-bubble p { margin: 0; }
.gl-desc .gl-bubble { border-left: 3px solid #8392a5; }
.gl-fup .gl-bubble { background: #eef4ff; border-color: #cfdcf5; }
.gl-fup.priv .gl-bubble { border-style: dashed; background: #fbf8ee; border-color: #e6d6a6; }
.gl-sol .gl-bubble { background: #e3f5e7; border-color: #b8e2c3; }
.gl-log { font-size: 11.5px; color: #6b7a90; text-align: center; }
.gl-answer { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-body .gl-btn { background: #fff; border: 1px solid #cdd5e1; border-radius: 6px; padding: 6px 14px; color: #1f2a3c; }
.ws-body .gl-btn:hover:not(:disabled) { background: #f0f4fa; border-color: #aab7cb; }
.ws-body .gl-btn.ok { background: #2fb344; border-color: #2fb344; color: #fff; }
.ws-body .gl-btn.ok:hover { background: #26993a; }
.ws-body .gl-btn.on { box-shadow: inset 0 0 0 2px rgba(47, 63, 100, .35); }
.ws-body .gl-btn.ghost { background: transparent; }
.gl-editor { background: #fff; border: 1px solid #cdd5e1; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.gl-editor.sol { border-color: #2fb344; box-shadow: 0 0 0 3px rgba(47, 179, 68, .12); }
.ws-root .gl-editor textarea { width: 100%; border: 1px solid #d5dbe5; border-radius: 6px; padding: 8px; resize: vertical; }
.gl-ed-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.gl-ed-foot label { display: inline-flex; gap: 6px; align-items: center; }
.gl-inline { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; }
.gl-fields { display: flex; flex-direction: column; gap: 12px; }
.gl-card { background: #fff; border: 1px solid #e3e7ee; border-radius: 8px; padding: 8px 12px 12px; }
.gl-card-h { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #2f3f64; padding: 4px 0 8px; border-bottom: 1px solid #eef1f5; margin-bottom: 6px; }
.gl-f { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 12.5px; }
.gl-f span { color: #6b7a90; flex: none; }
.gl-f b { font-weight: 600; text-align: right; min-width: 0; word-break: break-word; }
.gl-run { color: #1f8a33; }
.gl-ok { color: #6b7a90; }
.gl-prio { display: inline-block; padding: 1px 8px; border-radius: 10px; color: #fff !important; font-size: 11.5px; }
.gl-prio.P1 { background: #d63939; } .gl-prio.P2 { background: #f76707; } .gl-prio.P3 { background: #e09100; } .gl-prio.P4 { background: #4299e1; }
.gl-actor { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; font-size: 12.5px; }
.gl-actor > small:first-child { width: 72px; flex: none; color: #6b7a90; padding-top: 4px; }
.gl-actor small { color: #6b7a90; }
.gl-sla { height: 6px; background: #e9edf3; border-radius: 3px; overflow: hidden; margin-top: 4px; }
.gl-sla i { display: block; height: 100%; background: #2fb344; }
.gl-sla i.warn { background: #f59f00; } .gl-sla i.late { background: #d63939; }
.gl-table { width: calc(100% - 36px); margin: 6px 18px 18px; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid #e3e7ee; border-radius: 8px; overflow: hidden; font-size: 12.5px; }
.gl-table th { background: #f8fafc; text-align: left; padding: 8px 10px; color: #5b6b86; font-weight: 600; border-bottom: 1px solid #e3e7ee; white-space: nowrap; }
.gl-table td { padding: 7px 10px; border-bottom: 1px solid #f0f2f6; }
.gl-table tr:last-child td { border-bottom: 0; }
.gl-table tr.click, .gl-table tr.hl { cursor: pointer; }
.gl-table tr.click:hover td, .gl-table tr.hl:hover td { background: #f2f6fd; }
.gl-table tr.hl td { font-weight: 600; }
.gl-table tr.dim td { color: #8a96a8; }
.gl-table select { min-height: 24px; padding: 1px 4px; }
.ws-root .gl-search { margin-left: auto; min-width: 200px; border-radius: 6px; }
.gl-p { padding: 0 18px; margin: 4px 0 8px; }
.gl-main > .gl-card { margin: 0 18px 12px; }
.gl-note { margin: 0 18px 18px; font-size: 12.5px; background: #fff8e6; border-color: #f3d58a; }
.gl-kb { padding-left: 20px; margin: 4px 0; line-height: 1.5; }
.gl-kb li { margin: 6px 0; }
.gl-muted { color: #6b7a90; }

/* Teams */
.ws-teams-win .ws-title { background: #ebebf3; }
.tm { display: grid; grid-template-columns: 58px 250px minmax(0, 1fr); height: 100%; font-family: 'Segoe UI', system-ui, sans-serif; }
.tm-rail { background: #ebebeb; display: flex; flex-direction: column; gap: 2px; padding: 6px 0; align-items: center; }
.tm-rail span { width: 48px; padding: 6px 0; border-radius: 6px; font-size: 15px; font-weight: 600; color: #616161; display: flex; flex-direction: column; align-items: center; }
.tm-rail span small { font-size: 9.5px; font-weight: 400; }
.tm-rail span.on { color: #5b5fc7; background: #fff; }
.tm-list { background: #f5f5f5; border-right: 1px solid #e0e0e0; overflow: auto; }
.tm-list-h { font-size: 15px; font-weight: 700; padding: 12px 14px 8px; }
.ws-body .tm-contact { position: relative; display: flex !important; gap: 10px; align-items: center; width: 100%; text-align: left; border: 0 !important; border-radius: 0 !important; background: transparent !important; padding: 8px 12px !important; }
.ws-body .tm-contact:hover { background: #ebebeb !important; }
.ws-body .tm-contact.on { background: #fff !important; }
.tm-contact > span:not(.gl-av) { flex: 1; min-width: 0; }
.tm-contact b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-contact small { display: block; color: #616161; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-pres { position: absolute; left: 36px; top: 30px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #f5f5f5; }
.tm-pres.on { background: #6bb700; } .tm-pres.busy { background: #c4314b; } .tm-pres.away { background: #eaa300; } .tm-pres.off { background: #fff; border-color: #8a8886; }
.tm-un { font-style: normal; background: #c4314b; color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 9px; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.tm-chat { display: flex; flex-direction: column; min-width: 0; background: #fff; }
.tm-chat-h { flex: none; display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid #e6e6e6; }
.tm-chat-h small { display: block; color: #616161; font-size: 11.5px; }
.tm-msgs { flex: 1; min-height: 0; overflow: auto; padding: 14px 16px; background: #f5f5f5; display: flex; flex-direction: column; }
.tm-msg { max-width: 80%; margin: 5px 0; display: flex; flex-direction: column; align-items: flex-start; }
.tm-msg.me { margin-left: auto; align-items: flex-end; }
.tm-b { padding: 8px 12px; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); font-size: 13px; line-height: 1.42; white-space: pre-wrap; }
.tm-msg.me .tm-b { background: #e8ebfa; }
.tm-msg.call .tm-b { border-left: 3px solid #5b5fc7; }
.tm-msg.hint .tm-b { background: #fff8e1; border: 1px solid #f5d77b; }
.tm-msg small { color: #707070; font-size: 11px; margin: 2px 4px; }
.tm-call { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #5b5fc7; margin-bottom: 3px; }
.tm-call svg { width: 12px; height: 12px; }
.tm-compose { flex: none; border-top: 1px solid #e6e6e6; padding: 10px 12px; background: #fff; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 160px; overflow: auto; }
.ws-body .tm-chip { border: 1px solid #c7c9f0; background: #f5f5ff; color: #3b3fa3; border-radius: 14px; padding: 5px 12px; font-size: 12.5px; text-align: left; line-height: 1.3; }
.ws-body .tm-chip:hover:not(:disabled) { background: #e8ebfa; border-color: #9ea2e6; }
.ws-body .tm-chip.phone { border-color: #a6e3b9; background: #effaf2; color: #11643a; }
.ws-body .tm-chip.hint { border-color: #f5d77b; background: #fff8e1; color: #7a5800; }
.tm-chip svg { width: 13px; height: 13px; flex: none; }
.tm-empty { color: #707070; font-size: 12.5px; }

/* Assistance rapide */
.qa { padding: 28px 24px; height: 100%; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(180deg, #f4f8fd, #fff); }
.qa-state { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qa-state .ws-ico svg { width: 44px; height: 44px; }
.qa-state h3 { margin: 0; font-size: 18px; font-weight: 600; }
.qa-state p { margin: 0; max-width: 420px; }
.qa-code { font-family: Consolas, 'Cascadia Mono', monospace; font-size: 34px; font-weight: 700; letter-spacing: .3em; padding: 8px 18px; background: #fff; border: 1px solid #d1d9e6; border-radius: 8px; }
.ws-body .qa-btn { background: #0f6cbd; border-color: #0f6cbd; color: #fff; padding: 7px 18px; }
.ws-body .qa-btn:hover { background: #115ea3 !important; }
.ws-body .qa-btn.ghost { background: #fff; color: #1b1b1b; border-color: #c7c7c7; }
.qa-wait { color: #0f6cbd; font-weight: 600; animation: qa-blink 1.4s infinite; }
.qa-foot { text-align: center; }
@keyframes qa-blink { 50% { opacity: .35; } }

/* ---------------- Petits écrans ---------------- */
@media (max-width: 960px) {
  .lab-howto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-brief { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ws-root { height: clamp(460px, calc(100vh - 230px), 760px); font-size: 12.5px; }
  .ws-tb-search { display: none; }
  .ws-tb-apps { max-width: calc(100% - 120px); }
  .ws-tray .ws-tray-ico:nth-child(2) { display: none; }
  .ws-desktop { grid-auto-columns: 70px; grid-template-rows: repeat(auto-fill, 76px); }
  .ws-dicon .ws-ico svg { width: 30px; height: 30px; }
  .ws-tree { width: 128px; }
  .ws-node { font-size: 11.5px; }
  .ws-node .ws-ico { display: none; }
  .gl-side { width: 112px; padding: 6px 4px; }
  .gl-logo { font-size: 16px; padding: 4px 8px 8px; }
  .ws-body .gl-side button { font-size: 11.5px; padding: 6px 6px !important; }
  .gl-side-foot { display: none; }
  .gl-ticket { grid-template-columns: 1fr; }
  .gl-crumb { display: none; }
  .tm { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .tm-rail { display: none; }
  .tm-list { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e0e0e0; }
  .tm-list-h { display: none; }
  .ws-body .tm-contact { min-width: 170px; }
  .ws-set-nav { width: 120px; }
  .ws-st-row { grid-template-columns: minmax(0, 1fr) 70px; }
  .ws-st-row .ws-meter { display: none; }
  .ws-tm-head { grid-template-columns: 1fr 70px 70px 70px; font-size: 15px; }
  .ws-dl { grid-template-columns: 1fr; gap: 0 8px; }
  .ws-dl dd { margin-bottom: 6px; }
  .ws-term { font-size: 11.5px; }
  .patch { grid-template-columns: repeat(6, 46px); }
  .office { grid-template-columns: 1fr; }
  .wall { flex-direction: row; }
  .lab-score { flex-direction: column; align-items: flex-start; }
  .lab-bar-title { flex-basis: 100%; }
  .hide-sm { display: none; }
}
