.interview-notes {
  padding-bottom: 96px;
}

.interview-notes .section-heading,
.notes-heading {
  display: block;
  text-align: left;
}

.interview-notes .section-heading h2,
.notes-heading h2 {
  max-width: 840px;
}

.notes-panel {
  border: 1px solid rgba(34, 27, 24, 0.08);
  border-radius: var(--radius, 24px);
  padding: 28px;
  background: rgba(255, 252, 247, 0.78);
  box-shadow: var(--shadow, 0 20px 60px rgba(58, 91, 80, 0.14));
}

.notes-single-card {
  display: grid;
  gap: 24px;
}

.notes-section {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(34, 27, 24, 0.08);
}

.notes-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.notes-section h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.notes-section p {
  margin: 0;
  color: var(--muted, #63554e);
  line-height: 1.75;
  max-width: 1120px;
}

.notes-section p + p {
  margin-top: 14px;
}

.notes-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted, #63554e);
  line-height: 1.75;
  max-width: 1120px;
}

.notes-list li + li {
  margin-top: 8px;
}

.notes-diagram-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  gap: 22px;
  align-items: start;
}

.quote-line {
  border-left: 4px solid var(--accent-2, #1f7a5c);
  padding-left: 16px;
  font-weight: 700;
  color: var(--ink, #221b18) !important;
}

.notes-caution {
  padding: 18px;
  border: 1px solid rgba(223, 109, 45, 0.24);
  border-radius: 18px;
  background: rgba(255, 245, 235, 0.84);
}

.flow-diagram {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.flow-node {
  position: relative;
  padding: 13px 16px;
  border: 1px solid rgba(31, 122, 92, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink, #221b18);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(58, 91, 80, 0.08);
}

.flow-node.success {
  background: linear-gradient(135deg, rgba(31, 122, 92, 0.12), rgba(91, 221, 157, 0.2));
  border-color: rgba(31, 122, 92, 0.32);
}

.flow-arrow {
  width: 2px;
  height: 18px;
  margin: -2px auto;
  background: linear-gradient(180deg, var(--accent-2, #1f7a5c), rgba(31, 122, 92, 0.2));
  position: relative;
}

.flow-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent-2, #1f7a5c);
  border-bottom: 2px solid var(--accent-2, #1f7a5c);
  transform: translateX(-50%) rotate(45deg);
}

.uml-diagram {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(23, 115, 176, 0.14);
  background: rgba(255, 255, 255, 0.58);
  overflow-x: auto;
}

.uml-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 560px;
}

.uml-row.top {
  align-items: stretch;
}

.uml-box {
  min-width: 128px;
  padding: 11px 13px;
  border: 1px solid rgba(34, 27, 24, 0.12);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.86);
  color: var(--ink, #221b18);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 22px rgba(58, 91, 80, 0.06);
}

.uml-box.interface {
  border-color: rgba(23, 115, 176, 0.28);
  background: rgba(237, 248, 255, 0.84);
}

.uml-box.class-box {
  border-color: rgba(31, 122, 92, 0.22);
}

.uml-link {
  min-width: 76px;
  min-height: 28px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 6px;
  color: var(--muted, #63554e);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.uml-link::before {
  content: "";
  position: absolute;
  inset: auto 0;
  height: 2px;
  background: currentColor;
}

.uml-link.isa {
  color: var(--accent-3, #1773b0);
}

.uml-link.hasa {
  color: var(--accent, #df6d2d);
}

.uml-branch,
.uml-stack {
  display: grid;
  gap: 8px;
}

.uml-branch {
  grid-template-columns: auto auto auto auto;
  align-items: center;
}

@media (max-width: 980px) {
  .notes-diagram-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .notes-panel {
    padding: 20px;
  }

  .uml-diagram {
    padding: 14px;
  }
}
