/* 考査時間割メーカー */
.kousa-h { margin: 0; font-size: 18px; }
.kousa-ul { margin: 4px 0 0; padding-left: 1.2em; }
.kousa-table { min-width: 520px; }
.kousa-table td, .kousa-table th { padding: 4px 5px; }
.kousa-table tr.kousa-daytop > * { border-top: 2.5px solid var(--line); }
.kousa-date { background: color-mix(in srgb, var(--yellow) 30%, var(--card)) !important; text-align: center !important; white-space: nowrap; font-size: 14px; }
.kousa-hol { display: block; color: var(--bad); font-size: 11px; }
.kousa-slot { white-space: nowrap; text-align: center !important; }
.kousa-slot b { display: block; font-size: 13px; }
.kousa-slot small { display: block; font-size: 10.5px; color: var(--ink3); }
.kousa-cellwrap { padding: 3px !important; }
.kousa-cell { position: relative; width: 100%; min-height: 50px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 6px; text-align: center; touch-action: manipulation; font: inherit; color: inherit; }
.kousa-cell .nm { font-weight: 800; font-size: 13.5px; line-height: 1.25; overflow-wrap: anywhere; }
.kousa-cell .tc { font-size: 11px; color: var(--ink2); }
.kousa-cell.w2 { background: color-mix(in srgb, var(--coral) 20%, var(--card)); }
.kousa-cell.w0 { background: color-mix(in srgb, var(--mint) 22%, var(--card)); }
.kousa-cell.empty { border-style: dashed; border-color: var(--line-soft); background: transparent; color: var(--ink3); }
.kousa-cell.sel { outline: 4px solid var(--blue); outline-offset: 1px; }
.kousa-cell.fix { border-color: var(--coral); }
.kousa-lock { position: absolute; right: 4px; bottom: 3px; width: 12px; height: 12px; color: var(--coral); }
.kousa-cell.lg { display: inline-flex; min-height: 0; width: auto; padding: 1px 10px; font-size: 12px; font-weight: 700; margin-right: 6px; }
.kousa-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.kousa-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--yellow); color: #1d2433; position: sticky; top: calc(var(--header-h, 60px) + 6px); z-index: 5; }
.kousa-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.kousa-sumcard { border: 2px solid var(--line-soft); border-radius: 12px; padding: 8px 12px; display: grid; gap: 2px; background: var(--card2); }
.kousa-dayrow { display: grid; grid-template-columns: 64px minmax(0, 170px) minmax(0, 1fr) auto auto; align-items: end; gap: 8px; padding: 8px 10px; border: 2px solid var(--line-soft); border-radius: 12px; }
.kousa-dn { align-self: center; }
.kousa-wd { align-self: center; }
@media (max-width: 640px) { .kousa-dayrow { grid-template-columns: 1fr 1fr; } .kousa-dayrow .kousa-wd { grid-column: span 2; } }
.kousa-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.kousa-time { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.kousa-skip { align-self: end; min-height: 42px; }
.kousa-subj { min-width: 900px; }
.kousa-subj td { padding: 4px; }
.kousa-subj td:first-child .input { min-width: 170px; }
.kousa-kyo { width: 80px; }
.kousa-t { width: 96px; }
.kousa-min { width: 64px; }
.kousa-ng { display: flex; flex-wrap: wrap; gap: 4px; }
.kousa-ng .chip { padding: 2px 8px; font-size: 12px; }
.kousa-paste > summary { cursor: pointer; font-weight: 800; padding: 6px 0; }
