:root {
  --bg-0: #0d0d0d;
  --panel: #171717;
  --panel-strong: #141414;
  --border: #2b2b2b;

  --text-primary: #ededed;
  --text-secondary: #b9b9b9;
  --text-tertiary: #8f8f8f;

  --tree-highlight: #c2fe0d;
  --accent: #d0d0d0;
  --accent-strong: #e2e2e2;
  --line: #ffffff;
  --node-root: #ffffff;
  --node-section: #ffffff;
  --node-project: #ffffff;
  --node-detail: #ffffff;
  --tree-grid-spacing: 12px;
  --tree-grid-dot-size: 1px;
  --tree-grid-dot-neutral: rgba(155, 155, 155, 0.22);
  --tree-grid-accent-1: #2ad8de;
  --tree-grid-accent-2: #8bdcb0;
  --tree-grid-accent-3: #e7dc84;
  --tree-grid-accent-4: #b883db;
  --tree-shimmer-duration: 2600ms;

  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  --font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text-14-size: 14px;
  --text-14-line: 20px;
  --text-12-size: 12px;
  --text-12-line: 16px;
  --font-regular: 400;
  --font-medium: 500;

  --icon-size: 18px;
  --icon-stroke: 1.33;
  --avatar-brand-size: 44px;

  --radius-2: 8px;
  --radius-3: 12px;
  --radius-4: 16px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-family-base);
  color: var(--text-primary);
  background: var(--bg-0);
  overflow: hidden;
}

button,
input,
select,
textarea {
  -webkit-font-smoothing: inherit;
  -moz-osx-font-smoothing: inherit;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-4);
}

.card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius-4);
}

.workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-3);
}

.tree-card,
.sidebar-card {
  min-height: 0;
  overflow: hidden;
}

.tree-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.sidebar-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr;
  background: var(--panel-strong);
}

.tree-profile {
  display: block;
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.tree-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.tree-profile-main {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1 1 auto;
  min-width: 0;
}

.tree-profile-image {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  display: block;
  background: #000;
  border: 0;
  cursor: pointer;
}

.tree-profile-image:focus-visible {
  outline: 1px solid rgb(255 255 255 / 0.45);
  outline-offset: 2px;
}

.tree-profile-meta {
  min-width: 0;
}

.tree-profile-name {
  margin: 0;
  font-size: var(--text-14-size);
  line-height: var(--text-14-line);
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.tree-profile-title {
  margin: var(--space-0);
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  color: var(--text-tertiary);
}

.profile-title-mobile {
  display: none;
}

.tree-profile-actions {
  margin: var(--space-0);
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: var(--space-2);
  flex: 0 0 auto;
  min-width: fit-content;
}

.profile-action {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid #3a3a3a;
  background: #161616;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-2);
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-3);
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  font-family: inherit;
  flex: 0 0 auto;
  cursor: pointer;
}

.profile-action span {
  display: inline;
  white-space: nowrap;
}

.profile-action:hover {
  border-color: #555;
  background: #1e1e1e;
}

.profile-action:focus-visible {
  outline: 1px solid #6a6a6a;
  outline-offset: 2px;
}

.profile-action.is-copied {
  border-color: #6a6a6a;
  background: #1f1f1f;
}

.profile-action.is-copy-error {
  border-color: #8b4a4a;
}

.action-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  display: block;
  flex: 0 0 auto;
}

.tree-root {
  position: relative;
  isolation: isolate;
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  padding: var(--space-2) var(--space-3);
}

.tree-root::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(
    circle,
    var(--tree-grid-dot-neutral) var(--tree-grid-dot-size),
    transparent calc(var(--tree-grid-dot-size) + 0.1px)
  );
  background-size: var(--tree-grid-spacing) var(--tree-grid-spacing);
  opacity: 0.28;
  mask-image: radial-gradient(
    circle at center,
    transparent 0%,
    transparent 34%,
    black 72%,
    black 100%
  );
  -webkit-mask-image: radial-gradient(
    circle at center,
    transparent 0%,
    transparent 34%,
    black 72%,
    black 100%
  );
}

.tree-root.has-shimmer::before {
  opacity: 0;
}

.tree-root.shimmer-disabled::before {
  opacity: 0.28;
}

.tree-shimmer-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.tree-shimmer-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.tree-cursor-smoke-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.tree-cursor-smoke-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.mobile-nav {
  display: none;
}

.mobile-nav-button {
  border: 1px solid #383838;
  background: #151515;
  color: var(--text-secondary);
  border-radius: var(--radius-2);
  padding: var(--space-1) var(--space-2);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-2);
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  white-space: nowrap;
  cursor: pointer;
  width: auto;
  max-width: 100%;
}

.mobile-nav-button:hover {
  border-color: #555;
  background: #1e1e1e;
  color: var(--text-primary);
}

.mobile-nav-button.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.35);
  color: var(--text-primary);
}

.mobile-nav-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  display: block;
  color: var(--text-secondary);
  flex: 0 0 auto;
}

.mobile-nav-icon * {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tree-svg {
  position: relative;
  z-index: 2;
  display: block;
}

.tree-link {
  fill: none;
  stroke: var(--line);
  stroke-opacity: 0.55;
  stroke-width: 1;
  transition: stroke-opacity 120ms ease, stroke-width 120ms ease;
}

.tree-link.is-active {
  stroke: url(#tree-active-link-shimmer);
  stroke-opacity: 1;
  stroke-width: 1.6;
}

.tree-link.is-muted {
  opacity: 1;
}

.tree-node {
  cursor: pointer;
  color: var(--text-primary);
}

.tree-node .node-dot {
  stroke: rgb(225 233 230 / 0.2);
  stroke-width: 1;
  transition: transform 120ms ease, opacity 120ms ease;
}

.tree-node .node-active-arrow {
  fill: var(--text-primary);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.tree-node text {
  fill: var(--text-primary);
  font-size: var(--text-14-size);
  font-weight: var(--font-regular);
  font-family: var(--font-family-base);
  transition: opacity 120ms ease;
}

.tree-node-glyph {
  width: var(--icon-size);
  height: var(--icon-size);
  color: var(--text-primary);
  pointer-events: none;
}

.tree-node-glyph * {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.tree-node.is-selected .node-dot {
  opacity: 0;
}

.node-root.is-selected .node-dot {
  opacity: 1;
  transform: scale(1.12);
  stroke: rgb(225 233 230 / 0.32);
}

.tree-node.is-active text {
  fill: var(--text-primary);
}

.tree-node.is-active .tree-node-glyph,
.tree-node.is-active .tree-node-glyph * {
  color: var(--text-primary);
  stroke: currentColor;
}

.tree-node.is-selected .node-active-arrow {
  opacity: 1;
}

.node-root text {
  font-size: var(--text-14-size);
  font-weight: var(--font-regular);
}

.tree-root-avatar,
.tree-root-avatar * {
  pointer-events: none;
}

.tree-root-avatar-bg {
  fill: #fff;
  stroke: var(--text-tertiary);
  stroke-width: 1;
}

.tree-root-avatar-image {
  display: block;
}

.tree-node.is-muted .node-dot,
.tree-node.is-muted text,
.tree-node.is-muted .tree-node-glyph {
  opacity: 1;
}

.node-root .node-dot {
  fill: var(--node-root);
}

.node-section .node-dot {
  fill: var(--node-section);
}

.node-project .node-dot {
  fill: var(--node-project);
}

.node-detail .node-dot {
  fill: var(--node-detail);
}

.tree-node:focus-visible .node-dot {
  outline: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.tree-node:focus,
.tree-node:focus-visible {
  outline: none;
}

.detail-card {
  --detail-inline-pad: var(--space-4);
  --detail-bottom-pad: var(--space-4);
  position: relative;
  min-height: 0;
  overflow: auto;
  padding: var(--space-8) var(--detail-inline-pad) var(--detail-bottom-pad);
  background: #000;
  display: flex;
  flex-direction: column;
}

.detail-card.is-tab-locked {
  overflow: hidden;
}

.detail-card:not(.is-about) {
  padding-top: var(--space-4);
}

.detail-header {
  order: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
  min-height: var(--avatar-brand-size);
}

.detail-header-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.detail-period {
  margin: 0 0 0 auto;
  align-self: flex-start;
  white-space: nowrap;
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  color: var(--text-tertiary);
}

.detail-avatar {
  width: var(--avatar-brand-size);
  height: var(--avatar-brand-size);
  border-radius: var(--radius-pill);
  object-fit: cover;
  object-position: center;
  border: 0;
  background: #000;
  flex: 0 0 auto;
}

.detail-avatar[hidden],
.detail-subtitle[hidden],
.detail-period[hidden],
.about-badge[hidden] {
  display: none !important;
}

.detail-title {
  margin: 0;
  width: 100%;
  max-width: none;
  order: 1;
  font-size: var(--text-14-size);
  line-height: var(--text-14-line);
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.detail-subtitle {
  margin: var(--space-0);
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  color: var(--text-tertiary);
}

.detail-summary {
  margin: 0;
  width: 100%;
  max-width: none;
  order: 2;
  white-space: pre-wrap;
  font-size: var(--text-14-size);
  line-height: var(--text-14-line);
  font-weight: var(--font-regular);
  color: var(--text-secondary);
}

.detail-hero[hidden] {
  display: none !important;
}

.detail-hero {
  margin: 0;
  width: 100%;
  max-width: none;
  order: 2;
  display: grid;
  gap: 0;
}

.detail-hero-line {
  margin: 0;
  color: var(--text-secondary);
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
  letter-spacing: 0;
}

.detail-hero-name-shimmer {
  display: inline-block;
  --name-shimmer-base: #b8b8b8;
  --name-shimmer-highlight: #fff;
  --name-shimmer-spread: 10px;
  --name-shimmer-bg: linear-gradient(
    90deg,
    #0000 calc(50% - var(--name-shimmer-spread)),
    var(--name-shimmer-highlight),
    #0000 calc(50% + var(--name-shimmer-spread))
  );
  color: transparent;
  background-image: var(--name-shimmer-bg), linear-gradient(var(--name-shimmer-base), var(--name-shimmer-base));
  background-repeat: no-repeat, no-repeat;
  background-size: 250% 100%, auto;
  background-position: 105% center, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: detail-hero-name-shimmer var(--tree-shimmer-duration) linear infinite;
}

@keyframes detail-hero-name-shimmer {
  from {
    background-position: 105% center, 0 0;
  }

  to {
    background-position: -5% center, 0 0;
  }
}

.outside-tabs {
  order: 2;
  margin-top: var(--space-4);
  width: calc(100% + (var(--detail-inline-pad) * 2));
  max-width: none;
  margin-left: calc(var(--detail-inline-pad) * -1);
  margin-right: calc(var(--detail-inline-pad) * -1);
  display: flex;
  align-items: flex-end;
  gap: var(--space-6);
  padding: 0 var(--detail-inline-pad);
  border-bottom: 1px solid var(--border);
}

.outside-tabs[hidden],
.outside-ticker[hidden],
.found-ribbon[hidden],
.outside-projects-panel[hidden],
.tab-lock-overlay[hidden] {
  display: none !important;
}

.outside-tab-button {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-tertiary);
  font-size: var(--text-14-size);
  line-height: var(--text-14-line);
  font-weight: var(--font-medium);
  padding: 0 0 var(--space-2);
  cursor: pointer;
  position: relative;
  transition: color 120ms ease;
}

.outside-tab-button:hover {
  color: var(--text-primary);
}

.outside-tab-button.is-active {
  color: #fff;
}

.outside-tab-button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.outside-projects-panel {
  order: 4;
  margin-top: var(--space-2);
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  overflow: visible;
  position: relative;
}

.tab-lock-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgb(0 0 0 / 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tab-lock-panel {
  width: min(420px, 100%);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--radius-3);
  background: #121212;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.tab-lock-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tab-lock-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  color: var(--text-secondary);
}

.tab-lock-icon * {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-lock-title {
  margin: 0;
  font-size: var(--text-14-size);
  line-height: var(--text-14-line);
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.tab-lock-benefits {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tab-lock-benefit {
  margin: 0;
  padding-left: 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  text-align: left;
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  color: var(--text-secondary);
}

.tab-lock-benefit-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--text-secondary);
  margin-top: 1px;
}

.tab-lock-benefit-icon * {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-lock-otp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.tab-lock-otp-slot {
  width: 40px;
  height: 40px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius-2);
  background: #0f0f0f;
  color: var(--text-primary);
  text-align: center;
  font-size: var(--text-14-size);
  line-height: var(--text-14-line);
  font-weight: var(--font-medium);
  outline: none;
}

.tab-lock-otp-slot:focus {
  border-color: rgb(255 255 255 / 0.52);
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.14);
}

.tab-lock-instruction {
  margin: 0;
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  color: var(--text-tertiary);
}

.tab-lock-error {
  margin: 0;
  min-height: var(--text-12-line);
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  color: #ff8b8b;
}

.tab-lock-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tab-lock-linkedin,
.tab-lock-next {
  width: 100%;
  min-height: 36px;
  border-radius: var(--radius-2);
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-medium);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tab-lock-linkedin {
  border: 1px solid rgb(255 255 255 / 0.2);
  background: rgb(255 255 255 / 0.06);
  color: var(--text-secondary);
}

.tab-lock-linkedin:hover {
  color: var(--text-primary);
  border-color: rgb(255 255 255 / 0.32);
}

.tab-lock-next {
  border: 1px solid rgb(255 255 255 / 0.2);
  background: rgb(255 255 255 / 0.06);
  color: var(--text-secondary);
  cursor: pointer;
}

.tab-lock-next:hover {
  color: var(--text-primary);
  border-color: rgb(255 255 255 / 0.32);
}

@supports not ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .tab-lock-overlay {
    background: rgb(0 0 0 / 0.72);
  }
}

.vindex-flows-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.vindex-flows-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.vindex-flows-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  background: #0d0f12;
  border: 0;
  image-rendering: auto;
}

.vindex-flows-title {
  margin: 0;
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  color: var(--text-secondary);
  padding: var(--space-1) var(--detail-inline-pad) var(--space-1);
}

.vindex-flows-item.is-non-boards-flow .vindex-flows-image {
  filter: invert(1);
}

.outside-ticker {
  order: 7;
  margin-top: auto;
  margin-bottom: 0;
  margin-left: calc(var(--detail-inline-pad) * -1);
  margin-right: calc(var(--detail-inline-pad) * -1);
  width: calc(100% + (var(--detail-inline-pad) * 2));
  border-top: 0;
  background: #111;
  position: relative;
  z-index: 1;
}

.found-ribbon {
  order: 7;
  margin-top: auto;
  margin-bottom: 0;
  margin-left: calc(var(--detail-inline-pad) * -1);
  margin-right: calc(var(--detail-inline-pad) * -1);
  width: calc(100% + (var(--detail-inline-pad) * 2));
  border-top: 1px solid var(--border);
  background: #111;
  position: relative;
  z-index: 1;
}

.found-ribbon-rail {
  width: 100%;
  overflow: hidden;
}

.found-ribbon-marquee {
  width: 100%;
  overflow: hidden;
}

.found-ribbon-track {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  width: max-content;
  padding: var(--space-2) var(--detail-inline-pad);
  animation: found-ribbon-scroll 96s linear infinite;
  will-change: transform;
}

.found-ribbon-group {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  flex: 0 0 auto;
}

.found-ribbon-item {
  display: inline-block;
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 12px;
  font-weight: var(--font-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.outside-ticker-rail {
  width: 100%;
  overflow: hidden;
}

.outside-ticker-marquee {
  width: 100%;
  overflow: hidden;
}

.outside-ticker-track {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: max-content;
  padding: var(--space-2) var(--detail-inline-pad);
  animation: outside-ticker-scroll 96s linear infinite;
  will-change: transform;
}

.outside-ticker-item {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  opacity: 0.92;
  padding: 0 var(--space-1);
}

.outside-ticker-brand {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 12px;
  font-weight: var(--font-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes outside-ticker-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes found-ribbon-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.detail-card.is-outside-projects .outside-projects-panel {
  margin-left: calc(var(--detail-inline-pad) * -1);
  margin-right: calc(var(--detail-inline-pad) * -1);
  width: calc(100% + (var(--detail-inline-pad) * 2));
  padding-bottom: 0;
}

.detail-card.is-projects-tab-active .outside-projects-panel {
  margin-left: calc(var(--detail-inline-pad) * -1);
  margin-right: calc(var(--detail-inline-pad) * -1);
  width: calc(100% + (var(--detail-inline-pad) * 2));
  padding-bottom: 0;
}

.outside-projects-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.outside-projects-table thead tr {
  border-bottom: 1px solid var(--border);
}

.outside-projects-th {
  padding: var(--space-2);
  text-align: left;
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  color: var(--text-secondary);
}

.outside-projects-th-project {
  width: 52%;
}

.outside-projects-th-cluster {
  width: 28%;
}

.outside-projects-th-quarter {
  width: 20%;
  text-align: right;
  padding-left: var(--space-1);
  padding-right: calc(var(--space-1) + 8px + env(safe-area-inset-right, 0px));
}

.outside-projects-th-quarter .outside-projects-sort-button {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.outside-projects-table.is-no-quarter .outside-projects-th-cluster {
  width: 36%;
}

.outside-projects-table.is-no-quarter .outside-projects-th-project {
  width: 64%;
}

.outside-projects-sort-button {
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-1);
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.outside-projects-sort-button:hover,
.outside-projects-sort-button.is-active {
  color: var(--text-secondary);
}

.outside-projects-sort-button:focus-visible {
  outline: 1px solid rgb(255 255 255 / 0.4);
  outline-offset: 2px;
  border-radius: var(--radius-2);
}

.outside-projects-sort-icon {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.outside-projects-sort-button.is-active .outside-projects-sort-icon {
  opacity: 1;
}

.outside-projects-row {
  border-bottom: 1px solid rgb(255 255 255 / 0.05);
}

.outside-projects-row:nth-child(odd) {
  background: #171717;
}

.outside-projects-row:nth-child(even) {
  background: #1e1e1e;
}

.outside-projects-td {
  padding: var(--space-2);
  vertical-align: middle;
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  color: var(--text-secondary);
}

.outside-projects-td-project {
  overflow: visible;
}

.outside-projects-project-wrap {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-1);
  min-width: 0;
  position: relative;
  line-height: var(--text-12-line);
}

.outside-projects-project-wrap.has-star {
  cursor: pointer;
}

.outside-projects-cluster-wrap {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-width: 0;
  line-height: var(--text-12-line);
}

.outside-projects-cluster-icon {
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
  flex: 0 0 auto;
}

.outside-projects-cluster-text {
  color: var(--text-secondary);
  line-height: var(--text-12-line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.outside-projects-project-title {
  color: var(--text-secondary);
  font-weight: var(--font-regular);
  line-height: var(--text-12-line);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.outside-projects-td-quarter {
  color: var(--text-secondary);
  font-weight: var(--font-regular);
  text-align: right;
  padding-left: var(--space-1);
  white-space: nowrap;
  padding-right: calc(var(--space-1) + 8px + env(safe-area-inset-right, 0px));
}

.outside-projects-star-popover {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  z-index: 1600;
  width: max-content;
  max-width: min(520px, calc(100vw - 32px));
  padding: var(--space-2);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--radius-2);
  background: #121212;
  color: var(--text-secondary);
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  text-align: left;
  white-space: pre-line;
  text-wrap: pretty;
  text-wrap-style: pretty;
  widows: 2;
  orphans: 2;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(2px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
}

.outside-projects-star-popover.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.outside-projects-project-wrap.has-star:hover,
.outside-projects-project-wrap.has-star:focus-within,
.outside-projects-project-wrap.has-star.is-open {
  z-index: 12;
}

.iac-features-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.iac-features-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.iac-features-section-title {
  margin: 0;
  padding: 0 var(--space-2);
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: var(--space-1);
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
}

.iac-features-section-icon {
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
  flex: 0 0 auto;
}

.iac-features-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.iac-features-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  table-layout: fixed;
}

.iac-features-table thead tr {
  border-bottom: 1px solid var(--border);
}

.iac-features-th {
  padding: var(--space-2);
  text-align: left;
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  color: var(--text-primary);
  vertical-align: middle;
}

.iac-features-th-feature {
  width: 20%;
}

.iac-features-th-description {
  width: 28%;
}

.iac-features-th-user-value,
.iac-features-th-business-value {
  width: 26%;
}

.iac-features-row {
  border-bottom: 1px solid rgb(255 255 255 / 0.05);
}

.iac-features-row:nth-child(odd) {
  background: #171717;
}

.iac-features-row:nth-child(even) {
  background: #1e1e1e;
}

.iac-features-td {
  padding: var(--space-2);
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  color: var(--text-secondary);
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
}

.iac-features-td-feature {
  color: var(--text-primary);
}

.iac-features-td-user-value,
.iac-features-td-business-value {
  white-space: pre-line;
}

@media (prefers-reduced-motion: reduce) {
  .outside-ticker-rail {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .outside-ticker-rail::-webkit-scrollbar {
    display: none;
  }

  .outside-ticker-track {
    animation: none;
    width: max-content;
  }

  .found-ribbon-rail {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .found-ribbon-rail::-webkit-scrollbar {
    display: none;
  }

  .found-ribbon-track {
    animation: none;
    width: max-content;
  }
}

.about-badge {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
  width: min(100%, 640px);
}

.about-badge::before,
.about-badge::after {
  content: "";
  display: block;
  flex: 1 1 auto;
  border-top: 1px solid rgb(255 255 255 / 0.14);
}

.about-badge-image {
  width: var(--space-10);
  height: var(--space-10);
  border-radius: var(--radius-pill);
  background: #000;
  object-fit: cover;
  object-position: center;
  border: 0;
  box-shadow: none;
  display: block;
}

.hero-panel {
  margin-top: var(--space-2);
  width: 100%;
  order: 3;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-3);
  background: #070809;
}

.hero-picture {
  display: block;
  width: 100%;
}

.detail-card.is-outside:not(.is-outside-projects) .hero-panel {
  margin-top: 2px;
  margin-left: calc(var(--detail-inline-pad) * -1);
  margin-right: calc(var(--detail-inline-pad) * -1);
  width: calc(100% + (var(--detail-inline-pad) * 2));
}

.detail-card.is-outside:not(.is-outside-projects) .hero-image {
  border-radius: 0;
}

.detail-card.is-outside .outside-ticker-track {
  padding: var(--space-2) 2px;
}

.detail-card.is-outside {
  --detail-bottom-pad: 0;
}

.detail-card.is-outside .outside-ticker {
  position: sticky;
  bottom: 0;
  z-index: 10;
  margin-bottom: 0;
}

.detail-card.is-outside-projects .outside-ticker {
  margin-top: 0;
}

.detail-card.is-outside:not(.is-outside-projects) .media-panel {
  padding-bottom: 32px;
}

.detail-card.is-found {
  --detail-bottom-pad: 0;
}

.detail-card.is-found .found-ribbon {
  position: sticky;
  bottom: 0;
  z-index: 10;
  margin-bottom: 0;
}

.detail-card.is-found .media-panel {
  padding-bottom: 32px;
}

.components-panel {
  margin-top: var(--space-4);
  border-top: 0;
  padding-top: var(--space-0);
  order: 4;
  width: min(100%, 640px);
  margin-left: auto;
  margin-right: auto;
}

.components-list {
  display: block;
  width: 100%;
}

.component-item {
  width: 100%;
  padding: var(--space-3) 0;
  border-bottom: 0;
}

.component-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.component-heading-row {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.component-heading {
  margin: 0;
  font-size: var(--text-14-size);
  line-height: var(--text-14-line);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  letter-spacing: 0;
}

.component-heading-icon,
.component-icon,
.component-row-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  color: var(--text-secondary);
  flex: 0 0 auto;
}

.action-icon *,
.component-heading-icon *,
.component-icon *,
.component-row-icon * {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.component-body {
  margin: var(--space-2) 0 0;
  white-space: pre-wrap;
  font-size: var(--text-14-size);
  line-height: var(--text-14-line);
  font-weight: var(--font-regular);
  color: var(--text-secondary);
}

.component-points {
  margin: var(--space-2) 0 0;
  padding-left: var(--space-4);
  font-size: var(--text-14-size);
  line-height: var(--text-14-line);
  font-weight: var(--font-regular);
  color: var(--text-secondary);
}

.component-points li + li {
  margin-top: var(--space-1);
}

.component-entries {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.component-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-1) 0;
}

.component-entry-logo {
  width: var(--avatar-brand-size);
  height: var(--avatar-brand-size);
  border-radius: var(--radius-pill);
  background: #000;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.component-entry-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.component-entry-logo-fallback {
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
}

.component-entry-meta {
  min-width: 0;
}

.component-entry-company {
  margin: 0;
  font-size: var(--text-14-size);
  line-height: var(--text-14-line);
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.component-entry-role {
  margin: var(--space-0);
  font-size: var(--text-14-size);
  line-height: var(--text-14-line);
  font-weight: var(--font-regular);
  color: var(--text-secondary);
}

.component-entry-period {
  margin: 0;
  text-align: right;
  white-space: nowrap;
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  color: var(--text-tertiary);
}

.components-panel.is-about-components .components-list {
  --about-icon-col: 32px;
  --about-icon-gap: 12px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.components-panel.is-about-components .component-item {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.components-panel.is-about-components .component-item.is-awards,
.components-panel.is-about-components .component-item.is-education {
  margin-top: var(--space-4);
}

.about-screen-copyright {
  position: static;
  order: 4;
  align-self: center;
  margin: var(--space-5) auto 0;
  width: max-content;
  max-width: calc(100% - (var(--detail-inline-pad) * 2));
  text-align: center;
  white-space: nowrap;
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  color: var(--text-tertiary);
  pointer-events: none;
}

.components-panel.is-about-components .component-item.is-awards {
  width: min(100%, 640px);
}

.components-panel.is-about-components .component-item.is-awards .component-icon-layout {
  width: min(100%, 640px);
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: minmax(0, 1fr);
}

.components-panel.is-about-components .component-item.is-awards .component-icon-wrap {
  display: none;
}

.components-panel.is-about-components .component-item.is-awards .component-heading {
  display: none;
}

.components-panel.is-about-components .component-item.is-awards .component-points {
  margin-top: 0;
}

.components-panel.is-about-components .component-icon-layout {
  display: grid;
  grid-template-columns: var(--about-icon-col) minmax(0, 1fr);
  gap: var(--about-icon-gap);
  align-items: start;
}

.components-panel.is-about-components .component-icon-wrap {
  width: var(--about-icon-col);
  min-height: var(--about-icon-col);
  height: auto;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1px;
  color: var(--text-secondary);
}

.components-panel.is-about-components .component-icon-content {
  min-width: 0;
}

.components-panel.is-about-components .component-body {
  margin-top: var(--space-2);
}

.components-panel.is-about-components .component-points {
  margin-top: var(--space-2);
}

.components-panel.is-about-components .component-item.is-awards .component-points.component-points-fields {
  margin-top: var(--space-2);
  margin-left: 0;
  width: 100%;
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.components-panel.is-about-components .component-item.is-awards .component-points.component-points-fields li {
  position: relative;
  overflow: visible;
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  color: var(--text-secondary);
}

.about-award-card {
  position: relative;
  min-height: 80px;
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  background: #000;
  overflow: hidden;
  display: grid;
  grid-template-columns: 16px 180px 16px;
  grid-template-rows: auto;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: var(--space-1) var(--space-2);
  text-align: left;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 300ms ease;
  perspective: 500px;
}

.about-award-card.is-tilting {
  z-index: 20;
}

.about-award-wreath {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 32px;
  color: rgb(255 255 255 / 0.5);
  grid-row: 1;
}

.about-award-wreath.is-left {
  grid-column: 1;
  transform: scaleX(-1);
}

.about-award-wreath.is-right {
  grid-column: 3;
}

.about-award-wreath svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about-award-wreath path {
  fill: currentColor;
}

.about-award-content {
  grid-column: 2;
  width: 180px;
  max-width: 180px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.about-award-kicker,
.about-award-title,
.about-award-meta,
.about-award-meta-row {
  margin: 0;
}

.about-award-kicker {
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  white-space: nowrap;
  text-align: center;
}

.about-award-title {
  font-size: 10px;
  line-height: 12px;
  font-weight: var(--font-regular);
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: normal;
  text-align: center;
}

.about-award-description {
  margin: 0;
  font-size: 10px;
  line-height: 12px;
  font-weight: var(--font-regular);
  color: var(--text-secondary);
  text-align: center;
}

.about-award-meta-row {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-2);
  max-width: 100%;
}

.about-award-meta {
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  white-space: nowrap;
  text-align: center;
}

.components-panel.is-about-components .component-item.is-education .component-body {
  --about-education-offset: calc(var(--about-icon-col) + var(--about-icon-gap));
  margin-top: var(--space-2);
  margin-left: calc(var(--about-education-offset) * -1);
  width: calc(100% + var(--about-education-offset));
  padding: var(--space-2);
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  color: var(--text-secondary);
}

.components-panel.is-about-components .component-rows {
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.components-panel.is-about-components .component-rows.has-logo-rows {
  margin-left: calc((var(--about-icon-col) + var(--about-icon-gap)) * -1);
}

.components-panel.is-about-components .component-row {
  display: grid;
  grid-template-columns: var(--about-icon-col) minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
}

.components-panel.is-about-components .component-row.is-navigable,
.components-panel.is-about-components .component-row-logo.is-navigable {
  cursor: pointer;
}

.components-panel.is-about-components .component-row.is-navigable:focus-visible {
  outline: 1px solid #52565b;
  outline-offset: 2px;
  border-radius: var(--radius-2);
}

.components-panel.is-about-components .component-row-icon-wrap {
  width: var(--about-icon-col);
  height: var(--about-icon-col);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.components-panel.is-about-components .component-row-logo {
  width: var(--about-icon-col);
  height: var(--about-icon-col);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 0;
  background: #000;
  flex: 0 0 auto;
}

.components-panel.is-about-components .component-row-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.components-panel.is-about-components .component-row-content {
  min-width: 0;
}

.components-panel.is-about-components .component-row-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.components-panel.is-about-components .component-row-meta {
  min-width: 0;
}

.components-panel.is-about-components .component-row-title {
  margin: 0;
  font-size: var(--text-14-size);
  line-height: var(--text-14-line);
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.components-panel.is-about-components .component-row-role {
  margin: var(--space-0);
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  color: var(--text-tertiary);
}

.components-panel.is-about-components .component-row-period {
  margin: 0;
  text-align: right;
  white-space: nowrap;
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  color: var(--text-tertiary);
}

.components-panel.is-about-components .component-row-description {
  margin: var(--space-1) 0 0;
  font-size: var(--text-14-size);
  line-height: var(--text-14-line);
  font-weight: var(--font-regular);
  color: var(--text-secondary);
}

.keywords-panel {
  margin-top: var(--space-4);
  border-top: 0;
  padding-top: var(--space-0);
  order: 5;
  width: min(100%, 640px);
  margin-left: auto;
  margin-right: auto;
}

.detail-tags {
  margin-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag-pill {
  border: 1px solid #383838;
  border-radius: var(--radius-2);
  background: #151515;
  color: var(--text-secondary);
  font-size: var(--text-12-size);
  line-height: var(--text-12-line);
  font-weight: var(--font-regular);
  padding: var(--space-1) var(--space-2);
}

.media-panel {
  margin-top: var(--space-4);
  border-top: 0;
  padding-top: 0;
  order: 6;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.media-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
}

.media-item {
  margin: 0;
  width: 100%;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.media-item.is-video {
  border-radius: var(--radius-3);
  overflow: hidden;
  background: #070809;
}

.media-item img,
.media-item video {
  width: 100%;
  display: block;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-2);
  background: #070809;
}

.media-picture {
  display: block;
  width: 100%;
}

.media-item.is-video video {
  border-radius: 0;
  background: transparent;
}

.media-fallback-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: var(--space-3);
  color: var(--text-secondary);
  text-decoration: none;
  text-align: center;
  font-size: var(--text-14-size);
  line-height: var(--text-14-line);
  font-weight: var(--font-regular);
}

.media-fallback-link:hover {
  color: var(--text-primary);
}

.detail-card:not(.is-about) .keywords-panel,
.detail-card:not(.is-about) .components-panel {
  width: min(100%, 640px);
  margin-left: auto;
  margin-right: auto;
}

.detail-card.is-projects-tab-active .hero-panel,
.detail-card.is-projects-tab-active .components-panel,
.detail-card.is-projects-tab-active .keywords-panel,
.detail-card.is-projects-tab-active .media-panel {
  display: none !important;
}

.detail-card:not(.is-about) .hero-panel {
  order: 3;
}

.detail-card:not(.is-about) .components-panel {
  order: 4;
}

.detail-card.is-about .detail-title,
.detail-card.is-about .detail-summary,
.detail-card.is-about .detail-hero,
.detail-card.is-about .about-badge {
  width: min(100%, 640px);
  margin-left: auto;
  margin-right: auto;
}

.detail-card.is-about .detail-title,
.detail-card.is-about .detail-header {
  display: none;
}

.detail-card.is-about .detail-summary {
  order: 2;
  font-size: var(--text-14-size);
  line-height: var(--text-14-line);
  margin-top: 0;
  margin-bottom: 0;
}

.detail-card.is-about .detail-hero {
  order: 1;
}

.detail-card.is-root-landing .detail-hero:not([hidden]) + .detail-summary {
  margin-top: 0;
}

.detail-card.is-about .components-panel {
  order: 3;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

.detail-card.is-root-landing .components-panel {
  margin-top: var(--space-5);
}

.detail-card.is-about .about-badge {
  display: none !important;
}

.detail-card.is-about {
  row-gap: var(--space-4);
}

@media (min-width: 1025px) {
  .detail-card.is-root-landing .detail-hero {
    margin-top: auto;
  }

  .detail-card.is-root-landing .components-panel {
    margin-bottom: auto;
  }

  .detail-card.is-about:not(.is-root-landing) .detail-summary {
    margin-top: auto;
  }

  .detail-card.is-about:not(.is-root-landing) .components-panel {
    margin-bottom: auto;
  }
}

.detail-card.is-oprah .keywords-panel,
.detail-card.is-oprah .components-panel {
  width: min(100%, 640px);
  margin-left: auto;
  margin-right: auto;
}

.detail-card.is-oprah .detail-summary {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.detail-card.is-oprah .keywords-panel {
  order: 4;
}

.detail-card.is-oprah .components-panel {
  order: 3;
}

.detail-card.is-oprah .media-panel {
  order: 5;
}

.detail-card:not(.is-about) .about-badge {
  display: none !important;
}

.next-post-button {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 4;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: var(--radius-pill);
  background: rgb(64 64 64 / 0.25);
  color: #fff;
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-14-size);
  line-height: var(--text-14-line);
  font-weight: var(--font-medium);
  cursor: pointer;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
  transform: translateY(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.next-post-label {
  display: inline;
}

.next-post-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  display: block;
  flex: 0 0 auto;
}

.next-post-icon * {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.next-post-button.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.next-post-button:hover {
  background: rgb(82 82 82 / 0.3);
  border-color: rgb(255 255 255 / 0.3);
}

.next-post-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.detail-card.is-tab-locked + .mobile-fab-row .next-post-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}

@media (min-width: 1025px) {
  .detail-card.is-outside + .mobile-fab-row .next-post-button,
  .detail-card.is-found + .mobile-fab-row .next-post-button {
    bottom: calc(var(--space-4) + 32px);
  }
}

.mobile-fab-row {
  display: block;
}

.mobile-linkedin-fab {
  display: none;
}

.empty-state,
.tree-error {
  margin: 0;
  color: var(--text-tertiary);
  font-size: var(--text-14-size);
  line-height: var(--text-14-line);
  font-weight: var(--font-regular);
}

.empty-state {
  padding: 0 var(--space-4) var(--space-3);
}

.tree-error {
  padding: var(--space-2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1024px) {
  body {
    overflow: hidden;
  }

  .app-shell {
    --shell-inset: var(--space-4);
    height: 100dvh;
    min-height: 100dvh;
    padding: var(--shell-inset);
  }

  .workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
  }

  .tree-card {
    position: static;
    top: auto;
    z-index: auto;
    height: auto;
    min-height: 0;
    align-self: start;
    overflow: hidden;
  }

  .tree-profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
  }

  .tree-profile {
    border-bottom: 0;
  }

  .tree-profile-actions {
    display: flex;
    width: auto;
    justify-content: flex-end;
    margin-top: 0;
    flex: 0 0 auto;
  }

  .tree-card {
    grid-template-rows: auto auto auto;
  }

  .tree-root {
    display: none;
    min-height: 0;
    height: auto;
    overflow-y: visible;
  }

  .mobile-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: #151515;
    border-top: 0;
    border-bottom: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-button {
    border-color: transparent;
    padding: var(--space-1) 6px var(--space-1) 4px;
    gap: var(--space-1);
  }

  .mobile-nav-button:hover {
    border-color: transparent;
  }

  .mobile-nav-button.is-active,
  .mobile-nav-button.is-active:hover {
    border-color: transparent;
    box-shadow: none;
    background: #2a2a2a;
    color: #fff;
  }

  .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar-card {
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .detail-card {
    --detail-inline-pad: var(--space-3);
    --detail-bottom-pad: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
    height: 100%;
    min-height: 0;
    overflow: auto;
    padding: var(--space-6) var(--detail-inline-pad) var(--detail-bottom-pad);
  }

  .mobile-fab-row {
    position: fixed;
    left: var(--shell-inset);
    right: var(--shell-inset);
    bottom: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-2);
    padding-bottom: calc(var(--shell-inset) + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
  }

  .detail-card.is-outside + .mobile-fab-row,
  .detail-card.is-found + .mobile-fab-row {
    padding-bottom: calc(var(--shell-inset) + env(safe-area-inset-bottom, 0px) + 32px);
  }

  .mobile-fab-row > * {
    pointer-events: auto;
  }

  .next-post-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    margin: 0;
  }

  .next-post-label {
    display: none;
  }

  .components-panel.is-about-components .component-item.is-awards .component-points.component-points-fields {
    margin-left: 0;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .app-shell {
    --shell-inset: var(--space-3);
    padding: var(--shell-inset);
    gap: var(--space-2);
  }

  .workspace {
    gap: var(--space-2);
  }

  .tree-card {
    grid-template-rows: auto auto auto;
  }

  .tree-root {
    display: none;
    min-height: 0;
    height: auto;
    overflow-y: visible;
  }

  .mobile-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: #151515;
    border-top: 0;
    border-bottom: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-button {
    padding: var(--space-1) 6px var(--space-1) 4px;
    gap: var(--space-1);
  }

  .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .tree-profile {
    padding: var(--space-3);
    border-bottom: 0;
  }

  .tree-profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
  }

  .tree-profile-main {
    gap: var(--space-2);
  }

  .tree-profile-image {
    width: 44px;
    height: 44px;
  }

  .tree-profile-actions {
    display: flex;
    width: auto;
    margin-top: 0;
    justify-content: flex-end;
    gap: var(--space-1);
    flex: 0 0 auto;
  }

  .tree-profile-actions .profile-action {
    display: none;
  }

  .tree-profile-actions .profile-action:first-child {
    display: inline-flex;
    width: auto;
    padding: 0 var(--space-2);
    gap: 0;
  }

  .tree-profile-actions .profile-action:first-child .action-icon {
    display: none;
  }

  .tree-profile-actions .profile-action:first-child span {
    display: inline;
    white-space: nowrap;
  }

  .profile-title-desktop {
    display: none;
  }

  .profile-title-mobile {
    display: inline;
  }

  .profile-action {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    gap: 0;
    flex: 0 0 auto;
  }

  .profile-action span {
    display: none;
  }

  .detail-card:not(.is-about) {
    padding-top: var(--space-3);
  }

  .detail-hero-line {
    font-size: 20px;
    line-height: 28px;
  }

  .components-panel.is-about-components .components-list {
    --about-icon-col: 32px;
    --about-icon-gap: 8px;
  }

  .components-panel.is-about-components .component-row {
    gap: var(--space-3);
  }

  .components-panel.is-about-components .component-row-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2);
  }

  .components-panel.is-about-components .component-row-period {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
  }

  .component-entry {
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-2);
  }

  .tree-node text,
  .node-root text {
    font-size: var(--text-12-size);
  }

  .mobile-linkedin-fab {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(255 255 255 / 0.22);
    border-radius: var(--radius-pill);
    background: rgb(64 64 64 / 0.25);
    color: #fff;
    text-decoration: none;
    backdrop-filter: saturate(150%) blur(10px);
    -webkit-backdrop-filter: saturate(150%) blur(10px);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-12-size);
    line-height: var(--text-12-line);
    font-weight: var(--font-medium);
    white-space: nowrap;
  }

  .mobile-linkedin-fab:hover {
    background: rgb(82 82 82 / 0.3);
    border-color: rgb(255 255 255 / 0.3);
  }

  .next-post-button {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    margin: 0;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .next-post-label {
    display: none;
  }

  .next-post-button.is-visible {
    transform: translateY(0);
  }

  .next-post-button:not(.is-visible) {
    display: none;
  }

  .components-panel.is-about-components .component-item.is-awards .component-points.component-points-fields {
    margin-left: 0;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-card.is-about .detail-hero-line {
    font-size: 18px;
    line-height: 24px;
  }

  .components-panel.is-about-components .component-item.is-awards .about-award-wreath {
    display: none;
  }

  .components-panel.is-about-components .component-item.is-awards .about-award-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .components-panel.is-about-components .component-item.is-awards .about-award-content {
    grid-column: 1;
    justify-self: center;
  }
}
