:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f5f7f8;
  color: #172126;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f5f7f8;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.topbar {
  min-height: 64px;
  padding: 10px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #f9fbfb;
  background: #172126;
  border-bottom: 3px solid #e8b949;
}

.brand,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #172126;
  background: #e8b949;
  border-radius: 6px;
  font-weight: 800;
}

.brand div {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 15px;
}

.brand div span {
  color: #aebbc0;
  font-size: 12px;
}

.administrator {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #dce4e6;
  font-size: 13px;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.login-view {
  min-height: calc(100vh - 132px);
  display: grid;
  place-items: center;
}

.login-panel {
  width: min(430px, 100%);
  padding: 34px;
  background: #ffffff;
  border: 1px solid #d8e0e2;
  border-top: 4px solid #27886f;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgb(23 33 38 / 8%);
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading.horizontal {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 7px;
  color: #27886f;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  color: #172126;
}

h1 {
  font-size: 25px;
  line-height: 1.25;
}

h2 {
  font-size: 20px;
  line-height: 1.3;
}

.section-heading > p:last-child {
  margin: 10px 0 0;
  color: #66757b;
  font-size: 14px;
}

form label {
  display: block;
  margin: 0 0 7px;
  color: #3b4a50;
  font-size: 13px;
  font-weight: 700;
}

form input {
  width: 100%;
  height: 44px;
  margin: 0 0 17px;
  padding: 0 12px;
  color: #172126;
  background: #fff;
  border: 1px solid #b9c5c9;
  border-radius: 5px;
  outline: none;
}

form input:focus {
  border-color: #27886f;
  box-shadow: 0 0 0 3px rgb(39 136 111 / 13%);
}

.button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 750;
  white-space: nowrap;
}

.button.primary {
  color: #ffffff;
  background: #1f755f;
  border-color: #1f755f;
}

.button.primary:hover {
  background: #185f4d;
}

.button.secondary {
  color: #2c3a40;
  background: #ffffff;
  border-color: #b9c5c9;
}

.topbar .button.secondary {
  color: #f5f7f8;
  background: transparent;
  border-color: #617077;
}

.button.full {
  width: 100%;
  margin-top: 2px;
}

.button.full + .button.full {
  margin-top: 9px;
}

.button.compact {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.form-message {
  min-height: 20px;
  margin: 13px 0 0;
  color: #b13d38;
  font-size: 13px;
}

.form-message[data-kind="success"] {
  color: #1f755f;
}

.form-message[data-kind="info"] {
  color: #52646b;
}

.app-view {
  display: grid;
  gap: 26px;
}

.status-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 25px;
  border-bottom: 1px solid #ccd6d9;
}

.status-summary {
  min-width: min(420px, 100%);
  display: grid;
  grid-template-columns: 12px auto;
  align-items: center;
  column-gap: 9px;
  row-gap: 4px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #d8e0e2;
  border-radius: 6px;
}

.status-summary > span:last-child {
  grid-column: 2;
  color: #66757b;
  font-size: 12px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #839197;
}

.status-dot.ready {
  background: #27886f;
  box-shadow: 0 0 0 4px rgb(39 136 111 / 13%);
}

.status-dot.warning {
  background: #d79020;
  box-shadow: 0 0 0 4px rgb(215 144 32 / 14%);
}

.workspace {
  padding: 25px 0 8px;
}

.count {
  padding: 5px 9px;
  color: #52646b;
  background: #e8edef;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 750;
}

.add-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
}

.add-form input {
  margin-bottom: 0;
  font-family: Consolas, "SFMono-Regular", monospace;
}

.field-grow {
  min-width: 0;
}

.table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #d8e0e2;
  border-radius: 6px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e4eaec;
  font-size: 13px;
  vertical-align: middle;
}

th {
  color: #52646b;
  background: #f8fafb;
  font-size: 11px;
  text-transform: uppercase;
}

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

tbody tr:hover {
  background: #fbfcfc;
}

.network-value {
  font-family: Consolas, "SFMono-Regular", monospace;
  overflow-wrap: anywhere;
}

.action-column {
  width: 76px;
  text-align: right;
}

.delete-button {
  min-width: 52px;
  min-height: 31px;
  color: #a1322e;
  background: transparent;
  border: 1px solid #d8aaa7;
  border-radius: 4px;
  font-weight: 700;
}

.delete-button:hover {
  background: #fff4f3;
}

.empty-state {
  margin: 0;
  padding: 28px;
  color: #738188;
  text-align: center;
  font-size: 13px;
}

.result {
  font-weight: 750;
}

.result.success {
  color: #1f755f;
}

.result.failure,
.result.denied {
  color: #a1322e;
}

@media (max-width: 760px) {
  .topbar {
    padding-inline: 16px;
  }

  .administrator {
    display: none;
  }

  main {
    width: min(100% - 28px, 1180px);
    padding-top: 22px;
  }

  .login-panel {
    padding: 26px 20px;
  }

  .status-band {
    align-items: stretch;
    flex-direction: column;
  }

  .status-summary {
    min-width: 0;
  }

  .add-form {
    grid-template-columns: 1fr 1fr;
  }

  .add-form .field-grow {
    grid-column: 1 / -1;
  }

  .add-form .button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .brand div span {
    display: none;
  }

  .add-form {
    grid-template-columns: 1fr;
  }

  .add-form .field-grow {
    grid-column: auto;
  }
}
