@font-face {
  font-family:LocalUI;
  src:local("SF Pro Display");
  font-display:swap
}
:root {
  --lime:#c2f33b;
  --lime-hover:#b4e52c;
  --ink:#20271d;
  --muted:#737b6c;
  --bg:#f5f6f0;
  --line:#e4e7dc;
  --white:#fff;
  --green:#416b33;
  --soft:#edf4e4;
  --danger:#aa3f2c;
  --radius:24px;
  --shadow:0 14px 44px #26301606;
  font-family:LocalUI,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  font-size:15px
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  line-height:1.5
}
button,input,textarea,select {
  font:inherit
}
button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent
}
button,a {
  touch-action:manipulation
}
button {
  cursor:pointer
}
button:disabled {
  opacity:.5;
  cursor:wait
}
a {
  color:inherit;
  text-decoration:none
}
a:hover {
  text-decoration:underline
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:3px solid #7aa717;
  outline-offset:4px
}
h1,h2,h3,p {
  margin:0
}
h1 {
  font-size:clamp(27px,3.2vw,42px);
  line-height:1.15;
  letter-spacing:-1.5px;
  font-weight:760
}
h2 {
  font-size:23px;
  line-height:1.2;
  letter-spacing:-.6px
}
h3 {
  font-size:18px;
  line-height:1.3;
  letter-spacing:-.25px
}
small {
  font-size:12px
}
.muted,.quiet {
  color:var(--muted)
}
.eyebrow,.mini-label {
  font-size:11px;
  font-weight:750;
  letter-spacing:1.6px
}
.mini-label {
  color:var(--green)
}
.brand {
  display:flex;
  align-items:center;
  font-size:27px;
  font-weight:800;
  letter-spacing:-1.3px;
  line-height:1;
  white-space:nowrap
}
.brand:hover {
  text-decoration:none
}
.brand-icon {
  width:37px;
  height:37px;
  background:var(--lime);
  border-radius:12px;
  display:grid;
  place-items:center;
  margin-right:11px;
  font-size:21px;
  letter-spacing:-3px;
  padding-right:3px
}
.brand-go {
  font-weight:450
}
.brand-dot {
  color:#82aa24
}
.button {
  border:0;
  border-radius:14px;
  padding:13px 19px;
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  font-weight:650;
  text-decoration:none;
  line-height:1.3
}
.button:hover {
  text-decoration:none
}
.primary {
  background:var(--lime);
  color:var(--ink)
}
.primary:hover {
  background:var(--lime-hover)
}
.dark {
  background:var(--ink);
  color:var(--white)
}
.secondary {
  background:var(--soft);
  color:var(--ink)
}
.outline {
  border:1px solid var(--line);
  background:var(--white)
}
.ghost {
  background:transparent;
  border:0;
  color:var(--muted);
  padding:10px;
  min-height:44px
}
.small {
  padding:9px 13px;
  min-height:38px;
  font-size:13px;
  border-radius:11px
}
.full {
  width:100%;
  justify-content:space-between
}
.pill,.badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:11px;
  font-weight:650;
  padding:5px 10px;
  border-radius:8px;
  background:var(--soft);
  color:var(--green);
  white-space:nowrap
}
.pill.neutral,.badge.neutral {
  background:#f0f1ec;
  color:var(--muted)
}
.pill.lime {
  background:var(--lime);
  color:var(--ink)
}
.pill.warm {
  background:#fff0d5;
  color:#8d6626
}
.pill.alert {
  background:#fcece8;
  color:var(--danger)
}
.row {
  display:flex;
  align-items:center;
  gap:12px
}
.spread {
  justify-content:space-between
}
.wrap {
  flex-wrap:wrap
}
.stack {
  display:grid;
  gap:18px
}
.spacer {
  flex:1
}
.error {
  color:var(--danger);
  background:#fff0eb;
  border-radius:12px;
  padding:12px;
  font-size:13px
}
.notice {
  background:var(--soft);
  padding:16px;
  border-radius:16px;
  font-size:13px;
  color:var(--green)
}
.empty {
  background:var(--white);
  border:1px dashed #d8dfcb;
  border-radius:var(--radius);
  padding:36px 25px;
  text-align:center;
  color:var(--muted)
}
.empty h3 {
  color:var(--ink);
  margin-bottom:8px
}
.empty .button {
  margin-top:18px
}
.loading {
  padding:60px;
  color:var(--muted);
  text-align:center
}
label {
  display:block;
  font-size:13px;
  font-weight:600
}
input:not([type=radio]):not([type=checkbox]):not([type=file]),textarea,select {
  display:block;
  width:100%;
  border:1px solid var(--line);
  background:#fbfcf8;
  color:var(--ink);
  border-radius:12px;
  padding:13px 14px;
  min-height:46px;
  margin-top:7px;
  font-weight:400;
  font-size:16px
}
input::placeholder,textarea::placeholder {
  color:#9ba18f
}
textarea {
  resize:vertical;
  min-height:100px;
  line-height:1.55
}
input[type=radio],input[type=checkbox] {
  accent-color:#6b931b;
  width:18px;
  height:18px;
  flex-shrink:0
}
form {
  display:grid;
  gap:18px
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px
}
.field-note {
  font-size:12px;
  color:var(--muted);
  margin-top:5px
}
.password-wrap {
  position:relative
}
.password-wrap input {
  padding-right:50px!important
}
.password-toggle {
  position:absolute;
  right:5px;
  top:4px;
  border:0;
  background:transparent;
  color:var(--muted);
  height:42px;
  width:42px
}
.login-page {
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  background:#f3f5eb
}
.login-header,.login-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:30px 6.5vw
}
.login-header .quiet {
  font-size:13px
}
.login-layout {
  width:min(1100px,87%);
  margin:auto;
  display:grid;
  grid-template-columns:1.2fr .9fr;
  align-items:center;
  gap:80px;
  padding:46px 0 70px
}
.login-story {
  position:relative
}
.login-story h1 {
  font-size:clamp(44px,5.6vw,76px);
  letter-spacing:-3px;
  line-height:1.08;
  margin:24px 0
}
.highlight {
  background:var(--lime);
  padding:0 9px 5px;
  margin-left:-9px;
  border-radius:10px;
  box-decoration-break:clone
}
.login-story p {
  color:var(--muted);
  font-size:17px;
  line-height:1.7
}
.story-pills {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:30px
}
.story-pills span {
  border:1px solid #dbe2cb;
  border-radius:30px;
  padding:7px 13px;
  font-size:12px
}
.login-card {
  background:white;
  border:1px solid #e4e8da;
  box-shadow:var(--shadow);
  padding:37px;
  border-radius:30px
}
.login-card h2 {
  font-size:29px;
  margin:17px 0 8px
}
.login-card>.muted {
  font-size:14px;
  max-width:280px;
  margin-bottom:27px
}
.login-help {
  display:flex;
  gap:12px;
  border-top:1px solid var(--line);
  margin-top:25px;
  padding-top:22px;
  font-size:12px;
  line-height:1.7
}
.help-dot {
  background:var(--soft);
  width:29px;
  height:29px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-weight:750;
  flex-shrink:0
}
.login-footer {
  font-size:11px;
  color:var(--muted);
  padding-top:20px;
  padding-bottom:20px
}
.orbit {
  position:absolute;
  right:-25px;
  bottom:0;
  display:flex;
  gap:8px;
  transform:rotate(-8deg)
}
.orbit span {
  height:48px;
  width:48px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:var(--ink);
  color:var(--lime);
  font-family:monospace;
  font-size:21px;
  box-shadow:0 7px 0 #dce7c9
}
.orbit span:nth-child(2) {
  background:var(--lime);
  color:var(--ink);
  transform:translateY(-24px)
}
.app-header {
  height:86px;
  background:var(--white);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:32px;
  padding:0 40px
}
.header-label {
  font-size:12px;
  color:var(--muted);
  border-left:1px solid var(--line);
  padding-left:28px
}
.avatar {
  margin-left:auto;
  border:1px solid #dce4d0;
  border-radius:14px;
  background:var(--soft);
  color:var(--green);
  height:40px;
  width:40px;
  font-size:17px;
  font-weight:700
}
.app-layout {
  display:grid;
  grid-template-columns:220px 1fr;
  min-height:calc(100dvh - 86px)
}
.sidebar {
  background:var(--white);
  border-right:1px solid var(--line);
  padding:28px 18px;
  display:flex;
  flex-direction:column;
  gap:25px
}
.sidebar nav {
  display:grid;
  gap:7px
}
.nav-item {
  border:0;
  background:transparent;
  border-radius:13px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  color:var(--muted);
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  text-align:left;
  min-height:46px
}
.nav-item:hover {
  background:#f6f8ef
}
.nav-item.active {
  color:var(--ink);
  background:var(--lime)
}
.nav-icon {
  width:23px;
  font-size:18px;
  line-height:1.1;
  text-align:center
}
.sidebar-bottom {
  margin-top:auto;
  font-size:11px;
  color:var(--muted);
  padding:22px 12px 0;
  line-height:1.8
}
.sidebar-bottom small {
  font-size:10px;
  display:block;
  max-width:140px;
  margin-top:14px
}
.local-dot {
  width:6px;
  height:6px;
  background:#83a93d;
  border-radius:100%;
  display:inline-block;
  margin-right:8px
}
#content {
  width:100%;
  max-width:1350px;
  margin:0 auto;
  padding:36px 44px 70px;
  min-width:0
}
.page-top {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px
}
.page-top p {
  color:var(--muted);
  font-size:14px;
  margin-top:10px
}
.date-label {
  color:var(--muted);
  font-size:12px;
  margin-bottom:12px
}
.hero {
  background:#eaf0df;
  border-radius:var(--radius);
  padding:29px 32px;
  position:relative;
  overflow:hidden;
  margin-bottom:26px;
  border:1px solid #dfe8d0
}
.hero h2 {
  font-size:27px;
  max-width:470px;
  margin:11px 0 9px
}
.hero p {
  color:#6b765d;
  font-size:14px;
  max-width:390px
}
.hero .button {
  margin-top:21px
}
.hero-glyph {
  position:absolute;
  right:35px;
  top:40px;
  font-size:76px;
  line-height:1;
  color:#a8cf46;
  transform:rotate(-10deg);
  font-weight:800
}
.stats {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
  margin-bottom:28px
}
.stat {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:19px;
  padding:19px 21px
}
.stat-number {
  font-size:30px;
  font-weight:750;
  letter-spacing:-1px
}
.stat-label {
  font-size:12px;
  color:var(--muted);
  margin-top:5px
}
.stat-symbol {
  background:var(--soft);
  width:33px;
  height:33px;
  border-radius:11px;
  display:grid;
  place-items:center;
  color:var(--green);
  font-size:15px
}
.section-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:29px 0 17px
}
.section-title h2 {
  font-size:20px
}
.filters {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:20px
}
.filter {
  border:1px solid var(--line);
  background:transparent;
  border-radius:30px;
  font-size:12px;
  padding:8px 15px;
  min-height:36px;
  color:var(--muted)
}
.filter.active {
  background:var(--ink);
  border-color:var(--ink);
  color:white
}
.cards {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px
}
.work-card {
  border:1px solid var(--line);
  background:var(--white);
  border-radius:var(--radius);
  padding:23px;
  display:flex;
  flex-direction:column;
  gap:18px;
  box-shadow:var(--shadow);
  min-width:0
}
.work-card h3 {
  max-width:390px;
  font-size:19px;
  line-height:1.35
}
.work-card .desc {
  font-size:12px;
  color:var(--muted);
  display:flex;
  flex-wrap:wrap;
  gap:13px
}
.card-bottom {
  border-top:1px solid #f0f1ea;
  padding-top:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:auto
}
.subject-icon {
  background:var(--soft);
  height:40px;
  width:40px;
  border-radius:13px;
  display:grid;
  place-items:center;
  font-size:20px;
  font-family:monospace;
  color:var(--green)
}
.panel {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px;
  margin-bottom:20px
}
.panel h2 {
  margin-bottom:18px
}
.list-row {
  display:flex;
  align-items:center;
  gap:15px;
  padding:17px 0;
  border-bottom:1px solid #eff1e8;
  min-width:0
}
.list-row:last-child {
  border-bottom:0
}
.list-main {
  min-width:0;
  flex:1
}
.list-main h3 {
  font-size:15px;
  overflow-wrap:anywhere
}
.list-main p {
  font-size:12px;
  color:var(--muted);
  margin-top:4px
}
.list-actions {
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap
}
.table-wrap {
  overflow-x:auto
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:13px
}
th {
  font-size:11px;
  color:var(--muted);
  font-weight:500;
  padding:12px;
  border-bottom:1px solid var(--line)
}
td {
  padding:14px 12px;
  border-bottom:1px solid #eef0e8
}
td:first-child {
  font-weight:600
}
.credential {
  background:var(--bg);
  padding:12px;
  border-radius:12px;
  margin:8px 0;
  font-size:13px;
  overflow-wrap:anywhere
}
.credential code {
  font-weight:700;
  user-select:all
}
.export-card {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px;
  display:grid;
  gap:18px
}
.export-icon {
  background:var(--lime);
  width:52px;
  height:52px;
  border-radius:17px;
  display:grid;
  place-items:center;
  font-size:27px
}
.export-card p {
  color:var(--muted);
  font-size:14px
}
.export-card li {
  font-size:13px;
  color:var(--muted);
  padding:5px 0
}
.attempt-header {
  position:sticky;
  top:0;
  z-index:5;
  background:#f5f6f0f2;
  backdrop-filter:blur(12px);
  padding:12px 0 15px;
  margin-bottom:20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-bottom:1px solid var(--line)
}
.attempt-header .time {
  font-size:17px;
  font-weight:700;
  font-variant-numeric:tabular-nums
}
.save-state {
  font-size:11px;
  color:var(--green)
}
.save-state.failed {
  color:var(--danger)
}
.task-nav {
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding:5px 0 18px
}
.task-nav a {
  height:35px;
  min-width:35px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:var(--white);
  border:1px solid var(--line);
  font-size:12px
}
.task-nav a.answered {
  background:var(--soft);
  border-color:#bbd49c
}
.question {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px;
  margin-bottom:18px;
  scroll-margin-top:95px
}
.question-top {
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:15px
}
.question-number {
  background:var(--ink);
  color:var(--lime);
  width:30px;
  height:30px;
  flex-shrink:0;
  display:grid;
  place-items:center;
  border-radius:10px;
  font-size:12px;
  font-weight:700
}
.question-top h3 {
  flex:1;
  font-size:16px
}
.points {
  font-size:11px;
  color:var(--muted);
  white-space:nowrap
}
.prompt {
  white-space:pre-wrap;
  font-size:14px;
  line-height:1.75;
  margin-bottom:18px;
  overflow-wrap:anywhere
}
.options {
  display:grid;
  gap:9px
}
.option {
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:13px 14px;
  border-radius:13px;
  border:1px solid var(--line);
  background:#fbfcf8;
  font-size:14px;
  font-weight:450;
  cursor:pointer
}
.option:has(input:checked) {
  background:#f0f9dc;
  border-color:#94bc3d
}
.option input {
  margin-top:2px
}
.option-letter {
  color:var(--muted);
  font-size:12px;
  min-width:17px;
  margin-top:1px
}
.answer-extra {
  margin-top:15px
}
.upload-line {
  display:flex;
  align-items:center;
  gap:15px;
  flex-wrap:wrap;
  margin-top:15px
}
.upload-label {
  font-size:12px;
  color:var(--muted);
  cursor:pointer;
  padding:8px 0
}
.upload-label input {
  display:none
}
.files {
  display:grid;
  gap:6px;
  font-size:12px;
  margin-top:8px
}
.file-link {
  display:block;
  color:var(--green);
  overflow-wrap:anywhere
}
.submit-bar {
  background:var(--white);
  border:1px solid var(--line);
  padding:20px;
  border-radius:var(--radius);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:24px 0
}
.submit-bar p {
  font-size:12px;
  color:var(--muted)
}
.result-hero {
  background:var(--ink);
  color:var(--white);
  padding:30px;
  border-radius:var(--radius);
  margin-bottom:25px
}
.result-hero h2 {
  margin:10px 0
}
.result-score {
  font-size:52px;
  font-weight:700;
  letter-spacing:-2px;
  color:var(--lime)
}
.result-score small {
  font-size:22px;
  color:#b2bca8;
  letter-spacing:0
}
.result-hero p {
  color:#b6c0aa;
  font-size:13px;
  max-width:500px
}
.student-answer {
  white-space:pre-wrap;
  background:var(--bg);
  padding:15px;
  border-radius:12px;
  font-size:14px;
  overflow-wrap:anywhere;
  margin:10px 0
}
.solution {
  background:var(--soft);
  padding:15px;
  border-radius:12px;
  white-space:pre-wrap;
  font-size:13px;
  line-height:1.65;
  margin-top:15px;
  overflow-wrap:anywhere
}
.solution strong {
  display:block;
  margin-bottom:7px
}
.teacher-comment {
  border-left:3px solid #a5c96c;
  padding:8px 12px;
  margin-top:15px;
  font-size:13px;
  white-space:pre-wrap
}
.criteria {
  display:grid;
  gap:10px;
  margin:17px 0
}
.criterion {
  display:flex;
  align-items:center;
  gap:15px;
  font-size:13px
}
.criterion label {
  flex:1;
  font-size:12px;
  font-weight:450
}
.criterion input {
  width:75px!important;
  margin:0!important
}
.builder-task {
  background:var(--bg);
  padding:20px;
  border-radius:16px;
  display:grid;
  gap:13px
}
.builder-task textarea {
  background:white
}
.back {
  font-size:12px;
  color:var(--muted);
  display:inline-block;
  margin-bottom:18px;
  min-height:30px
}
.score-chip {
  font-size:15px;
  font-weight:700
}
.footnote {
  font-size:11px;
  color:var(--muted);
  margin-top:20px;
  max-width:650px
}
@media(min-width:1500px) {
  #content {
    padding-left:65px;
    padding-right:65px
  }
  .cards {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
}
@media(max-width:1050px) {
  .app-layout {
    grid-template-columns:180px 1fr
  }
  .sidebar {
    padding:25px 12px
  }
  #content {
    padding:29px 25px 70px
  }
  .nav-item {
    padding:12px 10px;
    font-size:12px
  }
  .login-layout {
    gap:40px
  }
  .login-card {
    padding:28px
  }
  .orbit {
    display:none
  }
  .hero-glyph {
    font-size:65px;
    right:20px
  }
  .cards {
    gap:13px
  }
  .work-card {
    padding:20px
  }
  .stat {
    padding:17px
  }
}
@media(max-width:760px) {
  .app-header {
    height:70px;
    padding:0 22px;
    gap:15px
  }
  .brand {
    font-size:25px
  }
  .brand-icon {
    width:34px;
    height:34px;
    font-size:19px;
    border-radius:11px;
    margin-right:8px
  }
  .header-label {
    border:0;
    padding:0;
    margin-left:auto;
    font-size:10px
  }
  .avatar {
    width:35px;
    height:35px;
    font-size:14px;
    margin-left:0
  }
  .app-layout {
    display:block;
    min-height:calc(100dvh - 70px)
  }
  .sidebar {
    position:sticky;
    top:0;
    z-index:8;
    padding:0;
    background:var(--bg);
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .sidebar nav {
    display:flex;
    gap:6px;
    overflow-x:auto;
    padding:12px 18px;
    scrollbar-width:none
  }
  .sidebar nav::-webkit-scrollbar {
    display:none
  }
  .nav-item {
    padding:9px 13px;
    border-radius:11px;
    min-height:38px;
    font-size:12px;
    gap:7px
  }
  .nav-icon {
    font-size:15px;
    width:18px
  }
  .sidebar-bottom {
    display:none
  }
  #content {
    padding:25px 20px 50px
  }
  .page-top {
    margin-bottom:22px;
    align-items:flex-start
  }
  .page-top h1 {
    font-size:29px;
    letter-spacing:-1px
  }
  .page-top p {
    font-size:12px;
    margin-top:8px
  }
  .page-top>.button {
    font-size:12px;
    padding:12px;
    gap:5px
  }
  .date-label {
    font-size:11px;
    margin-bottom:9px
  }
  .hero {
    padding:24px;
    margin-bottom:22px
  }
  .hero h2 {
    font-size:25px;
    max-width:80%
  }
  .hero p {
    font-size:12px;
    max-width:80%
  }
  .hero-glyph {
    right:17px;
    top:45px;
    font-size:49px
  }
  .hero .mini-label {
    font-size:9px
  }
  .hero .button {
    margin-top:17px;
    font-size:13px
  }
  .stats {
    gap:9px;
    margin-bottom:23px
  }
  .stat {
    padding:14px 12px;
    border-radius:16px
  }
  .stat-number {
    font-size:25px
  }
  .stat-symbol {
    display:none
  }
  .stat-label {
    font-size:10px;
    margin-top:4px
  }
  .cards {
    grid-template-columns:1fr;
    gap:13px
  }
  .work-card {
    padding:21px;
    border-radius:21px;
    gap:16px
  }
  .work-card h3 {
    font-size:19px
  }
  .section-title {
    margin:24px 0 15px
  }
  .section-title h2 {
    font-size:18px
  }
  .section-title .muted {
    font-size:11px
  }
  .panel {
    padding:20px;
    border-radius:20px
  }
  .panel h2 {
    font-size:20px
  }
  .list-row {
    gap:10px;
    align-items:flex-start
  }
  .list-main h3 {
    font-size:14px
  }
  .list-actions .button {
    font-size:11px;
    padding:8px 10px;
    min-height:36px
  }
  .subject-icon {
    height:34px;
    width:34px;
    border-radius:11px;
    font-size:17px
  }
  .question {
    padding:21px;
    border-radius:21px
  }
  .question-top {
    gap:9px
  }
  .question-top h3 {
    font-size:15px
  }
  .prompt {
    font-size:14px
  }
  .option {
    font-size:14px;
    padding:12px
  }
  .question-number {
    width:27px;
    height:27px;
    border-radius:9px
  }
  .points {
    font-size:10px
  }
  .attempt-header {
    top:62px
  }
  .attempt-header .time {
    font-size:15px
  }
  .submit-bar {
    padding:18px;
    align-items:flex-start;
    flex-direction:column;
    gap:14px
  }
  .submit-bar .button {
    width:100%
  }
  .result-hero {
    padding:24px
  }
  .result-score {
    font-size:44px
  }
  .form-grid {
    grid-template-columns:1fr
  }
  .export-card {
    padding:23px
  }
  .login-header {
    padding:24px
  }
  .login-header .quiet {
    font-size:11px
  }
  .login-layout {
    display:block;
    width:calc(100% - 40px);
    padding:15px 0 25px;
    margin:0 auto
  }
  .login-story {
    margin:10px 4px 30px
  }
  .login-story .eyebrow {
    font-size:9px;
    letter-spacing:1.3px
  }
  .login-story h1 {
    font-size:clamp(31px,10vw,44px);
    letter-spacing:-1.5px;
    margin:18px 0 14px;
    line-height:1.1
  }
  .login-story p {
    font-size:13px;
    line-height:1.6
  }
  .login-story h1 br:first-of-type {
    display:block
  }
  .story-pills {
    margin-top:18px;
    gap:6px
  }
  .story-pills span {
    font-size:10px;
    padding:5px 10px
  }
  .login-card {
    padding:26px;
    border-radius:25px
  }
  .login-card h2 {
    font-size:27px;
    margin-top:13px
  }
  .login-card>.muted {
    font-size:13px;
    margin-bottom:23px
  }
  .login-help {
    margin-top:22px;
    padding-top:19px
  }
  .login-footer {
    font-size:10px;
    padding:20px 24px;
    gap:15px
  }
  .login-footer span:last-child {
    display:none
  }
  .login-page .mini-label {
    font-size:10px
  }
  .filters {
    gap:7px
  }
  .filter {
    padding:7px 13px
  }
  .criterion {
    gap:10px
  }
  .criterion input {
    width:65px!important
  }
  .card-bottom .button {
    font-size:12px;
    padding:11px 14px
  }
  .list-actions {
    justify-content:flex-end
  }
  .builder-task {
    padding:16px
  }
}
@media(prefers-reduced-motion:no-preference) {
  .work-card,.button {
    transition:background .16s,border-color .16s,color .16s
  }
  .button:hover {
    transform:none
  }
}
[hidden] {
  display:none!important
}

.brand-signature {
  display: inline-block;
  margin-top: 7px;
  font-weight: 550;
  color: var(--muted);
}
.app-signature {
  padding: 12px 24px 20px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* Native material documents share the existing mobile palette and spacing. */
.material-body { max-width: 920px; margin-inline: auto; }
.material-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.material-body h2, .material-body h3 { overflow-wrap: anywhere; }
.material-image { margin: 1rem 0; }
.material-image img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.material-image figcaption { margin-top: .5rem; color: var(--muted, #617062); font-size: .875rem; }
.material-table { max-width: 100%; overflow-x: auto; margin-block: 1rem; }
.material-table table { width: 100%; border-collapse: collapse; min-width: 260px; }
.material-table th, .material-table td { padding: .7rem; border: 1px solid #dce4d8; text-align: left; overflow-wrap: anywhere; }
.material-question { margin-block: 1.5rem; padding: 1.25rem; background: #fff; border: 1px solid #e0e7db; border-radius: 20px; }
.material-part { margin-block: 1rem; }
.material-question .question { padding: 1rem 0; margin: 0; border: 0; box-shadow: none; background: transparent; }
.material-response-placeholder { padding: 1rem; border: 1px dashed #c3cebd; border-radius: 12px; color: #617062; }
.material-hint { padding: .8rem 1rem; margin-block: .75rem; background: #f4f8ee; border-radius: 12px; }
.material-hint summary { cursor: pointer; }
.material-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; }
.material-toolbar label { flex: 1 1 180px; }
.material-hash { overflow-wrap: anywhere; font-family: monospace; font-size: .8rem; }
.outcome-correct { background: #def5b4; color: #27500b; }
.outcome-incorrect { background: #fff0e8; color: #8c361b; }
.outcome-pending_manual, .outcome-unanswered { background: #eef1eb; color: #566051; }
@media (max-width: 480px) { .material-question { padding: 1rem; } .material-toolbar { gap: .6rem; } }
.material-image-open { display: block; max-width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: zoom-in; }
.material-image-open > span { display: block; margin-top: .5rem; }
.material-image-zoom { max-width: 100%; max-height: 70vh; overflow: auto; }
.material-image-zoom img { display: block; max-width: none; height: auto; }
.site-footer { padding: 24px; margin-inline: auto; max-width: 1200px; color: #63705e; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: .8rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.site-footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.public-page { min-height: 100vh; }
.public-page .app-header { height: auto; min-height: 70px; padding: 14px 20px; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.public-page .app-header .button { white-space: nowrap; }
.public-content { max-width: 900px; margin: 32px auto; padding: 0 20px; }
.public-content h1 { overflow-wrap: anywhere; }
.public-content h2 { margin-top: 1.5rem; }
.public-content p { line-height: 1.65; }
.settings-document { min-height: 360px; }
.site-footer .service-notice { flex-basis: 100%; margin: 0; max-width: 900px; line-height: 1.5; }

/* The lesson is the primary workspace, using the full browser frame. */
body.work-mode > .app-header, body.work-mode .sidebar, body.work-mode > .site-footer { display:none; }
body.work-mode .app-layout { display:block; min-height:100dvh; }
body.work-mode #content { max-width:none; padding:0; margin:0; }
.work-space { min-height:100dvh; --work-header-height:120px; }
.work-header { position:sticky; top:0; z-index:10; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px 28px; align-items:center; padding:16px 28px; background:var(--white); border-bottom:1px solid var(--line); }
.work-heading { min-width:0; }
.work-heading > .ghost { padding:0; min-height:32px; font-size:13px; }
.work-heading h1 { font-size:24px; line-height:1.25; letter-spacing:-.6px; overflow-wrap:anywhere; }
.work-heading p { font-size:13px; color:var(--muted); margin-top:6px; }
.work-tools { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.work-tools label { min-width:130px; }
.work-tools select { margin-top:3px; }
.work-status { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:8px 20px; font-size:13px; color:var(--muted); }
.work-status p { margin:0; }
.work-status details { min-width:0; max-width:100%; }
.work-save { display:grid; gap:5px; }
.work-save .time { font-size:18px; font-variant-numeric:tabular-nums; }
.work-save .save-state { font-size:13px; }
.work-layout { display:grid; grid-template-columns:250px minmax(0,1fr); align-items:start; }
.work-rail { position:sticky; top:calc(var(--work-header-height) + 16px); max-height:calc(100dvh - var(--work-header-height) - 32px); overflow-y:auto; padding:20px 16px; }
.work-rail h2 { font-size:15px; }
.work-rail nav { display:grid; gap:8px; margin-top:16px; }
.work-nav-item { display:grid; grid-template-columns:30px minmax(0,1fr) 16px; gap:10px; align-items:center; min-height:56px; padding:10px; border:1px solid transparent; border-radius:14px; background:transparent; text-align:left; font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
.work-nav-item:hover { background:#e9eedf; }
.work-nav-number { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; border:1px solid var(--line); background:white; font-size:13px; }
.work-nav-item.answered .work-answer-mark { color:var(--green); }
.work-nav-item.selected { color:white; background:var(--ink); }
.work-nav-item.selected .work-nav-number { background:var(--lime); border-color:var(--lime); color:var(--ink); }
.work-nav-item.selected .work-answer-mark { color:var(--lime); }
.work-main { min-width:0; padding:24px clamp(18px,3vw,48px) 40px; }
.work-position { color:var(--muted); font-size:14px; margin-bottom:12px; }
.work-page { background:var(--white); border:1px solid var(--line); border-radius:24px; padding:clamp(20px,3vw,40px); min-height:380px; outline:none; }
.work-page[hidden], #flow-page[hidden], #page-content[hidden], .inline-status[hidden] { display:none; }
.work-page > .question, .work-page > .material-question, .work-page > div > .question, .work-page > div > .material-question { border:0; padding:0; margin:0; box-shadow:none; }
.work-page h2 { font-size:27px; margin:12px 0 24px; line-height:1.3; }
.work-question-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:28px; }
.work-condition, .work-response { min-width:0; }
.work-column-label { font-size:12px!important; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); margin-bottom:14px; }
.work-condition .prompt, .work-condition .material-text, .work-reading { font-size:18px; line-height:1.75; }
.work-condition .prompt { white-space:normal; margin:0; }
.work-reading { max-width:90ch; }
.work-reading p, .work-condition .prompt p { margin:0 0 12px; }
.work-reading h2 { margin-top:0; }
.work-response > .question { border:0; border-bottom:1px solid var(--line); border-radius:0; padding:0 0 24px; margin:0 0 24px; }
.work-response > .question:last-child { border-bottom:0; margin-bottom:0; padding-bottom:0; }
.work-page .question-top { align-items:flex-start; flex-wrap:wrap; }
.work-page .question-top h3 { font-size:22px; line-height:1.35; }
.work-page .work-response .question-top h3 { font-size:18px; }
.work-page .points { font-size:13px; }
.work-page .option { font-size:17px; line-height:1.55; padding:16px; }
.work-page .option input { width:20px; height:20px; flex-shrink:0; }
.work-page .option > span:last-child { min-width:0; }
.work-page .student-answer, .work-page .solution, .work-page .teacher-comment, .work-page .criterion label { font-size:16px; line-height:1.65; }
.work-page .solution { white-space:normal; }
.work-page .solution p { margin:0 0 10px; }
.work-page .solution p strong { display:inline; }
.work-page textarea { min-height:150px; resize:vertical; }
.work-page .material-image img { border-radius:12px; }
.work-page .material-table table { font-size:16px; }
.work-pager { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:20px 0; }
.work-pager [data-work-count] { font-size:14px; color:var(--muted); font-variant-numeric:tabular-nums; }
.work-ending { padding:24px 0; border-top:1px solid var(--line); }
.work-ending .submit-bar { padding:0; border:0; background:transparent; margin:0; flex-wrap:wrap; }
.work-ending .panel { padding:0; background:transparent; border:0; }
.work-mobile-nav { display:none; }
.flow-content { max-width:1100px; margin:auto; }
.flow-content > form { display:grid; gap:18px; }
body.work-mode #flow-page { padding:24px; }
.inline-confirm { padding:20px; margin:16px 0; border:1px solid #b4cc89; border-radius:16px; background:var(--soft); font-size:16px; }
.inline-confirm p { margin-bottom:16px; }
.inline-status { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 20px; border:1px solid #b7cc95; background:var(--soft); color:var(--ink); border-radius:14px; margin-bottom:20px; font-size:15px; }
.inline-status.is-error { background:#fff1ed; border-color:#d8a696; }
body.work-mode .inline-status { margin:12px 20px; }
.material-image.image-expanded { overflow-x:auto; max-width:100%; }
.material-image.image-expanded img { max-width:none; }
.material-image-open { cursor:pointer; }
@media (min-width:1250px) { .work-question-layout { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:40px; } .work-response { border-left:1px solid var(--line); padding-left:32px; } }
@media (max-width:900px) {
  .work-header { grid-template-columns:minmax(0,1fr); padding:12px 18px; gap:10px; }
  .work-heading h1 { font-size:20px; }
  .work-heading p { font-size:12px; }
  .work-tools { justify-content:space-between; }
  .work-tools label { flex:1; }
  .work-tools .button { min-height:46px; }
  .work-layout { display:block; }
  .work-rail { display:none; }
  .work-mobile-nav { display:block; margin-bottom:18px; }
  .work-main { padding:18px 16px 32px; }
  .work-page { border-radius:18px; padding:20px; }
  .work-page h2 { font-size:23px; }
  .work-page .question-top h3 { font-size:22px; }
  .work-condition .prompt, .work-condition .material-text, .work-reading { font-size:17px; }
  .work-save .time { font-size:16px; }
  .work-save .save-state { font-size:12px; }
  .work-status { font-size:12px; }
}
@media (max-width:380px) {
  .work-header { padding:10px 12px; }
  .work-main { padding:14px 10px 28px; }
  .work-page { padding:16px; }
  .work-tools { gap:8px; }
  .work-tools .button { padding:12px; font-size:13px; }
}

.work-tools-html { display:contents; }
/* Reserve the same toolbar geometry in both key states. */
.work-tools:has(.key-toggle) { display:grid; grid-template-columns:140px 220px; align-items:end; }
.work-tools .key-toggle { width:220px; height:56px; min-height:56px; padding:10px 14px; gap:8px; font-size:14px; line-height:1.25; }
.key-toggle-mark { display:inline-block; flex:0 0 18px; width:18px; text-align:center; }
.key-toggle.is-active { background:var(--soft); border-color:#97b951; }
.work-status { min-height:22px; }
.work-main { display:flex; flex-direction:column; min-height:calc(100dvh - var(--work-header-height)); }
.work-page { flex:1; }
@media (max-width:900px) {
  .work-tools:has(.key-toggle) { grid-template-columns:minmax(0,1fr) minmax(0,1fr); width:100%; }
  .work-tools:has(.key-toggle) label { min-width:0; }
  .work-tools .key-toggle { width:100%; }
  .work-status { min-height:38px; }
}
.work-tools:has(.key-toggle) { height:70px; }
.work-tools:has(.key-toggle) label { display:grid; grid-template-rows:18px 48px; gap:4px; height:70px; line-height:18px; }
.work-tools:has(.key-toggle) select { margin-top:0; height:48px; }
.key-toggle-mark { height:20px; line-height:20px; }
