:root {
  --background: #f4f6f8;
  --sidebar: #f8fafc;
  --surface: #ffffff;
  --border: #dfe5ec;
  --text: #162033;
  --muted: #5e6b7d;
  --blue: #0867eb;
  --blue-dark: #074dac;
  --green: #0ba76b;
  --green-soft: #e3f6ec;
  --red: #c33b45;
  --red-soft: #fde9eb;
  --amber: #e99a09;
  --amber-soft: #fff7e2;
  --checking: #687589;
  --checking-soft: #edf1f5;
  --shadow: 0 8px 30px rgba(19, 35, 58, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--background);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 15px;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  background: var(--surface);
}

.sidebar {
  min-height: 100vh;
  padding: 34px 28px 24px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fa 100%);
  border-right: 1px solid var(--border);
}
.brand-block { text-align: center; }
.brand-logo {
  width: 178px;
  height: 178px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}
.brand-block h1 { margin: 0; font-size: 28px; line-height: 1.2; }
.brand-block p { margin: 8px 0 14px; color: var(--muted); font-size: 17px; }
.badges, .capabilities { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-block .badges { justify-content: center; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 5px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.badge-blue { background: var(--blue); }
.badge-green { background: var(--green); }

.status-card, .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.status-card { margin-top: 36px; padding: 22px 18px 14px; }
.status-card h2, .card h2 { margin: 0; font-size: 19px; }
.status-item {
  min-height: 82px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.status-icon { color: var(--green); font-size: 25px; text-align: center; }
.status-copy { min-width: 0; }
.status-copy strong, .status-copy span { display: block; }
.status-copy strong { margin-bottom: 5px; font-size: 14px; }
.status-copy span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.status-pill {
  min-width: 78px;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.status-online { color: #087544; background: var(--green-soft); }
.status-offline { color: var(--red); background: var(--red-soft); }
.status-checking { color: var(--checking); background: var(--checking-soft); }
.status-footer {
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}
.refresh-button, .copy-button {
  border: 1px solid #b7cdfa;
  border-radius: 7px;
  color: var(--blue);
  background: #f7faff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.refresh-button { padding: 7px 10px; }
.copy-button { padding: 5px 9px; font-size: 12px; }
.refresh-button:hover, .copy-button:hover { background: #eaf2ff; }
.refresh-button:disabled { opacity: .6; cursor: wait; }
.sidebar-footer { margin-top: auto; padding-top: 30px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.sidebar-footer p { margin: 0; }

.workspace { min-width: 0; padding: 0 28px; background: #fff; }
.tabs { height: 68px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--border); }
.tabs a { padding: 0 18px 14px; font-weight: 600; }
.tabs a.active { border-bottom: 3px solid var(--blue); }
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  padding: 22px 0;
}
.primary-column { display: grid; gap: 16px; }
.card { padding: 26px; }
.overview-card h2, .uses-card h2 { margin-bottom: 24px; }
.details-list { margin: 0; }
.details-list > div {
  display: grid;
  grid-template-columns: 185px minmax(70px, 1fr) minmax(320px, auto);
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.details-list > div::before {
  content: "";
  grid-column: 2;
  border-bottom: 1px dotted #acb6c4;
}
.details-list dt { grid-column: 1; grid-row: 1; color: #34445b; }
.details-list dd { grid-column: 3; grid-row: 1; margin: 0; text-align: right; }
.endpoint-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
code {
  max-width: 100%;
  padding: 7px 10px;
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: #26344a;
  background: #f5f7fa;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
}
.notice { margin-top: 24px; padding: 18px; border-radius: 8px; display: flex; gap: 14px; line-height: 1.45; }
.notice-warning { border-left: 4px solid var(--amber); background: var(--amber-soft); }
.notice p { margin: 4px 0 0; }
.notice-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border: 2px solid var(--amber);
  border-radius: 50%;
  color: var(--amber);
  font-weight: 800;
}
.info-card { display: flex; align-items: flex-start; gap: 18px; }
.info-card h2 { margin-bottom: 10px; }
.info-card p { margin: 0; color: #42516a; line-height: 1.6; }
.large-icon { color: var(--blue); font-size: 34px; line-height: 1; }
.support-card { align-items: center; }
.support-copy { flex: 1; }
.support-button {
  flex: 0 0 auto;
  padding: 11px 14px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.support-button:hover { color: white; background: var(--blue); text-decoration: none; }
.resources-card { align-self: start; padding: 26px 22px; }
.resources-card section + section { margin-top: 30px; }
.resources-card h2 { margin-bottom: 14px; font-size: 15px; }
.resources-card a { display: block; margin: 0 0 12px; }
.page-footer {
  min-height: 66px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}
.noscript { position: fixed; right: 16px; bottom: 16px; padding: 12px; color: white; background: var(--red); border-radius: 8px; }

@media (max-width: 1180px) {
  .shell { grid-template-columns: 330px minmax(0, 1fr); }
  .sidebar { padding-left: 20px; padding-right: 20px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .resources-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .resources-card section + section { margin-top: 0; }
  .details-list > div { grid-template-columns: 160px minmax(40px, 1fr) minmax(250px, auto); }
}
@media (max-width: 820px) {
  .shell { display: block; }
  .sidebar { min-height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand-logo { width: 130px; height: 130px; }
  .status-card { max-width: 520px; margin-left: auto; margin-right: auto; }
  .sidebar-footer { text-align: center; }
  .resources-card { grid-template-columns: 1fr; }
  .resources-card section + section { margin-top: 12px; }
}
@media (max-width: 620px) {
  .workspace { padding: 0 14px; }
  .card { padding: 20px 17px; }
  .details-list > div { display: block; margin-bottom: 20px; }
  .details-list > div::before { display: none; }
  .details-list dd { margin-top: 6px; text-align: left; }
  .endpoint-row { justify-content: flex-start; flex-wrap: wrap; }
  .support-card { align-items: flex-start; flex-wrap: wrap; }
  .support-button { margin-left: 50px; }
  .page-footer { align-items: flex-start; flex-direction: column; }
}
