:root {
  color-scheme: light;
  --ink: #182624;
  --muted: #546467;
  --line: #dbe3e0;
  --page: #f6f8f7;
  --white: #ffffff;
  --accent: #12644e;
  --accent-hover: #0a4838;
  font: 16px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
a { color: var(--accent); text-underline-offset: .24em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid #03775b; outline-offset: 3px; }
.top { background: white; border-bottom: 1px solid var(--line); }
.nav, main { max-width: 1420px; margin: auto; padding-inline: clamp(16px, 4vw, 60px); }
.nav { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { color: var(--ink); font-weight: 720; text-decoration: none; }
.brand span { color: #6d8580; margin: 0 2px; }
.account { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: .9rem; }
.username, .total, .context, .byline, small { color: var(--muted); }
main { padding-block: 28px 64px; }
.page-title { margin-bottom: 23px; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: clamp(26px, 4vw, 39px); letter-spacing: -.04em; font-weight: 740; }
h2 { font-size: 1.14rem; }
h3 { font-size: .96rem; }
p { margin: 8px 0; }
.total { margin: 0; }
.total span + span::before { content: " · "; margin-inline: 2px; }
.filters { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters label { flex: 1 1 170px; max-width: 270px; min-width: 0; }
.filters .search { flex-grow: 3; max-width: 100%; }
label { display: block; font-size: .88rem; font-weight: 650; }
input:not([type=hidden]), select, textarea {
  display: block; width: 100%; min-height: 40px; padding: 8px 10px; margin-top: 5px;
  border: 1px solid #acbfb9; border-radius: 6px; background: white; color: var(--ink); font: inherit; font-weight: 400;
}
textarea { resize: vertical; }
button, .button {
  display: inline-block; min-height: 40px; padding: 8px 15px; border: 1px solid var(--accent);
  border-radius: 6px; background: var(--accent); color: white;
  font: inherit; font-size: .88rem; font-weight: 650; text-decoration: none; cursor: pointer;
}
button:hover, .button:hover { background: var(--accent-hover); color: white; }
.button.secondary { background: white; color: var(--accent); border-color: #acbfb9; }
.plain, .plain:hover { padding: 0; min-height: 0; border: 0; background: none; color: var(--accent); text-decoration: underline; }
.reset { align-self: end; padding: 9px 2px; font-size: .88rem; }
.table-frame { overflow: auto; background: white; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .91rem; }
thead { background: #ecf2ef; }
thead th { color: #344944; font-weight: 660; white-space: nowrap; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: #f8faf9; }
tbody th { font-weight: 570; }
.phrase { width: 38%; overflow-wrap: anywhere; }
.phrase a { text-decoration: none; color: var(--ink); }
.phrase a:hover { color: var(--accent); text-decoration: underline; }
.number { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.volume { font-weight: 680; }
.status { display: inline-block; padding: 2px 8px; border-radius: 5px; background: #eef1f0; color: #485a54; font-size: .8rem; white-space: nowrap; }
.status.writing { background: #e9efff; color: #254b8a; }
.status.ready { background: #d9f3e7; color: #075943; }
.status.excluded { background: #f7e8e3; color: #783b26; }
.context { display: block; font-size: .78rem; font-weight: 400; }
.table-footer { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.table-footer a { margin-left: auto; }
.back { display: inline-block; margin-bottom: 14px; font-size: .9rem; }
.break { overflow-wrap: anywhere; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 20px; align-items: start; }
.card { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.login { max-width: 430px; margin: 28px auto; }
.login h1 { font-size: 30px; }
.form-row { margin: 12px 0; }
.notice { margin-bottom: 14px; padding: 10px 14px; color: #663d08; background: #fff1d6; border-radius: 6px; }
.notice p { margin-bottom: 0; }
.raw { margin-top: 24px; }
.compact { min-width: 0; }
.compact td, .compact th { padding: 9px 11px; }
.raw .compact { min-width: 620px; }
.empty { color: var(--muted); padding: 18px 14px; }
.saved-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.errorlist { color: #952819; }
.changes { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.changes details { font-size: .87rem; margin-bottom: 7px; }
.changes summary { cursor: pointer; }
@media (max-width: 750px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .filters .search { flex: 1 1 100%; }
  .filters label { max-width: none; }
  .username { display: none; }
}
