.home,
    .module-home {
      min-height: 100vh;
      background: #f6f9fd;
      color: #203247;
      display: block;
    }

    .commerce-topbar {
      background: #fff;
      border-bottom: 1px solid #e7edf4;
    }

    .commerce-top-inner {
      max-width: 1180px;
      margin: 0 auto;
      min-height: 82px;
      display: grid;
      grid-template-columns: auto 1fr;
      align-items: center;
      gap: 24px;
      padding: 0 20px;
    }

    .commerce-brand {
      display: flex;
      align-items: center;
      gap: 11px;
      color: #1292e6;
      font-size: 24px;
      font-weight: 800;
      white-space: nowrap;
    }

    .commerce-logo {
      width: 236px;
      height: 70px;
      object-fit: contain;
      object-position: left center;
      display: block;
    }

    .commerce-school-title {
      justify-self: end;
      color: #203247;
      font-weight: 900;
      text-align: right;
    }

    .commerce-school-title span {
      display: block;
      color: #7a8ca0;
      font-size: 12px;
      font-weight: 800;
      margin-top: 3px;
    }

    .profile-search {
      grid-column: 1 / -1;
      margin: 0 0 10px;
    }

    .profile-search input {
      width: 100%;
      min-height: 38px;
      border: 1px solid #dce3ee;
      border-radius: 7px;
      padding: 0 11px;
      background: #fbfdff;
      color: #203247;
      font-size: 13px;
    }

    .commerce-menubar {
      background: #fff;
      border-bottom: 1px solid #e7edf4;
    }

    .commerce-menu-inner {
      max-width: 1180px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 252px 1fr;
      align-items: stretch;
      padding: 0 20px;
    }

    .commerce-category-head {
      height: 54px;
      width: 100%;
      border: 0;
      background: #1292e6;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 13px;
      padding: 0 22px;
      font-size: 13px;
      font-family: inherit;
      font-weight: 800;
      text-transform: uppercase;
      cursor: default;
    }

    button.commerce-category-head {
      cursor: pointer;
    }

    .commerce-shell {
      max-width: 1180px;
      margin: 0 auto;
      padding: 0 20px 34px;
      display: grid;
      grid-template-columns: 252px minmax(0, 1fr);
      align-items: start;
    }

    .home main.commerce-shell,
    .module-home main.commerce-shell {
      padding: 0 0 34px;
      gap: 0;
      align-content: start;
    }

    .commerce-side {
      background: #fff;
      box-shadow: 0 10px 20px rgba(31, 53, 79, .08);
      align-self: start;
      z-index: 2;
    }

    .commerce-side-title {
      min-height: 42px;
      display: flex;
      align-items: center;
      padding: 0 22px;
      border-bottom: 1px solid #e7edf4;
      color: #7a8ca0;
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .home .profiles {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0;
      max-height: none;
      overflow: visible;
    }

    .home .card,
    .module-home .module-card {
      border-radius: 0;
      border: 0;
      border-bottom: 1px solid #e7edf4;
      box-shadow: none;
      background: #fff;
    }

    .home .card {
      min-height: 48px;
      grid-template-columns: 32px 1fr auto;
      gap: 10px;
      padding: 8px 16px;
    }

    .home .card:hover,
    .module-home .module-card:hover {
      background: #f8fbff;
      color: #1292e6;
    }

    .home .card.admin {
      background: #fff8df;
    }

    .home .avatar {
      width: 30px;
      height: 30px;
      background: #dff4f1;
      color: #14b8a6;
      font-size: 11px;
    }

    .home .name {
      font-size: 13px;
    }

    .home .role {
      font-size: 11px;
    }

    .commerce-content {
      min-width: 0;
    }

    .commerce-hero {
      min-height: 344px;
      position: relative;
      overflow: hidden;
      display: grid;
      grid-template-columns: minmax(260px, 1fr) 420px;
      align-items: center;
      padding: 42px 56px;
      background:
        linear-gradient(120deg, rgba(255,255,255,.94), rgba(239,248,255,.82)),
        linear-gradient(135deg, transparent 0 42%, rgba(18,146,230,.09) 42% 43%, transparent 43% 100%),
        linear-gradient(45deg, transparent 0 47%, rgba(20,184,166,.12) 47% 48%, transparent 48% 100%),
        #eaf5fd;
      border-bottom: 1px solid #e7edf4;
    }

    .commerce-hero h2 {
      margin: 0;
      color: #6e9cbd;
      font-weight: 500;
      font-size: 42px;
      line-height: 1.12;
      text-transform: uppercase;
      max-width: 560px;
    }

    .commerce-hero p {
      margin: 18px 0 0;
      color: #31445a;
      font-size: 16px;
      line-height: 1.6;
      max-width: 540px;
    }

    .commerce-meta {
      margin-top: 26px;
      display: flex;
      align-items: center;
      gap: 18px;
      color: #7a8ca0;
      font-size: 15px;
    }

    .commerce-meta strong {
      color: #db2777;
      font-size: 25px;
      font-weight: 600;
    }

    .commerce-primary {
      margin-top: 22px;
      height: 46px;
      padding: 0 28px;
      border: 0;
      border-radius: 3px;
      background: #1292e6;
      color: #fff;
      font-weight: 800;
      font-size: 13px;
      cursor: pointer;
      box-shadow: 0 8px 18px rgba(18, 146, 230, .22);
    }

    .commerce-device {
      justify-self: center;
      width: 250px;
      height: 302px;
      background: #fff;
      border: 10px solid #dfe8f1;
      border-radius: 28px;
      transform: rotate(22deg);
      box-shadow: 0 14px 38px rgba(31, 53, 79, .13);
      padding: 22px;
    }

    .commerce-screen {
      height: 100%;
      background: #f8fbff;
      border-radius: 15px;
      padding: 20px 14px;
      transform: rotate(-22deg);
      display: grid;
      align-content: start;
      gap: 13px;
    }

    .commerce-row {
      height: 13px;
      border-radius: 999px;
      background: #d7e8f5;
    }

    .commerce-row.short {
      width: 58%;
      background: #bfe8e3;
    }

    .commerce-screen-card {
      height: 62px;
      border-radius: 8px;
      background: #fff;
      border: 1px solid #e3edf7;
      display: grid;
      grid-template-columns: 42px 1fr;
      align-items: center;
      gap: 10px;
      padding: 10px;
    }

    .commerce-dot {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: linear-gradient(135deg, #1292e6, #db2777);
    }

    .ig-workflow {
      justify-self: stretch;
      display: grid;
      grid-template-columns: minmax(180px, 240px) minmax(230px, 1fr);
      align-items: center;
      gap: 20px;
    }

    .ig-phone {
      width: 210px;
      min-height: 286px;
      justify-self: center;
      border: 10px solid #dfe8f1;
      border-radius: 28px;
      background: #fff;
      box-shadow: 0 14px 38px rgba(31, 53, 79, .13);
      overflow: hidden;
    }

    .ig-phone-head {
      height: 42px;
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 0 12px;
      border-bottom: 1px solid #e7edf4;
      color: #203247;
      font-size: 12px;
      font-weight: 800;
    }

    .ig-mini-avatar {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: linear-gradient(135deg, #1292e6, #db2777);
    }

    .ig-video {
      height: 128px;
      margin: 12px;
      border-radius: 8px;
      background:
        linear-gradient(135deg, rgba(18,146,230,.2), rgba(219,39,119,.22)),
        linear-gradient(45deg, #dbeafe, #f8fbff);
      position: relative;
      overflow: hidden;
    }

    .ig-video::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-40%, -50%);
      border-left: 28px solid rgba(255,255,255,.92);
      border-top: 18px solid transparent;
      border-bottom: 18px solid transparent;
      filter: drop-shadow(0 4px 8px rgba(31,53,79,.18));
    }

    .org-timeline {
      background:
        linear-gradient(#eef8ff 0 0) 16px 18px / 68% 10px no-repeat,
        linear-gradient(#d8f1ee 0 0) 16px 48px / 82% 10px no-repeat,
        linear-gradient(#fef3c7 0 0) 16px 78px / 56% 10px no-repeat,
        linear-gradient(135deg, #f8fbff, #e8f6ff);
    }

    .org-timeline::after {
      display: none;
    }

    .ig-post-lines {
      display: grid;
      gap: 8px;
      padding: 0 12px 14px;
    }

    .ig-post-lines span {
      height: 9px;
      border-radius: 999px;
      background: #d7e8f5;
    }

    .ig-post-lines span:nth-child(2) {
      width: 72%;
      background: #bfe8e3;
    }

    .ig-publisher {
      background: rgba(255,255,255,.88);
      border: 1px solid #e3edf7;
      box-shadow: 0 12px 32px rgba(31, 53, 79, .1);
      padding: 18px;
    }

    .ig-publisher-label {
      margin: 0 0 10px;
      color: #1292e6;
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .ig-publisher h3 {
      margin: 0 0 10px;
      color: #203247;
      font-size: 20px;
      line-height: 1.25;
    }

    .ig-caption-box {
      margin: 12px 0;
      padding: 12px;
      border-left: 4px solid #1292e6;
      background: #f8fbff;
      color: #31445a;
      font-size: 13px;
      line-height: 1.45;
    }

    .ig-publisher-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 12px 0 14px;
    }

    .ig-chip {
      border-radius: 999px;
      background: #eef8ff;
      color: #0b6fb5;
      border: 1px solid #b6dff8;
      padding: 6px 10px;
      font-size: 11px;
      font-weight: 800;
    }

    .ig-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .ig-actions button {
      min-height: 38px;
      border: 1px solid #d7e8f5;
      background: #fff;
      color: #203247;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
    }

    .ig-actions button.primary {
      background: #1292e6;
      color: #fff;
      border-color: #1292e6;
    }

    .commerce-modules {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 18px;
      padding: 28px 0 0;
    }

    .commerce-module {
      background: #fff;
      border: 1px solid #e7edf4;
      min-height: 132px;
      padding: 20px;
      box-shadow: 0 9px 22px rgba(31, 53, 79, .06);
    }

    .commerce-module h3 {
      margin: 0 0 8px;
      font-size: 16px;
      color: #203247;
    }

    .commerce-module p {
      margin: 0;
      color: #7a8ca0;
      font-size: 13px;
      line-height: 1.5;
    }

    .commerce-module-icon {
      width: 42px;
      height: 42px;
      border-radius: 6px;
      display: grid;
      place-items: center;
      color: #fff;
      font-size: 18px;
      font-weight: 900;
      background: #1292e6;
      margin-bottom: 14px;
    }

    .commerce-module:nth-child(2) .commerce-module-icon { background: #14b8a6; }
    .commerce-module:nth-child(3) .commerce-module-icon { background: #db2777; }
    .commerce-module:nth-child(4) .commerce-module-icon { background: #f59e0b; }

    .module-home .commerce-shell {
      grid-template-columns: 1fr;
      gap: 0;
      max-width: 1240px;
      padding-top: 10px;
      position: relative;
    }

    .module-home .commerce-side {
      display: none;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      align-items: stretch;
      order: 1;
      box-shadow: none;
      border: 0;
      background: transparent;
      margin-bottom: 8px;
    }

    .module-home.tools-open .commerce-side {
      display: grid;
      position: absolute;
      top: 10px;
      left: 0;
      right: 0;
      z-index: 45;
      border: 1px solid #d7e4ef;
      background: #fff;
      box-shadow: 0 18px 35px rgba(31, 53, 79, .16);
    }

    .module-home .commerce-side-title {
      grid-column: 1 / -1;
      min-height: 34px;
      background: #1292e6;
      color: #fff;
      padding: 0 14px;
      font-size: 11px;
    }

    .module-home .commerce-side .module-card {
      width: 100%;
      min-height: 58px;
      grid-template-columns: 34px 1fr;
      grid-template-rows: auto;
      align-items: center;
      padding: 8px 10px;
      border: 0;
      border-right: 1px solid #e7edf4;
      border-bottom: 1px solid #e7edf4;
      background: #fff;
    }

    .module-home .module-card .module-icon {
      width: 34px;
      height: 34px;
      border-radius: 6px;
      background: #1292e6;
      font-size: 11px;
      color: #fff;
    }

    .module-home .module-card .logo-module-icon {
      background: #ffffff;
      border: 1px solid #d9e8f5;
      box-shadow: inset 0 0 0 1px rgba(31, 78, 121, .04);
      overflow: hidden;
    }

    .module-home .module-card .logo-module-icon img {
      width: 28px;
      height: 28px;
      object-fit: contain;
      display: block;
    }

    .global-logo-admin-active {
      cursor: pointer;
      outline: 2px dashed transparent;
      outline-offset: 4px;
      border-radius: 8px;
      transition: outline-color .15s ease, filter .15s ease;
    }

    .global-logo-admin-active:hover,
    .global-logo-admin-active:focus-visible {
      outline-color: #1292e6;
      filter: drop-shadow(0 8px 14px rgba(18, 146, 230, .18));
    }

    .module-home .module-card h3 {
      color: #203247;
      font-size: 12px;
    }

    .module-home .module-card p {
      display: none;
    }

    .module-home .module-card .arrow {
      display: none;
    }

    .module-home .commerce-content {
      display: contents;
    }

    .module-home .commerce-topbar {
      border-bottom: 4px solid #111;
      position: sticky;
      top: 0;
      z-index: 60;
    }

    .module-home .commerce-top-inner {
      max-width: 1240px;
      min-height: 132px;
      grid-template-columns: 260px 1fr auto;
      grid-template-areas:
        "brand profile switch"
        "quick . switch";
      gap: 16px;
      row-gap: 10px;
      align-content: center;
      padding-left: 0;
      padding-right: 0;
    }

    .module-home .commerce-brand {
      grid-area: brand;
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 10px;
      align-items: center;
      justify-self: start;
      min-width: 0;
    }

    .module-home .profile-name-panel {
      grid-area: profile;
    }

    .module-home #moduleBackHomeBtn {
      min-width: 156px;
    }

    .staff-top-actions {
      grid-area: quick;
      justify-self: start;
      align-self: start;
      display: grid;
      grid-template-columns: repeat(3, minmax(150px, 1fr));
      gap: 10px;
      align-items: center;
      width: min(100%, 560px);
    }

    .staff-top-actions.word-review-admin-active {
      grid-template-columns: repeat(4, minmax(132px, 1fr));
      width: min(100%, 720px);
    }

    .profile-top-actions {
      grid-area: switch;
      justify-self: end;
      align-self: center;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      justify-content: flex-end;
    }

    .staff-logout-top {
      border: 1px solid #f2b8b5;
      border-radius: 999px;
      background: #fff5f5;
      color: #b42318;
      padding: 11px 18px;
      font-size: 13px;
      font-weight: 900;
      cursor: pointer;
      box-shadow: 0 8px 18px rgba(180, 35, 24, .08);
    }

    .staff-visual-top {
      min-height: 62px;
      border: 1px solid #c9ddf0;
      border-radius: 12px;
      background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
      color: #123d63;
      padding: 9px 11px;
      font-size: 13px;
      font-weight: 900;
      cursor: pointer;
      box-shadow: 0 10px 22px rgba(31, 78, 121, .12);
      display: grid;
      grid-template-columns: 38px 1fr;
      gap: 9px;
      align-items: center;
      text-align: left;
    }

    .staff-notes-top {
      background: linear-gradient(180deg, #ffffff 0%, #f2fbf7 100%);
      border-color: #bfe3d1;
      color: #14532d;
    }

    .staff-activities-top {
      background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
      border-color: #fed7aa;
      color: #7c2d12;
    }

    .staff-word-review-top {
      background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
      border-color: #c7d2fe;
      color: #1e1b4b;
    }

    .staff-visual-icon {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      background: #ffffff;
      box-shadow: inset 0 0 0 1px rgba(18, 61, 99, .08);
    }

    .staff-visual-icon svg {
      width: 28px;
      height: 28px;
      display: block;
    }

    .staff-visual-label {
      display: grid;
      line-height: 1.15;
    }

    .staff-logout-top:hover,
    .staff-logout-top:focus-visible,
    .staff-visual-top:hover,
    .staff-visual-top:focus-visible {
      transform: translateY(-1px);
    }

    .staff-visual-top:hover,
    .staff-visual-top:focus-visible {
      background: #dff0ff;
      border-color: #1292e6;
      outline: none;
    }

    .staff-notes-top:hover,
    .staff-notes-top:focus-visible {
      background: #dff0ff;
      border-color: #1292e6;
    }

    .staff-activities-top:hover,
    .staff-activities-top:focus-visible {
      background: #fff2de;
      border-color: #fb923c;
    }

    .staff-word-review-top:hover,
    .staff-word-review-top:focus-visible {
      background: #e0e7ff;
      border-color: #6366f1;
    }


    .module-home .commerce-logo {
      width: 64px;
      height: 58px;
      object-fit: contain;
      object-position: left center;
    }

    .commerce-school-copy {
      display: grid;
      gap: 2px;
      color: #103c63;
      line-height: 1.08;
      min-width: 0;
    }

    .commerce-school-copy strong {
      font-size: 13px;
      font-weight: 800;
      white-space: nowrap;
    }

    .commerce-school-copy em {
      color: #4a5568;
      font-size: 11px;
      font-style: italic;
      white-space: nowrap;
    }

    .home .commerce-brand {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 10px;
      align-items: center;
      justify-self: start;
      min-width: 0;
    }

    .home .commerce-logo {
      width: 64px;
      height: 58px;
      object-fit: contain;
      object-position: left center;
    }

    .module-profile-banner {
      display: none;
    }

    .module-profile-banner h2 {
      margin: 0;
      color: #1f4e79;
      font-size: 20px;
      font-weight: 800;
      line-height: 1.25;
      text-transform: none;
    }

    .module-profile-banner p,
    .module-profile-banner .commerce-meta {
      display: none;
    }

    .profile-name-panel {
      min-height: 44px;
      display: grid;
      place-items: center;
      border: 1px solid #d9e8f5;
      border-radius: 8px;
      background: #f8fbff;
      box-shadow: inset 0 0 0 1px rgba(31, 78, 121, .04);
    }

    .profile-name-panel span {
      color: #1f4e79;
      font-size: 20px;
      font-weight: 800;
      text-transform: none;
      line-height: 1.1;
    }

    .module-general-apps {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 10px;
      min-height: 58px;
      padding: 0 18px 0 8px;
      background: #fff;
      color: #244665;
      font-size: 13px;
      font-weight: 800;
      flex: 1 1 auto;
    }

    .commerce-nav-main {
      position: relative;
      display: flex;
      align-items: stretch;
      justify-content: flex-end;
      gap: 10px;
      min-width: 0;
      background: #fff;
    }

    .module-home .commerce-menubar {
      position: sticky;
      top: 68px;
      z-index: 55;
      border-bottom: 2px solid #111;
    }

    .module-home .commerce-menu-inner {
      max-width: 1240px;
      padding-left: 0;
      padding-right: 0;
    }

    .module-home .module-main {
      max-width: 1240px;
    }

    .module-general-apps button {
      border: 1px solid transparent;
      border-radius: 999px;
      background: transparent;
      color: #244665;
      cursor: pointer;
      padding: 8px 12px;
      font-weight: 800;
      letter-spacing: 0;
      transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
    }

    .module-general-apps button:hover,
    .module-general-apps button:focus-visible {
      border-color: #c7d7e8;
      background: #eef7ff;
      color: #0f4f7a;
      outline: none;
    }

    .module-general-apps button.active {
      border-color: #1292e6;
      background: #1292e6;
      color: #fff;
      font-weight: 900;
      box-shadow: 0 6px 14px rgba(18, 146, 230, .18);
    }

    .module-home .commerce-hero {
      min-height: auto;
      padding: 0;
      background: transparent;
      border: 0;
    }

    .module-home .commerce-hero h2 {
      font-size: 22px;
    }

    .module-home .quick-tools,
    .module-home .module-grid {
      display: contents;
    }

    .module-home .quick-tools.hidden {
      display: none;
    }

    .module-home .profile-calendar {
      margin-top: 0;
      border-radius: 0;
      border-color: #e7edf4;
      box-shadow: 0 9px 22px rgba(31, 53, 79, .06);
      min-height: calc(100vh - 190px);
      order: 1;
    }

    .module-home .profile-calendar-head {
      padding: 12px 14px;
      background: #fff;
    }

    .module-home .profile-calendar-head h3 {
      color: #203247;
      font-size: 18px;
    }

    .module-home .profile-calendar-actions {
      gap: 6px;
    }

    .module-home .profile-calendar-actions button {
      border-radius: 3px;
      min-height: 30px;
      padding: 0 10px;
      font-size: 11px;
    }

    @media (max-width: 900px) {
      html,
      body {
        max-width: 100%;
        overflow-x: hidden;
      }

      .commerce-top-inner {
        grid-template-columns: 1fr;
        padding: 18px 20px;
      }

      .commerce-menu-inner,
      .commerce-shell,
      .home main.commerce-shell,
      .module-home main.commerce-shell {
        grid-template-columns: 1fr;
      }

      .commerce-category-head {
        display: none;
      }

      .module-home .commerce-category-head {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        margin: 10px 12px;
      }

      .commerce-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .commerce-side-title {
        grid-column: 1 / -1;
      }

      .home .profiles {
        grid-column: 1 / -1;
        max-height: none;
      }

      .commerce-hero,
      .module-home .commerce-hero {
        grid-template-columns: 1fr;
        padding: 34px 26px;
      }

      .commerce-device {
        display: none;
      }

      .ig-workflow {
        grid-template-columns: 1fr;
      }

      .ig-phone {
        display: none;
      }

      .commerce-modules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .module-home .commerce-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .module-home .commerce-top-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
          "brand"
          "profile"
          "switch"
          "quick";
      }

      .profile-top-actions,
      .staff-top-actions {
        justify-self: stretch;
        justify-content: flex-start;
      }

      .module-profile-banner,
      .profile-name-panel {
        border-left: 0;
        border-right: 0;
      }

      .module-general-apps {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 18px;
      }

      .brand-strip,
      .grade-top {
        grid-template-columns: auto 1fr;
        align-items: start;
      }

      .brand-strip .module-button,
      .brand-strip .profile-name,
      .grade-top .profile-name {
        grid-column: 1 / -1;
        width: 100%;
        justify-self: stretch;
      }

      .brand-strip .profile-name,
      .grade-top .profile-name {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        justify-content: space-between;
        text-align: left;
      }

      .brand-strip .module-button,
      .profile-name .back {
        min-height: 40px;
      }

      .tabs,
      .grade-tabs,
      .activity-tabs,
      .plan-view-tabs,
      .oa-module-tabs,
      .resource-tabs {
        flex-wrap: wrap;
      }

      .tabs button,
      .grade-tab,
      .activity-tab,
      .plan-view-tabs button,
      .oa-module-tabs button,
      .resource-tabs button {
        flex: 1 1 150px;
        min-height: 40px;
        white-space: normal;
      }

      .app { grid-template-rows: auto 230px; min-height: 100vh; overflow: auto; }
      .app.stats-mode { grid-template-rows: 1fr; }
      .calendar-view { flex-basis: auto; min-width: 0; }
      .intro { grid-template-columns: 1fr; }
      .stats-grid,
      .stats-grid.wide,
      .pie-grid { grid-template-columns: 1fr; }
      .pie-wrap { grid-template-columns: 1fr; justify-items: center; }
      .activity-workspace { grid-template-columns: 1fr; }
      .activity-top { grid-template-columns: auto 1fr; }
      .activity-top .profile-name { grid-column: 1 / -1; text-align: left; }
      .plan-meta { grid-template-columns: 1fr; }
      .test-toolbar { grid-template-columns: 1fr; }
      .test-calendar-layout { grid-template-columns: 1fr; }
      .test-summary-panel { min-height: 260px; }
      .test-day { min-height: 96px; }
      .scale-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .scale-actions { justify-content: flex-start; }
      .scale-workspace { grid-template-columns: 1fr; }
      .scale-panel { border-right: 0; border-bottom: 1px solid #dce3ee; }
      .timer-workspace {
        grid-template-columns: 1fr;
      }
      .timer-panel {
        border-right: 0;
        border-bottom: 1px solid #dce3ee;
      }
      .timer-stage-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .reading-workspace,
      .reading-criteria {
        grid-template-columns: 1fr;
      }
      .activities-task-layout {
        grid-template-columns: 1fr;
      }
      .activities-oa-grid {
        grid-template-columns: 1fr;
      }
      .activities-task-sidebar {
        position: static;
        border-left: 0;
        border: 1px solid #d8e2ee;
        border-radius: 10px;
      }
      .reading-panel {
        border-right: 0;
        border-bottom: 1px solid #dce3ee;
      }
      .oa-compare-toolbar,
      .oa-compare-workspace,
      .oa-month-columns {
        grid-template-columns: 1fr;
      }
      .resource-hero,
      .resource-layout,
      .resource-filter,
      .print-queue,
      .resource-print-calendar {
        grid-template-columns: 1fr;
      }
      .resource-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .records,
      .scale-table-wrap,
      .oa-coverage-table-wrap,
      .resource-board {
        overflow-x: auto;
      }
      table.data,
      .resource-table {
        min-width: 680px;
      }
    }

    @media (max-width: 560px) {
      .module-home .commerce-topbar,
      .module-home .commerce-menubar {
        position: static;
        top: auto;
      }

      .module-home .commerce-top-inner {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
          "brand switch"
          "profile profile"
          "quick quick";
        gap: 9px;
        padding: 10px 12px 12px;
      }

      .module-home .commerce-brand {
        min-width: 0;
      }

      .module-home .commerce-logo {
        width: min(150px, 100%);
        height: 44px;
      }

      .profile-name-panel {
        min-height: 40px;
        padding: 0 10px;
        border-radius: 8px;
      }

      .profile-name-panel span {
        max-width: 100%;
        font-size: 18px;
        text-align: center;
        overflow-wrap: anywhere;
      }

      .profile-top-actions {
        display: grid;
        grid-template-columns: 1fr;
        justify-self: end;
        gap: 6px;
        width: auto;
      }

      .module-home #moduleBackHomeBtn,
      .staff-logout-top {
        min-width: 0;
        min-height: 34px;
        padding: 8px 11px;
        font-size: 12px;
        white-space: nowrap;
      }

      .staff-top-actions {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
      }

      .staff-top-actions.word-review-admin-active {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .staff-visual-top {
        min-height: 54px;
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 7px;
        padding: 8px;
        font-size: 12px;
      }

      .staff-visual-icon {
        width: 32px;
        height: 32px;
      }

      .activities-dashboard-grid,
      .activities-option-grid,
      .activities-form-grid {
        grid-template-columns: 1fr;
      }

      .staff-visual-icon svg {
        width: 24px;
        height: 24px;
      }

      .staff-visual-label {
        min-width: 0;
      }

      .module-home .commerce-menu-inner {
        padding: 0 12px 10px;
      }

      .module-home .commerce-category-head {
        width: 100%;
        margin: 8px 0;
        min-height: 42px;
      }

      .module-home main.commerce-shell {
        padding: 0 10px 24px;
      }

      header.brand {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 14px;
      }

      .logo {
        width: min(180px, 100%);
        height: auto;
      }

      .brand-title h1 {
        font-size: 21px;
      }

      .brand-title p {
        font-size: 14px;
      }

      .home main {
        padding: 14px;
      }

      .small-logo {
        width: 138px;
        height: 44px;
      }

      .brand-strip,
      .grade-top {
        grid-template-columns: 1fr;
      }

      .brand-strip > *,
      .grade-top > * {
        min-width: 0;
      }

      .brand-strip .module-button,
      .profile-name .back {
        width: 100%;
      }

      .profile-name {
        display: grid;
        gap: 6px;
        justify-content: stretch;
      }

      .module-general-apps {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 0;
        min-height: 0;
        overflow: visible;
      }

      .commerce-nav-main {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        width: 100%;
      }

      .word-collaboration-widget {
        min-width: 0;
        width: 100%;
        border-radius: 8px;
        border-color: #d7e4f0;
        background: #f8fbff;
      }

      .collaboration-home-panel.compact {
        position: static;
        width: 100%;
      }

      .module-general-apps button {
        width: 100%;
        padding: 8px 10px;
        border-color: #d7e4f0;
        background: #f8fbff;
      }

      .module-home .profile-calendar {
        min-height: 0;
        border-radius: 8px;
        overflow-x: auto;
      }

      .module-home .profile-calendar-head {
        grid-template-columns: 1fr;
        padding: 12px;
      }

      .module-home .profile-calendar-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
      }

      .module-home .profile-calendar-actions button {
        width: 100%;
        min-height: 34px;
      }

      .profile-month-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .profile-month-label {
        grid-column: 1 / -1;
        order: -1;
        width: 100%;
      }

      .module-home .school-event-list.month {
        min-width: 680px;
      }

      .commerce-side,
      .commerce-modules {
        grid-template-columns: 1fr;
      }

      .commerce-hero h2 {
        font-size: 31px;
      }

      .scale-toolbar { grid-template-columns: 1fr; }
      .scale-actions { display: grid; grid-template-columns: 1fr 1fr; }
      .scale-actions button { width: 100%; }
      .reading-feedback {
        align-items: flex-start;
        flex-direction: column;
      }
      .timer-display-card {
        min-height: 360px;
      }
      .timer-controls,
      .timer-mode-tabs {
        display: grid;
        grid-template-columns: 1fr;
      }
      .timer-controls button,
      .timer-mode-tabs button {
        width: 100%;
      }
      .timer-stage-list {
        grid-template-columns: 1fr;
      }
      .reading-copy-actions,
      .resource-copy-options,
      .resource-folder-toolbar,
      .month-tools,
      .actions {
        display: grid;
        grid-template-columns: 1fr;
      }
      .reading-copy-actions button,
      .resource-copy-options button,
      .month-tools button,
      .actions button {
        width: 100%;
      }
      .profile-calendar-actions {
        justify-content: flex-start;
      }
      .profile-month-label {
        width: 100%;
      }
      .resource-upload-card,
      .resource-day-manage-card,
      .day-card {
        width: calc(100vw - 18px);
        max-height: calc(100vh - 18px);
        overflow: auto;
      }
      .resource-dashboard,
      .resource-cards { grid-template-columns: 1fr; }
      .resource-bar { grid-template-columns: 1fr; }
    }

    @media print {
      body.print-assessments { background: white; }
      body.print-assessments * { visibility: hidden; }
      body.print-assessments #assessmentCalendarView,
      body.print-assessments #assessmentCalendarView * { visibility: visible; }
      body.print-assessments #assessmentCalendarView {
        position: absolute;
        inset: 0;
        background: white;
      }
      body.print-assessments #assessmentCalendarView .brand-strip,
      body.print-assessments #assessmentCalendarView .test-toolbar,
      body.print-assessments #assessmentCalendarView .test-summary-panel { display: none !important; }
      body.print-assessments #assessmentCalendarView .test-calendar-layout { display: block; padding: 0; }
      body.print-assessments #assessmentCalendarView .test-calendar-panel { box-shadow: none; border: 0; }
      body.print-assessments #assessmentCalendarView .test-day { min-height: 98px; }

      body.print-parent-assessments { background: white; }
      body.print-parent-assessments * { visibility: hidden; }
      body.print-parent-assessments #assessmentParentPrint,
      body.print-parent-assessments #assessmentParentPrint * { visibility: visible; }
      body.print-parent-assessments #assessmentParentPrint {
        display: block;
        position: absolute;
        inset: 0;
        padding: 18px 24px;
        background: white;
        color: #111;
        font-family: Arial, sans-serif;
      }
    }

    .parent-assessment-print {
      display: none;
    }

    .parent-print-header {
      display: grid;
      grid-template-columns: 1fr 1.2fr 1fr;
      align-items: end;
      gap: 10px;
      margin-bottom: 8px;
      font-size: 9px;
      line-height: 1.2;
    }

    .parent-print-title {
      text-align: center;
      font-weight: 900;
      font-size: 15px;
      line-height: 1.2;
    }

    .parent-print-end {
      text-align: right;
    }

    .parent-print-meta {
      display: flex;
      gap: 24px;
      margin: 4px 0 8px;
      font-size: 11px;
      font-weight: 800;
    }

    .parent-print-table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
      font-size: 10px;
    }

    .parent-print-table th,
    .parent-print-table td {
      border: 1px solid #111;
      padding: 5px 6px;
      vertical-align: middle;
    }

    .parent-print-table th {
      text-align: center;
      font-weight: 900;
    }

    .parent-print-table .date-cell {
      width: 62px;
      text-align: center;
      font-weight: 900;
    }

    .parent-print-table .subject-cell { width: 135px; text-align: center; }
    .parent-print-table .teacher-cell { width: 130px; text-align: center; }
    .parent-print-table .week-separator td { border-top: 6px solid #111; padding: 0; height: 0; }

    .parent-support-table .support-date-cell {
      width: 72px;
    }

    .parent-support-table .support-subject-cell {
      width: 110px;
    }

    .parent-support-title {
      margin: 12px 0 6px;
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .parent-support-note {
      margin: 0 0 7px;
      font-size: 9px;
      line-height: 1.35;
    }

    .parent-support-table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
      font-size: 8.5px;
      line-height: 1.25;
    }

    .parent-support-table th,
    .parent-support-table td {
      border: 1px solid #333;
      padding: 4px 5px;
      vertical-align: top;
    }

    .parent-support-table th {
      font-weight: 900;
      text-align: center;
      background: #f1f5f9;
    }

    .access-gate {
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 22px;
      background: #eef5fb;
    }

    .access-card {
      width: min(420px, 100%);
      border: 1px solid #d7e4ef;
      border-radius: 12px;
      background: white;
      box-shadow: 0 20px 55px rgba(31, 53, 79, .18);
      padding: 24px;
      display: grid;
      gap: 14px;
    }

    .access-card h1 {
      margin: 0;
      color: var(--blue);
      font-size: 24px;
    }

    .access-card p {
      margin: 0;
      color: #526579;
      line-height: 1.4;
    }

    .access-card label {
      display: grid;
      gap: 6px;
      font-weight: 900;
      color: #17405f;
      font-size: 13px;
    }

    .access-card input {
      border: 1px solid #bcd0e4;
      border-radius: 8px;
      padding: 12px;
      font: inherit;
      font-weight: 800;
    }

    .access-card button {
      border: 0;
      border-radius: 8px;
      background: #1292e6;
      color: white;
      padding: 12px;
      font-weight: 900;
      cursor: pointer;
    }

    .access-card button[type="button"] {
      background: #e7edf5;
      color: var(--ink);
    }

    .access-error {
      min-height: 18px;
      color: #b42318;
      font-weight: 800;
      font-size: 13px;
    }

    .session-choice-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .access-card .session-choice-secondary {
      background: #e7edf5;
      color: var(--ink);
    }

    .session-profile-pill {
      display: inline-flex;
      width: fit-content;
      border-radius: 999px;
      background: #eaf6ff;
      color: var(--blue);
      padding: 7px 10px;
      font-size: 12px;
      font-weight: 900;
    }

    .module-home #moduleBackHomeBtn {
      place-self: center end;
      margin-top: 0;
      height: 42px;
      min-width: 132px;
      padding: 0 20px;
      border: 0;
      border-radius: 3px;
      background: #1292e6;
      color: #fff;
      box-shadow: 0 8px 18px rgba(18, 146, 230, .22);
      font-size: 13px;
      font-weight: 900;
      white-space: nowrap;
    }

    @media (max-width: 560px) {
      .session-choice-actions {
        grid-template-columns: 1fr;
      }

    }

    .entry-gate {
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 24px;
      background:
        linear-gradient(135deg, rgba(31, 78, 121, .92), rgba(18, 146, 230, .72)),
        #eef5fb;
    }

    .entry-card {
      width: min(980px, 100%);
      border-radius: 12px;
      background: white;
      border: 1px solid #d7e4ef;
      box-shadow: 0 24px 70px rgba(15, 23, 42, .25);
      padding: 26px;
      display: grid;
      gap: 20px;
    }

    .entry-head {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 16px;
      align-items: center;
      border-bottom: 1px solid #e4edf6;
      padding-bottom: 18px;
    }

    .entry-head img {
      width: 150px;
      height: 54px;
      object-fit: contain;
      object-position: left center;
    }

    .entry-head h1 {
      margin: 0;
      color: var(--blue);
      font-size: clamp(24px, 4vw, 36px);
    }

    .entry-head p {
      margin: 4px 0 0;
      color: #526579;
      font-size: 15px;
    }

    .entry-options {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .entry-option {
      border: 1px solid #d7e4ef;
      border-radius: 10px;
      background: #fbfdff;
      padding: 20px;
      min-height: 220px;
      display: grid;
      align-content: space-between;
      gap: 14px;
      text-align: left;
      color: var(--ink);
      box-shadow: 0 10px 24px rgba(31, 53, 79, .07);
    }

    .entry-option strong {
      display: block;
      color: var(--blue);
      font-size: 24px;
      margin-bottom: 7px;
    }

    .entry-option span {
      display: block;
      color: #526579;
      line-height: 1.4;
      font-weight: 700;
    }

    .entry-option small {
      display: inline-flex;
      width: fit-content;
      border-radius: 999px;
      background: #eef6ff;
      color: var(--blue);
      padding: 6px 10px;
      font-weight: 900;
      font-size: 12px;
    }

    .entry-option.primary {
      background: #f0fdf7;
      border-color: #b9e7cd;
    }

    .entry-option.primary small {
      background: #dcfce7;
      color: #166534;
    }

    .student-view {
      min-height: 100vh;
      background: #eef5fb;
      padding: 14px;
    }

    .student-shell {
      min-height: calc(100vh - 28px);
      background: white;
      border: 1px solid #d7e4ef;
      border-radius: 10px;
      overflow: hidden;
      display: grid;
      grid-template-rows: auto 1fr;
      box-shadow: 0 16px 42px rgba(31, 53, 79, .14);
    }

    .student-top {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 14px;
      align-items: center;
      padding: 12px 16px;
      border-bottom: 1px solid #dce7f2;
      background: #fbfdff;
    }

    .student-top img {
      width: 140px;
      height: 46px;
      object-fit: contain;
      object-position: left center;
    }

    .student-top h1 {
      margin: 0;
      color: var(--blue);
      font-size: 24px;
    }

    .student-top p {
      margin: 3px 0 0;
      color: #526579;
      font-size: 13px;
    }

    .student-content {
      padding: 18px;
      display: grid;
      grid-template-columns: 300px minmax(0, 1fr);
      gap: 16px;
      align-content: start;
    }
    .student-content-single {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 52vh;
    }
    .student-hidden-demo {
      display: none !important;
    }

    .student-card,
    .student-game-card {
      border: 1px solid #d7e4ef;
      border-radius: 8px;
      background: white;
      padding: 14px;
      box-shadow: 0 10px 24px rgba(31, 53, 79, .06);
    }

    .student-card h2,
    .student-game-card h3 {
      margin: 0 0 10px;
      color: var(--blue);
    }

    .student-form {
      display: grid;
      gap: 10px;
    }

    .student-form label {
      display: grid;
      gap: 5px;
      color: #17405f;
      font-size: 12px;
      font-weight: 900;
    }

    .student-summary {
      display: grid;
      gap: 8px;
      margin-top: 12px;
    }

    .student-summary div {
      border-radius: 8px;
      background: #f4f8fc;
      padding: 10px;
      color: #526579;
      font-weight: 800;
    }

    .student-summary strong {
      display: block;
      color: var(--blue);
      font-size: 22px;
    }

    .student-profile-note {
      border: 1px solid #d7e4ef;
      border-radius: 8px;
      background: #fbfdff;
      padding: 12px;
      color: #526579;
      font-weight: 800;
      line-height: 1.4;
    }

    .student-profile-note strong {
      color: var(--blue);
    }

    .student-games {
      display: grid;
      gap: 12px;
    }
    .student-games-single {
      width: min(760px, 100%);
    }

    .student-hidden-game {
      display: none !important;
    }

    .student-assignments-panel,
    .student-calendar-panel {
      border: 1px solid #cbdced;
      border-radius: 8px;
      background: #fbfdff;
      box-shadow: 0 10px 24px rgba(31, 53, 79, .06);
      overflow: hidden;
    }

    .student-assignments-panel header,
    .student-calendar-panel header {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      padding: 14px;
      border-bottom: 1px solid #dce7f2;
      background: white;
    }

    .student-assignments-panel h2,
    .student-calendar-panel h2 {
      margin: 0;
      color: var(--blue);
      font-size: 22px;
    }

    .student-assignments-panel p,
    .student-calendar-panel p {
      margin: 3px 0 0;
      color: #526579;
      font-weight: 800;
    }

    .student-assignments-panel header > span,
    .student-calendar-panel header > span {
      min-width: 42px;
      border-radius: 999px;
      background: #eef6ff;
      color: var(--blue);
      padding: 8px 10px;
      text-align: center;
      font-weight: 900;
    }

    .student-assignment-list,
    .student-calendar-list {
      display: grid;
      gap: 10px;
      padding: 12px;
    }

    .student-assignment-card {
      border: 1px solid #d7e4ef;
      border-radius: 8px;
      background: white;
      padding: 12px;
    }

    .student-assignment-head,
    .student-assignment-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
    }

    .student-assignment-head {
      justify-content: space-between;
      margin-bottom: 6px;
    }

    .student-assignment-subject,
    .student-assignment-state,
    .student-assignment-meta span {
      border-radius: 999px;
      padding: 4px 8px;
      font-size: 12px;
      font-weight: 900;
    }

    .student-assignment-subject {
      background: #eef6ff;
      color: var(--blue);
    }

    .student-assignment-state.pending {
      background: #fff7ed;
      color: #9a3412;
    }

    .student-assignment-state.seen {
      background: #fef9c3;
      color: #854d0e;
    }

    .student-assignment-state.submitted {
      background: #dcfce7;
      color: #166534;
    }

    .student-assignment-card h3 {
      margin: 0 0 8px;
      color: #123a5a;
      font-size: 18px;
    }

    .student-assignment-instructions {
      margin: 0 0 10px;
      color: #40556b;
      line-height: 1.45;
      font-weight: 700;
    }

    .student-assignment-instructions p {
      margin: 0 0 6px;
    }

    .student-assignment-meta span {
      background: #f4f8fc;
      color: #526579;
    }

    .student-assignment-open {
      margin-top: 10px;
      border: 1px solid var(--blue);
      border-radius: 8px;
      background: var(--blue);
      color: white;
      padding: 9px 12px;
      font-weight: 900;
      cursor: pointer;
    }

    .student-assignment-empty {
      border: 1px dashed #bfd0e2;
      border-radius: 8px;
      background: white;
      color: #526579;
      padding: 16px;
      text-align: center;
      font-weight: 900;
    }

    .student-assignment-detail-card {
      width: min(860px, calc(100vw - 24px));
      max-height: calc(100vh - 24px);
      border-radius: 10px;
      background: white;
      border: 1px solid #d7e4ef;
      box-shadow: 0 24px 70px rgba(15, 23, 42, .35);
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto auto;
      overflow: hidden;
    }

    .student-assignment-detail-card header {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: start;
      padding: 16px;
      border-bottom: 1px solid #dce7f2;
      background: #fbfdff;
    }

    .student-assignment-detail-card header span {
      display: inline-flex;
      width: fit-content;
      border-radius: 999px;
      background: #eef6ff;
      color: var(--blue);
      padding: 4px 8px;
      font-size: 12px;
      font-weight: 900;
    }

    .student-assignment-detail-card h2 {
      margin: 8px 0 4px;
      color: var(--blue);
      font-size: 24px;
    }

    .student-assignment-detail-card p {
      margin: 0;
      color: #526579;
      font-weight: 800;
    }

    .student-assignment-detail-body,
    .student-assignment-detail-attachments {
      padding: 14px 16px;
      overflow: auto;
    }

    .student-assignment-detail-body {
      border-bottom: 1px solid #edf2f7;
    }

    .student-assignment-detail-instructions {
      color: #1f2937;
      font-weight: 700;
      line-height: 1.5;
    }

    .student-assignment-detail-instructions p {
      color: inherit;
      margin: 0 0 8px;
    }

    .student-assignment-detail-attachments {
      display: grid;
      gap: 8px;
      border-bottom: 1px solid #edf2f7;
      background: #fbfdff;
    }

    .student-assignment-attachment {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      border: 1px solid #d7e4ef;
      border-radius: 8px;
      background: white;
      padding: 10px;
    }

    .student-assignment-attachment strong,
    .student-assignment-attachment span {
      display: block;
    }

    .student-assignment-attachment strong {
      color: var(--blue);
      font-size: 12px;
    }

    .student-assignment-attachment span {
      color: #334155;
      font-size: 13px;
      overflow-wrap: anywhere;
    }

    .student-assignment-attachment a,
    .student-attachment-pending {
      border-radius: 8px;
      background: #eef6ff;
      color: var(--blue);
      padding: 8px 10px;
      font-size: 12px;
      font-weight: 900;
      text-decoration: none;
    }

    .student-submission-form {
      display: grid;
      gap: 10px;
      padding: 14px 16px;
      background: white;
    }

    .student-submission-form label {
      display: grid;
      gap: 5px;
      color: #17405f;
      font-size: 12px;
      font-weight: 900;
    }

    .student-submission-form textarea,
    .student-submission-form input[type="file"] {
      width: 100%;
      border: 1px solid #bfd0e2;
      border-radius: 8px;
      background: #f8fbff;
      padding: 10px;
      color: #1f2937;
      font: inherit;
      box-sizing: border-box;
    }

    .student-submission-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: flex-end;
    }

    .student-submission-actions button {
      border: 1px solid #bfd0e2;
      border-radius: 8px;
      background: #eef6ff;
      color: var(--blue);
      padding: 9px 12px;
      font-weight: 900;
      cursor: pointer;
    }

    .student-submission-actions .primary {
      border-color: var(--blue);
      background: var(--blue);
      color: white;
    }

    .student-submission-status {
      color: #526579;
      font-weight: 900;
    }

    .student-calendar-card {
      display: grid;
      grid-template-columns: 116px minmax(0, 1fr);
      gap: 12px;
      align-items: start;
      border: 1px solid #d7e4ef;
      border-radius: 8px;
      background: white;
      padding: 12px;
    }

    .student-calendar-date {
      border-radius: 8px;
      background: #eef6ff;
      color: var(--blue);
      padding: 10px;
      text-align: center;
      font-weight: 900;
    }

    .student-calendar-card h3 {
      margin: 0 0 6px;
      color: #123a5a;
      font-size: 18px;
    }

    .student-calendar-card p {
      margin: 0 0 8px;
      color: #40556b;
      line-height: 1.4;
      font-weight: 700;
    }

    .student-calendar-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .student-calendar-meta span {
      border-radius: 999px;
      background: #f4f8fc;
      color: #526579;
      padding: 4px 8px;
      font-size: 12px;
      font-weight: 900;
    }

    .student-calendar-empty {
      border: 1px dashed #bfd0e2;
      border-radius: 8px;
      background: white;
      color: #526579;
      padding: 16px;
      text-align: center;
      font-weight: 900;
    }

    .student-game-card {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 12px;
      align-items: center;
    }
    .student-feature-game-card {
      grid-template-columns: 1fr;
      justify-items: center;
      min-height: 140px;
      padding: 28px;
      text-align: center;
    }
    .student-feature-game-card h3 {
      color: #ff7417;
      font-size: clamp(2rem, 5vw, 3.4rem);
    }
    .student-feature-game-card p {
      font-size: 1.08rem;
    }
    .student-feature-game-card .student-game-meta,
    .student-feature-game-card .student-game-actions {
      justify-content: center;
    }
    .student-feature-game-card .student-game-actions {
      margin-top: 0;
    }
    .student-feature-game-card .student-game-actions .primary {
      font-size: 1.2rem;
      padding: 14px 22px;
    }

    .student-game-card p {
      margin: 0;
      color: #526579;
      line-height: 1.4;
    }

    .student-game-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 9px;
    }

    .student-game-meta span {
      border-radius: 999px;
      background: #eef6ff;
      color: var(--blue);
      padding: 4px 8px;
      font-size: 12px;
      font-weight: 900;
    }

    .student-score {
      text-align: center;
      min-width: 118px;
      border-radius: 8px;
      background: #f0fdf7;
      color: #166534;
      padding: 12px;
      font-weight: 900;
    }

    .student-score strong {
      display: block;
      font-size: 30px;
    }

    .student-game-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }

    .student-game-actions button,
    .student-game-actions a {
      border: 1px solid #bfd0e2;
      border-radius: 8px;
      background: #eef6ff;
      color: var(--blue);
      padding: 9px 12px;
      font-weight: 900;
      text-decoration: none;
      cursor: pointer;
    }

    .student-game-actions .primary {
      border-color: var(--blue);
      background: var(--blue);
      color: white;
    }

    .student-game-frame-card {
      width: min(1180px, calc(100vw - 24px));
      height: min(760px, calc(100vh - 24px));
      border-radius: 10px;
      background: white;
      border: 1px solid #d7e4ef;
      box-shadow: 0 24px 70px rgba(15, 23, 42, .35);
      display: grid;
      grid-template-rows: auto 1fr;
      overflow: hidden;
    }

    .student-game-frame-card header {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 12px;
      align-items: center;
      padding: 10px 12px;
      border-bottom: 1px solid #dce7f2;
      background: #fbfdff;
    }

    .student-game-frame-card h2 {
      margin: 0;
      color: var(--blue);
      font-size: 18px;
    }

    .student-game-frame-card iframe {
      width: 100%;
      height: 100%;
      border: 0;
      background: #f8f4ea;
    }

    .student-inline-game {
      width: min(1180px, 100%);
      min-height: calc(100vh - 170px);
      border: 1px solid #d7e4ef;
      border-radius: 8px;
      background: white;
      box-shadow: 0 10px 24px rgba(31, 53, 79, .08);
      display: grid;
      grid-template-rows: auto minmax(620px, 1fr);
      overflow: hidden;
    }

    .student-inline-game header {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 12px;
      align-items: center;
      padding: 12px;
      border-bottom: 1px solid #dce7f2;
      background: #fbfdff;
    }

    .student-inline-game h2 {
      margin: 0;
      color: var(--blue);
      font-size: 18px;
    }

    .student-inline-game iframe {
      width: 100%;
      height: 100%;
      border: 0;
      background: #f8f4ea;
    }

    @media (max-width: 760px) {
      .entry-head,
      .entry-options,
      .student-top,
      .student-content,
      .student-game-card {
        grid-template-columns: 1fr;
      }

      .student-score {
        text-align: left;
      }
    }
