/* Grade page styles — single owner for #desktop-grade-hub.
 * Loaded after desktop-shell.css. Edit here for 批改 visuals.
 */

#desktop-grade-hub {
  --grade-canvas: #09131d;
  --grade-surface: #0e1a23;
  --grade-surface-raised: #12232d;
  --grade-input: #0a151d;
  --grade-border: #28404e;
  --grade-border-strong: #356170;
  --grade-text: #edf8fb;
  --grade-muted: #9ab2bc;
  --grade-faint: #6e8792;
  --grade-mint: #43e6cf;
  --grade-mint-bright: #75f5df;
  --grade-mint-soft: rgba(67, 230, 207, .13);
  --grade-sky: #78bbff;
  position: fixed;
  inset: 0 var(--desktop-right-width) 0 var(--desktop-left-width);
  z-index: 82;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--grade-text);
  container-type: inline-size;
  background: var(--grade-canvas);
  box-sizing: border-box;
}

@container (max-width: 900px) {
  #desktop-grade-hub .desktop-grade-shell {
    width: 100%;
    padding: 24px 18px 36px;
  }

  #desktop-grade-hub .desktop-grade-head,
  #desktop-grade-hub .desktop-grade-footer,
  #desktop-grade-hub .desktop-grade-result-card > header {
    flex-direction: column;
    align-items: stretch;
  }

  #desktop-grade-hub .desktop-grade-panels,
  #desktop-grade-hub .desktop-grade-score-grid,
  #desktop-grade-hub .desktop-grade-score-summary-main {
    grid-template-columns: 1fr;
  }

  #desktop-grade-hub .desktop-grade-panels {
    min-height: 0;
  }

  #desktop-grade-hub .desktop-grade-panel textarea,
  #desktop-grade-hub .desktop-grade-upload-zone {
    min-height: 240px;
  }

  #desktop-grade-hub .desktop-grade-submit {
    width: 100%;
  }
}

body.desktop-nav-collapsed #desktop-grade-hub { left: 0; }
body.context-collapsed #desktop-grade-hub { right: 0; }

/* Keep the people rail fully inside the viewport on this route. */
body.route-grade #desktop-contextbar {
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

body.route-grade #desktop-contextbar .people-panel,
body.route-grade #desktop-contextbar .people-feature,
body.route-grade #desktop-contextbar .people-rank-card,
body.route-grade #desktop-contextbar .people-feature-stats,
body.route-grade #desktop-contextbar .people-row {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.route-grade #desktop-contextbar .people-feature {
  margin-left: -12px;
  margin-right: -12px;
  padding-left: 12px;
  padding-right: 12px;
}

body.route-grade #desktop-contextbar .people-row {
  grid-template-columns: 20px minmax(0, 1fr) auto minmax(48px, auto);
}

#desktop-grade-hub .desktop-grade-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 40px clamp(24px, 2.6vw, 44px) 36px;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

#desktop-grade-hub .desktop-grade-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex: 0 0 auto;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--grade-border);
}

#desktop-grade-hub .desktop-grade-head > div > span {
  color: var(--grade-mint-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

#desktop-grade-hub .desktop-grade-head h1 {
  margin: 7px 0 6px;
  color: #f5fbff;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

#desktop-grade-hub .desktop-grade-head p {
  max-width: 620px;
  margin: 0;
  color: var(--grade-muted);
  font-size: 14px;
  line-height: 1.75;
}

#desktop-grade-hub .desktop-grade-head > a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid rgba(117, 245, 223, .66);
  border-radius: 0;
  color: #b8fff4;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  background: transparent;
}

#desktop-grade-hub .desktop-grade-workspace {
  --grade-panel-inset: 16px;
  --grade-outer-rail: 0px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 18px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#desktop-grade-hub .desktop-grade-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0 0 2px;
  list-style: none;
}

#desktop-grade-hub .desktop-grade-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--grade-faint);
  font-size: 12px;
  font-weight: 700;
}

#desktop-grade-hub .desktop-grade-steps li:not(:last-child)::after {
  width: clamp(28px, 4vw, 68px);
  height: 1px;
  margin: 0 12px;
  background: var(--grade-border);
  content: '';
}

#desktop-grade-hub .desktop-grade-steps b {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--grade-border);
  border-radius: 50%;
  color: #9bb8c1;
  font-size: 11px;
}

#desktop-grade-hub .desktop-grade-steps .is-active { color: #d9fffa; }

#desktop-grade-hub .desktop-grade-steps .is-active b {
  border-color: var(--grade-mint);
  background: var(--grade-mint-soft);
  color: var(--grade-mint-bright);
  box-shadow: none;
}

#desktop-grade-hub .desktop-grade-typebar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
  width: 100%;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--grade-border);
  background: transparent;
}

#desktop-grade-hub .desktop-grade-typebar > span {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  color: var(--grade-muted);
  font-size: 13px;
  font-weight: 700;
}

#desktop-grade-hub .desktop-grade-typebar button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--grade-border);
  border-radius: 4px;
  background: var(--grade-surface);
  color: var(--grade-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

#desktop-grade-hub .desktop-grade-typebar button.is-active {
  border-color: var(--grade-mint);
  background: var(--grade-mint-soft);
  color: #eafffc;
  box-shadow: inset 0 1px rgba(198, 255, 247, .14);
}

#desktop-grade-hub .desktop-grade-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  flex: 1 1 auto;
  align-items: stretch;
  width: 100%;
  min-height: clamp(360px, calc(100dvh - 280px), 620px);
  box-sizing: border-box;
}

#desktop-grade-hub .desktop-grade-panel {
  --grade-panel-inset: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--grade-border);
  border-radius: 8px;
  background: var(--grade-surface);
  box-shadow: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

#desktop-grade-hub .desktop-grade-panel:focus-within {
  border-color: var(--grade-border-strong);
  background: #10202a;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .2), 0 0 0 1px rgba(67, 230, 207, .04);
}

#desktop-grade-hub .desktop-grade-panel > header {
  min-height: 50px;
  padding: 13px var(--grade-panel-inset);
  border-bottom: 1px solid var(--grade-border);
  background: var(--grade-surface-raised);
  box-shadow: inset 3px 0 0 var(--grade-mint);
}

#desktop-grade-hub .desktop-grade-panel > header span {
  color: var(--grade-text);
  font-size: 17px;
  font-weight: 700;
}

#desktop-grade-hub .desktop-grade-input-modes {
  display: flex;
  gap: 3px;
  margin: 14px var(--grade-panel-inset) 0;
  padding: 3px;
  border: 1px solid var(--grade-border);
  border-radius: 6px;
  background: var(--grade-input);
}

#desktop-grade-hub .desktop-grade-input-modes button {
  flex: 1;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--grade-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

#desktop-grade-hub .desktop-grade-input-modes button.is-active {
  border-color: var(--grade-mint);
  background: var(--grade-mint-soft);
  color: #effffc;
  box-shadow: inset 0 1px rgba(219, 255, 250, .07);
}

#desktop-grade-hub .desktop-grade-panel textarea {
  display: block;
  width: calc(100% - (var(--grade-panel-inset) * 2));
  flex: 1 1 auto;
  min-height: clamp(320px, calc(100dvh - 320px), 560px);
  box-sizing: border-box;
  margin: 14px var(--grade-panel-inset) 16px;
  padding: 15px 16px 18px;
  border: 1px solid var(--grade-border);
  border-radius: 4px;
  background: var(--grade-input);
  color: var(--grade-text);
  font-size: 16px;
  line-height: 1.82;
  resize: vertical;
}

/* `hidden` must win over the base textarea rule when switching to image input. */
#desktop-grade-hub .desktop-grade-panel textarea[hidden] {
  display: none;
}

/* Mode state is on the panel as a second guard against browser/default textarea rules. */
#desktop-grade-hub .desktop-grade-panel.desktop-grade-image-mode #desktop-grade-answer {
  display: none;
}

#desktop-grade-hub .desktop-grade-panel textarea:focus {
  outline: 0 !important;
  outline-offset: 0 !important;
  border-color: var(--grade-mint);
  box-shadow: 0 0 0 3px rgba(67, 230, 207, .11) !important;
}

#desktop-grade-hub .desktop-grade-input-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -7px var(--grade-panel-inset) 14px;
  color: var(--grade-faint);
  font-size: 11px;
  line-height: 1.4;
}

#desktop-grade-hub .desktop-grade-input-meta span:last-child {
  flex: 0 0 auto;
  color: #a4c6cf;
  font-variant-numeric: tabular-nums;
}

#desktop-grade-hub .desktop-grade-answer-meta[hidden] { display: none; }

/* The app-wide accessibility ring changes the visual box size. These two
 * fields already have a persistent border, so keep focus feedback in text/caret
 * only and preserve the shared 16px alignment rail. */
#desktop-grade-hub .desktop-grade-panel textarea:focus-visible,
#desktop-grade-hub .desktop-grade-panel textarea::-moz-focus-inner {
  outline: 0 !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

#desktop-grade-hub .desktop-grade-upload-zone {
  display: grid;
  align-content: center;
  gap: 12px;
  flex: 1 1 auto;
  min-height: clamp(320px, calc(100dvh - 320px), 560px);
  padding: 22px var(--grade-panel-inset);
}

#desktop-grade-hub .desktop-grade-upload-zone[hidden] { display: none; }

#desktop-grade-hub .desktop-grade-upload-zone > button {
  min-height: 42px;
  border: 1px solid rgba(116, 232, 220, 0.28);
  border-radius: 9px;
  background: rgba(8, 32, 36, 0.44);
  color: #bdebe4;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#desktop-grade-hub .desktop-grade-upload-intro {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 4px 20px 10px;
  text-align: center;
}

#desktop-grade-hub .desktop-grade-upload-intro strong {
  color: #e6f8f4;
  font-size: 15px;
  letter-spacing: -0.01em;
}

#desktop-grade-hub .desktop-grade-upload-intro span {
  color: #78918e;
  font-size: 12px;
  line-height: 1.65;
}

#desktop-grade-hub .desktop-grade-upload-zone > [data-grade-select-file] {
  min-height: 48px;
  border-color: rgba(85, 221, 207, 0.42);
  background: linear-gradient(135deg, rgba(16, 67, 69, 0.66), rgba(10, 38, 42, 0.56));
  color: #d9fffa;
}

#desktop-grade-hub .desktop-grade-upload-zone > [data-grade-recognize] {
  min-height: 40px;
  border-color: rgba(116, 232, 220, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: #a8d7d0;
}

#desktop-grade-hub .desktop-grade-upload-zone > button:disabled {
  opacity: 0.65;
  cursor: wait;
}

#desktop-grade-hub .desktop-grade-upload-zone [data-grade-file-list] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

#desktop-grade-hub .desktop-grade-upload-zone [data-grade-file-list] > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 7px 5px 9px;
  border: 1px solid rgba(151, 224, 217, 0.15);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: #aac3bf;
  font-size: 11px;
}

#desktop-grade-hub .desktop-grade-upload-zone [data-grade-file-list] button {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(233, 128, 128, 0.16);
  color: #f2c2c2;
  cursor: pointer;
}

#desktop-grade-hub .desktop-grade-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--grade-border);
}

#desktop-grade-hub .desktop-grade-footer p {
  margin: 0;
  color: var(--grade-muted);
  font-size: 12px;
}

#desktop-grade-hub .desktop-grade-submit {
  min-width: 174px;
  height: 44px;
  border: 1px solid var(--grade-mint);
  border-radius: 4px;
  background: linear-gradient(135deg, #45e5d0, #59d7ee);
  color: #07222a;
  box-shadow: 0 8px 20px rgba(52, 207, 212, .18);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
}

#desktop-grade-hub .desktop-grade-submit:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

#desktop-grade-hub .desktop-grade-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Grade route: a cool, transparent activity rail instead of the old muddy green. */
body.route-grade #desktop-contextbar .people-feature {
  border-bottom-color: #243a48;
}

body.route-grade #desktop-contextbar .people-feature-title i,
body.route-grade #desktop-contextbar .people-feature-stats b,
body.route-grade #desktop-contextbar .people-row > b,
body.route-grade #desktop-contextbar .people-row > span,
body.route-grade #desktop-contextbar .people-row button {
  color: #5bead8;
}

body.route-grade #desktop-contextbar .people-feature-stats span {
  border-color: #245c65;
  background: linear-gradient(145deg, #0d2029, #0b1922);
  color: #91aab4;
  box-shadow: inset 0 1px rgba(127, 240, 224, .06);
}

body.route-grade #desktop-contextbar .people-rank-card {
  border-color: #283e4b;
  background: #0d1720;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .2);
}

body.route-grade #desktop-contextbar .people-rank-tabs,
body.route-grade #desktop-contextbar .people-row {
  border-color: rgba(113, 185, 200, .14);
}

body.route-grade #desktop-contextbar .people-rank-tabs button.active {
  border-bottom-color: #5bead8;
  color: #e7fbff;
}

body.route-grade #desktop-contextbar .people-row:hover {
  background: #10232c;
}

body.route-grade #desktop-contextbar .people-row button {
  border-color: #287e82;
}

#desktop-grade-hub .desktop-grade-result-card {
  padding: 26px;
  border: 1px solid #303638;
  border-radius: 6px;
  background: #111416;
}

#desktop-grade-hub .desktop-grade-result-card.is-pending,
#desktop-grade-hub .desktop-grade-result-card.is-error {
  color: #9bb4b0;
}

#desktop-grade-hub .desktop-grade-result-card.is-pending {
  padding: 18px 20px;
  border-color: #2a4c49;
  border-radius: 7px;
  background: #101416;
}

#desktop-grade-hub .desktop-grade-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #d7ebe7;
  font-size: 14px;
  font-weight: 700;
}

#desktop-grade-hub .desktop-grade-progress-head strong {
  color: #73d8cb;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

#desktop-grade-hub .desktop-grade-progress-track {
  height: 4px;
  margin: 13px 0 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #252a2c;
}

#desktop-grade-hub .desktop-grade-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #35d6c5;
  transition: width .55s ease;
}

#desktop-grade-hub .desktop-grade-result-card.is-pending p {
  margin: 0;
  color: #b7cbc7;
  font-size: 13px;
}

#desktop-grade-hub .desktop-grade-result-card.is-pending small {
  display: block;
  margin-top: 5px;
  color: #788986;
  font-size: 11px;
}

#desktop-grade-hub .desktop-grade-result-card.is-error {
  border-color: rgba(233, 128, 128, 0.35);
  color: #f0b4b4;
}

#desktop-grade-hub .desktop-grade-result-card > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

#desktop-grade-hub .desktop-grade-result-card > header span {
  color: #63d9cb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

#desktop-grade-hub .desktop-grade-result-card > header h2 {
  margin: 8px 0 0;
  color: #eef8f6;
  font-size: 22px;
}

#desktop-grade-hub .desktop-grade-score {
  color: #52dfd1;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.04em;
}

#desktop-grade-hub .desktop-grade-score small {
  margin-left: 4px;
  color: #8fb4af;
  font-size: 14px;
}

#desktop-grade-hub .desktop-grade-score-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(134, 224, 212, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

#desktop-grade-hub .desktop-grade-score-summary-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#desktop-grade-hub .desktop-grade-score-summary-main div {
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.12);
}

#desktop-grade-hub .desktop-grade-score-summary-main span {
  display: block;
  color: #8fa3a1;
  font-size: 11px;
}

#desktop-grade-hub .desktop-grade-score-summary-main strong {
  display: block;
  margin-top: 5px;
  color: #eef8f6;
  font-size: 14px;
}

#desktop-grade-hub .desktop-grade-score-rail {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(134, 224, 212, 0.12);
}

#desktop-grade-hub .desktop-grade-score-rail i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #45e5d0, #59d7ee);
}

#desktop-grade-hub .desktop-grade-score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

#desktop-grade-hub .desktop-grade-score-grid div {
  padding: 14px;
  border: 1px solid rgba(134, 224, 212, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

#desktop-grade-hub .desktop-grade-score-grid span {
  display: block;
  color: #8fa3a1;
  font-size: 11px;
}

#desktop-grade-hub .desktop-grade-score-grid strong {
  display: block;
  margin-top: 6px;
  color: #e8f7f4;
  font-size: 22px;
}

#desktop-grade-hub .desktop-grade-feedback,
#desktop-grade-hub .desktop-grade-diagnosis,
#desktop-grade-hub .desktop-grade-suggestions,
#desktop-grade-hub .desktop-grade-priority,
#desktop-grade-hub .desktop-grade-detail,
#desktop-grade-hub .desktop-grade-submitted {
  margin-top: 16px;
}

#desktop-grade-hub .desktop-grade-feedback h3,
#desktop-grade-hub .desktop-grade-diagnosis h3,
#desktop-grade-hub .desktop-grade-suggestions h3,
#desktop-grade-hub .desktop-grade-priority h3,
#desktop-grade-hub .desktop-grade-detail h3,
#desktop-grade-hub .desktop-grade-submitted h3 {
  margin: 0 0 8px;
  color: #d9f2ed;
  font-size: 15px;
}

#desktop-grade-hub .desktop-grade-feedback p,
#desktop-grade-hub .desktop-grade-suggestions li {
  color: #cfe4df;
  font-size: 14px;
  line-height: 1.7;
}

#desktop-grade-hub .desktop-grade-issue-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

#desktop-grade-hub .desktop-grade-issue-list li {
  padding: 10px 12px;
  border: 1px solid rgba(134, 224, 212, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
}

#desktop-grade-hub .desktop-grade-issue-list li strong {
  display: block;
  color: #eef8f6;
  font-size: 13px;
  line-height: 1.5;
}

#desktop-grade-hub .desktop-grade-issue-list li small {
  display: block;
  margin-top: 4px;
  color: #8fa3a1;
  font-size: 11px;
  line-height: 1.6;
}

#desktop-grade-hub .desktop-grade-issue-list li.is-high {
  border-color: rgba(233, 128, 128, 0.28);
}

#desktop-grade-hub .desktop-grade-issue-list li.is-medium {
  border-color: rgba(116, 232, 220, 0.16);
}

#desktop-grade-hub .desktop-grade-priority-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#desktop-grade-hub .desktop-grade-priority-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(116, 232, 220, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #b7d4cf;
  font-size: 12px;
  line-height: 1;
}

#desktop-grade-hub .desktop-grade-detail pre {
  margin: 6px 0 0;
  padding: 12px 14px;
  overflow: auto;
  border-left: 2px solid rgba(82, 223, 209, 0.52);
  background: rgba(0, 0, 0, 0.16);
  color: #cfe4df;
  white-space: pre-wrap;
  font: 13px/1.7 inherit;
}

#desktop-grade-hub .desktop-grade-submitted pre {
  margin: 6px 0 14px;
  padding: 12px 14px;
  overflow: auto;
  border: 1px solid rgba(134, 224, 212, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  color: #b9d0cb;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.65;
}

#desktop-grade-hub .desktop-grade-result-card footer {
  margin-top: 18px;
}

#desktop-grade-hub .desktop-grade-result-card footer a {
  color: #7fe5d7;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 980px) {
  #desktop-grade-hub {
    inset: 0;
  }

  #desktop-grade-hub .desktop-grade-shell {
    width: 100%;
    padding: 20px 16px 36px;
  }

  #desktop-grade-hub .desktop-grade-head,
  #desktop-grade-hub .desktop-grade-footer,
  #desktop-grade-hub .desktop-grade-result-card > header {
    flex-direction: column;
    align-items: stretch;
  }

  #desktop-grade-hub .desktop-grade-panels,
  #desktop-grade-hub .desktop-grade-score-grid {
    grid-template-columns: 1fr;
  }

  #desktop-grade-hub .desktop-grade-panels {
    min-height: 0;
  }

  #desktop-grade-hub .desktop-grade-steps { overflow-x: auto; padding-bottom: 7px; }

  #desktop-grade-hub .desktop-grade-panel textarea,
  #desktop-grade-hub .desktop-grade-upload-zone {
    min-height: 220px;
  }
}

body.desktop-light #desktop-grade-hub {
  color: #1f2d33;
  background:
    radial-gradient(circle at 16% 0%, rgba(41, 184, 169, 0.10), transparent 34%),
    #eef2f3;
}

body.desktop-light #desktop-grade-hub .desktop-grade-head h1,
body.desktop-light #desktop-grade-hub .desktop-grade-panel > header span,
body.desktop-light #desktop-grade-hub .desktop-grade-result-card > header h2 {
  color: #173038;
}

body.desktop-light #desktop-grade-hub .desktop-grade-panel,
body.desktop-light #desktop-grade-hub .desktop-grade-result-card,
body.desktop-light #desktop-grade-hub .desktop-grade-typebar {
  border-color: rgba(23, 143, 131, 0.18);
  background: rgba(255, 255, 255, 0.84);
}

body.desktop-light #desktop-grade-hub .desktop-grade-panel textarea {
  color: #1f2d33;
}

body.desktop-light #desktop-grade-hub .desktop-grade-score {
  color: #14786e;
}

body.desktop-light #desktop-grade-hub .desktop-grade-score small,
body.desktop-light #desktop-grade-hub .desktop-grade-score-summary-main span,
body.desktop-light #desktop-grade-hub .desktop-grade-score-grid span,
body.desktop-light #desktop-grade-hub .desktop-grade-issue-list li small {
  color: #5d7279;
}

body.desktop-light #desktop-grade-hub .desktop-grade-score-summary-main strong,
body.desktop-light #desktop-grade-hub .desktop-grade-score-grid strong,
body.desktop-light #desktop-grade-hub .desktop-grade-issue-list li strong {
  color: #173038;
}

body.desktop-light #desktop-grade-hub .desktop-grade-feedback h3,
body.desktop-light #desktop-grade-hub .desktop-grade-diagnosis h3,
body.desktop-light #desktop-grade-hub .desktop-grade-suggestions h3,
body.desktop-light #desktop-grade-hub .desktop-grade-priority h3,
body.desktop-light #desktop-grade-hub .desktop-grade-detail h3,
body.desktop-light #desktop-grade-hub .desktop-grade-submitted h3 {
  color: #173038;
}

body.desktop-light #desktop-grade-hub .desktop-grade-feedback p,
body.desktop-light #desktop-grade-hub .desktop-grade-suggestions li {
  color: #24383d;
}

body.desktop-light #desktop-grade-hub .desktop-grade-score-summary,
body.desktop-light #desktop-grade-hub .desktop-grade-score-grid div,
body.desktop-light #desktop-grade-hub .desktop-grade-issue-list li {
  border-color: rgba(23, 143, 131, 0.16);
  background: rgba(241, 247, 247, 0.9);
}

body.desktop-light #desktop-grade-hub .desktop-grade-score-summary-main div {
  background: rgba(255, 255, 255, 0.92);
}
