:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-muted: #edf2f7;
  --ink: #142033;
  --muted: #5d6b7c;
  --line: #d9e1ea;
  --accent: #126b63;
  --accent-dark: #0c514b;
  --warning: #8a4b0f;
  --warning-bg: #fff4df;
  --danger: #b42318;
  --danger-bg: #fff1f0;
  --danger-line: #ffccc7;
  --shadow: 0 10px 30px rgba(20, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.codex-logo {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.nowrap {
  white-space: nowrap;
}

.brand span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.site-nav a,
.link-button {
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.link-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.language-switch label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.language-switch select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 5px 8px;
}

.language-symbol {
  font-size: 15px;
  line-height: 1;
}

.language-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.button.secondary {
  background: var(--surface);
  color: var(--accent);
}

.button.secondary:hover {
  background: var(--surface-muted);
}

.button.danger {
  border-color: var(--danger);
  background: var(--danger);
}

.button.danger:hover {
  border-color: #8f1d13;
  background: #8f1d13;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button.small {
  min-height: 34px;
  padding: 7px 12px;
}

.button.full {
  width: 100%;
}

.highlight-red {
  color: var(--danger);
  font-weight: 800;
}

.workspace-hero {
  display: block;
  align-items: end;
  padding: clamp(36px, 7vw, 72px) clamp(16px, 4vw, 48px) 24px;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-logo img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-logo strong {
  font-size: 18px;
}

.hero-copy {
  max-width: none;
}

.hero-lead {
  max-width: none;
  margin-bottom: 0;
  text-wrap: pretty;
}

.hero-copy h1,
.page h1,
.auth-card h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p,
.section-heading p,
.muted {
  color: var(--muted);
}

.page-summary {
  max-width: 980px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-copy .page-summary {
  color: var(--ink);
}

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

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

.panel,
.service-card,
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page,
.page-section {
  padding: 28px clamp(16px, 4vw, 48px) 48px;
}

.page.narrow {
  max-width: 760px;
  margin: 0 auto;
}

.section-heading {
  max-width: 980px;
  margin-bottom: 20px;
}

.section-heading h1,
.section-heading h2,
.panel h2,
.service-card h3 {
  margin: 0 0 8px;
  letter-spacing: 0;
}

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

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

.mini-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.trial-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  border-color: var(--danger-line);
  background: var(--danger-bg);
}

.trial-panel.subdued {
  display: block;
}

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

.identity-panel {
  margin: 10px 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.identity-panel.disabled {
  border-color: var(--danger-line);
  background: var(--danger-bg);
}

.identity-panel h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

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

.identity-grid div {
  min-width: 0;
}

.identity-grid dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.identity-grid dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin: 0;
}

.contact-methods > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.contact-methods dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.contact-methods dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.contact-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
}

.contact-logo svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.contact-logo-matrix {
  background: #0dbd8b;
}

.contact-logo-signal {
  background: #3a76f0;
}

.contact-logo-mastodon {
  background: #6364ff;
}

.contact-logo-bluesky {
  background: #1285fe;
}

.contact-logo-twitter {
  background: #111827;
}

.contact-logo-wechat {
  background: #1aad19;
}

.mini-card h3 {
  margin: 0 0 8px;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
}

.link-grid a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  font-weight: 700;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  min-width: 0;
  padding: 20px;
}

.service-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
  margin-top: auto;
}

.service-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

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

.service-card dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.card-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.card-actions.inline {
  display: flex;
  flex-wrap: wrap;
}

.service-detail .panel {
  margin-bottom: 18px;
}

.service-detail .panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.service-next {
  margin-top: 18px;
}

.guide-steps {
  display: grid;
  gap: 16px;
}

.guide-step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.guide-step h2 {
  margin-top: 0;
}

.guide-step > div:last-child {
  min-width: 0;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.guide-choice-table {
  margin: 16px 0;
}

.guide-path-list {
  margin: 12px 0;
  padding-left: 22px;
  color: var(--muted);
}

.remote-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 460px);
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  padding: clamp(34px, 6vw, 68px) clamp(16px, 4vw, 48px) 28px;
  background:
    linear-gradient(142deg, rgba(18, 107, 99, 0.13), rgba(255, 255, 255, 0) 42%),
    linear-gradient(28deg, rgba(37, 99, 235, 0.10), rgba(255, 255, 255, 0) 32%),
    var(--bg);
}

.remote-hero h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

.remote-hero .page-summary {
  max-width: 980px;
}

.remote-hero-visual {
  justify-self: end;
  margin: 0;
  min-width: 0;
  width: 100%;
  max-width: 460px;
}

.remote-device-preview {
  position: relative;
  min-height: 330px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(18, 107, 99, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 250, 0.88)),
    linear-gradient(145deg, rgba(18, 107, 99, 0.14), rgba(37, 99, 235, 0.10));
  box-shadow: 0 20px 50px rgba(20, 32, 51, 0.15);
}

.remote-desktop-preview {
  width: min(100%, 340px);
  min-height: 220px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.remote-window-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.remote-window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #cbd5e1;
}

.remote-window-bar span:first-child {
  background: #ef4444;
}

.remote-window-bar span:nth-child(2) {
  background: #f59e0b;
}

.remote-window-bar span:nth-child(3) {
  background: #22c55e;
}

.remote-window-body {
  display: grid;
  gap: 11px;
  padding: 18px;
}

.remote-window-title {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
}

.remote-status-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.remote-status-row span {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(18, 107, 99, 0.10);
}

.remote-phone-preview {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 168px;
  height: 250px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.remote-phone-preview::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin: 0 auto 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
}

.remote-phone-preview img {
  display: block;
  width: 100%;
  height: calc(100% - 11px);
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
}

.remote-hero-visual figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.remote-page {
  padding-top: 20px;
}

.remote-callouts,
.remote-login-grid,
.remote-check-grid,
.remote-note-grid {
  display: grid;
  gap: 16px;
}

.remote-callouts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.remote-callouts article,
.remote-login-grid article,
.remote-note-grid > div {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.remote-callouts span,
.remote-steps span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.remote-callouts h2,
.remote-note-grid h3 {
  margin: 6px 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.remote-callouts p,
.remote-login-grid p,
.remote-note-grid p {
  margin: 0;
  color: var(--muted);
}

.remote-login-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0;
}

.remote-login-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

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

.remote-check-grid h3 {
  margin: 0 0 10px;
}

.remote-steps {
  display: grid;
  gap: 12px;
}

.remote-steps article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.remote-steps h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.remote-steps p {
  margin: 0;
  color: var(--muted);
}

.remote-steps p + p {
  margin-top: 8px;
}

.remote-source-note {
  padding-top: 0;
  color: var(--muted);
}

.remote-source-note p {
  max-width: 980px;
  margin: 0;
}

.codex-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  padding: clamp(36px, 7vw, 74px) clamp(16px, 4vw, 48px) 28px;
  background:
    linear-gradient(145deg, rgba(18, 107, 99, 0.12), rgba(255, 255, 255, 0) 38%),
    linear-gradient(24deg, rgba(255, 179, 71, 0.12), rgba(255, 255, 255, 0) 34%),
    var(--bg);
}

.codex-hero h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(36px, 5.8vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.codex-hero .page-summary {
  max-width: 960px;
}

.codex-hero-visual {
  margin: 0;
  min-width: 0;
}

.codex-hero-visual img {
  display: block;
  width: 100%;
  border: 1px solid rgba(18, 107, 99, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(20, 32, 51, 0.16);
}

.codex-hero-visual figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.codex-positioning {
  padding-top: 20px;
}

.codex-wow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.codex-wow-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.codex-wow-grid article {
  border-color: rgba(18, 107, 99, 0.20);
}

.codex-wow-grid span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.codex-wow-grid p {
  margin: 0;
  color: var(--muted);
}

.chatbot-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.compare-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.compare-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.compare-card.muted-card {
  background: #f8fafc;
}

.compare-card.accent-card {
  border-color: rgba(18, 107, 99, 0.35);
  background: #f0fbf8;
}

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

.example-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.example-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-muted);
}

.example-card div {
  padding: 16px;
}

.example-card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.example-card h3 {
  margin: 6px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.example-card p {
  margin: 0;
  color: var(--muted);
}

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

.use-case-card {
  min-width: 0;
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.use-case-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.use-case-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

.use-case-card p {
  margin: 0;
  color: var(--muted);
}

.codex-source-note {
  padding-top: 0;
  color: var(--muted);
}

.codex-source-note p {
  max-width: 980px;
  margin: 0;
}

.check-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.check-list li + li {
  margin-top: 8px;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

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

.toolbar h1 {
  margin: 0 0 6px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.toolbar p {
  margin: 0;
}

.toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.config-header p {
  margin: 0;
}

.config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.summary-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.summary-card:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.summary-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-card strong {
  font-size: 24px;
  line-height: 1.1;
}

.summary-card p {
  margin: 0;
  color: var(--muted);
}

.compact-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.compact-summary-grid .summary-card {
  gap: 4px;
  padding: 10px 12px;
}

.compact-summary-grid .summary-card span {
  font-size: 11px;
}

.compact-summary-grid .summary-card strong {
  font-size: 20px;
}

.compact-summary-grid .summary-card p {
  font-size: 13px;
  line-height: 1.35;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.panel {
  padding: 20px;
  min-width: 0;
}

.stack {
  display: grid;
  gap: 10px;
}

.row-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  background: var(--surface-muted);
  border-radius: 8px;
}

.row-card .right {
  text-align: right;
}

.row-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.service-status-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(150px, 0.8fr) minmax(180px, 1fr);
  align-items: center;
}

.service-status-meta {
  text-align: right;
}

.service-balance {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(18, 107, 99, 0.22);
  border-radius: 8px;
  background: rgba(18, 107, 99, 0.08);
}

.service-balance span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-balance strong {
  color: var(--accent);
  font-size: 24px;
  line-height: 1.05;
}

.service-balance p {
  margin: 0;
  font-size: 13px;
}

.service-balance-muted {
  border-color: var(--line);
  background: var(--surface);
}

.service-balance-muted strong {
  color: var(--ink);
  font-size: 16px;
}

.mt {
  margin-top: 16px;
}

.hash {
  display: inline-block;
  max-width: 360px;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.download-links {
  display: grid;
  gap: 6px;
  min-width: 150px;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

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

.faq-list details {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.contact-line {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: var(--surface);
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.auth-page {
  display: grid;
  place-items: start center;
  min-height: calc(100vh - 170px);
  padding: 48px 16px;
}

.auth-card,
.form-panel {
  width: min(100%, 460px);
  padding: 24px;
}

label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  color: var(--muted);
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--ink);
  font: inherit;
}

input[type="file"] {
  padding: 8px;
  background: var(--surface);
}

pre {
  margin: 10px 0 0;
  padding: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101820;
  color: #e7edf3;
  font-size: 13px;
  line-height: 1.45;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.inline-form {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  width: min(100%, 620px);
  margin-bottom: 18px;
}

.inline-form label {
  min-width: 220px;
  margin: 0;
}

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

.admin-edit-grid.compact {
  flex: 1;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.admin-edit-grid label {
  margin: 0;
}

.admin-edit-grid .button {
  align-self: end;
}

.admin-service-row {
  align-items: start;
}

.admin-service-actions {
  display: grid;
  gap: 10px;
  width: 100%;
}

#proxy-usage-summary .inline-form {
  width: 100%;
}

.choice-row {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.choice-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.choice-row input {
  width: auto;
  min-height: auto;
}

.alert {
  padding: 12px 14px;
  border: 1px solid #f0c36d;
  border-radius: 8px;
  background: var(--warning-bg);
  color: var(--warning);
  margin: 12px 0;
}

.compact-list {
  margin: 8px 0 0;
  padding-left: 20px;
}

.compact-list li {
  margin: 4px 0;
}

#proxy-usage-summary {
  scroll-margin-top: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 620px;
}

.footer-credit {
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  gap: 12px;
}

@media (max-width: 860px) {
  .codex-hero,
  .service-grid,
  .split-grid,
  .chatbot-compare,
  .example-grid,
  .feature-grid,
  .link-grid,
  .codex-wow-grid,
  .use-case-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-direction: column;
  }

  .toolbar-actions {
    justify-content: flex-start;
  }

  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .site-nav a,
  .site-nav .link-button {
    white-space: nowrap;
  }

  .workspace-hero {
    padding-top: 28px;
  }

  .codex-hero {
    padding-top: 28px;
  }

  .remote-hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .remote-hero-visual {
    justify-self: center;
    max-width: min(100%, 430px);
  }

  .remote-device-preview {
    min-height: 390px;
  }

  .remote-desktop-preview {
    width: 100%;
    min-height: 178px;
  }

  .remote-phone-preview {
    right: 50%;
    bottom: 16px;
    transform: translateX(50%);
    width: 146px;
    height: 218px;
  }

  .codex-hero h1 {
    font-size: 36px;
    line-height: 1.08;
  }

  .remote-hero h1 {
    font-size: 36px;
    line-height: 1.08;
  }

  .remote-callouts,
  .remote-login-grid,
  .remote-check-grid,
  .remote-note-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page h1,
  .auth-card h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .hero-actions .button {
    flex: 1 1 150px;
  }

  .use-case-card {
    min-height: 0;
  }

  .service-card dl div {
    align-items: flex-start;
  }

  .row-card {
    flex-direction: column;
  }

  .service-status-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .service-status-meta {
    text-align: left;
  }

  .row-card .right {
    text-align: left;
  }

  .admin-edit-grid,
  .admin-edit-grid.compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .workspace-hero,
  .remote-hero,
  .page,
  .page-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand {
    font-size: 15px;
  }

  .codex-logo {
    width: 28px;
    height: 28px;
  }

  .hero-logo {
    margin-bottom: 14px;
  }

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

  .hero-copy h1,
  .codex-hero h1,
  .remote-hero h1,
  .page h1,
  .auth-card h1 {
    font-size: 30px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .form-panel .button.full,
  .service-card .button.full {
    width: 100%;
  }

  .panel,
  .service-card,
  .mini-card {
    padding: 16px;
  }

  .guide-step {
    grid-template-columns: 1fr;
  }

  .remote-steps article {
    grid-template-columns: 1fr;
  }

  .remote-device-preview {
    min-height: 350px;
    padding: 14px;
  }

  .remote-window-body {
    gap: 8px;
    padding: 14px;
  }

  .remote-status-row {
    font-size: 12px;
  }

  .remote-phone-preview {
    width: 132px;
    height: 198px;
  }

  .service-card dl div {
    display: grid;
    gap: 4px;
  }

  .service-card dd {
    text-align: left;
  }
}
