:root {
  color-scheme: light;
  font: 16px/1.55 "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #152b29;
  background: #f1f5f4;
  --muted: #4f6561;
  --border: #d5e2df;
  --accent: #086356;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
main { width: min(64rem, calc(100% - 2rem)); margin: auto; padding: clamp(2rem, 7vw, 5rem) 0; }
header { margin-bottom: 1.5rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; }
h2 { font-size: 1.375rem; line-height: 1.35; }
h3 { font-size: 1rem; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid #1a8876; outline-offset: 3px; }
.status { color: var(--muted); margin-top: .65rem; }
.status::before {
  content: "";
  display: inline-block;
  width: .5em;
  height: .5em;
  margin-right: .55em;
  border-radius: 50%;
  vertical-align: .12em;
  background: #7c918c;
}
.status[data-state="available"]::before { background: #168268; }
.status[data-state="offline"]::before { background: #a36220; }
.connections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.card { padding: clamp(1.125rem, 3vw, 1.65rem); border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.command-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin-top: 1rem;
  padding: .7rem;
  border: 1px solid #dce8e5;
  border-radius: 9px;
  background: #eef5f3;
}
code { flex: 1 0 13rem; overflow-wrap: anywhere; font: .94rem/1.5 Consolas, monospace; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
button, .download-link {
  min-height: 2.75rem;
  padding: .55rem .8rem;
  border: 1px solid #c4d7d3;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button:hover:not(:disabled), .download-link:hover { background: #e9f2ef; }
button:disabled { opacity: .48; cursor: default; }
.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.primary:hover:not(:disabled) { background: #064f45; }
#app-fallback { margin-top: .6rem; }
.downloads { margin-top: 1.35rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.download-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .65rem; }
.download-link { display: block; text-decoration: none; overflow-wrap: anywhere; }
.download-link span { display: block; color: var(--muted); font-size: .875rem; font-weight: 400; }
@media (max-width: 48rem) {
  main { max-width: 34rem; }
  .connections { grid-template-columns: 1fr; }
}
@media (max-width: 24rem) {
  .actions > button { flex: 1 1 100%; }
  code { flex-basis: 100%; }
}
.tcp-entry { max-width: 34rem; }
.hint { color: var(--muted); margin-top: .875rem; }
