:root {
  --bg: #F4F6F5;
  --surface: #fff;
  --text: #16202B;
  --ink2: #4A5A68;
  --muted: #667785;
  --border: #CDD5DA;
  --rule2: #E4E9EB;
  --accent: #0E5C8A;
  --accent-bg: #E8F0F6;
  --accent-text: #fff;
  --good: #1E6B3A;
  --warn: #B37500;
  --bad: #A32B22;
  --good-bg: #DCEDDF;
  --warn-bg: #FBF0DA;
  --bad-bg: #F8E4E2;
  --gA: #1E6B3A; --gB: #5C8A2E; --gC: #B37500; --gD: #A32B22;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 13px/1.65 "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif; -webkit-font-smoothing: antialiased; font-feature-settings: "palt" 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.top { display: flex; align-items: center; gap: 20px; padding: 10px 24px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
header.top .brand { font-weight: 700; font-size: 16px; color: var(--text); }
header.top nav { display: flex; gap: 16px; flex: 1; }
header.top .right { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 12px; }
main { max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 28px 0 10px; }
.sub { color: var(--muted); margin: 0 0 16px; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
button, .btn { font: inherit; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: inline-block; }
button:hover:not(:disabled), .btn:hover { border-color: var(--accent); text-decoration: none; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
button.danger { color: var(--bad); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.link { border: 0; background: none; padding: 0; color: var(--accent); }
input, select, textarea { font: inherit; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
textarea { width: 100%; min-height: 60px; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.field { margin-bottom: 10px; }
.field input:not([type=checkbox]) { width: 100%; }
table.list { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
table.list th, table.list td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.list th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--bg); }
table.list tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: var(--bg); border: 1px solid var(--border); color: var(--muted); }
.badge.good { background: var(--good-bg); color: var(--good); border-color: transparent; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.score-pill { font-weight: 700; font-variant-numeric: tabular-nums; }
.score-pill.good { color: var(--good); } .score-pill.warn { color: var(--warn); } .score-pill.bad { color: var(--bad); }
.big-score { font-size: 56px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.big-score small { font-size: 18px; color: var(--muted); font-weight: 400; }
.bar { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; min-width: 80px; border: 1px solid var(--border); }
.bar > i { display: block; height: 100%; background: var(--accent); }
.dots { letter-spacing: 2px; color: var(--accent); font-size: 15px; white-space: nowrap; }
.muted { color: var(--muted); }
.dropzone { border: 2px dashed var(--border); border-radius: 10px; padding: 16px; text-align: center; color: var(--muted); }
.dropzone.over { border-color: var(--accent); background: var(--bg); }
.err { color: var(--bad); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 8px 18px; border-radius: 8px; z-index: 100; }
.kind-card h3 { margin: 0 0 4px; font-size: 15px; }
.item-detail td { padding-top: 0; }
.item-detail .box { background: var(--bg); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.item-detail dt { font-weight: 600; margin-top: 6px; font-size: 12px; color: var(--muted); }
.item-detail dd { margin: 0; white-space: pre-wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 8px 16px; }
.tabs button.active { border-bottom-color: var(--accent); font-weight: 600; }
#sheet { margin: 12px 0; }
#sheet .jss_worksheet td { white-space: pre-wrap; }
@media (max-width: 640px) {
  header.top { flex-wrap: wrap; padding: 8px 16px; gap: 8px 16px; }
  table.list { display: block; overflow-x: auto; }
  .big-score { font-size: 44px; }
}

.mark { display: inline-block; min-width: 28px; text-align: center; font-size: 17px; font-weight: 700; }
.mark.good { color: var(--good); } .mark.warn { color: var(--warn); } .mark.bad { color: var(--bad); }
.rank-big { font-size: 64px; font-weight: 800; line-height: 1; }
.rank-big.good { color: var(--good); } .rank-big.warn { color: var(--warn); } .rank-big.bad { color: var(--bad); }
.notice { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); font-size: 13px; }
.notice.warn { background: var(--warn-bg); border-color: transparent; color: var(--warn); }
.notice.bad { background: var(--bad-bg); border-color: transparent; color: var(--bad); }
.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text); margin: 0; }
.h3 { font-size: 13px; margin: 14px 0 6px; }
table.rules td, table.rules th { padding: 2px 8px 2px 0; text-align: left; font-size: 12px; color: var(--muted); font-weight: 400; }
.keybox { font-family: ui-monospace, Menlo, monospace; background: var(--warn-bg); border: 1px solid var(--warn); border-radius: 8px; padding: 10px 12px; word-break: break-all; margin: 8px 0; }
table.list input[type=number] { width: 80px; }
.dim { opacity: .45; }
.login { max-width: 460px; margin: 60px auto; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 14px; align-items: end; }
.filters .wide { grid-column: span 2; }
.filters select, .filters input { width: 100%; }
.rankchk { display: inline-flex; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.rankchk label { display: inline-flex; gap: 4px; align-items: center; color: var(--text); margin: 0; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin: 10px 0; color: var(--muted); }
.scroll { overflow: auto; max-height: 75vh; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
table.cmp { border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.cmp th, table.cmp td { padding: 6px 10px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); background: var(--surface); text-align: center; white-space: nowrap; }
table.cmp thead th { position: sticky; top: 0; z-index: 3; background: var(--bg); font-weight: 600; vertical-align: bottom; }
table.cmp .stick { position: sticky; left: 0; z-index: 2; text-align: left; background: var(--surface); max-width: 340px; white-space: normal; min-width: 220px; }
table.cmp thead .stick { z-index: 4; background: var(--bg); }
table.cmp tr.cat td { background: var(--bg); font-weight: 600; text-align: left; }
table.cmp td.m-o { background: var(--good-bg); color: var(--good); font-weight: 700; }
table.cmp td.m-t { background: var(--warn-bg); color: var(--warn); font-weight: 700; }
table.cmp td.m-x { background: var(--bad-bg); color: var(--bad); font-weight: 700; }
table.cmp td.m-u { color: var(--bad); font-weight: 700; }
table.cmp td.up { box-shadow: inset 0 0 0 2px var(--good); }
table.cmp td.down { box-shadow: inset 0 0 0 2px var(--bad); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 6px 0; }
.stat { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 13px; margin-right: 6px; }
.stat.good { background: var(--good-bg); color: var(--good); } .stat.bad { background: var(--bad-bg); color: var(--bad); } .stat.flat { background: var(--bg); color: var(--muted); }
.login-box { max-width: 420px; margin: 70px auto; }
.pwrow { display: flex; gap: 6px; } .pwrow input { flex: 1; min-width: 26ch; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; }
.tabs a { padding: 8px 16px; border-bottom: 2px solid transparent; color: var(--text); }
.tabs a.active { border-bottom-color: var(--accent); font-weight: 600; text-decoration: none; }
.rankchk label { white-space: nowrap; }
.filters .field.wide { min-width: 0; }
.learnline { margin-top: 4px; font-size: 13px; }
.advice textarea:focus, #advform textarea:focus { outline: 2px solid var(--accent); }
header.top { flex-wrap: wrap; }
header.top nav { flex-wrap: wrap; row-gap: 2px; }
header.top nav a, header.top .right { white-space: nowrap; }

/* ---- 資料レビュー(原本 + 指摘)---- */
.rv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 12px; align-items: start; }
@media (max-width: 960px) { .rv-wrap { grid-template-columns: 1fr; } }
.rv-viewer { position: relative; height: calc(100vh - 230px); min-height: 420px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); padding: 8px; }
.rv-panel { height: calc(100vh - 230px); min-height: 420px; overflow: auto; }
@media (max-width: 960px) { .rv-panel { height: auto; max-height: 60vh; } }
.rv-filters { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.rv-filters label { display: inline-flex; gap: 4px; align-items: center; margin: 0; color: var(--text); }
.rv-notes { font-size: 12px; margin-bottom: 6px; }
.sevdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #999; }
.sevdot.sev-high { background: #d64545; } .sevdot.sev-medium { background: #e8912d; } .sevdot.sev-low { background: #d9b92e; }
.fcard { border: 1px solid var(--border); border-left-width: 4px; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; background: var(--surface); cursor: pointer; font-size: 13px; }
.fcard.sev-high { border-left-color: #d64545; } .fcard.sev-medium { border-left-color: #e8912d; } .fcard.sev-low { border-left-color: #d9b92e; }
.fcard.active { box-shadow: 0 0 0 2px var(--accent); }
.fcard.dismissed { opacity: .5; }
.fcard .fhead { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.fcard .loc { font-size: 11px; margin-left: auto; }
.fquote { background: var(--bg); border-radius: 4px; padding: 3px 6px; margin-bottom: 4px; font-size: 12px; color: var(--muted); word-break: break-all; }
.fsug, .frep { margin-top: 4px; }
.frep > div { background: var(--good-bg); color: var(--text); border-radius: 4px; padding: 3px 6px; margin-top: 2px; }
.factions { text-align: right; margin-top: 2px; }
mark.ann, td.ann { color: inherit; cursor: pointer; border-radius: 2px; }
mark.sev-high, td.sev-high { background: rgba(214, 69, 69, .30); box-shadow: 0 0 0 1px rgba(214, 69, 69, .6); }
mark.sev-medium, td.sev-medium { background: rgba(232, 145, 45, .32); box-shadow: 0 0 0 1px rgba(232, 145, 45, .6); }
mark.sev-low, td.sev-low { background: rgba(217, 185, 46, .35); }
mark.ann.active, td.ann.active { outline: 2px solid var(--accent); }
mark.ann-del { text-decoration: line-through; text-decoration-color: #d64545; }
ins.ann-ins { background: rgba(60, 160, 90, .22); text-decoration: none; padding: 0 2px; border-radius: 2px; margin-left: 2px; cursor: pointer; }
.callout { position: absolute; z-index: 20; width: 320px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 4px solid #e8912d; border-radius: 8px; padding: 8px 10px; font-size: 13px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.callout.sev-high { border-left-color: #d64545; } .callout.sev-low { border-left-color: #d9b92e; }
.callout .sug { margin-top: 4px; }
.docx-host { display: flex; justify-content: center; } .docx-host .docx-wrapper { background: transparent !important; padding: 0 !important; } .docx-host section.docx { box-shadow: 0 1px 6px rgba(0,0,0,.25); margin-bottom: 12px !important; color: #000; }
.sheettabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; } .sheettabs button.on { font-weight: 700; text-decoration: underline; }
table.sheet { border-collapse: collapse; font-size: 12px; background: var(--surface); } table.sheet th, table.sheet td { border: 1px solid var(--border); padding: 2px 6px; vertical-align: top; max-width: 360px; white-space: pre-wrap; word-break: break-word; } table.sheet th { background: var(--bg); color: var(--muted); font-weight: 500; position: sticky; top: 0; }
.pptx-host { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.slide { position: relative; background: #fff; color: #222; box-shadow: 0 1px 6px rgba(0,0,0,.25); overflow: hidden; flex: none; }
.slide .shape { position: absolute; box-sizing: border-box; overflow: visible; line-height: 1.25; } .slide .shape p { margin: 0 0 .15em; } .slide .shape.ph { border: 1px dashed #bbb; }
.slide .slide-no { position: absolute; right: 4px; bottom: 2px; font-size: 10px; color: #999; }
.pdf-host { display: flex; flex-direction: column; gap: 12px; align-items: center; } .pdfpage { position: relative; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.25); flex: none; }
.textLayer { position: absolute; inset: 0; overflow: hidden; line-height: 1; } .textLayer span { position: absolute; color: transparent; white-space: pre; transform-origin: 0 0; cursor: text; } .textLayer mark.ann { color: transparent; }
.txt-host { font-size: 13px; background: var(--surface); padding: 8px 12px; border-radius: 6px; } .txtline { white-space: pre-wrap; word-break: break-word; min-height: 1em; }
/* 選択した指摘の該当箇所を囲む点線ボックス(重要=赤 / 中=オレンジ / 軽微=黄) */
mark.sev-high, td.sev-high { outline: 1px dashed #d64545; } mark.sev-medium, td.sev-medium { outline: 1px dashed #e8912d; } mark.sev-low, td.sev-low { outline: 1px dashed #d9b92e; }
.focusbox { position: absolute; z-index: 15; pointer-events: none; box-sizing: border-box; border: 2px dashed; border-radius: 4px; animation: focuspulse 1.2s ease-in-out 3; }
.focusbox.sev-high { border-color: #d64545; background: rgba(214, 69, 69, .08); } .focusbox.sev-medium { border-color: #e8912d; background: rgba(232, 145, 45, .08); } .focusbox.sev-low { border-color: #d9b92e; background: rgba(217, 185, 46, .10); }
.focusbox[data-tag]::before { content: attr(data-tag); position: absolute; left: -2px; top: -20px; padding: 1px 6px; font-size: 11px; font-weight: 700; color: #fff; border-radius: 4px 4px 0 0; white-space: nowrap; }
.focusbox.sev-high[data-tag]::before { background: #d64545; } .focusbox.sev-medium[data-tag]::before { background: #e8912d; } .focusbox.sev-low[data-tag]::before { background: #b89a12; }
@keyframes focuspulse { 50% { box-shadow: 0 0 0 5px rgba(255, 255, 255, .25); } }
mark.ann.active, td.ann.active { outline: none; }

/* ================= モック準拠のレイアウト(左メニュー + 案件リスト)================= */
.shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.shell.norail { grid-template-columns: 1fr; } .shell.norail .rail { display: none; }
.rail { background: var(--surface); border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.railhead { padding: 18px 18px 14px; border-bottom: 1px solid var(--border); }
.railhead a { color: var(--text); text-decoration: none; }
.railhead h1 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .02em; line-height: 1.45; }
.railhead p { margin: 5px 0 0; font-size: 11px; color: var(--muted); line-height: 1.5; }
.navgrp { padding: 12px 0 6px; border-bottom: 1px solid var(--rule2); }
.navgrp h2 { margin: 0 0 6px; padding: 0 18px; font-size: 11px; font-weight: 700; color: var(--muted); }
.nav { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 0; padding: 6px 18px 6px 15px; cursor: pointer; font-size: 12.5px; border-left: 3px solid transparent; color: var(--text); text-decoration: none; }
.nav:hover { background: var(--accent-bg); text-decoration: none; border-color: transparent; }
.nav[aria-current="true"] { border-left-color: var(--accent); background: var(--accent-bg); font-weight: 700; }
.nav.sub { padding-left: 34px; font-size: 12px; color: var(--ink2); position: relative; }
.nav.sub[aria-current="true"] { color: var(--text); }
.nav .soon { font-size: 10px; color: var(--muted); border: 1px solid var(--border); padding: 0 4px; margin-left: 4px; font-weight: 400; }
.caselist { padding: 4px 0 20px; flex: 1; }
.casemode { margin: 0 14px 6px; width: calc(100% - 28px); font-size: 12px; padding: 4px 6px; border-radius: 2px; }
.caseitem { display: grid; grid-template-columns: minmax(0, 1fr) 22px; gap: 8px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-radius: 0; border-left: 3px solid transparent; padding: 7px 14px 7px 12px; cursor: pointer; overflow: hidden; color: var(--text); text-decoration: none; }
.caseitem:hover { background: var(--accent-bg); text-decoration: none; border-color: transparent; }
.caseitem[aria-current="true"] { border-left-color: var(--accent); background: var(--accent-bg); }
.caseitem > span:first-child { min-width: 0; overflow: hidden; }
.caseitem .cn { display: block; font-size: 12.5px; line-height: 1.35; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caseitem .cm { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbar { display: inline-block; height: 4px; background: var(--rule2); width: 56px; margin-top: 4px; vertical-align: middle; }
.dbar i { display: block; height: 100%; }
.stamp { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1.5px solid currentColor; font-weight: 700; font-size: 11.5px; }
.stamp.lg { width: 44px; height: 44px; font-size: 22px; border-width: 2px; }
.gA { color: var(--gA); } .gB { color: var(--gB); } .gC { color: var(--gC); } .gD { color: var(--gD); }
.railfoot { padding: 12px 18px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--ink2); position: sticky; bottom: 0; background: var(--surface); }
.railfoot .row { gap: 8px; margin-top: 6px; }
.railfoot select { font-size: 12px; padding: 2px 4px; }
main#app { max-width: 1360px; margin: 0; padding: 26px 30px 70px; width: 100%; min-width: 0; }
@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .caselist { max-height: 260px; overflow-y: auto; }
  main#app { padding: 20px 16px 60px; }
}
/* ---- ダッシュボード ---- */
.ph { border-bottom: 2px solid var(--text); padding-bottom: 10px; margin: 0 0 18px; display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.ph h2 { margin: 0; font-size: 22px; font-weight: 700; } .ph p { margin: 6px 0 0; font-size: 12.5px; color: var(--ink2); max-width: 78ch; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
.pill { border: 1px solid var(--border); background: var(--surface); padding: 3px 10px; cursor: pointer; font-size: 12px; border-radius: 0; }
.pill[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.dstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 700px) { .dstats { grid-template-columns: 1fr; } }
.dstat { background: var(--surface); border: 1px solid var(--border); padding: 12px 14px; }
.dstat .l { font-size: 11px; color: var(--muted); } .dstat .v { font-size: 26px; font-weight: 700; line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums; } .dstat .s { font-size: 11px; color: var(--ink2); margin-top: 3px; }
table.dt { border-collapse: collapse; width: 100%; background: var(--surface); font-size: 12.5px; }
table.dt th, table.dt td { border: 1px solid var(--rule2); padding: 5px 7px; text-align: left; vertical-align: top; }
table.dt thead th { background: var(--text); color: #fff; font-weight: 700; font-size: 11px; position: sticky; top: 0; z-index: 2; border-color: #2B3946; line-height: 1.35; }
table.dt tbody tr:nth-child(even) { background: #FAFBFB; } table.dt tbody tr.hov:hover { background: var(--accent-bg); cursor: pointer; }
table.dt .n { text-align: right; } table.dt .c { text-align: center; }
.sortable { cursor: pointer; user-select: none; } .sortable::after { content: ""; display: inline-block; margin-left: 5px; border: 4px solid transparent; border-top-color: rgba(255,255,255,.45); vertical-align: 2px; }
.sortable[data-dir="asc"]::after { border-top-color: transparent; border-bottom-color: #fff; vertical-align: -2px; } .sortable[data-dir="desc"]::after { border-top-color: #fff; }
.tiny { font-size: 11px; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--border); padding: 14px 16px; } .panel.info { background: #F0F5F9; border-color: #C9D9E6; } .panel h4 { margin: 0 0 7px; font-size: 12.5px; }
p.note { font-size: 11.5px; color: var(--muted); margin: 8px 0 0; max-width: 96ch; }
.chip { border: 1px solid var(--border); padding: 1px 7px; font-size: 11px; background: var(--surface); white-space: nowrap; display: inline-block; }
/* 全体の質感をモックに寄せる */
.card { border-radius: 2px; } button, .btn, input, select, textarea { border-radius: 2px; }
table.list { border-radius: 0; } table.list th { background: var(--text); color: #fff; font-size: 11px; font-weight: 700; }
.scroll { border-radius: 0; } .badge { border-radius: 2px; }
.kind-seg { display: inline-flex; } .kind-seg button { border-radius: 0; margin-left: -1px; } .kind-seg button[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.nav.sub { padding-top: 2px; padding-bottom: 2px; line-height: 1.55; font-size: 12px; }
.nav { line-height: 1.55; }
/* 分析結果の画面 */
table.dt td.m-o { background: var(--good-bg); } table.dt td.m-t { background: var(--warn-bg); } table.dt td.m-x { background: var(--bad-bg); } table.dt td.m-n { background: #EEF0F1; }
.stack { display: flex; height: 22px; overflow: hidden; background: var(--rule2); width: 100%; } .stack i { display: block; height: 100%; }
.legend2 { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 0; font-size: 11px; color: var(--ink2); } .legend2 span { display: inline-flex; align-items: center; gap: 5px; } .legend2 b { width: 11px; height: 11px; display: inline-block; }
.pagecells { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 4px; } .pagecells i { width: 14px; height: 14px; font-size: 8px; line-height: 14px; text-align: center; color: #fff; font-style: normal; }
.analysis-sec { margin-top: 20px; }
h3.sec { font-size: 13px; font-weight: 700; margin: 24px 0 9px; padding-bottom: 5px; border-bottom: 1px solid var(--border); }

/* 左の案件リスト: 受注確度とリスクの両方のランクを並べる */
.caseitem { display: block; }
.caseitem .cr2 { display: flex; gap: 12px; margin-top: 4px; }
.caseitem .cr { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--muted); }
.caseitem .cr .stamp { width: 17px; height: 17px; font-size: 10px; }
.caseitem .crs { font-variant-numeric: tabular-nums; color: var(--ink2); }

/* 指摘の対応状況・編集 */
.fcard.st-done { opacity: .75; } .fcard.st-done .fhead::after { content: '✔'; color: var(--good); margin-left: auto; }
.fcard.st-hold { border-style: dashed; }
.fcard select.fstatus { font-size: 12px; padding: 1px 4px; }
.fedit { margin-top: 6px; } .fedit textarea, .fedit select { width: 100%; font-size: 12px; } .fedit .field { margin-bottom: 6px; } .fedit label { font-size: 11px; }
.factions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }

/* フォルダ管理(エクスプローラー形式)*/
.fx { display: grid; grid-template-columns: 280px 1fr; gap: 12px; align-items: start; }
@media (max-width: 900px) { .fx { grid-template-columns: 1fr; } }
.fx-tree { background: var(--surface); border: 1px solid var(--border); padding: 6px 0; max-height: 70vh; overflow: auto; font-size: 13px; }
.tnode { padding-top: 3px; padding-bottom: 3px; padding-right: 8px; cursor: pointer; white-space: nowrap; border-left: 3px solid transparent; }
.tnode:hover { background: var(--accent-bg); } .tnode.on { background: var(--accent-bg); border-left-color: var(--accent); font-weight: 700; }
.tnode .tog { display: inline-block; width: 14px; font-size: 9px; color: var(--muted); }
.fx-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; } .fx-path { flex: 1; background: var(--surface); border: 1px solid var(--border); padding: 4px 10px; font-size: 13px; }
.crumb { cursor: pointer; } .crumb:hover { text-decoration: underline; }
.fx-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
tr.sel td { background: var(--accent-bg) !important; }
.dropping { outline: 2px dashed var(--accent); outline-offset: -2px; background: var(--accent-bg); }
.kind-seg a.btn { border-radius: 0; margin-left: -1px; text-decoration: none; }

/* 範囲指定(図・画像などの位置)*/
.rv-viewer.picking, .rv-viewer.picking * { cursor: crosshair !important; user-select: none !important; }
.rubber { position: absolute; z-index: 40; pointer-events: none; border: 2px dashed var(--accent); background: rgba(14, 92, 138, .15); }
.region.ann { position: absolute; z-index: 6; box-sizing: border-box; border: 2px dashed; border-radius: 3px; cursor: pointer; }
.region.sev-high { border-color: #d64545; background: rgba(214, 69, 69, .15); } .region.sev-medium { border-color: #e8912d; background: rgba(232, 145, 45, .15); } .region.sev-low { border-color: #d9b92e; background: rgba(217, 185, 46, .18); }
.region.preview { border-style: solid; }
.docx-host section.docx { position: relative; }
.rgbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; font-size: 12px; }

/* テンプレートの編集・プレビュー */
.tpl-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .tpl-grid { grid-template-columns: 1fr; } }
.tpl-slide textarea, .tpl-slide input, .tpl-slide select { width: 100%; font-size: 12px; }
.tpl-pv { position: sticky; top: 12px; }
.pv-slide { position: relative; container-type: inline-size; width: 100%; background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 6px rgba(0,0,0,.18); overflow: hidden; }
.pv-slide .pv-title { position: absolute; left: 0; top: 0; width: 100%; height: 12.6%; background: #0E5C8A; color: #fff; font-weight: 700; font-size: 2.4cqw; padding: 0 3.5cqw; display: flex; align-items: center; }
.pv-box { position: absolute; box-sizing: border-box; line-height: 1.3; padding: .4cqw; }
.pv-t { border-collapse: collapse; width: 100%; font-size: 1.4cqw; } .pv-t td { border: 1px solid #CDD5DA; padding: .3cqw .6cqw; }

/* ひな形のスライド選択 */
.chooser { display: flex; flex-wrap: wrap; gap: 10px; max-height: 480px; overflow: auto; padding: 4px; border: 1px solid var(--border); background: var(--bg); }
.chcard { width: 210px; background: var(--surface); border: 1px solid var(--border); padding: 5px; }
.chthumb { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--rule2); }
.chcard select { width: 100%; font-size: 12px; margin: 2px 0; }

/* テンプレート編集: 未保存の警告・記入イメージ・ページへの指示 */
.tpl-slide.dirty { border-left: 4px solid #d98a00; }
.tpl-warn { color: #8a5a00; background: #fff4d6; border: 1px solid #f0d79a; border-radius: 6px; padding: 4px 8px; font-size: 12px; }
.tpl-sample { background: var(--bg-soft, #f4f6f8); border: 1px dashed var(--border); border-radius: 6px; padding: 6px 8px; font-size: 12px; white-space: pre-wrap; min-height: 36px; color: var(--muted, #555); }
.tpl-instr { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; }
.tpl-instr textarea { flex: 1; }
.tpl-bar { position: sticky; top: 0; z-index: 5; background: var(--bg, #fff); padding: 6px 0; }
[hidden] { display: none !important; }
