.context-block {
  display: grid;
  gap: 12px;
  padding: 0 4px;
}
.context-heading {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.context-eyebrow,
.context-type-breadcrumb {
  color: var(--accent);
  font-size: .7rem;
  font-weight: 760;
  letter-spacing: .075em;
  line-height: 1.25;
  text-transform: uppercase;
}
.context-type-breadcrumb {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.context-type-breadcrumb::-webkit-scrollbar,
.context-breadcrumb::-webkit-scrollbar { display: none; }
.context-type-link,
.context-type-current {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 4px 9px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.context-type-link {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent);
  cursor: pointer;
}
.context-type-link:active {
  opacity: .68;
  transform: scale(.97);
}
.context-type-current {
  color: #65716f;
  background: rgba(101, 113, 111, .10);
  border: 1px solid rgba(101, 113, 111, .22);
  box-shadow: none;
}
.context-type-separator {
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--accent) 58%, var(--muted));
  font-size: .78rem;
  letter-spacing: 0;
}
.context-title {
  margin: 1px 0 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 6.2vw, 1.72rem);
  line-height: 1.12;
  font-weight: 590;
  letter-spacing: -.022em;
  overflow-wrap: anywhere;
}
.context-breadcrumb {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.context-breadcrumb-current {
  flex: 0 0 auto;
  color: inherit;
}
.context-breadcrumb-separator {
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--muted) 74%, transparent);
}
.context-supporting {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.35;
}
.collection-toolbar {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.collection-toolbar h3 {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.collection-action {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-soft);
}
.collection-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.collection-action.active { background: var(--accent); color: white; border-color: var(--accent); }
.reorder-row { position: relative; touch-action: pan-y; }
.reorder-card { position: relative; cursor: default; user-select: none; -webkit-user-select: none; }
.reorder-card .chevron { display: none; }
.reorder-handle {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin-left: 4px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  touch-action: none;
  cursor: grab;
}
.reorder-handle svg { width: 23px; height: 23px; fill: currentColor; stroke: none; }
.reorder-row.dragging { z-index: 20; }
.reorder-row.dragging .reorder-card {
  transform: scale(1.018);
  box-shadow: 0 16px 34px rgba(19, 48, 58, .18);
  opacity: .96;
}
body.reorder-dragging { user-select: none; -webkit-user-select: none; }
.reorder-mode .inline-add-building { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .reorder-row { transition: transform .16s ease; }
  .reorder-card { transition: box-shadow .16s ease, transform .16s ease, opacity .16s ease; }
}
