:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5f6d69;
  --line: #dce5df;
  --panel: #f7f9f6;
  --accent: #0f766e;
  --accent-strong: #0f5f59;
  --warm: #d97706;
  --paper: #ffffff;
  --shadow: 0 18px 46px rgba(22, 33, 31, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  width: 188px;
  border-right: 1px solid rgba(220, 229, 223, 0.85);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  content: "";
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(22px, 5.2vw, 64px) 10px calc(188px + clamp(18px, 3vw, 34px));
  border-bottom: 1px solid rgba(219, 227, 220, 0.8);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.tool-dock {
  position: fixed;
  top: 88px;
  bottom: 12px;
  left: 14px;
  z-index: 12;
  display: flex;
  width: 160px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 118, 110, 0.42) transparent;
}

.tool-dock::-webkit-scrollbar {
  width: 5px;
}

.tool-dock::-webkit-scrollbar-track {
  background: transparent;
}

.tool-dock::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.34);
}

.dock-title {
  width: 100%;
  margin: 0 0 5px;
  padding-left: 2px;
  border-left: 4px solid var(--accent);
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
  text-align: left;
}

.dock-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 0 9px;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(23, 33, 31, 0.06);
  color: var(--ink);
  transition:
    width 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.dock-item:hover,
.dock-item.active {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.14);
  transform: translateX(3px);
}

.dock-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f4f7f6;
  box-shadow:
    inset 0 0 0 1px rgba(23, 33, 31, 0.06),
    0 6px 14px rgba(23, 33, 31, 0.06);
}

.dock-icon img {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.dock-item.is-preview .dock-icon {
  background: #f0f5ff;
}

.dock-item.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.dock-item > span:last-child {
  display: block;
  margin-left: 0;
  white-space: nowrap;
}

.dock-item strong,
.dock-item small {
  display: block;
}

.dock-item strong {
  font-size: 11.5px;
  line-height: 1.2;
}

.dock-item small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 8.5px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 18px rgba(15, 118, 110, 0.16));
}

.brand strong,
.brand small {
  display: block;
}

.brand span {
  min-width: 0;
}

.brand strong {
  max-width: min(46vw, 520px);
  overflow-wrap: anywhere;
  font-size: clamp(20px, 1.75vw, 28px);
  line-height: 1.2;
  font-weight: 900;
}

.brand small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 13px;
}

.nav a:hover {
  color: var(--accent-strong);
}

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.74fr) minmax(540px, 0.86fr);
  align-items: center;
  gap: clamp(30px, 4vw, 56px);
  min-height: 620px;
  padding: clamp(42px, 4.5vw, 64px) clamp(22px, 5.2vw, 64px) clamp(42px, 4vw, 56px) calc(188px + clamp(18px, 3vw, 34px));
  overflow: visible;
  border-bottom: 1px solid rgba(220, 229, 223, 0.66);
  max-width: 1320px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  max-width: 500px;
  font-size: clamp(34px, 2.9vw, 42px);
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.28;
}

.lead {
  max-width: 520px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 760;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: #fff;
}

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

.hero-showcase {
  position: relative;
  justify-self: stretch;
  width: min(100%, 760px);
  min-height: 500px;
}

.hero-showcase::before {
  position: absolute;
  inset: 38px 18px 44px 38px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(35, 104, 216, 0.05)),
    radial-gradient(circle at 72% 22%, rgba(217, 119, 6, 0.12), transparent 34%);
  box-shadow: 0 30px 90px rgba(23, 33, 31, 0.1);
  content: "";
}

.showcase-card {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(23, 33, 31, 0.18);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    z-index 0.22s ease;
  animation: float-card 7s ease-in-out infinite;
}

.showcase-card:hover {
  z-index: 5;
  box-shadow: 0 28px 70px rgba(15, 118, 110, 0.22);
  transform: translateY(-8px) scale(1.02);
}

.showcase-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-card span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(17, 29, 27, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-hermes {
  top: 8px;
  left: 36px;
  z-index: 2;
  width: 50%;
  height: 36%;
}

.card-mcp {
  top: 42px;
  right: 0;
  z-index: 3;
  width: 54%;
  height: 39%;
  animation-delay: -1.4s;
}

.card-digital {
  right: 54px;
  bottom: 14px;
  z-index: 4;
  width: 57%;
  height: 40%;
  animation-delay: -2.6s;
}

.card-longclaw {
  left: 0;
  bottom: 54px;
  z-index: 3;
  width: 52%;
  height: 38%;
  animation-delay: -4s;
}

@keyframes float-card {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

.section {
  padding: clamp(38px, 4.8vw, 60px) clamp(22px, 5.2vw, 64px) clamp(38px, 4.8vw, 60px) calc(188px + clamp(18px, 3vw, 34px));
}

.billing-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  padding: 30px clamp(22px, 5.2vw, 64px) 34px calc(188px + clamp(18px, 3vw, 34px));
  border-top: 1px solid rgba(220, 229, 223, 0.66);
  border-bottom: 1px solid rgba(220, 229, 223, 0.76);
  background: #f8faf7;
}

.connector-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(520px, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: stretch;
  padding: 32px clamp(22px, 5.2vw, 64px) 36px calc(188px + clamp(18px, 3vw, 34px));
  border-bottom: 1px solid rgba(220, 229, 223, 0.76);
  background: #fff;
}

.billing-copy {
  max-width: 520px;
}

.connector-copy {
  max-width: 620px;
}

.billing-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(22px, 2vw, 28px);
}

.billing-copy p,
.connector-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}

.connector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.connector-status-card {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  max-width: 520px;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  padding: 13px 14px;
  background: #f7f9f6;
}

.connector-status-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e8eef0;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}

.connector-status-card[data-state="online"] span {
  background: #dcfce7;
  color: #15803d;
}

.connector-status-card[data-state="syncing"] span {
  background: #e0f2fe;
  color: #0369a1;
}

.connector-status-card[data-state="offline"] span {
  background: #f1f5f9;
  color: #64748b;
}

.connector-status-card strong {
  color: var(--ink);
  font-size: 15px;
}

.connector-status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.58;
}

.connector-status-card a {
  width: fit-content;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.billing-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.connector-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.plan-tile {
  display: grid;
  min-height: 122px;
  align-content: space-between;
  gap: 9px;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 33, 31, 0.06);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.plan-tile:hover {
  border-color: rgba(15, 118, 110, 0.38);
  box-shadow: 0 18px 38px rgba(15, 118, 110, 0.12);
  transform: translateY(-2px);
}

.plan-tile.featured {
  border-color: rgba(15, 118, 110, 0.48);
  background: #edf8f5;
}

.plan-tile span,
.plan-tile small {
  display: block;
}

.plan-tile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.plan-tile small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.connector-rules article {
  display: grid;
  min-height: 148px;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: #f7f9f6;
  box-shadow: 0 12px 28px rgba(23, 33, 31, 0.05);
}

.connector-rules strong,
.connector-rules span {
  display: block;
}

.connector-rules strong {
  font-size: 15px;
}

.connector-rules span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e6f3ef;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
}

.connector-rules p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.tool-workspace {
  padding: 18px clamp(22px, 5.2vw, 64px) 34px calc(188px + clamp(18px, 3vw, 34px));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f7f9f6;
}

.workspace-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

.workspace-bar h2 {
  margin-bottom: 0;
}

.workspace-actions {
  display: flex;
  gap: 10px;
}

#toolFrame {
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  border: 1px solid rgba(23, 33, 31, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(22, 33, 31, 0.08);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

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

.service-card {
  display: flex;
  min-height: 198px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.service-card:hover {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 14px 34px rgba(22, 33, 31, 0.08);
  transform: translateY(-2px);
}

.service-icon {
  display: inline-grid;
  width: auto;
  min-width: 42px;
  height: 28px;
  margin-bottom: 18px;
  padding: 0 10px;
  place-items: center;
  border-radius: 7px;
  background: #e6f3ef;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
}

.service-icon.online {
  background: #e6f3ef;
  color: var(--accent-strong);
}

.service-icon.build {
  background: #fff3d9;
  color: var(--warm);
}

.card-link {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  border-bottom: 1px solid currentColor;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.card-link.muted {
  color: var(--muted);
}

.service-card p,
.platform p,
.contact p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

.platform {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  background: #f3f0e8;
}

.status-list {
  display: grid;
  gap: 12px;
}

.status-list a,
.contact-panel > div {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(23, 33, 31, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.status-list a:hover {
  border-color: var(--accent);
}

.status-list span,
.contact-panel span {
  color: var(--muted);
}

.status-list strong,
.contact-panel strong {
  overflow-wrap: anywhere;
  text-align: right;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.contact-panel {
  display: grid;
  gap: 12px;
}

.roadmap {
  background: var(--ink);
  color: #fff;
}

.roadmap .eyebrow {
  color: #7dd3c7;
}

.roadmap-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-list li {
  min-height: 154px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.roadmap-list strong,
.roadmap-list span {
  display: block;
}

.roadmap-list strong {
  margin-bottom: 12px;
  font-size: 15px;
}

.roadmap-list span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 24px clamp(22px, 5.2vw, 64px) 26px calc(188px + clamp(18px, 3vw, 34px));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer a {
  color: var(--accent-strong);
  font-weight: 700;
}

.footer-main,
.footer-links,
.footer-report {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.footer-main {
  color: var(--ink);
  font-weight: 700;
}

.footer-report {
  width: 100%;
}

.legal-footer {
  margin-top: 18px;
  padding: 18px 0 0;
}

.legal-page {
  min-height: 100vh;
  background: #f7f9f6;
}

.legal-shell {
  width: min(100% - 44px, 940px);
  margin: 0 auto;
  padding: 34px 0 54px;
}

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

.legal-header a {
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  padding: 9px 12px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.legal-brand {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-card h1 {
  max-width: 780px;
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.legal-meta {
  display: grid;
  gap: 4px;
  margin: 0 0 28px;
  color: var(--muted);
}

.legal-card h2 {
  margin: 30px 0 12px;
  font-size: 20px;
}

.legal-card h3 {
  margin: 22px 0 8px;
  font-size: 16px;
}

.legal-card p,
.legal-card li {
  color: #34423f;
  font-size: 14px;
  line-height: 1.82;
}

.legal-card ul,
.legal-card ol {
  margin: 8px 0 0;
  padding-left: 22px;
}

.legal-contact {
  margin-top: 24px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  padding: 16px;
  background: #eef8f5;
}

.legal-contact strong,
.legal-contact a {
  color: var(--accent-strong);
}

.media-page {
  min-height: 100vh;
  background: #f7f9f6;
}

.media-main {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 48px) 34px calc(188px + clamp(18px, 3vw, 34px));
}

.embed-mode .site-header,
.embed-mode .tool-dock {
  display: none;
}

.embed-mode .media-main {
  min-height: 100vh;
  padding: 14px;
}

.media-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(22, 33, 31, 0.07);
}

.media-panel header {
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.media-panel h1,
.media-panel h2 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.2;
}

.media-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.media-form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.media-field {
  display: grid;
  gap: 8px;
}

.media-field label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.media-field textarea,
.media-field input,
.media-field select {
  width: 100%;
  border: 1px solid rgba(23, 33, 31, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.media-field textarea {
  min-height: 128px;
  resize: vertical;
}

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

.media-segment button,
.media-choice button {
  min-height: 38px;
  border: 1px solid rgba(23, 33, 31, 0.14);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 820;
  cursor: pointer;
}

.media-segment button.active,
.media-choice button.active {
  border-color: rgba(15, 118, 110, 0.45);
  background: #edf8f5;
  color: var(--accent-strong);
}

.media-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.media-cost {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: #f3fbf8;
}

.media-cost strong,
.media-cost span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.media-cost strong {
  color: var(--accent-strong);
  font-size: 14px;
}

.media-cost span {
  color: var(--muted);
  font-size: 12px;
}

.media-submit {
  justify-self: start;
}

.media-submit[disabled] {
  cursor: not-allowed;
  opacity: 0.62;
}

.media-message {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.media-message.error {
  color: #b42318;
}

.media-message.ok {
  color: var(--accent-strong);
}

.media-preview {
  display: grid;
  gap: 16px;
}

.media-output {
  display: grid;
  min-height: 360px;
  place-items: center;
  border: 1px dashed rgba(15, 118, 110, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(217, 119, 6, 0.06)),
    #fff;
  color: var(--muted);
  text-align: center;
}

.media-output strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 16px;
}

.media-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.media-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.media-status span,
.media-status strong {
  display: block;
}

.media-status span {
  color: var(--muted);
  font-size: 11px;
}

.media-status strong {
  margin-top: 5px;
  font-size: 13px;
}

.media-task-list {
  display: grid;
  gap: 10px;
}

.media-task-item {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.media-task-item strong,
.media-task-item span {
  display: block;
}

.media-task-item strong {
  font-size: 13px;
}

.media-task-item span {
  color: var(--muted);
  font-size: 12px;
}

.code-page {
  background: #f7f9f6;
}

.code-page::before {
  display: none;
}

.code-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(20px, 4vw, 54px);
  border-bottom: 1px solid rgba(220, 229, 223, 0.86);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.code-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 54px;
}

.code-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.code-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 3vw, 42px);
}

.code-hero .lead {
  margin-bottom: 0;
}

.kernel-summary {
  display: grid;
  min-width: 210px;
  gap: 5px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(23, 33, 31, 0.06);
}

.kernel-summary span {
  color: var(--muted);
  font-size: 12px;
}

.kernel-summary strong {
  color: var(--accent-strong);
  font-size: 15px;
}

.kernel-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(520px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.kernel-panel,
.task-composer {
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(23, 33, 31, 0.07);
}

.kernel-panel {
  padding: 18px;
}

.section-heading.compact {
  margin-bottom: 14px;
}

.section-heading.compact h2 {
  margin-bottom: 0;
  font-size: 20px;
}

.kernel-list {
  display: grid;
  gap: 10px;
}

.kernel-card {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.kernel-card:hover,
.kernel-card.active {
  border-color: rgba(15, 118, 110, 0.42);
  background: #f0f8f5;
}

.kernel-card.kernel-readonly {
  cursor: default;
}

.kernel-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f4f7f6;
}

.kernel-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.kernel-card strong,
.kernel-card small {
  display: block;
}

.kernel-card strong {
  font-size: 14px;
}

.kernel-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.kernel-card small[data-status="pending"] {
  color: #b45309;
}

.kernel-card small[data-status="poc"] {
  color: var(--accent-strong);
}

.kernel-card small[data-status="ready"] {
  color: var(--accent-strong);
}

.task-composer {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.composer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.composer-head h2 {
  margin: 0;
  font-size: 24px;
}

.composer-head span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
}

.task-composer textarea {
  width: 100%;
  min-height: 230px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  line-height: 1.65;
}

.task-composer textarea:focus {
  border-color: rgba(15, 118, 110, 0.56);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.composer-message {
  margin: 0;
  border-left: 3px solid var(--accent);
  padding: 9px 11px;
  background: #f0f8f5;
  color: var(--muted);
  font-size: 12px;
}

.code-workbench {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(280px, 0.42fr);
  gap: 18px;
  align-items: stretch;
}

.code-composer textarea {
  min-height: 300px;
}

.code-side-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.code-side-panel article,
.kernel-status-detail article {
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 33, 31, 0.05);
}

.code-side-panel strong,
.kernel-status-detail strong,
.kernel-status-detail span,
.kernel-status-detail small {
  display: block;
}

.code-side-panel strong,
.kernel-status-detail strong {
  color: var(--ink);
  font-size: 15px;
}

.code-side-panel p,
.kernel-status-detail p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.code-result {
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 33, 31, 0.05);
  min-width: 0;
}

.code-result-body {
  margin-top: 14px;
  white-space: pre-wrap;
  line-height: 1.75;
  color: var(--ink);
  font-size: 14px;
}

.code-shell-chat {
  width: min(1460px, calc(100% - 40px));
  padding-top: 14px;
  padding-bottom: 18px;
}

.code-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  padding: 10px 0 12px;
}

.code-chat-header h1 {
  margin-bottom: 6px;
  font-size: clamp(22px, 2vw, 30px);
}

.code-chat-header .lead {
  max-width: 860px;
  margin-bottom: 0;
  font-size: 13px;
}

.code-chat-workbench {
  display: grid;
  height: calc(100vh - 188px);
  min-height: 610px;
  grid-template-columns: 270px minmax(520px, 1fr);
  gap: 14px;
  align-items: stretch;
  overflow: hidden;
  scroll-margin-top: 78px;
}

.code-session-panel,
.code-chat-panel {
  min-width: 0;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(23, 33, 31, 0.07);
}

.code-session-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
}

.code-session-head,
.code-chat-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.code-session-head h2,
.code-chat-titlebar h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background: #ecf8f4;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.icon-button:hover {
  border-color: rgba(15, 118, 110, 0.48);
  background: #ddf3ec;
}

.code-session-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.code-session-row {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
}

.code-session-item {
  width: 100%;
  min-width: 0;
  min-height: 74px;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  padding: 12px 42px 11px 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.code-session-item:hover,
.code-session-row.active .code-session-item,
.code-session-item.active {
  border-color: rgba(15, 118, 110, 0.42);
  background: #edf8f5;
}

.code-session-item strong,
.code-session-item small {
  display: block;
}

.code-session-item strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-session-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.code-session-delete {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(23, 33, 31, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #8a9893;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.code-session-delete:hover {
  border-color: rgba(185, 28, 28, 0.24);
  background: #fff1f2;
  color: #b91c1c;
}

.code-session-status {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.code-chat-panel {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(320px, 1fr) auto;
  overflow: hidden;
}

.code-chat-titlebar {
  border-bottom: 1px solid rgba(23, 33, 31, 0.08);
  padding: 15px 16px 13px;
}

.code-chat-titlebar span {
  border-radius: 999px;
  padding: 5px 10px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.code-messages {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(247, 249, 246, 0.7), rgba(255, 255, 255, 0.96));
}

.code-empty-state {
  width: min(560px, 100%);
  margin: auto;
  border: 1px dashed rgba(15, 118, 110, 0.24);
  border-radius: 10px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.code-empty-state strong {
  display: block;
  font-size: 20px;
}

.code-empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.code-message {
  display: grid;
  max-width: min(760px, 86%);
  gap: 6px;
}

.code-message span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.code-message div {
  border: 1px solid rgba(23, 33, 31, 0.08);
  border-radius: 10px;
  padding: 11px 13px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.72;
  overflow-wrap: anywhere;
  box-shadow: 0 8px 18px rgba(23, 33, 31, 0.04);
}

.code-message-user {
  align-self: flex-end;
}

.code-message-user span {
  text-align: right;
}

.code-message-user div {
  border-color: rgba(15, 118, 110, 0.18);
  background: #eaf7f2;
}

.code-chat-composer {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(23, 33, 31, 0.08);
  padding: 13px 14px;
  background: #fff;
}

.code-attachment-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 118px;
  overflow-y: auto;
}

.attachment-pill {
  display: flex;
  max-width: min(100%, 320px);
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 10px;
  padding: 6px 7px;
  background: #f8fbfa;
}

.attachment-pill img,
.attachment-file-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #eef6f3;
  color: var(--accent-strong);
  font-size: 9px;
  font-weight: 900;
  object-fit: cover;
}

.attachment-pill span {
  min-width: 0;
}

.attachment-pill strong,
.attachment-pill small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-pill strong {
  max-width: 210px;
  font-size: 12px;
}

.attachment-pill small {
  max-width: 210px;
  color: var(--muted);
  font-size: 10px;
}

.attachment-pill button {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7b8883;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

.attachment-pill button:hover {
  background: #fff1f2;
  color: #b91c1c;
}

.code-chat-composer textarea {
  width: 100%;
  min-height: 82px;
  max-height: 180px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
}

.code-chat-composer textarea:focus {
  border-color: rgba(15, 118, 110, 0.56);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.code-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.code-composer-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.attachment-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(23, 33, 31, 0.12);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
}

.attachment-button:hover {
  border-color: rgba(15, 118, 110, 0.36);
  background: #edf8f5;
}

.code-composer-actions .composer-message {
  min-width: 0;
  flex: 1 1 auto;
}

.code-side-panel-compact {
  display: none;
}

.kernel-status-detail {
  display: grid;
  gap: 10px;
}

.kernel-status-detail span {
  width: fit-content;
  margin-top: 7px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #edf8f5;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
}

.kernel-status-detail small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 860px) {
  body::before {
    display: none;
  }

  .site-header {
    align-items: flex-start;
    padding-left: clamp(22px, 5.2vw, 64px);
  }

  .tool-dock {
    position: sticky;
    top: 0;
    z-index: 11;
    flex-direction: row;
    width: auto;
    height: auto;
    padding: 10px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
  }

  .dock-title {
    display: none;
  }

  .dock-item,
  .dock-item:hover,
  .dock-item.active {
    width: auto;
    min-width: 94px;
    height: 42px;
    justify-content: flex-start;
    padding: 0 10px;
    transform: none;
  }

  .dock-icon {
    width: 26px;
    height: 26px;
  }

  .dock-icon img {
    width: 21px;
    height: 21px;
  }

  .dock-item > span:last-child {
    display: block;
  }

  .nav {
    padding-top: 8px;
  }

  .hero,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-left: clamp(22px, 5.2vw, 64px);
  }

  .section,
  .billing-band,
  .connector-band,
  .tool-workspace,
  .media-main,
  .footer {
    padding-left: clamp(22px, 5.2vw, 64px);
  }

  .media-main {
    grid-template-columns: 1fr;
  }

  .billing-band {
    grid-template-columns: 1fr;
  }

  .connector-band {
    grid-template-columns: 1fr;
  }

  .code-topbar,
  .code-hero,
  .code-chat-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .code-shell {
    width: min(100% - 28px, 760px);
  }

  .code-shell-chat {
    width: min(100% - 28px, 920px);
  }

  .kernel-layout {
    grid-template-columns: 1fr;
  }

  .code-workbench,
  .code-chat-workbench {
    grid-template-columns: 1fr;
  }

  .code-chat-workbench {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .code-chat-panel {
    min-height: 68vh;
  }

  .code-side-panel-compact {
    max-height: none;
  }

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

  .connector-rules {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    width: min(100%, 680px);
    min-height: 440px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: static;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 30px;
  }

  .lead {
    font-size: 14px;
  }

  .brand strong {
    font-size: 22px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .hero-showcase {
    min-height: 620px;
  }

  .showcase-card {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    margin-bottom: 14px;
    aspect-ratio: 16 / 9;
  }

  .hero-showcase::before {
    display: none;
  }

  .status-list a,
  .contact-panel > div,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-list strong,
  .contact-panel strong {
    text-align: left;
  }

  .roadmap-list {
    grid-template-columns: 1fr;
  }

  .billing-plans {
    grid-template-columns: 1fr;
  }

  .media-row,
  .media-choice,
  .media-status-grid {
    grid-template-columns: 1fr;
  }

  .plan-tile {
    min-height: 104px;
  }
}
