/* Marketing display face: same Noto Serif TC file, Latin + CJK for poster-like titles. */
@font-face {
  font-family: "MM3D Display Serif";
  src: url("/assets/NotoSerifTC-VF.ttf?v=20260815-account-title-v4") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "MM3D Chinese Serif";
  src: url("/assets/NotoSerifTC-VF.ttf?v=20260815-account-title-v4") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  unicode-range:
    U+2E80-2FFF,
    U+3000-303F,
    U+31C0-31EF,
    U+3400-4DBF,
    U+4E00-9FFF,
    U+F900-FAFF,
    U+FE30-FE4F,
    U+FF01-FF60;
}

:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --ink: #1c2326;
  --muted: #657178;
  --line: #d5dde6;
  --panel: #ffffff;
  --primary: #087cff;
  --primary-dark: #0756c7;
  --accent: #ff9d24;
  --good: #1f8a5b;
  --mm3d-display-serif: "MM3D Display Serif", "Noto Serif TC", "MM3D Chinese Serif", serif;
  /* Body copy: sans like the poster — even stroke weight on light backgrounds. */
  --mm3d-body-sans: "Segoe UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", Arial, sans-serif;
  font-family: var(--mm3d-body-sans);
}

body {
  font-family: var(--mm3d-body-sans);
}

/* Option A + 登入／結帳：大標與品牌用襯線粗體；表單輸入維持無襯線。 */
body.home-page h1,
body.home-page h2,
body.home-page h3,
body.pricing-page h1,
body.pricing-page h2,
body.pricing-page h3,
body.downloads-page h1,
body.downloads-page h2,
body.downloads-page h3,
body.standalone-info-page h1,
body.standalone-info-page h2,
body.standalone-info-page h3,
body.sales-page h1,
body.sales-page h2,
body.sales-page h3,
body.support-page .support-hero h1,
body.marketplace-page h1,
body.marketplace-page h2,
body.account-page h1,
body.account-page h2,
body.account-page h3,
body.checkout-page h1,
body.checkout-page h2,
body.checkout-page h3,
body.account-page .account-brand,
body.checkout-page .checkout-brand {
  font-family: var(--mm3d-display-serif);
  font-weight: 900;
  font-variation-settings: "wght" 900;
  font-synthesis: none;
  letter-spacing: 0;
  -webkit-text-stroke: 0.35px currentColor;
  paint-order: stroke fill;
}

body.account-page .account-kicker,
body.checkout-page .checkout-kicker {
  font-family: var(--mm3d-display-serif);
  font-weight: 900;
  font-variation-settings: "wght" 900;
}

body.account-page input,
body.account-page select,
body.account-page textarea,
body.checkout-page input,
body.checkout-page select,
body.checkout-page textarea,
body.account-page .form-field input,
body.checkout-page .checkout-field input,
body.checkout-page .checkout-field select {
  font-family: var(--mm3d-body-sans) !important;
  font-weight: 400;
  font-variation-settings: normal;
  -webkit-text-stroke: 0;
  paint-order: normal;
}

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

.admin-audit-table-wrap {
  width: 100%;
  overflow: auto;
}

.admin-audit-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.admin-audit-table th,
.admin-audit-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #d5dde0;
  text-align: left;
  vertical-align: top;
}

.admin-audit-table th {
  color: #eef5f6;
  background: #26383e;
  position: sticky;
  top: 0;
}

.admin-audit-table td:last-child {
  min-width: 320px;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .admin-monitor-grid { grid-template-columns: 1fr; }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(245, 247, 248, 0.18), rgba(245, 247, 248, 0.36)),
    url("assets/laser-processing-bg.png") center / cover no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(10, 18, 22, 0.08);
  pointer-events: none;
}

body.admin-page {
  background: #101719;
}

body.pricing-page {
  --pricing-ink: #10191d;
  --pricing-muted: #5c6a72;
  --pricing-line: rgba(18, 35, 40, 0.12);
  --pricing-teal: #087cff;
  --pricing-teal-dark: #071426;
  --pricing-gold: #ff9d24;
  --pricing-soft: #f4f7fa;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 4%, rgba(216, 162, 53, 0.2), transparent 26%),
    radial-gradient(circle at 80% 0%, rgba(8, 124, 255, 0.2), transparent 30%),
    #f4f7fa;
  color: var(--pricing-ink);
}

body.pricing-page::before,
body.pricing-page::after {
  display: none;
}

body.legal-page {
  --legal-ink: #101820;
  --legal-muted: #617080;
  --legal-line: #d5dde6;
  --legal-teal: #087cff;
  min-height: 100vh;
  background: #f4f7fa;
  color: var(--legal-ink);
}

body.legal-page::before,
body.legal-page::after {
  display: none;
}

.legal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(120deg, #071426, #0a2445);
  color: #fff;
}

.legal-nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-brand {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.legal-brand span {
  color: #ff9d24;
}

.legal-back {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.legal-back:hover {
  color: #fff;
}

.legal-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 68px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 72px;
  align-items: start;
}

.legal-content {
  min-width: 0;
}

.legal-kicker {
  color: var(--legal-teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.legal-content h1 {
  margin: 12px 0 14px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.legal-summary {
  max-width: 720px;
  margin: 0;
  color: var(--legal-muted);
  font-size: 18px;
  line-height: 1.8;
}

.legal-meta {
  margin: 24px 0 48px;
  color: var(--legal-muted);
  font-size: 14px;
}

.legal-notice {
  margin-bottom: 42px;
  padding: 18px 20px;
  border: 1px solid #ead8a8;
  border-radius: 12px;
  background: #fff9e9;
  color: #67521f;
  line-height: 1.65;
}

.legal-section {
  padding: 34px 0;
  border-top: 1px solid var(--legal-line);
  scroll-margin-top: 24px;
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.legal-section p,
.legal-section li {
  color: #415159;
  line-height: 1.85;
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-section a {
  color: var(--legal-teal);
  font-weight: 700;
}

.legal-toc {
  position: sticky;
  top: 28px;
  padding: 22px;
  border: 1px solid var(--legal-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(20, 33, 38, 0.06);
}

.legal-toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.legal-toc a {
  display: block;
  padding: 8px 0;
  color: var(--legal-muted);
  font-size: 14px;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--legal-teal);
}

.legal-footer {
  padding: 28px 20px;
  border-top: 1px solid var(--legal-line);
  color: var(--legal-muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 800px) {
  .legal-shell {
    padding-top: 44px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .legal-toc {
    position: static;
    grid-row: 1;
  }

  .legal-content h1 {
    font-size: 40px;
  }
}

/* Checkout */
body.checkout-page {
  min-height: 100vh;
  background: #f4f7fa;
  color: #101820;
}

body.checkout-page::before,
body.checkout-page::after {
  display: none;
}

.checkout-header {
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(120deg, #071426, #0a2445);
  color: #fff;
}

.checkout-brand {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.checkout-brand span {
  margin-right: 8px;
  color: #ff9d24;
}

.checkout-security {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 750;
}

.checkout-security span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #f0c35c;
}

.checkout-shell {
  width: calc(100% - 64px);
  max-width: 1280px;
  margin-inline: auto;
  padding: 24px 0 32px;
  display: block;
}

.checkout-main {
  min-width: 0;
}

.checkout-heading {
  margin-bottom: 36px;
}

.checkout-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: #617080;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.checkout-kicker {
  display: block;
  color: #087cff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.checkout-heading h1,
.checkout-success h1 {
  margin: 8px 0;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.checkout-heading p {
  max-width: 620px;
  margin: 0;
  color: #66757c;
  font-size: 17px;
  line-height: 1.7;
}

.checkout-form {
  display: grid;
  gap: 18px;
}

.checkout-section {
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid #dbe3e5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 33, 38, 0.04);
}

.checkout-section-title {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.checkout-section-title > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #e9f3f3;
  color: #087cff;
  font-size: 12px;
  font-weight: 950;
}

.checkout-section-title h2 {
  margin: 0;
  font-size: 20px;
}

.checkout-section-title p {
  margin: 5px 0 0;
  color: #6a787f;
  font-size: 14px;
}

.checkout-field {
  display: grid;
  gap: 7px;
  color: #26363c;
  font-size: 14px;
  font-weight: 850;
}

.checkout-field + .checkout-field {
  margin-top: 16px;
}

.checkout-field > span em {
  color: #7a878c;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.checkout-field input,
.checkout-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfdadd;
  border-radius: 7px;
  background: #fff;
  padding: 0 13px;
  color: #101820;
  font: inherit;
}

.checkout-field input:focus,
.checkout-field select:focus {
  outline: 3px solid rgba(8, 124, 255, 0.12);
  border-color: #087cff;
}

.checkout-field input.invalid,
.checkout-field select.invalid {
  border-color: #bd393f;
}

.checkout-field-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 14px;
}

.checkout-field-grid .checkout-field + .checkout-field {
  margin-top: 0;
}

.checkout-card-input {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid #cfdadd;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.checkout-card-input:focus-within {
  outline: 3px solid rgba(8, 124, 255, 0.12);
  border-color: #087cff;
}

.checkout-card-input input {
  border: 0;
  border-radius: 0;
}

.checkout-card-input input:focus {
  outline: 0;
}

.checkout-card-input b {
  margin-right: 13px;
  color: #087cff;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.checkout-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 4px 0;
  color: #4f6067;
  font-size: 14px;
  line-height: 1.65;
}

.checkout-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #087cff;
}

.checkout-consent a {
  color: #087cff;
  font-weight: 850;
}

.checkout-alert {
  padding: 13px 15px;
  border: 1px solid rgba(189, 57, 63, 0.25);
  border-radius: 8px;
  background: #fff0f1;
  color: #9c252b;
  font-size: 14px;
  font-weight: 800;
}

.checkout-summary {
  position: sticky;
  top: 28px;
  padding: 28px;
  border: 1px solid #d7e0e2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(20, 33, 38, 0.1);
}

.checkout-summary-head,
.checkout-plan > div,
.checkout-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.checkout-summary-head {
  padding-bottom: 18px;
  border-bottom: 1px solid #e1e7e9;
  color: #26363c;
  font-weight: 900;
}

.checkout-summary-head a {
  color: #087cff;
  font-size: 13px;
}

.checkout-plan {
  padding: 22px 0;
}

.checkout-plan > div {
  justify-content: flex-start;
}

.checkout-plan-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #619ca1, #326a6f);
  color: #fff;
  font-weight: 950;
}

.checkout-plan-icon.pro {
  background: linear-gradient(145deg, #f0c54b, #c9810d);
  color: #563500;
}

.checkout-plan h2 {
  margin: 0;
  font-size: 20px;
}

.checkout-plan p {
  margin: 4px 0 0;
  color: #617080;
  font-size: 12px;
}

.checkout-plan > strong {
  display: block;
  margin-top: 16px;
  color: #101820;
  font-size: 26px;
}

.checkout-cycle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 9px;
  background: #edf2f3;
}

.checkout-cycle button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #617080;
  font-weight: 850;
  cursor: pointer;
}

.checkout-cycle button.active {
  border-color: #d5dfe1;
  background: #fff;
  color: #0a1b31;
  box-shadow: 0 4px 12px rgba(20, 33, 38, 0.08);
}

.checkout-cycle em {
  display: block;
  color: #a16c00;
  font-size: 10px;
  font-style: normal;
}

.checkout-totals {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.checkout-totals > div {
  color: #5e6d74;
  font-size: 14px;
}

.checkout-totals dt,
.checkout-totals dd {
  margin: 0;
}

.checkout-totals dd {
  text-align: right;
}

.checkout-totals .checkout-total {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid #dfe6e8;
  color: #101820;
  font-size: 17px;
  font-weight: 950;
}

.checkout-totals .checkout-total dd {
  color: #087cff;
  font-size: 22px;
}

.checkout-trial-row {
  color: #18704d !important;
  font-weight: 850;
}

.checkout-trial-notice {
  margin: -4px 0 20px;
  padding: 14px;
  border: 1px solid #cce2d7;
  border-radius: 8px;
  background: #f0f8f4;
  color: #265b45;
}

.checkout-trial-notice strong {
  font-size: 14px;
}

.checkout-trial-notice p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.checkout-submit {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: #087cff;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.checkout-submit:hover {
  background: #0e5d65;
}

.checkout-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.checkout-safe-note {
  margin: 13px 0 0;
  color: #78858a;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.checkout-success {
  grid-column: 1 / -1;
  width: min(620px, 100%);
  margin: 54px auto 0;
  padding: clamp(32px, 6vw, 56px);
  border: 1px solid #d7e1e2;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 64px rgba(20, 33, 38, 0.1);
}

.checkout-success-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #e7f5ee;
  color: #21825a;
  font-size: 28px;
  font-weight: 950;
}

.checkout-success p {
  margin: 0 auto 28px;
  color: #64737a;
  font-size: 17px;
  line-height: 1.7;
}

.checkout-success-order {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #f2f6f6;
  color: #5f6e74;
}

.checkout-success-order strong {
  color: #101820;
}

.checkout-success-back {
  display: inline-flex;
  margin-top: 18px;
  color: #617080;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .checkout-summary {
    position: static;
  }
}

@media (max-width: 560px) {
  .checkout-header {
    padding: 0 18px;
  }

  .checkout-security {
    font-size: 0;
  }

  .checkout-shell {
    width: calc(100% - 32px);
    padding-bottom: 32px;
  }

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

  .checkout-field-grid .checkout-field + .checkout-field {
    margin-top: 0;
  }

  .checkout-summary,
  .checkout-section {
    padding: 20px;
  }
}

/* Account and security settings */
body.settings-page {
  min-height: 100vh;
  background: #f4f7fa;
  color: #101820;
}

body.settings-page::before,
body.settings-page::after {
  display: none;
}

.settings-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(120deg, #071426, #0a2445);
  color: #fff;
}

.settings-brand {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.settings-brand span {
  margin-right: 8px;
  color: #ff9d24;
}

.settings-topbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-topbar nav a,
.settings-topbar nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.84);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.settings-topbar nav a:hover,
.settings-topbar nav button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.settings-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 96px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.settings-sidebar {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border: 1px solid #d8e1e3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(20, 33, 38, 0.06);
}

.settings-user {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid #d5dde6;
}

.settings-user > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  background: #087cff;
  color: #fff;
  font-weight: 950;
  overflow: hidden;
}

.settings-user > span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-user div {
  min-width: 0;
}

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

.settings-user small {
  margin-top: 3px;
  color: #718092;
}

.settings-sidebar > nav {
  display: grid;
  padding: 12px;
}

.settings-sidebar > nav a {
  padding: 11px 12px;
  border-radius: 7px;
  color: #5d6b72;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.settings-sidebar > nav a:hover,
.settings-sidebar > nav a.active {
  background: #eef3f8;
  color: #087cff;
}

.settings-workspace {
  display: grid;
  gap: 5px;
  padding: 18px 22px;
  border-top: 1px solid #d5dde6;
  background: #f8fafa;
}

.settings-workspace span {
  color: #7a878c;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.settings-workspace strong {
  font-size: 14px;
}

.settings-content {
  min-width: 0;
}

.settings-heading {
  margin-bottom: 34px;
}

.settings-heading > span,
.settings-card-head > div > span {
  color: #087cff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.15em;
}

.settings-heading h1 {
  margin: 9px 0 12px;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.settings-heading p {
  max-width: 690px;
  margin: 0;
  color: #65747b;
  font-size: 17px;
  line-height: 1.7;
}

.settings-message {
  position: sticky;
  top: 82px;
  z-index: 15;
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid #c9dfd5;
  border-radius: 8px;
  background: #edf8f3;
  color: #276247;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(20, 33, 38, 0.09);
}

.settings-message.error {
  border-color: #e5c2c5;
  background: #fff0f1;
  color: #9c252b;
}

.settings-card {
  margin-bottom: 20px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid #d5dde6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 33, 38, 0.04);
  scroll-margin-top: 92px;
}

.settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.settings-card-head h2 {
  margin: 7px 0 6px;
  font-size: 23px;
}

.settings-card-head p,
.settings-action-row p {
  margin: 0;
  color: #617080;
  line-height: 1.6;
}

.settings-status {
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f5ee;
  color: #24704f;
  font-size: 12px;
  font-weight: 900;
}

.settings-form {
  display: grid;
  gap: 20px;
}

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

.settings-field {
  display: grid;
  gap: 7px;
  color: #2c3b41;
  font-size: 14px;
  font-weight: 850;
}

.settings-field input,
.settings-field select,
.settings-field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #ced9dc;
  border-radius: 7px;
  background: #fff;
  padding: 0 12px;
  color: #101820;
  font: inherit;
}

.settings-field textarea {
  padding: 11px 12px;
  resize: vertical;
}

.settings-field input:focus,
.settings-field select:focus {
  outline: 3px solid rgba(8, 124, 255, 0.12);
  border-color: #087cff;
}

.settings-field small {
  color: #718092;
  font-weight: 550;
  line-height: 1.45;
}

.settings-form-actions {
  display: flex;
  justify-content: flex-end;
}

.settings-primary,
.settings-secondary,
.settings-danger {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 17px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.settings-primary {
  border: 0;
  background: #087cff;
  color: #fff;
}

.settings-secondary {
  border: 1px solid #cdd8db;
  background: #fff;
  color: #254149;
}

.settings-danger {
  border: 1px solid #bf454b;
  background: #fff;
  color: #aa3037;
}

.settings-current-email {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 6px 18px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #f4f7fa;
}

.settings-current-email span {
  color: #617080;
}

.settings-current-email em {
  grid-column: 2;
  color: #9a6a07;
  font-size: 13px;
  font-style: normal;
}

.settings-inline-form {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}

.settings-session {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 13px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid #d8e4df;
  border-radius: 9px;
  background: #f5faf7;
}

.settings-session-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #dff1e7;
  color: #21805a;
  font-weight: 950;
}

.settings-session div {
  display: grid;
  gap: 3px;
}

.settings-session div span,
.settings-session div small {
  color: #66757b;
}

.settings-session > em {
  color: #23805a;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.settings-security-history {
  margin-top: 26px;
  border-top: 1px solid #e0e7e8;
  padding-top: 20px;
}

.settings-security-history summary {
  color: #087cff;
  font-weight: 850;
  cursor: pointer;
}

.settings-event-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.settings-event-list > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 13px;
  border-radius: 7px;
  background: #f4f7fa;
  font-size: 13px;
}

.settings-event-list span {
  color: #6d7b81;
  text-align: right;
}

.settings-preferences {
  display: grid;
}

.settings-preferences > label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid #e4e9ea;
}

.settings-preferences > label span {
  display: grid;
  gap: 4px;
}

.settings-preferences small {
  color: #6c7a80;
}

.settings-preferences input {
  width: 40px;
  height: 22px;
  accent-color: #087cff;
}

.settings-preferences .settings-form-actions {
  padding-top: 22px;
}

.settings-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 0;
  border-top: 1px solid #d5dde6;
}

.settings-action-row:first-of-type {
  border-top: 0;
}

.settings-action-row strong {
  display: block;
  margin-bottom: 5px;
}

.settings-action-row.danger {
  color: #9f3036;
}

.settings-dialog {
  width: min(480px, calc(100% - 32px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 28px 80px rgba(13, 25, 29, 0.3);
}

.settings-dialog::backdrop {
  background: rgba(10, 22, 25, 0.62);
}

.settings-dialog form {
  display: grid;
  gap: 17px;
  padding: 32px;
}

.settings-dialog-warning {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #fff0f1;
  color: #b4373e;
  font-size: 22px;
  font-weight: 950;
}

.settings-dialog h2,
.settings-dialog p {
  margin: 0;
}

.settings-dialog p {
  color: #617080;
  line-height: 1.65;
}

.settings-dialog-error {
  color: #b4373e;
  font-weight: 750;
}

.settings-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.workspace-member-list,
.workspace-invitation-list {
  display: grid;
  gap: 9px;
}

.workspace-avatar-setting {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid #d5dde6;
  border-radius: 9px;
  background: #f7fafa;
}

.workspace-avatar-preview {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #087cff;
  color: #fff;
  font-size: 30px;
  font-weight: 950;
}

.workspace-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workspace-avatar-copy {
  display: grid;
  gap: 7px;
}

.workspace-avatar-copy p {
  margin: 0;
  color: #6d7b81;
  font-size: 13px;
}

.workspace-avatar-copy > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
}

.workspace-avatar-upload {
  cursor: pointer;
}

.workspace-avatar-copy small {
  color: #b0383e;
  font-weight: 750;
}

.workspace-member-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(110px, 150px) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #e0e7e8;
  border-radius: 8px;
  background: #fafcfc;
}

.workspace-member-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: #e6f1f1;
  color: #087cff;
  font-weight: 950;
}

.workspace-member-row div {
  min-width: 0;
}

.workspace-member-row strong,
.workspace-member-row small {
  display: block;
}

.workspace-member-row small {
  margin-top: 3px;
  overflow: hidden;
  color: #718092;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-role-select {
  min-height: 38px;
  border: 1px solid #ced9dc;
  border-radius: 6px;
  background: #fff;
  padding: 0 10px;
}

.workspace-role-label {
  color: #087cff;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.workspace-remove-member {
  border: 0;
  background: transparent;
  color: #ad353c;
  font-weight: 850;
  cursor: pointer;
}

.workspace-invite-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 18px;
  padding: 17px 18px;
  border: 1px solid #d9e3e5;
  border-radius: 8px;
  background: #f4f7fa;
}

.workspace-invite-code div {
  display: grid;
  gap: 5px;
}

.workspace-invite-code span {
  color: #728086;
  font-size: 12px;
}

.workspace-invite-code strong {
  color: #12383e;
  font-family: "MM3D Chinese Serif", Consolas, monospace;
  letter-spacing: 0.08em;
}

.workspace-invitation-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px;
  border-radius: 7px;
  background: #f4f7fa;
}

.workspace-invitation-list span {
  color: #617080;
  font-size: 13px;
}

.workspace-plan-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.workspace-plan-summary > div {
  padding: 16px;
  border-radius: 8px;
  background: #f4f7fa;
}

.workspace-plan-summary dt {
  color: #718092;
  font-size: 12px;
}

.workspace-plan-summary dd {
  margin: 7px 0 0;
  color: #16363c;
  font-size: 18px;
  font-weight: 950;
}

@media (max-width: 900px) {
  .settings-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 32px;
  }

  .settings-sidebar {
    position: static;
  }

  .settings-sidebar > nav {
    grid-template-columns: repeat(5, minmax(max-content, 1fr));
    overflow-x: auto;
  }

  .settings-workspace {
    display: none;
  }
}

@media (max-width: 680px) {
  .settings-shell {
    width: min(100% - 28px, 1180px);
  }

  .settings-topbar {
    padding: 0 16px;
  }

  .settings-topbar nav a {
    display: none;
  }

  .settings-grid,
  .settings-inline-form {
    grid-template-columns: 1fr;
  }

  .settings-card-head,
  .settings-action-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-action-row button {
    width: 100%;
  }

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

  .settings-current-email em {
    grid-column: 1;
  }

  .settings-event-list > div {
    display: grid;
  }

  .settings-event-list span {
    text-align: left;
  }

  .workspace-member-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .workspace-avatar-setting {
    grid-template-columns: 1fr;
  }

  .workspace-member-row > select,
  .workspace-member-row > button,
  .workspace-member-row > .workspace-role-label {
    grid-column: 2;
    text-align: left;
  }

  .workspace-invite-code,
  .workspace-invitation-list > div {
    align-items: stretch;
    flex-direction: column;
  }

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

/* Download center */
body.downloads-page {
  min-height: 100vh;
  background: #f4f7fa;
  color: #101820;
}

body.downloads-page::before,
body.downloads-page::after {
  display: none;
}

.downloads-topbar {
  min-height: 70px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: #071426;
  color: #fff;
}

.downloads-brand {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.downloads-brand span {
  margin-right: 8px;
  color: #ff9d24;
}

.downloads-topbar nav {
  display: flex;
  gap: 6px;
}

.downloads-topbar nav a {
  padding: 9px 11px;
  border-radius: 6px;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.downloads-topbar nav a:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.downloads-hero {
  min-height: 480px;
  padding: 76px max(24px, calc((100vw - 1160px) / 2));
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
  gap: 70px;
  align-items: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(224,172,62,.18), transparent 26%),
    linear-gradient(125deg, #071426, #0a2445);
  color: #fff;
}

.downloads-kicker {
  color: #ff9d24;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .16em;
}

.downloads-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(46px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.downloads-hero-copy > p {
  max-width: 580px;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 18px;
  line-height: 1.75;
}

.downloads-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 14px;
}

.downloads-primary-button,
.downloads-secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 20px;
  font-weight: 950;
  text-decoration: none;
}

.downloads-primary-button {
  background: #ff9d24;
  color: #312304;
}

.downloads-secondary-button {
  border: 1px solid rgba(255,255,255,.32);
  color: #fff;
}

.downloads-hero-copy > small {
  color: rgba(255,255,255,.62);
}

.downloads-window {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  background: #e8edef;
  box-shadow: 0 36px 90px rgba(0,0,0,.32);
  transform: perspective(900px) rotateY(-5deg) rotateX(2deg);
}

.downloads-window > div {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  background: #17272b;
}

.downloads-window i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #718086;
}

.downloads-window > div strong {
  margin-left: 8px;
  color: #dce5e7;
  font-size: 12px;
}

.downloads-window > section {
  position: relative;
  min-height: 300px;
  background: radial-gradient(circle, #60777c, #25373b 68%);
}

.downloads-model {
  position: absolute;
  inset: 54px 105px 58px 58px;
  border-radius: 48% 52% 35% 65%;
  background: linear-gradient(140deg, #d0a246, #704d18);
  box-shadow: inset -22px -30px 55px rgba(0,0,0,.3), 0 26px 44px rgba(0,0,0,.28);
  transform: rotate(-12deg);
}

.downloads-window aside {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(16,36,40,.88);
}

.downloads-window aside b { color: #6bd29f; font-size: 12px; }
.downloads-window aside em { color: #ccd7d9; font-size: 11px; font-style: normal; }

.downloads-release-shell,
.downloads-section {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.downloads-release-shell {
  margin-top: -44px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 20px;
  position: relative;
}

.downloads-release-card,
.downloads-notes-card {
  padding: 30px;
  border: 1px solid #d5dde6;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(20,33,38,.1);
}

.downloads-release-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.downloads-channel {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 5px;
  background: #fff2d3;
  color: #8a5d00;
  font-size: 11px;
  font-weight: 950;
}

.downloads-release-head h2,
.downloads-notes-card h2 {
  margin: 9px 0 5px;
  font-size: 24px;
}

.downloads-release-head p {
  margin: 0;
  color: #617080;
}

.downloads-release-head > strong {
  color: #087cff;
  font-size: 30px;
}

.downloads-release-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 25px 0;
}

.downloads-release-details div {
  padding: 13px 15px;
  border-radius: 7px;
  background: #f4f7fa;
}

.downloads-release-details dt { color: #718092; font-size: 11px; }
.downloads-release-details dd { margin: 5px 0 0; font-weight: 850; }
.downloads-release-details dd.warning { color: #9b6900; }

.downloads-checksum {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  padding: 13px 14px;
  border: 1px solid #d5dde6;
  border-radius: 7px;
}

.downloads-checksum span { color: #718092; font-size: 11px; font-weight: 900; }
.downloads-checksum code { overflow: hidden; color: #385159; font-size: 11px; text-overflow: ellipsis; }
.downloads-checksum button { border: 0; background: transparent; color: #087cff; font-weight: 900; cursor: pointer; }
.downloads-release-card > .downloads-primary-button { width: 100%; }

.downloads-notes-card ul {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding-left: 20px;
  color: #526268;
  line-height: 1.65;
}

.downloads-update-status {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 8px;
  background: #eef7f3;
  color: #2a624b;
}

.downloads-update-status span { font-size: 13px; line-height: 1.55; }

.downloads-section {
  padding: 86px 0 0;
}

.downloads-section > header span { color: #087cff; font-size: 12px; font-weight: 950; letter-spacing: .14em; }
.downloads-section > header h2 { margin: 8px 0; font-size: 34px; }
.downloads-section > header p { margin: 0; color: #617080; }

.downloads-requirement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-top: 28px;
}

.downloads-requirement-grid article {
  padding: 22px;
  border: 1px solid #d5dde6;
  border-radius: 9px;
  background: #fff;
}

.downloads-requirement-grid p { margin: 9px 0 0; color: #617080; line-height: 1.65; }

.downloads-install-steps {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.downloads-install-steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  padding: 24px;
  border-radius: 9px;
  background: #eef3f8;
}

.downloads-install-steps li > span { color: #087cff; font-weight: 950; }
.downloads-install-steps p { margin: 7px 0 0; color: #617080; line-height: 1.6; }

.downloads-history-list { display: grid; gap: 9px; margin-top: 26px; }
.downloads-history-list article { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 17px 20px; border: 1px solid #d5dde6; border-radius: 8px; background: #fff; }
.downloads-history-list article div { display: grid; gap: 3px; }
.downloads-history-list article div span { color: #9b6900; font-size: 10px; font-weight: 950; }
.downloads-history-list small { color: #718092; }
.downloads-history-list em { padding: 5px 8px; border-radius: 999px; background: #e8f5ee; color: #26704f; font-size: 11px; font-style: normal; font-weight: 900; }
.downloads-history-list a { color: #087cff; font-weight: 900; }
.downloads-footer { margin-top: 88px; padding: 28px; border-top: 1px solid #d5dde6; color: #718092; text-align: center; font-size: 13px; }

@media (max-width: 900px) {
  .downloads-hero { grid-template-columns: 1fr; }
  .downloads-product-visual { display: none; }
  .downloads-release-shell { grid-template-columns: 1fr; }
  .downloads-requirement-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .downloads-topbar { padding: 0 16px; }
  .downloads-topbar nav a:not(:last-child) { display: none; }
  .downloads-hero { padding: 58px 20px 86px; }
  .downloads-release-shell,.downloads-section { width: min(100% - 28px,1160px); }
  .downloads-release-details,.downloads-requirement-grid,.downloads-install-steps { grid-template-columns: 1fr; }
  .downloads-checksum { grid-template-columns: 1fr auto; }
  .downloads-checksum span { grid-column: 1 / -1; }
}

/* Support center */
body.support-page{min-height:100vh;background:#f4f7fa;color:#101820}body.support-page::before,body.support-page::after{display:none}
.support-topbar{min-height:70px;padding:0 max(24px,calc((100vw - 1160px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px;background:#071426;color:#fff}.support-brand{color:#fff;font-size:18px;font-weight:900;text-decoration:none}.support-brand span{margin-right:8px;color:#ff9d24}.support-topbar nav{display:flex;gap:6px}.support-topbar nav a{padding:9px 11px;border-radius:6px;color:rgba(255,255,255,.8);font-size:14px;font-weight:800;text-decoration:none}.support-topbar nav a:hover{background:rgba(255,255,255,.1);color:#fff}
.support-hero{padding:78px 24px 94px;background:linear-gradient(125deg,#071426,#0a2445);color:#fff;text-align:center}.support-kicker{color:#ff9d24;font-size:12px;font-weight:950;letter-spacing:.16em}.support-hero>.support-kicker{display:inline-block;transform:translateX(.08em)}.support-hero h1{margin:12px 0;font-size:clamp(44px,6vw,68px);letter-spacing:-.04em}.support-hero p{margin:0;color:rgba(255,255,255,.76);font-size:18px}.support-search{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;width:min(720px,100%);min-height:56px;margin:30px auto 0;padding:0 18px;border-radius:9px;background:#fff;color:#627178;box-shadow:0 18px 44px rgba(0,0,0,.22)}.support-search input{border:0;outline:0;font:inherit;font-size:16px}
.support-shell,.support-ticket-section,.support-ticket-history{width:min(1160px,calc(100% - 48px));margin:0 auto}.support-shell{display:grid;grid-template-columns:minmax(0,1fr)320px;gap:20px;margin-top:-44px;position:relative}.support-faq-panel,.support-contact-card,.support-ticket-section{padding:30px;border:1px solid #d5dde6;border-radius:13px;background:#fff;box-shadow:0 18px 48px rgba(20,33,38,.08)}.support-faq-panel header>span,.support-ticket-heading>span,.support-ticket-history header>span{color:#087cff;font-size:12px;font-weight:950;letter-spacing:.14em}.support-faq-panel h2,.support-contact-card h2,.support-ticket-heading h2,.support-ticket-history h2{margin:7px 0 10px;font-size:28px}.support-contact-card p,.support-ticket-heading p,.support-ticket-history header p{color:#617080;line-height:1.65}.support-contact-card>a{display:flex;min-height:44px;align-items:center;justify-content:center;margin:20px 0;border-radius:7px;background:#087cff;color:#fff;font-weight:900;text-decoration:none}.support-contact-card dl{display:grid;gap:10px;margin:0}.support-contact-card dl div{display:flex;justify-content:space-between;gap:12px;padding-top:10px;border-top:1px solid #d5dde6}.support-contact-card dt{color:#718092}.support-contact-card dd{margin:0;font-weight:850}
.support-category-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:22px 0}.support-category-tabs button{min-height:36px;border:1px solid #d5dfe1;border-radius:999px;background:#fff;padding:0 14px;color:#617080;font-weight:850;cursor:pointer}.support-category-tabs button.active{border-color:#087cff;background:#e9f3f3;color:#087cff}.support-faq-list{display:grid;gap:8px}.support-faq-list details{border:1px solid #dfe6e8;border-radius:8px;background:#fafcfc}.support-faq-list summary{padding:16px 18px;font-weight:850;cursor:pointer}.support-faq-list p{margin:0;padding:0 18px 18px;color:#617080;line-height:1.7}
.support-ticket-section{margin-top:70px}.support-ticket-form{display:grid;gap:18px;margin-top:28px}.support-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.support-attachment{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 18px;border:1px dashed #cbd8db;border-radius:8px;background:#f8fafa}.support-attachment p{margin:4px 0;color:#6c7a80;font-size:13px}.support-attachment small{color:#087cff}
.support-ticket-history{padding-top:76px}.support-ticket-list{display:grid;gap:9px;margin-top:25px}.support-ticket-list article{display:grid;grid-template-columns:1fr auto auto;gap:18px;align-items:center;padding:17px 20px;border:1px solid #d5dde6;border-radius:8px;background:#fff}.support-ticket-list article div{display:grid;gap:4px}.support-ticket-list article div span{color:#087cff;font-family:"MM3D Chinese Serif",Consolas,monospace;font-size:11px}.support-ticket-list small{color:#718092}.support-ticket-list em,.support-ticket-list b{padding:5px 9px;border-radius:999px;font-size:11px;font-style:normal}.support-ticket-list em{background:#f0f3f3;color:#617080}.support-ticket-list em.urgent,.support-ticket-list em.high{background:#fff0f1;color:#aa3037}.support-ticket-list b.open{background:#fff4da;color:#8c6100}.support-ticket-list b.in_progress{background:#eef3f8;color:#087cff}.support-ticket-list b.resolved{background:#e8f5ee;color:#26704f}.support-empty{padding:20px;color:#718092;text-align:center}.support-footer{margin-top:80px;padding:28px;border-top:1px solid #d5dde6;color:#718092;text-align:center;font-size:13px}
@media(max-width:800px){.support-shell{grid-template-columns:1fr}.support-form-grid{grid-template-columns:1fr}}@media(max-width:600px){.support-topbar{padding:0 16px}.support-topbar nav a:not(:last-child){display:none}.support-shell,.support-ticket-section,.support-ticket-history{width:min(100% - 28px,1160px)}.support-ticket-list article{grid-template-columns:1fr}.support-attachment{align-items:stretch;flex-direction:column}.support-attachment label{width:100%}}

/* Service status */
body.status-page{min-height:100vh;background:#f4f7fa;color:#101820}body.status-page::before,body.status-page::after{display:none}.status-topbar{min-height:70px;padding:0 max(24px,calc((100vw - 1040px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px;background:#071426;color:#fff}.status-brand{color:#fff;font-size:18px;font-weight:900;text-decoration:none}.status-brand span{margin-right:8px;color:#ff9d24}.status-topbar nav{display:flex;gap:6px}.status-topbar nav a{padding:9px 11px;border-radius:6px;color:rgba(255,255,255,.8);font-size:14px;font-weight:800;text-decoration:none}.status-topbar nav a:hover{background:rgba(255,255,255,.1);color:#fff}
.status-shell{width:min(1040px,calc(100% - 48px));margin:0 auto;padding:70px 0 90px}.status-heading{text-align:center}.status-heading>span,.status-components-section header>span,.status-incidents-section header>span{color:#087cff;font-size:12px;font-weight:950;letter-spacing:.15em}.status-heading h1{margin:10px 0 12px;font-size:clamp(42px,6vw,62px);letter-spacing:-.04em}.status-heading p,.status-incidents-section header p{margin:0;color:#69777d;font-size:17px}
.status-overall{display:grid;grid-template-columns:54px 1fr auto;gap:18px;align-items:center;margin-top:42px;padding:25px 28px;border:1px solid #c9dfd5;border-radius:12px;background:#edf8f3;color:#275e47}.status-overall.degraded{border-color:#ead9aa;background:#fff8e8;color:#795700}.status-overall-icon{display:grid;width:52px;height:52px;place-items:center;border-radius:50%;background:#d9efe3;font-size:23px;font-weight:950}.status-overall.degraded .status-overall-icon{background:#f5e6b8}.status-overall div{display:grid;gap:4px}.status-overall strong{font-size:20px}.status-overall p{margin:0}.status-overall time{color:#678077;font-size:12px;text-align:right}
.status-components-section,.status-incidents-section{padding-top:64px}.status-components-section h2,.status-incidents-section h2{margin:7px 0 0;font-size:30px}.status-component-list{display:grid;gap:8px;margin-top:24px}.status-component-list article{display:grid;grid-template-columns:14px 1fr auto;gap:14px;align-items:center;padding:17px 20px;border:1px solid #d5dde6;border-radius:8px;background:#fff}.status-component-list .status-dot{width:10px;height:10px;border-radius:50%}.status-dot.operational,.status-legend i.operational{background:#29a46e}.status-dot.degraded,.status-legend i.degraded{background:#ff9d24}.status-dot.partial_outage,.status-dot.major_outage,.status-legend i.outage{background:#c8464d}.status-component-list div{display:grid;gap:4px}.status-component-list small{color:#718092}.status-component-list em{padding:5px 9px;border-radius:999px;font-size:11px;font-style:normal;font-weight:900}.status-component-list em.operational{background:#e8f5ee;color:#26704f}.status-component-list em.degraded{background:#fff4da;color:#8c6100}.status-component-list em.partial_outage,.status-component-list em.major_outage{background:#fff0f1;color:#aa3037}
.status-legend{display:flex;flex-wrap:wrap;gap:22px;margin-top:16px;color:#617080;font-size:12px}.status-legend span{display:flex;align-items:center;gap:7px}.status-legend i{width:8px;height:8px;border-radius:50%}.status-incident-list{margin-top:24px}.status-incident-list>article{display:flex;justify-content:space-between;gap:20px;padding:18px;border:1px solid #d5dde6;border-radius:8px;background:#fff}.status-incident-list article div{display:grid;gap:5px}.status-incident-list span,.status-incident-list time{color:#718092;font-size:13px}.status-incident-list em{font-style:normal;font-weight:900}.status-no-incidents{display:grid;justify-items:center;gap:7px;padding:38px;border:1px solid #d5dde6;border-radius:10px;background:#fff;text-align:center}.status-no-incidents>span{display:grid;width:44px;height:44px;place-items:center;border-radius:50%;background:#e8f5ee;color:#26704f;font-size:20px;font-weight:950}.status-no-incidents p{margin:0;color:#718092}
.status-help{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:66px;padding:26px 28px;border-radius:11px;background:#123b41;color:#fff}.status-help p{margin:6px 0 0;color:rgba(255,255,255,.7)}.status-help a{display:inline-flex;min-height:42px;align-items:center;border-radius:7px;background:#ff9d24;padding:0 17px;color:#312304;font-weight:950;text-decoration:none}.status-footer{padding:28px;border-top:1px solid #d5dde6;color:#718092;text-align:center;font-size:13px}
@media(max-width:650px){.status-topbar{padding:0 16px}.status-topbar nav a:not(:last-child){display:none}.status-shell{width:min(100% - 28px,1040px);padding-top:48px}.status-overall{grid-template-columns:48px 1fr}.status-overall time{grid-column:2;text-align:left}.status-help{align-items:stretch;flex-direction:column}.status-help a{justify-content:center}}

/* Enterprise sales consultation */
body.sales-page{min-height:100vh;background:linear-gradient(125deg,#071426,#0a2445);color:#101820}body.sales-page::before,body.sales-page::after{display:none}.sales-topbar{min-height:70px;padding:0 max(24px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid rgba(255,255,255,.12);color:#fff}.sales-brand{color:#fff;font-size:18px;font-weight:900;text-decoration:none}.sales-brand span{margin-right:8px;color:#ff9d24}.sales-topbar nav{display:flex;gap:6px}.sales-topbar nav a{padding:9px 11px;border-radius:6px;color:rgba(255,255,255,.8);font-size:14px;font-weight:800;text-decoration:none}.sales-topbar nav a:hover{background:rgba(255,255,255,.1);color:#fff}
.sales-shell{width:min(1180px,calc(100% - 48px));margin:0 auto;padding:62px 0 90px;display:grid;grid-template-columns:minmax(0,.85fr) minmax(520px,1.15fr);gap:70px;align-items:start}.sales-intro{position:sticky;top:38px;color:#fff}.sales-kicker{color:#ff9d24;font-size:12px;font-weight:950;letter-spacing:.16em}.sales-intro h1{margin:13px 0 18px;font-size:clamp(44px,6vw,66px);line-height:1.04;letter-spacing:-.04em}.sales-intro>p{margin:0;color:rgba(255,255,255,.74);font-size:18px;line-height:1.75}.sales-capabilities{display:grid;gap:10px;margin:30px 0}.sales-capabilities article{display:grid;gap:4px;padding:15px 17px;border:1px solid rgba(255,255,255,.16);border-radius:8px;background:rgba(255,255,255,.07)}.sales-capabilities article span{color:rgba(255,255,255,.68);font-size:13px}.sales-response-note{padding:20px;border-left:3px solid #ff9d24;background:rgba(8,24,27,.25)}.sales-response-note ol{display:grid;gap:8px;margin:12px 0 0;padding-left:20px;color:rgba(255,255,255,.72)}
.sales-form-card{padding:clamp(25px,4vw,38px);border-radius:14px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.3)}.sales-form-card header>span{color:#087cff;font-size:12px;font-weight:950;letter-spacing:.14em}.sales-form-card header h2{margin:8px 0;font-size:30px}.sales-form-card header p{margin:0;color:#617080}.sales-form{display:grid;gap:17px;margin-top:26px}.sales-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.sales-consent{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;color:#617080;font-size:14px;line-height:1.6}.sales-consent input{width:18px;height:18px;margin-top:2px;accent-color:#087cff}.sales-consent a{margin-left:4px;color:#087cff;font-weight:850}.sales-form>button{width:100%;min-height:48px}.sales-success{display:grid;justify-items:center;gap:15px;padding:50px 20px;text-align:center}.sales-success>span{display:grid;width:64px;height:64px;place-items:center;border-radius:50%;background:#e8f5ee;color:#26704f;font-size:28px;font-weight:950}.sales-success h2,.sales-success p{margin:0}.sales-success p{color:#617080}.sales-success div{display:grid;gap:5px;margin:10px 0;padding:15px 22px;border-radius:8px;background:#f4f7fa}.sales-success div small{color:#718092}.sales-success div strong{font-family:"MM3D Chinese Serif",Consolas,monospace}.sales-success>a{color:#087cff;font-weight:900}
@media(max-width:960px){.sales-shell{grid-template-columns:1fr}.sales-intro{position:static}.sales-capabilities{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:620px){.sales-topbar{padding:0 16px}.sales-topbar nav a:not(:last-child){display:none}.sales-shell{width:min(100% - 28px,1180px);padding-top:42px}.sales-capabilities,.sales-form-grid{grid-template-columns:1fr}}

/* Error pages */
body.error-page{min-height:100vh;background:#f4f7fa;color:#101820}body.error-page::before,body.error-page::after{display:none}.error-topbar{min-height:70px;padding:0 max(24px,calc((100vw - 1100px)/2));display:flex;align-items:center;justify-content:space-between;background:#071426;color:#fff}.error-brand{color:#fff;font-size:18px;font-weight:900;text-decoration:none}.error-brand span{margin-right:8px;color:#ff9d24}.error-topbar>a:last-child{color:rgba(255,255,255,.8);font-size:14px;font-weight:850;text-decoration:none}.error-shell{width:min(1100px,calc(100% - 48px));min-height:calc(100vh - 70px);margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 430px;gap:75px;align-items:center;padding:60px 0}.error-kicker{color:#087cff;font-size:12px;font-weight:950;letter-spacing:.16em}.error-copy h1{margin:12px 0 14px;font-size:clamp(48px,7vw,76px);line-height:1.03;letter-spacing:-.045em}.error-copy>p{max-width:560px;margin:0;color:#69777d;font-size:18px;line-height:1.75}.error-actions{display:flex;flex-wrap:wrap;gap:10px;margin:30px 0 24px}.error-primary,.error-secondary{display:inline-flex;min-height:46px;align-items:center;justify-content:center;border-radius:7px;padding:0 19px;font-weight:950;text-decoration:none}.error-primary{background:#087cff;color:#fff}.error-secondary{border:1px solid #ccd8db;background:#fff;color:#214047}.error-help-links{display:flex;flex-wrap:wrap;gap:18px}.error-help-links a{color:#617080;font-size:13px;font-weight:800}.error-visual{position:relative;display:grid;min-height:390px;place-items:center;overflow:hidden;border-radius:28px;background:linear-gradient(145deg,#123b41,#0a2529);box-shadow:0 30px 80px rgba(20,33,38,.22)}.error-visual>strong{position:relative;z-index:2;color:#fff;font-size:128px;letter-spacing:-.08em}.error-visual>span{position:absolute;bottom:35px;color:#ff9d24;font-size:11px;font-weight:950;letter-spacing:.24em}.error-grid{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,1fr);opacity:.18}.error-grid i{border-right:1px solid #fff;border-bottom:1px solid #fff}.error-grid i:nth-child(3n){border-right:0}.error-grid i:nth-child(n+7){border-bottom:0}
@media(max-width:800px){.error-shell{grid-template-columns:1fr}.error-visual{display:none}}@media(max-width:520px){.error-topbar{padding:0 16px}.error-shell{width:min(100% - 28px,1100px);padding:46px 0}.error-actions{display:grid}.error-primary,.error-secondary{width:100%}}
.error-actions button,.error-help-links button{font:inherit;cursor:pointer}.error-help-links button{border:0;background:transparent;padding:0;color:#617080;font-size:13px;font-weight:800;text-decoration:underline}.server-error-visual{background:linear-gradient(145deg,#4a2528,#251416)}.maintenance-visual{background:linear-gradient(145deg,#4a3b19,#27200f)}.maintenance-visual>strong{letter-spacing:.12em}.forbidden-visual{background:linear-gradient(145deg,#28363e,#121d22)}.session-visual>strong{font-size:72px;letter-spacing:-.04em}.maintenance-window,.session-security-note{display:grid;gap:5px;margin-top:24px;padding:16px 18px;border-left:3px solid #ff9d24;background:#fff8e8}.maintenance-window span{color:#8b6713;font-size:11px;font-weight:900}.maintenance-window small{color:#776c50}.session-security-note{grid-template-columns:32px 1fr;border-left-color:#29a46e;background:#edf8f3}.session-security-note>span{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;background:#d8efe3;color:#26704f;font-weight:950}.session-security-note div{display:grid;gap:4px}.session-security-note small{color:#60776b}

/* Product homepage */
body.home-page{min-height:100vh;background:#f4f7fa;color:#101820}body.home-page::before,body.home-page::after{display:none}.home-page a{color:inherit}.home-nav{position:sticky;top:0;z-index:50;min-height:72px;padding:0 max(22px,calc((100vw - 1220px)/2));display:grid;grid-template-columns:1fr auto 1fr;gap:28px;align-items:center;border-bottom:1px solid rgba(255,255,255,.12);background:rgba(13,38,42,.96);color:#fff;backdrop-filter:blur(15px)}.home-brand{display:inline-flex;align-items:baseline;gap:8px;font-weight:900;text-decoration:none}.home-brand span{color:#ff9d24}.home-brand strong{font-size:18px}.home-nav>nav{display:flex;gap:4px}.home-nav>nav a,.home-nav-actions>a{padding:9px 11px;border-radius:6px;color:rgba(255,255,255,.8);font-size:14px;font-weight:800;text-decoration:none}.home-nav>nav a:hover,.home-nav-actions>a:hover{background:rgba(255,255,255,.09);color:#fff}.home-nav-actions{display:flex;justify-content:flex-end;gap:6px}.home-nav-actions>a.primary{background:#ff9d24;color:#302303}
.home-hero{min-height:690px;padding:86px max(24px,calc((100vw - 1220px)/2)) 105px;display:grid;grid-template-columns:minmax(430px,.88fr) minmax(580px,1.12fr);gap:64px;align-items:center;overflow:hidden;background:radial-gradient(circle at 84% 18%,rgba(224,172,62,.17),transparent 25%),linear-gradient(125deg,#0c2529,#12626a);color:#fff}.home-kicker{color:#ff9d24;font-size:12px;font-weight:950;letter-spacing:.18em}.home-hero h1{margin:14px 0 19px;font-size:clamp(52px,6.2vw,78px);line-height:1.04;letter-spacing:-.048em}.home-hero-copy>p{max-width:620px;margin:0;color:rgba(255,255,255,.75);font-size:18px;line-height:1.75}.home-hero-actions{display:flex;gap:10px;margin:30px 0 18px}.home-primary-cta,.home-secondary-cta{display:inline-flex;min-height:48px;align-items:center;justify-content:center;border-radius:7px;padding:0 20px;font-weight:950;text-decoration:none}.home-primary-cta{background:#ff9d24;color:#302303!important}.home-secondary-cta{border:1px solid rgba(255,255,255,.3);color:#fff}.home-hero-links{display:flex;gap:20px}.home-hero-links a{color:rgba(255,255,255,.68);font-size:13px;font-weight:800}
.home-product-stage{position:relative}.home-slicer-window{overflow:hidden;border:1px solid rgba(255,255,255,.22);border-radius:13px;background:#dfe5e7;box-shadow:0 42px 100px rgba(0,0,0,.36);transform:perspective(1100px) rotateY(-4deg) rotateX(1.5deg)}.home-window-bar{height:40px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;background:#18292d;color:#dce5e7;font-size:12px}.home-window-bar div{display:flex;gap:6px}.home-window-bar i{width:9px;height:9px;border-radius:50%;background:#69797e}.home-window-toolbar{height:47px;padding:0 14px;display:flex;align-items:center;gap:18px;border-bottom:1px solid #bfc9cc;background:#eff3f4;color:#52646a;font-size:11px}.home-window-toolbar b{color:#123c43}.home-window-toolbar em{margin-left:auto;color:#207951;font-style:normal;font-weight:900}.home-window-body{display:grid;grid-template-columns:145px 1fr 170px;min-height:350px}.home-window-body>aside{display:flex;flex-direction:column;gap:5px;padding:15px 11px;background:#f2f5f5;color:#69777c;font-size:10px}.home-window-body>aside strong{margin-bottom:7px;color:#25393e;font-size:12px}.home-window-body>aside span{padding:7px;border-radius:4px}.home-window-body>aside span.active{background:#dfecee;color:#0a2445;font-weight:850}.home-viewport{position:relative;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle,#60777c,#26383c 72%)}.home-viewport>span{position:absolute;bottom:12px;color:rgba(255,255,255,.4);font-size:9px;letter-spacing:.15em}.home-model-object{width:200px;height:165px;border-radius:46% 54% 38% 62%;background:linear-gradient(140deg,#d6ad54,#75501b);box-shadow:inset -28px -32px 60px rgba(0,0,0,.34),0 30px 48px rgba(0,0,0,.3);transform:rotate(-13deg)}.home-window-body>aside.properties{background:#eef3f8}.home-window-body dl{display:grid;gap:5px;margin:0}.home-window-body dl div{display:flex;justify-content:space-between;padding:6px 5px;border-bottom:1px solid #d7dfe1}.home-window-body dd{margin:0;color:#273b40;font-weight:800}.home-window-body button{margin-top:auto;min-height:34px;border:0;border-radius:5px;background:#087cff;color:#fff;font-size:10px;font-weight:900}.home-window-status{height:29px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;background:#1b2a2e;color:#aebcc0;font-size:9px}.home-stage-status{position:absolute;right:-12px;bottom:-27px;display:grid;grid-template-columns:10px 1fr;gap:3px 9px;padding:14px 17px;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:#10292d;color:#fff;box-shadow:0 17px 38px rgba(0,0,0,.28)}.home-stage-status i{grid-row:1/3;width:9px;height:9px;margin-top:3px;border-radius:50%;background:#42bd82}.home-stage-status span{font-size:10px;color:#aebfc2}.home-stage-status strong{font-size:12px}
.home-section{width:min(1180px,calc(100% - 48px));margin:0 auto;padding:105px 0}.home-section-heading{max-width:730px}.home-section-heading.centered{margin:0 auto;text-align:center}.home-section-heading>span{color:#087cff;font-size:12px;font-weight:950;letter-spacing:.16em}.home-section-heading h2{margin:10px 0 13px;font-size:clamp(36px,5vw,54px);line-height:1.1;letter-spacing:-.035em}.home-section-heading p{margin:0;color:#617080;font-size:17px;line-height:1.7}
.home-workflow-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:42px 0 0;padding:0;list-style:none}.home-workflow-list li{position:relative;padding:22px 18px;border-top:3px solid #087cff;background:#fff;box-shadow:0 10px 30px rgba(20,33,38,.05)}.home-workflow-list li:not(:last-child)::after{content:"→";position:absolute;right:-10px;top:50%;z-index:2;color:#b2bec1;font-weight:900}.home-workflow-list li>span{color:#087cff;font-size:12px;font-weight:950}.home-workflow-list strong{display:block;margin:14px 0 7px}.home-workflow-list p{margin:0;color:#617080;font-size:13px;line-height:1.6}.home-file-explain{display:grid;grid-template-columns:1fr auto 1fr;gap:25px;align-items:center;margin-top:26px;padding:26px;border-radius:10px;background:#eef3f8}.home-file-explain article{display:grid;grid-template-columns:auto 1fr;gap:4px 14px}.home-file-explain article>span{grid-row:1/3;padding:10px;border-radius:7px;background:#0a2445;color:#fff;font-family:"MM3D Chinese Serif",Consolas,monospace;font-weight:900}.home-file-explain article p{grid-column:2;margin:0;color:#617080;font-size:13px}.home-file-explain>i{color:#087cff;font-size:24px;font-style:normal}
.home-capabilities{width:100%;padding:105px max(24px,calc((100vw - 1180px)/2));background:#fff}.home-capability-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:42px}.home-capability-grid article{padding:30px;border:1px solid #d5dde6;border-radius:10px}.home-capability-grid article>span{color:#d09a28;font-size:12px;font-weight:950}.home-capability-grid h3{margin:17px 0 10px;font-size:22px}.home-capability-grid p{color:#617080;line-height:1.65}.home-capability-grid ul{display:grid;gap:8px;margin:20px 0 0;padding:17px 0 0;list-style:none;border-top:1px solid #e1e7e8}.home-capability-grid li{color:#43545a;font-size:14px}.home-capability-grid li::before{content:"✓";margin-right:8px;color:#087cff;font-weight:950}
.home-module-layout{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:14px;margin-top:38px}.home-module-layout article{min-height:300px;padding:28px;display:flex;flex-direction:column;justify-content:space-between;border-radius:11px;background:#e8eeee}.home-module-layout article.featured{background:linear-gradient(145deg,#0a2445,#0b292d);color:#fff}.home-module-layout article div>span{color:#c99427;font-size:11px;font-weight:950}.home-module-layout h3{margin:12px 0 10px;font-size:27px}.home-module-layout p{margin:0;color:#617080;line-height:1.7}.home-module-layout .featured p{color:rgba(255,255,255,.68)}.home-module-layout article>strong,.home-module-layout article>a{color:#087cff;font-size:12px;font-weight:950}.home-module-layout .featured>strong{color:#ff9d24}
.home-cloud-section{padding:105px max(24px,calc((100vw - 1180px)/2));display:grid;grid-template-columns:.8fr 1.2fr;gap:75px;align-items:center;background:#071426;color:#fff}.home-cloud-copy h2{margin:13px 0 16px;font-size:clamp(38px,5vw,58px);line-height:1.08}.home-cloud-copy p{color:rgba(255,255,255,.7);line-height:1.75}.home-cloud-copy>a{color:#ff9d24;font-weight:900}.home-cloud-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.home-cloud-grid article{display:grid;grid-template-columns:34px 1fr;gap:4px 12px;padding:18px;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:rgba(255,255,255,.05)}.home-cloud-grid article>span{grid-row:1/3;color:#ff9d24;font-size:11px;font-weight:950}.home-cloud-grid small{color:rgba(255,255,255,.55)}
.home-audience-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:38px}.home-audience-grid article{padding:25px;border-bottom:3px solid #087cff;background:#fff}.home-audience-grid strong{font-size:18px}.home-audience-grid p{margin:10px 0 0;color:#617080;line-height:1.65}.home-plan-bridge{display:flex;align-items:center;justify-content:space-between;gap:60px;padding:50px}.home-plan-bridge>div:first-child span{color:#087cff;font-size:12px;font-weight:950}.home-plan-bridge h2{margin:9px 0;font-size:34px}.home-plan-bridge p{margin:0;color:#617080}.home-plan-bridge>div:last-child{display:grid;gap:13px;justify-items:center}.home-plan-bridge>div:last-child>a:last-child{color:#087cff;font-size:13px;font-weight:850}
.home-enterprise{position:relative;overflow:hidden;padding:64px max(24px,calc((100vw - 1180px)/2));display:grid;grid-template-columns:.9fr 1.1fr;gap:54px;align-items:center;border-top:1px solid rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.1);background:radial-gradient(circle at 82% 50%,rgba(28,128,137,.22),transparent 32%),#0a2445;color:#fff}.home-enterprise::after{content:"";position:absolute;right:-90px;bottom:-150px;width:330px;height:330px;border:1px solid rgba(255,255,255,.07);border-radius:50%}.home-enterprise>div{position:relative;z-index:1}.home-enterprise>div:first-child>span{color:#ff9d24;font-size:12px;font-weight:950;letter-spacing:.16em}.home-enterprise h2{margin:12px 0 0;font-size:clamp(38px,4.2vw,52px);line-height:1.08}.home-enterprise>div:last-child{display:grid;grid-template-columns:auto 1fr;gap:16px 24px;align-items:center;padding-left:48px;border-left:1px solid rgba(255,255,255,.18)}.home-enterprise p{grid-column:1/-1;max-width:580px;margin:0;color:rgba(255,255,255,.72);font-size:16px;line-height:1.7}.home-enterprise a:first-of-type{display:inline-flex;min-height:46px;align-items:center;border-radius:7px;background:#ff9d24;padding:0 18px;color:#302303;font-weight:950;text-decoration:none}.home-enterprise a:last-child{color:rgba(255,255,255,.78);font-size:14px;font-weight:850}
.home-resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:35px}.home-resource-grid a{display:grid;gap:7px;padding:25px;border:1px solid #d5dde6;border-radius:9px;background:#fff;text-decoration:none}.home-resource-grid span{color:#087cff;font-size:11px;font-weight:950}.home-resource-grid strong{font-size:19px}.home-resource-grid small{color:#718092}.home-final-cta{padding:85px 24px;background:#eef3f8;text-align:center}.home-final-cta>span{color:#087cff;font-size:12px;font-weight:950;letter-spacing:.16em}.home-final-cta h2{margin:10px 0;font-size:clamp(38px,5vw,54px)}.home-final-cta p{margin:0;color:#617080}.home-final-cta div{display:flex;justify-content:center;gap:10px;margin-top:27px}.home-final-cta a{display:inline-flex;min-height:47px;align-items:center;border-radius:7px;padding:0 20px;font-weight:950;text-decoration:none}.home-final-cta a:first-child{background:#087cff;color:#fff}.home-final-cta a:last-child{border:1px solid #c7d4d7;background:#fff;color:#214047}
.home-footer{padding:60px max(24px,calc((100vw - 1180px)/2)) 25px;background:#071426;color:#fff}.home-footer>div:first-child p{max-width:360px;color:rgba(255,255,255,.58)}.home-footer>nav{display:grid;grid-template-columns:repeat(4,1fr);gap:35px;margin-top:40px;padding-top:35px;border-top:1px solid rgba(255,255,255,.12)}.home-footer>nav section{display:grid;align-content:start;gap:9px}.home-footer h3{margin:0 0 6px;font-size:13px}.home-footer nav a{color:rgba(255,255,255,.6);font-size:13px;text-decoration:none}.home-footer-bottom{display:flex;justify-content:space-between;margin-top:45px;padding-top:20px;border-top:1px solid rgba(255,255,255,.1);color:rgba(255,255,255,.42);font-size:12px}
@media(max-width:1050px){.home-nav{grid-template-columns:1fr auto}.home-nav>nav{display:none}.home-hero{grid-template-columns:1fr;padding-top:70px}.home-product-stage{max-width:800px}.home-cloud-section{grid-template-columns:1fr}.home-workflow-list{grid-template-columns:1fr 1fr}.home-workflow-list li::after{display:none}.home-module-layout{grid-template-columns:1fr 1fr}.home-module-layout article.featured{grid-column:1/-1}.home-audience-grid{grid-template-columns:1fr 1fr}}@media(max-width:700px){.home-nav{padding:0 16px}.home-nav-actions>a:first-child{display:none}.home-hero{min-height:0;padding:58px 20px 80px}.home-product-stage{display:none}.home-hero h1{font-size:46px}.home-section{width:min(100% - 28px,1180px);padding:75px 0}.home-capabilities{width:100%;padding:75px 14px}.home-workflow-list,.home-capability-grid,.home-module-layout,.home-cloud-grid,.home-audience-grid,.home-resource-grid{grid-template-columns:1fr}.home-module-layout article.featured{grid-column:auto}.home-file-explain{grid-template-columns:1fr}.home-file-explain>i{transform:rotate(90deg);justify-self:center}.home-plan-bridge,.home-enterprise{display:grid;grid-template-columns:1fr;padding:45px 22px}.home-final-cta div{display:grid}.home-footer>nav{grid-template-columns:1fr 1fr}}

/* Homepage typography correction: prevent orphaned single-character lines */
.home-hero{grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:56px}
.home-hero-copy{min-width:0}
.home-hero h1{font-size:clamp(44px,4.7vw,62px);line-height:1.08;letter-spacing:-.042em}
.home-title-lines{display:grid;justify-items:start}
.home-title-lines>span{display:block;white-space:nowrap}
.home-section-heading h2{font-size:clamp(34px,4.3vw,52px);line-height:1.12;text-wrap:balance}
.home-page h2:not(.home-title-lines),.home-page h3{text-wrap:balance}
.home-cloud-copy h2,.home-enterprise h2{font-size:clamp(36px,4.5vw,54px);line-height:1.1}
@media(max-width:1050px){
  .home-hero-copy{max-width:760px}
}
@media(max-width:700px){
  .home-hero h1{font-size:clamp(30px,9vw,42px);line-height:1.12}
  .home-title-lines>span{white-space:normal;text-wrap:balance}
  .home-section-heading h2,.home-cloud-copy h2,.home-enterprise h2{font-size:clamp(30px,8.5vw,42px)}
}
.home-workflow-list{grid-template-columns:repeat(4,minmax(0,1fr))}
.home-module-layout.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.home-module-layout.compact article{
  position:relative;
  min-height:280px;
  overflow:hidden;
  padding:34px;
  border:1px solid #d7e2e3;
  border-radius:16px;
  background:linear-gradient(145deg,#fff 0%,#f3f7f6 100%);
  color:#101820;
  box-shadow:0 18px 45px rgba(20,54,59,.08);
}
.home-module-layout.compact article::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:5px;
  background:linear-gradient(90deg,#087cff,#4ca1a7);
}
.home-module-layout.compact article::after{
  content:"";
  position:absolute;
  right:-55px;
  bottom:-80px;
  width:210px;
  height:210px;
  border:1px solid rgba(8, 124, 255,.12);
  border-radius:50%;
  box-shadow:0 0 0 28px rgba(8, 124, 255,.035),0 0 0 58px rgba(8, 124, 255,.025);
}
.home-module-layout.compact article div,.home-module-layout.compact article>strong{position:relative;z-index:1}
.home-module-layout.compact article div>span{color:#087cff}
.home-module-layout.compact article h3{font-size:30px}
.home-module-layout.compact article p{max-width:430px}
.home-module-layout.compact article>strong{color:#087cff}
.home-module-marketplace-link{display:inline-flex;margin-top:20px;color:#087cff!important;font-size:14px;font-weight:900;text-decoration:none}
@media(max-width:700px){
  .home-workflow-list,.home-module-layout.compact{grid-template-columns:1fr}
}

/* Homepage visual alignment with pricing */
.home-hero{
  position:relative;
  isolation:isolate;
  min-height:590px;
  padding-top:68px;
  padding-bottom:78px;
  grid-template-columns:minmax(0,.9fr) minmax(520px,1.1fr);
  gap:58px;
  background:
    radial-gradient(circle at 18% 8%,rgba(216,162,53,.18),transparent 27%),
    radial-gradient(circle at 86% 14%,rgba(8, 124, 255,.17),transparent 31%),
    #f4f7f6;
  color:#101820;
}
.home-hero::before{
  content:"";
  position:absolute;
  z-index:-2;
  inset:0;
  pointer-events:none;
  opacity:.68;
  background:
    repeating-radial-gradient(ellipse at 88% 58%,transparent 0 43px,rgba(8, 124, 255,.24) 44px 45px,transparent 46px 78px),
    repeating-linear-gradient(0deg,transparent 0 39px,rgba(8, 124, 255,.11) 40px 41px),
    repeating-linear-gradient(90deg,transparent 0 39px,rgba(8, 124, 255,.095) 40px 41px);
  mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.38) 18%,#000 44%,#000 100%);
}
.home-hero::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  pointer-events:none;
  opacity:.9;
  background:
    radial-gradient(circle at 74% 36%,rgba(224,172,62,.52) 0 3px,rgba(224,172,62,.2) 4px 11px,transparent 21px),
    linear-gradient(116deg,transparent 0 62%,rgba(224,172,62,.07) 62.15%,rgba(224,172,62,.3) 62.35%,rgba(224,172,62,.07) 62.55%,transparent 62.7%);
}
.home-hero .home-kicker{color:#087cff}
.home-hero h1{
  position:relative;
  max-width:650px;
  margin:0 0 28px;
  padding-bottom:17px;
  color:#12272b;
  background:linear-gradient(105deg,#071426 0%,#164b51 52%,#15808a 100%);
  background-clip:text;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  font-family: var(--mm3d-body-sans);
  font-size:clamp(46px,4.5vw,60px);
  font-weight:800;
  line-height:1.05;
  letter-spacing:-.045em;
}
.home-hero h1::after{
  content:"";
  position:absolute;
  bottom:0;
  left:2px;
  width:54px;
  height:4px;
  border-radius:99px;
  background:#ff9d24;
}
.home-hero-copy>p{
  max-width:570px;
  color:#607077;
  font-size:17px;
}
.home-hero-copy>p strong{
  display:block;
  margin-bottom:7px;
  color:#0a1b31;
  font-size:22px;
  line-height:1.35;
}
.home-hero .home-primary-cta{
  background:#ff9d24;
  color:#2f2306!important;
}
.home-hero .home-secondary-cta{
  border-color:#c7d3d6;
  background:#fff;
  color:#0a1b31;
}
.home-hero-links a{color:#087cff}
.home-product-stage{
  width:100%;
  max-width:650px;
  justify-self:end;
}
.home-slicer-window{
  border-color:#aebdc1;
  border-radius:11px;
  box-shadow:0 28px 65px rgba(25,50,55,.18);
  transform:none;
}
.home-window-body{min-height:315px}
.home-model-object{width:175px;height:145px}
.home-stage-status{display:none}
@media(max-width:1050px){
  .home-hero{grid-template-columns:1fr}
  .home-product-stage{justify-self:start}
}
@media(max-width:700px){
  .home-hero{padding-top:52px;padding-bottom:64px}
  .home-hero h1{font-size:clamp(34px,9vw,43px)}
}

/* Homepage workflow timeline */
.home-workflow-list{position:relative;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:48px;padding:0 10px}
.home-workflow-list::before{content:"";position:absolute;top:25px;left:34px;right:calc(25% - 19px);height:2px;background:linear-gradient(90deg,#087cff 0 62%,#ff9d24 62% 82%,#087cff 82% 100%)}
.home-workflow-list li{position:relative;padding:66px 24px 20px;border:0;background:transparent;box-shadow:none;text-align:left}
.home-workflow-list li:not(:last-child)::after{display:none}
.home-workflow-list li>span{position:absolute;top:0;left:24px;z-index:2;display:grid;width:52px;height:52px;place-items:center;border:6px solid #f4f7fa;border-radius:50%;background:#087cff;color:#fff;font-size:12px;box-shadow:0 0 0 1px rgba(8, 124, 255,.2);transform:translateX(-50%)}
.home-workflow-list li:nth-child(3)>span{background:#ff9d24;color:#322404;box-shadow:0 0 0 1px rgba(216,162,53,.25)}
.home-workflow-list li div{display:grid;align-content:start;gap:8px}
.home-workflow-list li em{color:#087cff;font-size:10px;font-style:normal;font-weight:950;letter-spacing:.14em}
.home-workflow-list li:nth-child(3) em{color:#a36d00}
.home-workflow-list strong{margin:0;font-size:18px}
.home-workflow-list p{min-height:44px;margin:0;font-size:13px;line-height:1.65}
.home-workflow-list small{display:inline-flex;width:max-content;margin-top:3px;padding:5px 8px;border-radius:5px;background:#e8f1f1;color:#315d63;font-size:10px;font-weight:850}
.home-workflow-list li:nth-child(3) small{background:#fff2d3;color:#865b00}
@media(max-width:700px){
  .home-workflow-list{display:grid;gap:8px;padding:0 0 0 58px}
  .home-workflow-list::before{top:24px;bottom:30px;left:25px;right:auto;width:2px;height:auto;background:linear-gradient(#087cff 0 62%,#ff9d24 62% 82%,#087cff 82% 100%)}
  .home-workflow-list li{padding:8px 0 26px}
  .home-workflow-list li>span{top:0;left:-58px;transform:none}
  .home-workflow-list p{min-height:0}
  .home-enterprise>div:last-child{grid-template-columns:1fr;padding:26px 0 0;border-top:1px solid rgba(255,255,255,.18);border-left:0}
  .home-enterprise p{grid-column:auto}
}

.pricing-page a {
  color: inherit;
}

/* Homepage signed-in account menu */
.home-user-menu{position:relative}.home-user-menu>button{min-height:42px;display:flex;align-items:center;gap:9px;border:1px solid rgba(255,255,255,.18);border-radius:8px;padding:5px 12px 5px 6px;background:rgba(255,255,255,.08);color:#fff;font:inherit;cursor:pointer}.home-user-menu>button>span{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;background:#ff9d24;color:#302303;font-size:12px;font-weight:950}.home-user-menu>button>strong{max-width:150px;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.home-user-dropdown{position:absolute;top:calc(100% + 10px);right:0;width:230px;padding:10px;display:grid;z-index:70;border:1px solid #d5e0e2;border-radius:10px;background:#fff;color:#19363b;box-shadow:0 20px 48px rgba(8,29,33,.2)}.home-user-dropdown>span{overflow:hidden;padding:8px 10px 12px;border-bottom:1px solid #e4eaeb;color:#6a797e;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.home-user-dropdown>a,.home-user-dropdown>button{padding:10px;border:0;border-radius:6px;background:transparent;color:#25474c;font:inherit;font-size:13px;font-weight:800;text-align:left;text-decoration:none;cursor:pointer}.home-user-dropdown>a:hover,.home-user-dropdown>button:hover{background:#edf4f4;color:#087cff}.home-user-dropdown>button{margin-top:4px;border-top:1px solid #e4eaeb;border-radius:0;color:#a6383d}.hidden{display:none!important}

.pricing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(120deg, rgba(13, 31, 34, 0.96), rgba(17, 91, 99, 0.96)),
    rgba(13, 31, 34, 0.96);
  color: #fff;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(9, 20, 24, 0.16);
}

.pricing-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mm3d-display-serif);
  font-weight: 900;
  text-decoration: none;
}

.pricing-brand span {
  color: var(--pricing-gold);
  letter-spacing: 0;
}

.pricing-brand strong {
  color: #fff;
  font-size: 18px;
}

.pricing-nav nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.pricing-nav nav a,
.pricing-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.pricing-nav nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.pricing-nav-cta {
  justify-self: end;
  background: #fff;
  color: var(--pricing-teal-dark);
}

.pricing-hero,
.pricing-section,
.pricing-final-cta {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.pricing-hero {
  padding: 92px 0 56px;
  text-align: center;
}

.pricing-kicker,
.section-heading span,
.pricing-final-cta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(8, 124, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 124, 255, 0.08);
  color: var(--pricing-teal);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.pricing-hero h1 {
  max-width: 860px;
  margin: 22px auto 16px;
  color: var(--pricing-ink);
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.pricing-hero > p,
.section-heading p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--pricing-muted);
  font-size: 18px;
  line-height: 1.7;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
  text-align: left;
}

.pricing-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 16px;
  min-height: 460px;
  border: 1px solid var(--pricing-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    #fff;
  padding: 26px;
  box-shadow: 0 24px 70px rgba(14, 30, 34, 0.08);
}

.pricing-card.featured,
.pricing-card.pro {
  border-color: rgba(216, 162, 53, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 250, 234, 0.98), rgba(255, 255, 255, 0.92)),
    #fff;
}

.pricing-card.pro {
  box-shadow: 0 28px 80px rgba(216, 162, 53, 0.18);
}

.enterprise-card {
  background:
    linear-gradient(145deg, rgba(13, 31, 34, 0.96), rgba(8, 124, 255, 0.92)),
    var(--pricing-teal-dark);
  color: #fff;
}

.enterprise-card p,
.enterprise-card .plan-audience,
.enterprise-card li,
.enterprise-card .plan-price small {
  color: rgba(255, 255, 255, 0.72);
}

.plan-audience {
  color: var(--pricing-muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.plan-badge {
  position: absolute;
  top: -14px;
  right: 22px;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  background: var(--pricing-gold);
  color: #3b2600;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.pricing-card h2 {
  margin: 0;
  color: inherit;
  font-size: 30px;
  line-height: 1.1;
}

.pricing-card p {
  margin: 0;
  color: var(--pricing-muted);
  font-size: 15px;
  line-height: 1.6;
}

.plan-price {
  color: inherit;
  font-size: 31px;
  line-height: 1;
}

.plan-price small {
  color: var(--pricing-muted);
  font-size: 14px;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  color: var(--pricing-ink);
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.45;
}

.pricing-card li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pricing-gold);
}

.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pricing-teal), #0f5f68);
  color: #fff;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}

.plan-cta.secondary {
  background: #eef5f4;
  color: var(--pricing-teal-dark);
}

.plan-cta.enterprise {
  background: #fff;
  color: var(--pricing-teal-dark);
}

.pricing-section {
  padding: 72px 0;
}

.section-heading {
  margin-bottom: 30px;
  text-align: center;
}

.section-heading h2 {
  margin: 16px 0 10px;
  color: var(--pricing-ink);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
}

.comparison-shell {
  overflow-x: auto;
  border: 1px solid var(--pricing-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(14, 30, 34, 0.08);
}

.pricing-comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.pricing-comparison-table th,
.pricing-comparison-table td {
  border-bottom: 1px solid var(--pricing-line);
  padding: 18px 20px;
  text-align: center;
  font-size: 15px;
}

.pricing-comparison-table th:first-child,
.pricing-comparison-table td:first-child {
  text-align: left;
  font-weight: 900;
}

.pricing-comparison-table th {
  background: rgba(8, 124, 255, 0.08);
  color: var(--pricing-teal-dark);
  font-size: 14px;
  font-weight: 900;
}

.pricing-comparison-table tr:last-child td {
  border-bottom: 0;
}

.credits-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 22px;
  align-items: stretch;
}

.credits-explain-card,
.credits-flow {
  border: 1px solid var(--pricing-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(14, 30, 34, 0.08);
}

.credits-explain-card {
  display: grid;
  gap: 18px;
  padding: 30px;
}

.credits-explain-card strong {
  font-size: 30px;
  line-height: 1.16;
}

.credits-explain-card p,
.credits-explain-card em {
  margin: 0;
  color: var(--pricing-muted);
  font-size: 16px;
  line-height: 1.65;
}

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

.credits-allowance span {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(8, 124, 255, 0.14);
  border-radius: 14px;
  background: rgba(8, 124, 255, 0.06);
  padding: 16px;
  color: var(--pricing-teal-dark);
  font-weight: 900;
}

.credits-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.credits-flow li {
  position: relative;
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 230px;
  padding: 24px;
  border-right: 1px solid var(--pricing-line);
}

.credits-flow li:last-child {
  border-right: 0;
}

.credits-flow li:not(:last-child)::after {
  content: "↓";
  position: absolute;
  right: -9px;
  top: 50%;
  z-index: 1;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--pricing-gold);
  color: #382500;
  font-weight: 900;
  transform: translateY(-50%) rotate(-90deg);
}

.credits-flow span {
  color: var(--pricing-teal);
  font-size: 13px;
  font-weight: 900;
}

.credits-flow strong {
  font-size: 20px;
  line-height: 1.25;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid var(--pricing-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  padding: 18px 20px;
  box-shadow: 0 18px 44px rgba(14, 30, 34, 0.05);
}

.faq-list summary {
  cursor: pointer;
  color: var(--pricing-ink);
  font-size: 18px;
  font-weight: 900;
}

.faq-list p {
  margin: 14px 0 0;
  color: var(--pricing-muted);
  line-height: 1.65;
}

.pricing-final-cta {
  margin-bottom: 64px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 0%, rgba(216, 162, 53, 0.32), transparent 30%),
    linear-gradient(135deg, #071426, #087cff);
  color: #fff;
  padding: clamp(36px, 7vw, 72px);
  text-align: center;
  box-shadow: 0 28px 90px rgba(7, 22, 26, 0.22);
}

.pricing-final-cta span {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.pricing-final-cta h2 {
  max-width: 780px;
  margin: 18px auto 28px;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.final-cta-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--pricing-teal-dark);
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}

.final-cta-actions a.enterprise {
  background: var(--pricing-gold);
  color: #3b2600;
}

@media (max-width: 1040px) {
  .pricing-nav {
    grid-template-columns: 1fr auto;
  }

  .pricing-nav nav {
    display: none;
  }

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

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

@media (max-width: 720px) {
  .pricing-nav {
    min-height: auto;
    padding: 14px 16px;
  }

  .pricing-brand {
    display: grid;
    gap: 2px;
  }

  .pricing-nav-cta {
    padding: 0 12px;
  }

  .pricing-hero,
  .pricing-section,
  .pricing-final-cta {
    width: min(100% - 24px, 1180px);
  }

  .pricing-hero {
    padding-top: 54px;
  }

  .pricing-hero h1 {
    font-size: 42px;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    min-height: auto;
  }

  .credits-allowance,
  .credits-flow {
    grid-template-columns: 1fr;
  }

  .credits-flow li {
    min-height: 130px;
    border-right: 0;
    border-bottom: 1px solid var(--pricing-line);
  }

  .credits-flow li:last-child {
    border-bottom: 0;
  }

  .credits-flow li:not(:last-child)::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -13px;
    transform: translateX(-50%);
  }

  .final-cta-actions {
    display: grid;
  }
}

/* Admin operations center rebuild — frontend-only, API-contract safe */
body.admin-page.admin-rebuilt{--admin-ink:#101820;--admin-deep:#071426;--admin-deeper:#030b17;--admin-teal:#087cff;--admin-gold:#ff9d24;--admin-bg:#eef3f2;--admin-line:#d5dde6;min-height:100vh;background:var(--admin-bg);color:var(--admin-ink);font-family: var(--mm3d-body-sans);}
body.admin-page.admin-rebuilt .shell{width:100%;max-width:none;min-height:100vh;margin:0;padding:0}
body.admin-page.admin-rebuilt .shell:has(#adminGate:not(.hidden)){position:fixed;inset:0;width:100vw;height:100vh;display:grid;place-items:center}
body.admin-page.admin-rebuilt .auth-panel{width:min(920px,calc(100% - 40px));min-height:460px;margin:0 auto;padding:54px;display:grid;grid-template-columns:1.05fr .95fr;gap:60px;align-items:center;border:1px solid rgba(8, 124, 255,.16);border-radius:18px;background:linear-gradient(135deg,#fff 0%,#f4f8f7 100%);box-shadow:0 35px 90px rgba(12,46,51,.15)}
body.admin-page.admin-rebuilt #adminGate:not(.hidden){position:fixed!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;max-width:calc(100vw - 80px)!important;margin:0!important;transform:translate(-50%,-50%)!important}
body.admin-page.admin-rebuilt .admin-gate-kicker,body.admin-page.admin-rebuilt .admin-page-kicker{color:var(--admin-teal);font-size:11px;font-weight:950;letter-spacing:.16em}
body.admin-page.admin-rebuilt .auth-panel h1{margin:12px 0 16px;font-size:clamp(38px,5vw,58px);line-height:1.04;letter-spacing:-.04em}
body.admin-page.admin-rebuilt .auth-panel h1>span{display:block;white-space:nowrap}
body.admin-page.admin-rebuilt .auth-panel p{max-width:520px;color:#66767b;line-height:1.8}
body.admin-page.admin-rebuilt .auth-panel form{padding:28px;border:1px solid var(--admin-line);border-radius:14px;background:#fff}
body.admin-page.admin-rebuilt .auth-panel button{min-height:46px;border:0;border-radius:8px;background:var(--admin-teal);color:#fff;font-weight:900}
body.admin-page.admin-rebuilt .admin-console:not(.hidden){min-height:100vh!important;display:grid!important;grid-template-columns:268px minmax(0,1fr)!important;grid-template-rows:72px minmax(0,1fr)!important;background:var(--admin-bg)}
body.admin-page.admin-rebuilt .billing-standalone-topbar{position:sticky!important;top:0;z-index:80;grid-column:1/-1;grid-row:1;min-height:72px;padding:0 24px;display:grid!important;grid-template-columns:auto minmax(260px,620px) auto auto;gap:20px;align-items:center;border:0;border-bottom:1px solid rgba(255,255,255,.12);background:rgba(12,43,48,.98);color:#fff;box-shadow:0 8px 24px rgba(9,34,38,.12)}
.admin-topbar-brand{display:grid;grid-template-columns:auto auto;gap:0 8px;align-items:baseline;white-space:nowrap}.admin-topbar-brand>span{color:var(--admin-gold);font-weight:950}.admin-topbar-brand>strong{font-size:16px}.admin-topbar-brand>small{grid-column:1/-1;color:rgba(255,255,255,.48);font-size:10px;letter-spacing:.08em}
.admin-global-search{min-width:0;height:40px;display:flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.15);border-radius:8px;padding:0 13px;background:rgba(255,255,255,.08)}.admin-global-search>span{color:rgba(255,255,255,.55);font-size:18px}.admin-global-search input{width:100%;border:0;outline:0;background:transparent;color:#fff;font:inherit;font-size:13px}.admin-global-search input::placeholder{color:rgba(255,255,255,.48)}
.admin-runtime-context{display:flex;gap:6px;align-items:center}.admin-runtime-badge{display:inline-flex;height:28px;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.14);border-radius:99px;padding:0 9px;background:rgba(255,255,255,.07);color:rgba(255,255,255,.78);font-size:9px;font-weight:900;letter-spacing:.08em;white-space:nowrap}.admin-runtime-badge.environment{border-color:rgba(221,167,47,.4);color:#f2c55e}.admin-runtime-badge.healthy i{width:6px;height:6px;border-radius:50%;background:#51c894;box-shadow:0 0 0 3px rgba(81,200,148,.12)}
body.admin-page.admin-rebuilt .admin-operator-pill{display:flex!important;align-items:center;gap:8px;padding:5px 8px;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:rgba(255,255,255,.06)}body.admin-page.admin-rebuilt .admin-operator-pill .user-avatar{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;background:var(--admin-gold);color:#332605;font-size:11px;font-weight:950}.admin-operator-pill>span:last-child{display:grid}.admin-operator-pill b{max-width:150px;overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.admin-operator-pill small{color:rgba(255,255,255,.5);font-size:9px}
body.admin-page.admin-rebuilt .admin-sidebar{position:sticky!important;top:72px;grid-column:1;grid-row:2;width:auto!important;height:calc(100vh - 72px);padding:24px 16px 18px;display:flex;flex-direction:column;overflow-y:auto;border:0;background:linear-gradient(180deg,var(--admin-deep),var(--admin-deeper));color:#fff}
body.admin-page.admin-rebuilt .admin-sidebar-brand{min-height:auto;margin:0 4px 18px;padding:0 0 18px;display:flex;align-items:center;gap:11px;border-bottom:1px solid rgba(255,255,255,.11);background:transparent;color:#fff}.admin-sidebar-mark{display:grid;width:38px;height:38px;place-items:center;border-radius:9px;background:var(--admin-gold);color:#332605;font-size:12px;font-weight:950}.admin-sidebar-brand>span:last-child{display:grid}.admin-sidebar-brand strong{font-size:14px}.admin-sidebar-brand small{color:rgba(255,255,255,.5);font-size:10px}
body.admin-page.admin-rebuilt .admin-sidebar-session{margin:0 4px 14px;padding:10px 12px;border:1px solid rgba(255,255,255,.09);border-radius:8px;background:rgba(255,255,255,.04);color:rgba(255,255,255,.55);font-size:9px}
body.admin-page.admin-rebuilt .admin-sidebar-tools{display:grid;gap:7px;margin:0 4px 14px}.admin-nav-group-label{margin:14px 11px 6px;color:rgba(255,255,255,.35);font-size:9px;font-weight:900;letter-spacing:.13em}
body.admin-page.admin-rebuilt .admin-nav{width:100%;min-height:43px;margin:2px 0;display:grid;grid-template-columns:29px 1fr;align-items:center;gap:8px;border:0;border-radius:8px;padding:0 11px;background:transparent;color:rgba(255,255,255,.66);font:inherit;font-size:12px;font-weight:800;text-align:left;cursor:pointer}body.admin-page.admin-rebuilt .admin-nav:hover{background:rgba(255,255,255,.07);color:#fff}body.admin-page.admin-rebuilt .admin-nav.active{background:rgba(34,145,154,.25);color:#fff;box-shadow:inset 3px 0 var(--admin-gold)}body.admin-page.admin-rebuilt .admin-nav-icon{display:grid;width:24px;height:24px;place-items:center;border:1px solid rgba(255,255,255,.14);border-radius:6px;color:rgba(255,255,255,.55);font-size:8px;letter-spacing:.04em}body.admin-page.admin-rebuilt .admin-nav.active .admin-nav-icon{border-color:rgba(221,167,47,.45);color:#f0bd51}
body.admin-page.admin-rebuilt .admin-sidebar-footer{margin-top:auto;padding-top:18px}body.admin-page.admin-rebuilt .admin-sidebar-footer .danger{width:100%;min-height:40px;border:1px solid rgba(226,87,92,.35);border-radius:7px;background:rgba(173,48,53,.16);color:#ffc9cb}
body.admin-page.admin-rebuilt .admin-content{grid-column:2;grid-row:2;min-width:0;width:auto!important;max-width:none!important;padding:42px clamp(24px,4vw,58px) 70px!important;background:radial-gradient(circle at 90% 0,rgba(8, 124, 255,.08),transparent 25%),var(--admin-bg)}
body.admin-page.admin-rebuilt .admin-view{max-width:1440px;margin:0 auto}body.admin-page.admin-rebuilt .admin-page-title{margin:0 0 28px;padding:0 0 22px;border-bottom:1px solid var(--admin-line)}body.admin-page.admin-rebuilt .admin-page-title h1{margin:7px 0 8px;font-size:clamp(30px,3vw,42px);line-height:1.05;letter-spacing:-.035em}body.admin-page.admin-rebuilt .admin-page-title p{max-width:820px;margin:0;color:#65757a;font-size:14px;line-height:1.7}
body.admin-page.admin-rebuilt .panel{border:1px solid var(--admin-line);border-radius:12px;background:#fff;box-shadow:0 10px 30px rgba(20,54,59,.05)}body.admin-page.admin-rebuilt .admin-prod-panel,body.admin-page.admin-rebuilt .admin-test-panel{padding:24px}body.admin-page.admin-rebuilt .panel h2{letter-spacing:-.02em}
body.admin-page.admin-rebuilt .admin-status-summary{border:1px solid var(--admin-line);border-radius:10px;background:linear-gradient(135deg,#fff,#f6f9f8);box-shadow:none}body.admin-page.admin-rebuilt .admin-monitor-grid,body.admin-page.admin-rebuilt .columns{gap:16px}
body.admin-page.admin-rebuilt .list>article,body.admin-page.admin-rebuilt .list>div{border-color:#e1e8e8;border-radius:8px;background:#ffffff}body.admin-page.admin-rebuilt table{border-collapse:separate;border-spacing:0}body.admin-page.admin-rebuilt th{background:#eef3f8;color:#426066;font-size:10px;letter-spacing:.06em}body.admin-page.admin-rebuilt td{border-color:#e2e9e9}
body.admin-page.admin-rebuilt .upgrade-action,body.admin-page.admin-rebuilt .billing-section-tabs,body.admin-page.admin-rebuilt .admin-billing-hero,body.admin-page.admin-rebuilt .billing-modules-panel,body.admin-page.admin-rebuilt .admin-credit-packs,body.admin-page.admin-rebuilt .admin-plan-comparison,body.admin-page.admin-rebuilt .mm3d-site-footer{display:none!important}
body.admin-page.admin-rebuilt #adminViewBilling>.admin-page-title{margin-bottom:22px}body.admin-page.admin-rebuilt .admin-relocated-panel{display:grid;gap:16px;margin-top:18px}body.admin-page.admin-rebuilt .admin-relocated-panel>.panel{margin:0}
.admin-system-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px}.admin-system-card{min-height:190px;display:flex;flex-direction:column}.admin-system-card>span,.admin-section-heading span{color:var(--admin-teal);font-size:9px;font-weight:950;letter-spacing:.12em}.admin-system-card h2{margin:12px 0 6px}.admin-system-card>strong{font-size:21px}.admin-system-card p{margin:auto 0 0;color:#6b7a7f;font-size:12px;line-height:1.65}.admin-section-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.admin-section-heading h2{margin:6px 0 16px}.admin-contract-table{display:grid;margin-top:4px;border:1px solid var(--admin-line);border-radius:9px;overflow:hidden}.admin-contract-table>div{display:grid;grid-template-columns:1fr 1.6fr .8fr .8fr;gap:12px;align-items:center;min-height:48px;padding:9px 14px;border-bottom:1px solid var(--admin-line);font-size:12px}.admin-contract-table>div:last-child{border-bottom:0}.admin-contract-table>.head{background:#eef3f8;color:#52686d;font-size:9px;font-weight:900;letter-spacing:.07em}.admin-contract-table em{font-style:normal;color:#8b6d28}.admin-contract-table em.ok{color:#247554}.admin-search-hidden{display:none!important}
body.admin-page.admin-rebuilt #adminViewInternal .admin-test-panel{border-style:dashed;background:#fffdf7}body.admin-page.admin-rebuilt #adminViewInternal .admin-scope-badge.test{background:#fff0ca;color:#8d650f}
@media(max-width:1180px){body.admin-page.admin-rebuilt .billing-standalone-topbar{grid-template-columns:auto 1fr auto}.admin-runtime-context{display:none}.admin-system-grid{grid-template-columns:1fr}.admin-contract-table>div{grid-template-columns:1fr 1fr}.admin-contract-table>.head span:nth-child(n+3),.admin-contract-table>div em{display:none}}
@media(max-width:820px){body.admin-page.admin-rebuilt .admin-console:not(.hidden){grid-template-columns:1fr!important;grid-template-rows:auto auto 1fr!important}body.admin-page.admin-rebuilt .billing-standalone-topbar{position:relative!important;grid-column:1;grid-template-columns:1fr auto;padding:14px 16px}.admin-global-search{grid-column:1/-1;grid-row:2}.admin-topbar-brand small,.admin-operator-pill small{display:none}body.admin-page.admin-rebuilt .admin-sidebar{position:relative!important;top:0;grid-column:1;grid-row:2;width:100%!important;height:auto;display:grid;grid-template-columns:repeat(2,1fr);gap:4px;padding:12px}.admin-sidebar-brand,.admin-sidebar-session,.admin-sidebar-tools,.admin-nav-group-label,.admin-sidebar-footer{display:none!important}body.admin-page.admin-rebuilt .admin-nav{margin:0}body.admin-page.admin-rebuilt .admin-content{grid-column:1;grid-row:3;padding:28px 16px 55px!important}body.admin-page.admin-rebuilt .auth-panel{grid-template-columns:1fr;gap:24px;padding:30px}}

body.pricing-page .pricing-hero .pricing-kicker {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

body.pricing-page .nowrap {
  white-space: nowrap;
}

body.pricing-page .pricing-comparison-table {
  table-layout: fixed !important;
}

body.pricing-page .pricing-comparison-table th:first-child,
body.pricing-page .pricing-comparison-table td:first-child {
  width: 28% !important;
}

body.pricing-page .pricing-comparison-table th:not(:first-child),
body.pricing-page .pricing-comparison-table td:not(:first-child) {
  width: 18% !important;
  text-align: center !important;
  vertical-align: middle !important;
}

body.pricing-page .pricing-comparison-table td:first-child {
  text-align: left !important;
}

body.pricing-page .pricing-comparison-table .comparison-band td {
  text-align: center !important;
}

/* Create Account V1 */
body.account-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(14, 32, 35, 0.88), rgba(8, 124, 255, 0.72)),
    url("assets/laser-processing-bg.png") center / cover no-repeat fixed;
  color: #101820;
  font-family: var(--mm3d-body-sans);
}

body.account-page::before,
body.account-page::after {
  display: none;
}

.account-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(380px, 520px);
  gap: clamp(28px, 5vw, 72px);
  width: min(1120px, calc(100% - 48px));
  min-height: 100vh;
  align-items: center;
  margin: 0 auto;
  padding: 24px 0;
}

.account-intro {
  display: grid;
  gap: 24px;
  color: #fff;
}

.account-brand {
  display: inline-flex;
  width: fit-content;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.account-brand::before {
  content: "MM3D";
  color: #ff9d24;
  margin-right: 12px;
}

.account-brand::after {
  content: "Slicer Cloud";
  color: #fff;
}

.account-brand {
  font-size: 0;
}

.account-brand::before,
.account-brand::after {
  font-size: 18px;
}

.account-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

body.account-page .account-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 42px;
  margin: 0 0 6px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

body.account-page .account-home-btn svg {
  flex: 0 0 auto;
  display: block;
}

body.account-page .account-home-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  body.account-page .account-home-btn:hover {
    background: rgba(255, 255, 255, 0.22);
  }
}

.account-intro h1 {
  max-width: 560px;
  margin: 14px 0 10px;
  color: #fff;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.account-intro p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.75;
}

.account-steps {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.7);
}

.account-steps li.active {
  border-color: rgba(215, 161, 46, 0.65);
  background: rgba(215, 161, 46, 0.14);
  color: #fff;
}

.account-steps span {
  color: #ff9d24;
  font-weight: 950;
}

.account-steps strong {
  font-size: 16px;
}

.account-card {
  border: 1px solid rgba(217, 225, 228, 0.92);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 100%, rgba(215, 161, 46, 0.16), transparent 34%),
    radial-gradient(circle at 88% 92%, rgba(8, 124, 255, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.96);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 28px 80px rgba(6, 18, 21, 0.24);
}

.account-card form {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
  color: #223037;
  font-weight: 850;
}

.password-field:has(> em) {
  grid-template-columns: auto 1fr;
}

.password-field:has(> em) > span {
  grid-column: 1;
}

.password-field:has(> em) > em {
  grid-column: 2;
}

.password-field:has(> em) > .password-input,
.password-field:has(> em) > .field-error {
  grid-column: 1 / -1;
}

body.account-page .account-card .form-field > span::before {
  content: "*";
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  margin-right: 7px;
  border-radius: 50%;
  background: rgba(215, 161, 46, 0.18);
  color: #ff9d24;
  font-size: 14px;
  line-height: 1;
  vertical-align: 1px;
}

body.account-page .account-card.login-card .form-field > span::before,
body.account-page .account-card.forgot-password-card .form-field > span::before,
body.account-page .account-card.reset-password-card .form-field > span::before {
  content: none;
  display: none;
}

.form-field input,
.form-field select,
.password-input {
  width: 100%;
}

.form-field input,
.form-field select {
  min-height: 42px;
  border: 1px solid #c7d1dc;
  border-radius: 6px;
  background: #fff;
  color: #101820;
  padding: 0 13px;
  font: inherit;
}

.form-field input:focus,
.form-field select:focus {
  outline: 2px solid rgba(8, 124, 255, 0.18);
  border-color: #087cff;
}

.form-field input.invalid,
.form-field select.invalid {
  border-color: #bd393f;
}

.password-input {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid #c7d1dc;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.password-input:focus-within {
  outline: 2px solid rgba(8, 124, 255, 0.18);
  border-color: #087cff;
}

.password-input input {
  border: 0;
  border-radius: 0;
}

.password-input input:focus {
  outline: 0;
}

.password-toggle {
  min-width: 64px;
  border: 0;
  border-left: 1px solid #c7d1dc;
  background: #f4f7fa;
  color: #0a1b31;
  font-weight: 850;
  cursor: pointer;
}

.form-field em {
  color: #6a767c;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  justify-self: end;
}

body.account-page .field-error:empty {
  display: none;
}

.field-error {
  min-height: 14px;
  color: #bd393f;
  font-size: 13px;
  font-weight: 760;
}

.terms-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: #324256;
  font-size: 15px;
  line-height: 1.55;
}

.terms-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #087cff;
}

.terms-row a,
.account-switch a,
.account-secondary-action {
  color: #087cff;
  font-weight: 900;
}

.signin-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #324256;
  font-size: 15px;
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 850;
}

.remember-row input {
  width: 18px;
  height: 18px;
  accent-color: #087cff;
}

.signin-options a,
.signin-inline-action {
  color: #087cff;
  font-weight: 900;
}

.signin-inline-action {
  display: inline-flex;
  margin-left: 12px;
}

.terms-error {
  display: block;
  margin-top: -12px;
}

.account-submit,
.account-secondary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 950;
  text-decoration: none;
}

.account-submit {
  border: 0;
  background: #087cff;
  color: #fff;
  cursor: pointer;
}

.account-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.account-secondary-action {
  border: 1px solid #c7d1dc;
  background: #fff;
}

.account-switch {
  margin: 0;
  color: #617080;
  text-align: center;
}

.form-alert {
  border: 1px solid rgba(8, 124, 255, 0.18);
  border-radius: 6px;
  background: #eef8f4;
  color: #0a1b31;
  padding: 12px 14px;
  font-weight: 850;
}

.form-alert.error {
  border-color: rgba(189, 57, 63, 0.28);
  background: #fff0f1;
  color: #9c252b;
}

.register-order-summary {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid #c67a12;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffb13b 0%, #ff9d24 55%, #e88912 100%);
  color: #1a1408;
  box-shadow: 0 10px 28px rgba(232, 137, 18, 0.28);
}

.register-order-summary > span {
  color: #6b3a00;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.register-order-summary strong {
  color: #14181d;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.25;
}

.register-order-summary small {
  color: rgba(26, 20, 8, 0.82);
  line-height: 1.55;
}

.verify-shell {
  grid-template-columns: minmax(320px, 0.92fr) minmax(380px, 500px);
}

.verify-card {
  display: grid;
  gap: 18px;
  text-align: left;
}

.verify-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 124, 255, 0.12);
  color: #087cff;
  font-size: 24px;
  font-weight: 950;
}

.verify-card[data-state="loading"] .verify-icon {
  background: rgba(215, 161, 46, 0.16);
  color: #9a6c0b;
}

.verify-card[data-state="success"] .verify-icon {
  background: rgba(8, 124, 255, 0.12);
  color: #087cff;
}

.verify-card[data-state="error"] .verify-icon,
.verify-card[data-state="missing"] .verify-icon {
  background: rgba(189, 57, 63, 0.12);
  color: #bd393f;
}

.verify-card h2 {
  margin: 0;
  color: #101820;
  font-size: 24px;
}

.verify-card strong {
  color: #087cff;
  font-size: 20px;
}

.verify-card p {
  margin: 0;
  color: #617080;
  line-height: 1.75;
}

.forgot-password-card,
.reset-password-card {
  min-height: 0;
}

.forgot-password-success {
  display: grid;
  gap: 18px;
}

.forgot-password-success.hidden {
  display: none;
}

.forgot-password-success h2 {
  margin: 0;
  color: #101820;
  font-size: 24px;
}

.forgot-password-success p {
  margin: 0;
  color: #617080;
  line-height: 1.75;
}

.reset-password-card .verify-icon {
  background: rgba(189, 57, 63, 0.12);
  color: #bd393f;
}

.reset-password-card #resetPasswordSuccess .verify-icon {
  background: rgba(8, 124, 255, 0.12);
  color: #087cff;
}

.workspace-setup-shell {
  position: relative;
  display: grid;
  gap: 24px;
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 36px 0;
  align-content: center;
}

.workspace-back-link {
  position: absolute;
  top: 24px;
  left: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.workspace-back-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.workspace-back-link:focus-visible,
.account-submit:focus-visible,
.account-secondary-action:focus-visible {
  outline: 3px solid #f4bd3f;
  outline-offset: 3px;
}

.workspace-setup-header {
  display: grid;
  gap: 14px;
  color: #fff;
  text-align: center;
}

.workspace-setup-header .account-brand,
.workspace-setup-header .account-kicker {
  justify-self: center;
}

.workspace-setup-header .account-brand {
  margin-bottom: 8px;
}

.workspace-setup-header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
}

.workspace-setup-header p {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.75;
}

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

.workspace-option-card {
  display: grid;
  min-height: 390px;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  border: 1px solid rgba(217, 225, 228, 0.92);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 100%, rgba(215, 161, 46, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.96);
  padding: 24px;
  box-shadow: 0 28px 80px rgba(6, 18, 21, 0.22);
}

.workspace-option-card.join-option-card {
  border-color: rgba(8, 124, 255, 0.34);
  background:
    radial-gradient(circle at 100% 100%, rgba(8, 124, 255, 0.12), transparent 36%),
    rgba(247, 252, 252, 0.97);
}

.workspace-option-card.join-option-card .workspace-option-icon {
  background: rgba(8, 124, 255, 0.18);
}

.workspace-option-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workspace-option-tag {
  border: 1px solid rgba(8, 124, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 124, 255, 0.08);
  color: #087cff;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.workspace-option-note {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.workspace-option-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 124, 255, 0.12);
  color: #087cff;
  font-weight: 950;
}

.workspace-option-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 901px) and (max-height: 900px) {
  .workspace-setup-shell {
    gap: 14px;
    padding: 18px 0 30px;
  }

  .workspace-setup-header {
    gap: 10px;
  }

  .workspace-option-card {
    min-height: 350px;
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

.workspace-option-card h2,
.workspace-form-panel h2 {
  margin: 14px 0 8px;
  color: #101820;
  font-size: 24px;
}

.workspace-option-card p,
.workspace-form-panel p {
  margin: 0;
  color: #617080;
  line-height: 1.7;
}

.workspace-option-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: #324256;
  list-style: none;
}

.workspace-option-card li {
  position: relative;
  padding-left: 22px;
  line-height: 1.55;
}

.workspace-option-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #087cff;
  font-weight: 950;
}

.workspace-form-panel {
  width: min(760px, 100%);
  justify-self: center;
}

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

.workspace-panel-head h2 {
  margin-top: 0;
}

#workspaceStatusPanel {
  width: min(560px, 100%);
  justify-self: center;
}

#workspaceStatusPanel .verify-icon {
  background: rgba(8, 124, 255, 0.12);
  color: #087cff;
}

#workspaceStatusPanel .verify-icon:has(+ h2) {
  background: rgba(8, 124, 255, 0.12);
}

.workspace-dashboard-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.workspace-dashboard-card {
  width: min(920px, 100%);
}

.workspace-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.workspace-dashboard-head h1 {
  margin: 18px 0 10px;
  color: #101820;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.workspace-dashboard-head p {
  margin: 0;
  color: #617080;
  font-weight: 700;
  line-height: 1.7;
}

.workspace-dashboard-logout {
  border: 0;
  border-radius: 8px;
  background: #b83b3f;
  color: #fff;
  font: inherit;
  font-weight: 900;
  padding: 14px 22px;
  cursor: pointer;
}

.workspace-dashboard-logout:disabled {
  opacity: 0.7;
  cursor: wait;
}

.workspace-dashboard-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.workspace-dashboard-settings {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid #cbd8db;
  border-radius: 8px;
  background: #fff;
  padding: 0 16px;
  color: #087cff;
  font-weight: 900;
  text-decoration: none;
}

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

.workspace-dashboard-grid div {
  border: 1px solid #d2dde0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

.workspace-dashboard-grid dt {
  margin-bottom: 8px;
  color: #617080;
  font-size: 14px;
  font-weight: 800;
}

.workspace-dashboard-grid dd {
  margin: 0;
  color: #101820;
  font-size: 22px;
  font-weight: 900;
}

.verify-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
}

@media (max-width: 900px) {
  .account-shell,
  .verify-shell {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 620px);
    padding: 32px 0;
  }

  .account-intro {
    gap: 22px;
  }

  .account-intro h1 {
    font-size: 42px;
  }

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

  .signin-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-setup-shell {
    width: min(100% - 28px, 720px);
    padding: 32px 0;
  }

  .workspace-back-link {
    position: static;
    justify-self: start;
    margin-bottom: -12px;
  }

  .workspace-option-grid {
    grid-template-columns: 1fr;
  }

  .workspace-option-card {
    min-height: 0;
  }

  .workspace-panel-head {
    display: grid;
  }
}

body.admin-page::before {
  background:
    linear-gradient(180deg, rgba(9, 16, 18, 0.38), rgba(9, 16, 18, 0.72)),
    url("assets/laser-processing-bg.png") center / cover no-repeat;
}

body.admin-page::after {
  background: rgba(0, 0, 0, 0.18);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 68px;
  border-bottom: 1px solid rgba(215, 161, 46, 0.32);
  background:
    radial-gradient(circle at 18% 0%, rgba(215, 161, 46, 0.3), transparent 34%),
    linear-gradient(120deg, #071426 0%, #17363b 45%, #087cff 100%),
    linear-gradient(90deg, rgba(215, 161, 46, 0.18), rgba(8, 124, 255, 0.18));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 16px;
}

.topbar-product-menu,
.topbar-company-status,
.module-center {
  position: relative;
}

.topbar-menu-button,
.module-menu-button,
.topbar-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-height: 38px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  padding: 0 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1;
  vertical-align: middle;
}

.topbar-menu-button {
  font-size: 20px;
  font-weight: 900;
}

.topbar-menu-button:hover,
.module-menu-button:hover,
.topbar-tool-button:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.topbar-company-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topbar-welcome {
  color: #fff;
  font-size: 16px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-page .topbar {
  border-bottom-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.topbar-admin-entry {
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.front-user-pill,
.billing-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(6, 31, 35, 0.58);
  padding: 5px 12px 5px 6px;
  color: #fff;
  backdrop-filter: blur(10px);
}

.front-user-pill span:not(.user-avatar),
.billing-user-pill span:not(.user-avatar) {
  display: grid;
  line-height: 1.15;
}

.front-user-pill b,
.billing-user-pill b {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.front-user-pill small,
.billing-user-pill small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 760;
}

.user-avatar {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #087cff, #ff9d24);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(7, 19, 22, 0.18);
}

.topbar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  z-index: 30;
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  padding: 10px;
  box-shadow: 0 18px 44px rgba(10, 18, 22, 0.18);
}

.topbar-product-menu:hover .topbar-dropdown,
.topbar-product-menu:focus-within .topbar-dropdown,
.topbar-company-status:hover .topbar-dropdown,
.topbar-company-status:focus-within .topbar-dropdown,
.module-center:hover .topbar-dropdown,
.module-center:focus-within .topbar-dropdown,
.download-center:hover .topbar-dropdown,
.download-center:focus-within .topbar-dropdown {
  display: grid;
  gap: 8px;
}

.product-dropdown,
.cloud-dropdown {
  left: 0;
  width: 340px;
}

.module-dropdown {
  right: 0;
  width: 280px;
}

.download-center {
  position: relative;
}

.download-dropdown {
  right: 0;
  width: min(420px, calc(100vw - 32px));
}

.slcx-download-panel {
  display: grid;
  gap: 8px;
  min-width: 280px;
  border-radius: 6px;
  color: #101820;
}

.slcx-download-panel > strong {
  color: #101820;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.slcx-download-panel > span {
  color: #53636a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.slcx-download-panel .item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
}

.slcx-download-panel .item strong,
.slcx-download-panel .item span {
  grid-column: 1;
  color: #101820;
}

.slcx-download-panel .item span {
  color: #586870;
}

.slcx-download-link {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  border-radius: 999px;
  background: #eef7f2;
  color: #1f6f4d;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.slcx-download-link:hover {
  background: #dff1e8;
}

.topbar-dropdown-row,
.module-menu-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  padding: 9px 10px;
}

.topbar-row-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: rgba(8, 124, 255, 0.12);
  color: #087cff;
  font-size: 16px;
  font-weight: 900;
}

.topbar-row-main {
  display: grid;
  gap: 2px;
  min-width: 0;
  align-content: center;
  line-height: 1.25;
}

.topbar-row-main strong {
  color: #101820;
  font-size: 16px;
  font-weight: 900;
  text-align: left;
}

.topbar-row-main small {
  color: #4d5c63;
  font-size: 12px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.account-dropdown-row .topbar-row-main {
  gap: 1px;
}

.topbar-dropdown-row span,
.module-menu-item span {
  color: var(--muted);
  font-size: 13px;
}

.topbar-dropdown-row strong,
.module-menu-item strong {
  color: #101820;
  font-size: 16px;
  font-weight: 900;
}

.topbar-dropdown-row .metric-action,
.module-upsell {
  justify-self: start;
  margin-top: 0;
}

.topbar-dropdown-row .metric-action {
  justify-self: end;
  white-space: nowrap;
}

.product-dropdown .metric-action {
  border: 1px solid rgba(193, 131, 13, 0.45);
  background: linear-gradient(135deg, #ffd96a, #e7a92f);
  color: #3f2a00;
  box-shadow: 0 8px 18px rgba(214, 154, 43, 0.2);
}

.product-dropdown .metric-action:hover {
  background: linear-gradient(135deg, #ffe38a, #d99a22);
  color: #2f1e00;
}

.product-dropdown #latestReleaseLink.metric-action {
  border-color: rgba(23, 107, 135, 0.35);
  background: linear-gradient(135deg, #20849b, #087cff);
  color: #fff;
}

.product-dropdown #latestReleaseLink.metric-action:hover {
  background: linear-gradient(135deg, #2a98b3, #10556d);
  color: #fff;
}

.module-menu-item.disabled {
  background: #f3f5f6;
  opacity: 0.72;
}

.module-upsell {
  height: 28px;
  min-height: 28px;
  padding: 0 10px;
  font-size: 13px;
}

.language-picker {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}

.language-picker select {
  width: auto;
  min-width: 128px;
  height: 38px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.96);
  font-size: 15px;
  font-weight: 720;
}

.topbar strong {
  margin-right: 0;
}

.topbar span,
p,
label,
.metric span {
  color: var(--muted);
}

.topbar .topbar-welcome {
  color: #fff;
}

.topbar .topbar-brand > span,
.topbar .language-picker span {
  color: rgba(255, 255, 255, 0.78);
}

.topbar strong,
.topbar .topbar-menu-button {
  color: #fff;
}

.notification-center {
  position: relative;
}

.notification-bell {
  position: relative;
  width: 40px;
  min-height: 34px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(241, 196, 81, 0.65);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #0a1b31;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(7, 19, 22, 0.14);
}

.bell-icon {
  display: grid;
  place-items: center;
  color: #0a1b31;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.notification-bell:hover {
  border-color: #f1c451;
  background: #fff8df;
  color: #0a1b31;
}

.notification-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #b33d3d;
  color: #fff !important;
  padding: 0 5px;
  font-size: 11px;
  line-height: 18px;
  font-weight: 800;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: none;
  width: min(420px, calc(100vw - 32px));
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  padding: 10px;
  box-shadow: 0 18px 44px rgba(10, 18, 22, 0.18);
}

.notification-center:hover .notification-dropdown,
.notification-center:focus-within .notification-dropdown {
  display: grid;
  gap: 8px;
}

.notification-dropdown .item {
  margin: 0;
}

.notification-dropdown strong,
.notification-dropdown .item strong {
  color: var(--ink);
}

.notification-dropdown span {
  color: var(--muted);
}

.notification-time {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.support-dialog {
  width: min(1000px, 100%);
}

.admin-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}

.topbar-actions .admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.admin-page .shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px 24px 48px 0;
}

body.admin-page #adminGate {
  margin-left: 24px;
}

.admin-console {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

.admin-sidebar {
  position: sticky;
  top: 80px;
  display: grid;
  gap: 8px;
  min-height: calc(100vh - 104px);
  border-radius: 0 18px 18px 0;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(215, 161, 46, 0.22), transparent 32%),
    linear-gradient(160deg, rgba(14, 37, 41, 0.98) 0%, rgba(20, 71, 78, 0.96) 58%, rgba(10, 26, 30, 0.98) 100%);
  box-shadow: 0 18px 46px rgba(7, 19, 22, 0.32);
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 12px;
  font-weight: 850;
}

.admin-sidebar-brand .user-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, #7b7a31, #ff9d24);
  color: #fff;
}

.admin-sidebar-brand > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-sidebar-brand strong {
  overflow: hidden;
  color: #fff;
  font-size: 21px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-brand small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 780;
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  padding: 0 16px;
  text-align: left;
  font-weight: 760;
  font-size: 15px;
}

.admin-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #f1c451;
  font-size: 15px;
  line-height: 1;
}

.admin-nav:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-nav.active {
  background: rgba(241, 196, 81, 0.16);
  color: #fff;
  box-shadow: inset 3px 0 0 #f1c451;
}

.admin-nav.internal {
  margin-top: 10px;
  color: #f1c451;
}

.admin-content {
  min-width: 0;
  width: 100%;
  border-radius: 18px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(23, 17, 33, 0.16);
}

.admin-view {
  display: none;
}

.admin-view.active {
  display: grid;
  gap: 18px;
}

.admin-page-title {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 8px 0 18px;
}

.admin-page-title h1 {
  margin: 0;
  color: var(--ink);
  font-size: 38px;
  font-weight: 900;
  text-align: left;
}

.admin-page-title p {
  max-width: 920px;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

.admin-muted {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(20, 30, 35, 0.04);
}

.admin-prod-panel {
  border-color: #b7d7c6;
  box-shadow: inset 3px 0 0 #2f8f64, 0 1px 2px rgba(20, 30, 35, 0.04);
}

.front-prod-panel {
  border-color: #b7d7c6;
  box-shadow: inset 3px 0 0 #2f8f64, 0 1px 2px rgba(20, 30, 35, 0.04);
}

.admin-test-panel {
  border-color: #ead8a8;
  background: #fffdf7;
  box-shadow: inset 3px 0 0 #c9942d, 0 1px 2px rgba(20, 30, 35, 0.04);
}

.front-test-panel {
  border-color: #ead8a8;
  background: #fffdf7;
  box-shadow: inset 3px 0 0 #c9942d, 0 1px 2px rgba(20, 30, 35, 0.04);
}

.admin-scope-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.admin-scope-badge.prod {
  background: #edf8f2;
  color: #17633f;
}

.admin-scope-badge.test {
  background: #fff2cc;
  color: #805600;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

h1,
h2 {
  margin: 0 0 14px;
  letter-spacing: 0;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 18px;
}

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

.row-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 160px 110px;
  gap: 12px;
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

input,
select {
  height: 40px;
}

textarea {
  min-height: 96px;
  padding-top: 10px;
  resize: vertical;
}

button {
  height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}

button:hover {
  background: var(--primary-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

button:disabled:hover {
  background: var(--primary);
}

button.secondary {
  background: #315b7d;
}

button.secondary:disabled:hover {
  background: #315b7d;
}

button.danger {
  background: #a43f3f;
}

button.danger:hover {
  background: #813030;
}

button.danger:disabled:hover {
  background: #a43f3f;
}

button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.topbar #logoutBtn.ghost {
  border-color: rgba(220, 68, 68, 0.92);
  background: #b33f3f;
  color: #fff;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(114, 31, 31, 0.22);
}

.topbar #logoutBtn.ghost:hover {
  border-color: #d85b5b;
  background: #982f2f;
  color: #fff;
}

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

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

.metric {
  min-height: 108px;
}

.metric strong {
  display: block;
  margin-top: 14px;
  font-size: 26px;
  overflow-wrap: anywhere;
}

.metric.attention {
  border-color: #e4c0c0;
  background: #fff0f0;
  box-shadow: inset 3px 0 0 #a43f3f, 0 1px 2px rgba(20, 30, 35, 0.04);
}

.metric.attention span,
.metric.attention strong {
  color: #8b2d2d;
}

.columns {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(300px, 380px);
  gap: 16px;
  margin-top: 16px;
}

.dashboard-overview {
  width: 100vw;
  margin: -28px calc(50% - 50vw) 0;
  padding: 10px 32px;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(31, 45, 50, 0.12);
}

#dashboardView {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#dashboardView > .dashboard-overview {
  order: 1;
}

#dashboardView > .processing-lab-panel {
  order: 2;
}

#dashboardView > .trial-actions-panel {
  order: 3;
}

#dashboardView > .support-panel {
  order: 4;
}

#dashboardView > .download-panel {
  order: 5;
}

.welcome-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.welcome-row > div > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.welcome-row h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.overview-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.overview-main,
.notification-panel {
  min-width: 0;
}

.overview-main {
  display: grid;
  grid-template-columns: minmax(480px, 0.75fr) minmax(560px, 1.25fr);
  gap: 10px;
  align-items: stretch;
}

.overview-metrics {
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 0;
}

.dashboard-overview .metric {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  padding: 9px 12px;
}

.dashboard-overview .metric strong {
  margin-top: 3px;
  font-size: 18px;
}

.metric-action {
  margin-top: 5px;
  min-height: 28px;
  width: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef7f2;
  color: #1f6f4d;
  font-size: 13px;
  font-weight: 750;
}

.metric-action:hover {
  background: #dff1e8;
}

.upgrade-action {
  border-color: #d9a300;
  background: #ffd45a;
  color: #4f3600;
  font-weight: 850;
}

.upgrade-action:hover {
  background: #ffc928;
  color: #3e2a00;
}

.slicer-overview {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  padding: 10px 12px;
}

.trial-actions-panel {
  margin-top: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0.96;
}

.compact-test-panel details {
  display: grid;
}

.compact-test-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.compact-test-panel summary::-webkit-details-marker {
  display: none;
}

.compact-test-panel summary::after {
  content: "展開";
  border: 1px solid #ecd187;
  border-radius: 999px;
  padding: 5px 10px;
  color: #8a6508;
  font-size: 12px;
  font-weight: 700;
  background: #fff9e8;
}

.compact-test-panel details[open] summary::after {
  content: "收合";
}

.compact-test-panel summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.compact-test-panel summary strong {
  font-size: 16px;
}

.compact-test-panel summary small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trial-actions-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) minmax(220px, 1fr) minmax(170px, 240px);
  gap: 12px;
  align-items: end;
  padding: 0 16px 16px;
}

.admin-layout-split {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(320px, 380px);
  gap: 18px;
  align-items: start;
  margin-top: 16px;
}

.admin-prod-column,
.admin-test-column {
  display: grid;
  gap: 16px;
}

.admin-prod-column .columns {
  margin-top: 0;
}

.admin-test-column {
  position: sticky;
  top: 88px;
}

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

.panel-heading h2 {
  margin-bottom: 4px;
}

.panel-heading.compact {
  align-items: center;
}

.panel-heading.compact h2 {
  margin-bottom: 0;
}

.panel-heading > div > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-section-note {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

pre {
  min-height: 220px;
  max-height: 340px;
  overflow: auto;
  margin: 0;
  background: #182226;
  color: #dceff2;
  padding: 14px;
  border-radius: 6px;
  font-size: 13px;
}

.slicer-device {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9aa5aa;
}

.status-dot.online {
  background: var(--good);
}

.slicer-compact {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

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

.slicer-status-strip > span {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
}

.slicer-status-strip small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.module-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
  justify-content: flex-end;
}

.module-pill {
  border: 1px solid #b7d7c8;
  border-radius: 999px;
  background: #edf8f2;
  color: #17633f;
  padding: 6px 10px;
  font-size: 13px;
}

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

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

.plan-card.current {
  border-color: #a9d6c1;
  background: #edf8f2;
}

.plan-card strong {
  font-size: 18px;
}

.plan-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.plan-card button {
  margin-top: 4px;
}

.support-panel {
  margin-top: 16px;
  margin-bottom: 22px;
}

.download-panel {
  margin-top: 22px;
}

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

.support-layout h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
}

.support-form-note {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.support-form {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  padding: 14px;
}

.notification-panel {
  margin-bottom: 0;
}

.processing-lab-panel {
  margin-top: 0;
  border-color: #d6b158;
  background: rgba(255, 253, 246, 0.96);
  box-shadow: 0 16px 38px rgba(31, 45, 50, 0.18);
}

.parameter-summary {
  display: grid;
  grid-template-columns: repeat(8, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.parameter-summary div {
  border: 1px solid #d5dde6;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  padding: 8px 10px;
}

.parameter-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 3px;
}

.parameter-summary strong {
  color: var(--ink);
  font-size: 14px;
}

.processing-lab-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.processing-lab-panel .machine-workbench,
.processing-lab-panel .event-log-panel {
  min-width: 0;
}

.download-release {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.download-release strong {
  font-size: 18px;
  color: var(--ink);
}

.download-release span {
  color: var(--muted);
}

.download-release a {
  color: var(--primary);
  font-weight: 650;
  text-decoration: none;
}

.download-release code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: #eef3f8;
  padding: 8px;
  font-size: 12px;
}

.readiness-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

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

.admin-collapsible-section {
  display: grid;
  gap: 12px;
}

.admin-collapsible-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.admin-collapsible-section summary::-webkit-details-marker {
  display: none;
}

.admin-collapsible-section summary h2 {
  margin-bottom: 4px;
}

.admin-collapsible-section summary span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-collapsible-section summary > strong {
  flex: 0 0 auto;
  border: 1px solid #dfc789;
  border-radius: 999px;
  background: #fff8df;
  color: #805600;
  padding: 6px 10px;
  font-size: 12px;
}

.admin-collapsible-section[open] summary > strong {
  background: #fff2cc;
}

.admin-status-summary {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfc;
  padding: 12px;
}

.admin-status-summary strong {
  color: var(--ink);
}

.admin-status-summary span {
  color: var(--muted);
  font-size: 14px;
}

.admin-status-summary.blocked {
  border-color: #e4c0c0;
  background: #fff0f0;
}

.admin-status-summary.ready {
  border-color: #a9d6c1;
  background: #edf8f2;
}

.admin-status-summary.watching {
  border-color: #b8d5dd;
  background: #eef8fb;
}

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

.admin-profile-card {
  display: grid;
  gap: 18px;
  min-height: 250px;
}

.admin-profile-wide {
  grid-column: 1 / -1;
  min-height: 0;
}

.admin-profile-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.admin-profile-card h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.18;
}

.admin-kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.admin-pill.ok {
  background: #e7f6ee;
  color: #196b48;
}

.admin-pill.warn {
  background: #fff1d6;
  color: #8a5a00;
}

.admin-profile-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.admin-profile-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 34px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.admin-profile-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.admin-profile-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 760;
  overflow-wrap: anywhere;
}

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

.admin-profile-status-row {
  display: grid;
  gap: 6px;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.admin-profile-status-row strong {
  color: var(--ink);
  font-size: 15px;
}

.admin-profile-status-row span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.admin-billing-hero {
  display: grid;
  gap: 28px;
  overflow-x: auto;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(15, 31, 34, 0.78), rgba(48, 67, 70, 0.62)),
    linear-gradient(180deg, rgba(238, 244, 242, 0.18) 0%, rgba(248, 250, 249, 0.1) 100%);
  padding: 28px;
  backdrop-filter: blur(2px);
}

.billing-page-kicker {
  display: block;
  margin: 0 0 8px;
  color: #087cff;
  font-size: 24px;
  font-weight: 900;
}

.billing-topic-switch {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 8px;
  margin: -4px auto 4px;
  border: 1px solid rgba(198, 211, 209, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px;
  box-shadow: 0 16px 34px rgba(7, 19, 22, 0.12);
}

.billing-topic-switch button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #19363b;
  font-weight: 850;
  padding: 10px 18px;
  font: inherit;
  cursor: pointer;
}

.billing-topic-switch button:first-child {
  background: #087cff;
  color: #fff;
}

.billing-topic-switch button:hover {
  background: #f3e2ad;
  color: #3c2b00;
}

.billing-section-tabs {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 0;
  width: auto;
  margin: -4px auto 4px;
  border: 1px solid rgba(198, 211, 209, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px;
  box-shadow: 0 16px 34px rgba(7, 19, 22, 0.12);
}

.billing-section-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(16, 44, 49, 0.92), rgba(20, 67, 73, 0.88));
  color: rgba(255, 255, 255, 0.82);
  padding: 0 22px;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.billing-section-tabs button::before {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: currentColor;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.billing-section-tabs button[data-billing-tab="plans"]::before {
  content: "▦";
}

.billing-section-tabs button[data-billing-tab="modules"]::before {
  content: "+";
}

.billing-section-tabs button[data-billing-tab="credits"]::before {
  content: "$";
}

.billing-section-tabs button.active {
  background: #fff;
  color: #087cff;
  box-shadow: 0 10px 22px rgba(7, 19, 22, 0.14);
}

.billing-section-tabs button.active::before {
  background: rgba(8, 124, 255, 0.12);
}

.billing-section-tabs button.active::after {
  content: none;
}

.billing-section-tabs button:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(8, 124, 255, 0.98), rgba(47, 84, 87, 0.95));
}

.billing-section-tabs button.active:hover {
  color: #087cff;
  background: #fff;
}

.billing-tab-panel {
  display: none !important;
}

.billing-tab-panel.active {
  display: grid !important;
}

.billing-cycle-toggle {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  padding: 8px 12px;
  color: #1e2f32;
  font-weight: 800;
}

.billing-cycle-option {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #1e2f32;
  padding: 7px 12px;
  font: inherit;
  cursor: pointer;
}

.billing-cycle-option.active {
  border-radius: 999px;
  background: #087cff;
  color: #fff;
  box-shadow: 0 8px 18px rgba(8, 124, 255, 0.24);
}

.billing-cycle-toggle em {
  border-radius: 999px;
  background: #ff9d24;
  color: #1c1400;
  padding: 6px 10px;
  font-size: 13px;
  font-style: normal;
}

.comparison-row.muted-row {
  opacity: 0.5;
}

.admin-plan-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(245px, 1fr));
  gap: 16px;
  min-width: 1289px;
}

.admin-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 610px;
  border: 1px solid rgba(151, 171, 169, 0.5);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 22px;
  box-shadow: 0 18px 38px rgba(7, 19, 22, 0.18);
}

.mm3d-plan-cards .admin-plan-card {
  min-width: 0;
}

.admin-product-principle .panel {
  display: grid;
  gap: 18px;
}

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

.admin-product-grid > div {
  display: grid;
  gap: 8px;
  border: 1px solid #cad8d6;
  border-radius: 12px;
  background: #f8fbfa;
  padding: 18px;
}

.admin-product-grid > .product-paid {
  border-color: #ff9d24;
  background: linear-gradient(180deg, #fff7d8 0%, #fffdf3 100%);
}

.admin-product-grid > .product-paid span {
  background: #ff9d24;
  color: #1c1400;
}

.admin-product-grid > .product-free {
  border-color: #a7d6c4;
  background: linear-gradient(180deg, #effaf5 0%, #fbfffd 100%);
}

.admin-product-grid strong {
  color: var(--ink);
  font-size: 22px;
}

.admin-product-grid span {
  justify-self: start;
  border-radius: 999px;
  background: #e7f3ef;
  color: #1d6f55;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 850;
}

.admin-product-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-plan-card.current,
.admin-plan-card.recommended {
  border-color: #d6a33a;
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 68%);
}

.admin-plan-card.enterprise {
  border-color: rgba(36, 112, 122, 0.55);
  background: linear-gradient(180deg, #eef3f8 0%, #ffffff 70%);
}

.admin-plan-card.admin-service-card {
  border-color: rgba(8, 124, 255, 0.48);
  background: linear-gradient(180deg, #f5fbfa 0%, #ffffff 70%);
}

.admin-plan-card[data-static-page] {
  cursor: pointer;
}

.admin-plan-card[data-static-page]:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(7, 19, 22, 0.24);
}

.admin-plan-audience {
  color: #617080;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding-right: 34px;
}

.admin-plan-crown {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #c88f18;
  font-size: 22px;
  line-height: 1;
}

.admin-plan-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #ff9d24;
  color: #1c1400;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 850;
}

.admin-plan-card h2 {
  margin: 34px 0 8px;
  color: #080b13;
  font-size: 22px;
  line-height: 1.18;
  white-space: nowrap;
}

.admin-plan-card p {
  min-height: 74px;
  margin: 0 0 26px;
  color: #111827;
  line-height: 1.6;
}

.admin-plan-price {
  color: #05070d;
  font-size: 34px;
  line-height: 1.1;
}

.admin-plan-unit {
  margin: 8px 0 28px;
  color: #111827;
  font-weight: 700;
}

.admin-plan-card button {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 850;
}

.admin-plan-card .primary {
  background: #087cff;
  color: #fff;
}

.admin-plan-card .primary:hover {
  background: #155c64;
}

.admin-plan-card ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid #d5dde6;
  list-style: none;
}

.admin-plan-card li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  color: #111827;
  line-height: 1.45;
}

.admin-plan-card li::before {
  content: "✓";
  font-weight: 900;
  line-height: 1.45;
}

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

.credit-pack-grid button {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 176px;
  border: 1px solid rgba(151, 171, 169, 0.52);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 232, 0.96) 58%, rgba(243, 226, 173, 0.58) 100%);
  color: #071426;
  text-align: left;
  padding: 22px;
  box-shadow: 0 18px 38px rgba(7, 19, 22, 0.14);
  overflow: visible;
}

.credit-pack-grid strong {
  margin-top: 6px;
  color: #080b13;
  font-size: 26px;
}

.credit-pack-grid span {
  color: #617080;
  font-weight: 780;
  line-height: 1.55;
}

.credit-pack-grid button::after {
  content: "加購點數";
  align-self: end;
  min-height: 42px;
  margin-top: auto;
  border-radius: 12px;
  background: #087cff;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 850;
  position: relative;
  z-index: 1;
}

.credit-pack-grid button.recommended {
  border-color: rgba(215, 161, 46, 0.86);
  background:
    linear-gradient(145deg, #ffffff 0%, #fff7d7 58%, #f0d27d 100%);
  box-shadow: 0 22px 46px rgba(117, 79, 6, 0.18);
}

.credit-pack-grid button.recommended em {
  position: absolute;
  top: -18px;
  left: 50%;
  min-height: 34px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd96a 0%, #ff9d24 100%);
  color: #2c2208;
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
  font-style: normal;
  font-weight: 950;
  box-shadow: 0 12px 20px rgba(117, 79, 6, 0.2);
}

.admin-credit-packs {
  gap: 18px;
  overflow-x: auto;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(15, 31, 34, 0.78), rgba(48, 67, 70, 0.62)),
    linear-gradient(180deg, rgba(238, 244, 242, 0.18) 0%, rgba(248, 250, 249, 0.1) 100%);
  padding: 34px 28px 22px;
  backdrop-filter: blur(2px);
}

.admin-credit-packs .credit-pack-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  justify-content: center;
}

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

.billing-modules-panel {
  gap: 28px;
  overflow-x: auto;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(15, 31, 34, 0.78), rgba(48, 67, 70, 0.62)),
    linear-gradient(180deg, rgba(238, 244, 242, 0.18) 0%, rgba(248, 250, 249, 0.1) 100%);
  padding: 28px;
  backdrop-filter: blur(2px);
}

.billing-modules-panel .billing-addon-grid {
  width: min(920px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  justify-content: center;
}

.billing-addon-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  border: 1px solid rgba(151, 171, 169, 0.52);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 24px;
  box-shadow: 0 18px 38px rgba(7, 19, 22, 0.14);
}

.billing-addon-card span {
  color: #617080;
  font-size: 14px;
  font-weight: 850;
}

.billing-addon-card h2 {
  margin: 28px 0 10px;
  color: #080b13;
  font-size: 26px;
}

.billing-addon-card p {
  margin: 0;
  color: #111827;
  line-height: 1.6;
}

.billing-addon-card strong {
  margin-top: auto;
  color: #071426;
  font-size: 24px;
}

.billing-addon-card button {
  min-height: 48px;
  margin-top: 18px;
  border-radius: 12px;
  background: #087cff;
  color: #fff;
  font-weight: 850;
}

.billing-addon-card .billing-addon-detail {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 34px;
  margin-top: 0;
  border: 1px solid rgba(215, 161, 46, 0.72);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd96a 0%, #ff9d24 100%);
  color: #2c2208;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(117, 79, 6, 0.18);
}

.billing-addon-card .billing-addon-detail:hover {
  background: linear-gradient(135deg, #ffeaa0 0%, #f0b936 100%);
  color: #1d1605;
}

.billing-addon-card.disabled {
  border-color: rgba(36, 112, 122, 0.55);
  background: linear-gradient(180deg, #eef3f8 0%, #ffffff 70%);
}

.admin-plan-comparison {
  display: grid;
  gap: 20px;
  overflow-x: auto;
}

.admin-plan-comparison h2 {
  margin: 0;
  font-size: 28px;
}

.comparison-table {
  min-width: 860px;
  border: 1px solid #cad8d6;
  border-radius: 14px;
  overflow: hidden;
}

.comparison-row {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(120px, 1fr));
  min-height: 58px;
  background: #fff;
}

.mm3d-comparison-table .comparison-row {
  grid-template-columns: 1.6fr repeat(5, minmax(110px, 1fr));
}

.comparison-row:nth-child(even) {
  background: #f3f7f6;
}

.comparison-row > * {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
  padding: 14px;
  text-align: center;
}

.comparison-row > :first-child {
  justify-content: flex-start;
  border-left: 0;
  font-weight: 850;
  text-align: left;
}

.comparison-head {
  background: #dfe9e7;
  font-weight: 900;
}

.mm3d-site-footer {
  display: grid;
  gap: 18px;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(55, 59, 32, 0.96) 0%, rgba(19, 88, 96, 0.96) 58%, rgba(9, 40, 44, 0.98) 100%);
  color: #fff;
  padding: 24px clamp(24px, 6vw, 96px) 18px;
  box-shadow: 0 22px 48px rgba(7, 19, 22, 0.24);
}

.mm3d-site-footer-brand {
  display: grid;
  gap: 6px;
  max-width: 620px;
}

.mm3d-site-footer-brand span {
  color: #f1c451;
  font-size: 14px;
  font-weight: 900;
}

.mm3d-site-footer-brand strong {
  font-size: 26px;
  font-weight: 950;
}

.mm3d-site-footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.mm3d-site-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mm3d-site-footer-links section {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-content: start;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
}

.mm3d-site-footer-links h3 {
  margin: 0;
  color: #f1c451;
  font-size: 15px;
  flex: 0 0 100%;
}

.mm3d-site-footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 760;
  text-decoration: none;
}

.mm3d-site-footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.mm3d-site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 720;
}

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

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

.admin-marketplace-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-feature-list li {
  color: var(--ink);
  line-height: 1.45;
}

.admin-feature-list li::before {
  content: "✓";
  margin-right: 10px;
  color: #1d6f55;
  font-weight: 900;
}

.admin-saas-value {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.4fr);
  gap: 22px;
  border-color: rgba(215, 161, 46, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 248, 0.94)),
    linear-gradient(135deg, rgba(8, 124, 255, 0.18), rgba(215, 161, 46, 0.18));
}

.admin-saas-value p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-saas-value-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.readiness-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #ffffff;
}

.readiness-item.blocked {
  border-color: #e4c0c0;
  background: #fff0f0;
}

.readiness-item.partial {
  border-color: #ead8a8;
  background: #fff9e8;
}

.readiness-item.ready {
  border-color: #a9d6c1;
  background: #edf8f2;
}

.readiness-item strong {
  color: var(--ink);
}

.readiness-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.readiness-item-head em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  padding: 3px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.readiness-time {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

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

.admin-session-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.admin-history-panel {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.admin-history-panel summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

.admin-history-panel .list {
  margin-top: 10px;
}

.audit-history-panel {
  margin-top: 12px;
}

.admin-history-flat {
  display: grid;
  gap: 16px;
}

.admin-history-flat > .list {
  display: grid;
  gap: 10px;
}

.audit-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(31, 90, 83, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 30px rgba(20, 54, 55, 0.08);
}

.audit-filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.audit-filter-bar input,
.audit-filter-bar select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}

.audit-filter-bar button {
  min-height: 42px;
}

.audit-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 14px;
  padding: 8px;
  border: 1px solid rgba(31, 90, 83, 0.16);
  border-radius: 12px;
  background: rgba(237, 246, 242, 0.72);
}

.audit-category-tabs button {
  border: 1px solid rgba(31, 90, 83, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: #234b48;
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 780;
}

.audit-category-tabs button:hover {
  border-color: rgba(31, 90, 83, 0.36);
  background: #fff;
}

.audit-category-tabs button.active {
  border-color: #d6a93f;
  background: linear-gradient(135deg, #1d5558, #1f7b82);
  color: #fff;
  box-shadow: 0 10px 20px rgba(20, 82, 86, 0.18);
}

.audit-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.audit-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.audit-badge.info {
  background: #eef5f7;
  color: #315b7d;
}

.audit-badge.warning {
  background: #fff2cc;
  color: #805600;
}

.audit-badge.danger {
  background: #fff0f0;
  color: #8b2d2d;
}

.version-check {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 120px;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.version-check .mini-note {
  grid-column: 1 / -1;
}

.debug-panel {
  margin-top: 8px;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.debug-panel summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 8px;
  font-size: 13px;
}

.debug-panel:not([open]) {
  opacity: 0.72;
}

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

.item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #ffffff;
}

.item.unread {
  border-color: #a9d6c1;
  background: #edf8f2;
}

.item strong {
  display: block;
  margin-bottom: 4px;
}

.member-records-panel {
  margin-top: 10px;
  padding: 0;
  overflow: hidden;
}

.compact-records-panel details {
  display: grid;
}

.compact-records-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.compact-records-panel summary::-webkit-details-marker {
  display: none;
}

.compact-records-panel summary::after {
  content: "展開";
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  background: #fff;
}

.compact-records-panel details[open] summary::after {
  content: "收合";
}

.compact-records-panel summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.compact-records-panel summary strong {
  font-size: 17px;
}

.compact-records-panel summary small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-records-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.member-record-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.88);
  min-width: 0;
}

.member-record-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.member-record-card .item {
  padding: 8px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.member-record-card .item strong {
  margin-bottom: 2px;
}

.session-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 7px 12px;
  font-weight: 650;
  white-space: nowrap;
  font-size: 13px;
}

.session-status.active {
  border-color: #a9d6c1;
  background: #edf8f2;
  color: #17633f;
}

.session-status.stale {
  border-color: #e4c0c0;
  background: #fff0f0;
  color: #8b2d2d;
}

.session-meta,
.mini-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 0;
}

.mini-note {
  margin-bottom: 0;
}

.machine-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
}

.execution-window {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 14px;
  align-items: start;
}

.machine-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #202627;
  min-height: 460px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.execution-preview {
  height: 720px;
  min-height: 720px;
  max-height: 720px;
}

.machine-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
}

.stage-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  gap: 2px;
  min-width: 168px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(12, 18, 20, 0.78);
  color: #eef8f9;
  padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.stage-overlay span {
  color: rgba(238, 248, 249, 0.72);
  font-size: 11px;
  text-transform: uppercase;
}

.stage-overlay strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.machine-stage.running .stage-overlay {
  border-color: rgba(70, 206, 141, 0.42);
}

.machine-stage.stale .stage-overlay {
  border-color: rgba(229, 96, 96, 0.55);
  background: rgba(62, 18, 20, 0.84);
}

.machine-bed {
  z-index: 1;
  position: relative;
  width: min(58%, 620px);
  aspect-ratio: 1 / 1;
  transform: rotate(45deg) skew(-12deg, -12deg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.28);
}

.machine-quadrant {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 750;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: skew(12deg, 12deg) rotate(-45deg);
}

.q1 {
  background: #12cbd0;
}

.q2 {
  background: #00b83f;
}

.q3 {
  background: #f1df16;
}

.q4 {
  background: #f2a01b;
}

.scan-line {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 48%;
  height: 6px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0 6px, rgba(255, 255, 255, 0.1) 6px 12px);
  opacity: 0.55;
}

.machine-bed.running .scan-line {
  animation: scanMove 1.4s linear infinite;
}

.machine-bed.stale .scan-line {
  background: #d94343;
  opacity: 0.9;
}

.machine-controls {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.execution-sidebar {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f8f8;
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.job-name-field {
  display: grid;
  gap: 6px;
}

.range-card,
.playback-card {
  border: 1px solid #d5dde6;
  border-radius: 6px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 9px;
}

.range-card h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 17px;
}

.range-card label {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.range-card label span,
.playback-card label span,
.job-name-field span {
  color: var(--muted);
  font-size: 13px;
}

.range-card label em {
  color: var(--ink);
  font-style: normal;
  font-weight: 700;
}

.range-card input:disabled {
  color: #657178;
  background: #f2f4f5;
}

.playback-card {
  grid-template-columns: 1fr;
}

.machine-rule {
  border: 1px solid #d5dde6;
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.5;
}

.machine-status-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.machine-status-row span {
  color: var(--muted);
  font-size: 13px;
}

.machine-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ecef;
}

.machine-progress div {
  height: 100%;
  width: 0%;
  background: var(--good);
  transition: width 0.25s ease;
}

.machine-fields {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, minmax(112px, 1fr));
  gap: 10px;
  align-items: end;
}

.machine-fields label:first-child {
  grid-column: span 2;
}

.machine-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.machine-actions button {
  min-width: 0;
}

.machine-actions .start-command,
.machine-actions .exit-command {
  min-height: 72px;
  border: 4px solid currentColor;
  background: #fff;
  font-size: 30px;
  font-weight: 900;
}

.machine-actions .start-command {
  color: #0b7a20;
}

.machine-actions .start-command:hover {
  background: #eaf8ed;
}

.machine-actions .exit-command {
  color: #1d326f;
}

.machine-actions .exit-command:hover {
  background: #eef2ff;
}

.machine-actions #pauseSimulationBtn,
.machine-actions #heartbeatBtn {
  min-height: 34px;
  font-size: 13px;
}

.cloud-session-test {
  border: 1px solid #d5dde6;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.cloud-session-test summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.cloud-session-test summary::-webkit-details-marker {
  display: none;
}

.cloud-session-test summary::after {
  content: "展開";
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  background: #ffffff;
}

.cloud-session-test[open] summary::after {
  content: "收合";
}

.cloud-session-test summary span {
  font-weight: 800;
}

.cloud-session-test summary small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.cloud-test-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 12px;
}

.cloud-test-actions button {
  min-height: 36px;
  font-size: 13px;
}

.simulation-test-dialog {
  width: min(560px, 100%);
}

.floating-tool-panel {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 35;
  width: min(560px, calc(100vw - 48px));
  pointer-events: none;
}

.floating-tool-panel .billing-dialog {
  width: 100%;
  max-height: calc(100vh - 96px);
  pointer-events: auto;
}

.floating-tool-panel.dragging .billing-dialog {
  box-shadow: 0 28px 70px rgba(10, 18, 22, 0.32);
  user-select: none;
}

.draggable-tool-head {
  cursor: move;
}

.draggable-tool-head .icon-close,
.draggable-tool-head button {
  cursor: pointer;
}

.modal-cloud-session-test {
  display: grid;
  gap: 12px;
  border: 0;
  background: transparent;
}

.modal-cloud-session-test .cloud-test-actions {
  padding: 0;
}

.modal-cloud-session-test .cloud-test-actions button {
  min-height: 44px;
}

.modal-cloud-session-test .compact-recovery {
  margin: 0;
}

.compact-recovery {
  margin: 0 12px 12px;
}

.modal-cloud-session-test .compact-recovery {
  margin: 0;
}

.compact-recovery .hint {
  padding: 8px 10px;
  font-size: 12px;
}

.machine-actions #pauseSimulationBtn {
  background: #60757b;
}

.machine-actions #heartbeatBtn {
  background: #176f83;
}

.machine-actions #heartbeatBtn:hover {
  background: #115669;
}

.machine-actions #stopProcessingBtn {
  background: #8f4a3e;
}

.machine-actions #stopProcessingBtn:hover {
  background: #71372f;
}

.machine-actions button:disabled,
.machine-actions #pauseSimulationBtn:disabled,
.machine-actions #heartbeatBtn:disabled,
.machine-actions #stopProcessingBtn:disabled {
  background: #9fb1b8;
  color: #fff;
}

.session-history-panel {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  padding: 0;
}

.session-history-panel summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 650;
  padding: 12px;
}

.session-history-panel .session-list {
  padding: 0 12px 12px;
}

.event-log-panel {
  align-self: start;
}

.event-log {
  display: grid;
  gap: 0;
  max-height: 430px;
  overflow: auto;
  padding-left: 12px;
  border-left: 2px solid #dfe7ea;
}

.lab-jobs-panel {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
}

.lab-jobs-panel summary {
  cursor: pointer;
  padding: 12px;
  color: var(--ink);
  font-weight: 750;
}

.lab-jobs-panel .list {
  padding: 0 12px 12px;
}

.event-empty,
.event-item {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 0 14px 14px;
}

.event-empty {
  color: var(--muted);
  line-height: 1.5;
}

.event-item {
  position: relative;
  display: grid;
  gap: 4px;
}

.event-item::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px #edf4f6;
}

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

.event-item strong {
  font-size: 14px;
}

.event-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.event-item.success {
  color: #17633f;
}

.event-item.warning {
  color: #8a5b0d;
}

.event-item.success::before {
  background: var(--good);
}

.event-item.warning::before {
  background: #d49a28;
}

.recovery-panel-inline {
  border: 1px solid #ead8a8;
  border-radius: 6px;
  background: #fff9e8;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.recovery-panel-inline strong {
  font-size: 14px;
}

.release-countdown {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 6px;
  border: 1px solid #e4c0c0;
  border-radius: 6px;
  background: #fff0f0;
  color: #8b2d2d;
  padding: 10px;
}

.release-countdown.ready {
  border-color: #a9d6c1;
  background: #edf8f2;
  color: #17633f;
}

.release-countdown span {
  color: inherit;
  font-weight: 650;
  font-size: 13px;
}

.release-countdown strong {
  color: inherit;
  font-size: 28px;
  line-height: 1;
}

.release-countdown em {
  color: inherit;
  font-size: 13px;
  font-style: normal;
}

.recovery-panel-inline span,
.recovery-panel-inline em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-style: normal;
}

@keyframes scanMove {
  from {
    transform: translateY(-120px);
  }

  to {
    transform: translateY(120px);
  }
}

.hint {
  border: 1px solid #ead8a8;
  border-radius: 6px;
  background: #fff9e8;
  color: #6a4b12;
  padding: 12px;
  line-height: 1.6;
}

.recovery-panel {
  border-color: #e4c0c0;
}

.message {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(460px, calc(100vw - 40px));
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--good);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(15, 24, 28, 0.42);
  padding: 20px;
}

.confirm-dialog {
  width: min(460px, 100%);
  border: 1px solid #e4c0c0;
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 18px 50px rgba(15, 24, 28, 0.24);
}

.confirm-dialog h2 {
  margin-bottom: 10px;
}

.confirm-dialog p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.confirm-dialog .actions {
  justify-content: end;
}

.billing-modal {
  position: fixed;
  inset: 0;
  z-index: 19;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 18, 22, 0.52);
}

.billing-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(10, 18, 22, 0.24);
}

.billing-dialog.compact {
  width: min(460px, 100%);
}

.billing-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.billing-dialog-head h2 {
  margin-bottom: 6px;
}

.billing-dialog-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.icon-close {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  background: #eef2f3;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.icon-close:hover {
  background: #dfe7e9;
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .shell {
    padding-inline: 16px;
  }

  .dashboard-overview {
    padding-inline: 16px;
  }

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

  .admin-layout-split,
  .admin-console,
  .columns,
  .overview-layout,
  .overview-main,
  .execution-window,
  .processing-lab-layout,
  .slicer-compact,
  .support-layout {
    grid-template-columns: 1fr;
  }

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

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

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

  .module-list {
    justify-content: flex-start;
  }

  .admin-test-column {
    position: static;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-sidebar-brand {
    grid-column: 1 / -1;
  }

  .admin-content {
    padding: 20px;
  }

  .admin-profile-grid,
  .admin-profile-status-list,
  .admin-plan-cards,
  .credit-pack-grid,
  .admin-product-grid,
  .admin-marketplace-grid,
  .admin-saas-value,
  .admin-saas-value-list,
  .billing-addon-grid,
  .standalone-info-grid,
  .audit-filter-bar {
    grid-template-columns: 1fr;
  }

  .admin-plan-cards {
    min-width: 0;
  }
}

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

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

  .machine-fields label:first-child {
    grid-column: 1 / -1;
  }

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

  .machine-stage {
    min-height: 340px;
  }

  .execution-preview {
    height: 420px;
    min-height: 420px;
    max-height: 420px;
  }

  .confirm-dialog {
    max-width: calc(100vw - 32px);
  }

  .billing-dialog {
    max-width: calc(100vw - 32px);
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-block: 12px;
  }

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

  .auth-panel,
  .admin-layout-split,
  .admin-console,
  .columns,
  .grid,
  .member-records-grid,
  .overview-metrics,
  .slicer-status-strip,
  .trial-actions-grid,
  .machine-panel,
  .plan-cards,
  .version-check,
  .row-form {
    grid-template-columns: 1fr;
  }

  .machine-fields,
  .machine-actions {
    grid-template-columns: 1fr;
  }

  .mm3d-site-footer {
    padding: 22px;
  }

  .mm3d-site-footer-links {
    grid-template-columns: 1fr;
  }

  .admin-test-column {
    position: static;
  }

  .admin-sidebar {
    grid-template-columns: 1fr;
  }

  .admin-page-title h1 {
    font-size: 30px;
  }

  .topbar {
    padding: 0 14px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .language-picker span {
    display: none;
  }
}

/* Desktop simulator mode: the processing UI is a floating Slicer window. */
body.simulator-desktop-mode {
  min-width: 1180px;
  overflow: hidden;
  background: #c9ced1;
}

body.simulator-desktop-mode > .topbar {
  display: none;
}

body.simulator-desktop-mode > main {
  width: 100vw;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body.simulator-desktop-mode #dashboardView {
  position: fixed;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #bfc5c8;
}

.slicer-desktop-host {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 27px 58px 1fr 24px;
  background: #d3d8db;
  color: #263238;
  font-family: var(--mm3d-body-sans);
}

.slicer-host-menubar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 12px;
  border-bottom: 1px solid #aeb6ba;
  background: #f4f6f7;
  font-size: 12px;
}

.slicer-host-ribbon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #8a98a8;
  background: linear-gradient(#eef1f3, #dce1e4);
}

.slicer-host-ribbon strong {
  margin-right: 18px;
  color: #176774;
  font-size: 16px;
}

.slicer-host-ribbon button,
.slicer-host-ribbon span {
  min-height: 32px;
  border: 1px solid #a9b2b7;
  border-radius: 2px;
  padding: 7px 12px;
  background: #fafbfb;
  color: #344248;
  font-size: 11px;
}

.slicer-host-ribbon button {
  background: #197887;
  color: #fff;
  font-weight: 700;
}

.slicer-host-workarea {
  display: grid;
  grid-template-columns: 210px 1fr 230px;
  min-height: 0;
}

.slicer-host-workarea > aside {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border-right: 1px solid #8a98a8;
  background: #edf0f2;
  font-size: 11px;
}

.slicer-host-workarea > aside:last-child {
  border-right: 0;
  border-left: 1px solid #8a98a8;
}

.slicer-host-workarea > aside span {
  border-bottom: 1px solid #d3d9dc;
  padding: 6px 3px;
}

.slicer-host-canvas {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    #292d2f;
  background-size: 28px 28px;
  color: #879196;
  font-size: 11px;
}

.host-model-shape {
  position: absolute;
  width: 420px;
  height: 270px;
  transform: rotate(30deg) skewX(-28deg);
  border: 1px solid rgba(65, 202, 218, .8);
  background: linear-gradient(135deg, rgba(20, 182, 197, .22), rgba(26, 92, 103, .08));
  box-shadow: inset 0 0 50px rgba(50, 219, 230, .12);
}

.slicer-host-statusbar {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 10px;
  border-top: 1px solid #8a98a8;
  background: #e8ecee;
  color: #526168;
  font-size: 10px;
}

body.simulator-desktop-mode .trial-actions-panel {
  position: fixed;
  right: 12px;
  bottom: 32px;
  z-index: 20;
  width: 390px;
  margin: 0;
  border: 1px solid #87949b;
  border-radius: 2px;
  background: #eef1f2;
  box-shadow: 0 5px 18px rgba(0,0,0,.18);
}

body.simulator-desktop-mode .trial-actions-panel summary {
  padding: 7px 10px;
  background: #dfe4e6;
}

body.simulator-desktop-mode .trial-actions-panel summary small,
body.simulator-desktop-mode .trial-actions-panel summary em {
  display: none;
}

body.simulator-desktop-mode .trial-actions-grid {
  grid-template-columns: 1fr auto;
  padding: 8px;
}

body.simulator-desktop-mode .trial-actions-grid label:nth-of-type(2),
body.simulator-desktop-mode #generateBtn {
  display: none;
}

body.simulator-desktop-mode .slicer-execution-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100;
  width: min(1420px, calc(100vw - 64px));
  height: min(900px, calc(100vh - 56px));
  margin: 0;
  overflow: auto;
  transform: translate(-50%, -50%);
  resize: both;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
}

body.simulator-desktop-mode .slicer-execution-dialog.dragging {
  transform: none;
  user-select: none;
}

.slicer-dialog-titlebar {
  position: sticky;
  top: 0;
  z-index: 5;
  cursor: move;
}

.slicer-window-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.slicer-window-controls button {
  display: grid;
  width: 34px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #29363b;
  font-size: 18px;
}

.slicer-window-controls button:hover {
  background: #d5dcdf;
}

.slicer-window-controls #closeSimulatorBtn:hover {
  background: #c83f3a;
  color: #fff;
}

body.simulator-desktop-mode .slicer-execution-dialog.window-minimized {
  top: auto !important;
  right: 18px !important;
  bottom: 34px !important;
  left: auto !important;
  width: 430px;
  height: 51px;
  min-height: 0;
  overflow: hidden;
  transform: none;
  resize: none;
}

body.simulator-desktop-mode .slicer-execution-dialog.window-closed {
  display: none;
}

body.simulator-desktop-mode #message {
  position: fixed;
  z-index: 200;
}

body.admin-page .admin-console {
  display: block;
  width: 100%;
}

body.admin-page .admin-sidebar {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 300px;
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
  border-radius: 0 20px 20px 0;
}

body.admin-page .admin-content {
  width: auto;
  margin-left: 324px;
  min-height: calc(100vh - 48px);
}

body.admin-page.billing-standalone .shell {
  max-width: none;
  padding: 0;
}

body.admin-page.billing-standalone .admin-console {
  display: block;
}

body.admin-page .billing-standalone-topbar {
  display: none;
}

body.admin-page.billing-standalone .billing-standalone-topbar {
  position: sticky;
  top: 0;
  z-index: 130;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  margin: 0 calc(50% - 50vw) 0;
  border-bottom: 1px solid rgba(215, 161, 46, 0.32);
  background:
    radial-gradient(circle at 18% 0%, rgba(215, 161, 46, 0.35), transparent 34%),
    linear-gradient(120deg, #071426 0%, #17363b 45%, #087cff 100%),
    linear-gradient(90deg, rgba(215, 161, 46, 0.18), rgba(8, 124, 255, 0.18));
  color: #fff;
  padding: 0 max(24px, calc((100vw - 1680px) / 2 + 24px));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

body.admin-page.billing-standalone .billing-standalone-topbar > strong {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.billing-topbar-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.billing-topbar-links button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  padding: 0;
  font: inherit;
  font-weight: 860;
  cursor: pointer;
}

.billing-topbar-links button:hover {
  color: #f1c451;
}

body.admin-page.billing-standalone .billing-user-pill {
  justify-self: end;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
}

body.admin-page.billing-standalone .billing-user-pill small {
  color: rgba(255, 255, 255, 0.76);
}

body.admin-page.billing-standalone .admin-sidebar {
  display: none;
}

body.admin-page.billing-standalone .admin-content {
  width: min(1680px, calc(100vw - 48px));
  margin: 0 auto;
  border-radius: 0 0 18px 18px;
  padding: 0;
  overflow: hidden;
}

body.admin-page.billing-standalone .admin-view:not(#adminViewBilling) {
  display: none;
}

body.admin-page.billing-standalone #adminViewBilling {
  display: grid;
  gap: 24px;
}

body.admin-page.billing-standalone #adminViewBilling > .admin-page-title {
  padding-top: 34px;
}

.standalone-info-page {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(9, 20, 23, 0.62), rgba(9, 20, 23, 0.72)),
    url("assets/laser-processing-bg.png") center / cover fixed;
  color: #172124;
}

.standalone-info-shell {
  width: min(1480px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.standalone-info-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(215, 228, 225, 0.68);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 16px 20px;
}

.standalone-info-nav strong {
  color: #102b30;
  font-size: 20px;
}

.standalone-info-nav a {
  border-radius: 999px;
  background: #087cff;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  padding: 10px 16px;
}

.standalone-info-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 26px;
  border: 1px solid rgba(215, 228, 225, 0.65);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
  padding: 58px 28px;
}

.standalone-info-hero span {
  color: #087cff;
  font-size: 22px;
  font-weight: 900;
}

.standalone-info-hero h1 {
  margin: 0;
  color: #071426;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
}

.standalone-info-hero p {
  max-width: 760px;
  margin: 0;
  color: #617080;
  font-size: 18px;
  line-height: 1.7;
}

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

.standalone-info-card {
  min-height: 420px;
  border: 1px solid rgba(151, 171, 169, 0.58);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  padding: 28px;
  box-shadow: 0 18px 38px rgba(7, 19, 22, 0.2);
}

.standalone-info-card h2 {
  margin: 0 0 14px;
  color: #071426;
  font-size: 28px;
}

.standalone-info-card p {
  margin: 0 0 24px;
  color: #617080;
  line-height: 1.7;
}

.standalone-info-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid #d5dde6;
  list-style: none;
}

.standalone-info-card li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  line-height: 1.55;
}

.standalone-info-card li::before {
  content: "✓";
  color: #1d6f55;
  font-weight: 900;
}

body.admin-page .admin-sidebar-brand {
  font-size: 24px;
  line-height: 1.2;
}

body.admin-page .admin-sidebar-tools {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.admin-page .admin-sidebar-session {
  display: grid;
  gap: 5px;
  margin: -2px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
}

body.admin-page .admin-sidebar-link,
body.admin-page .admin-sidebar-language,
body.admin-page .admin-sidebar-tools .ghost {
  width: 100%;
  min-height: 42px;
}

body.admin-page .admin-sidebar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 780;
}

body.admin-page .admin-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

body.admin-page .admin-sidebar-language {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 760;
}

body.admin-page .admin-sidebar-language select {
  width: 100%;
  min-height: 42px;
}

body.admin-page .admin-nav {
  width: 100%;
  min-height: 54px;
  font-size: 17px;
  line-height: 1.25;
}

body.admin-page .admin-sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
}

body.admin-page .admin-sidebar-footer .danger {
  width: 100%;
  min-height: 48px;
  border-color: #9f3030;
  background: #b33f3f;
  color: #fff;
  font-size: 16px;
  font-weight: 820;
}

body.admin-page .admin-sidebar-footer .danger:hover {
  background: #982f2f;
}

@media (max-width: 900px) {
  body.admin-page .admin-console {
    display: block;
    overflow-x: auto;
  }

  body.admin-page .admin-sidebar {
    width: 260px;
  }

  body.admin-page .admin-content {
    width: 760px;
    margin-left: 284px;
  }
}

/* Pricing Page - MM3D AI Design Standard alignment */
body.pricing-page {
  --pricing-ink: #101820;
  --pricing-muted: #617080;
  --pricing-line: #d9e1e4;
  --pricing-panel: #ffffff;
  --pricing-soft: #f4f7fa;
  --pricing-teal: #087cff;
  --pricing-teal-dark: #0a1b31;
  --pricing-gold: #ff9d24;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(215, 161, 46, 0.18), transparent 24%),
    linear-gradient(135deg, #102225 0%, #12383d 48%, #087cff 100%);
  color: var(--pricing-ink);
  font-family: var(--mm3d-body-sans);
}

body.pricing-page::before,
body.pricing-page::after {
  display: none;
}

.pricing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 0 clamp(24px, 5vw, 72px);
  border-bottom: 1px solid var(--pricing-line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--pricing-ink);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.pricing-brand,
.pricing-nav nav a,
.pricing-nav-cta,
.plan-cta,
.final-cta-actions a {
  text-decoration: none;
}

.pricing-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--pricing-ink);
  font-family: var(--mm3d-display-serif);
  font-weight: 900;
}

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

.pricing-brand strong {
  color: var(--pricing-ink);
  font-size: 17px;
}

.pricing-nav nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--pricing-line);
  border-radius: 8px;
  background: #fff;
}

.pricing-nav nav a,
.pricing-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--pricing-muted);
  font-size: 14px;
  font-weight: 800;
}

.pricing-nav nav a:hover {
  background: var(--pricing-soft);
  color: var(--pricing-ink);
}

.pricing-nav-cta {
  justify-self: end;
  background: var(--pricing-teal);
  color: #fff !important;
}

.pricing-hero,
.pricing-section,
.pricing-final-cta {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.pricing-hero {
  padding: 84px 0 72px;
  text-align: center;
}

.pricing-kicker,
.section-heading span,
.pricing-final-cta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(8, 124, 255, 0.18);
  border-radius: 6px;
  background: rgba(8, 124, 255, 0.08);
  color: var(--pricing-teal);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
}

.pricing-hero h1 {
  max-width: 780px;
  margin: 20px auto 14px;
  color: #fff;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

.pricing-hero > p,
.section-heading p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.7;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 46px;
  text-align: left;
}

.pricing-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 14px;
  min-height: 420px;
  border: 1px solid var(--pricing-line);
  border-radius: 8px;
  background: var(--pricing-panel);
  padding: 24px;
  box-shadow: 0 18px 48px rgba(5, 14, 16, 0.16);
}

.pricing-card.featured,
.pricing-card.pro {
  background: #fffdfa;
}

.pricing-card.pro {
  border-color: rgba(215, 161, 46, 0.78);
  box-shadow: 0 18px 48px rgba(119, 83, 11, 0.11);
}

.enterprise-card {
  border-color: rgba(8, 124, 255, 0.36);
  background: #f8fbfb;
  color: var(--pricing-ink);
}

.enterprise-card p,
.enterprise-card .plan-audience,
.enterprise-card li,
.enterprise-card .plan-price small {
  color: var(--pricing-muted);
}

.plan-audience {
  min-height: 44px;
  padding-right: 76px;
  color: var(--pricing-muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.plan-badge {
  position: absolute;
  top: 20px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 6px;
  background: rgba(215, 161, 46, 0.16);
  color: #6d4a00;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.pricing-card h2 {
  margin: 0;
  color: inherit;
  font-size: 28px;
  line-height: 1.1;
}

.pricing-card p {
  margin: 0;
  color: var(--pricing-muted);
  font-size: 15px;
  line-height: 1.6;
}

.plan-price {
  color: var(--pricing-ink);
  font-size: 28px;
  line-height: 1.1;
}

.plan-price small {
  color: var(--pricing-muted);
  font-size: 14px;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  color: var(--pricing-ink);
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.45;
}

.pricing-card li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pricing-teal);
}

.pricing-card.pro li::before,
.pricing-card.featured li::before {
  background: var(--pricing-gold);
}

.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  background: var(--pricing-teal);
  color: #fff !important;
  padding: 0 18px;
  font-weight: 900;
}

.plan-cta.secondary {
  background: var(--pricing-soft);
  color: var(--pricing-teal-dark) !important;
  border: 1px solid rgba(8, 124, 255, 0.18);
}

.plan-cta.enterprise {
  background: var(--pricing-teal-dark);
  color: #fff !important;
}

.pricing-section {
  padding: 72px 0;
  border-top: 0;
  background: #f4f7fa;
}

.pricing-section + .pricing-section {
  border-top: 1px solid rgba(217, 225, 228, 0.78);
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.section-heading h2 {
  margin: 14px 0 10px;
  color: var(--pricing-ink);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

.pricing-section .section-heading p {
  color: var(--pricing-muted);
}

.comparison-shell {
  overflow-x: auto;
  border: 1px solid var(--pricing-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(17, 32, 36, 0.05);
}

.pricing-comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.pricing-comparison-table th,
.pricing-comparison-table td {
  border-bottom: 1px solid var(--pricing-line);
  padding: 13px 16px;
  text-align: center;
  font-size: 15px;
}

.pricing-comparison-table th:first-child,
.pricing-comparison-table td:first-child {
  text-align: left;
  font-weight: 900;
}

.pricing-comparison-table th {
  background: #203942;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.pricing-comparison-table .comparison-band td {
  padding: 8px 16px;
  text-align: center;
  color: #173137;
  font-size: 14px;
  font-weight: 950;
}

.pricing-comparison-table .plan-band td,
.pricing-comparison-table .workflow-band td {
  background: #d7e8f3;
}

.pricing-comparison-table .module-band td,
.pricing-comparison-table .enterprise-band td {
  background: #ffe19d;
}

.pricing-comparison-table .credits-band td {
  background: #d5eadf;
}

.pricing-comparison-table .yes {
  color: #21854e;
  font-weight: 950;
}

.pricing-comparison-table .no {
  color: #d32929;
  font-weight: 950;
}

.comparison-license {
  border-top: 1px solid var(--pricing-line);
  background: #fffdf8;
}

.comparison-license summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--pricing-teal-dark);
  font-size: 16px;
  font-weight: 950;
}

.pricing-comparison-table.compact {
  min-width: 760px;
  table-layout: fixed;
}

.pricing-comparison-table.compact td:first-child {
  width: 28%;
  text-align: left;
}

.pricing-comparison-table.compact td:not(:first-child) {
  text-align: center;
  vertical-align: middle;
}

.pricing-comparison-table tr:last-child td {
  border-bottom: 0;
}

.credits-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 20px;
  align-items: stretch;
}

.credits-explain-card,
.credits-flow {
  border: 1px solid var(--pricing-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(17, 32, 36, 0.05);
}

.credits-explain-card {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.credits-explain-card strong {
  font-size: 28px;
  line-height: 1.16;
}

.credits-explain-card p,
.credits-explain-card em {
  margin: 0;
  color: var(--pricing-muted);
  font-size: 16px;
  line-height: 1.65;
}

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

.credits-allowance span {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(8, 124, 255, 0.14);
  border-radius: 8px;
  background: #f6faf9;
  padding: 14px;
  color: var(--pricing-teal-dark);
  font-weight: 900;
}

.credits-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.credits-flow li {
  position: relative;
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 220px;
  padding: 22px;
  border-right: 1px solid var(--pricing-line);
}

.credits-flow li:last-child {
  border-right: 0;
}

.credits-flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -12px;
  top: 50%;
  z-index: 1;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--pricing-gold);
  color: #3d2a00;
  font-size: 13px;
  font-weight: 900;
  transform: translateY(-50%);
}

.credits-flow span {
  color: var(--pricing-teal);
  font-size: 13px;
  font-weight: 900;
}

.credits-flow strong {
  font-size: 19px;
  line-height: 1.25;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 880px;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid var(--pricing-line);
  border-radius: 8px;
  background: #fff;
  padding: 18px 20px;
  box-shadow: none;
}

.faq-list summary {
  cursor: pointer;
  color: var(--pricing-ink);
  font-size: 17px;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--pricing-muted);
  line-height: 1.65;
}

.pricing-final-cta {
  margin-bottom: 64px;
  border: 1px solid rgba(8, 124, 255, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 0%, rgba(215, 161, 46, 0.22), transparent 28%),
    linear-gradient(135deg, #102225 0%, #12383d 48%, #087cff 100%);
  color: #fff;
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
  box-shadow: 0 18px 48px rgba(17, 32, 36, 0.18);
}

.pricing-final-cta span {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.pricing-final-cta h2 {
  max-width: none;
  margin: 16px auto 24px;
  color: #fff;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.12;
  white-space: nowrap;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.final-cta-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #fff;
  color: var(--pricing-teal-dark) !important;
  padding: 0 18px;
  font-weight: 900;
}

.final-cta-actions a.enterprise {
  background: var(--pricing-gold);
  color: #3d2a00 !important;
}

@media (max-width: 1040px) {
  .pricing-nav {
    grid-template-columns: 1fr auto;
  }

  .pricing-nav nav {
    display: none;
  }

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

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

@media (max-width: 720px) {
  .pricing-nav {
    min-height: auto;
    padding: 14px 16px;
  }

  .pricing-brand {
    display: grid;
    gap: 2px;
  }

  .pricing-nav-cta {
    padding: 0 12px;
  }

  .pricing-hero,
  .pricing-section,
  .pricing-final-cta {
    width: min(100% - 24px, 1180px);
  }

  .pricing-hero {
    padding-top: 54px;
  }

  .pricing-hero h1 {
    font-size: 40px;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    min-height: auto;
  }

  .credits-allowance,
  .credits-flow {
    grid-template-columns: 1fr;
  }

  .credits-flow li {
    min-height: 126px;
    border-right: 0;
    border-bottom: 1px solid var(--pricing-line);
  }

  .credits-flow li:last-child {
    border-bottom: 0;
  }

  .credits-flow li:not(:last-child)::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -12px;
    transform: translateX(-50%) rotate(90deg);
  }

  .final-cta-actions {
    display: grid;
  }

  .pricing-final-cta h2 {
    white-space: normal;
  }
}

/* Pricing Page - restore the preferred light visual theme without changing layout. */
body.pricing-page {
  background:
    radial-gradient(circle at 20% 4%, rgba(216, 162, 53, 0.2), transparent 26%),
    radial-gradient(circle at 80% 0%, rgba(8, 124, 255, 0.2), transparent 30%),
    #f4f7fa;
}

.pricing-nav {
  border-bottom-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(120deg, rgba(13, 31, 34, 0.96), rgba(17, 91, 99, 0.96)),
    rgba(13, 31, 34, 0.96);
  color: #fff;
  box-shadow: 0 18px 48px rgba(9, 20, 24, 0.16);
}

.pricing-brand,
.pricing-brand strong {
  color: #fff;
}

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

.pricing-nav nav {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.pricing-nav nav a {
  color: rgba(255, 255, 255, 0.86);
}

.pricing-nav nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.pricing-nav-cta {
  background: #fff;
  color: var(--pricing-teal-dark) !important;
}

body.pricing-page .pricing-hero .pricing-kicker {
  border-color: rgba(8, 124, 255, 0.18);
  background: rgba(8, 124, 255, 0.08);
  color: var(--pricing-teal);
}

.pricing-hero h1 {
  color: var(--pricing-ink);
}

.pricing-hero > p {
  color: #526b7b;
}

.pricing-card {
  border-color: rgba(18, 35, 40, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
    #fff;
  box-shadow: 0 24px 70px rgba(14, 30, 34, 0.08);
}

.pricing-card.featured,
.pricing-card.pro {
  border-color: rgba(216, 162, 53, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 250, 234, 0.98), rgba(255, 255, 255, 0.92)),
    #fff;
}

.pricing-card.pro {
  box-shadow: 0 28px 80px rgba(216, 162, 53, 0.18);
}

.plan-badge {
  background: var(--pricing-gold);
  color: #3b2600;
}

.enterprise-card {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(13, 31, 34, 0.98), rgba(8, 124, 255, 0.94)),
    var(--pricing-teal-dark);
  color: #fff;
}

.enterprise-card p,
.enterprise-card .plan-audience,
.enterprise-card li,
.enterprise-card .plan-price small {
  color: rgba(255, 255, 255, 0.78);
}

.enterprise-card .plan-price {
  color: #fff;
}

.enterprise-card li::before {
  background: var(--pricing-gold);
}

.plan-cta {
  background: var(--pricing-teal);
  color: #fff !important;
}

.plan-cta.secondary {
  background: #eef5f4;
  color: var(--pricing-teal-dark) !important;
}

.plan-cta.enterprise {
  background: #fff;
  color: var(--pricing-teal-dark) !important;
}

/* Keep every pricing section heading aligned to the same horizontal center. */
.pricing-section > .section-heading {
  display: grid;
  width: 100%;
  justify-items: center;
  text-align: center;
}

.pricing-section > .section-heading > span,
.pricing-section > .section-heading > h2,
.pricing-section > .section-heading > p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Monthly / annual price switch. */
.billing-toggle {
  display: inline-flex;
  float: left;
  gap: 3px;
  margin-top: 46px;
  padding: 3px;
  border: 1px solid rgba(8, 124, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.billing-toggle button {
  min-width: 54px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--pricing-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.billing-toggle button.active {
  background: var(--pricing-teal);
  color: #fff;
}

.pricing-cards {
  clear: both;
  margin-top: 12px;
}

.plan-price[data-billing-price] {
  position: relative;
}

.annual-saving {
  position: absolute;
  top: 50%;
  right: 0;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--pricing-gold);
  color: #3b2600;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(-50%);
}

.annual-saving[hidden] {
  display: none;
}

/* Collapsible plan audience and pricing rows. */
.comparison-group-toggle {
  position: relative;
  width: 100%;
  height: auto;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0 32px;
  font: inherit;
  font-weight: inherit;
  text-align: center;
  cursor: pointer;
}

.comparison-group-toggle::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
}

.comparison-group-toggle[aria-expanded="true"]::after {
  content: "−";
}

.comparison-group-toggle:hover {
  background: transparent;
  color: inherit;
}

.comparison-detail-row[hidden] {
  display: none;
}

/* Comparison table category headings. */
body.pricing-page .pricing-comparison-table .comparison-band td {
  color: #fff;
  text-align: left !important;
}

body.pricing-page .pricing-comparison-table .plan-band td {
  background: linear-gradient(100deg, #233f49 0%, #315e68 100%);
}

body.pricing-page .pricing-comparison-table .module-band td {
  background: linear-gradient(100deg, #344535 0%, #596b47 100%);
}

body.pricing-page .pricing-comparison-table .workflow-band td {
  background: linear-gradient(100deg, #203c48 0%, #2f6670 100%);
}

body.pricing-page .pricing-comparison-table .credits-band td {
  background: linear-gradient(100deg, #234944 0%, #3b776a 100%);
}

body.pricing-page .pricing-comparison-table .enterprise-band td {
  background: linear-gradient(100deg, #3a344b 0%, #5c4d69 100%);
}

.comparison-group-toggle {
  padding-right: 32px;
  padding-left: 0;
  color: #fff;
  text-align: left;
}

.comparison-group-toggle::before {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.14);
  line-height: 20px;
  text-align: center;
}

.comparison-group-toggle[data-comparison-group="plan"]::before {
  content: "👥";
  border-color: rgba(255, 224, 146, 0.82);
  background: #f0c45a;
}

.comparison-group-toggle[data-comparison-group="module"]::before {
  content: "🧩";
}

.comparison-group-toggle[data-comparison-group="workflow"]::before {
  content: "⚙";
}

.comparison-group-toggle[data-comparison-group="credits"]::before {
  content: "●";
  color: var(--pricing-gold);
}

.comparison-group-toggle[data-comparison-group="enterprise"]::before {
  content: "🏢";
}

/* Highlight the Pro credits allowance without changing its layout. */
.credits-allowance span:nth-child(2) {
  border-color: rgba(215, 161, 46, 0.72);
  background: linear-gradient(135deg, #fff4cf 0%, #f4c75f 100%);
  color: #3b2a05;
}

.pricing-final-cta h2 {
  font-size: clamp(28px, 3.2vw, 46px);
}

/* Secondary trial entry for paid individual plans. */
.plan-actions {
  display: grid;
  gap: 12px;
}

.trial-link {
  justify-self: center;
  color: var(--pricing-teal) !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.trial-link:hover {
  color: var(--pricing-teal-dark) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Keep card details and primary actions aligned when no trial link is present. */
@media (min-width: 641px) {
  .pricing-card > p {
    min-height: 72px;
  }

  .pricing-card:first-child li:last-child {
    min-height: 43.5px;
  }

  .pricing-card:not(.featured):not(.pro) > .plan-cta {
    margin-bottom: 27.6px;
  }
}

/* Raise the Solo / Pro badges onto the card edge and release label space. */
.pricing-card.featured .plan-badge,
.pricing-card.pro .plan-badge {
  top: -13px;
}

.pricing-card.featured .plan-audience,
.pricing-card.pro .plan-audience {
  padding-right: 0;
  white-space: nowrap;
}

body.pricing-page .pricing-comparison-table .comparison-detail-row[data-comparison-content="enterprise"] {
  background: linear-gradient(100deg, #fff8e6 0%, #f8e4ad 100%);
}

/* MM3D Slicer processing dialog: desktop-software surface, not website chrome. */
.slicer-execution-dialog {
  overflow: hidden;
  border: 1px solid #87949b;
  border-radius: 4px;
  background: #e9edef;
  box-shadow: 0 18px 48px rgba(9, 27, 34, 0.2);
  color: #101820;
}

.slicer-dialog-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 8px 14px;
  border-bottom: 1px solid #aab5c1;
  background: linear-gradient(#f7f9fa, #e7ecef);
}

.slicer-dialog-titlebar h2,
.incident-console h3,
.simulator-event-panel h3 {
  margin: 0;
}

.slicer-dialog-titlebar h2 { font-size: 17px; font-weight: 650; }
.slicer-dialog-titlebar div > span { color: #647178; font-size: 11px; }
.slicer-dialog-mode { border: 1px solid #b68019; border-radius: 3px; padding: 4px 7px; background: #fff2c7; color: #76520a; font-size: 10px; font-weight: 800; letter-spacing: .08em; }

.simulator-toolbar {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.25fr 1fr 1fr;
  gap: 1px;
  border-bottom: 1px solid #aab5c1;
  background: #aab5c1;
}

.simulator-toolbar > label,
.simulator-toolbar > div {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 9px 12px;
  background: #f5f7f8;
}

.simulator-toolbar span { color: #69757b; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.simulator-toolbar strong,
.simulator-toolbar select { min-height: 26px; color: #101820; font-size: 13px; font-weight: 700; }
.simulator-toolbar select { border: 1px solid #aab4b9; border-radius: 2px; background: #fff; }

.connection-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid #aab5c1;
  background: #20272b;
  color: #dce5e8;
}

.connection-strip > strong { margin-left: auto; font-family: "MM3D Chinese Serif", Consolas, monospace; font-size: 12px; }
.status-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #4d5b61; border-radius: 3px; padding: 3px 7px; color: #c8d2d6; font-size: 10px; font-weight: 700; }
.status-chip i { width: 7px; height: 7px; border-radius: 50%; background: #879399; }
.status-chip.online i { background: #4fc06a; box-shadow: 0 0 7px rgba(79, 192, 106, .8); }
.status-chip.warning i { background: #f4b740; }
.status-chip.offline i { background: #eb5b52; box-shadow: 0 0 7px rgba(235, 91, 82, .7); }

.slicer-execution-dialog .processing-lab-layout { padding: 12px; background: #d8dde0; }
.slicer-execution-dialog .execution-window { min-height: 580px; border: 1px solid #8f9ba1; border-radius: 2px; background: #f0f2f3; }
.slicer-execution-dialog .machine-stage { border-radius: 0; background: #222526; }
.slicer-execution-dialog .execution-sidebar { border-left-color: #9da8ad; border-radius: 0; background: #eceff1; }
.slicer-execution-dialog .stage-overlay { border-color: rgba(255,255,255,.2); background: rgba(15,20,22,.82); }

.processing-live-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid #aab5c1; background: #aab5c1; }
.processing-live-stats div { display: grid; gap: 3px; padding: 7px; background: #fff; text-align: center; }
.processing-live-stats span { color: #6b777d; font-size: 9px; }
.processing-live-stats strong { font: 700 13px Consolas, monospace; }
.machine-actions { grid-template-columns: 1fr 1fr 1fr; }
.machine-actions .pause-command { background: #b67b16; }
.machine-actions .pause-command:hover { background: #94620e; }

.incident-console {
  margin: 0 12px 12px;
  border: 1px solid #8f9ba1;
  border-radius: 3px;
  background: #f5f7f8;
}

.incident-console-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px; }
.incident-console-head span,
.simulator-event-panel > div > span { color: #9b2f2a; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.incident-console h3,
.simulator-event-panel h3 { font-size: 15px; }
.incident-console > p { margin: 0; padding: 0 12px 10px; color: #667279; font-size: 11px; }
.recover-command { border: 1px solid #277540; background: #edf8f0; color: #226838; }
.incident-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-top: 1px solid #b9c2c6; background: #b9c2c6; }
.incident-buttons button { display: grid; gap: 3px; min-height: 58px; border: 0; border-radius: 0; background: #fff; color: #263238; text-align: left; }
.incident-buttons button:hover { background: #fff0ef; color: #912f29; }
.incident-buttons button.active { background: #9e332d; color: #fff; }
.incident-buttons span { opacity: .7; font-size: 9px; }

.simulator-event-panel { display: grid; grid-template-columns: 190px 1fr; gap: 12px; margin: 0 12px 12px; border: 1px solid #8f9ba1; border-radius: 3px; padding: 10px 12px; background: #20272b; color: #eef3f8; }
.simulator-event-panel .event-log { max-height: 180px; border-left-color: #526168; }
.simulator-event-panel .event-item strong { color: #eef3f8; }
.simulator-event-panel .event-item em,
.simulator-event-panel .event-item span { color: #9eacb2; }

@media (max-width: 980px) {
  .simulator-toolbar { grid-template-columns: repeat(2, 1fr); }
  .incident-buttons { grid-template-columns: repeat(2, 1fr); }
  .simulator-event-panel { grid-template-columns: 1fr; }
}

.admin-processing-record { width: 100%; }
.admin-processing-record > summary { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.admin-processing-record > summary::-webkit-details-marker { display: none; }
.admin-processing-record > summary::after { content: "+"; grid-column: 4; color: #607078; font-size: 18px; }
.admin-processing-record[open] > summary::after { content: "−"; }
.admin-processing-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; border-top: 1px solid #dce3e6; padding-top: 10px; }
.admin-processing-meta span { border-radius: 3px; padding: 4px 7px; background: #edf2f4; color: #57676e; font-size: 10px; }
.admin-processing-timeline { display: grid; gap: 0; margin: 12px 0 0; padding: 0 0 0 14px; border-left: 2px solid #ced9dd; list-style: none; }
.admin-processing-timeline li { position: relative; display: grid; grid-template-columns: 145px 150px 1fr; gap: 10px; padding: 7px 8px 7px 14px; border-bottom: 1px solid #eef3f8; font-size: 11px; }
.admin-processing-timeline li::before { content: ""; position: absolute; top: 12px; left: -19px; width: 8px; height: 8px; border-radius: 50%; background: #3c8792; }
.admin-processing-timeline li.warning::before { background: #d28a1c; }
.admin-processing-timeline li.critical::before { background: #c8443d; }
.admin-processing-timeline time { color: #77868d; font-family: "MM3D Chinese Serif", Consolas, monospace; }
.admin-processing-timeline span { color: #66757b; }

@media (max-width: 760px) {
  .admin-processing-record > summary { grid-template-columns: 1fr; }
  .admin-processing-record > summary::after { grid-column: 2; grid-row: 1; }
  .admin-processing-timeline li { grid-template-columns: 1fr; gap: 3px; }
}

/* Preserve the license block appearance at its new table position. */
body.pricing-page .pricing-comparison-table .comparison-license-row > td {
  width: auto !important;
  padding: 0;
  text-align: left !important;
  font-weight: normal;
}

.credits-section .work-order-term {
  font-weight: 900;
}

.credits-explain-card em {
  color: var(--pricing-teal);
  font-style: normal;
  font-weight: 900;
}

.plan-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan-tier-icon {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.plan-tier-icon.enterprise-tier-icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

/* Present the credits steps as a clean, single-path process flow. */
.credits-flow {
  position: relative;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(8, 124, 255, 0.16);
  background: #f7faf9;
  box-shadow: none;
}

.credits-flow::before {
  content: "";
  position: absolute;
  top: calc(50% - 26px);
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  background: rgba(8, 124, 255, 0.24);
}

.credits-flow li,
.credits-flow li:last-child {
  z-index: 1;
  grid-template-rows: 34px 54px;
  justify-items: center;
  min-height: 220px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  box-shadow: none;
}

.credits-flow li::before,
.credits-flow li::after {
  content: none !important;
}

.credits-flow li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid #f7faf9;
  border-radius: 50%;
  background: var(--pricing-teal);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(8, 124, 255, 0.22);
}

@media (max-width: 720px) {
  .credits-flow::before {
    top: 28px;
    right: auto;
    bottom: 28px;
    left: 29px;
    width: 2px;
    height: auto;
  }

  .credits-flow li,
  .credits-flow li:last-child {
    grid-template-columns: 34px 1fr;
    grid-template-rows: auto;
    align-content: center;
    justify-items: start;
    gap: 16px;
    min-height: 100px;
    padding: 20px 12px;
    text-align: left;
  }
}

/* Admin sidebar readability */
body.admin-page.admin-rebuilt .admin-console:not(.hidden) {
  gap: 0 !important;
}

body.admin-page.admin-rebuilt .admin-content {
  margin-left: 0 !important;
}

body.admin-page.admin-rebuilt .admin-nav-group-label {
  margin: 17px 11px 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

body.admin-page.admin-rebuilt .admin-nav {
  min-height: 50px;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

body.admin-page.admin-rebuilt .admin-nav:hover,
body.admin-page.admin-rebuilt .admin-nav.active {
  color: #fff;
}

body.admin-page.admin-rebuilt .admin-nav-icon {
  width: 30px;
  height: 30px;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

body.admin-page.admin-rebuilt .admin-nav.active .admin-nav-icon {
  border-color: rgba(240, 189, 81, 0.8);
  background: rgba(221, 167, 47, 0.14);
  color: #ffd36f;
}

body.admin-page.admin-rebuilt .admin-account-menu {
  position: relative;
}

body.admin-page.admin-rebuilt .admin-account-trigger {
  min-width: 0;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.admin-page.admin-rebuilt .admin-account-trigger:hover,
body.admin-page.admin-rebuilt .admin-account-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.11);
}

body.admin-page.admin-rebuilt .admin-account-caret {
  display: block;
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1;
  transition: transform 0.16s ease;
}

body.admin-page.admin-rebuilt .admin-account-trigger[aria-expanded="true"] .admin-account-caret {
  transform: rotate(180deg);
}

body.admin-page.admin-rebuilt .admin-account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  width: 300px;
  padding: 16px;
  border: 1px solid #d5dde6;
  border-radius: 10px;
  background: #fff;
  color: #101820;
  box-shadow: 0 18px 44px rgba(8, 34, 38, 0.22);
}

body.admin-page.admin-rebuilt .admin-account-session {
  display: grid;
  gap: 6px;
  padding: 0 0 14px;
  border-bottom: 1px solid #e1e8e8;
  color: #617277;
  font-size: 12px;
  line-height: 1.45;
}

body.admin-page.admin-rebuilt .admin-account-language {
  display: grid;
  gap: 7px;
  padding: 14px 0;
  color: #42575c;
  font-size: 12px;
  font-weight: 800;
}

body.admin-page.admin-rebuilt .admin-account-language select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cdd9da;
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
  color: #101820;
  font: inherit;
}

body.admin-page.admin-rebuilt .admin-account-logout {
  width: 100%;
  min-height: 40px;
  border: 1px solid #b83c42;
  border-radius: 7px;
  background: #b83c42;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

body.admin-page.admin-rebuilt .admin-account-logout:hover {
  background: #9f3036;
}

/* Homepage product positioning and module detail presentation. */
body.home-page .home-nav {
  min-height: 84px;
}

body.home-page .home-brand {
  gap: 10px;
  font-size: 24px;
}

body.home-page .home-brand strong {
  font-size: 27px;
}

body.home-page .home-nav > nav a,
body.home-page .home-nav-actions > a {
  padding: 10px 13px;
  font-size: 21px;
}

body.home-page .home-user-menu > button {
  min-height: 53px;
  gap: 11px;
  padding: 6px 15px 6px 7px;
}

body.home-page .home-user-menu > button > span {
  width: 38px;
  height: 38px;
  font-size: 18px;
}

body.home-page .home-user-menu > button > strong {
  max-width: 190px;
  font-size: 20px;
}

body.home-page .home-user-dropdown {
  width: 280px;
}

body.home-page .home-user-dropdown > span {
  font-size: 18px;
}

body.home-page .home-user-dropdown > a,
body.home-page .home-user-dropdown > button {
  font-size: 20px;
}

.home-page .home-hero {
  position: relative;
  min-height: calc(100vh - 86px);
  max-height: 860px;
  grid-template-columns: minmax(460px, 0.82fr) minmax(680px, 1.18fr);
  gap: 0;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
  padding-bottom: 68px;
}

.home-page .home-hero::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: 47%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(248, 248, 242, 0.98) 0%, rgba(248, 248, 242, 0.82) 72%, rgba(248, 248, 242, 0) 100%);
}

.home-page .home-hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  padding: 16px 0;
  transform: translateY(-20px);
}

.home-page .home-hero h1 {
  margin-bottom: 50px;
  font-size: clamp(58px, 5.2vw, 82px);
}

.home-page .home-hero h1::after {
  width: 54px;
  height: 5px;
  bottom: -25px;
  border-radius: 999px;
}

.home-page .home-hero-copy > p {
  max-width: 590px;
  color: #435d64;
  font-size: 17px;
  line-height: 1.88;
}

.home-page .home-hero-copy > p strong {
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.5;
}

.home-page .home-hero-benefits {
  margin-top: 24px;
}

.home-page .home-hero-actions {
  margin-top: 34px;
}

.home-hero-art {
  position: absolute;
  top: -86px;
  right: -90px;
  z-index: 1;
  display: block;
  width: auto;
  max-width: none;
  height: calc(100% + 86px);
  pointer-events: none;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 38%, rgba(0, 0, 0, 0.18) 40%, rgba(0, 0, 0, 0.72) 43%, #000 46% 100%);
  mask-image: linear-gradient(90deg, transparent 0 38%, rgba(0, 0, 0, 0.18) 40%, rgba(0, 0, 0, 0.72) 43%, #000 46% 100%);
}

.home-page .home-hero-copy::after {
  display: none;
}

@media (max-width: 1120px) {
  .home-page .home-hero {
    grid-template-columns: minmax(420px, 0.95fr) minmax(500px, 1.05fr);
  }

  .home-page .home-hero-copy > p { max-width: 520px; }
}

@media (max-width: 850px) {
  .home-page .home-hero {
    min-height: auto;
    max-height: none;
    grid-template-columns: 1fr;
    padding-top: 72px;
    padding-bottom: 440px;
  }

  .home-page .home-hero::after { width: 100%; }
  .home-page .home-hero-copy > p { max-width: 680px; }
  .home-page .home-hero-copy { transform: translateY(-12px); }
  .home-hero-art {
    top: auto;
    right: -110px;
    bottom: 0;
    height: 510px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0 25%, rgba(0, 0, 0, 0.24) 33%, #000 47% 100%);
    mask-image: linear-gradient(90deg, transparent 0 25%, rgba(0, 0, 0, 0.24) 33%, #000 47% 100%);
  }
}

@media (max-width: 560px) {
  .home-page .home-hero { padding-bottom: 330px; }
  .home-page .home-hero h1 { margin-bottom: 42px; font-size: 46px; }
  .home-page .home-hero-copy > p { font-size: 15px; }
  .home-page .home-hero-copy > p strong { font-size: 19px; }
  .home-page .home-hero-copy { transform: none; }
  .home-hero-art {
    right: -190px;
    height: 370px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0 22%, rgba(0, 0, 0, 0.22) 31%, #000 48% 100%);
    mask-image: linear-gradient(90deg, transparent 0 22%, rgba(0, 0, 0, 0.22) 31%, #000 48% 100%);
  }
}

.home-hero-copy > p strong {
  display: block;
  margin-bottom: 8px;
  color: #0a1b31;
  font-size: 21px;
  line-height: 1.45;
}

.home-hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.home-hero-benefits li {
  border: 1px solid #d79b84;
  border-radius: 999px;
  background: #f5e4dc;
  padding: 7px 11px;
  color: #7a3825;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 5px 14px rgba(65, 48, 42, 0.08);
}

.home-hero-benefits li:nth-child(2) {
  border-color: #9cbbc8;
  background: #e0ebf0;
  color: #315b6d;
}

.home-hero-benefits li:nth-child(3) {
  border-color: #b8b9c9;
  background: #e7e7ef;
  color: #4a516b;
}

.home-module-layout.compact article {
  min-height: 430px;
}

.home-module-promise {
  display: block;
  max-width: 470px;
  margin: 0 0 12px;
  color: #0a2445;
  font-size: 18px;
  line-height: 1.55;
}

.home-module-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.home-module-features li {
  border: 1px solid rgba(8, 124, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 124, 255, 0.07);
  padding: 6px 10px;
  color: #315d63;
  font-size: 12px;
  font-weight: 800;
}

.home-module-layout.compact .home-module-footer {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #dce6e6;
}

.home-module-footer > strong {
  color: #087cff;
  font-size: 12px;
  font-weight: 950;
}

.home-module-details summary {
  width: fit-content;
  color: #087cff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.home-module-details summary::-webkit-details-marker {
  display: none;
}

.home-module-details[open] summary {
  margin-bottom: 12px;
}

.home-module-layout.compact .home-module-details p {
  max-width: none;
  margin: 0;
  color: #566a70;
  font-size: 14px;
  line-height: 1.8;
}

.home-process-memory {
  display: grid;
  grid-template-columns: minmax(430px, 0.92fr) minmax(0, 1.08fr);
  gap: 76px;
  align-items: center;
  padding: 70px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid #dbe5e5;
  border-bottom: 1px solid #dbe5e5;
  background:
    radial-gradient(circle at 8% 10%, rgba(184, 92, 62, 0.1), transparent 25%),
    radial-gradient(circle at 92% 88%, rgba(63, 112, 136, 0.1), transparent 28%),
    #eef3f2;
  color: #101820;
}

.home-process-memory-copy > span {
  color: #a84f34;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.home-process-memory h2 {
  margin: 12px 0 16px;
  color: #15383e;
  font-size: clamp(36px, 3.8vw, 50px);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.home-process-memory-copy > p {
  margin: 0;
  color: #607278;
  font-size: 16px;
  line-height: 1.8;
}

.home-process-memory > ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-process-memory li {
  min-height: 170px;
  border: 1px solid #d6e0e1;
  border-top: 4px solid #b85c3e;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  box-shadow: 0 14px 34px rgba(28, 57, 62, 0.07);
}

.home-process-memory li:nth-child(2) {
  border-top-color: #3f7088;
}

.home-process-memory li:nth-child(3) {
  border-top-color: #59627d;
}

.home-process-memory li > span {
  color: #a84f34;
  font-size: 11px;
  font-weight: 950;
}

.home-process-memory li:nth-child(2) > span {
  color: #3f7088;
}

.home-process-memory li:nth-child(3) > span {
  color: #59627d;
}

.home-process-memory li > strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 17px;
  color: #19383d;
}

.home-process-memory li > p {
  margin: 0;
  color: #627278;
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 1050px) {
  .home-process-memory {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 700px) {
  .home-hero-benefits {
    display: grid;
  }

  .home-hero-benefits li {
    width: fit-content;
  }

  .home-module-layout.compact article {
    min-height: 0;
  }

  .home-process-memory {
    padding: 64px 20px;
  }

  .home-process-memory h2 {
    font-size: clamp(28px, 8.5vw, 36px);
  }

  .home-process-memory .home-title-lines > span {
    white-space: nowrap;
  }

  .home-process-memory > ul {
    grid-template-columns: 1fr;
  }

  .home-process-memory li {
    min-height: 0;
  }
}

/* Compact, more legible homepage footer. */
.home-footer {
  padding-top: 36px;
  padding-bottom: 18px;
}

.home-footer > div:first-child p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
}

.home-footer > nav {
  gap: 32px;
  margin-top: 24px;
  padding-top: 24px;
}

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

.home-footer nav a {
  font-size: 15px;
  line-height: 1.55;
}

.home-footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  font-size: 13px;
}

/* Homepage floating Enterprise / OEM drawer. */
.enterprise-floating-tab {
  position: fixed;
  top: 52%;
  right: 0;
  z-index: 105;
  display: grid;
  min-width: 44px;
  min-height: 150px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: linear-gradient(180deg, #185a61, #10383d);
  color: #fff;
  box-shadow: 0 12px 34px rgba(7, 30, 34, 0.26);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.enterprise-floating-tab span {
  writing-mode: vertical-rl;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.enterprise-floating-tab:hover {
  transform: translateX(-4px);
  background: linear-gradient(180deg, #1b6971, #123f44);
}

.enterprise-floating-tab:focus-visible,
.enterprise-drawer-close:focus-visible,
.enterprise-drawer a:focus-visible {
  outline: 3px solid #f0b536;
  outline-offset: 3px;
}

.enterprise-drawer-open {
  overflow: hidden;
}

.enterprise-drawer-open .enterprise-floating-tab {
  opacity: 0;
  pointer-events: none;
}

.enterprise-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(6, 22, 25, 0.54);
  opacity: 0;
  transition: opacity 0.26s ease;
}

.enterprise-drawer-overlay.is-open {
  opacity: 1;
}

.enterprise-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 120;
  width: min(470px, calc(100vw - 40px));
  height: 100dvh;
  overflow-y: auto;
  background:
    radial-gradient(circle at 100% 0, rgba(35, 139, 149, 0.22), transparent 34%),
    #0a2445;
  color: #fff;
  padding: 76px 48px 48px;
  box-shadow: -24px 0 70px rgba(4, 20, 23, 0.34);
  transform: translateX(100%);
  transition: transform 0.26s ease;
}

.enterprise-drawer.is-open {
  transform: translateX(0);
}

.enterprise-drawer-close {
  position: absolute;
  top: 22px;
  right: 24px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.enterprise-drawer-kicker {
  color: #ff9d24;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.enterprise-drawer h2 {
  margin: 14px 0 18px;
  color: #fff;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.08;
}

.enterprise-drawer > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.8;
}

.enterprise-drawer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.enterprise-drawer li {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 800;
}

.enterprise-drawer-actions {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.enterprise-drawer-actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-weight: 900;
  text-decoration: none;
}

.enterprise-drawer-actions a:first-child {
  background: #ff9d24;
  color: #302303;
}

.enterprise-drawer-actions a:last-child {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
}

@media (max-width: 700px) {
  .enterprise-floating-tab {
    top: auto;
    right: 14px;
    bottom: 18px;
    min-width: 0;
    min-height: 44px;
    border-right: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 0 17px;
  }

  .enterprise-floating-tab span {
    writing-mode: horizontal-tb;
    letter-spacing: 0.04em;
  }

  .enterprise-drawer {
    top: auto;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: min(82dvh, 680px);
    border-radius: 18px 18px 0 0;
    padding: 62px 22px 28px;
    transform: translateY(100%);
  }

  .enterprise-drawer.is-open {
    transform: translateY(0);
  }

  .enterprise-drawer h2 {
    font-size: 36px;
  }
}

/* Keep the complete admin navigation visible without vertical scrolling. */
body.admin-page.admin-rebuilt .admin-sidebar {
  padding: 12px 14px;
  overflow-y: hidden;
  border-radius: 0;
}

body.admin-page.admin-rebuilt .admin-nav-group-label {
  margin: 9px 11px 4px;
}

body.admin-page.admin-rebuilt .admin-nav {
  min-height: 43px;
  margin: 1px 0;
}

body.admin-page.admin-rebuilt .admin-sidebar-link {
  min-height: 40px;
  border-radius: 8px;
  font-size: 14px;
}

body.admin-page.admin-rebuilt .admin-global-search {
  position: relative;
}

body.admin-page.admin-rebuilt .admin-search-clear {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

body.admin-page.admin-rebuilt .admin-search-clear:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

body.admin-page.admin-rebuilt .admin-search-status {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 110;
  padding: 9px 12px;
  border: 1px solid #d5dde6;
  border-radius: 7px;
  background: #fff;
  color: #5d6f74;
  font-size: 12px;
  box-shadow: 0 10px 28px rgba(8, 34, 38, 0.16);
}

body.admin-page.admin-rebuilt .admin-runtime-badge.checking i,
body.admin-page.admin-rebuilt .admin-runtime-badge.error i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

body.admin-page.admin-rebuilt .admin-runtime-badge.checking i {
  background: #ff9d24;
  box-shadow: 0 0 0 3px rgba(224, 172, 62, 0.12);
}

body.admin-page.admin-rebuilt .admin-runtime-badge.error {
  border-color: rgba(226, 87, 92, 0.42);
  color: #ffc9cb;
}

body.admin-page.admin-rebuilt .admin-runtime-badge.error i {
  background: #e2575c;
  box-shadow: 0 0 0 3px rgba(226, 87, 92, 0.13);
}

body.admin-page.admin-rebuilt .admin-runtime-badge.environment {
  border-color: #d9a72d;
  background: rgba(217, 167, 45, 0.18);
  color: #ffd766;
}

body.admin-page.admin-rebuilt .admin-runtime-badge.environment.staging {
  border-color: #ed933f;
  background: rgba(237, 147, 63, 0.2);
  color: #ffd0a3;
}

body.admin-page.admin-rebuilt .admin-runtime-badge.environment.production {
  border-color: #e2575c;
  background: rgba(226, 87, 92, 0.24);
  color: #ffc2c5;
}

body.admin-page.admin-rebuilt .admin-runtime-badge.backend {
  border-color: #3d9ca5;
  background: rgba(61, 156, 165, 0.2);
  color: #9ee8ed;
}

body.admin-page.admin-rebuilt .admin-runtime-badge.checking {
  border-color: #d9a72d;
  background: rgba(217, 167, 45, 0.18);
  color: #ffe09a;
}

body.admin-page.admin-rebuilt .admin-runtime-badge.healthy {
  border-color: #45b981;
  background: rgba(69, 185, 129, 0.18);
  color: #a9f0cd;
}

body.admin-page.admin-rebuilt .admin-runtime-badge.error {
  border-color: #e2575c;
  background: rgba(226, 87, 92, 0.2);
  color: #ffc2c5;
}

body.admin-page.admin-rebuilt .admin-topbar-brand > strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
}

body.admin-page.admin-rebuilt .admin-topbar-brand > strong > span {
  color: inherit;
  font: inherit;
  line-height: inherit;
}

body.admin-page.admin-rebuilt .admin-topbar-brand > strong > span:first-child {
  color: var(--admin-gold);
}

body.admin-page.admin-rebuilt .admin-support-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 18px;
  padding: 5px;
  border: 1px solid var(--admin-line);
  border-radius: 9px;
  background: #e5eceb;
}

body.admin-page.admin-rebuilt .admin-support-tabs button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  padding: 0 16px;
  background: transparent;
  color: #52666b;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

body.admin-page.admin-rebuilt .admin-support-tabs button:hover {
  color: var(--admin-teal);
}

body.admin-page.admin-rebuilt .admin-support-tabs button.active {
  background: #fff;
  color: var(--admin-teal);
  box-shadow: 0 2px 8px rgba(20, 54, 59, 0.1);
}

body.admin-page.admin-rebuilt .admin-support-tabs button span {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 99px;
  background: #d6e3e2;
  color: #38565b;
  font-size: 11px;
}

body.admin-page.admin-rebuilt .admin-support-tabs button.active span {
  background: rgba(221, 167, 47, 0.2);
  color: #80600f;
}

/* Wave 2 (2026-09-14): public topbars use site-topbar.css at homepage scale (B2).
   Keep enlarged scale only for logged-in / checkout chrome not yet migrated. */
:is(
  .settings-topbar,
  .checkout-header
) {
  min-height: 84px;
}

:is(
  .settings-brand,
  .checkout-brand
) {
  font-size: 27px;
}

:is(
  .settings-topbar
) nav a,
.settings-topbar nav button,
.checkout-security {
  font-size: 21px;
}

body.admin-page.admin-rebuilt .billing-standalone-topbar {
  min-height: 84px;
}

body.admin-page.admin-rebuilt .admin-topbar-brand > strong {
  font-size: 24px;
}

body.admin-page.admin-rebuilt .admin-global-search input {
  font-size: 20px;
}

body.admin-page.admin-rebuilt .admin-runtime-badge {
  height: 34px;
  padding-inline: 12px;
  font-size: 14px;
}

body.admin-page.admin-rebuilt .admin-operator-pill b {
  font-size: 18px;
}

body.admin-page.admin-rebuilt .admin-operator-pill small,
body.admin-page.admin-rebuilt .admin-account-dropdown {
  font-size: 15px;
}
.admin-safe-release-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #c8d4dc;
  border-left: 5px solid #b7791f;
  border-radius: 12px;
  background: #fff;
}

.admin-safe-release-card.completed {
  border-left-color: #27835b;
  background: #f4fbf7;
}

.admin-safe-release-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-safe-release-card > header div,
.safe-release-approval {
  display: grid;
  gap: 4px;
}

.safe-release-onsite {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 14px;
  border-radius: 10px;
  background: #f2f6f8;
}

.safe-release-onsite > strong,
.safe-release-onsite > button {
  grid-column: 1 / -1;
}

.safe-release-onsite label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.safe-release-onsite label:has(input[type="text"]),
.safe-release-onsite label:nth-last-of-type(-n + 2) {
  display: grid;
}

.safe-release-onsite input:not([type="checkbox"]) {
  width: 100%;
}

.safe-release-approval {
  padding: 14px;
  border: 1px solid #e2bd71;
  border-radius: 10px;
  background: #fff8e7;
}

@media (max-width: 760px) {
  .safe-release-onsite {
    grid-template-columns: 1fr;
  }
}

/* 2026-08-03 cross-site brand color layer.
   Typography, content, layout dimensions and behavior intentionally remain owned
   by the established page rules above. The accepted homepage is excluded. */
body:not(.home-page) {
  --bg: #f4f7fa;
  --ink: #101820;
  --muted: #617080;
  --line: #d5dde6;
  --panel: #ffffff;
  --primary: #087cff;
  --primary-dark: #0756c7;
  --accent: #ff9d24;
  --good: #1f8a5b;
}

body:is(
  .pricing-page,
  .downloads-page,
  .settings-page,
  .sales-page,
  .support-page,
  .status-page,
  .checkout-page,
  .legal-page,
  .error-page,
  .standalone-info-page
) {
  background:
    radial-gradient(circle at 82% 0%, rgba(8, 124, 255, 0.09), transparent 30%),
    radial-gradient(circle at 12% 4%, rgba(255, 157, 36, 0.07), transparent 23%),
    #f4f7fa;
  color: #101820;
}

body:is(
  .pricing-page,
  .downloads-page,
  .settings-page,
  .sales-page,
  .support-page,
  .status-page,
  .checkout-page,
  .legal-page,
  .error-page,
  .standalone-info-page
)::before,
body:is(
  .pricing-page,
  .downloads-page,
  .settings-page,
  .sales-page,
  .support-page,
  .status-page,
  .checkout-page,
  .legal-page,
  .error-page,
  .standalone-info-page
)::after {
  display: none;
}

body.pricing-page {
  --pricing-ink: #101820;
  --pricing-muted: #617080;
  --pricing-line: #d5dde6;
  --pricing-teal: #087cff;
  --pricing-teal-dark: #071426;
  --pricing-gold: #ff9d24;
  --pricing-soft: #f4f7fa;
  --pricing-panel: #ffffff;
}

body.legal-page {
  --legal-ink: #101820;
  --legal-muted: #617080;
  --legal-line: #d5dde6;
  --legal-teal: #087cff;
}

/* Wave 2: public .site-topbar / .site-brand live in site-topbar.css (B2).
   Do not restyle them here — keeps L2 as the single public-topbar source. */
:is(
  .settings-topbar,
  .checkout-header,
  .standalone-info-nav
) {
  border-bottom-color: rgba(255, 255, 255, 0.13);
  background: linear-gradient(120deg, #030b17 0%, #071426 48%, #0a2445 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(5, 20, 42, 0.12);
}

:is(
  .settings-brand,
  .checkout-brand,
  .standalone-info-brand
) span {
  color: #ff9d24;
}

:is(
  .settings-topbar,
  .checkout-header,
  .standalone-info-nav
) a:focus-visible,
body:not(.home-page) button:focus-visible,
body:not(.home-page) input:focus-visible,
body:not(.home-page) select:focus-visible,
body:not(.home-page) textarea:focus-visible {
  outline-color: #1d9bff;
}

:is(
  .pricing-nav-cta,
  .downloads-primary-button,
  .account-submit,
  .checkout-submit,
  .plan-cta:not(.enterprise)
) {
  border-color: #087cff;
  background: linear-gradient(135deg, #087cff, #0756c7);
  color: #fff;
  box-shadow: 0 12px 28px rgba(8, 124, 255, 0.2);
}

:is(
  .pricing-nav-cta,
  .downloads-primary-button,
  .account-submit,
  .checkout-submit,
  .plan-cta:not(.enterprise)
):hover {
  border-color: #0b43a6;
  background: linear-gradient(135deg, #0756c7, #0b43a6);
}

:is(.downloads-secondary-button, .plan-cta.secondary) {
  border-color: #c7d1dc;
  background: #ffffff;
  color: #0a1b31;
  box-shadow: none;
}

:is(
  .account-card,
  .settings-card,
  .sales-form-card,
  .support-faq-panel,
  .support-contact-card,
  .downloads-notes-card,
  .standalone-info-card,
  .error-visual
) {
  border-color: #d5dde6;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(5, 20, 42, 0.1);
}

body.account-page {
  color: #eef3f8;
}

body.account-page::after {
  background: linear-gradient(120deg, rgba(3, 11, 23, 0.88), rgba(10, 36, 69, 0.72));
}

body.account-page .account-card,
body.account-page .workspace-option-card {
  border-color: rgba(200, 208, 218, 0.88);
  background: rgba(255, 255, 255, 0.97);
  color: #101820;
  box-shadow: 0 28px 80px rgba(3, 11, 23, 0.24);
}

body.account-page a {
  color: #1d9bff;
}

body.pricing-page .plan-card.pro {
  border-color: rgba(8, 124, 255, 0.58);
  background: linear-gradient(160deg, #ffffff, #edf6ff);
  box-shadow: 0 26px 70px rgba(8, 124, 255, 0.14);
}

body.pricing-page .plan-card.enterprise,
body.pricing-page .pricing-final-cta {
  border-color: rgba(29, 155, 255, 0.42);
  background: linear-gradient(145deg, #061326, #0a2b55);
}

body.pricing-page .plan-badge,
body.pricing-page .billing-save,
body.pricing-page .plan-cta.enterprise {
  border-color: #ff9d24;
  background: #ff9d24;
  color: #101820;
}

body.admin-page.admin-rebuilt {
  --admin-ink: #101820;
  --admin-deep: #071426;
  --admin-deeper: #030b17;
  --admin-teal: #087cff;
  --admin-gold: #ff9d24;
  --admin-bg: #f1f5f8;
  --admin-line: #d5dde6;
  background: var(--admin-bg);
}

body.admin-page.admin-rebuilt .billing-standalone-topbar,
body.admin-page.admin-rebuilt .admin-sidebar {
  background: linear-gradient(145deg, #030b17, #0a1b31);
}

body.admin-page.admin-rebuilt .admin-nav-button.active {
  border-left-color: #1d9bff;
  background: rgba(8, 124, 255, 0.16);
  color: #fff;
}

body.admin-page.admin-rebuilt .admin-support-tabs button.active {
  color: #0756c7;
}

body.admin-page.admin-rebuilt .admin-support-tabs button.active span {
  background: rgba(255, 157, 36, 0.18);
  color: #9a5700;
}

/* 2026-08-03 page-level contrast correction.
   The enterprise consultation is a dark brand canvas with one light form card;
   it must not inherit the shared light-page background. */
body.sales-page {
  background:
    radial-gradient(circle at 84% 12%, rgba(8, 124, 255, 0.2), transparent 34%),
    radial-gradient(circle at 12% 8%, rgba(255, 157, 36, 0.1), transparent 25%),
    linear-gradient(125deg, #030b17 0%, #071426 50%, #0a2445 100%);
  color: #ffffff;
}

body.sales-page .sales-topbar {
  border-bottom-color: rgba(255, 255, 255, 0.13);
  background: transparent;
  box-shadow: none;
}

body.sales-page .sales-intro,
body.sales-page .sales-intro h1,
body.sales-page .sales-capabilities strong,
body.sales-page .sales-response-note strong {
  color: #ffffff;
}

body.sales-page .sales-intro > p,
body.sales-page .sales-capabilities article span,
body.sales-page .sales-response-note ol {
  color: rgba(255, 255, 255, 0.76);
}

body.sales-page .sales-capabilities article {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

body.sales-page .sales-response-note {
  border-left-color: #ff9d24;
  background: rgba(3, 11, 23, 0.46);
}

body.sales-page .sales-form-card {
  border: 1px solid rgba(213, 221, 230, 0.92);
  background: #ffffff;
  color: #101820;
}

/* 2026-08-04 signed-in workspace overview.
   Typography remains inherited from the approved site system. */
.workspace-user-topbar nav a.active,
.settings-topbar nav a.active {
  color: #ffffff;
  background: rgba(8, 124, 255, 0.2);
  box-shadow: inset 0 -3px 0 #1d9bff;
}

/* 2026-08-04 shared workspace plan and billing dialog. */
.workspace-billing-trigger {
  cursor: pointer;
}

.workspace-billing-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 40px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #c7d1dc;
  border-radius: 16px;
  background: #ffffff;
  color: #101820;
  box-shadow: 0 28px 90px rgba(3, 11, 23, 0.28);
}

.workspace-billing-dialog::backdrop {
  background: rgba(3, 11, 23, 0.66);
  backdrop-filter: blur(5px);
}

.workspace-billing-dialog-shell {
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
}

.workspace-billing-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid #d5dde6;
  background: linear-gradient(145deg, #f7f9fb, #eef5ff);
}

.workspace-billing-dialog-head span {
  color: #087cff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.workspace-billing-dialog-head h2 {
  margin: 7px 0 5px;
  color: #101820;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
}

.workspace-billing-dialog-head p {
  margin: 0;
  color: #617080;
  line-height: 1.65;
}

.workspace-billing-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid #c7d1dc;
  border-radius: 8px;
  background: #ffffff;
  color: #0a1b31;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.workspace-billing-close:hover,
.workspace-billing-close:focus-visible {
  border-color: #087cff;
  color: #0756c7;
}

.workspace-billing-body {
  padding: 26px 28px 28px;
}

.workspace-billing-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.workspace-billing-plan-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid #d5dde6;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(5, 20, 42, 0.07);
}

.workspace-billing-plan-card.current {
  border-top: 4px solid #718092;
}

.workspace-billing-plan-card.recommended {
  border-color: #87bfff;
  border-top: 4px solid #087cff;
  background: linear-gradient(155deg, #ffffff, #eef5ff);
}

.workspace-billing-plan-card.highest {
  border-top: 4px solid #ff9d24;
  background: linear-gradient(145deg, #071426, #0a2b55);
  color: #ffffff;
}

.workspace-billing-plan-card > span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef3f8;
  color: #0756c7;
  font-size: 12px;
  font-weight: 900;
}

.workspace-billing-plan-card.recommended > span {
  background: #ff9d24;
  color: #101820;
}

.workspace-billing-plan-card.highest > span {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.workspace-billing-plan-card h3 {
  margin: 20px 0 8px;
  color: inherit;
  font-size: 30px;
  line-height: 1.1;
}

.workspace-billing-plan-card > strong {
  display: block;
  color: #101820;
  font-size: 22px;
}

.workspace-billing-plan-card ul {
  margin: 20px 0 0;
  padding-left: 22px;
  color: #617080;
  line-height: 1.8;
}

.workspace-billing-plan-card.highest p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.workspace-billing-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.workspace-billing-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.workspace-billing-primary {
  background: linear-gradient(135deg, #087cff, #0756c7);
  color: #ffffff;
}

.workspace-billing-secondary {
  border: 1px solid #c7d1dc;
  background: #ffffff;
  color: #0756c7;
}

.workspace-billing-loading,
.workspace-billing-error {
  margin: 0;
  padding: 28px;
  border-radius: 10px;
  background: #f4f7fa;
  color: #617080;
  text-align: center;
}

.workspace-billing-error {
  color: #bd393f;
}

@media (max-width: 700px) {
  .workspace-billing-dialog-head,
  .workspace-billing-body {
    padding-inline: 20px;
  }

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

  .workspace-billing-plan-card {
    min-height: 0;
  }

  .workspace-billing-actions {
    flex-direction: column;
  }
}

/* 2026-08-04 plan-aware billing center extension. */
.workspace-billing-dialog {
  width: min(980px, calc(100% - 32px));
  max-height: min(900px, calc(100vh - 32px));
}

.workspace-billing-dialog-shell {
  max-height: min(900px, calc(100vh - 32px));
}

.workspace-billing-body {
  display: grid;
  gap: 22px;
  background: #f7f9fb;
}

.workspace-billing-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid #c7d1dc;
  border-left-width: 5px;
  border-radius: 10px;
  background: #ffffff;
}

.workspace-billing-state strong,
.workspace-billing-state p {
  display: block;
  margin: 0;
}

.workspace-billing-state p {
  margin-top: 4px;
  color: #617080;
  line-height: 1.55;
}

.workspace-billing-state.active { border-left-color: #1f8a5b; }
.workspace-billing-state.notice { border-left-color: #087cff; }
.workspace-billing-state.warning { border-left-color: #ff9d24; background: #fff9ef; }
.workspace-billing-state.danger { border-left-color: #e2575c; background: #fff5f5; }
.workspace-billing-state.neutral { border-left-color: #718092; }

.workspace-billing-state-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef3f8;
  color: #0a1b31;
  font-size: 13px;
  font-weight: 900;
}

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

.workspace-billing-fact {
  min-width: 0;
  padding: 16px;
  border: 1px solid #d5dde6;
  border-radius: 9px;
  background: #ffffff;
}

.workspace-billing-fact span,
.workspace-billing-fact strong,
.workspace-billing-fact small {
  display: block;
}

.workspace-billing-fact span,
.workspace-billing-fact small {
  color: #718092;
}

.workspace-billing-fact strong {
  margin: 7px 0 4px;
  color: #101820;
  font-size: 18px;
}

.workspace-billing-section {
  padding: 22px;
  border: 1px solid #d5dde6;
  border-radius: 12px;
  background: #ffffff;
}

.workspace-billing-section-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d5dde6;
}

.workspace-billing-section-head span {
  color: #087cff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.workspace-billing-section-head h3 {
  margin: 5px 0 0;
  color: #101820;
  font-size: 23px;
}

.workspace-billing-plan-card {
  min-height: 295px;
}

.workspace-billing-plan-summary {
  margin: 12px 0 0;
  color: #617080;
  line-height: 1.6;
}

.workspace-billing-plan-card.highest > strong,
.workspace-billing-plan-card.highest h3 {
  color: #ffffff;
}

.workspace-billing-history-list {
  display: grid;
  gap: 9px;
}

.workspace-billing-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid #d5dde6;
  border-radius: 8px;
  background: #f7f9fb;
}

.workspace-billing-history-item > div {
  display: grid;
  gap: 4px;
}

.workspace-billing-history-item > div:last-child {
  justify-items: end;
  color: #617080;
  font-size: 13px;
}

.workspace-billing-history-item small,
.workspace-billing-history-item time {
  color: #718092;
}

.workspace-billing-empty,
.workspace-billing-provider-note {
  margin: 0;
  color: #617080;
  line-height: 1.65;
}

.workspace-billing-empty {
  padding: 20px;
  border-radius: 8px;
  background: #f4f7fa;
  text-align: center;
}

.workspace-billing-provider-note {
  padding: 14px 16px;
  border: 1px dashed #c7d1dc;
  border-radius: 8px;
  background: #ffffff;
  font-size: 13px;
}

@media (max-width: 820px) {
  .workspace-billing-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .workspace-billing-state,
  .workspace-billing-history-item {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .workspace-billing-history-item > div:last-child {
    justify-items: start;
  }
}

.workspace-overview-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 80px;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.workspace-overview-sidebar {
  position: sticky;
  top: 24px;
  overflow: hidden;
  border: 1px solid #d5dde6;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(5, 20, 42, 0.08);
}

.workspace-overview-user {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid #d5dde6;
}

.workspace-overview-user > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #087cff, #0756c7);
  color: #ffffff;
  font-weight: 900;
}

.workspace-overview-user div,
.workspace-overview-current {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.workspace-overview-user strong,
.workspace-overview-user small,
.workspace-overview-current strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-overview-user small,
.workspace-overview-current span {
  color: #718092;
}

.workspace-overview-sidebar nav {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.workspace-overview-sidebar nav a {
  padding: 11px 12px;
  border-left: 3px solid transparent;
  border-radius: 7px;
  color: #617080;
  font-weight: 800;
  text-decoration: none;
}

.workspace-overview-sidebar nav a:hover,
.workspace-overview-sidebar nav a.active {
  border-left-color: #087cff;
  background: #eef5ff;
  color: #0756c7;
}

.workspace-overview-current {
  padding: 16px 18px;
  border-top: 1px solid #d5dde6;
  background: #f4f7fa;
}

.workspace-overview-content {
  min-width: 0;
}

.workspace-overview-heading {
  padding: 8px 0 28px;
}

.workspace-overview-heading > span,
.workspace-overview-panel header span {
  color: #087cff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.workspace-overview-heading h1 {
  margin: 8px 0 9px;
  color: #101820;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
}

.workspace-overview-heading p {
  margin: 0;
  color: #617080;
  line-height: 1.7;
}

.workspace-overview-priority {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  scroll-margin-top: 24px;
}

.workspace-overview-card,
.workspace-overview-panel {
  border: 1px solid #d5dde6;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(5, 20, 42, 0.08);
}

.workspace-overview-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.workspace-overview-card.plan-card-summary {
  border-top: 4px solid #087cff;
}

.workspace-overview-card.membership-card-summary {
  border-top: 4px solid #718092;
}

.workspace-overview-card.credits-card-summary {
  border-top: 4px solid #ff9d24;
  background: linear-gradient(155deg, #ffffff 0%, #fff8eb 100%);
}

.workspace-overview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #617080;
}

.workspace-overview-card-head span {
  font-weight: 850;
}

.workspace-overview-card-head em {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef3f8;
  color: #0756c7;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.workspace-overview-card > strong {
  margin-top: 24px;
  color: #101820;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.workspace-overview-card > strong b {
  font: inherit;
}

.workspace-overview-card > strong small {
  font-size: 18px;
}

.workspace-overview-card > p {
  margin: 12px 0 22px;
  color: #617080;
  line-height: 1.65;
}

.workspace-overview-card > a {
  min-height: 44px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 15px;
  font-weight: 900;
  text-decoration: none;
}

.workspace-overview-primary-action {
  background: linear-gradient(135deg, #087cff, #0756c7);
  color: #ffffff;
}

.workspace-overview-secondary-action {
  border: 1px solid #c7d1dc;
  background: #ffffff;
  color: #0756c7;
}

.workspace-overview-credit-action {
  background: #ff9d24;
  color: #101820;
}

.workspace-overview-panel {
  margin-top: 20px;
  padding: 26px;
  scroll-margin-top: 24px;
}

.workspace-overview-panel > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d5dde6;
}

.workspace-overview-panel h2 {
  margin: 6px 0 0;
  color: #101820;
}

.workspace-overview-panel header a {
  color: #0756c7;
  font-weight: 850;
}

.workspace-overview-capabilities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 20px;
}

.workspace-overview-capabilities > div {
  display: grid;
  gap: 7px;
  padding: 17px;
  border-radius: 9px;
  background: #f4f7fa;
}

.workspace-overview-capabilities span {
  color: #718092;
}

.workspace-overview-capabilities strong {
  color: #101820;
}

.workspace-overview-activity-list {
  display: grid;
  gap: 8px;
  padding-top: 18px;
}

.workspace-overview-activity-list > p {
  margin: 0;
  padding: 18px;
  color: #718092;
  text-align: center;
}

.workspace-overview-activity-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid #d5dde6;
  border-radius: 8px;
}

.workspace-overview-activity-list article div {
  display: grid;
  gap: 4px;
}

.workspace-overview-activity-list small {
  color: #718092;
}

.workspace-overview-activity-list b.credit { color: #17633f; }
.workspace-overview-activity-list b.debit { color: #bd393f; }

@media (max-width: 1120px) {
  .workspace-user-topbar,
  .settings-topbar {
    padding-inline: 24px;
  }

  .workspace-user-topbar nav,
  .settings-topbar nav {
    gap: 2px;
  }

  .workspace-user-topbar nav a,
  .settings-topbar nav a,
  .workspace-user-topbar nav button,
  .settings-topbar nav button {
    font-size: 16px;
    padding-inline: 8px;
  }

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

  .workspace-overview-card.credits-card-summary {
    grid-column: 1 / -1;
  }

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

@media (max-width: 820px) {
  .workspace-user-topbar,
  .settings-topbar {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .workspace-user-topbar nav,
  .settings-topbar nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .workspace-overview-shell {
    width: min(100% - 28px, 720px);
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .workspace-overview-sidebar {
    position: static;
  }

  .workspace-overview-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-overview-priority {
    grid-template-columns: 1fr;
  }

  .workspace-overview-card.credits-card-summary {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .workspace-user-topbar nav,
  .settings-topbar nav,
  .workspace-overview-sidebar nav,
  .workspace-overview-capabilities {
    grid-template-columns: 1fr;
  }

  .workspace-user-topbar nav,
  .settings-topbar nav {
    display: grid;
  }

  .workspace-user-topbar nav a,
  .settings-topbar nav a,
  .workspace-user-topbar nav button,
  .settings-topbar nav button {
    min-height: 42px;
    justify-content: flex-start;
  }

  .workspace-overview-panel > header {
    align-items: flex-start;
    flex-direction: column;
  }
}
