* {
  box-sizing: border-box;
}
:root {
  --bg: #f4f5f7;
  --card: #fff;
  --text: #181d24;
  --muted: #5c6672;
  --line: #dce1e8;
  --accent: #185ec9;
  --tint: #eaf1ff;
  --ok: #146641;
  --okbg: #e4f5eb;
  --bad: #b0372e;
  --shade: #eef0f3;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111316;
  --card: #1d2025;
  --text: #f1f3f6;
  --muted: #aeb6c2;
  --line: #383e48;
  --accent: #94bdff;
  --tint: #263550;
  --ok: #96ddaf;
  --okbg: #243d30;
  --bad: #ffa69c;
  --shade: #30343b;
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Inter",
    "PingFang SC",
    "Microsoft Yahei",
    sans-serif;
}
header {
  height: 68px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(4vw, calc((100vw - 1120px) / 2));
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 20px;
  font-weight: 720;
  color: var(--text);
  letter-spacing: -0.7px;
}
.brand span {
  display: grid;
  place-items: center;
  border-radius: 9px;
  width: 31px;
  height: 31px;
  background: #253b55;
  color: white;
}
.brand,
a {
  text-decoration: none;
}
a {
  color: var(--accent);
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 7px 12px;
  font-weight: 550;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:hover:not(:disabled) {
  filter: brightness(0.93);
}
.primary {
  background: #1763cf;
  border-color: #1763cf;
  color: #fff;
}
.warn {
  color: var(--bad);
}
:focus-visible {
  outline: 3px solid #6faafa;
  outline-offset: 2px;
}
main {
  max-width: 1170px;
  padding: 35px 25px 70px;
  margin: 0 auto;
}
h1,
h2,
p {
  margin: 0 0 12px;
}
h1 {
  line-height: 1.22;
  letter-spacing: -1px;
  font-size: clamp(30px, 4vw, 42px);
}
h2 {
  font-size: 22px;
  letter-spacing: -0.4px;
}
.title,
.bar,
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.title {
  justify-content: space-between;
  gap: 14px;
}
.title h1 {
  margin: 4px 0;
}
.intro,
.muted,
.crumb,
small,
.sub {
  color: var(--muted);
}
.crumb,
small,
.sub {
  font-size: 13px;
}
.intro {
  margin: 9px 0 20px;
}
.bar {
  margin: 18px 0 14px;
}
.bar input {
  max-width: 350px;
}
.bar .muted {
  margin-left: auto;
}
.card,
.list,
dialog {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 15px;
}
.list {
  overflow: hidden;
}
.item {
  padding: 15px 18px;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(140px, 1.3fr) minmax(80px, 0.8fr) minmax(
      65px,
      0.6fr
    ) auto;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
.item:last-child {
  border-bottom: 0;
}
.name {
  font-weight: 680;
  overflow-wrap: anywhere;
}
.sub {
  display: block;
  overflow-wrap: anywhere;
}
.item .actions {
  justify-content: flex-end;
  gap: 5px;
}
.item button {
  font-size: 13px;
  padding: 4px 9px;
  color: var(--accent);
}
.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--shade);
  font-size: 12px;
}
.tag.on {
  color: var(--ok);
  background: var(--okbg);
}
.empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 7px;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1763cf;
}
textarea {
  resize: vertical;
}
.login {
  max-width: 405px;
  margin: clamp(24px, 10vh, 90px) auto;
  padding: 27px;
}
.login h1 {
  font-size: 29px;
}
.login p {
  color: var(--muted);
}
.login .primary {
  margin-top: 14px;
  width: 100%;
}
.login > a {
  display: block;
  text-align: center;
  margin-top: 14px;
}
label {
  display: block;
  margin: 12px 0 4px;
  font-weight: 550;
}
label input,
label textarea {
  display: block;
  margin-top: 4px;
  font-weight: 400;
}
dialog {
  color: var(--text);
  width: min(480px, 94vw);
  max-height: 90vh;
  overflow: auto;
  padding: 23px;
  box-shadow: 0 18px 65px #0003;
}
dialog::backdrop {
  background: #10192866;
}
.end {
  justify-content: flex-end;
  margin-top: 18px;
}
.error {
  color: var(--bad) !important;
  margin-top: 8px;
}
.error:empty {
  display: none;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 15px 0 0;
  padding: 8px 10px;
}
legend {
  font-weight: 550;
}
#choices {
  max-height: 190px;
  overflow: auto;
  margin-top: 6px;
}
.choice {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 4px 0;
  font-weight: 400;
}
.choice input {
  margin: 0;
}
.choice span {
  overflow-wrap: anywhere;
}
#toast:not(:empty) {
  position: fixed;
  z-index: 5;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--bg);
  background: var(--text);
  border-radius: 9px;
  padding: 8px 13px;
  width: max-content;
  max-width: 92vw;
}
[hidden] {
  display: none !important;
}
.airport-card,.airport-row { padding: 20px; }
.airport-card { margin: 16px 0 28px; }
.airport-card h2,.airport-list h2 { margin: 0 0 8px; }
.airport-row + .airport-row { border-top: 1px solid var(--line); }
.airport-row > .actions,.airport-card .sub { margin-top: 10px; }
.format-label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; }
select { max-width: 100%; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 7px; }
#pair-form label select { display: block; width: 100%; margin-top: 4px; }
.probe-result { overflow-wrap: anywhere; }
.probe-result:not(:empty) { flex-basis: 100%; }
@media (max-width: 760px) {
  header {
    height: 57px;
    padding: 0 13px;
  }
  .brand {
    font-size: 18px;
  }
  .actions a {
    font-size: 13px;
  }
  main {
    padding: 22px 12px;
  }
  .item {
    grid-template-columns: 1fr auto;
    gap: 6px;
    padding: 12px;
  }
  .item .actions {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
  .bar .muted {
    margin-left: 0;
  }
  .bar input {
    max-width: none;
  }
  .title button {
    font-size: 13px;
  }
  .login,
  dialog {
    padding: 20px;
  }
}
