:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --panel: #121214;
  --panel-2: #17171a;
  --border: #1f1f23;
  --text: #f4f1e8;
  --muted: #9d9da6;
  --gold: #d4af37;
  --blue: #2daae1;
  --green: #6edb8f;
  --orange: #ff8a1f;
  --red: #ff5a5f;
  --line: rgba(255,255,255,.08);
  --shadow: 0 18px 38px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Roboto, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

button, input, select { font: inherit; }

button { cursor: pointer; }

body.is-authenticated .login-screen { display: none; }
body:not(.is-authenticated) .app-shell,
body:not(.is-authenticated) .detail-drawer { display: none; }
body.is-authenticated:not(.access-ready) .app-shell,
body.is-authenticated:not(.access-ready) .detail-drawer { visibility: hidden; pointer-events: none; }
.is-hidden { display: none !important; }
body.is-public-shop .login-screen,
body.is-public-shop .app-shell,
body.is-public-shop .detail-drawer { display: none; }
body.is-admin-page .login-screen,
body.is-admin-page .public-shop-page,
body.is-admin-page .app-shell,
body.is-admin-page .detail-drawer { display: none; }

.admin-page { display: none; }
body.is-admin-page .admin-page { display: block; }

.app-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  align-content: center;
  gap: 12px;
  background: radial-gradient(circle at 50% 38%, rgba(212,175,55,.14), transparent 24%), #0b0b0c;
  color: var(--text);
}

body.is-app-loading .app-loading-overlay { display: grid; }
body:not(.is-authenticated) .app-loading-overlay,
body.is-admin-page .app-loading-overlay,
body.is-public-shop .app-loading-overlay { display: none; }

.app-loading-mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  position: relative;
  background: #101012;
  border: 1px solid rgba(212,175,55,.3);
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
}

.app-loading-mark::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 24px;
  border: 2px solid transparent;
  border-top-color: var(--gold);
  border-right-color: rgba(212,175,55,.3);
  animation: finsyghtSpin .82s linear infinite;
}

.app-loading-mark span {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f1cf60, var(--gold));
  color: #12100a;
  font-size: 26px;
  font-weight: 950;
}

.app-loading-overlay strong { font-size: 18px; }
.app-loading-overlay small { color: var(--muted); }

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

.public-shop-page {
  display: none;
  min-height: 100vh;
  background: #0b0b0c;
}

body.is-public-shop.is-product-list #productListPage,
body.is-public-shop.is-product-detail #productDetailPage,
body.is-public-shop.is-contact-sales #contactSalesPage,
body.is-public-shop.is-shopping-cart #shoppingCartPage,
body.is-public-shop.is-public-checkout #checkoutPage {
  display: block;
}

.public-shop-header {
  min-height: 72px;
  padding: 16px clamp(20px, 5vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(13,13,15,.96);
  position: sticky;
  top: 0;
  z-index: 4;
}

.public-shop-brand {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

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

.public-shop-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.public-shop-title {
  margin-bottom: 26px;
}

.public-shop-title h1 {
  margin: 4px 0 10px;
  color: #fff9e8;
  font-size: 42px;
}

.public-shop-title p:last-child {
  color: var(--muted);
}

.public-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 16px;
}

.route-product-card {
  min-height: 390px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #121214;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.route-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45,142,255,.85);
  box-shadow: var(--shadow);
}

.route-product-card.featured {
  border-color: rgba(45,142,255,.9);
  background: #111820;
}

.route-product-card h2 {
  margin: 0;
  font-size: 24px;
}

.route-product-card strong,
.route-product-detail-price {
  color: #fff9e8;
  font-size: 30px;
}

.route-product-card p,
.route-product-detail p {
  color: var(--muted);
  line-height: 1.55;
}

.route-product-card ul,
.route-product-detail ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.route-product-card li::before,
.route-product-detail li::before {
  content: "✓";
  margin-right: 10px;
  color: #58a6ff;
}

.route-product-detail {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1fr);
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #121214;
}

.route-product-detail h1 {
  margin: 6px 0 10px;
  color: #fff9e8;
  font-size: 44px;
}

.route-product-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

body.is-public-shop.is-product-list {
  color-scheme: light;
  background: #f7f8fb;
  color: #182033;
}

body.is-public-shop.is-product-list #productListPage {
  background:
    radial-gradient(circle at 16% 8%, rgba(33, 133, 255, .13), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 54%, #eef3f9 100%);
  color: #182033;
}

.public-product-list-header {
  min-height: 76px;
  border-bottom: 1px solid #e4e8ef;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(31, 45, 72, .06);
}

.public-product-list-header .brand-mark {
  background: #0f172a;
  color: #f6c945;
  border-color: rgba(15, 23, 42, .08);
}

.public-product-list-header .brand strong,
.public-product-list-header .brand span {
  color: #182033;
}

.public-product-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 30px);
}

.public-product-nav a {
  color: #5f6b7d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.public-product-nav a:hover {
  color: #146bdc;
}

.public-login-button {
  border-color: #d5dce8;
  background: #ffffff;
  color: #182033;
}

.public-product-main {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 80px;
}

.public-product-hero {
  max-width: 860px;
  margin: 0 auto 32px;
  text-align: center;
}

.public-product-hero .eyebrow,
.public-product-compare .eyebrow {
  color: #146bdc;
  font-weight: 800;
}

.public-product-hero h1 {
  margin: 10px 0 14px;
  color: #111827;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
}

.public-product-hero p {
  margin: 0 auto;
  max-width: 720px;
  color: #667085;
  font-size: 17px;
  line-height: 1.65;
}

.public-product-toolbar {
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.public-product-search {
  min-width: min(420px, 100%);
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #d9e0eb;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 45, 72, .07);
  cursor: pointer;
}

.public-product-search span {
  color: #8893a5;
  font-size: 12px;
  font-weight: 800;
}

.public-product-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #182033;
  background: transparent;
}

.public-billing-toggle {
  height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #d9e0eb;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 45, 72, .07);
}

.public-billing-toggle button {
  height: 36px;
  min-width: 82px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5f6b7d;
  font-weight: 800;
  cursor: pointer;
}

.public-billing-toggle button:hover,
.public-billing-toggle button.is-active {
  background: #146bdc;
  color: #ffffff;
}

body.is-public-shop.is-product-list .public-product-grid {
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 0;
  margin-top: 26px;
  border: 1px solid #dbe2ed;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(31, 45, 72, .11);
  overflow: visible;
}

body.is-public-shop.is-product-list .route-product-card {
  position: relative;
  min-height: 500px;
  padding: 34px 28px 28px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 20px;
  border: 0;
  border-right: 1px solid #e1e6ef;
  border-radius: 0;
  background: #ffffff;
  color: #182033;
  box-shadow: none;
}

body.is-public-shop.is-product-list .route-product-card:last-child {
  border-right: 0;
}

body.is-public-shop.is-product-list .route-product-card:hover {
  z-index: 2;
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 24px 52px rgba(20, 107, 220, .14);
}

body.is-public-shop.is-product-list .route-product-card.featured {
  margin: -10px 0;
  padding-top: 44px;
  border: 2px solid #1683e8;
  border-radius: 12px;
  background: #eef6ff;
  box-shadow: 0 28px 70px rgba(20, 107, 220, .18);
}

.route-ribbon {
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  width: max-content;
  margin: 0 auto;
  color: #1683e8;
  background: transparent;
  font-size: 12px;
  letter-spacing: .02em;
}

.route-product-code {
  display: block;
  min-height: 20px;
  margin-bottom: 12px;
  color: #5f6b7d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

body.is-public-shop.is-product-list .route-product-card h2 {
  color: #2c2f38;
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
}

body.is-public-shop.is-product-list .route-product-card strong {
  display: block;
  margin-top: 16px;
  color: #111827;
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 500;
}

body.is-public-shop.is-product-list .route-product-card small {
  display: block;
  margin-top: 4px;
  color: #8b95a5;
}

body.is-public-shop.is-product-list .route-product-card p {
  min-height: 54px;
  color: #4f5b6d;
}

.route-product-highlight {
  min-height: 38px;
  color: #4b5563;
  font-weight: 700;
}

body.is-public-shop.is-product-list .route-product-card ul {
  gap: 16px;
}

body.is-public-shop.is-product-list .route-product-card li {
  color: #2f3a4c;
  line-height: 1.35;
}

body.is-public-shop.is-product-list .route-product-card li::before {
  content: "OK";
  color: #1683e8;
  font-size: 11px;
  font-weight: 900;
}

.route-product-action {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
}

.route-product-empty {
  grid-column: 1 / -1;
  margin: 24px;
  color: #5f6b7d;
}

.public-product-compare,
.public-product-faq {
  margin-top: 42px;
  padding: 28px;
  border: 1px solid #dfe6f1;
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 16px 40px rgba(31, 45, 72, .07);
}

.public-product-compare {
  display: grid;
  grid-template-columns: minmax(240px, .85fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
}

.public-product-compare h2,
.public-product-faq h2 {
  margin: 8px 0 0;
  color: #111827;
  font-size: 26px;
  line-height: 1.2;
}

.public-compare-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.public-compare-rows div {
  padding: 16px;
  border: 1px solid #e5ebf3;
  border-radius: 10px;
  background: #ffffff;
}

.public-compare-rows span {
  display: block;
  color: #667085;
  font-size: 13px;
}

.public-compare-rows strong {
  display: block;
  margin-top: 8px;
  color: #111827;
}

.public-product-faq > div {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.public-product-faq details {
  padding: 16px 18px;
  border: 1px solid #e5ebf3;
  border-radius: 10px;
  background: #ffffff;
}

.public-product-faq summary {
  color: #182033;
  font-weight: 800;
  cursor: pointer;
}

.public-product-faq p {
  margin: 10px 0 0;
  color: #667085;
  line-height: 1.55;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, .82fr);
  background:
    radial-gradient(circle at 18% 16%, rgba(212,175,55,.18), transparent 30%),
    linear-gradient(135deg, #080809 0%, #101114 54%, #17140b 100%);
}

.login-brand-panel {
  min-height: 100vh;
  padding: clamp(32px, 6vw, 72px);
  display: grid;
  align-content: space-between;
  gap: 44px;
  border-right: 1px solid rgba(255,255,255,.08);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff9e8;
  font-size: 18px;
  font-weight: 800;
}

.login-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(212,175,55,.55);
  background: rgba(212,175,55,.12);
  color: var(--gold);
}

.login-hero {
  max-width: 680px;
}

.login-hero h1 {
  margin-bottom: 18px;
  max-width: 720px;
  color: #fff9e8;
  font-size: clamp(38px, 5vw, 72px);
  line-height: .98;
}

.login-hero p:last-child {
  max-width: 560px;
  color: #b7c7df;
  font-size: 18px;
  line-height: 1.65;
}

.login-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 14px;
  max-width: 680px;
}

.login-metrics div {
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(17,17,19,.72);
  border-radius: 8px;
}

.login-metrics strong,
.login-metrics span {
  display: block;
}

.login-metrics strong {
  color: var(--gold);
  font-size: 22px;
}

.login-metrics span {
  margin-top: 8px;
  color: #a9c4e6;
  font-size: 13px;
}

.login-form-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 56px);
  background: rgba(8,8,9,.7);
}

.login-card {
  width: min(100%, 460px);
  padding: 30px;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: #111113;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}

.language-select {
  height: 38px;
  min-width: 74px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: #0f0f11;
  color: var(--text);
  border-radius: 8px;
  font-weight: 800;
}

.login-language-select {
  justify-self: end;
}

.login-card h1 {
  margin-bottom: 8px;
  font-size: 30px;
}

.auth-view {
  display: none;
}

.auth-view.is-active {
  display: grid;
  gap: 8px;
}

.register-only,
.verify-fields,
.forgot-fields,
#requestResetButton,
#resendVerificationButton {
  display: none;
  gap: 8px;
}

.login-card.is-register .register-only {
  display: grid;
}

.login-card.is-verify .verify-fields,
.login-card.is-forgot .forgot-fields,
.login-card.is-forgot #requestResetButton {
  display: grid;
}

.login-card.is-register .social-auth-row,
.login-card.is-register #demoAccountGrid,
.login-card.is-register .login-options,
.login-card.is-register #loginModeSwitch,
.login-card.is-verify .social-auth-row,
.login-card.is-verify #demoAccountGrid,
.login-card.is-verify .login-options,
.login-card.is-verify #loginModeSwitch,
.login-card.is-forgot .social-auth-row,
.login-card.is-forgot #demoAccountGrid,
.login-card.is-forgot .login-options,
.login-card.is-forgot #loginModeSwitch {
  display: none;
}

.login-card.is-verify .login-password-main,
.login-card.is-forgot .login-password-main {
  display: none;
}

.login-subtitle,
.login-footnote {
  color: var(--muted);
  line-height: 1.5;
}

.auth-status {
  display: none;
  margin: 4px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(214, 178, 63, .34);
  border-radius: 8px;
  background: rgba(214, 178, 63, .09);
  color: #f4d774;
  font-size: 13px;
  line-height: 1.45;
}

.auth-status.is-active {
  display: block;
}

.auth-status.is-error {
  border-color: rgba(255, 77, 87, .45);
  background: rgba(255, 77, 87, .10);
  color: #ff9ca4;
}

.social-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.provider-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
}

.provider-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.provider-icon.google {
  background: #4285f4;
}

.provider-icon.microsoft {
  background: linear-gradient(135deg, #f25022 0 50%, #7fba00 50%);
}

.demo-account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.demo-account {
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: #0f0f11;
  color: var(--text);
  border-radius: 8px;
  text-align: left;
}

.demo-account strong,
.demo-account span {
  display: block;
}

.demo-account span {
  margin-top: 4px;
  color: #9eb3d4;
  font-size: 13px;
}

.demo-account.is-selected {
  border-color: rgba(212,175,55,.55);
  background: #17140b;
}

.login-mode-switch {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #09090a;
}

.login-mode-switch button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.login-mode-switch button.is-active {
  background: rgba(212,175,55,.16);
  color: var(--gold);
}

.field-label {
  color: #c8d6ea;
  font-size: 13px;
  font-weight: 700;
}

.login-card input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  border: 1px solid var(--border);
  background: #0f0f11;
  border-radius: 8px;
}

.password-field:focus-within {
  border-color: rgba(212,175,55,.55);
}

.password-field input {
  border: 0;
  background: transparent;
}

.password-field button,
.login-options button,
.login-mode-switch button,
.sso-button,
.logout-button {
  border: 0;
  background: transparent;
  color: #a9c4e6;
}

.password-toggle-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--border) !important;
}

.password-toggle-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle-button:hover {
  color: var(--gold);
  background: rgba(212,175,55,.08);
}

.password-strength {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.password-strength span {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #26262a;
}

.password-strength i {
  display: block;
  height: 100%;
  width: 8%;
  background: var(--red);
  border-radius: inherit;
  transition: width .16s ease, background .16s ease;
}

.password-strength[data-score="3"] i { background: var(--orange); }
.password-strength[data-score="4"] i,
.password-strength[data-score="5"] i { background: var(--green); }

.login-options {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.login-options label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-options input {
  width: 16px;
  height: 16px;
}

.login-submit,
.sso-button {
  height: 46px;
  border-radius: 8px;
  font-weight: 800;
}

.login-submit {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #0b0b0c;
}

.sso-button {
  border: 1px solid var(--border);
  background: #0f0f11;
  color: var(--text);
}

.logout-button {
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
}

.mobile-menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 8px;
  font-size: 20px;
}

.mobile-search-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(212,175,55,.42);
  background: rgba(212,175,55,.12);
  color: var(--gold);
  border-radius: 8px;
  font-size: 20px;
}

.onboarding-panel {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(212,175,55,.12), rgba(45,170,225,.07));
}

.onboarding-panel.is-hidden {
  display: none;
}

.onboarding-panel h2 {
  margin: 3px 0 0;
  font-size: 18px;
}

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

.onboarding-steps button {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0b0b0c;
  color: #e5edf7;
  text-align: left;
}

.onboarding-steps strong {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #0b0b0c;
}

.inline-select-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sidebar-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 19;
  border: 0;
  background: rgba(0,0,0,.55);
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px 16px;
  background: #09090a;
  border-right: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212,175,55,.45);
  background: #151310;
  color: var(--gold);
  font-weight: 800;
  border-radius: 8px;
}

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

.nav-list {
  display: grid;
  gap: 5px;
  overflow-y: auto;
  padding-right: 2px;
}

.nav-item {
  height: 42px;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #d8d8dc;
  background: transparent;
  text-align: left;
}

.nav-item:hover { background: #121214; border-color: var(--border); }
.nav-item.is-active { background: #17140b; color: var(--gold); border-color: rgba(212,175,55,.32); }
.nav-item.is-disabled {
  opacity: .46;
  cursor: not-allowed;
  filter: grayscale(.35);
}

.sidebar-footer {
  margin-top: auto;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 99px;
}

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

.workspace {
  min-width: 0;
  padding: 22px 28px 44px;
}

.topbar {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.search-wrap {
  width: min(560px, 100%);
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
}

.search-wrap.is-hidden {
  display: none;
}

.search-icon { color: var(--gold); font-size: 20px; }

input, select {
  min-width: 0;
  background: #0f0f11;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  outline: none;
}

.search-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  height: 100%;
}

.search-clear {
  display: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  background: #09090a;
  color: var(--muted);
  border-radius: 6px;
}

.search-clear.is-visible {
  display: grid;
  place-items: center;
}

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  padding: 8px;
  border: 1px solid var(--border);
  background: #0b0b0c;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-results.is-open {
  display: grid;
  gap: 4px;
}

.search-results button,
.search-empty {
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 6px;
  text-align: left;
}

.search-results button:hover {
  background: rgba(212,175,55,.12);
  color: var(--gold);
}

.search-results span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

input:focus, select:focus { border-color: rgba(212,175,55,.55); }

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

.role-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.role-switcher select {
  height: 38px;
  min-width: 156px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f0f11;
  color: var(--text);
  padding: 0 10px;
  font-weight: 800;
}

.icon-button, .tenant-pill, .profile-pill, .primary-button {
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

.icon-button {
  width: 40px;
  display: grid;
  place-items: center;
}

.tenant-pill { padding: 0 14px; color: var(--gold); }

.profile-pill {
  width: 42px;
  color: #0b0b0c;
  background: var(--gold);
  font-weight: 800;
}

.primary-button {
  padding: 0 16px;
  background: var(--gold);
  color: #0b0b0c;
  border-color: var(--gold);
  font-weight: 700;
}

.primary-button:hover,
.login-submit:hover,
.export-button:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 0 3px rgba(212,175,55,.16);
}

.ghost-button:hover,
.table-action-button:hover,
.range-button:hover,
.sso-button:hover,
.icon-button:hover,
.tenant-pill:hover,
.row-menu-button:hover {
  border-color: rgba(212,175,55,.42);
  background: rgba(212,175,55,.12);
  color: var(--gold);
}

.screen { display: none; }
.screen.is-active { display: block; }

.v2-integrated-shell {
  min-height: calc(100vh - 96px);
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}

.v2-command-head {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: #0d0d0f;
}

.v2-command-head h1 {
  margin: 0;
  color: var(--text);
  font-size: 25px;
}

.v2-command-head #pageSubtitle {
  margin: 6px 0 0;
  color: var(--muted);
}

.v2-command-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.v2-command-actions select {
  min-width: 220px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #111117;
  color: var(--text);
  padding: 0 12px;
}

.v2-command-actions .language-pill {
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 8px;
  background: rgba(212,175,55,.08);
  color: var(--gold);
  padding: 0 13px;
  font-size: 12px;
  font-weight: 800;
}

#screen-v2-command .screen-host {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 0 0;
}

#screen-v2-command .screen-host:focus,
#screen-v2-command .screen-host:focus-visible,
#screen-v2-command .card:focus,
#screen-v2-command .card:focus-visible {
  outline: 0;
}

#screen-v2-command .screen {
  display: block;
  animation: rise .28s ease both;
}

#screen-v2-command .grid {
  display: grid;
  gap: 16px;
}

#screen-v2-command .grid.two { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
#screen-v2-command .grid.three { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
#screen-v2-command .grid.four { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
#screen-v2-command .grid.sidebar-layout { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr); align-items: start; }

#screen-v2-command .audit-cockpit-native {
  display: grid;
  gap: 20px;
}

#screen-v2-command .audit-native-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(216, 183, 51, .12), transparent 34%),
    #101012;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}

#screen-v2-command .audit-native-hero h2 {
  margin: 4px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

#screen-v2-command .audit-native-main,
#screen-v2-command .audit-native-lower {
  margin-top: 0;
}

#screen-v2-command .audit-native-queue .primary {
  width: 100%;
  margin-top: 16px;
}

#screen-v2-command .audit-native-signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

#screen-v2-command .audit-native-signal {
  min-height: 142px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #151518;
}

#screen-v2-command .audit-native-signal.red { border-color: rgba(255, 77, 90, .36); }
#screen-v2-command .audit-native-signal.gold { border-color: rgba(216, 183, 51, .34); }
#screen-v2-command .audit-native-signal.green { border-color: rgba(25, 201, 135, .28); }

#screen-v2-command .audit-native-signal p {
  min-height: 42px;
  margin: 0;
}

#screen-v2-command .audit-native-compliance {
  margin-bottom: 18px;
}

#screen-v2-command .audit-native-compliance > div {
  display: grid;
  gap: 8px;
}

#screen-v2-command .audit-native-evidence .table {
  margin-top: 4px;
}

#screen-v2-command .v2-reference-screen {
  display: grid;
  gap: 24px;
}

#screen-v2-command .v2-reference-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 20px;
}

#screen-v2-command .reference-kpi-card .card-body,
#screen-v2-command .v2-reference-kpis .kpi .card-body {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  padding: 24px;
}

#screen-v2-command .market-kpi-card .card-body {
  gap: 10px;
}

#screen-v2-command .market-kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  font-size: 14px;
  font-weight: 800;
}

#screen-v2-command .market-kpi-delta span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
}

#screen-v2-command .market-kpi-delta.green {
  color: var(--green);
}

#screen-v2-command .market-kpi-delta.green span {
  background: rgba(25,201,135,.13);
}

#screen-v2-command .market-kpi-delta.red {
  color: var(--red);
}

#screen-v2-command .market-kpi-delta.red span {
  background: rgba(255,77,90,.13);
}

#screen-v2-command .market-kpi-delta.gold {
  color: var(--gold);
}

#screen-v2-command .market-kpi-delta.gold span {
  background: rgba(216,183,51,.13);
  border-radius: 6px;
}

#screen-v2-command .reference-kpi-card {
  background:
    radial-gradient(circle at top right, rgba(216, 183, 51, .08), transparent 42%),
    var(--panel);
}

#screen-v2-command .ai-readiness-layout,
#screen-v2-command .trust-reference-layout,
#screen-v2-command .network-reference-layout,
#screen-v2-command .market-top-layout {
  display: grid;
  grid-template-columns: minmax(320px, .72fr) minmax(0, 1.48fr);
  gap: 24px;
  align-items: start;
}

#screen-v2-command .trust-reference-layout,
#screen-v2-command .network-reference-layout,
#screen-v2-command .market-top-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
}

#screen-v2-command .ai-readiness-stack,
#screen-v2-command .trust-reference-main,
#screen-v2-command .network-side-stack {
  display: grid;
  gap: 20px;
}

#screen-v2-command .maturity-card .card-body,
#screen-v2-command .recommended-card .card-body,
#screen-v2-command .unlock-card .card-body,
#screen-v2-command .missing-source-card .card-body {
  padding: 24px;
}

#screen-v2-command .maturity-roadmap {
  position: relative;
  display: grid;
  gap: 22px;
  margin-left: 8px;
  padding-left: 18px;
  border-left: 1px solid #2a2a31;
}

#screen-v2-command .maturity-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

#screen-v2-command .maturity-step .step-dot {
  position: absolute;
  left: -28px;
  top: 2px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid #2d2d35;
  border-radius: 50%;
  background: #101012;
  color: #0b0b0d;
  font-size: 10px;
  font-weight: 900;
}

#screen-v2-command .maturity-step.done .step-dot {
  border-color: var(--gold);
  background: var(--gold);
}

#screen-v2-command .maturity-step strong,
#screen-v2-command .maturity-step p,
#screen-v2-command .ai-action-row strong,
#screen-v2-command .ai-action-row p {
  display: block;
  margin: 0;
}

#screen-v2-command .maturity-step p,
#screen-v2-command .ai-action-row p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

#screen-v2-command .ai-action-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

#screen-v2-command .ai-action-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
}

#screen-v2-command .ai-action-icon,
#screen-v2-command .ai-kpi-icon,
#screen-v2-command .network-insight-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 183, 51, .22);
  border-radius: 10px;
  background: rgba(216, 183, 51, .11);
  color: var(--gold);
  font-weight: 900;
}

#screen-v2-command .ai-kpi-icon.green { color: var(--green); border-color: rgba(25,201,135,.24); background: rgba(25,201,135,.1); }
#screen-v2-command .ai-kpi-icon.red { color: var(--red); border-color: rgba(255,77,90,.28); background: rgba(255,77,90,.1); }

#screen-v2-command .unlock-preview {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 8px;
  margin: 18px 0;
  padding: 24px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.03), rgba(216,183,51,.08), rgba(255,255,255,.03));
  text-align: center;
}

#screen-v2-command .unlock-preview span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216,183,51,.32);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(216,183,51,.1);
}

#screen-v2-command .security-insight-card,
#screen-v2-command .network-insight-card {
  border-color: rgba(216, 183, 51, .28);
  background:
    radial-gradient(circle at left top, rgba(216,183,51,.11), transparent 36%),
    var(--panel);
}

#screen-v2-command .trust-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#screen-v2-command .trust-data-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 78px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}

#screen-v2-command .trust-data-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: var(--gold);
  background: rgba(216, 183, 51, .12);
  border: 1px solid rgba(216, 183, 51, .22);
  font-weight: 800;
}

#screen-v2-command .trust-data-card strong,
#screen-v2-command .trust-data-card span {
  display: block;
}

#screen-v2-command .trust-data-card > div {
  min-width: 0;
  flex: 1;
}

#screen-v2-command .trust-request-card {
  border-color: rgba(216,183,51,.24);
}

#screen-v2-command .trust-request-list {
  display: grid;
  gap: 14px;
}

#screen-v2-command .trust-request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(216,183,51,.18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0 0, rgba(216,183,51,.08), transparent 220px),
    rgba(255,255,255,.025);
}

#screen-v2-command .trust-request-row strong,
#screen-v2-command .trust-request-row p {
  display: block;
}

#screen-v2-command .trust-request-row p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

#screen-v2-command .trust-permission-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

#screen-v2-command .trust-permission-chip {
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(216,183,51,.32);
  background: rgba(216,183,51,.08);
  color: var(--gold);
  font-weight: 700;
}

#screen-v2-command .trust-request-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

#screen-v2-command .trust-toggle {
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: #2b2b31;
  position: relative;
}

#screen-v2-command .trust-toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #777585;
}

#screen-v2-command .trust-toggle.on {
  background: rgba(216,183,51,.26);
}

#screen-v2-command .trust-toggle.on::after {
  left: 24px;
  background: var(--gold);
}

#screen-v2-command .trust-activity-card .timeline {
  display: grid;
  gap: 22px;
}

#screen-v2-command .network-insight-card .card-body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 26px;
}

#screen-v2-command .network-org-list {
  margin: 18px -18px 0;
  border-top: 1px solid var(--border);
}

#screen-v2-command .network-org-row {
  display: grid;
  grid-template-columns: 52px minmax(220px, 1fr) 90px 100px auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

#screen-v2-command .network-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(74,163,255,.28), rgba(255,255,255,.03));
  color: #fff9e8;
  font-weight: 900;
}

#screen-v2-command .network-public-meter {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #24242b;
}

#screen-v2-command .network-public-meter i {
  display: block;
  width: var(--value);
  height: 100%;
  background: var(--gold);
}

#screen-v2-command .network-load-button {
  margin-top: 18px;
  justify-self: center;
}

#screen-v2-command .network-health-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0;
}

#screen-v2-command .network-health-grid > div {
  min-height: 98px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}

#screen-v2-command .network-health-grid strong {
  font-size: 28px;
}

#screen-v2-command .network-reference-screen {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 0 28px;
}

#screen-v2-command .network-page-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin: -6px 0 24px;
}

#screen-v2-command .network-search {
  width: min(340px, 100%);
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #1b1b23;
  color: var(--muted);
}

#screen-v2-command .network-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

#screen-v2-command .network-directory-search {
  width: min(420px, 48vw);
}

#screen-v2-command .network-icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #1b1b23;
}

#screen-v2-command .network-icon-button::before {
  content: "";
  position: absolute;
  inset: 11px 13px 9px;
  border: 2px solid var(--muted);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom: 0;
}

#screen-v2-command .network-icon-button::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(216,183,51,.6);
}

#screen-v2-command .network-invite-button {
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(216,183,51,.35);
  background: #09090c;
  color: var(--gold);
  font-weight: 800;
}

#screen-v2-command .network-invite-button:hover {
  background: var(--gold);
  color: #08080a;
}

#screen-v2-command .network-insight-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
  border-color: rgba(216,183,51,.32);
  background:
    radial-gradient(circle at -40px -40px, rgba(216,183,51,.16), transparent 210px),
    linear-gradient(90deg, rgba(216,183,51,.08), rgba(255,255,255,.015) 50%, transparent),
    var(--panel);
}

#screen-v2-command .network-insight-card .card-body {
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 22px;
  padding: 26px;
}

#screen-v2-command .network-insight-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(216,183,51,.14);
}

#screen-v2-command .network-insight-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

#screen-v2-command .network-insight-title-row h2,
#screen-v2-command .network-insight-copy p {
  margin: 0;
}

#screen-v2-command .network-insight-copy p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

#screen-v2-command .network-match-chip {
  padding: 3px 8px;
  border: 1px solid rgba(216,183,51,.32);
  border-radius: 4px;
  background: rgba(216,183,51,.14);
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

#screen-v2-command .network-insight-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

#screen-v2-command .network-insight-actions .ghost,
#screen-v2-command .network-insight-actions .primary {
  height: 42px;
  padding: 0 20px;
  border-radius: 12px;
}

#screen-v2-command .network-insight-actions .ghost {
  border: 1px solid var(--border);
  background: #09090c;
  color: var(--muted);
}

#screen-v2-command .network-insight-actions .ghost:hover {
  border-color: rgba(216,183,51,.6);
  background: rgba(216,183,51,.12);
  color: var(--gold);
}

#screen-v2-command .network-reference-layout {
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, .85fr);
  gap: 30px;
}

#screen-v2-command .network-directory {
  display: grid;
  gap: 18px;
}

#screen-v2-command .network-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

#screen-v2-command .network-section-head h2 {
  margin: 0;
  font-size: 22px;
}

#screen-v2-command .network-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

#screen-v2-command .network-filter-button,
#screen-v2-command .network-segment {
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #1b1b23;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

#screen-v2-command .network-segment.active {
  background: #121217;
  color: var(--text);
}

#screen-v2-command .network-org-list {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}

#screen-v2-command .network-org-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 88px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .18s ease, opacity .18s ease;
}

#screen-v2-command .network-org-row:last-child {
  border-bottom: 0;
}

#screen-v2-command .network-org-row:hover {
  background: rgba(255,255,255,.025);
}

#screen-v2-command .network-org-row.pending {
  opacity: .72;
}

#screen-v2-command .network-org-main {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

#screen-v2-command .network-avatar {
  width: 50px;
  height: 50px;
  border-radius: 12px;
}

#screen-v2-command .network-org-row:nth-child(2n) .network-avatar {
  background: linear-gradient(135deg, rgba(25,201,135,.28), rgba(255,255,255,.03));
}

#screen-v2-command .network-org-row.pending .network-avatar {
  border-style: dashed;
  background: #1b1b23;
  color: var(--muted);
}

#screen-v2-command .network-org-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

#screen-v2-command .network-org-title strong {
  font-size: 16px;
}

#screen-v2-command .network-org-title small {
  color: var(--gold);
  font-size: 12px;
}

#screen-v2-command .network-org-title em {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

#screen-v2-command .network-match-evidence {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

#screen-v2-command .network-public-data {
  min-width: 118px;
  display: grid;
  justify-items: end;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

#screen-v2-command .network-public-bars {
  display: flex;
  gap: 4px;
}

#screen-v2-command .network-public-bars i {
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: #24242b;
}

#screen-v2-command .network-public-bars i.on {
  background: var(--gold);
}

#screen-v2-command .network-request-button {
  height: 38px;
  min-width: 132px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #09090c;
  color: var(--text);
  font-weight: 800;
}

#screen-v2-command .network-request-button:hover {
  color: #09090c;
  border-color: var(--gold);
  background: var(--gold);
}

#screen-v2-command .network-request-button.disabled {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  cursor: not-allowed;
}

#screen-v2-command .network-load-button {
  justify-self: center;
  margin-top: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 900;
}

#screen-v2-command .network-side-stack {
  gap: 24px;
}

#screen-v2-command .network-profile-screen {
  max-width: none;
  width: 100%;
  padding-bottom: 28px;
}

#screen-v2-command .network-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

#screen-v2-command .network-profile-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

#screen-v2-command .network-back-button {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #09090c;
  color: var(--muted);
}

#screen-v2-command .network-back-button:hover {
  border-color: rgba(216,183,51,.6);
  background: rgba(216,183,51,.12);
  color: var(--gold);
}

#screen-v2-command .network-profile-hero {
  border-color: rgba(216,183,51,.32);
  background:
    radial-gradient(circle at 12% 0, rgba(216,183,51,.12), transparent 280px),
    var(--panel);
}

#screen-v2-command .network-profile-hero .card-body {
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 26px;
}

#screen-v2-command .network-profile-logo {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(216,183,51,.35);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(216,183,51,.18), rgba(255,255,255,.035));
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
}

#screen-v2-command .network-profile-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#screen-v2-command .network-profile-hero h2 {
  margin: 6px 0 8px;
  font-size: 28px;
}

#screen-v2-command .network-profile-hero p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

#screen-v2-command .network-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

#screen-v2-command .network-profile-grid .card-body {
  display: block;
  padding: 22px;
}

#screen-v2-command .network-profile-grid h2 {
  margin: 0 0 18px;
}

#screen-v2-command .network-profile-fields {
  display: grid;
  gap: 12px;
}

#screen-v2-command .network-profile-field {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

#screen-v2-command .network-profile-field:last-child {
  border-bottom: 0;
}

#screen-v2-command .network-profile-field span {
  color: var(--muted);
}

#screen-v2-command .network-profile-field strong {
  max-width: 62%;
  text-align: right;
}

#screen-v2-command .network-profile-editor {
  grid-column: 1 / -1;
}

#screen-v2-command .network-profile-editor label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 800;
}

#screen-v2-command .network-profile-editor input,
#screen-v2-command .network-profile-editor textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0f0f14;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

#screen-v2-command .network-profile-readonly p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

#screen-v2-command .network-suggestion-card,
#screen-v2-command .network-health-card {
  border-radius: 16px;
}

#screen-v2-command .network-suggestion-card h2,
#screen-v2-command .network-health-card h2 {
  margin: 0 0 18px;
  font-size: 20px;
}

#screen-v2-command .network-suggestion-list {
  display: grid;
  gap: 14px;
}

#screen-v2-command .network-suggestion-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #1b1b23;
}

#screen-v2-command .network-suggestion-row strong,
#screen-v2-command .network-suggestion-row .muted {
  display: block;
}

#screen-v2-command .network-suggestion-row .muted {
  margin-top: 6px;
}

#screen-v2-command .network-suggestion-row:hover {
  border-color: var(--border);
}

#screen-v2-command .network-suggestion-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(216,183,51,.12);
  color: var(--gold);
}

#screen-v2-command .network-suggestion-icon.green {
  background: rgba(25,201,135,.12);
  color: var(--green);
}

#screen-v2-command .network-round-action {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #0b0b0f;
  color: var(--muted);
}

#screen-v2-command .network-round-action:hover {
  border-color: rgba(216,183,51,.5);
  color: var(--gold);
}

#screen-v2-command .network-health-card {
  position: relative;
  overflow: hidden;
}

#screen-v2-command .network-health-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.035);
  filter: blur(34px);
}

#screen-v2-command .network-health-grid {
  margin: 0 0 22px;
}

#screen-v2-command .network-health-grid > div {
  min-height: 102px;
  border-radius: 12px;
  background: #1b1b23;
}

#screen-v2-command .network-health-grid span,
#screen-v2-command .network-volume span {
  color: var(--muted);
  font-size: 12px;
}

#screen-v2-command .network-health-grid strong {
  color: var(--text);
  font-size: 28px;
}

#screen-v2-command .network-volume {
  display: grid;
  gap: 9px;
}

#screen-v2-command .network-volume div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

#screen-v2-command .network-volume strong.green {
  color: var(--green);
}

#screen-v2-command .network-volume strong.red {
  color: var(--red);
}

#screen-v2-command .network-volume i {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #24242b 0, #24242b 100%);
}

#screen-v2-command .network-volume i::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #24242b, var(--gold));
}

#screen-v2-command .network-health-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

#screen-v2-command .market-top-layout {
  align-items: stretch;
}

#screen-v2-command .market-ai-card .card-header {
  margin-bottom: 20px;
}

#screen-v2-command .market-ai-card .card-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

#screen-v2-command .market-ai-chip-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216,183,51,.26);
  border-radius: 7px;
  background: rgba(216,183,51,.12);
  color: var(--gold);
}

#screen-v2-command .market-ai-chip-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#screen-v2-command .market-period-select {
  min-width: 132px;
}

#screen-v2-command .market-ai-card .list {
  gap: 16px;
}

#screen-v2-command .market-ai-card .list-row {
  align-items: flex-start;
  padding: 18px;
  border: 1px solid rgba(216,183,51,.24);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}

#screen-v2-command .market-top-layout .chart-box .card-body {
  min-height: 380px;
}

#screen-v2-command .market-bottom-layout {
  margin-top: 0;
}

#screen-v2-command .market-heatmap {
  margin-top: 28px;
  min-height: 250px;
}

#screen-v2-command .market-impact-heatmap {
  --market-cols: 3;
  min-height: 300px;
  display: grid;
  grid-template-columns: 74px repeat(var(--market-cols), minmax(92px, 1fr));
  grid-auto-rows: minmax(72px, 1fr);
  gap: 0;
  align-items: stretch;
  margin-top: 24px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background: #101012;
}

#screen-v2-command .market-heatmap-corner {
  min-height: 42px;
}

#screen-v2-command .market-heatmap-axis {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

#screen-v2-command .market-heatmap-axis.x {
  justify-content: center;
  padding: 0 8px 10px;
  text-align: center;
}

#screen-v2-command .market-heatmap-axis.y {
  justify-content: flex-end;
  padding-right: 12px;
  text-align: right;
}

#screen-v2-command .market-heatmap-cell {
  min-height: 86px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(11,11,12,.34);
  color: #08110e;
  cursor: help;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

#screen-v2-command .market-heatmap-cell strong {
  font-size: 13px;
  font-weight: 900;
}

#screen-v2-command .market-heatmap-cell small {
  font-size: 11px;
  opacity: .78;
}

#screen-v2-command .market-heatmap-cell.green {
  background: #19b985;
}

#screen-v2-command .market-heatmap-cell.gold {
  background: #d4af37;
}

#screen-v2-command .market-heatmap-cell.red {
  background: #e5484d;
  color: #fff;
}

#screen-v2-command .market-heatmap-cell.soft {
  background: #91b357;
}

#screen-v2-command .market-heatmap-cell.empty {
  background: #24242d;
}

#screen-v2-command .market-heatmap-cell:hover {
  z-index: 2;
  transform: scale(1.025);
  filter: brightness(1.08);
  box-shadow: 0 0 0 2px rgba(212,175,55,.42), 0 16px 28px rgba(0,0,0,.32);
}

#screen-v2-command .hero,
#screen-v2-command .card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

#screen-v2-command .hero {
  min-height: 220px;
  display: grid;
  align-items: end;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(212,175,55,.17), rgba(15,15,18,.9) 48%),
    #101012;
}

#screen-v2-command .hero h2 {
  margin: 10px 0 8px;
  font-size: 34px;
}

#screen-v2-command .hero p,
#screen-v2-command .muted {
  color: var(--muted);
  line-height: 1.55;
}

#screen-v2-command .card.clickable {
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

#screen-v2-command .card.clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(212,175,55,.42);
  box-shadow: 0 22px 48px rgba(0,0,0,.36);
}

#screen-v2-command .card-body {
  min-width: 0;
  padding: 18px;
}

#screen-v2-command .card-header,
#screen-v2-command .kpi-row,
#screen-v2-command .list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#screen-v2-command .screen-actions-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

#screen-v2-command .status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 9px;
  background: #17171a;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

#screen-v2-command .status-pill.gold { border-color: rgba(212,175,55,.38); background: rgba(212,175,55,.1); color: var(--gold); }
#screen-v2-command .status-pill.green { border-color: rgba(110,219,143,.35); background: rgba(110,219,143,.1); color: var(--green); }
#screen-v2-command .status-pill.red { border-color: rgba(255,90,95,.38); background: rgba(255,90,95,.1); color: var(--red); }
#screen-v2-command .status-pill.blue { border-color: rgba(45,170,225,.38); background: rgba(45,170,225,.1); color: var(--blue); }

#screen-v2-command .kpi-value {
  display: block;
  margin-top: 12px;
  color: #fff9e8;
  font-size: 34px;
  font-weight: 900;
}

#screen-v2-command .progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #202024;
}

#screen-v2-command .progress span {
  display: block;
  width: var(--value, 0);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #f0d46a);
}

#screen-v2-command .list {
  display: grid;
  gap: 10px;
}

#screen-v2-command .list-row {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #151518;
  color: var(--text);
  padding: 12px;
  text-align: left;
}

#screen-v2-command .list-row strong,
#screen-v2-command .list-row span {
  display: block;
}

#screen-v2-command .list-row .muted {
  margin-top: 6px;
}

#screen-v2-command .ai-board-list .list-row {
  align-items: flex-start;
  gap: 16px;
}

#screen-v2-command .ai-board-stack {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

#screen-v2-command .ai-board-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(212,175,55,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}

#screen-v2-command .ai-board-item strong,
#screen-v2-command .ai-board-item span {
  display: block;
}

#screen-v2-command .ai-board-item strong {
  color: #fff9e8;
  font-size: 14px;
  line-height: 1.25;
  margin-bottom: 7px;
}

#screen-v2-command .ai-board-item .muted {
  color: #a9a4b4;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 0;
}

#screen-v2-command .ai-board-dot {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  margin-top: 2px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

#screen-v2-command .ai-board-item-green .ai-board-dot {
  color: #07140d;
  background: var(--green);
}

#screen-v2-command .ai-board-item-red .ai-board-dot {
  color: #1a0708;
  background: var(--red);
}

#screen-v2-command .ai-board-item-gold .ai-board-dot {
  color: #1b1506;
  background: var(--gold);
}

#screen-v2-command .ceo-view-all-button {
  min-height: 34px;
  padding: 0 22px;
  border-color: rgba(212,175,55,.42);
  background: rgba(212,175,55,.045);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(212,175,55,.03);
}

#screen-v2-command .ceo-view-all-button:hover {
  border-color: rgba(212,175,55,.68);
  background: rgba(212,175,55,.1);
  color: #f3d66c;
}

#screen-v2-command .cfo-view-all-button {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  box-shadow: none;
}

#screen-v2-command .cfo-view-all-button:hover {
  border-color: rgba(212,175,55,.62);
  background: rgba(212,175,55,.06);
  color: var(--gold);
}

#screen-v2-command button.primary,
#screen-v2-command button.secondary {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 800;
}

#screen-v2-command button.primary {
  border: 1px solid rgba(212,175,55,.62);
  background: var(--gold);
  color: #151007;
}

#screen-v2-command button.secondary {
  border: 1px solid rgba(212,175,55,.28);
  background: rgba(212,175,55,.08);
  color: var(--gold);
}

#screen-v2-command .chart-box,
#screen-v2-command .mini-chart,
#screen-v2-command .heatmap {
  min-height: 220px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #101012;
}

#screen-v2-command .chart-svg .chart-hit {
  cursor: pointer;
  pointer-events: all;
}

#screen-v2-command .line-grid {
  stroke: rgba(255,255,255,.11);
  stroke-width: 1;
}

#screen-v2-command .cfo-chart-card .line-grid {
  stroke: rgba(255,255,255,.14);
}

#screen-v2-command .axis-label {
  fill: var(--muted);
  font-size: 11px;
}

#screen-v2-command .chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

#screen-v2-command .chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

#screen-v2-command .chart-legend i {
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: var(--legend-color);
}

#screen-v2-command .ceo-cockpit-screen .ceo-main-chart {
  min-height: 440px;
}

#screen-v2-command .ceo-cockpit-screen .chart-svg {
  min-height: 320px;
}

#screen-v2-command .ceo-bottom-grid {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
}

#screen-v2-command .ceo-allocation {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  align-items: center;
  gap: 18px;
  min-height: 210px;
}

#screen-v2-command .ceo-allocation svg {
  width: 100%;
  max-width: 240px;
}

#screen-v2-command .ceo-allocation-legend {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

#screen-v2-command .ceo-allocation-legend span {
  display: flex;
  align-items: center;
  gap: 9px;
}

#screen-v2-command .ceo-allocation-legend i {
  width: 11px;
  height: 11px;
  border-radius: 2px;
}

#screen-v2-command .recent-report-list .list-row {
  min-height: 72px;
}

#screen-v2-command .recent-report-list {
  margin-top: 14px;
}

#screen-v2-command .cfo-cockpit-screen {
  display: grid;
  gap: 20px;
}

body[data-v2-screen="cfo-cockpit"] .v2-command-actions .language-pill,
body[data-v2-screen="ceo-cockpit"] .v2-command-actions .language-pill,
body[data-v2-screen="ai-readiness"] .v2-command-actions .language-pill,
body[data-v2-screen="market-intelligence"] .v2-command-actions .language-pill,
body[data-v2-screen="network-discovery"] .v2-command-actions .language-pill,
body[data-v2-screen="network-profile"] .v2-command-actions .language-pill {
  display: none;
}

body[data-v2-screen="ai-readiness"] #languageSelect,
body[data-v2-screen="market-intelligence"] #languageSelect,
body[data-v2-screen="network-discovery"] #languageSelect,
body[data-v2-screen="network-profile"] #languageSelect {
  display: none;
}

#screen-v2-command .cfo-top-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(150px, .44fr) minmax(150px, .44fr);
  gap: 20px;
  align-items: stretch;
}

#screen-v2-command .cfo-action-card {
  min-height: 210px;
}

#screen-v2-command .gold-symbol {
  color: var(--gold);
  margin-right: 10px;
}

#screen-v2-command .cfo-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

#screen-v2-command .cfo-quick-actions {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}

#screen-v2-command .cfo-quick-actions .ghost {
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
}

#screen-v2-command .cfo-quick-actions .ghost:hover {
  border-color: rgba(212,175,55,.5);
  color: var(--gold);
}

#screen-v2-command .cfo-action-tile {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}

#screen-v2-command .cfo-action-tile.red {
  border-color: rgba(255,77,90,.3);
  background: rgba(255,77,90,.1);
}

#screen-v2-command .cfo-action-tile.gold {
  border-color: rgba(212,175,55,.2);
  background: rgba(255,255,255,.025);
}

#screen-v2-command .cfo-action-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(212,175,55,.12);
  color: var(--gold);
  font-weight: 900;
  border: 1px solid rgba(212,175,55,.2);
}

#screen-v2-command .cfo-action-icon::before {
  content: "";
  width: 28px;
  height: 28px;
  display: block;
  background: currentColor;
  transform: translateY(5px);
  -webkit-mask: var(--cfo-icon) center / contain no-repeat;
  mask: var(--cfo-icon) center / contain no-repeat;
}

#screen-v2-command .cfo-action-icon-key {
  --cfo-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6.5' cy='12' r='3.5'/%3E%3Cpath d='M10 12h11m-5 0v3m-3-3v2'/%3E%3C/svg%3E");
}

#screen-v2-command .cfo-action-icon-plug {
  --cfo-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7V2m6 5V2M6 13h12m-9 0v3a3 3 0 0 0 6 0v-3m-3 6v3m-6-9V7h12v6'/%3E%3C/svg%3E");
}

#screen-v2-command .cfo-action-tile.red .cfo-action-icon {
  background: rgba(255,77,90,.18);
  color: var(--red);
}

#screen-v2-command .cfo-action-tile strong,
#screen-v2-command .cfo-action-tile span {
  display: block;
}

#screen-v2-command .cfo-action-tile > div {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
}

#screen-v2-command .cfo-action-tile strong {
  color: #fff9e8;
  margin-bottom: 6px;
}

#screen-v2-command .text-link {
  width: auto;
  min-height: 0;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 800;
  cursor: pointer;
  align-self: end;
  justify-self: start;
}

#screen-v2-command .text-red {
  color: var(--red) !important;
}

#screen-v2-command .cfo-score-card .card-body {
  height: 100%;
  display: grid;
  justify-items: center;
  align-content: space-between;
  text-align: center;
  gap: 12px;
  padding: 30px 18px 26px;
  background:
    radial-gradient(circle at 50% 48%, rgba(212,175,55,.09), transparent 44%),
    linear-gradient(145deg, rgba(255,255,255,.02), transparent);
}

#screen-v2-command .cfo-score-card h3 {
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

#screen-v2-command .cfo-gauge {
  display: grid;
  justify-items: center;
  gap: 14px;
}

#screen-v2-command .cfo-gauge svg {
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 0 12px rgba(212,175,55,.16));
}

#screen-v2-command .cfo-gauge .chart-hit {
  filter: drop-shadow(0 0 4px currentColor);
}

#screen-v2-command .cfo-gauge .delta {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

#screen-v2-command .cfo-gauge-red .delta { color: var(--red); }
#screen-v2-command .cfo-gauge-gold .delta { color: var(--gold); }
#screen-v2-command .cfo-gauge-green .delta { color: var(--green); }

#screen-v2-command .cfo-gauge-red svg {
  filter: drop-shadow(0 0 10px rgba(255,77,90,.14));
}

#screen-v2-command .cfo-gauge-gold svg {
  filter: drop-shadow(0 0 12px rgba(212,175,55,.16));
}

#screen-v2-command .cfo-gauge-green svg {
  filter: drop-shadow(0 0 12px rgba(25,201,135,.14));
}

#screen-v2-command .cfo-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

#screen-v2-command .cfo-chart-card {
  min-height: 405px;
}

#screen-v2-command .cfo-chart-card.clickable:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
  transform: none;
}

#screen-v2-command .cfo-chart-card .chart-svg {
  min-height: 285px;
}

#screen-v2-command .cfo-chart-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

#screen-v2-command .cfo-period-select {
  min-height: 36px;
  min-width: 126px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #15151a;
  color: #fff9e8;
  padding: 0 34px 0 12px;
  font-weight: 700;
}

#screen-v2-command .cfo-period-select:hover,
#screen-v2-command .cfo-period-select:focus {
  border-color: rgba(212,175,55,.45);
  outline: 0;
}

#screen-v2-command .cfo-expense-menu {
  position: relative;
}

#screen-v2-command .cfo-expense-menu-button {
  min-width: 38px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 1px;
}

#screen-v2-command .cfo-expense-menu-button:hover {
  border-color: rgba(212,175,55,.55);
  color: var(--gold);
}

#screen-v2-command .cfo-expense-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  min-width: 170px;
  display: none;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: #111116;
  box-shadow: 0 18px 42px rgba(0,0,0,.42);
}

#screen-v2-command .cfo-expense-menu.is-open .cfo-expense-menu-list {
  display: grid;
  gap: 4px;
}

#screen-v2-command .cfo-expense-menu-list button {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

#screen-v2-command .cfo-expense-menu-list button:hover,
#screen-v2-command .cfo-expense-menu-list button.is-active {
  border-color: rgba(212,175,55,.38);
  background: rgba(212,175,55,.08);
  color: var(--gold);
}

#screen-v2-command .cfo-bottom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .8fr);
  gap: 20px;
  align-items: stretch;
}

#screen-v2-command .cfo-risk-table {
  min-height: 395px;
  overflow: visible;
}

#screen-v2-command .cfo-risk-table .card-body {
  overflow: visible;
}

#screen-v2-command .cfo-risk-table .table {
  margin: 10px -18px -18px;
  width: calc(100% + 36px);
}

#screen-v2-command .cfo-row-actions-cell {
  position: relative;
}

#screen-v2-command .cfo-row-actions-cell .row-action-menu {
  right: 18px;
  top: 42px;
  min-width: 220px;
  z-index: 40;
}

#screen-v2-command .cfo-system-card .card-body {
  display: grid;
  gap: 18px;
}

#screen-v2-command .cfo-system-header {
  margin-bottom: 0;
  align-items: center;
}

#screen-v2-command .cfo-system-list .list-row {
  min-height: 62px;
  background: rgba(255,255,255,.03);
}

#screen-v2-command .cfo-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  box-shadow: 0 0 16px currentColor;
}

#screen-v2-command .cfo-status-dot.green {
  color: var(--green);
  background: var(--green);
}

#screen-v2-command .cfo-status-dot.red {
  color: var(--red);
  background: var(--red);
}

#screen-v2-command .cfo-renewal-box {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 18px;
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 8px;
  background: rgba(212,175,55,.08);
}

#screen-v2-command .cfo-renewal-box strong,
#screen-v2-command .cfo-renewal-box span {
  display: block;
}

#screen-v2-command .cfo-renewal-box .ceo-view-all-button {
  justify-content: center;
  margin-top: 4px;
}

#screen-v2-command .cfo-plan-button {
  justify-content: center;
  min-height: 36px;
  width: 100%;
  margin-top: 4px;
  border-radius: 8px;
  border-color: rgba(212,175,55,.42);
  background: #0b0b0d;
  color: var(--gold);
}

#screen-v2-command .cfo-plan-button:hover {
  border-color: rgba(212,175,55,.68);
  background: rgba(212,175,55,.1);
  color: #f3d66c;
}

#screen-v2-command .tenant-key-screen {
  display: grid;
  gap: 18px;
}

#screen-v2-command .tenant-key-card {
  max-width: 980px;
}

#screen-v2-command .tenant-key-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr);
  gap: 18px;
  align-items: stretch;
}

#screen-v2-command .tenant-key-input {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

#screen-v2-command .tenant-key-input textarea {
  width: 100%;
  resize: vertical;
  min-height: 118px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0b0b0d;
  color: #fff9e8;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

#screen-v2-command .tenant-key-notice {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(212,175,55,.22);
  border-radius: 8px;
  background: rgba(212,175,55,.07);
}

#screen-v2-command .tenant-key-notice strong,
#screen-v2-command .tenant-key-notice span {
  display: block;
}

#screen-v2-command .tenant-key-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

#screen-v2-command .ai-readiness-screen {
  width: 100%;
  margin: 0;
}

#screen-v2-command .ai-readiness-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

#screen-v2-command .ai-kpi-card {
  min-height: 118px;
  background:
    radial-gradient(circle at 92% 12%, rgba(212,175,55,.08), transparent 32%),
    var(--panel);
}

#screen-v2-command .ai-kpi-card .card-body {
  padding: 20px;
}

#screen-v2-command .ai-kpi-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}

#screen-v2-command .ai-kpi-content strong {
  color: #fff9e8;
  font-size: 30px;
  line-height: 1;
}

#screen-v2-command .ai-kpi-content small {
  color: var(--muted);
  font-size: 16px;
}

#screen-v2-command .ai-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) var(--value), rgba(255,255,255,.08) 0);
  position: relative;
}

#screen-v2-command .ai-ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background: var(--panel);
}

#screen-v2-command .ai-kpi-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--blue);
  font-weight: 900;
}

#screen-v2-command .ai-kpi-icon.red { color: var(--red); }
#screen-v2-command .ai-kpi-icon.gold { color: var(--gold); }
#screen-v2-command .ai-kpi-icon.green { color: var(--green); }

#screen-v2-command .ai-readiness-layout {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.62fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

#screen-v2-command .maturity-card,
#screen-v2-command .recommended-card,
#screen-v2-command .unlock-card,
#screen-v2-command .sector-update-card {
  background: var(--panel);
}

#screen-v2-command .maturity-card .card-body,
#screen-v2-command .recommended-card .card-body,
#screen-v2-command .unlock-card .card-body,
#screen-v2-command .sector-update-card .card-body {
  padding: 20px;
}

#screen-v2-command .maturity-roadmap {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

#screen-v2-command .maturity-step {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  color: var(--muted);
  position: relative;
}

#screen-v2-command .maturity-step::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: -14px;
  width: 1px;
  background: rgba(255,255,255,.08);
}

#screen-v2-command .maturity-step:last-child::before { display: none; }

#screen-v2-command .maturity-step strong {
  color: #f7f4ef;
  display: block;
  margin: 1px 0 6px;
}

#screen-v2-command .maturity-step p,
#screen-v2-command .ai-action-row p,
#screen-v2-command .unlock-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

#screen-v2-command .step-dot {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(212,175,55,.8);
  border-radius: 50%;
  color: #151007;
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  margin-top: 2px;
  z-index: 1;
}

#screen-v2-command .maturity-step.done .step-dot {
  border-color: var(--gold);
  background: var(--gold);
}

#screen-v2-command .ai-readiness-stack {
  display: grid;
  gap: 16px;
}

#screen-v2-command .ai-action-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

#screen-v2-command .ai-action-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 12px;
}

#screen-v2-command .ai-action-row strong,
#screen-v2-command .unlock-preview strong {
  display: block;
  color: #f7f4ef;
  margin-bottom: 6px;
}

#screen-v2-command .ai-action-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(212,175,55,.13);
  color: var(--gold);
  font-weight: 900;
}

#screen-v2-command .ai-action-button {
  white-space: nowrap;
  min-width: 104px;
}

#screen-v2-command .unlock-card {
  min-height: 208px;
}

#screen-v2-command .unlock-preview {
  margin: 16px 0;
  padding: 22px;
  text-align: center;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.02), rgba(212,175,55,.08), rgba(255,255,255,.02)),
    #101012;
}

#screen-v2-command .unlock-preview span {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(212,175,55,.34);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(212,175,55,.09);
}

#screen-v2-command .sector-update-table {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

#screen-v2-command .sector-update-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 12px;
}

#screen-v2-command .sector-update-row strong,
#screen-v2-command .sector-update-row span {
  display: block;
}

#screen-v2-command .sector-update-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

#screen-v2-command .sector-update-row select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f0f12;
  color: var(--text);
  padding: 0 12px;
}

#screen-v2-command .ai-readiness-native-v3 {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  gap: 24px;
}

#screen-v2-command .ai-v3-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#screen-v2-command .ai-v3-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px;
}

#screen-v2-command .ai-v3-kpi {
  min-height: 134px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 10%, rgba(212,175,55,.09), transparent 34%),
    var(--panel);
}

#screen-v2-command .ai-v3-kpi .card-body {
  min-height: 134px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
}

#screen-v2-command .ai-v3-kpi strong {
  display: block;
  margin: 10px 0 8px;
  color: #fff9e8;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

#screen-v2-command .ai-v3-kpi strong small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 17px;
}

#screen-v2-command .ai-v3-kpi p {
  max-width: 560px;
  margin: 0;
  line-height: 1.45;
}

#screen-v2-command .ai-v3-ring {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--gold) var(--value), rgba(255,255,255,.08) 0);
  box-shadow: 0 0 28px rgba(212,175,55,.16);
  position: relative;
}

#screen-v2-command .ai-v3-ring.green { background: conic-gradient(var(--green) var(--value), rgba(255,255,255,.08) 0); }
#screen-v2-command .ai-v3-ring.red { background: conic-gradient(var(--red) var(--value), rgba(255,255,255,.08) 0); }

#screen-v2-command .ai-v3-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: var(--panel);
}

#screen-v2-command .ai-v3-ring strong {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 20px;
}

#screen-v2-command .ai-v3-ring small {
  font-size: 11px;
}

#screen-v2-command .ai-v3-kpi-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--gold);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

#screen-v2-command .ai-v3-kpi-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#screen-v2-command .ai-v3-kpi-icon.green { color: var(--green); }
#screen-v2-command .ai-v3-kpi-icon.red { color: var(--red); }

#screen-v2-command .ai-v3-layout {
  display: grid;
  grid-template-columns: minmax(330px, .78fr) minmax(0, 1.62fr);
  gap: 24px;
  align-items: start;
}

#screen-v2-command .ai-v3-roadmap-card .card-body,
#screen-v2-command .ai-v3-actions-card .card-body,
#screen-v2-command .ai-v3-unlock-card .card-body,
#screen-v2-command .ai-v3-source-card .card-body {
  padding: 24px;
}

#screen-v2-command .ai-v3-roadmap {
  position: relative;
  display: grid;
  gap: 22px;
  margin: 24px 0 0 8px;
  padding-left: 20px;
  border-left: 1px solid #2a2a31;
}

#screen-v2-command .ai-v3-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  color: var(--muted);
}

#screen-v2-command .ai-v3-dot {
  position: absolute;
  left: -30px;
  top: 2px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(212,175,55,.78);
  border-radius: 50%;
  background: var(--panel);
  color: #151007;
  font-size: 10px;
  font-weight: 950;
}

#screen-v2-command .ai-v3-step.done .ai-v3-dot {
  background: var(--gold);
  border-color: var(--gold);
  font-size: 0;
}

#screen-v2-command .ai-v3-step.done .ai-v3-dot::before {
  content: "✓";
  font-size: 10px;
}

#screen-v2-command .ai-v3-step strong,
#screen-v2-command .ai-v3-action strong,
#screen-v2-command .ai-v3-unlock strong {
  display: block;
  color: #fff9e8;
  margin-bottom: 6px;
}

#screen-v2-command .ai-v3-step p,
#screen-v2-command .ai-v3-action p,
#screen-v2-command .ai-v3-unlock p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

#screen-v2-command .ai-v3-step .ai-action-button {
  margin-top: 10px;
  min-height: 34px;
  border-radius: 7px;
  border-color: transparent;
  background: var(--gold);
  color: #080808;
  padding: 0 18px;
  box-shadow: 0 8px 20px rgba(212,175,55,.18);
  font-weight: 900;
}

#screen-v2-command .ai-v3-stack,
#screen-v2-command .ai-v3-actions,
#screen-v2-command .ai-v3-source-list {
  display: grid;
  gap: 16px;
}

#screen-v2-command .ai-v3-actions {
  margin-top: 18px;
}

#screen-v2-command .ai-v3-action {
  min-height: 76px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
}

#screen-v2-command .ai-v3-action .ai-action-button,
#screen-v2-command .ai-v3-unlock .ai-action-button {
  min-height: 40px;
  border: 1px solid rgba(212,175,55,.72);
  border-radius: 8px;
  background: #0b0b0d;
  color: var(--gold);
  padding: 0 18px;
  box-shadow: none;
  font-weight: 900;
}

#screen-v2-command .ai-v3-action .ai-action-button:hover,
#screen-v2-command .ai-v3-unlock .ai-action-button:hover {
  background: rgba(212,175,55,.10);
  border-color: var(--gold);
}

#screen-v2-command .ai-v3-action-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212,175,55,.22);
  border-radius: 10px;
  color: var(--gold);
  background: rgba(212,175,55,.10);
  font-weight: 950;
}

#screen-v2-command .ai-v3-unlock {
  min-height: 172px;
  display: grid;
  place-items: center;
  gap: 8px;
  margin: 20px 0;
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 44%, rgba(212,175,55,.18), transparent 18%),
    linear-gradient(90deg, rgba(255,255,255,.02), rgba(212,175,55,.07), rgba(255,255,255,.02)),
    #101012;
  overflow: hidden;
  position: relative;
}

#screen-v2-command .ai-v3-unlock::before {
  content: "";
  position: absolute;
  inset: 28px 36px 76px;
  filter: blur(10px);
  opacity: .6;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}

#screen-v2-command .ai-v3-unlock::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.18));
  pointer-events: none;
}

#screen-v2-command .ai-v3-unlock > * {
  position: relative;
  z-index: 1;
}

#screen-v2-command .ai-v3-unlock span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212,175,55,.34);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(212,175,55,.09);
}

#screen-v2-command .ai-v3-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 10px;
}

#screen-v2-command .ai-v3-metrics span {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
}

#screen-v2-command .ai-v3-metrics strong {
  display: block;
  color: #fff9e8;
  font-size: 18px;
}

@media (max-width: 980px) {
  #screen-v2-command .ai-readiness-kpis,
  #screen-v2-command .ai-readiness-layout,
  #screen-v2-command .ai-v3-kpi-grid,
  #screen-v2-command .ai-v3-layout,
  #screen-v2-command .ai-v3-metrics,
  #screen-v2-command .sector-update-row,
  #screen-v2-command .cfo-top-layout,
  #screen-v2-command .cfo-action-grid,
  #screen-v2-command .cfo-chart-grid,
  #screen-v2-command .cfo-bottom-layout,
  #screen-v2-command .tenant-key-layout {
    grid-template-columns: 1fr;
  }

  #screen-v2-command .ai-action-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  #screen-v2-command .ai-action-row .ai-action-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  #screen-v2-command .ai-v3-action {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  #screen-v2-command .ai-v3-action .ai-action-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

.risk-screen-heading {
  align-items: end;
}

.risk-screen-heading .inline-select-label {
  margin-left: auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 34px; line-height: 1.12; }
h2 { margin-bottom: 0; font-size: 16px; line-height: 1.3; }

.screen-meta, .panel-head span, .kpi-card span, .kpi-card small, th, .settings-line, .report-tile span, .pricing-card small {
  color: var(--muted);
}

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

.kpi-card, .panel, .report-tile, .pricing-card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.kpi-card {
  min-height: 184px;
  padding: 18px;
  display: grid;
  grid-template-rows: auto auto auto 58px;
  gap: 8px;
}

.kpi-card strong {
  font-size: 30px;
  line-height: 1.1;
  color: #fff9e8;
}

.trend.up { color: var(--green); }
.trend.down { color: var(--red); }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(420px, 1.4fr);
  gap: 16px;
  margin-bottom: 16px;
}

.wide { grid-column: span 1; }

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

.file-ingestion-panel {
  border: 1px solid rgba(255,255,255,.11);
  background: linear-gradient(180deg, rgba(28,28,31,.96), rgba(16,16,18,.96));
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 0 0 18px;
}

.file-ingestion-head,
.file-upload-grid,
.file-preview-layout {
  display: grid;
  gap: 14px;
}

.file-ingestion-head {
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: start;
  margin-bottom: 14px;
}

.file-ingestion-head h2,
.file-preview-card h2,
.file-batches-card h2 {
  margin: 0;
}

.file-ingestion-head p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 760px;
}

.file-ingestion-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.file-ingestion-actions select,
.file-upload-card select,
.file-upload-card input[type="file"] {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #101114;
  color: var(--text);
  padding: 0 12px;
}

.file-template-download {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.file-upload-grid {
  grid-template-columns: minmax(280px, 360px) minmax(360px, 1fr);
  margin-bottom: 14px;
}

.file-upload-card,
.file-batch-card,
.file-preview-card,
.file-batches-card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.035);
  border-radius: 8px;
  padding: 14px;
  min-width: 0;
}

.file-upload-card {
  display: grid;
  gap: 10px;
}

.file-drop-zone {
  min-height: 122px;
  border: 1px dashed rgba(229, 52, 52, .58);
  background: rgba(229, 52, 52, .06);
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  color: var(--muted);
}

.file-drop-zone input {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.file-drop-zone strong {
  color: #fff;
}

.file-strict-toggle {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.file-upload-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
}

.file-batch-summary-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.file-batch-summary-head strong {
  color: #fff9e8;
  font-size: 20px;
}

.file-batch-summary-head small,
.file-count-grid span,
.file-batch-row small,
.file-error-item span {
  color: var(--muted);
}

.file-count-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 10px;
}

.file-count-grid div {
  background: rgba(255,255,255,.045);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.file-count-grid strong {
  font-size: 22px;
  color: #fff;
}

.file-preview-layout {
  grid-template-columns: minmax(420px, 1.3fr) minmax(300px, .8fr);
  margin-bottom: 14px;
}

.file-preview-table {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.file-preview-table table {
  min-width: 720px;
}

.file-error-list,
.file-batch-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.file-error-item {
  border: 1px solid rgba(229, 52, 52, .25);
  background: rgba(229, 52, 52, .07);
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.file-batch-row {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.035);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
}

.file-batch-row.is-selected,
.file-batch-row:hover {
  border-color: rgba(229, 52, 52, .72);
  background: rgba(229, 52, 52, .08);
}

.file-batch-row span:first-child {
  display: grid;
  gap: 3px;
}

.file-status-pill {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--muted);
}

.file-status-pill.valid {
  color: var(--green);
  border-color: rgba(110,219,143,.35);
  background: rgba(110,219,143,.08);
}

.file-status-pill.warning {
  color: #ffcc66;
  border-color: rgba(255,204,102,.35);
  background: rgba(255,204,102,.08);
}

.empty-state {
  min-height: 130px;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  color: var(--muted);
}

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

@media (max-width: 980px) {
  .file-ingestion-head,
  .file-upload-grid,
  .file-preview-layout {
    grid-template-columns: 1fr;
  }

  .file-ingestion-actions {
    justify-content: flex-start;
  }

  .file-batch-row {
    grid-template-columns: 1fr;
  }

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

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

.chart-panel canvas, .kpi-card canvas {
  width: 100%;
  max-width: 100%;
}

.legend, .benchmark, .stack-list, .driver-list {
  display: grid;
  gap: 10px;
}

.legend-item, .benchmark-row, .stack-item, .driver-card, .settings-line, .toggle-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 99px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

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

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

td { font-size: 14px; }
tbody tr { transition: background .16s ease, color .16s ease; }
tbody tr:hover { background: rgba(212,175,55,.08); }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
}

.badge.low { color: var(--green); background: rgba(110,219,143,.12); border-color: rgba(110,219,143,.28); }
.badge.medium { color: var(--orange); background: rgba(255,138,31,.12); border-color: rgba(255,138,31,.28); }
.badge.high { color: var(--red); background: rgba(255,90,95,.12); border-color: rgba(255,90,95,.28); }
.badge.neutral { color: var(--muted); background: #18181b; border-color: var(--border); }

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 180px 150px;
  gap: 10px;
  margin-bottom: 16px;
}

.filters input, .filters select, #riskCompanySelect {
  height: 42px;
  padding: 0 12px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
  gap: 16px;
}

.company-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.company-header span:first-child {
  color: var(--muted);
  font-size: 13px;
}

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

.metric-row div {
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 8px;
}

.metric-row span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.metric-row strong { font-size: 22px; }

.alert-grid, .integration-grid, .report-grid, .pricing-grid, .settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

#screen-settings > .settings-grid {
  display: none;
}

.settings-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 18px;
}

.settings-profile-card {
  grid-column: 1 / -1;
}

.settings-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
}

.settings-avatar {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(214, 178, 63, .22), rgba(255, 255, 255, .04));
  border: 1px solid rgba(214, 178, 63, .45);
  color: #ffe28a;
  font-size: 24px;
  font-weight: 900;
  overflow: hidden;
}

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

#settingsAvatarInput {
  display: none;
}

.settings-avatar-button {
  display: inline-flex;
  margin-bottom: 8px;
}

.settings-avatar-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

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

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

.settings-form-grid label {
  display: grid;
  gap: 8px;
  color: #b8c2d2;
  font-size: 13px;
  font-weight: 700;
}

.settings-form-grid input,
.settings-form-grid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #101012;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.settings-form-grid input:focus,
.settings-form-grid select:focus {
  border-color: rgba(214, 178, 63, .75);
  box-shadow: 0 0 0 3px rgba(214, 178, 63, .12);
}

.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 12px;
}

.password-strength i {
  width: 78px;
  height: 6px;
  border-radius: 999px;
  background: #2a2d35;
  overflow: hidden;
}

.password-strength i::after {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--muted);
}

.password-strength.is-weak i::after {
  width: 33%;
  background: var(--danger);
}

.password-strength.is-medium i::after {
  width: 66%;
  background: var(--warning);
}

.password-strength.is-strong i::after {
  width: 100%;
  background: var(--success);
}

.login-card .password-strength {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.login-card .password-strength span {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #26262a;
}

.login-card .password-strength i {
  display: block;
  height: 100%;
  width: 8%;
  background: var(--red);
  border-radius: inherit;
  transition: width .16s ease, background .16s ease;
}

.login-card .password-strength i::after {
  content: none;
}

.login-card .password-strength[data-score="3"] i { background: var(--orange); }
.login-card .password-strength[data-score="4"] i,
.login-card .password-strength[data-score="5"] i { background: var(--green); }

.reset-code-timer {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.reset-code-timer[hidden] {
  display: none;
}

.reset-code-timer span {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #26262a;
}

.reset-code-timer i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--gold);
  transition: width .2s linear;
}

#requestResetButton:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.settings-toggle-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.settings-toggle {
  margin-top: 10px;
}

.settings-summary-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.settings-summary-line {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0b0b0c;
}

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

.settings-summary-line strong {
  color: var(--text);
  font-size: 14px;
  word-break: break-word;
}

.org-access-grid {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.4fr);
  gap: 16px;
}

.org-user-form-panel {
  align-self: start;
}

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

.org-access-section {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.org-access-section h3 {
  margin: 0;
  color: #dbe7f6;
  font-size: 13px;
  text-transform: uppercase;
}

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

.checkbox-grid label {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0b0b0c;
  color: #d7e4f5;
  font-size: 12px;
}

.checkbox-grid input {
  width: 15px;
  height: 15px;
  accent-color: var(--gold);
}

.company-access-grid {
  max-height: 260px;
  overflow: auto;
}

.org-user-list-panel table {
  min-width: 820px;
}

.org-access-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(45,170,225,.12);
  color: #a9c4e6;
  font-size: 12px;
  font-weight: 800;
}

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

.alert-card, .integration-card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
  padding: 16px;
  min-height: 168px;
  display: grid;
  gap: 12px;
}

.integrations-heading {
  align-items: flex-start;
}

.integration-header-actions,
.integration-section-title,
.integration-activity-filters,
.erp-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.integration-header-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.system-status-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: #111115;
  color: #c4c7cf;
  border-radius: 8px;
  font-size: 13px;
}

.system-status-pill i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #27d3a2;
  box-shadow: 0 0 16px rgba(39,211,162,.65);
}

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

.integration-kpi-card {
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.integration-kpi-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(212,175,55,.25);
  background: rgba(212,175,55,.12);
  color: var(--gold);
  font-weight: 900;
}

.integration-kpi-card.green .integration-kpi-icon {
  color: #22c997;
  border-color: rgba(34,201,151,.28);
  background: rgba(34,201,151,.12);
}

.integration-kpi-card.red .integration-kpi-icon {
  color: #ff5a5f;
  border-color: rgba(255,90,95,.28);
  background: rgba(255,90,95,.12);
}

.integration-kpi-card.neutral .integration-kpi-icon {
  color: #a9aeb9;
  border-color: rgba(169,174,185,.24);
  background: rgba(169,174,185,.08);
}

.integration-kpi-card span:not(.integration-kpi-icon) {
  display: block;
  color: #9da3b1;
  margin-bottom: 6px;
}

.integration-kpi-card strong {
  margin-right: 8px;
  color: #fff;
  font-size: 28px;
}

.integration-kpi-card small {
  color: #9da3b1;
}

.integration-kpi-card.green small {
  color: #22c997;
}

.integration-workspace {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 352px;
  gap: 32px;
}

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

.integration-section-title {
  justify-content: space-between;
  margin-bottom: 24px;
}

.integration-section-title h2,
.integration-activity-panel h2 {
  margin: 0;
  font-size: 22px;
}

.integration-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
}

.erp-system-card {
  min-height: 238px;
  padding: 20px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 92% 10%, rgba(212,175,55,.11), transparent 34%),
    var(--panel);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.erp-system-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.erp-system-head h2 {
  margin: 0 0 3px;
  font-size: 18px;
}

.erp-system-head p,
.erp-metric-row span,
.sync-activity-row small,
.integration-setup-callout p {
  color: #a7abb5;
}

.erp-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  font-weight: 900;
}

.erp-logo.sap { background: #fff; color: #008bd2; }
.erp-logo.logo { background: #f40517; }
.erp-logo.netsis { background: #006fc9; }
.erp-logo.nebim { background: #ff6a00; }
.erp-logo.generic { background: #22262e; }

.erp-status {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.erp-status.connected {
  color: #22c997;
  background: rgba(34,201,151,.14);
  border: 1px solid rgba(34,201,151,.28);
}

.erp-status.syncing {
  color: #ffb41f;
  background: rgba(255,180,31,.14);
  border: 1px solid rgba(255,180,31,.28);
}

.erp-status.error {
  color: #ff5a5f;
  background: rgba(255,90,95,.14);
  border: 1px solid rgba(255,90,95,.28);
}

.erp-metric-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0;
}

.erp-progress {
  height: 5px;
  overflow: hidden;
  background: #070708;
  border: 1px solid #2a2a30;
  border-radius: 999px;
}

.erp-progress i {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: inherit;
}

.erp-system-card.error .erp-progress i {
  background: #ff5a5f;
}

.erp-card-actions {
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.integration-setup-callout {
  min-height: 102px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 22px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 12px;
}

.integration-magic-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,.34);
  background: rgba(212,175,55,.12);
  color: var(--gold);
  font-size: 26px;
  font-weight: 900;
}

.integration-setup-callout h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.integration-activity-panel {
  min-height: 680px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-self: start;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.integration-activity-panel h2 {
  padding: 22px 18px 16px;
}

.integration-activity-filters {
  padding: 0 12px 12px;
}

.integration-activity-filters select {
  width: 50%;
  height: 34px;
  padding: 0 10px;
  background: #0b0b0d;
}

.sync-activity-list {
  border-top: 1px solid var(--border);
}

.sync-activity-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.sync-status-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.sync-activity-row.success .sync-status-icon {
  color: #22c997;
  background: rgba(34,201,151,.16);
}

.sync-activity-row.error .sync-status-icon {
  color: #ff5a5f;
  background: rgba(255,90,95,.16);
}

.sync-activity-row.warning .sync-status-icon {
  color: #ffb41f;
  background: rgba(255,180,31,.16);
}

.sync-activity-row strong {
  display: block;
  color: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.sync-activity-row.warning strong {
  color: #ffb41f;
}

.sync-activity-row time {
  color: #a7abb5;
  font-size: 12px;
}

.view-all-logs-button {
  height: 48px;
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  color: var(--gold);
  font-weight: 800;
}

.alert-card.high { border-color: rgba(255,90,95,.35); }
.alert-card.medium { border-color: rgba(255,138,31,.35); }
.alert-card.low { border-color: rgba(110,219,143,.28); }

.alert-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, .7fr)) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #101012;
  padding: 14px;
}

.alert-filter-bar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.alert-filter-bar input,
.alert-filter-bar select {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #09090b;
  color: var(--text);
  padding: 0 11px;
}

.alert-filter-bar .ghost-button {
  min-height: 38px;
}

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

.alert-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
}

.alert-detail-main,
.alert-detail-side {
  min-height: 220px;
}

.alert-detail-description {
  margin: 18px 0;
  color: #d5d7df;
  line-height: 1.7;
}

.alert-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px;
}

.alert-detail-facts div {
  border: 1px solid var(--border);
  background: #0f0f12;
  border-radius: 8px;
  padding: 12px;
}

.alert-detail-facts dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.alert-detail-facts dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.alert-audit-evidence-block {
  margin-top: 18px;
}

.alert-audit-evidence-block:empty {
  display: none;
}

.alert-audit-evidence-panel {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.alert-audit-evidence-panel .audit-evidence-data {
  margin-top: 12px;
}

.alert-audit-evidence-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.alert-detail-side {
  display: grid;
  align-content: start;
  gap: 12px;
}

@media (max-width: 980px) {
  .alert-filter-bar,
  .alert-detail-layout {
    grid-template-columns: 1fr;
  }
}

.ghost-button {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f0f11;
  color: var(--text);
}

.nav-icon-audit {
  position: relative;
  width: 17px;
  height: 17px;
  display: inline-block;
  opacity: .9;
  margin-left: 0;
}

.nav-icon-audit::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 9px;
  height: 9px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 999px;
  opacity: .95;
}

.nav-icon-audit::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 11px;
  width: 6px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: rotate(45deg);
  transform-origin: left center;
  opacity: .95;
}

.report-tile, .pricing-card {
  min-height: 138px;
  padding: 18px;
  display: grid;
  align-content: space-between;
}

.report-tile-button {
  text-align: left;
  cursor: pointer;
}

.report-tile small {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(212,175,55,.22);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(212,175,55,.08);
  font-size: 12px;
}

.report-tile.is-placeholder {
  cursor: pointer;
}

.report-tile.is-placeholder small {
  color: #a7abb5;
  border-color: var(--border);
  background: #111115;
}

.report-tile.featured {
  border-color: rgba(212,175,55,.48);
  background:
    linear-gradient(135deg, rgba(212,175,55,.16), transparent 46%),
    var(--panel);
}

.audit-report-shell {
  display: grid;
  gap: 22px;
}

.audit-report-head,
.audit-report-panel,
.audit-report-kpi {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #101012;
  box-shadow: 0 18px 42px rgba(0,0,0,.2);
}

.audit-report-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 22px;
}

.audit-report-head h1 { margin: 4px 0 8px; }

.audit-report-head-actions {
  display: grid;
  grid-template-columns: minmax(220px, 300px) auto;
  gap: 14px;
  align-items: start;
  justify-self: end;
}

.audit-report-head-actions .ghost-button {
  white-space: nowrap;
}

.audit-report-scope {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #151518;
}

.audit-report-scope span,
.audit-report-scope small {
  color: var(--muted);
  font-size: 12px;
}

.audit-report-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.audit-report-kpi {
  padding: 18px;
}

.audit-report-kpi span {
  color: var(--muted);
  font-size: 13px;
}

.audit-report-kpi strong {
  display: block;
  margin-top: 14px;
  font-size: 30px;
}

.audit-report-kpi small {
  color: var(--muted);
  font-size: 14px;
  margin-left: 4px;
}

.audit-report-kpi.gold strong { color: var(--gold); }
.audit-report-kpi.red strong,
.audit-report-kpi.high strong { color: var(--red); }
.audit-report-kpi.blue strong { color: var(--blue); }

.audit-report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
}

.audit-report-panel {
  padding: 22px;
  overflow: hidden;
}

.audit-report-summary {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.audit-report-control-list {
  display: grid;
  gap: 10px;
}

.audit-report-control-list article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #151518;
}

.audit-report-control-list article.is-clickable {
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.audit-report-control-list article.is-clickable:hover {
  border-color: rgba(212,175,55,.48);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0,0,0,.24);
}

.audit-report-control-list article.is-clickable:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.audit-report-control-list i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(212,175,55,.12);
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
}

.audit-report-control-list strong {
  display: block;
  font-size: 14px;
}

.audit-report-control-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.audit-report-mini-trend {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 12px 4px 24px;
  border-top: 1px solid var(--border);
}

.audit-report-mini-trend span {
  position: relative;
  flex: 1;
  min-height: 12px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--gold), rgba(212,175,55,.35));
}

.audit-report-mini-trend i {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}

.audit-report-table {
  overflow-x: auto;
}

.audit-report-table table {
  width: 100%;
  border-collapse: collapse;
}

.audit-report-table td,
.audit-report-table th {
  border-top: 1px solid var(--border);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

.audit-report-table td strong,
.audit-report-table td small {
  display: block;
}

.audit-report-table td small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.audit-report-table tr.audit-finding-row:hover td,
.audit-report-table tr.audit-finding-row.is-selected td {
  background: rgba(212,175,55,.055);
}

.audit-report-table tr.audit-finding-row.is-selected td:first-child {
  box-shadow: inset 3px 0 0 var(--gold);
}

.audit-finding-detail {
  margin-top: 18px;
  border: 1px solid rgba(212,175,55,.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(212,175,55,.055), rgba(255,255,255,.018));
  padding: 18px;
}

.audit-finding-detail.is-empty {
  border-color: var(--border);
  background: #101012;
}

.audit-finding-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.audit-finding-detail-head span,
.audit-finding-detail dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.audit-finding-detail-head strong {
  color: var(--gold);
  font-size: 12px;
}

.audit-finding-detail h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.audit-finding-detail dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.audit-finding-detail div {
  display: grid;
  gap: 4px;
}

.audit-finding-detail dd {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.audit-detail-page {
  display: grid;
  gap: 22px;
}

.audit-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  gap: 22px;
}

.audit-detail-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #101012;
  padding: 22px;
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}

.audit-detail-primary {
  border-color: rgba(212,175,55,.2);
}

.audit-detail-card p {
  color: var(--muted);
  line-height: 1.55;
}

.audit-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.audit-detail-list div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #151518;
}

.audit-detail-list dt {
  color: var(--muted);
  font-size: 12px;
}

.audit-detail-list dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.audit-detail-action {
  margin-top: 18px;
  border: 1px solid rgba(212,175,55,.24);
  border-radius: 8px;
  padding: 14px;
  background: rgba(212,175,55,.06);
}

.audit-detail-action strong {
  color: var(--gold);
}

.audit-detail-action > p {
  margin: 0 0 12px;
  color: var(--text-muted);
}

.audit-detail-action > div p {
  margin-bottom: 0;
}

.audit-noncompliance-link {
  width: 100%;
  min-height: 40px;
  margin-top: 12px;
  border: 1px solid rgba(212,175,55,.55);
  border-radius: 8px;
  background: rgba(212,175,55,.12);
  color: var(--gold);
  font-weight: 800;
  cursor: pointer;
}

.audit-noncompliance-link:hover {
  background: rgba(212,175,55,.18);
  border-color: rgba(212,175,55,.82);
}

.noncompliance-filter-row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(180px, 220px) 148px 148px 142px;
  align-items: end;
  gap: 10px;
}

.noncompliance-filter-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.noncompliance-filter-row input,
.noncompliance-filter-row select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #09090b;
  color: var(--text);
  padding: 0 10px;
}

.noncompliance-filter-row .primary-button {
  min-height: 36px;
  padding: 0 14px;
  white-space: nowrap;
}

.noncompliance-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.noncompliance-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #151518;
  color: var(--muted);
  padding: 0 10px;
  cursor: pointer;
  font-size: 12px;
}

.noncompliance-tag strong {
  min-width: 24px;
  min-height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 12px;
}

.noncompliance-tag.is-active {
  border-color: rgba(212,175,55,.72);
  color: var(--gold);
  background: rgba(212,175,55,.09);
}

.noncompliance-tag.is-active strong {
  background: rgba(212,175,55,.2);
  color: var(--gold);
}

.noncompliance-value {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 7px;
  border: 1px solid rgba(255,72,91,.35);
  background: rgba(255,72,91,.08);
  color: #ff6375;
  padding: 3px 9px;
  font-weight: 800;
}

.noncompliance-detail-button {
  min-height: 34px;
  white-space: nowrap;
}

.audit-detail-evidence {
  display: grid;
  gap: 10px;
}

.audit-detail-evidence-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.audit-detail-evidence-row span {
  width: max-content;
  height: 26px;
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--gold);
  background: rgba(212,175,55,.08);
  font-size: 12px;
}

.audit-detail-evidence-row strong {
  display: block;
}

.audit-detail-evidence-row p {
  margin: 6px 0;
  color: var(--muted);
}

.audit-detail-evidence-row small {
  color: #777b86;
}

.audit-detail-evidence-row--values {
  border: 1px solid rgba(212,175,55,.26);
  border-radius: 8px;
  padding: 14px;
  background: rgba(212,175,55,.05);
}

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

.audit-inline-value-grid div {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0,0,0,.18);
}

.audit-inline-value-grid small,
.audit-inline-value-grid span {
  display: block;
  color: var(--muted);
}

.audit-inline-value-grid strong {
  margin: 5px 0;
  color: var(--gold);
}

.audit-evidence-data {
  margin-top: 12px;
  border: 1px solid rgba(212,175,55,.18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.02);
}

.audit-detail-values {
  margin-top: 16px;
}

.audit-detail-evidence-values {
  margin-bottom: 14px;
}

.audit-evidence-data--primary {
  border-color: rgba(212,175,55,.3);
  background: rgba(212,175,55,.05);
}

.audit-evidence-data > strong {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.audit-evidence-data table {
  width: 100%;
  border-collapse: collapse;
}

.audit-evidence-data th,
.audit-evidence-data td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.audit-evidence-data th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.audit-evidence-data tr:last-child td {
  border-bottom: 0;
}

.audit-evidence-data code {
  color: var(--gold);
  font-family: inherit;
  font-weight: 800;
}

.pulse-once {
  animation: auditPulseOnce 900ms ease;
}

@keyframes auditPulseOnce {
  0%, 100% { box-shadow: none; }
  40% { box-shadow: inset 0 0 0 999px rgba(212,175,55,.08); }
}

.audit-report-severity {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,.28);
  color: var(--gold);
  background: rgba(212,175,55,.08);
  font-size: 12px;
}

.audit-report-severity.High,
.audit-report-severity.Critical {
  color: var(--red);
  border-color: rgba(255,90,95,.38);
  background: rgba(255,90,95,.1);
}

#screen-integration-new .file-ingestion-panel {
  margin-top: 0;
}

.heatmap-report-shell { display: grid; gap: 26px; }

.heatmap-report-head,
.heatmap-toolbar,
.heatmap-layout,
.heatmap-detail-panel {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 12px;
}

.heatmap-report-head {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
}

.heatmap-report-head h1 { margin: 0 0 4px; }

.heatmap-head-actions,
.heatmap-toolbar,
.heatmap-toolbar-actions,
.heatmap-detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.heatmap-head-actions {
  justify-content: flex-end;
  flex: 1 1 auto;
}

.heatmap-search {
  width: min(360px, 100%);
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: #0b0b0d;
  border-radius: 8px;
}

.heatmap-search input { flex: 1; height: 100%; border: 0; background: transparent; }

.heatmap-toolbar { justify-content: space-between; padding: 16px 24px; }
.heatmap-toolbar label { display: flex; align-items: center; gap: 10px; color: #a7abb5; }
.heatmap-toolbar select { height: 38px; min-width: 150px; padding: 0 12px; }

.heatmap-layout {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.heatmap-side { display: grid; align-content: start; gap: 24px; }

.heatmap-side-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  background: #121215;
  border-radius: 12px;
}

.heatmap-side-card > span { color: #a7abb5; }
.heatmap-side-card > strong { color: #fff; font-size: 34px; }

.heatmap-risk-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.heatmap-risk-row.high span { color: #ff5a5f; }
.heatmap-risk-row.medium span { color: #ffb41f; }
.heatmap-risk-row.low span { color: #2fbf9c; }
.heatmap-risk-row i { grid-column: 1 / -1; height: 6px; background: #080809; border-radius: 99px; overflow: hidden; }
.heatmap-risk-row i::before { content: ""; display: block; width: 42%; height: 100%; background: currentColor; border-radius: inherit; }

.heatmap-legend { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: center; }
.heatmap-legend i { width: 15px; height: 15px; border-radius: 3px; border: 1px solid; }
.heatmap-legend .critical { color: #ff5a5f; background: rgba(255,90,95,.22); }
.heatmap-legend .watch { color: #ffb41f; background: rgba(255,180,31,.18); }
.heatmap-legend .stable { color: #2fbf9c; background: rgba(47,191,156,.18); }
.heatmap-legend.selected { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--gold); }
.heatmap-legend.selected i { border: 2px solid var(--gold); box-shadow: 0 0 16px rgba(212,175,55,.6); }

.heatmap-main-panel {
  min-width: 0;
  padding: 28px 32px;
  border: 1px solid var(--border);
  background: #121215;
  border-radius: 12px;
}

.heatmap-axis-wrap { display: grid; gap: 16px; }
.heatmap-grid { display: grid; grid-template-columns: repeat(5, minmax(96px, 1fr)); gap: 8px; }

.heatmap-cell {
  min-height: 126px;
  display: grid;
  place-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  background: rgba(47,191,156,.18);
}

.heatmap-cell strong { font-size: 22px; }
.heatmap-cell span { color: rgba(255,255,255,.75); font-size: 12px; }
.heatmap-cell.critical { background: rgba(255,90,95,.25); }
.heatmap-cell.watch { background: rgba(255,180,31,.2); }
.heatmap-cell.stable { background: rgba(47,191,156,.18); }
.heatmap-cell.empty { background: #2b2b36; }
.heatmap-cell.is-selected { border-color: var(--gold); box-shadow: 0 0 22px rgba(212,175,55,.42); }

.heatmap-x-axis { display: grid; grid-template-columns: 1fr auto 1fr; color: #a7abb5; text-transform: uppercase; letter-spacing: .08em; }
.heatmap-x-axis span:first-child { text-align: left; }
.heatmap-x-axis span:last-child { text-align: right; }

.heatmap-detail-panel { overflow: hidden; }
.heatmap-detail-panel .panel-head { padding: 22px 20px; }
.heatmap-detail-table th { font-size: 12px; text-transform: uppercase; }

.heatmap-company-cell { display: flex; align-items: center; gap: 12px; }
.heatmap-company-cell i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-style: normal;
  font-weight: 900;
}
.heatmap-company-cell small { display: block; color: #8f929b; }
.risk-driver-chip { display: inline-flex; min-height: 30px; align-items: center; padding: 0 10px; border: 1px solid var(--border); border-radius: 6px; color: #aeb3bd; font-size: 12px; }
.print-frame { position: fixed; width: 0; height: 0; border: 0; opacity: 0; pointer-events: none; }

.pricing-card strong { font-size: 28px; color: #fff9e8; }
.pricing-card.featured { border-color: rgba(212,175,55,.55); background: #17140b; }
.ecommerce-pricing {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  align-items: stretch;
}

.package-card {
  position: relative;
  gap: 12px;
  min-height: 360px;
  background: #111113;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.package-card:hover,
.package-card.is-selected {
  transform: translateY(-2px);
  border-color: rgba(45, 142, 255, .85);
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
}

.package-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.package-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #d9e4f5;
  font-size: 13px;
}

.package-card li::before {
  content: "✓";
  margin-right: 10px;
  color: #58a6ff;
}

.popular-ribbon {
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  color: #58a6ff;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.checkout-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.checkout-steps span {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #0f0f11;
}

.checkout-steps span.is-active {
  color: #0b0b0c;
  background: var(--gold);
  border-color: var(--gold);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(280px, .8fr);
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.checkout-panel {
  display: grid;
  gap: 14px;
}

.checkout-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}

.checkout-summary div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
}

.checkout-summary .checkout-total {
  border-color: rgba(212,175,55,.5);
  background: #17140b;
}

.agreement-box {
  display: grid;
  gap: 10px;
}

.agreement-scroll {
  max-height: 108px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0b0b0c;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.checkout-warnings {
  display: grid;
  gap: 8px;
}

.checkout-warnings p {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,138,31,.12);
  color: #ffc16f;
  font-size: 12px;
}

.public-package-panel {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

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

.public-package-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #101012;
}

.public-package-card.featured {
  border-color: rgba(45,142,255,.75);
}

.public-package-card span {
  color: #fff9e8;
  font-size: 20px;
  font-weight: 900;
}

.public-package-card small {
  color: var(--muted);
}

.product-detail-panel {
  margin-bottom: 16px;
}

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

.product-detail-body {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(280px, 1fr) minmax(180px, .5fr);
  gap: 18px;
  align-items: start;
}

.product-detail-body h2,
.public-package-detail h3 {
  margin: 4px 0 10px;
  color: #fff;
  font-size: 28px;
}

.product-detail-body p,
.public-package-detail p {
  color: var(--muted);
}

.product-detail-price,
.public-package-detail strong {
  display: block;
  color: #fff9e8;
  font-size: 30px;
  margin-bottom: 4px;
}

.product-detail-body ul,
.public-package-detail ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-detail-body li::before,
.public-package-detail li::before {
  content: "✓";
  margin-right: 10px;
  color: #58a6ff;
}

.product-detail-actions {
  display: grid;
  gap: 10px;
}

.public-package-detail {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #101012;
}

.billing-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.billing-summary div {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-2);
}

.billing-hero {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -24px -32px 32px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
  background: #0b0b0c;
}

.billing-hero h1 { margin: 0 0 4px; color: #fff; font-size: 24px; }
.billing-hero p { margin: 0; color: var(--muted); }

.billing-update-button {
  min-height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(212,175,55,.18);
}

.billing-page-grid { display: grid; gap: 32px; }

.billing-subscription-card,
.billing-sub-card,
.billing-cancel-card {
  overflow: hidden;
  border: 1px solid #2a2b31;
  border-radius: 8px;
  background: #121214;
  box-shadow: 0 20px 44px rgba(0,0,0,.24);
}

.billing-card-head {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid #28292f;
}

.billing-card-head h2 { margin: 0; color: #fff; font-size: 18px; }
.billing-card-head .ghost-button,
.billing-card-head .link-button { min-height: 34px; padding: 0 12px; }

.billing-line-item {
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(120px, .5fr) minmax(160px, .7fr) minmax(120px, .5fr);
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  border-bottom: 1px solid #28292f;
  color: #a7a8b0;
}

.billing-line-item.plan { grid-template-columns: 1fr auto; }
.billing-line-item strong { color: #fff; }
.billing-line-item small { display: block; margin-top: 4px; color: #8f929b; }

.billing-line-item div span {
  margin-left: 10px;
  padding: 4px 8px;
  border: 1px solid rgba(212,175,55,.3);
  border-radius: 4px;
  background: rgba(212,175,55,.12);
  color: var(--gold);
  font-size: 12px;
}

.billing-line-item b { justify-self: end; color: #fff; }
.billing-line-item b small { display: inline; margin-left: 4px; color: #a7a8b0; font-weight: 500; }

.billing-total-row {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
}

.billing-total-row span { display: block; margin-bottom: 8px; color: #a7a8b0; }
.billing-total-row span strong,
.link-button { color: var(--gold); }
.link-button { border: 0; background: transparent; font-weight: 800; }

.billing-total-row > strong {
  color: #fff;
  text-align: right;
  font-size: 30px;
}

.billing-total-row > strong small {
  display: block;
  color: #a7a8b0;
  font-size: 12px;
  font-weight: 500;
}

.billing-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.billing-sub-card { padding-bottom: 24px; }

.payment-method-card {
  min-height: 72px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 24px 24px 0;
  padding: 16px;
  border: 1px solid #30313a;
  border-radius: 8px;
}

.payment-method-card + .payment-method-card {
  margin-top: 18px;
}

.payment-method-card.is-default {
  border-color: rgba(212,175,55,.5);
  background: rgba(212,175,55,.05);
}

.payment-method-card strong { color: #fff; }
.payment-method-card small,
.payment-method-card em { color: #a7a8b0; font-style: normal; }
.payment-method-card em { padding: 5px 9px; border: 1px solid #30313a; border-radius: 6px; background: #17171d; }

.visa-mini,
.bank-mini {
  width: 46px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #f7f7f8;
  color: #1434cb;
  font-size: 11px;
  font-weight: 900;
}

.bank-mini { background: #1b1c22; color: #d8d9df; }

.billing-usage-item { display: grid; gap: 9px; padding: 20px 24px 0; }
.billing-usage-item div { display: flex; justify-content: space-between; gap: 16px; }
.billing-usage-item strong { color: #fff; }
.billing-usage-item span { color: #a7a8b0; }
.billing-usage-item i { height: 7px; overflow: hidden; border-radius: 999px; background: #28292f; }
.billing-usage-item b { display: block; height: 100%; border-radius: inherit; }

.billing-table-wrap { border: 0; border-radius: 0; }
.billing-table th { height: 48px; color: #9b9da6; background: #101012; font-size: 12px; letter-spacing: .04em; }
.billing-table td { height: 70px; color: #f2f2f4; border-top: 1px solid #28292f; }

.billing-cancel-card {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-color: rgba(255,90,95,.35);
}

.billing-cancel-card h2 { margin: 0 0 8px; color: #fff; font-size: 18px; }
.billing-cancel-card p { margin: 0; color: #a7a8b0; }
.billing-cancel-card button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255,90,95,.5);
  border-radius: 8px;
  background: rgba(255,90,95,.1);
  color: #ff5a5f;
  font-weight: 900;
}

.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  height: 100vh;
  padding: 26px;
  background: #0d0d0f;
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 48px rgba(0,0,0,.46);
  transform: translateX(100%);
  transition: transform .18s ease;
  z-index: 10;
  overflow: auto;
}

.detail-drawer.is-open { transform: translateX(0); }

.drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  float: right;
}

.drawer-section {
  clear: both;
  display: grid;
  gap: 12px;
}

.muted { color: var(--muted); }
.amount { color: #fff9e8; font-weight: 700; }

.skeleton {
  min-height: 58px;
  background: linear-gradient(90deg, #121214, #1b1b1f, #121214);
  background-size: 220% 100%;
  animation: shimmer 1.2s linear infinite;
  border-radius: 8px;
}

@keyframes shimmer { to { background-position: -220% 0; } }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .detail-layout { grid-template-columns: 1fr; }
  .settings-profile-grid { grid-template-columns: 1fr; }
  .settings-profile-card { grid-column: auto; }
  .alert-grid, .integration-grid, .report-grid, .pricing-grid, .settings-grid, .ecommerce-pricing { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .checkout-summary { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .checkout-layout { grid-template-columns: 1fr; }
  .product-detail-body { grid-template-columns: 1fr; }
  .public-product-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  body.is-public-shop.is-product-list .public-product-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
  body.is-public-shop.is-product-list .route-product-card,
  body.is-public-shop.is-product-list .route-product-card:last-child {
    border-right: 0;
    border-bottom: 1px solid #e1e6ef;
  }
  body.is-public-shop.is-product-list .route-product-card:nth-child(odd) {
    border-right: 1px solid #e1e6ef;
  }
  body.is-public-shop.is-product-list .route-product-card.featured {
    margin: 0;
  }
  .public-product-compare { grid-template-columns: 1fr; }
  .route-product-detail { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-brand-panel {
    min-height: auto;
    padding: 24px 18px;
    gap: 22px;
  }
  .login-hero h1 { font-size: 34px; }
  .login-hero p:last-child { font-size: 15px; }
  .login-form-panel {
    min-height: auto;
    padding: 18px;
  }
  .login-card {
    padding: 20px;
  }
  .login-metrics { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
  }
  .nav-list { grid-template-columns: repeat(2, 1fr); }
  .workspace { padding: 18px 14px 34px; }
  .topbar, .screen-heading { align-items: stretch; flex-direction: column; }
  .settings-form-grid { grid-template-columns: 1fr; }
  .settings-avatar-row { align-items: flex-start; }
  .kpi-grid, .alert-grid, .integration-grid, .report-grid, .pricing-grid, .settings-grid, .filters, .billing-summary, .billing-two-col, .metric-row, .ecommerce-pricing, .checkout-summary, .public-package-grid, .public-product-grid { grid-template-columns: 1fr; }
  .public-product-list-header {
    position: static;
    align-items: flex-start;
  }
  .public-product-nav {
    width: 100%;
    order: 3;
    justify-content: space-between;
  }
  .public-product-main {
    width: min(100% - 28px, 680px);
    padding-top: 34px;
  }
  .public-product-hero {
    text-align: left;
  }
  .public-product-hero p {
    margin-left: 0;
  }
  .public-product-toolbar,
  .public-product-search,
  .public-billing-toggle {
    width: 100%;
  }
  .public-billing-toggle button {
    flex: 1;
  }
  body.is-public-shop.is-product-list .public-product-grid {
    grid-template-columns: 1fr;
  }
  body.is-public-shop.is-product-list .route-product-card,
  body.is-public-shop.is-product-list .route-product-card:nth-child(odd) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #e1e6ef;
  }
  .public-compare-rows {
    grid-template-columns: 1fr;
  }
  .onboarding-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .onboarding-steps {
    grid-template-columns: 1fr;
  }
  .onboarding-steps button {
    min-height: 50px;
  }
  .onboarding-steps span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  #dismissOnboarding {
    width: 100%;
  }
}

/* UXPilot dashboard alignment */
.app-shell {
  grid-template-columns: 250px minmax(0, 1fr);
  background: #080809;
}

.sidebar {
  padding: 22px 14px 12px;
  background: #111113;
}

.brand {
  padding: 2px 8px 14px;
  border-bottom: 1px solid var(--border);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 14px;
}

.brand strong { font-size: 16px; }
.brand span { display: none; }

.nav-group {
  margin: 14px 10px 6px;
  color: #9eb3d4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-item {
  height: 44px;
  color: #b9c9df;
}

.nav-item.is-active {
  background: rgba(212,175,55,.16);
  color: var(--gold);
  border-color: rgba(212,175,55,.22);
}

.nav-icon {
  width: 22px;
  color: #9ab2d0;
  font-size: 14px;
}

.nav-badge {
  margin-left: auto;
  min-width: 22px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #e81e63;
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.sidebar-footer {
  min-height: 54px;
  justify-content: space-between;
}

.sidebar-footer > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-toggle input { display: none; }

.mode-toggle span {
  width: 36px;
  height: 20px;
  display: block;
  border-radius: 999px;
  background: #2d2d31;
  border: 1px solid var(--border);
  position: relative;
}

.mode-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

.workspace {
  padding: 0 30px 44px;
  background: #080809;
}

.topbar {
  height: 80px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.topbar-title {
  display: none;
}

.search-wrap {
  width: min(360px, 100%);
  height: 38px;
  background: #111113;
}

.icon-button,
.tenant-pill,
.profile-pill,
.primary-button,
.range-button,
.export-button {
  height: 38px;
}

.tenant-pill {
  color: #d7e4f5;
}

.dashboard-heading {
  align-items: center;
  margin-bottom: 18px;
}

h1 { font-size: 24px; }

.title-accent {
  color: var(--gold);
  font-size: 20px;
}

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

.range-button {
  padding: 0 14px;
  background: #111113;
  color: #c7cfdb;
  border-color: var(--border);
}

.export-button {
  padding: 0 18px;
  color: #0b0b0c;
  background: var(--gold);
  border-color: rgba(212,175,55,.85);
  font-weight: 800;
}

.kpi-grid {
  gap: 18px;
  margin-bottom: 22px;
}

.kpi-card {
  min-height: 162px;
  padding: 18px 18px 14px;
  gap: 7px;
}

.kpi-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kpi-label .trend {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(110,219,143,.12);
  font-size: 11px;
}

.kpi-label .trend.down { background: rgba(255,90,95,.12); }
.kpi-label .trend.warn { background: rgba(255,138,31,.12); color: var(--orange); }
.trend.warn { color: var(--orange); }

.dashboard-wire-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, .95fr);
  gap: 18px;
  margin-bottom: 18px;
}

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

.chart-stats {
  display: flex;
  gap: 38px;
  margin: 2px 0 8px;
}

.chart-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.chart-stats strong {
  font-size: 22px;
}

.distribution-panel {
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.wire-legend .legend-item {
  background: transparent;
  border: 0;
  padding: 4px 0;
  min-height: 28px;
}

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

.risk-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.risk-list-item strong,
.risk-list-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-list-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.risky-table-panel {
  padding: 0;
  overflow: hidden;
}

.risky-table-panel .panel-head {
  padding: 22px 22px 18px;
  margin: 0;
}

.risk-table {
  min-width: 960px;
}

.risk-table th {
  color: #a9c4e6;
}

.risk-table td {
  padding-top: 17px;
  padding-bottom: 17px;
}

.company-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-initials {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 5px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.company-cell strong,
.payment-cell strong,
.activity-cell span {
  display: block;
  color: #ffffff;
}

.company-cell small,
.payment-cell small,
.activity-cell small {
  display: block;
  margin-top: 3px;
  color: #a9c4e6;
}

.payment-cell {
  text-align: right;
}

.payment-cell .overdue {
  color: #e91e63;
  font-weight: 700;
}

.payment-cell .due-soon {
  color: var(--orange);
  font-weight: 700;
}

.payment-cell .due-later {
  color: #a9c4e6;
}

.trend-chip {
  font-weight: 800;
}

.trend-chip.up { color: #e91e63; }
.trend-chip.flat { color: var(--orange); }
.trend-chip.down { color: #00c896; }

.action-dots {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #8b95a7;
  font-size: 20px;
}

/* Company list screen */
.company-list-heading {
  align-items: center;
  margin-bottom: 26px;
}

.company-list-heading h1 {
  margin-bottom: 4px;
  font-size: 28px;
}

.company-list-panel {
  border: 1px solid var(--border);
  background: #101012;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.company-list-toolbar {
  min-height: 110px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.company-filter-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.company-filter-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.25fr) repeat(4, minmax(138px, 1fr));
  align-items: center;
  gap: 12px;
}

.company-search-field {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #09090a;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.company-search-field span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #9eb3d4;
  font-size: 11px;
  font-weight: 800;
}

.company-search-field input {
  flex: 1;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.company-filter-row select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  color: #d7e4f5;
  background: #09090a;
}

.cashflow-table-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cashflow-table-filters select {
  width: 180px;
  height: 38px;
  padding: 0 12px;
  color: #d7e4f5;
  background: #09090a;
}

.drawer-risk-button {
  width: 100%;
  margin: 12px 0;
}

.monitoring-filter {
  margin-left: 0;
}

#portfolioFilter {
  order: 5;
  width: 190px;
}

.is-hidden-filter {
  display: none;
}

.filter-chip {
  width: fit-content;
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(212,175,55,.36);
  background: rgba(212,175,55,.12);
  color: var(--gold);
  border-radius: 7px;
  font-weight: 800;
}

.filter-tags {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip span {
  color: var(--gold);
}

.company-actions {
  min-height: 38px;
  display: flex;
  align-items: center;
  align-self: flex-start;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.selected-count {
  min-width: 74px;
  min-height: 38px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: #a9c4e6;
  font-size: 12px;
}

.selected-count strong {
  color: var(--gold);
  font-size: 16px;
}

.table-action-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: #09090a;
  color: #d7e4f5;
  border-radius: 8px;
}

.company-table-wrap {
  border: 0;
  border-radius: 0;
}

.company-list-table {
  min-width: 1040px;
}

.company-list-table th {
  height: 48px;
  color: #9095a3;
  background: #09090a;
  font-size: 11px;
  letter-spacing: .02em;
}

.company-list-table th:first-child,
.company-list-table td:first-child {
  width: 48px;
  padding-left: 18px;
  padding-right: 0;
}

.company-list-table td {
  padding-top: 12px;
  padding-bottom: 12px;
  background: #101012;
}

.company-list-table tr.is-selected td {
  background: #191711;
}

.company-list-table tr.is-selected td:first-child {
  box-shadow: inset 2px 0 0 var(--gold);
}

.company-list-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.company-list-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-row-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: #15161a;
  border-radius: 7px;
  color: #aeb8c8;
  font-size: 12px;
  font-weight: 900;
}

.company-list-name strong,
.exposure-cell strong,
.updated-cell strong,
.forecast-cell strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.monitoring-dot {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(212,175,55,.14);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.monitoring-dot.removed {
  color: var(--red);
  background: rgba(255,90,95,.14);
}

.company-list-table tr.is-removed-portfolio td {
  opacity: .72;
}

.company-list-name small,
.exposure-cell small,
.updated-cell small {
  display: block;
  margin-top: 3px;
  color: #9da3b1;
  font-size: 12px;
}

.score-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-pill {
  min-width: 44px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
}

.score-pill.high {
  color: #ff5a5f;
  background: rgba(255,90,95,.14);
  border: 1px solid rgba(255,90,95,.28);
}

.score-pill.medium {
  color: var(--orange);
  background: rgba(255,138,31,.14);
  border: 1px solid rgba(255,138,31,.28);
}

.score-pill.low {
  color: #49e0ad;
  background: rgba(73,224,173,.14);
  border: 1px solid rgba(73,224,173,.28);
}

.score-cell small {
  font-weight: 800;
}

.delta-down { color: #ff5a5f; }
.delta-up { color: #49e0ad; }
.delta-flat { color: #9da3b1; }

.forecast-cell {
  display: grid;
  gap: 8px;
  width: 96px;
}

.forecast-cell span {
  height: 4px;
  overflow: hidden;
  background: #2a2a2e;
  border-radius: 99px;
}

.forecast-cell i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  border-radius: inherit;
}

.company-list-table tr:nth-child(3n) .forecast-cell i {
  background: #49e0ad;
}

.alert-count {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--orange);
  background: rgba(255,138,31,.18);
  font-size: 12px;
  font-weight: 900;
}

.alert-count.critical {
  color: #ff5a5f;
  background: rgba(255,90,95,.18);
}

.row-menu-button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #9da3b1;
  font-weight: 900;
  letter-spacing: 2px;
}

.row-actions-cell {
  position: relative;
}

.row-action-menu {
  display: none;
  position: absolute;
  top: 38px;
  right: 10px;
  z-index: 8;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--border);
  background: #0b0b0c;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0,0,0,.48);
}

.row-actions-cell.is-open .row-action-menu {
  display: grid;
  gap: 4px;
}

.row-action-menu button {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #d7e4f5;
  border-radius: 6px;
  text-align: left;
}

.row-action-menu button:hover {
  background: rgba(212,175,55,.12);
  color: var(--gold);
}

.company-table-footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  color: #9da3b1;
  border-top: 1px solid var(--border);
}

.company-table-footer select {
  height: 34px;
  margin: 0 5px;
  padding: 0 8px;
  color: #ffffff;
  background: #09090a;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pagination button {
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: #09090a;
  color: #d7e4f5;
  border-radius: 6px;
}

.pagination button.is-current {
  color: var(--gold);
  border-color: rgba(212,175,55,.45);
  background: rgba(212,175,55,.14);
}

.pagination button:disabled {
  opacity: .45;
  cursor: default;
}

.pagination-gap {
  color: var(--muted);
}

.portfolio-heading {
  align-items: center;
}

.portfolio-actions,
.portfolio-scenario-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.segmented-control {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  background: #09090a;
  border-radius: 8px;
}

.segmented-control button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #d7e4f5;
  border-radius: 6px;
}

.segmented-control button.is-active,
.segmented-control button:hover {
  color: var(--gold);
  border-color: rgba(212,175,55,.45);
  background: rgba(212,175,55,.14);
}

.portfolio-scenario-bar {
  justify-content: space-between;
  min-height: 62px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
}

.scenario-adjustments {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.scenario-adjustments label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.scenario-adjustments input {
  width: 68px;
  height: 34px;
  padding: 0 8px;
}

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

.portfolio-kpi-card {
  min-height: 136px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portfolio-kpi-card span,
.portfolio-kpi-card small {
  color: var(--muted);
}

.portfolio-kpi-card strong {
  color: #fff9e8;
  font-size: 28px;
}

.portfolio-kpi-card strong small {
  margin-left: 2px;
  font-size: 14px;
}

.portfolio-risk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, .85fr);
  gap: 16px;
}

.portfolio-donut-panel {
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.company-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}

.risk-detail-shell {
  align-items: start;
}

.company-detail-main {
  display: grid;
  gap: 18px;
}

.company-detail-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}

.company-detail-head h1 {
  font-size: 22px;
}

.risk-detail-title-block {
  display: grid;
  justify-items: start;
  gap: 3px;
}

.risk-detail-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.risk-detail-title-block .screen-meta {
  margin: 0;
}

.risk-detail-badge {
  width: max-content;
  min-width: 0;
  min-height: 28px;
  padding: 0 12px;
  justify-content: center;
  border-radius: 7px;
  font-weight: 800;
}

.risk-detail-badge.low {
  color: #6edb8f;
  background: rgba(110,219,143,.12);
  border-color: rgba(110,219,143,.42);
}

.risk-detail-badge.medium {
  color: #d4af37;
  background: rgba(212,175,55,.13);
  border-color: rgba(212,175,55,.46);
}

.risk-detail-badge.high {
  color: #ff5a5f;
  background: rgba(255,90,95,.13);
  border-color: rgba(255,90,95,.46);
}

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

.detail-kpi-card {
  min-height: 138px;
  padding: 18px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-kpi-card span,
.detail-kpi-card small {
  color: var(--muted);
}

.detail-kpi-card strong {
  color: #fff9e8;
  font-size: 28px;
}

.detail-progress {
  height: 5px;
  overflow: hidden;
  background: #2a2a2e;
  border-radius: 99px;
}

.detail-progress i {
  display: block;
  height: 100%;
  background: var(--red);
  border-radius: inherit;
}

.detail-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.detail-tabs button {
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.detail-tabs button.is-active {
  color: var(--gold);
  border-color: var(--gold);
}

.detail-analysis-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
}

.risk-score-panel {
  text-align: center;
}

.score-ring {
  --score: 115deg;
  width: 140px;
  height: 140px;
  margin: 22px auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--panel) 0 55%, transparent 56%),
    conic-gradient(var(--red) 0 var(--score), #2a2a35 var(--score) 360deg);
}

.score-ring strong {
  display: block;
  color: var(--red);
  font-size: 34px;
}

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

.company-detail-side {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.side-block {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.side-block h2 {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.side-line span,
.side-line strong {
  display: block;
}

.side-line span {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.tenant-user-form,
.note-form {
  display: grid;
  gap: 10px;
}

.tenant-user-form input,
.tenant-user-form select,
.note-form input,
.note-form textarea {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
}

.note-form textarea {
  resize: vertical;
  min-height: 84px;
  background: #0f0f11;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
}

.note-list,
.tenant-user-list,
.side-alert-list {
  display: grid;
  gap: 10px;
}

.note-item,
.tenant-user-item,
.side-alert {
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 8px;
}

.note-item p,
.side-alert p {
  color: var(--muted);
  line-height: 1.45;
}

.tenant-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tenant-user-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.tenant-user-item em {
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.side-alert.high {
  border-color: rgba(255,90,95,.35);
}

.panel-head.compact {
  margin-bottom: 0;
}

.wizard-panel {
  display: grid;
  gap: 18px;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.wizard-steps span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: #09090a;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.wizard-steps span.is-active {
  color: var(--gold);
  border-color: rgba(212,175,55,.4);
  background: rgba(212,175,55,.12);
}

.wizard-step {
  display: none;
}

.wizard-step.is-active {
  display: block;
}

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

.form-grid label,
.template-preview label {
  display: grid;
  gap: 8px;
  color: #c8d6ea;
  font-size: 13px;
  font-weight: 800;
}

.form-grid input,
.form-grid select,
.template-preview input,
.template-preview textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
}

.validation-summary {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.template-preview {
  display: grid;
  gap: 14px;
}

.template-preview textarea {
  min-height: 260px;
  resize: vertical;
  background: #0f0f11;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
}

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

.confirmation-card,
.landing-contract {
  display: grid;
  gap: 14px;
}

.invitation-panel table {
  min-width: 920px;
}

.table-subtext {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.contract-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c8d6ea;
}

.contract-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.contract-scroll {
  max-height: 260px;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--border);
  background: #0f0f11;
  border-radius: 8px;
  color: #c8d6ea;
  line-height: 1.55;
}

.contract-scroll h3 {
  margin: 18px 0 8px;
  color: var(--gold);
  font-size: 14px;
}

.contract-scroll ul {
  margin: 8px 0 12px 20px;
  padding: 0;
}

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

.contract-token-grid div,
.signature-lines {
  padding: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 8px;
}

.contract-token-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}

.contract-check input:disabled {
  opacity: .45;
}

.drawer-alert-list {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.drawer-alert {
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 8px;
}

.drawer-alert.high { border-color: rgba(255,90,95,.35); }
.drawer-alert.medium { border-color: rgba(255,138,31,.35); }

.drawer-alert p {
  margin: 6px 0;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 14px;
  border: 1px solid rgba(212,175,55,.34);
  background: #111113;
  color: #fff9e8;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.chart-tooltip {
  position: fixed;
  z-index: 60;
  max-width: 260px;
  padding: 8px 10px;
  border: 1px solid rgba(212,175,55,.42);
  background: #09090a;
  color: #fff9e8;
  border-radius: 7px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease;
}

.chart-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .dashboard-wire-grid,
  .dashboard-lower-grid,
  .portfolio-risk-grid,
  .company-detail-shell,
  .detail-analysis-grid,
  .integration-workspace {
    grid-template-columns: 1fr;
  }
  .heatmap-layout {
    grid-template-columns: 1fr;
  }
  .portfolio-kpi-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
  .integration-kpi-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
  .integration-activity-panel {
    min-height: 420px;
  }
  .company-detail-side {
    padding-left: 0;
    border-left: 0;
  }
  .detail-kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #111111;
  }

  body.print-dashboard .sidebar,
  body.print-dashboard .topbar,
  body.print-dashboard .detail-drawer,
  body.print-dashboard .sidebar-scrim,
  body.print-dashboard .toast,
  body.print-companies .sidebar,
  body.print-companies .topbar,
  body.print-companies .detail-drawer,
  body.print-companies .sidebar-scrim,
  body.print-companies .toast,
  body.print-portfolio .sidebar,
  body.print-portfolio .topbar,
  body.print-portfolio .detail-drawer,
  body.print-portfolio .sidebar-scrim,
  body.print-portfolio .toast,
  body.print-heatmap .sidebar,
  body.print-heatmap .topbar,
  body.print-heatmap .detail-drawer,
  body.print-heatmap .sidebar-scrim,
  body.print-heatmap .toast {
    display: none !important;
  }

  body.print-dashboard .app-shell,
  body.print-companies .app-shell,
  body.print-portfolio .app-shell,
  body.print-heatmap .app-shell {
    display: block;
    background: #ffffff;
  }

  body.print-dashboard .workspace,
  body.print-companies .workspace,
  body.print-portfolio .workspace,
  body.print-heatmap .workspace {
    padding: 0;
    background: #ffffff;
  }

  body.print-dashboard .screen,
  body.print-companies .screen,
  body.print-portfolio .screen,
  body.print-heatmap .screen {
    display: none !important;
  }

  body.print-dashboard #screen-dashboard,
  body.print-companies #screen-companies,
  body.print-portfolio #screen-portfolio,
  body.print-heatmap #screen-risk-heatmap-report {
    display: block !important;
  }

  body.print-dashboard .panel,
  body.print-dashboard .kpi-card,
  body.print-companies .company-list-panel,
  body.print-portfolio .panel,
  body.print-portfolio .portfolio-kpi-card,
  body.print-portfolio .portfolio-scenario-bar {
    box-shadow: none;
    border-color: #d8d8d8;
    background: #ffffff;
    color: #111111;
  }

  body.print-companies .company-list-toolbar,
  body.print-companies .company-table-footer,
  body.print-companies .row-actions-cell,
  body.print-companies .company-list-table th:first-child,
  body.print-companies .company-list-table td:first-child {
    display: none !important;
  }

  body.print-companies .company-list-table {
    min-width: 0;
    font-size: 11px;
  }

  body.print-companies .company-list-table td,
  body.print-companies .company-list-table th,
  body.print-dashboard th,
  body.print-dashboard td {
    color: #111111;
    background: #ffffff !important;
    border-color: #d8d8d8;
  }
}

@media (max-width: 820px) {
  .topbar-title { min-width: 0; }
  .dashboard-actions { flex-direction: column; align-items: stretch; }
  .app-shell {
    grid-template-columns: 1fr;
  }
  .mobile-menu-button {
    display: grid;
    place-items: center;
  }
  .mobile-search-button {
    display: grid;
    place-items: center;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: min(292px, 86vw);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform .2s ease;
    overflow-y: auto;
  }
  .nav-list {
    grid-template-columns: 1fr;
    align-content: start;
  }
  .nav-group {
    margin: 18px 10px 6px;
    padding-left: 0;
  }
  .nav-item {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
  }
  .nav-item span:not(.nav-icon):not(.nav-badge) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-icon {
    width: 26px;
    text-align: center;
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  body.sidebar-open .sidebar-scrim {
    display: block;
  }
  .topbar {
    flex-direction: row;
    align-items: center;
  }
  .topbar .search-wrap {
    display: none;
  }
  .topbar.search-open {
    flex-wrap: wrap;
    height: auto;
    min-height: 80px;
  }
  .topbar.search-open .search-wrap {
    order: 10;
    display: flex;
    width: 100%;
    flex-basis: 100%;
  }
  .integrations-heading,
  .integration-header-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .integration-setup-callout {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .integration-kpi-grid,
  .integration-card-grid {
    grid-template-columns: 1fr;
  }
  .integration-header-actions {
    justify-content: stretch;
  }
  .integration-header-actions > *,
  .integration-setup-callout .primary-button {
    width: 100%;
  }
  .heatmap-report-head,
  .heatmap-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .heatmap-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
  .heatmap-cell {
    min-height: 104px;
  }
  .heatmap-x-axis {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .heatmap-x-axis span,
  .heatmap-x-axis span:first-child,
  .heatmap-x-axis span:last-child {
    text-align: left;
  }
  .social-auth-row {
    grid-template-columns: 1fr;
  }
  .company-list-toolbar,
  .company-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .company-filter-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .company-filter-row select {
    width: 100%;
  }
  .monitoring-filter {
    margin-left: 0;
  }
  .company-search-field {
    width: 100%;
  }
  .wizard-steps,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .wizard-actions {
    flex-direction: column;
  }
  .portfolio-actions,
  .portfolio-scenario-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .scenario-adjustments {
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .scenario-adjustments label {
    justify-content: space-between;
  }
  .portfolio-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Public product list: UXPilot dark pricing screen */
body.is-public-shop.is-product-list {
  color-scheme: dark;
  background: #080809;
  color: #f7f7f8;
}

body.is-public-shop.is-product-list #productListPage {
  min-height: 100vh;
  background: #080809;
  color: #f7f7f8;
}

body.is-public-shop.is-product-list .public-product-list-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 28px;
  border: 0;
  background: #151518;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: none;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

body.is-public-shop.is-product-list .public-product-list-header:hover,
body.is-public-shop.is-public-legal .public-product-list-header:hover {
  background: #1b1b1f;
  box-shadow: 0 12px 34px rgba(0,0,0,.28), 0 1px 0 rgba(255,255,255,.09);
}

body.is-public-shop.is-product-list .public-shop-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

body.is-public-shop.is-product-list .public-product-list-header .brand {
  padding: 0;
  border: 0;
}

body.is-public-shop.is-product-list .public-product-list-header .brand-mark {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 4px;
  background: #d4af37;
  color: #161616;
  font-weight: 900;
}

body.is-public-shop.is-product-list .public-product-list-header .brand strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

body.is-public-shop.is-product-list .public-product-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 34px;
}

body.is-public-shop.is-product-list .public-product-nav a {
  color: #8f929b;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: color .16s ease, transform .16s ease;
}

body.is-public-shop.is-product-list .public-product-nav a:hover,
body.is-public-shop.is-product-list .public-product-nav a.is-active {
  color: #ffffff;
  transform: translateY(-1px);
}

body.is-public-shop.is-public-legal .public-product-list-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 28px;
  border: 0;
  background: #151518;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
  transition: background .16s ease, box-shadow .16s ease;
}

body.is-public-shop.is-public-legal .public-product-list-header .brand {
  padding: 0;
  border: 0;
}

body.is-public-shop.is-public-legal .public-product-list-header .brand-mark {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 4px;
  background: #d4af37;
  color: #161616;
  font-weight: 900;
}

body.is-public-shop.is-public-legal .public-product-list-header .brand strong,
body.is-public-shop.is-public-legal .public-product-nav a {
  color: #ffffff;
}

.public-product-header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

body.is-public-shop.is-product-list .public-login-button {
  min-width: auto;
  height: 38px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-weight: 800;
}

body.is-public-shop.is-product-list .public-demo-button {
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: #d4af37;
  color: #121214;
  font-weight: 900;
  box-shadow: none;
}

body.is-public-shop.is-product-list .public-demo-button:hover {
  background: #e3bf49;
  transform: translateY(-1px);
}

body.is-public-shop.is-product-list .public-product-main {
  width: 100%;
  margin: 0;
  padding: 0 0 86px;
  background: #080809;
}

body.is-public-shop.is-product-list .public-product-hero {
  position: relative;
  width: min(980px, calc(100% - 64px));
  margin: 0 auto;
  padding: 66px 0 102px;
  text-align: center;
  overflow: hidden;
}

body.is-public-shop.is-product-list .public-product-hero::before,
body.is-public-shop.is-product-list .public-product-hero::after {
  content: "";
  position: absolute;
  inset: -80px auto auto -120px;
  width: 430px;
  height: 180px;
  border: 1px solid rgba(212,175,55,.08);
  border-radius: 40% 60% 50% 40%;
  transform: rotate(20deg);
}

body.is-public-shop.is-product-list .public-product-hero::after {
  inset: -80px -120px auto auto;
  transform: rotate(-24deg);
}

.public-product-badges {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.public-product-badges span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border: 1px solid #28282d;
  border-radius: 999px;
  background: #19191d;
  color: #8f929b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.public-product-badges span:first-child {
  border-color: rgba(212,175,55,.32);
  color: #d4af37;
  background: rgba(212,175,55,.08);
}

body.is-public-shop.is-product-list .public-product-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(44px, 6vw, 72px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: 0;
}

body.is-public-shop.is-product-list .public-product-hero h1 span {
  display: block;
  color: #d4af37;
}

body.is-public-shop.is-product-list .public-product-hero p {
  width: min(620px, 100%);
  margin: 26px auto 0;
  color: #8f929b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

body.is-public-shop.is-product-list .public-hero-toggle {
  margin: 44px auto 0;
  width: 280px;
  height: 38px;
  display: grid;
  grid-template-columns: 1fr 38px 1.2fr;
  align-items: center;
  gap: 0;
  padding: 0 8px;
  border: 1px solid #2a2a31;
  border-radius: 10px;
  background: #19191d;
  box-shadow: none;
}

body.is-public-shop.is-product-list .public-hero-toggle button {
  height: 30px;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8f929b;
  font-size: 12px;
  font-weight: 900;
}

body.is-public-shop.is-product-list .public-hero-toggle button:hover,
body.is-public-shop.is-product-list .public-hero-toggle button.is-active {
  background: transparent;
  color: #ffffff;
}

.public-hero-toggle > span {
  width: 38px;
  height: 20px;
  padding: 3px;
  border-radius: 999px;
  background: #d4af37;
}

.public-hero-toggle > span i {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform .16s ease;
}

.public-hero-toggle.is-yearly > span i {
  transform: translateX(18px);
}

.public-hero-toggle small {
  margin-left: 6px;
  color: #d4af37;
}

body.is-public-shop.is-product-list .public-product-grid {
  width: min(980px, calc(100% - 64px));
  margin: 0 auto;
  padding-top: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.is-public-shop.is-product-list .route-product-card {
  position: relative;
  min-height: 520px;
  padding: 30px 28px;
  display: grid;
  grid-template-rows: minmax(184px, auto) 44px auto 1fr;
  align-content: start;
  gap: 20px;
  border: 1px solid #2b2b31;
  border-radius: 10px;
  background: #151518;
  color: #ffffff;
  box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.route-most-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 124px;
  height: 24px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #d4af37;
  color: #111113;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

body.is-public-shop.is-product-list .route-product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212,175,55,.55);
  box-shadow: 0 22px 54px rgba(0,0,0,.32);
}

body.is-public-shop.is-product-list .route-product-card.featured {
  min-height: 540px;
  margin: 0;
  padding-top: 30px;
  border: 1px solid #d4af37;
  border-radius: 0 0 10px 10px;
  background:
    radial-gradient(circle at 50% -18px, rgba(212,175,55,.34), transparent 21%),
    #171719;
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
}

body.is-public-shop.is-product-list .route-product-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  text-transform: none;
}

body.is-public-shop.is-product-list .route-product-card.featured h2 {
  color: #d4af37;
}

body.is-public-shop.is-product-list .route-product-card p {
  min-height: auto;
  margin: 12px 0 0;
  color: #a5a9b3;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.route-product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 6px;
  margin-top: 20px;
}

body.is-public-shop.is-product-list .route-product-price strong {
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

body.is-public-shop.is-product-list .route-product-price small {
  color: #a5a9b3;
  font-size: 14px;
  line-height: 1.35;
}

.route-product-discount {
  margin-top: 10px;
  color: #d4af37;
  font-size: 12px;
  font-weight: 900;
}

body.is-public-shop.is-product-list .route-product-action {
  width: 100%;
  height: 44px;
  border-radius: 6px;
  font-weight: 900;
}

body.is-public-shop.is-product-list .route-product-action.ghost-button {
  border: 1px solid #303039;
  background: transparent;
  color: #ffffff;
}

body.is-public-shop.is-product-list .route-product-action.ghost-button:hover {
  border-color: #d4af37;
  background: rgba(212,175,55,.08);
}

body.is-public-shop.is-product-list .route-product-card.featured .route-product-action {
  background: #d4af37;
  color: #101012;
}

.route-product-includes {
  margin-top: 2px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

body.is-public-shop.is-product-list .route-product-card ul {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

body.is-public-shop.is-product-list .route-product-card li {
  color: #aeb2bc;
  font-size: 13px;
  line-height: 1.35;
}

body.is-public-shop.is-product-list .route-product-card.featured li {
  color: #ffffff;
  font-weight: 800;
}

body.is-public-shop.is-product-list .route-product-card li::before {
  content: "\2713";
  display: inline-block;
  width: 20px;
  color: #d4af37;
  font-size: 13px;
  font-weight: 900;
}

body.is-public-shop.is-product-list .public-product-solutions {
  min-height: 0;
}

body.is-public-shop.is-product-list .public-product-compare {
  width: 100%;
  margin: 0;
  padding: 72px min(12vw, 180px) 0;
  display: block;
  border: 0;
  border-radius: 0;
  background: #080809;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.public-compare-heading {
  text-align: center;
}

body.is-public-shop.is-product-list .public-compare-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.2;
}

body.is-public-shop.is-product-list .public-compare-heading p {
  margin: 14px 0 22px;
  color: #b8cce8;
  font-size: 14px;
}

.public-feature-search {
  width: min(520px, 100%);
  margin: 0 auto 28px;
  display: grid;
  gap: 8px;
}

.public-feature-search span {
  display: none;
}

.public-feature-search span {
  color: #d9dce4;
  font-size: 13px;
  font-weight: 800;
}

.public-feature-search input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: #101012;
  color: #ffffff;
  padding: 0 14px;
  outline: none;
}

.public-feature-search input:focus {
  border-color: rgba(212,175,55,.72);
  box-shadow: 0 0 0 3px rgba(212,175,55,.12);
}

.public-compare-table {
  width: min(850px, 100%);
  margin: 0 auto;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.public-compare-row {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  min-height: 54px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.public-compare-row > * {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d9dce4;
  font-size: 13px;
}

.public-compare-row > span {
  justify-content: flex-start;
  color: #b8cce8;
}

.public-compare-row.is-head > * {
  color: #ffffff;
  font-weight: 900;
}

.public-compare-row.is-head > span {
  color: #b8cce8;
  font-weight: 500;
}

.public-compare-row.is-head strong:nth-child(3) {
  background: rgba(212,175,55,.05);
  color: #d4af37;
  border-bottom: 2px solid #d4af37;
}

.public-compare-row strong:nth-child(3) {
  background: rgba(212,175,55,.045);
  border-left: 1px solid rgba(212,175,55,.16);
  border-right: 1px solid rgba(212,175,55,.16);
}

.public-compare-empty {
  min-height: 76px;
  display: grid;
  place-items: center;
  color: #b8cce8;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.public-compare-actions {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background: rgba(255,255,255,.025);
}

.public-ai-capabilities {
  margin-top: 86px;
  padding: 86px min(9vw, 100px);
  background: #111113;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.public-section-heading {
  text-align: center;
}

.public-section-heading h2,
.public-proof-section h2 {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.2;
}

.public-section-heading p {
  margin: 18px 0 0;
  color: #8f929b;
  font-size: 15px;
  font-weight: 700;
}

.public-capability-grid {
  width: min(980px, 100%);
  margin: 58px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.public-capability-grid article {
  min-height: 176px;
  padding: 22px;
  border: 1px solid #2b2b31;
  border-radius: 10px;
  background: #18181b;
}

.public-capability-grid span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #25252b;
  color: #d4af37;
  font-size: 12px;
  font-weight: 900;
}

.public-capability-grid h3 {
  margin: 22px 0 10px;
  color: #ffffff;
  font-size: 17px;
}

.public-capability-grid p {
  margin: 0;
  color: #8f929b;
  font-size: 13px;
  line-height: 1.45;
}

.public-proof-section {
  padding: 84px 24px;
  text-align: center;
  background: #080809;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.public-logo-row {
  margin: 54px auto;
  display: flex;
  justify-content: center;
  gap: clamp(26px, 5vw, 58px);
  flex-wrap: wrap;
}

.public-logo-row span {
  color: #85858c;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .14em;
}

.public-stat-row {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.public-stat-row article {
  min-height: 118px;
  display: grid;
  place-content: center;
  border: 1px solid #2b2b31;
  border-radius: 12px;
  background: #151518;
}

.public-stat-row strong {
  color: #d4af37;
  font-size: 44px;
  line-height: 1;
}

.public-stat-row span {
  margin-top: 12px;
  color: #8f929b;
  font-weight: 800;
}

.public-product-footer {
  min-height: 86px;
  padding: 0 min(7vw, 90px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  background: #19191c;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.public-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-footer-brand span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #d4af37;
  color: #121214;
  font-size: 12px;
  font-weight: 900;
}

.public-footer-brand strong {
  color: #d8d8dd;
  font-size: 13px;
}

.public-product-footer nav {
  justify-self: end;
  display: flex;
  gap: 28px;
}

.public-product-footer a {
  color: #8f929b;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.public-payment-logos {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.public-payment-logos .payment-logo {
  min-width: 72px;
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2f3036;
  border-radius: 6px;
  background: #f7f7f8;
  color: #d9dce4;
  font-size: 11px;
  font-weight: 900;
}

.visa-logo {
  color: #1434cb;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-style: italic;
  letter-spacing: -1px;
}

.mastercard-logo {
  position: relative;
  gap: 0;
  overflow: hidden;
}

.mastercard-logo i {
  width: 17px;
  height: 17px;
  display: block;
  border-radius: 50%;
}

.mastercard-logo i:first-child {
  background: #eb001b;
}

.mastercard-logo i:nth-child(2) {
  margin-left: -7px;
  background: rgba(247,158,27,.9);
}

.mastercard-logo b {
  margin-left: 5px;
  color: #232329;
  font-size: 8px;
  line-height: 1;
}

.iyzico-logo {
  background: #ffffff;
  color: #1a88e5;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}

.iyzico-logo::first-letter {
  color: #18b3ff;
}

body.is-public-shop .commerce-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 28px;
  border: 0;
  background: #151518;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
  transition: background .16s ease, box-shadow .16s ease;
}

body.is-public-shop .commerce-header:hover {
  background: #1b1b1f;
  box-shadow: 0 12px 34px rgba(0,0,0,.28), 0 1px 0 rgba(255,255,255,.09);
}

body.is-public-shop .commerce-header .public-shop-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.is-public-shop .commerce-header .brand-mark {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 4px;
  background: #d4af37;
  color: #161616;
  font-weight: 900;
}

body.is-public-shop .commerce-header .brand strong,
body.is-public-shop .commerce-header .public-product-nav a {
  color: #ffffff;
}

body.is-public-shop .commerce-header .public-product-nav a:not(.is-active) {
  color: #8f929b;
}

body.is-public-shop .commerce-header .public-login-button {
  min-width: auto;
  height: 38px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-weight: 800;
}

body.is-public-shop .commerce-header .public-demo-button {
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: #d4af37;
  color: #121214;
  font-weight: 900;
  box-shadow: none;
}

.commerce-footer {
  margin-top: 0;
}

.commerce-footer nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.is-public-shop .public-product-list-header,
body.is-public-shop .contact-sales-header,
body.is-public-shop .commerce-header {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  padding-left: clamp(18px, 4vw, 64px);
  padding-right: clamp(18px, 4vw, 64px);
}

body.is-public-shop .commerce-footer,
body.is-public-shop .contact-sales-footer {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  padding-left: clamp(18px, 4vw, 64px);
  padding-right: clamp(18px, 4vw, 64px);
}

body.is-public-shop.is-public-legal #publicLegalPage {
  display: block;
  min-height: 100vh;
  background: #080809;
  color: #f7f7f8;
}

/* Public single product page */
body.is-public-shop.is-product-detail {
  color-scheme: dark;
  background: #080809;
  color: #f7f7f8;
}

body.is-public-shop.is-product-detail #productDetailPage {
  background: #080809;
  color: #f7f7f8;
}

body.is-public-shop.is-product-detail .public-shop-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  padding: 0 clamp(22px, 4vw, 44px);
  border-bottom: 1px solid #26262a;
  background: rgba(21,21,24,.95);
  backdrop-filter: blur(16px);
}

body.is-public-shop.is-product-detail .public-shop-brand {
  color: #ffffff;
}

body.is-public-shop.is-product-detail .public-shop-brand .brand-mark {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 4px;
  background: #d4af37;
  color: #121214;
}

body.is-public-shop.is-product-detail .public-shop-brand strong {
  color: #ffffff;
  font-size: 16px;
}

body.is-public-shop.is-product-detail #productDetailBack {
  border: 0;
  background: transparent;
  color: #8f929b;
}

body.is-public-shop.is-product-detail #productDetailBack::before {
  content: "< ";
}

body.is-public-shop.is-product-detail #productDetailLogin {
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #d4af37;
  color: #111113;
  box-shadow: 0 10px 28px rgba(212,175,55,.24);
}

body.is-public-shop.is-product-detail .public-shop-main {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  background: #080809;
}

.single-product-page {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 120px, rgba(212,175,55,.07), transparent 34%),
    #080809;
}

.single-hero {
  width: min(780px, calc(100% - 36px));
  margin: 0 auto;
  padding: 112px 0 88px;
  text-align: center;
}

.single-product-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.single-back-link {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #a7adbb;
  padding: 7px 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.single-back-link:hover {
  border-color: rgba(212,175,55,.55);
  background: rgba(212,175,55,.1);
  color: #f3d363;
}

.single-plan-badge {
  width: max-content;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid rgba(212,175,55,.25);
  border-radius: 999px;
  background: rgba(212,175,55,.07);
  color: #d4af37;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}

.single-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 68px);
  line-height: .96;
  letter-spacing: 0;
}

.single-hero h1 span {
  display: block;
  color: #d4af37;
}

.single-hero p,
.single-hero-description {
  width: min(560px, 100%);
  margin: 28px auto 0;
  color: #8f929b;
  font-size: 17px;
  line-height: 1.45;
}

.single-hero-description ul {
  width: max-content;
  max-width: 100%;
  margin: 14px auto 0;
  text-align: left;
}

.single-hero-description strong {
  color: #fff;
}

.single-hero-description a {
  color: #d4af37;
}

.single-hero-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.single-price {
  min-width: 118px;
  display: grid;
  justify-items: end;
  padding-right: 18px;
  border-right: 1px solid #25252a;
}

.single-price strong {
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}

.single-price span {
  color: #8f929b;
  font-size: 12px;
  font-weight: 800;
}

.single-hero-actions .primary-button,
.single-cta .primary-button {
  height: 54px;
  min-width: 188px;
  border: 0;
  border-radius: 10px;
  background: #d4af37;
  color: #111113;
  box-shadow: 0 16px 34px rgba(212,175,55,.28);
}

.single-hero-actions .ghost-button,
.single-cta .ghost-button {
  height: 54px;
  min-width: 158px;
  border: 1px solid #303039;
  border-radius: 10px;
  background: #242429;
  color: #ffffff;
}

.analytics-preview {
  width: min(940px, calc(100% - 36px));
  margin: 0 auto 86px;
  padding: 10px;
  border: 1px solid #222229;
  border-radius: 12px;
  background: #111114;
  box-shadow: 0 24px 70px rgba(0,0,0,.48);
}

.audit-dashboard-page { display: grid; gap: 26px; }
.audit-dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(212,175,55,.055));
  padding: 24px;
  box-shadow: var(--shadow);
}
.audit-dashboard-head h1 { margin: 4px 0 8px; }
.audit-dashboard-head .screen-meta { max-width: 620px; }
.audit-scope-card {
  min-width: 260px;
  border: 1px solid rgba(212,175,55,.24);
  border-radius: 8px;
  background: rgba(10,10,12,.72);
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 6px;
}
.audit-scope-card span,
.audit-scope-card small { color: var(--muted); }
.audit-scope-card strong { font-size: 20px; }
.audit-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.audit-kpi {
  min-height: 174px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  padding: 22px;
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
}
.audit-kpi.red { border-color: rgba(255,90,95,.34); background: linear-gradient(180deg, rgba(255,90,95,.08), rgba(255,255,255,.01)); }
.audit-kpi.gold { border-color: rgba(212,175,55,.24); }
.audit-kpi strong { display: block; font-size: 36px; line-height: 1; margin-top: 18px; }
.audit-kpi.red strong { color: var(--red); font-size: 27px; text-transform: uppercase; }
.audit-kpi small { color: var(--muted); font-size: 15px; margin-left: 6px; }
.audit-kpi p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.audit-kpi.is-clickable,
.audit-signal-card.is-clickable,
.audit-priority-alert.is-clickable,
.audit-report-kpi.is-clickable,
.audit-finding-row {
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.audit-kpi.is-clickable:hover,
.audit-signal-card.is-clickable:hover,
.audit-priority-alert.is-clickable:hover,
.audit-report-kpi.is-clickable:hover {
  border-color: rgba(212,175,55,.48);
  box-shadow: 0 20px 48px rgba(0,0,0,.34), 0 0 0 1px rgba(212,175,55,.12) inset;
  transform: translateY(-1px);
}
.audit-kpi.is-clickable:focus-visible,
.audit-signal-card.is-clickable:focus-visible,
.audit-priority-alert.is-clickable:focus-visible,
.audit-report-kpi.is-clickable:focus-visible,
.audit-finding-row:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.skeleton-line { height: 12px; width: 70%; border-radius: 999px; background: linear-gradient(90deg, #24242a, #34343b, #24242a); background-size: 220% 100%; animation: skeletonShimmer 1.2s linear infinite; }
@keyframes skeletonShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.audit-kpi-label { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.audit-kpi-label i { font-style: normal; color: var(--gold); font-weight: 900; }
.audit-kpi.blue .audit-kpi-label i { color: var(--blue); }
.audit-mini-progress { height: 5px; border-radius: 999px; background: #29292f; overflow: hidden; margin-top: 18px; }
.audit-mini-progress span { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.audit-kpi.red .audit-mini-progress span { background: var(--red); }
.audit-kpi.blue .audit-mini-progress span { background: var(--blue); }
.audit-mini-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.audit-mini-chip-row span { border: 1px solid var(--border); border-radius: 5px; color: var(--muted); padding: 5px 8px; font-size: 12px; }
.audit-dashboard-main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.audit-dashboard-section,
.audit-priority-section,
.audit-chart-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #101012;
  padding: 22px;
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}
.audit-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.audit-section-head h2 { margin: 0; font-size: 20px; }
.audit-signal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.audit-signal-card {
  min-height: 146px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #141416;
  padding: 17px;
  display: grid;
  gap: 10px;
}
.audit-signal-card.high { border-color: rgba(255,90,95,.35); background: linear-gradient(180deg, rgba(255,90,95,.06), rgba(255,255,255,.01)); }
.audit-signal-card.review { border-color: rgba(212,175,55,.32); }
.audit-signal-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.audit-signal-icon { width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; background: #29292f; font-weight: 900; color: var(--text); }
.audit-signal-card.high .audit-signal-icon { color: var(--red); background: rgba(255,90,95,.18); }
.audit-status-badge { border: 1px solid var(--border); border-radius: 5px; padding: 5px 8px; color: var(--muted); font-size: 12px; }
.audit-status-badge.normal { color: var(--green); border-color: rgba(110,219,143,.34); background: rgba(110,219,143,.08); }
.audit-status-badge.high { color: var(--red); border-color: rgba(255,90,95,.42); background: rgba(255,90,95,.1); }
.audit-status-badge.review { color: var(--gold); border-color: rgba(212,175,55,.36); background: rgba(212,175,55,.08); }
.audit-signal-card h3 { margin: 0; font-size: 17px; }
.audit-signal-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.audit-priority-section { padding: 0; overflow: hidden; }
.audit-priority-section .audit-section-head { margin: 0; padding: 20px 20px 14px; }
.audit-priority-list { display: grid; }
.audit-priority-alert { display: grid; grid-template-columns: 12px 1fr; gap: 12px; padding: 17px 20px; border-top: 1px solid var(--border); }
.audit-priority-alert h3 { margin: 0 0 6px; font-size: 15px; }
.audit-priority-alert p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.audit-priority-alert small { display: block; margin-top: 10px; color: #777b86; }
.audit-alert-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--gold); }
.audit-alert-dot.Critical,
.audit-alert-dot.High { background: var(--red); }
.audit-empty { padding: 18px 20px; border-top: 1px solid var(--border); color: var(--muted); }
.audit-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.audit-chart-card { min-height: 382px; }
.audit-chart-card h3 { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.audit-svg-chart svg { width: 100%; height: 260px; display: block; }
.audit-svg-chart text { fill: #85858a; font-size: 11px; text-anchor: middle; }
.audit-html-chart {
  position: relative;
  width: 100%;
  height: 260px;
  min-height: 260px;
  overflow: hidden;
}
.audit-html-grid {
  position: absolute;
  left: 11%;
  right: 5%;
  height: 1px;
  background: #27272c;
}
.audit-html-segment {
  position: absolute;
  z-index: 3;
  height: 3px;
  border-radius: 999px;
  transform-origin: left center;
  margin-left: 11%;
  max-width: 84%;
  box-shadow: 0 0 14px rgba(0,0,0,.2);
}
.audit-html-segment.gold { background: var(--gold); }
.audit-html-segment.red { background: var(--red); }
.audit-html-point {
  position: absolute;
  z-index: 4;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  margin-left: 11%;
  border: 2px solid #101012;
}
.audit-html-point.gold { background: var(--gold); }
.audit-html-point.red { background: var(--red); }
.audit-html-point i {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.audit-html-axis {
  position: absolute;
  left: 11%;
  right: 5%;
  bottom: 4px;
  display: flex;
  justify-content: space-between;
  color: #85858a;
  font-size: 11px;
}
.audit-html-bars {
  position: absolute;
  left: 11%;
  right: 5%;
  bottom: 24px;
  top: 14%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.audit-html-bar-group {
  position: relative;
  flex: 1 1 0;
  height: 100%;
  min-width: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
}
.audit-html-bar {
  display: block;
  width: 100%;
  min-height: 3px;
}
.audit-html-bar.standard { background: #2b2b31; order: 2; }
.audit-html-bar.anomaly { background: var(--blue); order: 1; }
.audit-html-bar-group b {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  color: #85858a;
  font-size: 11px;
  font-weight: 500;
}
.audit-grid-line { stroke: #27272c; stroke-width: 1; }
.grid-line { stroke: #27272a; stroke-width: 1; }
.audit-line-gold,
.audit-line-red { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.audit-line-gold { stroke: var(--gold); }
.audit-line-red { stroke: var(--red); }
.audit-area-red { fill: rgba(255,90,95,.12); stroke: none; }
.line-gold,
.line-red { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.line-gold { stroke: var(--gold); }
.line-red { stroke: var(--red); }
.area-red { fill: rgba(255,75,85,.12); stroke: none; }
.audit-chart-point { stroke: #101012; stroke-width: 2; }
.chart-point { cursor: pointer; stroke: #101011; stroke-width: 2; }
.audit-gold-point { fill: var(--gold); }
.audit-red-point { fill: var(--red); }
.gold-point { fill: var(--gold); }
.red-point { fill: var(--red); }
.audit-bar-standard { fill: #2b2b31; }
.audit-bar-anomaly { fill: var(--blue); }
.bar-standard { fill: #2b2b2d; }
.bar-anomaly { fill: var(--blue); }
.chart-bar { cursor: pointer; }
.audit-chart-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.audit-chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.audit-chart-legend b { font-weight: 500; }
.audit-chart-legend i { width: 12px; height: 12px; display: inline-block; }
.legend-gold { background: var(--gold); }
.legend-red { background: var(--red); }
.legend-blue { background: var(--blue); }
.legend-gray { background: #2b2b31; }

@media (max-width: 1180px) {
  .audit-kpi-grid,
  .audit-report-kpis,
  .audit-chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-dashboard-main-grid,
  .audit-detail-grid { grid-template-columns: 1fr; }
  .alert-filter-bar { grid-template-columns: 1fr 1fr; }
  .noncompliance-filter-row { grid-template-columns: minmax(0, 1fr) 1fr 1fr; }
  .noncompliance-tags { grid-column: 1 / -1; }
  .audit-report-head,
  .audit-report-layout { grid-template-columns: 1fr; }
  .audit-report-head-actions {
    grid-template-columns: 1fr;
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  .audit-dashboard-head { flex-direction: column; }
  .audit-scope-card { min-width: 0; }
  .audit-kpi-grid,
  .audit-report-kpis,
  .audit-signal-grid,
  .audit-chart-grid { grid-template-columns: 1fr; }
  .alert-filter-bar { grid-template-columns: 1fr; }
  .noncompliance-filter-row { grid-template-columns: 1fr; }
  .noncompliance-tags { grid-column: auto; }
}

.product-slider {
  width: min(940px, calc(100% - 36px));
  margin: 0 auto 86px;
}

.product-slider .analytics-preview {
  width: 100%;
  margin-bottom: 0;
}

.product-slider-tabs {
  display: flex;
  gap: 10px;
  margin: 0 0 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.product-slider-tabs button {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #2a2a31;
  border-radius: 999px;
  background: #111114;
  color: #8f929b;
  font-weight: 800;
}

.product-slider-tabs button.is-active {
  border-color: rgba(212,175,55,.5);
  background: rgba(212,175,55,.12);
  color: #d4af37;
}

.preview-window-bar {
  height: 42px;
  display: grid;
  grid-template-columns: 14px 14px 14px 1fr 20px 20px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid #24242a;
  color: #777b86;
  font-size: 11px;
}

.preview-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-window-bar span:nth-child(1) { background: #ff5f57; }
.preview-window-bar span:nth-child(2) { background: #ffbd2e; }
.preview-window-bar span:nth-child(3) { background: #28c840; }
.preview-window-bar strong { justify-self: center; }
.preview-window-bar i {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #2a2a31;
}

.preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 22px;
}

.preview-kpis article,
.preview-chart,
.preview-alerts,
.single-card-grid article,
.single-use-list article,
.single-security-card {
  border: 1px solid #292930;
  border-radius: 10px;
  background: #1a1a1e;
}

.preview-kpis article {
  min-height: 112px;
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.preview-kpis span,
.preview-alerts span,
.single-card-grid span,
.single-use-list span,
.single-security-card span {
  color: #8f929b;
  font-size: 12px;
}

.preview-kpis b {
  color: #ffffff;
  font-size: 30px;
}

.preview-kpis small:first-of-type,
.preview-kpis article:first-child small {
  color: #28c77a;
  font-weight: 800;
}

.preview-kpis article:nth-child(3) small {
  color: #ff6363;
}

.preview-lower {
  display: grid;
  grid-template-columns: 1.45fr .8fr;
  gap: 18px;
  padding: 0 22px 22px;
}

.preview-chart {
  padding: 22px;
}

.preview-chart > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.preview-chart strong,
.preview-alerts h2 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
}

.preview-chart em {
  padding: 6px 10px;
  border-radius: 6px;
  background: #111114;
  color: #d9dce4;
  font-size: 11px;
  font-style: normal;
}

.preview-chart svg {
  width: 100%;
  height: auto;
}

.preview-chart .grid {
  stroke: rgba(255,255,255,.06);
}

.preview-chart .main-line {
  fill: none;
  stroke: #d4af37;
  stroke-width: 3;
}

.preview-chart .area {
  fill: rgba(212,175,55,.14);
}

.preview-chart .dotted {
  fill: none;
  stroke: #69707d;
  stroke-dasharray: 3 5;
}

.preview-chart text {
  fill: #8f929b;
  font-size: 12px;
}

.preview-alerts {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.preview-alerts div {
  display: grid;
  gap: 4px;
  padding-left: 26px;
  border-bottom: 1px solid #28282e;
  padding-bottom: 14px;
}

.preview-alerts div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.preview-alerts b {
  color: #ffffff;
  font-size: 13px;
}

.single-band {
  border-top: 1px solid #202026;
  border-bottom: 1px solid #202026;
  background: #101012;
}

.single-capabilities {
  padding: 88px max(36px, calc((100vw - 1080px) / 2));
}

.single-section-heading {
  text-align: center;
}

.single-section-heading h2,
.single-agility h2,
.single-cta h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.single-section-heading p,
.single-agility p,
.single-cta p {
  width: min(560px, 100%);
  margin: 18px auto 0;
  color: #8f929b;
  line-height: 1.55;
}

.single-card-grid {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.single-card-grid article {
  min-height: 220px;
  padding: 28px;
}

.single-card-grid article > span {
  color: #d4af37;
  font-weight: 900;
}

.single-card-grid h3 {
  margin: 18px 0 10px;
  color: #ffffff;
}

.single-card-grid p {
  margin: 0 0 18px;
  color: #8f929b;
}

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

.single-card-grid li {
  color: #bfc2cc;
  font-size: 13px;
}

.single-card-grid li::before {
  content: "\2713";
  margin-right: 8px;
  color: #d4af37;
}

.single-agility {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 86px 0;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 58px;
  align-items: center;
}

.single-agility p {
  margin-left: 0;
}

.single-use-list {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.single-use-list article {
  padding: 18px 22px;
  display: grid;
  gap: 6px;
}

.single-use-list strong,
.single-security-card strong {
  color: #ffffff;
}

.single-security-card {
  padding: 28px;
  display: grid;
  gap: 22px;
}

.single-security-card h3 {
  margin: 0 0 4px;
  color: #ffffff;
}

.single-security-card div {
  display: grid;
  gap: 4px;
}

.single-cta {
  width: min(1050px, calc(100% - 36px));
  margin: 0 auto 72px;
  padding: 62px 28px;
  border: 1px solid rgba(212,175,55,.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 40%, rgba(212,175,55,.12), transparent 34%),
    #111113;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.34);
}

.single-cta div {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.single-product-footer {
  width: min(1050px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 70px;
  display: grid;
  grid-template-columns: .9fr 1fr .9fr;
  gap: 48px;
  color: #8f929b;
}

.single-product-footer > div {
  display: grid;
  align-content: start;
  gap: 12px;
}

.single-product-footer strong {
  color: #d4af37;
}

.single-product-footer p,
.single-product-footer a,
.single-product-footer span {
  color: #8f929b;
  text-decoration: none;
}

.footer-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #d4af37;
  color: #101012 !important;
  font-weight: 900;
}

.single-product-footer button {
  height: 44px;
  padding: 0 16px;
  border: 1px solid #25252a;
  border-radius: 6px;
  background: #101012;
  color: #ffffff;
  text-align: left;
}

.single-product-footer .single-footer-bottom {
  grid-column: 1 / -1;
  min-height: 58px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid #25252a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.single-product-footer .public-payment-logos {
  justify-self: auto;
}

/* Admin */
.admin-page {
  min-height: 100vh;
  background: #080809;
  color: #f7f7f8;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.admin-login-brand {
  padding: 56px 68px;
  border-right: 1px solid #282830;
  background:
    radial-gradient(circle at 55% 40%, rgba(212,175,55,.11), transparent 32%),
    #111114;
  display: grid;
  align-content: space-between;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-brand span,
.admin-login-brand .admin-brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #d4af37;
  color: #111113;
  font-weight: 900;
}

.admin-brand strong {
  color: #ffffff;
  font-size: 24px;
}

.admin-brand b {
  color: #d4af37;
}

.admin-login-copy p {
  width: max-content;
  padding: 7px 14px;
  border: 1px solid #2b2c33;
  border-radius: 999px;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 12px;
}

.admin-login-copy h1 {
  max-width: 560px;
  margin: 36px 0 24px;
  color: #ffffff;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
}

.admin-login-copy span {
  display: block;
  max-width: 560px;
  color: #a2a4ad;
  font-size: 20px;
  line-height: 1.55;
}

.admin-login-window {
  min-height: 180px;
  border: 1px solid #25262d;
  border-radius: 12px 12px 0 0;
  background: #111114;
  display: grid;
  grid-template-columns: 12px 12px 12px 1fr;
  align-content: start;
  gap: 10px;
  padding: 24px;
}

.admin-login-window i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bb304c;
}
.admin-login-window i:nth-child(2) { background: #b78b35; }
.admin-login-window i:nth-child(3) { background: #12815d; }
.admin-login-window span {
  grid-column: 1 / -1;
  height: 36px;
  border: 1px solid #292a31;
  border-radius: 5px;
}

.admin-login-card {
  width: min(560px, calc(100% - 48px));
  margin: auto;
  display: grid;
  gap: 16px;
}

.admin-login-card h1 {
  margin: 0;
  color: #ffffff;
  font-size: 36px;
}

.admin-login-card p,
.admin-login-card small {
  color: #a2a4ad;
}

.admin-login-card label {
  color: #ffffff;
  font-weight: 800;
}

.admin-login-card label button {
  float: right;
  border: 0;
  background: transparent;
  color: #d4af37;
  font-weight: 800;
}

.admin-login-card input:not([type="checkbox"]) {
  width: 100%;
  height: 58px;
  border: 1px solid #30313a;
  border-radius: 8px;
  background: #141419;
  color: #ffffff;
  padding: 0 18px;
}

.admin-login-card > .primary-button,
.admin-login-card > .ghost-button {
  height: 54px;
  border-radius: 9px;
}

.admin-login[hidden],
.admin-shell[hidden] {
  display: none !important;
}

.admin-divider {
  margin: 18px 0;
  display: grid;
  place-items: center;
  border-top: 1px solid #25262d;
}

.admin-divider span {
  margin-top: -10px;
  padding: 0 14px;
  background: #080809;
  color: #8f929b;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.admin-sidebar {
  min-height: 100vh;
  padding: 28px 18px;
  border-right: 1px solid #292a31;
  background: #111114;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 34px;
}

.admin-sidebar nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.admin-sidebar nav button,
.admin-sidebar > button {
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #d8d8de;
  text-align: left;
  padding: 0 16px;
  font-weight: 800;
}

.admin-sidebar nav button.is-active {
  border-color: rgba(212,175,55,.28);
  background: rgba(212,175,55,.11);
  color: #d4af37;
}

.admin-sidebar > button {
  color: #ff3b6b;
}

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

.admin-topbar {
  min-height: 86px;
  padding: 20px 36px;
  border-bottom: 1px solid #292a31;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.admin-topbar input {
  width: min(430px, 100%);
  height: 48px;
  border: 1px solid #30313a;
  border-radius: 8px;
  background: #141419;
  color: #fff;
  padding: 0 18px;
}

.admin-user-menu {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.admin-user-menu span {
  display: grid;
  justify-items: end;
}

.admin-user-menu small {
  color: #a2a4ad;
}

.admin-topbar span,
.admin-heading p,
.admin-panel span,
.admin-panel label {
  color: #a2a4ad;
}

.admin-content {
  padding: 36px;
  display: grid;
  gap: 34px;
}

.admin-screen {
  display: none;
}

.admin-screen.is-active {
  display: grid;
  gap: 34px;
}

.admin-heading,
.admin-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-heading h1,
.admin-panel h2 {
  margin: 0;
  color: #ffffff;
}

.admin-panel {
  border: 1px solid #2b2c33;
  border-radius: 12px;
  background: #111114;
  padding: 26px;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}

.admin-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table-wrap th,
.admin-table-wrap td {
  padding: 16px 14px;
  border-bottom: 1px solid #282930;
  text-align: left;
}

.admin-table-wrap td strong,
.admin-table-wrap td span {
  display: block;
}

.admin-table-wrap tr.is-selected {
  background: rgba(212,175,55,.05);
}

.admin-package-name {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.admin-package-name i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #30313a;
  border-radius: 6px;
  background: #17171c;
  color: #d4af37;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.admin-package-name small,
.admin-table-wrap td small {
  color: #a2a4ad;
}

.admin-grid {
  display: grid;
  grid-template-columns: .9fr 1.9fr;
  gap: 34px;
}

.admin-editor-panel {
  display: grid;
  gap: 22px;
}

.admin-editor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px;
  border: 1px solid #2b2c33;
  border-radius: 10px;
  background: #0c0c0f;
}

.admin-editor-tabs button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #a2a4ad;
  font-weight: 900;
}

.admin-editor-tabs button:hover {
  color: #fff7d7;
  border-color: rgba(212,175,55,.22);
  background: rgba(212,175,55,.08);
}

.admin-editor-tabs button.is-active {
  color: #101012;
  background: #d4af37;
  border-color: #d4af37;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.is-active {
  display: block;
}

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

.admin-form-grid .full {
  grid-column: 1 / -1;
}

.admin-form-grid input,
.admin-form-grid textarea {
  display: block !important;
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border: 1px solid #30313a;
  border-radius: 8px;
  background: #141419;
  color: #fff;
  padding: 13px;
}

.admin-form-grid textarea {
  min-height: 92px;
  resize: vertical;
}

.admin-description-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 22px;
}

.admin-description-layout label {
  display: grid;
  gap: 10px;
}

.admin-description-layout textarea {
  display: block !important;
  width: 100%;
  min-height: 220px;
  border: 1px solid #30313a;
  border-radius: 8px;
  background: #141419;
  color: #fff;
  padding: 13px;
  resize: vertical;
}

.admin-description-preview {
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(212,175,55,.2);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(212,175,55,.08), rgba(255,255,255,.025));
}

.admin-description-preview span {
  color: #d4af37;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-description-preview strong {
  color: #fff;
  font-size: 24px;
}

.admin-description-preview p,
.admin-description-preview div {
  color: #a2a4ad;
  line-height: 1.55;
}

.admin-description-preview ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.admin-description-preview a {
  color: #d4af37;
}

.field-help {
  display: block;
  color: #8f93a3;
  font-size: 12px;
  line-height: 1.4;
}

.admin-preview-config {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #262730;
}

.admin-preview-config .admin-form-grid {
  margin-top: 14px;
}

.admin-preview-alerts-label {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.admin-preview-alerts-label textarea {
  min-height: 120px;
  width: 100%;
  border: 1px solid #30313a;
  border-radius: 8px;
  background: #141419;
  color: #fff;
  padding: 13px;
  resize: vertical;
}

.admin-feature-grid {
  margin-top: 22px;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-feature-card {
  min-height: 94px;
  position: relative;
  padding: 18px;
  border: 1px solid #2b2c33;
  border-radius: 10px;
  background: #141419;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-feature-card.is-disabled {
  opacity: .68;
}

.admin-feature-card span {
  display: grid;
  gap: 5px;
}

.admin-feature-card strong {
  color: #ffffff;
}

.admin-feature-card small {
  color: #a2a4ad;
}

.admin-feature-card em {
  position: absolute;
  right: 18px;
  bottom: 14px;
  padding: 4px 8px;
  border: 1px solid rgba(212,175,55,.25);
  border-radius: 5px;
  color: #9c7d1f;
  font-size: 11px;
  font-style: normal;
}

.admin-feature-card input {
  width: 42px;
  height: 22px;
  accent-color: #d4af37;
}

.subscription-admin-heading,
.subscription-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.subscription-admin-heading h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 32px;
}

.subscription-admin-heading p,
.subscription-pagination {
  color: #a2a4ad;
}

.subscription-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 160px 160px 320px 44px;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid #292a31;
}

.subscription-search,
.subscription-date-range {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #30313a;
  border-radius: 10px;
  background: #17171c;
  color: #8f929b;
}

.subscription-filter-bar select,
.subscription-search input,
.subscription-date-range input {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  outline: 0;
}

.subscription-filter-bar select {
  padding: 0 14px;
  border: 1px solid #30313a;
  border-radius: 10px;
  background: #17171c;
}

.subscription-date-range input {
  min-width: 0;
}

.subscription-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
}

.subscription-kpi-grid article {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px;
  border: 1px solid #2b2c33;
  border-radius: 14px;
  background: #1a1a1f;
}

.subscription-kpi-grid span {
  color: #a2a4ad;
  font-size: 16px;
}

.subscription-kpi-grid strong {
  color: #fff;
  font-size: 30px;
}

.subscription-kpi-grid small {
  justify-self: end;
  margin-top: -34px;
  padding: 5px 10px;
  border-radius: 6px;
  background: #272830;
  color: #a2a4ad;
  font-weight: 900;
}

.subscription-kpi-grid small.positive {
  background: rgba(0,196,140,.14);
  color: #00c48c;
}

.subscription-kpi-grid small.warning {
  background: rgba(212,175,55,.16);
  color: #ffb000;
}

.subscription-table-panel {
  border: 1px solid #2b2c33;
  border-radius: 14px;
  overflow: hidden;
  background: #1b1b20;
}

.subscription-table-wrap {
  margin-top: 0;
}

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

.subscription-table-wrap th {
  background: #292930;
  color: #a2a4ad;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.subscription-company {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.subscription-company i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #30313a;
  border-radius: 6px;
  background: #25252b;
  color: #f1f1f5;
  font-style: normal;
  font-weight: 900;
}

.subscription-company small,
.subscription-timeline small {
  color: #a2a4ad;
}

.subscription-package {
  display: inline-flex !important;
  width: fit-content;
  padding: 7px 13px;
  border: 1px solid #30313a;
  border-radius: 8px;
  background: #292930;
  color: #fff !important;
}

.subscription-status {
  display: inline-flex !important;
  width: fit-content;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 8px;
  font-weight: 900;
}

.subscription-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.subscription-status.active {
  border: 1px solid rgba(0,196,140,.28);
  background: rgba(0,196,140,.12);
  color: #00c48c;
}

.subscription-status.trial {
  border: 1px solid rgba(255,176,0,.28);
  background: rgba(255,176,0,.12);
  color: #ffb000;
}

.subscription-status.expired {
  border: 1px solid rgba(255,59,107,.28);
  background: rgba(255,59,107,.12);
  color: #ff3b6b;
}

.subscription-timeline,
.subscription-usage {
  display: grid !important;
  gap: 8px;
}

.subscription-timeline strong {
  margin-left: 28px;
  color: #fff;
  font-weight: 700;
}

.subscription-usage span {
  display: flex !important;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
}

.subscription-usage em {
  color: #a2a4ad;
  font-style: normal;
}

.subscription-usage b {
  height: 7px;
  overflow: hidden;
  border-radius: 20px;
  background: #2a2b31;
}

.subscription-usage b i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #d4af37;
}

.subscription-pagination button {
  min-width: 38px;
  min-height: 36px;
  border: 1px solid #30313a;
  border-radius: 7px;
  background: #17171c;
  color: #d8d8de;
}

.subscription-pagination button.is-active {
  border-color: #d4af37;
  background: #d4af37;
  color: #111;
}

.subscription-pagination button:disabled {
  opacity: .45;
}

.user-admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.user-admin-heading h1 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 30px;
}

.user-admin-heading p {
  color: #8f929b;
}

.user-admin-actions {
  display: flex;
  gap: 14px;
}

.user-management-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 0;
  margin: 0 -36px -36px;
  border-top: 1px solid #292a31;
}

.user-management-main {
  min-width: 0;
  padding: 24px 24px 36px;
}

.user-filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.user-search {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid #30313a;
  border-radius: 8px;
  background: #111114;
  color: #8f929b;
}

.user-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  outline: 0;
}

.user-filter-row {
  display: grid;
  grid-template-columns: 140px 130px 130px 44px;
  gap: 12px;
}

.user-filter-row select {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #30313a;
  border-radius: 8px;
  background: #111114;
  color: #fff;
}

.user-filter-tags span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid #30313a;
  border-radius: 20px;
  color: #c9cad1;
  font-size: 13px;
}

.user-filter-tags button {
  border: 0;
  background: transparent;
  color: #c9cad1;
}

.user-table-panel {
  overflow: hidden;
  border: 1px solid #24252b;
  border-radius: 9px;
  background: #151519;
}

.user-table-wrap {
  margin-top: 0;
}

.user-table-wrap table {
  min-width: 760px;
}

.user-table-wrap th {
  background: #1f2026;
  color: #8f929b;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.user-table-wrap tr.is-selected {
  border-left: 3px solid #d4af37;
  background: #17171b;
}

.admin-user-cell {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.admin-user-cell img,
.admin-user-cell i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1f2026;
  color: #8f929b;
  font-style: normal;
  object-fit: cover;
}

.role-chip {
  display: inline-flex !important;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid #30313a;
  border-radius: 6px;
  background: #151519;
  color: #d8d8de !important;
  font-size: 13px;
}

.user-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  color: #8f929b;
}

.user-table-footer button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #30313a;
  border-radius: 7px;
  background: #111114;
  color: #fff;
}

.user-table-footer button:disabled {
  opacity: .42;
}

.user-profile-panel {
  position: relative;
  display: grid;
  align-content: start;
  gap: 26px;
  min-height: calc(100vh - 166px);
  padding: 32px 24px;
  border-left: 1px solid #292a31;
  background: #101012;
}

.user-profile-menu {
  position: absolute;
  top: 22px;
  right: 22px;
}

.admin-user-hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #24252b;
}

.admin-user-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 3px solid #d4af37;
  border-radius: 50%;
}

.admin-user-avatar img,
.admin-user-avatar i {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: #24252b;
  color: #fff;
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
}

.admin-user-avatar b {
  position: absolute;
  right: 4px;
  bottom: 10px;
  width: 15px;
  height: 15px;
  border: 3px solid #101012;
  border-radius: 50%;
  background: #00c48c;
}

.admin-user-hero h2 {
  margin: 6px 0 0;
  color: #fff;
}

.admin-user-hero p {
  color: #8f929b;
}

.admin-user-hero div {
  display: flex;
  gap: 8px;
}

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

.admin-user-stats article,
.admin-user-side-block {
  padding: 18px;
  border: 1px solid #24252b;
  border-radius: 8px;
  background: #111114;
}

.admin-user-stats span,
.admin-user-side-block span,
.admin-switch-line small {
  color: #8f929b;
}

.admin-user-stats strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 28px;
}

.admin-user-side-block {
  display: grid;
  gap: 14px;
}

.admin-user-side-block h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-user-side-block div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.admin-user-side-block strong {
  color: #fff;
}

.gold-text {
  color: #d4af37 !important;
}

.admin-switch-line {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-switch-line span {
  display: grid;
  gap: 3px;
}

.admin-switch-line input {
  width: 42px;
  height: 22px;
  accent-color: #d4af37;
}

.admin-user-profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #24252b;
}

.danger-button {
  min-height: 44px;
  border: 1px solid rgba(255,59,107,.35);
  border-radius: 8px;
  background: rgba(255,59,107,.08);
  color: #ff6b86;
  font-weight: 900;
}

body.is-public-shop.is-contact-sales {
  background: #080809;
}

.contact-sales-header {
  min-height: 80px;
}

.contact-sales-main {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(480px, 1.15fr);
  gap: clamp(36px, 7vw, 92px);
}

.contact-sales-copy {
  display: grid;
  align-content: start;
  gap: 28px;
  padding-top: 32px;
}

.contact-ready-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid #30313a;
  border-radius: 999px;
  color: #e8e8ee;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-ready-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00c48c;
}

.contact-sales-copy h1 {
  max-width: 480px;
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 5.4vw, 72px);
  line-height: .96;
}

.contact-sales-copy h1 span {
  color: #d4af37;
}

.contact-sales-copy > p {
  max-width: 480px;
  color: #a2a4ad;
  font-size: 20px;
  line-height: 1.45;
}

.contact-benefit-list {
  display: grid;
  gap: 22px;
  margin-top: 12px;
}

.contact-benefit-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
}

.contact-benefit-list i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #30313a;
  border-radius: 8px;
  background: #151519;
  color: #d4af37;
  font-style: normal;
}

.contact-benefit-list strong {
  color: #fff;
  font-size: 17px;
}

.contact-benefit-list p,
.contact-trust-row span {
  margin: 6px 0 0;
  color: #a2a4ad;
  line-height: 1.4;
}

.contact-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}

.contact-trust-row span {
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-trust-row strong {
  color: #8f929b;
  font-size: 20px;
}

.contact-sales-form {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid #2b2c33;
  border-radius: 16px;
  background: #121214;
  box-shadow: 0 24px 48px rgba(0,0,0,.32);
}

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

.contact-form-grid label,
.contact-comments {
  display: grid;
  gap: 10px;
  color: #e4e4e8;
  font-weight: 800;
}

.contact-form-grid .full {
  grid-column: 1 / -1;
}

.contact-form-grid input,
.contact-form-grid select,
.contact-comments textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #30313a;
  border-radius: 8px;
  background: #151519;
  color: #fff;
}

.contact-comments textarea {
  min-height: 90px;
  padding: 14px 16px;
  resize: vertical;
}

.contact-checkbox-grid,
.contact-radio-row {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
}

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

.contact-checkbox-grid legend,
.contact-radio-row legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: #e4e4e8;
  font-weight: 800;
}

.contact-checkbox-grid label,
.contact-radio-row label {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid #30313a;
  border-radius: 8px;
  background: #151519;
  color: #e4e4e8;
}

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

.contact-checkbox-grid input,
.contact-radio-row input {
  width: 18px;
  height: 18px;
  accent-color: #d4af37;
}

.contact-submit-button {
  min-height: 58px;
  font-size: 18px;
}

.contact-sales-terms {
  margin: 0;
  text-align: center;
  color: #a2a4ad;
  font-size: 13px;
}

.contact-sales-terms a {
  color: #d4af37;
}

.contact-sales-footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 8vw, 120px);
  padding: 28px;
  border-top: 1px solid #24252b;
  color: #8f929b;
}

.contact-sales-footer nav {
  display: flex;
  gap: 28px;
}

.contact-sales-footer a {
  color: #a2a4ad;
}

.leads-filter-bar {
  grid-template-columns: minmax(260px, 1fr) 220px;
}

.lead-detail-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.lead-detail-panel[hidden] {
  display: none;
}

.lead-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.lead-detail-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
}

.lead-detail-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.lead-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.lead-detail-grid div,
.lead-comments {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
}

.lead-detail-grid span,
.lead-comments span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.lead-detail-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.lead-comments {
  margin-top: 12px;
}

.lead-comments p {
  color: var(--text);
  white-space: pre-wrap;
}

.lead-comments small {
  color: var(--muted);
}

.cart-icon-button {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #30313a;
  border-radius: 9px;
  background: #151519;
  color: #f4f1e8;
  font-weight: 900;
}

.cart-icon-button::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 3px;
}

.cart-icon-button span {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2a2b31;
  color: #a2a4ad;
  font-size: 12px;
}

.cart-icon-button.has-items {
  border-color: rgba(212,175,55,.45);
  color: #d4af37;
  box-shadow: 0 0 18px rgba(212,175,55,.14);
}

.cart-icon-button.has-items span {
  background: #d4af37;
  color: #111;
}

.cart-checkout-header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(24px, 7vw, 104px);
  border-bottom: 1px solid #24252b;
  background: #0b0b0c;
}

.cart-help {
  display: grid;
  color: #a2a4ad;
  text-align: right;
}

.cart-help a,
.cart-back-link {
  color: #d4af37;
}

.cart-back-link {
  width: fit-content;
  border: 0;
  background: transparent;
  color: #a2a4ad;
  font-weight: 800;
}

.shopping-cart-main {
  min-height: calc(100vh - 172px);
  width: min(640px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 52px 0;
}

.shopping-cart-card {
  overflow: hidden;
  border: 1px solid #2b2c33;
  border-radius: 22px;
  background: linear-gradient(145deg, #181816, #111114);
  box-shadow: 0 24px 52px rgba(0,0,0,.42);
}

.shopping-cart-card-head,
.shopping-cart-features,
.shopping-cart-actions {
  padding: 32px;
}

.shopping-cart-card-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid #2b2c33;
}

.recommended-pill {
  width: fit-content;
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(212,175,55,.35);
  border-radius: 999px;
  background: rgba(212,175,55,.1);
  color: #d4af37;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.shopping-cart-card h1,
.shopping-cart-card h2 {
  margin: 0;
  color: #fff;
}

.shopping-cart-card p {
  color: #a2a4ad;
}

.shopping-cart-price {
  min-width: 180px;
  text-align: right;
}

.shopping-cart-price strong {
  display: block;
  color: #d4af37;
  font-size: 38px;
}

.shopping-cart-price span {
  color: #a2a4ad;
}

.shopping-cart-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  border-bottom: 1px solid #2b2c33;
}

.shopping-cart-features h2 {
  margin-bottom: 14px;
  color: #a2a4ad;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.shopping-cart-features p {
  margin: 12px 0;
  color: #f4f1e8;
}

.shopping-cart-features p::before,
.checkout-plan-card li::before {
  content: "✓";
  margin-right: 12px;
  color: #d4af37;
}

.shopping-cart-actions {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.shopping-cart-actions button {
  min-width: 170px;
  min-height: 52px;
}

.cart-assurance-row {
  display: flex;
  justify-content: center;
  gap: 34px;
  color: #8f929b;
  font-size: 13px;
}

.empty-cart-state {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 48px;
  text-align: center;
}

.cart-checkout-footer {
  min-height: 84px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  border-top: 1px solid #24252b;
  color: #8f929b;
}

.cart-checkout-footer a {
  color: #a2a4ad;
}

.checkout-public-main {
  width: min(1230px, calc(100% - 40px));
  margin: 0 auto;
  padding: 66px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .75fr);
  gap: 64px;
}

.checkout-public-main h1 {
  margin: 0;
  color: #fff;
  font-size: 40px;
}

.checkout-public-main > section > p {
  color: #a2a4ad;
  font-size: 19px;
}

.checkout-plan-card,
.checkout-payment-card {
  margin-top: 42px;
  border: 1px solid #2b2c33;
  border-radius: 16px;
  background: #111114;
  box-shadow: 0 24px 50px rgba(0,0,0,.35);
}

.checkout-plan-card {
  padding: 28px;
  border-top-color: rgba(212,175,55,.75);
}

.checkout-plan-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.checkout-plan-head h2 {
  margin: 0;
  color: #fff;
}

.checkout-plan-head h2 span {
  margin-left: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(212,175,55,.35);
  border-radius: 999px;
  color: #d4af37;
  font-size: 11px;
  text-transform: uppercase;
}

.checkout-cycle-toggle {
  width: fit-content;
  margin: 28px 0;
  padding: 5px;
  border: 1px solid #30313a;
  border-radius: 10px;
  background: #18181d;
}

.checkout-cycle-toggle button {
  min-height: 38px;
  padding: 0 24px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #a2a4ad;
  font-weight: 900;
}

.checkout-cycle-toggle button.is-active {
  background: #30313a;
  color: #fff;
}

.checkout-cycle-toggle small {
  color: #d4af37;
}

.checkout-plan-price {
  display: block;
  margin-bottom: 22px;
  color: #fff;
  font-size: 42px;
}

.checkout-plan-price small {
  color: #a2a4ad;
  font-size: 18px;
}

.checkout-plan-card ul {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid #24252b;
  list-style: none;
}

.checkout-security-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.checkout-security-row article {
  padding: 18px;
  border: 1px solid #24252b;
  border-radius: 12px;
  background: #111114;
  color: #fff;
  font-weight: 900;
}

.checkout-security-row small {
  color: #a2a4ad;
  font-weight: 500;
}

.checkout-payment-card {
  display: grid;
  gap: 28px;
  padding: 32px;
}

.checkout-payment-card h2 {
  margin: 0 0 18px;
  color: #fff;
}

.checkout-payment-card label {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  color: #a2a4ad;
  font-size: 13px;
  font-weight: 800;
}

.checkout-payment-card input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #30313a;
  border-radius: 10px;
  background: #151519;
  color: #fff;
}

.checkout-two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.checkout-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.checkout-section-head span {
  color: #a2a4ad;
  font-size: 12px;
}

.checkout-total-box {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid #24252b;
  border-radius: 12px;
  background: #0f0f11;
}

.checkout-total-box div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.checkout-total-box .discount,
.checkout-total-box .discount strong {
  color: #d4af37;
}

.checkout-total-box .total {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid #24252b;
  color: #fff;
  font-weight: 900;
}

.checkout-total-box .total strong {
  color: #d4af37;
  font-size: 28px;
}

.checkout-complete-button {
  min-height: 58px;
  font-size: 18px;
}

.checkout-disclaimer {
  margin: -8px 0 0;
  color: #8f929b;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 1000px) {
  .admin-login,
  .admin-shell,
  .admin-grid,
  .subscription-filter-bar,
  .subscription-kpi-grid,
  .user-management-shell,
  .user-filter-row,
  .contact-sales-main,
  .contact-form-grid,
  .contact-checkbox-grid,
  .contact-radio-row,
  .shopping-cart-features,
  .checkout-public-main,
  .checkout-security-row,
  .checkout-two-col {
    grid-template-columns: 1fr;
  }
  .shopping-cart-card-head,
  .shopping-cart-actions,
  .cart-checkout-header,
  .cart-checkout-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .shopping-cart-price,
  .cart-help {
    text-align: left;
  }
  .user-management-shell {
    margin: 0;
  }
  .user-profile-panel {
    border-left: 0;
    border-top: 1px solid #292a31;
  }
  .admin-sidebar {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .public-compare-actions,
  .preview-kpis,
  .admin-description-layout,
  .admin-feature-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-content,
  .admin-topbar,
  .admin-login-brand {
    padding: 22px;
  }
}

@media (max-width: 900px) {
  .preview-kpis,
  .preview-lower,
  .single-card-grid,
  .single-agility,
  .single-product-footer {
    grid-template-columns: 1fr;
  }

  .single-product-footer {
    gap: 28px;
  }
}

@media (max-width: 620px) {
  body.is-public-shop.is-product-detail .public-shop-header {
    padding: 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  body.is-public-shop.is-product-detail .public-shop-actions {
    width: 100%;
  }

  body.is-public-shop.is-product-detail .public-shop-actions button {
    flex: 1;
  }

  .single-hero {
    padding: 72px 0 58px;
  }

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

  .single-price {
    justify-items: center;
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid #25252a;
  }

  .analytics-preview,
  .single-cta {
    width: calc(100% - 24px);
  }

  .preview-kpis,
  .preview-lower {
    padding-inline: 14px;
  }

  .single-capabilities {
    padding: 64px 18px;
  }
}

.public-legal-main {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.public-legal-card {
  padding: 36px;
  border: 1px solid #2b2b31;
  border-radius: 12px;
  background: #151518;
}

.public-legal-card .eyebrow {
  color: #d4af37;
}

.public-legal-card h1 {
  margin: 8px 0 22px;
  color: #ffffff;
  font-size: 42px;
}

.public-legal-card p {
  color: #aeb2bc;
  line-height: 1.7;
}

.public-legal-card .primary-button {
  margin-top: 18px;
}

@media (max-width: 980px) {
  body.is-public-shop.is-product-list .public-product-list-header {
    width: min(100% - 32px, 720px);
    min-height: auto;
    padding: 18px 0;
    grid-template-columns: 1fr auto;
  }

  body.is-public-shop.is-public-legal .public-product-list-header {
    width: min(100% - 32px, 720px);
    min-height: auto;
    padding: 18px 0;
    grid-template-columns: 1fr auto;
  }

  body.is-public-shop.is-product-list .public-product-nav,
  body.is-public-shop.is-public-legal .public-product-nav {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  body.is-public-shop.is-product-list .public-product-grid {
    width: min(720px, calc(100% - 32px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.is-public-shop.is-product-list .public-product-hero {
    width: min(720px, calc(100% - 32px));
    padding: 44px 0 70px;
  }

  body.is-public-shop.is-product-list .route-product-card,
  body.is-public-shop.is-product-list .route-product-card.featured {
    min-height: 500px;
    border-radius: 10px;
  }

  body.is-public-shop.is-product-list .public-product-compare {
    padding-inline: 20px;
  }

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

@media (max-width: 620px) {
  body.is-public-shop.is-product-list .public-product-list-header {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
  }

  body.is-public-shop .commerce-header {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .public-product-header-actions {
    justify-self: stretch;
  }

  body.is-public-shop.is-product-list .public-demo-button,
  body.is-public-shop.is-product-list .public-login-button {
    flex: 1;
  }

  body.is-public-shop.is-product-list .public-product-nav {
    overflow-x: auto;
    justify-content: flex-start;
  }

  body.is-public-shop .commerce-header .public-product-nav {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .lead-detail-grid {
    grid-template-columns: 1fr;
  }

  .lead-detail-head {
    flex-direction: column;
  }

  body.is-public-shop.is-product-list .public-product-grid {
    grid-template-columns: 1fr;
  }

  body.is-public-shop.is-product-list .public-product-hero h1 {
    font-size: 42px;
  }

  .public-product-badges,
  .public-stat-row,
  .public-capability-grid {
    grid-template-columns: 1fr;
  }

  .public-product-badges {
    display: grid;
    justify-content: center;
  }

  .public-compare-table {
    overflow-x: auto;
  }

  .public-compare-row {
    min-width: 620px;
  }

  .public-product-footer {
    padding: 22px;
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .public-payment-logos,
  .public-product-footer nav {
    justify-self: start;
  }

  body.is-public-shop.is-public-legal .public-product-list-header {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
  }
}

body.is-public-shop .public-product-list-header,
body.is-public-shop .contact-sales-header,
body.is-public-shop .commerce-header,
body.is-public-shop.is-product-list .public-product-list-header,
body.is-public-shop.is-public-legal .public-product-list-header {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  padding-left: clamp(18px, 4vw, 64px);
  padding-right: clamp(18px, 4vw, 64px);
}

body.is-public-shop .commerce-footer,
body.is-public-shop .contact-sales-footer {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  padding-left: clamp(18px, 4vw, 64px);
  padding-right: clamp(18px, 4vw, 64px);
}
body.is-external-company-user #createNoteButton,
body.is-external-company-user #quickCreateNote,
body.is-external-company-user #assignOwnerButton,
body.is-external-company-user .notes-panel .note-form,
body.is-external-company-user #screen-risk .inline-select-label,
body.is-external-company-user #riskCompanySelect,
body.is-external-company-user .topbar .search-wrap {
  display: none !important;
}

body.is-external-company-user #screen-risk .risk-screen-heading {
  display: block;
  margin-bottom: 14px;
}

body.is-external-company-user #screen-risk .risk-screen-heading h1 {
  font-size: 28px;
}

body.is-external-company-user #screen-risk .risk-detail-shell {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

body.is-external-company-user #screen-risk .company-detail-head {
  min-height: auto;
  padding: 10px 0 18px;
  margin-bottom: 0;
}

body.is-external-company-user #screen-risk .company-detail-main {
  gap: 16px;
}

body.is-external-company-user #screen-risk .company-detail-side {
  padding-top: 0;
}

body.is-external-company-user .notes-panel {
  display: none !important;
}

.integration-method-wizard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 18px;
}

.integration-method-card {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.035);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.integration-method-card:hover,
.integration-method-card.is-active {
  border-color: rgba(255,59,48,.72);
  background: rgba(255,59,48,.08);
  transform: translateY(-1px);
}

.integration-method-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e13d35;
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}

.integration-method-card strong,
.integration-method-card small {
  display: block;
}

.integration-method-card small {
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.45;
}

.integration-db-panel {
  margin-bottom: 18px;
}

.integration-log-page-panel {
  overflow: hidden;
}

.integration-log-table {
  overflow-x: auto;
}

.integration-log-table table {
  width: 100%;
  border-collapse: collapse;
}

.integration-log-table th,
.integration-log-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
  vertical-align: middle;
}

.integration-log-table td small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 820px) {
  .integration-method-wizard {
    grid-template-columns: 1fr;
  }
}

#screen-integration-new {
  padding-bottom: 96px;
}

.integration-stepper {
  max-width: 980px;
  margin: 8px auto 42px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.integration-stepper-item {
  position: relative;
  color: #777781;
  text-align: center;
}

.integration-stepper-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 2px;
  background: rgba(255,255,255,.12);
}

.integration-stepper-item.is-active:not(:last-child)::after,
.integration-stepper-item.is-done:not(:last-child)::after {
  background: var(--gold);
}

.integration-stepper-item span,
.integration-side-steps span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.14);
  background: #17171d;
  color: #888893;
  font-weight: 800;
}

.integration-stepper-item.is-active span,
.integration-stepper-item.is-done span,
.integration-side-steps .is-active span {
  background: var(--gold);
  border-color: var(--gold);
  color: #101010;
  box-shadow: 0 0 24px rgba(212,175,55,.22);
}

.integration-stepper-item strong,
.integration-stepper-item small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
}

.integration-stepper-item.is-active strong {
  color: var(--gold);
}

.integration-source-layout {
  max-width: 1280px;
  margin: 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
}

.integration-source-layout main > h2,
.integration-method-screen > h2,
.integration-config-layout main > h2,
.integration-api-shell > h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 3vw, 42px);
  color: #fff;
}

.integration-source-layout main > .muted,
.integration-method-screen > .muted,
.integration-api-shell > .muted {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.55;
}

.integration-side-steps {
  display: flex;
  flex-direction: column;
  gap: 42px;
  padding-top: 12px;
}

.integration-side-steps div {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  align-items: center;
  color: #74747e;
  position: relative;
}

.integration-side-steps div:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 48px;
  width: 1px;
  height: 42px;
  background: rgba(255,255,255,.14);
}

.integration-side-steps strong,
.integration-side-steps small {
  display: block;
  grid-column: 2;
  min-width: 0;
  white-space: nowrap;
}

.integration-side-steps .is-active strong {
  color: var(--gold);
}

.integration-side-steps strong {
  align-self: end;
}

.integration-side-steps small {
  align-self: start;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.integration-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(460px, 100%);
  margin: 28px 0 32px;
  border: 1px solid rgba(255,255,255,.13);
  background: #18181d;
  border-radius: 12px;
  padding: 0 14px;
}

.integration-search input {
  width: 100%;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.integration-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 20px;
}

.integration-source-card,
.integration-method-row,
.integration-config-card,
.integration-config-summary,
.integration-notice {
  background: #16161b;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

.integration-source-card {
  min-height: 200px;
  padding: 26px;
  position: relative;
  cursor: pointer;
}

.integration-source-card.is-selected,
.integration-method-row.is-selected {
  border-color: var(--gold);
  background: rgba(212,175,55,.05);
  box-shadow: 0 0 28px rgba(212,175,55,.1);
}

.integration-source-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: #0b0b0e;
  border: 1px solid rgba(255,255,255,.09);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 20px;
}

.integration-source-card button,
.integration-method-row button {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15);
  background: transparent;
  color: #101010;
}

.integration-source-card.is-selected button,
.integration-method-row.is-selected button {
  background: var(--gold);
  border-color: var(--gold);
}

.integration-source-card h3,
.integration-method-row h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 20px;
}

.integration-source-card p,
.integration-method-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.integration-method-screen,
.integration-api-shell {
  max-width: 920px;
  margin: 0 auto;
}

.integration-method-screen {
  text-align: center;
}

.integration-method-screen > .muted {
  margin: 0 auto 42px;
}

.integration-method-list {
  display: grid;
  gap: 16px;
}

.integration-method-row {
  min-height: 126px;
  text-align: left;
  padding: 28px 76px 28px 28px;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  position: relative;
  cursor: pointer;
}

.integration-config-layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.integration-config-card {
  padding: 24px;
  margin-top: 22px;
}

.integration-config-card h3 {
  margin: 0 0 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.integration-form-grid .wide {
  grid-column: 1 / -1;
}

.integration-form-grid label,
.integration-config-card > label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.integration-form-grid input,
.integration-form-grid select,
.integration-config-card > label input,
.integration-config-card > label select,
.input-group {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: #0b0b0e;
  color: var(--text);
  padding: 0 14px;
}

.input-group {
  display: flex;
  align-items: center;
  padding: 0;
}

.input-group span {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-right: 1px solid rgba(255,255,255,.1);
  color: var(--muted);
}

.input-group input {
  border: 0;
  background: transparent;
  flex: 1;
}

.integration-radio-row,
.integration-auth-tabs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.integration-radio-row span,
.integration-auth-tabs button {
  border: 1px solid rgba(255,255,255,.12);
  background: #0b0b0e;
  color: var(--text);
  border-radius: 10px;
  padding: 12px 18px;
}

.integration-auth-tabs button.is-active {
  color: var(--gold);
  border-color: var(--gold);
}

.integration-table-list {
  display: grid;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
}

.integration-table-list label {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.integration-table-list label:last-child {
  border-bottom: 0;
}

.integration-config-summary {
  padding: 24px;
  position: sticky;
  top: 96px;
}

.integration-config-summary h3 {
  margin: 0 0 18px;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .08em;
}

.integration-config-summary dl {
  margin: 0;
}

.integration-config-summary div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.integration-config-summary dt {
  color: var(--muted);
}

.integration-config-summary dd {
  margin: 0;
  font-weight: 800;
}

.integration-config-summary .accent {
  color: var(--gold);
}

.integration-notice {
  padding: 18px 22px;
  border-color: rgba(212,175,55,.28);
  margin-top: 22px;
}

.integration-notice p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.integration-param-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
}

.integration-param-grid input {
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: #0b0b0e;
  color: var(--text);
  padding: 0 14px;
}

.integration-wizard-footer {
  position: sticky;
  bottom: 0;
  z-index: 8;
  margin: 28px -24px -24px;
  padding: 18px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(11,11,12,.92);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.integration-wizard-footer > div {
  display: flex;
  gap: 12px;
}

@media (max-width: 980px) {
  .integration-source-layout,
  .integration-config-layout {
    grid-template-columns: 1fr;
  }

  .integration-side-steps,
  .integration-config-summary {
    display: none;
  }

  .integration-source-grid {
    grid-template-columns: 1fr;
  }

  .integration-stepper {
    grid-template-columns: 1fr;
  }

  .integration-stepper-item:not(:last-child)::after {
    display: none;
  }

  .integration-form-grid {
    grid-template-columns: 1fr;
  }
}

.trade-registry-page {
  display: grid;
  gap: 22px;
}

.trade-registry-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.trade-registry-kpis .audit-kpi-card {
  min-height: 136px;
  border: 1px solid rgba(212,175,55,.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  box-shadow: 0 18px 42px rgba(0,0,0,.26);
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.trade-registry-kpis .audit-kpi-card span,
.trade-registry-kpis .audit-kpi-card small {
  display: block;
  line-height: 1.35;
}

.trade-registry-kpis .audit-kpi-card span {
  color: var(--muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.trade-registry-kpis .audit-kpi-card strong {
  color: var(--text);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.05;
}

.trade-registry-kpis .audit-kpi-card small {
  color: var(--gold);
  font-size: .88rem;
}

.trade-registry-toolbar,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.trade-registry-main-panel,
.trade-registry-subpage {
  display: grid;
  gap: 18px;
}

.trade-registry-subpage {
  max-width: 720px;
}

.trade-registry-add-page .trade-registry-subpage,
.trade-registry-session-page .trade-registry-subpage {
  margin-top: 18px;
}

.trade-registry-form,
.trade-registry-session {
  display: grid;
  gap: 14px;
}

.session-status-card {
  border: 1px solid rgba(216,183,51,.24);
  border-radius: 8px;
  background: rgba(216,183,51,.06);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.session-status-card > span,
.manual-login-steps > li > span {
  color: var(--gold);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.session-status-card strong {
  color: var(--text);
  font-size: 1rem;
}

.session-status-card small {
  color: var(--muted);
}

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

.manual-login-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  padding: 14px;
}

.manual-login-steps > li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(216,183,51,.14);
}

.manual-login-steps strong {
  display: block;
  color: var(--text);
  margin-bottom: 5px;
}

.manual-login-steps p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.5;
}

.trade-registry-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.trade-registry-form input {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: #101014;
  color: var(--text);
  padding: 0 12px;
}

.trade-registry-session p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.trade-registry-events td:nth-child(7) {
  min-width: 220px;
  max-width: 420px;
}

.trade-registry-page .risk-table {
  table-layout: fixed;
  width: 100%;
  min-width: 860px;
}

.trade-registry-page .risk-table th,
.trade-registry-page .risk-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
}

.trade-registry-page .wrap-cell {
  max-width: 380px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.trade-registry-page .action-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 170px;
}

.trade-registry-page .action-cell .ghost-button,
.trade-registry-page td .ghost-button {
  min-height: 32px;
  padding: 7px 10px;
  white-space: normal;
  line-height: 1.2;
}

.trade-registry-risk {
  color: var(--gold);
  font-weight: 800;
}

.trade-registry-risk.negative {
  color: #6edb8f;
}

.trade-registry-page .status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem;
}

.trade-registry-page .status-pill.ok {
  border-color: rgba(110,219,143,.35);
  background: rgba(110,219,143,.1);
  color: #6edb8f;
}

.trade-registry-page .status-pill.warn {
  border-color: rgba(229,177,88,.4);
  background: rgba(229,177,88,.12);
  color: var(--gold);
}

@media (max-width: 1100px) {
  .trade-registry-kpis,
  .trade-registry-main-panel {
    grid-template-columns: 1fr;
  }
}
