:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #1a2b40;
  background: #f3f6fa;
  font-size: 14px;
  --blue: #0868d1;
  --navy: #0c2038;
  --muted: #68788a;
  --line: #dde5ee;
  --white: #fff
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

[hidden] {
  display: none !important
}

button,
input,
select,
textarea {
  font: inherit
}

button,
a,
input,
select,
textarea {
  outline-offset: 4px
}

button {
  border: 1px solid #d3dce7;
  background: white;
  color: #253f5a;
  border-radius: 7px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap
}

button:hover {
  border-color: #8daac9;
  background: #f5f9fd
}

button:disabled {
  opacity: .5;
  cursor: default
}

.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white
}

.primary:hover {
  background: #075aaf;
  border-color: #075aaf
}

.danger {
  color: #b32736
}

.small-button {
  padding: 6px 10px;
  font-size: 12px
}

a {
  color: var(--blue);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

h1,
h2,
h3,
p {
  margin-top: 0
}

h1 {
  font-size: 30px;
  letter-spacing: -.8px;
  margin-bottom: 8px
}

h2 {
  font-size: 21px
}

h3 {
  font-size: 16px
}

p {
  line-height: 1.65
}

.muted {
  color: var(--muted)
}

.small {
  font-size: 12px
}

.eyebrow,
.nav-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700
}

.eyebrow {
  color: var(--blue);
  display: block;
  margin-bottom: 14px
}

.signin {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr
}

.signin-brand {
  background: linear-gradient(135deg, #081b30, #123962);
  padding: 65px 12%;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start
}

.signin-brand img {
  width: 220px;
  max-width: 100%;
  height: auto
}

.signin-brand>span {
  font-size: 11px;
  letter-spacing: 3px;
  color: #9abce1;
  margin: 14px 0 110px
}

.signin-brand h1 {
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1.1;
  letter-spacing: -2px
}

.signin-brand p {
  font-size: 17px;
  color: #a9c0d8;
  max-width: 340px
}

.brand-footer {
  margin-top: auto;
  padding-top: 100px;
  color: #89a6c5;
  font-size: 12px
}

.signin-form {
  display: grid;
  place-items: center;
  padding: 40px
}

.signin-form form {
  width: 100%;
  max-width: 350px
}

.signin-form h2 {
  font-size: 30px;
  margin-bottom: 8px
}

.signin-form form>.primary {
  width: 100%;
  margin: 16px 0
}

.signin-form form>.primary span {
  float: right
}

.signin-form label {
  margin: 24px 0 0
}

.workspace {
  display: flex;
  min-height: 100vh
}

.sidebar {
  width: 230px;
  flex-shrink: 0;
  background: var(--navy);
  color: #b8cbe0;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column
}

.brand {
  padding: 8px 14px 32px;
  display: block
}

.brand img {
  width: 158px;
  height: auto
}

.brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 2.5px;
  margin-top: 12px;
  color: #8ba5c2
}

.nav-label {
  color: #6685a8;
  padding: 0 14px 12px
}

nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto
}

nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a9bdd4;
  padding: 12px 14px;
  border-radius: 7px;
  font-weight: 500
}

nav a:hover {
  background: #142f4d;
  text-decoration: none;
  color: white
}

nav a.active {
  background: #173e68;
  color: #fff;
  box-shadow: inset 3px 0 #3d9dff
}

.nav-symbol {
  width: 18px;
  text-align: center;
  font-size: 16px;
  color: #7f9dbd
}

.sidebar-bottom {
  margin-top: auto;
  padding: 25px 13px 0
}

#identity strong {
  color: #fff;
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere
}

#identity span {
  display: block;
  font-size: 11px;
  margin: 5px 0 14px;
  color: #84a3c3
}

.sidebar-button {
  display: block;
  background: transparent;
  border: 0;
  padding: 6px 0;
  color: #b3c9e0;
  font-size: 12px
}

.sidebar-button:hover {
  background: transparent;
  color: #fff
}

.release {
  display: block;
  margin-top: 18px;
  font-size: 10px;
  color: #647f9e
}

.main-shell {
  margin-left: 230px;
  width: calc(100% - 230px);
  min-width: 0
}

.topbar {
  height: 70px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  color: #718195;
  font-size: 12px
}

.workspace-label {
  font-weight: 600;
  color: #365673
}

main {
  padding: 32px 36px;
  min-height: calc(100vh - 118px);
  max-width: 1700px;
  margin: auto
}

footer {
  height: 48px;
  padding: 12px 36px;
  color: #8793a2;
  font-size: 11px
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px
}

.page-heading p {
  margin-bottom: 0
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 22px;
  padding: 24px;
  box-shadow: 0 3px 10px #1f3c5b03
}

.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px
}

.card-title h2,
.card-title h3 {
  margin: 0
}

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

.launch-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  border-top: 3px solid #3786dd
}

.launch-card p {
  flex-grow: 1;
  color: var(--muted)
}

.launch-card a {
  font-weight: 600;
  font-size: 13px
}

.connection-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  background: #e8f3ee;
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  margin-bottom: 25px;
  color: #266244
}

.connection-strip.warning {
  background: #fff5e4;
  border-color: #eed9b5;
  color: #896126
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0
}

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

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

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #3d526b
}

input,
select,
textarea {
  border: 1px solid #ccd7e4;
  border-radius: 6px;
  background: #fff;
  padding: 10px 11px;
  color: #203750;
  width: 100%;
  min-width: 0
}

input:focus,
select:focus,
textarea:focus {
  border-color: #3b89dc;
  outline: 2px solid #daebfc
}

input:disabled,
select:disabled {
  background: #f0f3f7;
  color: #7b8998
}

input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  margin: 0;
  flex-shrink: 0
}

.check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  min-height: 25px
}

.filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end
}

.filter-grid label {
  width: 145px
}

.filter-grid label.wide {
  width: 190px
}

.filter-grid label.short {
  width: 105px
}

.search-footer {
  display: flex;
  gap: 8px;
  margin-top: 16px
}

.table-card {
  padding: 0;
  overflow: hidden
}

.table-wrap {
  overflow-x: auto
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px
}

th {
  font-size: 10px;
  letter-spacing: .8px;
  text-transform: uppercase;
  text-align: left;
  background: #f8fafc;
  color: #748398;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap
}

td {
  padding: 17px 16px;
  border-bottom: 1px solid #edf1f5;
  vertical-align: middle
}

tbody tr:last-child td {
  border-bottom: 0
}

tbody tr:hover {
  background: #fbfdff
}

td strong {
  font-size: 13px;
  font-weight: 600
}

.subline {
  font-size: 11px;
  color: #8190a0;
  margin-top: 4px
}

.monospace {
  font-family: Consolas, monospace
}

.badge {
  display: inline-block;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 700;
  background: #e6f4ec;
  color: #247749;
  white-space: nowrap;
  margin: 2px
}

.badge.off {
  background: #eef1f5;
  color: #7c8898
}

.badge.warn {
  background: #fff0d9;
  color: #966015
}

.badge.bad {
  background: #fdecef;
  color: #ae3c4d
}

.table-actions {
  display: flex;
  gap: 6px;
  align-items: center
}

.menu {
  position: relative
}

.menu summary {
  cursor: pointer;
  padding: 5px 9px;
  border: 1px solid #d3dce7;
  border-radius: 6px;
  list-style: none;
  white-space: nowrap
}

.menu[open] .menu-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px
}

.menu-items {
  max-width: 360px
}

.table-footer {
  padding: 14px 18px;
  background: #fbfcfe;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7b8998;
  font-size: 12px
}

.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 14px 18px;
  background: #edf5ff;
  border-bottom: 1px solid #d6e6f8
}

.bulk-bar span {
  margin-right: 10px;
  font-size: 12px;
  font-weight: 600
}

.empty {
  padding: 50px 25px;
  text-align: center;
  color: #7b8998
}

.empty h3 {
  color: #314e6b;
  margin-bottom: 8px
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line)
}

.group-picker {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center
}

.group-box {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
  min-height: 170px;
  max-height: 300px;
  overflow: auto
}

.group-box h3 {
  font-size: 12px
}

.group-box .check {
  padding: 8px 2px
}

.group-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.membership-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 110px repeat(3, 130px);
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px
}

.membership-row:last-child {
  border-bottom: 0
}

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

.reported {
  padding: 16px;
  background: #f7f9fc;
  border-radius: 7px;
  margin-top: 20px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap
}

.reported strong {
  display: block;
  font-family: Consolas, monospace;
  margin-top: 5px;
  font-size: 13px
}

.reported span {
  font-size: 11px;
  color: #6f8196
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line)
}

.contact-search {
  display: flex;
  gap: 10px;
  align-items: end;
  margin-top: 18px
}

.contact-search label {
  max-width: 210px
}

.help {
  font-size: 12px;
  color: #778699;
  margin-top: 12px
}

.error-text {
  color: #b52f43;
  font-size: 13px
}

.notice {
  margin: 20px 36px 0;
  padding: 13px 16px;
  border-radius: 7px;
  background: #e6f4ec;
  border: 1px solid #bfdccc;
  color: #245e41;
  display: flex;
  align-items: center;
  gap: 15px
}

.notice.error {
  background: #fff0ed;
  border-color: #edc8bf;
  color: #923927
}

.initial-loading {
  padding: 80px;
  text-align: center;
  color: #6f8196
}

dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  max-width: 480px;
  width: calc(100% - 40px);
  color: #203750;
  box-shadow: 0 20px 70px #0003
}

dialog::backdrop {
  background: #0c203888
}

dialog p {
  color: #6c7b8d
}

audio {
  max-width: 100%;
  height: 35px
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.code-hint {
  font-family: Consolas, monospace;
  background: #edf2f8;
  padding: 10px;
  border-radius: 5px;
  overflow-wrap: anywhere;
  font-size: 12px
}

.identity-title {
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #7b8998;
  margin-bottom: 4px
}

.settings-section {
  max-width: 900px
}

.password-page {
  max-width: 560px
}

.results-note {
  color: #728398;
  font-size: 12px;
  margin-bottom: 15px
}

@media(min-width:1600px) {
  main {
    padding: 38px 48px
  }
}

@media(max-width:1100px) {

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

  .cards {
    grid-template-columns: 1fr 1fr
  }

  .membership-row {
    grid-template-columns: 1fr 90px;
    gap: 10px
  }

  .features {
    grid-template-columns: repeat(2, 1fr)
  }

  main {
    padding: 24px
  }

  .topbar {
    padding: 0 24px
  }

  .sidebar {
    width: 200px
  }

  .main-shell {
    margin-left: 200px;
    width: calc(100% - 200px)
  }
}

@media(max-width:720px) {
  .signin {
    grid-template-columns: 1fr
  }

  .signin-brand {
    padding: 35px
  }

  .signin-brand>span {
    margin: 12px 0 35px
  }

  .signin-brand h1 {
    font-size: 36px
  }

  .brand-footer {
    display: none
  }

  .signin-brand p {
    margin: 0
  }

  .signin-form {
    padding: 35px
  }

  .sidebar {
    position: relative;
    width: 100%;
    padding: 18px
  }

  .workspace {
    display: block
  }

  .brand {
    padding: 0 5px 18px
  }

  .brand img {
    width: 130px
  }

  .brand span {
    display: inline;
    margin-left: 20px
  }

  nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px
  }

  nav a {
    padding: 9px;
    font-size: 12px
  }

  .nav-symbol,
  .nav-label {
    display: none
  }

  .sidebar-bottom {
    padding: 15px 5px 0;
    display: flex;
    align-items: center;
    gap: 18px
  }

  .sidebar-bottom #identity {
    margin-right: auto
  }

  .sidebar-bottom #identity span {
    margin: 3px 0
  }

  .release {
    display: none
  }

  .main-shell {
    margin: 0;
    width: 100%
  }

  .topbar {
    height: 50px
  }

  .cards,
  .grid,
  .grid.two,
  .grid.four {
    grid-template-columns: 1fr
  }

  .page-heading {
    align-items: flex-start
  }

  .page-heading h1 {
    font-size: 25px
  }

  .features {
    grid-template-columns: 1fr 1fr
  }

  .group-picker {
    grid-template-columns: 1fr
  }

  .group-buttons {
    flex-direction: row
  }

  .notice {
    margin: 15px 20px 0
  }

  .card {
    padding: 18px
  }

  .table-card {
    padding: 0
  }

  .contact-search {
    flex-wrap: wrap
  }
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap
}

.button-link.primary {
  color: white
}

/* Preserve the two original marks, with IQ PTT below VECTIQ. */
.brand img { display: block; max-width: 100%; }
.brand img.iq-ptt-logo { width: 158px; margin-top: 2px; }
.signin-brand img.iq-ptt-logo { width: 220px; margin-top: 4px; }
.signin-brand > span { margin-top: 2px; margin-bottom: 70px; }
.brand span { margin-top: 2px; }
@media (max-width:720px) {
  .brand img.iq-ptt-logo { width: 130px; }
  .brand span { display: block; margin-left: 0; }
  .signin-brand > span { margin-bottom: 35px; }
}
