:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --line: #e4e7ec;
  --line-soft: #eef0f3;
  --text: #1d2129;
  --text-2: #4b5563;
  --text-3: #8a93a3;
  --side: #1c1d20;
  --side-2: #2b2d31;
  --side-text: #e9eaec;
  --nerve: #4da3ff;
  --brand: #e1251b;
  --primary: #3b6fe0;
  --primary-ink: #2a58c4;
  --ok: #1f8f4e;
  --ok-bg: #e7f6ec;
  --crit: #e1251b;
  --crit-bg: #fdecea;
  --off: #6b7280;
  --off-bg: #eff1f4;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 24px 64px rgba(16, 24, 40, .22), 0 4px 12px rgba(16, 24, 40, .08);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: inherit; }

/* Masthead ------------------------------------------------------------------------ */
.masthead {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; flex-direction: column; line-height: 1.05; min-width: 196px; }
.wm-top { font: 700 17px/1 var(--font-display); letter-spacing: -.2px; }
.wm-bottom { font: 700 17px/1.15 var(--font-display); letter-spacing: -.2px; }
.module-picker {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 12px 0 14px;
  background: #eef0f3; border-radius: 6px;
  color: var(--text-2); font-weight: 500;
}
.module-picker svg { width: 18px; height: 18px; }
.module-picker .caret { width: 16px; margin-left: 18px; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--text-2); padding-left: 24px; border-left: 1px solid var(--line); height: 32px; }
.crumbs i { font-style: normal; color: var(--text-3); }
.crumbs b { color: var(--text); font-weight: 600; }
.mast-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.mast-icon { width: 22px; height: 22px; color: var(--text-2); }
.user { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.user b { font-weight: 600; font-size: 13.5px; }
.user span { color: var(--text-3); font-size: 12px; }
.avatar {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #263247; color: #fff; font-size: 12px; font-weight: 600;
}
.live {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--off-bg); color: var(--off); font-size: 12.5px; font-weight: 600;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.live.ok { background: var(--ok-bg); color: var(--ok); }
.live.ok .live-dot { animation: pulse 2s ease-out infinite; }
.live.down { background: var(--crit-bg); color: var(--crit); }

/* Shell --------------------------------------------------------------------------- */
.shell { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
  position: sticky; top: 64px; align-self: flex-start;
  display: flex; flex-direction: column;
  width: 264px; flex: none; height: calc(100vh - 64px);
  background: var(--side); color: var(--side-text);
  padding: 8px 0 16px;
}
.burger { display: flex; flex-direction: column; gap: 4px; padding: 18px 26px 22px; }
.burger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; }
.nav-group {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 24px; font-size: 15.5px; font-weight: 600;
}
.nav-group svg { width: 22px; height: 22px; flex: none; }
.nav-group.muted { color: #c9cbd0; }
.nav-group.open { background: var(--side-2); border-left: 3px solid #fff; padding-left: 21px; }
.nav-group.bottom { margin-top: auto; }
.nerve {
  padding: 16px 24px 10px;
  color: var(--nerve); font: 500 26px/1.15 var(--font-display); letter-spacing: -.3px;
}
.nav-item {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1px 12px; padding: 10px 14px 10px 46px; border-radius: 6px;
  text-decoration: none; color: #d6d8dc; font-weight: 600; font-size: 14.5px;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active { background: rgba(77, 163, 255, .16); color: #fff; box-shadow: inset 3px 0 0 var(--nerve); }
.nav-badge {
  min-width: 22px; padding: 1px 7px; border-radius: 999px;
  background: var(--crit); color: #fff; font-size: 12px; text-align: center;
}

/* Content ------------------------------------------------------------------------- */
.content { flex: 1; min-width: 0; padding: 28px 32px 48px; }
.page { animation: rise .25s ease-out; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
h1 { margin: 0; font: 600 30px/1.15 var(--font-display); letter-spacing: -.4px; }
.sub { margin: 6px 0 0; color: var(--text-2); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.kpi:hover { border-color: #cfd5de; transform: translateY(-1px); }
.kpi.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 111, 224, .15); }
.kpi-label { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; font-size: 13px; }
.kpi-label i { width: 9px; height: 9px; border-radius: 50%; }
.kpi[data-tone="ok"] i { background: var(--ok); }
.kpi[data-tone="crit"] i { background: var(--crit); }
.kpi[data-tone="off"] i { background: #a3aab6; }
.kpi-value { font: 600 30px/1.1 var(--font-display); letter-spacing: -.5px; }
.kpi[data-tone="crit"].hot { border-color: #f5b5b0; background: linear-gradient(180deg, #fff 0%, #fff6f5 100%); }
.kpi[data-tone="crit"].hot .kpi-value { color: var(--crit); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

.toolbar { display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.spacer { flex: 1; }
.search {
  display: flex; align-items: center; gap: 8px; width: 340px; max-width: 100%;
  height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  color: var(--text-3);
}
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 111, 224, .14); }
.search svg { width: 17px; height: 17px; flex: none; }
.search input { flex: 1; border: 0; outline: 0; font: inherit; color: var(--text); background: transparent; min-width: 0; }
.tool {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px;
  color: var(--primary-ink); font-weight: 600; text-decoration: none;
}
.tool:hover { background: #eef3fd; }
.tool svg { width: 18px; height: 18px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px 5px 12px; border-radius: 999px;
  background: #eef3fd; color: var(--primary-ink); font-weight: 600; font-size: 13px;
}
.filter-chip button { border: 0; background: none; cursor: pointer; padding: 0 4px; font-size: 15px; line-height: 1; color: inherit; }

.segmented { display: inline-flex; padding: 3px; border-radius: 8px; background: #eef0f3; }
.segmented button {
  border: 0; background: none; padding: 6px 14px; border-radius: 6px; cursor: pointer;
  color: var(--text-2); font-weight: 600; font-size: 13px;
}
.segmented button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: var(--shadow); }

/* Tables -------------------------------------------------------------------------- */
.grid { width: 100%; border-collapse: collapse; }
.grid th {
  padding: 14px 24px; text-align: left; white-space: nowrap;
  background: #f8f9fb; border-bottom: 1px solid var(--line);
  color: var(--text-2); font-size: 13.5px; font-weight: 600; letter-spacing: .1px;
}
.grid td { padding: 22px 24px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; font-size: 15.5px; }
.grid .cell-sub { font-size: 13.5px; margin-top: 2px; }
.grid tbody tr { cursor: pointer; transition: background .12s; }
.grid tbody tr:hover { background: #f6f8fc; }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid tr.is-damage { background: #fffafa; }
.grid tr.is-damage:hover { background: #fff1f0; }
.grid tr.flash { animation: flash 2.4s ease-out; }
.grid tr.group td {
  padding: 12px 24px; background: #f8f9fb; border-bottom: 1px solid var(--line);
  color: var(--text-2); font-size: 12.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.grid tr.group { cursor: default; }
.grid tr.group:hover { background: none; }
.grid tbody tr.group:not(:first-child) td { border-top: 1px solid var(--line); }
.group-dot { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; vertical-align: 1px; }
.group.on .group-dot { background: var(--ok); }
.group.off .group-dot { background: #a3aab6; }
.group-count { margin-left: 10px; padding: 1px 8px; border-radius: 999px; background: #e4e7ec; color: var(--text-2); letter-spacing: 0; }
.grid tr.is-offline td { color: var(--text-3); }
.grid tr.is-offline .name { color: var(--text-2); }
.grid tr.is-offline .ev { opacity: .65; }
.grid .cell-sub.known-damage { color: var(--crit); }
.conn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.conn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.conn.on { color: var(--ok); }
.conn.on::before { background: var(--ok); animation: pulse 2s ease-out infinite; }
.conn.off { color: var(--text-2); }
.conn.off::before { background: #a3aab6; }
.grid .empty td { cursor: default; padding: 48px 18px; text-align: center; color: var(--text-3); }
.grid .empty:hover { background: none; }
.name { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.name .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--crit); flex: none; }
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.cell-sub { display: block; color: var(--text-3); font-size: 12.5px; }
.table-foot { padding: 14px 24px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 13px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  font-weight: 600; font-size: 14px;
}
.pill.healthy { background: var(--ok-bg); color: var(--ok); }
.pill.healthy::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.damage { background: var(--crit); color: #fff; padding: 8px 20px; box-shadow: 0 2px 8px rgba(225, 37, 27, .28); }
.pill.offline { background: var(--off-bg); color: var(--off); }
.pill.offline::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ev { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.ev::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.ev.disconnected { color: var(--crit); }
.ev.disconnected::before { background: var(--crit); box-shadow: 0 0 0 3px var(--crit-bg); }
.ev.connected { color: var(--ok); }
.ev.connected::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }

/* Device page --------------------------------------------------------------------- */
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--primary-ink); }
.back {
  display: inline-flex; align-items: center; gap: 6px; margin: -6px 0 14px -6px; padding: 4px 8px 4px 4px;
  border-radius: 6px; color: var(--text-2); font-weight: 600; text-decoration: none;
}
.back:hover { background: #e9ecf1; color: var(--text); }
.back svg { width: 18px; height: 18px; }
.device-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.device-ident { display: flex; align-items: center; gap: 16px; min-width: 0; }
.device-glyph {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--text-2); box-shadow: var(--shadow);
}
.device-glyph svg { width: 26px; height: 26px; }
.device-head .sub { margin-top: 4px; }

.tabs { display: flex; gap: 4px; margin: 22px 0 20px; border-bottom: 1px solid var(--line); }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px 12px; color: var(--text-3); font-weight: 600; text-decoration: none; cursor: pointer;
}
.tab:hover { color: var(--text-2); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--primary);
}
.tab-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #e4e7ec; color: var(--text-2); font-size: 12px; text-align: center; }
.tab-count.crit { background: var(--crit-bg); color: var(--crit); }
.tab-panel { animation: rise .25s ease-out; }

.overview-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.health-card { padding: 26px 28px; }
.figure-card { padding: 18px; display: flex; flex-direction: column; justify-content: center; }
.dh-maker { font: 700 15px/1 var(--font-display); letter-spacing: .4px; color: var(--text-2); }
.dh-status { margin-top: 14px; font: 600 32px/1.1 var(--font-display); letter-spacing: -.4px; }
.dh-status.damage { color: var(--crit); }
.dh-status.healthy { color: var(--ok); }
.dh-status.offline { color: var(--off); }
.dh-location { margin-top: 14px; font-size: 18px; line-height: 1.35; }
.dh-location b { display: block; font-weight: 700; }
.dh-facts { display: grid; grid-template-columns: auto 1fr; gap: 7px 18px; margin: 22px 0 0; font-size: 13.5px; }
.dh-facts dt { color: var(--text-3); }
.dh-facts dd { margin: 0; font-weight: 600; }
.dh-facts dd.crit { color: var(--crit); }

.dh-figure { position: relative; margin: 0; }
.dh-figure .frame {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; height: 300px; padding: 12px;
  border-radius: 10px; background: radial-gradient(ellipse at 50% 55%, #ffffff 0%, #f3f5f8 70%);
}
.dh-figure .view { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.dh-figure .photo { position: relative; max-width: 100%; }
.dh-figure img { display: block; max-width: 100%; max-height: 270px; width: auto; mix-blend-mode: multiply; }  /* product shots are on white */
.dh-figure .frame.multi img { max-height: 246px; }
.view-label { color: var(--text-3); font-size: 12px; font-weight: 600; }
.cover-mark {
  position: absolute; border-radius: 6px; border: 2px dashed var(--crit);
  background: rgba(225, 37, 27, .18); animation: cover-pulse 1.8s ease-in-out infinite;
}
.screw-mark {
  position: absolute; display: grid; place-items: center; width: 18px; height: 18px; transform: translate(-50%, -50%);
  border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; line-height: 1;
  background: var(--ok); box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}
.screw-mark[data-tone="off"] { background: #a3aab6; }
.screw-mark[data-tone="crit"] { width: 32px; height: 32px; font-size: 13px; background: var(--crit); box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 0 12px rgba(225, 37, 27, .6); }
.screw-mark[data-tone="crit"]::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--crit);
  animation: ripple 1.8s ease-out infinite;
}
.dh-figure figcaption { margin-top: 8px; text-align: center; color: var(--text-3); font-size: 12px; }
.ring {
  position: absolute; width: 46px; height: 46px; transform: translate(-50%, -50%);
  border: 3px solid var(--crit); border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 0 14px rgba(225, 37, 27, .55);
}
.ring::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 3px solid var(--crit); animation: ripple 1.8s ease-out infinite;
}
.dh-figure .frame.dim img { opacity: .55; filter: grayscale(.4); }
.no-photo { display: grid; place-items: center; gap: 8px; color: var(--text-3); font-size: 13px; }
.no-photo svg { width: 96px; height: 96px; color: #c3c9d2; }

.components { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.component { position: relative; padding: 20px 22px; overflow: hidden; }
.component::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--tone); }
.component[data-tone="ok"] { --tone: var(--ok); --tone-bg: var(--ok-bg); }
.component[data-tone="crit"] { --tone: var(--crit); --tone-bg: var(--crit-bg); border-color: #f5b5b0; }
.component[data-tone="off"] { --tone: #a3aab6; --tone-bg: var(--off-bg); }
.component-top { display: flex; align-items: center; justify-content: space-between; }
.component-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--tone-bg); color: var(--tone); }
.component-icon svg { width: 22px; height: 22px; }
.component h3 { margin: 14px 0 0; font-size: 16px; font-weight: 600; }
.component p { margin: 2px 0 0; color: var(--text-3); font-size: 13.5px; }
.component-foot { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--text-3); font-size: 13px; }
.component-foot strong { color: var(--text-2); font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: var(--tone-bg); color: var(--tone); font-weight: 600; font-size: 12.5px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.timeline { padding: 4px 0; }
.day + .day { border-top: 1px solid var(--line); }
.day-label { padding: 14px 22px 6px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text-3); }
.event-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 22px; }
.event-row.new { animation: flash 2.4s ease-out; }
.event-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.event-icon svg { width: 18px; height: 18px; }
.event-row.disconnected .event-icon { background: var(--crit-bg); color: var(--crit); }
.event-row.connected .event-icon { background: var(--ok-bg); color: var(--ok); }
.event-title { display: block; font-weight: 600; }
.event-desc { display: block; color: var(--text-3); font-size: 13px; }
.event-time { text-align: right; font-variant-numeric: tabular-nums; }
.event-time strong { display: block; font-weight: 600; color: var(--text-2); }
.event-time span { color: var(--text-3); font-size: 12.5px; }
.empty-state { padding: 56px 24px; text-align: center; color: var(--text-3); }
.empty-state b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

.system { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 20px; align-items: start; }
.spec-card { padding: 20px 24px 8px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.card-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.small { font-size: 12.5px; }
.spec { margin: 0; }
.spec div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.spec div:first-child { border-top: 0; }
.spec dt { color: var(--text-3); }
.spec dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.metric { display: flex; flex-direction: column; min-height: 148px; padding: 18px 20px; }
.metric-label { display: flex; justify-content: space-between; color: var(--text-3); font-size: 13px; font-weight: 600; }
.metric-value { margin-top: 6px; font: 600 28px/1.25 var(--font-display); letter-spacing: -.4px; }
.metric-sub { color: var(--text-3); font-size: 13px; }
.spark { width: 100%; height: 52px; margin-top: auto; padding-top: 10px; overflow: visible; }
.meter { height: 8px; margin-top: auto; border-radius: 999px; background: #eaecf0; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--tone, var(--primary)); transition: width .6s ease; }
.meter[data-tone="ok"] { --tone: var(--ok); }
.meter[data-tone="warn"] { --tone: #dc6803; }
.meter[data-tone="crit"] { --tone: var(--crit); }
.net-key { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 12px; }
.net-key i { display: inline-block; width: 10px; height: 3px; margin-left: 6px; border-radius: 2px; }
.net-key .rx { background: #2563eb; }
.net-key .tx { background: #7a5af8; }

/* Toasts -------------------------------------------------------------------------- */
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; gap: 12px; }
.toast {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  width: 400px; padding: 16px 16px 16px 18px; border-radius: 10px;
  background: #fff; box-shadow: var(--shadow-lg); border-left: 4px solid var(--crit);
  animation: slide .3s cubic-bezier(.2, .9, .3, 1.1);
}
.toast-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--crit-bg); color: var(--crit); }
.toast-icon svg { width: 20px; height: 20px; }
.toast b { display: block; color: var(--crit); }
.toast span { color: var(--text-2); font-size: 13px; }
.toast button { border: 0; background: #eef3fd; color: var(--primary-ink); font-weight: 600; padding: 8px 12px; border-radius: 6px; cursor: pointer; }
.toast.leaving { animation: slide-out .25s ease-in forwards; }

/* Motion -------------------------------------------------------------------------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 143, 78, .5); } 100% { box-shadow: 0 0 0 7px rgba(31, 143, 78, 0); } }
@keyframes cover-pulse { 0%, 100% { background: rgba(225, 37, 27, .12); } 50% { background: rgba(225, 37, 27, .3); } }
@keyframes ripple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0%, 30% { background: #ffe3e0; } 100% { background: transparent; } }
@keyframes slide { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes slide-out { to { opacity: 0; transform: translateX(24px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 1280px) {
  .crumbs { display: none; }
  .grid.devices th:nth-child(5), .grid.devices td:nth-child(5) { display: none; }
}
@media (max-width: 1000px) {
  .sidebar { display: none; }
  .module-picker, .user { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-top, .system, .components { grid-template-columns: 1fr; }
  .content { padding: 20px 16px 40px; }
}
