:root {
  --bg: #eef2f3;
  --panel: #ffffff;
  --panel-soft: #f8fafb;
  --line: #d9e1e4;
  --text: #172126;
  --muted: #68777f;
  --green: #1d7c5a;
  --green-dark: #145a42;
  --blue: #216c9b;
  --amber: #a36314;
  --red: #a63f3f;
  --line-strong: #c8d3d8;
  --shadow: 0 10px 26px rgba(24, 39, 46, 0.07);
  --shadow-soft: 0 2px 10px rgba(24, 39, 46, 0.04);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-weight: 650;
  padding: 8px 12px;
  cursor: pointer;
}

button:hover {
  border-color: #aab8bf;
}

button:disabled {
  color: #9aa7ad;
  background: #f3f6f7;
  cursor: default;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 9px 10px;
  outline: none;
}

input[type="file"] {
  color: transparent;
}

input[type="file"]::file-selector-button {
  color: var(--text);
}

textarea {
  resize: vertical;
  min-height: 74px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 108, 155, 0.13);
}

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

.landing-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #f7faf9;
}

.landing-head {
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.landing-brand > div {
  min-width: 0;
}

.landing-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #fff;
  padding: 5px;
  box-shadow: var(--shadow-soft);
}

.landing-brand b {
  display: block;
  font-size: 22px;
}

.landing-brand span {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.portal-body {
  background: #f7faf9;
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-nav a,
.portal-nav button,
.primary-link,
.secondary-link {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.portal-nav button {
  background: #fff;
  cursor: pointer;
  font: inherit;
}

.primary-link {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.secondary-link {
  background: #fff;
}

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

.portal-map-card {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 16px;
}

.portal-map-card h2 {
  font-size: 20px;
}

.portal-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.portal-steps li {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.portal-steps li:first-child {
  border-top: 0;
  padding-top: 0;
}

.portal-steps span {
  color: var(--muted);
  line-height: 1.45;
}

.login-page {
  min-height: 100vh;
  background: #f7faf9;
}

.login-shell {
  width: min(920px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 58px 0;
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

.login-card-wide h1 {
  font-size: 28px;
  line-height: 1.15;
}

.login-intro {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.password-field label {
  min-width: 0;
}

.password-field button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--green-dark);
  padding: 8px 12px;
  font-weight: 800;
}

.login-access-grid {
  display: grid;
  gap: 10px;
}

.login-access-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 12px;
  display: grid;
  gap: 4px;
}

.login-access-grid b {
  color: var(--text);
}

.login-access-grid span {
  color: var(--muted);
  line-height: 1.4;
}

.presentation-landing {
  display: block;
  background: #f7faf9;
}

.landing-head-sticky {
  position: sticky;
  top: 0;
  z-index: 10;
}

.presentation-hero {
  min-height: 660px;
  display: flex;
  align-items: center;
  padding: 72px clamp(20px, 8vw, 140px);
  background-image: url("/static/brand/landing-hero.png");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.sales-hero {
  min-height: 690px;
}

.hero-copy {
  width: min(620px, 100%);
  min-width: 0;
  display: grid;
  gap: 20px;
}

.hero-copy h1 {
  font-size: clamp(48px, 6.5vw, 82px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  color: #3f525c;
  font-size: 20px;
  line-height: 1.55;
  max-width: 600px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
  max-width: 640px;
}

.hero-proof span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  display: grid;
  gap: 4px;
  line-height: 1.3;
  min-height: 78px;
  padding: 12px;
}

.hero-proof b {
  color: var(--green-dark);
  font-size: 15px;
}

.nav-primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff !important;
}

.landing-band {
  padding: 72px clamp(20px, 7vw, 120px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.soft-band {
  background: #f7faf9;
}

.problem-band {
  background: #fff;
}

.band-head {
  display: grid;
  gap: 10px;
  max-width: 780px;
  margin-bottom: 26px;
}

.band-head h2,
.landing-cta h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: 0;
}

.impact-grid,
.feature-grid,
.roles-grid,
.pain-grid,
.solution-grid,
.usecase-grid {
  display: grid;
  gap: 12px;
}

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

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

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

.pain-grid,
.usecase-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.solution-grid {
  grid-template-columns: 1.25fr 1fr 1fr;
}

.impact-grid article,
.feature-grid article,
.roles-grid article,
.process-line article,
.pain-grid article,
.solution-card,
.usecase-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-soft);
}

.sales-stats article {
  min-height: 156px;
}

.impact-grid b {
  color: var(--green-dark);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.impact-grid span,
.feature-grid span,
.roles-grid span,
.process-line p,
.pain-grid span,
.solution-card p,
.usecase-grid span,
.login-side-card p {
  color: var(--muted);
  line-height: 1.45;
}

.pain-grid article {
  background: #fbf7f0;
  border-color: #ead8bd;
}

.pain-grid b {
  color: var(--amber);
}

.solution-card {
  align-content: start;
  min-height: 230px;
}

.solution-card b {
  font-size: 22px;
  line-height: 1.18;
}

.strong-card {
  background: #155f47;
  border-color: #155f47;
  color: #fff;
}

.strong-card p,
.strong-card .card-kicker {
  color: #d4eee4;
}

.card-kicker {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.process-line article span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6f1ed;
  color: var(--green-dark);
  font-weight: 800;
}

.sales-process article {
  min-height: 210px;
}

.control-band {
  background: #fff;
}

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

.feature-bento article {
  min-height: 162px;
}

.feature-bento article:nth-child(1),
.feature-bento article:nth-child(6) {
  background: #f1f7fb;
  border-color: #c9dcea;
}

.feature-bento article:nth-child(3) {
  background: #fbf7f0;
  border-color: #ead8bd;
}

.role-cards article {
  min-height: 148px;
}

.usecase-grid article {
  min-height: 150px;
}

.landing-cta {
  padding: 42px clamp(20px, 7vw, 120px);
  background: var(--green-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.landing-cta .eyebrow {
  color: #b8ded0;
}

.landing-cta .primary-link {
  background: #fff;
  border-color: #fff;
  color: var(--green-dark);
}

.sales-cta {
  padding-top: 56px;
  padding-bottom: 56px;
}

.sales-cta p:not(.eyebrow) {
  color: #d4eee4;
  line-height: 1.5;
  margin-top: 10px;
  max-width: 760px;
}

.clean-landing {
  background: #f7faf9;
}

.clean-hero {
  min-height: 620px;
  background-image:
    linear-gradient(90deg, rgba(247, 250, 249, 0.98) 0%, rgba(247, 250, 249, 0.92) 38%, rgba(247, 250, 249, 0.2) 78%),
    url("/static/brand/landing-hero.png");
  background-position: center;
  background-size: cover;
}

.clean-hero .hero-copy {
  width: min(680px, 100%);
  gap: 18px;
}

.clean-hero .hero-copy h1 {
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.03;
}

.clean-hero .hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: #43555e;
  font-size: 19px;
}

.clean-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  max-width: 640px;
}

.clean-metrics div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 13px;
}

.clean-metrics dt {
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
}

.clean-metrics dd {
  color: var(--muted);
  line-height: 1.35;
  margin: 6px 0 0;
}

.clean-section {
  padding: 64px clamp(20px, 7vw, 120px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.muted-section {
  background: #f7faf9;
}

.clean-section-head {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 24px;
}

.clean-section-head h2,
.clean-split h2,
.clean-cta h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

.clean-card-grid,
.clean-check-grid,
.clean-flow,
.access-list {
  display: grid;
  gap: 12px;
}

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

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

.clean-card-grid article,
.clean-check-grid article,
.clean-flow article,
.access-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 18px;
}

.clean-card-grid b,
.clean-check-grid b,
.clean-flow b,
.access-list b {
  font-size: 17px;
}

.clean-card-grid span,
.clean-check-grid span,
.clean-flow p,
.access-list span,
.clean-cta p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.45;
}

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

.clean-flow article {
  min-height: 178px;
}

.clean-flow article span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e6f1ed;
  color: var(--green-dark);
  display: grid;
  font-weight: 850;
  place-items: center;
}

.clean-check-grid article {
  min-height: 130px;
}

.clean-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.15fr);
  gap: 30px;
  align-items: start;
}

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

.access-list article {
  min-height: auto;
  padding: 16px 18px;
}

.clean-cta {
  padding-top: 50px;
  padding-bottom: 50px;
}

.clean-cta p:not(.eyebrow) {
  color: #d4eee4;
  margin-top: 10px;
}

.credential-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px 12px;
  padding: 14px;
}

.credential-box span {
  color: var(--muted);
}

.credential-box b {
  font-family: Consolas, "Courier New", monospace;
}

.safe-login-note b {
  font-family: inherit;
  font-size: 15px;
}

.landing-hero {
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 38px;
  align-items: center;
  padding: 48px 0;
}

.landing-copy {
  display: grid;
  gap: 18px;
}

.landing-copy h1 {
  max-width: 720px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.landing-copy p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.landing-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 10px;
  margin-top: 10px;
}

.landing-metrics span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: var(--muted);
  font-weight: 650;
}

.landing-metrics b {
  display: block;
  color: var(--green-dark);
  font-size: 22px;
  margin-bottom: 2px;
}

.login-card {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 14px;
}

.login-card h2 {
  font-size: 20px;
}

.login-card button {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.login-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.app-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(560px, 1fr) minmax(390px, 34vw);
  overflow: hidden;
}

.sidebar {
  background: #f7faf9;
  border-right: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-height: 100vh;
  overflow: auto;
}

.brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px;
  box-shadow: 0 6px 16px rgba(24, 39, 46, 0.08);
}

.brand h1 {
  font-size: 21px;
  font-weight: 700;
}

.brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

#rootPath {
  display: none;
}

.stage-nav {
  padding: 12px 12px 10px;
  display: grid;
  gap: 8px;
}

.stage {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: transparent;
  border-color: transparent;
}

.stage:hover,
.stage.active {
  background: #edf6f2;
  border-color: #cbe4d9;
}

.stage.active {
  box-shadow: inset 3px 0 0 var(--green);
}

.stage.done .stage-index {
  background: var(--green);
  color: #fff;
}

.stage.warn .stage-index {
  background: #fff1dc;
  color: var(--amber);
}

.stage-index {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #e6ecef;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.stage b {
  display: block;
}

.stage small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.profile-panel,
.workspace-panel {
  margin: 0 12px 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-soft);
}

.profile-panel {
  margin-top: auto;
}

.utility-head {
  min-height: 44px;
  width: 100%;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 4px;
  text-align: left;
}

.utility-head:hover {
  background: var(--panel-soft);
  border-color: transparent;
}

.utility-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e5f0ec;
  color: var(--green-dark);
  font-weight: 800;
}

.utility-title {
  min-width: 0;
}

.utility-title b,
.utility-title small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.utility-title small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin-top: 2px;
}

.collapse-mark {
  color: var(--muted);
  transform: rotate(0deg);
  transition: transform 0.16s ease;
}

.utility-body {
  display: grid;
  gap: 8px;
}

.utility-panel.collapsed .utility-body {
  display: none;
}

.utility-panel.collapsed .collapse-mark {
  transform: rotate(-90deg);
}

.workspace-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sidebar-field {
  gap: 5px;
}

.workspace-summary {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  min-height: 54px;
  padding: 8px;
  word-break: break-word;
}

.profile-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.admin-profile-tools {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  display: grid;
  gap: 8px;
}

.admin-profile-tools b {
  font-size: 13px;
}

.profile-panel .utility-body > .sidebar-field:has(#profilesSelect),
.profile-panel .utility-body > .workspace-actions,
.profile-panel .utility-body > #profileName,
.profile-panel .utility-body > .sidebar-field:has(#profileLogin),
.profile-panel .utility-body > .sidebar-field:has(#profileRole),
.profile-panel .utility-body > .sidebar-field:has(#libraryScope),
.profile-panel .utility-body > #saveProfileBtn,
.profile-panel .utility-body > .sidebar-field:has(#profileAccessCode),
.profile-panel .utility-body > #adminProfileTools {
  display: none !important;
}

.admin-console-link {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 800;
}

.admin-page {
  min-height: 100vh;
  background: #f7faf9;
}

.admin-hero {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 30px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: stretch;
}

.admin-hero h1 {
  margin: 3px 0 8px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
}

.admin-hero p:not(.eyebrow) {
  max-width: 740px;
  color: var(--muted);
  line-height: 1.5;
}

.admin-access-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 18px;
  display: grid;
  gap: 9px;
  align-content: center;
}

.admin-access-card span {
  color: var(--muted);
  font-size: 12px;
}

.admin-access-card b {
  color: var(--green-dark);
  overflow-wrap: anywhere;
}

.admin-access-card a {
  justify-self: start;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.admin-metrics {
  width: min(1180px, calc(100vw - 36px));
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-metrics div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  min-height: 82px;
  padding: 14px;
  display: grid;
  gap: 6px;
}

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

.admin-metrics b {
  color: var(--green-dark);
  font-size: 30px;
}

.admin-insights-grid {
  width: min(1180px, calc(100vw - 36px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.admin-insight-panel {
  min-height: 220px;
}

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

.admin-status-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  min-height: 58px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-status-list article > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-status-list b {
  color: var(--text);
}

.admin-status-list span,
.admin-status-list em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #a9b7b2;
  box-shadow: 0 0 0 4px rgba(169, 183, 178, 0.13);
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(29, 124, 90, 0.14);
}

.status-dot.idle {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(183, 124, 24, 0.14);
}

.admin-shell {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 18px 0 56px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.admin-users-panel,
.admin-editor-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.admin-users-panel {
  padding: 16px;
}

.admin-editor-panel {
  padding: 22px;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-panel-head h1,
.admin-panel-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.users-list {
  display: grid;
  gap: 8px;
}

.user-list-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.user-list-item.active,
.user-list-item:hover {
  border-color: rgba(29, 124, 90, 0.45);
  background: #f2faf6;
}

.user-list-item span {
  color: var(--muted);
  font-size: 13px;
}

.user-list-item em {
  width: max-content;
  border-radius: 999px;
  background: #fff4d7;
  color: #81620b;
  font-size: 11px;
  font-style: normal;
  padding: 3px 7px;
}

.admin-user-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-user-form label,
.admin-user-form .security-rules {
  display: grid;
  gap: 7px;
}

.admin-user-form input,
.admin-user-form select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  font: inherit;
}

.admin-user-form small {
  color: var(--muted);
  line-height: 1.35;
}

.security-rules,
.admin-form-actions {
  grid-column: 1 / -1;
}

.security-rules {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.security-rules b {
  color: var(--text);
}

.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.danger-button {
  border-color: rgba(178, 58, 58, 0.35);
  background: #fff7f6;
  color: #9f2f2f;
}

.danger-button:hover:not(:disabled) {
  border-color: rgba(178, 58, 58, 0.7);
  background: #ffeceb;
}

.profile-meta.error {
  color: var(--red);
}

.admin-ops-grid {
  width: min(1180px, calc(100vw - 36px));
  margin: -32px auto 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.admin-log-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.audit-list,
.backup-list {
  display: grid;
  gap: 8px;
}

.audit-list article,
.backup-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 11px 12px;
  display: grid;
  gap: 4px;
}

.audit-list b,
.backup-list b {
  color: var(--text);
}

.audit-list span,
.backup-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.backup-list a {
  justify-self: start;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.workspace-documents {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}

.workspace-documents-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.workspace-documents-head b {
  min-width: 0;
  font-size: 13px;
}

.workspace-documents-head button {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 12px;
  justify-self: start;
}

.workspace-tree {
  max-height: 300px;
  overflow: auto;
  padding: 8px;
}

.sidebar-footer {
  margin-top: 0;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  display: grid;
  gap: 8px;
}

.sidebar-logout {
  min-height: 32px;
  padding: 6px 10px;
  background: #fff;
  color: var(--muted);
}

.workbench {
  height: 100vh;
  overflow: auto;
  overflow-x: hidden;
  padding: 18px 20px 24px;
  min-width: 0;
  background: #eef3f4;
}

.workbench-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 2px;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
}

#stepTitle {
  margin-top: 3px;
  font-size: 24px;
}

.release-subnav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: -2px 0 14px;
}

.release-subnav[hidden] {
  display: none;
}

.release-subnav button {
  min-height: 34px;
  padding: 6px 8px;
  background: #f8fbfb;
}

.release-subnav button.active {
  background: #edf6f2;
  border-color: #bddbce;
  color: var(--green-dark);
}

.head-actions,
.action-row,
.launch-actions,
.step-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#generateBtn,
#finalGenerateBtn {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

#generateBtn:hover,
#finalGenerateBtn:hover {
  background: var(--green-dark);
}

.step-panel {
  display: none;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.step-panel.active {
  display: block;
}

.guide {
  display: none;
}

.guide h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.guide p,
.hint {
  color: var(--muted);
  line-height: 1.45;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.prep-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.prep-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.prep-card-head {
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 750;
}

.prep-card-head::-webkit-details-marker {
  display: none;
}

.prep-card-head span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.prep-card-head span::after {
  content: "⌄";
  color: var(--muted);
  font-size: 13px;
  transition: transform 0.16s ease;
}

.prep-card:not([open]) .prep-card-head span::after {
  transform: rotate(-90deg);
}

.prep-card-body {
  display: grid;
  gap: 10px;
}

.prep-card h3 {
  font-size: 15px;
}

.compact-drop {
  min-height: 92px;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text);
  font-weight: 650;
}

.check-line input {
  width: auto;
  margin-top: 2px;
}

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

.release-template-picker {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  padding: 12px;
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.release-template-picker h3 {
  font-size: 15px;
}

.constructor-rules {
  display: grid;
  gap: 8px;
}

.constructor-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(140px, 1fr) minmax(120px, 0.75fr) auto;
  align-items: end;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.compact-grid {
  margin-bottom: 0;
}

.mini-table {
  width: 100%;
  max-height: 190px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mini-table table {
  min-width: 420px;
}

.drop-zone {
  display: block;
  min-height: 108px;
  border: 1px dashed #aebdc4;
  border-radius: 8px;
  background: #fbfcfc;
  padding: 14px;
  color: var(--muted);
}

.drop-zone span {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 6px;
}

.drop-zone strong {
  display: block;
  font-weight: 500;
  margin-bottom: 12px;
  word-break: break-word;
}

.field-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.advanced-block {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 10px 12px;
}

.advanced-block summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}

.advanced-block .field-stack {
  margin-top: 12px;
}

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

.grid {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

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

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

.wide-field {
  grid-column: 1 / -1;
}

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

.rule-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.rule-card h3 {
  font-size: 14px;
}

.builder-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) auto auto;
  align-items: end;
  gap: 8px;
}

.compact-builder {
  grid-template-columns: minmax(160px, 1fr) auto;
}

.token-preview {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 38px;
  padding: 8px;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 13px;
  word-break: break-word;
}

.chip-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 30px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cfe2d8;
  border-radius: 999px;
  background: #f0f7f4;
  color: var(--green-dark);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 650;
}

.chip button {
  min-height: 18px;
  width: 18px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: inherit;
}

.filters-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 10px;
}

.filters-head h3 {
  font-size: 14px;
}

.filters {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(120px, 0.9fr) minmax(100px, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.filter-hint {
  grid-column: 1 / -1;
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 12px;
}

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

.checks.compact {
  grid-template-columns: 1fr;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
}

.checks input {
  width: auto;
}

.launch-card {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

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

.metric b {
  display: block;
  font-size: 24px;
}

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

.metric.bad b {
  color: var(--red);
}

.metric.warn b {
  color: var(--amber);
}

.step-footer {
  display: grid;
  grid-template-columns: auto;
  gap: 12px;
  align-items: center;
  justify-content: end;
  margin: 12px 0;
  padding: 0;
}

.operator-hint {
  display: none !important;
  min-height: 48px;
  border: 1px solid #cfddd8;
  border-radius: 8px;
  background: #f5faf7;
  padding: 9px 12px;
  display: grid;
  gap: 3px;
}

.operator-hint b {
  color: var(--green-dark);
  font-size: 12px;
}

.operator-hint span {
  color: var(--muted);
  line-height: 1.35;
}

.step-buttons {
  justify-content: flex-end;
}

.center-viewer {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.center-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.center-viewer-head h3 {
  font-size: 18px;
  margin-top: 2px;
}

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

.viewer-tab.active {
  background: #edf6f2;
  border-color: #bddbce;
  color: var(--green-dark);
}

.center-viewer-body {
  overflow: auto;
  min-height: 220px;
  max-height: 520px;
  padding: 16px;
}

.center-viewer-body > .empty {
  border: 1px dashed #c9d6db;
  border-radius: 8px;
  background: #fbfdfd;
  padding: 18px;
  line-height: 1.45;
}

.document-snippet {
  display: grid;
  gap: 8px;
}

.document-paragraph {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 10px;
  line-height: 1.5;
}

.document-paragraph small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.preview {
  min-width: 0;
  height: 100vh;
  border-left: 1px solid var(--line-strong);
  background: #f8fafb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.preview-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #eef3f4;
}

.preview-tab {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 6px 8px;
}

.preview-tab.active {
  background: #fff;
  border-color: #c8ded4;
  color: var(--green-dark);
  box-shadow: var(--shadow-soft);
}

.preview-panel {
  display: none;
  overflow: auto;
  padding: 12px;
  height: calc(100vh - 55px);
}

.preview-panel.active {
  display: block;
}

.empty {
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

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

th {
  position: sticky;
  top: 0;
  background: #f8fafb;
  color: var(--muted);
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 0 rgba(24, 39, 46, 0.02);
}

.card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  background: #edf5f2;
  color: var(--green-dark);
}

.badge.error {
  background: #faecec;
  color: var(--red);
}

.badge.warning {
  background: #fff5e7;
  color: var(--amber);
}

.error {
  color: var(--red);
}

.warn {
  color: var(--amber);
}

.download-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 700;
}

.tree {
  list-style: none;
  margin: 0;
  padding-left: 0;
  font-size: 13px;
}

.tree ul {
  list-style: none;
  margin: 4px 0 4px 18px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.tree li {
  padding: 3px 0;
}

.tree-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tree-row > span:first-child {
  min-width: 0;
  word-break: break-word;
}

.tree-preview-btn {
  min-height: 26px;
  padding: 3px 7px;
  font-size: 12px;
}

.workspace-tree .tree {
  font-size: 12px;
}

.workspace-tree .tree-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.workspace-tree .tree-row > .hint {
  grid-column: 1 / -1;
}

.workspace-tree .tree ul {
  margin-left: 10px;
  padding-left: 8px;
}

.workspace-tree .tree-preview-btn {
  min-height: 24px;
  padding: 2px 6px;
}

.file-preview-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}

.file-preview-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  padding: 3px 8px;
}

.busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(238, 242, 243, 0.72);
  backdrop-filter: blur(3px);
}

.busy-overlay[hidden] {
  display: none;
}

.busy-card {
  width: min(360px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 22px;
  text-align: center;
}

.busy-card h2 {
  font-size: 18px;
  margin-top: 12px;
}

.busy-card p {
  color: var(--muted);
  margin-top: 6px;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #d9e8e2;
  border-top-color: var(--green);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.9s linear infinite;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef0;
  margin-top: 16px;
}

.progress-bar {
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: var(--green);
  animation: progress-slide 1.35s ease-in-out infinite;
}

.is-busy .app-shell {
  pointer-events: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes progress-slide {
  0% {
    transform: translateX(-110%);
  }
  50% {
    transform: translateX(80%);
  }
  100% {
    transform: translateX(240%);
  }
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .landing-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .presentation-hero {
    min-height: 590px;
    background-position: 42% center;
  }

  .impact-grid,
  .process-line,
  .feature-bento,
  .pain-grid,
  .usecase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .clean-card-grid.four,
  .clean-check-grid,
  .clean-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clean-split {
    grid-template-columns: 1fr;
  }

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

  .app-shell {
    grid-template-columns: 240px 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .sidebar,
  .workbench {
    height: auto;
    max-height: none;
  }

  .preview {
    grid-column: 1 / -1;
    height: auto;
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .preview-panel {
    height: auto;
    max-height: 520px;
  }

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

@media (max-width: 820px) {
  .landing-head {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
  }

  .landing-brand {
    width: 100%;
  }

  .portal-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .portal-nav a {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding-left: 8px;
    padding-right: 8px;
    white-space: nowrap;
  }

  .landing-hero {
    width: min(100% - 24px, 560px);
    padding: 26px 0;
    gap: 24px;
  }

  .landing-copy h1 {
    font-size: 34px;
  }

  .landing-metrics {
    grid-template-columns: 1fr;
  }

  .presentation-hero {
    min-height: auto;
    padding: 46px 20px 360px;
    background-position: 58% bottom;
  }

  .clean-hero {
    padding: 42px 20px 260px;
    background-image:
      linear-gradient(180deg, rgba(247, 250, 249, 0.98) 0%, rgba(247, 250, 249, 0.92) 44%, rgba(247, 250, 249, 0.18) 100%),
      url("/static/brand/landing-hero.png");
    background-position: 62% bottom;
  }

  .hero-copy {
    width: 100%;
    max-width: 350px;
  }

  .clean-hero .hero-copy {
    max-width: 350px;
  }

  .hero-copy h1 {
    font-size: 42px;
    overflow-wrap: anywhere;
  }

  .clean-hero .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 17px;
  }

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

  .clean-metrics {
    grid-template-columns: 1fr;
  }

  .landing-band {
    padding: 44px 20px;
  }

  .clean-section {
    padding: 42px 20px;
  }

  .impact-grid,
  .process-line,
  .feature-grid,
  .roles-grid,
  .feature-bento,
  .pain-grid,
  .solution-grid,
  .usecase-grid {
    grid-template-columns: 1fr;
  }

  .clean-card-grid.four,
  .clean-check-grid,
  .clean-flow,
  .clean-split,
  .admin-hero,
  .admin-metrics,
  .admin-insights-grid,
  .admin-shell,
  .admin-user-form,
  .admin-ops-grid {
    grid-template-columns: 1fr;
  }

  .clean-card-grid article,
  .clean-check-grid article,
  .clean-flow article {
    min-height: auto;
  }

  .landing-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .login-shell {
    width: min(100% - 24px, 560px);
    grid-template-columns: 1fr;
    padding: 28px 0;
  }

  .password-field {
    grid-template-columns: 1fr;
  }

  .admin-hero,
  .admin-metrics,
  .admin-insights-grid,
  .admin-shell,
  .admin-ops-grid {
    width: min(100% - 24px, 560px);
  }

  .admin-ops-grid {
    margin-top: -24px;
  }

  .portal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .stage-nav,
  .grid.two,
  .grid.three,
  .rules-grid,
  .upload-grid,
  .source-summary-grid,
  .checks,
  .summary-grid,
  .workspace-actions,
  .workspace-documents-head,
  .builder-row,
  .constructor-row,
  .filter-row {
    grid-template-columns: 1fr;
  }

  .release-subnav {
    grid-template-columns: 1fr;
  }

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

  .step-buttons {
    justify-content: stretch;
  }

  .step-buttons button {
    flex: 1 1 140px;
  }

  .workbench-head,
  .center-viewer-head,
  .launch-card {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .landing-head {
    padding: 18px 20px;
  }

  .portal-nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Public landing: Арсенал ДОКС */
html:has(.ad-page-body) {
  scroll-behavior: smooth;
}

.ad-page-body {
  --ad-ink: #0d1c18;
  --ad-muted: #65756f;
  --ad-line: #dbe5e1;
  --ad-green: #17835f;
  --ad-green-dark: #0f3329;
  --ad-mint: #dff3ea;
  --ad-panel: #ffffff;
  --ad-soft: #f4f8f6;
  --ad-warm: #f6f2e8;
  --ad-shadow: 0 24px 70px rgba(15, 51, 41, 0.12);
  margin: 0;
  background: #f6f8f6;
  color: var(--ad-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  overflow-x: hidden;
}

.ad-page-body,
.ad-page-body * {
  box-sizing: border-box;
}

.ad-page-body img {
  max-width: 100%;
  display: block;
}

.ad-page-body a,
.ad-page-body button,
.ad-page-body summary {
  outline-offset: 4px;
}

.ad-page-body a:focus-visible,
.ad-page-body button:focus-visible,
.ad-page-body summary:focus-visible {
  outline: 3px solid rgba(23, 131, 95, 0.38);
}

.ad-container {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.ad-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 78px;
  border-bottom: 1px solid rgba(219, 229, 225, 0.85);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 58px);
  transition: box-shadow 0.24s ease, border-color 0.24s ease;
}

.ad-header.is-scrolled {
  border-color: rgba(190, 207, 200, 0.92);
  box-shadow: 0 12px 28px rgba(13, 28, 24, 0.08);
}

.ad-brand {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.ad-logo-wrap {
  width: 46px;
  height: 46px;
  border: 1px solid var(--ad-line);
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(13, 28, 24, 0.07);
}

.ad-logo-wrap img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.ad-brand strong,
.ad-footer strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.ad-brand small {
  color: var(--ad-muted);
  display: block;
  font-size: 12px;
  margin-top: 3px;
  white-space: nowrap;
}

.ad-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ad-nav a {
  min-height: 38px;
  border-radius: 999px;
  color: #30423d;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}

.ad-nav a:hover {
  background: #edf5f1;
  color: var(--ad-green-dark);
}

.ad-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.ad-header-cta,
.ad-header-login,
.ad-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.ad-header-cta,
.ad-button-primary {
  background: var(--ad-green);
  color: #fff;
  box-shadow: 0 12px 24px rgba(23, 131, 95, 0.22);
}

.ad-header-cta:hover,
.ad-button-primary:hover {
  background: #126e51;
}

.ad-header-login {
  border-color: rgba(15, 51, 41, 0.14);
  background: #fff;
  color: var(--ad-green-dark);
  box-shadow: 0 10px 22px rgba(15, 51, 41, 0.06);
}

.ad-header-login:hover {
  border-color: rgba(23, 131, 95, 0.34);
  background: #edf7f2;
}

.ad-button-secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ad-button-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.ad-menu-button {
  display: none;
}

.ad-landing {
  overflow: hidden;
  background:
    linear-gradient(180deg, #f6f8f6 0%, #eef5f1 100%);
}

.ad-hero {
  position: relative;
  background: var(--ad-green-dark);
  color: #fff;
  isolation: isolate;
}

.ad-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.72;
  background:
    linear-gradient(115deg, rgba(15, 51, 41, 0.96), rgba(15, 51, 41, 0.84) 48%, rgba(22, 97, 76, 0.82)),
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(255, 255, 255, 0.035) 78px 79px);
}

.ad-hero-grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.82fr);
  align-items: center;
  gap: 44px;
  padding: clamp(42px, 5vw, 72px) 0 28px;
}

.ad-hero-grid > * {
  min-width: 0;
}

.ad-hero-copy {
  max-width: 780px;
  min-width: 0;
}

.ad-eyebrow {
  margin: 0 0 14px;
  color: var(--ad-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.ad-hero .ad-eyebrow,
.ad-section-dark .ad-eyebrow,
.ad-final-cta .ad-eyebrow {
  color: #8ee0c1;
}

.ad-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 5.2vw, 74px);
  line-height: 1.02;
  letter-spacing: 0;
}

.ad-hero h1 span {
  display: block;
  max-width: 100%;
  overflow-wrap: break-word;
}

.ad-lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: #e5f2ed;
  font-size: 20px;
  line-height: 1.45;
}

.ad-hero-support {
  max-width: 660px;
  margin: 12px 0 0;
  color: #bcd3ca;
  line-height: 1.55;
}

.ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.ad-microcopy {
  margin: 14px 0 0;
  color: #a9c2b8;
  font-size: 14px;
  line-height: 1.45;
}

.ad-hero-visual {
  position: relative;
  min-height: 480px;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 18px;
}

.ad-flow-strip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.ad-flow-strip span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e9f7f2;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  display: grid;
  place-items: center;
  text-align: center;
}

.ad-mockup-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(247, 252, 249, 0.94);
  color: var(--ad-ink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  min-width: 0;
  transform: rotate(-1deg);
  animation: ad-float 8s ease-in-out infinite;
}

.ad-mockup-top {
  height: 52px;
  border-bottom: 1px solid #d6e4de;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
}

.ad-mockup-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b7cbc4;
}

.ad-mockup-body {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 20px;
  padding: 24px;
}

.ad-table-mini {
  border: 1px solid #d7e5df;
  border-radius: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  min-height: 220px;
}

.ad-table-mini span {
  background:
    linear-gradient(90deg, #e5eee9, #f5f8f6);
}

.ad-table-mini span:nth-child(-n + 3) {
  background: #1c7d5d;
}

.ad-status-list {
  display: grid;
  gap: 10px;
  align-content: center;
}

.ad-status-row {
  border: 1px solid #d7e5df;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  animation: ad-status-pulse 3.8s ease-in-out infinite;
  animation-delay: var(--delay);
}

.ad-status-row span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ad-green);
  box-shadow: 0 0 0 6px rgba(23, 131, 95, 0.12);
}

.ad-status-row b {
  font-size: 13px;
}

.ad-folder-stack {
  position: absolute;
  right: 8%;
  bottom: 34px;
  width: 220px;
  height: 128px;
  transform: rotate(2deg);
}

.ad-folder-stack span {
  position: absolute;
  inset: auto 0 0 auto;
  width: 170px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(23, 131, 95, 0.92);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.ad-folder-stack span:nth-child(1) {
  right: 40px;
  bottom: 36px;
  opacity: 0.42;
}

.ad-folder-stack span:nth-child(2) {
  right: 20px;
  bottom: 18px;
  opacity: 0.68;
}

.ad-folder-stack span:nth-child(3) {
  right: 0;
  bottom: 0;
}

.ad-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 52px;
}

.ad-metric {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  min-height: 118px;
  padding: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.ad-metric:hover {
  border-color: rgba(142, 224, 193, 0.44);
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
}

.ad-metric .ad-icon {
  margin-bottom: 12px;
  background: rgba(142, 224, 193, 0.14);
  color: #8ee0c1;
}

.ad-metric strong {
  display: block;
  font-size: 25px;
  line-height: 1.08;
}

.ad-metric span {
  color: #bdd4cb;
  display: block;
  margin-top: 8px;
  line-height: 1.35;
}

.ad-section {
  padding: clamp(72px, 8vw, 112px) 0;
  background: #fff;
  scroll-margin-top: 96px;
}

.ad-section-muted {
  background: var(--ad-soft);
}

.ad-section-dark {
  background: #102d26;
  color: #fff;
}

.ad-quality-section {
  background:
    linear-gradient(180deg, #ffffff, #f6faf8);
}

.ad-section-head {
  max-width: 820px;
  margin-bottom: 32px;
}

.ad-section-head h2,
.ad-split h2,
.ad-final-cta h2,
.ad-ecosystem h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

.ad-section-head p:not(.ad-eyebrow),
.ad-split p,
.ad-ecosystem p {
  color: var(--ad-muted);
  font-size: 18px;
  line-height: 1.58;
  margin: 16px 0 0;
}

.ad-section-head-invert p:not(.ad-eyebrow),
.ad-section-dark .ad-card p,
.ad-section-dark .ad-process-card p {
  color: #c6d8d0;
}

.ad-narrative {
  border-left: 4px solid var(--ad-green);
  color: #40514c;
  max-width: 940px;
  margin: 0 0 24px;
  padding: 8px 0 8px 18px;
  font-size: 18px;
  line-height: 1.58;
}

.ad-card-grid,
.ad-process-grid,
.ad-result-grid {
  display: grid;
  gap: 14px;
}

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

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

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

.ad-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ad-card,
.ad-process-card,
.ad-result-card {
  position: relative;
  border: 1px solid var(--ad-line);
  border-radius: 8px;
  background: var(--ad-panel);
  min-height: 168px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(13, 28, 24, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ad-card:hover,
.ad-process-card:hover,
.ad-result-card:hover {
  border-color: rgba(23, 131, 95, 0.38);
  box-shadow: 0 18px 34px rgba(13, 28, 24, 0.08);
  transform: translateY(-2px);
}

.ad-section-dark .ad-card,
.ad-process-card {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.ad-card h3,
.ad-process-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.22;
}

.ad-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 40px;
  margin-bottom: 18px;
}

.ad-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #e8f5ef;
  color: var(--ad-green);
  display: inline-grid;
  flex: 0 0 auto;
  line-height: 0;
  place-content: center;
  place-items: center;
}

.ad-icon svg {
  display: block;
  width: 21px;
  height: 21px;
}

.ad-section-dark .ad-icon,
.ad-process-card .ad-icon,
.ad-result-card .ad-icon {
  background: rgba(142, 224, 193, 0.14);
  color: #8ee0c1;
}

.ad-card p,
.ad-process-card p,
.ad-result-card p {
  color: var(--ad-muted);
  line-height: 1.48;
  margin: 14px 0 0;
}

.ad-split {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.ad-split-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
}

.ad-formula,
.ad-accent-line {
  border: 1px solid rgba(23, 131, 95, 0.22);
  border-radius: 12px;
  background: #ebf7f1;
  color: var(--ad-green-dark);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  margin-top: 24px;
  padding: 16px 18px;
}

.ad-accent-line {
  margin-top: 24px;
}

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

.ad-step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ad-mint);
  color: var(--ad-green-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.ad-tech-note {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
  padding: 24px;
}

.ad-tech-note h3 {
  margin: 0;
  font-size: 24px;
}

.ad-tech-note p:last-child {
  color: #c6d8d0;
  line-height: 1.55;
  margin: 0;
}

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

.ad-result-card {
  min-height: 176px;
}

.ad-result-card strong {
  color: var(--ad-green-dark);
  display: block;
  font-size: 30px;
  line-height: 1.06;
}

.ad-result-card .ad-card-top {
  margin-bottom: 16px;
}

.ad-ecosystem {
  border: 1px solid var(--ad-line);
  border-radius: 18px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 32px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--ad-shadow);
}

.ad-ecosystem-map {
  position: relative;
  min-height: 420px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, #eef7f2, #ffffff);
  overflow: hidden;
}

.ad-ecosystem-map::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(23, 131, 95, 0.24);
  border-radius: 50%;
}

.ad-ecosystem-core,
.ad-ecosystem-node {
  position: absolute;
  border: 1px solid rgba(23, 131, 95, 0.2);
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  box-shadow: 0 16px 30px rgba(13, 28, 24, 0.08);
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-ecosystem-core {
  inset: 50%;
  width: 180px;
  transform: translate(-50%, -50%);
  background: var(--ad-green-dark);
  color: #fff;
}

.ad-ecosystem-core .ad-icon,
.ad-ecosystem-node .ad-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

.ad-ecosystem-core .ad-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.ad-ecosystem-node .ad-icon {
  background: #e8f5ef;
}

.ad-ecosystem-node {
  color: var(--ad-green-dark);
}

.ad-ecosystem-node:hover {
  box-shadow: 0 18px 32px rgba(13, 28, 24, 0.12);
}

.ad-ecosystem-node.node-0 {
  left: 32px;
  top: 44px;
}

.ad-ecosystem-node.node-1 {
  right: 32px;
  top: 44px;
}

.ad-ecosystem-node.node-2 {
  left: 40px;
  bottom: 112px;
}

.ad-ecosystem-node.node-3 {
  right: 40px;
  bottom: 112px;
}

.ad-ecosystem-node.node-4 {
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
}

.ad-ecosystem-node.node-4:hover {
  transform: translateX(-50%) translateY(-2px);
}

.ad-faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

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

.ad-faq-item {
  border: 1px solid var(--ad-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(13, 28, 24, 0.04);
}

.ad-faq-item summary {
  cursor: pointer;
  font-weight: 850;
  list-style: none;
  padding: 18px 48px 18px 18px;
  position: relative;
}

.ad-faq-item summary::-webkit-details-marker {
  display: none;
}

.ad-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ad-green);
  font-size: 24px;
  line-height: 1;
}

.ad-faq-item[open] summary::after {
  content: "−";
}

.ad-faq-item p {
  color: var(--ad-muted);
  line-height: 1.58;
  margin: 0;
  padding: 0 18px 18px;
}

.ad-faq-item[open] {
  border-color: rgba(23, 131, 95, 0.32);
  box-shadow: 0 14px 34px rgba(13, 28, 24, 0.07);
}

.ad-final-cta {
  background: var(--ad-green-dark);
  color: #fff;
  padding: clamp(70px, 8vw, 112px) 0;
  scroll-margin-top: 96px;
}

.ad-final-cta-box {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  padding: clamp(28px, 5vw, 56px);
}

.ad-final-cta p:not(.ad-eyebrow) {
  color: #c6d8d0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.55;
}

.ad-footer {
  border-top: 1px solid #d9e4df;
  background: #fff;
  padding: 26px 0;
}

.ad-footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
  color: var(--ad-muted);
}

.ad-footer-grid strong {
  color: var(--ad-ink);
}

.ad-footer-grid span,
.ad-footer-grid a {
  color: var(--ad-muted);
  text-decoration: none;
}

[data-reveal] {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.72s cubic-bezier(0.2, 0.72, 0.2, 1),
    transform 0.72s cubic-bezier(0.2, 0.72, 0.2, 1),
    filter 0.72s cubic-bezier(0.2, 0.72, 0.2, 1);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.ad-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(2px);
}

.ad-reveal-ready [data-reveal].is-visible,
[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.ad-reveal-ready .ad-hero [data-reveal],
.ad-hero [data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
}

.ad-reveal-ready .ad-card[data-reveal].is-visible:hover,
.ad-reveal-ready .ad-process-card[data-reveal].is-visible:hover,
.ad-reveal-ready .ad-result-card[data-reveal].is-visible:hover {
  transform: translate3d(0, -2px, 0);
}

@keyframes ad-status-pulse {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

@keyframes ad-float {
  0%, 100% {
    transform: rotate(-1deg) translateY(0);
  }
  50% {
    transform: rotate(-1deg) translateY(-8px);
  }
}

@media (max-width: 1120px) {
  .ad-header {
    grid-template-columns: auto auto auto;
  }

  .ad-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    border: 1px solid var(--ad-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--ad-shadow);
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  .ad-menu-open .ad-nav {
    display: grid;
  }

  .ad-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border-color: var(--ad-line);
    background: #fff;
    color: var(--ad-ink);
    min-height: 40px;
    font-weight: 850;
  }

  .ad-hero-grid,
  .ad-split,
  .ad-split-reverse,
  .ad-ecosystem,
  .ad-faq-layout {
    grid-template-columns: 1fr;
  }

  .ad-hero-grid {
    min-height: auto;
  }

  .ad-hero-visual {
    min-height: 500px;
  }

  .ad-grid-five,
  .ad-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-process-grid,
  .ad-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ad-container {
    width: calc(100% - 48px);
    max-width: 1180px;
  }

  .ad-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 16px;
  }

  .ad-brand {
    min-width: 0;
  }

  .ad-brand > span:last-child {
    min-width: 0;
  }

  .ad-menu-button {
    min-width: 44px;
    width: 44px;
    padding: 0;
    font-size: 0;
  }

  .ad-menu-button::before {
    content: "≡";
    font-size: 24px;
    line-height: 1;
  }

  .ad-brand small {
    display: none;
  }

  .ad-header-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
    gap: 8px;
  }

  .ad-header-login,
  .ad-header-cta {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .ad-nav {
    left: 16px;
    right: 16px;
    grid-template-columns: 1fr;
  }

  .ad-hero-grid {
    gap: 28px;
    padding-top: 44px;
  }

  .ad-hero-copy {
    width: 100%;
    max-width: calc(100vw - 48px);
  }

  .ad-hero .ad-actions,
  .ad-hero-visual,
  .ad-flow-strip,
  .ad-mockup-card {
    width: 100%;
    max-width: calc(100vw - 48px);
  }

  .ad-hero h1 {
    font-size: 31px;
    line-height: 1.08;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .ad-lead {
    font-size: 17px;
  }

  .ad-eyebrow,
  .ad-lead,
  .ad-hero-support,
  .ad-microcopy {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .ad-actions,
  .ad-footer-grid,
  .ad-admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ad-button {
    width: 100%;
  }

  .ad-hero-visual {
    min-height: auto;
  }

  .ad-flow-strip,
  .ad-mockup-body,
  .ad-hero-metrics,
  .ad-grid-five,
  .ad-grid-four,
  .ad-grid-three,
  .ad-grid-two,
  .ad-process-grid,
  .ad-result-grid,
  .ad-tech-note {
    grid-template-columns: 1fr;
  }

  .ad-flow-strip {
    width: 100%;
    overflow: hidden;
  }

  .ad-flow-strip span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .ad-folder-stack {
    display: none;
  }

  .ad-mockup-card {
    animation: none;
    transform: none;
  }

  .ad-section {
    padding: 58px 0;
  }

  .ad-section-head h2,
  .ad-split h2,
  .ad-final-cta h2,
  .ad-ecosystem h2 {
    font-size: 34px;
  }

  .ad-card,
  .ad-process-card,
  .ad-result-card {
    min-height: auto;
  }

  .ad-ecosystem {
    padding: 22px;
  }

  .ad-ecosystem-map {
    min-height: 520px;
  }

  .ad-ecosystem-core {
    left: 50%;
    top: 28px;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
  }

  .ad-ecosystem-node {
    left: 50% !important;
    right: auto !important;
    width: min(260px, calc(100% - 32px));
    transform: translateX(-50%);
  }

  .ad-ecosystem-node.node-0 {
    top: 104px;
  }

  .ad-ecosystem-node.node-1 {
    top: 184px;
  }

  .ad-ecosystem-node.node-2 {
    top: 264px;
    bottom: auto;
  }

  .ad-ecosystem-node.node-3 {
    top: 344px;
    bottom: auto;
  }

  .ad-ecosystem-node.node-4 {
    top: 424px;
    bottom: auto;
    transform: translateX(-50%);
  }

  .ad-footer-grid {
    display: flex;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .ad-mockup-card {
    animation: none;
  }
}
