/* Group status cards and teacher-only system panels; existing base styles remain. */
body { min-width: 320px; }
.app-shell { grid-template-columns: 280px minmax(0, 1fr); }
.workspace-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 4px 20px 10px; }
.group-status-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; display: flex; flex-direction: column; }
.group-status-card header { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.workspace-identity { display: flex; align-items: center; gap: 10px; }
.workspace-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-dark); font-weight: 750; }
.workspace-identity h3 { margin: 0 0 4px; font-size: 16px; color: var(--navy); }
.workspace-identity div > span { color: #607781; font-size: 11px; }
.group-status-card .state { font-size: 11px !important; white-space: normal; line-height: 1.6; }
.group-status-card .state i { flex: 0 0 7px; }
.workspace-members { min-height: 60px; color: #304b57; font-size: 13px; line-height: 1.7; margin: 16px 0; overflow-wrap: anywhere; }
.workspace-members > span { display: block; color: #657984; font-size: 11px; margin-bottom: 3px; }
.workspace-kpi { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid #edf1f2; }
.workspace-kpi strong { display: block; font-size: 27px; color: var(--navy); }
.workspace-kpi div > span { color: #657984; font-size: 11px; display: block; line-height: 1.6; }
.group-status-card .service-lamps { min-width: 0; margin: 2px 0 12px; }
.group-status-card .lamp-item { font-size: 11px; }
.workspace-progress { padding-top: 12px; border-top: 1px solid #edf1f2; }
.workspace-progress > span { display: block; color: #657984; font-size: 11px; }
.workspace-progress .progress-editor { margin: 4px 0 0; max-width: 100%; }
.workspace-progress .restricted-progress { font-size: 12px; color: #607781; }
.workspace-progress .row-progress strong { font-size: 12px; }
.workspace-observed { color: #657984; font-size: 11px; line-height: 1.6; margin: 10px 0 14px; }
.workspace-actions { display: grid; gap: 8px; margin-top: auto; }
.workspace-actions .group-login, .workspace-actions .group-manage, .workspace-project { width: 100%; min-width: 0; font-size: 12px; line-height: 1.6; padding: 9px; text-align: center; border-radius: 7px; }
.workspace-project { display: block; border: 1px solid #d7e1e4; color: #3c5964; text-decoration: none; }
.workspace-project:hover { background: #f3f8f8; border-color: var(--teal); }
.workspace-roster-note { margin: 0 20px 16px; color: #8c4c1d; font-size: 12px; line-height: 1.7; }
.all-groups-panel > .public-note { font-size: 11px; line-height: 1.8; }
.system-panel .panel-heading p { font-size: 13px; line-height: 1.7; }
.system-source { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 18px; color: #607781; font-size: 12px; }
.system-source .state { font-size: 12px !important; }
.system-source button { margin-left: auto; }
.system-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.system-metric, .system-load, .system-policy { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: #fbfcfc; min-width: 0; }
.system-panel h3 { margin: 0 0 8px; color: var(--navy); font-size: 16px; }
.system-metric p, .system-load p, .system-policy p { color: #607781; font-size: 12px; line-height: 1.7; margin: 6px 0; }
.system-value { display: block; font-size: 30px; color: var(--navy); margin: 18px 0 10px; overflow-wrap: anywhere; }
.system-value small { font-size: 12px; font-weight: 500; margin-left: 10px; color: #657984; }
.system-meter { height: 8px; background: #e6edef; border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.system-meter i { display: block; height: 100%; background: #278e91; }
.system-metric[data-state="warning"] .system-meter i { background: #b5801e; }
.system-metric[data-state="danger"] .system-meter i { background: #b95845; }
.system-metric[data-state="unknown"] .system-value { color: #71828b; }
.system-metric dl, .system-load dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.system-metric dt, .system-load dt { font-size: 12px; color: #657984; }
.system-metric dd, .system-load dd { margin: 6px 0 0; font-size: 16px; color: var(--navy); overflow-wrap: anywhere; }
.system-metric .system-warning { color: #8c4c1d; margin-top: 14px; }
.system-load { margin-top: 16px; }
.system-load dl { margin: 16px 0; }
.system-load dd { font-size: 24px; }
.system-scope { color: #607781; font-size: 12px; line-height: 1.8; margin: 16px 0; overflow-wrap: anywhere; }
.system-settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.capability-table { font-size: 13px; }
.capability-table th, .capability-table td { padding: 12px; }
.capability-table tbody th { background: #fff; border-top: 1px solid #edf1f2; color: #304b57; }
.capability-table .state { font-size: 12px !important; }
.system-policy ul { margin: 12px 0; padding-left: 20px; color: #48606b; font-size: 13px; line-height: 1.8; }
.system-policy li + li { margin-top: 8px; }
@media (max-width: 1100px) { .system-settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 1280px) { .app-shell { grid-template-columns: 240px minmax(0, 1fr); } }
@media (max-width: 1199px) { .workspace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .app-shell { display: block; } }
@media (max-width: 650px) {
  .workspace-grid { grid-template-columns: 1fr; padding: 4px 14px 10px; }
  .system-metrics { grid-template-columns: 1fr; }
  .system-source button { margin-left: 0; }
  .system-metric, .system-load, .system-policy { padding: 14px; }
  .system-metric dl, .system-load dl { gap: 8px; }
}
