.tech-community-entry,
.tech-milestones > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1rem;
}

.tech-earned-badges,
.tech-milestones,
.tc-topics {
  margin: .7rem 0;
  padding: 0;
  list-style: none;
}

.tech-earned-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.tech-earned-badges li { gap: .35rem; }
.tech-earned-badges .icon { width: .95rem; height: .95rem; }
.tech-milestones > li { padding: .65rem 0; border-bottom: 1px solid var(--line, #d8e3dd); }
.tech-milestones > li p,
.tech-community-entry p { margin: .1rem 0 0; }

.tc-topics {
  display: grid;
  gap: .7rem;
}

.tc-topics h2 { margin: 0; font-size: 1.1rem; }
.tc-message,
.tc-topics a,
.tech-community h2 { overflow-wrap: anywhere; }
.tc-message { white-space: pre-wrap; }
.tech-community [aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.tech-community textarea { width: 100%; resize: vertical; }
.tech-community summary,
.tech-personal-progress summary { cursor: pointer; }

.tech-home[data-tech-warm] {
  --tech-highlight: #ffd6c6;
  --tech-highlight-ink: #50291e;
  --tech-warm-surface: #fff0df;
}

html[data-sm-theme=dark] .tech-home[data-tech-warm] { --tech-warm-surface: #33372b; }
html[data-sm-theme=ocean] .tech-home[data-tech-warm] { --tech-warm-surface: #e1f2f4; }

.tech-home[data-tech-warm] .tech-home-greeting {
  padding: clamp(.7rem, 3vw, 1.2rem);
  background: linear-gradient(115deg, var(--tech-warm-surface), var(--tech-card));
  border: 1px solid var(--tech-line);
  border-radius: 16px;
}

.tech-home .tech-home-greeting:has(.tech-home-treatment) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.tech-home-treatment {
  grid-column: 2;
  grid-row: 1 / 3;
  width: clamp(74px, 20vw, 112px);
  height: clamp(86px, 22vw, 115px);
  border-radius: 11px;
  object-fit: cover;
  object-position: center 54%;
}

.tech-home-greeting:has(.tech-home-treatment) .tech-home-account {
  grid-column: 1;
  grid-row: 2;
}

.tech-own-portrait { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

.tech-home-avatar,
.tech-profile-portrait { position: relative; }
.tech-profile-portrait { display: inline-flex; flex: none; }
.tech-avatar-honour {
    position: absolute;
    top: -5px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-width: 22px;
    min-height: 21px;
    padding: 2px 4px;
    border: 2px solid var(--theme-surface, #fff);
    border-radius: 12px;
    background: #f8d477;
    color: #432b08;
    box-shadow: 0 1px 4px #19241b40;
    font-size: .68rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
}
.tech-avatar-honour[data-tech-honour=verified] { background: #d2f0df; color: #1c4e39; }
.tech-avatar-honour[data-tech-honour=training] { background: #ede1fc; color: #492a6b; }
.tech-avatar-honour .icon,
.tech-home .tech-avatar-honour .icon { width: .7rem; height: .7rem; }

main .tech-home[data-tech-warm] .tech-invitation-review,
main .tech-home[data-tech-warm] [data-technician-next-step] .inline-actions > a:first-child {
  background: var(--tech-highlight);
  border-color: var(--tech-highlight);
  color: var(--tech-highlight-ink);
}

.tech-home[data-tech-warm] [data-technician-next-step]:not(.tech-home-invitation) {
  border-inline-start: 4px solid #d87f66;
}

.tech-weekly-question { border-inline-start: 4px solid var(--tech-jade); }
.tech-weekly-question > div { flex: 1 1 16rem; min-width: 0; }
.tech-weekly-question h2 { margin: .15rem 0; overflow-wrap: anywhere; }

.tech-badge-medallion {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--theme-ink, #183d32);
  background: var(--theme-tint, #e4f3e7);
}

.tech-illustrated-badges .pill { padding: .28rem .55rem; }
.tech-badge-medallion .icon { width: .9rem; height: .9rem; }
[data-badge-family] > a { display: inline-flex; align-items: center; gap: .45rem; }
[data-badge-family=facial] .tech-badge-medallion,
[data-tech-badge=TcProfileBasics] .tech-badge-medallion { background: #f6dfd6; color: #743b2a; }
[data-badge-family=body] .tech-badge-medallion,
[data-tech-badge=TcHours] .tech-badge-medallion { background: #e1eee3; color: #22553e; }
[data-badge-family=nails] .tech-badge-medallion,
[data-tech-badge=TcFirstLesson] .tech-badge-medallion { background: #ece3f5; color: #553a73; }

@media (prefers-reduced-motion: no-preference) {
  .tech-badge-new .tech-badge-medallion { animation: tech-badge-reveal 500ms ease-out; }
  @keyframes tech-badge-reveal {
    25% { transform: scale(1.13); box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 15%, transparent); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
  }
}
