/* 0.30.74-r1: parent homework harmony, message modal spacing, compact class messaging */
@media(max-width:760px){
  body[data-role="parent"] .parent-mobile-home .parent-child-panel .mobile-focus-grid>button[data-go="homework"]{
    background:#fffaf1!important;
    border:1px solid #efdcb2!important;
    color:#67501d!important;
    box-shadow:none!important;
  }
  body[data-role="parent"] .parent-mobile-home .parent-child-panel .mobile-focus-grid>button[data-go="homework"] small{
    color:#8b7442!important;
  }
  body[data-role="parent"] .parent-mobile-home .parent-child-panel .mobile-focus-grid>button[data-go="homework"] strong{
    color:#654b12!important;
  }
  body[data-role="parent"] .parent-mobile-home .parent-child-panel .mobile-primary-actions>button.primary[data-go="homework"]{
    background:#fff4da!important;
    border:1px solid #e8ce93!important;
    color:#865b0d!important;
    box-shadow:none!important;
  }
  body[data-role="parent"] .parent-mobile-home .parent-child-panel .mobile-primary-actions>button.primary[data-go="homework"] .app-icon,
  body[data-role="parent"] .parent-mobile-home .parent-child-panel .mobile-primary-actions>button.primary[data-go="homework"] svg{
    color:#a97315!important;
  }

  #modal .web-message-detail-head{
    padding-left:62px!important;
    min-height:52px;
    align-items:flex-start;
    box-sizing:border-box;
  }
  #modal .web-message-detail-head>.tag{
    flex:0 0 auto;
    white-space:nowrap;
    margin-top:2px;
  }
  #modal .web-message-detail>.web-message-detail-meta{
    margin-top:1px;
  }

  .message-compose-form{
    row-gap:10px!important;
  }
  .message-class-tools{
    border:1px solid #dbe8ee;
    border-radius:12px;
    background:#f7fbfc;
    padding:10px;
    display:grid;
    gap:8px;
  }
  .message-class-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .message-class-grid label{
    margin:0;
  }
  .message-class-grid select{
    min-height:39px!important;
    padding-block:7px!important;
  }
  .message-class-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px;
  }
  .message-class-actions button{
    min-height:36px!important;
    padding:7px 8px!important;
    font-size:9px!important;
  }
  .message-compose-form select[multiple]{
    min-height:150px!important;
    max-height:180px!important;
  }
  .message-compose-form .form-actions{
    margin-top:8px!important;
  }
  .message-compose-form .form-actions button{
    min-height:38px!important;
    padding:8px 14px!important;
    width:auto!important;
  }

  body[data-page="finance"] .row-actions{
    gap:5px!important;
    flex-wrap:wrap!important;
  }
  body[data-page="finance"] .row-actions button{
    min-height:32px!important;
    padding:6px 9px!important;
    font-size:8.5px!important;
  }
}
@media(max-width:390px){
  .message-class-grid{grid-template-columns:1fr}
  #modal .web-message-detail-head{padding-left:58px!important}
}

@media(max-width:760px){
  .parent-mobile-home .parent-child-panel .mobile-focus-grid>button[data-go="homework"]{
    background-color:#fffaf1!important;
    border-color:#efdcb2!important;
    color:#67501d!important;
  }
  .parent-mobile-home .parent-child-panel .mobile-primary-actions>button.primary[data-go="homework"]{
    background-color:#fff4da!important;
    border-color:#e8ce93!important;
    color:#865b0d!important;
    box-shadow:none!important;
  }
}

@media(max-width:760px){
  #content .parent-mobile-home .parent-child-panel .mobile-primary-actions>button.primary[data-go="homework"]{
    background:#fff4da!important;
    background-image:none!important;
    border:1px solid #e8ce93!important;
    color:#865b0d!important;
    box-shadow:none!important;
  }
}

/* 0.30.101 Parent Home: compact quick-access cards. The Daily Activity Report keeps its place (it is injected right before .parent-child-panels). */
.parent-mobile-home{--ph-line:#dfe8ee;--ph-ink:#1d2f40;--ph-muted:#66788a}
.parent-mobile-home .mobile-child-tabs.ph-switcher{display:flex;gap:6px;overflow-x:auto;margin:4px 0 10px;padding:0 0 2px;scrollbar-width:none}
.parent-mobile-home .mobile-child-tabs.ph-switcher::-webkit-scrollbar{display:none}
.parent-mobile-home .mobile-child-tabs.ph-switcher button{flex:0 0 auto;min-width:0;min-height:40px;padding:6px 14px;border:1px solid var(--ph-line);border-radius:999px;background:#fff;display:flex;align-items:baseline;gap:6px;text-align:right;color:var(--ph-ink)}
.parent-mobile-home .ph-switcher strong{font-size:12.5px}
.parent-mobile-home .ph-switcher small{font-size:10px;color:var(--ph-muted)}
.parent-mobile-home .ph-switcher button.active{border-color:#7fc2cf;background:#edfafd}
.ph-child{display:flex;align-items:center;gap:9px;margin:10px 0 0}
.ph-avatar{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#e8f7fa;color:#208397;font-weight:800;font-size:13px}
.ph-child strong{display:block;font-size:13px;line-height:1.5}
.ph-child small{display:block;font-size:10.5px;line-height:1.4;color:var(--ph-muted)}
.ph-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 8px;margin-top:16px}
.ph-card{position:relative;display:flex;align-items:center;gap:9px;min-height:58px;padding:8px 10px;border:1px solid var(--ph-line);border-radius:14px;background:#fff;color:var(--ph-ink);text-align:right;font:inherit;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}
.ph-card:hover{border-color:#b9cfda;box-shadow:0 2px 8px rgba(24,52,74,.07)}
.ph-card:focus-visible{outline:2px solid #7fc2cf;outline-offset:2px}
.ph-ico{flex:none;width:34px;height:34px;border-radius:11px;display:grid;place-items:center}
.ph-ico svg{width:19px;height:19px}
.ph-homework .ph-ico{background:#fff5df;color:#a06c13}
.ph-attendance .ph-ico{background:#eaf8f1;color:#27815f}
.ph-grades .ph-ico{background:#f2effc;color:#6e58a8}
.ph-messages .ph-ico{background:#fff0f4;color:#b1546a}
.ph-calendar .ph-ico{background:#eef3ff;color:#5573ad}
.ph-finance .ph-ico{background:#e8f7fa;color:#208397}
.ph-txt{min-width:0;display:grid;gap:1px}
.ph-txt strong{font-size:12.5px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ph-txt small{font-size:10.5px;line-height:1.5;color:var(--ph-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ph-badge{position:absolute;top:-11px;inset-inline-end:10px;box-sizing:content-box;min-width:18px;height:18px;padding:0 6px;border:2px solid #fff;border-radius:999px;font-size:10.5px;font-weight:800;line-height:18px;text-align:center;white-space:nowrap}
.ph-badge.tone-danger{background:#c43b3b;color:#fff}
.ph-badge.tone-warn{background:#f4c24d;color:#4a3300}
.ph-badge.tone-accent{background:#b1546a;color:#fff}
.ph-badge.tone-info{background:#dfe8f8;color:#2f4f86}
@media(min-width:640px){.ph-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:900px){.ph-card{min-height:66px;padding:10px 14px;gap:12px}.ph-ico{width:40px;height:40px;border-radius:12px}.ph-ico svg{width:22px;height:22px}.ph-txt strong{font-size:14px}.ph-txt small{font-size:12px}.ph-badge{font-size:11.5px;min-width:20px;height:20px;line-height:20px}.ph-child strong{font-size:14px}}
/* 0.30.101 Term control: one manager area on the evaluations page; teachers get a quiet one-line status. */
.term-control{margin:12px 0;padding:14px 16px;border:1px solid #dfe8ee}
.term-control-main{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.term-control-info small{display:block;font-size:11px;color:#66788a}
.term-control-info h3{margin:2px 0 8px;font-size:16px;color:#1d2f40}
.term-chips{display:flex;gap:8px;flex-wrap:wrap}
.term-chip{display:inline-flex;align-items:baseline;gap:6px;padding:4px 11px;border-radius:999px;border:1px solid #dfe8ee;background:#fff;font-size:12px}
.term-chip small{font-size:10.5px;color:#66788a}
.term-chip.status-open{background:#eaf8f1;border-color:#bfe3d0;color:#27815f}.term-chip.status-open small{color:#27815f}
.term-chip.status-closed{background:#f1f4f7;color:#556575}
.term-chip.status-not_started{background:#fff;color:#8a98a6;border-style:dashed}
.term-hint{margin:8px 0 0;font-size:12px;color:#8a5a00;background:#fff6e0;border-radius:10px;padding:6px 10px}
.term-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.term-actions .term-reopen{font-size:11.5px;color:#7a8896;text-decoration:underline;background:none;border:0;padding:6px 4px}
.term-note{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:10px 0;padding:8px 12px;border-radius:12px;background:#f3f8fa;border:1px solid #e1ecf0}
.term-note strong{font-size:13px;color:#1d2f40}.term-note small{font-size:11.5px;color:#66788a}
.term-consequences{margin:0 0 4px;padding:0 18px 0 0;display:grid;gap:8px;font-size:13px;line-height:1.9;color:#33475a}
.term-readonly-note{margin-bottom:10px}
@media(max-width:600px){.term-control{padding:12px}.term-actions{width:100%}.term-actions .primary{flex:1;min-height:44px}}.term-static-value{display:flex;align-items:center;min-height:48px;padding:0 14px;border-radius:12px;background:#eaf8f1;border:1px solid #bfe3d0;color:#27815f;font-weight:700;font-size:14px}
@media(max-width:600px){.term-note{gap:2px 10px;padding:7px 12px}.term-control-info h3{font-size:15px}}