:root {
  color-scheme: light;
  --ink: #172824;
  --secondary: #48605a;
  --green: #145e49;
  --green-dark: #0c4536;
  --light: #f1f5f1;
  --line: #d5ded9;
  --focus: #187d63;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--light); color: var(--ink); }
.topbar { background: #102b23; color: white; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; max-width: 1080px; padding: 0 24px; margin: auto; }
.brand { font-size: 17px; letter-spacing: .06em; }
.brand-mark { display: inline-block; background: #d7f674; color: #172824; border-radius: 5px; margin-right: 3px; padding: 0 5px; letter-spacing: -.04em; }
main { max-width: 1080px; margin: 0 auto; padding: 32px 24px 64px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.connection { max-width: 480px; margin: 36px auto; }
h1, h2 { margin: 0; line-height: 1.2; letter-spacing: -.025em; }
h1 { font-size: clamp(26px, 4vw, 36px); }
h2 { font-size: 22px; }
p { color: var(--secondary); margin: 6px 0 0; }
.navigation { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
.navigation button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-weight: 650; }
.navigation button[aria-current], .primary { background: var(--green); border-color: var(--green); color: white; }
.navigation button:hover, .button:hover { border-color: var(--green); }
.primary:hover { background: var(--green-dark); }
.subtle { color: white; background: transparent; border-color: #6b8079; }
.subtle:hover { border-color: white; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.topbar :focus-visible { outline-color: #d7f674; }
.toolbar, .actions, .filter, .pager { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar { justify-content: space-between; }
.filter { font-weight: 600; }
.table-scroll { overflow-x: auto; margin-top: 15px; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; overflow-wrap: anywhere; }
th { font-size: 13px; color: var(--secondary); }
td:last-child { width: 1%; white-space: nowrap; }
td .button { min-height: 34px; padding: 4px 9px; }
td:first-child { font-weight: 650; }
.pager { margin-top: 16px; }
.notice { margin: 12px 0; padding: 10px 14px; border-radius: 8px; background: #e5f1e9; color: #214c3b; overflow-wrap: anywhere; }
.notice.error { background: #fae8e6; color: #7b2621; }
.editor { margin-top: 16px; }
form { margin: 18px 0 0; }
form > label, .field { display: block; margin: 0 0 12px; }
label { font-weight: 650; }
input:not([type="checkbox"]), select { border: 1px solid #a6b8af; border-radius: 8px; min-height: 42px; min-width: 0; padding: 7px 10px; color: var(--ink); background: white; }
input:not([type="checkbox"]) { display: block; width: 100%; max-width: 520px; margin: 4px 0 14px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 12px 0 16px; padding: 10px 12px; }
legend { font-weight: 650; }
.choice-list { display: grid; gap: 4px; max-height: 200px; overflow: auto; }
.choice { display: flex; align-items: center; gap: 8px; min-height: 36px; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 16px 0 0; }
dt { color: var(--secondary); }
dd { margin: 0; overflow-wrap: anywhere; }
.muted { color: var(--secondary); font-size: 13px; }
@media (max-width: 620px) {
  main { padding: 24px 14px 42px; }
  .topbar-inner { padding: 0 14px; }
  .card { padding: 16px; }
  .toolbar { align-items: flex-start; }
  td:last-child { white-space: normal; }
}
