.handwriting-guide {
  width: min(710px, calc(100% - 32px));
  max-height: min(90svh, 850px);
  overflow-y: auto;
  padding: 25px;
}
.handwriting-guide-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.handwriting-guide-head h2 {
  font: 480 29px/1.15 var(--serif);
  letter-spacing: -1.1px;
}
.handwriting-guide-close {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  font: 26px/1 var(--sans);
  color: #59675b;
}
.handwriting-guide-close:hover { background: #edf1eb; }
.handwriting-guide-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  gap: 22px;
  color: #4f5d50;
  font-size: .88rem;
  line-height: 1.55;
}
.handwriting-guide-content ol { padding-left: 1.2em; margin: 14px 0 16px; }
.handwriting-guide-content li { padding-left: 4px; margin-bottom: 12px; }
.handwriting-guide-content strong { color: #2e4031; font-weight: 650; }
.handwriting-guide-note { font-size: .78rem; color: #69756a; overflow-wrap: anywhere; }
.handwriting-guide-note code { font-size: .74rem; }
.handwriting-guide-preview {
  align-self: start;
  padding: 10px;
  border-radius: 8px;
  background: #e7ebe2;
  border: 1px solid #d4dcd0;
}
.handwriting-guide-preview img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 2px 7px #263d2730;
  background: white;
}
.handwriting-guide-actions { display: flex; justify-content: end; gap: 9px; margin-top: 22px; flex-wrap: wrap; }
.handwriting-guide-actions a,
.handwriting-guide-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 0 15px;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 550;
  text-decoration: none;
}
.handwriting-guide-actions a { color: #304f3f; border: 1px solid #cfd5cb; background: white; }
.handwriting-guide-upload { background: #304f3f; color: white; }
.handwriting-guide-actions a:hover { background: #edf1eb; }
.handwriting-guide-upload:hover { background: #233e30; }
@media (max-width: 550px) {
  .handwriting-guide { padding: 20px; }
  .handwriting-guide-content { grid-template-columns: 1fr; }
  .handwriting-guide-preview { display: none; }
  .handwriting-guide-actions { justify-content: stretch; }
  .handwriting-guide-actions a, .handwriting-guide-upload { flex: 1; }
}
