/* Native system fonts keep the dashboard self-contained on desktop and iPhone. */
:root {
  color-scheme: dark;
  --bg: #10151d;
  --sidebar: #111720;
  --panel: #181f2a;
  --input: #111822;
  --line: #2a3443;
  --text: #edf1f7;
  --muted: #a1adbf;
  --subtle: #8493a8;
  --blue: #8cb9ff;
  --green: #6ed6ae;
  --amber: #f0c479;
  --red: #ff9a9f;
  --radius: 10px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  font-weight: 650;
}
h2,
.details-title {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.2px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: #c3d9ff;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.65;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button.primary {
  background: #3973d9;
  color: #fff;
  border-color: #4c84e4;
}
button.primary:hover:not(:disabled) {
  background: #4681e8;
}
.secondary {
  background: #202a38;
  color: var(--text);
  border-color: #344154;
}
.secondary:hover:not(:disabled) {
  background: #2a3648;
  border-color: #52637d;
}
.danger-button {
  background: #ab353e;
  color: #fff;
  border-color: #c74f58;
  white-space: nowrap;
}
.danger-button:hover:not(:disabled) {
  background: #bc414b;
}
.icon-button {
  background: transparent;
  color: var(--muted);
  padding: 10px;
}
.icon-button:hover {
  background: #263244;
  color: var(--text);
}
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.hidden {
  display: none !important;
}
.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;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 10;
  padding: 12px;
  background: var(--panel);
}
.skip-link:focus {
  top: 10px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.eyebrow,
.nav-label,
.meta-label {
  font-size: 10px;
  letter-spacing: 1.25px;
  font-weight: 650;
  color: var(--subtle);
}
.eyebrow {
  margin-bottom: 8px;
}
.meta-label {
  letter-spacing: 0.8px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 3px 8px #0000000a;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.card-heading > .icon {
  color: var(--subtle);
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.badge .icon {
  width: 13px;
  height: 13px;
}
.neutral {
  color: var(--muted);
  background: #222c3b;
  border-color: #334053;
}
.healthy {
  color: var(--green);
  background: #18342e;
  border-color: #295246;
}
.warning {
  color: var(--amber);
  background: #362e22;
  border-color: #5a4830;
}
.critical {
  color: var(--red);
  background: #3d252e;
  border-color: #65404b;
}
.info {
  color: var(--blue);
  background: #1f304d;
  border-color: #374f75;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.notice {
  border-width: 1px;
  border-style: solid;
  padding: 12px 16px;
  border-radius: 7px;
  font-size: 13px;
  margin-bottom: 18px;
}
.anchor-section {
  scroll-margin-top: 30px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 216px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 30px 16px;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  padding: 0 10px;
  font-size: 15px;
  letter-spacing: 1.6px;
  font-weight: 750;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.4px;
  font-weight: 400;
  margin-top: 2px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: #f1f3f6;
  width: 35px;
  height: 35px;
  border: 1px solid #c5cbd5;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}
.workspace-mark.workspace-logo {
  background: #f1f3f6;
  border-color: #c5cbd5;
  overflow: hidden;
}
.nav-label {
  margin: 44px 12px 13px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 7px;
  margin: 5px 0;
  font-size: 13px;
  font-weight: 500;
}
.nav-link:hover {
  background: #1c2634;
  color: var(--text);
}
.nav-link.selected {
  color: #b7d2ff;
  background: #20304a;
  border-color: #2d4161;
}
.nav-count {
  margin-left: auto;
  background: #64323d;
  color: #ffd2d5;
  font-size: 10px;
  padding: 0 5px;
  border-radius: 3px;
}
.sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 18px 10px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.sidebar-bottom small {
  display: block;
  color: var(--subtle);
  font-size: 11px;
  margin-top: 2px;
}
.workspace-mark,
.avatar {
  display: grid;
  place-items: center;
  border: 1px solid #3a475b;
  border-radius: 7px;
  background: #253145;
  color: #c1cee0;
  width: 32px;
  height: 32px;
  font-size: 11px;
  font-weight: 600;
}
.workspace {
  margin-left: 216px;
}
.topbar {
  height: 70px;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.breadcrumb {
  color: var(--subtle);
  font-size: 12px;
}
.breadcrumb span {
  margin: 0 12px;
  color: #536176;
}
.breadcrumb strong {
  color: #c4cddd;
  font-weight: 500;
}
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.identity .icon-button {
  margin-left: 10px;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.shell {
  max-width: 1512px;
  margin: 0 auto;
  padding: 34px 36px 20px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.page-heading .muted {
  margin-top: 8px;
}
.update-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.kpi {
  padding: 19px 20px;
}
.kpi-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #bec8d7;
  font-size: 12px;
  gap: 10px;
}
.kpi-label .icon {
  color: #7f90a8;
  width: 17px;
  height: 17px;
}
.kpi > strong {
  display: block;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin: 13px 0 5px;
  font-variant-numeric: tabular-nums;
}
.kpi strong span {
  font-size: 15px;
  color: var(--subtle);
  font-weight: 400;
  letter-spacing: 0;
}
.kpi > .muted {
  font-size: 11px;
}
.text-critical {
  color: var(--red);
}
.text-warning {
  color: var(--amber);
}
.text-healthy {
  color: var(--green);
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.system-card,
.notifications-card {
  padding: 23px;
}
.system-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.system-identity > div {
  min-width: 0;
}
.system-identity .badge {
  margin-left: auto;
}
.system-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  color: #c3d0e2;
  background: #253145;
  border: 1px solid #39485d;
  flex-shrink: 0;
}
.system-icon .icon {
  width: 22px;
  height: 22px;
}
.endpoint {
  font-size: 11px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.system-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  margin-bottom: 13px;
}
.system-status .muted {
  font-size: 12px;
  margin-top: 3px;
}
.status-symbol {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #273344;
  color: var(--muted);
  font-size: 15px;
  flex-shrink: 0;
}
.system-card[data-state="healthy"] .status-symbol {
  background: #1d3a32;
  color: var(--green);
}
.system-card[data-state="critical"] .status-symbol {
  background: #442730;
  color: var(--red);
}
.system-card[data-state="warning"] .status-symbol {
  background: #3a3123;
  color: var(--amber);
}
.history-label,
.timeline-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.check-timeline {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 5px;
  margin: 9px 0 5px;
  min-height: 26px;
}
.check-tick {
  height: 26px;
  border-radius: 3px;
  background: #293647;
  border: 1px solid #36465b;
}
.check-tick.ok {
  background: #2f745e;
  border-color: #39866d;
  color: #cff9e9;
}
.check-tick.bad {
  background: #793e48;
  border-color: #a35864;
  color: #ffe5e8;
}
.check-tick span {
  font-size: 10px;
  display: grid;
  place-items: center;
  height: 100%;
}
.timeline-labels {
  color: var(--subtle);
  font-size: 10px;
}
.system-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 19px;
  font-size: 11px;
  color: var(--subtle);
}
.system-footer time {
  color: #c5cede;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.notifications-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.notifications-card .card-heading {
  width: 100%;
  margin-bottom: 19px;
}
.notifications-card h3 {
  margin: 15px 0 6px;
}
.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.notification-actions button {
  font-size: 12px;
}
.footnote {
  font-size: 11px;
  color: var(--subtle);
  margin-top: 17px;
}
.notifications-card .form-message:empty {
  display: none;
}
.incident-card {
  border-color: #72414a;
  border-left: 3px solid #d76570;
  padding: 19px 23px;
  margin-bottom: 22px;
}
.incident-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.incident-heading .muted {
  font-size: 11px;
}
.incident-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.incident-content h2 {
  font-size: 18px;
  margin-bottom: 5px;
}
.incident-content .muted {
  overflow-wrap: anywhere;
}
.incident-meta {
  font-size: 12px;
  color: #c6afba;
  margin-top: 12px;
}
#alarms {
  overflow: hidden;
  margin-bottom: 24px;
}
.section-heading {
  padding: 22px 23px 0;
  margin-bottom: 18px;
}
.section-heading .muted {
  font-size: 12px;
  margin-top: 5px;
}
.count {
  display: inline-block;
  vertical-align: middle;
  color: var(--muted);
  background: #273344;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 7px;
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 23px 18px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 430px;
  border: 1px solid #354155;
  border-radius: 6px;
  background: var(--input);
  padding: 0 11px;
  margin: 0;
  color: var(--subtle);
}
.search-field:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.search-field input {
  border: 0;
  min-width: 0;
  background: transparent;
  padding: 10px 0;
  margin: 0;
  font-size: 12px;
  outline: none;
}
.search-field input:focus-visible {
  outline: none;
}
.filter-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.filter-label select {
  margin: 0;
  width: auto;
  min-width: 155px;
  font-size: 12px;
  min-height: 39px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  min-width: 760px;
}
th {
  background: #151c26;
  color: var(--subtle);
  font-size: 10px;
  letter-spacing: 0.5px;
  font-weight: 600;
  padding: 11px 23px;
  border-block: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 17px 23px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 12px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #1c2633;
}
td strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
td .muted {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  max-width: 380px;
  overflow-wrap: anywhere;
}
td .badge {
  font-size: 10px;
}
td .alarm-status {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}
td time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
td small {
  display: block;
  color: var(--subtle);
  font-size: 10px;
  margin-top: 4px;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 23px;
  color: var(--subtle);
  font-size: 10px;
}
.empty-state {
  text-align: center;
  padding: 32px 24px 37px;
}
.empty-symbol {
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  width: 39px;
  height: 39px;
  border: 1px solid #36564a;
  border-radius: 50%;
  background: #20372f;
  color: var(--green);
  font-size: 18px;
}
.empty-state h3 {
  margin-bottom: 5px;
}
.empty-state .muted {
  font-size: 12px;
}
#alarms-error {
  margin: 0 23px 15px;
}
.details-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 23px;
}
.details-heading .muted {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.details-heading::marker {
  content: "";
}
.details-heading::-webkit-details-marker {
  display: none;
}
.chevron {
  color: var(--subtle);
  font-size: 18px;
}
details:not([open]) .chevron {
  transform: rotate(-90deg);
}
#checks-section {
  margin-bottom: 32px;
  overflow: hidden;
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.checks li {
  border-top: 1px solid var(--line);
  padding: 12px 23px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  min-width: 0;
}
.checks li:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.checks time {
  color: #bcc7d7;
  font-variant-numeric: tabular-nums;
}
.checks .check-duration {
  margin-left: auto;
  color: var(--subtle);
  white-space: nowrap;
}
.checks .badge {
  font-size: 10px;
}
.checks .empty-state {
  grid-column: 1/-1;
  justify-content: center;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-title .eyebrow {
  margin-bottom: 4px;
}
.section-title .muted {
  font-size: 11px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-grid > .card {
  padding: 23px;
  min-width: 0;
}
.account-name {
  font-weight: 600;
  margin-bottom: 3px;
}
.account-card > details,
#users-card > details {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #c5d4ec;
}
summary:hover {
  color: #fff;
}
label {
  display: block;
  margin: 16px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: #c4cede;
}
input,
select {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: var(--input);
  color: var(--text);
  padding: 10px 12px;
  border: 1px solid #38465b;
  border-radius: 6px;
  min-height: 42px;
}
input::placeholder {
  color: #8695ab;
  opacity: 1;
}
label small {
  display: block;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 400;
  margin-top: 5px;
}
.form-message {
  font-size: 12px;
  min-height: 0;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.form-message:empty {
  margin: 16px 0;
}
.error {
  color: var(--red);
}
.success {
  color: var(--green);
}
.users-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.users-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.users-list li:first-child {
  padding-top: 0;
}
.users-list li:last-child {
  border-bottom: 0;
}
.user-info {
  min-width: 0;
  flex: 1;
}
.user-info strong {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.user-info small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 32px;
  padding: 18px 0 3px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 10px;
}
.login-card {
  max-width: 410px;
  margin: 9vh auto;
  padding: 32px;
}
.login-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #c5cbd5;
  border-radius: 8px;
  background: #f1f3f6;
  overflow: hidden;
  margin-bottom: 24px;
}
.login-mark .brand-logo {
  padding: 4px;
}
.login-card h1 {
  font-size: 25px;
  margin-bottom: 10px;
}
.login-card form {
  margin-top: 26px;
}
.login-card label {
  font-size: 13px;
}
.login-card input {
  min-height: 46px;
}
.full-width {
  width: 100%;
}
.login-footer {
  color: var(--subtle);
  font-size: 11px;
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 20px;
  text-align: center;
}
@media (min-width: 1550px) {
  .shell {
    padding-top: 42px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 2.1fr) minmax(290px, 1fr);
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 190px;
    padding-inline: 12px;
  }
  .workspace {
    margin-left: 190px;
  }
  .shell {
    padding: 26px 24px 20px;
  }
  .topbar {
    padding-inline: 24px;
  }
  .kpi-grid {
    gap: 12px;
  }
  .kpi {
    padding: 16px;
  }
  .overview-grid {
    gap: 16px;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
  }
  .system-card,
  .notifications-card {
    padding: 19px;
  }
  .checks {
    grid-template-columns: 1fr;
  }
  .checks li:nth-child(odd) {
    border-right: 0;
  }
  .page-heading {
    align-items: flex-start;
  }
  .update-tools {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
  .system-identity {
    flex-wrap: wrap;
  }
  .system-identity .badge {
    margin-left: 0;
  }
  .system-identity > div {
    flex: 1;
  }
  .system-footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 850px) {
  .sidebar {
    position: relative;
    width: 100%;
    padding: 16px 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    padding: 0;
    font-size: 13px;
  }
  .brand small {
    display: none;
  }
  .brand-mark {
    height: 30px;
    width: 30px;
  }
  .sidebar-bottom,
  .nav-label {
    display: none;
  }
  #navigation {
    display: flex;
    gap: 8px;
    margin-top: 16px;
  }
  .nav-link {
    margin: 0;
    padding: 10px 12px;
    border-radius: 6px 6px 0 0;
    font-size: 12px;
  }
  .nav-link.selected {
    border-bottom-color: var(--blue);
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 56px;
  }
  .shell {
    padding-top: 26px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
  }
  .kpi > strong {
    font-size: 27px;
  }
  .anchor-section {
    scroll-margin-top: 16px;
  }
}
@media (max-width: 640px) {
  h1 {
    font-size: 25px;
  }
  .shell {
    padding: 22px 16px 16px;
  }
  .sidebar {
    padding-inline: 16px;
  }
  .topbar {
    padding-inline: 16px;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .breadcrumb span {
    margin: 0 7px;
  }
  .identity {
    gap: 7px;
  }
  .identity .icon-button {
    margin-left: 0;
  }
  .identity #user-name {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .page-heading {
    flex-direction: column;
    gap: 17px;
    margin-bottom: 19px;
  }
  .update-tools {
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }
  .kpi {
    padding: 15px;
  }
  .kpi-label {
    font-size: 11px;
  }
  .kpi > strong {
    margin-top: 10px;
  }
  .kpi > .muted {
    font-size: 10px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 18px;
  }
  .system-card,
  .notifications-card {
    padding: 18px;
  }
  .card-heading {
    margin-bottom: 18px;
  }
  .system-identity {
    gap: 10px;
  }
  .system-identity h3 {
    font-size: 13px;
  }
  .system-identity .badge {
    margin-left: 52px;
    margin-top: -6px;
  }
  .system-identity > div {
    flex-basis: calc(100% - 54px);
  }
  .system-icon {
    width: 40px;
    height: 40px;
  }
  .system-footer {
    font-size: 10px;
  }
  .notifications-card h3 {
    margin-top: 12px;
  }
  .notification-actions {
    width: 100%;
  }
  .notification-actions button {
    flex: 1;
    min-height: 44px;
  }
  .incident-card {
    padding: 17px;
    margin-bottom: 16px;
  }
  .incident-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .incident-content h2 {
    font-size: 16px;
  }
  .section-heading {
    padding: 18px 18px 0;
    align-items: flex-start;
  }
  .section-heading > .meta-label {
    display: none;
  }
  .table-toolbar {
    padding: 0 18px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .search-field {
    max-width: none;
    flex-basis: 100%;
  }
  .filter-label {
    justify-content: space-between;
    width: 100%;
  }
  .filter-label select {
    flex: 1;
    max-width: 205px;
  }
  th,
  td {
    padding: 12px 18px;
  }
  .table-footer {
    padding: 12px 18px;
    flex-direction: column;
    gap: 3px;
  }
  .empty-state {
    padding: 29px 18px;
  }
  .details-heading {
    padding: 18px;
  }
  .checks li {
    padding: 12px 18px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .settings-grid > .card {
    padding: 18px;
  }
  .section-title > .muted {
    display: none;
  }
  .page-footer {
    flex-direction: column;
    gap: 6px;
  }
  .nav-link {
    padding: 10px;
    font-size: 11px;
    gap: 7px;
  }
  .nav-link .icon {
    width: 16px;
    height: 16px;
  }
  .nav-count {
    margin-left: 0;
  }
  .login-card {
    margin: 5vh auto;
    padding: 25px;
  }
  input,
  select,
  .search-field input {
    font-size: 16px;
  }
  .filter-label select {
    font-size: 14px;
  }
  button {
    min-height: 44px;
  }
}
@media (max-width: 640px) {
  .table-scroll table {
    min-width: 0;
    display: block;
  }
  .table-scroll thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .table-scroll tbody {
    display: block;
  }
  .table-scroll tr {
    display: block;
    padding: 17px 18px;
    border-top: 1px solid var(--line);
  }
  .table-scroll td {
    display: block;
    padding: 0;
    border: 0;
  }
  .table-scroll td:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }
  .table-scroll td .alarm-status {
    margin: 0;
  }
  .table-scroll td:nth-child(3),
  .table-scroll td:nth-child(4) {
    margin-top: 12px;
  }
  .table-scroll td:nth-child(3)::before,
  .table-scroll td:nth-child(4)::before {
    display: block;
    color: var(--subtle);
    font-size: 10px;
    margin-bottom: 3px;
  }
  .table-scroll td:nth-child(3)::before {
    content: "TIDPUNKT";
  }
  .table-scroll td:nth-child(4)::before {
    content: "ANSVARIG";
  }
}
@media (max-width: 380px) {
  #navigation {
    gap: 4px;
  }
  .nav-link {
    flex: 1;
    justify-content: center;
    padding-inline: 7px;
  }
  .nav-link > .icon {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
