:root {
  color-scheme: light;
  --blue: #175c95;
  --navy: #233b5c;
  --orange: #ed7843;
  --orange-ink: #aa441c;
  --ink: #25364a;
  --muted: #56667a;
  --line: #dce2eb;
  --surface: #f5f6fa;
  --green: #277452;
  --danger: #b12b39;
  --radius: 8px;
  font-family:
    Barlow,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0;
}
@font-face {
  font-family: Barlow;
  src: url("/static/barlow.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  min-height: 44px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  max-width: 100%;
  white-space: nowrap;
}
button:hover:not(:disabled) {
  background: #edf2f7;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button:disabled {
  cursor: not-allowed;
  background: #e8ecf1;
  color: #647184;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.primary:hover:not(:disabled) {
  background: #124b7b;
}
.danger {
  color: var(--danger);
}
a {
  color: var(--blue);
  text-underline-offset: 4px;
}
input,
select,
textarea {
  border: 1px solid #aab6c6;
  border-radius: var(--radius);
  min-height: 44px;
  padding: 9px 11px;
  background: white;
  min-width: 0;
  width: 100%;
  color: var(--ink);
  caret-color: var(--blue);
}
textarea {
  min-height: 90px;
  resize: vertical;
}
input::placeholder {
  color: #637187;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  accent-color: var(--blue);
}
label {
  display: grid;
  gap: 5px;
  font-weight: 600;
}
label small,
small {
  font-weight: 400;
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
::selection {
  background: #c4ddf0;
  color: #173557;
}
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-thumb {
  background: #adbaca;
  border-radius: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.3;
}
h2 {
  font-size: 20px;
  line-height: 1.4;
}
h3 {
  font-size: 16px;
}
p {
  max-width: 72ch;
}
.site-header {
  background: white;
  min-height: 84px;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--navy);
  font-size: 14px;
}
.brand img {
  width: 45px;
  height: 52px;
  object-fit: contain;
}
.brand strong {
  display: block;
  font-size: 20px;
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
#account-name {
  display: grid;
  line-height: 1.4;
}
#account-name small {
  font-size: 11px;
}
.icon {
  width: 44px;
  height: 44px;
  flex: none;
  padding: 10px;
}
.icon svg,
button svg {
  width: 19px;
  height: 19px;
  flex: none;
}
.environment {
  padding: 7px 32px;
  background: #fff0e7;
  color: var(--orange-ink);
  font-size: 12px;
}
nav {
  display: flex;
  gap: 24px;
  padding: 0 32px;
  background: white;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
nav a {
  padding: 16px 2px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  font-weight: 600;
}
nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--orange);
}
main {
  max-width: 1376px;
  margin: auto;
  padding: 32px 32px 72px;
}
section {
  margin-top: 32px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.heading p {
  color: var(--muted);
  margin-top: 8px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.toolbar label {
  min-width: 180px;
  flex: 1;
}
.toolbar button {
  flex: none;
}
.filters {
  display: grid;
  grid-template-columns: minmax(200px, 1.5fr) 1fr 1fr;
  gap: 16px;
  padding-bottom: 24px;
}
.table-wrap {
  overflow: auto;
  border-top: 1px solid var(--line);
  background: white;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
}
th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  background: #edf1f6;
  white-space: nowrap;
}
td,
th {
  padding: 15px 16px;
  border-bottom: 1px solid #e8ecf2;
  vertical-align: middle;
}
td small {
  display: block;
}
td button {
  padding: 0;
  min-height: 38px;
  background: transparent;
  border: 0;
  color: var(--blue);
  text-align: left;
  justify-content: start;
}
td.number {
  font-variant-numeric: tabular-nums;
}
.empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: white;
}
.empty h2 {
  color: var(--navy);
  margin-bottom: 8px;
}
.empty button {
  margin-top: 20px;
}
.error {
  color: var(--danger);
  font-size: 14px;
  white-space: pre-wrap;
}
.note {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0;
}
.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  background: #edf1f6;
  color: #42576f;
  font-size: 12px;
  white-space: normal;
}
.tag.green {
  background: #e8f4ed;
  color: #236344;
}
.tag.orange {
  background: #fff0e7;
  color: var(--orange-ink);
}
.tag.red {
  background: #fae9ed;
  color: #9d2534;
}
.login {
  max-width: 400px;
  margin: 72px auto;
  padding: 0 24px;
}
.login form {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
.profile-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.profile-meta > div {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.profile-meta strong {
  display: block;
  font-size: 19px;
  color: var(--navy);
}
.profile-meta small {
  display: block;
  margin-top: 5px;
}
.ability {
  background: var(--navy);
  color: white;
  padding: 28px;
  border-radius: 28px;
  border-bottom: 6px solid var(--orange);
}
.ability-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}
.ability h2 {
  font-size: 25px;
}
.ability .subtle {
  color: #d3e1f1;
}
.ability select {
  max-width: 240px;
  background: #314b6c;
  color: white;
  border-color: #8a9db6;
}
.ability label {
  color: #e0e9f5;
  font-size: 13px;
}
.total {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.total small {
  font-size: 14px;
  color: #d3e1f1;
}
.identity {
  display: flex;
  gap: 18px;
  align-items: center;
}
.avatar {
  width: 64px;
  height: 72px;
  display: grid;
  place-items: center;
  background: #3a5679;
  border: 2px solid #f8b18e;
  border-radius: 14px;
  font-size: 28px;
  flex: none;
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
}
.skill {
  min-width: 0;
}
.track {
  height: 10px;
  background: #415979;
  border-radius: 8px;
  margin-bottom: 18px;
  overflow: hidden;
}
.track span {
  height: 100%;
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #ffbb71, #ed7843);
}
.skill:nth-child(2) .track span {
  background: linear-gradient(90deg, #c2caff, #8297f2);
}
.skill:nth-child(3) .track span {
  background: linear-gradient(90deg, #99dfb6, #57af8f);
}
.skill:nth-child(4) .track span {
  background: linear-gradient(90deg, #f2c4d9, #c788b5);
}
.skill-score {
  font-size: 27px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.skill-score small {
  font-size: 13px;
  color: #d3e1f1;
}
.skill p {
  font-size: 13px;
  color: #d3e1f1;
  margin-top: 8px;
}
.ability-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.ability-footer button {
  background: #314b6c;
  color: white;
  border-color: #8a9db6;
}
.growth-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.4fr);
  gap: 40px;
}
.radar {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  margin: auto;
}
.radar text {
  fill: var(--ink);
  font-size: 12px;
}
.history {
  display: grid;
  gap: 12px;
}
.history-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
}
.history-row p {
  font-size: 13px;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.span-2 {
  grid-column: 1/-1;
}
.stack {
  display: grid;
  gap: 20px;
}
.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 24px;
}
.step-list {
  display: flex;
  gap: 20px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  color: var(--muted);
}
.step-list li {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}
.step-list li.active {
  color: var(--blue);
  border-color: var(--orange);
}
.summary {
  display: flex;
  gap: 32px;
  padding: 20px 0;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.summary strong {
  font-size: 26px;
  display: block;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.file-input {
  max-width: 600px;
}
.mapping {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}
.mapping p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  font-size: 13px;
}
.batch-list {
  margin-top: 24px;
}
.batch-list td:nth-child(2),
.batch-list td:nth-child(3),
.batch-list .tag {
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.calendar-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}
.calendar-controls input {
  width: 156px;
}
.segmented {
  display: inline-flex;
  gap: 0;
}
.segmented button {
  min-width: 52px;
  border-radius: 0;
}
.segmented button:first-child {
  border-radius: 8px 0 0 8px;
}
.segmented button:last-child {
  border-radius: 0 8px 8px 0;
}
.segmented button[aria-pressed="true"] {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.lesson-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.lesson-row h2,
.lesson-row h3,
.lesson-row p {
  margin: 0 0 4px;
}
.lesson-row h2 {
  font-size: 18px;
}
.lesson-time {
  display: grid;
  color: var(--muted);
  font-size: 14px;
}
.lesson-time strong {
  color: var(--ink);
}
.lesson-info {
  min-width: 0;
  overflow-wrap: anywhere;
}
.lesson-open {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}
.lesson-open svg {
  width: 18px;
  height: 18px;
}
.lesson-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.lesson-facts div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  overflow-wrap: anywhere;
}
.lesson-facts dt {
  color: var(--muted);
  font-size: 13px;
}
.lesson-facts dd {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.rule-list dt {
  font-size: 13px;
  color: var(--muted);
}
.rule-list dd {
  margin: 4px 0 0;
}
.teaching-table {
  margin-top: 16px;
}
.teaching-table table {
  min-width: 660px;
}
.teaching-table .tag {
  white-space: nowrap;
}
.teaching-table .toolbar {
  min-width: 200px;
}
@media (max-width: 640px) {
  .lesson-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 20px 0;
  }
  .lesson-time {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .lesson-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }
  .lesson-facts dd {
    font-size: 16px;
  }
  .rule-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.schedule-history {
  margin-top: 32px;
}
.roster-export {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  white-space: nowrap;
}
.roster-export svg {
  width: 19px;
  height: 19px;
}
.check-list {
  padding: 0;
  list-style: none;
}
.check-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: center;
}
.completion {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #8b99ad;
  border-radius: 4px;
  flex: none;
  color: var(--green);
}
.completion svg {
  width: 19px;
  height: 19px;
}
.check-list small {
  display: block;
}
.assessment-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 95px 115px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.assessment-row label {
  font-size: 12px;
}
dialog {
  padding: 0;
  border: 0;
  border-radius: 18px;
  max-width: 760px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  box-shadow: 0 24px 80px #1a2c4640;
  color: var(--ink);
}
dialog::backdrop {
  background: #14243a66;
}
.dialog-header {
  padding: 18px 24px;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: white;
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
#dialog-body {
  padding: 24px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  background: var(--navy);
  color: white;
  border-radius: 8px;
  max-width: calc(100% - 32px);
  z-index: 20;
  box-shadow: 0 5px 20px #233b5c33;
}
[hidden] {
  display: none !important;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #edf1f6;
  padding: 16px;
  border-radius: 8px;
  font-size: 12px;
}
details {
  margin: 16px 0;
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
  color: var(--blue);
}
.back {
  margin-bottom: 24px;
}
.dictionary-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) {
  .profile-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .growth-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .skill-grid {
    gap: 14px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters label:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
    gap: 10px;
    min-height: 76px;
  }
  .brand {
    gap: 9px;
    font-size: 12px;
  }
  .brand strong {
    font-size: 17px;
  }
  .brand img {
    width: 34px;
    height: 43px;
  }
  .account {
    font-size: 11px;
    gap: 6px;
  }
  .environment {
    padding: 7px 16px;
  }
  .site-header .account span {
    max-width: 90px;
  }
  nav {
    padding: 0 16px;
    gap: 24px;
  }
  main {
    padding: 24px 16px 56px;
  }
  h1 {
    font-size: 24px;
  }
  .heading {
    gap: 16px;
  }
  .heading .toolbar {
    width: 100%;
  }
  .toolbar button {
    flex: 0 0 auto;
  }
  .filters {
    gap: 12px;
  }
  .ability {
    padding: 20px 16px;
    border-radius: 22px;
  }
  .ability-header {
    flex-wrap: wrap;
    gap: 18px;
  }
  .ability-header > label {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
  .ability select {
    max-width: none;
  }
  .ability h2 {
    font-size: 21px;
  }
  .identity {
    gap: 12px;
  }
  .avatar {
    width: 52px;
    height: 62px;
  }
  .skill-grid {
    gap: 10px;
  }
  .skill-score {
    font-size: 23px;
    min-height: 54px;
  }
  .skill-score.unassessed {
    font-size: 14px;
    display: flex;
    align-items: start;
    white-space: nowrap;
  }
  .skill-score small {
    display: block;
    font-size: 11px;
  }
  .skill h3 {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .skill p {
    font-size: 11px;
  }
  .track {
    height: 9px;
    margin-bottom: 10px;
  }
  .profile-meta {
    gap: 12px;
  }
  .profile-meta strong {
    font-size: 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .summary {
    gap: 22px;
  }
  .mapping {
    grid-template-columns: 1fr;
  }
  .assessment-row {
    grid-template-columns: minmax(70px, 1fr) 72px 90px;
    gap: 8px;
  }
  #dialog-body {
    padding: 20px 16px;
  }
  .dialog-header {
    padding: 14px 16px;
  }
  .history-row {
    flex-wrap: wrap;
  }
  .total {
    font-size: 30px;
  }
  .back {
    margin-bottom: 18px;
  }
  td,
  th {
    padding: 12px;
  }
  section {
    margin-top: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  button:active:not(:disabled) {
    transform: none;
  }
}

.workspace-receipt-panel{position:fixed;bottom:16px;right:16px;left:16px;max-width:680px;margin:auto;padding:20px;background:#fff;color:#122b42;border:2px solid #175c95;z-index:10000;box-shadow:0 8px 32px #0003}
