@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700&display=swap");

.shadow-writing-screen {
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding: 12px 0 28px;
  text-align: left;
  color: #17212B;
  font-family: "Nunito", "Inter", system-ui, sans-serif;
}

#screen-mocks.container.shadow-writing-host {
  max-width: min(1120px, calc(100vw - 32px));
}

.shadow-writing-head {
  margin: 4px 0 14px;
  text-align: left;
}

.shadow-writing-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: 0;
}

.shadow-writing-head p,
.shadow-muted {
  margin: 7px 0 0;
  color: #667584;
  font-size: 14px;
  font-weight: 650;
}

.shadow-essay-card,
.shadow-result-card,
.shadow-history-item,
.shadow-empty {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(20, 40, 60, 0.08);
  border: 1px solid rgba(20, 40, 60, 0.05);
}

.shadow-essay-card {
  padding: 26px;
  cursor: text;
}

.shadow-target {
  min-height: 52vh;
  font-family: "Nunito", "Inter", system-ui, sans-serif;
  font-size: 22px;
  line-height: 2;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: pre-wrap;
  color: #9aa7b8;
  outline: none;
}

.sw-char--pending {
  color: #9aa7b8;
}

.sw-char--correct {
  color: #111827;
}

.sw-char--wrong {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 4px;
}

.sw-char--current {
  border-bottom: 2px solid #00baff;
  color: #9aa7b8;
}

.shadow-hidden-input {
  position: fixed;
  left: -9999px;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.shadow-writing-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.shadow-primary-btn,
.shadow-secondary-btn {
  height: 52px;
  margin-top: 0;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(20, 40, 60, 0.08);
}

.shadow-primary-btn {
  background: #00baff;
  color: #fff;
}

.shadow-secondary-btn {
  background: #ffffff;
  color: #17212B;
}

.shadow-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shadow-result-card {
  padding: 16px;
}

.shadow-result-card span {
  display: block;
  color: #667584;
  font-size: 13px;
  font-weight: 900;
}

.shadow-result-card strong {
  display: block;
  margin-top: 5px;
  font-size: 26px;
  font-weight: 950;
}

.shadow-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shadow-history-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
}

.shadow-history-item strong,
.shadow-history-item span,
.shadow-history-item small,
.shadow-history-score b {
  display: block;
}

.shadow-history-item strong {
  font-size: 15px;
  font-weight: 950;
}

.shadow-history-item span,
.shadow-history-item small,
.shadow-history-score span {
  margin-top: 3px;
  color: #667584;
  font-size: 12px;
  font-weight: 800;
}

.shadow-history-score {
  text-align: right;
  flex: 0 0 auto;
}

.shadow-history-score b {
  color: #00a2df;
  font-size: 18px;
  font-weight: 950;
}

.shadow-empty {
  padding: 18px;
  text-align: center;
  color: #667584;
  font-weight: 900;
}

@media (min-width: 720px) {
  .shadow-writing-screen {
    max-width: 1120px;
    margin: 0 auto;
  }

  .shadow-secondary-btn {
    width: auto;
    min-width: 132px;
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 540px) {
  .shadow-writing-screen {
    padding: 8px 0 24px;
  }

  .shadow-writing-head h2 {
    font-size: 26px;
  }

  .shadow-essay-card {
    padding: 18px;
    border-radius: 22px;
  }

  .shadow-target {
    min-height: 55vh;
    font-size: 17px;
    line-height: 2;
  }

  .shadow-writing-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
