/* V1.13.44 — readable home at real 100% zoom on large and smaller screens.
   Use normal page scrolling instead of shrinking forms to 9–11px or manipulating
   browser zoom. The record/data/API logic is unchanged. */
@media screen {
  #view.home-fit-view {
    width:100%!important;
    max-width:1540px!important;
    margin:16px auto 32px!important;
    padding:0 clamp(12px,2vw,30px)!important;
    font-size:15px!important;
    line-height:1.6!important;
  }
  #view.home-fit-view > .card:first-child {
    padding:16px 19px!important;
    margin-bottom:12px!important;
  }
  #view.home-fit-view .home-heading-row {padding-bottom:10px!important;gap:12px!important;}
  #view.home-fit-view .home-welcome .eyebrow {font-size:12px!important;}
  #view.home-fit-view .home-welcome h2 {font-size:20px!important;margin:2px 0 0!important;}
  #view.home-fit-view .home-heading-row .theme-toggle {font-size:13px!important;min-height:39px!important;padding:7px 12px!important;}
  #view.home-fit-view .home-summary-stats {margin:12px 0 0!important;gap:11px!important;}
  #view.home-fit-view .home-summary-stats > .stat {min-height:76px!important;padding:12px 15px!important;}
  #view.home-fit-view .home-summary-stats > .stat .muted {font-size:13px!important;line-height:1.5!important;}
  #view.home-fit-view .home-summary-stats > .stat b {font-size:26px!important;margin-top:4px!important;}
  #view.home-fit-view .audience-switch {margin:10px 0 14px!important;padding:5px!important;gap:8px!important;}
  #view.home-fit-view .audience-switch-btn {min-height:58px!important;padding:9px 12px!important;font-size:15px!important;}
  #view.home-fit-view .audience-switch-btn small {font-size:12px!important;}
  #view.home-fit-view > .audience-workspace:not([hidden]) {display:block!important;min-width:0!important;}
  #view.home-fit-view > .audience-workspace[hidden] {display:none!important;}
  #view.home-fit-view .audience-workspace-title {min-height:48px!important;padding:8px 12px!important;margin:0 0 12px!important;gap:11px!important;}
  #view.home-fit-view .audience-workspace-title > span {width:35px!important;height:35px!important;}
  #view.home-fit-view .audience-workspace-title h2 {font-size:18px!important;}
  #view.home-fit-view .audience-workspace-title p {font-size:13px!important;line-height:1.5!important;}

  /* First row: Excel + password settings, each with comfortable text/controls. */
  #view.home-fit-view .home-tools-grid {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:16px!important;
    align-items:stretch!important;
    margin:0!important;
  }
  #view.home-fit-view .home-tools-grid > .home-tool-card {min-width:0!important;margin:0!important;}
  #view.home-fit-view .tool-card-head {min-height:77px!important;padding:14px 17px!important;gap:12px!important;}
  #view.home-fit-view .tool-card-icon {width:41px!important;height:41px!important;flex:0 0 41px!important;}
  #view.home-fit-view .tool-card-icon .ui-icon {width:21px!important;height:21px!important;}
  #view.home-fit-view .tool-card-head h2 {font-size:17px!important;line-height:1.45!important;margin:0 0 3px!important;}
  #view.home-fit-view .tool-card-head p {font-size:13px!important;line-height:1.55!important;}
  #view.home-fit-view .tool-steps {gap:7px!important;margin:12px 16px!important;}
  #view.home-fit-view .tool-steps span {padding:7px 9px!important;font-size:12.5px!important;}
  #view.home-fit-view .tool-steps b {font-size:11px!important;}
  #view.home-fit-view .tool-actions-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:12px 17px!important;}
  #view.home-fit-view .tool-actions-grid .btn {min-height:44px!important;padding:9px 12px!important;font-size:13.5px!important;line-height:1.45!important;white-space:normal!important;}
  #view.home-fit-view .tool-note {font-size:12.5px!important;line-height:1.6!important;padding:10px 12px!important;margin:9px 16px 13px!important;}
  #view.home-fit-view .password-setting-box {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;padding:16px!important;}
  #view.home-fit-view .password-setting-box .field {min-width:0!important;}
  #view.home-fit-view .password-setting-box label {font-size:13.5px!important;}
  #view.home-fit-view .password-setting-box :is(input,select) {min-height:44px!important;font-size:14px!important;padding:10px 11px!important;}
  #view.home-fit-view .home-tool-card > .row {padding:0 16px 13px!important;}
  #view.home-fit-view .home-tool-card > .row .btn {min-height:42px!important;font-size:14px!important;}

  /* Second row: wide, readable input form for students AND teachers. */
  #view.home-fit-view .audience-workspace > .card {
    display:block!important;
    min-width:0!important;
    padding:19px 22px!important;
    margin:16px 0 0!important;
  }
  #view.home-fit-view .audience-workspace > .card > h2 {font-size:19px!important;margin:0 0 6px!important;}
  #view.home-fit-view .audience-workspace > .card > p.muted {font-size:13.5px!important;line-height:1.55!important;margin:0 0 9px!important;}
  #view.home-fit-view .student-create-form {margin-top:12px!important;}
  #view.home-fit-view .student-create-three-fields {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:17px!important;align-items:start!important;}
  #view.home-fit-view .student-create-three-fields .field {min-width:0!important;gap:7px!important;}
  #view.home-fit-view .student-create-three-fields label {font-size:14px!important;line-height:1.45!important;}
  #view.home-fit-view .student-create-three-fields input {min-height:46px!important;font-size:15px!important;padding:10px 12px!important;}
  #view.home-fit-view .student-create-three-fields small.muted {font-size:12px!important;line-height:1.5!important;}
  #view.home-fit-view .student-create-three-fields .phone-input-group {gap:9px!important;}
  #view.home-fit-view .student-create-three-fields .phone-input-group .btn {min-height:45px!important;padding:8px 11px!important;font-size:13px!important;white-space:normal!important;}
  #view.home-fit-view .student-name-source-note {margin-top:12px!important;padding:10px 12px!important;font-size:13px!important;line-height:1.55!important;}
  #view.home-fit-view .create-email-actions {margin-top:14px!important;}
  #view.home-fit-view .create-email-submit {min-height:46px!important;min-width:215px!important;padding:11px 22px!important;font-size:15px!important;}
  #view.home-fit-view #excelImportErrorsBox:empty,
  #view.home-fit-view #teacherExcelImportErrorsBox:empty,
  #view.home-fit-view #unifiedPasswordSettingsMessage:empty,
  #view.home-fit-view #teacherUnifiedPasswordSettingsMessage:empty,
  #view.home-fit-view #created:empty,
  #view.home-fit-view #teacherCreated:empty {display:none!important;}
}
/* The screen itself decides line wrapping — no browser zoom hacks. */
@media screen and (min-width:1500px) {
  .top .nav-primary > .btn {font-size:14px!important;min-height:42px!important;}
  .top .nav-primary .nav-print-main {font-size:14px!important;}
  #view.home-fit-view {font-size:16px!important;}
}
@media screen and (max-width:950px) {
  #view.home-fit-view .home-tools-grid {grid-template-columns:minmax(0,1fr)!important;}
  #view.home-fit-view .student-create-three-fields {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  #view.home-fit-view .student-create-three-fields .field:last-child {grid-column:1/-1!important;}
}
@media screen and (max-width:620px) {
  #view.home-fit-view {padding:0 11px!important;margin:10px auto 25px!important;}
  #view.home-fit-view > .card:first-child {padding:13px!important;}
  #view.home-fit-view .home-welcome h2 {font-size:17px!important;}
  #view.home-fit-view .home-summary-stats {gap:5px!important;}
  #view.home-fit-view .home-summary-stats > .stat {padding:9px 8px!important;min-height:70px!important;}
  #view.home-fit-view .home-summary-stats > .stat .muted {font-size:11px!important;}
  #view.home-fit-view .home-summary-stats > .stat b {font-size:23px!important;}
  #view.home-fit-view .audience-switch-btn {font-size:13px!important;}
  #view.home-fit-view .audience-switch-btn small {font-size:11px!important;}
  #view.home-fit-view .audience-workspace-title h2 {font-size:17px!important;}
  #view.home-fit-view .audience-workspace-title p {font-size:12px!important;}
  #view.home-fit-view .audience-workspace > .card {padding:16px!important;}
  #view.home-fit-view .student-create-three-fields {grid-template-columns:minmax(0,1fr)!important;}
  #view.home-fit-view .student-create-three-fields .field:last-child {grid-column:auto!important;}
  #view.home-fit-view .password-setting-box {grid-template-columns:minmax(0,1fr)!important;}
  #view.home-fit-view .tool-actions-grid {grid-template-columns:minmax(0,1fr)!important;}
}
@media screen and (max-width:390px) {
  #view.home-fit-view .home-summary-stats > .stat .muted {font-size:10.5px!important;}
  #view.home-fit-view .home-summary-stats > .stat b {font-size:21px!important;}
}
