@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,400,0,0&family=Roboto:wght@400;500;700&display=swap");
:root {
  --primary: #e21b23;
  --primary-dark: #b61218;
  --primary-soft: #fff0f0;
  --secondary: #1a1a1a;
  --page: #f7f7f7;
  --surface: #fff;
  --ink: #242424;
  --muted: #6f6f6f;
  --line: #e3e3e3;
  --success: #287d55;
  --success-soft: #eaf6ef;
  --warning: #9b6500;
  --warning-soft: #fff4da;
  --info: #2767a8;
  --info-soft: #eaf3fc;
  --radius: 8px;
  --elevation: 0 1px 2px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
}
.main {
  max-width: 1480px;
  margin: auto;
  padding: 28px 32px 48px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.top h1,
.top h2 {
  margin: 0;
  color: var(--secondary);
}
.top p {
  margin: 5px 0 0;
  color: var(--muted);
}
.main .top h1,
h1 {
  font-size: 22px;
  line-height: 1.3;
}
.main h2,
h2 {
  font-size: 17px;
  line-height: 1.35;
}
.main h3,
h3 {
  font-size: 15px;
  line-height: 1.4;
}
p {
  color: var(--muted);
}
a {
  color: var(--primary);
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
  box-shadow: none;
}
.grid {
  display: grid;
  gap: 16px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mt {
  margin-top: 16px;
}
.metric-card {
  display: grid;
  min-height: 122px;
}
.metric-card .material-symbols-rounded {
  color: var(--primary);
}
.metric {
  align-self: end;
  margin-top: 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}
.metric-card small {
  color: var(--muted);
}
.btn,
.secondary-btn,
.danger-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.btn {
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}
.btn:hover {
  background: var(--primary-dark);
}
.secondary-btn {
  border: 1px solid #aaa;
  background: #fff;
  color: var(--secondary);
}
.danger-btn {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.icon-btn {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.action-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-head h2,
.section-head h3 {
  margin: 0;
}
.section-head p {
  margin: 4px 0 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 16px;
  padding: 5px 10px;
  background: #eee;
  color: #555;
  font-size: 12px;
  font-weight: 500;
}
.chip.success {
  background: var(--success-soft);
  color: var(--success);
}
.chip.warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.chip.primary {
  background: var(--primary-soft);
  color: var(--primary);
}
.chip.info {
  background: var(--info-soft);
  color: var(--info);
}
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.filters .search {
  flex: 1;
}
.search {
  position: relative;
}
.search .material-symbols-rounded {
  position: absolute;
  top: 10px;
  left: 11px;
  color: #777;
}
.search input {
  padding-left: 40px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: 2px solid rgba(226, 27, 35, 0.14);
}
textarea {
  resize: vertical;
}
label {
  display: grid;
  gap: 6px;
  color: #555;
  font-size: 12px;
  font-weight: 500;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.fields-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.form-section {
  display: grid;
  gap: 16px;
}
.helper {
  color: var(--muted);
  font-size: 11px;
}
.table-scroll {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  color: #777;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}
.table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}
.avatar.large {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
  font-size: 18px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.tabs a,
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.tabs .active {
  border-color: var(--primary);
  color: var(--primary);
}
.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #eee;
}
.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}
.list {
  display: grid;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child {
  border: 0;
}
.list-row > div {
  min-width: 0;
  flex: 1;
}
.list-row h3,
.list-row p {
  margin: 0;
}
.list-row p {
  margin-top: 4px;
}
.profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
}
.profile-hero > div {
  flex: 1;
}
.profile-hero h1 {
  margin: 0;
}
.profile-hero p {
  margin: 5px 0;
}
.detail-list {
  display: grid;
  margin: 0;
}
.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}
.score {
  font-weight: 700;
  color: var(--secondary);
}
.grade {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  font-weight: 700;
}
.empty {
  padding: 35px;
  text-align: center;
}
.empty .material-symbols-rounded {
  font-size: 42px;
  color: #aaa;
}
.schedule {
  padding: 12px;
  border-radius: 6px;
  background: #fafafa;
}
.schedule b,
.schedule span {
  display: block;
}
.schedule span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.step {
  padding: 13px;
  text-align: center;
  color: var(--muted);
}
.step.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 500;
}
.question-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fcfcfc;
  box-shadow: none;
}
.choice-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.choice input {
  width: auto;
}
.choice.correct {
  border-color: #7bbb9b;
  background: var(--success-soft);
}
.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 16px;
  align-items: start;
}
.sticky {
  position: sticky;
  top: 20px;
}
.editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 7px;
  border: 1px solid #aaa;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: #f3f3f3;
}
.editor-toolbar button {
  border: 0;
  padding: 7px 10px;
  background: transparent;
}
.rich-editor {
  min-height: 360px;
  padding: 22px;
  border: 1px solid #aaa;
  border-radius: 0 0 4px 4px;
  line-height: 1.65;
}
.question-map {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.question-map button {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.question-map button.answered {
  border-color: #15803d;
  background: #dcfce7;
  color: #166534;
}
.question-map button.unanswered {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
}
.question-map button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.question-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}
.question-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.question-map-legend i {
  width: 11px;
  height: 11px;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  background: #f8fafc;
}
.question-map-legend i.answered {
  border-color: #15803d;
  background: #dcfce7;
}
.question-map-legend i.current {
  border-color: var(--primary);
  background: var(--primary);
}
.attempt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 16px;
}
.answer-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.answer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.answer input {
  width: auto;
}
.answer:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.chart-bars {
  display: grid;
  gap: 14px;
}
.chart-row {
  display: grid;
  grid-template-columns: 160px 1fr 45px;
  align-items: center;
  gap: 12px;
}
.program-enrollment-progress {
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #eee;
}
.program-enrollment-progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #eee;
}
.program-enrollment-progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--primary);
}
.program-enrollment-progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--primary);
}
.login-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
}
.login-brand {
  display: grid;
  place-content: center;
  padding: 60px;
  background: #171717;
  color: #fff;
}
.login-brand img {
  width: 220px;
  padding: 16px;
  background: #fff;
}
.login-brand h1 {
  margin: 28px 0 5px;
  font-size: 36px;
}
.login-brand p {
  color: #bbb;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 32px;
}
.login-card {
  width: min(420px, 100%);
}
.google-btn {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #747775;
  border-radius: 4px;
  background: #fff;
  font-weight: 500;
}
.google-mark {
  font-size: 18px;
  font-weight: 700;
  color: #4285f4;
}
.snackbar {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  padding: 13px 18px;
  border-radius: 4px;
  background: #242424;
  color: #fff;
  box-shadow: none;
}
dialog {
  width: min(500px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 24px;
  box-shadow: none;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.48);
}
.assessment-top-actions,
.assessment-attempt-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.assessment-attempt-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  text-align: right;
}
.assessment-type-field {
  display: grid;
  gap: 6px;
}
.field-label-with-help {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.field-label-with-help label {
  color: #555;
  font-size: 12px;
  font-weight: 500;
}
.field-help-button {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 4px;
  border: 0;
  padding: 2px 4px;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.field-help-button .material-symbols-rounded {
  font-size: 18px;
}
dialog.assessment-type-help-dialog {
  width: min(760px, calc(100% - 32px));
}
.assessment-type-help {
  display: grid;
  gap: 20px;
}
.assessment-type-help-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.assessment-type-help-header h2,
.assessment-type-help-header p,
.assessment-type-help-list h3,
.assessment-type-help-list p,
.assessment-type-help-note {
  margin: 0;
}
.assessment-type-help-header p {
  margin-top: 6px;
}
.assessment-type-help-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.assessment-type-help-list section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.assessment-type-help-list h3 {
  margin-top: 12px;
}
.assessment-type-help-list p {
  margin-top: 7px;
  line-height: 1.55;
}
.assessment-type-help-note {
  padding: 12px 14px;
  border-radius: 4px;
  background: var(--info-soft);
  color: var(--ink);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .builder-layout,
  .attempt-layout {
    grid-template-columns: 1fr;
  }
  .sticky {
    position: static;
  }
}
@media (max-width: 600px) {
  .main {
    padding: 20px 14px;
  }
  .grid-4,
  .grid-3,
  .grid-2,
  .fields,
  .fields-3,
  .choice-list,
  .answer-list {
    grid-template-columns: 1fr;
  }
  .top,
  .section-head,
  .profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .assessment-top-actions {
    width: 100%;
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .assessment-attempt-actions {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }
  .assessment-type-help-list {
    grid-template-columns: 1fr;
  }
  .filters {
    flex-direction: column;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-brand {
    display: none;
  }
  .step {
    font-size: 11px;
  }
  .chart-row {
    grid-template-columns: 110px 1fr 38px;
  }
}
