* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--pl-font, system-ui, sans-serif);
  background: var(--pl-surface, #f7f7f4);
  color: var(--pl-text, #1c1c1a);
}
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; border-bottom: 1px solid var(--pl-line, #ddd);
  background: var(--pl-surface-raised, #fff);
}
.wordmark { font-weight: 700; font-size: 18px; letter-spacing: 0.01em; }
.byline { color: var(--pl-text-muted, #666); margin-left: 8px; font-size: 13px; }
.container { max-width: 1080px; margin: 0 auto; padding: 24px 16px 64px; }
.footer { max-width: 1080px; margin: 0 auto; padding: 16px; color: var(--pl-text-muted, #666); font-size: 13px; }
.card {
  background: var(--pl-surface-raised, #fff);
  border: 1px solid var(--pl-line, #ddd);
  border-radius: var(--pl-radius, 12px);
  padding: 20px; margin-bottom: 16px;
}
.muted { color: var(--pl-text-muted, #666); }
.small { font-size: 13px; }
button, .btn {
  font: inherit; cursor: pointer; border-radius: 8px;
  border: 1px solid var(--pl-line, #ccc); background: #fff; color: inherit;
  padding: 8px 14px; text-decoration: none; display: inline-block;
}
button.primary, .btn.primary {
  background: var(--pl-accent, #b7e01e); border-color: transparent;
  color: var(--pl-accent-ink, #14230a); font-weight: 600;
}
button:disabled { opacity: 0.55; cursor: default; }
input[type="text"], input[type="password"], input[type="number"], select, textarea {
  font: inherit; width: 100%; padding: 9px 10px;
  border: 1px solid var(--pl-line, #ccc); border-radius: 8px;
}
textarea { font-family: ui-monospace, monospace; font-size: 13px; }
.error { color: var(--pl-danger, #b3261e); }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1px solid var(--pl-line, #ccc);
}
.badge.ok { background: #e7f6d8; }
.badge.warn { background: #fdf3d7; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--pl-line, #e3e3e0); vertical-align: top; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.switcher { position: relative; }
.switcher-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; z-index: 20;
  background: #fff; border: 1px solid var(--pl-line, #ddd); border-radius: 10px;
  padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.switcher-menu a { display: block; padding: 7px 8px; border-radius: 6px; color: inherit; text-decoration: none; }
.switcher-menu a:hover { background: var(--pl-surface, #f2f2ee); }
.switcher-menu a.current { font-weight: 700; }
code { background: var(--pl-surface, #f0f0ec); padding: 1px 5px; border-radius: 4px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
@media (max-width: 640px) { .topbar { padding: 12px 16px; } }
