/* ITSM道場 ------------------------------------------------------------
   配色: 深い青緑の地（ServiceNowの緑を地に寄せた）／承認は朱の印
   書体: 見出し=Zen Old Mincho, 本文=Zen Kaku Gothic New, データ=M PLUS 1 Code
--------------------------------------------------------------------- */

:root {
  --ground: #eef3f3;
  --ground-deep: #e3ebeb;
  --surface: #ffffff;
  --raised: #f6f9f9;
  --line: #d3e0e0;
  --line-strong: #b6c8c9;
  --ink: #0c222b;
  --ink-soft: #33525d;
  --muted: #5e7783;
  --accent: #12876b;
  --accent-soft: #d9efe7;
  --accent-ink: #0a5a47;
  --on-accent: #ffffff;
  --seal: #c0392b;
  --seal-soft: #f6e0dc;
  --gold: #9a7020;
  --gold-soft: #f4ebd6;
  --p1: #c8452f;
  --p2: #c07a1e;
  --p3: #9c8a1f;
  --p4: #45789a;
  --shadow: 0 1px 2px rgba(12, 34, 43, .06), 0 8px 24px rgba(12, 34, 43, .06);
  --shadow-lift: 0 2px 4px rgba(12, 34, 43, .08), 0 18px 40px rgba(12, 34, 43, .12);
  --radius: 4px;
  --font-display: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-data: "M PLUS 1 Code", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #071319;
    --ground-deep: #040d12;
    --surface: #0e212a;
    --raised: #14303b;
    --line: #1e3b47;
    --line-strong: #2c505e;
    --ink: #dce9eb;
    --ink-soft: #b3c8ce;
    --muted: #7e9aa5;
    --accent: #39c79a;
    --accent-soft: #10362e;
    --accent-ink: #7fe0c1;
    --on-accent: #04231c;
    --seal: #e4644f;
    --seal-soft: #3a1a16;
    --gold: #d3a548;
    --gold-soft: #33280f;
    --p1: #e4644f;
    --p2: #dda047;
    --p3: #c9b552;
    --p4: #6fa9c9;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 18px 40px rgba(0, 0, 0, .45);
  }
}

:root[data-theme="dark"] {
  --ground: #071319;
  --ground-deep: #040d12;
  --surface: #0e212a;
  --raised: #14303b;
  --line: #1e3b47;
  --line-strong: #2c505e;
  --ink: #dce9eb;
  --ink-soft: #b3c8ce;
  --muted: #7e9aa5;
  --accent: #39c79a;
  --accent-soft: #10362e;
  --accent-ink: #7fe0c1;
  --on-accent: #04231c;
  --seal: #e4644f;
  --seal-soft: #3a1a16;
  --gold: #d3a548;
  --gold-soft: #33280f;
  --p1: #e4644f;
  --p2: #dda047;
  --p3: #c9b552;
  --p4: #6fa9c9;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 18px 40px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }

/* hidden 属性はクラス側の display 指定より強く効かせる */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  font-feature-settings: "palt" 1;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent-ink); }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- 共通パーツ --- */

.eyebrow {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.mono { font-family: var(--font-data); font-variant-numeric: tabular-nums; }

.btn {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { border-color: var(--accent); background: var(--raised); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--on-accent); }
.btn-danger { border-color: var(--seal); color: var(--seal); }
.btn-danger:hover { background: var(--seal-soft); border-color: var(--seal); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--raised); color: var(--ink); border-color: var(--line); }
.btn-sm { padding: 5px 12px; font-size: 13px; }

input[type="text"], input[type="password"], input[type="url"], input[type="number"], textarea, select {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px 11px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 88px; resize: vertical; line-height: 1.7; }
input.evidence-mono, textarea.evidence-mono { font-family: var(--font-data); font-size: 13px; }

/* --- ヘッダー --- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  height: 58px;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .06em;
}
.brand-sub {
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--muted);
  text-transform: uppercase;
}
.topbar-spacer { flex: 1; }
.topbar-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }

.theme-toggle {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--muted);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }

/* --- レイアウト --- */

.shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 80px;
  align-items: start;
}

.rail { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 940px) {
  .shell { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px 64px; }
  .rail { position: static; }
}

/* --- 免許状カード（受講者ステータス） --- */

.license {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.license::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: .5;
  pointer-events: none;
}
.license > * { position: relative; }

.license-name { font-family: var(--font-display); font-size: 22px; margin-top: 2px; }
.license-cohort { font-size: 12px; color: var(--muted); }

.rank-row { display: flex; align-items: flex-end; gap: 14px; margin: 16px 0 4px; }
.rank-seal {
  width: 62px; height: 62px;
  flex: none;
  display: grid; place-items: center;
  border: 2px solid var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.1;
  text-align: center;
  letter-spacing: .02em;
}
.rank-meta { min-width: 0; }
.rank-note { font-size: 12px; color: var(--muted); }
.level-big {
  font-family: var(--font-data);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.level-big span { font-size: 13px; color: var(--muted); margin-left: 4px; }

.xp-bar {
  margin-top: 14px;
  height: 8px;
  background: var(--ground-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--gold)));
  width: 0;
  transition: width .8s cubic-bezier(.22, 1, .36, 1);
}
.xp-figures {
  display: flex; justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-data);
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.badge-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.badge-chip {
  font-family: var(--font-data);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}
.badge-chip.locked { border-color: var(--line); color: var(--muted); background: transparent; opacity: .55; }

/* --- クエスト索引 --- */

.index-card {
  max-height: min(56vh, 620px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.index-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.index-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 13.5px;
}
.index-item:last-child { border-bottom: none; }
.index-item:hover:not([disabled]) { background: var(--raised); }
.index-item[disabled] { cursor: not-allowed; color: var(--muted); }
.index-item.preview .ttl { color: var(--muted); }
.index-item.active { background: var(--accent-soft); }
.index-item .lv {
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  text-align: center;
  padding: 1px 0;
}
.index-item.done .lv { border-color: var(--accent); color: var(--accent); }
.index-item .ttl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- 状態チップ --- */

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip.st-not_started { color: var(--muted); }
.chip.st-in_progress { color: var(--p4); }
.chip.st-submitted   { color: var(--p2); }
.chip.st-rework      { color: var(--seal); }
.chip.st-approved    { color: var(--accent); }
.chip.st-locked      { color: var(--muted); opacity: .7; }

/* --- クエスト盤 --- */

.board-head { margin-bottom: 26px; }

.chapter-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
  flex-wrap: wrap;
}
.chapter-head:first-of-type { margin-top: 0; }
.chapter-title { font-family: var(--font-display); font-size: 20px; letter-spacing: .03em; margin-top: 2px; }
.chapter-lede { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.chapter-count { font-size: 12px; color: var(--muted); white-space: nowrap; }

.index-chapter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  background: var(--raised);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
}
.board-title { font-family: var(--font-display); font-size: 26px; letter-spacing: .02em; }
.board-lede { color: var(--muted); font-size: 13.5px; margin-top: 4px; max-width: 64ch; }

.quest-grid { display: grid; gap: 12px; }

.quest-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  overflow: hidden;
}
.quest-card:hover:not([disabled]) { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-left-color: var(--accent); }
.quest-card[disabled] { cursor: not-allowed; opacity: .55; box-shadow: none; }
.quest-card.preview {
  border-style: dashed;
  border-left-style: solid;
  background: transparent;
  box-shadow: none;
}
.quest-card.preview .quest-name, .quest-card.preview .quest-lv b { color: var(--muted); }
.quest-card.done { border-left-color: var(--accent); }
.quest-card.boss { border-left-color: var(--seal); background: linear-gradient(90deg, var(--seal-soft), var(--surface) 42%); }

.quest-lv {
  font-family: var(--font-data);
  text-align: center;
  line-height: 1;
}
.quest-lv b { display: block; font-size: 25px; font-weight: 500; font-variant-numeric: tabular-nums; }
.quest-lv i { font-style: normal; font-size: 9.5px; letter-spacing: .18em; color: var(--muted); }

.quest-name { font-family: var(--font-display); font-size: 17.5px; }
.quest-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.quest-facts { display: flex; gap: 12px; margin-top: 8px; font-family: var(--font-data); font-size: 11px; color: var(--muted); }
.quest-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.quest-xp { font-family: var(--font-data); font-size: 12px; color: var(--gold); }

/* --- レコードフォーム風 詳細 --- */

.record {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.record-ribbon {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  background: var(--raised);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.record-head { padding: 20px 24px 18px; border-bottom: 1px solid var(--line); }
.record-title { font-family: var(--font-display); font-size: 25px; }
.record-sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

.section { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: none; }
.section-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-label h3 {
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

.target-list { display: grid; gap: 8px; }
.target-list li {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px;
  font-size: 14px;
}
.target-list li::before {
  content: "→";
  color: var(--accent);
  font-family: var(--font-data);
  line-height: 1.7;
}

.steps { counter-reset: step; display: grid; gap: 2px; }
.step {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  padding: 11px 10px 11px 4px;
  border-bottom: 1px dashed var(--line);
  align-items: start;
}
.step:last-child { border-bottom: none; }
.step input[type="checkbox"] { margin-top: 5px; width: 15px; height: 15px; accent-color: var(--accent); }
.step-t { font-weight: 700; font-size: 14px; }
.step-t::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--muted);
  margin-right: 8px;
  font-weight: 400;
}
.step-d { font-size: 13.5px; color: var(--ink-soft); }
.step.checked .step-t, .step.checked .step-d { color: var(--muted); text-decoration-color: var(--line); }

/* 成果物 = ラベル溝 + 値 のレコード風 */
.field {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.field:last-of-type { border-bottom: none; }
.field-label { padding-top: 8px; }
.field-label .name { font-size: 13.5px; font-weight: 500; }
.field-label .req { color: var(--seal); margin-left: 4px; }
.field-label .hint { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.field-error { color: var(--seal); font-size: 12px; margin-top: 5px; }
.field.invalid input, .field.invalid textarea { border-color: var(--seal); }

@media (max-width: 720px) {
  .field { grid-template-columns: 1fr; gap: 4px; }
  .field-label { padding-top: 0; }
}

/* --- スクリーンショットのアップロード --- */

.uploader {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--raised);
}
.uploader.drop { border-color: var(--accent); background: var(--accent-soft); }
.uploader.disabled { opacity: .55; }
.uploader-hint { font-size: 11.5px; color: var(--muted); }

.shot-preview:not(:empty) { margin-top: 8px; }
.shot-thumb {
  display: block;
  max-width: 260px;
  max-height: 170px;
  width: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ground-deep);
  cursor: zoom-in;
}
.shot-cell { display: flex; align-items: center; gap: 8px; }

.rubric { display: grid; gap: 9px; }
.rubric li {
  display: grid; grid-template-columns: 20px 1fr; gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.rubric li::before {
  content: "検";
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--seal);
  border: 1px solid var(--seal);
  border-radius: 2px;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  margin-top: 3px;
}

.note {
  background: var(--raised);
  border-left: 2px solid var(--gold);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  display: grid;
  gap: 4px;
}

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--seal);
  background: var(--seal-soft);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
}
.callout.ok { border-left-color: var(--accent); background: var(--accent-soft); }
.callout h4 { font-size: 13px; margin-bottom: 4px; }

.record-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  background: var(--raised);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.save-state { font-family: var(--font-data); font-size: 11.5px; color: var(--muted); }

/* --- 承認印 --- */

.seal-stamp {
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%) rotate(-14deg);
  width: 74px; height: 74px;
  border: 3px double var(--seal);
  border-radius: 50%;
  color: var(--seal);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.05;
  text-align: center;
  letter-spacing: .04em;
  opacity: .9;
  pointer-events: none;
}
.quest-card .seal-stamp { right: 18px; width: 56px; height: 56px; font-size: 15px; }
.quest-card.done .quest-right { margin-right: 72px; }

/* --- レベルアップ演出 --- */

.levelup {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ground-deep) 82%, transparent);
  backdrop-filter: blur(4px);
}
.levelup-card {
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 40px 56px;
  text-align: center;
  box-shadow: var(--shadow-lift);
  animation: rise .5s cubic-bezier(.22, 1, .36, 1);
}
.levelup-card .eyebrow { color: var(--gold); }
.levelup-card .lv {
  font-family: var(--font-data);
  font-size: 56px;
  line-height: 1;
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
}
.levelup-card .rank { font-family: var(--font-display); font-size: 26px; color: var(--gold); }
.levelup-card .gain { font-family: var(--font-data); color: var(--accent); margin-top: 10px; }

@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes stamp-in {
  0% { opacity: 0; transform: translateY(-50%) rotate(-30deg) scale(2.4); }
  70% { opacity: 1; transform: translateY(-50%) rotate(-11deg) scale(.94); }
  100% { opacity: .9; transform: translateY(-50%) rotate(-14deg) scale(1); }
}
.stamp-anim { animation: stamp-in .45s cubic-bezier(.3, 1.4, .5, 1) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --- ログイン（入門） --- */

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.gate-card {
  width: min(460px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 34px 34px 28px;
  box-shadow: var(--shadow-lift);
}
.gate-title { font-family: var(--font-display); font-size: 30px; letter-spacing: .05em; }
.gate-lede { color: var(--muted); font-size: 13.5px; margin-top: 8px; line-height: 1.8; }
.gate-form { display: grid; gap: 14px; margin-top: 24px; }
.gate-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 500; }
.gate-form .sub { font-weight: 400; font-size: 11.5px; color: var(--muted); }
.gate-error { color: var(--seal); font-size: 13px; }
.gate-foot { margin-top: 18px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }

/* --- 講師画面 --- */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab {
  border: none; background: transparent; cursor: pointer;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 700; }

.list-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--surface); }
.list-table th {
  text-align: left;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.list-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list-table tr:hover td { background: var(--raised); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.progress-dots { display: flex; gap: 2px; flex-wrap: wrap; max-width: 340px; }
.dot { width: 10px; height: 10px; border-radius: 2px; border: 1px solid var(--line-strong); background: transparent; }
.dot.approved { background: var(--accent); border-color: var(--accent); }
.dot.submitted { background: var(--p2); border-color: var(--p2); }
.dot.rework { background: var(--seal); border-color: var(--seal); }
.dot.in_progress { background: var(--p4); border-color: var(--p4); opacity: .5; }

.review-panel { display: grid; gap: 16px; }
.evidence-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.evidence-table th {
  width: 200px; text-align: left; vertical-align: top;
  padding: 9px 12px 9px 0;
  font-weight: 500; color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.evidence-table td {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 13px;
  word-break: break-all;
  white-space: pre-wrap;
}

.check-row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13.5px; padding: 6px 0; }
.check-row input { margin-top: 4px; width: 15px; height: 15px; accent-color: var(--accent); }

.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--ground);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  box-shadow: var(--shadow-lift);
  z-index: 95;
  animation: rise .3s ease;
}
.toast.err { background: var(--seal); color: #fff; }

.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.right { margin-left: auto; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.hidden { display: none !important; }
