:root {
  /* v14 大人向けコレクション路線: チャコール地＋白カード＋ゴールドは限定アクセント */
  --navy-950: #131519;
  --navy-900: #1b1e23;
  --navy-800: #262a31;
  --blue: #6c7684;
  --blue-soft: #e8eaed;
  --cream: #f4efe3;
  --paper: #ffffff;
  --white: #ffffff;
  --gold: #c9973b;
  --gold-soft: #f5e7bd;
  --ink: #1b1d21;
  --muted: #6a707a;
  --line: #e3e4e7;
  --green: #277a59;
  --yellow: #b77a13;
  --red: #a6353f;
  --shadow: 0 14px 34px rgba(0, 0, 0, .10);
  --sidebar: 250px;
  --topbar: 76px;
  --page-bg:
    radial-gradient(ellipse 1000px 640px at 84% -4%, rgba(255,255,255,.055) 0%, transparent 62%),
    radial-gradient(circle at 88% -6%, #262a31 0, transparent 42%),
    linear-gradient(155deg, rgba(255,255,255,.028) 0%, transparent 40%),
    #15171b;
  --ink-inverse: #eeece6;
  --muted-inverse: #9a9fa8;
  --line-inverse: rgba(255,255,255,.09);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page-bg); background-attachment: fixed; font-family: Inter, "Hiragino Sans", "Yu Gothic", system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #5ba7e8; outline-offset: 2px; }
.skip-link { position: fixed; top: -80px; left: 18px; z-index: 999; padding: 12px 16px; color: white; background: var(--navy-950); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.topbar { position: fixed; inset: 0 0 auto; z-index: 50; min-height: var(--topbar); display: flex; align-items: center; gap: 18px; padding: 0 24px; color: white; background: linear-gradient(100deg, var(--navy-950), var(--navy-800)); border-bottom: 2px solid var(--gold); box-shadow: 0 6px 22px rgba(0, 0, 0, .32); }
.menu-button { display: none; }
.icon-button { width: 42px; height: 42px; place-items: center; color: white; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; cursor: pointer; }
.brand { min-width: 250px; display: flex; align-items: center; gap: 11px; color: white; text-decoration: none; }
.brand-mark { color: var(--gold); font-size: 28px; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, serif; font-size: 20px; letter-spacing: .03em; }
.brand small { margin-top: 2px; color: #a9adb4; font-size: 9px; letter-spacing: .12em; }
.view-switch { display: flex; padding: 4px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; }
.view-switch-button { min-height: 34px; padding: 0 14px; color: #c4c6ca; background: transparent; border: 0; border-radius: 999px; font-size: 11px; font-weight: 800; cursor: pointer; }
.view-switch-button.active { color: var(--navy-950); background: var(--paper); box-shadow: 0 2px 8px rgba(0,0,0,.16); }
.topbar-status { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.source-indicator, .build-label { padding: 7px 10px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; color: #d7d8da; font-size: 9px; font-weight: 750; }
.source-indicator i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; background: var(--yellow); border-radius: 50%; }
.source-indicator b { color: white; }
.commissioner-chip { display: flex; align-items: center; gap: 9px; min-width: 138px; padding: 6px 10px; color: white; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; cursor: pointer; text-align: left; }
.commissioner-chip .avatar { width: 35px; height: 35px; display: grid; place-items: center; color: var(--navy-950); background: var(--gold-soft); border-radius: 50%; font-weight: 900; }
.commissioner-chip small, .commissioner-chip strong { display: block; }
.commissioner-chip small { color: #a7abb2; font-size: 8px; }
.commissioner-chip strong { font-size: 11px; }

.sidebar { position: fixed; inset: var(--topbar) auto 0 0; z-index: 40; width: var(--sidebar); display: flex; flex-direction: column; padding: 18px 13px; color: #cfd1d5; background: var(--navy-950); border-right: 1px solid var(--line-inverse); }
#primary-nav { display: grid; gap: 5px; }
.nav-button { width: 100%; min-height: 52px; display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 8px; padding: 7px 10px; color: inherit; background: transparent; border: 1px solid transparent; border-radius: 11px; cursor: pointer; text-align: left; }
.nav-button:hover { background: rgba(255,255,255,.06); }
.nav-button.active { color: white; background: linear-gradient(90deg, rgba(201,151,59,.22), rgba(255,255,255,.05)); border-color: rgba(201,151,59,.42); }
.nav-icon { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #3a3e46; border-radius: 8px; font-weight: 900; }
.nav-button strong, .nav-button small { display: block; }
.nav-button strong { font-size: 12px; }
.nav-button small { margin-top: 2px; color: #7d818a; font-size: 8px; }
.nav-button.active small { color: #d1bc8e; }
.sidebar-note { margin-top: auto; padding: 13px; color: #cfd1d5; background: rgba(255,255,255,.04); border: 1px solid var(--line-inverse); border-radius: 12px; }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { font-size: 10px; letter-spacing: .08em; }
.sidebar-note small { margin-top: 4px; color: #888d96; font-size: 9px; line-height: 1.5; }
.demo-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: var(--gold); border-radius: 50%; }
.mobile-nav { display: none; }

main { min-height: 100vh; padding: calc(var(--topbar) + 24px) 28px 52px calc(var(--sidebar) + 28px); }
.page { width: min(1500px, 100%); margin: 0 auto; }
.demo-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 9px 13px; color: #604a1b; background: #fff7dc; border: 1px solid #e6ce89; border-radius: 10px; font-size: 10px; }
.demo-banner strong { flex: 0 0 auto; padding: 3px 7px; color: white; background: #7d6126; border-radius: 5px; letter-spacing: .05em; }

.flow-shell { margin-bottom: 20px; padding: 15px; background: rgba(255,253,247,.86); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 22px rgba(7,22,47,.06); }
.flow-caption { display: flex; align-items: baseline; gap: 9px; margin-bottom: 11px; }
.flow-caption span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.flow-caption strong { color: var(--navy-900); font-size: 13px; }
.flow-caption small { margin-left: auto; color: var(--blue); font-size: 9px; font-weight: 800; }
.flow-track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.flow-step { position: relative; min-height: 66px; display: grid; grid-template-columns: 24px 1fr; align-content: center; gap: 1px 6px; padding: 8px; color: #667085; background: #f7f4eb; border: 1px solid #e0dacd; border-radius: 10px; cursor: pointer; text-align: left; }
.flow-step::after { content: "›"; position: absolute; right: -7px; top: 23px; z-index: 2; color: #b8ad98; font-size: 20px; }
.flow-step:last-child::after { display: none; }
.flow-step b { grid-row: 1 / 3; width: 24px; height: 24px; display: grid; place-items: center; align-self: center; background: #e8e2d5; border-radius: 50%; font-size: 10px; }
.flow-step span { color: var(--ink); font-size: 9px; font-weight: 900; }
.flow-step small { font-size: 7px; line-height: 1.25; }
.flow-step.done { color: #49725f; background: #edf6f0; border-color: #b9d4c5; }
.flow-step.done b { color: white; background: var(--green); }
.flow-step.active { color: #5d481a; background: linear-gradient(135deg, #fff7dd, #f1dda7); border-color: var(--gold); box-shadow: 0 5px 16px rgba(201,151,59,.2); }
.flow-step.active b { color: white; background: var(--navy-900); }

.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 0 0 20px; }
.page-header > div:first-child { max-width: 820px; }
.eyebrow-row { display: flex; align-items: center; gap: 9px; }
.eyebrow { margin: 0 0 5px; color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.view-mode-note { padding: 3px 7px; color: var(--blue); background: var(--blue-soft); border-radius: 999px; font-size: 8px; font-weight: 800; }
.page-header h1 { margin: 0; color: var(--ink-inverse); font-family: Georgia, "Yu Mincho", serif; font-size: clamp(30px, 3.1vw, 46px); line-height: 1.05; letter-spacing: -.03em; }
.page-header p { margin: 8px 0 0; color: var(--muted-inverse); font-size: 12px; line-height: 1.65; }
.page-header .meaning { display: inline-block; margin-top: 10px; padding: 5px 9px; color: #5a481e; background: #f3e7c7; border-radius: 6px; font-size: 9px; font-weight: 800; }
.header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.button { min-height: 42px; display: inline-grid; place-items: center; padding: 0 15px; color: var(--navy-900); background: white; border: 1px solid #c9c2b4; border-radius: 9px; font-size: 10px; font-weight: 850; cursor: pointer; text-align: center; }
.button:hover { border-color: var(--blue); transform: translateY(-1px); }
.button.primary { color: white; background: var(--navy-900); border-color: var(--navy-900); }
.button:disabled { cursor: not-allowed; opacity: .52; transform: none; }
.link-button, .link { color: var(--blue); background: transparent; border: 0; font-size: 10px; font-weight: 850; cursor: pointer; }

.home-scoreboard, .review-scoreboard, .audit-scoreboard { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 22px; }
.home-scoreboard article, .review-scoreboard article, .audit-scoreboard article { min-height: 104px; padding: 15px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 13px; box-shadow: 0 8px 22px rgba(7,22,47,.06); }
.home-scoreboard article.alert { border-top-color: var(--red); }
.home-scoreboard span, .review-scoreboard span, .audit-scoreboard span { color: var(--muted); font-size: 9px; font-weight: 800; }
.home-scoreboard strong, .review-scoreboard strong, .audit-scoreboard strong { display: inline-block; margin-top: 7px; color: var(--navy-900); font-size: 32px; line-height: 1; }
.home-scoreboard small, .review-scoreboard small { margin-left: 4px; color: var(--muted); font-size: 9px; }
.home-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .55fr); gap: 20px; align-items: start; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-heading h2 { margin: 0; color: var(--navy-900); font-family: Georgia, serif; font-size: 21px; }
.section-heading > span { color: var(--muted); font-size: 9px; }
.home-side { display: grid; gap: 13px; }
.next-play { padding: 22px; color: white; background: linear-gradient(145deg, var(--navy-900), #17487f); border: 1px solid #315d8c; border-radius: 16px; box-shadow: var(--shadow); }
.next-play > span { color: #e5c779; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.next-play h2 { margin: 9px 0; font-size: 22px; }
.next-play p { color: #cbd9e9; font-size: 11px; line-height: 1.65; }
.next-play .button { width: 100%; margin-top: 7px; color: var(--navy-900); background: var(--gold-soft); border-color: var(--gold-soft); }
.staff-callout, .latest-moves { padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.staff-callout-head { display: flex; align-items: center; gap: 10px; }
.staff-callout img { width: 54px; height: 54px; object-fit: cover; border-radius: 12px; }
.staff-callout small, .staff-callout strong { display: block; }
.staff-callout small { color: var(--muted); font-size: 8px; }
.staff-callout strong { margin-top: 3px; font-size: 11px; }
.staff-callout p { margin: 11px 0 0; color: #43516a; font-size: 11px; line-height: 1.65; }
.latest-moves h2 { margin: 0 0 9px; font-size: 14px; }
.latest-moves > div { display: grid; grid-template-columns: 23px 1fr; gap: 7px; align-items: center; padding: 7px 0; border-top: 1px solid #ece6da; }
.latest-moves b { width: 22px; height: 22px; display: grid; place-items: center; color: white; background: var(--navy-800); border-radius: 50%; font-size: 8px; }
.latest-moves span { font-size: 9px; line-height: 1.4; }
.staff-bench { margin-top: 24px; padding: 16px; background: rgba(255,253,247,.62); border: 1px solid var(--line); border-radius: 14px; }
.staff-bench > div:last-child { display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; }
.staff-mini { min-width: 0; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 8px; padding: 8px; background: white; border: 1px solid #e5ded1; border-radius: 10px; }
.staff-mini img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.staff-mini strong, .staff-mini span { display: block; }
.staff-mini strong { font-size: 10px; }
.staff-mini span { margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.3; }

.candidate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 17px; align-items: start; }
.candidate-card { overflow: hidden; background: var(--paper); border: 1px solid #d5cdbd; border-radius: 17px; box-shadow: var(--shadow); }
.candidate-card.featured { display: grid; grid-template-columns: minmax(245px, .76fr) minmax(0, 1.24fr); align-items: start; background: linear-gradient(90deg, var(--navy-900) 0 37.8%, var(--paper) 37.8%); }
.candidate-visual { position: relative; width: 100%; aspect-ratio: 1.12; overflow: hidden; background: #0b2447; }
.featured .candidate-visual { align-self: start; }
.company-art { position: absolute; inset: 0; background-image: linear-gradient(180deg, transparent 60%, rgba(7,22,47,.76)), url("assets/player_cards_official_v01.png"); background-repeat: no-repeat; background-size: 308% auto; }
.company-art.compact { position: relative; width: 100%; aspect-ratio: 1.12; }
.company-art.p1 { background-position: 2% 26%; }
.company-art.p2 { background-position: 50.5% 26%; }
.company-art.p3 { background-position: 99% 26%; }
.company-art.p4 { background-position: 2% 92%; }
.company-art.p5 { background-position: 50.5% 92%; }
.company-art.p6 { background-position: 99% 92%; }
.candidate-visual-top { position: absolute; inset: 12px 12px auto; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.type-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; color: white; background: rgba(7,22,47,.88); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 10px; font-weight: 900; backdrop-filter: blur(5px); }
.favorite-button { min-height: 32px; padding: 0 10px; color: var(--navy-900); background: rgba(255,253,247,.94); border: 1px solid #d7c895; border-radius: 999px; font-size: 9px; font-weight: 850; cursor: pointer; }
.favorite-button.active { color: #6b4d09; background: #ffe8a7; }
.stage-ribbon { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 7px 10px; color: white; background: rgba(7,22,47,.9); border-left: 4px solid var(--gold); border-radius: 5px; font-size: 10px; font-weight: 900; }
.candidate-body { padding: 17px; }
.candidate-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.candidate-title p { margin: 0; color: var(--muted); font-size: 8px; font-weight: 800; }
.candidate-title h2 { margin: 3px 0 4px; color: var(--navy-950); font-family: Georgia, serif; font-size: 23px; }
.candidate-title h2 small { color: var(--gold); font-family: inherit; font-size: 11px; }
.candidate-title > div > span { color: #536177; font-size: 9px; line-height: 1.45; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 850; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.status.verified { color: var(--green); background: #e7f4ec; }
.status.partial { color: var(--yellow); background: #fff2d5; }
.status.not-verified { color: var(--red); background: #fae8e9; }
.status.unavailable { color: #6c7380; background: #eceff2; }
.status.stage { color: var(--blue); background: var(--blue-soft); }
.score-lead { display: grid; grid-template-columns: 1fr 72px; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; background: linear-gradient(135deg, #f6ecd0, #fffaf0); border: 1px solid #e0c98d; border-radius: 12px; }
.score-lead span, .score-lead small { display: block; }
.score-lead span { color: #685322; font-size: 9px; font-weight: 850; }
.score-lead strong { color: var(--navy-900); font-size: 39px; line-height: 1; }
.score-lead small { color: #86775a; font-size: 7px; }
.score-ring { width: 66px; height: 66px; display: grid; place-items: center; background: conic-gradient(var(--gold) var(--score), #e7dfcd 0); border-radius: 50%; }
.score-ring::before { content: ""; grid-area: 1/1; width: 48px; height: 48px; background: var(--paper); border-radius: 50%; }
.score-ring span { grid-area: 1/1; position: relative; z-index: 1; color: var(--navy-900); font-size: 16px; font-weight: 900; }
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.score-metric { min-width: 0; padding: 9px; background: #f6f4ee; border: 1px solid #e6dfd3; border-radius: 9px; }
.score-metric span, .score-metric strong { display: block; }
.score-metric span { color: var(--muted); font-size: 7px; font-weight: 800; }
.score-metric strong { margin-top: 3px; overflow-wrap: anywhere; color: var(--navy-900); font-size: 13px; }
.score-metric.empty strong { color: #8a909a; font-size: 9px; }
.score-metric i { display: block; height: 4px; margin-top: 6px; overflow: hidden; background: #ded9ce; border-radius: 99px; }
.score-metric i b { display: block; width: var(--score); height: 100%; background: var(--blue); }
.score-disclaimer { margin: 8px 0 0; color: var(--muted-inverse); font-size: 7px; line-height: 1.45; }
.ai-summary { display: grid; grid-template-columns: auto 1fr; gap: 2px 9px; margin-top: 11px; padding: 10px 12px; background: var(--blue-soft); border-radius: 9px; }
.ai-summary span { grid-row: 1 / 3; align-self: center; color: var(--blue); font-size: 8px; font-weight: 900; }
.ai-summary strong { font-size: 10px; }
.ai-summary small { color: var(--muted); font-size: 8px; }
.next-check { margin-top: 10px; padding: 12px; background: white; border: 2px solid var(--gold); border-radius: 10px; box-shadow: 0 5px 14px rgba(201,151,59,.1); }
.next-check span, .next-check strong { display: block; }
.next-check span { color: #7a5e20; font-size: 8px; font-weight: 900; letter-spacing: .05em; }
.next-check strong { margin-top: 4px; color: var(--navy-900); font-size: 11px; line-height: 1.45; }
.card-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px; margin-top: 12px; }

.evidence-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.company-details { margin-top: 12px; }
.company-details > summary { padding: 10px 12px; color: var(--blue); background: var(--blue-soft); border: 1px solid #bdd5ea; border-radius: 8px; font-size: 9px; font-weight: 850; cursor: pointer; }
.company-details[open] > summary { color: white; background: var(--navy-800); border-color: var(--navy-800); }
.company-details .evidence-panel { margin-top: 8px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.detail-grid > article { padding: 12px; background: #f8f7f2; border: 1px solid #e6dfd3; border-radius: 10px; }
.detail-grid h3 { margin: 0 0 8px; color: var(--navy-900); font-size: 11px; }
.detail-grid p { color: var(--muted); font-size: 8px; line-height: 1.55; }
.evidence-row { padding: 7px 0; border-top: 1px solid #e6e0d7; }
.evidence-row:first-of-type { border-top: 0; }
.evidence-row span, .evidence-row strong, .evidence-row small { display: block; }
.evidence-row span { color: var(--muted); font-size: 7px; }
.evidence-row strong { margin-top: 2px; font-size: 9px; line-height: 1.4; }
.evidence-row small { margin-top: 2px; color: #8a7f6c; font-size: 7px; line-height: 1.35; }
.evidence-row.danger strong { color: var(--red); }
.score-formula { display: flex; flex-wrap: wrap; gap: 5px; }
.score-formula span { padding: 4px 6px; color: var(--blue); background: var(--blue-soft); border-radius: 5px; font-size: 7px; font-weight: 800; }
[data-view-mode="simple"] .detail-only { display: none !important; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 15px; padding: 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; }
.filter-bar label { color: var(--muted); font-size: 9px; font-weight: 800; }
.filter-bar select { min-height: 38px; padding: 0 10px; background: white; border: 1px solid #cbc3b5; border-radius: 8px; }
.filter-chip { min-height: 36px; padding: 0 11px; color: #765916; background: #fff8e5; border: 1px solid #e2c982; border-radius: 999px; font-size: 9px; font-weight: 800; cursor: pointer; }
.filter-chip.active { color: white; background: #8a681e; }
.filter-count { margin-left: auto; color: var(--muted); font-size: 9px; }

.scout-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(280px,.5fr); gap: 18px; align-items: start; }
.panel { padding: 19px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 9px 25px rgba(7,22,47,.06); }
.panel.warm { background: linear-gradient(145deg, #fffdf7, #f8f0dc); }
.panel header { margin-bottom: 15px; }
.panel h2 { margin: 7px 0 0; color: var(--navy-900); font-size: 19px; }
.step-badge { padding: 4px 8px; color: white; background: var(--navy-900); border-radius: 5px; font-size: 8px; font-weight: 900; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 13px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #4e5b6d; font-size: 9px; font-weight: 850; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; color: var(--ink); background: white; border: 1px solid #cbc4b6; border-radius: 8px; }
.field textarea { min-height: 90px; resize: vertical; line-height: 1.55; }
.scout-guide { display: grid; gap: 10px; }
.scout-guide article { display: grid; grid-template-columns: 42px 1fr; gap: 11px; align-items: center; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.scout-guide article b { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--navy-800); border-radius: 50%; }
.scout-guide h3, .scout-guide p { margin: 0; }
.scout-guide h3 { font-size: 12px; }
.scout-guide p { margin-top: 4px; color: var(--muted); font-size: 9px; }
.safe-note { padding: 15px; color: #5f4818; background: #fff3cd; border: 1px solid #e0c16b; border-radius: 12px; }
.safe-note strong, .safe-note span { display: block; }
.safe-note span { margin-top: 4px; font-size: 9px; line-height: 1.5; }

.company-picker { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.company-chip { min-height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 10px; background: var(--paper); border: 1px solid #cbc3b5; border-radius: 999px; cursor: pointer; }
.company-chip b { color: var(--blue); font-size: 9px; }
.company-chip span { font-size: 9px; font-weight: 800; }
.company-chip.active { color: white; background: var(--navy-900); border-color: var(--navy-900); }
.company-chip.active b { color: #f0d589; }
.lab-hero { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 18px; align-items: center; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.lab-hero > div:first-child { position: relative; overflow: hidden; border-radius: 12px; }
.lab-hero > div:first-child .type-tag { position: absolute; left: 10px; bottom: 10px; }
.lab-hero h2 { margin: 2px 0 8px; color: var(--navy-900); font-family: Georgia, serif; font-size: 31px; }
.lab-hero p:not(.eyebrow) { color: var(--muted); font-size: 11px; }
.test-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 16px; }
.test-card { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; min-height: 108px; padding: 13px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 12px; }
.test-card > b { width: 46px; height: 46px; display: grid; place-items: center; color: white; background: var(--blue); border-radius: 50%; font-size: 17px; }
.test-card span, .test-card strong, .test-card small { display: block; }
.test-card span { color: var(--muted); font-size: 8px; }
.test-card strong { margin-top: 3px; font-size: 13px; }
.test-card small { margin-top: 4px; color: #7a8290; font-size: 7px; line-height: 1.35; }
.test-card.verified { border-top-color: var(--green); }.test-card.verified > b { background: var(--green); }
.test-card.partial { border-top-color: var(--yellow); }.test-card.partial > b { background: var(--yellow); }
.test-card.not-verified { border-top-color: var(--red); }.test-card.not-verified > b { background: var(--red); }
.test-card.unavailable { border-top-color: #7b8491; }.test-card.unavailable > b { background: #7b8491; }
.primary-next { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0; padding: 17px; color: white; background: var(--navy-900); border: 1px solid #315987; border-radius: 14px; }
.primary-next span, .primary-next strong, .primary-next small { display: block; }
.primary-next span { color: #dbc17d; font-size: 8px; font-weight: 900; }
.primary-next strong { margin-top: 3px; font-size: 15px; }
.primary-next small { margin-top: 3px; color: #bdcde0; font-size: 8px; }
.primary-next .button { color: var(--navy-900); background: var(--gold-soft); border-color: var(--gold-soft); }

.review-scoreboard article strong { display: block; font-size: 21px; }
.review-scoreboard article small { display: block; margin: 5px 0 0; }
.review-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 14px; }
.review-main, .vote-board { padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.review-main > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-main h2 { margin: 8px 0 0; font-size: 21px; }
.pro-con { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.pro-con article { padding: 14px; border-radius: 11px; }
.pro-con .pro { background: #eaf5ee; border: 1px solid #b8d7c4; }
.pro-con .con { background: #f9eaeb; border: 1px solid #e2b9bd; }
.pro-con span, .pro-con strong { display: block; }
.pro-con span { font-size: 8px; font-weight: 900; }
.pro-con strong { margin-top: 5px; font-size: 10px; line-height: 1.55; }
.vote-board h2 { margin: 0 0 10px; font-size: 16px; }
.vote-board > div { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid #e9e3d8; }
.vote-board span { font-size: 10px; font-weight: 850; }
.vote-board strong { font-size: 24px; }
.vote-board p { color: var(--muted); font-size: 8px; }

.decision-page .page-header { border-bottom: 1px solid #cec8bd; padding-bottom: 18px; }
.decision-card { overflow: hidden; background: #f9f9f7; border: 1px solid #bfc2c7; border-radius: 15px; box-shadow: 0 12px 30px rgba(25,29,35,.12); }
.decision-card > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; color: white; background: #232932; }
.decision-card > header h2 { margin: 4px 0 0; font-size: 24px; }
.decision-card > header h2 small { color: #c3c9d1; font-size: 11px; }
.decision-card > header > div:last-child { text-align: right; }
.decision-card > header span, .decision-card > header strong { display: block; }
.decision-card > header span { color: #aeb8c5; font-size: 8px; }
.decision-card > header strong { margin-top: 3px; font-size: 11px; }
.decision-facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: #d1d3d6; }
.decision-facts article { padding: 16px; background: white; }
.decision-facts span, .decision-facts strong, .decision-facts small { display: block; }
.decision-facts span { color: #747b84; font-size: 8px; }
.decision-facts strong { margin-top: 7px; font-size: 14px; }
.decision-facts small { margin-top: 4px; color: #9298a0; font-size: 7px; }
.decision-blocker { display: flex; align-items: center; gap: 12px; margin: 16px 18px 0; padding: 12px; color: #68501d; background: #fff2cc; border: 1px solid #dcbf65; border-radius: 9px; }
.decision-blocker strong { flex: 0 0 auto; font-size: 10px; }
.decision-blocker span { font-size: 9px; }
.decision-choices { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 18px; }
.decision-choices button { min-height: 112px; display: grid; place-items: center; align-content: center; gap: 4px; color: var(--ink); background: white; border: 2px solid #7c838c; border-radius: 12px; cursor: pointer; }
.decision-choices button:hover { background: #f0f2f4; border-color: #303844; }
.decision-choices strong { font-size: 25px; }
.decision-choices span { font-size: 10px; font-weight: 850; }
.decision-choices small { color: #7d848e; font-size: 7px; }
.withdrawal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 18px 18px; }
.withdrawal-grid article { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 13px; background: white; border: 1px solid #d6d8db; border-radius: 10px; }
.withdrawal-grid b { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--red); border-radius: 9px; }
.withdrawal-grid article:last-child b { background: var(--yellow); }
.withdrawal-grid span, .withdrawal-grid strong, .withdrawal-grid small { display: block; }
.withdrawal-grid span { font-size: 8px; font-weight: 900; }
.withdrawal-grid strong { margin-top: 4px; font-size: 9px; line-height: 1.5; }
.withdrawal-grid small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.decision-card .evidence-panel { margin: 0 18px 18px; }

.roster-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.roster-tabs span { padding: 8px 11px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 9px; font-weight: 850; }
.roster-tabs span.active { color: white; background: var(--navy-900); }
.roster-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 15px; }
.roster-card { padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.roster-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.roster-card h2 { margin: 2px 0 0; font-family: Georgia, serif; font-size: 21px; }
.roster-card h2 small { color: var(--gold); font-size: 10px; }
.roster-facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 11px; }
.roster-facts div { padding: 10px; background: #f5f3ed; border-radius: 8px; }
.roster-facts span, .roster-facts strong { display: block; }
.roster-facts span { color: var(--muted); font-size: 7px; }
.roster-facts strong { margin-top: 4px; font-size: 9px; line-height: 1.45; }
.roster-card > p { color: var(--muted); font-size: 8px; }

.audit-scoreboard article strong { display: block; font-size: 20px; }
.storage-strip { display: grid; grid-template-columns: 1fr 1fr .4fr; gap: 1px; margin-bottom: 14px; overflow: hidden; background: #bfc4ca; border: 1px solid #bfc4ca; border-radius: 11px; }
.storage-strip > div { padding: 13px; background: white; }
.storage-strip.healthy { border-color: #9ac3ab; background: #9ac3ab; }
.storage-strip span, .storage-strip strong { display: block; }
.storage-strip span { color: var(--muted); font-size: 8px; }
.storage-strip strong { margin-top: 4px; overflow-wrap: anywhere; font-size: 10px; }
.audit-table-panel { margin-top: 14px; padding: 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; }
.audit-table-panel h2 { margin: 0 0 10px; font-size: 15px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 9px; }
th { padding: 9px 10px; color: #657084; background: #f1f2f2; border-bottom: 1px solid #d9dbde; text-align: left; white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid #e6e3dc; vertical-align: top; line-height: 1.45; }
tbody tr:hover { background: #f7f5ef; }

.scrim { position: fixed; inset: 0; z-index: 35; background: rgba(10,11,13,.68); }
.toast { position: fixed; right: 22px; bottom: 24px; z-index: 100; max-width: 420px; padding: 13px 16px; color: white; background: var(--navy-950); border: 1px solid #396793; border-radius: 10px; box-shadow: var(--shadow); font-size: 11px; }
.noscript { margin: 100px 30px; padding: 20px; background: #fff0f1; border: 1px solid #e3b5b9; }

@media (max-width: 1240px) {
  :root { --sidebar: 218px; }
  .brand { min-width: 210px; }
  .build-label { display: none; }
  .staff-bench > div:last-child { grid-template-columns: repeat(3,1fr); }
  .home-layout, .scout-layout { grid-template-columns: 1fr; }
  .candidate-card.featured { grid-template-columns: minmax(230px,.65fr) minmax(0,1.35fr); }
  .test-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 900px) {
  :root { --topbar: 66px; }
  .topbar { padding: 0 13px; gap: 9px; }
  .menu-button { display: grid; }
  .brand { min-width: 0; }
  .brand-mark { display: none; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 7px; }
  .view-switch { margin-left: auto; }
  .view-switch-button { min-height: 31px; padding: 0 9px; font-size: 9px; }
  .topbar-status { display: none; }
  .commissioner-chip { min-width: 0; padding: 4px; }
  .commissioner-chip .avatar { width: 32px; height: 32px; }
  .commissioner-chip span:last-child { display: none; }
  .sidebar { transform: translateX(-105%); transition: transform .2s ease; box-shadow: 20px 0 40px rgba(0,0,0,.2); }
  .sidebar.open { transform: translateX(0); }
  main { padding: calc(var(--topbar) + 15px) 13px 88px; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: repeat(5,1fr); gap: 2px; min-height: 68px; padding: 6px 5px calc(6px + env(safe-area-inset-bottom)); color: #cfd1d5; background: rgba(19,21,25,.97); border-top: 1px solid var(--line-inverse); backdrop-filter: blur(10px); }
  .mobile-nav .nav-button { min-height: 50px; grid-template-columns: 1fr; justify-items: center; gap: 2px; padding: 3px; text-align: center; }
  .mobile-nav .nav-icon { width: 27px; height: 24px; border: 0; }
  .mobile-nav .nav-button strong { font-size: 7px; }
  .mobile-nav .nav-button small { display: none; }
  .flow-track { grid-template-columns: repeat(3,1fr); }
  .flow-step:not(.nearby) { display: none; }
  .flow-step::after { display: none; }
  .page-header { flex-direction: column; }
  .header-actions { justify-content: flex-start; }
  .home-scoreboard, .review-scoreboard, .audit-scoreboard { grid-template-columns: repeat(2,1fr); }
  .home-scoreboard article:last-child, .review-scoreboard article:last-child, .audit-scoreboard article:last-child { grid-column: 1 / -1; }
  .candidate-card.featured { grid-template-columns: 1fr; }
  .candidate-card.featured { background: var(--paper); }
  .candidate-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lab-hero { grid-template-columns: 220px 1fr; }
  .test-grid { grid-template-columns: repeat(2,1fr); }
  .review-layout { grid-template-columns: 1fr; }
  .vote-board { display: grid; grid-template-columns: repeat(3,1fr); align-items: center; gap: 8px; }
  .vote-board h2, .vote-board p { grid-column: 1 / -1; }
  .vote-board > div { border: 1px solid #e2ddd3; border-radius: 8px; padding: 10px; }
  .decision-facts { grid-template-columns: repeat(2,1fr); }
  .roster-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .brand small { display: none; }
  .view-switch-button { max-width: 72px; padding: 0 7px; font-size: 8px; }
  .page-header h1 { font-size: 32px; }
  .flow-caption small { display: none; }
  .flow-step { min-height: 62px; }
  .flow-step small { display: none; }
  .demo-banner { align-items: flex-start; flex-direction: column; gap: 4px; }
  .home-scoreboard article, .review-scoreboard article, .audit-scoreboard article { min-height: 88px; padding: 12px; }
  .home-scoreboard strong { font-size: 26px; }
  .staff-bench > div:last-child { grid-template-columns: repeat(2,1fr); }
  .candidate-grid { grid-template-columns: 1fr; }
  .candidate-title h2 { font-size: 22px; }
  .score-grid { grid-template-columns: repeat(2,1fr); }
  .card-actions { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .lab-hero { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .test-card { min-height: 88px; }
  .primary-next { align-items: stretch; flex-direction: column; }
  .pro-con { grid-template-columns: 1fr; }
  .decision-card > header { align-items: flex-start; flex-direction: column; }
  .decision-card > header > div:last-child { text-align: left; }
  .decision-facts { grid-template-columns: 1fr; }
  .decision-blocker { align-items: flex-start; flex-direction: column; }
  .decision-choices { gap: 6px; padding: 14px; }
  .decision-choices button { min-height: 96px; padding: 6px; }
  .decision-choices strong { font-size: 19px; }
  .withdrawal-grid { grid-template-columns: 1fr; padding: 0 14px 14px; }
  .roster-facts { grid-template-columns: 1fr; }
  .storage-strip { grid-template-columns: 1fr; }
  .button { min-height: 44px; }
}

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

/* ===== v04.1 AIスタッフ名鑑 ===== */
.staff-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; padding: 12px 14px; background: var(--paper, #fdfbf6); border: 1px solid #e2ddd3; border-radius: 12px; }
.staff-legend > span:first-child { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #5d6c80; }

.staff-stage-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px 4px 4px; font: inherit; font-size: 12px; color: #24354d; background: #eef3f9; border: 1px solid #c6d4e4; border-radius: 999px; cursor: pointer; }
.staff-stage-chip b { display: grid; place-items: center; width: 24px; height: 24px; font-size: 12px; color: #fff; background: #1d4f91; border-radius: 999px; }
.staff-stage-chip:hover { background: #e2ebf6; }
.staff-stage-chip.ops { cursor: default; background: #f4f0e8; border-color: #ddd4c2; }
.staff-stage-chip.ops b { background: #7a6a4f; }

.staff-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.staff-directory-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--paper, #fdfbf6); border: 1px solid #e2ddd3; border-radius: 14px; }
.staff-card-head { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; }
.staff-card-head img { width: 92px; height: 92px; object-fit: cover; border: 2px solid #d8e2ee; border-radius: 12px; background: #eef3f9; }
.staff-card-head h2 { margin: 0; font-size: 20px; line-height: 1.2; }
.staff-role { margin: 4px 0 0; font-size: 12px; color: #48586e; line-height: 1.45; }
.staff-pair-note { margin: 5px 0 0; padding: 3px 8px; display: inline-block; font-size: 11px; color: #7a4a12; background: #fbf1df; border: 1px solid #ecd9b6; border-radius: 8px; }

.staff-stages { display: flex; flex-direction: column; gap: 6px; padding: 10px; background: #f4f8fc; border: 1px solid #d8e2ee; border-radius: 10px; }
.staff-stages-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: #1d4f91; }
.staff-stage-list { display: flex; flex-wrap: wrap; gap: 6px; }
.staff-stages small { font-size: 11px; color: #5d6c80; }

.staff-block h3 { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #5d6c80; }
.staff-block p { margin: 0; font-size: 13px; line-height: 1.55; }
.staff-block ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; }
.staff-restrictions li { color: #7a3b2e; }

.staff-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.staff-fact { display: flex; flex-direction: column; gap: 2px; min-height: 58px; padding: 8px 10px; background: #fff; border: 1px solid #e2ddd3; border-radius: 10px; }
.staff-fact span { font-size: 9px; font-weight: 700; letter-spacing: .09em; color: #5d6c80; }
.staff-fact strong { font-size: 13px; color: #17253a; }
.staff-fact small { font-size: 10px; color: #6d7a8c; line-height: 1.4; }

@media (max-width: 1200px) {
  .staff-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .staff-directory-grid { grid-template-columns: 1fr; }
  .staff-card-head { grid-template-columns: 76px 1fr; }
  .staff-card-head img { width: 76px; height: 76px; }
  .staff-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v04.1 スタッフ画像：公式カードv03をCSSで切り抜き表示（描き直しなし） */
.staff-avatar { display: block; width: 92px; height: 92px; border: 2px solid #d8e2ee; border-radius: 12px; background-color: #10254a; background-repeat: no-repeat; background-size: 330% auto; background-position: 50% 10%; }
.staff-card-full summary { font-size: 12px; color: #1d4f91; cursor: pointer; }
.staff-card-full img { width: 100%; height: auto; margin-top: 8px; border: 1px solid #d8e2ee; border-radius: 10px; }
@media (max-width: 760px) {
  .staff-avatar { width: 76px; height: 76px; }
}

/* ===== v05 新人受付台帳 ===== */
.intake-scoreboard { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 0 0 16px; }
.intake-scoreboard article { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--paper, #fdfbf6); border: 1px solid #e2ddd3; border-radius: 12px; }
.intake-scoreboard span { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #5d6c80; }
.intake-scoreboard strong { font-size: 24px; color: #17253a; }
.intake-scoreboard small { font-size: 10px; color: #6d7a8c; }

.intake-report { display: flex; flex-direction: column; gap: 4px; margin: 0 0 16px; padding: 12px 14px; background: #eef7ee; border: 1px solid #bfdcc0; border-radius: 12px; font-size: 13px; }
.intake-report small { color: #58524a; }
.intake-report small.error { color: #8c3b2c; }

.intake-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; margin: 0 0 20px; }
.intake-json { width: 100%; min-height: 150px; margin: 10px 0; padding: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; border: 1px solid #cfd8e3; border-radius: 10px; background: #fff; resize: vertical; }
.intake-note { margin: 6px 0 0; font-size: 12px; color: #5d6c80; line-height: 1.6; }
.intake-note code { padding: 1px 5px; background: #eef3f9; border-radius: 5px; font-size: 11px; }

.intake-draft-section { margin: 0 0 22px; padding: 16px; background: #f4f8fc; border: 1px solid #cfe0f0; border-radius: 14px; }
.intake-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 12px; }

.intake-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--paper, #fdfbf6); border: 1px solid #e2ddd3; border-radius: 12px; }
.intake-card.is-new { border-color: #b9821f; box-shadow: 0 0 0 1px #e7c169; }
.intake-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.intake-card h3 { margin: 4px 0 2px; font-size: 17px; }
.intake-card h3 small { font-size: 11px; color: #6d7a8c; }
.intake-card header p { margin: 0; font-size: 12px; color: #48586e; line-height: 1.5; }
.new-badge { display: inline-block; padding: 2px 8px; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: #5d420a; background: #f6d987; border-radius: 999px; }
.intake-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
.intake-facts div { display: flex; flex-direction: column; padding: 6px 8px; background: #fff; border: 1px solid #e8e3d9; border-radius: 8px; }
.intake-facts span { font-size: 9px; font-weight: 700; letter-spacing: .06em; color: #5d6c80; }
.intake-facts strong { font-size: 12px; color: #17253a; word-break: break-all; }
.intake-source { margin: 0; font-size: 11px; color: #6d7a8c; word-break: break-all; }
.intake-actions { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 6px; }
.intake-duplicate-row td { color: #8c3b2c; background: #fdf3f0; }

@media (max-width: 1200px) {
  .intake-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 920px) {
  .intake-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .intake-scoreboard { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .intake-grid { grid-template-columns: 1fr; }
  .intake-actions { grid-template-columns: 1fr; }
}

/* ===== v05.1 AIスタッフ履歴書モーダル ===== */
.staff-directory-card { cursor: pointer; }
.staff-card-actions { margin-top: auto; }
.staff-card-actions .button { width: 100%; min-height: 44px; }
.staff-check-line { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #fbf5e6; border: 1px solid #e8d9b4; border-radius: 10px; }
.staff-check-line span { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #7a6a3d; white-space: nowrap; }
.staff-check-line strong { font-size: 12px; color: #4c3f1d; }

body.staff-modal-open { overflow: hidden; }
.staff-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; }
.staff-modal-scrim { position: absolute; inset: 0; background: rgba(4, 14, 30, .62); backdrop-filter: blur(2px); }
.staff-modal-card { position: relative; width: min(860px, 100%); max-height: min(88vh, 1000px); overflow-y: auto; padding: 22px 22px 18px; background: var(--paper, #fdfbf6); border: 1px solid #d9d2c4; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.staff-modal-close { position: sticky; top: 0; float: right; display: grid; place-items: center; width: 36px; height: 36px; margin-left: 8px; font-size: 15px; color: #24354d; background: #eef3f9; border: 1px solid #c6d4e4; border-radius: 999px; cursor: pointer; z-index: 2; }
.staff-modal-close:hover { background: #e2ebf6; }

.resume-top { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: start; padding-bottom: 14px; border-bottom: 2px solid #0f2c55; }
.staff-avatar.large { width: 132px; height: 132px; background-size: 330% auto; background-position: 50% 10%; }
.resume-title h2 { margin: 2px 0; font-size: 28px; }
.resume-role { margin: 0 0 4px; font-size: 13px; color: #48586e; }
.resume-oneliner { margin: 2px 0 6px; font-size: 14px; font-weight: 700; color: #0f2c55; }
.resume-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.resume-badge { display: flex; flex-direction: column; min-width: 118px; padding: 6px 10px; background: #fff; border: 1px solid #d8e2ee; border-radius: 10px; }
.resume-badge small { font-size: 8px; font-weight: 700; letter-spacing: .08em; color: #5d6c80; }
.resume-badge strong { font-size: 12px; color: #17253a; }
.resume-badge.verified strong { color: #1c6b38; }
.resume-badge.partial strong { color: #8a6114; }
.resume-badge.not-verified strong, .resume-badge.unavailable strong { color: #8c3b2c; }

.resume-meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 12px 0 0; }
.resume-meta div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: #f4f8fc; border: 1px solid #d8e2ee; border-radius: 10px; }
.resume-meta span { font-size: 9px; font-weight: 700; letter-spacing: .08em; color: #1d4f91; }
.resume-meta strong { font-size: 12px; color: #17253a; line-height: 1.45; }

.resume-section { padding: 14px 0 4px; border-bottom: 1px solid #e2ddd3; }
.resume-section:last-of-type { border-bottom: 0; }
.resume-section h3 { margin: 12px 0 5px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #0f2c55; }
.resume-section h3:first-child { margin-top: 0; }
.resume-section p { margin: 0 0 4px; font-size: 13px; line-height: 1.6; }
.resume-section ul { margin: 0 0 4px; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.resume-weak { color: #7a3b2e; }
.resume-note { font-size: 11px; color: #6d7a8c; }

.staff-metrics { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; }
.staff-metric { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 8px; }
.staff-metric span { font-size: 11px; color: #48586e; }
.staff-metric i { display: block; height: 8px; background: #e7e2d7; border-radius: 999px; overflow: hidden; }
.staff-metric i b { display: block; width: var(--metric, 0%); height: 100%; background: #1d4f91; border-radius: 999px; }
.staff-metric strong { font-size: 11px; color: #17253a; text-align: right; }

.resume-authorities { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 4px 0 8px; }
.resume-authorities div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: #fff; border: 1px solid #e2ddd3; border-radius: 10px; }
.resume-authorities span { font-size: 9px; font-weight: 700; letter-spacing: .08em; color: #5d6c80; }
.resume-authorities strong { font-size: 12px; color: #17253a; line-height: 1.45; }

.resume-incident { margin: 4px 0 8px; padding: 10px 12px; background: #fdf3f0; border: 1px solid #e6c3b8; border-radius: 10px; }
.resume-incident strong { display: block; font-size: 12px; color: #8c3b2c; }
.resume-incident p { margin: 3px 0; font-size: 12px; }
.resume-incident small { font-size: 10px; color: #8a6a5e; }

.resume-footnote { margin: 12px 0 0; font-size: 11px; color: #6d7a8c; }

@media (max-width: 620px) {
  .staff-modal { padding: 8px; align-items: end; }
  .staff-modal-card { max-height: 92vh; padding: 16px 14px 14px; border-radius: 14px 14px 0 0; }
  .resume-top { grid-template-columns: 84px 1fr; gap: 10px; }
  .staff-avatar.large { width: 84px; height: 84px; }
  .resume-title h2 { font-size: 22px; }
  .resume-meta, .resume-authorities { grid-template-columns: 1fr; }
  .staff-metric { grid-template-columns: 104px 1fr 40px; }
}

/* ===== v05.1 実候補データ識別・研究カード連携 ===== */
.datakind-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; font-size: 10px; font-weight: 700; letter-spacing: .05em; color: #5d6c80; background: #eef1f4; border: 1px solid #d3dae2; border-radius: 999px; }
.datakind-badge.real { color: #0f4d2e; background: #e2f3e8; border-color: #a9d6bb; }
.intake-card.is-real { border-color: #2e8b57; box-shadow: 0 0 0 1px #7cc39a; }
.intake-hypothesis { padding: 8px 10px; background: #f4f8fc; border: 1px solid #d8e2ee; border-radius: 10px; }
.intake-hypothesis span { font-size: 9px; font-weight: 700; letter-spacing: .08em; color: #1d4f91; }
.intake-hypothesis p { margin: 3px 0 0; font-size: 12px; line-height: 1.55; color: #24354d; }
.research-card-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 12px; font-weight: 700; color: #0f2c55; background: #eef3f9; border: 1px solid #c6d4e4; border-radius: 10px; text-decoration: none; }
.research-card-link:hover { background: #e2ebf6; }

/* ===== v06 スカウト連携・自動受付 ===== */
.discoverer-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: 11px; font-weight: 700; color: var(--badge-color, #5d6c80); background: #fff; border: 1px solid currentColor; border-radius: 999px; }
.discoverer-badge i { width: 8px; height: 8px; background: var(--badge-color, #5d6c80); border-radius: 999px; }
.intake-discoverer { margin: 4px 0 2px; }
.unconfirmed-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; font-size: 10px; font-weight: 700; color: #7a4a12; background: #fbf1df; border: 1px solid #ecd9b6; border-radius: 999px; }

.counter-evidence { padding: 10px 12px; background: #fdf6f4; border: 1px solid #e6c9c0; border-radius: 10px; }
.counter-evidence summary { font-size: 12px; font-weight: 700; color: #8c3b2c; cursor: pointer; }
.counter-note { margin: 8px 0; padding: 8px 10px; background: #fff; border: 1px solid #e9d5cd; border-radius: 8px; }
.counter-note strong { display: block; font-size: 10px; color: #8c3b2c; }
.counter-note p { margin: 3px 0 0; font-size: 12px; line-height: 1.55; }
.counter-empty { margin: 6px 0; font-size: 11px; color: #8a6a5e; }
.counter-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.counter-form textarea { min-height: 64px; padding: 8px; font: inherit; font-size: 12px; border: 1px solid #d9c4bb; border-radius: 8px; resize: vertical; background: #fff; }
.counter-form .button { align-self: flex-end; min-height: 36px; }

/* ===== v07 実連携フェーズ ===== */
.cloud-panel { margin: 0 0 16px; padding: 14px 16px; background: var(--paper, #fdfbf6); border: 1px solid #e2ddd3; border-left: 4px solid #9aa7b8; border-radius: 12px; }
.cloud-panel.connected { border-left-color: #2e8b57; }
.cloud-panel header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cloud-panel h2 { margin: 0; font-size: 16px; }
.cloud-status { margin-left: auto; font-size: 11px; font-weight: 700; color: #48586e; }
.cloud-panel.connected .cloud-status { color: #1c6b38; }
.cloud-form { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 10px; }
.cloud-form input { min-height: 40px; padding: 0 12px; font: inherit; font-size: 12px; border: 1px solid #cfd8e3; border-radius: 10px; background: #fff; }
.cloud-form .button[disabled] { opacity: .5; cursor: not-allowed; }

.counter-summary { padding: 8px 10px; margin: 6px 0; background: #fff8e8; border: 1px solid #e8d9b4; border-radius: 8px; }
.counter-summary span { font-size: 9px; font-weight: 700; letter-spacing: .08em; color: #7a6a3d; }
.counter-summary p { margin: 3px 0 0; font-size: 12px; line-height: 1.55; }
.counter-answer-link { margin: 4px 0; font-size: 11px; word-break: break-all; }
.counter-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.counter-actions .button { min-height: 36px; font-size: 12px; }
.counter-answer-form { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #d9c4bb; }
.counter-answer-form span { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #8c3b2c; }
.counter-answer-form input, .counter-answer-form textarea { padding: 8px; font: inherit; font-size: 12px; border: 1px solid #d9c4bb; border-radius: 8px; background: #fff; }
.counter-answer-form textarea { min-height: 48px; resize: vertical; }
.counter-answer-form .button { align-self: flex-end; min-height: 36px; }

@media (max-width: 760px) {
  .cloud-form { grid-template-columns: 1fr; }
  .cloud-status { margin-left: 0; width: 100%; }
}

/* ===== v08 チャッピー連携 ===== */
.chappy-panel { margin: 0 0 16px; padding: 14px 16px; background: var(--paper, #fdfbf6); border: 1px solid #e2ddd3; border-left: 4px solid #b98add; border-radius: 12px; }
.chappy-panel.connected { border-left-color: #7b3fbf; }
.chappy-panel header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chappy-panel h2 { margin: 0; font-size: 16px; }
.chappy-panel .header-actions { margin-top: 10px; }
.datakind-badge.ai-proposal { color: #5a2d8a; background: #f1e8fb; border-color: #d3bcef; }
.intake-card.is-ai-proposal { border-color: #9a6ccd; }

/* ===== v09 正本台帳 自動表示 ===== */
.ledger-sync-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0; padding: 10px 12px; background: #f4f8fc; border: 1px solid #cfe0f0; border-radius: 10px; }
.ledger-sync-bar.has-error { background: #fdf3f0; border-color: #e6c3b8; }
.ledger-sync-info { display: flex; flex-direction: column; gap: 2px; }
.ledger-sync-info strong { font-size: 12px; color: #0f2c55; }
.ledger-sync-info span { font-size: 11px; color: #5d6c80; }
.ledger-sync-bar .button { margin-left: auto; min-height: 38px; }
.ledger-sync-error { width: 100%; margin: 4px 0 0; font-size: 11px; color: #8c3b2c; }
@media (max-width: 620px) {
  .ledger-sync-bar .button { margin-left: 0; width: 100%; }
}

/* ===== v12 Gemini仮受付・LIVE DATA ===== */
.gemini-summary-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; box-shadow: 0 14px 30px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.7); }
.gemini-summary-card h2 { margin: 2px 0; font-size: 18px; color: var(--ink); }
.gemini-summary-card small { font-size: 11px; color: var(--muted); }
.gemini-summary-card .button { margin-left: auto; }

.gemini-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; padding: 10px 14px; background: var(--paper, #fdfbf6); border: 1px solid #e2ddd3; border-radius: 10px; font-size: 12px; color: #24354d; }
.gemini-flow span { padding: 4px 10px; background: #f4f8fc; border: 1px solid #d8e2ee; border-radius: 999px; }
.gemini-flow i { color: #9aa7b8; font-style: normal; }

.review-badge { display: inline-block; padding: 3px 10px; font-size: 11px; font-weight: 700; border-radius: 999px; border: 1px solid transparent; }
.review-pending { color: #8a6114; background: #fbf1df; border-color: #ecd9b6; }
.review-active { color: #1d4f91; background: #e2ebf6; border-color: #c6d4e4; }
.review-approved { color: #0f4d2e; background: #e2f3e8; border-color: #a9d6bb; }
.review-hold { color: #4a5462; background: #eef1f4; border-color: #d3dae2; }
.review-rejected { color: #8c3b2c; background: #fdf3f0; border-color: #e6c3b8; }
.review-recheck { color: #7a4a12; background: #fff3e0; border-color: #f0d3a6; }

.gemini-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--paper, #fdfbf6); border: 1px solid #d3bcef; border-left: 4px solid #7b3fbf; border-radius: 12px; }
.gemini-card.is-test { opacity: .78; border-left-color: #9aa7b8; border-color: #d3dae2; }
.gemini-card h3 { margin: 4px 0 2px; font-size: 17px; }
.gemini-card h3 small { font-size: 11px; color: #6d7a8c; }
.gemini-rank { margin-left: 8px; font-size: 11px; color: #5a2d8a; font-weight: 700; }
.gemini-reason { margin: 0; font-size: 12px; line-height: 1.55; color: #48586e; }
.gemini-evidence, .gemini-note { margin: 0; font-size: 11px; color: #6d7a8c; line-height: 1.5; }
.gemini-promoted { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #e2f3e8; border: 1px solid #a9d6bb; border-radius: 10px; font-size: 12px; }
.gemini-promoted span { font-size: 10px; font-weight: 700; color: #0f4d2e; }

.offline-banner { margin: 0 0 14px; padding: 10px 14px; font-size: 12px; font-weight: 700; color: #8c3b2c; background: #fdf3f0; border: 1px solid #e6c3b8; border-radius: 10px; }

.test-toggle { padding: 8px 14px; font: inherit; font-size: 12px; font-weight: 700; color: #4a5462; background: #eef1f4; border: 1px solid #d3dae2; border-radius: 999px; cursor: pointer; }
.test-toggle.on { color: #7a4a12; background: #fbf1df; border-color: #ecd9b6; }

.v12-scoreboard article.approved strong, .intake-scoreboard article.approved strong { color: #0f4d2e; }
.intake-scoreboard article.pending strong { color: #8a6114; }
.intake-scoreboard article.hold strong { color: #4a5462; }
.intake-scoreboard article.dup strong { color: #8c3b2c; }
.intake-scoreboard article.err strong { color: #8c3b2c; }
.v12-scoreboard, .gemini-scoreboard { grid-template-columns: repeat(4, minmax(0,1fr)); }
.small-strong { font-size: 13px !important; line-height: 1.4; }

.source-indicator b.live { color: #7ce2a0; }
.demo-dot.live { background: #2e8b57; box-shadow: 0 0 8px #2e8b57; }
.sidebar-note.live { border-color: #2e8b57; }

@media (max-width: 1200px) { .v12-scoreboard, .gemini-scoreboard { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) {
  .v12-scoreboard, .gemini-scoreboard { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gemini-summary-card .button { margin-left: 0; width: 100%; }
  .gemini-flow { font-size: 11px; }
}

/* ===== v13 Phase1 AI企業マスコットコレクション ===== */
.selection-bar { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)) 200px; gap: 10px; margin: 0 0 18px; }
.selection-step { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; font: inherit; text-align: left; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; box-shadow: 0 16px 32px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.7); transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.selection-step:hover { transform: translateY(-2px); box-shadow: 0 20px 38px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.7); }
.selection-step.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 18px 34px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.7); }
.selection-step b { display: grid; place-items: center; width: 26px; height: 26px; font-size: 13px; color: #221a06; background: var(--gold); border-radius: 999px; }
.selection-step.active b { background: var(--gold); color: #221a06; box-shadow: 0 0 0 3px var(--gold-soft); }
.ss-label { font-size: 15px; font-weight: 800; color: var(--ink); }
.ss-desc { font-size: 11px; color: var(--muted); }
.ss-counts { font-size: 11px; font-weight: 700; margin-top: 2px; color: var(--ink); }
.ss-sub { font-size: 10px; color: var(--muted); }
.stage-agg-panel { margin: 0 0 18px; }
.stage-agg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 8px; }
.stage-agg-card { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.stage-agg-card b { font-size: 13px; color: var(--ink); }
.stage-agg-num { font-size: 20px; font-weight: 800; color: var(--gold); overflow-wrap: break-word; word-break: break-word; }
.stage-agg-card small { font-size: 10px; color: var(--muted); line-height: 1.5; overflow-wrap: break-word; word-break: break-word; }
@media (max-width: 640px) { .stage-agg-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stage-agg-grid { grid-template-columns: 1fr; } }
.selection-goal { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 12px 14px; background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); border: 1px solid #383c44; border-radius: 12px; color: var(--ink-inverse); box-shadow: 0 16px 32px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08); }
.selection-goal span { font-size: 10px; letter-spacing: .12em; color: var(--gold); font-weight: 700; }
.selection-goal strong { font-size: 16px; }
.selection-goal small { color: var(--muted-inverse); font-size: 10px; }

.mascot-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.mascot-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; box-shadow: 0 16px 32px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.7); transition: transform .12s ease, box-shadow .12s ease; }
.mascot-card:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.7); }
.mascot-card-tags { display: flex; gap: 6px; padding: 10px 12px 0; flex-wrap: wrap; }
.tier-badge { display: inline-block; padding: 2px 10px; font-size: 10px; font-weight: 800; letter-spacing: .06em; border-radius: 999px; }
.tier-badge.provisional { color: #5d6c80; background: #eef1f4; border: 1px dashed #b6c1cd; }
.tier-badge.stage1 { color: #0f4d2e; background: #e2f3e8; border: 1px solid #a9d6bb; }

.mascot-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 150px; margin: 10px 12px; padding: 12px; text-align: center; background: repeating-linear-gradient(45deg, #f4f6f9, #f4f6f9 10px, #eef1f6 10px, #eef1f6 20px); border: 2px dashed #c4cfdc; border-radius: 12px; }
.mp-ticker { font-size: 26px; font-weight: 900; letter-spacing: .08em; color: #9aa7b8; }
.mp-name { font-size: 13px; font-weight: 800; color: #1d4f91; }
.mp-concept { font-size: 11px; color: #48586e; line-height: 1.4; }
.mp-note { font-size: 9px; font-weight: 700; letter-spacing: .1em; color: #b06a2a; }
.mascot-placeholder.large, .mascot-placeholder.inner { min-height: 170px; width: 200px; margin: 0; }

.mascot-card-body { display: flex; flex-direction: column; gap: 6px; padding: 4px 14px 14px; }
.mascot-card-body h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.mascot-meta { margin: 0; font-size: 11px; color: #6d7a8c; }
.mascot-theme { margin: 0; font-size: 11px; color: #48586e; line-height: 1.5; min-height: 2.8em; }
.ability-list { display: flex; flex-direction: column; gap: 3px; }
.ability-row { display: grid; grid-template-columns: 64px 1fr 22px; align-items: center; gap: 8px; font-size: 11px; color: #48586e; }
.ability-unknown { display: block; height: 8px; border-radius: 999px; background: repeating-linear-gradient(90deg, #e7e2d7, #e7e2d7 6px, #f2eee5 6px, #f2eee5 12px); font-size: 0; }
.ability-row b { font-size: 12px; color: #9aa7b8; text-align: right; }
.mascot-total { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; padding-top: 8px; border-top: 1px solid #eee9df; flex-wrap: wrap; }
.mascot-total span { font-size: 10px; font-weight: 700; color: #5d6c80; }
.mascot-total strong { font-size: 20px; }
.mascot-total strong.unknown { color: #9aa7b8; font-size: 15px; }
.mascot-total small { width: 100%; font-size: 9px; color: #b06a2a; }
.mascot-foot { display: flex; justify-content: space-between; font-size: 10px; color: #6d7a8c; }

.mascot-note { margin: 0 0 14px; padding: 10px 14px; font-size: 12px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; }

.stage1-proto-block { margin: 0 0 18px; }
.stage1-proto-note { background: #eaf6ee; border-color: #bfe1c9; color: #0f4d2e; }
.stage1-card { border-color: #a9d6bb; }
.mascot-stage1-illustration { margin: 10px 12px 0; padding: 6px; background: #f4faf6; border: 1px solid #d3ecdc; border-radius: 12px; }
.mascot-stage1-illustration svg { display: block; width: 100%; height: auto; }
.stage1-species { font-size: 11px; font-weight: 600; color: #6d7a8c; margin-left: 4px; }
.stage1-illustration-large { background: #f4faf6; border: 1px solid #d3ecdc; padding: 8px; }
.stage1-illustration-large svg { width: 100%; height: auto; display: block; }
.stage1-evidence-panel { background: #f9fdfa; border: 1px solid #d3ecdc; border-radius: 12px; padding: 10px 16px; margin-bottom: 10px; }
.stage1-evidence-panel h3:first-child { margin-top: 0; }
.stage1-list { }
.stage1-list.stage1-unconfirmed li { color: #b06a2a; }

/* ===== v16 企業キャラクター自動登録・表示（OFFICIAL採用画像） ===== */
.official-character-note { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); }
/* 白枠画像エリアの統一仕様（2026-07-24）: 全社共通で縦横比4:5・object-fit: contain・
   足元基準（center bottom）に揃える。キャラクター本体の見かけの大きさをカード間で統一するため。
   画像ファイル自体は編集しない（CSS表示のみで統一）。 */
.official-illustration { aspect-ratio: 4 / 5; width: 100%; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; background: #f6f6f4; border: 1px solid var(--line); }
.official-illustration img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.mascot-status-split { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; padding-top: 8px; border-top: 1px solid #eee9df; font-size: 10px; color: var(--muted); }
.mascot-status-split strong { color: var(--ink); }
.mascot-status-split strong.ok { color: #0f4d2e; }
.character-status-panel.official { background: #fbf8f0; border: 1px solid var(--gold-soft); border-radius: 12px; padding: 10px 16px; margin-bottom: 10px; }
.character-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0; }
.character-detail-grid div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: #fff; border: 1px solid #ece4cf; border-radius: 8px; }
.character-detail-grid span { font-size: 9px; font-weight: 700; letter-spacing: .06em; color: #8a7b52; }
.character-detail-grid strong { font-size: 12px; color: var(--ink); }
.character-eligible-note { padding: 8px 10px; background: #eaf6ee; border: 1px solid #bfe1c9; border-radius: 8px; font-size: 12px; color: #0f4d2e; }

/* ChatGPT同期状態表示（カード・詳細モーダル共通） */
.sync-status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; padding-top: 6px; border-top: 1px dashed #e3e4e7; font-size: 10px; color: var(--muted); }
.sync-status-line.in-modal { border-top: 0; padding: 8px 10px; background: #f7f8f9; border-radius: 8px; font-size: 12px; }
.sync-label { font-weight: 700; }
.sync-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.sync-status-line.in-modal .sync-chip { font-size: 11px; padding: 2px 10px; }
.sync-chip.PENDING { color: #5a4a12; background: #fdf3d6; border: 1px solid #e8d59a; }
.sync-chip.APPLIED { color: #0f4d2e; background: #e2f3e8; border: 1px solid #a9d6bb; }
.sync-chip.ERROR { color: #7c1f28; background: #fbe4e6; border: 1px solid #eab6bc; }
.sync-chip.CONFIRMATION_REQUIRED { color: #1d3f6e; background: #e2ecf8; border: 1px solid #b3cbe8; }
.sync-chip.DUPLICATE, .sync-chip.off { color: #6a707a; background: #eef1f4; border: 1px dashed #b6c1cd; }
.sync-err { color: #7c1f28; font-weight: 700; }
.home-empty-state { margin: 8px 0 18px; padding: 34px 24px; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 32px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.7); }
.home-empty-state h2 { margin: 0 0 8px; font-size: 20px; color: var(--ink); }
.home-empty-state p { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.home-empty-state .header-actions { justify-content: center; }

.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin: 10px 0; }
.settings-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #48586e; }
.settings-grid input { min-height: 38px; padding: 0 10px; font: inherit; border: 1px solid #cfd8e3; border-radius: 8px; }
.rule-principles { margin: 8px 0; padding-left: 20px; font-size: 12px; line-height: 1.8; color: #48586e; }

@media (max-width: 1200px) {
  .selection-bar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .selection-goal { grid-column: 1 / -1; }
  .mascot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .selection-bar { grid-template-columns: 1fr; }
  .mascot-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}

/* ===== Phase2 採点表示 ===== */
.ability-bar { display: block; height: 8px; border-radius: 999px; background: #e7e2d7; overflow: hidden; }
.ability-bar b { display: block; height: 100%; background: linear-gradient(90deg, #b8952e, #e7c169); border-radius: 999px; }
.ability-score { font-size: 12px; color: #17253a; text-align: right; }
.score-total-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.score-total-line strong { font-size: 26px; color: #0f2c55; }
.score-total-line strong.unknown { font-size: 18px; color: #9aa7b8; }
.score-total-line small { font-size: 11px; color: #6d7a8c; }
.ability-detail-list { display: flex; flex-direction: column; gap: 6px; }
.ability-detail { border: 1px solid #e2ddd3; border-radius: 10px; background: #fff; }
.ability-detail summary { display: grid; grid-template-columns: 80px 1fr 34px; align-items: center; gap: 10px; padding: 8px 12px; font-size: 12px; font-weight: 700; color: #48586e; cursor: pointer; }
.ability-detail .ability-unknown { font-size: 10px; color: #9aa7b8; background: repeating-linear-gradient(90deg, #eef1f4, #eef1f4 6px, #f6f8fa 6px, #f6f8fa 12px); display: flex; align-items: center; justify-content: center; height: 16px; }
.ability-reason { display: flex; flex-direction: column; gap: 6px; padding: 4px 12px 12px; border-top: 1px dashed #e2ddd3; }
.ability-reason div { display: grid; grid-template-columns: 100px 1fr; gap: 8px; font-size: 11px; }
.ability-reason b { color: #5d6c80; }
.ability-reason span { color: #17253a; word-break: break-all; line-height: 1.5; }

/* ===== 第3次選抜 企業判断カード（2026-07-24追加） ===== */
.stage3-toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.stage3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stage3-card { display: flex; flex-direction: column; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: 0 12px 24px rgba(0,0,0,.24); }
.stage3-top h3 { margin: 0; font-size: 15px; line-height: 1.3; }
.stage3-top small { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.stage3-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.stage3-frame { width: 100%; margin: 0 auto; max-width: 260px; }
.stage3-frame.stage3-placeholder { align-items: center; }
.stage3-placeholder-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; text-align: center; }
.stage3-placeholder-inner b { font-size: 13px; color: #48586e; }
.stage3-placeholder-inner span { font-size: 11px; color: #6d7a8c; }
.stage3-placeholder-inner small { font-size: 10px; color: #b06a2a; font-weight: 700; }
.stage3-abilities { display: flex; flex-direction: column; gap: 3px; font-size: 11px; }
.stage3-abilities .ability-row { display: grid; grid-template-columns: 30px 1fr 90px; align-items: center; gap: 6px; }
.stage3-ai-judgments { display: flex; flex-direction: column; gap: 5px; font-size: 11px; padding-top: 6px; border-top: 1px solid #eee9df; }
.stage3-ai-line { display: flex; flex-direction: column; gap: 1px; }
.stage3-ai-line b { color: var(--ink); }
.stage3-ai-line span.unknown { color: #9aa7b8; }
.stage3-ai-line small { color: #6d7a8c; }
.stage3-detail { font-size: 11px; color: #48586e; }
.stage3-detail summary { cursor: pointer; font-weight: 700; }
.stage3-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.stage3-actions button { flex: 1 1 auto; font-size: 11px; padding: 6px 8px; }

@media (max-width: 1240px) { .stage3-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .stage3-grid { grid-template-columns: 1fr; }
  .stage3-card { order: initial; }
  .stage3-card .stage3-desc, .stage3-card .company-desc { order: 5; }
  .stage3-card .stage3-ai-judgments { order: 6; }
  .stage3-card .stage3-detail { order: 7; }
}
