/* 運営の画面（画面イメージ「法人向け DSS 診断 画面イメージ」の運営 1・運営 2 に合わせる）
   アクセントの色（--fill）は、押せるものと選択中のものにだけ使う */
:root {
  --text: #1F1F1F; --label: #595959; --bg: #FFFFFF; --bg-soft: #F0F4F8; --bg-control: #F5F5F5;
  --border: #D0D5DD; --grid: #E0E0E0; --fill: #2D5BD8; --fill-tint: #E8F1FE; --on-fill: #FFFFFF;
  --ok: #2E7D32; --ng: #C0303C; --warn-bg: #FFF4E5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Noto Sans JP", system-ui, sans-serif; font-size: 14px; line-height: 1.6; }
a { color: var(--fill); }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 24px; border-bottom: 1px solid var(--border); }
/* ヘッダー：DSP（実践）と同じ形（ロゴ・名前・画面の区分）。2026-11-30 user「ファビコンとヘッダーをDSPから転用してください」 */
.top { background: var(--bg-soft); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--text); text-decoration: none; letter-spacing: .01em; }
.brand .logo { display: block; }
.hd-area { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; color: #FFFFFF; background: #1F2A44; }
.badge { font-size: 11px; color: var(--label); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; }
.grow { flex-grow: 1; }
.who { font-size: 13px; color: var(--label); }
.layout { display: flex; min-height: calc(100vh - 62px); }
/* 左のメニュー：DSP（実践）の .dsp-nav と同じ形 */
.side { width: 232px; flex: none; padding: 14px 10px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.side a { padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.side a:hover { background: var(--bg-control); }
.side a[aria-current="page"] { background: var(--fill-tint); color: var(--fill); font-weight: 700; }
.navi { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; opacity: .82; }
.side a[aria-current="page"] .navi { opacity: 1; }
.navh { font-size: 12px; font-weight: 700; color: var(--label); padding: 16px 12px 4px; letter-spacing: .02em; }
.navh:first-child { padding-top: 2px; }
/* ヘッダー：DSP と同じ並び（ロゴ・名前・画面の区分・…・サインインしている人・サインアウト） */
.top { padding: 10px 18px; gap: 12px; }
.top .who { color: var(--label); font-size: 14px; }
.top form .btn.quiet.small, #out.btn.quiet.small { border: 0; background: transparent; color: var(--fill); font-weight: 400; padding: 0 4px; min-height: 36px; }
.content { flex: 999 1 560px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
h1 { margin: 0; font-size: 22px; }
h2 { margin: 0; font-size: 17px; }
.sub { font-size: 13px; color: var(--label); }
.card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.row.center { align-items: center; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.field.wide { flex: 1 1 240px; }
.inp { height: 38px; border: 1px solid var(--border); border-radius: 6px; padding: 0 10px; font: inherit; font-size: 13.5px; color: var(--text); background: var(--bg); }
.inp.corp { width: 170px; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.btn { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 8px; border: 0; background: var(--fill); color: var(--on-fill); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.quiet { background: var(--bg); color: var(--fill); border: 1px solid var(--fill); font-weight: 400; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn:disabled { background: var(--bg-control); color: var(--label); border-color: var(--border); cursor: not-allowed; }
.scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--grid); text-align: left; white-space: nowrap; vertical-align: top; font-size: 13.5px; }
th { font-size: 12px; color: var(--label); font-weight: 500; background: var(--bg-control); }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.past td { color: var(--label); }
.chip { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--border); color: var(--label); }
.check { font-size: 12px; padding-bottom: 10px; }
.check.ok { color: var(--ok); }
.check.ng { color: var(--ng); }
.note { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 6px; background: var(--warn-bg); font-size: 13px; }
.msg { padding: 10px 14px; border-radius: 8px; background: var(--warn-bg); }
.msg:empty { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 8px; font-size: 14px; max-width: 90vw; }
.toast[hidden] { display: none; }
.empty { color: var(--label); padding: 16px; }
[hidden] { display: none !important; }
@media (max-width: 760px) { .layout { flex-direction: column; } .side { width: auto; border-right: 0; border-bottom: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; }
  .navh { flex-basis: 100%; padding: 6px 12px 0; } .content { flex: 1 1 auto; padding: 14px; } }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 30px; font-weight: 700; letter-spacing: 0.12em; }
.letter { margin: 0; padding: 12px 14px; background: var(--bg-control); border-radius: 6px; font: inherit; font-size: 13px; line-height: 1.8; white-space: pre-wrap; }
.btn.quiet.danger { color: var(--ng); border-color: var(--ng); }
.btn[aria-pressed="true"] { background: var(--fill-tint); }
.content.narrow { max-width: 520px; margin: 0 auto; }
.content.wide { max-width: 1180px; margin: 0 auto; }
/* フッター（DSP と同じ形：版・設問の版・©） */
.app-footer { margin: 2.4em auto 1.2em; padding: .9em 16px 0; max-width: 980px; border-top: 1px solid var(--border); text-align: center;
  font-size: 12px; color: var(--label); line-height: 1.7; }
.app-footer code { background: var(--bg-control); padding: .08em .4em; border-radius: 4px; }
.modes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.modes legend { font-size: 12.5px; margin-bottom: 6px; }
.modes label { display: flex; align-items: center; gap: 6px; min-height: 36px; }
.inp.area { height: auto; padding: 8px 10px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; width: 100%; }
.errs { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ng); }
table.slim { min-width: 0; }
.mono.small { font-size: 12px; line-height: 1.6; }
.card.alert { border: 2px solid var(--ng); background: #FDF0F1; }
.card.alert h2 { color: #A3212C; }
.card.alert .scroll { background: var(--bg); }
/* 回答の状況と集計（report.js） */
.tiles4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tiles4 .tile { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.tiles4 .tile b { font-size: 26px; }
.rbar { height: 10px; background: var(--grid); border-radius: 5px; min-width: 120px; }
.rbar > div { height: 10px; background: #5A6B85; border-radius: 5px; }
td.wbar { width: 30%; }
tr.rb td { background: var(--bg-soft); }
tr.item td { font-size: 12.5px; color: var(--label); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--fill); font: inherit; cursor: pointer; text-decoration: underline; }
.stack { display: flex; flex-direction: column; gap: 16px; }
td.acts { white-space: nowrap; }
.btn .ic { margin-right: 8px; flex: none; }
.btn .ic:last-child:not(:first-child) { margin-right: 0; margin-left: 8px; }
.btn.small .ic { width: 16px; height: 16px; margin-right: 6px; }
ul.notes { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--label); line-height: 1.7; }
.ver { font-size: 12px; color: var(--label); }
/* ダッシュボード（ops.js） */
ul.todos { list-style: none; margin: 0; padding: 0; }
li.todo { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--grid); }
li.todo:last-child { border-bottom: 0; }
.tiles4 .tile span b { font-size: 30px; }
li.todo b { color: var(--ng); }
li.todo b, li.todo a { white-space: nowrap; flex: none; }
/* システム管理（health.js・operators.js・events.js） */
.hl { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--grid); }
.hl:last-child { border-bottom: 0; }
.hl .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--label); }
.hl .nm { width: 240px; flex: none; display: flex; flex-direction: column; }
.hl .tx { flex: 1 1 auto; min-width: 0; font-size: 13.5px; }
.st-ok .dot { background: var(--ok); } .st-ok .lb { color: var(--ok); }
.st-warn .dot { background: #B26A00; } .st-warn .lb { color: #8A5200; }
.st-ng .dot { background: var(--ng); } .st-ng .lb { color: var(--ng); }
.st-unset .lb { color: var(--label); }
.lb { font-size: 12.5px; }
.tiles4 .tile.st-ok b { color: var(--ok); } .tiles4 .tile.st-warn b { color: #8A5200; } .tiles4 .tile.st-ng b { color: var(--ng); }
td.wrap { white-space: normal; min-width: 200px; }
.linkbtn.danger { color: var(--ng); }
table.wrapth { min-width: 720px; } table.wrapth th { white-space: normal; }
@media (max-width: 760px) { .hl { flex-wrap: wrap; } .hl .nm { width: auto; } }
/* スタッフのロール・ロールの切り替え（staff.js・common.js・FR-081・FR-083） */
.tiles2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tiles2 .tile { padding: 14px 20px; border-radius: 12px; border: 1px solid var(--border); display: flex; align-items: baseline; gap: 10px; }
.tiles2 .tile b { font-size: 28px; }
.role-sel { padding: 5px 8px; font-size: 14px; width: auto; }
.btn.danger-fill { background: var(--ng); border-color: var(--ng); color: #fff; }
@media (max-width: 760px) { .tiles2 { grid-template-columns: 1fr; } }
table.staff { min-width: 0; }
table.staff th { white-space: normal; }
table.staff td.wrap2 { min-width: 90px; }
table.staff td.wrap2 { white-space: normal; }
table.staff td.acct { overflow-wrap: anywhere; }
table.staff th.num { white-space: nowrap; }
.acts2 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; max-width: 150px; }
.acts2 .btn { white-space: nowrap; }
.nw { white-space: nowrap; }
