:root {
  --bg: #f7f6f2;
  --text: #1b1b1b;
  --muted: #5a5a5a;
  --line: #cfcfc7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.site-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

nav a[aria-current="page"] {
  font-weight: 600;
}

main {
  min-height: 50vh;
}

h1 {
  font-size: 24px;
  margin: 0 0 12px;
  font-weight: 600;
}

h2 {
  font-size: 18px;
  margin: 24px 0 8px;
}

p {
  margin: 0 0 12px;
}

.section-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.section-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.section-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
}

.table th {
  font-weight: 600;
}

.status {
  display: inline-block;
}

.status-registered {
  opacity: 0.8;
}

.status-authorized {
  font-weight: 600;
  opacity: 0.75;
}

.status-restricted {
  opacity: 0.45;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archival-indicator {
  margin-left: 6px;
}

.record-decayed {
  opacity: 0.55;
}

.meta-list {
  margin: 16px 0 24px;
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 8px 16px;
}

.meta-list dt {
  font-weight: 600;
}

.meta-list dd {
  margin: 0;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

.form {
  max-width: 720px;
  margin-top: 16px;
}

.form > div {
  margin-bottom: 16px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 8px;
  width: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  border-radius: 4px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

button:hover {
  background: var(--bg);
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  nav ul {
    gap: 12px;
  }

  .table th,
  .table td {
    font-size: 13px;
  }
}
