:root {
  color-scheme: light;
  --bg: #f6f6f3;
  --panel: #ffffff;
  --panel-2: #f0f3ef;
  --line: #d9ded6;
  --text: #1f2520;
  --muted: #657064;
  --primary: #155f73;
  --primary-ink: #ffffff;
  --accent: #2f7a4f;
  --warn: #8a5a13;
  --danger: #9f2e2e;
  --shadow: 0 8px 24px rgba(34, 40, 36, 0.12);
}
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
:where(button, a, [tabindex]):focus-visible {
  outline: 3px solid rgba(21, 95, 115, 0.58);
  outline-offset: 2px;
}
.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
}
.topbar {
  position: relative;
  z-index: 4;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}
.brand-block, .account { min-width: 0; display: flex; align-items: center; }
.brand-block { gap: 10px; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}
.brand-copy, .account-copy { min-width: 0; display: grid; gap: 1px; }
.brand-copy strong { color: var(--primary); font-size: 0.95rem; line-height: 1.15; }
.brand-copy span, .account-copy span { color: var(--muted); font-size: 0.72rem; }
.account { justify-content: flex-end; gap: 10px; }
.account-copy { text-align: right; }
.account-copy strong, .account-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 0.76rem;
  font-weight: 850;
}
.plane-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.82rem; }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
.management-pane {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--bg);
}
.management-pane-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.management-title { min-width: 0; }
.management-title h1 { margin: 0; font-size: 1.12rem; line-height: 1.25; }
.management-title p { margin: 4px 0 0; color: var(--muted); font-size: 0.79rem; }
.management-pane-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.management-pane-body {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px;
}
.status-grid {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.status-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 3px 12px rgba(34, 40, 36, 0.06);
}
.status-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}
.status-card-head h2 { margin: 0; font-size: 1rem; line-height: 1.25; }
.tag, .state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
}
.tag { padding: 5px 9px; border: 1px solid #bfd2d7; background: #f5faf9; color: var(--primary); }
.state { gap: 6px; color: var(--muted); }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state-good { color: var(--accent); }
.state-warn { color: var(--warn); }
.value { color: var(--text); font-size: 1.28rem; font-weight: 780; line-height: 1.2; overflow-wrap: anywhere; }
.value.good { color: var(--accent); }
.muted { color: var(--muted); }
.status-card p { margin: 0; font-size: 0.82rem; }
.node { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
.policy-list { display: flex; flex-wrap: wrap; gap: 6px; }
.policy-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.signin-panel {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 3px 12px rgba(34, 40, 36, 0.06);
}
.signin-panel h2 { margin: 0; }
.signin-panel p { margin: 4px 0 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.button, .outline-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
}
.button { border: 1px solid var(--primary); background: var(--primary); color: var(--primary-ink); }
.button:hover { background: #0f5264; }
.outline-button { border: 1px solid var(--line); background: transparent; color: var(--primary); }
.outline-button:hover { background: #e7f0ee; }
.foot {
  width: min(100%, 1120px);
  margin: 16px auto 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}
@media (max-width: 920px) {
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .app-shell { grid-template-rows: auto minmax(0, 1fr); }
  .topbar { align-items: flex-start; flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .account { width: 100%; justify-content: flex-start; }
  .account-copy { flex: 1; text-align: left; }
  .management-pane-head { align-items: flex-start; flex-direction: column; padding: 14px 16px; }
  .management-pane-actions, .management-pane-actions > * { width: 100%; }
  .management-pane-body { padding: 16px; overflow: visible; }
  .status-grid { grid-template-columns: minmax(0, 1fr); }
  .signin-panel { align-items: stretch; flex-direction: column; }
  .actions { width: 100%; }
  .actions > * { flex: 1 1 180px; }
}
@media (max-width: 420px) {
  .account { flex-wrap: wrap; }
  .account .outline-button { width: 100%; }
}