:root {
  --ink: #142028;
  --muted: #5a6874;
  --paper: #e7eef3;
  --card: #f7fafc;
  --line: #c9d5df;
  --sidebar: #0d2a24;
  --sidebar-text: #e7f3ee;
  --brass: #2a8f7c;
  --green: #187a58;
  --danger: #9b3030;
  --ok: #dff3e8;
  --font-ui: "Figtree", "Segoe UI", sans-serif;
  --font-display: "Syne", "Figtree", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(42, 143, 124, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(24, 90, 140, 0.08), transparent 50%),
    var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); transition: color 0.15s var(--ease); }
button, .button {
  background: linear-gradient(180deg, #1f8a64, var(--green));
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 0.58rem 1rem;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform 0.15s var(--ease), filter 0.15s var(--ease), background 0.15s var(--ease);
}
button:hover, .button:hover { filter: brightness(1.06); transform: translateY(-1px); }
button.quiet, a.button.quiet { background: #d5e0e8; color: #1c2b33; filter: none; }
button.quiet:hover, a.button.quiet:hover { background: #c7d5e0; }
button:focus, a:focus, input:focus, select:focus, textarea:focus { outline: 2px solid var(--brass); outline-offset: 2px; }
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.nav {
  background:
    linear-gradient(180deg, rgba(42, 143, 124, 0.18), transparent 28%),
    var(--sidebar);
  color: var(--sidebar-text);
  padding: 1.25rem 1rem 1.6rem;
}
.nav a {
  display: block;
  color: var(--sidebar-text);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav a.on, .nav a:hover { background: rgba(255,255,255,0.1); }
.nav a.on { box-shadow: inset 3px 0 0 var(--brass); font-weight: 650; }
.brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.28rem;
  margin: 0 0 1.1rem;
  line-height: 1.15;
}
.brand-mark-img {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  flex: 0 0 auto;
}
.brand small {
  flex: 1 1 100%;
  display: block;
  font-family: var(--font-ui);
  font-weight: 500;
  color: #7ecfbb;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.68rem;
  margin-top: -0.15rem;
  padding-left: 2.65rem;
}
.nav-label { margin: 1.15rem 0 0.28rem; color: #7ecfbb; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.nav-group { margin-bottom: 0.15rem; }
.main { min-width: 0; }
.top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(10px);
}
.top-title { min-width: 0; }
.top-kicker {
  margin: 0 0 0.1rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}
.top h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.top-tools { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.who { color: var(--muted); font-size: 0.9rem; }
.live-ctrl { display: inline-flex; align-items: center; gap: 0.45rem; }
.live-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: #e8f0f4;
  color: var(--ink);
  border-radius: 8px;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
  line-height: 1.2;
}
.live-toggle .live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #9aabbd;
  box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.45);
}
.live-toggle.is-on .live-dot {
  background: #1f6b4a;
  animation: liveDot 1.4s ease infinite;
}
.live-toggle.is-off .live-dot { background: #b7a790; animation: none; }
@keyframes liveDot {
  0% { box-shadow: 0 0 0 0 rgba(31, 107, 74, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(31, 107, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 107, 74, 0); }
}
.live-stamp-top {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: Consolas, "Cascadia Mono", monospace;
  min-width: 5.5rem;
}
.live-stamp-top.is-err { color: #a33; }
body.live-ok #app-content,
body.live-ok #live { animation: liveFlash 0.45s ease; }
body.live-paused .live-toggle { opacity: 0.85; }
body.noc .live-toggle {
  background: #162231;
  border-color: #243140;
  color: #e7eef6;
}
body.noc .live-toggle.is-on .live-dot { background: #3dd68c; }
body.noc .live-stamp-top { color: #9aabbd; }
body.noc .live-stamp-top.is-err { color: #ffc9c4; }
.content { padding: 1.25rem 1.45rem 3.2rem; animation: contentIn 0.35s var(--ease); }
@keyframes contentIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.desk { display: grid; gap: 1rem; }
.sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.05rem 1.15rem;
  box-shadow: 0 1px 0 rgba(20, 32, 40, 0.03);
}
.ticket-head { max-width: 720px; }
.ticket-head .ticket-code { margin: 0.15rem 0 0.4rem; font-size: 2rem; }
.toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: end; flex-wrap: wrap; }
.toolbar .filters { display: flex; align-items: end; gap: 0.55rem; margin: 0; flex: 1; min-width: 280px; max-width: 520px; grid-template-columns: none; }
.toolbar .filters .field { flex: 1; }
.toolbar .filters button { width: auto; white-space: nowrap; }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.85rem 0; }
.chip {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.3rem 0.72rem;
  color: var(--ink);
  background: #eef4f8;
  font-size: 0.86rem;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.chip.on { background: var(--green); color: white; border-color: var(--green); }
.empty { margin: 0.4rem 0 0.2rem; color: var(--muted); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.table-wrap table { border: 0; }
table.tickets th { font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: #eef4f8; }
table.tickets td.end { text-align: right; white-space: nowrap; }
.pill { display: inline-block; padding: 0.12rem 0.5rem; border-radius: 99px; font-size: 0.78rem; background: #efe7da; color: var(--ink); }
.pill-actif { background: #e7f2ea; color: #1f6b4a; }
.pill-en_attente, .pill-en_validation { background: #f8f1df; color: #6a4b12; }
.pill-suspendu { background: #f3e6d8; color: #7a4a16; }
.pill-expire, .pill-revoque { background: #f8e8e4; color: var(--danger); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.8rem; }
.cards article, .line {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.cards article:hover { border-color: color-mix(in srgb, var(--brass) 55%, var(--line)); transform: translateY(-1px); }
.cards span, .line span { color: var(--muted); font-size: 0.85rem; }
.cards strong { display: block; font-size: 1.45rem; margin: 0.25rem 0; font-variant-numeric: tabular-nums; }
.cards small, .meta { color: var(--muted); }
.stack, .filters { display: grid; gap: 0.7rem; max-width: 640px; margin: 1rem 0; }
.filters { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; max-width: none; }
.field { display: grid; gap: 0.25rem; }
.field span { font-size: 0.85rem; color: var(--muted); }
input, select, textarea {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--brass) 40%, var(--line)); }
textarea { min-height: 90px; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: 0.5rem 0.55rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.92rem; }
.flash { padding: 0.75rem 0.9rem; border-radius: 10px; border: 1px solid transparent; }
.flash.ok { background: var(--ok); border-color: #b7dfc8; }
.flash.err { background: #f8e8e4; color: var(--danger); border-color: #e8c4c0; }
.flash.wait { background: #eef6f4; color: #1f5c4d; border-color: #c5ddd5; }
.guest {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #0a1c1a;
  color: #e7f3ee;
}
.guest-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}
.guest-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: clamp(1.6rem, 4vw, 3.2rem);
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(42, 143, 124, 0.38), transparent 55%),
    radial-gradient(700px 480px at 88% 78%, rgba(62, 198, 255, 0.16), transparent 52%),
    linear-gradient(155deg, #0d2a24 0%, #123a3c 46%, #0e2430 100%);
}
.guest-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(231, 243, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 243, 238, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 85%);
  pointer-events: none;
  animation: guestGrid 18s linear infinite;
}
@keyframes guestGrid {
  from { transform: translateY(0); }
  to { transform: translateY(42px); }
}
.guest-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  margin-bottom: 0.35rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.guest .brand-mark {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: #f3fbf8;
  max-width: 11ch;
}
.guest-hero-kicker {
  position: relative;
  z-index: 1;
  margin: 0.35rem 0 0;
  color: #7ecfbb;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 650;
}
.guest-hero-line {
  position: relative;
  z-index: 1;
  margin: 0.2rem 0 0;
  max-width: 28rem;
  color: rgba(231, 243, 238, 0.78);
  font-size: 1.05rem;
  line-height: 1.45;
}
.guest-stage {
  display: grid;
  place-items: center;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  background:
    radial-gradient(600px 360px at 70% 0%, rgba(42, 143, 124, 0.08), transparent 60%),
    #e7eef3;
  animation: guestIn 0.45s var(--ease);
}
@keyframes guestIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.guest-card {
  width: min(420px, 100%);
  background: rgba(247, 250, 252, 0.97);
  border: 1px solid rgba(201, 213, 223, 0.9);
  border-radius: 20px;
  padding: 1.55rem 1.45rem 1.4rem;
  box-shadow: 0 22px 50px rgba(14, 28, 34, 0.12);
  color: var(--ink);
}
.guest .login-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}
.guest .login-lede { margin: 0 0 0.2rem; }
.guest .stack { margin-top: 0.35rem; }
.guest .stack button { width: 100%; padding: 0.72rem 1rem; border-radius: 10px; }
.guest input[name="code"] { font-family: Consolas, "Cascadia Mono", monospace; font-size: 1.35rem; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow { color: var(--brass); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; margin: 0.45rem 0 0; font-weight: 600; }
.lede { color: var(--muted); }
@media (max-width: 860px) {
  .guest-shell { grid-template-columns: 1fr; }
  .guest-hero {
    min-height: 38vh;
    justify-content: center;
    padding: 1.6rem 1.35rem 1.4rem;
  }
  .guest .brand-mark { font-size: clamp(2.2rem, 10vw, 3rem); max-width: none; }
  .guest-hero-line { font-size: 0.95rem; }
}
.mono, .ticket-code { font-family: Consolas, "Cascadia Mono", monospace; font-size: 1.4rem; letter-spacing: 0.08em; }
.ticket-quick { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.05rem; margin: 0; max-width: none; }
.ticket-quick h2 { margin: 0 0 0.7rem; font-size: 1.05rem; }
.quick-fields { display: grid; grid-template-columns: 1fr 140px; gap: 0.7rem; align-items: end; }
.durations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin-top: 0.7rem; }
.checkout-fields { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: end; }
.checkout-fields .field { flex: 1 1 180px; margin: 0; }
.checkout-fields button { width: auto; margin: 0; white-space: nowrap; }
#depart { position: relative; z-index: 2; }
.durations button { display: grid; gap: 0.1rem; justify-items: start; padding: 0.75rem 0.9rem; text-align: left; }
.durations button span { color: #d7efe4; font-size: 0.8rem; }
details.more { margin: 0.8rem 0; }
details.more summary { cursor: pointer; font-weight: 600; }
.row-actions, .row-actions form { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.chart { display: grid; gap: 0.35rem; }
.bar-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 0.5rem; align-items: center; margin: 0.35rem 0; }
.bar-track { display: block; height: 10px; background: #d7e0e8; border-radius: 99px; overflow: hidden; }
.bar { display: block; height: 10px; background: var(--green); border-radius: 99px; width: 0; }
body.noc .bar-track { background: #0e1620; }
body.noc .bar { background: #3ec6ff; }
.engine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.7rem; }
.engine, .sec-family { margin-top: 0.8rem; }
.engine { background: #141c27; border: 1px solid #243140; border-radius: 10px; padding: 0.85rem 0.95rem; margin-top: 0; }
.engine h3 { margin: 0 0 0.35rem; font-size: 1rem; }
ul.brings { margin: 0.2rem 0 0; padding-left: 1.1rem; }
body.noc .panel ul.brings { color: #e7eef6; }
.engine p { margin: 0.35rem 0; color: #9aabbd; }
.spark { width: 100%; height: 88px; background: #0e1620; border-radius: 8px; display: block; }
.check { display: flex; gap: 0.45rem; align-items: flex-start; }
.matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.8rem; }
.qr svg { width: 180px; height: auto; }
.mfa-setup .mfa-secret { font-size: 1.05rem; letter-spacing: 0.08em; word-break: break-all; user-select: all; }
.mfa-setup .qr { margin: 0.75rem 0 1rem; padding: 0.75rem; background: #fff; border-radius: 8px; display: inline-block; }
.logo { width: 88px; height: auto; }
.voucher { page-break-after: always; border: 1px solid var(--line); padding: 1.15rem 1.1rem 1.25rem; margin: 0; background: white; box-shadow: 0 10px 28px rgba(28, 25, 21, 0.08); }
.voucher h2 { margin: 0.15rem 0; }
.voucher p { margin: 0.28rem 0; }
.voucher .mono { font-size: 1.85rem; font-weight: 700; margin: 0.45rem 0; }
.voucher.thermal { width: 80mm; }
.voucher.a4 { width: 180mm; }
body.print-page { margin: 0; background: #ebe4d6; }
.print-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 1rem; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.print-stage { display: grid; justify-items: center; gap: 1rem; padding: 1.4rem 1rem 3rem; }
.line { margin-bottom: 0.6rem; }
@media (max-width: 860px) {
  .durations, .quick-fields { grid-template-columns: 1fr; }
  .shell, body.noc .shell { grid-template-columns: 1fr; }
  .nav { display: flex; gap: 0.4rem; overflow: auto; }
  .nav-label, .brand small { display: none; }
  .brand { margin: 0 0.6rem 0 0; }
  .nav a { white-space: nowrap; }
}
body.noc {
  --ink: #e7eef6;
  --muted: #9aabbd;
  --paper: #0b1118;
  --card: #141c27;
  --line: #243140;
  --sidebar: #0e1520;
  --ok: #163228;
  background:
    radial-gradient(1000px 520px at 0% -5%, rgba(62, 198, 255, 0.08), transparent 50%),
    radial-gradient(800px 480px at 100% 0%, rgba(61, 214, 140, 0.05), transparent 45%),
    #0b1118;
  color: #e7eef6;
}
body.noc .shell { grid-template-columns: 268px 1fr; }
body.noc .nav {
  background:
    linear-gradient(180deg, rgba(62, 198, 255, 0.08), transparent 26%),
    #0c1220;
  padding: 1rem 0.85rem 1.6rem;
}
body.noc .nav a { border-radius: 8px; padding: 0.42rem 0.65rem; }
body.noc .nav a.on { box-shadow: none; background: #1a2736; }
body.noc .nav-user { display: flex; gap: 0.7rem; align-items: center; margin: 0 0 0.9rem; padding: 0.35rem 0.4rem 0.9rem; border-bottom: 1px solid #243140; }
body.noc .nav-user b { display: block; font-size: 0.95rem; font-family: var(--font-display); letter-spacing: -0.02em; }
body.noc .nav-user small, body.noc .people time, body.noc .people small { color: #9aabbd; }
body.noc .avatar { width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(160deg, #1d3348, #163228); color: #7fd4ff; font-weight: 700; flex: 0 0 auto; border: 1px solid #2a3d50; }
body.noc .nav-group { border-left: 3px solid #3ec6ff; margin: 0.45rem 0; padding-left: 0.35rem; }
body.noc .nav-group.acc-orange { border-left-color: #ff8a3d; }
body.noc .nav-group.acc-blue { border-left-color: #3ec6ff; }
body.noc .nav-group.acc-green { border-left-color: #3dd68c; }
body.noc .nav-group.acc-pink { border-left-color: #e36ad2; }
body.noc .nav-group.acc-purple { border-left-color: #8b7cff; }
body.noc .top { background: #0b1118; border-bottom-color: #243140; gap: 1rem; }
body.noc .top-search { flex: 1; max-width: 480px; margin: 0; display: flex; gap: 0.45rem; align-items: center; }
body.noc .top-search input { border-radius: 99px; background: #141c27; border-color: #243140; color: #e7eef6; padding: 0.55rem 1rem; }
body.noc .top-search button { width: auto; border-radius: 99px; background: #1a2736; color: #e7eef6; }
body.noc .brand small, body.noc .nav-label { color: #7fd4ff; }
body.noc .chip { background: #0e1620; color: #e7eef6; border-color: #243140; }
body.noc .chip.on { background: #1f6b4a; color: #fff; border-color: #1f6b4a; }
body.noc table.tickets th { background: #101820; color: #9aabbd; }
body.noc button.quiet, body.noc a.button.quiet { background: #243140; color: #e7eef6; }
body.noc .who { color: #9aabbd; }
.board-span { margin-top: 1rem; }
.board-span > h2 { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: #9aabbd; }
body.noc .top { background: #101820; border-bottom-color: #243140; color: #e7eef6; }
body.noc .content { background: #0b1118; }
body.noc a { color: #7fd4ff; }
body.noc .noc-kicker { margin: 0 0 0.8rem; color: #7fd4ff; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }
.noc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.8rem; }
.noc-card {
  background: linear-gradient(180deg, #172231, #141c27);
  border: 1px solid #243140;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  border-top: 3px solid #607086;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), background 0.18s var(--ease);
}
a.noc-card { display: block; text-decoration: none; color: #e7eef6; }
a.noc-card:hover { border-color: #3ec6ff; transform: translateY(-2px); background: linear-gradient(180deg, #1a2838, #15202c); }
.noc-card span, .noc-card small { color: #9aabbd; }
.noc-card strong {
  display: block;
  margin: 0.35rem 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.noc-card.tone-ok { border-top-color: #3dd68c; }
.noc-card.tone-warn { border-top-color: #e8a13a; }
.noc-card.tone-down { border-top-color: #ef5b5b; }
.noc-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 0.8rem; margin-top: 0.9rem; }
.noc-split section, .noc-map { background: #141c27; border: 1px solid #243140; border-radius: 10px; padding: 0.9rem 1rem; }
.noc-map { margin-top: 0.8rem; }
body.noc h2 { margin: 0 0 0.6rem; font-size: 1rem; }
.noc-legend, .noc-nodes, .noc-alerts { margin: 0; padding: 0; list-style: none; }
.noc-nodes li, .noc-alerts li { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.4rem 0; border-bottom: 1px solid #243140; }
.noc-nodes small, .noc-alerts small, body.noc .meta { color: #9aabbd; }
.dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; display: inline-block; margin-right: 0.25rem; background: #607086; }
.dot.ok { background: #3dd68c; }
.dot.warn { background: #e8a13a; }
.dot.down { background: #ef5b5b; }
.dot.idle { background: #607086; }
.topo { width: 100%; max-width: 720px; height: auto; background: #0e1620; border-radius: 8px; }
.topo line { stroke: #3ec6ff; stroke-width: 2; }
.topo circle { fill: #3dd68c; }
.topo text { fill: #d5e2ee; font-size: 10px; }
.netmap { margin: 0.8rem 0 1.2rem; }
.netmap-toolbar { display: flex; justify-content: space-between; gap: 0.8rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.6rem; }
.netmap-views { display: inline-flex; gap: 0.3rem; background: #101821; border: 1px solid #243140; border-radius: 999px; padding: 0.2rem; }
.netmap-views button { border: 0; background: transparent; color: #9aabbd; border-radius: 999px; padding: 0.4rem 0.75rem; cursor: pointer; font: inherit; }
.netmap-views button.on { background: #1f6b4a; color: #fff; }
.netmap-legend { display: flex; flex-wrap: wrap; gap: 0.85rem; color: #9aabbd; font-size: 0.82rem; margin-bottom: 0.7rem; }
.netmap-legend .swatch { width: 1.1rem; height: 0.18rem; display: inline-block; vertical-align: middle; margin-right: 0.3rem; border-radius: 2px; }
.netmap-legend .swatch.declared { background: #3ec6ff; }
.netmap-legend .swatch.observed { background: repeating-linear-gradient(90deg, #5f7d95 0 4px, transparent 4px 8px); }
.netmap-stage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0.8rem; align-items: stretch; }
.netmap-canvas { background: #0a1018; border: 1px solid #243140; border-radius: 16px; overflow: auto; min-height: 560px; cursor: grab; box-shadow: inset 0 0 0 1px rgba(62,198,255,0.05); }
.netmap-canvas.is-dragging { cursor: grabbing; }
.netmap-svg { width: 100%; height: 560px; display: block; transform-origin: 50% 50%; transition: transform 0.18s ease; }
.net-edge .net-link { stroke: #3ec6ff; stroke-width: 2.2; fill: none; filter: url(#net-glow); }
.net-edge.edge-observed .net-link { stroke: #5f7d95; stroke-dasharray: 7 6; stroke-width: 1.55; filter: none; opacity: 0.85; }
.net-edge text { fill: #7f93a8; font-size: 10px; }
.net-edge.is-hot .net-link { stroke: #7be0ff; stroke-width: 3.1; }
.net-node { cursor: pointer; transition: opacity 0.15s ease; }
.net-node .net-halo { fill: rgba(62, 198, 255, 0.07); stroke: transparent; }
.net-node .net-core { fill: #152232; stroke: #3ec6ff; stroke-width: 2; }
.net-node .net-wave { stroke: #7fd0ff; stroke-width: 1.4; opacity: 0.7; }
.net-node .net-lens { fill: #7fd0ff; opacity: 0.75; }
.net-node.tone-ok .net-core { stroke: #3dd68c; }
.net-node.tone-down .net-core { stroke: #ef5b5b; }
.net-node.tone-idle .net-core { stroke: #6d8299; }
.net-node.tone-trust-ok .net-core { stroke: #3dd68c; }
.net-node.tone-trust-watch .net-core { stroke: #e8a13a; }
.net-node.tone-trust-unknown .net-core { stroke: #ef5b5b; }
.net-node.tone-trust-block .net-core { stroke: #b91c1c; fill: #2a1212; }
.netmap-legend .dot.trust-ok { background: #3dd68c; }
.netmap-legend .dot.trust-watch { background: #e8a13a; }
.netmap-legend .dot.trust-unknown { background: #ef5b5b; }
.netmap-legend .dot.trust-block { background: #b91c1c; }
.net-node .net-icon { fill: #e7eef6; font-size: 9px; font-weight: 700; pointer-events: none; }
.net-node .net-label { fill: #e7eef6; font-size: 11px; font-weight: 650; pointer-events: none; }
.net-node .net-sub { fill: #9aabbd; font-size: 9px; pointer-events: none; }
.net-node.is-active .net-halo { fill: rgba(62, 198, 255, 0.2); stroke: rgba(62, 198, 255, 0.5); }
.net-node.is-active .net-core { filter: url(#net-glow); }
.net-node.is-dim { opacity: 0.22; }
.net-edge.is-dim { opacity: 0.12; }
.net-node.is-hidden, .net-edge.is-hidden { display: none; }
.netmap-side { display: grid; gap: 0.8rem; align-content: start; }
.netmap-charts, .netmap-panel { background: linear-gradient(180deg, #162231, #121a24); border: 1px solid #243140; border-radius: 16px; padding: 1rem; color: #e7eef6; }
.netmap-charts h3, .netmap-panel h2, .netmap-panel h3 { margin: 0.15rem 0 0.7rem; font-size: 0.95rem; }
.net-bars { display: grid; gap: 0.45rem; margin-bottom: 0.7rem; }
.net-bar { display: grid; grid-template-columns: 110px 1fr auto; gap: 0.45rem; align-items: center; background: #0e1620; border: 1px solid #243140; color: #d5e2ee; border-radius: 8px; padding: 0.35rem 0.5rem; cursor: pointer; text-align: left; font: inherit; }
.net-bar i { display: block; height: 0.45rem; border-radius: 999px; background: linear-gradient(90deg, #1f6b4a, #3ec6ff); }
.net-bar.on { border-color: #3ec6ff; }
.netmap-panel .eyebrow { margin: 0; color: #7fd0ff; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; }
.netmap-panel dl { margin: 0 0 0.8rem; display: grid; grid-template-columns: 88px 1fr; gap: 0.35rem 0.6rem; }
.netmap-panel dt { color: #9aabbd; }
.netmap-panel dd { margin: 0; word-break: break-word; }
.netmap-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 0.8rem; }
.netmap-actions form, .netmap-actions a.button { display: inline-flex; }
.netmap-empty { background: #141c27; border: 1px solid #243140; border-radius: 14px; padding: 1rem; }
@media (max-width: 980px) {
  .netmap-stage { grid-template-columns: 1fr; }
  .netmap-canvas, .netmap-svg { min-height: 440px; height: 440px; }
}
body.noc table { background: #141c27; color: #e7eef6; }
body.noc th, body.noc td { border-bottom-color: #243140; }
body.noc th { color: #9aabbd; font-weight: 600; }
body.noc input, body.noc select, body.noc textarea { background: #0e1620; color: #e7eef6; border-color: #243140; }
body.noc .field span, body.noc .lede { color: #9aabbd; }
body.noc .flash.ok { background: #163228; color: #c8f5dc; }
body.noc .flash.err { background: #3a1d22; color: #ffc9c4; }
body.noc .flash.wait { background: #3a2e16; color: #f0d7a8; }
body.noc button.quiet { background: #243140; }
.banner { border-radius: 10px; padding: 0.9rem 1rem; margin: 0 0 0.9rem; border: 1px solid #243140; background: #141c27; color: #e7eef6; }
.banner strong { display: block; margin-bottom: 0.25rem; }
.banner-wait { border-left: 4px solid #e8a13a; }
.banner-ok { border-left: 4px solid #3dd68c; }
.banner-down { border-left: 4px solid #ef5b5b; }
.desk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 0.9rem; }
.desk-actions form, .panel { background: #141c27; border: 1px solid #243140; border-radius: 10px; padding: 0.9rem 1rem; }
.state { display: inline-block; padding: 0.12rem 0.45rem; border-radius: 99px; font-size: 0.78rem; background: #243140; }
.state-verifiee { background: #163228; color: #9af0c5; }
.state-echec, .state-annulation_impossible { background: #3a1d22; color: #ffc9c4; }
.state-non_prise_en_charge, .state-annulee { background: #3a2e16; color: #f0d7a8; }
.state-en_cours, .state-en_attente, .state-appliquee { background: #16283a; color: #c9e7ff; }
@media (max-width: 860px) {
  .desk-actions { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .noc-split { grid-template-columns: 1fr; }
}
.hup { display: grid; grid-template-columns: 1.15fr 1.2fr 0.48fr 0.48fr; grid-template-areas: "donut area clock clock" "donut area g1 g2" "people bars orders orders" "table table table table"; gap: 0.85rem; }
.hup-donut { grid-area: donut; }
.hup-area { grid-area: area; }
.hup-clock { grid-area: clock; }
.hup-g1 { grid-area: g1; }
.hup-g2 { grid-area: g2; }
.hup-people { grid-area: people; }
.hup-bars { grid-area: bars; }
.hup-orders { grid-area: orders; }
.hup-table { grid-area: table; }
.board-card { background: #141c27; border: 1px solid #243140; border-radius: 16px; padding: 0.95rem 1rem; min-width: 0; }
a.board-link { display: block; text-decoration: none; color: inherit; transition: border-color 0.2s ease, transform 0.2s ease; }
a.board-link:hover, a.noc-card:hover { border-color: #3ec6ff; transform: translateY(-1px); }
#live.live-pulse { animation: liveFlash 0.45s ease; }
@keyframes liveFlash {
  from { outline: 1px solid rgba(62, 198, 255, 0.55); }
  to { outline: 1px solid transparent; }
}
.hup-table .toolbar, .board-span .toolbar { align-items: center; margin-bottom: 0.55rem; }
.hup-table .toolbar h2, .board-span .toolbar h2 { margin: 0; }
.board-card h2 { margin: 0 0 0.7rem; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: #9aabbd; }
.board-wide { grid-column: span 2; }
.board-table { grid-column: span 3; }
.board-filters { margin-bottom: 0.8rem; }
.donut-wrap { display: grid; place-items: center; }
.donut, .gauge { width: 168px; height: 168px; }
.donut-wrap .donut { grid-area: 1 / 1; }
.donut-wrap div { grid-area: 1 / 1; text-align: center; }
.donut-wrap strong, .gauge-card strong { display: block; font-size: 1.55rem; }
.donut-wrap span, .gauge-card > span, .clock-card .meta { color: #9aabbd; }
.donut-track { fill: none; stroke: #243140; stroke-width: 4.8; }
.donut-seg { fill: none; stroke-width: 4.8; stroke-linecap: butt; }
.area { width: 100%; height: 148px; display: block; }
.area-fill { fill: rgba(62, 198, 255, 0.28); }
.area-line { fill: none; stroke: #3ec6ff; stroke-width: 2.5; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; gap: 0.65rem; align-items: center; padding: 0.45rem 0; border-bottom: 1px solid #243140; }
.people a { color: #e7eef6; text-decoration: none; }
.people time { margin-left: auto; font-size: 0.75rem; white-space: nowrap; }
.status-bars { display: flex; align-items: flex-end; gap: 0.35rem; min-height: 120px; }
.status-bars .vbar-col { height: 120px; }
.vbar.seg-actif { background: #3dd68c; }
.vbar.seg-attente { background: #e8a13a; }
.vbar.seg-expire { background: #607086; }
.vbar.seg-revoque { background: #ef5b5b; }
.vbar.seg-autre { background: #7fd4ff; }
.orders { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0.6rem; align-items: center; }
.hup-orders .gauge-card { background: transparent; border: 0; padding: 0; }
.legend { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; gap: 0.28rem; }
.legend li { display: flex; gap: 0.4rem; align-items: center; color: #d5e2ee; font-size: 0.84rem; }
.legend a { display: flex; gap: 0.4rem; align-items: center; color: inherit; text-decoration: none; width: 100%; }
.legend a:hover { color: #7fd4ff; }
.legend b { margin-left: auto; }
.legend i { width: 0.7rem; height: 0.7rem; border-radius: 2px; display: inline-block; }
.legend .seg-actif { background: #3dd68c; }
.donut-seg.seg-actif { stroke: #3dd68c; }
.legend .seg-attente { background: #e8a13a; }
.donut-seg.seg-attente { stroke: #e8a13a; }
.legend .seg-expire { background: #607086; }
.donut-seg.seg-expire { stroke: #607086; }
.legend .seg-revoque { background: #ef5b5b; }
.donut-seg.seg-revoque { stroke: #ef5b5b; }
.legend .seg-autre { background: #7fd4ff; }
.donut-seg.seg-autre, .donut-seg.seg-info { stroke: #3ec6ff; }
.gauge-card { display: grid; justify-items: center; align-content: start; text-align: center; }
.clock-date { margin: 0.2rem 0; color: #d5e2ee; }
.clock-time { margin: 0.15rem 0 0.4rem; font-size: 2rem; font-weight: 700; }
.vbars { display: flex; align-items: flex-end; gap: 0.45rem; min-height: 150px; }
.vbar-col { flex: 1; min-width: 0; height: 150px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.vbar { display: block; width: 70%; max-width: 26px; height: 4%; border-radius: 5px 5px 0 0; background: #3ec6ff; }
.vbar-col span, .vbar-col small { color: #9aabbd; font-size: 0.68rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.mini-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.7rem; }
.mini-stats span { display: block; color: #9aabbd; font-size: 0.78rem; }
.mini-stats strong { font-size: 1.15rem; }
.board-figure { display: block; margin: 0.35rem 0 0.6rem; font-size: 1.15rem; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li { display: flex; gap: 0.55rem; align-items: flex-start; padding: 0.4rem 0; border-bottom: 1px solid #243140; }
.board-list small { display: block; color: #9aabbd; }
@media (max-width: 1100px) {
  .hup { grid-template-columns: 1fr 1fr; grid-template-areas: "donut area" "clock g1" "g2 people" "bars orders" "table table"; }
  .mini-stats { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 700px) {
  .hup { grid-template-columns: 1fr; grid-template-areas: "donut" "area" "clock" "g1" "g2" "people" "bars" "orders" "table"; }
  .mini-stats, .orders { grid-template-columns: 1fr; }
}
.timeline { list-style: none; margin: 0.8rem 0 1.4rem; padding: 0; border-left: 2px solid #2b3b4d; }
.timeline li { position: relative; padding: 0.55rem 0 0.55rem 1rem; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 0.9rem; width: 8px; height: 8px; border-radius: 50%; background: #3ec6ff; }
.timeline time { display: block; color: #9aabbd; font-size: 0.78rem; }
.timeline strong { display: inline-block; margin-right: 0.35rem; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.72rem; color: #7fd0ff; }
.timeline span { display: block; }
.timeline em { display: block; color: #9aabbd; font-style: normal; font-size: 0.85rem; }
body:not(.noc) .timeline { border-left-color: var(--line); }
body:not(.noc) .timeline li::before { background: var(--brass); }
body:not(.noc) .timeline time, body:not(.noc) .timeline em { color: var(--muted); }
body:not(.noc) .timeline strong { color: var(--green); }
.warn-row td { background: rgba(141, 47, 47, 0.08); }
@media print {
  .no-print, .nav, .top { display: none !important; }
  body, body.print-page { background: white; }
  .print-stage { padding: 0; }
  .voucher { border: 0; box-shadow: none; }
}
.sessions-desk .noc-kicker { margin: 0 0 0.35rem; color: var(--brass); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }
.sessions-desk .sessions-stats { margin: 0.2rem 0 0.4rem; }
.sessions-pin .pin-filters { max-width: 560px; }
.sessions-pin .pin-filters .field { min-width: 0; }
.pin-input {
  font-family: Consolas, "Cascadia Mono", monospace !important;
  font-size: 1.35rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 650;
}
.pin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}
.pin-card {
  background: linear-gradient(180deg, #ffffff, #eef5f8);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1rem 1rem;
  box-shadow: 0 8px 22px rgba(20, 32, 40, 0.05);
  border-top: 3px solid var(--brass);
}
.pin-card.tone-ok { border-top-color: #1f6b4a; }
.pin-card.tone-muted { border-top-color: #b7a790; opacity: 0.96; }
.pin-card-head { display: flex; justify-content: space-between; gap: 0.6rem; align-items: flex-start; }
.pin-code { display: inline-block; margin: 0; font-size: 1.55rem; line-height: 1.15; text-decoration: none; color: var(--ink); }
a.pin-code:hover { color: var(--green); }
.pin-missing { color: var(--muted); font-size: 1.05rem; letter-spacing: 0.04em; }
.pin-client { margin: 0.45rem 0 0.7rem; font-weight: 600; }
.pin-meta { margin: 0; display: grid; gap: 0.35rem 0.7rem; grid-template-columns: 1fr 1fr; }
.pin-meta > div { min-width: 0; }
.pin-meta dt { margin: 0; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pin-meta dd { margin: 0.1rem 0 0; word-break: break-word; }
.mono-sm { font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.9rem; letter-spacing: 0.03em; }
.pin-actions { margin-top: 0.85rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.pin-actions input[type="number"] { width: 4.5rem; }
body.noc .pin-card {
  background: linear-gradient(180deg, #162231, #121a24);
  border-color: #243140;
  box-shadow: none;
  color: #e7eef6;
}
body.noc .pin-code { color: #e7eef6; }
body.noc a.pin-code:hover { color: #7fd0ff; }
body.noc .pin-meta dt, body.noc .pin-missing { color: #9aabbd; }
body.noc .pin-actions { border-top-color: #243140; }
body.noc .pin-input { background: #0e1620; color: #e7eef6; border-color: #243140; }

.login-modes { display: flex; gap: 0.4rem; margin: 0.95rem 0 1.05rem; }
.login-modes .chip { background: #e8f0f4; border-radius: 8px; }
.login-modes .chip.on { background: var(--green); }
.guest .login-pin-form .pin-input,
.guest input.pin-input {
  font-family: Consolas, "Cascadia Mono", monospace !important;
  font-size: 1.6rem !important;
  letter-spacing: 0.28em;
  text-align: center;
}

.soc-stage { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 0.85rem; align-items: start; margin-top: 0.8rem; }
.soc-list { display: grid; gap: 0.55rem; max-height: 72vh; overflow: auto; }
.soc-item { display: grid; gap: 0.25rem; text-decoration: none; color: inherit; background: #141c27; border: 1px solid #243140; border-radius: 12px; padding: 0.75rem 0.85rem; border-left: 3px solid #607086; }
.soc-item.tone-down { border-left-color: #ef5b5b; }
.soc-item.tone-warn { border-left-color: #e8a13a; }
.soc-item.tone-idle { border-left-color: #3ec6ff; }
.soc-item.is-on { border-color: #3ec6ff; box-shadow: 0 0 0 1px rgba(62,198,255,0.25); }
.soc-item strong { color: #e7eef6; font-size: 0.95rem; }
.soc-item small, .soc-sev { color: #9aabbd; font-size: 0.78rem; }
.soc-detail h2 { margin: 0.2rem 0 0.55rem; }
.soc-evidence { background: #0e1620; border: 1px solid #243140; border-radius: 10px; padding: 0.75rem; overflow: auto; max-height: 240px; color: #c9e7ff; font-size: 0.82rem; }
.soc-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.5rem 0; }
@media (max-width: 980px) {
  .soc-stage { grid-template-columns: 1fr; }
  .soc-list { max-height: none; }
}

.vlan-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.75rem 0 0.9rem;
}
.vlan-chip {
  display: grid;
  gap: 0.1rem;
  min-width: 7.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: #141c27;
  border: 1px solid #243140;
  border-left: 3px solid #607086;
}
.vlan-chip strong { font-size: 0.82rem; color: #9aabbd; }
.vlan-chip span { font-weight: 600; color: #e7eef6; }
.vlan-chip small { color: #9aabbd; font-size: 0.72rem; }
.vlan-chip em { font-style: normal; font-size: 0.68rem; color: #7fd0ff; }
.vlan-chip.is-off { opacity: 0.55; }
.vlan-chip.tone-invite { border-left-color: #3ec6ff; }
.vlan-chip.tone-staff { border-left-color: #3dd68c; }
.vlan-chip.tone-cameras { border-left-color: #e8a13a; }
.vlan-chip.tone-iot { border-left-color: #b388ff; }
.vlan-chip.tone-mgmt { border-left-color: #ef5b5b; }
.vlan-chip.tone-voix { border-left-color: #7fd0ff; }
.vlan-chip.tone-autre { border-left-color: #607086; }
.vlan-chip:hover { border-color: #3ec6ff; }
.vlan-vid {
  display: inline-block;
  min-width: 2rem;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: #243140;
  font-weight: 700;
}
.vlan-vid.tone-invite { background: #16324a; color: #9adfff; }
.vlan-vid.tone-staff { background: #163228; color: #9af0c5; }
.vlan-vid.tone-cameras { background: #3a2e16; color: #f0d7a8; }
.vlan-vid.tone-iot { background: #2a1f3d; color: #d7c2ff; }
.vlan-vid.tone-mgmt { background: #3a1d22; color: #ffc9c4; }
.vlan-actions { margin: 0.55rem 0 0.85rem; display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.vlan-actions form { display: inline-flex; }
table.tickets tr.is-muted td { opacity: 0.62; }
.vlan-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.35rem 0 0.85rem; }
.vlan-tabs .chip { text-decoration: none; color: #c9e7ff; background: #162231; border: 1px solid #243140; padding: 0.32rem 0.72rem; border-radius: 8px; font-size: 0.82rem; }
.vlan-tabs .chip.on { background: #1d3a52; border-color: #3ec6ff; color: #e7eef6; }
.vlan-schematic { margin: 0.6rem 0 0.9rem; }
.vlan-svg { width: 100%; max-height: 240px; background: #0e1620; border: 1px solid #243140; border-radius: 12px; }
.vlan-svg-gw { fill: #1d3a52; stroke: #3ec6ff; stroke-width: 2; }
.vlan-svg-gw-label { fill: #e7eef6; font-size: 12px; font-family: Consolas, monospace; }
.vlan-svg-link { stroke: #3a4b5c; stroke-width: 1.5; }
.vlan-svg-link.tone-invite { stroke: #3ec6ff; }
.vlan-svg-link.tone-staff { stroke: #3dd68c; }
.vlan-svg-link.tone-cameras { stroke: #e8a13a; }
.vlan-svg-link.tone-iot { stroke: #b388ff; }
.vlan-svg-link.tone-mgmt { stroke: #ef5b5b; }
.vlan-svg-node { fill: #162231; stroke: #243140; stroke-width: 1.5; }
.vlan-svg-node.tone-invite { stroke: #3ec6ff; }
.vlan-svg-node.tone-staff { stroke: #3dd68c; }
.vlan-svg-node.tone-cameras { stroke: #e8a13a; }
.vlan-svg-node.tone-iot { stroke: #b388ff; }
.vlan-svg-node.tone-mgmt { stroke: #ef5b5b; }
.vlan-svg-vid { fill: #9aabbd; font-size: 10px; font-family: Consolas, monospace; }
.vlan-svg-name { fill: #e7eef6; font-size: 11px; }
.vlan-matrix-list { margin: 0.4rem 0; padding-left: 1.1rem; color: #c9e7ff; }
.empty-box { background: #141c27; border: 1px solid #243140; border-radius: 12px; padding: 0.9rem 1rem; margin: 0.5rem 0; }
.empty-box .empty { margin: 0 0 0.55rem; }
a.stat-card-link { text-decoration: none; color: inherit; }
a.stat-card-link article { height: 100%; transition: border-color 0.15s ease, transform 0.15s var(--ease); }
a.stat-card-link:hover article { border-color: #3ec6ff; transform: translateY(-1px); }
body.noc .cards article,
body.noc a.stat-card-link article {
  background: linear-gradient(180deg, #172533, #141c27);
  border-color: #243140;
  border-top: 3px solid #3a5568;
}
body.noc .cards article strong,
body.noc a.stat-card-link strong {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.ops-footer { margin-top: 1rem; }
.sec-tabs { margin-bottom: 0.75rem; }
body.noc .board-list { list-style: none; padding: 0; margin: 0.5rem 0 1rem; display: grid; gap: 0.45rem; }
body.noc .board-list li { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; background: #141c27; border: 1px solid #243140; border-radius: 10px; padding: 0.7rem 0.85rem; }

/* Occupation / caisse / portail i18n */
.occ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.65rem; margin: 0.75rem 0 1rem; }
.occ-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.85rem; display: flex; flex-direction: column; gap: 0.35rem; }
.occ-card .occ-num { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.occ-card.tone-ok { border-color: #7cbc95; background: #f0faf4; }
.occ-card.tone-warn { border-color: #d4b06a; background: #fbf6eb; }
.occ-card.tone-idle { opacity: 0.92; }
.occ-card.tone-muted { opacity: 0.7; }
.room-wifi-hint { margin: 0.35rem 0 0.85rem; padding: 0.55rem 0.75rem; border-radius: 8px; border: 1px solid var(--line); background: var(--card); }
.room-wifi-hint.tone-ok { border-color: #7cbc95; background: #f0faf4; }
.room-wifi-hint.tone-warn { border-color: #d4b06a; background: #fbf6eb; }
.room-wifi-hint.tone-idle { opacity: 0.95; }
.mac-quota.warn, .ticket-head .warn { color: #9a6b16; font-weight: 600; }
.pin-card.tone-warn { border-color: #d4b06a; }
.hotel-ops-banner { margin-bottom: 1rem; }
.defense-sev { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.35rem 0 0.85rem; }
.defense-sev span { font-size: 0.78rem; padding: 0.25rem 0.55rem; border-radius: 999px; border: 1px solid var(--line); }
.defense-sev .sev-c { background: #fce8e8; border-color: #d98a8a; color: #8a2f2f; }
.defense-sev .sev-a { background: #fbf6eb; border-color: #d4b06a; color: #7a5a16; }
.defense-sev .sev-i { background: var(--card); color: var(--muted); }
.sev-row-critique td:first-child { box-shadow: inset 3px 0 0 #c45c5c; }
.sev-row-attention td:first-child { box-shadow: inset 3px 0 0 #d4b06a; }
.defense-bars { display: flex; align-items: flex-end; gap: 0.35rem; min-height: 110px; padding: 0.5rem 0 0.15rem; }
.defense-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; min-width: 0; }
.defense-bar { display: block; width: 100%; max-width: 28px; min-height: 4px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #5b8def, #3d6bc5); }
.defense-bar-col small { font-size: 0.65rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hint-chips .chip { font-size: 0.72rem; padding: 0.15rem 0.45rem; margin: 0.1rem; display: inline-block; }
.defense-progress { display: flex; height: 8px; border-radius: 999px; overflow: hidden; margin: 0.35rem 0 1rem; background: var(--line); }
.defense-progress i { display: block; height: 100%; }
.defense-progress .p-c { background: #c45c5c; }
.defense-progress .p-a { background: #d4b06a; }
.defense-progress .p-i { background: #8aa0b8; }
.defense-checklist { margin: 0; padding-left: 1.2rem; }
.defense-checklist li { margin: 0.45rem 0; }
.portal-langs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0 0 0.85rem; }
.portal-langs a { font-size: 0.78rem; text-decoration: none; padding: 0.25rem 0.55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.portal-langs a.on { background: var(--portal-accent, var(--green)); color: #fff; border-color: transparent; }
.guest button { background: var(--portal-accent, var(--green)); }
.cash-desk .quick-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.55rem; }

/* Design refresh — polish partagé */
::selection { background: rgba(42, 143, 124, 0.28); color: inherit; }
body.noc ::selection { background: rgba(62, 198, 255, 0.28); }
html { scrollbar-color: #3a5560 #d5e0e8; }
body.noc { scrollbar-color: #2d4254 #0b1118; }
body.noc .top-kicker { color: #7fd0ff; }
body.noc .sheet {
  background: linear-gradient(180deg, #172533 0%, #141c27 100%);
  box-shadow: none;
  border-radius: 14px;
}
body.noc .sheet > h2:first-child,
body.noc .board-card > h2:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
}
body.noc .noc-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
}
body.noc .lede { max-width: 62rem; line-height: 1.5; }
.board-card {
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.board-card:hover { border-color: #334556; }
a.board-link:hover, a.noc-card:hover { transform: translateY(-2px); }
.banner {
  background: linear-gradient(90deg, rgba(62, 198, 255, 0.07), transparent 42%), #141c27;
}
.empty-box {
  background: linear-gradient(180deg, #162231, #141c27);
}
body.noc .content .noc-grid > a.noc-card:nth-child(1) { animation: cardRise 0.35s var(--ease) both; }
body.noc .content .noc-grid > a.noc-card:nth-child(2) { animation: cardRise 0.35s var(--ease) 0.04s both; }
body.noc .content .noc-grid > a.noc-card:nth-child(3) { animation: cardRise 0.35s var(--ease) 0.08s both; }
body.noc .content .noc-grid > a.noc-card:nth-child(4) { animation: cardRise 0.35s var(--ease) 0.12s both; }
body.noc .content .noc-grid > a.noc-card:nth-child(5) { animation: cardRise 0.35s var(--ease) 0.16s both; }
body.noc .content .noc-grid > a.noc-card:nth-child(6) { animation: cardRise 0.35s var(--ease) 0.2s both; }
@keyframes cardRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
body.noc .brand small { padding-left: 2.65rem; }
.ops-stat-grid, .cards {
  gap: 0.85rem;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .guest-hero::before { animation: none !important; }
}

/* Mur caméras — snapshots JPEG */
.cam-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
  margin: 0.85rem 0 1.4rem;
}
.cam-wall-dash { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cam-wall-hist { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.cam-frame img.cam-broken { opacity: 0.35; filter: grayscale(1); }
.cam-tile.cam-fresh,
.cam-theater-main.cam-fresh,
.cam-thumb.cam-fresh {
  box-shadow: 0 0 0 2px rgba(62, 198, 255, 0.55);
  transition: box-shadow 0.35s ease;
}
#cam-direct-fps {
  font-variant-numeric: tabular-nums;
  color: #8ee0b4;
  font-weight: 600;
}
[data-cam-age] { color: #7d93a8 !important; font-size: 0.72rem !important; }
.cam-tile {
  margin: 0;
  background: #0f1620;
  border: 1px solid #243140;
  border-radius: 14px;
  overflow: hidden;
  border-top: 3px solid #3a4d63;
}
.cam-tile.tone-ok { border-top-color: #3dd68c; }
.cam-tile.tone-wait { border-top-color: #e8a13a; }
.cam-tile.tone-warn { border-top-color: #e8a13a; }
.cam-tile.tone-down { border-top-color: #ef5b5b; }
.cam-frame {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  background: #0a1018;
  min-height: 160px;
}
.cam-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0a1018;
}
.cam-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.8rem 0.75rem;
  background: linear-gradient(180deg, rgba(15, 22, 32, 0.2), #141c27);
  border-top: 1px solid #243140;
}
.cam-meta strong {
  font-family: var(--font-display, Syne, sans-serif);
  font-size: 0.95rem;
  color: #e7eef6;
}
.cam-meta span {
  font-size: 0.78rem;
  color: #9aabbd;
}
.cam-meta .cam-err {
  color: #f0a0a0;
  line-height: 1.35;
}
.cam-import {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #243140;
  border-radius: 12px;
  background: #141c27;
}
.cam-import summary {
  cursor: pointer;
  color: #e7eef6;
  font-weight: 600;
}
.cam-import .stack-form { margin-top: 0.75rem; }
.cam-live-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: #b42318;
  color: #fff;
}
.cam-live-badge.on { background: #b42318; animation: camPulse 1.4s ease-in-out infinite; }
.cam-live-badge.agent { background: #1d4f7a; letter-spacing: 0.06em; }
.cam-frame { position: relative; }
@keyframes camPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
body.mode-camera-live .content,
body.mode-cameras .content { max-width: none; }
body.mode-camera-live .content { padding: 0.75rem 1rem 1.5rem; }
body.mode-cameras .lede { max-width: 62rem; width: 100%; }
.cam-theater { display: flex; flex-direction: column; gap: 0.75rem; min-height: 70vh; }
.cam-theater-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
  color: #e7eef6;
}
.cam-theater-bar a { color: #9ad7ff; }
.cam-theater-main {
  background: #05080d;
  border: 1px solid #243140;
  border-radius: 14px;
  overflow: hidden;
  min-height: 52vh;
}
.cam-theater-main img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #05080d;
}
.cam-theater-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 140px);
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}
.cam-thumb {
  appearance: none;
  border: 1px solid #243140;
  background: #141c27;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: #c5d0dc;
}
.cam-thumb.on { border-color: #3ec6ff; box-shadow: 0 0 0 1px #3ec6ff55; }
.cam-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0a1018;
}
.cam-thumb span {
  display: block;
  padding: 0.35rem 0.45rem;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cam-preview-live img { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .cam-live-badge.on { animation: none; }
}
.cam-preview {
  margin: 0.75rem 0 1.1rem;
  background: #0a1018;
  border: 1px solid #243140;
  border-radius: 14px;
  overflow: hidden;
  max-width: 720px;
}
.cam-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #0a1018;
}
.pill.tone-ok { background: #173528; color: #8ee0b4; }
.pill.tone-wait, .pill.tone-warn { background: #3a2e16; color: #f0c77a; }
.pill.tone-down { background: #3a1a1a; color: #f0a0a0; }
body.noc .pill { border-radius: 6px; }
button.danger, .button.danger {
  background: #5c2424;
  border-color: #8a3a3a;
  color: #f3d2d2;
}
.stack-form .row-actions { margin-top: 0.75rem; }
.inline-form { display: inline-block; margin-right: 0.5rem; margin-top: 0.75rem; }
@media (max-width: 720px) {
  .cam-wall { grid-template-columns: 1fr; }
}

/* Supervision réseau (appareils / routeurs) */
.mgmt-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1.25rem;
}
.mgmt-tile {
  border: 1px solid #243140;
  border-radius: 12px;
  background: linear-gradient(160deg, #121820, #0c1118);
  overflow: hidden;
}
.mgmt-tile.tone-ok { border-color: #2a6b4a; }
.mgmt-tile.tone-warn, .mgmt-tile.tone-wait { border-color: #7a5a22; }
.mgmt-tile.tone-down { border-color: #7a3030; }
.mgmt-frame {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 0.9rem 1rem;
  color: inherit;
  text-decoration: none;
  position: relative;
  min-height: 9.5rem;
}
.mgmt-kind {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7f93a8;
}
.mgmt-name { font-size: 1rem; color: #e8eef5; }
.mgmt-host { font-family: ui-monospace, monospace; font-size: 0.82rem; color: #9ad7ff; }
.mgmt-metrics {
  display: flex;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: #a8b6c5;
  margin-top: 0.35rem;
}
.mgmt-title {
  font-size: 0.78rem;
  color: #c5d0dc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mgmt-age { font-size: 0.7rem; color: #7f93a8; }
.mgmt-frame .cam-live-badge { position: absolute; top: 0.55rem; right: 0.55rem; }
.mgmt-theater { display: flex; flex-direction: column; gap: 0.75rem; min-height: 70vh; }
.mgmt-theater-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem;
}
.mgmt-theater-bar a { color: #9ad7ff; }
.mgmt-theater-main {
  border: 1px solid #243140;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 0%, #152033, #0a1018 55%);
  padding: 2rem 1.5rem;
  min-height: 42vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}
.mgmt-theater-main.tone-ok { box-shadow: inset 0 0 0 1px #2a6b4a66; }
.mgmt-theater-main.tone-warn, .mgmt-theater-main.tone-wait { box-shadow: inset 0 0 0 1px #7a5a2266; }
.mgmt-theater-main.tone-down { box-shadow: inset 0 0 0 1px #7a303066; }
.mgmt-big-host { font-family: ui-monospace, monospace; font-size: 1.1rem; color: #9ad7ff; margin: 0; }
.mgmt-big-code { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; margin: 0; color: #e8eef5; }
.mgmt-big-title { font-size: 1.15rem; margin: 0; color: #c5d0dc; }
.mgmt-big-meta { margin: 0; color: #7f93a8; font-size: 0.9rem; }
.mgmt-theater-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 160px);
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}
.mgmt-thumb {
  appearance: none;
  border: 1px solid #243140;
  background: #141c27;
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  cursor: pointer;
  text-align: left;
  color: #c5d0dc;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mgmt-thumb.on { border-color: #3ec6ff; box-shadow: 0 0 0 1px #3ec6ff55; }
.mgmt-thumb .mgmt-kind { font-size: 0.65rem; }
.mgmt-thumb strong { font-size: 0.85rem; color: #e8eef5; }
.mgmt-thumb span:last-child { font-size: 0.72rem; font-family: ui-monospace, monospace; color: #9ad7ff; }
.mgmt-wall-dash { margin-top: 0.5rem; }
@media (max-width: 720px) {
  .mgmt-wall { grid-template-columns: 1fr; }
}
