/* 評価者ポータルの見た目。もとは UI2/評価者ポータル_2026.html の <style> を
   tools/dev/extract_ui2_kit.py が切り出した生成物だったが、UI2 に寄せる作業が完了したので
   2026-08-20 にふつうのソースへ戻した（以後はここを直接直す。UI2 との機械照合も撤去済み）。
   管理者ポータルはこのファイルを読まない（common/style.css + admin-ui.css を使う）。 */

/* UI2 kit — 1b案の構造を忠実に再現、配色は明るい青系（#4a86d8 ヘッダー / #2f6fbf アクセント）。 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Segoe UI", Meiryo, sans-serif;
  color: #1b2530;
  background: #fff;
  line-height: 1.55;
  font-size: 14px;
}
button, input, select, textarea { font-family: inherit; }
a { color: #2f6fbf; }
a:hover { color: #1f4f8c; }

/* ---- シェル: 上部バー＋左サイドバー＋メイン ---- */
.shell { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.topbar {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 20px;
  background: #4a86d8; color: #fff;
  position: sticky; top: 0; z-index: 50;
}
.topbar .brand { font-size: 13px; font-weight: 700; white-space: nowrap; }
.topbar .brand .role { color: #d8e6f8; font-weight: 500; }
.topbar .sep { width: 1px; height: 16px; background: rgba(255,255,255,.25); }
.topbar .period { font-size: 13px; font-weight: 700; white-space: nowrap; }
.phase-pills { display: flex; align-items: center; gap: 5px; }
.phase-pill {
  padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap;
  background: rgba(255,255,255,.2); color: #e8f0fc;
}
.phase-pill.current { background: #fff; color: #2f5f9e; }
.topbar .spacer { flex: 1; }
.topbar .auto-advance { font-size: 11.5px; color: #e8f0fc; white-space: nowrap; }
.topbar .advance-btn {
  padding: 6px 12px; border: none; border-radius: 7px; background: #fff; color: #2f5f9e;
  font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.topbar .advance-btn:hover { background: #f0f6ff; }
.topbar .user { font-size: 11.5px; color: #e8f0fc; white-space: nowrap; }

.body-row { display: flex; align-items: stretch; flex: 1; min-height: 0; }
.sidebar {
  width: 212px; flex: 0 0 212px;
  background: #f7f9fb; border-right: 1px solid #e7ebf0;
  padding: 16px 10px;
  display: flex; flex-direction: column; gap: 18px;
}
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-group-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: .09em; color: #8a95a3; padding: 0 10px 5px;
}
.side-btn {
  text-align: left; border: none; cursor: pointer;
  padding: 8px 10px; border-radius: 7px; font-size: 13px; font-weight: 600; white-space: nowrap;
  color: #41505f; background: transparent;
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
}
.side-btn:hover { background: #e9f1fa; color: #2f5f9e; }
.side-btn.active { background: #dcebfa; color: #1e5cb8; }
.side-badge { font-size: 11px; font-weight: 700; color: #8a95a3; }
.side-badge.alert { color: #9c2430; }
.side-badge.info { color: #1e5cb8; }

.main { flex: 1; min-width: 0; padding: 22px 26px 60px; display: flex; flex-direction: column; gap: 18px; }

/* ---- ページ見出し ---- */
.page-head { display: flex; align-items: flex-start; gap: 14px; }
.page-head h1 { margin: 0 0 3px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.page-head .sub { margin: 0; font-size: 12.5px; color: #5f6b7a; }
.page-head .spacer { flex: 1; }

/* ---- パネル（1b の薄枠カード） ---- */
.panel { border: 1px solid #e2e6ec; border-radius: 10px; padding: 15px 17px; background: #fff; }
.panel-title { font-size: 12px; font-weight: 800; color: #5f6b7a; letter-spacing: .05em; margin-bottom: 12px; }
.panel.accent { border-color: #d9e5f5; background: #f5f9ff; }
.panel.accent .panel-title { color: #2f5f9e; letter-spacing: .04em; }

/* ---- KPI タイル（1px 間仕切りグリッド） ---- */
.kpi-grid {
  display: grid; gap: 1px; background: #e2e6ec;
  border: 1px solid #e2e6ec; border-radius: 10px; overflow: hidden;
}
.kpi-cell { background: #fff; padding: 14px 16px; }
.kpi-label { font-size: 11.5px; color: #5f6b7a; margin-bottom: 4px; }
.kpi-num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #1b2530; }
.kpi-num .unit { font-size: 13px; font-weight: 600; color: #8a95a3; }
.kpi-num.danger { color: #9c2430; }

/* ---- 操作リスト（いま必要な操作） ---- */
.action-list { display: flex; flex-direction: column; gap: 8px; }
.action-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #e2e6ec; border-radius: 8px; padding: 12px 14px;
}
.action-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; background: #2f6fbf; }
.action-dot.danger { background: #9c2430; }
.action-dot.warn { background: #b7791f; }
.action-item .a-body { flex: 1; }
.action-item .a-title { font-size: 13.5px; font-weight: 700; }
.action-item .a-sub { font-size: 11.5px; color: #5f6b7a; }

/* ---- 進捗バー ---- */
.progress-row { display: flex; align-items: center; gap: 12px; }
.progress-row .p-name { width: 64px; flex: 0 0 64px; font-size: 13px; font-weight: 600; }
.progress-row .p-track { flex: 1; height: 10px; border-radius: 999px; background: #eef1f5; overflow: hidden; display: block; }
.progress-row .p-fill { display: block; height: 10px; border-radius: 999px; background: #2f6fbf; }
.progress-row .p-pct { width: 46px; text-align: right; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.progress-row .p-sub { width: 112px; text-align: right; font-size: 12px; color: #5f6b7a; font-variant-numeric: tabular-nums; }

/* ---- テーブル（1b とおり: 横線のみ・ヘッダー小さくグレー太字） ---- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left; font-size: 11.5px; font-weight: 800; color: #5f6b7a;
  letter-spacing: .04em; border-bottom: 1px solid #dde3ea; padding: 9px 10px;
}
.tbl th.center { text-align: center; }
.tbl th.right { text-align: right; }
.tbl td { font-size: 13.5px; padding: 10px; border-bottom: 1px solid #eef1f5; vertical-align: top; }
.tbl td.center { text-align: center; }
.tbl td.right { text-align: right; }
.tbl tr:hover td { background: #f7fafd; }
.tbl thead tr.group-head th { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: #8a95a3; }
.tbl .num { font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; }
.tbl.min-w { min-width: 940px; }

/* ---- ピル・バッジ（1b の色値） ---- */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #f0f2f5; color: #5f6b7a; white-space: nowrap; }
.pill.done { background: #e6f4ec; color: #1f7a52; }
.pill.rejected { background: #fbeaec; color: #9c2430; }
.pill.info { background: #dcebfb; color: #1e5cb8; }
.pill.warn { background: #fdf0dc; color: #8a5a11; }

/* ---- ボタン（1b どおり） ---- */
.btn {
  border: 1px solid #d5dbe3; background: #fff; color: #41505f;
  padding: 6px 13px; border-radius: 7px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #f5f8fd; border-color: #2f6fbf; }
.btn.primary { background: #2f6fbf; border-color: #2f6fbf; color: #fff; }
.btn.primary:hover { background: #255a9c; border-color: #255a9c; }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.big { padding: 8px 16px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---- セグメントタブ（1b どおり: #eceff3 背景・枠付き） ---- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: #eceff3; border: 1px solid #dde1e7; border-radius: 9px; align-self: flex-start; }
.seg button { border: none; background: transparent; padding: 6px 14px; border-radius: 7px; font-size: 13px; font-weight: 600; color: #5a6573; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: #2f6fbf; }
.seg button.active { background: #fff; color: #1f2d3d; box-shadow: 0 1px 2px rgba(0,0,0,.12); }

/* ---- フォーム（1b どおり） ---- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11.5px; font-weight: 700; color: #5f6b7a; margin-bottom: 4px; }
.field .req { color: #d03045; }
input[type="text"], input[type="number"], textarea, select {
  width: 100%; padding: 8px 10px; border: 1px solid #d5dbe3; border-radius: 7px; font-size: 13px; background: #fff;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: #2f6fbf; box-shadow: 0 0 0 3px rgba(47,111,191,.15); }
textarea { resize: vertical; line-height: 1.8; }

/* ---- フィルタバー（1b どおり: #f7f9fb 背景・枠付き） ---- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px 12px; background: #f7f9fb; border: 1px solid #e7ebf0; border-radius: 9px;
}
.filter-bar select, .filter-bar input { width: auto; }
.filter-bar select { padding: 7px 10px; font-size: 13px; border: 1px solid #d5dbe3; border-radius: 7px; background: #fff; }
.filter-bar input { padding: 7px 10px; font-size: 13px; border: 1px solid #d5dbe3; border-radius: 7px; background: #fff; }

/* ---- 通知バナー・注意書き（1b どおり） ---- */
.notice {
  background: #fff; border: 1px solid #e2e6ec; border-left: 3px solid #b7791f;
  border-radius: 7px; padding: 9px 13px; font-size: 12.5px; color: #5f6b7a; font-weight: 700;
}
.notice strong { color: #8a5a11; }
.notice.info { border-color: #e2e6ec; border-left-color: #2f6fbf; color: #5f6b7a; }
.notice.danger { border-color: #e0b4b4; background: #fdf6f6; border-left-color: #9c2430; }
.notice.danger strong { color: #9c2430; }
.muted { color: #5f6b7a; font-size: 12.5px; }
.muted-sm { color: #8a95a3; font-size: 12px; }

/* ---- 設定: 3 列カード（1b どおり） ---- */
.org-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.org-card { border: 1px solid #e2e6ec; border-radius: 10px; overflow: hidden; }
.org-card .oc-head { padding: 9px 13px; background: #f7f9fb; border-bottom: 1px solid #e7ebf0; font-size: 12px; font-weight: 800; color: #5f6b7a; letter-spacing: .05em; }
.org-card { border: 1px solid #f0f0f5; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 0 #edeef2, 0 4px 16px rgba(0,0,0,.06); }
.org-card .oc-head { padding: 11px 15px; background: linear-gradient(135deg, var(--ui2-purple-soft), #f5f3ff); border-bottom: 1px solid #e9ecf0; font-size: 13px; font-weight: 800; color: var(--ui2-purple); letter-spacing: .05em; }
.org-card .oc-row { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #f5f6fa; transition: all .15s var(--ui2-ease); }
.org-card .oc-row:last-child { border-bottom: none; }
.org-card .oc-row:hover { background: #fafafe; }
.org-card .oc-name { flex: 1; font-size: 13px; }
.org-card .oc-used { font-size: 11.5px; color: #8a95a3; white-space: nowrap; }

/* ---- 通知リスト（1b どおり: 枠内・タイムスタンプ列） ---- */
.notif-box { border: 1px solid #e2e6ec; border-radius: 10px; overflow: hidden; max-width: 60em; }
.notif-row { display: flex; gap: 14px; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid #eef1f5; }
.notif-row:last-child { border-bottom: none; }
.notif-time { width: 104px; flex: 0 0 104px; font-size: 11.5px; color: #8a95a3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.notif-text { font-size: 13.5px; line-height: 1.7; color: #41505f; }

/* ---- トースト ---- */
.toast-box {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  background: #1b2530; color: #fff; border-radius: 8px; padding: 10px 16px;
  font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

/* ---- ヘルプパネル（1b どおり） ---- */
.help-panel { background: #f7f9fb; border: 1px solid #e2e6ec; border-radius: 9px; padding: 14px 16px; }
.help-panel .hp-lead { margin: 0 0 6px; font-size: 13.5px; font-weight: 700; color: #1b2530; max-width: 34em; }
.help-panel ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.85; color: #41505f; max-width: 36em; }

/* ---- ウィザードステップ（1b どおり） ---- */
.wiz-steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wiz-step { padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.wiz-step.active { background: #4a86d8; color: #fff; }
.wiz-step.inactive { background: #eef1f5; color: #8a95a3; }

/* ---- ラジオカード（1b どおり） ---- */
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #e2e6ec; background: #fff; border-radius: 9px; cursor: pointer; }
.radio-card.checked { border-color: #2f6fbf; background: #f5f9ff; }
.radio-card input { margin-top: 3px; }
.radio-card .rc-title { display: block; font-size: 13.5px; font-weight: 700; }
.radio-card .rc-sub { display: block; font-size: 12.5px; color: #5f6b7a; line-height: 1.7; }

/* ---- 遅延者リスト（1b どおり: 左赤線） ---- */
.late-row { display: flex; gap: 12px; align-items: baseline; border-left: 3px solid #e0b4b4; padding: 2px 0 2px 11px; }
.late-row .lr-dept { width: 88px; flex: 0 0 88px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.late-row .lr-names { font-size: 12.5px; line-height: 1.7; color: #41505f; }

/* ---- マトリクス予算超過警告（1b どおり） ---- */
.budget-alert { border: 1px solid #e0b4b4; background: #fdf6f6; border-radius: 10px; padding: 14px 16px; }
.budget-alert .ba-title { font-size: 13px; font-weight: 800; color: #9c2430; margin-bottom: 6px; }
.budget-alert p { margin: 0 0 10px; font-size: 13px; line-height: 1.8; color: #41505f; max-width: 36em; }

/* ---- 汎用 ---- */
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.grid-2-even { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-14 { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.mono { font-variant-numeric: tabular-nums; }
.view { display: flex; flex-direction: column; gap: 18px; }
pre.wrap { white-space: pre-wrap; font-family: inherit; font-size: 13px; line-height: 1.8; }
.list-section-head { font-size: 12px; font-weight: 800; letter-spacing: .05em; color: #5f6b7a; border-left: 3px solid #4a86d8; padding-left: 8px; margin: 4px 0; }
/* 行ベース入力リスト（追加・削除可） */
.row-list { display: flex; flex-direction: column; gap: 8px; }
.row-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid #e3e8ef; border-radius: 8px; background: #fff; }
.row-fields { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row-field { display: flex; flex-direction: column; }
.row-field-full { grid-column: 1 / -1; }
/* 項目名とその詳細（内容）は**上下**に並べる（2026-08-20 利用者指示）。左右に置くと、行の高さが
   背の高い詳細（textarea）で決まるため、項目名の下に大きな余白ができていた。1 列に伸ばせば
   余白は生まれない（業務量割合・自己評価のような短い欄は 2 列のままにする）。 */
.row-fields .row-field-title,
.row-fields .row-field-detail,
.row-fields .row-field-content,
.row-fields .row-field:has(textarea) { grid-column: 1 / -1; }
.row-field input, .row-field textarea { width: 100%; }
@media (max-width: 720px) { .row-fields { grid-template-columns: 1fr; } }

/* 事業貢献（青系）・組織貢献（緑系）の色分け */
.panel-biz { border-top: 3px solid #2f6fbf; }
.panel-biz .panel-title.title-biz { color: #1f4f8c; border-left: 4px solid #2f6fbf; padding-left: 8px; }
.panel-org { border-top: 3px solid #1a8c5a; }
.panel-org .panel-title.title-org { color: #14633c; border-left: 4px solid #1a8c5a; padding-left: 8px; }
.section-title-biz { font-size: 13px; font-weight: 700; margin: 10px 0 4px; color: #1f4f8c; border-left: 4px solid #2f6fbf; padding-left: 8px; }
.section-title-org { font-size: 13px; font-weight: 700; margin: 14px 0 4px; color: #14633c; border-left: 4px solid #1a8c5a; padding-left: 8px; }
.section-biz .row-item { border-left: 3px solid #2f6fbf; background: #f5f9ff; }
.section-org .row-item { border-left: 3px solid #1a8c5a; background: #f3fbf6; }
.section-biz + .btn.sm { color: #1f4f8c; }
.section-org + .btn.sm { color: #14633c; }

/* 貢献評価の合算結果サマリカード */
.contrib-summary { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; margin: 8px 0 14px; padding: 14px; border-radius: 10px; background: #f4f7fb; border: 1px solid #d8e2ef; }
.contrib-summary.ok { background: #eafaf2; border-color: #b7e6cd; }
.contrib-summary.ng { background: #fdecea; border-color: #f5c6cb; }
.cs-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 4px; border-right: 1px solid #e3e8ef; }
.cs-cell:last-child { border-right: none; }
.cs-label { font-size: 11.5px; font-weight: 700; color: #5f6b7a; letter-spacing: .04em; margin-bottom: 4px; }
.cs-value { font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; color: #1b2530; }
.cs-unit { font-size: 12px; color: #8a95a3; margin-top: 2px; }
.cs-score .cs-value { color: #2f6fbf; }
.cs-share .cs-value { color: #1b2530; }
.contrib-summary.ok .cs-hint .cs-value { color: #1a8c5a; }
.contrib-summary.ng .cs-hint .cs-value { color: #c0392b; font-size: 18px; }
@media (max-width: 600px) { .contrib-summary { grid-template-columns: 1fr; } .cs-cell { border-right: none; border-bottom: 1px solid #e3e8ef; } .cs-cell:last-child { border-bottom: none; } }

/* 委員会決定の最終評価点カード（目立つ表示） */
.committee-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 20px; border-radius: 12px; background: linear-gradient(135deg, #2f6fbf 0%, #1f4f8c 100%); color: #fff; box-shadow: 0 3px 12px rgba(47,111,191,.25); }
.committee-card .cc-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: #d8e6f8; margin-bottom: 8px; }
.committee-card .cc-value { font-size: 48px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.committee-card .cc-sub { font-size: 12px; color: #d8e6f8; margin-top: 6px; }
.max-w-52em { max-width: 52em; }
.max-w-44em { max-width: 44em; }
.max-w-34em { max-width: 34em; }

@media (max-width: 900px) {
  .body-row { flex-direction: column; }
  .sidebar { width: 100%; flex: none; border-right: none; border-bottom: 1px solid #e7ebf0; }
  .org-grid, .grid-2, .grid-2-even { grid-template-columns: 1fr; }
}

/* ---- 現行非管理者ポータルのポップUI（UI改修/ref/hr_portal_ui_ref.html + Day03 + Day05 統合） ---- */
:root {
  --ui2-purple: #6c5ce7;
  --ui2-purple-dark: #5b4cdb;
  --ui2-purple-soft: #eeeaff;
  --ui2-purple-shadow: #5b4cdb;
  --ui2-green: #00b894;
  --ui2-green-dark: #00a381;
  --ui2-green-soft: #e0f8f0;
  --ui2-green-shadow: #00a381;
  --ui2-orange: #e17055;
  --ui2-orange-soft: #fff0e0;
  --ui2-orange-shadow: #c95e47;
  --ui2-red: #d63031;
  --ui2-red-soft: #ffe0e0;
  --ui2-red-shadow: #c02828;
  --ui2-pink: #fd79a8;
  --ui2-pink-soft: #fce4ec;
  --ui2-ease: cubic-bezier(.34,1.56,.64,1);
}

html, body { min-height: 100%; }
body {
  color: #2d3436;
  background:
    radial-gradient(circle at 10% 20%, #eeeaff 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, #e0f4ff 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, #fff4cc 0%, transparent 50%),
    #f5f6fa;
  background-attachment: fixed;
  line-height: 1.7;
  font-size: 15px;
}
.shell { background: transparent; height: 100vh; overflow: hidden; }
.body-row { height: calc(100vh - 64px); overflow: hidden; }

.topbar {
  min-height: 64px;
  height: 64px;
  padding: 0 32px;
  gap: 16px;
  background: #fff;
  border-bottom: 1px solid #e9ecf0;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  color: #2d3436;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ui2-purple);
  font-size: 18px;
  font-weight: 800;
}
.topbar .brand::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ui2-purple), #a29bfe);
  color: #fff;
  content: '人';
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(108,92,231,.3);
}
.topbar .brand .role {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding: 4px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ui2-purple), #a29bfe);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(108,92,231,.3);
  letter-spacing: .04em;
}
.topbar .sep { height: 24px; background: #e9ecf0; }
.topbar .period { color: #2d3436; font-size: 14px; font-weight: 700; }
.phase-pills { gap: 6px; }
.phase-pill {
  padding: 5px 14px;
  border-radius: 20px;
  background: #f0f0f5;
  color: #b2bec3;
  font-size: 12px;
  font-weight: 600;
  transition: all .2s var(--ui2-ease);
}
.phase-pill:hover { transform: translateY(-1px); }
.phase-pill.current {
  background: linear-gradient(135deg, var(--ui2-purple), #a29bfe);
  color: #fff;
  box-shadow: 0 2px 8px rgba(108,92,231,.3);
}
.topbar .auto-advance { color: #636e72; }
.topbar .advance-btn {
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ui2-purple), #a29bfe);
  color: #fff;
  border: none;
  box-shadow: 0 3px 0 var(--ui2-purple-shadow);
  transition: all .15s var(--ui2-ease);
}
.topbar .advance-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ui2-purple-shadow); }
.topbar .advance-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ui2-purple-shadow); }
.topbar .user { color: #636e72; font-size: 13px; }

.sidebar {
  width: 248px;
  flex-basis: 248px;
  height: 100%;
  overflow-y: auto;
  padding: 28px 16px;
  gap: 32px;
  background: #fff;
  border-right: 1px solid #e9ecf0;
}
.side-group { gap: 4px; }
.side-group-label {
  padding: 0 12px 8px;
  color: #b2bec3;
  font-size: 11px;
  letter-spacing: .08em;
}
.side-btn {
  justify-content: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 12px;
  color: #636e72;
  font-size: 14px;
  font-weight: 600;
  transition: all .18s var(--ui2-ease);
}
.side-btn[data-icon]::before {
  width: 22px;
  color: currentColor;
  content: attr(data-icon);
  font-size: 16px;
  text-align: center;
}
.side-btn:hover { background: #f5f6fa; color: var(--ui2-purple); transform: translateX(3px); }
.side-btn.active {
  background: linear-gradient(135deg, var(--ui2-purple), #a29bfe);
  color: #fff;
  box-shadow: 0 3px 10px rgba(108,92,231,.3);
}
.side-badge {
  margin-left: auto;
  color: #b2bec3;
  min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: #ffeaa7; color: #d63031;
}
.side-btn.active .side-badge { background: rgba(255,255,255,.25); color: #fff; }

.main {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  padding: 32px 40px 80px;
  gap: 24px;
  background: transparent;
}
.page-head h1 { color: #2d3436; font-size: 28px; letter-spacing: -.02em; }
.page-head .sub { color: #636e72; font-size: 14px; }

/* ---- パネル（Day03風: 丸角22px・3Dシャドウ・ホバー変形） ---- */
.panel {
  padding: 24px;
  border: 1px solid #f0f0f5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 2px 0 #edeef2, 0 4px 16px rgba(0,0,0,.06);
  transition: all .18s var(--ui2-ease);
}
.panel:hover {
  box-shadow: 0 4px 0 #e4e6ec, 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.panel-title {
  color: #636e72;
  font-size: 14px;
  letter-spacing: .03em;
  display: flex; align-items: center; gap: 8px;
}
.panel-title::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ui2-purple);
  flex: 0 0 6px;
}
.panel.accent {
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--ui2-purple) 0%, #a29bfe 100%);
  color: #fff;
  box-shadow: 0 4px 0 var(--ui2-purple-shadow), 0 8px 28px rgba(108,92,231,.3);
}
.panel.accent:hover {
  box-shadow: 0 6px 0 var(--ui2-purple-shadow), 0 12px 36px rgba(108,92,231,.35);
  transform: translateY(-3px);
}
.panel.accent .panel-title { color: rgba(255,255,255,.9); }
.panel.accent .panel-title::before { background: rgba(255,255,255,.6); }
/* 2026-08-21 実機（利用者「今できること全然見えない」）: accent の面は紫地・白文字なので、
   薄い灰色の補助文（.muted = #5f6b7a / .muted-sm = #8a95a3）をそのまま置くと地の色に沈む。
   地の色を暗くする面では、その中に置ける文字クラス全部の明るさを一緒に決める。 */
.panel.accent .muted,
.panel.accent .muted-sm,
.panel.accent .notice {
  /* 白文字にするだけでは足りない（実測: 地の薄い側 #a29bfe に白 88% で 2.21:1・AA は 4.5:1）。
     補助文は**自前の明るい面**に載せて濃い文字で書く（実効 9:1 前後）。 */
  color: #3d4149;
  background: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.7;
}

/* ---- KPI タイル（Day03風: ホバーで浮き上がり・カラーアイコン） ---- */
.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  overflow: visible;
  border: 0;
  background: transparent;
}
.kpi-cell {
  --ui2-kpi-accent: var(--ui2-purple);
  --ui2-kpi-soft: var(--ui2-purple-soft);
  --ui2-kpi-shadow: var(--ui2-purple-shadow);
  min-height: 172px;
  padding: 24px;
  border: 1px solid #f0f0f5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 2px 0 #edeef2, 0 4px 16px rgba(0,0,0,.06);
  transition: all .18s var(--ui2-ease);
}
.kpi-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 0 #e4e6ec, 0 12px 28px rgba(0,0,0,.1);
  border-color: var(--ui2-kpi-accent);
}
.kpi-cell:nth-child(2) { --ui2-kpi-accent: var(--ui2-green); --ui2-kpi-soft: var(--ui2-green-soft); --ui2-kpi-shadow: var(--ui2-green-shadow); }
.kpi-cell:nth-child(3) { --ui2-kpi-accent: var(--ui2-orange); --ui2-kpi-soft: var(--ui2-orange-soft); --ui2-kpi-shadow: var(--ui2-orange-shadow); }
.kpi-cell:nth-child(4) { --ui2-kpi-accent: var(--ui2-red); --ui2-kpi-soft: var(--ui2-red-soft); --ui2-kpi-shadow: var(--ui2-red-shadow); }
.kpi-cell::before {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: var(--ui2-kpi-soft);
  color: var(--ui2-kpi-accent);
  content: '✦';
  font-size: 24px;
  transition: transform .2s var(--ui2-ease);
}
.kpi-cell:hover::before { transform: scale(1.15) rotate(-5deg); }
.kpi-cell:nth-child(1)::before { content: '👥'; }
.kpi-cell:nth-child(2)::before { content: '✓'; }
.kpi-cell:nth-child(3)::before { content: '🏁'; }
.kpi-cell:nth-child(4)::before { content: '⏰'; }
.kpi-label { color: #636e72; font-size: 13px; font-weight: 600; }
.kpi-num { color: var(--ui2-kpi-accent); font-size: 36px; font-weight: 800; line-height: 1.2; }
.kpi-num.danger { color: var(--ui2-red); }
.kpi-num .unit { color: #b2bec3; font-size: 15px; }

/* ---- アクションリスト（グラデーションカード内・Day03風アイコン円） ---- */
.panel.accent .action-list { gap: 12px; }
.panel.accent .action-item {
  min-height: 76px;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  color: #fff;
  transition: all .18s var(--ui2-ease);
}
.panel.accent .action-item:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.panel.accent .action-dot {
  background: rgba(255,255,255,.7);
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: rgba(255,255,255,.2);
}
.panel.accent .a-title { font-size: 15px; }
.panel.accent .a-sub { color: rgba(255,255,255,.85); font-size: 13px; }
.panel.accent .btn.primary,
.panel.accent .btn.green {
  border: 0; background: #fff; color: var(--ui2-purple);
  box-shadow: 0 3px 0 rgba(0,0,0,.15);
  transition: all .15s var(--ui2-ease);
}
.panel.accent .btn.primary:hover,
.panel.accent .btn.green:hover { transform: scale(1.05); box-shadow: 0 4px 0 rgba(0,0,0,.15); }

/* ---- ピル・バッジ（Day03風グラデーション） ---- */
.pill {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  transition: transform .15s var(--ui2-ease);
}
.pill:hover { transform: translateY(-1px); }
.pill.done { background: linear-gradient(135deg, #55efc4, var(--ui2-green)); color: #fff; }
.pill.rejected { background: linear-gradient(135deg, #fab1a0, var(--ui2-red)); color: #fff; }
.pill.info { background: linear-gradient(135deg, #a29bfe, var(--ui2-purple)); color: #fff; }
.pill.warn { background: linear-gradient(135deg, #ffeaa7, #fdcb6e); color: #8a6d12; }
.pill:not(.done):not(.rejected):not(.info):not(.warn) { background: linear-gradient(135deg, #ffeaa7, #fdcb6e); color: #8a6d12; }

/* AI レビューの点数（2026-08-28 利用者指示）。一覧では**数字だけ**を出すので、
   「点はあるが本人はこのままでは提出できない」（80 点未満・採点後に目標が変更）だけ
   色を変えて気づけるようにする。どのセルに付けるかの判定は Portal.goalReviewCellClass。 */
td.gr-attn { color: #8a5a11; font-weight: 700; }

/* ---- ボタン（Day03風3Dシャドウ・ホバー変形） ---- */
.btn {
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid #e9ecf0;
  border-radius: 12px;
  background: #fff;
  color: #636e72;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 0 #e4e6ec;
  transition: all .15s var(--ui2-ease);
}
.btn:hover {
  border-color: var(--ui2-purple);
  color: var(--ui2-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #d4d6dc;
}
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #e4e6ec; }
.btn.primary {
  border: 0;
  background: linear-gradient(135deg, var(--ui2-purple), #a29bfe);
  color: #fff;
  box-shadow: 0 3px 0 var(--ui2-purple-shadow);
}
.btn.primary:hover {
  background: linear-gradient(135deg, var(--ui2-purple-dark), #8b7ff0);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--ui2-purple-shadow);
}
.btn.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ui2-purple-shadow); }
.btn.danger {
  border: 0;
  background: linear-gradient(135deg, #fab1a0, var(--ui2-red));
  color: #fff;
  box-shadow: 0 3px 0 var(--ui2-red-shadow), 0 2px 8px rgba(214,48,49,.2);
  transition: all .18s var(--ui2-ease) !important;
}
.btn.danger:hover {
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 0 var(--ui2-red-shadow), 0 8px 24px rgba(214,48,49,.4);
  filter: brightness(1.12);
}
.btn.danger:active { transform: translateY(1px) scale(.98); box-shadow: 0 1px 0 var(--ui2-red-shadow); }
/* 小さい削除ボタン（行リスト・改定テーブル等）も統一的に hover 強調 */
.btn.sm.danger {
  min-height: 30px;
  border: 0 !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #fab1a0, var(--ui2-red)) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 2px 0 var(--ui2-red-shadow), 0 2px 6px rgba(214,48,49,.2) !important;
  transition: all .18s var(--ui2-ease) !important;
}
.btn.sm.danger:hover {
  border-color: transparent !important;
  color: #fff !important;
  transform: translateY(-2px) scale(1.12) !important;
  box-shadow: 0 5px 0 var(--ui2-red-shadow), 0 6px 20px rgba(214,48,49,.4) !important;
  filter: brightness(1.15);
}
.btn.sm.danger:active {
  transform: translateY(1px) scale(.96) !important;
  box-shadow: 0 1px 0 var(--ui2-red-shadow) !important;
}
.btn.green {
  border: 0;
  background: linear-gradient(135deg, #55efc4, var(--ui2-green));
  color: #fff;
  box-shadow: 0 3px 0 var(--ui2-green-shadow);
}
.btn.green:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--ui2-green-shadow);
}

/* ---- テーブル（丸角ラップ・ホバー背景） ---- */
.tbl-wrap { border-radius: 22px; overflow-x: auto; background: #fff; box-shadow: 0 2px 0 #edeef2, 0 4px 16px rgba(0,0,0,.06); }
.tbl { font-size: 14px; }
.tbl th { padding: 14px; color: #636e72; border-bottom: 2px solid #f0f0f5; white-space: nowrap; }
.tbl td { padding: 14px; border-bottom: 1px solid #f5f6fa; white-space: nowrap; }
.tbl td.wrap { white-space: normal; word-break: break-word; }
.tbl tr:hover td { background: #fafafe; }
.tbl tr { transition: background .15s; }

/* ---- 事業・組織の色分け（グラデーション境界線） ---- */
.panel-biz { border-top: 0; border-left: 4px solid var(--ui2-purple); background: #fbfaff; }
.panel-org { border-top: 0; border-left: 4px solid var(--ui2-green); background: #f7fffb; }
.panel-biz .panel-title.title-biz { color: var(--ui2-purple); border-left: 0; padding-left: 0; }
.panel-biz .panel-title.title-biz::before { background: var(--ui2-purple); }
.panel-org .panel-title.title-org { color: var(--ui2-green); border-left: 0; padding-left: 0; }
.panel-org .panel-title.title-org::before { background: var(--ui2-green); }
.section-title-biz { color: var(--ui2-purple); border-left: 4px solid var(--ui2-purple); }
.section-title-org { color: var(--ui2-green); border-left: 4px solid var(--ui2-green); }
.section-biz .row-item { border-left: 4px solid var(--ui2-purple); background: #fbfaff; }
.section-org .row-item { border-left: 4px solid var(--ui2-green); background: #f7fffb; }

/* ---- 行アイテム（Day03風カード・ホバー変形） ---- */
.row-item {
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid #f0f0f5;
  border-radius: 18px;
  box-shadow: 0 2px 0 #edeef2, 0 3px 12px rgba(0,0,0,.05);
  transition: all .18s var(--ui2-ease);
}
.row-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #e4e6ec, 0 8px 20px rgba(0,0,0,.08);
  border-color: var(--ui2-purple);
}
.row-fields { gap: 14px 16px; }
.row-field label { margin-bottom: 6px; color: #636e72; font-size: 12px; font-weight: 700; }
.row-field textarea,
.row-field textarea[rows] {
  min-height: 96px !important;
  height: auto;
  overflow-y: hidden;
  resize: vertical;
  white-space: pre-wrap;
  line-height: 1.7;
}
.contrib-summary { border-radius: 18px; }

/* ---- フォーム入力（Day03風: 丸角・フォーカスグロー） ---- */
.main input[type="text"],
.main input[type="number"],
.main textarea,
.main select {
  min-height: 42px !important;
  padding: 10px 14px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 12px !important;
  background: #f7fafc !important;
  color: #2d3436 !important;
  font-size: 14px !important;
  transition: all .15s !important;
}
.main input:focus,
.main textarea:focus,
.main select:focus {
  border-color: var(--ui2-purple) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(108,92,231,.15) !important;
  outline: 0;
}

/* ---- 通知・注意書き（丸角） ---- */
.notice,
.notice-banner,
.help-panel,
.budget-alert { border-radius: 14px; }
.notif-box { max-width: 100%; border: 0; border-radius: 22px; background: #fff; box-shadow: 0 2px 0 #edeef2, 0 4px 16px rgba(0,0,0,.06); }
.notif-row { padding: 14px 20px; border-bottom: 1px solid #f5f6fa; transition: background .15s; }
.notif-row:hover { background: #fafafe; }
.notif-row::before { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--ui2-purple); content: ''; }

/* ---- セグメントタブ（Day05風グラデーション active） ---- */
.seg { border-radius: 12px; }
.seg button { border-radius: 10px; transition: all .18s var(--ui2-ease); }
.seg button:hover { color: var(--ui2-purple); transform: translateY(-1px); }
.seg button.active {
  background: linear-gradient(135deg, var(--ui2-purple), #a29bfe);
  color: #fff;
  box-shadow: 0 2px 8px rgba(108,92,231,.25);
}

/* ---- 委員会決定カード（よりポップに） ---- */
.committee-card {
  border-radius: 22px;
  background: linear-gradient(135deg, var(--ui2-purple) 0%, #a29bfe 50%, var(--ui2-pink) 100%);
  box-shadow: 0 4px 0 var(--ui2-purple-shadow), 0 8px 28px rgba(108,92,231,.35);
  transition: all .2s var(--ui2-ease);
}
.committee-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 6px 0 var(--ui2-purple-shadow), 0 12px 36px rgba(108,92,231,.4);
}

/* ---- トースト（Day03風ポップ） ---- */
.toast-box {
  border-radius: 28px;
  background: linear-gradient(135deg, var(--ui2-purple), #a29bfe);
  box-shadow: 0 4px 16px rgba(108,92,231,.4);
}

/* ---- ラジオカード（ホバー変形） ---- */
.radio-card { border-radius: 14px; transition: all .18s var(--ui2-ease); }
.radio-card:hover { transform: translateY(-1px); box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.radio-card.checked { border-color: var(--ui2-purple); background: #f5f3ff; box-shadow: 0 0 0 3px rgba(108,92,231,.12); }

/* ---- リストセクション見出し（グラデーション線） ---- */
.list-section-head { border-left: 4px solid var(--ui2-purple); border-image: linear-gradient(180deg, var(--ui2-purple), #a29bfe) 1; }

@media (max-width: 1200px) { .main { padding-right: 28px; padding-left: 28px; } }
@media (max-width: 900px) {
  .shell { height: auto; overflow: visible; }
  .body-row { height: auto; overflow: visible; flex-direction: column; }
  .topbar { height: auto; min-height: 64px; padding: 12px 20px; flex-wrap: wrap; }
  .sidebar { width: 100%; height: auto; overflow-y: visible; padding: 12px 16px; }
  .main { height: auto; overflow-y: visible; padding: 24px 20px 60px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .topbar .brand { font-size: 16px; }
  .topbar .brand::before { width: 32px; height: 32px; font-size: 16px; }
  .page-head h1 { font-size: 24px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .row-fields { grid-template-columns: 1fr; }
  .panel { border-radius: 16px; }
  .kpi-cell { border-radius: 16px; }
}

/* ---- クリック展開型アコーディオン（案3準拠・ポップUI仕様） ---- */
.accordion-list { gap: 0; padding: 4px; }
.accordion-item {
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-bottom: 1px solid #f0f0f5 !important;
  display: block !important;
  gap: 0 !important;
  padding: 0 !important;
}
.accordion-item:last-child { border-bottom: 0 !important; }
.accordion-item.open { background: #fafafe !important; }

.accordion-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 12px;
  border: 0;
  border-radius: 10px;
  color: #2d3436;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s var(--ui2-ease);
}
.accordion-trigger:hover {
  background: #f5f3ff;
  color: var(--ui2-purple);
  transform: translateX(2px);
}
.accordion-trigger .accordion-title-text {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.accordion-score-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-right: 8px;
  min-width: max-content;
}
.accordion-score-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  background: #f5f6fa;
  white-space: nowrap;
  min-width: max-content;
  overflow: visible;
  font-variant-numeric: tabular-nums;
}
/* 入力可能・入力不可の明白な差別化 */
.field-ro {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field-ro > label {
  font-size: 11.5px;
  color: #5f6b7a;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.field-ro > label::before {
  content: "参照";
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: #8a97a8;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.field-ro input, .field-ro textarea, .field-ro select {
  background: #eef1f5 !important;
  border: 1px dashed #b6c0cf !important;
  color: #6b7785 !important;
  cursor: not-allowed !important;
  font-style: italic;
  opacity: 0.92;
}
.field-ro input:focus, .field-ro textarea:focus, .field-ro select:focus {
  outline: none;
  box-shadow: none;
}
.field-rw {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field-rw > label {
  font-size: 11.5px;
  color: #2c3e50;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.field-rw > label::before {
  content: "記入";
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: var(--ui2-purple);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.field-rw input, .field-rw textarea, .field-rw select {
  background: #fff !important;
  border: 2px solid var(--ui2-purple) !important;
  color: #1a202c !important;
  font-style: normal;
}
.field-rw input:focus, .field-rw textarea:focus, .field-rw select:focus {
  outline: none;
  border-color: var(--ui2-orange) !important;
  box-shadow: 0 0 0 3px rgba(255, 159, 67, 0.25) !important;
}
/* 列ヘッダーの参照/記入バッジ */
.col-header-ro {
  font-size: 12px;
  font-weight: 800;
  color: #8a97a8;
  margin-bottom: 6px;
  border-bottom: 2px dashed #b6c0cf;
  padding-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.col-header-ro::before {
  content: "参照";
  font-size: 10px;
  color: #fff;
  background: #8a97a8;
  padding: 1px 6px;
  border-radius: 4px;
}
.col-header-rw {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  padding-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.col-header-rw::before {
  content: "記入";
  font-size: 10px;
  color: #fff;
  background: var(--ui2-purple);
  padding: 1px 6px;
  border-radius: 4px;
}
.accordion-mark {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--ui2-purple);
  background: var(--ui2-purple-soft);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 26px;
  transition: all .2s var(--ui2-ease);
}
.accordion-item.open .accordion-mark {
  background: var(--ui2-purple);
  color: #fff;
  transform: rotate(180deg);
}
.section-org .accordion-mark {
  color: var(--ui2-green);
  background: var(--ui2-green-soft);
}
.section-org .accordion-item.open .accordion-mark {
  background: var(--ui2-green);
  color: #fff;
}

.accordion-detail {
  margin: 0 8px 14px;
  padding: 16px;
  border-top: 2px solid var(--ui2-purple-soft);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.section-org .accordion-detail { border-top-color: var(--ui2-green-soft); }
.accordion-detail.hidden { display: none; }
.accordion-detail .row-fields { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.accordion-detail .row-field-full { grid-column: 1 / -1; }
/* 項目名とその詳細（内容）は**上下**に並べる（2026-08-20 利用者指示）。左右に置くと、行の高さが
   背の高い詳細（textarea）で決まるため、項目名の下に大きな余白ができていた。1 列に伸ばせば
   余白は生まれない（業務量割合・自己評価のような短い欄は 2 列のままにする）。 */
.row-fields .row-field-title,
.row-fields .row-field-detail,
.row-fields .row-field-content,
.row-fields .row-field:has(textarea) { grid-column: 1 / -1; }

/* ---- 二列アコーディオンレイアウト（事業・組織を横並び・独立スクロール） ---- */
.accordion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  /* 列と列（と左のメニュー）の**高さをそろえる**（2026-08-22 利用者指示）。start だと中身の
     長さで下端がばらばらになる。 */
  align-items: stretch;
}
.accordion-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 300px);
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #f0f0f5;
  background: #fff;
  box-shadow: 0 2px 0 #edeef2, 0 4px 16px rgba(0,0,0,.06);
}
.accordion-col.section-biz {
  border-left: 4px solid var(--ui2-purple);
  background: #fbfaff;
}
.accordion-col.section-org {
  border-left: 4px solid var(--ui2-green);
  background: #f7fffb;
}
.accordion-col .accordion-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  border-radius: 12px;
  padding: 4px;
  background: rgba(255,255,255,.6);
}
.accordion-col.section-biz .accordion-list { background: rgba(251,250,255,.8); }
.accordion-col.section-org .accordion-list { background: rgba(247,255,251,.8); }
.accordion-col .accordion-list::-webkit-scrollbar { width: 6px; }
.accordion-col .accordion-list::-webkit-scrollbar-track { background: #f5f6fa; border-radius: 3px; }
.accordion-col .accordion-list::-webkit-scrollbar-thumb { background: #d5dbe3; border-radius: 3px; }
.accordion-col .accordion-list::-webkit-scrollbar-thumb:hover { background: var(--ui2-purple); }
.accordion-col .accordion-toggle-all {
  align-self: flex-end;
  margin-bottom: 8px;
  padding: 4px 12px;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  background: #fff;
  color: #636e72;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s var(--ui2-ease);
}
.accordion-col .accordion-toggle-all:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.accordion-col.section-biz .accordion-toggle-all { border-color: var(--ui2-purple); color: var(--ui2-purple); }
.accordion-col.section-biz .accordion-toggle-all:hover { background: var(--ui2-purple-soft); }
.accordion-col.section-org .accordion-toggle-all { border-color: var(--ui2-green); color: var(--ui2-green); }
.accordion-col.section-org .accordion-toggle-all:hover { background: var(--ui2-green-soft); }

/* ---- 展開バー（開閉ボタンと採点欄を 1 本のバーに並べる・2026-08-22 利用者指示） ----
   業務量割合・5 段階は**閉じたままでも入力できる**必要があるのでバーへ置く。ボタンの中に
   入力欄は入れられないため、`.accordion-bar` の中で trigger と controls を兄弟として並べる。 */
/* 採点欄は**項目名の下の行**に置く（2026-08-22 利用者指示）。同じ行に並べると項目名が潰れて
   「どの項目に点を付けているのか」が読めなくなる（2 列レイアウトで実際にそうなった）。
   trigger に 100% を持たせて 1 行占有させ、controls は必ず次の行へ回す。 */
.accordion-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.accordion-bar .accordion-trigger { flex: 1 1 100%; min-width: 0; }
/* 採点欄は**1 行の帯**にする（2026-08-22 利用者指示）。`.row-field` の既定は縦積み
   （display:flex + flex-direction:column）なので、**向きを明示して戻す**——ここを書き忘れて
   ラベルが値の上に乗っていた。薄い地を敷いて「この行は採点」とまとまって見えるようにする。 */
.accordion-bar-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 100%;
  margin: 0 12px 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #f6f7fb;
}
.accordion-bar-summary { justify-content: flex-start; }
.accordion-bar-summary .accordion-score-badges { margin-right: 0; }
.accordion-bar-controls .row-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.accordion-bar-controls .row-field label,
.accordion-bar-controls label { margin: 0; color: #636e72; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.accordion-bar-controls input,
.accordion-bar-controls select { margin: 0; padding: 5px 8px; border: 1px solid #e4e6ef; border-radius: 8px; font-size: 12.5px; background: #fff; }
.accordion-bar-controls .row-field-share input,
.accordion-bar-controls input[type="number"] {
  width: 80px;
  min-width: 80px;
  text-align: center;
  overflow: visible;
}
.accordion-bar-controls select { max-width: 190px; }

/* ---- 番号だけの左インデックス（案 2 の一覧・項目名は出さない） ---- */
/* 見た目は**列（.accordion-col）と同じ作り**にそろえる（2026-08-22 利用者指摘）: 同じ角丸・枠・影、
   群は事業=紫 / 組織=緑の左帯、ボタンは共通の .btn。インデックスだけ素の部品に見えないようにする。 */
/* 幅は**3 つのボタンが横 1 行に収まる**ことから決めている（折り返すと見た目が崩れる） */
.accordion-with-index { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
/* 外枠は持たない（**群ごとに 1 枚のカード**）。枠の中に枠があると記入側の列と上端が揃わない。 */
.accordion-index {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}
/* カードの値は記入側の列（.accordion-col / .accordion-col.section-biz）と**同じ**にそろえる */
.accordion-index-group {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 200px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #f0f0f5;
  border-left: 4px solid var(--ui2-purple);
  background: #fbfaff;
  box-shadow: 0 2px 0 #edeef2, 0 4px 16px rgba(0,0,0,.06);
}
.accordion-index-group.section-org { border-left-color: var(--ui2-green); background: #f7fffb; }
/* 見出しの行: 左に群の名前、**右上に開閉**（2026-08-22 利用者指示）。記入側の列と同じ並び。 */
.accordion-index-head { display: flex; align-items: center; gap: 8px; }
.accordion-index-head .accordion-toggle-all { flex: 0 0 auto; align-self: auto; margin: 0; }
/* 群の見出しは記入側の列の見出しと同じ部品（.panel-title＝•付き）。色だけ群に合わせる。 */
.accordion-index-group-label { flex: 1 1 auto; margin: 0; font-size: 12.5px; color: var(--ui2-purple); }
.accordion-index-group.section-org .accordion-index-group-label { color: var(--ui2-green); }
.accordion-index-group.section-org .accordion-index-group-label::before { background: var(--ui2-green); }
.accordion-index-count { margin: 4px 0 6px; color: #8a94a6; font-size: 11px; font-weight: 700; }
/* 項目は**横に並べる**（上メニュー化・2026-08-25）。 */
.accordion-index-chips { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; }
.accordion-index-chip { display: flex; align-items: center; gap: 4px; }
/* 項目チップ: 丸ボタン。開いている項目は中央の点で目立たせる */
.accordion-index-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid var(--ui2-purple);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: all .15s var(--ui2-ease);
}
.accordion-index-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: transparent;
}
.accordion-index-jump.open .accordion-index-dot { background: var(--ui2-purple); }
.accordion-index-jump:hover { transform: scale(1.12); background: var(--ui2-purple-soft); }
.accordion-index-group.section-org .accordion-index-jump { border-color: var(--ui2-green); }
.accordion-index-group.section-org .accordion-index-jump.open .accordion-index-dot { background: var(--ui2-green); }
.accordion-index-group.section-org .accordion-index-jump:hover { background: var(--ui2-green-soft); }
.accordion-index-remove {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  background: #fdecea;
  color: #c0392b;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.accordion-index-remove:hover { background: #f8d7da; }
/* ボタンは共通の .btn を使い、**横 1 列**に並べる（縦積みは間延びして読みにくい） */
/* 操作（追加・削除）はカードの**下端**へ寄せる＝記入側の列の下端と同じ高さで並ぶ。
   padding-top は余白が無いときの最低の間隔（margin-top:auto だけだと詰まる）。 */
.accordion-index-tools { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.accordion-index-tools > .btn { margin: 0; padding: 5px 9px; white-space: nowrap; }
.accordion-index-delete-mode.active { border-color: #f5c6cb; background: #fdecea; color: #c0392b; }
.accordion-index-group .accordion-index-head { order: 0; }
.accordion-index-group .accordion-index-count { order: 1; }
.accordion-index-group .accordion-index-chips { order: 2; }
@media (max-width: 900px) {
  .accordion-with-index { flex-direction: column; }
  .accordion-index { flex-direction: column; }
}

/* ---- 等級適合カード（自己評価・ポップ仕様） ---- */
.gf-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gf-card {
  border: 2px solid var(--ui2-purple-soft);
  border-radius: 18px;
  background: linear-gradient(135deg, #fbfaff 0%, #f5f3ff 100%);
  padding: 16px 18px;
  box-shadow: 0 4px 14px rgba(108,92,231,.10);
  transition: all .18s var(--ui2-ease);
}
.gf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(108,92,231,.18);
  border-color: var(--ui2-purple);
}
.gf-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.gf-card-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 28px;
  padding: 0 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ui2-purple), #a29bfe);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 2px 6px rgba(108,92,231,.3);
}
.gf-card-cat {
  font-size: 15px;
  font-weight: 800;
  color: var(--ui2-purple);
  letter-spacing: .02em;
}
.gf-card-criteria {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-left: 4px solid var(--ui2-purple-soft);
}
.gf-card-criteria-label {
  font-size: 11px;
  font-weight: 800;
  color: #636e72;
  margin-bottom: 6px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gf-card-criteria .wrap {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #2d3436;
  white-space: pre-wrap;
  font-family: inherit;
}
.gf-card-rating {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gf-card-rating-label {
  font-size: 11px;
  font-weight: 800;
  color: #636e72;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gf-select:focus {
  outline: none;
  border-color: var(--ui2-purple);
  box-shadow: 0 0 0 3px rgba(108,92,231,.18);
}
/* 結果ページ用スコアセル */
.gf-card-scores {
  display: flex;
  gap: 10px;
}
.gf-score-cell {
  flex: 1;
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  background: #fff;
  border: 2px solid transparent;
}
.gf-score-cell.gf-score-self { border-color: var(--ui2-purple-soft); }
.gf-score-cell.gf-score-eval { border-color: var(--ui2-green-soft); }
.gf-score-cell.gf-score-final { border-color: #ffd6a5; background: linear-gradient(135deg, #fff7e6, #fff3d6); }
.gf-score-label {
  font-size: 11px;
  font-weight: 800;
  color: #636e72;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.gf-score-value {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.gf-score-self .gf-score-value { color: var(--ui2-purple); }
.gf-score-eval .gf-score-value { color: var(--ui2-green); }
.gf-score-final .gf-score-value { color: #e67e22; }

/* ---- 前期の目標（読み取り専用・グレー斜体） ---- */
.prior-goals {
  padding: 16px 20px;
  border-radius: 14px;
  background: #f7f8fa;
  border: 1px solid #e9ecf0;
}
.prior-goals-title {
  font-size: 13px;
  font-weight: 800;
  color: #636e72;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.prior-goals-title::before {
  content: '📋';
  font-size: 16px;
}
.prior-goal-item {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e9ecf0;
}
.prior-goal-item:last-child { margin-bottom: 0; }
.prior-goal-item .pg-category {
  font-size: 11px;
  font-weight: 700;
  color: #b2bec3;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.prior-goal-item .pg-title {
  font-size: 13px;
  font-weight: 700;
  color: #636e72;
  font-style: italic;
  margin-bottom: 6px;
}
.prior-goal-item .pg-detail {
  font-size: 12.5px;
  color: #b2bec3;
  font-style: italic;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* 「前期の目標」と貢献の項目は**1 本のスクロール**にまとめる（2026-08-26 利用者指示）。
   スクロールする面を列（.accordion-col）そのものへ移し、見出しと索引（メニュー）だけを
   sticky で上に残す。列の中に細い窓を 2 つ作ると、どちらも数行しか見えず読めない。
   sticky の背景は列の地を継ぐ（透けると下の項目が見出しの文字に重なる）。 */
.accordion-col {
  overflow-y: auto;
  padding-top: 0;
}
.accordion-col > .section-title-biz,
.accordion-col > .section-title-org,
.accordion-col > .panel-title {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0;
  padding-top: 12px;
  padding-bottom: 6px;
  background: inherit;
}
.accordion-col > .accordion-index-host {
  position: sticky;
  top: 44px;
  z-index: 2;
  background: inherit;
}
/* 「全部展開」だけの面（結果詳細）も同じ位置に残す。ボタンの地は白のまま（列の地で塗り替えない）。 */
.accordion-col > .accordion-toggle-all {
  position: sticky;
  top: 44px;
  z-index: 2;
}
/* 見出しが .panel-title の面（次期の目標）は見出しが 7px 高いので、吸着位置もそれに合わせる */
.accordion-col > .panel-title ~ .accordion-index-host,
.accordion-col > .panel-title ~ .accordion-toggle-all { top: 51px; }
.accordion-col > #priorGoalsBiz,
.accordion-col > #priorGoalsOrg,
.accordion-col .prior-goals,
.accordion-col > .accordion-list,
.accordion-col .prior-goals .accordion-list {
  flex: 0 0 auto;
  min-height: auto;
  max-height: none;
  overflow: visible;
}
/* スクロールの見た目は一覧が持っていた細い形をそのまま列へ移す（既定の太い帯にしない） */
.accordion-col::-webkit-scrollbar { width: 6px; }
.accordion-col::-webkit-scrollbar-track { background: #f5f6fa; border-radius: 3px; }
.accordion-col::-webkit-scrollbar-thumb { background: #d5dbe3; border-radius: 3px; }
.accordion-col::-webkit-scrollbar-thumb:hover { background: var(--ui2-purple); }

@media (max-width: 900px) {
  .accordion-grid { grid-template-columns: 1fr; }
  .accordion-col .accordion-list { max-height: none; }
}
@media (max-width: 600px) {
  .accordion-detail .row-fields { grid-template-columns: 1fr; }
}

/* ==================== 実装専用（UI2 モックに対応部品が無いもの） ==================== */

/* 画面・タブの切替（portal.js が hidden を付け外しする）。
   UI2 の .view / .stack / .btn-row は display:flex なので、hidden より強く消しておかないと
   隠したはずのタブが出たままになる（実際に評価者の担当外タブで起きた）。 */
[hidden] { display: none !important; }

/* 進行段階の説明と「取得中」。UI2 モックは prefill を焼き込み済みなので持っていないが、
   実機は取得に数秒かかるので本文が空白のままになるのを防ぐ必要がある。
   配色・角丸・影は UI2 のポップ層（--ui2-purple 系のカード）に合わせる。 */
.phase-context {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border: 1px solid #f0f0f5; border-left: 4px solid var(--ui2-purple);
  border-radius: 16px; background: var(--ui2-purple-soft);
  color: #2d3436; font-size: 13px; font-weight: 700;
}
.phase-context::before {
  content: ''; width: 8px; height: 8px; flex: 0 0 8px;
  border-radius: 50%; background: var(--ui2-purple);
}
.loading-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 36px 28px;
  border: 1px solid #f0f0f5; border-radius: 22px; background: #fff;
  box-shadow: 0 2px 0 #edeef2, 0 4px 16px rgba(0,0,0,.06);
  text-align: center;
}
.loading-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--ui2-purple-soft); border-top-color: var(--ui2-purple);
  border-radius: 50%; animation: ui2-spin .8s linear infinite;
}
.loading-title { color: #2d3436; font-size: 16px; font-weight: 800; }
.loading-sub { color: #636e72; font-size: 13px; }
.loading-lines { width: min(100%, 420px); display: grid; gap: 8px; }
.loading-line {
  height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, #f0f0f5, var(--ui2-purple-soft), #f0f0f5);
  background-size: 200% 100%; animation: ui2-shimmer 1.3s linear infinite;
}
.loading-line.short { width: 62%; }
@keyframes ui2-spin { to { transform: rotate(360deg); } }
@keyframes ui2-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* 基本情報・評価体制の「項目 / 値」表（2026-08-20 利用者指示: 社員情報カードの画像に寄せる）。
   氏名は表の外の見出しに出し、表は「左＝項目（薄い地・縦罫）／右＝値」の 2 列にする。
   変えるのは枠線・文字サイズ・行の間隔だけで、色は UI2 のトークン（#2d3436 / #636e72 /
   #f0f0f5 / --ui2-purple）から出ない。閲覧ポータルの .cell-* とは別名にする（あちらは UI2
   正本が持つ定義なのでここで上書きしない）。
   UI2 の規則（.tbl-wrap / .tbl th / .tbl td）は**同じセレクタで上書きしない**。`.fact-table`
   配下だけに当てる（同名セレクタを書くと compare_nonadmin_ui.py の値照合が UI2 とずれる）。 */
.fact-head { margin-bottom: 14px; }
.fact-head-name { font-size: 26px; font-weight: 800; color: #2d3436; letter-spacing: -.01em; line-height: 1.35; }
.fact-table { border: 1px solid #e6e8f0; border-radius: 14px; overflow: hidden; box-shadow: none; }
.fact-table .tbl { font-size: 14px; }
.fact-table .tbl th, .fact-table .tbl td {
  padding: 13px 16px; border-bottom: 1px solid #eceef4; vertical-align: middle; white-space: normal;
}
.fact-table .tbl tr:last-child th, .fact-table .tbl tr:last-child td { border-bottom: 0; }
.fact-table .tbl th.fact-key {
  width: 32%; min-width: 124px; padding-right: 12px;
  background: #f6f7fb; border-right: 1px solid #eceef4;
  color: #636e72; font-size: 13.5px; font-weight: 700; letter-spacing: 0;
  text-align: left; white-space: nowrap;
}
.fact-table .tbl tr:hover th.fact-key { background: #f2f2fb; }
.fact-value { font-size: 14px; font-weight: 700; color: #2d3436; }
.fact-grade {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 28px; padding: 0 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--ui2-purple), #a29bfe);
  color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 2px 6px rgba(108,92,231,.3);
}

/* 評価記入の参照欄・入力欄。一次／最終の詳細は評価者側だけを表示し、本人の
   業務量割合・本人評価は展開部に出さない。 */
/* 担当者名（部長の評価状況の 1次評価者・最終評価者の列）。UI2 正本はインライン style で
   font-weight:600 を当てている。 */
.assignee-name { font-weight: 600; }

/* 横はみ出しの是正（2026-08-20 実機・1280px と 1024px で実測）。
   原因は「縮められない最小幅」。`.accordion-grid` の `1fr` は `minmax(auto, 1fr)` なので
   **中身の min-content** より細くならず、畳んだ行の見出し（`nowrap`）＋点のバッジの幅が下限に
   なって 2 列目が画面外へ出ていた。
   `grid-template-columns` 自体は書き換えない（正本は狭い画面で 1 列に落とす指定を
   `@media (max-width:900px)` に持っており、ここで同じ宣言を後から出すとその指定を打ち消す。
   2026-08-19 に「後から出した規則は前の上書きを取り消せない」で同型の事故を起こしている）。
   代わりに中身が縮める側（min-width:0）を足す＝下限が下がるので `1fr` のままで収まる。 */
.accordion-col, .accordion-list, .accordion-item, .accordion-trigger { min-width: 0; }
.accordion-trigger .accordion-title-text { min-width: 0; }
.gf-card, .gf-card-scores, .gf-card-criteria, .row-item, .row-fields, .field, .field-ro, .field-rw { min-width: 0; }

/* この 2 つは正本に規則が無い（インライン style で書かれている）ので、こちらが唯一の定義。
   最初から縮められる形（minmax(0,1fr)）で書く。 */
.contrib-cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contrib-cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contrib-only-eval { grid-template-columns: minmax(0, 1fr); }
.contrib-cols-2 .field-ro input[type="text"],
.contrib-cols-3 .field-ro input[type="text"] { width: 80px; text-align: right; }
.contrib-cols-2 input[type="number"],
.contrib-cols-3 input[type="number"] {
  width: 80px;
  min-width: 80px;
  text-align: right;
  overflow: visible;
}
.contrib-col-eval .col-header-rw { color: var(--ui2-green); border-bottom: 2px solid var(--ui2-green); }
.contrib-col-final .col-header-rw { color: var(--ui2-orange); border-bottom: 2px solid var(--ui2-orange); }
@media (max-width: 900px) {
  .contrib-cols-2, .contrib-cols-3 { grid-template-columns: 1fr; }
}

/* 入力検証（doc/06 §1 ヒューマンエラー防止） */
.field-error { border-color: #d63031 !important; box-shadow: 0 0 0 3px rgba(214,48,49,.15) !important; }
.error-msg { margin-top: 4px; font-size: 12px; font-weight: 700; color: #d63031; }

/* 長文の折り返し（区切りの無い URL や繰り返し文字列が画面からはみ出さないように） */
.tbl td, .notif-text, .help-panel li { overflow-wrap: anywhere; }

/* AI レビュー結果の整形表示（markdown → HTML）。notice の中で表・見出しを読みやすくする */
.notice .md h1, .notice .md h2, .notice .md h3 { font-size: 14px; font-weight: 800; margin: 8px 0 4px; color: #2d3436; }
.notice .md p { margin: 0 0 6px; font-weight: 400; }
.notice .md ul, .notice .md ol { margin: 0 0 6px; padding-left: 18px; font-weight: 400; }
.notice .md table { width: 100%; border-collapse: collapse; margin: 6px 0; }
.notice .md th, .notice .md td { border-bottom: 1px solid #ececf4; padding: 6px 8px; font-size: 12.5px; text-align: left; font-weight: 400; }
.notice .md th { font-weight: 800; color: #636e72; }

/* 評価対象者一覧のタブ（2026-08-23） */
.list-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.list-tab {
  padding: 8px 16px; border-radius: 10px; border: 1px solid #d5dbe3;
  background: #fff; color: #636e72; font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: all .15s var(--ui2-ease);
}
.list-tab:hover { background: #f5f8fd; }
.list-tab[aria-selected="true"] {
  background: var(--ui2-purple); border-color: var(--ui2-purple); color: #fff;
}
.list-panels {
  border-radius: 22px; background: #fff;
  box-shadow: 0 2px 0 #edeef2, 0 4px 16px rgba(0,0,0,.06);
  padding: 24px;
}
.list-panel .section-title-primary-eval,
.list-panel .section-title-final-eval { font-size: 13.5px; font-weight: 800; margin-bottom: 12px; color: #2d3436; }
.list-panel .tbl-wrap { max-height: calc(100vh - 360px); overflow-y: auto; border-radius: 16px; }
.list-panel .tbl-wrap .tbl thead th { position: sticky; top: 0; background: #fff; z-index: 1; }
@media (max-width: 900px) {
  .list-panels { padding: 16px; }
  .list-tab { padding: 6px 12px; font-size: 12px; }
}

/* ==================== 2026-08-20 利用者指示による UI2 からの意図的なずれ ====================
   ここから下は「UI2 のとおりに作ると使いにくい」と実機で判断されて直した分。モックとは
   わざと違う。compare_nonadmin_ui.py が差分として報告するのは正しい挙動なので、
   モック側を直すか、ここを戻すかは人が決める（黙って一致させない）。 */

/* (1) 進行段階の表示が「押せそう」に見えていた。丸いピル・塗り・影に加えて
   `.phase-pill:hover { transform: translateY(-1px) }`＝**マウスを載せると浮く**指定まで
   付いており、押せない表示がボタンそのものの反応をしていた。ボタンらしさを全部外して
   文字だけの進行表示にし、現在地は色と太さで示す。先頭に「進行段階」の表記を出す
   （表記があるほうが分かりやすい、という利用者判断）。 */
.phase-pills::before {
  content: '進行段階';
  margin-right: 4px;
  color: #8a95a3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}
.phase-pill,
.phase-pill.current {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transition: none;
}
.phase-pill { color: #97a2b0; font-size: 12px; font-weight: 600; }
.phase-pill:hover { transform: none; background: none; }
.phase-pill.current { color: var(--ui2-purple); font-weight: 800; }
.phase-pill:not(:last-child)::after {
  content: '›';
  margin: 0 6px;
  color: #c6cdd6;
  font-weight: 400;
}

/* (2) ブロックの見出しが中身より小さく、見出しに見えなかった（実測: 「今できる操作」14px に
   対して中の項目名 15px、「基本情報」14px に対して値 16px、「部門別 マトリクス」14px に
   対してセルの点 18px）。見出しをそのブロックで一番大きい文字にする。数値そのもの
   （KPI の数字 36px・自己評価の点 26px）は中身ではなく主役なので対象外。
   19px なのは閲覧ポータルのセルの点 18px を上回らせるため（4 ロール共通で揃える）。 */
.panel-title { font-size: 19px; }
.section-title-biz,
.section-title-org { font-size: 15px; }

/* (3) 結果詳細の貢献項目で、誰の記入かをラベルの見た目で分ける（2026-08-20 利用者指摘）。
   UI2 正本と同じ扱い: 本人の「詳細」は灰のまま、評価者のコメントだけラベルを色付き・太字にする。 */
.field label.field-label-layer { font-weight: 800; }

/* 読み込み中の帯（2026-08-31 利用者指示）。管理者ポータルと**同じ見た目**にする
   ——同じ待ちなのに画面ごとに見え方が違うと、利用者は別のことが起きていると受け取る。
   中身は薄くして押せなくする: 帯だけだと表も操作も普通に見えて「もう出そろった」と読める。 */
section.view[aria-busy="true"] > *:not(.detail-loading) {
  opacity: .35;
  pointer-events: none;
  user-select: none;
}
.detail-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-bottom: 12px;
  padding: 11px 14px;
  border: 1px solid #d9e5f5;
  border-left: 3px solid #2f6fbf;
  border-radius: 8px;
  background: #f5f9ff;
  color: #2f5f9e;
  font-weight: 700;
}
/* 回転印はカードの中の .loading-spinner だけ（管理者側と同じ理由・2026-08-31）。 */
