:root {
  color-scheme: light;
  --ink: #111412;
  --muted: #646d68;
  --soft: #8e9691;
  --paper: #f5f3ee;
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .82);
  --line: rgba(31, 38, 34, .11);
  --line-strong: rgba(31, 38, 34, .18);
  --green: #0c756d;
  --green-dark: #075a54;
  --gold: #ad8a50;
  --blue: #516d94;
  --view-accent: #0c756d;
  --view-accent-soft: rgba(12,117,109,.12);
  --view-accent-wash: rgba(235,248,243,.72);
  --shadow-soft: 0 18px 54px rgba(25, 30, 27, .08);
  --shadow-deep: 0 36px 110px rgba(25, 30, 27, .14);
  --radius: 18px;
  --radius-sm: 12px;
  --pointer-x: 70vw;
  --pointer-y: 20vh;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

html.is-restoring-scroll {
  scroll-behavior: auto;
}

body[data-active-view="team"] {
  --view-accent: #7a6a9d;
  --view-accent-soft: rgba(122,106,157,.13);
  --view-accent-wash: rgba(238,234,245,.74);
}

body[data-active-view="tea"] {
  --view-accent: #b05f6d;
  --view-accent-soft: rgba(176,95,109,.13);
  --view-accent-wash: rgba(249,235,238,.74);
}

body[data-active-view="tools"] {
  --view-accent: #9a6a2f;
  --view-accent-soft: rgba(154,106,47,.13);
  --view-accent-wash: rgba(243,234,219,.76);
}

body[data-active-view="resources"] {
  --view-accent: #516d94;
  --view-accent-soft: rgba(81,109,148,.13);
  --view-accent-wash: rgba(232,237,245,.76);
}

body[data-active-view="projects"] {
  --view-accent: #8f5d65;
  --view-accent-soft: rgba(143,93,101,.13);
  --view-accent-wash: rgba(244,232,232,.76);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(255,255,255,.78), rgba(255,255,255,.22) 42%, var(--view-accent-wash)),
    radial-gradient(circle at 78% 10%, color-mix(in srgb, var(--view-accent) 24%, transparent), transparent 30%),
    radial-gradient(circle at 12% 84%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 28%),
    #f4f2ed;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  overflow-x: hidden;
  transition: background .28s ease;
}

body.modal-open {
  position: fixed;
  right: 0;
  left: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(420px circle at var(--pointer-x) var(--pointer-y), rgba(255,255,255,.44), transparent 58%),
    radial-gradient(620px circle at 50% -10%, color-mix(in srgb, var(--view-accent) 10%, transparent), transparent 62%);
  mix-blend-mode: soft-light;
}

button,
input,
select {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.resource-card:focus-visible,
.tool-card:focus-visible,
.signal-card:focus-visible,
.project-card:focus-visible,
.team-node:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--view-accent) 22%, transparent);
  outline-offset: 3px;
}

a {
  color: inherit;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  overflow: clip;
  contain: paint;
  pointer-events: none;
}

.ambient-layer span {
  position: absolute;
  width: 38vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(62px);
  opacity: .42;
  transform: translateZ(0);
}

.ambient-layer span:nth-child(1) {
  right: -12vw;
  top: -14vw;
  background: color-mix(in srgb, var(--view-accent) 24%, #f7f3eb);
}

.ambient-layer span:nth-child(2) {
  left: -18vw;
  bottom: -16vw;
  background: #eadfc7;
}

.ambient-layer span:nth-child(3) {
  right: 22vw;
  bottom: -24vw;
  background: color-mix(in srgb, var(--view-accent) 18%, #e7e9ee);
}

.app-shell {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 100vh;
  padding: 20px 20px 20px 216px;
}

.nav-rail {
  position: fixed;
  z-index: 20;
  left: 20px;
  top: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  width: 178px;
  height: auto;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.34)),
    radial-gradient(circle at 22% 4%, var(--view-accent-soft), transparent 34%);
  backdrop-filter: blur(30px) saturate(1.15);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
}

.primary-nav {
  display: grid;
  gap: 4px;
  margin-top: 26px;
}

.primary-nav button,
.category-tree button {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.primary-nav button {
  position: relative;
  min-height: 40px;
  padding: 0 11px;
  font-size: 14px;
  font-weight: 650;
  overflow: hidden;
}

.primary-nav button::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 3px;
  height: 16px;
  border-radius: 999px;
  background: var(--view-accent);
  opacity: 0;
  transform: translateY(-50%) scaleY(.45);
  transition: opacity .2s ease, transform .2s ease;
}

.primary-nav button:hover,
.primary-nav button.active,
.category-tree button:hover,
.category-tree button.active {
  border-color: color-mix(in srgb, var(--view-accent) 18%, rgba(255,255,255,.82));
  background: linear-gradient(90deg, var(--view-accent-soft), rgba(255,255,255,.66) 48%);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(25, 30, 27, .05);
}

.primary-nav button:hover {
  transform: translateX(2px);
}

.primary-nav button:active,
.category-tree button:active {
  transform: translateY(1px) scale(.985);
}

.primary-nav button.active::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--view-accent);
  box-shadow: 0 0 0 5px var(--view-accent-soft), 0 0 18px color-mix(in srgb, var(--view-accent) 32%, transparent);
  transform: translateY(-50%);
}

.primary-nav button.active::before {
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}

.nav-preview {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 0%, var(--view-accent-soft), transparent 44%),
    rgba(255,255,255,.38);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(25,30,27,.05);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.nav-preview.is-previewing {
  transform: translateY(-1px);
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--view-accent) 18%, transparent), transparent 44%),
    rgba(255,255,255,.52);
  box-shadow: 0 18px 42px rgba(25,30,27,.08);
}

.nav-preview span {
  color: var(--view-accent);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.nav-preview strong {
  font-size: 18px;
  line-height: 1;
}

.nav-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.nav-preview em {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255,255,255,.46);
  color: color-mix(in srgb, var(--view-accent) 82%, #111412);
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.rail-status {
  margin-top: auto;
  padding: 15px 2px 2px;
  border-top: 1px solid var(--line);
}

.rail-status.is-ready {
  padding-bottom: 2px;
}

.rail-status span,
.eyebrow,
.context-panel span,
.category-drawer span,
.process-line span,
.stage-label {
  color: var(--view-accent);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-kicker {
  color: var(--view-accent);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0;
}

.rail-status strong {
  display: block;
  margin-top: 5px;
  color: #47504b;
  font-size: 22px;
  line-height: 1;
}

.rail-status strong.is-ready {
  color: var(--view-accent);
}

.rail-status-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 12px;
}

.rail-status-actions[hidden],
#authStatus.is-ready + .rail-status-actions,
.rail-status.is-ready .rail-status-actions {
  display: none;
}

.rail-status-actions button,
.rail-status-actions a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 999px;
  background: rgba(255,255,255,.52);
  color: color-mix(in srgb, var(--view-accent) 78%, #111412);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 8px 18px rgba(25,30,27,.05);
}

.rail-status-actions button {
  cursor: pointer;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--view-accent) 30%, #ffffff), rgba(255,255,255,.76));
}

.rail-status-actions button:hover,
.rail-status-actions a:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--view-accent) 24%, rgba(255,255,255,.76));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.82),
    0 10px 22px rgba(25,30,27,.08);
}

.main-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - 40px);
}

.view-stack,
.view,
.resource-layout,
.tool-layout,
.resource-grid,
.tool-grid,
.resource-card,
.tool-card {
  min-width: 0;
}

.command-bar {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  min-height: 94px;
  margin-bottom: 14px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.68), rgba(255,255,255,.36)),
    linear-gradient(92deg, var(--view-accent-wash), rgba(255,255,255,.3) 42%);
  backdrop-filter: blur(28px) saturate(1.12);
  box-shadow: 0 18px 52px rgba(25, 30, 27, .07);
  overflow: hidden;
}

.command-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--view-accent), color-mix(in srgb, var(--view-accent) 16%, transparent));
  box-shadow: 0 0 28px color-mix(in srgb, var(--view-accent) 22%, transparent);
  pointer-events: none;
}

.command-bar > * {
  position: relative;
  z-index: 1;
}

.command-bar h1 {
  margin: 5px 0 0;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.02;
  letter-spacing: 0;
}

.view-subtitle {
  max-width: 460px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.command-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}

.command-meta span {
  --meta-accent: var(--view-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.68), rgba(255,255,255,.46)),
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--meta-accent) 16%, transparent), transparent 50%);
  color: color-mix(in srgb, var(--meta-accent) 56%, var(--muted));
  font-size: 12px;
  box-shadow:
    0 8px 22px rgba(25, 30, 27, .04),
    inset 0 1px 0 rgba(255,255,255,.62);
}

.command-meta .sync-pill {
  --meta-accent: var(--view-accent);
  color: color-mix(in srgb, var(--view-accent) 82%, #111412);
  background: var(--view-accent-wash);
}

.command-meta span:nth-child(2) { --meta-accent: #8f5d65; }
.command-meta span:nth-child(3) { --meta-accent: #7a6a9d; }
.command-meta span:nth-child(4) { --meta-accent: #9a6a2f; }
.command-meta span:nth-child(5) { --meta-accent: #516d94; }

.sync-pill img {
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 999px;
  object-fit: cover;
}

.sync-pill.is-loading img {
  animation: syncPulse 1.1s ease-in-out infinite;
}

.sync-pill.has-error {
  color: #8f6a24;
  background: rgba(255, 244, 220, .72);
}

.sync-pill.has-error img {
}

@keyframes syncPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(.72);
    opacity: .58;
  }
}

.command-meta strong {
  color: color-mix(in srgb, var(--meta-accent) 28%, var(--ink));
  font-size: 18px;
}

.view {
  display: none;
  min-height: calc(100vh - 116px);
  animation: viewIn .32s cubic-bezier(.2,.8,.2,1) both;
}

.view.active {
  display: block;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .34s;
  animation-timing-function: cubic-bezier(.2,.8,.2,1);
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .team-log-card.is-current,
  .team-comment-card.is-current,
  .team-timeline-day.is-current .team-timeline-date {
    transform: none;
  }

  .team-timeline-list::after {
    box-shadow: none;
  }
}

.launch-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, .74fr) minmax(520px, 1.26fr);
  gap: 16px;
  min-height: 460px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 22%, rgba(200,218,213,.52), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.74), rgba(255,255,255,.28)),
    linear-gradient(90deg, rgba(12,117,109,.045), rgba(81,109,148,.075));
  backdrop-filter: blur(34px) saturate(1.1);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}

.launch-stage::before {
  content: "";
  position: absolute;
  inset: 14px 14px 14px auto;
  width: min(52%, 720px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 52% 42%, color-mix(in srgb, var(--view-accent) 16%, transparent), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,0));
  pointer-events: none;
}

.launch-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 100%;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.16)),
    radial-gradient(circle at 0% 18%, var(--view-accent-soft), transparent 36%);
  box-shadow: inset 1px 0 0 rgba(255,255,255,.44);
  z-index: 1;
}

.launch-copy::before {
  content: "";
  width: 54px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--view-accent), color-mix(in srgb, var(--view-accent) 8%, transparent));
  box-shadow: 0 0 24px color-mix(in srgb, var(--view-accent) 24%, transparent);
}

.launch-copy h2 {
  max-width: 560px;
  margin: 12px 0 16px;
  font-size: clamp(46px, 4.9vw, 66px);
  line-height: .94;
  letter-spacing: 0;
  text-wrap: balance;
}

.launch-copy h2 span {
  display: block;
}

.launch-copy p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.launch-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.launch-actions button,
.primary-link,
.dialog-card button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 760;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.launch-actions button + button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.62);
  color: var(--ink);
}

.launch-actions button:hover,
.primary-link:hover,
.dialog-card button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(25, 30, 27, .12);
}

.launch-actions button:active,
.primary-link:active,
.dialog-card button[type="submit"]:active {
  transform: translateY(1px) scale(.985);
  box-shadow: 0 8px 20px rgba(25, 30, 27, .1);
}

.launch-visual {
  position: relative;
  z-index: 1;
  min-height: 400px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.88), rgba(255,255,255,.14) 30%, transparent 58%),
    radial-gradient(circle at 65% 38%, rgba(12,117,109,.18), transparent 26%),
    linear-gradient(rgba(20, 24, 22, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 24, 22, .035) 1px, transparent 1px),
    rgba(255,255,255,.3);
  background-size: auto, auto, 34px 34px, 34px 34px, auto;
  overflow: hidden;
}

.launch-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 20px;
  pointer-events: none;
}

.launch-visual::after {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 999px;
  background: conic-gradient(from 140deg, transparent, rgba(12,117,109,.16), transparent 36%, rgba(173,138,80,.14), transparent 72%);
  filter: blur(.2px);
  opacity: .72;
  mask: radial-gradient(circle, transparent 51%, #000 52%, #000 54%, transparent 55%);
  animation: slowSpin 18s linear infinite;
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

.system-core {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 142px;
  height: 142px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 24%, rgba(255,255,255,.96), rgba(255,255,255,.66) 42%, rgba(255,255,255,.32)),
    rgba(255,255,255,.58);
  backdrop-filter: blur(26px) saturate(1.16);
  box-shadow: 0 28px 80px rgba(25,30,27,.16);
  transform: translate(-50%, -50%);
}

.system-core span {
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.system-core strong {
  margin-top: 6px;
  font-size: 20px;
  letter-spacing: 0;
}

.system-core em {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.flow-ring {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 1;
  border: 1px solid rgba(31,38,34,.09);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-a {
  width: min(470px, 72%);
  aspect-ratio: 1;
}

.ring-b {
  width: min(330px, 52%);
  aspect-ratio: 1;
  border-style: dashed;
  opacity: .72;
}

.stage-card {
  position: absolute;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.56)),
    radial-gradient(circle at 16% 0%, var(--view-accent-soft), transparent 40%);
  backdrop-filter: blur(26px) saturate(1.12);
  box-shadow:
    0 24px 70px rgba(25, 30, 27, .13),
    inset 0 1px 0 rgba(255,255,255,.74);
  transition: opacity .22s ease, transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.stage-card.is-dimmed {
  opacity: .46;
  transform: scale(.985);
}

.stage-card.is-focused {
  z-index: 8;
  border-color: rgba(255,255,255,.95);
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.7)),
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--view-accent) 18%, transparent), transparent 44%);
  box-shadow:
    0 34px 92px rgba(25, 30, 27, .18),
    0 0 0 7px color-mix(in srgb, var(--view-accent) 8%, transparent);
  transform: translateY(-4px) scale(1.018);
}

.stage-card.is-focused .stage-label {
  color: color-mix(in srgb, var(--view-accent) 86%, #111412);
}

.signal-card,
.resource-card,
.tool-card,
.project-card,
.project-showcase-empty,
.context-panel,
.resource-inspector {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.team-node,
.stage-card {
  overflow: hidden;
  isolation: isolate;
}

.signal-card::before,
.resource-card::before,
.tool-card::before,
.project-card::before,
.project-showcase-empty::before,
.team-node::after,
.context-panel::before,
.resource-inspector::before,
.stage-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(220px circle at var(--surface-x, -100px) var(--surface-y, -100px), rgba(255,255,255,.64), transparent 56%),
    radial-gradient(180px circle at var(--surface-x, -100px) var(--surface-y, -100px), color-mix(in srgb, var(--card-accent, var(--view-accent)) 12%, transparent), transparent 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.signal-card:hover::before,
.resource-card:hover::before,
.tool-card:hover::before,
.project-card:hover::before,
.project-showcase-empty:hover::before,
.team-node:hover::after,
.context-panel:hover::before,
.resource-inspector:hover::before,
.stage-card:hover::after {
  opacity: 1;
}

.team-orbit {
  z-index: 3;
  left: 9%;
  top: 8%;
  width: min(330px, 44%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.mini-orbit {
  position: relative;
  width: 74%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--view-accent) 20%, rgba(31,38,34,.12));
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.92), rgba(255,255,255,.28)),
    radial-gradient(circle at 50% 50%, var(--view-accent-soft), transparent 58%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.mini-orbit::before,
.mini-orbit::after {
  content: "";
  position: absolute;
  inset: 17%;
  border: 1px solid rgba(31,38,34,.08);
  border-radius: 50%;
}

.mini-orbit::after {
  inset: 33%;
}

.mini-orbit strong,
.mini-orbit i {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.mini-orbit strong {
  inset: 37%;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  z-index: 2;
}

.mini-orbit i {
  left: 50%;
  top: 50%;
  width: 62px;
  height: 36px;
  background: color-mix(in srgb, var(--agent-color) 18%, rgba(255,255,255,.88));
  color: #232925;
  font-size: 12px;
  font-style: normal;
  font-weight: 780;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 26px rgba(25, 30, 27, .08);
}

.mini-orbit i:nth-of-type(1) { left: 50%; top: 8%; }
.mini-orbit i:nth-of-type(2) { left: 90%; top: 37%; }
.mini-orbit i:nth-of-type(3) { left: 75%; top: 84%; }
.mini-orbit i:nth-of-type(4) { left: 25%; top: 84%; }
.mini-orbit i:nth-of-type(5) { left: 10%; top: 37%; }

.stage-label {
  position: absolute;
  left: 18px;
  top: 16px;
}

.resource-peek {
  z-index: 5;
  right: 34px;
  bottom: 34px;
  width: min(360px, calc(100% - 68px));
  padding: 20px;
}

.tool-peek {
  z-index: 5;
  right: 210px;
  top: 44px;
  width: 220px;
  padding: 18px;
}

.tool-peek strong {
  display: block;
  margin-top: 32px;
  font-size: 20px;
  line-height: 1.25;
}

.tool-peek p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.resource-peek strong {
  display: block;
  margin: 32px 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.resource-peek p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.project-peek {
  z-index: 4;
  right: 48px;
  top: 44px;
  width: 172px;
  padding: 18px;
}

.access-peek {
  z-index: 4;
  left: 44px;
  bottom: 42px;
  width: 184px;
  padding: 18px;
}

.project-peek strong,
.access-peek strong {
  display: block;
  margin-top: 32px;
  font-size: 34px;
  line-height: 1;
}

.project-peek p,
.access-peek p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.signal-card {
  --signal-accent: var(--view-accent);
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.42)),
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--signal-accent) 18%, transparent), transparent 44%);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 40px rgba(25, 30, 27, .06);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.signal-card:nth-child(1) { --signal-accent: #7a6a9d; }
.signal-card:nth-child(2) { --signal-accent: #516d94; }
.signal-card:nth-child(3) { --signal-accent: #9a6a2f; }
.signal-card:nth-child(4) { --signal-accent: #8f5d65; }

.signal-card:hover,
.signal-card.active,
.signal-card:focus-visible {
  transform: translateY(-3px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.6)),
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--signal-accent) 24%, transparent), transparent 46%);
  border-color: color-mix(in srgb, var(--signal-accent) 22%, rgba(255,255,255,.96));
  box-shadow:
    0 24px 70px rgba(25, 30, 27, .12),
    inset 4px 0 0 color-mix(in srgb, var(--signal-accent) 62%, transparent);
}

.signal-card span {
  color: color-mix(in srgb, var(--signal-accent) 84%, #111412);
  font-size: 12px;
  font-weight: 820;
}

.signal-card strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(28px, 2.6vw, 34px);
  line-height: 1;
}

.signal-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.signal-card em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-top: 16px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  color: color-mix(in srgb, var(--signal-accent) 84%, #111412);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.view-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding: 0 2px;
}

.view-head h2 {
  margin: 6px 0 0;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.02;
}

.view-head > p {
  max-width: 420px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.34)),
    radial-gradient(circle at 100% 0%, var(--view-accent-soft), transparent 42%);
  color: var(--muted);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.58),
    0 12px 30px rgba(25,30,27,.045);
  line-height: 1.7;
}

.team-layout {
  --team-map-height: 560px;
  --team-detail-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 14px;
}

.team-map-card {
  position: relative;
  height: var(--team-map-height);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 28px;
  background:
    linear-gradient(rgba(31, 41, 36, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 41, 36, .04) 1px, transparent 1px),
    radial-gradient(circle at 52% 50%, rgba(255,255,255,.86), rgba(255,255,255,.38) 58%, rgba(231,238,234,.46));
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: var(--shadow-deep);
}

.team-map-card::before,
.team-map-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.team-map-card::before {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--view-accent) 14%, transparent), transparent 22%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.52), transparent 36%);
}

.team-map-card::after {
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, transparent 46%, rgba(17,20,18,.05) 100%);
}

.team-links,
.team-nodes {
  position: absolute;
  inset: 0;
}

.team-links {
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.team-nodes {
  z-index: 2;
}

.team-links path.edge {
  fill: none;
  stroke: rgba(35, 43, 39, .26);
  stroke-width: 1.5;
  transition: opacity .2s ease, stroke .2s ease, stroke-width .2s ease, filter .2s ease;
}

.team-links path.return,
.team-links path.feedback {
  stroke-dasharray: 6 7;
}

.team-links marker path {
  fill: rgba(35, 43, 39, .46);
}

.team-links path.edge.is-muted {
  opacity: .18;
}

.team-links path.edge.is-related {
  opacity: 1;
  stroke: color-mix(in srgb, var(--view-accent) 62%, rgba(35,43,39,.34));
  stroke-width: 2.4;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--view-accent) 18%, transparent));
}

.team-legend {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: calc(100% - 36px);
}

.team-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(25,30,27,.06);
}

.team-legend i {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--view-accent) 68%, rgba(35,43,39,.34));
  box-shadow: 0 0 10px color-mix(in srgb, var(--view-accent) 18%, transparent);
}

.team-legend span + span i {
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--view-accent) 58%, rgba(35,43,39,.34)) 0 5px, transparent 5px 9px);
  box-shadow: none;
}

.team-node {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 164px;
  min-height: 102px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--node-color) 28%, rgba(255,255,255,.8));
  border-radius: 18px;
  background: rgba(255,255,255,.74);
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(25, 30, 27, .1);
  transform: translate(-50%, -50%);
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(20px);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.team-node:hover,
.team-node.previewed {
  opacity: 1;
  filter: none;
  background: rgba(255,255,255,.92);
  box-shadow: 0 26px 70px rgba(25, 30, 27, .16), 0 0 0 5px color-mix(in srgb, var(--node-color) 12%, transparent);
  transform: translate(-50%, -50%);
}

.team-node.is-muted {
  opacity: .46;
  filter: saturate(.72);
}

.team-node.is-related {
  opacity: 1;
  filter: none;
}

.team-node.is-related:not(.selected):not(.previewed) {
  box-shadow:
    0 20px 54px rgba(25, 30, 27, .12),
    0 0 0 4px color-mix(in srgb, var(--node-color) 7%, transparent);
}

.team-node.selected {
  border-color: color-mix(in srgb, var(--node-color) 54%, rgba(255,255,255,.78));
  background: linear-gradient(145deg, rgba(255,255,255,.95), color-mix(in srgb, var(--node-color) 10%, rgba(255,255,255,.84)));
  box-shadow: 0 28px 74px rgba(25, 30, 27, .18), 0 0 0 1px color-mix(in srgb, var(--node-color) 24%, transparent), 0 0 0 7px color-mix(in srgb, var(--node-color) 10%, transparent);
  transform: translate(-50%, -50%);
}

.team-node.selected.previewed {
  transform: translate(-50%, -50%);
}

.team-node::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--node-color);
  transition: width .2s ease, opacity .2s ease;
}

.team-node.selected::before,
.team-node.previewed::before {
  width: 42px;
}

.team-node span,
.team-node em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.team-node strong {
  display: block;
  margin: 3px 0 4px;
  font-size: 23px;
  line-height: 1;
}

.team-node.external {
  width: 118px;
  min-height: 78px;
}

.context-panel,
.process-line,
.category-drawer,
.resource-inspector,
.dialog-card,
.resource-card,
.tool-card,
.project-card,
.project-showcase-empty {
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 22px;
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(24px) saturate(1.08);
  box-shadow: var(--shadow-soft);
}

.context-panel {
  height: var(--team-detail-height);
  min-height: 0;
  padding: 22px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.team-detail-content {
  animation: detailFadeIn .2s ease both;
  will-change: opacity, transform;
}

@keyframes detailFadeIn {
  from {
    opacity: .42;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.context-panel h3 {
  margin: 10px 0 10px;
  font-size: 32px;
  line-height: 1.05;
}

.context-panel p,
.resource-main p,
.project-card p,
.empty {
  color: var(--muted);
  line-height: 1.65;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.detail-list div {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.detail-list small {
  display: block;
  color: var(--soft);
  margin-bottom: 3px;
}

.detail-list strong {
  font-size: 14px;
}

.agent-downloads {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.agent-downloads-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agent-downloads-head small {
  color: var(--view-accent);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.agent-downloads-head strong {
  color: var(--muted);
  font-size: 12px;
}

.agent-download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 13px;
  background:
    linear-gradient(120deg, var(--view-accent-soft), rgba(255,255,255,.46) 46%),
    rgba(255,255,255,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.56);
}

.agent-download-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.agent-download-card span {
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: color-mix(in srgb, var(--view-accent) 78%, #111412);
  font-size: 11px;
  font-weight: 820;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-download-card strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.agent-download-card small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-download-card button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--view-accent) 20%, rgba(255,255,255,.76));
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: color-mix(in srgb, var(--view-accent) 78%, #111412);
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.agent-download-card button:hover {
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 24px rgba(25,30,27,.07);
  transform: translateY(-1px);
}

.agent-download-card.is-unavailable {
  opacity: .78;
}

.agent-download-card.is-unavailable button,
.agent-download-card button:disabled {
  border-color: rgba(31,38,34,.08);
  background: rgba(255,255,255,.42);
  color: rgba(31,38,34,.42);
  cursor: not-allowed;
  box-shadow: none;
}

.agent-download-card.is-unavailable button:hover,
.agent-download-card button:disabled:hover {
  background: rgba(255,255,255,.42);
  box-shadow: none;
  transform: none;
}

.relation-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.relation-list small {
  color: var(--view-accent);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.relation-list p {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 10px 11px 10px 15px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 12px;
  background:
    linear-gradient(90deg, var(--view-accent-soft), rgba(255,255,255,.44) 42%),
    rgba(255,255,255,.42);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.56);
}

.relation-list p span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  color: color-mix(in srgb, var(--view-accent) 78%, #111412);
  font-size: 11px;
  font-weight: 820;
}

.relation-list p.is-output span {
  background: var(--view-accent-soft);
}

.relation-list p strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.relation-list p::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 11px;
  bottom: 11px;
  width: 2px;
  border-radius: 999px;
  background: var(--view-accent);
  opacity: .56;
}

.process-line {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, var(--view-accent-soft), rgba(255,255,255,.48) 38%),
    rgba(255,255,255,.58);
}

.process-line::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 16px;
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--view-accent), color-mix(in srgb, var(--view-accent) 10%, transparent));
  opacity: .68;
}

.process-line p {
  position: relative;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.process-line > div {
  min-width: 0;
  padding-top: 10px;
}

.process-line ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-line li {
  position: relative;
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.68), rgba(255,255,255,.42)),
    radial-gradient(circle at 16% 0%, var(--view-accent-soft), transparent 46%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

.process-line li::before {
  content: "";
  display: block;
  width: 22px;
  height: 3px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--view-accent);
  opacity: .58;
}

.process-line li strong,
.process-line li small {
  display: block;
}

.process-line li strong {
  color: var(--ink);
  font-size: 14px;
}

.process-line li small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.team-log-section {
  margin-top: 18px;
}

.team-comment-section {
  margin-top: 22px;
}

.team-log-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.team-log-filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  color: var(--muted);
  cursor: pointer;
  font-weight: 780;
  box-shadow: 0 10px 26px rgba(25,30,27,.05), inset 0 1px 0 rgba(255,255,255,.58);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.team-log-filters button:hover,
.team-log-filters button.active {
  border-color: color-mix(in srgb, var(--view-accent) 22%, rgba(255,255,255,.78));
  background: linear-gradient(90deg, var(--view-accent-soft), rgba(255,255,255,.72));
  color: color-mix(in srgb, var(--view-accent) 82%, #111412);
}

.team-log-filters button:hover {
  transform: translateY(-1px);
}

.team-log-filters em {
  color: var(--soft);
  font-size: 11px;
  font-style: normal;
}

.team-log-grid {
  --timeline-progress: 0;
  position: relative;
  display: grid;
  gap: 28px;
}

.team-comment-grid {
  --timeline-progress: 0;
  position: relative;
  display: grid;
  gap: 28px;
}

.team-log-grid:has(.team-log-empty)::before,
.team-log-grid:has(.team-log-empty)::after,
.team-comment-grid:has(.team-comment-empty)::before {
  display: none;
}

.team-timeline-day {
  --date-fill: 0;
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.team-timeline-date {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 6px;
  min-height: 70px;
  padding: 12px 12px 13px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--log-accent, var(--view-accent)) 12%, rgba(255,255,255,.72));
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.66), rgba(255,255,255,.44)),
    color-mix(in srgb, var(--log-accent, var(--view-accent)) 8%, rgba(255,255,255,.4));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.52), 0 12px 30px rgba(25,30,27,.045);
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}

.team-timeline-date::before,
.team-timeline-date::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.team-timeline-date::before {
  z-index: 0;
  transform: scaleY(var(--date-fill));
  transform-origin: bottom center;
  background:
    linear-gradient(180deg, rgba(255,255,255,.2), transparent 30%),
    color-mix(in srgb, var(--log-accent, var(--view-accent)) 14%, transparent);
  transition: transform .12s linear;
}

.team-timeline-date::after {
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.34), transparent 48%);
}

.team-timeline-date time,
.team-timeline-date span {
  position: relative;
  z-index: 2;
}

.team-timeline-date time {
  color: var(--ink);
  font-size: 21px;
  font-weight: 860;
  line-height: 1.05;
}

.team-timeline-date span {
  width: fit-content;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.team-timeline-day.is-current .team-timeline-date {
  border-color: color-mix(in srgb, var(--log-accent, var(--view-accent)) 24%, rgba(255,255,255,.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.56), 0 16px 34px rgba(25,30,27,.07);
  transform: translateX(2px);
}

.team-timeline-day.is-current .team-timeline-date time {
  color: color-mix(in srgb, var(--log-accent, var(--view-accent)) 82%, #111412);
}

.team-timeline-list,
.team-comment-cluster {
  --timeline-progress: 0;
  position: relative;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding-left: 24px;
}

.team-timeline-list::before,
.team-timeline-list::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 1px;
  border-radius: 999px;
  pointer-events: none;
  transform-origin: top center;
}

.team-timeline-list::before {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--view-accent) 18%, rgba(31,38,34,.14)), transparent);
}

.team-timeline-list::after {
  transform: scaleY(var(--timeline-progress));
  background: linear-gradient(180deg, color-mix(in srgb, var(--view-accent) 22%, transparent), var(--view-accent), color-mix(in srgb, var(--log-accent, var(--view-accent)) 55%, transparent));
  box-shadow: 0 0 16px color-mix(in srgb, var(--view-accent) 18%, transparent);
}

.team-log-card,
.team-log-empty,
.team-comment-card,
.team-comment-empty {
  width: 100%;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.68), rgba(255,255,255,.48)),
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--log-accent, var(--view-accent)) 9%, transparent), transparent 36%);
  box-shadow: 0 14px 36px rgba(25,30,27,.045);
  backdrop-filter: blur(18px) saturate(1.04);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.team-log-card {
  position: relative;
  display: block;
  padding: 20px;
}

.team-log-card.is-current,
.team-comment-card.is-current {
  border-color: color-mix(in srgb, var(--log-accent, var(--view-accent)) 22%, rgba(255,255,255,.82));
  background:
    linear-gradient(180deg, rgba(255,255,255,.76), rgba(255,255,255,.54)),
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--log-accent, var(--view-accent)) 13%, transparent), transparent 38%);
  box-shadow: 0 18px 44px rgba(25,30,27,.065);
}

.team-timeline-card::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -30px;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255,255,255,.88);
  border-radius: 999px;
  background: color-mix(in srgb, var(--log-accent, var(--view-accent)) 76%, #fff);
  box-shadow: 0 0 0 5px rgba(255,255,255,.62), 0 8px 18px rgba(25,30,27,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.team-timeline-card.is-current::before {
  transform: scale(1.08);
  box-shadow: 0 0 0 5px rgba(255,255,255,.68), 0 0 18px color-mix(in srgb, var(--log-accent, var(--view-accent)) 22%, transparent);
}

.team-comment-card {
  padding: 18px;
}

.team-log-empty,
.team-comment-empty {
  padding: 24px;
}

.team-log-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.team-log-meta span,
.team-log-empty span,
.team-comment-empty span {
  color: color-mix(in srgb, var(--log-accent, var(--view-accent)) 82%, #111412);
  font-size: 11px;
  font-weight: 820;
}

.team-log-meta time {
  color: var(--soft);
  font-size: 12px;
  font-weight: 760;
}

.team-log-card h3,
.team-log-empty h3,
.team-comment-card h3,
.team-comment-empty h3 {
  margin: 10px 0 10px;
  font-size: 22px;
  line-height: 1.18;
}

.team-log-card p,
.team-log-empty p,
.team-comment-card p,
.team-comment-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.team-log-card p {
  white-space: pre-line;
}

.timeline-card-body {
  position: relative;
  max-height: none;
  overflow: visible;
  overflow-anchor: none;
}

.team-timeline-card,
.team-timeline-card * {
  overflow-anchor: none;
}

.team-timeline-card.has-overflow .timeline-card-body {
  max-height: var(--card-collapsed-height);
  overflow: hidden;
  transition: max-height .34s ease;
}

.team-timeline-card.has-overflow.is-expanded .timeline-card-body {
  max-height: var(--card-expanded-height);
}

.team-timeline-card.has-overflow .timeline-card-body::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 74px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.82) 84%);
  opacity: 1;
  transition: opacity .2s ease;
}

.team-timeline-card.has-overflow.is-expanded .timeline-card-body::after {
  opacity: 0;
}

.timeline-card-toggle,
.timeline-card-collapse,
.timeline-floating-collapse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.5)),
    color-mix(in srgb, var(--log-accent, var(--view-accent)) 6%, transparent);
  color: color-mix(in srgb, var(--log-accent, var(--view-accent)) 76%, #111412);
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(25,30,27,.045);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.timeline-card-toggle {
  margin-top: 12px;
}

.timeline-card-collapse {
  position: sticky;
  top: 12px;
  z-index: 3;
  margin: -2px 0 10px auto;
}

.timeline-floating-collapse {
  position: fixed;
  right: 30px;
  bottom: calc(env(safe-area-inset-bottom) + 28px);
  z-index: 40;
  box-shadow: 0 18px 42px rgba(25,30,27,.12), inset 0 1px 0 rgba(255,255,255,.62);
  transform: translateZ(0);
  will-change: transform;
}

.timeline-card-toggle[hidden],
.timeline-card-collapse[hidden],
.timeline-floating-collapse[hidden] {
  display: none;
}

.timeline-card-toggle i,
.timeline-card-collapse i,
.timeline-floating-collapse i {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transition: transform .2s ease;
}

.timeline-card-toggle i {
  transform: translateY(-2px) rotate(45deg);
}

.timeline-card-collapse i,
.timeline-floating-collapse i {
  transform: translateY(2px) rotate(225deg);
}

.timeline-card-toggle:hover,
.timeline-card-collapse:hover,
.timeline-floating-collapse:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--log-accent, var(--view-accent)) 22%, rgba(255,255,255,.76));
  box-shadow: 0 14px 28px rgba(25,30,27,.065);
}

.timeline-card-toggle:active,
.timeline-card-collapse:active,
.timeline-floating-collapse:active {
  transform: translateY(1px) scale(.99);
}

.team-timeline-card.is-expanded .timeline-card-toggle i {
  transform: translateY(2px) rotate(225deg);
}

.markdown-body {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.76;
  overflow-wrap: anywhere;
}

.markdown-body > :first-child {
  margin-top: 0;
}

.markdown-body > :last-child {
  margin-bottom: 0;
}

.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  margin: 22px 0 10px;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.28;
}

.markdown-body h2 {
  padding-top: 2px;
  font-size: 18px;
}

.markdown-body h3 {
  font-size: 16px;
}

.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  color: color-mix(in srgb, var(--log-accent, var(--view-accent)) 70%, var(--ink));
  font-size: 14px;
}

.markdown-body p {
  margin: 0 0 12px;
}

.markdown-body strong {
  color: color-mix(in srgb, var(--log-accent, var(--view-accent)) 66%, var(--ink));
  font-weight: 850;
}

.markdown-body em {
  color: color-mix(in srgb, var(--muted) 82%, var(--ink));
}

.markdown-body del {
  color: var(--soft);
}

.markdown-body ul,
.markdown-body ol {
  display: grid;
  gap: 7px;
  margin: 12px 0 14px;
  padding-left: 1.25em;
}

.markdown-body li {
  padding-left: 3px;
}

.markdown-body li::marker {
  color: color-mix(in srgb, var(--log-accent, var(--view-accent)) 78%, var(--muted));
  font-weight: 850;
}

.markdown-body blockquote {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 3px solid color-mix(in srgb, var(--log-accent, var(--view-accent)) 46%, rgba(31,38,34,.12));
  border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--log-accent, var(--view-accent)) 7%, rgba(255,255,255,.48));
}

.markdown-body blockquote p {
  margin: 0 0 8px;
}

.markdown-body blockquote p:last-child {
  margin-bottom: 0;
}

.markdown-body hr {
  height: 1px;
  margin: 18px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--log-accent, var(--view-accent)) 28%, rgba(31,38,34,.12)), transparent);
}

.markdown-body code {
  padding: 2px 5px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 6px;
  background: rgba(255,255,255,.52);
  color: color-mix(in srgb, var(--log-accent, var(--view-accent)) 72%, var(--ink));
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .9em;
}

.markdown-body pre {
  max-width: 100%;
  margin: 14px 0;
  padding: 13px 14px;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 12px;
  background: rgba(255,255,255,.5);
}

.markdown-body pre code {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  white-space: pre;
}

.markdown-body a {
  color: color-mix(in srgb, var(--log-accent, var(--view-accent)) 76%, #111412);
  font-weight: 760;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--log-accent, var(--view-accent)) 24%, transparent);
}

.markdown-body a:hover {
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--log-accent, var(--view-accent)) 44%, transparent);
}

.markdown-table-wrap {
  max-width: 100%;
  margin: 14px 0;
  overflow-x: auto;
}

.markdown-body table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 12px;
  background: rgba(255,255,255,.42);
}

.markdown-body th,
.markdown-body td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(31,38,34,.07);
  text-align: left;
  vertical-align: top;
}

.markdown-body th {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  background: color-mix(in srgb, var(--log-accent, var(--view-accent)) 8%, rgba(255,255,255,.56));
}

.markdown-body tr:last-child td {
  border-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .team-timeline-card.has-overflow .timeline-card-body,
  .team-timeline-card.has-overflow .timeline-card-body::after,
  .timeline-card-toggle,
  .timeline-card-collapse,
  .timeline-floating-collapse,
  .timeline-card-toggle i,
  .timeline-card-collapse i,
  .timeline-floating-collapse i {
    transition: none;
  }
}

.team-log-meta strong {
  color: var(--ink);
  font-size: 13px;
}

.team-log-meta em {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--view-accent-soft);
  color: color-mix(in srgb, var(--view-accent) 82%, #111412);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

input,
select {
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.58));
  color: var(--ink);
  outline: none;
  box-shadow:
    0 10px 26px rgba(25, 30, 27, .05),
    inset 0 1px 0 rgba(255,255,255,.68);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

input::placeholder {
  color: color-mix(in srgb, var(--muted) 68%, transparent);
}

select {
  appearance: none;
  padding-right: 38px;
  background:
    linear-gradient(45deg, transparent 50%, color-mix(in srgb, var(--view-accent) 76%, #111412) 50%) calc(100% - 19px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, color-mix(in srgb, var(--view-accent) 76%, #111412) 50%, transparent 50%) calc(100% - 14px) 50% / 6px 6px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.58));
}

input:focus,
select:focus {
  border-color: color-mix(in srgb, var(--view-accent) 32%, rgba(255,255,255,.82));
  box-shadow:
    0 0 0 4px var(--view-accent-soft),
    0 14px 30px rgba(25, 30, 27, .07),
    inset 0 1px 0 rgba(255,255,255,.74);
  transform: translateY(-1px);
}

.resource-layout,
.tool-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.resource-layout {
  grid-template-columns: 164px minmax(0, 1fr);
}

.tool-layout {
  grid-template-columns: 164px minmax(0, 1fr);
}

.category-drawer {
  align-self: start;
  position: sticky;
  top: 20px;
  width: 100%;
  min-width: 0;
  padding: 13px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,255,255,.26)),
    radial-gradient(circle at 0% 0%, var(--view-accent-soft), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.58),
    0 12px 34px rgba(25, 30, 27, .045);
}

.category-tree {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.category-tree button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 9px 0 calc(9px + var(--level, 0) * 13px);
  font-size: 12px;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.category-tree button span {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-tree button[data-has-children="true"] {
  font-weight: 820;
}

.category-tree button[style*="--level:1"],
.category-tree button[style*="--level: 1"] {
  color: var(--muted);
  font-weight: 720;
}

.category-tree button .category-arrow {
  position: relative;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--view-accent-soft);
  transition: transform .2s ease, background .2s ease;
}

.category-tree button .category-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  color: color-mix(in srgb, var(--view-accent) 82%, #111412);
  transform: translate(-62%, -50%) rotate(-45deg);
  transform-origin: center;
}

.category-tree button[data-expanded="true"] .category-arrow {
  background: color-mix(in srgb, var(--view-accent) 16%, rgba(255,255,255,.7));
  transform: rotate(90deg);
}

.category-tree button em {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  color: var(--soft);
  font-size: 11px;
  font-style: normal;
  text-align: center;
}

.category-tree button.active em {
  color: color-mix(in srgb, var(--view-accent) 82%, #111412);
  background: var(--view-accent-wash);
}

.resource-grid,
.tool-grid,
.project-grid {
  display: grid;
  gap: 14px;
}

.skeleton-card {
  position: relative;
  min-height: 214px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.38)),
    radial-gradient(circle at 20% 0%, var(--view-accent-soft), transparent 38%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.skeleton-card::after,
.category-tree b::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.54), transparent);
  transform: translateX(-100%);
  animation: skeletonSweep 1.35s ease-in-out infinite;
}

.skeleton-card i,
.skeleton-card strong,
.skeleton-card p,
.category-tree b {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.68);
}

.skeleton-card i {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.skeleton-card strong {
  width: 54%;
  height: 20px;
  margin-top: 22px;
}

.skeleton-card p {
  width: 84%;
  height: 12px;
  margin: 14px 0 0;
}

.skeleton-card p + p {
  width: 62%;
  margin-top: 9px;
}

.category-tree b {
  position: relative;
  height: 34px;
  background: rgba(255,255,255,.54);
}

@keyframes skeletonSweep {
  to {
    transform: translateX(100%);
  }
}

.resource-grid,
.tool-grid {
  align-content: start;
  align-items: stretch;
  transform-origin: 50% 0;
  transition: opacity .18s ease, transform .18s ease;
  will-change: opacity, transform;
}

.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-grid.is-switching,
.tool-grid.is-switching {
  opacity: .72;
  transform: translateY(4px);
  pointer-events: none;
}

.resource-grid.is-settling,
.tool-grid.is-settling {
  opacity: 1;
  transform: translateY(0);
}

.resource-card,
.tool-card {
  --card-accent: var(--green);
  --card-accent-wash: #e7f3ef;
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-items: start;
  gap: 10px;
  min-height: 232px;
  padding: 19px;
  overflow: hidden;
  cursor: pointer;
  animation: catalogItemIn .24s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(min(var(--item-index, 0), 6) * 12ms);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease, border-color .22s ease;
}

@keyframes catalogItemIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.986);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.resource-card::after,
.tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, color-mix(in srgb, var(--card-accent) 12%, transparent), transparent 34%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.resource-card:hover,
.resource-card:focus-visible,
.tool-card:hover,
.tool-card:focus-visible,
.signal-card:focus-visible,
.project-card:focus-visible,
.project-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.78);
  box-shadow: 0 24px 72px rgba(25, 30, 27, .1);
}

.resource-card:active,
.tool-card:active,
.project-card:active,
.signal-card:active {
  transform: translateY(-1px) scale(.992);
}

.resource-card:hover::after,
.resource-card:focus-visible::after,
.tool-card:hover::after,
.tool-card:focus-visible::after {
  opacity: 1;
}

.resource-card:focus-visible,
.tool-card:focus-visible {
  border-color: color-mix(in srgb, var(--card-accent) 24%, rgba(255,255,255,.76));
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.62)),
    var(--card-accent-wash);
  box-shadow:
    0 26px 76px rgba(25, 30, 27, .11),
    inset 0 0 0 1px color-mix(in srgb, var(--card-accent) 14%, transparent),
    inset 4px 0 0 color-mix(in srgb, var(--card-accent) 72%, transparent),
    0 0 0 7px color-mix(in srgb, var(--card-accent) 7%, transparent);
}

.tool-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 18%, rgba(255,255,255,.72));
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 22%, rgba(255,255,255,.94), transparent 48%),
    linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 18%, rgba(255,255,255,.72)), rgba(255,255,255,.46));
  color: color-mix(in srgb, var(--card-accent) 82%, #111412);
  font-size: 16px;
  font-weight: 850;
  box-shadow: 0 16px 42px rgba(25, 30, 27, .08);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.resource-file {
  display: grid;
  place-items: center;
  width: 56px;
  height: 64px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 18%, rgba(255,255,255,.72));
  border-radius: 17px;
  background:
    linear-gradient(135deg, transparent 0 70%, color-mix(in srgb, var(--card-accent) 18%, transparent) 70%),
    var(--card-accent-wash);
  color: color-mix(in srgb, var(--card-accent) 82%, #111412);
  font-weight: 850;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.resource-card h3,
.tool-card h3,
.project-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
}

.resource-card p,
.tool-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.resource-card .card-kicker,
.tool-card .card-kicker {
  position: relative;
  z-index: 1;
  min-height: 16px;
  color: color-mix(in srgb, var(--card-accent) 82%, #111412);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tool-kicker strong,
.tool-kicker span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-kicker strong {
  flex: 0 1 auto;
  max-width: 52%;
  font-size: 11px;
}

.tool-kicker span {
  flex: 1 1 auto;
  color: var(--soft);
  font-size: 10px;
  font-weight: 760;
}

.tool-kicker span::before {
  content: "/";
  margin-right: 7px;
  color: color-mix(in srgb, var(--card-accent) 34%, var(--soft));
}

.chip-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.chip-row span {
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  color: color-mix(in srgb, var(--card-accent, var(--view-accent)) 58%, var(--muted));
  font-size: 11px;
  font-weight: 720;
}

.catalog-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.76), var(--view-accent-wash), rgba(255,255,255,.76));
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(25, 30, 27, .05);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.catalog-more:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--view-accent) 18%, rgba(255,255,255,.82));
  background:
    linear-gradient(90deg, rgba(255,255,255,.82), var(--view-accent-wash), rgba(255,255,255,.82));
  box-shadow: 0 16px 38px rgba(25, 30, 27, .08);
}

.catalog-more:active {
  transform: translateY(1px) scale(.992);
  box-shadow: 0 8px 22px rgba(25, 30, 27, .06);
}

.catalog-more span {
  color: var(--view-accent);
  font-size: 11px;
  font-weight: 820;
}

.catalog-more strong {
  font-size: 15px;
}

.resource-meta-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.resource-meta-strip span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  background: rgba(255,255,255,.44);
  color: color-mix(in srgb, var(--card-accent) 68%, #111412);
  font-size: 11px;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector-note {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 16px;
  background: rgba(255,255,255,.46);
  color: var(--muted);
  font-size: 13px;
}

.resource-inspector {
  --card-accent: var(--view-accent);
  --card-accent-wash: var(--view-accent-wash);
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 360px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.44)),
    radial-gradient(circle at 72% 18%, color-mix(in srgb, var(--card-accent) 14%, transparent), transparent 32%);
}

.resource-inspector::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 14px;
  z-index: 1;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--card-accent), color-mix(in srgb, var(--card-accent) 8%, transparent));
  opacity: .62;
  pointer-events: none;
}

.resource-inspector > * {
  position: relative;
  z-index: 2;
}

.resource-inspector h3 {
  margin: 14px 0 10px;
  font-size: 26px;
  line-height: 1.12;
}

.resource-inspector p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.inspector-hero {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-top: 22px;
}

.inspector-hero small,
.inspector-hero strong {
  display: block;
}

.inspector-hero small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.inspector-hero strong {
  margin-top: 8px;
  font-size: 14px;
}

.inspector-file {
  display: grid;
  place-items: center;
  width: 76px;
  height: 92px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 22%, rgba(255,255,255,.74));
  border-radius: 20px;
  background:
    linear-gradient(135deg, transparent 0 70%, color-mix(in srgb, var(--card-accent) 22%, transparent) 70%),
    var(--card-accent-wash);
  color: color-mix(in srgb, var(--card-accent) 78%, #111412);
  font-size: 20px;
  font-weight: 850;
  box-shadow: 0 16px 42px color-mix(in srgb, var(--card-accent) 12%, transparent);
}

.access-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 16px;
  background: rgba(255,255,255,.46);
}

.access-status i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(173,138,80,.1);
}

.access-status.is-ready i {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(12,117,109,.1), 0 0 18px rgba(12,117,109,.28);
}

.access-status strong {
  display: block;
  font-size: 13px;
}

.access-status p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
}

.inspector-meta {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,.66);
  border-radius: 18px;
  background: rgba(255,255,255,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.54);
}

.inspector-meta div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.inspector-meta div:first-child {
  border-top: 0;
}

.inspector-meta small {
  color: var(--soft);
  font-size: 12px;
  font-weight: 720;
}

.inspector-meta strong {
  color: var(--ink);
  font-size: 13px;
  text-align: right;
}

.resource-actions {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 22px;
  background:
    radial-gradient(circle at 6% 0%, color-mix(in srgb, var(--card-accent) 18%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.74), rgba(255,255,255,.48));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 16px 42px color-mix(in srgb, var(--card-accent) 10%, transparent),
    0 10px 26px rgba(25, 30, 27, .05);
  overflow: hidden;
}

.resource-actions::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--card-accent), color-mix(in srgb, var(--card-accent) 12%, transparent));
  opacity: .68;
}

.action-context {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 4px 8px;
}

.action-context small {
  color: color-mix(in srgb, var(--card-accent) 82%, #111412);
  font-size: 11px;
  font-weight: 820;
}

.action-context strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
}

.resource-inspector button,
.resource-actions a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 26%, rgba(31,38,34,.1));
  border-radius: 16px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--card-accent) 18%, rgba(255,255,255,.84)), rgba(255,255,255,.7)),
    rgba(255,255,255,.72);
  color: color-mix(in srgb, var(--card-accent) 56%, var(--ink));
  cursor: pointer;
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
  box-shadow:
    0 12px 28px color-mix(in srgb, var(--card-accent) 10%, transparent),
    inset 0 1px 0 rgba(255,255,255,.62);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.resource-actions a {
  border-color: rgba(31, 38, 34, .1);
  background: rgba(255,255,255,.64);
  color: var(--ink);
  box-shadow: none;
}

.resource-actions .primary-action {
  border-color: color-mix(in srgb, var(--card-accent) 30%, rgba(31,38,34,.12));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--card-accent) 22%, rgba(255,255,255,.86)), rgba(255,255,255,.7)),
    rgba(255,255,255,.76);
  color: color-mix(in srgb, var(--card-accent) 60%, var(--ink));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--card-accent) 12%, transparent);
}

.resource-actions .primary-action.is-unavailable {
  border-color: rgba(31,38,34,.1);
  background:
    linear-gradient(180deg, rgba(255,255,255,.68), rgba(255,255,255,.46)),
    rgba(255,255,255,.52);
  color: rgba(31,38,34,.44);
  box-shadow: none;
}

.resource-inspector button:hover,
.resource-actions a:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 38px rgba(25, 30, 27, .15),
    inset 0 1px 0 rgba(255,255,255,.22);
}

.resource-inspector button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
  box-shadow:
    0 10px 24px color-mix(in srgb, var(--card-accent) 8%, transparent),
    inset 0 1px 0 rgba(255,255,255,.58);
}

.resource-inspector button.is-unavailable:disabled {
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
}

.resource-inspector button.is-unavailable:disabled:hover {
  transform: none;
  box-shadow: none;
}

.resource-inspector button.is-error {
  border-color: rgba(180, 35, 24, .18);
  background:
    linear-gradient(180deg, rgba(255,244,241,.86), rgba(255,255,255,.66)),
    rgba(255,255,255,.72);
  color: #9f2f24;
}

.resource-inspector button.is-loading::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 999px;
  background: currentColor;
  animation: syncPulse 1s ease-in-out infinite;
}

.resource-inspector button:active,
.resource-actions a:active {
  transform: translateY(1px) scale(.988);
  box-shadow:
    0 10px 24px rgba(25, 30, 27, .12),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.project-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.project-card {
  overflow: hidden;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.project-spotlight {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(360px, 1fr);
  gap: 22px;
  min-height: 520px;
  padding: clamp(20px, 3.5vw, 38px);
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 24%, color-mix(in srgb, var(--view-accent) 18%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.74), rgba(255,255,255,.36));
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}

.project-spotlight-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-width: 0;
  padding: clamp(12px, 2vw, 20px);
}

.project-spotlight-copy h3 {
  max-width: 560px;
  margin: 12px 0 14px;
  font-size: clamp(50px, 6vw, 82px);
  line-height: .92;
  letter-spacing: 0;
}

.project-spotlight-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(520px, 100%);
  margin-top: 24px;
}

.project-facts span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 16px;
  background: rgba(255,255,255,.5);
  box-shadow: 0 12px 32px rgba(25,30,27,.05);
}

.project-facts small {
  color: var(--soft);
  font-size: 11px;
  font-weight: 760;
}

.project-facts strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-spotlight-copy a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 26px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--view-accent) 36%, var(--ink)), var(--ink));
  color: #fff;
  font-weight: 820;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(25, 30, 27, .13);
  transition: transform .18s ease, box-shadow .18s ease;
}

.project-spotlight-copy a:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(25, 30, 27, .16);
}

.project-spotlight-visual {
  position: relative;
  min-width: 0;
  align-self: stretch;
}

.project-spotlight-visual img,
.project-device {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 26px 80px rgba(25, 30, 27, .13);
}

.project-device {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(31,41,36,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,41,36,.045) 1px, transparent 1px),
    radial-gradient(circle at 62% 26%, color-mix(in srgb, var(--view-accent) 20%, transparent), transparent 28%),
    rgba(255,255,255,.5);
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.device-top {
  position: absolute;
  left: 24px;
  top: 22px;
  display: flex;
  gap: 7px;
}

.device-top span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(31,38,34,.18);
}

.device-hero {
  position: absolute;
  left: 9%;
  top: 20%;
  width: 62%;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 70px rgba(25, 30, 27, .12);
}

.device-hero small,
.device-hero em {
  display: block;
  color: var(--view-accent);
  font-style: normal;
  font-weight: 820;
}

.device-hero strong {
  display: block;
  margin: 14px 0 8px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: .9;
}

.device-metrics {
  position: absolute;
  right: 7%;
  bottom: 11%;
  display: grid;
  gap: 10px;
  width: min(240px, 46%);
}

.device-metrics i {
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 16px;
  background: rgba(255,255,255,.62);
  color: var(--muted);
  font-style: normal;
  font-weight: 760;
  box-shadow: 0 12px 34px rgba(25,30,27,.07);
}

.project-visual {
  padding: 12px 12px 0;
}

.project-card img,
.project-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  background:
    radial-gradient(circle at 68% 22%, rgba(12,117,109,.18), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.76), rgba(223,231,227,.72));
}

.project-preview {
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font-weight: 850;
}

.project-card > div {
  padding: 18px;
}

.project-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.project-showcase-empty {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(320px, 1fr);
  gap: 22px;
  min-height: 430px;
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.34)),
    radial-gradient(circle at 80% 32%, rgba(12,117,109,.12), transparent 30%);
}

.project-showcase-empty h3 {
  max-width: 520px;
  margin: 12px 0 12px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: .98;
  letter-spacing: 0;
}

.project-showcase-empty p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.showcase-device {
  position: relative;
  align-self: center;
  min-height: 300px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 28px;
  background:
    linear-gradient(rgba(31,41,36,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,41,36,.04) 1px, transparent 1px),
    rgba(255,255,255,.5);
  background-size: 28px 28px;
  box-shadow: 0 26px 90px rgba(25,30,27,.12);
  overflow: hidden;
}

.showcase-device::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(12,117,109,.16), transparent 40%),
    rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}

.showcase-device span {
  position: absolute;
  left: 42px;
  top: 46px;
  width: 38%;
  height: 18px;
  border-radius: 999px;
  background: rgba(17,20,18,.12);
}

.showcase-device i {
  position: absolute;
  left: 42px;
  top: 86px;
  width: 58%;
  height: 92px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 22%, rgba(12,117,109,.24), transparent 30%),
    rgba(255,255,255,.7);
  box-shadow: 0 18px 50px rgba(25,30,27,.1);
}

.showcase-device strong {
  position: absolute;
  right: 36px;
  bottom: 34px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--green-dark);
  font-size: 13px;
  box-shadow: 0 14px 34px rgba(25,30,27,.08);
}

.empty {
  grid-column: 1 / -1;
  display: grid;
  align-content: center;
  margin: 0;
  min-height: 180px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.44)),
    radial-gradient(circle at 12% 0%, var(--view-accent-soft), transparent 42%);
  color: var(--muted);
  font-size: 15px;
  box-shadow: var(--shadow-soft);
}

.empty::before {
  content: "";
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--view-accent) 18%, rgba(255,255,255,.78));
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), var(--view-accent-wash));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.empty strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
}

.empty span {
  max-width: 420px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.dialog {
  width: min(460px, calc(100vw - 32px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  background: transparent;
  overscroll-behavior: contain;
}

.dialog::backdrop {
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--view-accent) 14%, transparent), transparent 34%),
    rgba(35, 42, 39, .34);
  backdrop-filter: blur(18px) saturate(1.08);
  animation: dialogBackdropIn .18s ease both;
}

.dialog-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78)),
    radial-gradient(circle at 16% 0%, var(--view-accent-soft), transparent 40%);
  box-shadow:
    0 34px 100px rgba(25, 30, 27, .22),
    inset 0 1px 0 rgba(255,255,255,.74);
  animation: dialogPanelIn .24s cubic-bezier(.2,.8,.2,1) both;
}

.dialog-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--view-accent), color-mix(in srgb, var(--view-accent) 16%, transparent));
  opacity: .7;
  pointer-events: none;
}

.dialog-card.is-error {
  animation: codeNudge .24s cubic-bezier(.3,.7,.4,1);
}

.resource-detail-dialog.is-closing::backdrop {
  animation: dialogBackdropOut .18s ease both;
}

.resource-detail-dialog.is-closing .resource-detail-card {
  animation: dialogPanelOut .18s cubic-bezier(.4,0,.8,.2) both;
}

.resource-detail-dialog .resource-detail-card {
  animation: detailDialogPanelIn .22s cubic-bezier(.2,.8,.2,1) both;
}

.resource-detail-dialog.is-closing .resource-detail-card {
  animation: detailDialogPanelOut .18s cubic-bezier(.4,0,.8,.2) both;
}

@keyframes dialogBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes dialogBackdropOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes dialogPanelIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dialogPanelOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(.975);
  }
}

@keyframes detailDialogPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes detailDialogPanelOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes locationCardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes codeNudge {
  0%, 100% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(-5px);
  }
  70% {
    transform: translateX(5px);
  }
}

.dialog-card h2 {
  margin: 8px 0 10px;
  font-size: 28px;
}

.dialog-card p {
  color: var(--muted);
  line-height: 1.6;
}

.code-location-card {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 16px 0 2px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--view-accent) 24%, rgba(255,255,255,.8));
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.58)),
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--view-accent) 18%, transparent), transparent 48%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 14px 34px rgba(25,30,27,.08);
  animation: locationCardIn .28s .06s cubic-bezier(.2,.8,.2,1) both;
}

.code-location-card::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 4px;
  border-radius: 999px;
  background: var(--view-accent);
  opacity: .72;
}

.code-location-card span {
  color: var(--view-accent);
  font-size: 11px;
  font-weight: 820;
}

.code-location-card strong {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: color-mix(in srgb, var(--view-accent) 82%, #111412);
  font-size: 20px;
  line-height: 1.2;
}

.code-location-card em {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--view-accent) 12%, #ffffff);
  color: color-mix(in srgb, var(--view-accent) 78%, #111412);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.code-location-card p {
  margin: 0;
  color: #5c6862;
  font-size: 13px;
  line-height: 1.55;
}

.code-location-card a {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--view-accent) 16%, rgba(255,255,255,.76));
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: color-mix(in srgb, var(--view-accent) 78%, #111412);
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
}

.code-location-card a:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--view-accent) 28%, rgba(255,255,255,.78));
  background: rgba(255,255,255,.82);
}

#downloadDialog .dialog-card {
  text-align: left;
}

#downloadDialog #downloadCode {
  margin: 18px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.66), rgba(255,255,255,.42)),
    radial-gradient(circle at 0% 0%, var(--view-accent-soft), transparent 44%);
  color: color-mix(in srgb, var(--view-accent) 76%, #111412);
  font-size: 13px;
  font-weight: 760;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.68);
}

.resource-detail-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(800px, calc(100vh - 28px));
  max-height: min(800px, calc(100svh - 28px));
  max-height: min(800px, calc(100dvh - 28px));
  overflow: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.resource-detail-dialog::-webkit-scrollbar {
  display: none;
}

.resource-detail-card {
  display: flex;
  flex-direction: column;
  max-height: min(800px, calc(100vh - 28px));
  max-height: min(800px, calc(100svh - 28px));
  max-height: min(800px, calc(100dvh - 28px));
  overflow: clip;
  border-color: rgba(255,255,255,.58);
  padding: clamp(24px, 4vw, 38px);
  backdrop-filter: blur(34px) saturate(1.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(249,251,249,.74)),
    radial-gradient(circle at 84% 8%, color-mix(in srgb, var(--card-accent) 8%, transparent), transparent 38%),
    radial-gradient(circle at 0% 0%, rgba(255,255,255,.72), transparent 42%);
  box-shadow:
    0 28px 82px rgba(25,30,27,.16),
    0 1px 0 rgba(255,255,255,.7) inset;
}

.resource-detail-card #resourceDetailContent,
.resource-detail-card #toolDetailContent {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(min(800px, calc(100vh - 28px)) - clamp(48px, 8vw, 76px));
  max-height: calc(min(800px, calc(100svh - 28px)) - clamp(48px, 8vw, 76px));
  max-height: calc(min(800px, calc(100dvh - 28px)) - clamp(48px, 8vw, 76px));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.resource-detail-card #resourceDetailContent {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.resource-detail-card #toolDetailContent {
  display: grid;
  gap: 0;
}

.resource-detail-card #resourceDetailContent::-webkit-scrollbar,
.resource-detail-card #toolDetailContent::-webkit-scrollbar {
  display: none;
}

.resource-detail-card .detail-eyebrow {
  color: color-mix(in srgb, var(--card-accent) 78%, #111412);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.resource-detail-card .detail-hero {
  align-items: center;
  margin-top: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(31,38,34,.045);
}

.resource-detail-card .inspector-file {
  width: 84px;
  height: 104px;
  border-radius: 24px;
  box-shadow:
    0 16px 38px color-mix(in srgb, var(--card-accent) 8%, transparent),
    inset 0 1px 0 rgba(255,255,255,.7);
}

.resource-detail-card h3 {
  max-width: 620px;
  margin: 22px 0 12px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: .98;
  letter-spacing: 0;
}

.resource-detail-card .detail-summary {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.resource-detail-card .resource-actions {
  margin-top: 22px;
  margin-bottom: 18px;
  padding: 15px 15px 16px;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.68), rgba(255,255,255,.46));
  box-shadow:
    0 14px 32px rgba(25,30,27,.05),
    inset 0 1px 0 rgba(255,255,255,.66);
}

.resource-detail-card .resource-actions::before {
  content: none;
}

.resource-detail-card .action-context {
  padding: 0 2px 8px;
}

.resource-detail-card .resource-action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.resource-detail-card .resource-actions.has-secondary-action .resource-action-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-detail-card .mobile-download-note {
  display: none;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 12%, rgba(31,38,34,.06));
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.34)),
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--card-accent) 7%, transparent), transparent 46%);
  color: color-mix(in srgb, var(--card-accent) 62%, var(--ink));
  font-size: 13px;
  font-weight: 760;
  line-height: 1.55;
}

.resource-detail-card .resource-actions .primary-action {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 26%, #111412), #111412);
  color: #fff;
  box-shadow:
    0 12px 28px rgba(25,30,27,.12),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.resource-detail-card .resource-actions .secondary-action {
  min-height: 48px;
  border-radius: 999px;
  background: rgba(255,255,255,.54);
}

.resource-detail-card .resource-actions a:not(.primary-action) {
  min-height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.54);
}

.resource-detail-card .resource-actions .primary-action:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 34px rgba(25,30,27,.15),
    inset 0 1px 0 rgba(255,255,255,.22);
}

.resource-detail-card .resource-actions .primary-action.is-unavailable {
  border: 1px solid rgba(31,38,34,.08);
  background: rgba(31,38,34,.08);
  color: rgba(31,38,34,.45);
  box-shadow: none;
}

.resource-detail-card .inspector-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.resource-detail-card .inspector-meta div {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 72px;
  padding: 13px;
  border: 1px solid rgba(31,38,34,.045);
  border-radius: 16px;
  background: rgba(255,255,255,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48);
}

.resource-detail-card .inspector-meta div:first-child {
  border-top: 1px solid rgba(31,38,34,.045);
}

.resource-detail-card .inspector-meta strong {
  text-align: left;
  line-height: 1.35;
}

.resource-detail-card .detail-chip-row {
  margin-top: 16px;
}

.resource-detail-card .detail-chip-row span {
  background: rgba(255,255,255,.64);
}

.dialog-card input {
  width: 100%;
  margin: 16px 0 8px;
  font-size: 24px;
  text-align: center;
  letter-spacing: 5px;
  background: rgba(255,255,255,.78);
  border-color: color-mix(in srgb, var(--view-accent) 18%, rgba(255,255,255,.82));
}

.security-orb {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), var(--view-accent-wash));
  box-shadow:
    0 18px 44px rgba(25,30,27,.08),
    inset 0 1px 0 rgba(255,255,255,.74);
}

.security-orb span {
  width: 24px;
  height: 24px;
  border: 2px solid var(--view-accent);
  border-top-color: transparent;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px var(--view-accent-soft);
}

.code-slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin: 0 0 12px;
}

.code-slots span {
  height: 4px;
  border-radius: 999px;
  background: var(--view-accent-soft);
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.code-slots span.filled {
  background: var(--view-accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--view-accent) 18%, transparent);
  transform: translateY(-1px);
}

.dialog-card.is-error .code-slots span.filled {
  background: #b42318;
  box-shadow: 0 0 14px rgba(180,35,24,.14);
}

.dialog-card button[type="submit"],
.dialog-card .primary-link {
  width: 100%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--view-accent) 36%, var(--ink)), var(--ink));
  box-shadow:
    0 14px 34px rgba(25, 30, 27, .13),
    inset 0 1px 0 rgba(255,255,255,.2);
}

.dialog-card button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: .46;
  transform: none;
  box-shadow:
    0 8px 22px rgba(25, 30, 27, .07),
    inset 0 1px 0 rgba(255,255,255,.14);
}

.close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  color: var(--ink);
  cursor: pointer;
}

.message {
  min-height: 22px;
  margin: 0 0 12px;
  color: #b42318;
}

@media (max-width: 1120px) {
  .launch-stage,
  .team-layout,
  .resource-layout,
  .tool-layout,
  .project-spotlight,
  .project-showcase-empty,
  .process-line {
    grid-template-columns: 1fr;
  }

  .process-line ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .launch-visual {
    min-height: 420px;
  }

  .category-drawer {
    position: static;
    order: -1;
  }

  .resource-inspector {
    position: static;
    order: 3;
  }

  .category-drawer {
    padding: 12px;
    overflow: hidden;
  }

  .category-tree {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    overflow: visible;
    margin: 12px 0 0;
    padding: 0;
  }

.category-tree button {
    flex: 1 1 min(220px, 100%);
    min-width: 0;
    max-width: 100%;
    padding: 0 10px;
  }

  .category-tree button span {
    gap: 5px;
    min-width: 0;
  }

  .showcase-device {
    min-height: 260px;
  }

  .team-comment-cluster {
    grid-template-columns: 1fr;
  }

  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ambient-layer {
    display: none;
  }

  .app-shell {
    display: block;
    padding: 10px;
  }

  .nav-rail {
    position: sticky;
    left: auto;
    right: auto;
    bottom: auto;
    top: 8px;
    z-index: 20;
    width: auto;
    height: auto;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.5)),
      radial-gradient(circle at 12% 0%, var(--view-accent-soft), transparent 42%);
    backdrop-filter: blur(28px) saturate(1.14);
  }

  .primary-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    margin-top: 10px;
  }

  .primary-nav button {
    min-height: 34px;
    padding: 0 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
  }

  .primary-nav button::before {
    display: none;
  }

  .rail-status {
    display: none;
  }

  .nav-preview {
    display: none;
  }

  .command-bar,
  .view-head {
    display: grid;
    width: 100%;
    min-width: 0;
  }

  .command-bar {
    min-height: auto;
    margin-bottom: 10px;
    padding: 14px;
    border-radius: 20px;
  }

  .command-bar h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .command-bar > * {
    min-width: 0;
  }

  .command-meta {
    justify-content: start;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 0 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .command-meta::-webkit-scrollbar {
    display: none;
  }

  .command-meta span {
    flex: 0 0 auto;
  }

  .view-subtitle {
    max-width: none;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .primary-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand {
    min-height: 32px;
    font-size: 14px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .launch-stage {
    min-height: auto;
    padding: 12px;
    border-radius: 22px;
  }

  .launch-copy {
    padding: 16px;
  }

  .launch-copy h2 {
    font-size: 40px;
    white-space: normal;
  }

  .launch-visual {
    min-height: 430px;
  }

  .command-meta span {
    min-height: 30px;
    padding: 0 9px;
    font-size: 11px;
  }

  .command-meta strong {
    font-size: 15px;
  }

  .team-orbit {
    left: 50%;
    top: 24px;
    width: min(252px, calc(100% - 56px));
    transform: translateX(-50%);
  }

  .resource-peek {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
    padding: 16px;
  }

  .tool-peek {
    display: none;
  }

  .project-peek,
  .access-peek {
    display: none;
  }

  .system-core {
    width: 92px;
    height: 92px;
  }

  .system-core span,
  .system-core em {
    display: none;
  }

  .system-core strong {
    margin: 0;
    font-size: 16px;
  }

  .resource-peek strong {
    margin-top: 28px;
    font-size: 20px;
  }

  .resource-peek p {
    font-size: 13px;
  }

  .team-layout {
    --team-map-height: 820px;
    --team-detail-height: 420px;
  }

  .process-line ol {
    grid-template-columns: 1fr;
  }

  .team-node {
    width: 132px;
    min-height: 86px;
    padding: 12px;
    border-radius: 16px;
  }

  .team-node strong {
    font-size: 20px;
  }

  .team-node span,
  .team-node em {
    font-size: 10px;
  }

  .team-node::before {
    width: 24px;
    margin-bottom: 8px;
  }

  .team-node.selected::before,
  .team-node.previewed::before {
    width: 34px;
  }

  .team-node[data-agent-key="user"] {
    left: 18%;
    top: 47%;
  }

  .team-node[data-agent-key="iris"] {
    left: 22%;
    top: 33%;
  }

  .team-node[data-agent-key="max"] {
    left: 50%;
    top: 49%;
  }

  .team-node[data-agent-key="nora"] {
    left: 50%;
    top: 17%;
  }

  .team-node[data-agent-key="kai"] {
    left: 76%;
    top: 32%;
  }

  .team-node[data-agent-key="leo"] {
    left: 76%;
    top: 63%;
  }

  .team-node[data-agent-key="victor"] {
    left: 54%;
    top: 82%;
  }

  .team-node[data-agent-key="memory"] {
    left: 22%;
    top: 67%;
  }

  .team-node.external {
    width: 112px;
    min-height: 72px;
  }

  .team-timeline-day {
    grid-template-columns: 1fr;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
  }

  .team-timeline-date {
    position: static;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    min-height: auto;
    padding: 9px 10px 10px;
  }

  .team-timeline-date time {
    font-size: 22px;
  }

  .team-timeline-list,
  .team-comment-cluster {
    min-width: 0;
    max-width: 100%;
    padding-left: 12px;
  }

  .team-timeline-card::before {
    left: -18px;
  }

  .team-comment-cluster {
    border-left: 0;
  }

  .team-log-card,
  .team-log-empty,
  .team-comment-card,
  .team-comment-empty {
    min-width: 0;
    max-width: 100%;
    border-radius: 18px;
    overflow-wrap: anywhere;
  }

  .team-log-section,
  .team-comment-section,
  .team-log-grid,
  .team-comment-grid {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
  }

  .team-log-filters {
    min-width: 0;
    max-width: 100%;
  }

  .team-log-filters button {
    min-width: 0;
    max-width: 100%;
    padding: 0 10px;
  }

  .team-log-filters button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .team-log-meta,
  .chip-row {
    min-width: 0;
    max-width: 100%;
  }

  .timeline-floating-collapse {
    right: 18px;
    bottom: calc(env(safe-area-inset-bottom) + 86px);
  }

  .team-log-card h3,
  .team-log-empty h3,
  .team-comment-card h3,
  .team-comment-empty h3,
  .markdown-body,
  .chip-row span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .resource-card,
  .tool-card {
    min-height: auto;
    padding: 16px;
  }

  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .resource-card,
  .tool-card {
    grid-template-rows: auto auto auto;
    gap: 6px;
    padding: 10px;
    border-radius: 18px;
  }

  .resource-card .card-topline,
  .tool-card .card-topline {
    min-height: 42px;
  }

  .resource-card h3,
  .tool-card h3 {
    font-size: 16px;
    line-height: 1.15;
  }

  .resource-card p,
  .tool-card p {
    display: -webkit-box;
    min-height: 0;
    max-height: 42px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.45;
  }

  .resource-card .card-kicker,
  .tool-card .card-kicker {
    font-size: 10px;
  }

  .resource-meta-strip {
    gap: 4px;
    margin-top: 3px;
  }

  .resource-meta-strip span {
    min-height: 20px;
    padding: 0 6px;
    font-size: 10px;
  }

  .resource-file {
    width: 42px;
    height: 48px;
    border-radius: 14px;
  }

  .resource-file span {
    font-size: 13px;
  }

  .tool-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 14px;
  }

  .dialog {
    width: min(420px, calc(100vw - 20px));
  }

  .dialog-card {
    padding: 22px;
  }

  .dialog-card h2 {
    font-size: 24px;
  }

  .dialog-card input {
    font-size: 22px;
    letter-spacing: 3px;
  }

  .resource-detail-dialog,
  .resource-detail-card {
    max-height: calc(100vh - 20px - env(safe-area-inset-bottom));
    max-height: calc(100svh - 20px - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 20px - env(safe-area-inset-bottom));
  }

  .resource-detail-card {
    padding: 20px 20px max(20px, env(safe-area-inset-bottom));
  }

  .resource-detail-card #resourceDetailContent,
  .resource-detail-card #toolDetailContent {
    max-height: calc(100vh - 84px - env(safe-area-inset-bottom));
    max-height: calc(100svh - 84px - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 84px - env(safe-area-inset-bottom));
    padding-bottom: max(44px, calc(env(safe-area-inset-bottom) + 28px));
  }

  .resource-detail-card #resourceDetailContent .resource-action-row {
    display: none;
  }

  .resource-detail-card #resourceDetailContent .resource-actions,
  .resource-detail-card #toolDetailContent .resource-actions {
    display: block;
    margin-top: 18px;
    margin-bottom: 16px;
    padding: 16px;
    min-height: 0;
    overflow: visible;
  }

  .resource-detail-card #resourceDetailContent .action-context,
  .resource-detail-card #toolDetailContent .action-context {
    display: block;
    padding: 0 0 10px 2px;
  }

  .resource-detail-card #resourceDetailContent .action-context strong,
  .resource-detail-card #toolDetailContent .action-context strong {
    display: none;
  }

  .resource-detail-card #resourceDetailContent .mobile-download-note {
    display: block;
    padding: 0 0 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 1.6;
  }

  .resource-detail-card h3 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .resource-detail-card .detail-summary {
    font-size: 14px;
    line-height: 1.65;
  }

  .resource-detail-card .inspector-file {
    width: 64px;
    height: 80px;
    border-radius: 20px;
    font-size: 17px;
  }

  .resource-detail-card .inspector-meta {
    grid-template-columns: 1fr;
  }

  .project-showcase-empty {
    min-height: auto;
  }

  .project-spotlight {
    min-height: auto;
    padding: 16px;
    border-radius: 24px;
  }

  .project-spotlight-copy {
    padding: 10px;
  }

  .project-spotlight-copy h3 {
    font-size: 44px;
  }

  .project-facts {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .project-spotlight-visual img,
  .project-device {
    min-height: 380px;
  }

  .device-hero {
    left: 7%;
    top: 18%;
    width: 76%;
    padding: 18px;
  }

  .device-hero strong {
    font-size: 42px;
  }

  .device-metrics {
    left: 24%;
    right: auto;
    bottom: 7%;
    width: 68%;
  }

  .project-showcase-empty h3 {
    font-size: 38px;
  }

  .inspector-meta div {
    display: grid;
  }

  .inspector-meta strong {
    text-align: left;
  }

}
