: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: 52px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 10px;
  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: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  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: 25px;
  height: 25px;
  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: flex;
  min-width: 0;
  justify-content: center;
  margin-left: 0;
  white-space: nowrap;
}

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

.dock-item strong {
  font-size: 13.2px;
  line-height: 1.12;
}

.dock-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.12;
}

.dock-item-primary {
  min-height: 52px;
  border-color: rgba(15, 118, 110, 0.26);
  background: linear-gradient(135deg, #ffffff 0%, #f3fbf8 100%);
}

.dock-item-primary .dock-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #eef8f5;
}

.dock-item-primary .dock-icon img {
  width: 25px;
  height: 25px;
}

.dock-item-primary strong {
  color: #10201d;
  font-size: 13.2px;
  line-height: 1.12;
  letter-spacing: 0;
}

.dock-item-primary small {
  margin-top: 3px;
  color: #0f766e;
  font-size: 9.5px;
  line-height: 1.12;
  font-weight: 700;
}

.dock-note {
  display: block;
  width: 100%;
  min-height: 0;
  margin: -1px 0 2px;
  padding: 0 10px;
  color: var(--accent-strong);
  font-size: 13.2px;
  font-weight: 700;
  line-height: 1.12;
  text-align: left;
  white-space: nowrap;
}

.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);
}

.nav > a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
}

.account-menu {
  position: relative;
  z-index: 30;
  margin-left: -4px;
}

.account-menu-trigger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 10px;
  padding: 5px 9px 5px 7px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 33, 31, 0.08);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.account-menu-trigger:hover,
.account-menu.is-open .account-menu-trigger {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.14);
}

.account-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f766e, #1f9b8f);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.account-trigger-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.account-trigger-copy strong,
.account-trigger-copy small {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-trigger-copy strong {
  font-size: 13px;
  line-height: 1.2;
}

.account-trigger-copy small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.account-menu-caret {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.16s ease;
}

.account-menu.is-open .account-menu-caret {
  transform: translateY(2px) rotate(225deg);
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: 276px;
  gap: 4px;
  border: 1px solid rgba(23, 33, 31, 0.12);
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 54px rgba(23, 33, 31, 0.18);
  backdrop-filter: blur(16px);
}

.account-menu-panel[hidden] {
  display: none;
}

.account-menu-summary {
  display: grid;
  gap: 3px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(23, 33, 31, 0.08);
  padding: 8px 10px 10px;
}

.account-menu-summary strong,
.account-menu-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-summary strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.account-menu-summary small {
  color: var(--muted);
  font-size: 12px;
}

.account-menu-panel a,
.account-menu-action {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  text-align: left;
}

.account-menu-panel a:hover,
.account-menu-action:hover {
  background: #eef8f5;
  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;
}

.hero-copy h1 {
  max-width: 480px;
  font-size: clamp(32px, 2.55vw, 38px);
  line-height: 1.18;
}

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.danger {
  border-color: #dc2626;
  background: #dc2626;
  color: #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-hermes img[src$="hero-longtee-code.svg"] {
  object-fit: cover;
  background: #071411;
}

.card-hermes span {
  background: rgba(5, 20, 17, 0.86);
}

.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 {
  display: grid;
  max-width: none;
  align-content: start;
  gap: 14px;
}

.connector-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.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-install-note {
  display: grid;
  gap: 8px;
  margin-top: 0;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  padding: 14px 16px;
  background: #f7fbf9;
}

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

.connector-install-note p {
  margin: 0;
}

.connector-install-note b {
  color: var(--ink);
  font-weight: 800;
}

.connector-install-note code {
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 5px;
  padding: 1px 5px;
  background: #fff;
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

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

.connector-control-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: #f8faf7;
}

.connector-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.connector-download-card {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  padding: 13px;
  background: #fff;
}

.connector-download-card > div:first-child {
  display: grid;
  gap: 5px;
}

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

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

.connector-download-card code {
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 5px;
  padding: 1px 5px;
  background: #f8faf7;
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 800;
}

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

.connector-control-panel .button {
  justify-content: center;
  width: 100%;
}

.connector-trust-note {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}

.connector-trust-note strong {
  color: var(--ink);
  font-size: 13px;
}

.connector-trust-note span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.connector-trust-note p {
  margin: 2px 0 0;
  color: #52615f;
  font-size: 11px;
  line-height: 1.55;
}

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

.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: 154px;
  align-content: space-between;
  gap: 8px;
  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.52;
}

.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-grid-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card-architecture {
  min-height: 176px;
}


.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: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  align-items: flex-start;
  gap: 18px 28px;
  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-info {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.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-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px 66px;
  gap: 10px 12px;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  width: 100%;
  padding-top: 0;
}

.footer-support-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--ink);
}

.footer-support-copy strong {
  font-size: 13px;
  line-height: 1.45;
}

.footer-support-copy span {
  color: var(--accent-strong);
  font-weight: 800;
}

.footer-support figure {
  display: grid;
  gap: 6px;
  justify-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.footer-support img {
  display: block;
  width: 66px;
  height: 66px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.guide-page {
  background: #f7f9f6;
}

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

.guide-page .site-header {
  padding-left: clamp(22px, 5.2vw, 64px);
}

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

.guide-hero,
.guide-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(22, 33, 31, 0.06);
}

.guide-hero {
  padding: clamp(24px, 4vw, 42px);
}

.guide-hero h1 {
  max-width: 760px;
}

.guide-hero p {
  max-width: 840px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.76;
}

.guide-section {
  margin-top: 14px;
  padding: 22px;
}

.guide-steps,
.guide-grid,
.guide-faq {
  display: grid;
  gap: 12px;
}

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

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

.guide-steps article,
.guide-grid article,
.guide-note,
.guide-example > div {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: #f8faf7;
}

.guide-steps span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.guide-steps strong,
.guide-grid strong,
.guide-note strong,
.guide-example strong {
  color: var(--ink);
  font-size: 15px;
}

.guide-steps p,
.guide-grid p,
.guide-note p,
.guide-example p,
.guide-list,
.guide-faq p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

.guide-steps a,
.guide-grid a {
  width: fit-content;
  margin-top: auto;
  border-bottom: 1px solid currentColor;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
}

.guide-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 16px;
}

.guide-split h2 {
  margin-bottom: 12px;
}

.guide-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.guide-note {
  background: #f7fbf9;
}

.guide-note code,
.guide-example code {
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 5px;
  padding: 1px 5px;
  background: #fff;
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

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

.guide-faq details {
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
  background: #f8faf7;
}

.guide-faq summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

.guide-faq p {
  margin-top: 8px;
}

.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-page .tool-dock {
  display: none;
}

.media-page .media-main {
  padding-left: clamp(18px, 4vw, 48px);
}

.media-showcase {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 0.72fr);
  gap: 28px;
  padding: 28px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: #eef3f1;
}

.embed-mode .media-showcase {
  display: none;
}

.media-showcase-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.media-showcase-copy h1 {
  margin: 0 0 9px;
  font-size: 28px;
  line-height: 1.2;
}

.media-showcase-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.media-showcase-scroll {
  margin-top: 18px;
  text-decoration: none;
}

.media-showcase-gallery {
  display: grid;
  grid-auto-columns: minmax(280px, 42%);
  grid-auto-flow: column;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.media-showcase-gallery.showcase-single {
  grid-auto-columns: minmax(0, 1fr);
}

.media-showcase-item {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 31, 0.12);
  border-radius: 8px;
  background: #dfe8e3;
  scroll-snap-align: start;
}

.media-showcase-image {
  display: block;
  width: 100%;
  height: 100%;
}

.media-showcase-image {
  object-fit: cover;
}

.media-showcase-meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(20, 30, 26, 0.78);
  color: #fff;
  font-size: 12px;
}

.media-result-download {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 118, 110, 0.42);
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.media-showcase-empty {
  display: grid;
  min-height: 240px;
  place-content: center;
  gap: 7px;
  border: 1px dashed rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.media-showcase-empty strong {
  color: var(--ink);
}

#mediaWorkspace {
  scroll-margin-top: 18px;
}

.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.media-task-compact {
  gap: 3px;
  padding: 9px 10px;
  background: #fbfcfa;
}

.media-task-item.media-task-compact span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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;
}

.media-output-result {
  display: block;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.media-output-compact {
  min-height: 132px;
  padding: 20px;
}

.media-result-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.media-result-image {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #f5f7f5;
}

.media-result-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: var(--accent-strong);
  font-size: 13px;
}

@media (max-width: 900px) {
  .media-showcase {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .media-showcase-gallery {
    grid-auto-columns: minmax(260px, 82%);
  }

  .media-showcase-gallery.showcase-single {
    grid-auto-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .media-showcase {
    padding: 20px 16px;
  }

  .media-showcase-copy h1 {
    font-size: 24px;
  }

  .media-result-caption {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-result-download {
    width: 100%;
  }
}

.media-task-result {
  color: inherit;
  text-decoration: none;
}

.media-task-result:hover {
  border-color: rgba(15, 118, 110, 0.48);
  background: #f4fbf8;
}

.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: 260px minmax(520px, 1fr) 300px;
  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 .code-message-body {
  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 .code-message-body {
  border-color: rgba(15, 118, 110, 0.18);
  background: #eaf7f2;
}

.code-message-state {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  padding: 9px 10px;
  background: #f7fbf9;
  color: #21302d;
  box-shadow: 0 6px 14px rgba(23, 33, 31, 0.035);
}

.code-message-state-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.code-message-state-title strong {
  color: #0f5f59;
  font-size: 12px;
  font-weight: 900;
}

.code-message-state-title span,
.code-message-state-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.code-message-phase-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 6px;
}

.code-message-phase {
  display: grid;
  min-width: 0;
  gap: 2px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 7px;
  padding: 6px 7px;
  background: #fff;
}

.code-message-phase em,
.code-message-phase b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-message-phase em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.code-message-phase b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 860;
}

.code-message-state-meta {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.code-decision-summary-panel {
  gap: 6px;
}

.code-decision-summary-button {
  width: auto;
  min-height: 28px;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 12px;
  line-height: 1.2;
}

.code-decision-summary-output {
  display: grid;
  gap: 5px;
  border-top: 1px solid rgba(15, 118, 110, 0.12);
  padding-top: 8px;
  color: #334541;
  font-size: 12px;
  line-height: 1.55;
}

.code-decision-summary-output div {
  display: grid;
  grid-template-columns: minmax(88px, max-content) 1fr;
  gap: 6px;
  min-width: 0;
}

.code-decision-summary-output strong {
  color: #0f5f59;
}

.code-decision-summary-output span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #334541;
  font-size: inherit;
  font-weight: 650;
  text-align: left;
}

.code-approval-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: #fff7ed;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(23, 33, 31, 0.05);
}

.code-approval-card strong {
  color: #9a3412;
  font-size: 13px;
  font-weight: 860;
}

.code-approval-card p {
  margin: 0;
  color: #3f3f46;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.code-approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.code-approval-actions .button {
  min-height: 34px;
  padding: 7px 12px;
}

.code-orchestration-panel {
  display: grid;
  align-self: stretch;
  gap: 12px;
  max-width: min(960px, 94%);
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbfa;
  box-shadow: 0 8px 20px rgba(23, 33, 31, 0.04);
}

.code-orchestration-title,
.code-orchestration-run-head,
.code-orchestration-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.code-orchestration-title strong,
.code-orchestration-run-head strong,
.code-orchestration-step-head strong {
  color: var(--ink);
  font-weight: 860;
}

.code-orchestration-title span,
.code-orchestration-run-head small,
.code-orchestration-step small {
  color: var(--muted);
  font-weight: 700;
}

.code-orchestration-run {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(23, 33, 31, 0.08);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.code-orchestration-coordination {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 8px;
  padding: 9px;
  background: #f8fbfa;
}

.code-orchestration-coordination > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.code-orchestration-coordination strong {
  color: #0f5f59;
  font-weight: 860;
}

.code-orchestration-coordination small {
  color: var(--muted);
  font-weight: 760;
}

.code-orchestration-phases {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.code-orchestration-phases span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(23, 33, 31, 0.08);
  border-radius: 6px;
  padding: 6px;
  background: #fff;
}

.code-orchestration-phases em,
.code-orchestration-phases b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.code-orchestration-phases em {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.code-orchestration-phases b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.code-orchestration-status,
.code-orchestration-step-head span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  font-size: 12px;
  font-weight: 850;
}

.code-orchestration-objective,
.code-orchestration-step p {
  margin: 0;
  color: #3f3f46;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.code-orchestration-steps {
  display: grid;
  gap: 8px;
}

.code-orchestration-step {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(23, 33, 31, 0.08);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfb;
}

.code-orchestration-step.can-activate {
  border-color: rgba(15, 118, 110, 0.22);
  background: #f0fdfa;
}

.code-orchestration-step .button {
  justify-self: start;
  min-height: 34px;
  padding: 7px 12px;
}

.code-orchestration-empty {
  color: var(--muted);
  font-weight: 700;
}

.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;
}

.code-chat-workbench > .code-side-panel {
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.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-note {
    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 {
    align-items: center;
    padding-top: 8px;
  }

  .account-menu-panel {
    right: 0;
  }

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

  .guide-steps,
  .guide-grid,
  .guide-split,
  .guide-example {
    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;
  }

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

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

  .connector-status-card {
    grid-column: auto;
  }

  .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,
  .service-grid-compact {
    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: flex-start;
    gap: 10px 14px;
  }

  .account-menu {
    width: 100%;
    margin-left: 0;
  }

  .account-menu-trigger {
    width: 100%;
    justify-content: flex-start;
  }

  .account-trigger-copy strong,
  .account-trigger-copy small {
    max-width: calc(100vw - 150px);
  }

  .account-menu-panel {
    right: auto;
    left: 0;
    width: min(100%, 320px);
  }

  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;
  }
}


/* Longtee Code Codex-style shell, 20260715 */
.code-app-page {
  min-height: 100vh;
  background: #eef3f1;
}

.code-app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 250px minmax(0, 1fr);
}

.code-app-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

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

.code-app-brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #0b1220;
}

.code-app-brand-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.code-app-brand strong,
.code-app-brand small {
  display: block;
}

.code-app-brand strong {
  font-size: 16px;
  line-height: 1.2;
}

.code-app-brand small {
  color: var(--muted);
  font-size: 11px;
}

.code-app-nav {
  display: grid;
  gap: 8px;
}

.code-app-nav-item,
.code-app-back {
  display: flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  text-align: left;
}

.code-app-nav a.code-app-nav-item {
  text-decoration: none;
}

.code-skills-view {
  height: calc(100vh - 18px);
  min-height: calc(100vh - 18px);
  overflow: hidden;
}

.code-skills-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(19, 32, 29, 0.08);
}

.code-app-nav-item.active,
.code-app-nav-item:hover,
.code-app-back:hover {
  border-color: rgba(15, 118, 110, 0.2);
  background: #e9f7f3;
  color: var(--accent-strong);
}

.code-app-back {
  margin-top: auto;
}

.code-app-main {
  min-width: 0;
  padding: 26px clamp(18px, 3vw, 46px);
}

.code-app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.code-app-topbar h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
}

.code-app-account {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: var(--muted);
  box-shadow: 0 12px 28px rgba(23, 33, 31, 0.06);
}

.code-account-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ef4444;
}

.code-account-dot.online {
  background: #10b981;
}

.code-app-notice,
.code-app-panel,
.code-session-panel,
.code-chat-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(19, 32, 29, 0.08);
}

.code-app-notice {
  margin-bottom: 16px;
  padding: 16px;
}

.code-app-notice p {
  margin: 6px 0 12px;
  color: var(--muted);
}

.code-chat-workbench-codex {
  height: auto;
  min-height: calc(100vh - 156px);
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  gap: 18px;
  overflow: visible;
}

.code-chat-workbench-codex .code-session-panel,
.code-chat-workbench-codex .code-chat-panel {
  border-radius: 10px;
}

.code-chat-workbench-codex .code-session-panel {
  min-height: calc(100vh - 156px);
  padding: 20px;
}

.code-new-session-button {
  min-width: 62px;
}

.code-chat-workbench-codex .code-chat-panel {
  min-height: calc(100vh - 156px);
  grid-template-rows: auto minmax(360px, 1fr) auto;
}

.code-chat-titlebar-codex {
  align-items: flex-start;
}

.code-chat-titlebar-codex > span {
  display: none;
}

.code-chat-controls {
  display: grid;
  width: min(620px, 54vw);
  grid-template-columns: minmax(160px, 1fr) 140px 140px;
  gap: 9px;
}

.code-chat-controls select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.code-chat-composer-codex {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.code-chat-input-wrap-codex {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.code-chat-composer-codex textarea {
  min-height: 96px;
}

.code-chat-send-stack-codex {
  display: grid;
  gap: 8px;
  min-width: 72px;
}

.code-chat-send-stack-codex .button {
  width: 100%;
}

.code-chat-composer-codex .composer-message {
  min-height: 18px;
  margin: 0;
  border-left: 0;
  background: transparent;
  padding: 0;
}

.attachment-button-codex {
  min-width: 64px;
}

.code-app-view[hidden] {
  display: none;
}

.code-app-panel {
  margin-bottom: 14px;
  padding: 18px;
}

.code-app-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.code-app-panel-head h2 {
  margin: 0;
  font-size: 22px;
}

.code-app-pill {
  border-radius: 999px;
  background: #eef8f5;
  color: var(--accent-strong);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.code-app-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.code-app-cards article {
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 10px;
  padding: 14px;
  background: #f8fbfa;
}

.code-app-cards strong,
.code-app-cards span {
  display: block;
}

.code-app-cards strong {
  color: var(--ink);
  font-size: 15px;
}

.code-app-cards span {
  margin-top: 5px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
}

.code-app-cards p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.code-billing-summary {
  margin-top: 18px;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 10px;
  background: #fbfdfc;
  padding: 14px;
}

.code-billing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.code-billing-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
}

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

.code-billing-item,
.code-billing-empty {
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.code-billing-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

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

.code-billing-item strong {
  color: var(--ink);
  font-size: 15px;
}

.code-billing-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.code-billing-item small {
  margin-top: 5px;
  color: #68736f;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.code-billing-item b {
  color: var(--accent-strong);
  font-size: 20px;
}

.code-billing-empty {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .code-app-shell {
    grid-template-columns: 1fr;
  }

  .code-app-sidebar {
    position: static;
    height: auto;
  }

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

  .code-app-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .code-billing-head,
  .code-billing-item {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .code-chat-controls {
    width: 100%;
    grid-template-columns: 1fr;
  }
}


/* Longtee Code merged sidebar sessions, 20260715 */
.code-app-shell {
  grid-template-columns: 210px minmax(0, 1fr);
}

.code-app-sidebar {
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 10px 12px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 118, 110, 0.34) transparent;
}

.code-app-sidebar::-webkit-scrollbar {
  width: 5px;
}

.code-app-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.code-app-sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.32);
}

.code-app-brand {
  gap: 9px;
  padding: 2px 0 6px;
}

.code-app-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.code-app-brand-mark img {
  width: 29px;
  height: 29px;
}

.code-app-brand strong {
  font-size: 14px;
}

.code-app-brand small {
  font-size: 10px;
}

.code-app-nav {
  gap: 5px;
}

.code-app-nav-item,
.code-app-back {
  min-height: 34px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
}

.code-sidebar-sessions {
  display: flex;
  min-height: 180px;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  border-top: 1px solid rgba(23, 33, 31, 0.08);
  padding-top: 10px;
}

.code-sidebar-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}

.code-sidebar-section-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.code-sidebar-section-head .code-new-session-button {
  min-width: 44px;
  min-height: 28px;
  border-radius: 7px;
  padding: 0 8px;
  font-size: 12px;
}

.code-sidebar-sessions .code-session-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 118, 110, 0.34) transparent;
}

.code-sidebar-sessions .code-session-list::-webkit-scrollbar {
  width: 5px;
}

.code-sidebar-sessions .code-session-list::-webkit-scrollbar-track {
  background: transparent;
}

.code-sidebar-sessions .code-session-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.32);
}

.code-sidebar-sessions .code-session-item {
  min-height: 52px;
  border-radius: 8px;
  padding: 9px 31px 8px 9px;
}

.code-sidebar-sessions .code-session-item strong {
  font-size: 12px;
  line-height: 1.32;
}

.code-sidebar-sessions .code-session-item small {
  font-size: 10px;
}

.code-sidebar-sessions .code-session-delete {
  right: 5px;
  width: 22px;
  height: 22px;
  font-size: 14px;
}

.code-sidebar-sessions .code-session-status {
  padding: 0 2px;
  font-size: 10px;
}

.code-app-back {
  margin-top: 0;
  flex: 0 0 auto;
}

.code-app-main {
  padding: 22px clamp(14px, 2vw, 32px) 24px;
}

.code-app-topbar {
  margin-bottom: 16px;
}

.code-app-topbar h1 {
  font-size: clamp(28px, 2.7vw, 40px);
}

.code-chat-workbench-codex {
  display: grid;
  min-height: calc(100vh - 138px);
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.code-chat-workbench-codex .code-chat-panel {
  width: 100%;
  min-height: calc(100vh - 138px);
}

.code-chat-titlebar-codex {
  gap: 16px;
}

.code-chat-titlebar-codex h2 {
  max-width: min(700px, 44vw);
}

.code-chat-controls {
  width: min(560px, 46vw);
  grid-template-columns: minmax(140px, 1fr) 130px 130px;
}

@media (max-width: 920px) {
  .code-app-shell {
    grid-template-columns: 1fr;
  }

  .code-app-sidebar {
    height: auto;
    max-height: none;
  }

  .code-sidebar-sessions {
    max-height: 320px;
  }
}


/* Longtee Code large readable type, 20260715 */
.code-app-page {
  font-size: 16px;
}

.code-app-brand strong {
  font-size: 16px;
  line-height: 1.22;
}

.code-app-brand small {
  font-size: 12px;
}

.code-app-nav-item,
.code-app-back {
  min-height: 40px;
  font-size: 16px;
  line-height: 1.25;
}

.code-sidebar-section-head span {
  font-size: 15px;
}

.code-sidebar-section-head .code-new-session-button {
  min-height: 32px;
  font-size: 14px;
}

.code-sidebar-sessions .code-session-item {
  min-height: 62px;
  padding: 10px 31px 9px 10px;
}

.code-sidebar-sessions .code-session-item strong {
  font-size: 14px;
  line-height: 1.36;
}

.code-sidebar-sessions .code-session-item small {
  font-size: 12px;
  line-height: 1.35;
}

.code-sidebar-sessions .code-session-status {
  font-size: 12px;
}

.code-app-topbar .eyebrow,
.code-chat-titlebar .eyebrow {
  font-size: 12px;
}

.code-app-topbar h1 {
  font-size: clamp(34px, 3.1vw, 48px);
  line-height: 1.16;
}

.code-app-account {
  font-size: 16px;
}

.code-chat-titlebar-codex h2 {
  font-size: 22px;
  line-height: 1.28;
}

.code-chat-controls select {
  min-height: 44px;
  font-size: 16px;
}

.code-messages {
  gap: 16px;
  padding: 22px;
}

.code-message {
  max-width: min(920px, 90%);
}

.code-message span {
  font-size: 13px;
}

.code-message .code-message-body {
  font-size: 18px;
  line-height: 1.78;
}

.code-message-state-title strong,
.code-message-state-title span,
.code-message-state-meta,
.code-message-phase b {
  font-size: 14px;
}

.code-message-phase em {
  font-size: 12px;
}

.code-approval-card strong {
  font-size: 16px;
}

.code-approval-card p {
  font-size: 16px;
  line-height: 1.76;
}

.code-orchestration-title strong,
.code-orchestration-run-head strong,
.code-orchestration-step-head strong {
  font-size: 16px;
}

.code-orchestration-title span,
.code-orchestration-run-head small,
.code-orchestration-step small,
.code-orchestration-status,
.code-orchestration-step-head span {
  font-size: 13px;
}

.code-orchestration-objective,
.code-orchestration-step p,
.code-orchestration-empty {
  font-size: 16px;
}

.code-chat-composer-codex textarea {
  min-height: 112px;
  font-size: 18px;
  line-height: 1.65;
}

.code-chat-composer-codex .composer-message {
  font-size: 14px;
}

.code-chat-send-stack-codex .button,
.attachment-button-codex {
  min-height: 42px;
  font-size: 16px;
}

.code-empty-state strong {
  font-size: 24px;
}

.code-empty-state p {
  font-size: 16px;
}

.code-app-panel-head h2 {
  font-size: 26px;
}

.code-app-cards strong {
  font-size: 18px;
}

.code-app-cards span {
  font-size: 13px;
}

.code-app-cards p {
  font-size: 16px;
}

/* Longtee Code compact header + manual agent chooser, 20260715 */
.code-app-main {
  padding-top: 10px;
  padding-bottom: 16px;
}

.code-app-topbar-compact {
  justify-content: flex-end;
  min-height: 38px;
  margin-bottom: 8px;
}

.code-app-topbar-compact > div {
  display: none;
}

.code-app-topbar-compact .code-app-account {
  min-height: 38px;
  font-size: 15px;
}

.code-chat-workbench-codex {
  min-height: calc(100vh - 72px);
}

.code-chat-workbench-codex .code-chat-panel {
  min-height: calc(100vh - 72px);
  grid-template-rows: auto minmax(460px, 1fr) auto;
}

.code-chat-titlebar-codex {
  align-items: center;
  gap: 14px;
  padding: 15px 18px 12px;
}

.code-chat-titlebar-codex h2 {
  max-width: min(620px, 38vw);
}

.code-chat-controls {
  width: min(760px, 58vw);
  grid-template-columns: minmax(145px, 1.1fr) minmax(126px, 0.9fr) minmax(126px, 0.9fr) minmax(130px, 0.9fr);
}

.code-messages {
  min-height: 0;
}

@media (max-width: 1180px) {
  .code-chat-titlebar-codex {
    align-items: stretch;
    flex-direction: column;
  }

  .code-chat-titlebar-codex h2 {
    max-width: none;
  }

  .code-chat-controls {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .code-app-main {
    padding-top: 8px;
  }

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

/* Longtee Code scheduled tasks, 20260715 */
.code-scheduled-panel {
  min-height: calc(100vh - 84px);
  padding: 26px 22px;
}

.code-scheduled-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.code-scheduled-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.code-scheduled-head p {
  margin: 70px 0 0;
  color: #9aa3a1;
  font-size: 20px;
}

.code-scheduled-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.code-scheduled-actions select {
  min-height: 48px;
  min-width: 104px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  background: #f1f2f2;
  color: var(--ink);
  font: inherit;
}

.code-scheduled-new {
  min-height: 48px;
  border-radius: 11px;
  padding-inline: 20px;
  background: #151515;
  color: #fff;
}

.code-scheduled-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(1150px, 82%);
  min-height: 80px;
  margin: 0 auto 28px;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 15px;
  padding: 0 24px;
  background: #fff;
  color: var(--ink);
}

.code-scheduled-notice > span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid #9aa3a1;
  border-radius: 999px;
  color: #687472;
  font-size: 14px;
  font-weight: 800;
}

.code-scheduled-wake {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.code-scheduled-wake input {
  width: 54px;
  height: 30px;
  accent-color: #1598f2;
}

.code-scheduled-list {
  display: grid;
  width: min(1150px, 82%);
  margin: 0 auto;
  gap: 12px;
}

.code-scheduled-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: #9aa3a1;
  font-size: 18px;
}

.code-scheduled-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.code-scheduled-item.is-disabled {
  opacity: 0.62;
}

.code-scheduled-item-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.code-scheduled-item-title strong {
  font-size: 18px;
}

.code-scheduled-item-title span {
  border-radius: 999px;
  background: #eef8f5;
  color: var(--accent-strong);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.code-scheduled-item p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.6;
}

.code-scheduled-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.code-scheduled-meta span {
  border-radius: 999px;
  background: #f2f5f4;
  color: #62706e;
  padding: 4px 9px;
  font-size: 12px;
}

.code-scheduled-item small {
  display: block;
  margin-top: 8px;
  color: #7a8583;
}

.code-scheduled-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.68);
}

.code-modal-backdrop[hidden] {
  display: none;
}

.code-scheduled-modal {
  width: min(976px, 94vw);
  border-radius: 26px;
  padding: 36px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.code-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.code-modal-head h3 {
  margin: 0;
  font-size: 26px;
}

.code-modal-close {
  border: 0;
  background: transparent;
  color: #9aa3a1;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.code-scheduled-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.code-scheduled-modal label,
.code-scheduled-instruction {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
}

.code-scheduled-modal b {
  color: #e11d48;
}

.code-scheduled-modal input,
.code-scheduled-modal select,
.code-scheduled-modal textarea {
  width: 100%;
  border: 1px solid rgba(23, 33, 31, 0.12);
  border-radius: 11px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.code-scheduled-modal input,
.code-scheduled-modal select {
  min-height: 60px;
}

.code-scheduled-modal textarea {
  min-height: 210px;
  padding-top: 16px;
  resize: vertical;
}

.code-scheduled-form-note {
  margin: -6px 0 20px;
  color: #8b9694;
}

.code-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.code-modal-actions .button {
  min-width: 116px;
  min-height: 52px;
}

@media (max-width: 900px) {
  .code-scheduled-head,
  .code-scheduled-actions,
  .code-scheduled-item {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .code-scheduled-head p {
    margin-top: 12px;
  }

  .code-scheduled-notice,
  .code-scheduled-list {
    width: 100%;
  }

  .code-scheduled-notice,
  .code-scheduled-grid {
    grid-template-columns: 1fr;
  }
}

/* Longtee Code fixed chat titlebar + project-list scroll, 20260716 */
@media (min-width: 921px) {
  .code-app-page {
    overflow: hidden;
  }

  .code-app-shell {
    height: 100vh;
    overflow: hidden;
  }

  .code-app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
  }

  .code-sidebar-sessions {
    min-height: 0;
    overflow: hidden;
  }

  .code-sidebar-sessions .code-session-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .code-app-back,
  .code-session-status {
    flex: 0 0 auto;
  }

  .code-app-main {
    height: 100vh;
    overflow: hidden;
  }

  .code-chat-workbench-codex {
    height: calc(100vh - 56px);
    min-height: 0;
  }

  .code-chat-workbench-codex .code-chat-panel {
    height: calc(100vh - 56px);
    min-height: 0;
    overflow: hidden;
  }

  .code-chat-titlebar-codex {
    position: sticky;
    top: 0;
    z-index: 12;
    border-bottom: 1px solid rgba(23, 33, 31, 0.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 22px rgba(23, 33, 31, 0.04);
  }

  .code-messages {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Longtee Code compact top workspace, 20260716 */
.code-app-page .code-app-topbar-compact {
  display: none;
}

.code-app-page .code-app-main {
  padding-top: 8px;
  padding-bottom: 10px;
}

.code-app-page .code-chat-workbench-codex {
  height: calc(100vh - 18px);
  min-height: calc(100vh - 18px);
}

.code-app-page .code-chat-workbench-codex .code-chat-panel {
  height: calc(100vh - 18px);
  min-height: calc(100vh - 18px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.code-app-page .code-chat-titlebar-codex {
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 8px 14px 7px;
}

.code-app-page .code-chat-titlebar-codex > div:first-child {
  min-width: 0;
}

.code-app-page .code-chat-titlebar-codex .eyebrow {
  margin: 0 0 3px;
  font-size: 10px;
  line-height: 1.1;
}

.code-app-page .code-chat-titlebar-codex h2 {
  max-width: min(700px, 41vw);
  font-size: 17px;
  line-height: 1.24;
}

.code-app-page .code-active-kernel {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.code-app-page .code-chat-controls {
  width: min(820px, 56vw);
  grid-template-columns: minmax(142px, 1.08fr) minmax(126px, 0.92fr) minmax(126px, 0.92fr) minmax(130px, 0.92fr);
  gap: 8px;
}

.code-app-page .code-chat-controls select {
  min-height: 34px;
  padding: 0 10px;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .code-app-page .code-chat-titlebar-codex {
    align-items: stretch;
    padding: 8px 12px;
  }

  .code-app-page .code-chat-titlebar-codex h2 {
    max-width: none;
  }
}

/* Longtee Code new task home, 20260716 */
.code-chat-input-wrap-codex .code-chat-controls {
  width: 100%;
  grid-template-columns: minmax(130px, 1fr) minmax(120px, 0.9fr) minmax(120px, 0.9fr) minmax(124px, 0.9fr);
}

.code-new-task-mode .code-app-main {
  padding: 0;
}

.code-new-task-mode .code-chat-workbench-codex,
.code-new-task-mode .code-chat-workbench-codex .code-chat-panel {
  height: 100vh;
  min-height: 100vh;
}

.code-new-task-mode .code-chat-workbench-codex .code-chat-panel {
  position: relative;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(rgba(22, 28, 26, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 28, 26, 0.055) 1px, transparent 1px),
    #fbfbfa;
  background-size: 28px 28px;
  box-shadow: none;
}

.code-new-task-mode .code-chat-titlebar-codex {
  display: none;
}

.code-new-task-mode .code-messages {
  height: 100%;
  padding: 0 24px 260px;
  overflow: hidden;
  background: transparent;
}

.code-new-task-mode .code-empty-state {
  display: grid;
  width: min(980px, 86vw);
  min-height: 52vh;
  place-content: center;
  justify-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: center;
}

.code-new-task-mode .code-empty-logo {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(23, 33, 31, 0.1);
}

.code-new-task-mode .code-empty-logo img {
  width: 48px;
  height: 48px;
}

.code-new-task-mode .code-empty-state strong {
  color: #171d1b;
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.16;
}

.code-new-task-mode .code-empty-state p {
  width: min(720px, 78vw);
  margin-top: 14px;
  color: #6f7775;
  font-size: 18px;
  line-height: 1.72;
}

.code-new-task-mode .code-chat-composer-codex {
  position: absolute;
  left: 50%;
  bottom: clamp(96px, 13vh, 150px);
  z-index: 6;
  width: min(1060px, 72vw);
  transform: translateX(-50%);
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: stretch;
  gap: 12px;
  border: 1px solid rgba(23, 33, 31, 0.08);
  border-radius: 28px;
  padding: 18px 18px 16px 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 64px rgba(23, 33, 31, 0.14);
}

.code-new-task-mode .code-chat-composer-codex textarea {
  min-height: 92px;
  border: 0;
  padding: 0;
  box-shadow: none;
  font-size: 22px;
  line-height: 1.45;
}

.code-new-task-mode .code-chat-composer-codex textarea:focus {
  outline: 0;
  box-shadow: none;
}

.code-new-task-mode .code-chat-input-wrap-codex {
  gap: 14px;
}

.code-new-task-mode .code-chat-input-wrap-codex .code-chat-controls {
  width: 100%;
  grid-template-columns: minmax(150px, 1.1fr) minmax(132px, 0.9fr) minmax(132px, 0.9fr) minmax(132px, 0.9fr);
  gap: 10px;
}

.code-new-task-mode .code-chat-input-wrap-codex .code-chat-controls select {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: #626a68;
  font-size: 16px;
}

.code-new-task-mode .code-chat-composer-codex .composer-message {
  display: none;
}

.code-new-task-mode .code-chat-send-stack-codex {
  align-self: end;
  min-width: 52px;
}

.code-new-task-mode .attachment-button-codex {
  display: none;
}

.code-new-task-mode .code-chat-send-stack-codex .button.primary {
  width: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  text-indent: -999px;
}

.code-new-task-mode .code-chat-send-stack-codex .button.primary::after {
  content: "↑";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  text-indent: 0;
}

@media (max-width: 920px) {
  .code-new-task-mode .code-app-main {
    min-height: 100vh;
  }

  .code-new-task-mode .code-chat-composer-codex {
    width: min(92vw, 720px);
    bottom: 24px;
  }

  .code-new-task-mode .code-empty-state strong {
    font-size: 34px;
  }

  .code-new-task-mode .code-chat-input-wrap-codex .code-chat-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Media page standalone layout without legacy dock, 20260716 */
body.media-page::before {
  content: none;
  display: none;
  width: 0;
  border-right: 0;
  background: transparent;
  backdrop-filter: none;
}

body.media-page {
  overflow-x: hidden;
}

body.media-page .site-header {
  left: 0;
  width: 100%;
  padding-left: clamp(22px, 5.2vw, 64px);
}

body.media-page .tool-dock {
  display: none;
}

body.media-page .media-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px clamp(18px, 4vw, 48px) 34px;
}

@media (max-width: 860px) {
  body.media-page .media-main {
    padding: 18px;
  }
}
