/* 朝の健康観察フォーム＋保健室報告 */
.kkf-toolbar { gap: 8px; flex-wrap: wrap; }
.kkf-privacy { margin-top: 12px; }
.kkf-pnote ul { margin: 6px 0 4px; padding-left: 1.2em; display: grid; gap: 4px; }
.kkf-pnote p { margin: 4px 0 0; }
.kkf-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 16px; align-items: start; margin-top: 14px; }
@media (max-width: 960px) { .kkf-layout { grid-template-columns: 1fr; } }
.kkf-main { display: grid; gap: 16px; min-width: 0; }
.kkf-side { position: sticky; top: calc(var(--header-h) + 10px); min-width: 0; }
@media (max-width: 960px) { .kkf-side { position: static; } }
.kkf-card { padding: 16px 18px; min-width: 0; }
.kkf-card + .kkf-card { margin-top: 0; }
.kkf-h { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 10px; }
.kkf-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 13px; font-weight: 900; flex: none; }
.kkf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; align-items: end; margin-bottom: 10px; }
.kkf-items { display: grid; gap: 8px; }
.kkf-item { border: 1px solid var(--line-soft); border-radius: 12px; padding: 8px 10px; background: var(--card); }
.kkf-item.off { background: var(--bg2); }
.kkf-item.off .kkf-ititle { opacity: .55; }
.kkf-ihead { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.kkf-ihead input[type='checkbox'] { width: 18px; height: 18px; }
.kkf-lock { color: var(--ink3); display: inline-grid; place-items: center; }
.kkf-lock .i { width: 16px; height: 16px; }
.kkf-ititle { padding: 6px 8px; font-size: 14.5px; font-weight: 700; min-width: 0; }
.kkf-w { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; font-weight: 700; }
.kkf-w.low { background: color-mix(in srgb, var(--ok) 14%, var(--card)); color: var(--ink); }
.kkf-w.mid { background: color-mix(in srgb, var(--warn) 16%, var(--card)); color: var(--ink); }
.kkf-w.high { background: color-mix(in srgb, var(--bad) 16%, var(--card)); color: var(--ink); }
.kkf-why { margin: 4px 0 0 30px; color: var(--ink2); }
.kkf-opts { margin: 6px 0 0 30px; }
.kkf-opts summary { cursor: pointer; color: var(--ink2); }
.kkf-opts textarea { margin-top: 6px; width: 100%; font-size: 14px; }
@media (max-width: 560px) {
  .kkf-ihead { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .kkf-ihead .kkf-w { grid-column: 2; justify-self: start; }
  .kkf-why, .kkf-opts { margin-left: 0; }
}
.kkf-groups { width: 100%; font-size: 14px; line-height: 1.6; }
.kkf-gsum { gap: 6px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.kkf-gsum .chip { cursor: default; }
/* プレビュー */
.kkf-pvhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.kkf-pvhead .kkf-h { margin: 0; }
.kkf-phone { border: 1px solid var(--line-soft); border-radius: 22px; padding: 12px; background: color-mix(in srgb, #673ab7 7%, var(--bg2)); max-height: 720px; overflow: auto; display: grid; gap: 8px; }
.kkf-fhead { background: var(--card); border-radius: 10px; border-top: 8px solid #673ab7; padding: 10px 12px; }
.kkf-fhead b { font-size: 16px; line-height: 1.4; display: block; }
.kkf-fhead p { font-size: 12.5px; color: var(--ink2); white-space: pre-wrap; margin: 6px 0 0; line-height: 1.6; }
.kkf-q { background: var(--card); border-radius: 10px; padding: 10px 12px; }
.kkf-qt { font-size: 14px; font-weight: 600; }
.kkf-qh { font-size: 12px; color: var(--ink2); margin-top: 3px; }
.kkf-sel { margin-top: 8px; border: 1px solid var(--line-soft); border-radius: 6px; padding: 6px 10px; font-size: 13px; color: var(--ink3); display: flex; justify-content: space-between; max-width: 180px; }
.kkf-radios { margin-top: 6px; display: grid; gap: 5px; font-size: 13px; }
.kkf-radios i { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--ink3); border-radius: 50%; margin-right: 8px; vertical-align: -2px; }
.kkf-line { margin-top: 10px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink3); padding-bottom: 3px; max-width: 70%; }
.kkf-line.para { max-width: 100%; }
.kkf-send { justify-self: start; background: #673ab7; color: #fff; border-radius: 6px; padding: 6px 18px; font-size: 13px; font-weight: 700; }
.kkf-sheet { display: grid; gap: 10px; }
.kkf-sheet p { margin: 0; }
.kkf-mtable { font-size: 12.5px; }
.kkf-mtable th, .kkf-mtable td { padding: 4px 6px; text-align: center; white-space: nowrap; }
.kkf-mtable td.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); }
.kkf-mtable td.bad { background: color-mix(in srgb, var(--bad) 16%, transparent); font-weight: 700; }
/* 図解 */
.kkf-flowwrap { overflow-x: auto; margin: 4px 0 10px; }
.kkf-flow { width: 100%; min-width: 560px; height: auto; display: block; font-family: var(--font); }
.kkf-flow .bx { fill: var(--card2); stroke: var(--line-soft); stroke-width: 1.2; }
.kkf-flow .nb { fill: var(--coral); }
.kkf-flow .nt { font-size: 13px; font-weight: 900; fill: #fff; }
.kkf-flow .tt { font-size: 15px; font-weight: 800; fill: var(--ink); }
.kkf-flow .ts { font-size: 12px; fill: var(--ink2); }
.kkf-flow .ar { fill: none; stroke: var(--ink3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kkf-how h3 { font-size: 15px; margin: 0 0 6px; }
.kkf-how { gap: 18px; }
#app > .card.kkf-card { margin-top: 16px; }
.kkf-req { color: var(--bad); }
.kkf-chk { align-items: flex-start; gap: 8px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--card2); margin-top: 10px; }
.kkf-chk small { display: block; font-size: 12px; }
.kkf-hmrow { gap: 6px; flex-wrap: nowrap; }
.kkf-hm { width: auto; min-width: 6em; }
.kkf-radios.sq i { border-radius: 3px; }
.kkf-report { display: grid; gap: 10px; }
.kkf-report p { margin: 0; }
.kkf-rhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.kkf-rhead span { font-size: 12.5px; color: var(--ink2); }
.kkf-big { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.kkf-big > div { border: 1px solid var(--line-soft); border-radius: 10px; padding: 6px 8px; background: var(--card2); display: grid; min-width: 0; }
.kkf-big small { font-size: 11px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kkf-big b { font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kkf-big > .warn { background: color-mix(in srgb, var(--warn) 10%, var(--card)); }
.kkf-big > .bad { background: color-mix(in srgb, var(--bad) 9%, var(--card)); }
.kkf-h3 { font-size: 14px; margin: 4px 0 0; }
.kkf-bars { display: grid; gap: 4px; }
.kkf-barrow { display: grid; grid-template-columns: 8.5em minmax(0, 1fr) 2em; gap: 8px; align-items: center; font-size: 12.5px; }
.kkf-barrow b { text-align: right; font-variant-numeric: tabular-nums; }
.kkf-bar { height: 10px; border-radius: 5px; background: var(--bg2); overflow: hidden; }
.kkf-bar i { display: block; height: 100%; background: color-mix(in srgb, var(--coral) 60%, var(--card)); border-radius: 5px; }
.kkf-how > div { min-width: 0; }
