:root {
  --line: #d6d3e0;
  --muted: #6b6680;
  --accent: #5b4b8a;
  --bg: #f7f6fb;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: #1d1a26;
  font: 15px/1.5 system-ui, -apple-system, "Noto Sans TC", sans-serif;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
h1 {
  margin: 0;
  font-size: 18px;
}
h2 {
  font-size: 16px;
  margin: 20px 0 8px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
nav button {
  border: 0;
  background: none;
  padding: 6px 12px;
  border-radius: 6px;
}
nav button[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}
main {
  padding: 16px;
  max-width: 1100px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
input,
select,
textarea {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  max-width: 100%;
}
textarea {
  width: 100%;
}
.code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
}
th,
td {
  border: 1px solid var(--line);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}
th {
  background: #efedf6;
  font-weight: 600;
  white-space: nowrap;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin: 8px 0;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 6px 0;
}
.muted,
.help {
  color: var(--muted);
  font-size: 13px;
}
.wide {
  flex: 1;
  min-width: 200px;
}
.tag {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  background: #efedf6;
  font-size: 12px;
  margin: 2px;
}
.tag.sensitive {
  background: #ffe2d6;
}
.small {
  font-size: 13px;
}
#toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #1d1a26;
  color: #fff;
  max-width: 420px;
}
#toast.error {
  background: #a3263a;
}
[hidden] {
  display: none !important;
}
