:root {
  --bg: #ffffff; --text: #111111; --muted: #6b6b6b; --line: #e6e6e6; --soft: #f6f6f6;
  --ok: #1a7f4b; --bad: #b42318; --bad-bg: #fef3f2; --focus: #2563eb;
}
* { box-sizing: border-box; }
html { font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.top { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.logo { color: inherit; text-decoration: none; font-weight: 600; font-size: 15px; }
.cluster { color: var(--muted); }
.cluster::before { content: "/"; margin-right: 12px; color: var(--line); }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--muted); }

main { max-width: 920px; margin: 0 auto; padding: 32px 24px 64px; }
h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
h2 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
p { margin: 0; }
.center { max-width: 360px; margin: 14vh auto 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 20px; }
.head p { margin-top: 2px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; font-weight: 500; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { border-color: var(--text); background: var(--text); color: var(--bg); }
.btn.primary:hover { background: #333333; }
.btn.small { height: 28px; padding: 0 10px; font-size: 13px; }
.btn.large { height: 40px; padding: 0 18px; }

.card { border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 10px 16px; font-size: 12px; font-weight: 500; color: var(--muted); background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
tr:first-child td { border-top: 0; }
td:last-child, th:last-child { text-align: right; }
td.name { font-weight: 500; }

.state { display: inline-flex; align-items: center; gap: 7px; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.state.ok::before { background: var(--ok); }
.state.bad { color: var(--bad); }
.state.bad::before { background: var(--bad); }
.state.wait::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }

.alert { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 16px; padding: 12px 16px; border: 1px solid #f3c7c2; border-radius: 8px; background: var(--bad-bg); }
.notice { margin-bottom: 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.foot { margin-top: 12px; font-size: 12px; }

dialog { width: min(420px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); box-shadow: 0 12px 40px rgb(0 0 0 / .14); }
dialog::backdrop { background: rgb(0 0 0 / .35); }
dialog p { margin-bottom: 16px; color: var(--muted); }
.row { display: flex; justify-content: flex-end; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-weight: 500; }
.field input { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-weight: 400; }
.result { padding: 10px 12px; border-radius: 6px; background: var(--soft); color: var(--text) !important; font: 12px/1.5 ui-monospace, Menlo, monospace; overflow-wrap: anywhere; user-select: all; }

@media (max-width: 640px) {
  .top { padding: 0 16px; }
  main { padding: 24px 16px 48px; }
  .who span { display: none; }
}
