@import url("/assets/fonts.css");
.sp-preview-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sp-preview-metrics .metric label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}.sp-preview-metrics .metric strong{display:block;font-size:26px}
.sp-choices { display: grid; gap: 8px; margin: 16px 0; }
.sp-choices > label { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #e0e7e2; border-radius: 8px; cursor: pointer; }
.sp-choices small { display: block; color: #536a6d; margin-top: 4px; }
#sp-preview-rows { max-height: 45vh; overflow: auto; margin-top: 16px; }
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #173438;
  background: #f5f6f2;
  font-synthesis: none;
  --ink: #173438;
  --muted: #536a6d;
  --line: #e0e7e2;
  --green: #143e43;
  --lime: #d6eda5;
  --blue: #326871;
  --amber: #ac6d20;
  --red: #b44538;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
#main:focus-visible,
#workspace-title:focus-visible {
  outline: 3px solid #326871;
  outline-offset: 3px;
}
.sidebar :focus-visible { outline-color: #9ccac4; }
#main:focus-visible { outline-offset: -4px; }
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  font-weight: 600;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
p {
  line-height: 1.6;
}
.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  background: white;
  padding: 14px;
  z-index: 100;
}
.skip:focus {
  top: 8px;
}
.starting {
  padding: 60px;
}
.shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--green);
  color: #e9f1ed;
  padding: 30px 18px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 9px 35px;
}
.brand img {
  width: 40px;
  border: 1px solid #537074;
  border-radius: 12px;
}
.brand strong {
  font-size: 14px;
  line-height: 1.3;
  display: block;
  letter-spacing: -0.2px;
}
.brand small {
  font-size: 10px;
  letter-spacing: 2px;
  color: #a8c1be;
  display: block;
  margin-top: 5px;
}
.nav-label {
  color: #88aaa7;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin: 20px 13px 9px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 7px;
  color: #b9ceca;
  margin: 3px 0;
  transition: 0.12s;
}
.nav-link:hover {
  background: #244e51;
  color: white;
}
.nav-link.active {
  background: #d6eda5;
  color: #234243;
  font-weight: 650;
}
.ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.version {
  margin: 12px 12px 16px;
  font-size: 11px;
  color: #95b5b0;
  line-height: 1.6;
}
.person {
  border-top: 1px solid #365a5d;
  padding: 18px 9px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  height: 33px;
  width: 33px;
  border-radius: 50%;
  background: #54716e;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #e9f1dc;
}
.person strong {
  font-size: 12px;
  display: block;
  max-width: 135px;
}
.person small {
  display: block;
  color: #9cb9b4;
  font-size: 11px;
  margin-top: 4px;
}
.logout {
  background: transparent;
  color: #aac2bc;
  margin-left: auto;
  padding: 7px;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 77px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.crumb {
  font-size: 12px;
  color: var(--muted);
}
.crumb strong {
  font-weight: 500;
  color: var(--ink);
}
.topbar .right {
  margin-left: auto;
  display: flex;
  gap: 18px;
  align-items: center;
}
.env {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #6a7774;
}
.env:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aaa4b;
}
.top-search {
  display: flex;
  gap: 8px;
  align-items: center;
}
.top-search input {
  border: 0;
  background: #f4f6f3;
  padding: 10px 12px;
  border-radius: 7px;
  width: 210px;
  font-size: 12px;
}
.top-search button {
  background: none;
  color: var(--muted);
}
main {
  padding: 32px 38px 55px;
  max-width: 1600px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: #536a6d;
  margin-bottom: 9px;
  font-weight: 650;
}
.subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 9px;
}
.btn {
  padding: 11px 16px;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 550;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.btn:hover {
  background: #26555a;
}
.btn.secondary {
  background: white;
  border: 1px solid #cfdcd5;
  color: var(--ink);
}
.btn.secondary:hover {
  background: #eef3ea;
}
.btn.small {
  padding: 7px 10px;
  font-size: 11px;
}
.btn.danger {
  background: #f9e8e3;
  color: #a04132;
}
.btn.link {
  padding: 0;
  background: none;
  color: #3a716e;
  font-size: 12px;
}
.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.banner {
  padding: 13px 16px;
  border: 1px solid #e0e6d7;
  background: #edf1e7;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
  font-size: 12px;
  line-height: 1.5;
  color: #5e6c54;
}
.banner .ico {
  color: #7d8b4f;
}
.banner a {
  margin-left: auto;
  font-weight: 600;
  white-space: nowrap;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin: 25px 0;
}
.card,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.metric {
  padding: 21px 23px;
}
.overview-link { display: block; cursor: pointer; }
.overview-link:hover { border-color: #326871; box-shadow: 0 3px 12px #123d4318; }
.overview-open { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: 14px; color: #326871; font-size: 12px; }
.overview-shortcuts .cards { margin-top: 14px; }
.overview-shortcut { display: flex; align-items: center; gap: 12px; padding: 19px; }
.overview-shortcut strong { flex: 1; font-size: 14px; }
.overview-shortcut > .ico { flex-shrink: 0; color: #326871; }
.metric-head {
  color: #687f7b;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
}
.metric-head .ico {
  color: #809b92;
}
.number {
  overflow-wrap: anywhere;
  font-size: 33px;
  letter-spacing: -1.6px;
  line-height: 1;
  font-weight: 580;
}
.metric-foot {
  font-size: 11px;
  color: #84938c;
  margin-top: 14px;
}
.metric.feature {
  background: #e5edcf;
  border-color: #d9e3c5;
}
.metric .em {
  color: #4e724f;
  font-weight: 500;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr);
  gap: 20px;
  margin: 23px 0;
}
.panel-head {
  padding: 23px 24px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.panel-body {
  padding: 0 24px 24px;
}
.attention-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 17px 0;
  border-top: 1px solid #edf0eb;
}
.attention-item .symbol {
  width: 33px;
  height: 33px;
  background: #faf0e5;
  color: #a4752e;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.attention-item .symbol.high {
  background: #faeae5;
  color: #ad5c45;
}
.attention-item strong {
  font-size: 12px;
  display: block;
  margin-bottom: 5px;
}
.attention-item small {
  font-size: 11px;
  color: var(--muted);
}
.attention-item .end {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}
.badge {
  padding: 5px 8px;
  border-radius: 5px;
  background: #eef2ec;
  color: #506459;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
}
.badge.fresh,
.badge.accepted,
.badge.resolved {
  background: #edf5e8;
  color: #426233;
}
.badge.stale,
.badge.medium,
.badge.excluded,
.badge.rejected {
  background: #fbefdc;
  color: #82551a;
}
.badge.jam,
.badge.error,
.badge.high {
  background: #fae8e4;
  color: #a65242;
}
.badge.unknown,
.badge.pending {
  background: #eef0f1;
  color: #536a6d;
}
.badge.fixture {
  background: #f1f0e9;
  color: #696043;
}
.health-row {
  padding: 15px 0;
  border-top: 1px solid #edf0eb;
}
.health-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 12px;
}
.health-label strong {
  font-weight: 600;
}
progress {
  height: 7px;
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: #eef2e9;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #eef2e9;
  border-radius: 4px;
}
progress::-webkit-progress-value {
  background: #9dbb7b;
  border-radius: 4px;
}
progress::-moz-progress-bar {
  background: #9dbb7b;
}
.health-note {
  font-size: 11px;
  color: var(--muted);
  padding-top: 14px;
  line-height: 1.7;
}
.health-note strong {
  color: #48665f;
  font-weight: 500;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  color: #536a6d;
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  font-weight: 550;
  background: #fafbf8;
  padding: 13px 20px;
  white-space: nowrap;
  border-block: 1px solid #e9eee5;
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid #edf1e9;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfcf9;
}
td strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
td small {
  display: block;
  color: #536a6d;
  font-size: 10px;
  margin-top: 5px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  letter-spacing: -0.2px;
}
.counter {
  font-variant-numeric: tabular-nums;
}
.toners {
  display: flex;
  gap: 4px;
  align-items: center;
}
.toner {
  width: 7px;
  height: 26px;
  display: inline-block;
  border-radius: 2px;
  background: #dce3dc;
}
.toner.black {
  background: #4c625d;
}
.toner.cyan {
  background: #6dabb2;
}
.toner.magenta {
  background: #c783a1;
}
.toner.yellow {
  background: #dfc56f;
}
.toner.low {
  opacity: 0.4;
}
.toner-label {
  font-size: 10px;
  color: #89978e;
  margin-left: 7px;
}
.filters {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.filters input,
.filters select {
  border: 1px solid #dce4dc;
  background: #fff;
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 12px;
  min-width: 160px;
}
.filters input {
  min-width: 260px;
}
.filters .summary {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 21px;
  color: #536a6d;
  font-size: 11px;
  border-top: 1px solid var(--line);
}
.empty {
  text-align: center;
  padding: 42px 25px;
  color: var(--muted);
  line-height: 1.7;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 8px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.device-head {
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.printer-mark {
  width: 68px;
  height: 68px;
  background: #edf1e4;
  border-radius: 15px;
  display: grid;
  place-items: center;
}
.printer-mark .ico {
  height: 35px;
  width: 35px;
  stroke: #537260;
}
.device-head h2 {
  font-size: 23px;
  margin-bottom: 7px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  gap: 1px;
  background: var(--line);
}
.fact {
  background: white;
  padding: 18px 24px;
}
.fact label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.fact div {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.meter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.meter-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.meter-box label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.meter-box strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
}
.chart {
  width: 100%;
  height: 150px;
  display: block;
  margin: 14px 0;
}
.chart .grid {
  stroke: #e2e8dc;
  stroke-dasharray: 4 4;
}
.chart .line {
  fill: none;
  stroke: #88a969;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-caption {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.note {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.note p {
  font-size: 12px;
  white-space: pre-wrap;
}
.note small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
}
.timeline .step {
  background: #edf2e7;
  border-radius: 50%;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #7f9671;
}
.timeline p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.timeline .phase {
  font-size: 10px;
  color: #748b7c;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.info {
  padding: 14px 17px;
  background: #f3f5ef;
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.info.warn {
  background: #fbf2e5;
  color: #987545;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}
.report-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.report-card p {
  font-size: 12px;
  color: var(--muted);
  flex: 1;
}
.report-card .ico {
  color: #779869;
  width: 25px;
  height: 25px;
}
.customer-card {
  padding: 24px;
}
.customer-card .number {
  margin: 20px 0 7px;
}
.status-register details {
  border-bottom: 1px solid var(--line);
}
.status-register summary {
  padding: 17px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
}
.status-register summary .badge {
  margin-left: auto;
}
.status-register details p {
  font-size: 12px;
  color: var(--muted);
  padding: 0 20px 18px;
  max-width: 1000px;
}
.status-register summary:before {
  content: "+";
  color: #789070;
}
.status-register details[open] summary:before {
  content: "−";
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-visual {
  background: #123d43;
  color: white;
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-visual img {
  width: 66px;
  border: 1px solid #66827c;
  border-radius: 17px;
  margin-bottom: 70px;
}
.login-visual h1 {
  font-size: 48px;
  max-width: 430px;
  line-height: 1.12;
  letter-spacing: -2px;
  margin-bottom: 26px;
}
.login-visual p {
  color: #a5c0b8;
  max-width: 420px;
}
.login-visual .eyebrow {
  color: #c0d69a;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.login-form form {
  max-width: 350px;
  width: 100%;
}
.login-form h2 {
  font-size: 27px;
  margin-bottom: 11px;
}
.login-form .subtitle {
  margin-bottom: 30px;
}
.period-interval {
  border-bottom: 1px solid var(--line, #dce6e7);
  padding: 14px 0;
}
.cards.period-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}
.period-cards .number {
  overflow-wrap: anywhere;
}
.period-interval > summary::before {
  content: "›";
  font-size: 20px;
}
.period-interval[open] > summary::before {
  transform: rotate(90deg);
}
.period-interval summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.period-interval-body {
  padding: 16px 0 6px;
  overflow-wrap: anywhere;
}
#period-calculation {
  margin-top: 24px;
}
#period-builder select {
  width: 100%;
  min-width: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
  font-size: 12px;
}
.field[hidden] {
  display: none;
}
.field input,
.field select,
.field textarea {
  padding: 12px;
  border: 1px solid #d5dfd6;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.field.checkbox {
  flex-direction: row;
  align-items: center;
}
.field.checkbox input {
  width: auto;
}
.form-error {
  color: #a94d3b;
  font-size: 12px;
  line-height: 1.5;
  margin: 15px 0;
  min-height: 1em;
}
.login-form .btn {
  width: 100%;
  margin-top: 7px;
}
.login-foot {
  font-size: 11px;
  color: #92a097;
  margin-top: 25px;
  line-height: 1.8;
}
dialog {
  border: 1px solid #d5e0d6;
  border-radius: 14px;
  padding: 0;
  width: min(560px, calc(100vw - 32px));
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 25px 100px #0f393630;
}
dialog::backdrop {
  background: #102e3659;
  backdrop-filter: blur(3px);
}
.dialog-head {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.dialog-head button {
  background: #f0f3eb;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 18px;
  color: #637e73;
}
.dialog-body {
  padding: 24px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f0f3ed;
  padding: 15px;
  font-size: 13px;
  user-select: all;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.error-panel {
  padding: 30px;
  background: #fff5ef;
  border: 1px solid #f0cdb8;
  border-radius: 9px;
}
.error-panel p {
  margin-top: 10px;
  color: #8f5f47;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 90px);
  transform: translateX(-50%);
  background: #123d43;
  color: #fff;
  padding: 14px 22px;
  border-radius: 8px;
  box-shadow: 0 8px 30px #143d4330;
  max-width: 600px;
  font-size: 12px;
  z-index: 80;
  display: none;
}
#toast.show {
  display: block;
}
#toast.error {
  background: #9c4938;
}
.scope-pill {
  display: inline-block;
  background: #eef1e7;
  color: #66816a;
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 10px;
}
.loading {
  padding: 50px;
  color: var(--muted);
}
.text-link {
  color: #467972;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.muted {
  color: var(--muted);
}
.top-gap {
  margin-top: 20px;
}
.nowrap {
  white-space: nowrap;
}
@media (min-width: 1500px) {
  main {
    padding-top: 40px;
  }
  .cards {
    gap: 22px;
  }
  .metric {
    padding: 26px;
  }
  .two-col {
    gap: 24px;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    width: 195px;
    padding-inline: 12px;
  }
  .brand {
    gap: 8px;
  }
  .brand strong {
    font-size: 12px;
  }
  .brand img {
    width: 34px;
  }
  .topbar {
    padding-inline: 25px;
  }
  main {
    padding-inline: 25px;
  }
  .top-search input {
    width: 160px;
  }
  .two-col {
    grid-template-columns: 1.3fr 1fr;
  }
  .cards {
    gap: 12px;
  }
  .metric {
    padding: 18px;
  }
  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  td,
  th {
    padding-inline: 15px;
  }
  .topbar .env {
    display: none;
  }
}
@media (max-width: 850px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 18px;
    display: block;
  }
  .brand {
    padding: 0 4px 17px;
  }
  .brand strong {
    font-size: 15px;
  }
  .brand small {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .nav-link {
    padding: 9px 11px;
    font-size: 11px;
    margin: 0;
  }
  .nav-link .ico {
    width: 15px;
    height: 15px;
  }
  .topbar {
    height: 65px;
  }
  .workspace {
    width: 100%;
  }
  main {
    padding: 26px 22px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  h1 {
    font-size: 27px;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head .btn {
    font-size: 11px;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-visual {
    padding: 30px;
  }
  .login-visual img {
    margin-bottom: 25px;
    width: 44px;
  }
  .login-visual h1 {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .login-visual p {
    display: none;
  }
  .login-form {
    padding: 40px 25px;
  }
  #toast {
    left: 50%;
    width: calc(100% - 40px);
  }
}
@media (max-width: 520px) {
  .topbar {
    padding: 0 20px;
  }
  .crumb {
    font-size: 11px;
  }
  .top-search input {
    width: 135px;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .banner {
    align-items: flex-start;
    font-size: 11px;
  }
  .banner a {
    display: none;
  }
  .metric {
    padding: 18px 15px;
  }
  .metric-head {
    font-size: 11px;
  }
  .metric-foot {
    font-size: 10px;
  }
  .page-head {
    flex-wrap: wrap;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .fact {
    padding: 15px;
  }
  .panel-head {
    padding: 18px;
  }
  .panel-body {
    padding: 0 18px 18px;
  }
  .meter-box {
    padding: 14px;
  }
  .meter-box strong {
    font-size: 18px;
  }
  .filters input {
    min-width: 100%;
    width: 100%;
  }
  .filters select {
    flex: 1;
    min-width: 150px;
  }
  .filters .summary {
    margin: 0;
  }
  .device-head {
    padding: 18px;
  }
  .device-head h2 {
    font-size: 18px;
  }
  .scope-pill {
    display: none;
  }
  .status-register summary {
    flex-wrap: wrap;
  }
  .status-register summary .badge {
    margin-left: 0;
  }
}

.mobile-logout {
  display: none;
}
.attention-item > div {
  min-width: 0;
}
.attention-item .end {
  flex-shrink: 0;
}
.attention-item .end small {
  display: block;
  margin-top: 6px;
}
.sidebar nav {
  scrollbar-width: thin;
  scrollbar-color: #63877d transparent;
}
@media (max-width: 850px) {
  .mobile-logout {
    display: inline-flex;
    background: none;
    color: #698578;
    padding: 4px;
  }
  .topbar .right {
    gap: 8px;
  }
  .sidebar nav {
    padding-bottom: 6px;
  }
}
@media (max-width: 520px) {
  .top-search input {
    width: 112px;
  }
  .topbar {
    padding-inline: 16px;
  }
  .attention-item .end {
    white-space: normal;
    max-width: 70px;
  }
  .attention-item small {
    line-height: 1.5;
  }
}
/* Keep account controls reachable when the desktop window is short. */
.sidebar nav {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}
.brand {
  flex-shrink: 0;
}
.sidebar-bottom {
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 12px;
}
@media (max-width: 850px) {
  .sidebar nav {
    overflow-y: hidden;
  }
}

.preserve-lines {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.recipient-list {
  border: 1px solid #d5ded8;
  padding: 12px;
  border-radius: 8px;
}
.recipient-list label {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 5px 0;
}
.recipient-list input {
  width: auto;
}
.badge.succeeded,
.badge.active {
  background: #e2f0d8;
  color: #28583a;
}
.badge.queued,
.badge.running {
  background: #e1ebfa;
  color: #264a77;
}
.badge.failed,
.badge.uncertain,
.badge.blocked {
  background: #fbe0dc;
  color: #862e21;
}

.report-search {
  max-width: 440px;
  margin: 24px 0 8px;
}
.report-card[hidden] {
  display: none;
}
.report-method {
  margin: 20px 0;
  padding: 24px;
}
.report-method p {
  line-height: 1.6;
}
.report-chart {
  margin-top: 24px;
  padding: 24px;
}
.report-chart-values { margin-top: 20px; }
.report-chart-values summary { cursor: pointer; font-weight: 700; }
.table-wrap:focus-visible { outline: 3px solid #427c65; outline-offset: 3px; }
.report-bar-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 2fr minmax(70px, 1fr);
  gap: 18px;
  align-items: center;
  margin: 16px 0;
}
.report-bar-row strong {
  text-align: right;
  overflow-wrap: anywhere;
}
.report-bar-row span {
  overflow-wrap: anywhere;
}
.report-bar-track {
  height: 15px;
  background: #eff3ed;
  border-radius: 3px;
  overflow: hidden;
}
.report-bar-track svg {
  display: block;
  width: 100%;
  height: 100%;
}
.report-bar-track rect {
  fill: #427c65;
}
.source-details {
  padding: 24px;
  border: 1px solid #d9e0d9;
  border-radius: 10px;
  background: white;
  min-width: 0;
}
.source-details summary {
  cursor: pointer;
  font-weight: 700;
}
.source-details .table-wrap {
  max-width: 100%;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 600px) {
  .report-bar-row {
    grid-template-columns: minmax(70px, 1fr) 1fr minmax(70px, 1fr);
    gap: 10px;
  }
  .report-chart,
  .report-method,
  .source-details {
    padding: 16px;
  }
}

.custom-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.custom-column {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.custom-column .field {
  flex: 1;
  min-width: 0;
}
.custom-column small {
  overflow-wrap: anywhere;
}
.custom-add {
  display: flex;
  gap: 20px;
  align-items: end;
  margin-top: 24px;
}
.custom-add .field {
  flex: 1;
  min-width: 0;
}
.custom-filter {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
#custom-form .panel {
  margin-bottom: 24px;
}
@media (max-width: 700px) {
  .custom-settings,
  .custom-filter {
    grid-template-columns: 1fr;
  }
  .custom-column {
    flex-wrap: wrap;
  }
  .custom-column .field {
    flex-basis: 70%;
  }
  .custom-column .button-row {
    margin-left: 48px;
  }
  .custom-add {
    align-items: stretch;
    flex-direction: column;
  }
}

.executive-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 5px solid var(--ink);
  padding: 24px;
  background: white;
  border-radius: 12px;
  margin-bottom: 20px;
}
.executive-brand img {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
}
.executive-brand h2 {
  margin: 4px 0 0;
}
.executive-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.executive-source small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.executive-edit-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.executive-edit-section .button-row {
  margin-bottom: 16px;
}
.executive-section .report-chart {
  border: 0;
}
.executive-section .panel {
  border-radius: 0;
  box-shadow: none;
}
.executive-hash {
  overflow-wrap: anywhere;
  padding: 18px;
}
.preserve-lines {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .executive-brand,
  .executive-source {
    align-items: flex-start;
    flex-direction: column;
  }
  .executive-source > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .executive-edit-section .button-row {
    flex-wrap: wrap;
  }
}

/* Alert criteria and immutable incident evidence. */
.alert-form-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.alert-form-fields:disabled {
  opacity: 0.85;
}
.alert-find {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.alert-find .field {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.alert-members {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 8px;
  margin-top: 14px;
  min-width: 0;
}
.alert-members legend {
  font-size: 13px;
  font-weight: 600;
}
.alert-members label {
  overflow-wrap: anywhere;
}
.alert-recipients {
  padding-left: 18px;
}
.alert-recipients li {
  padding: 5px 0;
}
.alert-definition {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  padding: 12px;
  background: #f4f7f6;
  border-radius: 6px;
}
.alert-events {
  padding-left: 22px;
}
.alert-events li {
  padding: 0 0 18px 6px;
}
.alert-events small {
  display: block;
  color: var(--muted);
}
#alert-preview-result {
  scroll-margin-top: 24px;
}
@media (max-width: 600px) {
  .alert-find {
    flex-wrap: wrap;
  }
  .alert-find .field {
    flex-basis: 100%;
  }
}

/* Local recipient inbox and scoped delivery evidence. */
.notification-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
.notification-message h2 {
  overflow-wrap: anywhere;
}
.notification-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 10px 18px;
}
.notification-facts dt {
  color: var(--muted);
}
.notification-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.notification-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
}
.notification-filter .field {
  flex: 1 1 160px;
  margin: 0;
}
.notification-events {
  border: 1px solid #d8e3e3;
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0;
}
.notification-events legend {
  padding: 0 6px;
}

.import-metrics {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.import-evidence .mono {
  overflow-wrap: anywhere;
}

.group-hash {
  overflow-wrap: anywhere;
}

/* Dealer administration */
.platform-hierarchy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--surface, #fff);
  border: 1px solid #d9e3df;
  border-radius: 12px;
  color: #31575a;
}
.platform-hierarchy span {
  font-weight: 600;
}
.platform-hierarchy b {
  color: #7c9390;
}
.dealer-card h2 {
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.dealer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 18px 20px;
}
.dealer-card .dealer-stats {
  padding: 0 0 24px;
}
.dealer-stats span {
  display: flex;
  flex-direction: column;
  color: #5f7779;
  font-size: 13px;
}
.dealer-stats strong {
  color: #123d43;
  font-size: 26px;
  line-height: 1.4;
  font-weight: 600;
}
.section-heading {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 14px;
}
.section-heading h2 {
  margin: 0;
}
@media (max-width: 600px) {
  .section-heading {
    flex-wrap: wrap;
  }
  .platform-hierarchy {
    font-size: 12px;
    gap: 8px;
  }
}
.dealer-card {
  padding: 24px;
}
.dealer-card .panel-head {
  padding: 0;
}

/* Fleet saved views and reviewed group membership. */
.fv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  flex-wrap: wrap;
}
.fv-toolbar small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.fv-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px 16px;
  padding: 0 22px 20px;
  border-bottom: 1px solid var(--line);
}
.fv-filters .field {
  margin: 0;
  min-width: 0;
}
.fv-filters .button-row {
  align-self: end;
}
.fv-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.fv-check input,
.fv-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: none;
}
.fv-table td {
  max-width: 290px;
}
.fv-table small {
  white-space: normal;
}
.fv-column {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.fv-revision {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.fv-json {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.fv-hash {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px 0;
}
@media (max-width: 650px) {
  .fv-filters {
    grid-template-columns: 1fr;
  }
  .fv-toolbar {
    padding: 16px;
  }
  .fv-filters {
    padding: 0 16px 16px;
  }
}
.fv-more {
  grid-column: 1/-1;
}
.fv-more summary {
  cursor: pointer;
  color: var(--muted);
  padding: 8px 0;
  font-size: 13px;
}
.fv-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px 16px;
  padding-top: 8px;
}
.fv-bulk-summary {
  padding: 24px;
  margin: 18px 0;
}
.fv-bulk-summary p {
  margin: 14px 0;
  line-height: 1.55;
}
.fv-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.fv-facts small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}
.fv-facts strong {
  display: block;
  font-size: 24px;
}
@media (max-width: 650px) {
  .fv-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fv-bulk-summary {
    padding: 18px;
  }
}

.support-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.audit-wrap,
.audit-facts dd {
  overflow-wrap: anywhere;
}
.audit-json {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 32rem;
  overflow-y: auto;
  background: var(--bg);
  padding: 1rem;
  border-radius: 8px;
}
.audit-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}
.audit-facts dt {
  font-size: 12px;
  color: var(--muted);
}
.audit-facts dd {
  margin: 0.25rem 0 0;
}

#audit-filter {
  padding: 24px;
}
.audit-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 0 18px;
}
@media (max-width: 650px) {
  #audit-filter {
    padding: 18px;
  }
}
.ops-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
  padding: 20px;
  margin-top: 20px;
  align-items: end;
}
.ops-workers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 24px;
}
.ops-guidance {
  min-width: 220px;
  max-width: 400px;
}

/* Permission proposal editor */
.grant-guidance {
  padding: 0 24px;
  color: var(--muted);
}
.grant-targets > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.grant-targets small {
  display: block;
  margin-top: 4px;
}
.grant-targets span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.grant-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px;
}
.grant-check input {
  width: auto;
  margin-top: 4px;
}

.completed-delivery {
  margin-block: 24px;
}
.completed-delivery-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}
.completed-delivery-list article {
  padding: 18px;
  border: 1px solid #bfdbca;
  border-radius: 12px;
  background: #f4faf6;
}
.completed-delivery-list article header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #20663c;
}
.completed-delivery-list h3 {
  margin: 14px 0 8px;
}
.completed-delivery-list p {
  margin: 8px 0;
}
.completed-delivery-list details {
  margin-top: 12px;
}
.completed-delivery-list summary {
  cursor: pointer;
}
.completed-delivery-list details p {
  overflow-wrap: anywhere;
}
.feature-status-explanation {
  padding: 0 20px;
  font-size: 13px;
  color: var(--muted);
}
.feature-status-explanation strong {
  color: #20663c;
}
.feature-progress {
  border-top: 1px solid var(--line);
  padding: 20px;
}
.feature-progress-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.feature-progress-heading h3 {
  margin: 0;
  flex: 1 1 220px;
}
.feature-progress-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feature-finished-tasks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 12px;
  margin-top: 16px;
}
.feature-finished-tasks > article {
  padding: 16px;
  background: #f4faf6;
  border: 1px solid #bfdbca;
  border-radius: 8px;
  min-width: 0;
}
.feature-finished-tasks header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #20663c;
}
.feature-finished-tasks h4 {
  margin: 12px 0 8px;
}
.feature-finished-tasks p {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.feature-finished-tasks small {
  color: var(--muted);
}
.feature-progress details {
  border: 0;
}
.feature-progress summary {
  padding: 12px 0;
}
.feature-progress details p {
  padding: 0 0 12px;
}

.recovery-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:22px}.recovery-metrics strong{display:block;font-size:24px;color:var(--ink)}.recovery-metrics span{display:block;font-size:12px;color:var(--muted);margin-top:7px}@media(max-width:700px){.recovery-metrics{grid-template-columns:1fr;padding:16px;gap:14px}.recovery-metrics strong{font-size:21px}}

.mapping-json { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 24rem; overflow: auto; padding: 1rem; background: #f5f8f7; }
.mapping-hash { overflow-wrap: anywhere; }

.meter-health-summary { display: grid; gap: 6px; justify-items: start; }

/* Native usage review preserves its unit and hides incompatible template fields. */
#template-counter-fields [hidden] { display: none; }
.native-period-summary .panel-body p + p { margin-top: 9px; }

/* Keep exact source integers readable without splitting a final digit. */
.number.epoch-source-number { font-size: clamp(14px, 1.3vw, 20px); line-height: 1.4; letter-spacing: normal; white-space: nowrap; overflow-x: auto; max-width: 100%; }

/* Collector report evidence retains semantic label/value pairs. */
.collector-runtime-facts {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr);
  gap: 14px 24px;
  font-size: 13px;
  line-height: 1.5;
}
.collector-runtime-facts dt { color: var(--muted); }
.collector-runtime-facts dd { margin: 0; overflow-wrap: anywhere; }
.consumable-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.consumable-evidence > section { min-width: 0; }
.consumable-panel small { display: block; margin-top: 6px; color: var(--muted); overflow-wrap: anywhere; }
.consumable-panel h3 { margin-bottom: 12px; }
.consumable-panel p + p, .consumable-panel details { margin-top: 12px; }
.consumable-panel .button-row { margin-top: 24px; }
.consumable-panel strong, .consumable-panel b { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .consumable-evidence { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .collector-runtime-facts { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .collector-runtime-facts dd { margin-bottom: 12px; }
}

.supply-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.supply-facts small { display: block; margin-top: 5px; color: var(--muted); }
.supply-exclusions { margin: 18px 0; padding-left: 22px; }
.supply-exclusions li { margin-bottom: 6px; }
@media (max-width: 1100px) { .supply-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .supply-facts { grid-template-columns: 1fr; } }

/* Personal sign-in and recovery */
.account-flow { width: min(100%, 470px); }
.account-flow h2 { font-size: 28px; margin-bottom: 12px; }
.account-flow .subtitle { margin-bottom: 24px; }
.mfa-setup { margin: 18px 0; }
.mfa-qr { display: block; width: 230px; height: 230px; max-width: 100%; background: white; margin: 0 auto 16px; }
.mfa-secret { font-family: monospace; overflow-wrap: anywhere; padding: 12px; background: #f1f5f4; }
.account-flow details { margin-bottom: 22px; }
.account-flow summary { cursor: pointer; }
.recovery-codes { list-style: none; padding: 16px; background: #f1f5f4; border-radius: 8px; font: 14px/1.9 monospace; overflow-wrap: anywhere; }
.account-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.account-security { max-width: 650px; padding: 28px; }
.account-security hr { border: 0; border-top: 1px solid #dfe7e5; margin: 24px 0; }
.account-security .field { max-width: 480px; }

/* Portal branding uses individually assigned color properties from validated hex values. */
:root { --on-primary: #ffffff; --on-accent: #000000; }
.sidebar, .sidebar .brand small, .sidebar .nav-label, .sidebar .nav-link, .sidebar .version, .sidebar .person small, .sidebar .logout { color: var(--on-primary); }
.sidebar .nav-link:hover { background: color-mix(in srgb, var(--on-primary) 12%, transparent); color: var(--on-primary); }
.sidebar .nav-link.active { background: var(--lime); color: var(--on-accent); }
.btn:not(.secondary):not(.danger):not(.link) { color: var(--on-primary); }
.btn:not(.secondary):not(.danger):not(.link):hover { background: var(--green); filter: brightness(.93); }
.brand img { max-height: 64px; object-fit: contain; }
.branding-layout { display:grid; grid-template-columns:minmax(270px, .9fr) minmax(320px, 1.1fr); gap:22px; margin-top:22px; align-items:start; }
.brand-scope-panel { padding:20px; }
.brand-setting { border-bottom:1px solid var(--line); padding-bottom:18px; margin-bottom:18px; }
.brand-inherit { display:flex; align-items:center; gap:8px; font-size:12px; margin-bottom:12px; }
.brand-setting small { display:block; color:var(--muted); font-size:11px; }
.brand-setting input[type=color] { width:100%; height:44px; padding:4px; }
.branding-preview-panel { position:sticky; top:20px; }
.brand-sample { display:grid; grid-template-columns:140px minmax(0,1fr); border:1px solid var(--line); border-radius:10px; overflow:hidden; min-height:310px; }
.brand-sample-nav { background:var(--green); color:var(--on-primary); padding:22px 12px; display:flex; flex-direction:column; gap:20px; font-size:10px; }
.brand-sample-nav img { max-width:105px; max-height:55px; object-fit:contain; align-self:start; }
.brand-sample-nav strong { overflow-wrap:anywhere; font-size:13px; }
.sample-active { background:var(--lime); color:var(--on-accent); padding:10px 8px; border-radius:5px; }
.brand-sample-main { padding:20px 16px; background:#f5f6f2; }
.brand-sample-main h3 { margin:24px 0 10px; }
.brand-sample-main p { font-size:11px; }
.brand-sample-browser { display:flex; gap:7px; align-items:center; border-bottom:1px solid var(--line); padding-bottom:12px; }
.brand-sample-browser img { width:16px; height:16px; object-fit:contain; }
.sample-metrics { display:flex; gap:10px; margin:20px 0; }
.sample-metrics div { background:white; border-radius:7px; padding:14px; flex:1; }
.sample-metrics strong, .sample-metrics span { display:block; }
.sample-metrics strong { font-size:25px; }.sample-metrics span { font-size:9px; color:var(--muted); margin-top:5px; }
.sample-button { display:inline-block; font-size:10px; background:var(--green); color:var(--on-primary); padding:11px; border-radius:5px; }
.brand-sample-main > small { display:block; }
.brand-source-list { font-size:11px; margin:20px 0; }.brand-source-list div { display:flex; justify-content:space-between; gap:12px; margin:8px 0; }.brand-source-list dt { color:var(--muted); }.brand-source-list dd { margin:0; text-align:right; }
#brand-preview-state { font-size:11px; color:var(--muted); }
@media(max-width:1050px) { .branding-layout { grid-template-columns:1fr; }.branding-preview-panel { position:static; }.brand-sample { grid-template-columns:130px 1fr; } }

/* Machine metadata: make before/after values readable without truncation. */
.md-values {display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:20px;margin:0 0 24px}
.md-values dt {font-size:13px;color:var(--muted);margin-bottom:6px}
.md-values dt small {display:block;font-weight:normal}
.md-values dd {margin:0;font-size:16px;font-weight:600;overflow-wrap:anywhere}
.md-notes,.md-differences dd {white-space:pre-wrap;overflow-wrap:anywhere}
.md-differences {margin:0;min-width:240px}
.md-differences>div+div {margin-top:12px}
.md-differences dt {font-size:12px;font-weight:700;color:var(--muted)}
.md-differences dd {margin:4px 0 0}
.md-edit-row {padding:14px 0;border-bottom:1px solid var(--line)}
.md-edit-row+label {margin-top:20px}

/* Unified machine event history. */
.timeline-filters{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:14px;align-items:end}.timeline-filters>.button-row{grid-column:1/-1}.timeline-entry{padding:22px 0;border-bottom:1px solid var(--line,#e2e8ee)}.timeline-entry:first-child{padding-top:0}.timeline-entry:last-of-type{border-bottom:0}.timeline-entry-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.timeline-entry h3{margin:5px 0}.timeline-code{font-size:.82em;padding:3px 7px;background:#f0f4f7;border-radius:5px}.timeline-facts{margin:14px 0}.timeline-facts dd{font-size:14px}.timeline-source{margin-top:22px}.timeline-source pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.timeline-activity .note{padding:12px 0}.timeline-activity p{margin:6px 0}@media(max-width:950px){.timeline-filters{grid-template-columns:repeat(2,minmax(140px,1fr))}}@media(max-width:550px){.timeline-filters{grid-template-columns:1fr}.timeline-entry-head{flex-wrap:wrap}}

.timeline-facts dd small{display:block;font-weight:400;margin-top:3px;color:var(--muted,#65717a)}

.support-linked{display:flex;justify-content:space-between;align-items:center;gap:20px}.support-linked h3{margin:0}.support-linked p{margin:7px 0}@media(max-width:760px){.support-linked{display:block}.support-linked>.button-row{margin-top:12px}}

.collector-connection-guide .panel-body { padding: 20px 24px; }
.collector-connection-guide p { margin: 10px 0; }
.collector-connection-guide summary { cursor: pointer; font-weight: 650; margin: 12px 0; }
.collector-connection-guide pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; background: #f3f6f4; border-radius: 8px; }
/* Independent collection states at the start of the machine workspace. */
.monitoring-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.monitoring-summary article { min-width: 0; }
.monitoring-summary h3 { margin: 0 0 12px; }
.monitoring-summary small { display: block; margin-top: 6px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .monitoring-summary { grid-template-columns: 1fr; } }

.billing-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.billing-step { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.billing-step h2, .billing-step p { margin: 0; }
.billing-step .button-row { margin-top: auto; }
.billing-step p { color: var(--muted); line-height: 1.6; }
.billing-snapshots > summary { padding: 20px; cursor: pointer; font-weight: 700; }
@media (max-width: 850px) { .billing-steps { grid-template-columns: 1fr; } }

.billing-step > .step { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e0edb4; color: var(--ink); font-weight: 700; }

.maintenance-chart { margin: 0; }
.maintenance-chart svg { display: block; width: 100%; max-height: 210px; }
.maintenance-chart text { font-size: 12px; fill: #53666a; }
.maintenance-jam { color: #b44b39; }
.maintenance-error { color: #734563; }
.maintenance-warning { color: #a87c29; }

.diagnostics-form{display:grid;grid-template-columns:minmax(170px,1fr) minmax(240px,3fr) auto;gap:16px;align-items:end}.diagnostics-form .field{margin:0}.diagnostics-form [role="status"]{grid-column:1/-1;margin:0}.diagnostics-form button{margin:0;min-height:42px}@media(max-width:800px){.diagnostics-form{grid-template-columns:1fr}.diagnostics-form button{justify-self:start}}

/* Readable per-role choices for customer fleets with multiple model mappings. */
#volume-source-fields { border: 1px solid var(--line, #dce3df); border-radius: 8px; padding: 14px; min-width: 0; }
.volume-role-options { border: 0; padding: 0; margin: 18px 0; min-width: 0; }
.volume-role-options legend { font-weight: 650; padding: 0 0 8px; }
.volume-role-options label.check { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line, #dce3df); cursor: pointer; }
.volume-role-options input { flex: 0 0 auto; margin-top: 3px; }
.volume-role-options label span { min-width: 0; overflow-wrap: anywhere; }
.volume-role-options small, #volume-selection-evidence small { display: block; color: var(--muted, #65716e); margin-top: 3px; }
.volume-selection-details summary { cursor: pointer; font-weight: 600; }
