/* 遅刻・忘れ物の記録帳 */
.chk-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.chk-tb { gap: 10px; }
.chk-tbg { display: flex; align-items: center; gap: 8px; }
.chk-date { width: auto; min-width: 150px; }
.chk-items { margin: -4px 0 12px; }
.chk-h { font-size: 15px; margin: 4px 0 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.chk-hint { margin: 8px 0 16px; }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.chk-stu { position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 4px; text-align: left; padding: 9px 10px; min-height: 64px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--sh-sm); font: inherit; color: var(--ink); cursor: pointer; transition: transform .1s, box-shadow .15s, border-color .15s; touch-action: manipulation; min-width: 0; }
.chk-stu:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.chk-stu:active { transform: scale(.97); }
.chk-stu .top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chk-stu .no { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); font-size: 12px; font-weight: 800; color: var(--ink2); }
.chk-stu .nm { font-weight: 800; font-size: 14.5px; line-height: 1.25; overflow-wrap: anywhere; }
.chk-stu .mon { font-size: 11px; color: var(--ink3); }
.chk-stu .mon:empty { display: none; }
.chk-stu .marks { display: flex; flex-wrap: wrap; gap: 3px; }
.chk-stu .marks:empty { display: none; }
.chk-stu.has { background: color-mix(in srgb, var(--yellow) 14%, var(--card)); }
.chk-stu.hot { border-color: #e08a3c; box-shadow: 0 0 0 2px color-mix(in srgb, #e08a3c 35%, transparent); }
.mk { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 1px 7px; border-radius: 99px; line-height: 1.6; white-space: nowrap; }
.mk.late { background: color-mix(in srgb, #d9773f 16%, var(--card)); color: #a8501d; }
.mk.forget { background: color-mix(in srgb, #4d7cc7 16%, var(--card)); color: #2f5fa8; }
:root[data-theme="dark"] .mk.late { color: #f2a675; } :root[data-theme="dark"] .mk.forget { color: #9fbdf2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mk.late { color: #f2a675; } :root:not([data-theme="light"]) .mk.forget { color: #9fbdf2; } }
.chk-last { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 12px; margin-bottom: 10px; border: 1px solid color-mix(in srgb, var(--ok) 30%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--ok) 7%, var(--card)); font-size: 14px; position: sticky; top: calc(var(--header-h, 60px) + 6px); z-index: 4; }
.chk-last .input { flex: 1 1 200px; min-height: 36px; }
.chk-scroll { max-height: 70vh; }
.chk-time { min-width: 96px; }
.chk-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (max-width: 720px) { .chk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chk-kpi { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--sh-sm); }
.chk-kpi .l { font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.chk-kpi b { font-size: 24px; font-family: var(--head); line-height: 1.2; }
.chk-kpi.late { border-top: 3px solid #d9773f; } .chk-kpi.forget { border-top: 3px solid #4d7cc7; }
.chk-trend { margin-bottom: 12px; }
.chk-trend ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 14px; line-height: 1.6; }
.chk-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
@media (max-width: 820px) { .chk-two { grid-template-columns: 1fr; } }
.chk-bars { display: grid; gap: 5px; margin-bottom: 10px; }
.chk-bar { display: grid; grid-template-columns: 74px minmax(0, 1fr) 48px; align-items: center; gap: 8px; font-size: 13px; }
.chk-bar .k { color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chk-bar .tr { display: flex; height: 14px; background: var(--bg2); border-radius: 7px; overflow: hidden; }
.chk-bar .b { display: block; height: 100%; transition: width .3s; }
.chk-bar .b.late { background: #d9773f; } .chk-bar .b.forget { background: #4d7cc7; }
.chk-bars.one.forget .b.late { background: #4d7cc7; }
.chk-bar .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.lg { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.lg::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.lg.late { color: #c4652f; } .lg.forget { color: #4d7cc7; }
.chk-ptable td.n { text-align: right; font-variant-numeric: tabular-nums; }
.chk-ptable td.hot { background: color-mix(in srgb, #e08a3c 18%, var(--card)); font-weight: 800; }
.chk-x { border: 0; background: none; padding: 0 0 0 2px; font-weight: 900; color: inherit; cursor: pointer; }
.chk-set .row .input { flex: 1 1 180px; }
@media (max-width: 640px) {
  .chk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .chk-stu { padding: 7px 8px; min-height: 52px; }
  .chk-stu .top { gap: 6px; }
  .chk-stu .nm { font-size: 13.5px; }
  .chk-bar { grid-template-columns: 58px minmax(0, 1fr) 42px; }
  .chk-set { grid-template-columns: 1fr; }
}
