
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #1d4ed8;
  --status-none: #b91c1c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
header strong {
  font-weight: 600;
}
header span {
  color: var(--text-muted);
  font-size: 14px;
}
header form {
  display: flex;
  align-items: center;
  gap: 12px;
}
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}
h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px;
}
form.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  max-width: 420px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  margin-bottom: 16px;
  border: 1px solid var(--text-muted);
  border-radius: 8px;
  font: inherit;
  color: inherit;
  background: var(--surface);
}
button {
  min-height: 44px;
  padding: 8px 24px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button.plain {
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
  padding: 8px 0;
  min-height: 44px;
}
p.error {
  color: var(--status-none);
  font-weight: 600;
  margin: 0 0 16px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  gap: 24px;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  min-height: 44px;
  display: flex;
  align-items: center;
}
nav a[aria-current='page'] {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}
h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
th {
  font-weight: 600;
  color: var(--text-muted);
}
tbody tr:last-child td {
  border-bottom: 0;
}
code {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 14px;
  color: var(--text-muted);
}
.muted {
  color: var(--text-muted);
  font-size: 14px;
}
.moment {
  font-family: ui-monospace, 'SF Mono', monospace;
  white-space: nowrap;
}
.empty {
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 0;
}
.state.warn,
span.warn {
  color: var(--status-none);
}
select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  margin-bottom: 16px;
  border: 1px solid var(--text-muted);
  border-radius: 8px;
  font: inherit;
  color: inherit;
  background: var(--surface);
}
td .row-action,
td .rename,
td .setting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
td .row-action button,
td .rename button,
td .setting button {
  font-size: 14px;
  padding: 0;
  min-height: 44px;
}
td .rename input,
td .setting input {
  margin: 0;
  width: 200px;
  min-height: 36px;
  font-size: 14px;
}
td .setting input {
  width: 96px;
}
form.card p.muted {
  margin: -8px 0 16px;
}
.issued {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.issued p {
  margin: 0 0 12px;
}
.issued p:last-child {
  margin-bottom: 0;
}
.issued .code {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 32px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
