.mont-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.mont-card{border:1px solid #ded5c8;border-radius:12px;background:#fffdf7;padding:20px;margin:18px 0;overflow-wrap:anywhere}.mont-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:26px;margin-top:24px}.mont-student{display:flex;flex-direction:column;padding:12px;border-bottom:1px solid #e3dccc;text-decoration:none;color:inherit;gap:4px}.mont-student.selected{background:#eee1cc;border-left:4px solid #963d30}.mont-student small,.mont-form .muted{color:#70675b}.mont-form fieldset{border:1px solid #ded5c8;padding:18px;margin:16px 0;border-radius:10px}.mont-form legend{font-weight:700;padding:0 8px}.mont-form label,.mont-card form>label{display:block;margin:12px 0 6px}.mont-form input:not([type=checkbox]):not([type=hidden]),.mont-form textarea,.mont-form select,.mont-card textarea,.mont-card input:not([type=checkbox]):not([type=hidden]){box-sizing:border-box;width:100%;max-width:100%;padding:10px;border:1px solid #bfb5a5;border-radius:6px;font:inherit;background:#fff}.mont-actions,.mont-toolbar,.mont-choices{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.mont-actions{background:#fffaf0;padding:14px;box-shadow:0 -2px 9px #0001;z-index:2}.mont-card pre{white-space:pre-wrap;font-size:12px}.mont-plan{display:flex;flex-wrap:wrap;gap:16px}.mont-choices{margin:12px 0}.mont-form .errorlist{color:#a02820}.mont-card summary{cursor:pointer}@media(max-width:700px){.mont-layout{grid-template-columns:1fr;gap:12px}.mont-roster{display:flex;flex-wrap:wrap;gap:6px}.mont-roster h2{width:100%}.mont-student{flex:1 1 140px;font-size:14px}.mont-cards{grid-template-columns:1fr}.mont-card{padding:14px}.mont-form fieldset{padding:12px}.mont-actions button{flex:1 1 120px}.mont-actions span{font-size:12px}}

.mont-form input[type=checkbox],.mont-card input[type=checkbox]{width:auto;display:inline-block;margin:0 8px 0 0;padding:0}.mont-form p:has(>input[type=checkbox]){display:flex;align-items:flex-start;gap:10px}.mont-form p:has(>input[type=checkbox]) label{margin:0;order:1}.mont-form p:has(>input[type=checkbox]) input{margin-top:5px;flex:none}.mont-actions .button{min-height:42px}

/* Daily snapshots share the existing weekly report's paper, rules and subject column. */
.mont-summary {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  margin: 18px 0 24px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
}
.mont-summary h2 { margin: 0; padding: 14px 10px; font-size: 16px; background: var(--surface-soft); }
.mont-summary p { margin: 0; padding: 14px; border-left: 1px solid var(--line); overflow-wrap: anywhere; }
.mont-days { display: grid; gap: 24px; margin-top: 20px; }
.mont-day { min-width: 0; }
.mont-day h3 { margin: 0 0 10px; font-size: 17px; }
.mont-day-note { margin: 0 0 10px; color: var(--muted); overflow-wrap: anywhere; }
.mont-report-table-wrap { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.mont-report-table { table-layout: fixed; }
.mont-report-table th, .mont-report-table td {
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
.mont-report-table th:first-child { width: 84px; padding-inline: 10px; border-left: 0; }
.mont-report-table thead th { border-top: 0; color: var(--muted); background: var(--surface-soft); font-size: 13px; font-weight: 800; }
.mont-report-table tbody th { background: var(--surface-soft); font-size: 15px; }
.mont-report-table td p { margin: 0; }
.mont-report-table td p + p { margin-top: 10px; }
.mont-field-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
@media (max-width: 700px) {
  .mont-summary { grid-template-columns: 80px minmax(0, 1fr); }
  .mont-summary h2, .mont-summary p { padding: 12px 10px; }
  .mont-summary h2 { font-size: 15px; }
  .mont-report-table, .mont-report-table tbody { display: block; }
  .mont-report-table thead { display: none; }
  .mont-report-table tr { display: grid; grid-template-columns: 80px minmax(0, 1fr); }
  .mont-report-table th:first-child { width: auto; grid-column: 1; grid-row: 1 / 3; }
  .mont-report-table td { grid-column: 2; min-width: 0; }
  .mont-report-table th, .mont-report-table td { padding: 12px 10px; }
  .mont-report-table tbody tr:first-child > th, .mont-report-table tbody tr:first-child > td:first-of-type { border-top: 0; }
  .mont-report-table .mont-spanning-cell { grid-row: 1 / 3; }
}

.mont-week-state h2{font-size:1.1rem;margin-top:0}.mont-week-action>label{display:flex;align-items:flex-start;gap:8px}.mont-week-action>label:has(textarea){display:block}.mont-week-action input[type=checkbox]{margin-top:5px;flex-shrink:0}.mont-card .mont-toolbar h2{margin:0}.mont-card .student-share-panel{margin:18px 0}.mont-choices>a:not(.button){padding:8px 12px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}
