.site-shell:not(.expedition-theme) .workspace {
  background-color:#faf9f5;
  background-image:
    radial-gradient(ellipse at top right,#f0e4c891,transparent 72%),
    radial-gradient(ellipse at left center,#dcece5a1,transparent 75%),
    linear-gradient(170deg,#fbf9f3 0%,#f5f8fb 100%);
  background-size:min(74vw,760px) 34rem,min(65vw,670px) 36rem,100% 100%;
  background-position:top right,left 21rem,center;
  background-repeat:no-repeat;
}
.mobile-admin-navigation { display:none; }
.portal-nav-strip {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:16px 0 20px;
  padding:6px;
  border:1px solid #dee7f3;
  border-radius:16px;
  background:#fff;
}
.portal-nav-strip a {
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 13px;
  border-radius:11px;
  color:#244777;
  font-weight:700;
  text-decoration:none;
}
.portal-nav-strip a:hover { background:#eef4fb; }
.portal-nav-strip a[aria-current="page"] { color:#fff; background:#13529b; }
.portal-more h1 { margin:0 0 16px; }
.portal-more nav { display:grid; gap:9px; max-width:660px; }
.portal-more nav a {
  display:grid;
  grid-template-columns:24px minmax(0,1fr) 20px;
  align-items:center;
  gap:13px;
  min-height:65px;
  padding:13px 14px;
  border:1px solid #dce6f6;
  border-radius:14px;
  background:#fff;
  color:#173e77;
  text-decoration:none;
}
.portal-more nav a:hover { border-color:#8db2da; background:#f7fbff; }
.portal-more nav span { display:grid; gap:4px; }
.portal-more nav small { color:#536a82; line-height:1.35; }
.admin-content-panel .studio-section-title { margin:0 0 12px; }
.portal-admin-heading { margin:0; font-size:clamp(1.5rem,3vw,2.15rem); }
.portal-settings-actions { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.directory-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr); align-items:start; gap:16px; margin-block:12px; }
.directory-grid .hw-list { max-height:50vh; align-content:start; overflow:auto; }
.people-card,.people-section form { display:grid; gap:10px; min-width:0; }
.people-section .btn { justify-self:start; }
.people-learners { display:grid; gap:8px; margin:0; padding-inline-start:22px; }
.people-section form [role=status]:empty,.people-card [role=status]:empty { display:none; }
.people-section .management-check { display:flex; align-items:center; gap:9px; }
.people-filters,.people-extra {
  display:flex; flex-wrap:wrap; align-items:end; gap:10px 12px;
}
.people-filters>.hw-search { flex:1 1 230px; max-width:360px; margin:0; }
:is(.people-filters,.people-extra)>label { display:grid; align-content:end; gap:5px; min-width:0; }
:is(.people-filters,.people-extra) :is(input[type="search"],select,button.choice-trigger,.btn) {
  min-height:44px; margin-block:0;
}
.people-extra[hidden] { display:none; }
.people-extra { margin-top:12px; padding:12px; border:1px solid #dce7f3; border-radius:14px; background:#fff; }
.people-extra>label { flex:1 1 133px; }
.people-results { margin:10px 0 0; color:#466480; }
[data-people-feedback]:empty { display:none; }
[data-people-feedback] { color:#205940; }
.people-delete { padding-top:12px; border-top:1px solid #dce7f3; }
.directory-grid .hw-row { text-align:left; font:inherit; }
.directory-grid .hw-row[aria-pressed="true"] { border-color:#2f7159; background:#ebf5ef; }
.management-form { display:grid; gap:10px; padding:16px; border:1px solid #dce7f3; border-radius:14px; background:#fff; }
.management-form label,.mero-season-bar label,.mero-sheet-tools label { display:grid; gap:5px; }
.management-form input,.management-form select,.mero-season-bar input,.mero-sheet-tools input {
  width:100%; min-width:0; padding:9px; font:inherit; color:inherit; background:#fff; border:1px solid #d0ddeb; border-radius:8px;
}
.management-form .btn { justify-self:start; }
.mero-heading { gap:8px; }
.mero-season-bar,.mero-sheet-tools,.mero-sheet-footer {
  display:flex; align-items:end; flex-wrap:wrap; gap:10px; margin-block:12px;
}
.mero-season-bar[hidden] { display:none; }
.mero-new-season { padding:12px; border:1px solid #d9e4f2; border-radius:12px; background:#fff; }
.mero-new-season input { width:110px; }
.mero-new-season [data-academic-year],.mero-season-state { align-self:center; }
.mero-season-state { padding:4px 9px; font-weight:700; color:#5f5964; background:#f0eef2; border-radius:8px; }
.mero-season-state.is-open { color:#205940; background:#e9f5ee; }
.mero-sheet-tools [data-save] { margin-inline-start:auto; }
.mero-sheet-footer { align-items:center; justify-content:space-between; }
[data-sheet-status]:empty { display:none; }
[data-sheet-status] { color:#354e71; margin-block:8px; }
.season-table {
  --mero-code-width:86px; --mero-person-width:155px; --mero-cell-width:72px;
  overflow:auto; max-height:57vh; border:1px solid #d1dfef; border-radius:12px; background:#fff;
  scroll-padding-inline-start:calc(var(--mero-code-width) + var(--mero-person-width));
  font-variant-numeric:tabular-nums;
}
.season-table table { width:max-content; min-width:100%; border-collapse:separate; border-spacing:0; }
.season-table th,.season-table td {
  padding:5px; text-align:center; border-inline-end:1px solid #e0e8f2; border-block-end:1px solid #e0e8f2;
}
.season-table thead { position:sticky; top:0; z-index:5; }
.season-table thead th { background:#edf3fa; }
.season-table .mero-code {
  position:sticky; left:0; z-index:2; width:var(--mero-code-width); min-width:var(--mero-code-width);
  max-width:var(--mero-code-width); background:#f4f8fd; overflow-wrap:anywhere;
}
.season-table .mero-person {
  position:sticky; left:var(--mero-code-width); z-index:2; width:var(--mero-person-width); min-width:var(--mero-person-width);
  max-width:var(--mero-person-width); padding-inline:9px; text-align:left; background:#f4f8fd; overflow-wrap:anywhere;
}
.season-table thead :is(.mero-person,.mero-code) { z-index:4; }
.season-table .mero-person small { display:block; color:#52667e; }
.season-table .mero-money,.season-table [data-total] { min-width:var(--mero-cell-width); width:var(--mero-cell-width); }
.season-table thead .mero-silver,.season-table [data-total="silver"] { background:#e5e7eb; color:#334155; }
.season-table thead .mero-gold,.season-table [data-total="gold"] { background:#fff0a5; color:#674705; }
.season-table .mero-exchange { width:86px; min-width:86px; max-width:86px; background:#eaf2fb; color:#24466e; }
.season-table .mero-exchange small { display:block; margin-top:3px; }
.season-table [data-month="rewards"],.season-table th.mero-reward { background:#d8f2f0; }
.season-table .mero-reward { min-width:92px; max-width:105px; white-space:normal; line-height:1.2; }
.season-table .mero-reward small { display:block; margin-top:3px; }
.season-table .mero-reward input { width:20px; height:20px; accent-color:#1b6f68; vertical-align:middle; }
.mero-count { margin-block:8px; color:#466480; }
.season-table :is(.mero-gold,.mero-total-group) { border-inline-end-color:#becde0; }
.season-table [data-total] { font-weight:800; }
.management-content .season-table input[type="text"] {
  width:100%; min-width:0; min-height:36px; margin:0; padding:4px; text-align:right; font:inherit;
  color:inherit; background:#fbfdff; border:1px solid #eaf0f9; border-radius:5px;
}
.management-content .season-table input[type="text"]:hover { border-color:#c2d4e9; }
.management-content .season-table input[type="text"]:focus { outline:2px solid #2268b0; outline-offset:-1px; }
.management-content .season-table input[aria-invalid="true"] { border-color:#b84245; background:#fff0ef; }
.mero-empty { padding-inline:10px; }
@media(min-width:1120px) {
  .season-table {
    --mero-person-width:145px;
    --mero-cell-width:clamp(49px,calc((100vw - 466px) / 20),72px);
  }
}
@media(min-width:1340px) {
  .portal-nav-strip { gap:4px; }
  .portal-nav-strip a { padding-inline:10px; }
}
.quiz-link-form fieldset { max-height:200px; overflow:auto; border:1px solid #dce7f3; }
.hw-unread { font-weight:700; }
@media (max-width:700px), (hover:none) and (pointer:coarse) {
  .playful-badge::after { content:none; }
  .library-hero :is(.hero-spark,.hero-doodle-sun),
  .detail-empty-graphic > span { display:none; }
}
@media(max-width:700px) {
  .topbar { min-height:calc(65px + env(safe-area-inset-top)); padding-top:env(safe-area-inset-top); }
  .site-shell:not(.expedition-theme) .workspace { background-size:100% 28rem,100% 31rem,100% 100%; }
  .portal-nav-strip { display:none; }
  .mobile-admin-navigation {
    display:grid; gap:5px; margin:12px 0 16px; color:#284970; font-weight:700;
  }
  :is(.mobile-admin-navigation,.people-filters,.people-extra) :is(button.choice-trigger,select) {
    width:100%; min-height:44px;
  }
  .people-filters { display:grid; grid-template-columns:minmax(0,1fr) auto; }
  .people-filters>.hw-search { grid-column:1/-1; max-width:none; }
  .people-extra { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .people-extra [data-clear] { grid-column:1/-1; justify-self:start; }
  .people-delete button { min-height:44px; }
  :is(.people-filters,.management-form,.mero-sheet-tools) input:not([type="checkbox"]),
  .management-content .season-table input[type="text"] { font-size:16px; }
  .mero-season-bar>.btn { min-height:44px; }
  .directory-grid { grid-template-columns:1fr; }
  .directory-grid .hw-list { max-height:34vh; }
  .people-card { scroll-margin-top:90px; }
  .season-table { --mero-code-width:63px; --mero-person-width:96px; --mero-cell-width:62px; }
  .mero-sheet-tools label { flex:1 1 130px; min-width:0; }
  .mero-sheet-tools [data-save] { margin-inline-start:0; }
}
@media(max-width:700px) {
  .mobile-bottom.mobile-primary {
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:2px;
    overflow:visible;
    padding-inline:4px;
  }
  .mobile-bottom.mobile-primary .side-link {
    display:flex;
    min-width:0;
    min-height:44px;
    margin:0;
    padding:6px 1px;
    white-space:normal;
    text-align:center;
    justify-content:center;
    line-height:1.15;
    font-size:clamp(10px,2.9vw,12px);
  }
}
