.key-notes {
  margin: 24px 0;
  overflow: hidden;
  background: #eef5f1;
  border: 1px solid #c8dcd2;
  border-radius: 10px;
}

.revision-toolkit {
  margin: 28px 0 22px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.toolkit-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.toolkit-heading h2 { margin: 2px 0 8px; }
.toolkit-heading p:not(.eyebrow) { margin: 0; max-width: 720px; color: var(--muted); font-size: 14px; }
.tool-count { white-space: nowrap; padding: 7px 10px; border-radius: 20px; background: #e7f1eb; color: var(--green); font-size: 12px; font-weight: 700; }
.tool-group { margin-top: 20px; }
.tool-group > h3 { margin: 0 0 10px; color: var(--muted); font-size: 13px; letter-spacing: .8px; text-transform: uppercase; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.tool-card { min-height: 92px; padding: 14px; text-align: left; border-color: #d6e1dc; }
.tool-card:hover { background: #edf5f0; border-color: #608b76; }
.tool-card strong, .tool-card span { display: block; }
.tool-card strong { margin-bottom: 7px; font-size: 14px; }
.tool-card span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.tool-card.featured { background: #174f40; border-color: #174f40; color: #fff; }
.tool-card.featured span { color: #dcebe5; }

.key-notes > summary {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 19px 22px;
  cursor: pointer;
  list-style: none;
}

.key-notes > summary::-webkit-details-marker {
  display: none;
}

.key-notes > summary span:first-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.key-notes > summary strong {
  font-size: 18px;
}

.key-notes > summary small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.notes-open {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.key-notes[open] .notes-open {
  font-size: 0;
}

.key-notes[open] .notes-open::after {
  content: 'Close guide';
  font-size: 13px;
}

.key-notes-body {
  padding: 8px 22px 20px;
  background: white;
  border-top: 1px solid #c8dcd2;
}

.notes-intro {
  margin: 12px 0 2px;
  color: var(--muted);
  font-size: 14px;
}

.key-note {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.2fr);
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid #e6ece9;
}

.key-note:last-child {
  border-bottom: 0;
}

.key-note .code {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.8px;
}

.key-note h3 {
  margin: 7px 0 0;
  font-size: 16px;
  line-height: 1.45;
}

.key-note p {
  margin: 0;
  color: #465a53;
  font-size: 14px;
  line-height: 1.6;
}

.message.streaming::after {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -2px;
  background: currentColor;
  content: '';
  animation: tutor-caret 0.8s steps(1) infinite;
}

@keyframes tutor-caret {
  50% { opacity: 0; }
}

@media (max-width: 700px) {
  .revision-toolkit { padding: 18px; }
  .toolkit-heading { flex-direction: column; gap: 12px; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .key-note {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
