:root {
  --p2g-primary: #10b981;
  --p2g-info: #3cbade;
  --p2g-dark: #222a3e;
  --p2g-terminal: #07111f;
  --p2g-terminal-2: #0b1728;
}

body {
  font-family: Nunito, sans-serif;
  background: #f3f4f6;
}

.p2g-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--p2g-primary), var(--p2g-info));
  box-shadow: 0 10px 24px rgb(16 185 129 / 24%);
  font-weight: 900;
}

.p2g-logo-mark.small {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 13px;
}

.p2g-menu-link {
  display: flex;
  align-items: center;
  gap: .875rem;
  border-start-end-radius: 999px;
  border-end-end-radius: 999px;
  padding: .5rem 1rem;
  color: rgb(55 65 81);
  font-size: .875rem;
  font-weight: 600;
  transition: all .2s ease;
}

.p2g-menu-link:hover {
  color: rgb(5 150 105);
  background: rgb(243 244 246);
}

.p2g-menu-link.active {
  color: rgb(5 150 105);
  background: rgb(209 250 229 / 70%);
}

.p2g-menu-link i {
  font-size: 1.5rem;
  font-weight: 300;
}

.p2g-top-button {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 38px;
  padding: 0 .875rem;
  border: 1px solid rgb(229 231 235);
  border-radius: .5rem;
  color: rgb(55 65 81);
  background: #fff;
  font-weight: 700;
}

.p2g-top-button.primary,
.primary-link,
.primary-btn,
.price-card a,
.terminal-input button,
.inline-form button,
.plan-edit-card button {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--p2g-primary), #0ea5e9);
  box-shadow: 0 10px 24px rgb(16 185 129 / 20%);
}

.primary-link,
.secondary-link,
.primary-btn,
.p2g-top-button {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.primary-link:hover,
.secondary-link:hover,
.primary-btn:hover,
.p2g-top-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgb(15 23 42 / 10%);
}

.p2g-top-button i {
  font-size: 1.25rem;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem;
  border: 1px solid rgb(229 231 235);
  border-radius: .75rem;
  background: rgb(249 250 251);
}

.language-switcher a {
  min-width: 34px;
  padding: .35rem .5rem;
  border-radius: .5rem;
  color: rgb(107 114 128);
  font-size: .75rem;
  font-weight: 800;
  text-align: center;
}

.language-switcher a.active {
  color: #fff;
  background: rgb(16 185 129);
}

.p2g-status-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .75rem;
  border: 1px solid rgb(209 250 229);
  border-radius: 999px;
  color: rgb(5 150 105);
  background: rgb(236 253 245);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .75rem;
  font-weight: 800;
}

.p2g-status-pill span {
  width: .5rem;
  height: .5rem;
  border-radius: 999px;
  background: rgb(16 185 129);
  box-shadow: 0 0 0 4px rgb(16 185 129 / 14%);
}

.hero-v2,
.dashboard-head,
.split,
.terminal-layout,
.admin-plan-grid,
.settings-shell {
  margin-bottom: 1.25rem;
}

.hero-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .86fr);
  gap: 1.25rem;
  overflow: hidden;
  border-radius: .75rem;
  background:
    radial-gradient(circle at 0 0, rgb(16 185 129 / 18%), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fafc);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 580px;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.eyebrow {
  display: inline-flex;
  width: max-content;
  margin-bottom: 1rem;
  padding: .375rem .625rem;
  border-radius: 999px;
  color: rgb(5 150 105);
  background: rgb(209 250 229);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow.compact {
  margin-bottom: .45rem;
  padding: .28rem .55rem;
  font-size: .62rem;
}

.hero-copy h1,
.dashboard-head h1,
.auth-card h1 {
  color: rgb(17 24 39);
  line-height: .95;
  font-weight: 800;
}

.hero-copy h1 {
  max-width: 900px;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.hero-copy p {
  max-width: 720px;
  margin-top: 1.25rem;
  color: rgb(107 114 128);
  font-size: 1.1rem;
}

.hero-actions,
.hero-badges,
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero-actions {
  margin-top: 1.75rem;
}

.hero-badges {
  margin-top: 1.25rem;
}

.hero-badges span,
.plan-badge,
.status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
}

.hero-badges span {
  padding: .45rem .7rem;
  color: rgb(75 85 99);
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

.primary-link,
.secondary-link,
.primary-btn,
.danger-btn,
.oauth-btn,
.price-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid rgb(229 231 235);
  border-radius: .5rem;
  background: #fff;
  font-weight: 800;
}

.primary-link i,
.secondary-link i {
  margin-right: .4rem;
  font-size: 1.2rem;
}

.secondary-link,
.oauth-btn {
  color: rgb(55 65 81);
}

.danger-btn {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 14px 34px rgb(239 68 68 / 18%);
}

.terminal-preview,
.terminal-stage,
.terminal-mini {
  overflow: hidden;
  border-radius: .75rem;
  color: rgb(226 232 240);
  background: var(--p2g-terminal);
  box-shadow: 0 18px 44px rgb(15 23 42 / 20%);
}

.hero-terminal {
  align-self: stretch;
  margin: 1.25rem 1.25rem 1.25rem 0;
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 52px;
  padding: 0 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  color: rgb(148 163 184);
  background: var(--p2g-terminal-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.terminal-head i {
  width: .7rem;
  height: .7rem;
  border-radius: 999px;
  background: #ff5f57;
}

.terminal-head i:nth-child(2) { background: #febc2e; }
.terminal-head i:nth-child(3) { background: #28c840; }

.terminal-lines,
.terminal-body {
  overflow: auto;
  min-height: 420px;
  padding: 1.25rem;
  background:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px) 0 0 / 100% 31px,
    radial-gradient(circle at 100% 0, rgb(60 186 222 / 18%), transparent 36%),
    var(--p2g-terminal);
  font: .9rem/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.hero-terminal .terminal-lines {
  min-height: calc(100% - 52px);
}

.terminal-lines p,
.terminal-body p {
  margin: 0 0 .35rem;
}

.ok,
.command { color: #7dd3fc; }
.ready,
.meta { color: #86efac; }
.error { color: #fda4af; }

.pipeline,
.pricing-grid,
.stats-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

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

.pipeline > div,
.stats-grid > div,
.price-card,
.panel,
.auth-card,
.terminal-side,
.project-card,
.plan-edit-card {
  border: 1px solid rgb(229 231 235);
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
}

.pipeline > div,
.stats-grid > div,
.price-card,
.project-card {
  padding: 1.25rem;
}

.pipeline span,
.stats-grid span,
.price-card span {
  color: rgb(107 114 128);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pipeline strong,
.stats-grid strong {
  display: block;
  margin-top: .75rem;
  color: rgb(17 24 39);
  font-size: 1.55rem;
  line-height: 1.1;
}

.pipeline p {
  margin-top: .5rem;
  color: rgb(107 114 128);
}

.price-card {
  display: grid;
  gap: .75rem;
}

.price-card.featured {
  border-color: rgb(16 185 129 / 35%);
  box-shadow: 0 12px 28px rgb(16 185 129 / 12%);
}

.price-card strong {
  color: rgb(5 150 105);
  font-size: 2.15rem;
  line-height: 1;
}

.payment-choice-grid {
  display: grid;
  gap: .55rem;
}

.payment-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  min-height: 42px;
  padding: .65rem .75rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .85rem;
  color: rgb(15 23 42);
  background: rgb(248 250 252);
  cursor: pointer;
}

.payment-choice input {
  accent-color: var(--p2g-primary);
}

.payment-choice span {
  color: rgb(15 23 42);
  font-size: .85rem;
  font-weight: 900;
  text-transform: none;
}

.payment-choice small {
  color: rgb(239 68 68);
  font-size: .72rem;
  font-weight: 900;
}

.payment-choice.is-muted {
  border-style: dashed;
  background: rgb(255 247 237);
}

.dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-head h1 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.dashboard-head:not(.app-page-head) h1 {
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  line-height: 1.1;
}

.panel,
.auth-card,
.terminal-side,
.plan-edit-card {
  padding: 1.25rem;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.split,
.admin-plan-grid,
.settings-shell,
.terminal-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 1.25rem;
}

.settings-shell {
  grid-template-columns: minmax(320px, 560px) minmax(0, 1fr);
}

.form-panel,
.settings-panel,
.plan-edit-list,
.jobs-list {
  display: grid;
  gap: .9rem;
}

label {
  display: grid;
  gap: .4rem;
  color: rgb(55 65 81);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgb(209 213 219);
  border-radius: .5rem;
  color: rgb(17 24 39);
  background: #fff;
  outline: none;
}

input { padding: 0 .75rem; }
textarea { padding: .75rem; resize: vertical; }
select { padding: 0 .75rem; }
input[type="file"] { padding: .55rem; }

input:focus,
textarea:focus,
select:focus {
  border-color: rgb(16 185 129);
  box-shadow: 0 0 0 3px rgb(16 185 129 / 14%);
}

.alert,
.notice {
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  border-radius: .75rem;
}

.alert {
  color: rgb(159 18 57);
  background: rgb(255 241 242);
}

.notice {
  color: rgb(5 150 105);
  background: rgb(236 253 245);
}

.notice-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgb(187 247 208);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 0 0, rgb(16 185 129 / 16%), transparent 38%),
    rgb(240 253 244);
  color: rgb(22 101 52);
}

.notice-panel strong {
  display: block;
  color: rgb(15 23 42);
  font-weight: 900;
}

.notice-panel p {
  margin: .15rem 0 0;
  color: rgb(51 65 85);
}

.job-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .75rem;
  border: 1px solid rgb(229 231 235);
  border-radius: .75rem;
  background: #fff;
}

.status {
  padding: .25rem .55rem;
  color: rgb(5 150 105);
  background: rgb(236 253 245);
}

.status.active,
.status.success {
  color: rgb(5 150 105);
  background: rgb(236 253 245);
}

.status.queued { color: rgb(146 64 14); background: rgb(255 247 237); }
.status.running { color: rgb(5 150 105); background: rgb(236 253 245); }
.status.failed,
.status.timeout,
.status.cancelled,
.status.blocked,
.status.deleted { color: rgb(159 18 57); background: rgb(255 241 242); }

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: .8rem .75rem;
  border-bottom: 1px solid rgb(229 231 235);
  text-align: left;
  vertical-align: middle;
}

th {
  color: rgb(107 114 128);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

td code {
  display: block;
  overflow: hidden;
  max-width: 520px;
  color: rgb(107 114 128);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-box {
  display: grid;
  gap: .55rem;
  margin: 1rem 0;
}

.usage-box div {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem;
  border-radius: .75rem;
  background: rgb(249 250 251);
}

.command-list {
  display: grid;
  gap: .5rem;
}

.command-list button {
  padding: .7rem .75rem;
  border: 1px solid rgb(229 231 235);
  border-radius: .75rem;
  color: rgb(31 41 55);
  background: #fff;
  text-align: left;
}

.command-list button:hover {
  color: rgb(5 150 105);
  background: rgb(236 253 245);
}

.terminal-stage {
  display: grid;
  grid-template-rows: auto minmax(500px, 1fr) auto;
}

.terminal-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .7rem;
  align-items: center;
  padding: .9rem;
  border-top: 1px solid rgb(255 255 255 / 8%);
  background: var(--p2g-terminal-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.terminal-input span {
  color: #7dd3fc;
  font-weight: 900;
}

.terminal-input input {
  border-color: rgb(255 255 255 / 12%);
  color: rgb(226 232 240);
  background: rgb(255 255 255 / 5%);
}

.inline-form,
.locale-checks,
.form-row {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  align-items: center;
}

.inline-form {
  align-items: stretch;
}

.inline-form select,
.inline-form input {
  min-width: 150px;
}

.inline-form .small-input {
  min-width: 92px;
}

.inline-form button,
.primary-btn,
.plan-edit-card button {
  min-height: 42px;
  padding: 0 .9rem;
  border-radius: .5rem;
  font-weight: 800;
}

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

.form-row:has(label:nth-child(4)) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.checkline {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.checkline input {
  width: auto;
  min-height: auto;
}

.settings-preview {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.field-caption {
  display: block;
  margin-bottom: .5rem;
  color: rgb(55 65 81);
  font-weight: 800;
}

.small-input {
  width: 92px;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 220px);
}

.auth-card {
  width: min(480px, 100%);
}

.muted {
  color: rgb(107 114 128);
}

@media (max-width: 1024px) {
  .hero-console,
  .split,
  .admin-plan-grid,
  .settings-shell,
  .terminal-layout {
    grid-template-columns: 1fr;
  }

  .hero-terminal {
    margin: 0 1.25rem 1.25rem;
  }

  .pipeline,
  .pricing-grid,
  .stats-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-copy {
    min-height: auto;
    padding: 1.5rem;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .pipeline,
  .pricing-grid,
  .stats-grid,
  .project-grid,
  .form-row,
  .form-row:has(label:nth-child(4)),
  .job-row,
  .terminal-input {
    grid-template-columns: 1fr;
  }
}

.public-body {
  min-height: 100vh;
  color: rgb(15 23 42);
  background:
    radial-gradient(circle at 8% 8%, rgb(16 185 129 / 18%), transparent 28%),
    radial-gradient(circle at 88% 0%, rgb(14 165 233 / 16%), transparent 32%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 48%, #f8fafc 100%);
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
  padding: 0 clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgb(226 232 240 / 78%);
  background: rgb(255 255 255 / 82%);
  backdrop-filter: blur(18px);
}

.public-brand,
.public-links,
.public-actions,
.head-actions {
  display: flex;
  align-items: center;
}

.public-brand {
  gap: .75rem;
  color: rgb(15 23 42);
  font-size: 1.05rem;
  font-weight: 900;
}

.public-links {
  gap: 1rem;
  margin-left: auto;
}

.public-links a {
  color: rgb(71 85 105);
  font-size: .9rem;
  font-weight: 800;
}

.public-links a:hover {
  color: rgb(5 150 105);
}

.public-actions {
  gap: .75rem;
}

.public-main {
  width: min(1520px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
}

.public-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid rgb(226 232 240);
  color: rgb(100 116 139);
  background: #fff;
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, .82fr);
  gap: 1.5rem;
  overflow: hidden;
  min-height: 640px;
  padding: clamp(1.25rem, 3vw, 3rem);
  border: 1px solid rgb(226 232 240 / 78%);
  border-radius: 1.25rem;
  background:
    linear-gradient(120deg, rgb(209 250 229 / 82%), rgb(255 255 255 / 92) 42%, rgb(240 249 255 / 96)),
    #fff;
  box-shadow: 0 22px 70px rgb(15 23 42 / 8%);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: auto -9rem -11rem auto;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgb(14 165 233 / 17%), transparent 66%);
}

.landing-hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 820px;
  padding: clamp(1rem, 3vw, 2.4rem);
}

.landing-hero-copy h1 {
  color: rgb(15 23 42);
  font-size: clamp(3.4rem, 7vw, 7.2rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: 0;
}

.landing-hero-copy p {
  max-width: 680px;
  margin-top: 1.25rem;
  color: rgb(71 85 105);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.75;
}

.landing-terminal-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 1rem;
}

.landing-terminal-card .hero-terminal {
  min-height: 465px;
  margin: 0;
  border: 1px solid rgb(255 255 255 / 12%);
  box-shadow: 0 28px 80px rgb(15 23 42 / 24%);
}

.landing-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.landing-mini-grid div,
.landing-stat-card,
.landing-card,
.metric-card {
  border: 1px solid rgb(226 232 240);
  border-radius: .9rem;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 10px 34px rgb(15 23 42 / 6%);
}

.landing-mini-grid div {
  padding: 1rem;
}

.landing-mini-grid span,
.metric-card p,
.landing-stat-card p {
  color: rgb(100 116 139);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-mini-grid strong,
.landing-stat-card strong,
.metric-card strong {
  display: block;
  margin-top: .35rem;
  color: rgb(15 23 42);
  font-size: 1.8rem;
  line-height: 1;
}

.landing-stat-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.landing-stat-card,
.metric-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
}

.landing-stat-card > span,
.metric-card > span {
  float: right;
  color: rgb(148 163 184);
  font-size: 2rem;
}

.landing-dashboard,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.landing-card {
  padding: 1.25rem;
}

.landing-card.wide {
  grid-column: 1 / -1;
}

.chart-card {
  min-height: 360px;
}

.p2g-chart {
  min-height: 275px;
}

.landing-pipeline,
.landing-pricing {
  margin-top: 1rem;
}

.sales-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .78fr);
  gap: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  min-height: 680px;
  padding: clamp(1.2rem, 4vw, 4rem);
  border: 1px solid rgb(226 232 240 / 80%);
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at 16% 10%, rgb(16 185 129 / 22%), transparent 28%),
    linear-gradient(135deg, #fff 0%, rgb(240 253 250) 48%, rgb(239 246 255) 100%);
  box-shadow: 0 24px 70px rgb(15 23 42 / 9%);
}

.sales-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(15 23 42 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(15 23 42 / 4%) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.sales-hero-copy,
.sales-hero-console {
  position: relative;
  z-index: 1;
}

.sales-hero-copy {
  align-self: center;
  max-width: 850px;
}

.sales-hero-copy h1 {
  max-width: 820px;
  margin: .8rem 0 0;
  color: rgb(15 23 42);
  font-size: clamp(3.4rem, 7vw, 7rem);
  font-weight: 900;
  line-height: .92;
}

.sales-hero-copy > p {
  max-width: 700px;
  margin-top: 1.25rem;
  color: rgb(71 85 105);
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1.75;
}

.sales-proof-row,
.command-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.25rem;
}

.sales-proof-row span,
.command-chip-list code {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .45rem .75rem;
  border: 1px solid rgb(187 247 208);
  border-radius: 999px;
  color: rgb(6 95 70);
  background: rgb(236 253 245);
  font-weight: 900;
}

.sales-hero-console {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.sales-hero-console .hero-terminal {
  min-height: 500px;
  border: 1px solid rgb(255 255 255 / 10%);
  box-shadow: 0 30px 90px rgb(15 23 42 / 24%);
}

.sales-hero-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sales-hero-cards > div,
.sales-card,
.benefit-card,
.security-section,
.faq-grid details,
.sales-final-cta {
  border: 1px solid rgb(226 232 240);
  border-radius: .95rem;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 14px 42px rgb(15 23 42 / 6%);
}

.sales-hero-cards > div {
  padding: 1rem;
}

.sales-hero-cards span,
.benefit-card p,
.sales-card p,
.security-list p {
  color: rgb(100 116 139);
}

.sales-hero-cards span {
  display: block;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sales-hero-cards strong {
  display: block;
  margin-top: .35rem;
  color: rgb(15 23 42);
  font-size: 1.55rem;
  line-height: 1;
}

.sales-section {
  margin-top: clamp(1.4rem, 4vw, 3rem);
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .55fr);
  gap: 1rem;
  align-items: end;
}

.section-heading.split > p,
.demo-copy > p,
.security-copy > p,
.sales-final-cta p {
  color: rgb(71 85 105);
  line-height: 1.7;
}

.section-heading h2,
.sales-final-cta h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

.sales-card-grid {
  display: grid;
  gap: 1rem;
}

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

.sales-card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sales-card,
.benefit-card {
  min-width: 0;
  padding: 1.25rem;
}

.sales-card > span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: .8rem;
  color: rgb(5 150 105);
  background: rgb(209 250 229);
}

.sales-card h3,
.benefit-card h3,
.security-list strong {
  margin: 1rem 0 .45rem;
  color: rgb(15 23 42);
  font-size: 1.15rem;
  font-weight: 900;
}

.benefit-card strong {
  display: inline-flex;
  min-width: 64px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: .85rem;
  color: rgb(255 255 255);
  background: linear-gradient(135deg, var(--p2g-primary), var(--p2g-info));
  font-size: 1.35rem;
  box-shadow: 0 16px 34px rgb(16 185 129 / 20%);
}

.demo-section {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(420px, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgb(15 23 42), rgb(12 74 110));
  box-shadow: 0 24px 70px rgb(15 23 42 / 16%);
}

.demo-copy {
  align-self: center;
  padding: clamp(.5rem, 2vw, 1.5rem);
}

.demo-copy h2,
.demo-copy p {
  color: #fff;
}

.demo-copy .eyebrow {
  background: rgb(16 185 129 / 16%);
  color: rgb(167 243 208);
}

.command-chip-list code {
  border-color: rgb(14 165 233 / 28%);
  color: rgb(186 230 253);
  background: rgb(8 47 73 / 72%);
}

.demo-window .terminal-preview {
  height: 100%;
  min-height: 390px;
  margin: 0;
  border: 1px solid rgb(255 255 255 / 10%);
}

.terminal-lines.compact {
  min-height: 330px;
}

.sales-pipeline {
  margin-top: clamp(1.4rem, 4vw, 3rem);
}

.security-section {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(420px, 1fr);
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 100% 0, rgb(16 185 129 / 14%), transparent 34%),
    #fff;
}

.security-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.security-list > div {
  padding: 1rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .85rem;
  background: rgb(248 250 252);
}

.security-list span {
  color: rgb(5 150 105);
}

.landing-pricing .price-card ul {
  display: grid;
  gap: .45rem;
  margin: .5rem 0 1rem;
  padding: 0;
  list-style: none;
  color: rgb(71 85 105);
}

.landing-pricing .price-card li::before {
  content: "check";
  margin-right: .35rem;
  color: rgb(5 150 105);
  font-family: "Material Symbols Rounded";
  font-size: 1rem;
  vertical-align: -2px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.faq-grid details {
  padding: 1rem 1.1rem;
}

.faq-grid summary {
  cursor: pointer;
  color: rgb(15 23 42);
  font-weight: 900;
}

.faq-grid p {
  margin: .75rem 0 0;
  color: rgb(71 85 105);
  line-height: 1.7;
}

.sales-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(1.4rem, 4vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 0 0, rgb(16 185 129 / 18%), transparent 32%),
    #fff;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2,
.landing-card h2,
.panel h2 {
  color: rgb(15 23 42);
  font-size: 1.25rem;
  font-weight: 900;
}

.app-page-head {
  align-items: center;
  margin-bottom: 1rem;
}

.app-page-head h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.head-actions {
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.metric-grid {
  margin-top: 0;
  margin-bottom: 1rem;
}

.metric-card small {
  display: block;
  margin-top: .45rem;
  color: rgb(100 116 139);
}

.progress-line {
  overflow: hidden;
  height: 5px;
  margin-top: .85rem;
  border-radius: 999px;
  background: rgb(226 232 240);
}

.progress-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--p2g-primary), var(--p2g-info));
}

.dashboard-bottom {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  margin-top: 1rem;
}

.project-list {
  display: grid;
  gap: .75rem;
}

.project-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .85rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .75rem;
  color: rgb(15 23 42);
  background: rgb(248 250 252);
}

.project-row span {
  color: rgb(5 150 105);
}

.project-row small {
  color: rgb(100 116 139);
}

.jobs-list.compact .job-row {
  grid-template-columns: 72px minmax(0, 1fr) auto;
}

.panel {
  box-shadow: 0 10px 34px rgb(15 23 42 / 5%);
}

.table-wrap table {
  min-width: 980px;
}

.table-wrap tbody tr:hover {
  background: rgb(248 250 252);
}

.table-wrap td,
.table-wrap th {
  padding: 1rem .9rem;
}

.admin-tabs a {
  padding: .45rem .7rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .55rem;
  color: rgb(71 85 105);
  background: #fff;
  font-size: .85rem;
  font-weight: 800;
}

.admin-tabs a:hover {
  color: rgb(5 150 105);
  border-color: rgb(167 243 208);
  background: rgb(236 253 245);
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: 1.25rem;
  align-items: stretch;
  min-height: calc(100vh - 190px);
}

.auth-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
  padding: clamp(1.5rem, 4vw, 4rem);
  border: 1px solid rgb(226 232 240);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 12% 10%, rgb(16 185 129 / 20%), transparent 34%),
    radial-gradient(circle at 92% 86%, rgb(56 189 248 / 18%), transparent 36%),
    linear-gradient(135deg, #ffffff, #f1f5f9);
  box-shadow: 0 24px 70px rgb(15 23 42 / 8%);
}

.auth-visual h1 {
  max-width: 760px;
  color: rgb(15 23 42);
  font-size: clamp(3rem, 6vw, 6.2rem);
  font-weight: 900;
  line-height: .95;
}

.auth-visual p {
  max-width: 620px;
  margin-top: 1rem;
  color: rgb(71 85 105);
  font-size: 1.1rem;
  line-height: 1.7;
}

.auth-terminal {
  width: min(680px, 100%);
  margin-top: 2rem;
  border: 1px solid rgb(255 255 255 / 12%);
}

.auth-form-card {
  align-self: center;
  display: grid;
  gap: 1rem;
  width: 100%;
  padding: 1.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 24px 70px rgb(15 23 42 / 10%);
}

.auth-form-card h1 {
  font-size: 2.25rem;
  line-height: 1;
}

.auth-submit,
.auth-google {
  width: 100%;
}

.auth-google {
  gap: .45rem;
}

.auth-google span {
  font-size: 1.25rem;
}

.auth-switch {
  margin: 0;
  color: rgb(100 116 139);
  text-align: center;
}

.auth-switch a {
  color: rgb(5 150 105);
  font-weight: 900;
}

.settings-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 1rem;
  align-items: start;
}

.settings-main {
  display: grid;
  gap: 1rem;
}

.settings-card,
.settings-preview-card {
  border: 1px solid rgb(226 232 240);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 38px rgb(15 23 42 / 5%);
}

.settings-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
}

.settings-card-accent::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--p2g-primary), var(--p2g-info));
}

.settings-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.settings-card-head h2 {
  margin: 0;
  color: rgb(15 23 42);
  font-size: 1.15rem;
  font-weight: 900;
}

.settings-card-head p {
  margin: .25rem 0 0;
  color: rgb(100 116 139);
}

.settings-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: .9rem;
  color: rgb(5 150 105);
  background: rgb(209 250 229 / 75%);
  font-size: 1.55rem;
}

.settings-fields {
  display: grid;
  gap: 1rem;
}

.settings-fields.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.settings-subgrid > div {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .9rem;
  background: rgb(248 250 252);
}

.settings-subgrid h3 {
  margin: 0 0 .85rem;
  color: rgb(15 23 42);
  font-size: 1rem;
  font-weight: 900;
}

.settings-test-mail {
  margin-top: 1rem;
}

.settings-test-mail .settings-fields {
  align-items: end;
}

.payment-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.payment-settings-card {
  display: grid;
  gap: .85rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgb(226 232 240);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 100% 0, rgb(16 185 129 / 10%), transparent 36%),
    rgb(248 250 252);
}

.payment-settings-head {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.payment-settings-head h3 {
  color: rgb(15 23 42);
  font-size: 1rem;
  font-weight: 900;
}

.payment-settings-card label {
  display: grid;
  gap: .35rem;
  min-width: 0;
  color: rgb(51 65 85);
  font-weight: 800;
}

.payment-settings-card input,
.payment-settings-card select {
  width: 100%;
  min-width: 0;
}

.toggle-line {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: .45rem !important;
  color: rgb(71 85 105);
  font-size: .85rem;
  font-weight: 900;
}

.toggle-line input {
  width: auto;
  accent-color: var(--p2g-primary);
}

.toggle-line.compact {
  justify-self: start;
  padding: .45rem .65rem;
  border: 1px solid rgb(226 232 240);
  border-radius: 999px;
  background: #fff;
}

.payment-provider-settings {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.provider-state {
  margin-left: auto;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.provider-state.ready {
  color: rgb(5 150 105);
  background: rgb(209 250 229);
}

.provider-state.needs-setup {
  color: rgb(194 65 12);
  background: rgb(255 237 213);
}

.payments-history-panel {
  overflow: hidden;
}

.payment-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: start;
}

.detail-list {
  display: grid;
  gap: .65rem;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid rgb(226 232 240);
}

.detail-list dt {
  color: rgb(100 116 139);
  font-weight: 900;
}

.detail-list dd {
  min-width: 0;
  margin: 0;
  color: rgb(15 23 42);
  overflow-wrap: anywhere;
}

.payload-box {
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .9rem;
  color: rgb(226 232 240);
  background: rgb(15 23 42);
  font: 0.86rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.webhook-event-list {
  display: grid;
  gap: 1rem;
}

.webhook-event-card {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid rgb(226 232 240);
  border-radius: 1rem;
  background: rgb(248 250 252);
}

.webhook-event-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgb(100 116 139);
}

.webhook-event-head strong {
  color: rgb(15 23 42);
  font-weight: 900;
}

.settings-full-field {
  margin-top: 1rem;
}

.locale-chip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
}

.locale-chip {
  cursor: pointer;
}

.locale-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.locale-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgb(226 232 240);
  border-radius: .75rem;
  color: rgb(71 85 105);
  background: rgb(248 250 252);
  font-size: .85rem;
  font-weight: 900;
  transition: all .18s ease;
}

.locale-chip input:checked + span {
  border-color: rgb(16 185 129);
  color: rgb(5 150 105);
  background: rgb(209 250 229 / 72%);
  box-shadow: 0 10px 24px rgb(16 185 129 / 12%);
}

.check-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 52px;
  padding: .85rem .95rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .9rem;
  background: rgb(248 250 252);
  color: rgb(51 65 85);
  font-weight: 800;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: rgb(16 185 129);
}

.check-row span {
  line-height: 1.25;
}

.settings-preview-card {
  position: sticky;
  top: 5rem;
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.settings-preview-top {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .9rem;
  background: rgb(248 250 252);
}

.settings-preview-top strong,
.settings-preview-top span {
  display: block;
}

.settings-preview-top strong {
  color: rgb(15 23 42);
  font-weight: 900;
}

.settings-preview-top span {
  color: rgb(100 116 139);
  font-size: .82rem;
}

.settings-preview-hero {
  padding: 1.25rem;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 0 0, rgb(16 185 129 / 18%), transparent 40%),
    linear-gradient(135deg, #ffffff, #f8fafc);
}

.settings-preview-hero h2 {
  color: rgb(15 23 42);
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
}

.settings-preview-hero p {
  margin-top: .75rem;
  color: rgb(71 85 105);
  line-height: 1.6;
}

.security-preview {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem;
  border: 1px solid rgb(187 247 208);
  border-radius: .9rem;
  color: rgb(22 101 52);
  background: rgb(240 253 244);
}

.security-preview > span {
  font-size: 1.6rem;
}

.security-preview strong,
.security-preview small {
  display: block;
}

.security-preview small {
  color: rgb(21 128 61);
}

.settings-terminal .terminal-body {
  min-height: 180px;
}

.settings-save {
  width: 100%;
  gap: .45rem;
}

.settings-save span {
  font-size: 1.2rem;
}

.project-show-grid {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.upload-card,
.compile-history-card,
.command-card,
.plan-create-card,
.plan-admin-card {
  border: 1px solid rgb(226 232 240);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 38px rgb(15 23 42 / 5%);
}

.upload-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.upload-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
}

.upload-hero h2 {
  color: rgb(15 23 42);
  font-size: 1.2rem;
  font-weight: 900;
}

.upload-hero p {
  margin-top: .25rem;
  color: rgb(100 116 139);
  line-height: 1.55;
}

.zip-upload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 52px;
  border: 0;
  border-radius: .85rem;
  color: #fff;
  background: linear-gradient(135deg, var(--p2g-primary), var(--p2g-info));
  box-shadow: 0 18px 38px rgb(16 185 129 / 22%);
  cursor: pointer;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease;
}

.zip-upload-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgb(16 185 129 / 28%);
}

.zip-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.zip-upload-button span {
  font-size: 1.35rem;
}

.archive-current,
.empty-state {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .85rem;
  background: rgb(248 250 252);
}

.archive-current > span,
.empty-state > span {
  color: rgb(5 150 105);
  font-size: 1.5rem;
}

.archive-current strong,
.archive-current small {
  display: block;
}

.archive-current small,
.empty-state p {
  color: rgb(100 116 139);
}

.empty-state {
  justify-content: center;
  min-height: 140px;
  text-align: center;
}

.empty-state.compact {
  min-height: 72px;
}

.project-jobs-list {
  gap: .65rem;
}

.project-job-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: .75rem;
  align-items: center;
  padding: .85rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .85rem;
  color: rgb(15 23 42);
  background: rgb(248 250 252);
}

.project-job-row code {
  overflow: hidden;
  color: rgb(51 65 85);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-job-row small {
  color: rgb(100 116 139);
}

.download-chip {
  padding: .25rem .55rem;
  border-radius: 999px;
  color: rgb(3 105 161);
  background: rgb(224 242 254);
  font-size: .72rem;
  font-weight: 900;
}

.plans-admin-shell {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.plan-create-card {
  position: sticky;
  top: 5rem;
  padding: 1.25rem;
}

.plan-create-grid,
.plan-fields-grid {
  display: grid;
  gap: .85rem;
}

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

.plan-create-grid label:nth-child(1),
.plan-create-grid label:nth-child(2),
.plan-create-submit {
  grid-column: 1 / -1;
}

.toggle-line {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 42px;
}

.toggle-line input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--p2g-primary);
}

.toggle-line span {
  color: rgb(51 65 85);
  font-weight: 900;
}

.plans-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.plan-admin-card {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
}

.plan-admin-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgb(226 232 240);
}

.plan-admin-head h2 {
  margin-top: .55rem;
  color: rgb(15 23 42);
  font-size: 1.35rem;
  font-weight: 900;
}

.plan-admin-head strong {
  display: block;
  margin-top: .25rem;
  color: rgb(5 150 105);
  font-size: 1.7rem;
  line-height: 1;
}

.toggle-line.compact {
  min-height: auto;
  padding: .4rem .55rem;
  border: 1px solid rgb(226 232 240);
  border-radius: 999px;
  background: rgb(248 250 252);
}

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

.plan-fields-grid label:nth-child(1),
.plan-fields-grid label:nth-child(2) {
  grid-column: span 3;
}

.limit-pill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
}

.limit-pill-grid label {
  gap: .25rem;
  padding: .65rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .85rem;
  background: rgb(248 250 252);
  color: rgb(100 116 139);
  font-size: .75rem;
  font-weight: 900;
}

.limit-pill-grid input {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 900;
}

.plan-save-button,
.plan-create-submit {
  gap: .4rem;
}

.plan-save-button span,
.plan-create-submit span {
  font-size: 1.2rem;
}

.page-tabs {
  justify-content: flex-end;
  margin: -0.25rem 0 1rem;
}

.plans-list-panel {
  padding: 1.25rem;
}

.plans-table-wrap table {
  min-width: 1040px;
}

.plan-list-title {
  display: inline-grid;
  gap: .15rem;
  color: rgb(15 23 42);
}

.plan-list-title strong {
  font-weight: 900;
}

.plan-list-title small {
  color: rgb(100 116 139);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.table-actions form {
  margin: 0;
}

.danger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 .75rem;
  border: 1px solid rgb(254 205 211);
  border-radius: .55rem;
  color: rgb(190 18 60);
  background: rgb(255 241 242);
  font-weight: 900;
}

.danger-action:disabled,
.user-delete-form button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.plan-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 1rem;
  align-items: start;
}

.plan-edit-panel {
  display: grid;
  gap: 1rem;
  min-width: 0;
  overflow: hidden;
}

.panel-top.inner {
  padding-top: .5rem;
  border-top: 1px solid rgb(226 232 240);
}

.plan-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  min-width: 0;
}

.plan-form-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-form-grid label {
  min-width: 0;
}

.plan-form-grid input,
.plan-form-grid select {
  width: 100%;
  max-width: 100%;
}

.plan-form-grid label:nth-child(1),
.plan-form-grid label:nth-child(2) {
  grid-column: 1 / -1;
}

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

.plan-side-panel {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.job-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.job-metric strong {
  font-size: 1.35rem;
  word-break: break-word;
}

.job-metric strong .status {
  font-size: .85rem;
}

.command-card {
  display: grid;
  gap: .75rem;
  margin-bottom: 1rem;
  padding: 1.15rem;
}

.command-card h2 {
  color: rgb(15 23 42);
  font-size: 1.1rem;
  font-weight: 900;
}

.command-card code {
  overflow: auto;
  padding: .9rem;
  border-radius: .85rem;
  color: rgb(3 105 161);
  background: rgb(240 249 255);
  white-space: pre-wrap;
  word-break: break-word;
}

.job-log-stage .terminal-body {
  max-height: 560px;
  min-height: 420px;
}

.job-log-stage .terminal-body p {
  white-space: pre-wrap;
  word-break: break-word;
}

.users-admin-shell {
  display: grid;
  grid-template-columns: minmax(330px, 420px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.user-create-card,
.user-admin-card {
  border: 1px solid rgb(226 232 240);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 38px rgb(15 23 42 / 5%);
}

.user-create-card {
  position: sticky;
  top: 5rem;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.user-form-grid {
  display: grid;
  gap: .85rem;
}

.user-mini-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.user-create-submit,
.user-save-button {
  gap: .4rem;
}

.user-create-submit span,
.user-save-button span {
  font-size: 1.2rem;
}

.users-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.user-admin-card {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
}

.user-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .85rem;
  align-items: center;
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--p2g-primary), var(--p2g-info));
  font-weight: 900;
  box-shadow: 0 14px 30px rgb(16 185 129 / 20%);
}

.user-card-head h2 {
  overflow: hidden;
  color: rgb(15 23 42);
  font-size: 1.2rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card-head p {
  overflow: hidden;
  margin: .15rem 0 0;
  color: rgb(100 116 139);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}

.user-card-stats div {
  padding: .75rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .85rem;
  background: rgb(248 250 252);
}

.user-card-stats span,
.user-card-stats strong {
  display: block;
}

.user-card-stats span {
  color: rgb(100 116 139);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.user-card-stats strong {
  overflow: hidden;
  margin-top: .25rem;
  color: rgb(15 23 42);
  font-size: 1.05rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-edit-form {
  display: grid;
  gap: .85rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(226 232 240);
}

.user-subscription-box {
  display: grid;
  gap: .85rem;
  padding: .95rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .9rem;
  background: rgb(248 250 252);
}

.user-plan-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px auto;
  gap: .65rem;
  align-items: center;
}

.user-plan-form input,
.user-plan-form select {
  background: #fff;
}

.secondary-action {
  min-height: 42px;
  padding: 0 .85rem;
  border: 1px solid rgb(203 213 225);
  border-radius: .55rem;
  color: rgb(15 23 42);
  background: #fff;
  font-weight: 900;
}

.secondary-action:hover {
  color: rgb(5 150 105);
  border-color: rgb(167 243 208);
  background: rgb(236 253 245);
}

.modal-open {
  overflow: hidden;
}

.modal-open-button {
  gap: .4rem;
}

.modal-open-button span {
  font-size: 1.2rem;
}

.users-list-panel {
  padding: 1.25rem;
}

.users-table-wrap table {
  min-width: 960px;
}

.users-table td {
  vertical-align: middle;
}

.user-list-identity {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: rgb(15 23 42);
}

.user-list-identity strong,
.user-list-identity small {
  display: block;
}

.user-list-identity small {
  color: rgb(100 116 139);
}

.user-avatar.small {
  width: 38px;
  height: 38px;
  border-radius: .8rem;
  font-size: .85rem;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 .6rem;
  border-radius: 999px;
  color: rgb(51 65 85);
  background: rgb(241 245 249);
  font-size: .75rem;
  font-weight: 900;
}

.block {
  display: block;
}

.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.p2g-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.p2g-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 52%);
  backdrop-filter: blur(8px);
}

.p2g-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  width: min(560px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.25rem;
  border: 1px solid rgb(226 232 240);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 30px 90px rgb(15 23 42 / 25%);
}

.p2g-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.p2g-modal-head h2 {
  color: rgb(15 23 42);
  font-size: 1.35rem;
  font-weight: 900;
}

.p2g-modal-head button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgb(226 232 240);
  border-radius: .65rem;
  color: rgb(71 85 105);
  background: rgb(248 250 252);
}

.p2g-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  padding-top: .25rem;
}

.p2g-modal-actions .primary-btn {
  gap: .4rem;
}

.user-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 1rem;
  align-items: start;
  min-width: 0;
}

.user-detail-main,
.user-detail-side,
.provider-list {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.user-detail-main {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.user-detail-main > .panel,
.user-detail-side > .panel {
  max-width: 100%;
  min-width: 0;
}

.user-profile-card {
  display: grid;
  gap: 1rem;
  min-width: 0;
  overflow: hidden;
}

.user-form-grid.detail {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.user-form-grid.detail label,
.user-mini-row label,
.user-plan-form.detail,
.user-plan-form.detail select,
.user-plan-form.detail input {
  min-width: 0;
}

.user-form-grid.detail input,
.user-form-grid.detail select,
.user-form-grid.detail textarea,
.user-mini-row input,
.user-mini-row select {
  width: 100%;
  max-width: 100%;
}

.user-form-grid.detail label:nth-child(3),
.user-form-grid.detail .user-mini-row {
  grid-column: auto;
}

.current-plan-card {
  padding: 1rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .9rem;
  background:
    radial-gradient(circle at 100% 0, rgb(16 185 129 / 12%), transparent 38%),
    rgb(248 250 252);
}

.current-plan-card h3 {
  margin-top: .65rem;
  color: rgb(15 23 42);
  font-size: 1.35rem;
  font-weight: 900;
}

.user-plan-form.detail {
  grid-template-columns: 1fr 88px;
}

.user-plan-form.detail button {
  grid-column: 1 / -1;
}

.provider-list div {
  display: grid;
  gap: .15rem;
  padding: .85rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .85rem;
  background: rgb(248 250 252);
  min-width: 0;
}

.provider-list strong {
  color: rgb(15 23 42);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.provider-list span,
.provider-list small {
  color: rgb(100 116 139);
  overflow-wrap: anywhere;
}

.payment-history-list {
  display: grid;
  gap: .75rem;
}

.payment-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  min-width: 0;
  padding: .9rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .9rem;
  background:
    linear-gradient(135deg, rgb(248 250 252), rgb(255 255 255));
}

.payment-history-row div {
  display: grid;
  gap: .15rem;
  min-width: 0;
}

.payment-history-row strong {
  color: rgb(15 23 42);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.payment-history-row span,
.payment-history-row small {
  color: rgb(100 116 139);
  overflow-wrap: anywhere;
}

.payment-history-row b {
  color: rgb(15 23 42);
  font-size: .95rem;
  white-space: nowrap;
}

.danger-panel {
  border-color: rgb(254 205 211);
}

.user-delete-form {
  display: flex;
  justify-content: flex-end;
}

.user-delete-form button {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 38px;
  padding: 0 .75rem;
  border: 1px solid rgb(254 205 211);
  border-radius: .55rem;
  color: rgb(190 18 60);
  background: rgb(255 241 242);
  font-weight: 900;
}

.user-delete-form button span {
  font-size: 1.1rem;
}

@media (max-width: 1180px) {
  .public-links {
    display: none;
  }

  .landing-hero,
  .sales-hero,
  .demo-section,
  .security-section {
    grid-template-columns: 1fr;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .settings-page {
    grid-template-columns: 1fr;
  }

  .project-show-grid,
  .plans-admin-shell,
  .plan-detail-grid,
  .users-admin-shell,
  .user-detail-grid {
    grid-template-columns: 1fr;
  }

  .settings-preview-card {
    position: static;
  }

  .plan-create-card {
    position: static;
  }

  .user-create-card {
    position: static;
  }

  .auth-visual {
    min-height: auto;
  }

  .landing-terminal-card .hero-terminal {
    min-height: 380px;
  }

  .sales-hero {
    min-height: auto;
  }

  .sales-hero-console .hero-terminal {
    min-height: 390px;
  }

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

@media (max-width: 920px) {
  .public-nav,
  .public-actions {
    flex-wrap: wrap;
  }

  .public-nav {
    padding-top: .75rem;
    padding-bottom: .75rem;
  }

  .landing-stat-grid,
  .metric-grid,
  .landing-dashboard,
  .dashboard-grid,
  .dashboard-bottom,
  .plans-card-grid,
  .job-detail-grid,
  .payment-detail-grid,
  .users-card-grid,
  .settings-subgrid,
  .sales-card-grid.three,
  .sales-card-grid.four,
  .section-heading.split,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero-copy h1,
  .sales-hero-copy h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .sales-final-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .public-main {
    width: min(100% - 1rem, 1520px);
    padding-top: .75rem;
  }

  .public-actions {
    width: 100%;
  }

  .language-switcher {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .landing-hero,
  .sales-hero,
  .demo-section,
  .security-section {
    min-height: auto;
    padding: 1rem;
  }

  .landing-hero-copy,
  .sales-hero-copy {
    padding: .5rem;
  }

  .landing-mini-grid,
  .sales-hero-cards,
  .project-row,
  .project-job-row,
  .jobs-list.compact .job-row,
  .settings-fields.two,
  .payment-settings-grid,
  .locale-chip-grid,
  .plan-form-grid,
  .plan-form-grid.compact,
  .plan-form-grid.limits,
  .plan-create-grid,
  .plan-fields-grid,
  .limit-pill-grid,
  .user-card-head,
  .user-card-stats,
  .user-mini-row,
  .user-plan-form,
  .user-form-grid.detail,
  .user-plan-form.detail {
    grid-template-columns: 1fr;
  }

  .plan-fields-grid label:nth-child(1),
  .plan-fields-grid label:nth-child(2),
  .plan-form-grid label:nth-child(1),
  .plan-form-grid label:nth-child(2),
  .user-form-grid.detail label:nth-child(3),
  .user-form-grid.detail .user-mini-row,
  .user-plan-form.detail button {
    grid-column: auto;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .p2g-modal-actions {
    flex-direction: column-reverse;
  }
}

/* Final app overrides: keep action buttons visible after FlexAdmin/base rules. */
.primary-btn,
button.primary-btn,
a.primary-btn,
.primary-link,
a.primary-link,
.p2g-top-button.primary,
.terminal-input button,
.inline-form button,
.plan-edit-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  color: #fff !important;
  background: linear-gradient(135deg, var(--p2g-primary), #0ea5e9) !important;
  box-shadow: 0 12px 28px rgb(16 185 129 / 20%);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.secondary-action,
button.secondary-action,
a.secondary-action,
.secondary-link,
a.secondary-link,
.oauth-btn,
a.oauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .55rem;
  color: rgb(51 65 85) !important;
  background: #fff !important;
  font-weight: 900;
  text-decoration: none;
}

.danger-action,
button.danger-action {
  color: rgb(190 18 60) !important;
  background: rgb(255 241 242) !important;
}

.price-card .primary-btn {
  width: 100%;
  margin-top: .25rem;
}

.auth-page-single {
  display: grid;
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 172px);
  padding: clamp(1rem, 4vw, 3rem) 0;
}

.auth-page-single .auth-form-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgb(226 232 240);
  background:
    radial-gradient(circle at 0 0, rgb(16 185 129 / 16%), transparent 34%),
    radial-gradient(circle at 100% 100%, rgb(14 165 233 / 13%), transparent 36%),
    #fff;
}

.auth-page-single .auth-form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--p2g-primary), var(--p2g-info));
}

.auth-page-single .auth-form-card label {
  display: grid;
  gap: .35rem;
  color: rgb(51 65 85);
  font-weight: 900;
}

.auth-page-single .auth-form-card input {
  width: 100%;
}

.auth-page-single .auth-submit,
.auth-page-single .auth-google {
  width: 100%;
}

.system-status-card.ok {
  border-color: rgb(167 243 208);
  background:
    radial-gradient(circle at 100% 0, rgb(16 185 129 / 13%), transparent 36%),
    #fff;
}

.system-status-card.warn {
  border-color: rgb(253 230 138);
  background:
    radial-gradient(circle at 100% 0, rgb(245 158 11 / 14%), transparent 36%),
    #fff;
}

.system-status-card.error {
  border-color: rgb(254 205 211);
  background:
    radial-gradient(circle at 100% 0, rgb(244 63 94 / 12%), transparent 36%),
    #fff;
}

.system-grid {
  align-items: stretch;
  margin-bottom: 1rem;
}

.system-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.system-kv-grid > div {
  min-width: 0;
  padding: .85rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .75rem;
  background: rgb(248 250 252);
}

.system-kv-grid span {
  display: block;
  color: rgb(100 116 139);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.system-kv-grid strong {
  display: block;
  overflow: hidden;
  margin-top: .3rem;
  color: rgb(15 23 42);
  font-size: .95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-table-wrap table {
  min-width: 900px;
}

.status.ok,
.status.success,
.status.paid,
.status.completed {
  color: rgb(5 150 105);
  background: rgb(209 250 229);
}

.status.warn,
.status.warning {
  color: rgb(146 64 14);
  background: rgb(254 243 199);
}

.status.open {
  color: rgb(29 78 216);
  background: rgb(219 234 254);
}

.status.answered,
.status.closed {
  color: rgb(71 85 105);
  background: rgb(241 245 249);
}

.status.error,
.status.failed,
.status.timeout,
.status.cancelled {
  color: rgb(190 18 60);
  background: rgb(255 228 230);
}

.inline-code {
  display: inline-block;
  max-width: min(560px, 60vw);
  overflow: hidden;
  padding: .25rem .4rem;
  border-radius: .4rem;
  color: rgb(30 41 59);
  background: rgb(241 245 249);
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.billing-invoices-panel {
  margin-top: 1.25rem;
}

.invoice-paper {
  max-width: 980px;
  margin: 0 auto 2rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid rgb(226 232 240);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 100% 0, rgb(16 185 129 / 12%), transparent 30%),
    #fff;
  box-shadow: 0 24px 60px rgb(15 23 42 / 8%);
}

.invoice-head,
.invoice-parties,
.invoice-lines,
.invoice-total {
  display: grid;
  gap: 1rem;
}

.invoice-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgb(226 232 240);
}

.invoice-head h2 {
  margin: .25rem 0 .5rem;
  color: rgb(15 23 42);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: .95;
}

.invoice-parties {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.invoice-parties > div,
.invoice-lines > div {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .85rem;
  background: rgb(248 250 252);
}

.invoice-parties h3,
.invoice-parties p {
  margin: 0 0 .35rem;
}

.invoice-parties span,
.invoice-lines span,
.invoice-total span {
  color: rgb(100 116 139);
  font-weight: 800;
}

.invoice-lines {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.invoice-lines strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: .3rem;
}

.invoice-total {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(226 232 240);
}

.invoice-total strong {
  color: rgb(5 150 105);
  font-size: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 640px) {
  .auth-page-single {
    min-height: calc(100vh - 220px);
    padding: 1rem 0;
  }

  .system-kv-grid {
    grid-template-columns: 1fr;
  }

  .invoice-head,
  .invoice-parties,
  .invoice-lines,
  .invoice-total {
    grid-template-columns: 1fr;
  }
}

@media print {
  .p2g-sidebar,
  .topbar,
  .app-footer,
  .print-hidden {
    display: none !important;
  }

  .app-shell,
  .app-main,
  .app-content {
    display: block !important;
    width: 100% !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .invoice-paper {
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Sales landing compact pass. */
.sales-hero {
  min-height: 520px;
  padding: clamp(1rem, 2.7vw, 2.4rem);
}

.sales-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(2.7rem, 5.4vw, 5.6rem);
  line-height: .96;
}

.sales-hero-copy > p {
  max-width: 650px;
  margin-top: .9rem;
  font-size: clamp(.98rem, 1.1vw, 1.12rem);
  line-height: 1.55;
}

.sales-proof-row,
.command-chip-list {
  gap: .5rem;
  margin-top: .9rem;
}

.sales-proof-row span,
.command-chip-list code {
  min-height: 32px;
  padding: .35rem .65rem;
  font-size: .86rem;
}

.sales-hero-console .hero-terminal {
  min-height: 390px;
}

.sales-hero-cards > div,
.sales-card,
.benefit-card {
  padding: 1rem;
}

.sales-section,
.sales-pipeline,
.sales-final-cta {
  margin-top: clamp(1rem, 2.5vw, 2rem);
}

.section-heading {
  margin-bottom: .8rem;
}

.section-heading h2,
.sales-final-cta h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.05;
}

.sales-card > span {
  width: 38px;
  height: 38px;
  border-radius: .7rem;
  font-size: 1.35rem;
}

.sales-card h3,
.benefit-card h3,
.security-list strong {
  margin: .75rem 0 .3rem;
  font-size: 1.05rem;
}

.sales-card p,
.benefit-card p,
.security-list p,
.faq-grid p {
  line-height: 1.55;
}

.benefit-card strong {
  min-width: 54px;
  min-height: 42px;
  font-size: 1.12rem;
}

.demo-section,
.security-section {
  padding: clamp(1rem, 2.3vw, 1.55rem);
}

.demo-window .terminal-preview {
  min-height: 320px;
}

.terminal-lines.compact {
  min-height: 260px;
}

.security-list > div,
.faq-grid details {
  padding: .85rem;
}

.sales-final-cta {
  padding: clamp(1rem, 2.3vw, 1.55rem);
}

@media (max-width: 1180px) {
  .sales-hero-console .hero-terminal {
    min-height: 330px;
  }
}

@media (max-width: 920px) {
  .sales-hero-copy h1 {
    font-size: clamp(2.3rem, 11vw, 3.8rem);
  }
}

.support-create-grid,
.support-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .42fr);
  gap: 1rem;
  align-items: start;
}

.support-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.support-form-grid label,
.support-reply-form label,
.support-status-form label {
  display: grid;
  gap: .4rem;
  color: rgb(30 41 59);
  font-weight: 900;
}

.support-form-grid .support-message-label,
.support-log-toggle {
  grid-column: 1 / -1;
}

.support-help-card {
  position: sticky;
  top: 5.5rem;
}

.support-help-card > span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: .85rem;
  color: rgb(5 150 105);
  background: rgb(209 250 229);
  font-size: 1.7rem;
}

.support-help-card ul {
  display: grid;
  gap: .65rem;
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: rgb(71 85 105);
}

.support-chat {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.support-message {
  max-width: min(920px, 100%);
  padding: 1rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .95rem;
  background: #fff;
  box-shadow: 0 12px 36px rgb(15 23 42 / 5%);
}

.support-message.from-admin {
  margin-left: auto;
  border-color: rgb(167 243 208);
  background:
    radial-gradient(circle at 100% 0, rgb(16 185 129 / 10%), transparent 34%),
    #fff;
}

.support-message-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .6rem;
  color: rgb(100 116 139);
  font-size: .85rem;
}

.support-message-head strong {
  color: rgb(15 23 42);
}

.support-message p {
  margin: 0;
  color: rgb(30 41 59);
  line-height: 1.65;
}

.support-log-snapshot {
  margin-top: .85rem;
}

.support-log-snapshot summary {
  cursor: pointer;
  color: rgb(5 150 105);
  font-weight: 900;
}

.support-log-snapshot pre {
  max-height: 460px;
  overflow: auto;
  margin: .6rem 0 0;
  padding: 1rem;
  border-radius: .75rem;
  color: rgb(226 232 240);
  background: rgb(2 6 23);
  font-size: .82rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.support-reply-form {
  display: grid;
  gap: .8rem;
}

.support-side-card {
  position: sticky;
  top: 5.5rem;
}

.support-status-form {
  display: grid;
  gap: .8rem;
  margin-top: 1rem;
}

.support-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.support-filter a {
  padding: .45rem .75rem;
  border: 1px solid rgb(226 232 240);
  border-radius: 999px;
  color: rgb(71 85 105);
  background: #fff;
  font-weight: 900;
}

.support-filter a.active,
.support-filter a:hover {
  color: rgb(5 150 105);
  border-color: rgb(167 243 208);
  background: rgb(236 253 245);
}

@media (max-width: 1100px) {
  .support-create-grid,
  .support-admin-layout {
    grid-template-columns: 1fr;
  }

  .support-help-card,
  .support-side-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .support-form-grid {
    grid-template-columns: 1fr;
  }

  .support-message-head {
    display: grid;
    gap: .2rem;
  }
}

.subscription-panel {
  margin-bottom: 1rem;
}

.subscription-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin: 1rem 0;
}

.subscription-summary-grid > div {
  min-width: 0;
  padding: .85rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .85rem;
  background: rgb(248 250 252);
}

.subscription-summary-grid span {
  display: block;
  margin-bottom: .25rem;
  color: rgb(100 116 139);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.subscription-summary-grid strong {
  display: block;
  overflow: hidden;
  color: rgb(15 23 42);
  font-size: .95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice.subtle {
  color: rgb(146 64 14);
  border-color: rgb(254 215 170);
  background: rgb(255 247 237);
}

.status.grace { background: rgb(254 249 195); color: rgb(133 77 14); }
.status.consumed,
.status.expired { background: rgb(254 226 226); color: rgb(153 27 27); }
.status.replaced { background: rgb(226 232 240); color: rgb(51 65 85); }

@media (max-width: 900px) {
  .subscription-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .subscription-summary-grid {
    grid-template-columns: 1fr;
  }
}

.subscription-mini-meta {
  display: grid;
  gap: .45rem;
  margin: .9rem 0 0;
}

.subscription-mini-meta div {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .45rem .6rem;
  border-radius: .65rem;
  background: rgb(248 250 252);
}

.subscription-mini-meta dt {
  color: rgb(100 116 139);
  font-size: .78rem;
  font-weight: 800;
}

.subscription-mini-meta dd {
  min-width: 0;
  margin: 0;
  color: rgb(15 23 42);
  font-weight: 900;
  text-align: right;
  overflow-wrap: anywhere;
}

/* Project lifecycle v37 */
.project-index-layout {
  align-items: start;
}

.project-create-panel .compact-fields {
  gap: 12px;
}

.project-card-rich {
  display: grid;
  gap: 6px;
}

.project-card-rich small,
.project-card-rich em {
  color: var(--muted, #64748b);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  word-break: break-word;
}

.project-hero-head .project-defaults-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.project-defaults-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .76);
  color: #64748b;
  font-size: 12px;
}

.project-defaults-line code {
  color: #0f172a;
  font-size: 12px;
}

.project-lifecycle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 18px;
  align-items: start;
}

.project-main-column,
.project-settings-column {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.project-settings-column {
  position: sticky;
  top: 88px;
}

.archive-version-list,
.recent-command-list {
  display: grid;
  gap: 10px;
}

.archive-version-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 14px;
  background: #fff;
}

.archive-version-row.is-active {
  border-color: rgba(16, 185, 129, .42);
  background: linear-gradient(180deg, rgba(236, 253, 245, .9), #fff);
}

.archive-version-row strong,
.archive-version-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.archive-version-row small {
  color: #64748b;
  font-size: 12px;
  margin-top: 3px;
}

.archive-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.project-job-row.with-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.project-job-main {
  display: grid;
  gap: 5px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.secondary-action.compact,
.danger-action[disabled] {
  white-space: nowrap;
}

.danger-action[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.project-settings-card label,
.danger-panel label {
  display: grid;
  gap: 6px;
}

.project-settings-card input,
.project-settings-card textarea {
  width: 100%;
  max-width: 100%;
}

.recent-command-list a {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.recent-command-list code,
.terminal-recent-commands button {
  overflow-wrap: anywhere;
}

.recent-command-list small {
  color: #64748b;
  font-size: 12px;
}

.terminal-recent-commands {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, .22);
}

.terminal-recent-commands strong {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.terminal-recent-commands button {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(15, 23, 42, .32);
  color: #e2e8f0;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .project-lifecycle-grid {
    grid-template-columns: 1fr;
  }
  .project-settings-column {
    position: static;
  }
}

@media (max-width: 720px) {
  .archive-version-row,
  .project-job-row.with-actions {
    grid-template-columns: 1fr;
  }
  .archive-actions,
  .inline-actions {
    justify-content: flex-start;
  }
  .archive-actions form,
  .archive-actions button,
  .project-job-row.with-actions .secondary-action {
    width: 100%;
  }
}

/* v38 user profile */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 1rem;
  align-items: start;
}

.profile-main-stack,
.profile-side-stack {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.profile-card-panel,
.profile-summary-panel {
  min-width: 0;
  overflow: hidden;
}

.profile-inline-meta,
.profile-summary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: .75rem 0 1rem;
}

.profile-inline-meta span,
.profile-summary-list span,
.profile-subscription-box {
  display: grid;
  gap: .15rem;
  min-width: 0;
  padding: .75rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .8rem;
  background: rgb(248 250 252);
  color: rgb(71 85 105);
  font-size: .86rem;
}

.profile-inline-meta b,
.profile-summary-list b,
.profile-subscription-box strong {
  color: rgb(15 23 42);
  font-weight: 900;
}

.profile-summary-panel {
  text-align: center;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto .75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(14 165 233), rgb(79 70 229));
  color: #fff;
  font-size: 2rem;
  font-weight: 1000;
  box-shadow: 0 16px 35px rgb(37 99 235 / 18%);
}

.profile-avatar.image {
  object-fit: cover;
  background: rgb(226 232 240);
}

.profile-summary-panel h2 {
  color: rgb(15 23 42);
  font-size: 1.35rem;
  font-weight: 1000;
}

.profile-summary-panel p {
  color: rgb(100 116 139);
  overflow-wrap: anywhere;
}

.profile-subscription-box {
  margin-top: .75rem;
  text-align: left;
}

.profile-list,
.profile-oauth-connectors,
.profile-activity-list,
.profile-notification-list {
  display: grid;
  gap: .75rem;
}

.profile-list-row,
.profile-activity-row,
.profile-toggle-row {
  display: grid;
  gap: .75rem;
  min-width: 0;
  padding: .9rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .9rem;
  background: linear-gradient(135deg, rgb(248 250 252), #fff);
  color: inherit;
  text-decoration: none;
}

.profile-list-row {
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
}

.profile-list-row.with-action {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.profile-list-row > .material-symbols-rounded,
.profile-activity-row > .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: .8rem;
  background: rgb(219 234 254);
  color: rgb(37 99 235);
}

.profile-list-row div,
.profile-activity-row div,
.profile-toggle-row span {
  display: grid;
  gap: .18rem;
  min-width: 0;
}

.profile-list-row strong,
.profile-activity-row strong,
.profile-toggle-row strong {
  color: rgb(15 23 42);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.profile-list-row small,
.profile-activity-row small,
.profile-toggle-row small,
.profile-activity-row time {
  color: rgb(100 116 139);
  overflow-wrap: anywhere;
}

.profile-activity-row {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
}

.profile-activity-row:hover {
  border-color: rgb(59 130 246 / 40%);
  transform: translateY(-1px);
}

.profile-toggle-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  cursor: pointer;
}

.profile-toggle-row input {
  width: 18px;
  height: 18px;
  margin-top: .15rem;
  accent-color: rgb(37 99 235);
}

.profile-notification-form,
.profile-delete-form {
  display: grid;
  gap: 1rem;
}

.profile-delete-form label {
  display: grid;
  gap: .4rem;
  color: rgb(71 85 105);
  font-weight: 800;
}

.profile-delete-form input {
  width: 100%;
  border: 1px solid rgb(226 232 240);
  border-radius: .7rem;
  padding: .7rem .8rem;
  background: #fff;
}

.danger-mini {
  min-height: 34px;
  padding: 0 .65rem;
  border: 1px solid rgb(254 205 211);
  border-radius: .6rem;
  background: rgb(255 241 242);
  color: rgb(190 18 60);
  font-weight: 900;
}

.secondary-action.is-disabled {
  opacity: .55;
  pointer-events: none;
  filter: grayscale(1);
}

@media (max-width: 1180px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .profile-inline-meta,
  .profile-summary-list,
  .profile-activity-row,
  .profile-list-row.with-action {
    grid-template-columns: 1fr;
  }

  .profile-activity-row time {
    justify-self: start;
  }
}

/* Docs */
.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgb(226 232 240);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 8% 0, rgb(16 185 129 / 16%), transparent 34%),
    radial-gradient(circle at 100% 20%, rgb(14 165 233 / 14%), transparent 30%),
    linear-gradient(135deg, #fff, rgb(248 250 252));
  box-shadow: 0 18px 48px rgb(15 23 42 / 8%);
}

.docs-hero h1 {
  max-width: 820px;
  color: rgb(15 23 42);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: .96;
  font-weight: 1000;
}

.docs-hero p {
  max-width: 760px;
  margin-top: 1rem;
  color: rgb(71 85 105);
  font-size: 1.05rem;
  line-height: 1.7;
}

.docs-actions {
  margin-top: 1.25rem;
}

.docs-quick-card,
.docs-sidebar,
.docs-content,
.docs-card,
.docs-panel,
.docs-callout,
.docs-tree {
  border: 1px solid rgb(226 232 240);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
}

.docs-quick-card {
  padding: 1.25rem;
}

.docs-quick-card strong {
  color: rgb(15 23 42);
  font-size: 1.1rem;
  font-weight: 1000;
}

.docs-quick-card ol {
  display: grid;
  gap: .75rem;
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: rgb(71 85 105);
  font-weight: 800;
}

.docs-shell {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 86px;
  display: grid;
  gap: .35rem;
  padding: .75rem;
}

.docs-nav-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: .65rem;
  min-height: 42px;
  padding: .55rem .65rem;
  border-radius: .75rem;
  color: rgb(71 85 105);
  font-weight: 900;
  text-decoration: none;
}

.docs-nav-link i {
  color: rgb(100 116 139);
  font-size: 1.25rem;
}

.docs-nav-link:hover,
.docs-nav-link.active {
  color: rgb(5 150 105);
  background: rgb(236 253 245);
}

.docs-nav-link.active i {
  color: rgb(5 150 105);
}

.docs-content {
  display: grid;
  gap: 1.1rem;
  min-width: 0;
  padding: clamp(1rem, 2.4vw, 1.75rem);
}

.docs-section-head h2 {
  max-width: 860px;
  color: rgb(15 23 42);
  font-size: clamp(1.7rem, 2.6vw, 2.65rem);
  line-height: 1.05;
  font-weight: 1000;
}

.docs-section-head p,
.docs-content > p,
.docs-panel li,
.docs-callout p,
.docs-tree span {
  color: rgb(71 85 105);
  line-height: 1.75;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.docs-card {
  display: grid;
  gap: .55rem;
  min-height: 170px;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.docs-card:hover {
  transform: translateY(-2px);
  border-color: rgb(16 185 129 / 45%);
  box-shadow: 0 14px 34px rgb(16 185 129 / 10%);
}

.docs-card .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: .9rem;
  color: rgb(5 150 105);
  background: rgb(209 250 229);
}

.docs-card strong,
.docs-panel h3,
.docs-callout strong,
.docs-tree span,
.docs-content h3 {
  color: rgb(15 23 42);
  font-weight: 1000;
}

.docs-card p {
  margin: 0;
  color: rgb(100 116 139);
  line-height: 1.65;
}

.docs-two-col,
.docs-limits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.docs-panel,
.docs-callout,
.docs-tree {
  padding: 1rem;
}

.docs-panel.good {
  border-color: rgb(187 247 208);
  background: rgb(240 253 244);
}

.docs-panel.bad {
  border-color: rgb(254 205 211);
  background: rgb(255 241 242);
}

.docs-panel ul {
  display: grid;
  gap: .55rem;
  margin: .75rem 0 0;
  padding-left: 1.2rem;
}

.docs-content pre,
.docs-tree pre,
.docs-callout pre {
  overflow: auto;
  margin: .75rem 0 0;
  padding: 1rem;
  border-radius: .9rem;
  color: rgb(226 232 240);
  background: rgb(7 17 31);
  font: .88rem/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.docs-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.docs-command-list,
.docs-error-list {
  display: grid;
  gap: .65rem;
}

.docs-command-row {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
  padding: .85rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .85rem;
  background: rgb(248 250 252);
}

.docs-command-row code {
  color: rgb(2 132 199);
  font-weight: 900;
}

.docs-command-row span {
  color: rgb(71 85 105);
}

.docs-callout {
  background: linear-gradient(135deg, rgb(239 246 255), #fff);
}

.docs-callout.success {
  border-color: rgb(187 247 208);
  background: linear-gradient(135deg, rgb(240 253 244), #fff);
}

.docs-callout.warn {
  border-color: rgb(253 230 138);
  background: linear-gradient(135deg, rgb(255 251 235), #fff);
}

.docs-callout.support {
  display: grid;
  gap: .7rem;
  border-color: rgb(191 219 254);
  background: linear-gradient(135deg, rgb(239 246 255), #fff);
}

.docs-error-list details {
  border: 1px solid rgb(226 232 240);
  border-radius: .85rem;
  background: #fff;
}

.docs-error-list summary {
  cursor: pointer;
  padding: .9rem 1rem;
  color: rgb(15 23 42);
  font-weight: 1000;
}

.docs-error-list p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: rgb(71 85 105);
  line-height: 1.7;
}

.docs-limits-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.docs-limits-grid > div {
  padding: 1rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .9rem;
  background: rgb(248 250 252);
}

.docs-limits-grid span {
  display: block;
  color: rgb(100 116 139);
  font-size: .75rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.docs-limits-grid strong {
  display: block;
  margin-top: .4rem;
  color: rgb(15 23 42);
  font-size: 1.25rem;
  font-weight: 1000;
}

@media (max-width: 1080px) {
  .docs-hero,
  .docs-shell,
  .docs-two-col,
  .docs-limits-grid {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }

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

@media (max-width: 720px) {
  .docs-card-grid,
  .docs-command-row,
  .docs-limits-grid {
    grid-template-columns: 1fr;
  }
}

/* v40 queue/admin security */
.admin-filter-form {
  display: grid;
  grid-template-columns: minmax(120px, .6fr) minmax(180px, 1fr) repeat(2, minmax(150px, .7fr)) auto auto;
  gap: .75rem;
  align-items: end;
}

.admin-filter-form label,
.security-panel label {
  display: grid;
  gap: .35rem;
  color: rgb(71 85 105);
  font-size: .82rem;
  font-weight: 900;
}

.admin-filter-form input,
.admin-filter-form select,
.security-panel input,
.security-panel textarea {
  width: 100%;
  border: 1px solid rgb(226 232 240);
  border-radius: .8rem;
  padding: .7rem .85rem;
  background: #fff;
  color: rgb(15 23 42);
}

.compact-btn {
  min-height: 42px;
  padding: .7rem 1rem;
}

.inline-form {
  margin: 0;
}

.danger-soft,
.job-action-stack button.danger-soft {
  border-color: rgb(254 202 202);
  background: rgb(254 242 242);
  color: rgb(185 28 28);
}

.job-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  min-width: 220px;
}

.job-action-stack form {
  margin: 0;
}

.job-action-stack button {
  border: 1px solid rgb(219 234 254);
  border-radius: 999px;
  background: rgb(239 246 255);
  color: rgb(29 78 216);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 1000;
  padding: .35rem .6rem;
}

.status.stale {
  background: rgb(255 247 237);
  color: rgb(194 65 12);
}

.status.idle,
.status.polling,
.status.booting {
  background: rgb(241 245 249);
  color: rgb(51 65 85);
}

.status.running {
  background: rgb(239 246 255);
  color: rgb(29 78 216);
}

.security-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
}

.security-panel {
  display: grid;
  gap: 1rem;
}

.security-notes {
  display: grid;
  gap: .75rem;
}

.security-notes > div {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .9rem;
  border: 1px solid rgb(226 232 240);
  border-radius: .9rem;
  background: rgb(248 250 252);
}

.security-notes .material-symbols-rounded {
  color: rgb(37 99 235);
}

.security-notes p {
  margin: 0;
  color: rgb(71 85 105);
  line-height: 1.55;
}

.two-factor-setup {
  display: grid;
  gap: .9rem;
}

.two-factor-secret {
  display: block;
  width: fit-content;
  padding: .75rem 1rem;
  border-radius: .85rem;
  background: rgb(15 23 42);
  color: #fff;
  font-size: 1rem;
  font-weight: 1000;
  letter-spacing: .08em;
}

.danger-zone {
  padding-top: 1rem;
  border-top: 1px solid rgb(226 232 240);
}

.auth-remember {
  display: flex !important;
  align-items: center;
  gap: .55rem !important;
  margin-top: -.2rem;
}

@media (max-width: 1080px) {
  .admin-filter-form,
  .security-grid {
    grid-template-columns: 1fr;
  }
}

/* Artifact polish */
.button-like {
  border: 0;
  cursor: pointer;
  font: inherit;
}
.download-chip.danger {
  background: rgba(239, 68, 68, .12);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, .25);
}
.artifact-polish-card {
  gap: 18px;
  align-items: stretch;
}
.artifact-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.artifact-meta-grid > div {
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(248, 250, 252, .78);
}
.artifact-meta-grid span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}
.artifact-meta-grid strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
  overflow-wrap: anywhere;
}
.checksum-line {
  display: block;
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.compact-table table {
  margin: 0;
}
@media (max-width: 900px) {
  .artifact-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* v43 UI polish: stable checkboxes, terminal pro and dark theme */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  color: #334155;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, .42);
  color: #059669;
  background: #fff;
}
.theme-toggle .material-symbols-rounded {
  font-size: 21px;
  line-height: 1;
}

input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  flex: 0 0 auto;
  display: inline-grid;
  place-content: center;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  margin: 0;
  padding: 0 !important;
  border: 1.5px solid rgba(148, 163, 184, .72);
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, .04);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
input[type="checkbox"]::before {
  content: '';
  width: 11px;
  height: 8px;
  transform: scale(0) rotate(-45deg);
  transform-origin: center;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  margin-top: -2px;
  transition: transform .14s ease;
}
input[type="checkbox"]:checked {
  border-color: transparent;
  background: linear-gradient(135deg, var(--p2g-primary), #0ea5e9);
  box-shadow: 0 8px 18px rgba(16, 185, 129, .22);
}
input[type="checkbox"]:checked::before {
  transform: scale(1) rotate(-45deg);
}
input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: var(--p2g-primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .18);
}
input[type="checkbox"]:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.check-row,
.checkline,
.toggle-line,
.profile-toggle-row,
.locale-chip,
.payment-choice,
.p2g-check,
.auth-remember,
.support-log-toggle {
  display: flex !important;
  align-items: center;
  gap: .65rem !important;
  width: fit-content;
  max-width: 100%;
  min-height: 38px;
  color: #334155;
  cursor: pointer;
}
.check-row,
.checkline,
.toggle-line,
.p2g-check,
.support-log-toggle {
  padding: .55rem .7rem;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 12px;
  background: rgba(248, 250, 252, .72);
}
.check-row:hover,
.checkline:hover,
.toggle-line:hover,
.p2g-check:hover,
.profile-toggle-row:hover,
.support-log-toggle:hover {
  border-color: rgba(16, 185, 129, .34);
  background: rgba(236, 253, 245, .62);
}
.check-row span,
.checkline span,
.toggle-line span,
.p2g-check span,
.support-log-toggle span {
  line-height: 1.25;
}
.locale-chip {
  width: auto;
  padding: .55rem .72rem;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 999px;
  background: rgba(248, 250, 252, .78);
}
.locale-chip span {
  font-size: .8rem;
  font-weight: 900;
}
.profile-toggle-row {
  width: 100%;
  align-items: flex-start;
  padding: .85rem .95rem;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 14px;
  background: rgba(248, 250, 252, .78);
}
.profile-toggle-row > span {
  display: grid;
  gap: .15rem;
  min-width: 0;
}
.profile-toggle-row small {
  color: #64748b;
  line-height: 1.45;
}
.auth-remember {
  width: 100%;
  justify-content: flex-start;
  padding: .45rem 0;
  border: 0;
  background: transparent;
}
.terminal-autoscroll.compact {
  min-height: 32px;
  padding: .35rem .55rem;
  border-color: rgba(148, 163, 184, .24);
  color: #cbd5e1;
  background: rgba(15, 23, 42, .48);
}
.terminal-autoscroll.compact input[type="checkbox"] {
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  border-radius: 5px;
}

.terminal-layout-pro {
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  align-items: stretch;
}
.terminal-command-panel {
  align-self: start;
  position: sticky;
  top: 88px;
  display: grid;
  gap: 1rem;
  border-radius: 22px;
}
.terminal-side-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.terminal-side-head h2 {
  margin: .2rem 0 .15rem;
  color: #0f172a;
  font-size: 1.4rem;
  line-height: 1.1;
}
.terminal-project-chip {
  flex: 0 0 auto;
  padding: .35rem .6rem;
  border-radius: 999px;
  color: #047857;
  background: rgba(16, 185, 129, .12);
  font-size: .78rem;
  font-weight: 1000;
}
.terminal-usage-box div {
  border: 1px solid rgba(148, 163, 184, .16);
  background: linear-gradient(180deg, rgba(248, 250, 252, .92), rgba(241, 245, 249, .72));
}
.terminal-command-section {
  display: grid;
  gap: .7rem;
}
.terminal-section-title {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #475569;
  font-size: .78rem;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.terminal-section-title .material-symbols-rounded {
  color: #10b981;
  font-size: 18px;
}
.command-list-pro {
  gap: .62rem;
}
.command-list-pro button {
  display: grid;
  gap: .22rem;
  padding: .82rem .9rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.command-list-pro button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}
.command-list-pro button span {
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .82rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.command-list-pro button small {
  color: #64748b;
  font-size: .76rem;
  line-height: 1.35;
}
.terminal-pro {
  min-height: calc(100vh - 160px);
  border: 1px solid rgba(15, 23, 42, .18);
  border-radius: 22px;
  background: #07111f;
  box-shadow: 0 24px 70px rgba(2, 6, 23, .28);
}
.terminal-head-pro {
  gap: .85rem;
  min-height: 58px;
  background: linear-gradient(180deg, #111827, #0b1220);
}
.terminal-window-dots {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.terminal-window-dots i {
  width: .72rem;
  height: .72rem;
  border-radius: 999px;
  background: #ff5f57;
}
.terminal-window-dots i:nth-child(2) { background: #febc2e; }
.terminal-window-dots i:nth-child(3) { background: #28c840; }
.terminal-path {
  min-width: 0;
  overflow: hidden;
  color: #cbd5e1;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.terminal-tools {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-left: auto;
}
.terminal-tools button {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 32px;
  padding: 0 .65rem;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, .48);
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
}
.terminal-tools button:hover,
.terminal-tools button.is-done {
  color: #ecfeff;
  border-color: rgba(16, 185, 129, .45);
  background: rgba(16, 185, 129, .16);
}
.terminal-tools .material-symbols-rounded {
  font-size: 16px;
}
.terminal-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 44px;
  padding: .55rem .9rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(2, 6, 23, .38);
}
.terminal-status-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 28px;
  padding: 0 .75rem;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, .56);
  font-size: .78rem;
  font-weight: 1000;
}
.terminal-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, .12);
}
.terminal-status-dot[data-status="queued"] { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .14); }
.terminal-status-dot[data-status="running"] { background: #38bdf8; box-shadow: 0 0 0 4px rgba(56, 189, 248, .14); animation: p2gPulse 1.05s infinite; }
.terminal-status-dot[data-status="done"] { background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .14); }
.terminal-status-dot[data-status="failed"] { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .14); }
.terminal-hotkeys {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  color: #64748b;
  font-size: .74rem;
  font-weight: 800;
}
.terminal-hotkeys span {
  padding: .18rem .45rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, .1);
}
.terminal-output {
  min-height: 560px;
  max-height: calc(100vh - 278px);
  padding: 1rem 0;
  scroll-behavior: smooth;
}
.terminal-line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: .85rem;
  align-items: start;
  padding: .16rem 1.15rem;
  color: #cbd5e1;
  font: .9rem/1.58 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.terminal-line:hover {
  background: rgba(148, 163, 184, .055);
}
.terminal-line-prefix {
  align-self: baseline;
  justify-self: end;
  padding: .05rem .36rem;
  border-radius: 6px;
  color: #64748b;
  background: rgba(148, 163, 184, .1);
  font-size: .68rem;
  font-weight: 1000;
  text-transform: uppercase;
}
.terminal-line-text,
.terminal-line a {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.terminal-line--command .terminal-line-prefix,
.terminal-line--command .terminal-line-text { color: #7dd3fc; }
.terminal-line--meta .terminal-line-prefix,
.terminal-line--meta .terminal-line-text { color: #86efac; }
.terminal-line--error .terminal-line-prefix,
.terminal-line--error .terminal-line-text { color: #fda4af; }
.terminal-line--download .terminal-line-prefix,
.terminal-line--download .terminal-link { color: #fbbf24; }
.terminal-link {
  color: #7dd3fc;
  text-decoration: none;
}
.terminal-link:hover {
  text-decoration: underline;
}
.terminal-input-pro {
  min-height: 62px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, #0b1728, #08111f);
}
.terminal-input-pro .terminal-prompt {
  color: #7dd3fc;
}
.terminal-input-pro input {
  height: 42px;
  border-radius: 12px;
  border-color: rgba(148, 163, 184, .22);
  background: rgba(255, 255, 255, .055);
  box-shadow: none;
}
.terminal-input-pro input:focus {
  border-color: rgba(125, 211, 252, .55);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .13);
}
.terminal-input-pro button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  min-height: 42px;
  padding: 0 .9rem;
  border-radius: 12px;
}
.terminal-input-pro button .material-symbols-rounded {
  font-size: 18px;
}
.job-log-stage .terminal-body {
  min-height: 460px;
  max-height: 680px;
}
.job-log-stage .terminal-body p {
  padding-left: .35rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
@keyframes p2gPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.72); opacity: .62; }
}

[data-theme="dark"] {
  color-scheme: dark;
  --p2g-dark: #e2e8f0;
  --p2g-terminal: #020617;
  --p2g-terminal-2: #0b1220;
}
[data-theme="dark"] body,
[data-theme="dark"] .public-body {
  color: #e2e8f0;
  background:
    radial-gradient(circle at 15% -10%, rgba(16, 185, 129, .12), transparent 28%),
    radial-gradient(circle at 95% 8%, rgba(56, 189, 248, .1), transparent 30%),
    #0b1120;
}
[data-theme="dark"] .page-content,
[data-theme="dark"] .public-main {
  background: transparent;
}
[data-theme="dark"] #app-menu,
[data-theme="dark"] header,
[data-theme="dark"] .public-nav,
[data-theme="dark"] .footer,
[data-theme="dark"] .public-footer {
  border-color: rgba(148, 163, 184, .18) !important;
  background: rgba(15, 23, 42, .88) !important;
  color: #e2e8f0;
  backdrop-filter: blur(18px);
}
[data-theme="dark"] .public-nav,
[data-theme="dark"] header.sticky {
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
}
[data-theme="dark"] .p2g-menu-link,
[data-theme="dark"] .public-links a,
[data-theme="dark"] label,
[data-theme="dark"] .secondary-link,
[data-theme="dark"] .oauth-btn,
[data-theme="dark"] .p2g-top-button {
  color: #cbd5e1;
}
[data-theme="dark"] .p2g-menu-link:hover,
[data-theme="dark"] .p2g-menu-link.active {
  color: #6ee7b7;
  background: rgba(16, 185, 129, .12);
}
[data-theme="dark"] .p2g-top-button,
[data-theme="dark"] .secondary-link,
[data-theme="dark"] .oauth-btn,
[data-theme="dark"] .theme-toggle {
  border-color: rgba(148, 163, 184, .22);
  background: rgba(15, 23, 42, .74);
  color: #e2e8f0;
}
[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .p2g-top-button:hover,
[data-theme="dark"] .secondary-link:hover {
  border-color: rgba(16, 185, 129, .45);
  color: #86efac;
}
[data-theme="dark"] .panel,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .terminal-side,
[data-theme="dark"] .project-card,
[data-theme="dark"] .price-card,
[data-theme="dark"] .plan-edit-card,
[data-theme="dark"] .settings-card,
[data-theme="dark"] .metric-card,
[data-theme="dark"] .command-card,
[data-theme="dark"] .docs-card,
[data-theme="dark"] .docs-section-card,
[data-theme="dark"] .support-help-card,
[data-theme="dark"] .payment-settings-card,
[data-theme="dark"] .archive-version-row,
[data-theme="dark"] .recent-command-list a,
[data-theme="dark"] .job-row,
[data-theme="dark"] .notice-panel,
[data-theme="dark"] .security-notes > div,
[data-theme="dark"] .artifact-meta-grid > div,
[data-theme="dark"] .profile-toggle-row {
  border-color: rgba(148, 163, 184, .18) !important;
  background: rgba(15, 23, 42, .74) !important;
  color: #e2e8f0;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .16);
}
[data-theme="dark"] .auth-visual,
[data-theme="dark"] .hero-card,
[data-theme="dark"] .landing-section,
[data-theme="dark"] .docs-hero,
[data-theme="dark"] .sales-hero,
[data-theme="dark"] .sales-panel {
  border-color: rgba(148, 163, 184, .18) !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(16, 185, 129, .13), transparent 32%),
    radial-gradient(circle at 90% 88%, rgba(56, 189, 248, .12), transparent 34%),
    rgba(15, 23, 42, .78) !important;
  color: #e2e8f0;
}
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] .pipeline strong,
[data-theme="dark"] .stats-grid strong,
[data-theme="dark"] .terminal-side-head h2,
[data-theme="dark"] .command-list-pro button span,
[data-theme="dark"] .notice-panel strong,
[data-theme="dark"] .public-brand span:last-child {
  color: #f8fafc !important;
}
[data-theme="dark"] p,
[data-theme="dark"] .muted,
[data-theme="dark"] .field-caption,
[data-theme="dark"] .settings-help,
[data-theme="dark"] .pipeline p,
[data-theme="dark"] .recent-command-list small,
[data-theme="dark"] .profile-toggle-row small,
[data-theme="dark"] th,
[data-theme="dark"] td code {
  color: #94a3b8 !important;
}

.settings-help.danger-text {
  color: #b42318;
  font-weight: 700;
}

[data-theme="dark"] .settings-help.danger-text {
  color: #ffb4a8 !important;
}
[data-theme="dark"] input:not([type="checkbox"]),
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  border-color: rgba(148, 163, 184, .22);
  color: #e2e8f0;
  background: rgba(2, 6, 23, .55);
}
[data-theme="dark"] input:not([type="checkbox"]):focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  border-color: rgba(16, 185, 129, .58);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .16);
}
[data-theme="dark"] input[type="checkbox"] {
  border-color: rgba(148, 163, 184, .55);
  background: rgba(2, 6, 23, .72);
}
[data-theme="dark"] input[type="checkbox"]:checked {
  border-color: transparent;
  background: linear-gradient(135deg, var(--p2g-primary), #0ea5e9);
}
[data-theme="dark"] .check-row,
[data-theme="dark"] .checkline,
[data-theme="dark"] .toggle-line,
[data-theme="dark"] .locale-chip,
[data-theme="dark"] .p2g-check,
[data-theme="dark"] .support-log-toggle {
  border-color: rgba(148, 163, 184, .2);
  color: #cbd5e1;
  background: rgba(2, 6, 23, .32);
}
[data-theme="dark"] .check-row:hover,
[data-theme="dark"] .checkline:hover,
[data-theme="dark"] .toggle-line:hover,
[data-theme="dark"] .locale-chip:hover,
[data-theme="dark"] .p2g-check:hover,
[data-theme="dark"] .support-log-toggle:hover {
  border-color: rgba(16, 185, 129, .42);
  background: rgba(16, 185, 129, .1);
}
[data-theme="dark"] .command-list button,
[data-theme="dark"] .command-list-pro button,
[data-theme="dark"] .terminal-usage-box div,
[data-theme="dark"] .usage-box div,
[data-theme="dark"] .payment-choice,
[data-theme="dark"] .locale-chip,
[data-theme="dark"] .profile-toggle-row {
  border-color: rgba(148, 163, 184, .18);
  background: rgba(2, 6, 23, .42);
  color: #e2e8f0;
}
[data-theme="dark"] .command-list button:hover,
[data-theme="dark"] .command-list-pro button:hover {
  border-color: rgba(16, 185, 129, .36);
  background: rgba(16, 185, 129, .09);
}
[data-theme="dark"] table th,
[data-theme="dark"] table td {
  border-color: rgba(148, 163, 184, .16);
}
[data-theme="dark"] .alert {
  color: #fecdd3;
  background: rgba(127, 29, 29, .35);
}
[data-theme="dark"] .notice {
  color: #bbf7d0;
  background: rgba(20, 83, 45, .32);
}
[data-theme="dark"] .archive-version-row.is-active {
  border-color: rgba(16, 185, 129, .42) !important;
  background: linear-gradient(180deg, rgba(6, 95, 70, .32), rgba(15, 23, 42, .78)) !important;
}
[data-theme="dark"] .status.active,
[data-theme="dark"] .status.success,
[data-theme="dark"] .status.running {
  color: #86efac;
  background: rgba(16, 185, 129, .16);
}
[data-theme="dark"] .status.failed,
[data-theme="dark"] .status.timeout,
[data-theme="dark"] .status.cancelled,
[data-theme="dark"] .status.blocked,
[data-theme="dark"] .status.deleted {
  color: #fda4af;
  background: rgba(244, 63, 94, .16);
}
[data-theme="dark"] .status.queued {
  color: #fcd34d;
  background: rgba(245, 158, 11, .16);
}

@media (max-width: 1180px) {
  .terminal-layout-pro {
    grid-template-columns: 1fr;
  }
  .terminal-command-panel {
    position: static;
  }
}
@media (max-width: 720px) {
  .theme-toggle {
    width: 38px;
    height: 38px;
  }
  .terminal-head-pro,
  .terminal-statusbar,
  .terminal-tools,
  .terminal-hotkeys {
    flex-wrap: wrap;
  }
  .terminal-tools {
    width: 100%;
    margin-left: 0;
  }
  .terminal-tools button,
  .terminal-autoscroll.compact {
    flex: 1 1 auto;
    justify-content: center;
  }
  .terminal-output {
    min-height: 420px;
    max-height: 62vh;
  }
  .terminal-line {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: .62rem;
    padding-inline: .85rem;
    font-size: .82rem;
  }
  .terminal-input-pro {
    grid-template-columns: 1fr;
  }
  .terminal-input-pro .terminal-prompt {
    display: none;
  }
  .terminal-input-pro button {
    width: 100%;
  }
}

/* v44: dark theme coverage + terminal stability polish */
.terminal-output {
  overflow-y: auto;
  overflow-anchor: none;
  scrollbar-gutter: stable;
}
.terminal-line--status {
  position: sticky;
  top: 0;
  z-index: 2;
  border-top: 1px solid rgba(148, 163, 184, .08);
  border-bottom: 1px solid rgba(148, 163, 184, .08);
  background: rgba(2, 6, 23, .92);
  backdrop-filter: blur(12px);
}
.terminal-line[data-line-key] {
  contain: layout paint;
}
.terminal-line[data-stream="stderr"] .terminal-line-text {
  color: #fda4af;
}
.terminal-download-link::after {
  content: ' ↗';
  opacity: .7;
}

input[type="checkbox"] {
  box-sizing: border-box !important;
  line-height: 1 !important;
}
.p2g-check,
.check-row,
.checkline,
.toggle-line,
.support-log-toggle,
.auth-remember,
.profile-toggle-row,
.payment-choice,
.locale-chip {
  user-select: none;
}
.p2g-check input[type="checkbox"],
.check-row input[type="checkbox"],
.checkline input[type="checkbox"],
.toggle-line input[type="checkbox"],
.support-log-toggle input[type="checkbox"],
.auth-remember input[type="checkbox"],
.profile-toggle-row input[type="checkbox"] {
  align-self: center;
  flex: 0 0 20px !important;
}

[data-theme="dark"] .bg-white,
[data-theme="dark"] .wrapper,
[data-theme="dark"] .page-content,
[data-theme="dark"] .dashboard-head,
[data-theme="dark"] .app-page-head,
[data-theme="dark"] .project-create-panel,
[data-theme="dark"] .project-settings-card,
[data-theme="dark"] .project-main-column,
[data-theme="dark"] .project-settings-column,
[data-theme="dark"] .recent-commands-card,
[data-theme="dark"] .compile-history-card,
[data-theme="dark"] .archive-versions-card,
[data-theme="dark"] .current-plan-card,
[data-theme="dark"] .subscription-panel,
[data-theme="dark"] .billing-invoices-panel,
[data-theme="dark"] .payments-history-panel,
[data-theme="dark"] .plans-list-panel,
[data-theme="dark"] .plan-side-panel,
[data-theme="dark"] .plan-edit-panel,
[data-theme="dark"] .users-list-panel,
[data-theme="dark"] .jobs-admin-panel,
[data-theme="dark"] .jobs-filter-panel,
[data-theme="dark"] .system-checks-panel,
[data-theme="dark"] .system-table-wrap,
[data-theme="dark"] .audit-panel,
[data-theme="dark"] .support-form-panel,
[data-theme="dark"] .support-side-card,
[data-theme="dark"] .support-reply-form,
[data-theme="dark"] .support-status-form,
[data-theme="dark"] .profile-card-panel,
[data-theme="dark"] .profile-summary-panel,
[data-theme="dark"] .profile-verify-panel,
[data-theme="dark"] .profile-subscription-box,
[data-theme="dark"] .profile-oauth-connectors,
[data-theme="dark"] .danger-zone,
[data-theme="dark"] .form-panel,
[data-theme="dark"] .invoice-paper,
[data-theme="dark"] .webhook-event-card,
[data-theme="dark"] .artifact-polish-card,
[data-theme="dark"] .google-pay-button-wrap,
[data-theme="dark"] .two-factor-setup,
[data-theme="dark"] .security-panel,
[data-theme="dark"] .security-preview,
[data-theme="dark"] .security-copy,
[data-theme="dark"] .upload-card,
[data-theme="dark"] .upload-hero,
[data-theme="dark"] .empty-state,
[data-theme="dark"] .chart-card,
[data-theme="dark"] .landing-mini-grid div,
[data-theme="dark"] .landing-stat-card,
[data-theme="dark"] .landing-card,
[data-theme="dark"] .benefit-card,
[data-theme="dark"] .sales-card,
[data-theme="dark"] .demo-window,
[data-theme="dark"] .faq-grid > div,
[data-theme="dark"] .value-section,
[data-theme="dark"] .audience-section,
[data-theme="dark"] .docs-panel,
[data-theme="dark"] .docs-sidebar,
[data-theme="dark"] .docs-quick-card,
[data-theme="dark"] .docs-callout,
[data-theme="dark"] .docs-command-row,
[data-theme="dark"] .docs-limits-grid > div,
[data-theme="dark"] .docs-error-list > div,
[data-theme="dark"] .p2g-modal-dialog {
  border-color: rgba(148, 163, 184, .18) !important;
  background: rgba(15, 23, 42, .82) !important;
  color: #e2e8f0 !important;
  box-shadow: 0 18px 70px rgba(0, 0, 0, .22) !important;
}

[data-theme="dark"] .landing-hero,
[data-theme="dark"] .hero-console,
[data-theme="dark"] .auth-visual,
[data-theme="dark"] .settings-preview-hero,
[data-theme="dark"] .sales-final-cta,
[data-theme="dark"] .security-section,
[data-theme="dark"] .demo-section,
[data-theme="dark"] .faq-section,
[data-theme="dark"] .sales-section {
  border-color: rgba(148, 163, 184, .18) !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(16, 185, 129, .12), transparent 34%),
    radial-gradient(circle at 88% 90%, rgba(56, 189, 248, .1), transparent 34%),
    rgba(15, 23, 42, .82) !important;
  color: #e2e8f0 !important;
  box-shadow: 0 22px 80px rgba(0, 0, 0, .24) !important;
}

[data-theme="dark"] .border-default-200,
[data-theme="dark"] .border-gray-200,
[data-theme="dark"] .border-b,
[data-theme="dark"] .border-t,
[data-theme="dark"] .border-e,
[data-theme="dark"] .responsive-table,
[data-theme="dark"] .table-wrap,
[data-theme="dark"] .plans-table-wrap,
[data-theme="dark"] .users-table-wrap,
[data-theme="dark"] .compact-table,
[data-theme="dark"] .payment-history-row,
[data-theme="dark"] .project-row,
[data-theme="dark"] .project-job-row,
[data-theme="dark"] .profile-activity-row,
[data-theme="dark"] .profile-list-row,
[data-theme="dark"] .user-mini-row,
[data-theme="dark"] .detail-list li,
[data-theme="dark"] .invoice-lines,
[data-theme="dark"] .invoice-total,
[data-theme="dark"] .webhook-event-head,
[data-theme="dark"] .p2g-modal-head,
[data-theme="dark"] .p2g-modal-actions {
  border-color: rgba(148, 163, 184, .18) !important;
}

[data-theme="dark"] .text-default-500,
[data-theme="dark"] .text-default-600,
[data-theme="dark"] .text-default-800,
[data-theme="dark"] .text-gray-500,
[data-theme="dark"] .hover\:text-gray-600:hover,
[data-theme="dark"] .field-caption,
[data-theme="dark"] .settings-help,
[data-theme="dark"] .docs-tree a,
[data-theme="dark"] .docs-content li,
[data-theme="dark"] .docs-content p,
[data-theme="dark"] .invoice-parties,
[data-theme="dark"] .invoice-head p,
[data-theme="dark"] .profile-summary-list span,
[data-theme="dark"] .support-message-head,
[data-theme="dark"] .subscription-mini-meta,
[data-theme="dark"] .project-defaults-line,
[data-theme="dark"] .checksum-line,
[data-theme="dark"] .download-chip,
[data-theme="dark"] .payment-history-row span,
[data-theme="dark"] .user-list-identity small,
[data-theme="dark"] .system-kv-grid span,
[data-theme="dark"] .artifact-meta-grid span {
  color: #94a3b8 !important;
}

[data-theme="dark"] a:not(.primary-link):not(.secondary-link):not(.p2g-menu-link):not(.public-brand):not(.terminal-link),
[data-theme="dark"] .docs-tree a.active,
[data-theme="dark"] .auth-switch a {
  color: #6ee7b7;
}

[data-theme="dark"] table,
[data-theme="dark"] thead,
[data-theme="dark"] tbody,
[data-theme="dark"] tr,
[data-theme="dark"] .table-wrap table,
[data-theme="dark"] .plans-table,
[data-theme="dark"] .users-table {
  background: transparent !important;
  color: #e2e8f0 !important;
}
[data-theme="dark"] th {
  color: #cbd5e1 !important;
  background: rgba(2, 6, 23, .42) !important;
}
[data-theme="dark"] td {
  color: #dbeafe !important;
  background: transparent !important;
}
[data-theme="dark"] tbody tr:hover,
[data-theme="dark"] .table-wrap tbody tr:hover,
[data-theme="dark"] .project-row:hover,
[data-theme="dark"] .payment-history-row:hover,
[data-theme="dark"] .profile-activity-row:hover,
[data-theme="dark"] .profile-list-row:hover {
  background: rgba(16, 185, 129, .08) !important;
}

[data-theme="dark"] .admin-tabs a,
[data-theme="dark"] .page-tabs a,
[data-theme="dark"] .button-like,
[data-theme="dark"] .secondary-action,
[data-theme="dark"] .table-action,
[data-theme="dark"] .compact-btn,
[data-theme="dark"] .danger-mini,
[data-theme="dark"] .modal-open-button,
[data-theme="dark"] .zip-upload-button,
[data-theme="dark"] .download-chip,
[data-theme="dark"] .role-chip,
[data-theme="dark"] .plan-badge,
[data-theme="dark"] .provider-state,
[data-theme="dark"] .status,
[data-theme="dark"] .hero-badges span,
[data-theme="dark"] .command-chip-list span,
[data-theme="dark"] .inline-code,
[data-theme="dark"] code,
[data-theme="dark"] pre,
[data-theme="dark"] .payload-box,
[data-theme="dark"] .support-log-snapshot,
[data-theme="dark"] .two-factor-secret {
  border-color: rgba(148, 163, 184, .2) !important;
  background: rgba(2, 6, 23, .48) !important;
  color: #e2e8f0 !important;
}

[data-theme="dark"] .admin-tabs a.active,
[data-theme="dark"] .page-tabs a.active,
[data-theme="dark"] .admin-tabs a:hover,
[data-theme="dark"] .page-tabs a:hover,
[data-theme="dark"] .button-like:hover,
[data-theme="dark"] .secondary-action:hover,
[data-theme="dark"] .table-action:hover,
[data-theme="dark"] .compact-btn:hover,
[data-theme="dark"] .modal-open-button:hover,
[data-theme="dark"] .zip-upload-button:hover {
  border-color: rgba(16, 185, 129, .42) !important;
  background: rgba(16, 185, 129, .12) !important;
  color: #86efac !important;
}

[data-theme="dark"] input:not([type="checkbox"]),
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .terminal-input-pro input {
  border-color: rgba(148, 163, 184, .24) !important;
  background: rgba(2, 6, 23, .62) !important;
  color: #f8fafc !important;
  box-shadow: none !important;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #64748b !important;
}
[data-theme="dark"] option {
  color: #e2e8f0;
  background: #0f172a;
}

[data-theme="dark"] .p2g-modal-backdrop {
  background: rgba(2, 6, 23, .76) !important;
}
[data-theme="dark"] .alert,
[data-theme="dark"] .danger-panel,
[data-theme="dark"] .danger-soft,
[data-theme="dark"] .bad,
[data-theme="dark"] .warning {
  border-color: rgba(248, 113, 113, .24) !important;
  color: #fecdd3 !important;
  background: rgba(127, 29, 29, .28) !important;
}
[data-theme="dark"] .notice,
[data-theme="dark"] .good,
[data-theme="dark"] .success,
[data-theme="dark"] .ready,
[data-theme="dark"] .ok {
  border-color: rgba(52, 211, 153, .24) !important;
  color: #bbf7d0 !important;
  background: rgba(20, 83, 45, .24) !important;
}
[data-theme="dark"] .warn,
[data-theme="dark"] .status.queued,
[data-theme="dark"] .status.warn {
  border-color: rgba(251, 191, 36, .26) !important;
  color: #fde68a !important;
  background: rgba(120, 53, 15, .28) !important;
}

[data-theme="dark"] .terminal-pro,
[data-theme="dark"] .terminal-preview,
[data-theme="dark"] .terminal-stage,
[data-theme="dark"] .terminal-mini,
[data-theme="dark"] .terminal-body,
[data-theme="dark"] .terminal-output {
  border-color: rgba(148, 163, 184, .14) !important;
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 100% 31px,
    radial-gradient(circle at 100% 0, rgba(56, 189, 248, .13), transparent 36%),
    #020617 !important;
  color: #cbd5e1 !important;
}
[data-theme="dark"] .terminal-input-pro,
[data-theme="dark"] .terminal-head-pro,
[data-theme="dark"] .terminal-statusbar {
  border-color: rgba(148, 163, 184, .12) !important;
  background: rgba(2, 6, 23, .88) !important;
}
[data-theme="dark"] .terminal-line--status {
  background: rgba(2, 6, 23, .94) !important;
}

/* v45: terminal layout, checkbox normalization and missing dark surfaces */
.terminal-stage.terminal-pro {
  display: grid !important;
  grid-template-rows: auto auto minmax(260px, 1fr) auto !important;
  overflow: hidden;
  min-height: 0 !important;
  height: clamp(520px, calc(100vh - 168px), 760px);
}
.terminal-pro .terminal-head-pro,
.terminal-pro .terminal-statusbar,
.terminal-pro .terminal-input-pro {
  align-self: stretch;
}
.terminal-pro .terminal-statusbar {
  min-height: 42px;
  padding-block: .45rem;
}
.terminal-pro .terminal-output {
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  padding: .75rem 0 1rem;
}
.terminal-pro .terminal-input-pro {
  min-height: 58px;
  padding-block: .7rem;
}
.terminal-pro .terminal-line--status {
  top: 0;
}
.terminal-tools button,
.terminal-autoscroll.compact {
  white-space: nowrap;
}

input[type="checkbox"] {
  display: inline-grid !important;
  place-content: center !important;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 20px !important;
  vertical-align: middle;
}
.payment-choice input[type="checkbox"],
.locale-chip input[type="checkbox"],
.payment-settings-card input[type="checkbox"] {
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
}
.toggle-line,
.check-row,
.checkline,
.p2g-check,
.auth-remember,
.support-log-toggle,
.locale-chip,
.payment-choice {
  flex-wrap: nowrap;
}
.payment-settings-head {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: start;
  gap: .85rem;
}
.payment-settings-head .settings-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  overflow: hidden;
  font-size: 26px;
  line-height: 1;
  white-space: nowrap;
}
.payment-settings-head h3 {
  margin: 0 0 .35rem;
  overflow-wrap: anywhere;
}
.payment-settings-head .toggle-line {
  min-height: 34px;
  padding: .4rem .55rem;
  border-radius: 12px;
}
.payment-settings-card .toggle-line.compact {
  min-height: 36px;
  padding: .42rem .6rem;
  border-radius: 999px;
}
.payment-settings-card .provider-state {
  justify-self: end;
  align-self: start;
  margin-left: 0;
  white-space: nowrap;
}
.payment-settings-card input:not([type="checkbox"]),
.payment-settings-card select {
  min-height: 44px;
}
.locale-chip-grid .locale-chip {
  min-height: 46px;
  justify-content: flex-start;
}

html[data-theme="dark"] .panel,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .project-row,
html[data-theme="dark"] .job-row,
html[data-theme="dark"] .system-kv-grid > div,
html[data-theme="dark"] .payment-choice,
html[data-theme="dark"] .settings-subgrid > div,
html[data-theme="dark"] .payment-settings-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .command-card,
html[data-theme="dark"] .artifact-meta-grid > div,
html[data-theme="dark"] .profile-list-row,
html[data-theme="dark"] .profile-activity-row,
html[data-theme="dark"] .payment-history-row,
html[data-theme="dark"] .archive-version-row,
html[data-theme="dark"] .user-mini-row,
html[data-theme="dark"] .provider-list div,
html[data-theme="dark"] .detail-list li {
  border-color: rgba(148, 163, 184, .18) !important;
  background: rgba(15, 23, 42, .82) !important;
  color: #e2e8f0 !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .18) !important;
}
html[data-theme="dark"] .project-row:hover,
html[data-theme="dark"] .job-row:hover,
html[data-theme="dark"] .payment-history-row:hover,
html[data-theme="dark"] .profile-list-row:hover,
html[data-theme="dark"] .profile-activity-row:hover,
html[data-theme="dark"] .archive-version-row:hover {
  border-color: rgba(16, 185, 129, .38) !important;
  background: rgba(16, 185, 129, .1) !important;
}
html[data-theme="dark"] .project-row strong,
html[data-theme="dark"] .job-row code,
html[data-theme="dark"] .metric-card strong,
html[data-theme="dark"] .system-kv-grid strong,
html[data-theme="dark"] .payment-settings-head h3,
html[data-theme="dark"] .provider-list strong,
html[data-theme="dark"] .detail-list strong,
html[data-theme="dark"] .artifact-meta-grid strong,
html[data-theme="dark"] .current-plan-card h3,
html[data-theme="dark"] .settings-subgrid h3 {
  color: #f8fafc !important;
}
html[data-theme="dark"] .project-row small,
html[data-theme="dark"] .metric-card small,
html[data-theme="dark"] .system-kv-grid span,
html[data-theme="dark"] .payment-choice small,
html[data-theme="dark"] .provider-list span,
html[data-theme="dark"] .provider-list small,
html[data-theme="dark"] .detail-list span,
html[data-theme="dark"] .artifact-meta-grid span {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .system-status-card.ok,
html[data-theme="dark"] .system-status-card.warn,
html[data-theme="dark"] .system-status-card.error {
  background:
    radial-gradient(circle at 100% 0, rgba(16, 185, 129, .12), transparent 36%),
    rgba(15, 23, 42, .82) !important;
}
html[data-theme="dark"] .system-status-card.warn {
  background:
    radial-gradient(circle at 100% 0, rgba(245, 158, 11, .13), transparent 36%),
    rgba(15, 23, 42, .82) !important;
}
html[data-theme="dark"] .system-status-card.error {
  background:
    radial-gradient(circle at 100% 0, rgba(244, 63, 94, .13), transparent 36%),
    rgba(15, 23, 42, .82) !important;
}

html[data-theme="dark"] .docs-hero,
html[data-theme="dark"] .docs-content,
html[data-theme="dark"] .docs-sidebar,
html[data-theme="dark"] .docs-quick-card,
html[data-theme="dark"] .docs-card,
html[data-theme="dark"] .docs-panel,
html[data-theme="dark"] .docs-callout,
html[data-theme="dark"] .docs-tree,
html[data-theme="dark"] .docs-command-row,
html[data-theme="dark"] .docs-error-list details,
html[data-theme="dark"] .docs-limits-grid > div {
  border-color: rgba(148, 163, 184, .18) !important;
  background:
    radial-gradient(circle at 8% 0, rgba(16, 185, 129, .08), transparent 32%),
    rgba(15, 23, 42, .86) !important;
  color: #e2e8f0 !important;
  box-shadow: 0 18px 70px rgba(0, 0, 0, .22) !important;
}
html[data-theme="dark"] .docs-panel.good,
html[data-theme="dark"] .docs-callout.success {
  border-color: rgba(52, 211, 153, .26) !important;
  background: rgba(20, 83, 45, .26) !important;
}
html[data-theme="dark"] .docs-panel.bad {
  border-color: rgba(248, 113, 113, .26) !important;
  background: rgba(127, 29, 29, .28) !important;
}
html[data-theme="dark"] .docs-callout.warn {
  border-color: rgba(251, 191, 36, .28) !important;
  background: rgba(120, 53, 15, .26) !important;
}
html[data-theme="dark"] .docs-callout.support {
  border-color: rgba(96, 165, 250, .28) !important;
  background: rgba(30, 64, 175, .24) !important;
}
html[data-theme="dark"] .docs-hero h1,
html[data-theme="dark"] .docs-section-head h2,
html[data-theme="dark"] .docs-card strong,
html[data-theme="dark"] .docs-panel h3,
html[data-theme="dark"] .docs-callout strong,
html[data-theme="dark"] .docs-tree span,
html[data-theme="dark"] .docs-content h3,
html[data-theme="dark"] .docs-error-list summary,
html[data-theme="dark"] .docs-limits-grid strong,
html[data-theme="dark"] .docs-quick-card strong {
  color: #f8fafc !important;
}
html[data-theme="dark"] .docs-hero p,
html[data-theme="dark"] .docs-section-head p,
html[data-theme="dark"] .docs-content > p,
html[data-theme="dark"] .docs-panel li,
html[data-theme="dark"] .docs-callout p,
html[data-theme="dark"] .docs-card p,
html[data-theme="dark"] .docs-command-row span,
html[data-theme="dark"] .docs-error-list p,
html[data-theme="dark"] .docs-limits-grid span,
html[data-theme="dark"] .docs-quick-card ol {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .docs-nav-link {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .docs-nav-link:hover,
html[data-theme="dark"] .docs-nav-link.active {
  color: #6ee7b7 !important;
  background: rgba(16, 185, 129, .13) !important;
}
html[data-theme="dark"] .docs-card .material-symbols-rounded,
html[data-theme="dark"] .settings-icon {
  color: #10b981 !important;
  background: rgba(187, 247, 208, .16) !important;
}
html[data-theme="dark"] input[type="checkbox"] {
  border-color: rgba(148, 163, 184, .64) !important;
  background: rgba(2, 6, 23, .8) !important;
}
html[data-theme="dark"] input[type="checkbox"]:checked {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--p2g-primary), #0ea5e9) !important;
}
html[data-theme="dark"] .language-switcher {
  border-color: rgba(148, 163, 184, .18) !important;
  background: rgba(2, 6, 23, .58) !important;
}
html[data-theme="dark"] .language-switcher a:not(.active) {
  color: #86efac !important;
  background: transparent !important;
}
html[data-theme="dark"] .public-nav,
html[data-theme="dark"] header {
  background: rgba(15, 23, 42, .94) !important;
}

@media (max-width: 920px) {
  .terminal-stage.terminal-pro {
    height: auto;
    min-height: 520px !important;
  }
  .terminal-pro .terminal-output {
    min-height: 360px !important;
    max-height: 58vh !important;
  }
}
@media (max-width: 720px) {
  .payment-settings-head {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .payment-settings-head .provider-state {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .payment-settings-head .settings-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 22px;
  }
  .terminal-pro .terminal-statusbar {
    align-items: flex-start;
  }
  .terminal-hotkeys {
    width: 100%;
  }
}
