/* Calm one-column letter. Kit supplies color, type, and controls. */
html { overflow-x: hidden; }
body.ak { overflow-x: hidden; max-width: 100%; }

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #000;
  overflow-wrap: anywhere;
}
.lede {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  color: #1c1c1c;
  overflow-wrap: anywhere;
}
.ak-header { flex-wrap: wrap; max-width: 100%; }
.ak-brand { max-width: 100%; min-width: 0; flex-wrap: wrap; }
.ak-card, .ak-card h2, .ak-textarea, img, canvas, svg { max-width: 100%; }

h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #000;
}
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.big-label {
  display: block;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  color: #000;
}
.explain {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: #2f2f2f;
  overflow-wrap: anywhere;
}
.ak-textarea {
  font-size: 20px;
  line-height: 1.45;
  color: #000;
  min-height: 220px;
  overflow-wrap: anywhere;
}
.actions { display: flex; flex-direction: column; gap: 12px; max-width: 100%; }
.actions .ak-btn, #largePrint {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 52px;
  padding: 12px 18px;
  font-size: 24px;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}
.grade {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #000;
  overflow-wrap: anywhere;
}
.letter, .ecg-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 24px;
  line-height: 1.45;
  color: #000;
  overflow-wrap: anywhere;
}
.letter p, .ecg-copy p { margin: 0; white-space: pre-wrap; }
.letter.large { font-size: 34px; }
.status {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  color: #000;
}
.preview { max-width: 100%; }
.banner {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  color: #000;
  overflow-wrap: anywhere;
}
.trace, .shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: #fcf9f8;
}
.confirm {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  cursor: pointer;
}
.confirm input {
  width: 28px;
  height: 28px;
  margin-top: 4px;
  flex: none;
  accent-color: #1c1c1c;
}
.confirm span {
  font-size: 24px;
  line-height: 1.3;
  color: #000;
  overflow-wrap: anywhere;
}
.file-btn { cursor: pointer; }
#letterAlert[hidden], #ecgAlert[hidden], #letterStatus[hidden], #ecgStatus[hidden], #shot[hidden], #ecg[hidden] { display: none; }
