.answer-entry {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.answer-entry-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-bottom: 9px;
}
.answer-entry-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}
.answer-character-count {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.answer-text-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 88px;
  max-height: 240px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
  resize: vertical;
  scroll-margin-block: 100px 180px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.answer-text-input::placeholder {
  color: var(--subtle, var(--muted));
  font-size: 14px;
}
.answer-text-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--accent-soft, var(--surface));
}
.answer-entry-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.answer-ink-actions {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}
.answer-ink-actions button {
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--primary);
  font-size: 12px;
  line-height: 1.4;
}
.answer-ink-actions button:hover:not(:disabled) {
  background: var(--accent-soft, var(--surface));
}
.answer-ink-actions button:focus-visible,
.answer-canvas:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.answer-handwriting-board {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.answer-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.answer-ink-placeholder {
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  transform: translateY(-50%);
  color: var(--subtle, var(--muted));
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  pointer-events: none;
  user-select: none;
}
.answer-ink-placeholder[hidden] {
  display: none;
}
@media (min-width: 600px) and (pointer: coarse) {
  .answer-handwriting-board { height: 240px; }
}
@media (max-width: 359px) {
  .answer-ink-actions { gap: 0; }
  .answer-ink-actions button { padding-inline: 6px; }
}
