.portfolio-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 26px clamp(22px, 5vw, 72px);
}
.portfolio-footer > div { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.portfolio-footer a { color: inherit; }
.portfolio-footer a:hover { text-decoration: underline; }

.vee-launch {
  position: fixed;
  z-index: 20;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #1b2a4a;
  color: #fff;
  box-shadow: 0 8px 26px #1b2a4a30;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.vee-dialog {
  position: fixed;
  inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) auto;
  width: min(420px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce7ea;
  border-radius: 24px;
  color: #1b2a4a;
  box-shadow: 0 20px 60px #1b2a4a35;
}
.vee-dialog::backdrop { background: #1b2a4a30; }
.vee-dialog .chat-shell {
  height: min(520px, calc(100dvh - 36px));
  min-height: 0;
  padding: 16px;
}
.vee-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.vee-header h2 { margin: 0; font-size: 1.25rem; }
.vee-close {
  border: 0;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  background: #eef2f8;
  color: inherit;
  font-size: 24px;
  cursor: pointer;
}
body:has(.vee-launch) .portfolio-footer { padding-bottom: 74px; }

.about-profile-links a + a { margin-left: 16px; }
.career-history { margin: 0; }
.career-history > div {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 3fr;
  gap: 8px 18px;
  padding: 12px 0;
  border-bottom: 1px solid #dce7ea;
}
.career-history dt { font-weight: 700; }
.career-history dd { margin: 0; }

.tk-text-card, .tk-diagram {
  margin: 24px 0;
  padding: clamp(16px, 4vw, 30px);
  border: 1px solid #dce7ea;
  border-radius: 18px;
  background: #f5f7f9;
}
.tk-text-card > :first-child { margin-top: 0; }
.tk-text-card > :last-child, .tk-diagram > :last-child { margin-bottom: 0; }
.tk-diagram figcaption { margin-bottom: 16px; font-weight: 700; }
.schematic-pair, .shortcut-groups, .tk-timeline, .tk-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.schematic-board, .shortcut-root, .shortcut-groups li, .tk-timeline li, .tk-metrics p {
  padding: 12px;
  border-radius: 12px;
  background: #e7ebef;
  text-align: center;
}
.schematic-row { display: flex; gap: 6px; margin-top: 6px; }
.schematic-row span { flex: 1; padding: 8px 4px; border-radius: 5px; background: #d5dbe1; font-size: .8rem; }
.shortcut-groups, .tk-timeline { margin: 8px 0 0; padding: 0; list-style: none; }
.tk-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk-metrics strong { display: block; color: #26747a; font-size: 2rem; }
.adi-text-hero { display: grid; place-items: center; min-height: 150px; background: #eef2f8; font-weight: 700; }
.case-card .case-art:not(:has(img)) .case-icon { display: grid; place-items: center; position: absolute; inset: 0; margin: auto; }

@media (max-width: 540px) {
  .career-history > div, .schematic-pair, .tk-timeline { grid-template-columns: 1fr; }
}
