/* 用途: 校正文書一覧（/review/）のスタイル。作成日: 2026-10-06。配色は reviewer-styles.css に合わせる。 */
:root {
  color-scheme: light;
  --appbar: #15191e;
  --canvas: #e8ebf0;
  --panel: #fff;
  --ink: #202a35;
  --muted: #6d7783;
  --line: #dfe3e8;
  --brand: #4267e8;
  --brand-dark: #3154cc;
  --green: #18885b;
  --amber: #a86516;
  --red: #b42318;
  font-family: "Noto Sans JP", "Yu Gothic UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); }
button, input { font: inherit; }
button { border: 1px solid var(--line); border-radius: 8px; background: #fff; color: inherit; cursor: pointer; }
button:hover { background: #f5f7fa; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(66,103,232,.3); outline-offset: 2px; }
button.primary { border-color: var(--brand); background: var(--brand); color: #fff; }
button.primary:hover { background: var(--brand-dark); }
button.wide { width: 100%; padding: 10px; }

.appbar { height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--appbar); color: #f8fafc; }
.brand-group, .appbar-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: linear-gradient(145deg,#5c82f8,#3155ca); font-weight: 700; }
.document-meta { display: grid; gap: 1px; }
.document-meta span { color: #99a4b0; font-size: 9px; letter-spacing: .12em; }
.document-meta strong { font-size: 13px; }
.appbar-actions button { height: 34px; padding: 0 12px; border-color: rgba(255,255,255,.12); background: #242a31; color: #e2e7ed; font-size: 12px; }
.appbar-actions button:hover { background: #303740; }

.list-main { max-width: 920px; margin: 0 auto; padding: 24px 16px 48px; }

.gate { display: grid; place-items: center; padding-top: 8vh; }
.gate form { width: min(420px,100%); display: grid; gap: 12px; padding: 26px; border-radius: 14px; background: var(--panel); box-shadow: 0 12px 40px rgba(16,24,40,.12); }
.gate h1 { margin: 0; font-size: 20px; }
.gate label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.gate input { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.eyebrow { color: var(--brand); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.gate-message { margin: 0; color: var(--muted); font-size: 13px; }
.error { min-height: 1em; margin: 0; color: var(--red); font-size: 12px; }

.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.list-head h1 { margin: 0; font-size: 20px; }
#doc-count { color: var(--muted); font-size: 13px; font-weight: 400; }
.filter input { width: min(280px,100%); padding: 8px 10px; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.doc.is-closed { opacity: .62; }
.doc-main { min-width: 0; display: grid; gap: 3px; }
.doc-title { color: var(--ink); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.doc-title:hover { color: var(--brand); text-decoration: underline; }
.doc-meta { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.doc-badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.badge { padding: 2px 8px; border-radius: 999px; font-size: 11px; white-space: nowrap; background: #eef1f5; color: var(--muted); }
.badge.ok { background: #e3f4ec; color: var(--green); }
.badge.warn { background: #fbefe0; color: var(--amber); }
.badge.stop { background: #fde8e7; color: var(--red); }
.copy-button { padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.empty { color: var(--muted); text-align: center; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 10px; background: #202a35; color: #fff; font-size: 13px; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .doc { grid-template-columns: minmax(0,1fr) auto; }
  .doc-badges { grid-column: 1 / -1; justify-content: flex-start; grid-row: 2; }
  .copy-button { grid-column: 2; grid-row: 1; }
}
