@font-face {
  font-family: Manrope;
  src: url("/assets/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --ink: #141a25;
  --muted: #687486;
  --blue: #2164ed;
  --accent: #2164ed;
  --paper: #f5f7fb;
  --line: #e2e7ef;
  --normal: #20734e;
  --normal-bg: #eaf6ef;
  --warn: #9b5815;
  --warn-bg: #fff3de;
  --danger: #b33850;
  --danger-bg: #fff0f3;
  --gray-bg: #eef1f6;
  --radius: 17px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    13px/1.55 Manrope,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #4c85f7;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  left: 12px;
  top: -100px;
  background: var(--ink);
  color: #fff;
  padding: 12px;
  z-index: 99;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sidebar {
  width: 238px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  background: #11151d;
  color: #c1c9d7;
  padding: 26px 18px 18px;
  z-index: 10;
}
.brand {
  display: block;
  margin: 0 14px 32px;
}
.brand img {
  display: block;
  width: 118px;
  height: auto;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  border: 1px solid #2b313d;
  border-radius: 11px;
  margin-bottom: 30px;
  background: #181d27;
}
.workspace-symbol {
  width: 30px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #363e4d;
  border-radius: 7px;
  color: #cdd9ef;
  font-size: 19px;
  flex-shrink: 0;
}
.workspace strong {
  display: block;
  font-size: 11px;
  color: #f1f5fb;
  font-weight: 600;
}
.workspace small {
  display: block;
  font-size: 9px;
  margin-top: 2px;
  color: #9ca9bc;
}
.nav-caption {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #778295;
  margin: 0 13px 12px;
  font-weight: 700;
}
nav {
  display: grid;
  gap: 6px;
}
.nav-item {
  display: flex;
  gap: 11px;
  align-items: center;
  text-align: left;
  border: 0;
  background: transparent;
  color: #a7b2c5;
  font-size: 11px;
  font-weight: 500;
  border-radius: 9px;
  padding: 12px 13px;
  min-height: 44px;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-item svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.nav-item.active {
  background: #233148;
  color: #fff;
}
.nav-item.active svg {
  color: #76a8ff;
}
.nav-item:hover {
  background: #202836;
  color: #fff;
}
.nav-item b {
  margin-left: auto;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #3e506d;
  color: #d9e8ff;
}
.side-note {
  margin: auto 12px 31px;
  padding-top: 44px;
}
.side-line {
  display: block;
  width: 26px;
  height: 3px;
  background: #5996ff;
  border-radius: 3px;
  margin-bottom: 17px;
}
.side-note strong {
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.4px;
  font-weight: 500;
  color: #f4f7fb;
}
.side-note p {
  font-size: 10px;
  line-height: 1.85;
  color: #8c9ab0;
  margin-top: 12px;
}
.side-help {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #b0bbce;
  margin: 0 12px 19px;
}
.side-help > span:first-child {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid #596477;
  border-radius: 50%;
  font-size: 10px;
}
.side-help > span:last-child {
  margin-left: auto;
}
.side-footer {
  border-top: 1px solid #2a303c;
  padding: 17px 12px 0;
  font-size: 9px;
  color: #7f8da2;
  display: flex;
  gap: 7px;
  align-items: center;
}
.version-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #73a4fb;
}
.shell {
  margin-left: 238px;
  min-width: 0;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 34px;
  gap: 16px;
}
.breadcrumbs {
  font-size: 11px;
  color: var(--muted);
}
.breadcrumbs > span {
  margin: 0 12px;
  color: #b3bdcc;
}
.breadcrumbs strong {
  font-weight: 600;
  color: #454f60;
}
.top-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.mode-badge {
  font-size: 8px;
  letter-spacing: 0.6px;
  font-weight: 700;
  background: #edf3ff;
  color: #3f69b3;
  padding: 6px 9px;
  border-radius: 5px;
}
.mode-badge.real {
  background: var(--normal-bg);
  color: var(--normal);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 39px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button.ghost {
  background: #fff;
  border-color: var(--line);
}
.button.ghost:hover {
  background: #eef3fc;
  border-color: #c3d3ee;
}
.button.dark {
  background: #172231;
  color: #fff;
}
.button.dark:hover {
  background: #293c57;
}
.button.small {
  font-size: 10px;
  min-height: 35px;
  padding: 8px 12px;
}
.button.primary {
  background: var(--blue);
  color: #fff;
}
.button.primary:hover {
  background: #164fce;
}
.button.full {
  width: 100%;
}
.button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 10px;
  font-weight: 600;
  padding: 6px;
}
.heading-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.customize-button[aria-pressed="true"] {
  color: #1758d5;
  border-color: #adc5f1;
  background: #e9f1ff;
}
.customize-button > span {
  font-size: 18px;
  line-height: 1;
}
main {
  padding: 26px 34px 0;
  max-width: 1720px;
  margin: auto;
}
.demo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #edf3ff;
  border: 1px solid #d9e5fb;
  border-radius: 10px;
  padding: 11px 15px;
  color: #4a6288;
  font-size: 10px;
  margin-bottom: 28px;
}
.demo-banner strong {
  font-weight: 700;
  color: #2b4d86;
}
.banner-icon {
  display: grid;
  place-items: center;
  border: 1px solid #7a9cd5;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 10px;
  flex-shrink: 0;
}
.demo-pill {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-left: auto;
  border: 1px solid #c7d8f5;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.connection-error {
  border: 1px solid #e4bdc5;
  background: var(--danger-bg);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  color: var(--danger);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 0 0 28px;
}
.eyebrow {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #7b8799;
  margin-bottom: 8px;
}
h1 {
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.28;
  letter-spacing: -1.15px;
  font-weight: 600;
  margin: 0;
}
h2 {
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: -0.2px;
  font-weight: 650;
  margin: 0;
}
.page-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 9px 0 0;
  max-width: 650px;
  line-height: 1.7;
}
.section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 29px 0 15px;
}
.section-row h2 {
  font-size: 14px;
}
.section-row h2 > span {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 9px;
  height: 20px;
  min-width: 20px;
  margin-left: 7px;
  color: var(--muted);
  background: #fff;
}
.filters,
.segmented {
  display: flex;
  gap: 2px;
  background: #e9edf4;
  border: 1px solid #e3e8f1;
  border-radius: 8px;
  padding: 3px;
}
.filters button,
.segmented button {
  border: 0;
  background: transparent;
  font-size: 9px;
  color: #657187;
  padding: 6px 10px;
  border-radius: 5px;
  white-space: nowrap;
  min-height: 28px;
}
.filters button.selected,
.segmented button.selected {
  background: #fff;
  box-shadow: 0 1px 3px #15274012;
  color: #243b60;
  font-weight: 700;
}
.segmented button {
  padding: 4px 8px;
  min-height: 25px;
}
.summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.summary-item,
.lead-metric {
  position: relative;
  min-width: 0;
  min-height: 135px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 19px 21px;
  box-shadow: 0 2px 3px #19284202;
}
.summary-label {
  font-size: 10px;
  font-weight: 600;
  color: #626f82;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.metric-icon {
  font-size: 15px;
  color: #9ca9bd;
}
.summary-number {
  display: block;
  margin-top: 13px;
  font-size: 31px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.3px;
  font-variant-numeric: tabular-nums;
}
.summary-sub {
  display: block;
  font-size: 9px;
  color: #8994a6;
  margin-top: 8px;
}
.summary-item[data-widget-id="normal"] .metric-icon {
  color: var(--normal);
}
.summary-item[data-widget-id="attention"] .metric-icon {
  color: var(--warn);
}
.summary-item[data-widget-id="unread"] .metric-icon {
  color: #7e8b9f;
}
.device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 23px;
}
.device-card {
  position: relative;
  min-width: 0;
  min-height: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.device-card:hover {
  border-color: #8fb0ed;
  box-shadow: 0 4px 14px #1b45800a;
}
.device-card.selected {
  border-color: #5283e7;
  box-shadow: 0 0 0 1px #5283e72a;
}
.device-card.selected:after {
  position: absolute;
  top: 19px;
  right: 19px;
  content: "✓";
  font-size: 9px;
  display: grid;
  place-items: center;
  background: #edf3ff;
  color: #2164ed;
  width: 17px;
  height: 17px;
  border-radius: 50%;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 22px;
}
.device-name {
  font-size: 11px;
  font-weight: 650;
}
.device-location {
  font-size: 9px;
  color: #8390a2;
  margin-top: 5px;
}
.status-badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border-radius: 5px;
  background: var(--gray-bg);
  color: #6e7d91;
  font-size: 8px;
  font-weight: 650;
  white-space: nowrap;
  padding: 4px 6px;
}
.status-badge:before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.status-normal {
  color: var(--normal);
  background: var(--normal-bg);
}
.status-alert,
.status-pending {
  color: var(--warn);
  background: var(--warn-bg);
}
.status-sensor_fault {
  color: var(--danger);
  background: var(--danger-bg);
}
.temperature {
  font-size: 37px;
  font-weight: 550;
  letter-spacing: -1.7px;
  line-height: 1.15;
  margin: 22px 0 15px;
  font-variant-numeric: tabular-nums;
}
.temperature span {
  font-size: 16px;
  letter-spacing: -0.5px;
  margin-left: 6px;
  color: #8391a4;
}
.temperature.muted {
  color: #9aa5b7;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #edf0f6;
  padding-top: 11px;
  font-size: 8px;
  color: #8390a2;
}
.card-arrow {
  position: absolute;
  bottom: 55px;
  right: 23px;
  color: #a4b0c3;
  font-size: 20px;
}
.device-card.selected .card-arrow {
  color: var(--blue);
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.widget-wide {
  grid-column: span 2;
}
.widget-full {
  grid-column: 1/-1;
}
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 2px 3px #19284202;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 22px 17px;
}
.panel-heading .eyebrow {
  font-size: 7px;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}
.chart-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 22px;
  color: #8995a7;
  font-size: 8px;
}
.line-key {
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}
.range-key {
  height: 9px;
  width: 9px;
  background: #edf3ff;
  border-radius: 2px;
  margin-left: 12px;
}
.chart-container {
  height: 250px;
  padding: 12px 14px 0;
}
.chart-container svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 22px;
  border-top: 1px solid #edf1f7;
  padding: 14px 0;
  color: #8995a7;
  font-size: 8px;
}
.chart-footer span:first-child {
  color: #587cb9;
}
.chart-empty {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 25px;
  color: var(--muted);
  font-size: 11px;
  gap: 7px;
}
.chart-empty strong {
  color: #485770;
  font-size: 13px;
  font-weight: 600;
}
.equipment-summary {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 22px 5px;
}
.equipment-mark {
  display: grid;
  place-content: center;
  border: 1px solid #dce7f9;
  border-radius: 9px;
  background: #f1f6ff;
  color: #3973da;
  font-size: 24px;
  min-width: 35px;
  height: 35px;
}
.equipment-summary strong {
  font-size: 10px;
  font-weight: 600;
}
.equipment-summary p {
  font-size: 9px;
  color: #8995a7;
  margin: 5px 0 0;
  line-height: 1.7;
}
dl {
  margin: 16px 22px 22px;
  font-size: 10px;
}
dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f7;
}
dt {
  color: #8390a2;
}
dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: #4e5d73;
  overflow-wrap: anywhere;
}
.equipment-panel > .button {
  width: calc(100% - 44px);
  margin: 0 22px 22px;
}
.events-panel {
  margin-bottom: 0;
}
.event-row {
  display: grid;
  grid-template-columns: 32px minmax(130px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid #edf1f7;
}
.event-symbol {
  height: 30px;
  width: 30px;
  border-radius: 8px;
  display: grid;
  place-content: center;
  font-size: 15px;
  color: var(--warn);
  background: var(--warn-bg);
}
.event-symbol.offline {
  color: #7c879b;
  background: var(--gray-bg);
}
.event-symbol.sensor_fault {
  color: var(--danger);
  background: var(--danger-bg);
}
.event-title {
  font-size: 10px;
  font-weight: 650;
}
.event-desc {
  font-size: 9px;
  line-height: 1.6;
  color: #8995a7;
  margin-top: 3px;
  max-width: 600px;
  overflow-wrap: anywhere;
}
.event-date {
  font-size: 9px;
  color: #8995a7;
  white-space: nowrap;
}
.event-action {
  border: 1px solid #d8e3f4;
  background: #fff;
  color: #4574bc;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 9px;
  min-height: 32px;
}
.event-action:hover {
  background: #edf3ff;
}
.event-ack {
  font-size: 8px;
  color: #76849a;
}
.empty {
  padding: 38px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  grid-column: 1/-1;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.settings-card {
  padding: 22px;
}
.settings-card h2 {
  margin-top: 15px;
}
.settings-card p {
  font-size: 10px;
  color: #8390a2;
}
.settings-card dl {
  margin: 20px 0;
}
.select-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}
select {
  max-width: 210px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  color: #45556d;
  font-size: 10px;
  padding: 8px 10px;
  min-height: 35px;
}
.footnote {
  padding: 18px 0;
  color: #8a95a7;
  font-size: 9px;
  max-width: 760px;
  line-height: 1.75;
}
.main-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 20px 0 26px;
  margin-top: 32px;
  font-size: 8px;
  color: #99a3b3;
}
.main-footer b {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: #727f92;
  margin-right: 12px;
}
.panel-subtitle {
  font-size: 10px;
  color: #8995a7;
  margin: 6px 0 0;
}
.record-count,
.tiny-chip {
  font-size: 8px;
  color: #8995a7;
  white-space: nowrap;
}
.tiny-chip {
  letter-spacing: 0.6px;
  font-weight: 600;
}
.lead-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 19px;
}
.lead-metric {
  padding: 18px;
  min-height: 139px;
}
.lead-metric-label {
  font-size: 9px;
  font-weight: 600;
  color: #6f7c91;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.lead-metric strong {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  display: block;
  margin-top: 12px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.lead-metric small {
  display: block;
  font-size: 8px;
  color: #8b97a9;
  margin-top: 9px;
}
.lead-metric[data-widget-id="lead-total"] {
  background: #edf3ff;
  border-color: #cdddf9;
}
.lead-metric[data-widget-id="lead-total"] strong {
  color: #225fc9;
}
.lead-metric[data-widget-id="lead-total"] .lead-metric-label {
  color: #486996;
}
.lead-insights {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.pipeline-content {
  padding: 0 22px 22px;
}
.pipeline-row {
  display: grid;
  grid-template-columns: 95px 1fr 26px;
  align-items: center;
  gap: 12px;
  margin: 11px 0;
  font-size: 10px;
  color: #718097;
}
.pipeline-row strong {
  text-align: right;
  font-weight: 600;
  color: #3e526f;
  font-variant-numeric: tabular-nums;
}
.pipeline-track {
  height: 5px;
  background: #eef2f8;
  border-radius: 6px;
  overflow: hidden;
}
.pipeline-fill {
  height: 100%;
  background: #4e82df;
  border-radius: 6px;
  min-width: 0;
}
.pipeline-row:nth-child(2) .pipeline-fill {
  background: #8aabe4;
}
.pipeline-row:nth-child(3) .pipeline-fill {
  background: #234f9a;
}
.pipeline-row:nth-child(4) .pipeline-fill {
  background: #b5bfce;
}
.pipeline-note {
  font-size: 8px;
  color: #94a0b2;
  margin: 17px 0 0;
  line-height: 1.7;
}
.insight-locked {
  padding: 4px 0 7px;
  color: #8c99ad;
  font-size: 11px;
  line-height: 1.8;
  min-height: 97px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.insight-locked strong {
  font-size: 12px;
  color: #65768e;
  font-weight: 600;
}
.insight-locked .text-button {
  padding-left: 0;
}
.next-actions-panel {
  background: linear-gradient(130deg, #fff 30%, #f5f8fe);
}
.action-symbol {
  display: grid;
  place-items: center;
  height: 28px;
  width: 28px;
  border: 1px solid #dbe6f8;
  border-radius: 8px;
  background: #edf3ff;
  color: #6791d7;
  font-size: 17px;
}
.next-actions-content {
  padding: 0 22px 22px;
}
.next-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e8eef8;
}
.next-action-row:last-of-type {
  border: 0;
}
.next-action-number {
  font-size: 24px;
  color: #3b6ec4;
  letter-spacing: -0.8px;
  min-width: 30px;
  font-variant-numeric: tabular-nums;
}
.next-action-row strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #586d8d;
}
.next-action-row p {
  font-size: 9px;
  line-height: 1.6;
  color: #91a0b6;
  margin: 3px 0 0;
}
.leads-panel {
  min-height: 310px;
}
.lead-toolbar {
  display: flex;
  gap: 14px;
  padding: 0 22px 20px;
  border-bottom: 1px solid var(--line);
}
.lead-toolbar label {
  display: grid;
  gap: 7px;
  flex: 1;
  font-size: 9px;
  color: #718096;
}
.lead-toolbar label:first-child {
  flex: 2;
}
.lead-toolbar input {
  margin: 0;
  background: #fff;
  font-size: 10px;
  min-height: 38px;
}
.lead-toolbar select {
  width: 100%;
  max-width: none;
  min-height: 38px;
}
.leads-empty {
  padding: 52px 24px;
  text-align: center;
}
.leads-empty .lock-symbol {
  width: 40px;
  height: 40px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf3ff;
  color: #4c78bf;
  font-size: 20px;
}
.leads-empty strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #445974;
}
.leads-empty p {
  max-width: 440px;
  margin: 11px auto 20px;
  font-size: 10px;
  line-height: 1.8;
  color: #8795aa;
}
.leads-error {
  margin: 21px 22px;
  padding: 22px;
  border: 1px solid #e4bdc5;
  background: #fff3f5;
  color: #8e2941;
  border-radius: 9px;
}
.leads-error strong {
  font-size: 12px;
}
.leads-error p {
  font-size: 10px;
  margin-bottom: 0;
}
.table-scroll {
  overflow-x: auto;
}
.leads-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 10px;
}
.leads-table th {
  background: #f8fafd;
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
  font-size: 8px;
  font-weight: 650;
  color: #8390a5;
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.leads-table td {
  padding: 20px;
  vertical-align: top;
  border-bottom: 1px solid #edf1f7;
  line-height: 1.7;
  color: #687b97;
}
.leads-table tbody tr:hover {
  background: #fafcff;
}
.leads-table td strong {
  font-size: 10px;
  font-weight: 650;
  display: block;
  color: #455873;
}
.leads-table td:first-child {
  min-width: 200px;
  max-width: 320px;
}
.leads-table td:nth-child(2) {
  min-width: 160px;
}
.leads-table td:last-child {
  min-width: 150px;
}
.leads-table tr:last-child td {
  border-bottom: 0;
}
.contact-line {
  display: block;
  margin-top: 3px;
  color: #91a0b4;
  font-size: 9px;
  overflow-wrap: anywhere;
}
.lead-status-cell select {
  width: 100%;
  max-width: 145px;
  font-size: 9px;
  min-height: 31px;
}
.status-save {
  display: block;
  border: 0;
  background: #2164ed;
  color: #fff;
  border-radius: 5px;
  font-size: 9px;
  padding: 6px 10px;
  margin-top: 7px;
}
.status-save:disabled {
  background: #edf1f7;
  color: #98a4b6;
}
.waitlist-only .workspace {
  margin-bottom: 30px;
}
/* A deliberate edit mode keeps selection, search and form controls separate from drag gestures. */
.widget {
  position: relative;
  min-width: 0;
}
.widget-tools {
  position: absolute;
  right: 10px;
  top: 9px;
  z-index: 5;
  display: flex;
  gap: 3px;
  background: #f4f7fc;
  border: 1px solid #d6e1f3;
  box-shadow: 0 3px 9px #19284208;
  border-radius: 7px;
  padding: 3px;
}
.widget-tools button {
  border: 0;
  background: transparent;
  border-radius: 4px;
  color: #4773bc;
  min-width: 28px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 13px;
}
.widget-tools button:hover {
  background: #e0ebff;
}
.widget-tools button:disabled {
  opacity: 0.3;
}
.widget-tools .widget-handle {
  font-size: 21px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.widget-tools .widget-handle:active {
  cursor: grabbing;
}
.is-customizing > .widget {
  padding-top: 52px;
  outline: 1px dashed #afc4e6;
  outline-offset: 3px;
  overflow: visible;
}
.is-customizing > .panel {
  padding-top: 34px;
}
.is-customizing > .summary-item,
.is-customizing > .lead-metric {
  padding-top: 53px;
}
.widget-lifted {
  z-index: 20 !important;
  box-shadow: 0 20px 50px #1d3a6930 !important;
  will-change: transform;
  user-select: none;
}
.widget-drop-target {
  outline: 2px solid #5488e9 !important;
  outline-offset: 3px;
  background: #f1f6ff !important;
}
.layout-helper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border: 1px dashed #b8ccec;
  background: #eef4ff;
  border-radius: 10px;
  padding: 11px 14px;
  margin: -9px 0 20px;
}
.layout-helper p {
  font-size: 10px;
  color: #60799f;
  margin: 0;
  line-height: 1.7;
}
.layout-helper .text-button {
  white-space: nowrap;
}
dialog {
  position: fixed;
  border: 1px solid #dce5f2;
  border-radius: 17px;
  width: min(480px, calc(100vw - 32px));
  padding: 32px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 120px #10151c35;
}
dialog::backdrop {
  background: #0e182b80;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 25px;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin-top: 12px;
}
dialog p {
  font-size: 11px;
  color: #7d8ca2;
  line-height: 1.8;
}
dialog label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin: 20px 0 8px;
}
.close-button {
  position: absolute;
  right: 16px;
  top: 12px;
  background: none;
  border: 0;
  font-size: 25px;
  color: #8695aa;
}
input,
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafd;
  padding: 11px 12px;
  color: #445872;
  margin-top: 7px;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
.field-help {
  font-size: 9px !important;
}
.form-error {
  color: var(--danger);
  font-size: 11px;
  margin: 10px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.form-grid label {
  font-size: 10px;
}
.toast {
  position: fixed;
  bottom: 23px;
  left: calc(50% + 119px);
  transform: translateX(-50%);
  background: #182a45;
  color: #fff;
  box-shadow: 0 12px 30px #10151c25;
  border-radius: 10px;
  padding: 14px 20px;
  z-index: 30;
  font-size: 11px;
  max-width: calc(100vw - 24px);
}
@media (min-width: 1500px) {
  .chart-container {
    height: 290px;
  }
  .summary-item,
  .lead-metric {
    padding: 23px;
    min-height: 145px;
  }
  .device-card {
    padding: 24px;
    min-height: 205px;
  }
  .card-header {
    padding-right: 20px;
  }
  .temperature {
    font-size: 41px;
  }
  .sidebar {
    width: 250px;
  }
  .shell {
    margin-left: 250px;
  }
  main,
  .topbar {
    padding-left: 42px;
    padding-right: 42px;
  }
}
@media (max-width: 1190px) {
  .sidebar {
    width: 210px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .shell {
    margin-left: 210px;
  }
  main,
  .topbar {
    padding-left: 25px;
    padding-right: 25px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions {
    padding-top: 18px;
  }
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .device-card {
    padding: 18px;
  }
  .device-card.selected:after {
    top: 18px;
    right: 17px;
  }
  .temperature {
    margin-top: 16px;
  }
  .lead-summary {
    gap: 9px;
  }
  .lead-metric {
    padding: 17px 14px;
  }
  .lead-metric-label {
    font-size: 8px;
  }
  .lead-metric small {
    font-size: 7px;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(225px, 1fr);
  }
  .widget-wide {
    grid-column: span 1;
  }
  .summary-item {
    padding: 18px 17px;
  }
  .summary-label {
    font-size: 9px;
  }
  .summary-sub {
    font-size: 8px;
  }
  .top-actions {
    gap: 9px;
  }
  .chart-meta {
    font-size: 7px;
  }
  .event-row {
    grid-template-columns: 30px minmax(130px, 1fr) auto auto;
  }
  .pipeline-row {
    grid-template-columns: 83px 1fr 24px;
    font-size: 9px;
    gap: 8px;
  }
  .tiny-chip {
    font-size: 6px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 188px;
  }
  .shell {
    margin-left: 188px;
  }
  .brand {
    margin-left: 10px;
  }
  .brand img {
    width: 111px;
  }
  .nav-item {
    padding: 12px 10px;
    font-size: 10px;
  }
  .workspace {
    padding: 12px 8px;
  }
  .workspace-symbol {
    display: none;
  }
  .side-note {
    margin-left: 10px;
  }
  .side-note strong {
    font-size: 16px;
  }
  main,
  .topbar {
    padding-left: 20px;
    padding-right: 20px;
  }
  .page-heading {
    display: block;
  }
  .heading-actions {
    padding-top: 17px;
  }
  .summary-row {
    gap: 10px;
  }
  .summary-item {
    padding: 17px 14px;
    min-height: 130px;
  }
  .summary-number {
    font-size: 28px;
  }
  .summary-label {
    font-size: 8px;
    gap: 3px;
  }
  .summary-sub {
    font-size: 7px;
  }
  .device-grid {
    gap: 10px;
  }
  .device-name {
    font-size: 10px;
  }
  .device-card {
    padding: 16px;
  }
  .device-card.selected:after {
    right: 13px;
    top: 13px;
    width: 14px;
    height: 14px;
    font-size: 8px;
  }
  .temperature {
    font-size: 34px;
  }
  .card-bottom {
    flex-direction: column;
    font-size: 7px;
    gap: 3px;
  }
  .card-arrow {
    bottom: 58px;
  }
  .panel-heading {
    padding: 20px 18px 16px;
  }
  .panel-heading h2 {
    font-size: 12px;
  }
  .equipment-summary {
    padding-left: 18px;
    padding-right: 18px;
  }
  .equipment-mark {
    display: none;
  }
  .equipment-panel dl {
    margin-left: 18px;
    margin-right: 18px;
    font-size: 9px;
  }
  .equipment-panel > .button {
    margin-left: 18px;
    margin-right: 18px;
    width: calc(100% - 36px);
    font-size: 9px;
  }
  .lead-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lead-metric {
    min-height: 127px;
  }
  .lead-metric-label {
    font-size: 9px;
  }
  .lead-metric small {
    font-size: 8px;
  }
  .lead-insights {
    gap: 13px;
  }
  .pipeline-content,
  .next-actions-content {
    padding-left: 18px;
    padding-right: 18px;
  }
  .event-row {
    padding: 16px 18px;
    grid-template-columns: 28px minmax(100px, 1fr) auto;
    gap: 9px;
  }
  .event-date {
    grid-column: 2;
    grid-row: 2;
    font-size: 8px;
    margin-top: -6px;
  }
  .event-action,
  .event-ack {
    grid-column: 3;
    grid-row: 1/3;
  }
  .event-title {
    font-size: 9px;
  }
  .event-desc {
    font-size: 8px;
  }
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 68px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 18px;
  }
  .brand {
    margin: 0;
  }
  .brand img {
    width: 94px;
  }
  .workspace,
  .nav-caption,
  .side-note,
  .side-footer,
  .side-help {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
  }
  .nav-item {
    min-height: 38px;
    padding: 8px 10px;
  }
  .nav-item > span,
  .nav-item > b {
    display: none;
  }
  .nav-item svg {
    width: 17px;
    height: 17px;
  }
  .shell {
    margin-left: 0;
  }
  .topbar {
    height: 61px;
    padding: 0 18px;
    gap: 10px;
  }
  .breadcrumbs {
    font-size: 9px;
  }
  .breadcrumbs > span {
    margin: 0 5px;
  }
  .top-actions {
    gap: 7px;
  }
  .top-actions .button {
    font-size: 8px;
    min-height: 31px;
    padding: 7px 9px;
  }
  .mode-badge {
    font-size: 6px;
    letter-spacing: 0.2px;
    padding: 5px 6px;
  }
  main {
    padding: 22px 18px 0;
  }
  .demo-banner {
    padding: 10px 12px;
    font-size: 9px;
    line-height: 1.7;
    margin-bottom: 24px;
    align-items: flex-start;
  }
  .demo-pill {
    display: none;
  }
  .banner-icon {
    margin-top: 2px;
  }
  .page-heading {
    margin-bottom: 23px;
  }
  h1 {
    font-size: 27px;
    letter-spacing: -0.85px;
  }
  .page-heading p {
    font-size: 10px;
    max-width: 400px;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.3px;
  }
  .heading-actions {
    padding-top: 16px;
  }
  .button {
    font-size: 10px;
    min-height: 36px;
    padding: 8px 12px;
  }
  .summary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .summary-item {
    padding: 18px;
    min-height: 127px;
  }
  .summary-label {
    font-size: 10px;
  }
  .summary-number {
    font-size: 30px;
  }
  .summary-sub {
    font-size: 8px;
  }
  .metric-icon {
    font-size: 14px;
  }
  .section-row {
    margin-top: 27px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .section-row h2 {
    font-size: 13px;
  }
  .filters button {
    padding: 5px 9px;
    font-size: 8px;
  }
  .device-grid {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-bottom: 18px;
  }
  .device-card {
    min-height: 166px;
    padding: 18px;
  }
  .card-header {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    padding-right: 15px;
  }
  .device-name {
    font-size: 11px;
  }
  .device-location {
    font-size: 9px;
  }
  .device-card.selected:after {
    right: 14px;
    top: 19px;
  }
  .temperature {
    font-size: 35px;
    margin: 15px 0 12px;
  }
  .card-bottom {
    flex-direction: row;
    font-size: 8px;
  }
  .card-arrow {
    bottom: 51px;
    right: 23px;
  }
  .detail-grid,
  .lead-insights {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .widget-wide,
  .widget-full {
    grid-column: 1/-1;
  }
  .panel-heading {
    padding: 21px 18px 17px;
  }
  .panel-heading h2 {
    font-size: 13px;
  }
  .panel-heading .eyebrow {
    font-size: 7px;
  }
  .chart-container {
    height: 230px;
    padding: 12px 4px 0;
  }
  .chart-meta {
    padding: 0 18px;
    font-size: 7px;
  }
  .chart-footer {
    margin: 0 18px;
    font-size: 7px;
  }
  .chart-footer span:last-child {
    max-width: 120px;
    text-align: right;
  }
  .equipment-mark {
    display: grid;
  }
  .equipment-summary {
    padding-top: 3px;
  }
  .equipment-summary strong {
    font-size: 11px;
  }
  .equipment-summary p {
    font-size: 10px;
  }
  .equipment-panel dl {
    font-size: 10px;
  }
  .equipment-panel > .button {
    font-size: 10px;
  }
  .event-row {
    padding: 16px 18px;
    gap: 9px;
  }
  .event-title {
    font-size: 10px;
  }
  .event-desc {
    font-size: 9px;
  }
  .event-action {
    font-size: 8px;
    padding: 7px 8px;
  }
  .event-ack {
    max-width: 75px;
    text-align: center;
    font-size: 7px;
  }
  .main-footer {
    font-size: 8px;
    flex-direction: column;
    gap: 7px;
    margin-top: 26px;
  }
  .main-footer b {
    font-size: 15px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .select-label {
    flex-direction: column;
    align-items: flex-end;
    font-size: 8px;
    gap: 5px;
  }
  .select-label select {
    max-width: 145px;
    font-size: 9px;
  }
  .lead-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .lead-metric {
    padding: 18px;
    min-height: 128px;
  }
  .lead-metric-label {
    font-size: 10px;
  }
  .lead-metric strong {
    font-size: 30px;
  }
  .lead-metric small {
    font-size: 8px;
  }
  .lead-metric:first-child {
    grid-column: 1/-1;
    min-height: 122px;
  }
  .lead-insights {
    margin-bottom: 19px;
  }
  .pipeline-row {
    grid-template-columns: 95px 1fr 26px;
    font-size: 10px;
    gap: 12px;
  }
  .pipeline-note {
    font-size: 8px;
  }
  .tiny-chip {
    font-size: 7px;
  }
  .pipeline-content,
  .next-actions-content {
    padding-bottom: 20px;
  }
  .next-action-row strong {
    font-size: 11px;
  }
  .next-action-row p {
    font-size: 9px;
  }
  .lead-toolbar {
    flex-direction: column;
    padding: 0 18px 20px;
    gap: 12px;
  }
  .lead-toolbar label {
    font-size: 9px;
  }
  .lead-toolbar input,
  .lead-toolbar select {
    font-size: 11px;
    min-height: 40px;
  }
  .leads-panel .panel-heading {
    align-items: flex-start;
  }
  .panel-subtitle {
    font-size: 9px;
  }
  .record-count {
    font-size: 8px;
  }
  .leads-empty {
    padding: 38px 20px;
  }
  .leads-empty strong {
    font-size: 13px;
  }
  .leads-empty p {
    font-size: 10px;
  }
  .leads-table td,
  .leads-table th {
    padding-left: 17px;
    padding-right: 17px;
  }
  .insight-locked {
    font-size: 10px;
    min-height: 90px;
  }
  .layout-helper {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .layout-helper p {
    font-size: 9px;
  }
  .layout-helper .text-button {
    font-size: 9px;
    padding-left: 0;
  }
  .toast {
    left: 50%;
    width: max-content;
    text-align: center;
    font-size: 10px;
  }
  dialog {
    padding: 27px;
  }
  dialog h2 {
    font-size: 24px;
  }
  .form-grid {
    gap: 0 11px;
  }
  .widget-tools button {
    min-width: 31px;
    height: 30px;
  }
  .is-customizing > .panel {
    padding-top: 39px;
  }
  .is-customizing > .summary-item,
  .is-customizing > .lead-metric {
    padding-top: 57px;
  }
}
@media (max-width: 370px) {
  main,
  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .sidebar {
    padding-left: 14px;
    padding-right: 14px;
    gap: 10px;
  }
  .brand img {
    width: 81px;
  }
  .nav-item {
    padding: 8px;
  }
  .mode-badge {
    display: none;
  }
  .card-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .device-card {
    min-height: 184px;
  }
  .summary-label,
  .lead-metric-label {
    font-size: 9px;
  }
  .summary-item,
  .lead-metric {
    padding-left: 15px;
    padding-right: 15px;
  }
  .panel-heading {
    gap: 10px;
  }
  .chart-meta {
    font-size: 6px;
    gap: 4px;
  }
  .range-key {
    margin-left: 6px;
  }
  .tiny-chip {
    font-size: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .widget-lifted {
    will-change: auto;
  }
}

/* Operação piloto: acesso, lojas e rastreio dos alertas. */
.access-panel {
  max-width: 770px;
  margin: 45px auto 65px;
  padding: 60px 40px;
  text-align: center;
  background: radial-gradient(ellipse at top, #edf4ff, transparent 66%), #fff;
}
.access-symbol {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 24px;
  background: #e6efff;
  border: 1px solid #d3e0f7;
  color: #527cc2;
  border-radius: 15px;
  font-size: 27px;
}
.access-panel h1 {
  max-width: 600px;
  margin: auto;
  font-size: 30px;
  letter-spacing: -0.9px;
}
.access-panel > p {
  max-width: 470px;
  margin: 17px auto 24px;
  color: #73839a;
  font-size: 12px;
  line-height: 1.9;
}
.access-panel .eyebrow {
  margin-bottom: 13px;
}
.access-panel .button {
  padding-left: 20px;
  padding-right: 20px;
}
.access-note {
  display: block;
  color: #9aa6b7;
  font-size: 9px;
  margin-top: 18px;
}
.pilot-stores-panel {
  margin-bottom: 22px;
}
.pilot-stores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #edf1f7;
}
.pilot-store-card {
  padding: 19px 22px;
  border-right: 1px solid #edf1f7;
  min-width: 0;
}
.pilot-store-card:last-child {
  border-right: 0;
}
.pilot-store-card > strong {
  display: block;
  font-size: 11px;
  font-weight: 650;
  color: #536982;
  overflow-wrap: anywhere;
}
.store-device-count {
  display: block;
  font-size: 9px;
  color: #8a99af;
  margin-top: 5px;
}
.store-channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  font-size: 8px;
  font-weight: 650;
  border-radius: 5px;
  padding: 5px 7px;
}
.store-channel:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.store-channel.configured {
  background: #eaf6ef;
  color: #34765b;
}
.store-channel.waiting {
  background: #f7f1e6;
  color: #9a7945;
}
.notification-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.notification-metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
  min-width: 0;
}
.notification-metric > span {
  font-size: 10px;
  color: #72829b;
  font-weight: 600;
  display: block;
}
.notification-metric > strong {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: 600;
  display: block;
  margin-top: 13px;
}
.notification-metric > small {
  display: block;
  font-size: 8px;
  color: #97a4b8;
  margin-top: 10px;
}
.notification-channel-panel {
  margin-bottom: 22px;
}
.notification-channel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 22px 24px;
  gap: 22px;
}
.channel-fact > span {
  display: block;
  font-size: 9px;
  color: #96a2b5;
}
.channel-fact > strong {
  display: block;
  font-size: 10px;
  color: #5f7291;
  margin-top: 6px;
  font-weight: 600;
}
.channel-pending {
  grid-column: 1/-1;
  margin: 0;
  color: #8c9bb1;
  font-size: 11px;
  line-height: 1.8;
}
.notification-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 600;
  padding: 5px 7px;
  border-radius: 5px;
  background: #eef2f8;
  color: #7385a0;
  line-height: 1.6;
}
.notification-status:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.notification-accepted {
  background: #edf3ff;
  color: #4d74b3;
}
.notification-delivered,
.notification-read {
  background: #eaf6ef;
  color: #34765b;
}
.notification-failed {
  background: #fff0f3;
  color: #b33850;
}
.notification-unknown,
.notification-blocked {
  background: #fff2dc;
  color: #9b6625;
}
.notification-processing,
.notification-pending,
.notification-waiting_recipient {
  background: #f8f1e6;
  color: #94703d;
}
.notification-dry_run,
.notification-cancelled {
  background: #eef1f6;
  color: #7d8da4;
}
.notifications-table td:first-child {
  min-width: 180px;
}
.notifications-table td:nth-child(2) {
  min-width: 170px;
}
.notifications-table td:nth-child(3) {
  min-width: 165px;
}
.notifications-table td:last-child {
  min-width: 250px;
  max-width: 330px;
}
.notification-followup {
  font-size: 9px;
}
.pilot-mode .mode-badge.real {
  background: #edf3ff;
  color: #3f69b3;
}
@media (max-width: 1000px) {
  .notification-summary {
    gap: 10px;
  }
  .notification-metric {
    padding: 18px 15px;
  }
  .notification-metric > span {
    font-size: 9px;
  }
  .notification-metric > small {
    font-size: 7px;
  }
  .pilot-store-card {
    padding: 18px;
  }
  .pilot-store-card > strong {
    font-size: 10px;
  }
  .store-channel {
    font-size: 7px;
  }
  .notification-channel {
    padding-left: 18px;
    padding-right: 18px;
    gap: 16px;
  }
}
@media (max-width: 760px) {
  .access-panel {
    margin: 20px auto 38px;
    padding: 42px 22px;
  }
  .access-panel h1 {
    font-size: 25px;
    letter-spacing: -0.7px;
  }
  .access-panel > p {
    font-size: 11px;
  }
  .access-note {
    font-size: 8px;
  }
  .pilot-stores {
    grid-template-columns: 1fr;
  }
  .pilot-store-card {
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid #edf1f7;
  }
  .pilot-store-card:last-child {
    border-bottom: 0;
  }
  .pilot-store-card > strong {
    font-size: 12px;
  }
  .store-device-count {
    font-size: 10px;
  }
  .store-channel {
    margin-top: 10px;
    font-size: 9px;
  }
  .notification-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .notification-metric {
    padding: 18px;
  }
  .notification-metric > span {
    font-size: 10px;
  }
  .notification-metric > strong {
    font-size: 30px;
  }
  .notification-metric > small {
    font-size: 8px;
  }
  .notification-channel {
    grid-template-columns: 1fr;
    gap: 17px;
    padding-bottom: 21px;
  }
  .channel-fact > span {
    font-size: 9px;
  }
  .channel-fact > strong {
    font-size: 11px;
    margin-top: 4px;
  }
  .notification-channel-panel .panel-heading {
    align-items: flex-start;
  }
  .notification-channel-panel .status-badge {
    font-size: 7px;
  }
  .notification-status {
    font-size: 9px;
  }
}

/* Individual access follows the same quiet hierarchy as the operation. */
.session-identity {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #697b92;
  font-size: 10px;
  font-weight: 600;
}
.legacy-access {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}
.legacy-access > summary {
  cursor: pointer;
  color: #687b93;
  font-size: 10px;
  font-weight: 650;
}
.bootstrap-notice {
  margin: 18px 0 0;
  padding: 13px 15px;
  background: #edf3ff;
  color: #365b91;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.7;
}
#login-dialog select,
#user-dialog select {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafd;
  padding: 11px 12px;
  color: #445872;
  margin-top: 7px;
}
.team-access-panel { margin-bottom: 22px; }
.team-access {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  padding: 0 26px 26px;
  gap: 28px;
}
.team-access-identity,
.team-access-scope { display: flex; flex-direction: column; align-items: flex-start; }
.team-access-identity > strong,
.team-access-scope > strong { color: #24384f; font-size: 13px; font-weight: 700; }
.team-access-identity > span { color: #788ba3; font-size: 11px; margin-top: 6px; overflow-wrap: anywhere; }
.team-access-identity > small { background: #edf3ff; color: #3764a5; padding: 5px 8px; border-radius: 5px; font-size: 9px; font-weight: 700; margin-top: 12px; }
.team-access-scope > p { color: #788ba3; font-size: 11px; line-height: 1.8; margin-top: 7px; max-width: 510px; }
.team-table td:first-child { min-width: 210px; }
.team-table td:first-child > strong { display: block; color: #354c68; font-size: 11px; }
.team-table td:first-child > span { display: block; color: #8593a6; font-size: 10px; margin-top: 5px; }
.team-table td:nth-child(3) { min-width: 170px; max-width: 300px; }
.team-table td:last-child { white-space: nowrap; }
.team-user-status { display: inline-block; font-size: 9px; border-radius: 5px; padding: 5px 8px; font-weight: 700; }
.team-user-status.active { background: #eaf6ef; color: #3a7f58; }
.team-user-status.disabled { background: #eef1f6; color: #7d8ca0; }
.store-fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 20px 0 0; padding: 13px 14px; }
.store-fieldset > legend { font-size: 10px; font-weight: 650; color: #445872; padding: 0 5px; }
.user-store-options { display: grid; gap: 9px; }
#user-dialog .check-label { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 11px; line-height: 1.5; }
#user-dialog .check-label > input { flex: 0 0 auto; width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }
#user-dialog #user-enabled-label { margin: 20px 0 10px; }
#user-dialog [hidden],
#login-dialog [hidden] { display: none; }
@media (max-width: 1000px) { .session-identity { max-width: 160px; font-size: 9px; } }
@media (max-width: 760px) {
  .session-identity { display: none; }
  .team-access { grid-template-columns: 1fr; padding: 0 20px 22px; gap: 22px; }
  .team-access-identity > strong, .team-access-scope > strong { font-size: 12px; }
  .team-access-identity > span, .team-access-scope > p { font-size: 10px; }
  #view-team .heading-actions { flex-wrap: wrap; }
  #view-team .heading-actions .button { font-size: 10px; }
}

.active-tenant {
  display: inline-flex;
  align-items: center;
  max-width: 210px;
  padding: 6px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #e2e8f2;
  background: #f7f9fc;
  color: #3b516f;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}
.workspace strong { overflow-wrap: anywhere; }
.tenant-context-panel { margin-bottom: 22px; }
.tenant-context { display: flex; flex-direction: column; gap: 5px; padding: 0 26px 25px; }
.tenant-context > strong { font-size: 18px; letter-spacing: -.4px; font-weight: 750; color: #29415e; overflow-wrap: anywhere; }
.tenant-context > span { font-size: 10px; color: #7a8da5; overflow-wrap: anywhere; }
.tenant-row { display: grid; grid-template-columns: minmax(160px, 1fr) auto auto; gap: 22px; align-items: center; padding: 22px 26px; border-top: 1px solid #edf1f7; }
.tenant-row-identity { display: flex; flex-direction: column; gap: 5px; }
.tenant-row-identity > strong { font-size: 12px; color: #354c68; overflow-wrap: anywhere; }
.tenant-row-identity > span { font-size: 10px; color: #8393a8; overflow-wrap: anywhere; }
.tenant-state { font-size: 9px; font-weight: 650; color: #7a8ba0; }
.tenant-state.current { color: #3269c2; background: #edf3ff; border-radius: 5px; padding: 5px 8px; }
#tenant-dialog [hidden] { display: none; }
#context-loading .access-symbol { animation: tenant-loading 1.4s linear infinite; }
@keyframes tenant-loading { to { transform: rotate(360deg); } }
@media (max-width: 1190px) { .active-tenant { max-width: 145px; font-size: 9px; } .session-identity { max-width: 130px; } }
@media (max-width: 760px) {
  .active-tenant { display: none; }
  .tenant-context { padding: 0 20px 22px; }
  .tenant-context > strong { font-size: 16px; }
  .tenant-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 20px; }
  .tenant-row-identity > strong { font-size: 11px; }
  .tenant-row-identity > span { font-size: 9px; }
  .tenant-row > .tenant-state { grid-row: 2; }
  .tenant-row > .button { grid-column: 2; grid-row: 1 / 3; font-size: 9px; }
  #view-tenants .heading-actions { flex-wrap: wrap; }
  #view-tenants .heading-actions .button { font-size: 10px; }
  .pilot-mode .breadcrumbs { max-width: min(42vw, 220px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { #context-loading .access-symbol { animation: none; } }

.insights-method {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  margin-bottom: 20px;
  background: linear-gradient(115deg, #fff 30%, #f3f7ff);
}
.insights-method-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  color: var(--blue);
  background: #edf3ff;
  flex-shrink: 0;
}
.insights-method-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.insights-method > div { flex: 1; min-width: 0; }
.insights-method strong { font-size: 13px; font-weight: 700; }
.insights-method p { max-width: 820px; margin: 7px 0 0; font-size: 11px; line-height: 1.8; color: #647287; }
.insights-method-label { border: 1px solid #dce6f7; border-radius: 6px; color: #516781; font-size: 8px; font-weight: 700; letter-spacing: .8px; padding: 6px 9px; white-space: nowrap; }
.insights-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.insights-panel .panel-heading { align-items: flex-start; }
.insights-panel .panel-subtitle { line-height: 1.8; }
.insights-panel .record-count { white-space: normal; text-align: right; }
.insights-device-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 4px 22px 22px; }
.insight-device { border: 1px solid var(--line); border-radius: 13px; min-width: 0; padding: 20px; background: #fff; }
.insight-device-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.insight-device-identity { min-width: 0; }
.insight-store { display: block; font-size: 10px; color: #69788c; margin-bottom: 4px; overflow-wrap: anywhere; }
.insight-device h3 { font-size: 15px; font-weight: 700; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.insight-risk { display: inline-flex; gap: 5px; align-items: center; border-radius: 6px; padding: 5px 8px; font-size: 9px; font-weight: 600; line-height: 1.6; max-width: 165px; }
.insight-risk::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.insight-risk-unknown { color: #596b83; background: var(--gray-bg); }
.insight-risk-normal { color: var(--normal); background: var(--normal-bg); }
.insight-risk-attention { color: var(--warn); background: var(--warn-bg); }
.insight-risk-critical { color: var(--danger); background: var(--danger-bg); }
.insight-device-description { font-size: 11px; line-height: 1.8; color: #647287; margin: 14px 0; }
.insight-waiting { display: flex; align-items: flex-start; gap: 12px; padding: 18px 0 5px; }
.insight-waiting-symbol { flex-shrink: 0; width: 29px; height: 29px; display: grid; place-items: center; color: #5e7eab; border: 1px solid #dce6f3; border-radius: 50%; font-size: 21px; background: #f6f9ff; }
.insight-waiting strong { display: block; font-size: 12px; font-weight: 600; }
.insight-waiting p { font-size: 11px; line-height: 1.8; color: #69788c; margin: 5px 0 0; }
.insight-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.insight-fact { min-width: 0; }
.insight-fact > span { display: block; font-size: 9px; color: #69788c; }
.insight-fact > strong { display: block; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 5px; letter-spacing: -.5px; }
.insight-fact > small { display: block; color: #7a8799; font-size: 8px; line-height: 1.7; margin-top: 3px; }
.insight-projection { background: #f4f7fd; border: 1px solid #e0e8f7; border-radius: 10px; padding: 16px; margin-top: 17px; }
.insight-projection-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; align-items: center; }
.insight-projection-label { color: #456896; letter-spacing: .8px; font-size: 8px; font-weight: 700; }
.insight-projection-horizon { font-size: 9px; color: #617490; }
.insight-projected-temperature { display: block; color: #274d86; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -1px; margin-top: 8px; }
.insight-projection p { font-size: 10px; color: #526986; line-height: 1.8; margin: 8px 0 0; }
.insight-projection .insight-limit-note { font-weight: 600; color: #7d571e; }
.insight-stale-note { background: #fff6e8; border: 1px solid #f1dfbf; border-radius: 8px; padding: 12px; color: #835a22; font-size: 10px; line-height: 1.8; margin: 16px 0 0; }
.insight-projection > small { display: block; margin-top: 9px; font-size: 9px; color: #677b97; line-height: 1.7; }
.insight-findings { list-style: none; padding: 0; margin: 18px 0 0; }
.insight-finding + .insight-finding { border-top: 1px solid #edf0f5; padding-top: 13px; margin-top: 13px; }
.insight-finding > strong { font-size: 11px; font-weight: 700; }
.insight-finding-critical > strong { color: var(--danger); }
.insight-finding-attention > strong { color: var(--warn); }
.insight-finding > p { font-size: 10px; line-height: 1.8; color: #647287; margin: 5px 0 0; }
.insight-finding > .insight-recommendation { color: #365a86; border-left: 2px solid #d3e2f6; padding-left: 10px; margin-top: 9px; }
.insight-quality { border-top: 1px solid #edf0f5; margin-top: 18px; padding-top: 13px; }
.insight-quality summary { color: #566b86; font-size: 10px; cursor: pointer; font-weight: 600; }
.insight-quality summary:focus-visible { outline: 3px solid #4c85f7; outline-offset: 4px; border-radius: 3px; }
.insight-quality-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 17px; }
.insight-quality-facts .insight-fact > strong { font-size: 13px; }
.insight-quality-note, .insight-limitations { color: #6a788c; font-size: 10px; line-height: 1.8; margin: 13px 0 0; }
.insight-limitations { padding-left: 16px; }
.insight-timestamps { font-size: 8px; color: #7a8799; margin: 13px 0 0; line-height: 1.8; }
.insights-empty { text-align: center; color: #647287; padding: 40px 24px; }
.insights-empty > strong { display: block; color: #40526e; font-size: 14px; font-weight: 600; }
.insights-empty > p { max-width: 520px; margin: 9px auto 18px; line-height: 1.9; font-size: 11px; }
.insights-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; padding: 18px 22px; border-top: 1px solid var(--line); background: #fafbfd; }
.insights-pagination > p { font-size: 10px; color: #69788c; margin: 0; flex: 1 1 220px; }
.insights-pagination > div { display: flex; gap: 8px; }
.insights-assistant { margin-top: 22px; border-color: #dce5f3; }
.insights-assistant > .panel-heading { align-items: flex-start; background: #f9fbff; padding-bottom: 19px; border-bottom: 1px solid #e8edf5; }
.insights-assistant .panel-subtitle { max-width: 650px; line-height: 1.8; }
.insights-assistant .button { flex-shrink: 0; font-size: 11px; }
.insights-assistant-status { margin: 0; padding: 19px 22px 0; color: #62738c; font-size: 10px; line-height: 1.8; }
.insights-assistant-status-warning { color: #925e21; }
.insights-assistant-content { padding: 0 22px; }
.insights-assistant-content[aria-busy="true"]::after { content: "Preparando recomendações…"; display: block; margin: 16px 0 0; padding: 18px; border: 1px solid #e2eaf7; border-radius: 10px; color: #496b9b; background: #f4f7fd; font-size: 11px; }
.insights-assistant-summary { margin: 17px 0 0; color: #405371; font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.insights-assistant-content > h3 { font-size: 12px; margin: 22px 0 12px; font-weight: 700; }
.insights-assistant-priorities { margin: 0; padding: 0 0 0 23px; }
.insights-assistant-priorities > li { padding: 10px 0 14px 9px; color: #496b9b; }
.insights-assistant-priorities > li + li { border-top: 1px solid #edf1f6; padding-top: 14px; }
.insights-assistant-priorities > li::marker { font-weight: 600; font-size: 12px; }
.insights-assistant-device { display: block; color: #697d98; font-size: 9px; margin-bottom: 4px; overflow-wrap: anywhere; }
.insights-assistant-priorities strong { display: block; color: #344e72; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.insights-assistant-priorities p { font-size: 11px; color: #63738b; line-height: 1.9; margin: 6px 0 0; overflow-wrap: anywhere; }
.insights-assistant-limits { margin-top: 17px; padding: 14px 17px; background: #f6f8fb; border: 1px solid #e9edf3; border-radius: 9px; }
.insights-assistant-limits > strong { font-size: 10px; color: #5b6d85; }
.insights-assistant-limits ul { margin: 7px 0 0; padding-left: 17px; color: #6d7a8d; font-size: 10px; line-height: 1.9; }
.insights-assistant-privacy { color: #78869b; font-size: 9px; line-height: 1.9; padding: 18px 22px 22px; margin: 0; }
@media (min-width: 761px) {
  .sidebar { overflow-y: auto; }
  .sidebar nav { flex-shrink: 0; }
}
@media (max-width: 1190px) {
  .insights-device-list { grid-template-columns: 1fr; }
  .insights-summary { gap: 10px; }
}
@media (max-width: 760px) {
  .sidebar { flex-wrap: wrap; gap: 12px; }
  .sidebar nav { width: 100%; min-width: 0; overflow-x: auto; padding-bottom: 3px; }
  .sidebar .nav-item { flex: 0 0 auto; }
  .insights-method { flex-wrap: wrap; gap: 12px; padding: 18px; }
  .insights-method > div { flex-basis: calc(100% - 52px); }
  .insights-method strong { font-size: 12px; }
  .insights-method p { font-size: 10px; }
  .insights-method-label { margin-left: 52px; font-size: 7px; }
  .insights-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insights-summary .notification-metric > span { font-size: 9px; }
  .insights-summary .notification-metric > small { font-size: 8px; line-height: 1.7; }
  .insights-panel .panel-heading { flex-wrap: wrap; gap: 8px; }
  .insights-panel .record-count { text-align: left; }
  .insights-device-list { padding: 0 14px 14px; gap: 12px; }
  .insight-device { padding: 16px; }
  .insight-device-heading { flex-wrap: wrap; gap: 8px; }
  .insight-device h3 { font-size: 14px; }
  .insight-risk { font-size: 8px; max-width: 100%; }
  .insight-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insight-fact > strong { font-size: 16px; }
  .insights-pagination { padding: 16px; }
  .insights-assistant > .panel-heading { flex-direction: column; align-items: flex-start; gap: 13px; }
  .insights-assistant .button { font-size: 10px; }
  .insights-assistant-status { padding: 16px 16px 0; }
  .insights-assistant-content { padding: 0 16px; }
  .insights-assistant-summary { font-size: 11px; }
  .insights-assistant-privacy { padding: 16px; font-size: 8px; }
}
