:root {
  font-family: Inter, "Segoe UI", sans-serif;
  color: #e6e9f2;
  background: #0b0e14;
  font-synthesis: none;
  --muted: #929daf;
  --line: #252c39;
  --accent: #abf07a;
  --panel: #121720;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
a {
  color: inherit;
  text-decoration: none;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 4.4%;
  gap: 46px;
  background: #10141c;
}
.brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.brand > span:last-child {
  color: var(--muted);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 32px;
  margin-right: 9px;
  background: var(--accent);
  color: #182313;
  border-radius: 7px;
  font-size: 21px;
  letter-spacing: 0;
}
.environment {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #b3bece;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 9px;
}
.divider {
  margin: 0 14px;
  color: #566172;
}
.connection {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.connection.offline {
  color: #ffbd92;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 40px 4.4% 20px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 650;
  margin: 0 0 10px;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.2px;
  margin: 0 0 9px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 0;
}
p {
  line-height: 1.55;
}
.subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.version {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: var(--muted);
}
.version b {
  margin-left: 10px;
  color: var(--accent);
  font-size: 16px;
}
.simulation-notice {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid #35432e;
  background: #182018;
  padding: 15px 18px;
  border-radius: 9px;
  margin-bottom: 25px;
}
.notice-icon {
  font-family: Georgia, serif;
  font-style: italic;
  border: 1px solid #778765;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  color: var(--accent);
  flex-shrink: 0;
}
.simulation-notice strong {
  font-size: 12px;
  color: #d2e4bf;
}
.simulation-notice p {
  font-size: 11px;
  color: #a5b69d;
  margin: 3px 0 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #10151d;
}
.stats > div {
  padding: 21px 25px;
  border-right: 1px solid var(--line);
}
.stats > div:last-child {
  border: 0;
}
.stats span {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.stats strong {
  font-size: 28px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.stats small {
  font-size: 16px;
  color: #637086;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  overflow: hidden;
}
.panel-heading {
  padding: 23px 23px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.panel-heading p:not(.eyebrow) {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
}
.counter {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  white-space: nowrap;
}
.accounts {
  padding: 0 15px;
}
.account {
  background: #171d27;
  border: 1px solid #2a3342;
  border-radius: 8px;
  margin-bottom: 11px;
  padding: 16px;
}
.account-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  background: #243040;
  border: 1px solid #3a485d;
  color: #b7cce6;
  border-radius: 9px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.account-name {
  font-size: 13px;
  font-weight: 650;
}
.account-server {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.account-top .badge {
  margin-left: auto;
}
.badge {
  display: inline-block;
  border-radius: 4px;
  font-size: 10px;
  padding: 4px 7px;
  white-space: nowrap;
  background: #28313e;
  color: #bec8d8;
}
.badge.ready,
.badge.outbound {
  background: #283e29;
  color: #b2e798;
}
.badge.waiting,
.badge.connecting,
.badge.sending,
.badge.returning {
  background: #303b50;
  color: #a8caff;
}
.badge.attention,
.badge.unknown {
  background: #493323;
  color: #ffca93;
}
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  cursor: pointer;
}
.toggle input {
  appearance: none;
  width: 30px;
  height: 18px;
  background: #3a4250;
  border-radius: 10px;
  position: relative;
  margin: 0;
  cursor: pointer;
}
.toggle input:before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: 3px;
  top: 3px;
  background: #cad2df;
  border-radius: 50%;
  transition: left 0.15s;
}
.toggle input:checked {
  background: #80b65b;
}
.toggle input:checked:before {
  left: 15px;
  background: #fff;
}
.account-meta {
  display: flex;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
  margin: 15px 0 12px;
}
.account-meta b {
  color: #d9e0ec;
  font-weight: 500;
  margin-left: 4px;
}
.account-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.small-button {
  border: 1px solid #354155;
  color: #bcc9da;
  background: transparent;
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 10px;
}
.small-button:hover,
.secondary:hover {
  background: #263243;
}
.reason {
  font-size: 11px;
  color: #e0b98d;
  margin: 10px 0 0;
}
.retry {
  font-size: 10px;
  color: #a8caff;
  margin: 9px 0 0;
}
.add-account {
  padding: 17px 23px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
}
.add-account label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.add-account > div {
  display: flex;
  gap: 8px;
}
.add-account input {
  min-width: 0;
  flex: 1;
}
.secondary {
  color: #c8d2df;
  background: #1d2633;
  border: 1px solid #354155;
  border-radius: 6px;
  font-size: 11px;
  padding: 10px 12px;
}
.panel-footnote {
  color: #77859a;
  font-size: 10px;
  margin: 0;
  padding: 0 23px 20px;
}
.launch-panel {
  background: linear-gradient(160deg, #1a2227, var(--panel) 60%);
}
.launch-panel form {
  padding: 0 23px 20px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}
legend,
.field-label {
  font-size: 11px;
  color: #b7c2d2;
  margin-bottom: 10px;
  display: block;
}
.field-label {
  margin-top: 19px;
}
.field-label span {
  float: right;
  color: #6e7d93;
}
.segmented {
  display: flex;
  gap: 4px;
  background: #0e131b;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px;
}
.segmented label {
  flex: 1;
  position: relative;
  text-align: center;
  font-size: 11px;
  cursor: pointer;
}
.segmented input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.segmented span {
  display: block;
  padding: 10px 4px;
  border-radius: 4px;
  color: #8d9ab0;
}
.segmented input:checked + span {
  background: #2b3931;
  color: #bde7a5;
}
.segmented input:focus-visible + span {
  outline: 2px solid var(--accent);
}
input:not([type="radio"]):not([type="checkbox"]),
select {
  border: 1px solid #303b4b;
  background: #0f151e;
  color: #dde5f0;
  border-radius: 6px;
  padding: 10px 11px;
  font-size: 12px;
}
select {
  width: 100%;
}
#gap {
  width: 100%;
}
.hint,
.launch-note {
  color: #8592a5;
  font-size: 10px;
  line-height: 1.6;
}
.hint {
  margin: 9px 0 19px;
}
.target {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.portal-symbol {
  font-size: 32px;
  color: #b7a0e9;
}
.target strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.target small {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  color: var(--muted);
}
.primary {
  background: var(--accent);
  color: #213019;
  border: 0;
  border-radius: 6px;
  padding: 12px 15px;
  font-size: 12px;
  font-weight: 700;
}
.primary:hover {
  background: #c2ff92;
}
#send,
#recall {
  width: 100%;
}
#send span {
  float: right;
}
.danger {
  margin-top: 10px;
  color: #ecb2a5;
  background: transparent;
  border: 1px solid #63443d;
  border-radius: 6px;
  padding: 11px;
  font-size: 11px;
}
.danger:hover {
  background: #392620;
}
.launch-note {
  text-align: center;
  margin: 13px 0 0;
  font-size: 9px;
}
.movement-panel,
.activity-panel {
  margin-top: 22px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 11px;
}
th {
  padding: 12px 23px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #8795a9;
  font-weight: 500;
  background: #10151d;
  white-space: nowrap;
}
td {
  padding: 15px 23px;
  border-top: 1px solid #222b38;
  color: #bbc5d5;
}
td small {
  display: block;
  color: #77879c;
  font-size: 10px;
  margin-top: 5px;
}
.empty {
  text-align: center;
  color: #78869a;
  padding: 32px;
}
.activity-panel ol {
  list-style: none;
  margin: 0;
  padding: 0 23px 15px;
  max-height: 230px;
  overflow: auto;
}
.activity-panel li {
  display: flex;
  gap: 18px;
  border-top: 1px solid #202936;
  padding: 10px 0;
  font-size: 11px;
  color: #aebacf;
  line-height: 1.5;
}
.activity-panel time {
  font-size: 10px;
  color: #718097;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.activity-panel b {
  font-weight: 550;
  color: #d1dbea;
}
footer {
  display: flex;
  justify-content: space-between;
  margin: 27px 0 7px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #5d6a7c;
}
footer span {
  letter-spacing: 0;
}
#message {
  position: sticky;
  top: 10px;
  z-index: 2;
  padding: 13px 18px;
  border: 1px solid #566544;
  border-radius: 7px;
  background: #24301d;
  color: #d7edbe;
  font-size: 12px;
  box-shadow: 0 8px 40px #0007;
  margin-bottom: 20px;
}
#message.error {
  background: #37251e;
  border-color: #81513f;
  color: #ffd4bf;
}
dialog {
  background: #171e29;
  color: #dde5f0;
  border: 1px solid #3c4a5e;
  border-radius: 12px;
  padding: 25px;
  width: min(430px, 92vw);
}
dialog::backdrop {
  background: #000b;
}
dialog p {
  color: var(--muted);
  font-size: 12px;
}
.commander-row {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  justify-content: space-between;
}
#commander-options {
  max-height: 200px;
  overflow-y: auto;
}
#commander-search {
  width: 100%;
}
.commander-row span {
  overflow-wrap: anywhere;
}
.commander-row button {
  flex-shrink: 0;
}
.commander-add {
  display: flex;
  gap: 10px;
}
.commander-add select {
  min-width: 0;
  flex: 1;
}
.commander-selection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.commander-caption {
  flex-basis: 100%;
  font-size: 11px;
  color: var(--muted);
}
.commander-chip {
  border: 1px solid #3c4a5e;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 25px;
}
select.fault-select {
  width: 160px;
  font-size: 10px;
  padding: 6px;
}
input[type="checkbox"] {
  accent-color: var(--accent);
}
@media (min-width: 1400px) {
  main {
    padding-top: 48px;
  }
  .account {
    padding: 20px;
  }
  .account-meta {
    margin-top: 19px;
    margin-bottom: 16px;
  }
}
@media (max-width: 850px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .launch-panel {
    order: -1;
  }
  .launch-panel form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
  }
  .launch-panel fieldset {
    margin: 0;
  }
  .launch-panel .field-label {
    margin: 0;
  }
  .launch-panel .hint,
  .launch-panel .target,
  .launch-panel .launch-note {
    grid-column: 1/-1;
  }
  .launch-panel select,
  .launch-panel #gap {
    grid-column: 2;
  }
  .launch-panel .field-label {
    align-self: center;
  }
  .target {
    margin: 0;
  }
  .topbar {
    gap: 20px;
  }
  .connection {
    font-size: 10px;
  }
  .version {
    display: none;
  }
}
@media (max-width: 540px) {
  main {
    padding: 24px 16px;
  }
  .topbar {
    padding: 0 16px;
    height: 65px;
  }
  .environment {
    display: none;
  }
  h1 {
    font-size: 28px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stats > div {
    padding: 17px;
  }
  .stats > div:nth-child(2) {
    border-right: 0;
  }
  .stats > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .account-meta {
    gap: 10px;
    flex-wrap: wrap;
  }
  .account-top {
    flex-wrap: wrap;
    gap: 9px;
  }
  .toggle span {
    display: none;
  }
  .panel-heading {
    padding: 20px 17px;
  }
  .account {
    padding: 13px;
  }
  .avatar {
    width: 30px;
    height: 30px;
  }
  .account-name {
    font-size: 12px;
  }
  .counter {
    font-size: 8px;
  }
  td,
  th {
    padding: 12px 16px;
  }
  .simulation-notice {
    align-items: flex-start;
  }
  footer {
    gap: 15px;
  }
  .add-account > div {
    flex-wrap: wrap;
  }
}
