﻿@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap");

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "MiSans";
  src: url("/assets/fonts/MiSans-Light.ttf") format("truetype");
  font-display: swap;
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "MiSans";
  src: url("/assets/fonts/MiSans-Regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "MiSans";
  src: url("/assets/fonts/MiSans-Medium.ttf") format("truetype");
  font-display: swap;
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("/assets/fonts/AlibabaPuHuiTi-2-55-Regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
}

body {
  margin: 0;
  background: #f5f5f5;
  color: #0b0b0f;
  font-family: "Inter", "MiSans", "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
}

.site-content {
  min-height: calc(100vh - 126px);
}

.site-shell-enter-active,
.site-shell-leave-active {
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.site-shell-enter-from {
  opacity: 0;
  transform: translateY(14px);
}

.site-shell-leave-to {
  opacity: 0;
  transform: translateY(-8px);
}

.page-view-enter-active,
.page-view-leave-active {
  transition: opacity 0.22s ease;
}

.page-view-enter-from,
.page-view-leave-to {
  opacity: 0;
}

:is(.project-browser, .about-page, .contact-page, .project-detail) :is(
  .filter-button,
  .project-empty,
  .identity h1,
  .identity p,
  .identity span,
  .about-section,
  .contact-list p,
  .project-kicker,
  .project-copy h1,
  .project-copy p,
  .download-link,
  .code-panel__header,
  .code-mobile-note,
  .embed-panel h2,
  .embed-note,
  .project-detail--empty h1,
  .project-detail--empty .text-link
) {
  animation: text-rise-up 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--reveal-delay, 70ms);
  transform-origin: 50% 100%;
  will-change: opacity, transform, clip-path;
}

.filter-button:nth-child(1),
.identity h1,
.project-kicker,
.project-detail--empty h1 {
  --reveal-delay: 70ms;
}

.filter-button:nth-child(2),
.identity p,
.project-copy h1,
.project-detail--empty .text-link {
  --reveal-delay: 120ms;
}

.filter-button:nth-child(3),
.identity span,
.project-copy p {
  --reveal-delay: 170ms;
}

.filter-button:nth-child(4),
.about-section:nth-child(1),
.contact-list p:nth-child(1),
.download-link:nth-child(1),
.embed-panel:nth-child(1) h2 {
  --reveal-delay: 220ms;
}

.filter-button:nth-child(5),
.about-section:nth-child(2),
.contact-list p:nth-child(2),
.download-link:nth-child(2),
.embed-panel:nth-child(2) h2 {
  --reveal-delay: 270ms;
}

.filter-button:nth-child(6),
.about-section:nth-child(3),
.contact-list p:nth-child(3),
.download-link:nth-child(3),
.embed-panel:nth-child(3) h2 {
  --reveal-delay: 320ms;
}

.filter-button:nth-child(7),
.about-section:nth-child(n + 4),
.contact-list p:nth-child(n + 4),
.download-link:nth-child(n + 4),
.embed-panel:nth-child(n + 4) h2 {
  --reveal-delay: 370ms;
}

@keyframes text-rise-up {
  from {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    transform: translateY(42px);
  }

  18% {
    opacity: 1;
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

.language-home {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.home-logo {
  position: absolute;
  left: 50%;
  top: 4vh;
  z-index: 2;
  width: min(30vw, 360px);
  transform: translateX(-50%);
  mix-blend-mode: difference;
}

.language-panels {
  display: flex;
  min-height: 100vh;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: clamp(18px, 2vw, 24px);
}

.language-panel {
  display: flex;
  flex: 1 1 50%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 32px;
  text-decoration: none;
  transition: flex-basis 0.8s ease, color 0.45s ease;
}

.language-panel:hover {
  flex-basis: 72%;
}

.language-panel--dark {
  background: #111;
  color: #fff;
}

.language-panel--light {
  background: #f5f5f5;
  color: #111;
}

.language-label {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.language-panel:hover .language-label {
  text-decoration: underline;
}

.language-line {
  width: min(520px, 80%);
  margin-top: 18px;
  color: transparent;
  text-align: center;
  transition: color 0.45s ease;
}

.language-panel--dark:hover .language-line {
  color: rgba(255, 255, 255, 0.92);
}

.language-panel--light:hover .language-line {
  color: #171717;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 148px 1fr;
  align-items: start;
  min-height: 126px;
  padding: 26px clamp(20px, 5vw, 64px) 18px;
  background: rgba(245, 245, 245, 0.92);
  backdrop-filter: blur(18px);
}

.site-header--compact {
  grid-template-columns: 148px 1fr auto;
  min-height: 96px;
}

.phone-logo {
  display: none;
  width: 44px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 36px;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-mark span {
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.logo-mark:hover span {
  border-bottom-color: currentColor;
}

.top-nav {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 28px;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 16px;
}

.nav-link,
.text-link {
  text-decoration: none;
  text-underline-offset: 4px;
}

.nav-link:hover,
.nav-link.active,
.text-link:hover {
  text-decoration: underline;
}

.nav-group {
  display: grid;
  gap: 8px;
  text-align: center;
}

.sub-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 14px;
}

.return-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  min-width: 92px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(11, 11, 15, 0.55);
  background: rgba(245, 245, 245, 0.78);
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.return-button:hover {
  border-color: #0b0b0f;
  background: #0b0b0f;
  color: #fff;
}

.return-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.project-browser {
  width: min(1380px, calc(100% - 40px));
  margin: 26px auto 80px;
}

.project-filterbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin: 0 0 22px;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
}

.project-filterbar__indicator {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: var(--filter-indicator-width, 0);
  height: var(--filter-indicator-height, 0);
  background: #0b0b0f;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--filter-indicator-x, 0), var(--filter-indicator-y, 0), 0);
  transition:
    transform 0.46s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.18s ease;
}

.project-filterbar--ready .project-filterbar__indicator {
  opacity: 1;
}

.filter-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(11, 11, 15, 0.34);
  background: transparent;
  color: rgba(11, 11, 15, 0.72);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.filter-button:hover {
  border-color: #0b0b0f;
  color: #0b0b0f;
}

.filter-button.active {
  border-color: transparent;
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 3vw, 36px);
}

.project-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e8e8e8;
}

.project-card__link {
  display: block;
  width: 100%;
  height: 100%;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0);
  transition: filter 0.35s ease, transform 0.35s ease;
}

.project-card__title {
  position: absolute;
  inset: auto 0 0;
  padding: 18px;
  background: rgba(11, 11, 15, 0.78);
  color: #fff;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-card:hover .project-card__image {
  filter: saturate(1);
  transform: scale(1.02);
}

.project-card:hover .project-card__title {
  opacity: 1;
  transform: translateY(0);
}

.project-card--closed .project-card__image {
  filter: blur(12px) saturate(0.8) contrast(1.1);
  opacity: 0.7;
  transform: scale(1.04);
}

.project-card--closed:hover .project-card__image {
  filter: blur(12px) saturate(0.8) contrast(1.1);
  transform: scale(1.04);
}

.project-card--closed .project-card__link {
  cursor: default;
}

.project-empty {
  margin: 72px 0 0;
  color: rgba(11, 11, 15, 0.54);
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 14px;
}

.about-page {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(360px, 1fr);
  gap: clamp(42px, 8vw, 112px);
  align-items: start;
  width: min(1040px, calc(100% - 56px));
  margin: 38px auto 90px;
}

.about-left,
.about-right {
  display: grid;
  gap: 22px;
  align-content: start;
}

.portrait {
  width: min(240px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.identity h1 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 0.95;
  font-weight: 600;
}

.identity p,
.identity span {
  display: block;
  margin: 10px 0 0;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  line-height: 1.45;
}

.about-section h2 {
  margin: 0 0 14px;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: clamp(21px, 2.5vw, 30px);
  font-weight: 500;
}

.about-section {
  padding-top: 22px;
  border-top: 1px solid rgba(11, 11, 15, 0.16);
}

.about-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.about-section p {
  margin: 0;
  white-space: pre-line;
  max-width: 560px;
  line-height: 1.72;
}

.contact-page {
  position: relative;
  display: grid;
  place-items: center;
  width: min(1040px, calc(100% - 40px));
  min-height: calc(100vh - 126px);
  margin: 0 auto 70px;
  padding: clamp(24px, 4vw, 54px) 0 clamp(128px, 13vh, 176px);
  isolation: isolate;
}

.contact-portrait {
  --spotlight-x: 50%;
  --spotlight-y: 50%;
  position: relative;
  z-index: 0;
  width: min(760px, 74vw);
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1476 / 1236;
  border: 1px solid rgba(11, 11, 15, 0.12);
  background: #d9d8d3;
}

.contact-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(
      circle 180px at var(--spotlight-x) var(--spotlight-y),
      rgba(255, 255, 255, 0.28),
      rgba(255, 255, 255, 0.12) 34%,
      transparent 66%
    );
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.contact-portrait--active::after {
  opacity: 1;
}

.contact-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.contact-image--dim {
  z-index: 0;
  filter: brightness(0.34) grayscale(0.08) contrast(1.08);
}

.contact-image--lit {
  z-index: 1;
  opacity: 0;
  filter: brightness(1.08) contrast(1.04);
  -webkit-mask-image:
    radial-gradient(
      circle 168px at var(--spotlight-x) var(--spotlight-y),
      #000 0%,
      rgba(0, 0, 0, 0.96) 34%,
      rgba(0, 0, 0, 0.46) 58%,
      transparent 74%
    );
  mask-image:
    radial-gradient(
      circle 168px at var(--spotlight-x) var(--spotlight-y),
      #000 0%,
      rgba(0, 0, 0, 0.96) 34%,
      rgba(0, 0, 0, 0.46) 58%,
      transparent 74%
    );
  transition: opacity 0.22s ease;
}

.contact-portrait--active .contact-image--lit {
  opacity: 1;
}

.contact-list {
  position: absolute;
  z-index: 1;
  right: clamp(0px, 5vw, 94px);
  bottom: clamp(42px, 8vw, 112px);
  display: grid;
  gap: 16px;
  min-width: 280px;
  padding: 24px 28px;
  background: rgba(245, 245, 245, 0.88);
  backdrop-filter: blur(12px);
}

.contact-list p {
  margin: 0;
}

.contact-list strong {
  margin-right: 12px;
  font-weight: 650;
}

@media (max-height: 760px) and (min-width: 781px) {
  .contact-page {
    padding-top: 18px;
    padding-bottom: 96px;
  }

  .contact-portrait {
    width: min(580px, 64vw);
  }

  .contact-list {
    bottom: 28px;
  }
}

.project-detail {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 90px;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.project-hero img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: #ececec;
}

.project-kicker {
  margin: 0 0 14px;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  text-transform: uppercase;
}

.project-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
}

.title-separator {
  display: inline-block;
  margin: 0 0.18em;
  color: rgba(11, 11, 15, 0.44);
  font-weight: 300;
}

.project-copy p {
  line-height: 1.8;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.download-link {
  padding: 10px 14px;
  border: 1px solid #0b0b0f;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  text-decoration: none;
}

.download-link:hover {
  background: #0b0b0f;
  color: #fff;
}

.output-gallery {
  display: grid;
  gap: 28px;
  margin-top: 56px;
}

.output-gallery__item {
  display: grid;
  place-items: center;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #ececec;
}

.output-gallery__image {
  width: 100%;
  max-height: 1200px;
  object-fit: contain;
  background: #ececec;
  transition: filter 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.output-gallery__button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  overflow: hidden;
}

.output-gallery__item--zoomable .output-gallery__image {
  background: transparent;
}

.output-gallery__item--zoomable:hover .output-gallery__image,
.output-gallery__button:focus-visible .output-gallery__image {
  filter: contrast(1.04);
  transform: scale(1.035);
}

.output-gallery__button:focus-visible {
  outline: 1px solid #0b0b0f;
  outline-offset: -6px;
}

.project-detail:not(.project-detail--takeaway-logo) .output-gallery__item {
  min-height: min(72vh, 860px);
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid rgba(11, 11, 15, 0.12);
  background: #f1f1f1;
}

.project-detail:not(.project-detail--takeaway-logo) .output-gallery__button {
  height: min(72vh, 860px);
}

.project-detail:not(.project-detail--takeaway-logo) .output-gallery__image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  background: transparent;
}

.task-map-demo {
  margin-top: 70px;
  border-top: 1px solid rgba(11, 11, 15, 0.18);
  padding-top: 44px;
}

.task-map-demo:focus {
  outline: 0;
}

.task-map-demo__intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(300px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  margin-bottom: 28px;
}

.task-map-demo__kicker {
  grid-column: 1 / -1;
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  text-transform: uppercase;
}

.task-map-demo__intro h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
  font-weight: 600;
}

.task-map-demo__intro p:not(.task-map-demo__kicker) {
  margin: 0;
  color: rgba(11, 11, 15, 0.68);
  line-height: 1.78;
}

.task-map-demo__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.task-map-demo button,
.task-map-demo input,
.task-map-demo select,
.task-map-demo textarea {
  border-radius: 0;
  font: inherit;
}

.task-map-demo button {
  border: 1px solid rgba(11, 11, 15, 0.42);
  background: #f5f5f5;
  color: #0b0b0f;
  cursor: pointer;
}

.task-map-demo button:hover {
  border-color: #0b0b0f;
  background: #0b0b0f;
  color: #fff;
}

.ai-workflow-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
  border: 1px solid rgba(11, 11, 15, 0.16);
  background: #fff;
}

.ai-service-status {
  display: inline-flex;
  width: fit-content;
  margin: 14px 0 0;
  padding: 7px 10px;
  border: 1px solid rgba(11, 11, 15, 0.2);
  background: #fff;
  color: rgba(11, 11, 15, 0.72);
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 12px;
}

.ai-service-status.online {
  border-color: rgba(49, 93, 71, 0.42);
  color: #315d47;
}

.ai-service-status.keyless {
  border-color: rgba(139, 113, 47, 0.42);
  color: #765f23;
}

.ai-local-config {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(220px, 1fr) 120px 120px auto;
  gap: 8px;
  align-items: end;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(11, 11, 15, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.ai-local-config label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ai-local-config span,
.ai-local-config small {
  color: rgba(11, 11, 15, 0.58);
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 11px;
}

.ai-local-config input,
.ai-local-config select {
  min-width: 0;
  height: 34px;
  border: 1px solid rgba(11, 11, 15, 0.18);
  background: #fff;
  color: #0b0b0f;
  font: inherit;
  font-size: 12px;
}

.ai-local-config button {
  height: 34px;
  border: 1px solid #0b0b0f;
  background: #0b0b0f;
  color: #fff;
  font-size: 12px;
}

.ai-local-config small {
  grid-column: 1 / -1;
  min-height: 14px;
}

@media (max-width: 980px) {
  .ai-local-config {
    grid-template-columns: 1fr 1fr;
  }

  .ai-local-config button {
    width: fit-content;
  }
}

.ai-workflow-tabs a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 12px 14px;
  border-right: 1px solid rgba(11, 11, 15, 0.16);
  color: #0b0b0f;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 13px;
  text-decoration: none;
}

.ai-workflow-tabs a:last-child {
  border-right: 0;
}

.ai-workflow-tabs span {
  color: rgba(11, 11, 15, 0.62);
}

.ai-workflow-flow {
  display: grid;
  gap: 24px;
}

.ai-workflow-step {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  min-height: 720px;
  border: 1px solid rgba(11, 11, 15, 0.16);
  background: #fff;
}

.ai-workflow-step--fusion {
  grid-template-rows: 1fr auto;
}

#sticker-bg {
  min-height: 0;
}

.ai-workflow-column {
  min-width: 0;
  padding: 22px;
}

.ai-workflow-column--input {
  border-right: 1px solid rgba(11, 11, 15, 0.16);
}

.ai-workflow-upload {
  position: relative;
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 150px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px dashed rgba(11, 11, 15, 0.28);
  background: #fff;
  text-align: center;
  cursor: pointer;
}

.ai-workflow-upload.ready {
  border-style: solid;
  border-color: rgba(31, 104, 78, 0.52);
  background: #f7fbf8;
}

.ai-workflow-upload.active,
.ai-workflow-upload:focus-visible {
  border-style: solid;
  border-color: #0b0b0f;
  box-shadow: inset 0 0 0 1px #0b0b0f;
  outline: 0;
}

.ai-workflow-upload--short {
  min-height: 126px;
}

.ai-workflow-upload--tall {
  min-height: 520px;
}

.ai-workflow-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ai-workflow-upload strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border: 1px solid #0b0b0f;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 22px;
  font-weight: 400;
}

.ai-workflow-upload > img {
  width: min(180px, 100%);
  max-height: 92px;
  border: 1px solid rgba(11, 11, 15, 0.16);
  object-fit: contain;
  background:
    linear-gradient(45deg, rgba(11, 11, 15, 0.045) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(11, 11, 15, 0.045) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(11, 11, 15, 0.045) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(11, 11, 15, 0.045) 75%),
    #fff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.ai-workflow-upload--tall > img {
  width: min(360px, 100%);
  max-height: 320px;
}

.ai-workflow-upload span,
.ai-workflow-upload small {
  display: block;
}

.ai-workflow-upload em {
  display: block;
  color: #1f684e;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.ai-workflow-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.ai-workflow-field span {
  color: rgba(11, 11, 15, 0.66);
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.ai-workflow-field textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(11, 11, 15, 0.18);
  background: #fff;
  color: #0b0b0f;
  padding: 10px;
  line-height: 1.55;
}

.ai-workflow-upload small,
.ai-workflow-assets small,
.ai-status-line {
  margin-top: 6px;
  color: rgba(11, 11, 15, 0.68);
  font-size: 12px;
  line-height: 1.58;
}

.ai-workflow-toolrow,
.ai-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-workflow-toolrow {
  margin-bottom: 18px;
}

.ai-workflow-toolrow button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(11, 11, 15, 0.42);
  background: #fff;
  color: #0b0b0f;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 12px;
  cursor: pointer;
}

.ai-workflow-toolrow button:hover,
.ai-workflow-toolrow button.active {
  background: #0b0b0f;
  color: #fff;
}

.ai-workflow-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid #0b0b0f;
  background: transparent;
  color: #0b0b0f;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.ai-workflow-button:hover {
  background: #0b0b0f;
  color: #fff;
}

.ai-sticker-board,
.ai-transparent-export {
  min-height: 560px;
  border: 0;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, rgba(11, 11, 15, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(11, 11, 15, 0.035) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(11, 11, 15, 0.035) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(11, 11, 15, 0.035) 75%);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

.ai-sticker-board {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  width: min(100%, 240px);
  min-height: 0;
  margin: 0 auto;
  overflow: visible;
  padding: 12px;
}

.ai-sticker-board > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

.ai-sticker-piece {
  position: relative;
  display: grid;
  align-items: start;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(11, 11, 15, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.ai-sticker-piece img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ai-sticker-piece span {
  position: relative;
  z-index: 1;
  justify-self: start;
  margin: 8px;
  padding: 3px 6px;
  background: rgba(11, 11, 15, 0.62);
  font-size: 11px;
}

.ai-download-original {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(11, 11, 15, 0.68);
  color: #fff;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 10px;
  cursor: pointer;
}

.ai-download-original:hover {
  background: #0b0b0f;
}

.ai-generation-loader {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 42px;
  padding: 28px;
  border: 1px solid rgba(11, 11, 15, 0.18);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(245, 245, 240, 0.88)),
    rgba(255, 255, 255, 0.9);
  color: #0b0b0f;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  text-align: center;
  pointer-events: none;
}

.ai-generation-loader .figma-loader__rule {
  position: relative;
  top: auto;
  left: auto;
  width: min(220px, 52%);
  transform: none;
}

.ai-generation-loader small {
  max-width: 420px;
  color: rgba(11, 11, 15, 0.62);
  font-family: "MiSans", "Alibaba PuHuiTi", sans-serif;
  font-size: 12px;
  line-height: 1.6;
}

.ai-sticker-piece--top {
  max-width: 100%;
}

.ai-sticker-piece--side {
  width: min(46%, 110px);
}

.ai-sticker-piece--bottom {
  max-width: 100%;
}

.ai-text-preview {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 170px;
  padding: 20px 20px 58px;
  background: #101114;
  color: #fff;
  font-weight: 700;
}

.ai-text-output-stack {
  position: relative;
  min-height: 660px;
}

.ai-text-preview img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.ai-transparent-export {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 360px;
  margin-top: 120px;
  border: 1px solid rgba(11, 11, 15, 0.42);
}

.ai-transparent-export .ai-workflow-button {
  margin-top: 0;
  border-width: 0 0 1px;
  background: rgba(255, 255, 255, 0.86);
}

.ai-transparent-export span {
  padding: 0 20px;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 13px;
}

.ai-transparent-export img {
  width: calc(100% - 40px);
  max-height: 220px;
  margin: 4px 20px 20px;
  object-fit: contain;
}

.ai-text-audit {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(139, 113, 47, 0.34);
  background: #fffaf0;
  color: #0b0b0f;
}

.ai-text-audit.checked {
  border-color: rgba(49, 93, 71, 0.38);
  background: #f4faf6;
}

.ai-text-audit > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.ai-text-audit > div span,
.ai-text-audit dt {
  color: rgba(11, 11, 15, 0.62);
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.ai-text-audit > div strong {
  padding: 4px 8px;
  border: 1px solid currentColor;
  color: #765f23;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 11px;
  font-weight: 500;
}

.ai-text-audit.checked > div strong {
  color: #315d47;
}

.ai-text-audit p {
  margin: 0;
  color: rgba(11, 11, 15, 0.72);
  font-size: 13px;
  line-height: 1.58;
}

.ai-text-audit dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.ai-text-audit dd {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(11, 11, 15, 0.14);
  background: #fff;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-text-audit label {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.ai-text-audit input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: #315d47;
}

.ai-text-audit input:disabled + span {
  color: rgba(11, 11, 15, 0.44);
}

.ai-workflow-heading-inline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.ai-composition-board {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: min(100%, 420px);
  aspect-ratio: 9 / 16;
  min-height: 0;
  margin: 0 auto;
  overflow: visible;
  border: 1px solid rgba(11, 11, 15, 0.42);
  background:
    linear-gradient(90deg, rgba(11, 11, 15, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(11, 11, 15, 0.05) 1px, transparent 1px),
    #c7c7c7;
  background-size: 42px 42px;
}

.ai-reference-style-toggle {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 12px 0 4px;
  padding: 12px;
  border: 1px solid rgba(11, 11, 15, 0.14);
  background: #fff;
  cursor: pointer;
}

.ai-reference-style-toggle.active {
  border-color: rgba(49, 93, 71, 0.46);
  background: rgba(49, 93, 71, 0.06);
}

.ai-reference-style-toggle input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: #315d47;
}

.ai-reference-style-toggle input:disabled + span {
  color: rgba(11, 11, 15, 0.42);
}

.ai-reference-style-toggle span {
  display: grid;
  gap: 4px;
}

.ai-reference-style-toggle strong {
  font-size: 12px;
  font-weight: 680;
}

.ai-reference-style-toggle small {
  color: rgba(11, 11, 15, 0.56);
  font-size: 11px;
  line-height: 1.45;
}

.ai-composition-base {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.ai-composition-center {
  position: absolute;
  inset: 28% 10%;
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(11, 11, 15, 0.46);
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}

.ai-composition-base + .ai-composition-center {
  display: none;
}

.ai-mobile-safe-lines {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.ai-mobile-safe-lines span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(11, 11, 15, 0.28);
}

.ai-sticker-composite {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.ai-sticker-layer {
  transition: opacity 0.16s ease;
}

.ai-sticker-composite.is-peeking-top .ai-sticker-layer--top,
.ai-sticker-composite.is-peeking-bottom .ai-sticker-layer--bottom {
  opacity: 0.64;
}

.ai-sticker-fill {
  fill: #101114;
}

.ai-sticker-fill--side {
  opacity: 0.95;
}

.ai-sticker-label {
  fill: rgba(255, 255, 255, 0.92);
  font-family: "MiSans", "Alibaba PuHuiTi", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.ai-draggable-text-layer {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 2.2% 3%;
  border: 1px dashed rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: default;
  user-select: none;
  touch-action: none;
}

.ai-draggable-text-layer:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.ai-composition-board.is-side-mode .ai-draggable-text-layer {
  pointer-events: none;
}

.ai-text-layer-content {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
  text-align: center;
  white-space: pre-line;
}

.ai-text-layer-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.ai-text-layer-hint {
  position: absolute;
  right: 8px;
  bottom: 6px;
  padding: 3px 6px;
  background: rgba(11, 11, 15, 0.62);
  color: rgba(255, 255, 255, 0.86);
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 10px;
  line-height: 1.2;
  pointer-events: none;
}

.ai-text-resize-handle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1px solid #fff;
  background: #0b0b0f;
  cursor: nwse-resize;
}

.ai-side-sticker-layer {
  position: absolute;
  z-index: 6;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.76);
  background: rgba(11, 11, 15, 0.08);
  color: #fff;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.ai-side-sticker-layer:active {
  cursor: grabbing;
}

.ai-side-sticker-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.ai-side-sticker-layer span {
  padding: 8px;
  background: rgba(11, 11, 15, 0.62);
  font-size: 12px;
}

.ai-composition-board canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.ai-composition-board:not(.is-fade-mode) canvas {
  pointer-events: none;
}

.ai-export-panel {
  position: relative;
  grid-column: 1 / -1;
  padding: 22px;
  border-top: 1px solid rgba(11, 11, 15, 0.16);
}

.ai-workflow-assets {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.ai-workflow-assets--grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ai-workflow-assets label {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 8px 10px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(11, 11, 15, 0.14);
  background: #fff;
}

.ai-workflow-assets input {
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
  accent-color: #0b0b0f;
}

.ai-workflow-assets label.ready {
  border-color: rgba(11, 11, 15, 0.34);
}

.ai-workflow-assets strong,
.ai-workflow-assets small {
  grid-column: 2;
}

.ai-export-actions .ai-workflow-button:first-child {
  flex: 1 1 280px;
}

.ai-generation-loader--panel {
  inset: 22px;
}

.ai-status-line {
  margin: 14px 0 0;
}

.task-map-demo__actions button {
  min-height: 38px;
  padding: 9px 12px;
}

.task-map-demo__actions span {
  color: rgba(11, 11, 15, 0.6);
}

.task-map-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 720px;
  border: 1px solid rgba(11, 11, 15, 0.24);
  background: #f7f7f4;
}

.task-map-shell--diagram {
  min-height: 0;
}

.task-map-panel {
  min-width: 0;
  padding: 22px;
}

.task-map-panel + .task-map-panel {
  border-top: 1px solid rgba(11, 11, 15, 0.16);
}

.task-map-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.task-map-panel__header span {
  display: block;
  margin-bottom: 7px;
  color: rgba(11, 11, 15, 0.46);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.task-map-panel__header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 550;
}

.task-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.task-map-toolbar button {
  min-height: 32px;
  padding: 7px 9px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.task-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(11, 11, 15, 0.62);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.task-progress em {
  color: rgba(11, 11, 15, 0.48);
  font-style: normal;
  line-height: 1.5;
}

.task-progress div {
  height: 7px;
  background: rgba(11, 11, 15, 0.12);
}

.task-progress i {
  display: block;
  height: 100%;
  background: #0b0b0f;
}

.task-ai-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(11, 11, 15, 0.18);
  background: #0b0b0f;
  color: #f5f5f5;
}

.task-ai-panel--wide {
  grid-template-columns: minmax(220px, 0.6fr) minmax(280px, 1fr) auto;
  align-items: start;
  margin-bottom: 18px;
}

.task-ai-panel span {
  display: block;
  margin-bottom: 6px;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.task-ai-panel p {
  margin: 0;
  color: rgba(245, 245, 245, 0.64);
  font-size: 12px;
  line-height: 1.55;
}

.task-ai-panel textarea {
  width: 100%;
  min-height: 64px;
  padding: 10px;
  border: 1px solid rgba(245, 245, 245, 0.22);
  background: #18191c;
  color: #f5f5f5;
  line-height: 1.55;
  resize: vertical;
}

.task-ai-panel button {
  width: fit-content;
  min-height: 34px;
  padding: 8px 11px;
  border-color: rgba(245, 245, 245, 0.36);
  background: transparent;
  color: #f5f5f5;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 12px;
}

.task-ai-panel button:hover {
  background: #f5f5f5;
  color: #0b0b0f;
}

.task-ai-panel__message {
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
}

.task-ai-panel--wide .task-ai-panel__message {
  grid-column: 2 / -1;
}

.task-ai-panel__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
  min-width: 180px;
}

.task-ai-panel__controls span {
  width: 100%;
  margin: 4px 0 0;
  color: rgba(245, 245, 245, 0.58);
  text-align: right;
  text-transform: none;
}

.task-outline {
  display: grid;
  gap: 7px;
}

.task-node {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) minmax(74px, auto);
  gap: 10px;
  align-items: start;
  margin-left: calc(var(--depth) * 24px);
  padding: 12px;
  border: 1px solid rgba(11, 11, 15, 0.14);
  background: #fff;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.task-node:hover,
.task-node.active {
  border-color: #0b0b0f;
}

.task-node.active {
  background: #f0f0ed;
}

.task-node.hover-related:not(.active) {
  background: #fafafa;
}

.task-node.conflict {
  border-color: #c7472f;
}

.task-node.done {
  color: rgba(11, 11, 15, 0.48);
}

.task-node.done input {
  text-decoration: line-through;
}

.task-complete {
  width: 24px;
  height: 24px;
  padding: 0;
  background: #fff;
  font-family: "JetBrains Mono", monospace;
  line-height: 1;
}

.task-node.done .task-complete {
  background: #0b0b0f;
  color: #fff;
}

.task-node__side {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.task-node__actions {
  display: grid;
  grid-template-columns: repeat(4, 24px);
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.task-node:hover .task-node__actions,
.task-node.active .task-node__actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.task-node__actions button {
  width: 24px;
  height: 24px;
  padding: 0;
  border-color: rgba(11, 11, 15, 0.28);
  background: transparent;
  color: #0b0b0f;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 11px;
  line-height: 1;
}

.task-node__actions button:disabled {
  border-color: rgba(11, 11, 15, 0.12);
  color: rgba(11, 11, 15, 0.24);
  cursor: not-allowed;
}

.task-node__actions button:disabled:hover {
  background: transparent;
  color: rgba(11, 11, 15, 0.24);
}

.task-node__main input,
.task-inspector input,
.task-inspector select,
.task-inspector textarea {
  width: 100%;
  border: 1px solid rgba(11, 11, 15, 0.18);
  background: #fff;
  color: #0b0b0f;
}

.task-node__main input {
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 550;
}

.task-node__main input:focus {
  outline: 0;
}

.task-node__main p {
  margin: 6px 0 0;
  color: rgba(11, 11, 15, 0.58);
  font-size: 12px;
  line-height: 1.5;
}

.task-node__mode {
  align-self: center;
  padding-top: 2px;
  color: rgba(11, 11, 15, 0.46);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  white-space: nowrap;
}

.task-inspector {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(11, 11, 15, 0.14);
  background: #fff;
}

.task-map-panel--gantt {
  position: relative;
}

.task-detail-popover {
  position: absolute;
  z-index: 4;
  width: min(360px, calc(100% - 36px));
  margin: 0;
  box-shadow: 0 18px 42px rgba(11, 11, 15, 0.16);
  transform: translate(0, 0);
}

.task-detail-popover__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(11, 11, 15, 0.12);
  padding-bottom: 10px;
}

.task-detail-popover__header p {
  margin-bottom: 4px;
}

.task-detail-popover__header strong {
  font-size: 16px;
  font-weight: 600;
}

.task-detail-popover__header button {
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(11, 11, 15, 0.32);
  background: #fff;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 12px;
  cursor: pointer;
}

.task-detail-popover__header button:hover {
  background: #0b0b0f;
  color: #fff;
}

.task-detail-popover-enter-active,
.task-detail-popover-leave-active {
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.task-detail-popover-enter-from,
.task-detail-popover-leave-to {
  opacity: 0;
  transform: translateY(-6px);
}

.mind-map-canvas {
  margin-bottom: 16px;
  border: 1px solid rgba(11, 11, 15, 0.14);
  background:
    radial-gradient(circle, rgba(11, 11, 15, 0.18) 1px, transparent 1.35px),
    #fff;
  background-size: 22px 22px;
}

.mind-map-canvas > p {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(11, 11, 15, 0.12);
  color: rgba(11, 11, 15, 0.56);
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 12px;
  line-height: 1.55;
}

.mind-map-canvas svg {
  display: block;
  width: 100%;
  height: min(68vh, 720px);
  min-height: 520px;
}

.mind-map-canvas path {
  fill: none;
  stroke: rgba(11, 11, 15, 0.28);
  stroke-width: 1.5;
}

.mind-map-link.active {
  stroke: #0b0b0f;
  stroke-width: 2.4;
}

.mind-map-node {
  cursor: pointer;
}

.mind-map-node.dragging {
  opacity: 0.46;
}

.mind-map-node rect {
  fill: #f8f8f6;
  stroke: rgba(11, 11, 15, 0.32);
  stroke-width: 1;
}

.mind-map-node text {
  fill: #0b0b0f;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 12px;
  pointer-events: none;
}

.mind-map-node.active rect {
  fill: #0b0b0f;
  stroke: #0b0b0f;
}

.mind-map-node.hover-related:not(.active) rect {
  fill: #ededeb;
  stroke: #0b0b0f;
}

.mind-map-node:hover rect {
  fill: #ededeb;
  stroke: #0b0b0f;
  stroke-width: 2;
}

.mind-map-node.drop-target rect {
  fill: #0b0b0f;
  stroke: #0b0b0f;
  stroke-width: 2.4;
}

.mind-map-node.drop-target text {
  fill: #fff;
}

.task-map-demo .mind-map-ai-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 28px;
  min-height: 0;
  padding: 0 8px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #4f8cff 0%, #7c3aed 52%, #d946ef 100%) border-box;
  box-shadow: none;
  color: #3f2f8f;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  filter: drop-shadow(0 7px 12px rgba(124, 58, 237, 0.16));
  transition:
    background 0.18s ease,
    filter 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.task-map-demo .mind-map-ai-button:hover,
.task-map-demo .mind-map-ai-button:focus-visible {
  border-color: transparent;
  background:
    linear-gradient(#f7f4ff, #f7f4ff) padding-box,
    linear-gradient(135deg, #4f8cff 0%, #7c3aed 52%, #d946ef 100%) border-box;
  box-shadow: none;
  color: #312178;
  filter: drop-shadow(0 8px 14px rgba(124, 58, 237, 0.2));
  outline: 0;
  transform: translateY(-1px);
}

.task-child-preview {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(11, 11, 15, 0.12);
  background: rgba(245, 245, 245, 0.72);
}

.task-child-preview span {
  color: rgba(11, 11, 15, 0.54);
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 12px;
}

.task-child-preview div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.task-child-preview__actions {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(11, 11, 15, 0.12);
}

.task-child-preview button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  background: #fff;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 12px;
}

.task-shortcut {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 5px;
  border: 1px solid rgba(11, 11, 15, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(11, 11, 15, 0.58);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  line-height: 1;
}

.task-child-preview__actions button {
  background: #f6f6f3;
}

.task-child-preview__actions button:disabled {
  border-color: rgba(11, 11, 15, 0.12);
  color: rgba(11, 11, 15, 0.28);
  cursor: not-allowed;
}

.task-child-preview__actions button:disabled:hover {
  background: #f6f6f3;
  color: rgba(11, 11, 15, 0.28);
}

.task-child-preview p,
.task-gantt-hint {
  margin: 0;
  color: rgba(11, 11, 15, 0.54);
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 12px;
  line-height: 1.6;
}

.task-gantt-hint {
  margin: -6px 0 14px;
}

.task-keyboard-hint {
  margin: -8px 0 16px;
  color: rgba(11, 11, 15, 0.44);
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 11px;
  line-height: 1.6;
}

.mind-map-node.active text {
  fill: #fff;
}

.mind-map-node.done rect {
  fill: #e4e4e0;
}

.mind-map-node.conflict rect {
  stroke: #c7472f;
  stroke-width: 2;
}

.task-inspector__label,
.task-inspector label span {
  margin: 0 0 6px;
  color: rgba(11, 11, 15, 0.52);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.task-inspector__title {
  padding: 10px;
  font-size: 18px;
  font-weight: 600;
}

.task-inspector label {
  display: grid;
  gap: 6px;
}

.task-inspector input,
.task-inspector select,
.task-inspector textarea {
  padding: 9px 10px;
}

.task-inspector textarea {
  resize: vertical;
  line-height: 1.55;
}

.task-inspector__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.task-time-details {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(11, 11, 15, 0.12);
  padding-top: 10px;
}

.task-time-details summary {
  width: fit-content;
  color: rgba(11, 11, 15, 0.64);
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 12px;
  cursor: pointer;
}

.task-time-details p {
  margin: 0;
  color: rgba(11, 11, 15, 0.52);
  font-size: 12px;
  line-height: 1.6;
}

.task-timeline-details {
  border-top: 1px solid rgba(11, 11, 15, 0.12);
  padding-top: 12px;
}

.task-timeline-details summary {
  width: fit-content;
  margin-bottom: 10px;
  color: rgba(11, 11, 15, 0.5);
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 12px;
  cursor: pointer;
}

.task-warning {
  margin: 0;
  padding: 10px;
  border: 1px solid #c7472f;
  color: #9c2f1e;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.task-overview {
  display: grid;
  gap: 10px;
  margin: 2px 0 14px;
  padding: 12px;
  border: 1px solid rgba(11, 11, 15, 0.14);
  background: #fff;
}

.task-overview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(11, 11, 15, 0.54);
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 12px;
}

.task-overview__header strong {
  color: #0b0b0f;
  font-weight: 500;
}

.task-overview__rail {
  position: relative;
  height: 36px;
  border: 1px solid rgba(11, 11, 15, 0.16);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(11, 11, 15, 0.08) 0,
      rgba(11, 11, 15, 0.08) 1px,
      transparent 1px,
      transparent 24px
    ),
    #f7f7f4;
}

.task-overview__window {
  position: absolute;
  top: 6px;
  bottom: 6px;
  min-width: 56px;
  border: 1px solid #0b0b0f;
  background: #0b0b0f;
  color: #fff;
  cursor: grab;
}

.task-overview__window:active {
  cursor: grabbing;
}

.task-overview__window span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max-content;
  max-width: min(460px, 78vw);
  transform: translate(-50%, -50%);
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 10px;
  opacity: 0.78;
  pointer-events: none;
}

.task-overview__handle {
  position: absolute;
  top: 1px;
  width: 18px;
  height: 34px;
  border: 1px solid rgba(11, 11, 15, 0.36);
  background: #fff;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.task-overview__handle::before {
  content: "";
  position: absolute;
  inset: 8px 7px;
  border-left: 1px solid rgba(11, 11, 15, 0.48);
  border-right: 1px solid rgba(11, 11, 15, 0.48);
}

.task-timeline {
  display: grid;
  gap: 0;
  max-height: min(72vh, 760px);
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid rgba(11, 11, 15, 0.14);
  background: #fff;
  opacity: 1;
}

.task-timeline__dates {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(var(--day-count, 10), minmax(48px, 1fr));
  min-width: var(--timeline-width, 920px);
  padding: 10px 12px;
  border-bottom: 1px solid rgba(11, 11, 15, 0.18);
  background: #f6f6f3;
  color: rgba(11, 11, 15, 0.5);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.task-timeline__row {
  position: relative;
  display: block;
  min-width: var(--timeline-width, 920px);
  min-height: 50px;
  border-bottom: 1px solid rgba(11, 11, 15, 0.08);
  cursor: pointer;
}

.task-timeline__row:hover,
.task-timeline__row.active {
  z-index: 3;
  background: #f0f0ed;
}

.task-timeline__row.focus-child {
  background: #fafafa;
}

.task-timeline__row.hover-related:not(.active) {
  background: #f6f6f3;
}

.task-timeline__track {
  position: relative;
  height: 100%;
  min-height: 50px;
  background-image: linear-gradient(to right, rgba(11, 11, 15, 0.07) 1px, transparent 1px);
  background-size: calc(100% / var(--day-count, 10)) 100%;
}

.task-timeline__bar {
  position: absolute;
  top: 14px;
  bottom: 12px;
  min-width: 28px;
  overflow: visible;
  border: 0;
  background: #0b0b0f;
  color: #fff;
  cursor: grab;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
}

.task-timeline__bar::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: -7px;
  height: 4px;
  border-top: 1px solid rgba(11, 11, 15, 0.42);
  border-bottom: 1px solid rgba(11, 11, 15, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.task-timeline__bar:hover::before,
.task-timeline__bar:focus::before,
.task-timeline__bar:focus-visible::before {
  opacity: 1;
}

.task-timeline__bar:active {
  cursor: grabbing;
}

.task-timeline__bar-title {
  position: absolute;
  inset: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.task-bar-children {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 6;
  display: none;
  min-width: 180px;
  max-width: 280px;
  transform: translateX(-50%);
  padding: 8px;
  border: 1px solid rgba(11, 11, 15, 0.18);
  background: #fff;
  box-shadow: 0 12px 28px rgba(11, 11, 15, 0.12);
  color: #0b0b0f;
  pointer-events: none;
}

.task-bar-children > span {
  display: block;
  padding: 5px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(11, 11, 15, 0.08);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-bar-children > span:last-child {
  border-bottom: 0;
}

.task-timeline__bar:hover .task-bar-children,
.task-timeline__bar:focus .task-bar-children,
.task-timeline__bar:focus-visible .task-bar-children,
.task-timeline__row.active .task-bar-children {
  display: block;
}

.task-timeline__row.active .task-timeline__bar,
.task-timeline__row.hover-related .task-timeline__bar {
  outline: 2px solid rgba(11, 11, 15, 0.18);
  outline-offset: 2px;
}

.task-timeline__row.focus-child .task-timeline__bar {
  background: #4a4a4a;
}

.task-timeline__row.done .task-timeline__bar {
  background: rgba(11, 11, 15, 0.42);
}

.task-timeline__row.conflict .task-timeline__bar {
  background: #c7472f;
}

.code-stack {
  display: grid;
  gap: 30px;
  margin-top: 56px;
}

.code-panel {
  border: 1px solid rgba(11, 11, 15, 0.16);
  background: #101114;
  color: #f5f5f5;
}

.code-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
}

.code-panel__header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.code-panel__header span {
  display: block;
  margin-top: 6px;
  color: rgba(245, 245, 245, 0.58);
  font-size: 12px;
}

.code-copy {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(245, 245, 245, 0.36);
  background: transparent;
  color: inherit;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 12px;
  cursor: pointer;
}

.code-copy:hover {
  background: #f5f5f5;
  color: #101114;
}

.code-mobile-note {
  display: none;
  margin: 0;
  padding: 18px;
  color: rgba(245, 245, 245, 0.72);
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 13px;
  line-height: 1.6;
}

.code-panel__body {
  max-height: 620px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 13px;
  line-height: 1.62;
  tab-size: 2;
}

.code-panel__body code {
  display: block;
  min-width: max-content;
  white-space: pre;
}

.embed-stack {
  display: grid;
  gap: 42px;
  margin-top: 70px;
}

.embed-panel {
  position: relative;
}

.embed-panel h2 {
  margin: 0 0 14px;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-weight: 500;
}

.embed-panel iframe {
  width: 100%;
  height: min(78vh, 900px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
}

.figma-loader {
  position: absolute;
  inset: 42px 0 0;
  z-index: 1;
  display: grid;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(245, 245, 245, 0.96);
  color: #0b0b0f;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  pointer-events: none;
}

.figma-loader__message {
  min-width: 12ch;
  font-size: clamp(15px, 1.6vw, 22px);
  line-height: 1;
  text-align: left;
  animation: figma-loader-message 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.figma-loader__rule {
  position: absolute;
  top: calc(50% + 28px);
  left: 50%;
  width: min(220px, 42vw);
  height: 1px;
  overflow: hidden;
  background: rgba(11, 11, 15, 0.16);
  transform: translateX(-50%);
}

.figma-loader__rule::after {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  background: #0b0b0f;
  animation: figma-loader-rule 1.1s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes figma-loader-message {
  from {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

@keyframes figma-loader-rule {
  from {
    transform: translateX(-110%);
  }

  to {
    transform: translateX(250%);
  }
}

.embed-link {
  display: block;
  width: fit-content;
  margin: 12px auto 0;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 13px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.embed-note {
  margin: 10px auto 0;
  color: rgba(11, 11, 15, 0.68);
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 13px;
  text-align: center;
}

.project-detail--empty {
  min-height: 50vh;
}

.project-detail--takeaway-logo .output-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
}

.project-detail--takeaway-logo .output-gallery__item {
  border: 1px solid rgba(11, 11, 15, 0.12);
  background: #fff;
}

.project-detail--takeaway-logo .output-gallery__item--logo {
  aspect-ratio: 1;
  padding: clamp(12px, 2vw, 22px);
}

.project-detail--takeaway-logo .output-gallery__item--logo .output-gallery__image {
  width: 100%;
  height: 100%;
  max-height: none;
  background: transparent;
  object-fit: contain;
}

.project-detail--takeaway-logo .output-gallery__item--logo:hover .output-gallery__image,
.project-detail--takeaway-logo .output-gallery__item--logo .output-gallery__button:focus-visible .output-gallery__image {
  transform: scale(1.055);
}

.project-detail--takeaway-logo .output-gallery__item--interface {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(615px, 100%);
  background: #f1f1f1;
}

.project-detail--takeaway-logo .output-gallery__item--interface .output-gallery__image {
  width: 100%;
  max-height: none;
  background: transparent;
  object-fit: contain;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: clamp(54px, 8vh, 86px) clamp(16px, 5vw, 64px) clamp(24px, 6vh, 56px);
  background: rgba(245, 245, 245, 0.97);
  backdrop-filter: blur(16px);
}

.image-lightbox__image {
  width: auto;
  max-width: min(100%, 1280px);
  max-height: 86vh;
  object-fit: contain;
  background: #fff;
}

.image-lightbox__close {
  position: fixed;
  right: clamp(16px, 4vw, 42px);
  top: clamp(14px, 4vh, 34px);
  z-index: 41;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid #0b0b0f;
  background: #0b0b0f;
  color: #fff;
  font-family: "JetBrains Mono", "MiSans", "Alibaba PuHuiTi", monospace;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.image-lightbox__close:hover,
.image-lightbox__close:focus-visible {
  background: #f5f5f5;
  color: #0b0b0f;
}

.image-lightbox-enter-active,
.image-lightbox-leave-active {
  transition: opacity 0.24s ease;
}

.image-lightbox-enter-active .image-lightbox__image,
.image-lightbox-leave-active .image-lightbox__image {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox-enter-from,
.image-lightbox-leave-to {
  opacity: 0;
}

.image-lightbox-enter-from .image-lightbox__image,
.image-lightbox-leave-to .image-lightbox__image {
  transform: scale(0.985);
}

@media (max-width: 780px) {
  body {
    min-width: 320px;
  }

  .language-panels {
    flex-direction: column;
  }

  .language-panel {
    min-height: 50vh;
    padding: 24px 22px;
  }

  .language-panel:hover {
    flex-basis: 50%;
  }

  .home-logo {
    top: 50%;
    width: min(55vw, 260px);
    transform: translate(-50%, -50%);
  }

  .language-line {
    width: min(320px, 88%);
    color: currentColor;
    font-size: 13px;
    line-height: 1.55;
    opacity: 0.72;
  }

  .site-header,
  .site-header--compact {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: auto;
    padding: 12px 16px 11px;
  }

  .site-content {
    min-height: calc(100vh - 64px);
  }

  .phone-logo {
    display: block;
    width: 42px;
  }

  .phone-logo img {
    width: 42px;
    height: 42px;
  }

  .logo-mark {
    display: none;
  }

  .return-button {
    grid-column: 2;
    min-width: 82px;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .top-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 7px 12px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.2;
  }

  .nav-separator {
    display: none;
  }

  .nav-group {
    display: contents;
  }

  .nav-label {
    display: none;
  }

  .sub-nav {
    display: contents;
    font-size: 12px;
  }

  .project-browser {
    width: calc(100% - 32px);
    margin-top: 14px;
    margin-bottom: 54px;
  }

  .project-filterbar {
    flex-wrap: nowrap;
    gap: 7px;
    margin-bottom: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .project-filterbar::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .filter-button--unpublished,
  .filter-button--vibe-coding {
    display: none;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-card__title {
    padding: 13px 14px;
    font-size: 13px;
    opacity: 1;
    transform: none;
  }

  .project-card__image {
    filter: saturate(0.2);
  }

  .about-page,
  .project-hero {
    grid-template-columns: 1fr;
  }

  .about-page {
    width: min(100% - 36px, 560px);
    gap: 30px;
    margin-top: 28px;
    margin-bottom: 64px;
  }

  .about-left {
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: end;
    gap: 18px;
  }

  .portrait {
    width: 132px;
  }

  .identity h1 {
    font-size: 34px;
  }

  .identity span {
    font-size: 12px;
  }

  .about-section p {
    font-size: 15px;
  }

  .contact-page {
    width: calc(100% - 32px);
    min-height: auto;
    margin: 18px auto 56px;
    padding: 0;
    place-items: stretch;
    gap: 16px;
  }

  .contact-portrait {
    width: 100%;
  }

  .contact-image {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
  }

  .contact-image--dim {
    filter: brightness(0.9) contrast(1.02);
  }

  .contact-image--lit,
  .contact-portrait::after {
    display: none;
  }

  .contact-list {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(11, 11, 15, 0.16);
    background: transparent;
    backdrop-filter: none;
  }

  .contact-list p {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
  }

  .contact-list strong {
    margin-right: 0;
  }

  .contact-list span {
    overflow-wrap: anywhere;
  }

  .project-detail {
    width: calc(100% - 32px);
    margin: 22px auto 64px;
  }

  .project-hero {
    gap: 24px;
  }

  .project-hero img {
    max-height: 58vh;
  }

  .project-kicker {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .project-copy h1 {
    font-size: clamp(30px, 11vw, 42px);
    line-height: 1.02;
  }

  .project-copy p {
    font-size: 15px;
    line-height: 1.72;
  }

  .download-row {
    margin-top: 24px;
  }

  .download-link {
    width: 100%;
    padding: 12px 14px;
    text-align: center;
  }

  .output-gallery {
    gap: 18px;
    margin-top: 34px;
  }

  .output-gallery__image {
    max-height: none;
  }

  .project-detail:not(.project-detail--takeaway-logo) .output-gallery__item {
    min-height: min(62vh, 560px);
    padding: 12px;
  }

  .project-detail:not(.project-detail--takeaway-logo) .output-gallery__button {
    height: min(62vh, 560px);
  }

  .project-detail--takeaway-logo .output-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-detail--takeaway-logo .output-gallery__item--logo {
    width: 100%;
    aspect-ratio: 1;
    padding: 14px;
  }

  .project-detail--takeaway-logo .output-gallery__item--interface {
    width: min(100%, 520px);
  }

  .code-stack {
    gap: 22px;
    margin-top: 34px;
  }

  .code-panel__header {
    align-items: flex-start;
    padding: 14px;
  }

  .code-panel__header h2 {
    font-size: 13px;
    line-height: 1.35;
  }

  .code-copy,
  .code-panel__body {
    display: none;
  }

  .code-mobile-note {
    display: block;
  }

  .embed-stack {
    gap: 30px;
    margin-top: 42px;
  }

  .embed-panel h2 {
    font-size: 18px;
  }

  .embed-note {
    font-size: 12px;
  }

  .embed-panel iframe {
    height: min(68vh, 620px);
    min-height: 420px;
  }
}

@media (max-width: 420px) {
  .site-header,
  .site-header--compact {
    padding-inline: 14px;
  }

  .top-nav {
    gap: 7px 10px;
    font-size: 11px;
  }

  .about-left {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
  }

  .portrait {
    width: 104px;
  }

  .identity h1 {
    font-size: 30px;
  }

  .identity p {
    font-size: 12px;
  }

  .project-browser,
  .project-detail {
    width: calc(100% - 28px);
  }

  .project-card__title {
    font-size: 12px;
  }

  .embed-panel iframe {
    min-height: 360px;
  }
}

@media (max-width: 360px) {
  .top-nav {
    font-size: 10px;
    gap: 6px 8px;
  }

  .phone-logo,
  .phone-logo img {
    width: 38px;
    height: 38px;
  }

  .site-header,
  .site-header--compact {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .about-left {
    grid-template-columns: 1fr;
  }

  .portrait {
    width: 118px;
  }

  .contact-list p {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-shell-enter-active,
  .site-shell-leave-active,
  .page-view-enter-active,
  .page-view-leave-active {
    transition: none;
  }

  .site-shell-enter-from,
  .site-shell-leave-to,
  .page-view-enter-from,
  .page-view-leave-to {
    opacity: 1;
    filter: none;
    transform: none;
  }

  :is(.project-browser, .about-page, .contact-page, .project-detail) * {
    animation: none !important;
    will-change: auto;
  }

  .output-gallery__image,
  .image-lightbox,
  .image-lightbox__image {
    transition: none;
  }

  .output-gallery__item--zoomable:hover .output-gallery__image,
  .output-gallery__button:focus-visible .output-gallery__image {
    transform: none;
  }
}
