:root {
  color-scheme: light;
  font-family: Inter, "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: #192d2a;
  background: #f2f6f4;
  --muted: #4c634e;
  --line: #d8e4dd;
  --accent: #146754;
  --accent-dark: #0d4e3f;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.5; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #368374; outline-offset: 3px; }

.site-header { background: #102e29; color: white; }
.header-inner {
  max-width: 1056px;
  min-height: 70px;
  margin: auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand, .account, .actions { display: flex; align-items: center; gap: 12px; }
.brand { font-weight: 700; white-space: nowrap; }
.brand-mark { width: 14px; height: 14px; border: 4px solid #78d6b2; border-radius: 5px; transform: rotate(45deg); }
.account { flex-wrap: wrap; justify-content: end; }
.account span { overflow-wrap: anywhere; }
main { max-width: 1056px; padding: 28px 24px 48px; margin: auto; }
.panel { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 28px; min-width: 0; }
.auth-panel { max-width: 420px; margin: 36px auto; }
.view { display: grid; gap: 18px; }
.navigation { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
h1, h2, p { margin: 0; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.125rem; }
.description, .empty, .record-meta { color: var(--muted); }
.description { margin-top: 7px; }
.form { display: grid; gap: 16px; margin-top: 18px; }
.narrow { max-width: 400px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; }
input:not([type="checkbox"]), select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #b9cfc4;
  border-radius: 8px;
  padding: 8px 11px;
  background: #fcfefd;
  color: inherit;
  font-weight: 400;
}
.checkbox { display: flex; align-items: center; gap: 8px; width: fit-content; }
.checkbox input { margin: 0; accent-color: var(--accent); }
.button, .nav-button {
  justify-self: start;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 600;
}
.button { background: var(--accent); color: white; }
.button:hover:not(:disabled) { background: var(--accent-dark); }
.button.secondary, .nav-button { background: white; border-color: var(--line); color: var(--accent-dark); }
.button.secondary:hover:not(:disabled), .nav-button:hover { background: #e5f1eb; }
.button.small { padding: 5px 10px; font-size: .875rem; }
.nav-button[aria-current] { background: var(--accent-dark); border-color: var(--accent-dark); color: white; }
.link-button { margin-top: 16px; padding: 2px 0; border: 0; background: transparent; color: var(--accent-dark); text-decoration: underline; }
.notice { border-radius: 8px; border: 1px solid #b9dac9; background: #eaf6ee; padding: 11px 14px; margin-bottom: 16px; }
.notice.error { border-color: #efc9bd; background: #fff0ec; color: #822619; }
.list { display: grid; gap: 12px; margin-top: 14px; }
.record { background: #f8fbf9; border: 1px solid var(--line); border-radius: 9px; padding: 13px 15px; display: grid; gap: 6px; }
.record-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.record-head strong { overflow-wrap: anywhere; }
.record-head button { flex-shrink: 0; }
.record-meta { font-size: .875rem; overflow-wrap: anywhere; }
.record code { display: block; color: #173c32; overflow-wrap: anywhere; font-family: "IBM Plex Mono", ui-monospace, monospace; user-select: all; }
.more { margin-top: 14px; }
.table-scroll { overflow: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-size: .875rem; }

@media (max-width: 640px) {
  .header-inner, main { padding-inline: 14px; }
  .panel { padding: 18px; }
  .fields { grid-template-columns: 1fr; }
  .auth-panel { margin-top: 15px; }
}
