:root {
  color-scheme: dark;
  --bg: #08110d;
  --panel: rgba(12, 24, 20, 0.72);
  --panelStrong: rgba(9, 18, 16, 0.86);
  --panelBorder: rgba(226, 238, 224, 0.16);
  --surface: rgba(248, 252, 246, 0.07);
  --surfaceStrong: rgba(248, 252, 246, 0.11);
  --text: #f3f8f0;
  --muted: #b9c8bd;
  --soft: #90a698;
  --good: #53d47f;
  --warn: #e8c766;
  --bad: #ff706a;
  --neutral: #9fb0aa;
  --accent: #8fd0c3;
  --accent2: #d6bc78;
  --ink: #07100d;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.backgroundLayer {
  position: fixed;
  inset: 0;
  background-image: url("/static/backgrounds/swedenNature.jpg");
  background-size: cover;
  background-position: center center;
  transform: scale(1.06);
  animation: slowBackgroundMotion 42s ease-in-out infinite alternate;
  z-index: -3;
}

.backgroundOverlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(3, 8, 6, 0.78), rgba(18, 31, 25, 0.34) 48%, rgba(3, 8, 6, 0.7)),
    linear-gradient(to bottom, rgba(4, 11, 8, 0.18), rgba(4, 11, 8, 0.72));
  z-index: -2;
}

@keyframes slowBackgroundMotion {
  0% {
    transform: scale(1.06) translate3d(0, 0, 0);
    background-position: center center;
  }
  50% {
    transform: scale(1.09) translate3d(-0.4%, -0.3%, 0);
    background-position: center 49%;
  }
  100% {
    transform: scale(1.11) translate3d(0.4%, -0.6%, 0);
    background-position: center 52%;
  }
}

.pageShell {
  width: min(1680px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 44px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.topbarLeft h1 {
  margin: 6px 0 8px;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0;
}

.topbarRight {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.76rem;
  color: var(--accent2);
  font-weight: 700;
}

.subtle,
.panelSubtle,
.metricSubtle {
  color: var(--muted);
}

.dashboardGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 14px;
}

.heroPanel,
.servicesPanel,
.issuesPanel,
.cameraPanel,
.minecraftPanel,
.visitPanel {
  min-width: 0;
}

.heroPanel,
.minecraftPanel {
  grid-column: 1 / -1;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panelBorder);
  border-radius: 8px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  padding: 18px;
}

.panelHeader {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.panelHeader h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.panelSubtle {
  margin: 2px 0 0;
  font-size: 0.92rem;
  text-align: right;
}

.overviewGrid,
.compactStats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.compactStats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.statCard,
.metricCard {
  background: var(--surface);
  border: 1px solid rgba(226, 238, 224, 0.12);
  border-radius: 8px;
  padding: 14px;
  min-width: 0;
}

.compactStat {
  min-height: 116px;
}

.metricLabel {
  margin: 0 0 8px;
  color: var(--soft);
  font-size: 0.86rem;
}

.metricValue {
  margin: 0 0 6px;
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.metricSubtle {
  margin: 0;
  font-size: 0.9rem;
}

.statusPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(226, 238, 224, 0.14);
  white-space: nowrap;
}

.statusPill.good,
.badge.good,
.barFill.good {
  color: var(--good);
  background: rgba(83, 212, 127, 0.14);
}

.statusPill.warn,
.badge.warn,
.barFill.warn {
  color: var(--warn);
  background: rgba(232, 199, 102, 0.15);
}

.statusPill.bad,
.badge.bad,
.barFill.bad {
  color: var(--bad);
  background: rgba(255, 112, 106, 0.15);
}

.statusPill.neutral,
.badge.neutral,
.barFill.neutral {
  color: var(--neutral);
  background: rgba(159, 176, 170, 0.15);
}

.secondaryButton,
button {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
}

.secondaryButton {
  background: var(--surfaceStrong);
  color: var(--text);
  border: 1px solid rgba(226, 238, 224, 0.14);
}

.serviceToolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.serviceControl {
  display: grid;
  grid-template-columns: auto minmax(130px, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--soft);
  font-size: 0.8rem;
}

.serviceControl select {
  min-height: 36px;
  padding: 7px 30px 7px 10px;
  border: 1px solid rgba(226, 238, 224, 0.14);
  border-radius: 8px;
  background: var(--panelStrong);
  color: var(--text);
  font: inherit;
}

.serviceGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.serviceGrid > .serviceCard:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.serviceCard {
  --service-accent: var(--neutral);
  --service-brand: #60746a;
  --service-icon-scale: 1.08;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 144px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid rgba(226, 238, 224, 0.12);
  border-radius: 8px;
  padding: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.serviceCard::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 0%,
    transparent 48%,
    color-mix(in srgb, var(--service-brand) 14%, transparent) 58%,
    color-mix(in srgb, var(--service-brand) 38%, transparent) 76%,
    color-mix(in srgb, var(--service-brand) 58%, transparent) 100%
  );
  pointer-events: none;
}

.serviceCard::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--service-accent);
}

.audienceCard-personal {
  --service-accent: #53d47f;
}

.audienceCard-shared {
  --service-accent: #e8c766;
}

.audienceCard-development {
  --service-accent: #69bde8;
}

.audienceCard-monitoring-security {
  --service-accent: #ff706a;
}

.serviceCard:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--service-accent) 52%, transparent);
  background: var(--surfaceStrong);
}

.inactiveService {
  opacity: 0.78;
}

.serviceCardContent {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.serviceCardLogo {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  opacity: 0.34;
  filter: saturate(0.9);
  transform: scale(var(--service-icon-scale));
  transform-origin: right center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 48%, rgba(0, 0, 0, 0.38) 62%, #000 82%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 48%, rgba(0, 0, 0, 0.38) 62%, #000 82%);
}

.serviceCardWordmark {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 12px;
  width: 48%;
  transform: translateY(-50%);
  color: var(--service-brand);
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
  opacity: 0.28;
  overflow-wrap: anywhere;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 48%);
  mask-image: linear-gradient(to right, transparent 0%, #000 48%);
}

.serviceCardTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.serviceCategory {
  color: var(--accent2);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 8px;
  font-weight: 700;
}

.serviceAudience {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 58%;
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--service-accent) 34%, transparent);
  border-radius: 999px;
  color: var(--service-accent);
  background: rgba(3, 8, 6, 0.5);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: right;
}

.serviceName {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}

.serviceDescription {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.serviceFooter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
}

.serviceUsageCount {
  margin-left: auto;
  color: var(--soft);
  font-size: 0.76rem;
  white-space: nowrap;
}

.emptyState {
  color: var(--muted);
  margin: 0;
}

.issueList,
.targetList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.issueCard,
.targetCard {
  background: var(--surface);
  border: 1px solid rgba(226, 238, 224, 0.12);
  border-radius: 8px;
  padding: 13px;
}

.issueTop,
.targetTop,
.minecraftTop {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.issueId,
.targetName {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.issueTitle,
.targetMeta {
  margin: 0 0 6px;
  color: var(--text);
}

.issueDetails,
.targetError,
.motd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.heroHardwareGrid,
.hardwareGrid {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(320px, 1.25fr) repeat(2, minmax(220px, 0.82fr));
  gap: 12px;
  margin-top: 12px;
}

.hardwareBlock {
  background: var(--surface);
  border: 1px solid rgba(226, 238, 224, 0.12);
  border-radius: 8px;
  padding: 14px;
  min-width: 0;
}

.hardwareBlock h3 {
  margin: 0 0 12px;
  font-size: 0.98rem;
}

.hardwareBlock:first-child {
  grid-column: auto;
}

.resourceBlock,
.cpuBlock {
  min-height: 100%;
}

.barRow {
  margin-bottom: 12px;
}

.barMeta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.barMeta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bar {
  width: 100%;
  height: 10px;
  background: rgba(3, 8, 6, 0.46);
  border: 1px solid rgba(226, 238, 224, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.barFill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.24s ease;
}

.barFill.good {
  background: linear-gradient(90deg, #53d47f, #8fd0c3);
}

.barFill.warn {
  background: linear-gradient(90deg, #e8c766, #d6bc78);
}

.barFill.bad {
  background: linear-gradient(90deg, #ff706a, #e8c766);
}

.barFill.neutral {
  background: rgba(159, 176, 170, 0.42);
}

.barDetail {
  margin: 6px 0 0;
  color: var(--soft);
  font-size: 0.82rem;
}

.coreGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

.miniStat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(226, 238, 224, 0.1);
  color: var(--muted);
}

.miniStat:last-child {
  border-bottom: 0;
}

.miniStat strong {
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
}

.cameraFrame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  overflow: hidden;
  background: rgba(3, 8, 6, 0.58);
  border: 1px solid rgba(226, 238, 224, 0.14);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.cameraFrame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cameraFrame:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cameraAction {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(226, 238, 224, 0.18);
  border-radius: 999px;
  background: rgba(3, 8, 6, 0.7);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 10px;
  backdrop-filter: blur(10px);
}

.cameraState {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(3, 8, 6, 0.52);
  font-weight: 700;
}

.cameraState[hidden] {
  display: none;
}

.serviceSignal,
.minecraftStatus {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.serviceDetailGrid {
  display: block;
}

.serviceSignal {
  background: var(--surface);
  border: 1px solid rgba(226, 238, 224, 0.12);
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
}

.serviceSignalLink {
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.serviceSignalLink:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 208, 195, 0.42);
  background: var(--surfaceStrong);
}

.serviceInventoryWrap {
  max-height: 520px;
  overflow: auto;
}

.serviceInventoryTable {
  min-width: 1120px;
}

.serviceInventoryTable th,
.serviceInventoryTable td {
  padding: 9px 10px;
  font-size: 0.86rem;
}

.serviceInventoryTable td:first-child strong,
.serviceInventoryTable td:first-child span {
  display: block;
}

.serviceInventoryTable td:first-child span {
  color: var(--soft);
  font-size: 0.76rem;
  margin-top: 2px;
}

.serviceInventoryTable .badge {
  min-height: 24px;
  padding: 4px 8px;
}

.serviceInventoryRow {
  cursor: pointer;
}

.serviceInventoryRow:hover td {
  background: rgba(248, 252, 246, 0.05);
}

.tableSortButton {
  appearance: none;
  width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-transform: inherit;
}

.tableSortButton span {
  color: var(--accent2);
  margin-left: 4px;
}

.tableSortButton.active {
  color: var(--text);
}

.modalOverlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 8, 6, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modalOverlay[hidden] {
  display: none;
}

.modalPanel {
  width: min(980px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  background: var(--panelStrong);
  border: 1px solid var(--panelBorder);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.modalHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.modalHeader h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.modalBody {
  display: grid;
  gap: 14px;
}

.modalSection {
  background: var(--surface);
  border: 1px solid rgba(226, 238, 224, 0.12);
  border-radius: 8px;
  padding: 14px;
}

.modalSection h3 {
  margin: 0 0 12px;
  font-size: 0.96rem;
}

.detailGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detailItem {
  min-width: 0;
}

.detailItem span {
  display: block;
  color: var(--soft);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.detailItem strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.modalText {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.mediaGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.mediaGroup {
  display: grid;
  gap: 10px;
}

.mediaGroup + .mediaGroup {
  margin-top: 16px;
}

.mediaGroupHeader {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.mediaGroupHeader h4 {
  margin: 0;
  font-size: 0.92rem;
}

.mediaGroupHeader span {
  color: var(--soft);
  font-size: 0.82rem;
}

.mediaTile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(226, 238, 224, 0.12);
  background: rgba(3, 8, 6, 0.58);
}

.mediaTileButton {
  width: 100%;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mediaTileButton:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.mediaTile img,
.mediaTile video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mediaVideoPlaceholder {
  display: grid;
  place-items: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(143, 208, 195, 0.18), rgba(214, 188, 120, 0.12)),
    rgba(3, 8, 6, 0.58);
}

.mediaVideoPlaceholder strong {
  font-size: 1rem;
}

.mediaVideoPlaceholder small {
  color: var(--muted);
  font-size: 0.78rem;
}

.mediaTile span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 6px;
  background: rgba(3, 8, 6, 0.72);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mediaViewerToolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mediaViewerToolbar span {
  color: var(--soft);
  font-size: 0.86rem;
}

.mediaViewer {
  width: 100%;
  background: rgba(3, 8, 6, 0.58);
  border: 1px solid rgba(226, 238, 224, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.mediaViewer video,
.mediaViewer img {
  display: block;
  width: 100%;
  max-height: min(70vh, 720px);
  object-fit: contain;
  background: rgba(3, 8, 6, 0.76);
}

.serviceSignalTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.serviceSignalName {
  display: block;
  font-weight: 800;
}

.serviceSignalCategory {
  display: block;
  color: var(--soft);
  font-size: 0.78rem;
  margin-top: 3px;
}

.serviceSignalSummary {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  min-height: 2.35em;
  overflow-wrap: anywhere;
}

.serviceSignalGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.serviceSignalGrid div {
  background: var(--surface);
  border: 1px solid rgba(226, 238, 224, 0.1);
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
}

.serviceSignalGrid span {
  display: block;
  color: var(--soft);
  font-size: 0.78rem;
  margin-bottom: 5px;
}

.serviceSignalGrid strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.minecraftPanel .panelHeader {
  margin-bottom: 10px;
}

.minecraftPanel .motd {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tableWrap {
  overflow-x: auto;
}

table,
.containerTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid rgba(226, 238, 224, 0.1);
  vertical-align: top;
}

th {
  color: var(--soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 800;
}

td {
  color: var(--text);
  overflow-wrap: anywhere;
}

.valueGood {
  color: var(--good);
}

.valueWarn {
  color: var(--warn);
}

.valueBad {
  color: var(--bad);
}

.valueNeutral {
  color: var(--neutral);
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.login-card {
  width: min(420px, 100%);
  background: var(--panelStrong);
  border: 1px solid var(--panelBorder);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  letter-spacing: 0;
}

label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
}

input {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(226, 238, 224, 0.14);
  background: rgba(248, 252, 246, 0.07);
  color: var(--text);
  font: inherit;
}

button[type="submit"] {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--ink);
  font-weight: 800;
}

.error {
  color: var(--bad);
  margin-top: 14px;
}

@media (max-width: 1220px) {
  .dashboardGrid,
  .heroHardwareGrid,
  .hardwareGrid {
    grid-template-columns: 1fr;
  }

  .hardwareBlock:first-child {
    grid-column: auto;
  }

  .overviewGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .serviceDetailGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mediaGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pageShell {
    width: min(100% - 20px, 1680px);
    padding-top: 16px;
  }

  .topbar {
    flex-direction: column;
  }

  .topbarLeft h1 {
    font-size: 2.3rem;
  }

  .topbarRight {
    width: 100%;
    justify-content: space-between;
  }

  .panelHeader {
    display: block;
  }

  .serviceToolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .serviceControl {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .panelSubtle {
    text-align: left;
  }

  .overviewGrid,
  .serviceGrid,
  .serviceDetailGrid,
  .compactStats,
  .coreGrid,
  .serviceSignalGrid,
  .mediaGrid,
  .detailGrid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 14px;
  }

  .cameraFrame {
    min-height: 180px;
  }

  .metricValue {
    font-size: 1.35rem;
  }
}
