:root {
  --bg: #030913;
  --surface: #07111f;
  --surface-2: #0b1727;
  --line: rgba(143, 170, 205, 0.16);
  --muted: #8d9bad;
  --text: #f4f7fb;
  --blue: #4f8dff;
  --cyan: #29d7e3;
  --purple: #9668ff;
  --green: #45e0a8;
  --orange: #f2a65a;
  --red: #ff6d82;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 0%, rgba(61, 93, 190, 0.09), transparent 31rem),
    var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  background: #fff;
  color: #07111f;
}

.skip-link:focus {
  top: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand img {
  width: 2.3rem;
  height: 2.3rem;
}

.brand span {
  display: grid;
}

.brand strong {
  letter-spacing: -0.04em;
  font-size: 1.12rem;
}

.brand small {
  color: #66809d;
  font: 500 0.55rem/1.4 Consolas, "SFMono-Regular", monospace;
  letter-spacing: 0.24em;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  position: relative;
}

.auth-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-ambient::before {
  content: "";
  position: absolute;
  width: 48rem;
  height: 48rem;
  right: -11rem;
  top: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(67, 126, 255, 0.18), transparent 57%),
    conic-gradient(from 20deg, transparent, rgba(140, 80, 255, 0.13), transparent);
  filter: blur(8px);
}

.auth-ambient::after {
  content: "";
  position: absolute;
  width: 32rem;
  height: 32rem;
  right: 4%;
  top: 22%;
  border: 1px solid rgba(74, 129, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(68, 123, 255, 0.018), 0 0 0 10rem rgba(68, 123, 255, 0.014);
}

.auth-header,
.auth-footer {
  z-index: 1;
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-header {
  padding: 2rem 0;
}

.quiet-link,
.auth-footer {
  color: var(--muted);
  font-size: 0.78rem;
}

.quiet-link:hover,
.auth-footer a:hover {
  color: #dbe9ff;
}

.quiet-link span {
  color: var(--blue);
  padding-left: 0.3rem;
}

.auth-layout {
  z-index: 1;
  width: min(1120px, calc(100% - 3rem));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 25rem;
  align-items: center;
  gap: 8rem;
  padding: 4rem 0;
}

.eyebrow {
  color: #95b7e9;
  font: 500 0.68rem/1 Consolas, "SFMono-Regular", monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow i,
.sidebar-runtime > span i,
.sidebar-status i,
.metric-card small i {
  display: inline-block;
  width: 0.44rem;
  height: 0.44rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0.8rem var(--blue);
}

.auth-copy h1 {
  max-width: 44rem;
  margin: 1.45rem 0 1.35rem;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: 0.99;
  letter-spacing: -0.065em;
}

.auth-copy h1 em {
  display: block;
  color: transparent;
  font-style: normal;
  background: linear-gradient(90deg, #5892ff, #9f70ff);
  background-clip: text;
}

.auth-copy > p {
  max-width: 38rem;
  color: #a7b3c4;
  line-height: 1.8;
}

.auth-proof {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.auth-proof span {
  border: 1px solid var(--line);
  border-radius: 99rem;
  padding: 0.55rem 0.8rem;
  color: #8392a7;
  font-size: 0.68rem;
}

.auth-proof b {
  color: #d6e4f6;
}

.login-card {
  position: relative;
  padding: 2.6rem;
  border: 1px solid rgba(110, 150, 210, 0.22);
  border-radius: 1.3rem;
  background: linear-gradient(145deg, rgba(13, 27, 47, 0.94), rgba(5, 13, 25, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
}

.login-card > img {
  width: 3.4rem;
  margin-bottom: 2.2rem;
}

.login-kicker,
.panel-heading span,
.release-hero > div > span,
.modal-heading span,
.security-panel > span {
  color: #66809d;
  font: 500 0.6rem/1.2 Consolas, "SFMono-Regular", monospace;
  letter-spacing: 0.18em;
}

.login-card h2 {
  margin: 0.75rem 0;
  font-size: 1.55rem;
}

.login-card > p {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.primary-button,
.secondary-button,
.danger-button,
.header-add,
.refresh-button {
  border: 0;
  border-radius: 0.65rem;
  padding: 0.72rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}

.primary-button,
.header-add {
  background: linear-gradient(120deg, #2876ff, #7153ff);
  box-shadow: 0 0.6rem 1.8rem rgba(45, 108, 255, 0.18);
}

.primary-button:hover,
.header-add:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}

.full {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.login-security {
  margin-top: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #73849a;
  font-size: 0.65rem;
}

.login-security i {
  width: 0.5rem;
  height: 0.5rem;
  border: 2px solid var(--green);
  border-radius: 50%;
}

.auth-error {
  margin-top: 1rem !important;
  color: #ff91a1 !important;
}

.auth-footer {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(141, 168, 202, 0.08);
}

.platform-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 15rem;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1rem;
  border-right: 1px solid var(--line);
  background: rgba(4, 11, 21, 0.97);
  backdrop-filter: blur(18px);
}

.sidebar-brand {
  padding: 0 0.7rem 2rem;
}

.sidebar nav {
  display: grid;
  gap: 0.25rem;
}

.nav-item {
  width: 100%;
  min-height: 2.8rem;
  display: grid;
  grid-template-columns: 1.4rem 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.8rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  background: transparent;
  color: #8493a7;
  text-align: left;
  font-size: 0.78rem;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
  color: #f1f7ff;
  border-color: rgba(87, 131, 201, 0.18);
  background: linear-gradient(90deg, rgba(50, 109, 238, 0.13), rgba(42, 93, 192, 0.03));
}

.nav-item.active {
  box-shadow: inset 2px 0 0 var(--blue);
}

.nav-icon {
  color: #6683ab;
  font-size: 1.05rem;
}

.nav-item b {
  min-width: 1.35rem;
  padding: 0.1rem 0.3rem;
  border-radius: 99rem;
  background: rgba(91, 119, 160, 0.15);
  color: #92a8c5;
  text-align: center;
  font: 500 0.58rem Consolas, "SFMono-Regular", monospace;
}

.sidebar-runtime {
  margin-top: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(9, 22, 39, 0.7);
}

.sidebar-runtime > span {
  display: block;
  margin-bottom: 0.7rem;
  color: #93a6bf;
  font-size: 0.65rem;
}

.sidebar-runtime > span i,
.sidebar-status i {
  background: var(--green);
  box-shadow: 0 0 0.7rem var(--green);
}

.sidebar-runtime b,
.sidebar-runtime small {
  display: block;
}

.sidebar-runtime b {
  margin-bottom: 0.3rem;
  font: 500 0.68rem Consolas, "SFMono-Regular", monospace;
}

.sidebar-runtime small {
  overflow: hidden;
  color: #61748d;
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-status {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  margin: 0.8rem 0.2rem 0;
  color: #71849a;
  font-size: 0.6rem;
}

.sidebar-status i {
  width: 0.38rem;
  height: 0.38rem;
  margin: 0;
}

.platform-content {
  grid-column: 2;
  min-width: 0;
}

.platform-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 4.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 9, 19, 0.88);
  backdrop-filter: blur(18px);
}

.breadcrumb {
  color: #617189;
  font-size: 0.67rem;
}

.breadcrumb b {
  color: #a2b1c5;
  text-transform: capitalize;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-add {
  padding: 0.56rem 0.8rem;
  font-size: 0.7rem;
}

.header-add span {
  margin-right: 0.3rem;
}

.user-button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.user-button > span,
.profile-avatar {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(80, 150, 255, 0.42);
  border-radius: 50%;
  background: linear-gradient(145deg, #17497f, #312476);
  color: #eaf4ff;
  font-weight: 700;
}

.user-button i {
  display: grid;
  max-width: 12rem;
  font-style: normal;
}

.user-button b,
.user-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-button b {
  font-size: 0.68rem;
}

.user-button small {
  color: #687991;
  font-size: 0.55rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#platform-main {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 2.3rem clamp(1.2rem, 3.5vw, 3.5rem) 5rem;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: view-in 220ms ease;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(4px); }
}

.view-heading {
  min-height: 5.5rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}

.view-heading h1 {
  margin: 0.75rem 0 0.3rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.045em;
}

.view-heading p {
  margin: 0;
  color: #75869c;
  font-size: 0.75rem;
}

.refresh-button,
.secondary-button,
.danger-button {
  border: 1px solid var(--line);
  background: rgba(11, 25, 43, 0.7);
  color: #a4b4c9;
}

.refresh-button:hover,
.secondary-button:hover {
  border-color: #5276a8;
  color: #fff;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(10, 23, 40, 0.8), rgba(5, 14, 26, 0.76));
  box-shadow: 0 0.8rem 2.2rem rgba(0, 0, 0, 0.1);
}

.metric-card {
  min-height: 8.8rem;
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
  border-radius: 0.72rem;
}

.metric-card > span {
  color: #74869e;
  font-size: 0.65rem;
}

.metric-card > b {
  margin: 0.65rem 0 auto;
  font: 500 2rem Consolas, "SFMono-Regular", monospace;
  letter-spacing: -0.06em;
}

.metric-card .release-channel {
  padding-top: 0.4rem;
  color: var(--green);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.metric-card small {
  color: #63758c;
  font-size: 0.58rem;
}

.metric-card small i {
  width: 0.35rem;
  height: 0.35rem;
  margin-right: 0.35rem;
  box-shadow: none;
}

.metric-card small i.green { background: var(--green); }
.metric-card small i.blue { background: var(--blue); }
.metric-card small i.purple { background: var(--purple); }

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.85fr);
  gap: 0.9rem;
}

.panel {
  border-radius: 0.72rem;
  padding: 1.2rem;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.panel-heading h2 {
  margin: 0.35rem 0 0;
  font-size: 1rem;
}

.panel-heading button {
  border: 0;
  background: transparent;
  color: #6f85a2;
  font-size: 0.65rem;
  cursor: pointer;
}

.panel-heading button:hover {
  color: #c9dcf7;
}

.live-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0.9rem var(--green);
}

.mini-device {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(125, 155, 194, 0.09);
}

.mini-device-icon,
.device-icon {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
  background: rgba(57, 111, 214, 0.12);
  color: #6da2ff;
  font: 500 0.68rem Consolas, "SFMono-Regular", monospace;
}

.mini-device div {
  min-width: 0;
}

.mini-device b,
.mini-device small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-device b {
  font-size: 0.72rem;
}

.mini-device small {
  margin-top: 0.22rem;
  color: #687a92;
  font-size: 0.58rem;
}

.status-pill {
  border: 1px solid rgba(69, 224, 168, 0.24);
  border-radius: 99rem;
  padding: 0.3rem 0.52rem;
  background: rgba(69, 224, 168, 0.06);
  color: var(--green);
  font: 500 0.52rem Consolas, "SFMono-Regular", monospace;
  text-transform: uppercase;
}

.status-pill.degraded,
.status-pill.awaiting_enrolment {
  border-color: rgba(242, 166, 90, 0.25);
  background: rgba(242, 166, 90, 0.07);
  color: var(--orange);
}

.status-pill.offline {
  border-color: rgba(255, 109, 130, 0.25);
  background: rgba(255, 109, 130, 0.07);
  color: var(--red);
}

.oled {
  position: relative;
  padding: 1rem;
  border: 1px solid rgba(51, 142, 216, 0.28);
  border-radius: 0.5rem;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(21, 114, 160, 0.025) 3px 4px),
    #02090c;
  box-shadow: inset 0 0 2rem rgba(23, 125, 180, 0.08);
  font-family: Consolas, "SFMono-Regular", monospace;
}

.oled-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(67, 198, 231, 0.08);
  font-size: 0.57rem;
}

.oled-row span { color: #39bdd9; }
.oled-row b { color: #b2e7f2; font-weight: 500; }
.oled-row em { color: var(--green); font-style: normal; }

.oled dl {
  margin: 0.9rem 0 0;
}

.oled dl div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  margin-top: 0.45rem;
  font-size: 0.5rem;
}

.oled dt { color: #3e7683; }
.oled dd {
  margin: 0;
  overflow: hidden;
  color: #79b8c8;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oled .green-text { color: var(--green); }

.quick-panel {
  margin-top: 0.9rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.quick-grid button {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(111, 147, 194, 0.12);
  border-radius: 0.55rem;
  background: rgba(8, 19, 33, 0.7);
  text-align: left;
  cursor: pointer;
}

.quick-grid button:hover {
  border-color: rgba(87, 141, 235, 0.42);
  background: rgba(18, 39, 67, 0.7);
}

.quick-grid button > span {
  grid-row: 1 / 3;
  color: #527fbc;
  font: 500 0.55rem Consolas, "SFMono-Regular", monospace;
}

.quick-grid b {
  font-size: 0.7rem;
}

.quick-grid small {
  margin-top: 0.35rem;
  color: #667990;
  font-size: 0.58rem;
  line-height: 1.5;
}

.filter-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-row label {
  min-width: min(22rem, 100%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(8, 19, 33, 0.8);
  color: #57708e;
}

.filter-row input {
  width: 100%;
  padding: 0.65rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #dce8f7;
  font-size: 0.7rem;
}

.filter-row > div {
  display: flex;
  gap: 0.35rem;
}

.filter-row > div button {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: transparent;
  color: #71829a;
  font-size: 0.62rem;
  cursor: pointer;
}

.filter-row > div button.active {
  border-color: rgba(79, 141, 255, 0.35);
  background: rgba(79, 141, 255, 0.1);
  color: #bcd4ff;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.device-card {
  position: relative;
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  background: linear-gradient(145deg, rgba(10, 23, 40, 0.82), rgba(5, 14, 26, 0.78));
}

.device-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.7rem;
}

.device-card-title {
  min-width: 0;
}

.device-card-title b,
.device-card-title small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-card-title b { font-size: 0.73rem; }
.device-card-title small { margin-top: 0.25rem; color: #6e8098; font-size: 0.57rem; }

.device-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 1rem 0;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(117, 149, 189, 0.09);
  border-bottom: 1px solid rgba(117, 149, 189, 0.09);
}

.device-meta span,
.telemetry-cell span {
  display: block;
  color: #5b6f88;
  font: 500 0.5rem Consolas, "SFMono-Regular", monospace;
}

.device-meta b {
  display: block;
  margin-top: 0.25rem;
  overflow: hidden;
  color: #9dafc6;
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.telemetry-cell {
  padding: 0.5rem;
  border-radius: 0.4rem;
  background: rgba(29, 57, 91, 0.14);
}

.telemetry-cell b {
  display: block;
  margin-top: 0.25rem;
  color: #b9cce4;
  font: 500 0.6rem Consolas, "SFMono-Regular", monospace;
}

.device-card-footer {
  min-height: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 0.8rem;
}

.device-card-footer small {
  color: #52657d;
  font-size: 0.52rem;
}

.device-card-footer button {
  border: 0;
  background: transparent;
  color: #7692b7;
  font-size: 0.58rem;
  cursor: pointer;
}

.sample-badge {
  color: #8aa0bd !important;
  text-transform: uppercase;
}

.loading-row,
.empty-row {
  grid-column: 1 / -1;
  padding: 2rem;
  color: #61758e;
  text-align: center;
  font-size: 0.7rem;
}

.release-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.9rem;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 6% 40%, rgba(65, 125, 255, 0.14), transparent 14rem),
    linear-gradient(145deg, rgba(12, 28, 50, 0.9), rgba(7, 16, 29, 0.82));
}

.release-hero img {
  width: 3.4rem;
}

.release-hero h2 {
  margin: 0.35rem 0;
  font-size: 1rem;
}

.release-hero p {
  margin: 0;
  color: #6e819a;
  font-size: 0.63rem;
}

.release-list {
  padding: 0.4rem 1.2rem;
}

.release-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem 7rem auto;
  align-items: center;
  gap: 1rem;
  min-height: 4.2rem;
  border-bottom: 1px solid rgba(120, 151, 190, 0.1);
}

.release-row:last-child {
  border-bottom: 0;
}

.release-row div {
  min-width: 0;
}

.release-row b,
.release-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-row b { font-size: 0.7rem; }
.release-row small { margin-top: 0.2rem; color: #61748c; font-size: 0.54rem; }
.release-row > span { color: #7f92ab; font: 500 0.58rem Consolas, "SFMono-Regular", monospace; }

.release-row button {
  border: 1px solid rgba(86, 135, 207, 0.24);
  border-radius: 0.45rem;
  padding: 0.45rem 0.65rem;
  background: rgba(31, 77, 147, 0.13);
  color: #9ebbe3;
  font-size: 0.58rem;
  cursor: pointer;
}

.download-note {
  color: #52647b;
  font-size: 0.56rem;
  text-align: center;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) minmax(20rem, 1.25fr);
  gap: 0.9rem;
}

.profile-panel {
  text-align: center;
  padding: 2rem;
}

.profile-avatar {
  width: 4.4rem;
  height: 4.4rem;
  margin: auto;
  font-size: 1.5rem;
}

.profile-panel h2 { margin: 1rem 0 0.2rem; }
.profile-panel > p { margin: 0; color: #75869d; font-size: 0.7rem; }

.profile-panel dl {
  margin: 1.5rem 0 0;
  text-align: left;
}

.profile-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(122, 152, 189, 0.1);
  font-size: 0.65rem;
}

.profile-panel dt { color: #64768d; }
.profile-panel dd { margin: 0; color: #9bacc2; }

.security-panel {
  padding: 2rem;
}

.security-panel h2 {
  margin: 0.55rem 0 1.2rem;
}

.security-panel ul {
  padding: 0;
  list-style: none;
}

.security-panel li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  color: #8293a9;
  font-size: 0.68rem;
}

.security-panel li i {
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid var(--green);
  border-radius: 50%;
}

.danger-button {
  margin-top: 1rem;
  color: #ff9aaa;
}

.modal {
  width: min(31rem, calc(100% - 2rem));
  padding: 0;
  border: 1px solid rgba(100, 143, 205, 0.3);
  border-radius: 0.9rem;
  background: #081321;
  color: var(--text);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(0, 4, 10, 0.78);
  backdrop-filter: blur(5px);
}

.modal form,
.token-modal > div {
  padding: 1.5rem;
}

.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.modal-heading h2 {
  margin: 0.4rem 0 0;
  font-size: 1.15rem;
}

.modal-heading > button {
  border: 0;
  background: transparent;
  color: #71849b;
  font-size: 1.4rem;
  cursor: pointer;
}

.modal p {
  color: #75879e;
  font-size: 0.68rem;
  line-height: 1.6;
}

.modal label {
  display: block;
  margin-top: 1rem;
  color: #8295ad;
  font-size: 0.62rem;
}

.modal input,
.modal select {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  outline: 0;
  background: #050e1a;
  color: #dfeaff;
  font-size: 0.68rem;
}

.modal input:focus,
.modal select:focus {
  border-color: var(--blue);
}

.modal-actions {
  display: flex;
  justify-content: end;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.copy-field {
  margin-top: 0.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #030a12;
  overflow: hidden;
}

.copy-field code {
  overflow: auto;
  padding: 0.75rem;
  color: #8fcae5;
  font: 400 0.56rem/1.5 Consolas, "SFMono-Regular", monospace;
}

.copy-field button {
  border: 0;
  border-left: 1px solid var(--line);
  background: rgba(24, 59, 103, 0.3);
  color: #90add3;
  font-size: 0.58rem;
  cursor: pointer;
}

.copy-field.command code {
  white-space: nowrap;
}

.token-modal .full {
  margin-top: 1.2rem;
  justify-content: center;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 1.2rem;
  bottom: 1.2rem;
  max-width: min(22rem, calc(100% - 2.4rem));
  padding: 0.8rem 1rem;
  border: 1px solid rgba(83, 148, 239, 0.3);
  border-radius: 0.6rem;
  background: #0b1a2e;
  color: #c7d8ee;
  box-shadow: var(--shadow);
  font-size: 0.65rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.6rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 1050px) {
  .auth-layout {
    gap: 3rem;
  }

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

  .overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .auth-layout {
    grid-template-columns: 1fr;
    padding: 2rem 0 4rem;
  }

  .auth-copy h1 {
    font-size: clamp(2.7rem, 14vw, 4.5rem);
  }

  .login-card {
    width: min(25rem, 100%);
  }

  .auth-footer {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .platform-shell {
    display: block;
  }

  .sidebar {
    width: 15rem;
    transform: translateX(-100%);
    transition: transform 200ms ease;
  }

  .platform-shell.menu-open .sidebar {
    transform: none;
  }

  .platform-content {
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }

  .platform-header {
    padding: 0 1rem;
  }

  .breadcrumb {
    display: none;
  }

  .header-add {
    font-size: 0;
  }

  .header-add span {
    margin: 0;
    font-size: 1rem;
  }

  .user-button i {
    display: none;
  }

  .view-heading {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
  }

  .quick-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .filter-row {
    flex-direction: column;
  }

  .filter-row > div {
    overflow-x: auto;
  }

  .release-hero {
    grid-template-columns: auto 1fr;
  }

  .release-hero button {
    grid-column: 1 / -1;
  }

  .release-row {
    grid-template-columns: 1fr auto;
    padding: 0.8rem 0;
  }

  .release-row > span {
    display: none;
  }
}

@media (max-width: 520px) {
  .auth-header,
  .auth-footer,
  .auth-layout {
    width: min(100% - 2rem, 1120px);
  }

  .quiet-link {
    font-size: 0;
  }

  .quiet-link::before {
    content: "Status";
    font-size: 0.7rem;
  }

  .metric-grid,
  .device-grid {
    grid-template-columns: 1fr;
  }

  .telemetry-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
