@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Boska";
  src: url("assets/fonts/boska-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Boska";
  src: url("assets/fonts/boska-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --mesh: #00a8f0;
  --mesh-deep: #0078c8;
  --mesh-ink: #003b6f;
  --sky-50: #f2fafe;
  --sky-100: #dff3fd;
  --sky-200: #bae5fb;
  --whisper: #7c5cff;
  --whisper-soft: #f2eeff;
  --coral: #ff7a6b;
  --coral-soft: #fff1ef;
  --gold: #f4b740;
  --gold-soft: #fef7e6;
  --emerald: #22a861;
  --emerald-bright: #6ec56a;
  --emerald-soft: #eafaf1;

  --ink-950: #061220;
  --ink-900: #0a1b2e;
  --ink-800: #152b44;
  --ink-700: #26415e;
  --ink-600: #435d78;
  --ink-500: #5c7690;
  --ink-400: #7f96ad;
  --ink-300: #adc0d2;

  --surface-page: #f4f9fd;
  --surface-card: #ffffff;
  --surface-subtle: #f7fbfe;
  --surface-muted: #edf5fb;

  --border-subtle: rgba(10, 27, 46, 0.08);
  --border-strong: rgba(10, 27, 46, 0.14);
  --border-sky: rgba(0, 168, 240, 0.28);

  --shadow-sm: 0 2px 8px rgba(10, 27, 46, 0.04), 0 1px 2px rgba(10, 27, 46, 0.05);
  --shadow-md: 0 14px 34px -8px rgba(10, 27, 46, 0.08), 0 4px 12px -2px rgba(0, 120, 200, 0.06);
  --shadow-workbench:
    0 34px 88px -18px rgba(8, 28, 53, 0.22),
    0 12px 32px -8px rgba(0, 120, 200, 0.14),
    0 0 0 1px rgba(10, 27, 46, 0.1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --font-sans: "Geist", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Boska", "Songti SC", "Noto Serif SC", Georgia, serif;
  --font-mono: "JetBrains Mono", "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

.mobile-label,
.mobile-detail-toggle,
.mobile-board-hint {
  display: none;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--surface-page);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}

.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 8px 14px;
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1320px, calc(100% - 56px));
  margin-inline: auto;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 249, 253, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10, 27, 46, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(0, 168, 240, 0.25);
}

.brand-word {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.brand-word i {
  font-style: normal;
  color: var(--mesh);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 168, 240, 0.12);
  color: var(--mesh-deep);
  border: 1px solid rgba(0, 168, 240, 0.24);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-subtle);
}

.topnav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-700);
  padding: 6px 14px;
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.topnav a:hover {
  color: var(--ink-900);
  background: var(--sky-100);
}

.topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mesh);
  box-shadow: 0 0 0 4px rgba(0, 168, 240, 0.18);
}

/* Hero Stage & Ambient Mesh */
.hero-stage {
  position: relative;
  padding: 52px 0 84px;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
}

.orb-sky {
  width: 620px;
  height: 420px;
  top: -110px;
  left: -80px;
  background: radial-gradient(circle, rgba(0, 168, 240, 0.36) 0%, rgba(0, 168, 240, 0) 72%);
}

.orb-whisper {
  width: 560px;
  height: 440px;
  top: 20px;
  right: -100px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.26) 0%, rgba(124, 92, 255, 0) 72%);
}

.orb-coral {
  width: 480px;
  height: 340px;
  top: 280px;
  left: 34%;
  background: radial-gradient(circle, rgba(255, 122, 107, 0.16) 0%, rgba(255, 122, 107, 0) 70%);
}

.mesh-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 120, 200, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 120, 200, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 25%, #000 35%, transparent 100%);
}

.hero-stage > .container {
  position: relative;
  z-index: 1;
}

.hero-header {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 38px;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 168, 240, 0.12), rgba(124, 92, 255, 0.12));
  border: 1px solid rgba(0, 168, 240, 0.28);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--mesh-ink);
  margin-bottom: 18px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--whisper);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.05rem, 3.25vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink-950);
}

.serif-highlight {
  font-family: var(--font-serif);
  font-weight: 600;
  background: linear-gradient(120deg, var(--mesh-deep) 0%, var(--whisper) 60%, #d94e64 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-inline: 2px;
}

.serif-highlight-sky {
  font-family: var(--font-serif);
  font-weight: 600;
  background: linear-gradient(120deg, #5fd0ff 0%, #a995ff 65%, #ff9b8f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--ink-700);
  max-width: 66ch;
}

.hero-lede strong {
  color: var(--ink-900);
  font-weight: 700;
}

.hero-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}

.pillar-card {
  display: block;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(10, 27, 46, 0.1);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--mesh);
  box-shadow: var(--shadow-md);
}

.pillar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.pillar-idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-500);
}

.pillar-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
}

.chip-whisper {
  background: var(--whisper-soft);
  color: #5b3ce6;
  border: 1px solid rgba(124, 92, 255, 0.25);
}

.chip-sky {
  background: var(--sky-100);
  color: var(--mesh-deep);
  border: 1px solid rgba(0, 168, 240, 0.28);
}

.chip-emerald {
  background: var(--emerald-soft);
  color: #167944;
  border: 1px solid rgba(34, 168, 97, 0.25);
}

.pillar-card strong {
  display: block;
  font-size: 0.98rem;
  color: var(--ink-900);
  margin-bottom: 3px;
}

.pillar-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-600);
  line-height: 1.5;
}

/* Interactive Workbench Shell */
.workbench-shell {
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-workbench);
  overflow: hidden;
  border: 1px solid rgba(10, 27, 46, 0.14);
}

.window-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 18px;
  background: linear-gradient(180deg, #0d2138 0%, #091728 100%);
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.traffic-lights {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.traffic-lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.tl-red {
  background: #ff5f57;
}

.tl-gold {
  background: #febc2e;
}

.tl-green {
  background: #28c840;
}

.window-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.81rem;
  color: rgba(255, 255, 255, 0.78);
}

.window-location .icon {
  color: var(--mesh);
}

.window-location .sep {
  opacity: 0.4;
}

.mounted-badge {
  padding: 2px 9px;
  border-radius: 6px;
  background: rgba(0, 168, 240, 0.2);
  border: 1px solid rgba(0, 168, 240, 0.42);
  color: #7ad7ff;
  font-weight: 600;
}

.window-mode-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  color: #b7d8f0;
  background: rgba(255, 255, 255, 0.07);
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 8px var(--emerald-bright);
}

/* Conversation Top Bar */
.app-conversation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  background: linear-gradient(180deg, #f8fcff 0%, #f1f8fd 100%);
  border-bottom: 1px solid rgba(10, 27, 46, 0.09);
}

.conv-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}

.conv-hash {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--mesh-deep);
  background: linear-gradient(135deg, #dff3fd 0%, #c6e9fc 100%);
  border: 1px solid rgba(0, 168, 240, 0.3);
}

.conv-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}

.conv-title-row strong {
  font-size: 1rem;
  color: var(--ink-900);
}

.project-mount-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 168, 240, 0.12);
  color: var(--mesh-ink);
  border: 1px solid rgba(0, 168, 240, 0.28);
}

.project-mount-pill .icon {
  width: 13px;
  height: 13px;
  color: var(--mesh-deep);
}

.quota-pill {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.1);
  color: #4f32d4;
  border: 1px solid rgba(124, 92, 255, 0.22);
}

.conv-identity p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-600);
}

.app-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 13px;
  background: rgba(10, 27, 46, 0.05);
  border: 1px solid rgba(10, 27, 46, 0.08);
}

.panel-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-700);
  transition: all 0.16s ease;
}

.panel-switch-btn:hover {
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.65);
}

.panel-switch-btn[aria-selected="true"] {
  background: #ffffff;
  color: var(--ink-950);
  box-shadow: 0 3px 10px rgba(10, 27, 46, 0.1), 0 0 0 1px rgba(0, 168, 240, 0.35);
}

.panel-switch-btn[aria-selected="true"] .icon {
  color: var(--mesh-deep);
}

.notif-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
}

.count-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--sky-100);
  color: var(--mesh-ink);
}

/* Workbench Body Layout */
.workbench-body {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  min-height: 620px;
}

.app-rail {
  background: linear-gradient(180deg, #0d1f35 0%, #091728 100%);
  color: rgba(255, 255, 255, 0.86);
  padding: 16px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.company-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.company-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--mesh) 0%, var(--whisper) 100%);
  color: #fff;
}

.company-card strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.2;
}

.company-card small {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.56);
}

.rail-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rail-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
  padding-inline: 6px;
  margin-bottom: 2px;
}

.rail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.74);
}

.rail-item.active {
  background: rgba(0, 168, 240, 0.2);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(0, 168, 240, 0.38);
}

.rail-item .hash {
  color: var(--mesh);
  font-weight: 700;
}

.rail-tag,
.rail-count,
.rail-whisper {
  margin-left: auto;
  font-size: 0.66rem;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 600;
}

.rail-tag {
  background: rgba(0, 168, 240, 0.25);
  color: #8ce0ff;
}

.rail-count {
  background: rgba(244, 183, 64, 0.2);
  color: #ffd782;
}

.rail-whisper {
  background: rgba(124, 92, 255, 0.25);
  color: #cbbdff;
}

.rail-asset-box {
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rail-asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
}

.rail-asset-row span {
  color: rgba(255, 255, 255, 0.58);
}

.rail-asset-row strong {
  color: #9fe3ff;
  font-weight: 600;
}

.rail-member {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.rail-member img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.rail-member strong {
  display: block;
  font-size: 0.8rem;
  line-height: 1.15;
}

.rail-member small {
  display: block;
  font-size: 0.69rem;
  color: rgba(255, 255, 255, 0.56);
}

.dot-online,
.dot-working {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-online {
  background: var(--emerald-bright);
}

.dot-working {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(244, 183, 64, 0.8);
}

/* Workbench Panels */
.workbench-panel {
  display: flex;
  flex-direction: column;
  background: #f9fcff;
  min-width: 0;
}

.dialog-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.dialog-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 3px;
}

.dialog-title-line h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-950);
}

.dialog-status-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 9px;
  border-radius: 999px;
}

.dialog-status-pill.active {
  background: var(--emerald-soft);
  color: #137a43;
  border: 1px solid rgba(34, 168, 97, 0.3);
}

.dialog-status-pill.sky {
  background: var(--sky-100);
  color: var(--mesh-ink);
  border: 1px solid rgba(0, 168, 240, 0.3);
}

.version-lock-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--whisper-soft);
  color: #5336d6;
  border: 1px solid rgba(124, 92, 255, 0.22);
}

.dialog-header-bar p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-600);
}

.dialog-header-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.subview-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
}

.subview-btn {
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-600);
  transition: all 0.15s ease;
}

.subview-btn.is-active {
  background: #ffffff;
  color: var(--ink-950);
  box-shadow: 0 1px 4px rgba(10, 27, 46, 0.1);
}

.dialog-readonly-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink-700);
  border: 1px solid var(--border-strong);
}

/* Workflow Filter & Quick Create Bar */
.workflow-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 11px 20px;
  background: #f4f9fd;
  border-bottom: 1px solid var(--border-subtle);
}

.quick-create-group {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.filter-pills-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.fake-select,
.fake-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--ink-700);
  background: #ffffff;
  border: 1px solid rgba(10, 27, 46, 0.12);
}

.fake-input {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--ink-500);
  background: #ffffff;
  border: 1px solid rgba(10, 27, 46, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fake-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.79rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--mesh) 0%, var(--mesh-deep) 100%);
  box-shadow: 0 2px 8px rgba(0, 120, 200, 0.25);
}

.workflow-metrics-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.wf-metric-item {
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wf-metric-label {
  font-size: 0.69rem;
  color: var(--ink-500);
}

.wf-metric-item strong {
  font-size: 0.8rem;
  color: var(--ink-950);
}

.wf-metric-item strong.tone-sky {
  color: var(--mesh-deep);
}

.wf-metric-item strong.tone-emerald {
  color: #147a43;
}

.wf-metric-item strong.tone-coral {
  color: #c83727;
}

/* Workflow Split Workspace (Board/List + Detail Drawer) */
.workflow-split-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.88fr);
  flex: 1;
}

.wf-board-canvas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: #f2f8fc;
  align-content: start;
}

.wf-column {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(10, 27, 46, 0.08);
  border-radius: 12px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.wf-col-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 4px 6px;
  border-bottom: 1px solid rgba(10, 27, 46, 0.07);
}

.wf-col-head strong {
  font-size: 0.8rem;
  color: var(--ink-900);
}

.col-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(10, 27, 46, 0.07);
  color: var(--ink-700);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.st-todo {
  background: #64748b;
}

.st-progress {
  background: var(--mesh);
  box-shadow: 0 0 0 3px rgba(0, 168, 240, 0.18);
}

.st-blocked {
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 122, 107, 0.2);
}

.st-review {
  background: var(--whisper);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.st-done {
  background: var(--emerald);
}

.st-canceled {
  background: #94a3b8;
}

.wf-card {
  text-align: left;
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(10, 27, 46, 0.1);
  box-shadow: 0 2px 5px rgba(10, 27, 46, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s ease;
}

.wf-card:not(.static-card):hover {
  transform: translateY(-2px);
  border-color: var(--mesh);
  box-shadow: 0 8px 18px rgba(0, 120, 200, 0.12);
}

.wf-card.is-selected {
  border-color: var(--mesh-deep);
  box-shadow:
    0 0 0 2px rgba(0, 168, 240, 0.28),
    0 10px 22px -6px rgba(0, 120, 200, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
}

.wf-card.static-card {
  cursor: default;
  opacity: 0.88;
}

.wf-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.issue-code {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-600);
}

.type-badge {
  font-size: 0.67rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}

.type-badge.story {
  background: var(--sky-100);
  color: var(--mesh-ink);
}

.type-badge.defect {
  background: var(--coral-soft);
  color: #c83727;
}

.type-badge.sub {
  background: var(--whisper-soft);
  color: #5535d9;
}

.wf-card h4 {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.42;
  font-weight: 700;
  color: var(--ink-900);
}

.wf-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.prio-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
}

.prio-crit {
  background: #ffe8e5;
  color: #bf2615;
}

.prio-high {
  background: var(--gold-soft);
  color: #9e6300;
}

.prio-med {
  background: #edf2f7;
  color: var(--ink-700);
}

.assignee-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-700);
}

.assignee-chip img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.wf-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(10, 27, 46, 0.09);
  font-size: 0.68rem;
  color: var(--ink-600);
}

.wf-card-foot span {
  white-space: nowrap;
}

.subtask-pill,
.subtask-done,
.evidence-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
}

.subtask-done {
  color: var(--emerald);
}

.evidence-pill {
  color: var(--mesh-deep);
}

.wf-convene-callout {
  padding: 11px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff7f6 0%, #fff1ef 100%);
  border: 1px dashed rgba(255, 122, 107, 0.48);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.convene-callout-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.convene-callout-head strong {
  font-size: 0.78rem;
  color: #b42b1c;
}

.wf-convene-callout p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--ink-700);
}

.convene-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #5535d9;
  background: rgba(124, 92, 255, 0.12);
  padding: 2px 7px;
  border-radius: 5px;
  align-self: flex-start;
}

/* Workflow List View Table */
.wf-list-canvas {
  padding: 14px;
  background: #f2f8fc;
  overflow-x: auto;
}

.wf-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  font-size: 0.81rem;
}

.wf-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f7fbfe;
  color: var(--ink-600);
  font-weight: 700;
  font-size: 0.74rem;
  border-bottom: 1px solid var(--border-subtle);
}

.wf-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(10, 27, 46, 0.06);
  color: var(--ink-800);
}

.wf-table tbody tr {
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.wf-table tbody tr:hover {
  background: #f2fafe;
}

.wf-table tbody tr.is-selected {
  background: #e6f6fe;
}

.subtask-row td {
  background: #fafdff;
  font-size: 0.77rem;
  color: var(--ink-600);
}

.subtask-indent {
  padding-left: 22px !important;
}

.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 700;
  color: #fff;
}

/* Right-Side WorkItemDetail Inspector Drawer */
.wf-detail-drawer {
  background: #ffffff;
  border-left: 1px solid rgba(10, 27, 46, 0.1);
  display: flex;
  flex-direction: column;
}

.drawer-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

.drawer-key-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

#detail-key {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--mesh-deep);
}

.version-chip {
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--surface-muted);
  color: var(--ink-600);
}

.drawer-head h4 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.38;
  color: var(--ink-950);
}

.drawer-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 8px;
  background: var(--surface-muted);
  flex-shrink: 0;
}

.drawer-tabs span {
  font-size: 0.73rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--ink-600);
}

.drawer-tabs span.active {
  background: #fff;
  color: var(--ink-900);
  box-shadow: 0 1px 3px rgba(10, 27, 46, 0.08);
}

.drawer-body {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.drawer-grid-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.field-box {
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
}

.field-box label {
  display: block;
  font-size: 0.69rem;
  color: var(--ink-500);
  margin-bottom: 2px;
}

.field-box strong {
  display: block;
  font-size: 0.79rem;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-text.st-progress {
  background: none;
  box-shadow: none;
  color: var(--mesh-deep);
}

.status-text.st-blocked {
  background: none;
  box-shadow: none;
  color: #cf3423;
}

.status-text.st-review {
  background: none;
  box-shadow: none;
  color: #5b3ce6;
}

.status-text.st-todo {
  background: none;
  box-shadow: none;
  color: var(--ink-700);
}

.drawer-spec-box {
  padding: 11px 13px;
  border-radius: 10px;
  background: #f5faff;
  border: 1px solid rgba(0, 168, 240, 0.22);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.spec-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--mesh-ink);
  margin-bottom: 2px;
}

.spec-item p {
  margin: 0;
  font-size: 0.79rem;
  color: var(--ink-800);
  line-height: 1.48;
}

.agent-dispatch-card {
  padding: 11px 13px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08) 0%, rgba(0, 168, 240, 0.09) 100%);
  border: 1px solid rgba(124, 92, 255, 0.28);
}

.dispatch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.dispatch-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #4c2fd3;
}

.dispatch-badge .icon {
  width: 14px;
  height: 14px;
  color: var(--whisper);
}

.dispatch-top .mono {
  font-size: 0.69rem;
  color: var(--ink-600);
}

.agent-dispatch-card p {
  margin: 0 0 8px;
  font-size: 0.77rem;
  color: var(--ink-700);
  line-height: 1.45;
}

.dispatch-action-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  align-items: center;
}

.dispatch-input {
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(124, 92, 255, 0.24);
  font-size: 0.74rem;
  color: var(--ink-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dispatch-btn {
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--whisper);
  color: #ffffff;
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.drawer-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.drawer-sec-head strong {
  color: var(--ink-900);
}

.drawer-sec-head .mono {
  font-size: 0.71rem;
  color: var(--ink-500);
}

.drawer-subtask-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.drawer-subtask-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--ink-800);
}

.drawer-subtask-list li.done {
  color: var(--ink-600);
  background: #f3fbf6;
  border-color: rgba(34, 168, 97, 0.22);
}

.drawer-subtask-list li.done span {
  color: var(--emerald);
  font-weight: 800;
}

.drawer-refs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ref-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
}

.ref-chip.file .icon {
  color: var(--mesh-deep);
}

.ref-chip.commit .icon {
  color: var(--whisper);
}

.ref-chip span {
  font-weight: 700;
  color: var(--ink-900);
}

.ref-chip small {
  margin-left: auto;
  font-size: 0.71rem;
  color: var(--ink-500);
}

/* Panel 2: Project Files & Git Panel */
.git-panel-replica {
  margin: 14px 20px 0;
  padding: 14px 16px;
  border-radius: 13px;
  background: linear-gradient(180deg, #f3faff 0%, #ecf6fd 100%);
  border: 1px solid rgba(0, 168, 240, 0.26);
}

.git-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.git-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.git-title-row .icon {
  color: var(--mesh-deep);
}

.git-title-row strong {
  font-size: 0.92rem;
  color: var(--ink-950);
}

.cred-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  padding: 2px 9px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink-700);
  border: 1px solid rgba(10, 27, 46, 0.12);
}

.cred-pill .icon {
  width: 13px;
  height: 13px;
  color: var(--emerald);
}

.git-panel-header p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-600);
}

.git-repos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.git-repo-card {
  padding: 11px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(10, 27, 46, 0.1);
}

.git-repo-card.active {
  border-color: var(--mesh);
  box-shadow: 0 3px 12px rgba(0, 168, 240, 0.12);
}

.repo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.repo-top strong {
  font-size: 0.86rem;
  color: var(--ink-950);
}

.repo-status.ready {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald);
}

.git-repo-card p {
  margin: 0 0 6px;
  font-size: 0.75rem;
  color: var(--ink-600);
}

.repo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--ink-500);
  padding-top: 6px;
  border-top: 1px dashed rgba(10, 27, 46, 0.08);
}

.files-toolbar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.files-nav-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.quota-meter-wrap {
  min-width: 310px;
  flex: 0 1 360px;
}

.quota-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--ink-600);
  margin-bottom: 4px;
}

.quota-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(10, 27, 46, 0.08);
  overflow: hidden;
}

.quota-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mesh) 0%, var(--whisper) 100%);
}

.files-explorer-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 14px;
  padding: 14px 20px 20px;
  flex: 1;
}

.files-breadcrumb-table {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.breadcrumb-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: #f7fbfe;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--ink-600);
}

.crumb-current {
  color: var(--mesh-deep);
}

.files-list-table {
  display: flex;
  flex-direction: column;
}

.files-row {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr 0.85fr 1.25fr;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(10, 27, 46, 0.06);
  font-size: 0.79rem;
}

.files-row:last-child {
  border-bottom: none;
}

.files-row.head {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-500);
  background: #fbfdff;
  padding-block: 8px;
}

.files-row.is-highlighted {
  background: #eef8fe;
}

.file-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.file-glyph {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.file-glyph.dir {
  background: var(--sky-100);
  color: var(--mesh-deep);
}

.file-glyph.doc {
  background: var(--whisper-soft);
  color: #5435d8;
}

.file-glyph.sheet {
  background: var(--emerald-soft);
  color: #157a44;
}

.file-glyph.pdf {
  background: var(--coral-soft);
  color: #c83727;
}

.file-main strong {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-900);
}

.file-main small {
  display: block;
  font-size: 0.71rem;
  color: var(--ink-500);
}

.row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.row-actions span {
  font-size: 0.71rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--ink-700);
}

.row-actions .act-primary {
  background: var(--sky-100);
  color: var(--mesh-ink);
  font-weight: 700;
}

.sandbox-architecture-card {
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #0c1f35 0%, #081526 100%);
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eyebrow-mini {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6fd4ff;
}

.sandbox-architecture-card h4 {
  margin: 0;
  font-size: 0.98rem;
  color: #fff;
}

.sandbox-architecture-card p {
  margin: 0;
  font-size: 0.79rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.terminal-mini {
  padding: 11px 12px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.term-line {
  color: #e2f1ff;
}

.term-line .prompt {
  color: var(--mesh);
  margin-right: 6px;
}

.term-out {
  color: #9bb8d3;
  padding-left: 14px;
}

.term-ok {
  color: #7be39c;
  padding-left: 14px;
}

.sandbox-rules {
  margin: 0;
  padding-left: 16px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.74);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Panel 3: Multi-Agent Chat Bridge */
.chat-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.85fr);
  flex: 1;
}

.chat-timeline {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
}

.chat-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 13px;
  border-radius: 9px;
  background: var(--sky-50);
  border: 1px solid rgba(0, 168, 240, 0.22);
  font-size: 0.78rem;
  color: var(--mesh-ink);
}

.msg-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.msg-avatar.human {
  display: grid;
  place-items: center;
  background: var(--ink-900);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}

.msg-content {
  flex: 1;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
}

.msg-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 5px;
}

.msg-meta strong {
  font-size: 0.85rem;
  color: var(--ink-950);
}

.role-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(10, 27, 46, 0.08);
  color: var(--ink-700);
}

.role-pill.agent {
  background: var(--sky-100);
  color: var(--mesh-ink);
}

.engine-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--whisper-soft);
  color: #5535d9;
}

.msg-meta time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-400);
}

.msg-content p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-800);
  line-height: 1.56;
}

.inline-issue {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--sky-100);
  color: var(--mesh-deep);
}

.mention {
  font-weight: 700;
  color: var(--whisper);
}

.system-dispatch {
  padding-left: 48px;
}

.dispatch-pill-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--whisper-soft);
  border: 1px solid rgba(124, 92, 255, 0.25);
  font-size: 0.77rem;
  color: #4628c4;
  width: 100%;
}

.project-file-card-replica {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid rgba(0, 168, 240, 0.3);
}

.pfc-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--sky-100);
  color: var(--mesh-deep);
}

.pfc-info strong {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-950);
}

.pfc-info span {
  font-size: 0.71rem;
  color: var(--ink-500);
}

.pfc-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: #147a43;
}

.chat-side-inspector {
  padding: 18px;
  background: #f4f9fd;
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-block h4 {
  margin: 4px 0 6px;
  font-size: 0.96rem;
  color: var(--ink-950);
}

.side-block p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-600);
}

.side-bridge-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bridge-item {
  display: flex;
  gap: 10px;
  padding: 11px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
}

.bridge-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--mesh-deep);
}

.bridge-item strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.bridge-item p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-600);
}

/* Deep Sections Shared */
.deep-section {
  padding: 88px 0;
}

.section-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 42px;
}

.sec-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mesh-deep);
}

.sec-eyebrow.light {
  color: #6fd4ff;
}

.section-intro-grid h2 {
  margin: 0;
  font-size: clamp(1.85rem, 2.8vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink-950);
}

.section-intro-grid.light h2 {
  color: #ffffff;
}

.sec-lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--ink-700);
}

.sec-lead.light {
  color: rgba(255, 255, 255, 0.76);
}

/* Section 01: Workflow Deep Dive */
.workflow-deep {
  background: linear-gradient(180deg, #ffffff 0%, #f3f9fd 100%);
  border-top: 1px solid var(--border-subtle);
}

.status-pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.pipe-step {
  padding: 13px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(10, 27, 46, 0.1);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pipe-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.pipe-step strong {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-950);
  margin-bottom: 2px;
}

.pipe-step small {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-600);
  line-height: 1.4;
}

.wf-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.bento-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(10, 27, 46, 0.1);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bento-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--mesh-deep);
  margin-bottom: 6px;
}

.bento-head h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.32;
  color: var(--ink-950);
}

.bento-card > p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-600);
}

.schema-compare {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schema-box {
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
}

.schema-box.story {
  background: #f5fbff;
  border-color: rgba(0, 168, 240, 0.24);
}

.schema-box.defect {
  background: #fff7f6;
  border-color: rgba(255, 122, 107, 0.28);
}

.schema-box strong {
  display: block;
  font-size: 0.84rem;
  margin-bottom: 6px;
  color: var(--ink-950);
}

.schema-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.79rem;
  color: var(--ink-700);
}

.schema-box li span {
  font-weight: 700;
  color: var(--ink-900);
  margin-right: 4px;
}

.dispatch-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.df-step {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
}

.df-step .mono {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--whisper);
}

.df-step strong {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-950);
  margin: 1px 0 2px;
}

.df-step small {
  display: block;
  font-size: 0.77rem;
  color: var(--ink-600);
}

.governance-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.governance-list li {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
}

.governance-list strong {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-950);
  margin-bottom: 2px;
}

.governance-list span {
  font-size: 0.78rem;
  color: var(--ink-600);
  line-height: 1.45;
}

/* Section 02: Self-Developed Project Files & Git (Dark Blueprint) */
.files-deep {
  background:
    radial-gradient(circle at 18% 15%, rgba(0, 168, 240, 0.2), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(124, 92, 255, 0.18), transparent 45%),
    linear-gradient(180deg, #071525 0%, #0a1b2e 100%);
  color: #ffffff;
}

.files-architecture-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.files-visual-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arch-layer-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.arch-layer-card.sandbox {
  background: linear-gradient(160deg, rgba(0, 168, 240, 0.12) 0%, rgba(124, 92, 255, 0.1) 100%);
  border-color: rgba(0, 168, 240, 0.34);
}

.layer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.layer-badge {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2f2ff;
}

.layer-badge.sky {
  background: rgba(0, 168, 240, 0.24);
  color: #7fdaff;
}

.layer-head .mono {
  font-size: 0.76rem;
  color: #9bc5e4;
}

.layer-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.layer-feature-pills span {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.9);
}

.arch-bridge-arrow {
  text-align: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: #8ad8ff;
  background: rgba(0, 168, 240, 0.12);
  border: 1px dashed rgba(0, 168, 240, 0.4);
}

.sandbox-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sandbox-specs-grid > div {
  padding: 13px;
  border-radius: 11px;
  background: rgba(7, 21, 37, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sandbox-specs-grid strong {
  display: block;
  font-size: 0.86rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.sandbox-specs-grid p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.files-pillars-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dark-feature-card {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex: 1;
}

.dfc-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--mesh);
}

.dark-feature-card h3 {
  margin: 4px 0 8px;
  font-size: 1.04rem;
  color: #ffffff;
}

.dark-feature-card p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
}

/* Section 03: Multi-Agent Roster & Dual Engine */
.agents-deep {
  background: #f5fafe;
}

.agents-roster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.agent-roster-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(10, 27, 46, 0.1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arc-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.arc-top img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  object-fit: cover;
}

.arc-top strong {
  display: block;
  font-size: 0.98rem;
  color: var(--ink-950);
}

.arc-top span {
  font-size: 0.75rem;
  color: var(--ink-600);
}

.arc-status {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.arc-status.online {
  background: var(--emerald-soft);
  color: #147a43;
}

.arc-status.working {
  background: var(--gold-soft);
  color: #9e6300;
}

.agent-roster-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-700);
  line-height: 1.56;
  flex: 1;
}

.arc-foot {
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.72rem;
  color: var(--ink-500);
}

.dual-engine-banner {
  padding: 28px 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(125deg, #ffffff 0%, #edf7fe 60%, #f1edff 100%);
  border: 1px solid rgba(0, 168, 240, 0.28);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  align-items: center;
}

.de-col h3 {
  margin: 4px 0 10px;
  font-size: 1.28rem;
  color: var(--ink-950);
}

.de-col p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-700);
  line-height: 1.65;
}

.de-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.de-mode-box {
  padding: 16px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(10, 27, 46, 0.1);
}

.de-mode-box strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-950);
  margin-bottom: 5px;
}

.de-mode-box p {
  margin: 0;
  font-size: 0.79rem;
  color: var(--ink-600);
  line-height: 1.5;
}

/* Closing Showcase Banner */
.closing-showcase {
  padding: 20px 0 80px;
  background: #f5fafe;
}

.closing-box {
  padding: 48px 36px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #08182b 0%, #0d2847 55%, #1d2452 100%);
  color: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-workbench);
}

.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(0, 168, 240, 0.18);
  border: 1px solid rgba(0, 168, 240, 0.36);
  color: #84dbff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.closing-box h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.25;
}

.closing-box p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.96rem;
}

.closing-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.closing-pills span {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2f2ff;
}

/* Footer */
.site-footer {
  padding: 26px 0 36px;
  background: #071423;
  color: rgba(255, 255, 255, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
}

.footer-brand img {
  border-radius: 6px;
}

.footer-brand span {
  color: rgba(255, 255, 255, 0.54);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .hero-header,
  .section-intro-grid,
  .files-architecture-grid,
  .dual-engine-banner {
    grid-template-columns: 1fr;
  }

  .workbench-body {
    grid-template-columns: 1fr;
  }

  .app-rail {
    display: none;
  }

  .workflow-split-workspace,
  .files-explorer-split,
  .chat-stage-grid {
    grid-template-columns: 1fr;
  }

  .wf-detail-drawer,
  .chat-side-inspector {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }

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

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

  .wf-bento-grid,
  .agents-roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topnav,
  .window-mode-hint {
    display: none;
  }

  .app-conversation-bar,
  .dialog-header-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-header-actions {
    width: 100%;
    overflow-x: auto;
  }

  .quick-create-group {
    grid-template-columns: 1fr;
  }

  .workflow-metrics-strip,
  .wf-board-canvas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .git-repos-grid,
  .sandbox-specs-grid,
  .de-modes,
  .status-pipeline,
  .wf-bento-grid,
  .agents-roster-grid {
    grid-template-columns: 1fr;
  }

  .files-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .files-row.head {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 28px);
  }

  .topbar-pill span:last-child {
    font-size: 0.72rem;
  }

  .workflow-metrics-strip,
  .wf-board-canvas {
    grid-template-columns: 1fr;
  }

  .drawer-grid-fields {
    grid-template-columns: 1fr;
  }

  .dispatch-action-bar {
    grid-template-columns: 1fr;
  }
}

/* Mobile has its own reading order and type scale, rather than a shrunken desktop UI. */
@media (max-width: 640px) {
  :root {
    --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    --font-serif: var(--font-sans);
    --font-mono: var(--font-sans);
  }

  body { font-size: 15px; line-height: 1.7; }
  .container { width: calc(100% - 36px); }
  .desktop-label { display: none !important; }
  .mobile-label { display: inline; }
  .serif-highlight,
  .serif-highlight-sky { font-family: var(--font-sans); font-weight: 700; }
  .serif-highlight { background: none; color: var(--mesh-deep); padding: 0; }
  .serif-highlight-sky { background: none; color: #77d7ff; }
  h1, h2, h3, h4 { text-wrap: pretty; }
  section[id], #workbench { scroll-margin-top: 76px; }
  :focus-visible { outline: 2px solid var(--mesh-deep); outline-offset: 3px; }

  .topbar-inner { min-height: 60px; gap: 12px; }
  .brand { gap: 8px; flex-shrink: 0; }
  .brand-logo { width: 29px; height: 29px; box-shadow: none; }
  .brand-word { font-size: 20px; }
  .brand-tag { display: none; }
  .topbar-pill { padding: 4px 10px; gap: 7px; white-space: nowrap; box-shadow: none; }
  .topbar-pill .mobile-label { font-size: 12px; font-weight: 500; }
  .pulse-dot { width: 6px; height: 6px; box-shadow: none; }

  .hero-stage { padding: 36px 0 48px; }
  .hero-stage > .container { display: flex; flex-direction: column; gap: 28px; }
  .hero-header { display: contents; }
  .hero-copy { order: 0; }
  .workbench-shell { order: 1; }
  .hero-pillars { order: 2; gap: 0; background: white; border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; }
  .eyebrow-badge { background: none; border: 0; padding: 0; margin-bottom: 14px; font-size: 12px; letter-spacing: .04em; color: var(--ink-600); font-weight: 500; }
  .badge-dot { width: 6px; height: 6px; background: var(--mesh); box-shadow: none; }
  .hero-copy h1 { font-size: clamp(28px, 7.8vw, 36px); line-height: 1.4; letter-spacing: -.035em; font-weight: 750; margin-bottom: 16px; }
  .hero-lede { font-size: 15px; line-height: 1.85; color: var(--ink-600); }
  .mesh-grid { opacity: .3; background-size: 36px 36px; }
  .orb { opacity: .28; }
  .pillar-card { padding: 20px; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .pillar-card + .pillar-card { border-top: 1px solid var(--border-subtle); }
  .pillar-card:hover { transform: none; box-shadow: none; }
  .pillar-head { gap: 12px; margin-bottom: 8px; }
  .pillar-idx { font-size: 10px; letter-spacing: .04em; white-space: nowrap; font-weight: 600; }
  .pillar-chip { font-size: 10px; white-space: nowrap; padding: 2px 7px; font-weight: 500; }
  .pillar-card strong { font-size: 17px; margin-bottom: 6px; }
  .pillar-card p { font-size: 14px; line-height: 1.8; }

  .workbench-shell { border-radius: 16px; box-shadow: 0 12px 32px -12px rgba(10,27,46,.22); width: 100%; }
  .window-chrome { justify-content: flex-start; gap: 14px; padding: 12px 16px; }
  .traffic-lights { gap: 5px; flex-shrink: 0; }
  .traffic-lights span { width: 7px; height: 7px; }
  .window-location { font-size: 12px; gap: 6px; white-space: nowrap; }
  .window-location .sep,
  .window-location > span:not(.mobile-label),
  .window-location .mounted-badge { display: none; }
  .window-location .icon { width: 14px; height: 14px; }
  .app-conversation-bar { padding: 16px 12px 12px; gap: 14px; }
  .conv-identity { width: 100%; gap: 9px; align-items: flex-start; }
  .conv-identity > div { min-width: 0; }
  .conv-hash { width: 30px; height: 30px; font-size: 16px; border-radius: 8px; flex-shrink: 0; }
  .conv-title-row { gap: 5px; }
  .conv-title-row > strong { font-size: 14px; width: 100%; }
  .project-mount-pill { font-size: 11px; border: 0; padding: 0; background: none; font-weight: 400; }
  .quota-pill, .conv-identity p { display: none; }
  .app-header-actions { display: grid; grid-template-columns: .85fr 1fr 1.15fr; width: 100%; gap: 3px; padding: 4px; overflow: visible; border-radius: 10px; }
  .panel-switch-btn { justify-content: center; min-width: 0; min-height: 44px; gap: 5px; padding: 6px 2px; font-size: 12px; white-space: nowrap; font-weight: 600; border-radius: 7px; }
  .panel-switch-btn .icon { width: 13px; height: 13px; }
  .panel-switch-btn .notif-badge,
  .panel-switch-btn .count-pill { display: none; }
  .workbench-body { min-height: 0; }
  .workbench-panel { min-width: 0; }
  .dialog-header-bar { padding: 16px 14px 12px; gap: 12px; }
  .dialog-title-line { gap: 6px; margin: 0; }
  .dialog-title-line h3 { font-size: 16px; line-height: 1.5; font-weight: 600; }
  .dialog-status-pill,
  .version-lock-pill,
  .dialog-header-bar p,
  .dialog-header-controls > .dialog-readonly-btn,
  .workflow-filter-bar { display: none; }
  .dialog-header-controls { width: 100%; }
  .subview-switch { width: 100%; }
  .subview-btn { flex: 1; min-height: 36px; font-size: 12px; }
  .workflow-metrics-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 0 14px 14px; }
  .wf-metric-item { padding: 10px; border: 0; border-radius: 8px; }
  .wf-metric-item:nth-child(2),
  .wf-metric-item:nth-child(3),
  .wf-metric-item:nth-child(5) { display: none; }
  .wf-metric-label { font-size: 11px; }
  .wf-metric-item strong { font-size: 12px; line-height: 1.6; }
  .workflow-split-workspace { display: flex; flex-direction: column; min-width: 0; }
  .mobile-board-hint { display: block; margin: 0; padding: 10px 14px 0; background: #f2f8fc; font-size: 11px; color: var(--ink-500); }
  .mobile-detail-toggle { scroll-margin-top: 70px; }
  .wf-board-canvas { display: flex; align-items: stretch; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; gap: 10px; padding: 14px; scrollbar-width: thin; }
  .wf-column { flex: 0 0 86%; min-width: 0; scroll-snap-align: center; padding: 10px; gap: 10px; }
  .wf-col-head { padding: 4px 3px 10px; }
  .wf-col-head strong { font-size: 13px; }
  .wf-card { padding: 13px; gap: 11px; box-shadow: none; }
  .wf-card h4 { font-size: 14px; font-weight: 600; line-height: 1.7; }
  .issue-code { font-size: 11px; font-weight: 500; }
  .type-badge { font-size: 10px; padding: 2px 6px; font-weight: 500; }
  .prio-tag, .assignee-chip, .wf-card-foot, .subtask-pill, .subtask-done, .evidence-pill { font-size: 11px; font-weight: 500; }
  .wf-card-meta, .wf-card-foot { flex-wrap: wrap; gap: 6px; }
  .wf-convene-callout p { font-size: 13px; line-height: 1.75; }
  .mobile-detail-toggle { display: flex; justify-content: space-between; align-items: center; min-height: 48px; width: 100%; text-align: left; font-size: 13px; font-weight: 600; padding: 12px 16px; border-top: 1px solid var(--border-subtle); background: white; color: var(--mesh-deep); }
  .wf-detail-drawer { display: none; }
  .wf-detail-drawer.is-mobile-open { display: flex; }
  .drawer-head { padding: 16px 14px; flex-direction: column; }
  .drawer-tabs { display: none; }
  .drawer-key-row { flex-wrap: wrap; }
  .drawer-head h4 { font-size: 16px; line-height: 1.6; margin-top: 8px; }
  .drawer-body { padding: 14px; gap: 16px; }
  .drawer-grid-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .field-box label { font-size: 11px; }
  .field-box strong { white-space: normal; overflow-wrap: anywhere; font-size: 12px; font-weight: 500; }
  .spec-label { font-size: 11px; font-weight: 600; margin-bottom: 5px; }
  .spec-item p, .agent-dispatch-card p { font-size: 13px; line-height: 1.8; }
  .dispatch-top { align-items: flex-start; }
  .dispatch-top > .mono { display: none; }
  .dispatch-badge { font-size: 12px; }
  .dispatch-input { display: none; }
  .dispatch-action-bar { display: block; }
  .dispatch-btn { display: block; text-align: center; font-size: 12px; padding: 9px; }
  .drawer-sec-head { flex-wrap: wrap; gap: 4px; font-size: 12px; }
  .drawer-subtask-list li { font-size: 12px; line-height: 1.8; align-items: flex-start; }
  .ref-chip { flex-wrap: wrap; gap: 5px; font-size: 12px; overflow-wrap: anywhere; }
  .ref-chip span { flex: 1; min-width: 0; font-weight: 500; }
  .ref-chip small { width: 100%; margin-left: 21px; font-size: 11px; }
  .wf-list-canvas { padding: 12px; }
  .wf-table, .wf-table tbody { display: block; border: 0; background: none; }
  .wf-table thead, .wf-table .subtask-row { display: none; }
  .wf-table tbody tr { display: flex; flex-wrap: wrap; gap: 6px; padding: 13px; margin-bottom: 8px; border: 1px solid var(--border-subtle); border-radius: 10px; background: white; }
  .wf-table td { display: block; padding: 0; border: 0; font-size: 12px; }
  .wf-table td:nth-child(2) { width: 100%; order: 1; padding: 4px 0; font-size: 14px; }
  .wf-table td:nth-child(n+4) { order: 2; }
  .wf-table td:last-child { display: none; }
  .wf-table td strong { font-weight: 500; }

  .git-panel-replica { margin: 0 12px; padding: 14px; }
  .git-panel-header { margin-bottom: 12px; }
  .git-title-row strong { font-size: 14px; }
  .git-panel-header > .fake-primary-btn,
  .cred-pill, .git-panel-header p,
  .dialog-header-controls > .fake-select { display: none; }
  .git-repo-card { min-width: 0; padding: 12px; }
  .repo-top { gap: 8px; }
  .repo-top strong { font-size: 13px; overflow-wrap: anywhere; }
  .repo-status.ready { font-size: 10px; white-space: nowrap; }
  .git-repo-card p { font-size: 11px; overflow-wrap: anywhere; }
  .repo-foot { flex-wrap: wrap; gap: 4px; font-size: 11px; overflow-wrap: anywhere; }
  .repo-foot span:last-child { display: none; }
  .files-toolbar-bar { padding: 14px; }
  .files-nav-btns { display: none; }
  .quota-meter-wrap { min-width: 0; flex: 1; }
  .quota-text { gap: 10px; font-size: 11px; line-height: 1.6; }
  .files-explorer-split { padding: 12px; gap: 16px; }
  .breadcrumb-strip { font-size: 11px; flex-wrap: wrap; padding: 10px 12px; }
  .breadcrumb-strip > span:nth-child(3) { display: none; }
  .files-row { padding: 14px 12px; gap: 6px; font-size: 11px; }
  .file-main { align-items: flex-start; gap: 8px; }
  .file-main > div { min-width: 0; }
  .file-main strong { font-size: 13px; overflow-wrap: anywhere; }
  .file-main small { font-size: 11px; line-height: 1.7; margin-top: 4px; }
  .row-actions { display: none; }
  .sandbox-architecture-card { padding: 16px; }
  .sandbox-architecture-card p, .sandbox-rules { font-size: 13px; line-height: 1.8; }
  .terminal-mini { font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
  .chat-timeline { padding: 14px 12px; gap: 18px; }
  .chat-banner { font-size: 12px; line-height: 1.8; }
  .chat-banner > .mono { display: none; }
  .msg-row { gap: 8px; }
  .msg-avatar { width: 28px; height: 28px; border-radius: 8px; }
  .msg-content { padding: 12px; min-width: 0; }
  .msg-content p { font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
  .msg-meta { gap: 5px; }
  .msg-meta strong { font-size: 13px; }
  .role-pill, .engine-pill { font-size: 10px; }
  .engine-pill { display: none; }
  .msg-meta time { font-size: 10px; }
  .system-dispatch { padding-left: 0; }
  .dispatch-pill-line { align-items: flex-start; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
  .project-file-card-replica { flex-wrap: wrap; padding: 10px; gap: 6px; }
  .pfc-info { min-width: 0; flex: 1; }
  .pfc-info strong { font-size: 12px; overflow-wrap: anywhere; }
  .pfc-info span { font-size: 11px; }
  .pfc-tag { margin-left: 0; font-size: 10px; }
  .chat-side-inspector { padding: 18px 14px; }
  .side-block p, .bridge-item p { font-size: 13px; line-height: 1.8; }

  .deep-section { padding: 48px 0; }
  .section-intro-grid { gap: 16px; margin-bottom: 24px; }
  .sec-eyebrow { font-size: 10px; letter-spacing: .04em; margin-bottom: 10px; line-height: 1.8; }
  .section-intro-grid h2 { font-size: 24px; line-height: 1.5; letter-spacing: -.025em; }
  .section-intro-grid h2 .desktop-label br { display: none; }
  .sec-lead { font-size: 14px; line-height: 1.85; }
  .status-pipeline { gap: 8px; margin-bottom: 20px; }
  .pipe-step { padding: 14px; box-shadow: none; }
  .pipe-step strong { font-size: 13px; font-weight: 600; }
  .pipe-step small { font-size: 12px; line-height: 1.7; }
  .wf-bento-grid { gap: 14px; }
  .bento-card { padding: 20px; gap: 14px; box-shadow: none; border-radius: 14px; }
  .bento-tag { font-size: 10px; letter-spacing: .04em; }
  .bento-head h3 { font-size: 18px; line-height: 1.55; }
  .bento-card > p { font-size: 14px; line-height: 1.8; }
  .schema-box strong, .df-step strong, .governance-list strong { font-size: 13px; font-weight: 600; }
  .schema-box ul, .df-step small, .governance-list span { font-size: 12px; line-height: 1.85; }
  .files-architecture-grid { gap: 16px; }
  .arch-layer-card { padding: 18px; border-radius: 14px; }
  .layer-head { align-items: flex-start; }
  .layer-badge { font-size: 11px; padding: 0; background: none; line-height: 1.8; }
  .layer-head .mono { font-size: 11px; }
  .layer-feature-pills { gap: 7px; }
  .layer-feature-pills span { font-size: 12px; font-weight: 400; padding: 5px 8px; }
  .arch-bridge-arrow { font-size: 11px; line-height: 1.8; border-radius: 10px; }
  .sandbox-specs-grid strong { font-size: 14px; }
  .sandbox-specs-grid p { font-size: 13px; line-height: 1.85; }
  .dark-feature-card { padding: 20px; }
  .dark-feature-card h3 { font-size: 17px; line-height: 1.6; }
  .dark-feature-card p { font-size: 14px; line-height: 1.85; }
  .agents-roster-grid { gap: 12px; }
  .agent-roster-card { padding: 18px; box-shadow: none; }
  .arc-top { gap: 9px; }
  .arc-top > div { min-width: 0; flex: 1; }
  .arc-top img { width: 38px; height: 38px; border-radius: 10px; }
  .arc-top strong { font-size: 15px; }
  .arc-top span { font-size: 11px; line-height: 1.6; }
  .arc-status { flex-shrink: 0; padding: 2px 6px; }
  .agent-roster-card p { font-size: 14px; line-height: 1.85; }
  .arc-foot { font-size: 11px; }
  .dual-engine-banner { padding: 20px; gap: 18px; box-shadow: none; border-radius: 16px; }
  .de-col h3 { font-size: 18px; line-height: 1.6; }
  .de-col p { font-size: 14px; line-height: 1.85; }
  .de-mode-box strong { font-size: 14px; }
  .de-mode-box p { font-size: 13px; line-height: 1.8; }
  .closing-showcase { padding: 0 0 48px; }
  .closing-box { padding: 28px 20px; border-radius: 16px; box-shadow: none; }
  .closing-badge { font-size: 9px; letter-spacing: .02em; padding: 4px 8px; }
  .closing-box h2 { font-size: 23px; line-height: 1.65; }
  .closing-box p { font-size: 13px; line-height: 1.85; }
  .closing-pills { gap: 7px; }
  .closing-pills span { font-size: 11px; padding: 4px 10px; font-weight: 400; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-brand { flex-wrap: wrap; font-size: 13px; }
  .footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; font-size: 12px; }
  .footer-copy { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
