* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
  background: #070b14;
  color: #e8f0ff;
  font-family: "Segoe UI", system-ui, sans-serif;
}
.titlebar {
  display: flex;
  align-items: center;
  background: #080d18;
  border-bottom: 1px solid #1d293c;
}
.titlebar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: #8aa0c0;
}
.logo-mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: radial-gradient(circle at 30% 20%, #9af7ff, #3ddcff 40%, #1a6bff);
  box-shadow: 0 0 16px #3ddcff40;
}
.logo-mark.lg {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}
.shell {
  display: grid;
  grid-template-columns: 232px 1fr;
}
.sidebar {
  background: linear-gradient(180deg, #0d1422, #0a101b);
  border-right: 1px solid #1d293c;
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 18px;
}
.brand h1 {
  font-size: 16px;
  letter-spacing: 3px;
  margin: 0;
}
.brand span {
  display: block;
  font-size: 10px;
  color: #8aa0c0;
  margin-top: 7px;
}
.sidebar-foot {
  margin-top: auto;
  padding: 14px;
  border-radius: 14px;
  background: #101826;
  border: 1px solid #233045;
  font-size: 12px;
}
.main {
  min-width: 0;
  background:
    radial-gradient(900px 400px at 80% -10%, #3ddcff14, transparent 50%),
    #070b14;
}
.card {
  background: linear-gradient(180deg, #151e2feb, #101826eb);
  border: 1px solid #29364a;
  border-radius: 18px;
  box-shadow: 0 18px 50px #0003;
}
.badge {
  padding: 6px 10px;
  background: #193b37;
  color: #7de6ca;
  border-radius: 6px;
  font-size: 12px;
}
.hint {
  font-size: 13px;
  color: #8aa0c0;
}
/* Real service portal */
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  overflow: auto;
}
.shell {
  min-height: calc(100vh - 52px);
  height: auto;
}
.main {
  overflow: visible;
  padding: 36px;
}
.titlebar {
  justify-content: space-between;
  padding: 0 28px;
  height: 52px;
}
.release,
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  color: #75abb7;
}
.sidebar {
  min-height: calc(100vh - 52px);
}
.sidebar-copy {
  padding: 30px 8px;
  line-height: 1.8;
  color: #8ea2ba;
  font-size: 19px;
}
.sidebar-foot {
  line-height: 1.7;
}
a {
  color: #5bddce;
}
h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 14px 0;
}
h3 {
  font-size: 22px;
  margin: 12px 0;
}
p {
  line-height: 1.65;
  color: #9bacc0;
}
.panel {
  padding: 28px;
  margin-bottom: 22px;
}
#auth {
  max-width: 570px;
  margin: 7vh auto;
}
.overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
label {
  display: block;
  font-size: 13px;
  color: #c8d6e8;
  margin: 20px 0;
}
input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 9px;
  background: #091320;
  border: 1px solid #2a3c50;
  border-radius: 8px;
  padding: 13px 15px;
  color: #edf7ff;
  font: inherit;
}
button {
  cursor: pointer;
  font: inherit;
  color: #dceaf5;
  background: #15263a;
  border: 1px solid #304159;
  padding: 11px 17px;
  border-radius: 8px;
}
button.primary {
  background: #63e5d0;
  color: #08242b;
  border-color: #63e5d0;
  font-weight: 700;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid #63e5d0;
  outline-offset: 4px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#message:not(:empty) {
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 8px;
  line-height: 1.5;
}
.error {
  background: #3a1d28;
  color: #ffb7c7;
}
.success {
  background: #12342e;
  color: #b7f6e1;
}
.device-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #26354a;
  padding: 16px 0;
  gap: 14px;
}
.device-row p {
  margin: 5px 0;
}
#device-form {
  display: flex;
  align-items: end;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 16px;
}
#device-form label {
  flex: 1;
  margin: 0;
  min-width: 180px;
}
#download-panel {
  background: #15392f;
  border: 1px solid #367860;
  padding: 20px;
  margin: 24px 0;
  border-radius: 12px;
}
#download-panel button {
  margin: 4px;
}
.setup {
  padding-left: 22px;
  color: #bdcfe0;
  line-height: 2.1;
  margin-top: 28px;
}
@media (max-width: 800px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .main {
    padding: 20px;
  }
  .overview {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .panel {
    padding: 22px;
  }
  .release {
    display: none;
  }
  .heading {
    align-items: start;
  }
  h2 {
    font-size: 25px;
  }
}
