/* Clean staging workspace additions. Kept separate from the legacy prototype styles. */
.primary-nav { display: none; }
.workspace-nav { display: grid; gap: 4px; margin: 24px 0 18px; }
.workspace-nav .nav-item { text-align: left; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.screen[data-screen-panel="tracking"],
.screen[data-screen-panel="analytics"],
.screen[data-screen-panel="billing"],
.screen[data-screen-panel="extension"],
.screen[data-screen-panel="telegram"],
.screen[data-screen-panel="mobile"] { max-width: 1200px; }
.page-intro { max-width: 760px; margin: 0 0 28px; }
.page-intro .eyebrow { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.page-intro h2 { margin: 8px 0 10px; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.page-intro p { max-width: 690px; color: var(--muted); font-size: 16px; line-height: 1.6; }

.watch-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.watch-summary { color: var(--muted); font-size: 14px; }
.watch-list { display: grid; gap: 10px; }
.watch-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 18px; border: 1px solid #263b61; border-radius: 12px; background: rgba(10, 22, 46, .84); }
.watch-row.changed { border-color: rgba(255, 117, 96, .72); }
.watch-row strong { display: block; color: #f3f6ff; overflow-wrap: anywhere; }
.watch-row small { display: block; margin-top: 6px; color: #aab8d3; }
.watch-row .status { color: #90e9b2; font-size: 12px; font-weight: 800; white-space: nowrap; }
.watch-row.changed .status { color: #ffae85; }
.watch-actions { display: flex; gap: 8px; }
.watch-actions button, .watch-toolbar button { border: 1px solid #39517c; border-radius: 8px; background: #111f3d; color: #e9effd; padding: 9px 12px; font-weight: 800; cursor: pointer; }
.watch-actions button:hover, .watch-toolbar button:hover { border-color: var(--gold); color: #fff; }

.analytics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.analytics-card { min-height: 145px; padding: 20px; border: 1px solid #263b61; border-radius: 12px; background: linear-gradient(145deg, rgba(16, 33, 67, .96), rgba(8, 17, 37, .96)); }
.analytics-card small { display: block; color: #9fafd0; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.analytics-card strong { display: block; margin-top: 18px; color: #fff; font-size: 36px; line-height: 1; }
.analytics-card p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.analytics-note, .api-explainer, .billing-panel, .product-showcase, .telegram-panel { margin-top: 20px; padding: 23px; border: 1px solid #2a416a; border-radius: 14px; background: rgba(9, 19, 40, .9); }
.analytics-note h3, .api-explainer h3, .billing-panel h3, .product-showcase h3, .telegram-panel h3 { margin: 0 0 9px; font-size: 21px; }
.analytics-note p, .api-explainer p, .billing-panel p, .product-showcase p, .telegram-panel p { margin: 0; color: var(--muted); line-height: 1.6; }

.billing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.billing-panel .primary-action, .product-showcase .primary-action, .telegram-panel .primary-action { display: inline-flex; margin-top: 18px; text-decoration: none; }
.product-showcase { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 24px; align-items: center; border-color: rgba(255, 177, 26, .5); }
.product-showcase-art { position: relative; isolation: isolate; min-height: 220px; display: grid; align-content: center; justify-items: start; gap: 12px; overflow: hidden; padding: 32px; border: 1px solid rgba(255, 181, 37, .42); border-radius: 16px; background: linear-gradient(135deg, #061128 0%, #102864 58%, #07122d 100%); color: var(--gold); }
.product-showcase-art::before { content: ''; position: absolute; inset: 0; z-index: -2; opacity: .48; background: repeating-linear-gradient(90deg, transparent 0 26px, rgba(110, 147, 255, .16) 27px 28px), repeating-linear-gradient(0deg, transparent 0 26px, rgba(255, 181, 37, .08) 27px 28px); }
.product-showcase-art::after { content: ''; position: absolute; z-index: -1; width: 360px; height: 120px; left: -150px; top: 20px; transform: rotate(-22deg); background: linear-gradient(90deg, transparent, rgba(255, 181, 37, .26), transparent); animation: workspaceScan 7s ease-in-out infinite; }
.product-showcase-art span, .product-showcase-art strong { position: relative; z-index: 1; }
.product-showcase-art span { color: #ffb525; font-size: 13px; font-weight: 800; letter-spacing: .18em; }
.product-showcase-art strong { max-width: 250px; color: #f7f9ff; font-size: 34px; line-height: 1.06; }
@keyframes workspaceScan { 0%, 100% { transform: translateX(-30px) rotate(-22deg); opacity: .25; } 50% { transform: translateX(360px) rotate(-22deg); opacity: 1; } }
.social-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.social-links a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border: 1px solid #324b7a; border-radius: 8px; color: #dce8ff; font-size: 13px; font-weight: 800; text-decoration: none; }
.social-links a:hover { border-color: var(--gold); color: #fff; }

/* Account settings: preferences are persisted by the workspace API for signed-in users. */
.settings-v2 { max-width: 1320px; margin: 0 auto; padding: 8px 0 104px; }
.settings-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 6px 0 22px; }
.settings-page-header h2 { margin: 4px 0 7px; color: #f5f7ff; font-size: clamp(34px, 4vw, 54px); letter-spacing: 0; line-height: 1.03; }
.settings-page-header p:not(.eyebrow) { margin: 0; color: #aab8d2; font-size: 16px; }
.settings-page-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; min-width: max-content; }
.settings-header-select select { min-height: 46px; min-width: 84px; appearance: none; border: 1px solid #314767; border-radius: 10px; background: #0d1a32; color: #f1f5ff; padding: 0 32px 0 15px; font-weight: 800; text-align: center; }
.settings-header-select { position: relative; }
.settings-header-select::after { content: '\25BE'; position: absolute; top: 11px; right: 12px; color: #c9d7f3; pointer-events: none; font-size: 18px; }
.engine-status { display: inline-flex; align-items: center; min-height: 46px; gap: 9px; padding: 0 14px; border: 1px solid #263c60; border-radius: 10px; background: rgba(8, 21, 46, .76); color: #dce7fa; font-size: 13px; font-weight: 800; }
.engine-status i { width: 9px; height: 9px; border-radius: 999px; background: #43d879; box-shadow: 0 0 15px rgba(67,216,121,.9); }
.settings-workspace { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-section-nav { position: sticky; top: 20px; display: grid; gap: 4px; padding: 10px; border: 1px solid #263b5e; border-radius: 12px; background: linear-gradient(145deg, rgba(13,30,59,.95), rgba(8,17,38,.95)); }
.settings-section-nav button { display: flex; align-items: center; gap: 13px; min-height: 48px; border: 0; border-radius: 8px; background: transparent; color: #d4deef; padding: 0 14px; font: inherit; font-weight: 750; text-align: left; cursor: pointer; }
.settings-section-nav button > span:first-child { width: 20px; color: #d2deff; font-size: 18px; text-align: center; }
.settings-section-nav button:hover, .settings-section-nav button.active { color: #ffca3d; background: linear-gradient(90deg, rgba(255,184,31,.17), rgba(255,184,31,.05)); }
.settings-section-nav button.active { box-shadow: inset 2px 0 0 var(--gold); }
.settings-main { display: grid; gap: 12px; }
.settings-panel { scroll-margin-top: 18px; border: 1px solid #2b4164; border-radius: 11px; background: linear-gradient(135deg, rgba(13,30,59,.96), rgba(8,19,42,.92)); padding: 22px 24px; }
.settings-panel h3 { margin: 0 0 18px; color: #f2f5ff; font-size: 21px; letter-spacing: 0; }
.settings-fields { display: grid; gap: 16px; }
.settings-fields-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.settings-fields label, .settings-select-block, .settings-retention { display: grid; gap: 8px; color: #e9effb; font-size: 14px; font-weight: 700; }
.settings-fields select, .settings-select-block select, .settings-retention select { min-height: 47px; width: 100%; border: 1px solid #3b506e; border-radius: 8px; background: #0d1a31; color: #f4f7ff; padding: 0 13px; font: inherit; }
.settings-hint, .settings-select-block small { margin: 10px 0 0; color: #a9b7ce; font-size: 13px; line-height: 1.45; }
.appearance-controls { display: grid; grid-template-columns: 1fr 1fr minmax(180px, .72fr); gap: 26px; align-items: end; }
.settings-control-label { display: block; margin-bottom: 9px; color: #e8eefb; font-size: 14px; font-weight: 700; }
.segmented { display: inline-flex; border: 1px solid #3a4e6b; border-radius: 8px; overflow: hidden; background: #0d1a31; }
.segmented button { min-width: 102px; height: 42px; border: 0; border-right: 1px solid #3a4e6b; background: transparent; color: #d7e0f0; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.segmented button:last-child { border-right: 0; }
.segmented button:hover, .segmented button.active { color: #fff5d1; background: linear-gradient(135deg, rgba(255,188,27,.34), rgba(255,188,27,.12)); box-shadow: inset 0 0 0 1px #f1c41e; }
.toggle-setting { display: inline-flex; align-items: center; justify-content: space-between; gap: 17px; min-height: 38px; color: #e9effb; font-size: 14px; font-weight: 650; }
.toggle-setting input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-setting i { position: relative; flex: 0 0 43px; width: 43px; height: 26px; border: 1px solid #425572; border-radius: 999px; background: #15233d; transition: background .18s ease, border-color .18s ease; }
.toggle-setting i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #f6f8ff; box-shadow: 0 1px 4px rgba(0,0,0,.45); transition: transform .18s ease; }
.toggle-setting input:checked + i { border-color: #3ad66c; background: #32c864; }
.toggle-setting input:checked + i::after { transform: translateX(17px); }
.settings-scan-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: start; }
.switch-list { display: grid; gap: 10px; }
.settings-select-block { align-content: start; }
.settings-data-panel { display: grid; grid-template-columns: 1fr minmax(340px, .9fr); gap: 28px; }
.settings-data-controls { display: grid; gap: 12px; align-content: start; }
.settings-data-controls h3 { margin-bottom: 6px; }
.settings-retention { grid-template-columns: minmax(160px, 1fr) 160px; align-items: center; margin-top: 5px; }
.settings-sync-state { align-self: stretch; display: grid; grid-template-columns: 50px 1fr; column-gap: 14px; align-content: center; padding: 22px; border: 1px solid #3a506f; border-radius: 10px; background: rgba(6,17,37,.54); }
.sync-check { display: grid; place-items: center; width: 45px; height: 45px; border: 2px solid #45dc79; border-radius: 50%; color: #45dc79; font-size: 25px; font-weight: 900; }
.settings-sync-state strong { display: block; color: #f2f6ff; font-size: 17px; }
.settings-sync-state p { margin: 5px 0 0; color: #a8b7cf; font-size: 13px; }
.sync-platforms { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #324965; color: #dbe5f6; font-weight: 750; }
.sync-platforms i { width: 1px; height: 22px; background: #425776; }
.settings-privacy-panel p { max-width: 860px; margin: 0; color: #b1bfd7; line-height: 1.6; }
.settings-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 18px 0 0; border-top: 1px solid #2b405f; }
.settings-footer p { margin: 0; color: #b7c3d7; font-size: 14px; }
.settings-footer > div { display: flex; gap: 12px; }
.settings-footer .secondary-action, .settings-footer .primary-action { min-height: 48px; padding: 0 22px; }
.settings-footer .primary-action.is-dirty { box-shadow: 0 0 0 3px rgba(255,187,22,.18), 0 10px 26px rgba(255,174,24,.22); }
html[data-theme='light'] .settings-panel, html[data-theme='light'] .settings-section-nav { background: linear-gradient(145deg, #edf3ff, #dce8fa); border-color: #aebed6; }
html[data-theme='light'] .settings-page-header h2, html[data-theme='light'] .settings-panel h3, html[data-theme='light'] .settings-fields label, html[data-theme='light'] .toggle-setting, html[data-theme='light'] .settings-control-label { color: #102443; }
html[data-theme='light'] .settings-fields select, html[data-theme='light'] .settings-select-block select, html[data-theme='light'] .settings-retention select, html[data-theme='light'] .segmented { background: #fff; color: #182b4c; border-color: #9eafc6; }
html[data-theme='light'] .segmented button { color: #182b4c; border-color: #b6c4d7; }
html[data-density='comfortable'] .settings-main { gap: 18px; }
html[data-density='comfortable'] .settings-panel { padding-top: 28px; padding-bottom: 28px; }
html[data-motion='reduced'] *, html[data-motion='reduced'] *::before, html[data-motion='reduced'] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }

.intelligence-grid > *, .feed-row, .feed-row > div { min-width: 0; }
.feed-row { overflow: hidden; }
.feed-row strong, .feed-row p { overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.feed-row > div:last-child { max-width: 88px; }

@media (max-width: 1040px) {
  .analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-workspace { grid-template-columns: 1fr; }
  .settings-section-nav { position: static; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .settings-section-nav button { justify-content: center; padding: 0 8px; }
  .settings-section-nav button > span:first-child { display: none; }
}
@media (max-width: 760px) {
  .workspace-nav { display: flex; order: 0; margin: 0; gap: 1px; overflow-x: auto; }
  .workspace-nav .nav-item { flex: 0 0 auto; width: auto; padding: 8px 9px; font-size: 11px; white-space: nowrap; }
  .workspace-nav .nav-item span { display: none; }
  .watch-toolbar { align-items: flex-start; flex-direction: column; }
  .watch-row { grid-template-columns: 1fr; gap: 10px; }
  .watch-actions { width: 100%; }
  .watch-actions button { flex: 1; }
  .analytics-grid, .billing-grid, .product-showcase { grid-template-columns: 1fr; }
  .analytics-card { min-height: 128px; }
  .settings-v2 { padding-bottom: 74px; }
  .settings-page-header, .settings-footer { align-items: stretch; flex-direction: column; }
  .settings-page-tools { justify-content: flex-start; min-width: 0; }
  .engine-status { flex: 1; }
  .settings-section-nav { grid-template-columns: 1fr 1fr; }
  .settings-section-nav button { justify-content: flex-start; }
  .settings-section-nav button > span:first-child { display: inline-block; }
  .settings-panel { padding: 18px; }
  .settings-fields-three, .appearance-controls, .settings-scan-grid, .settings-data-panel { grid-template-columns: 1fr; gap: 16px; }
  .appearance-controls { align-items: stretch; }
  .segmented { width: 100%; }
  .segmented button { min-width: 0; flex: 1; }
  .settings-data-panel { display: grid; }
  .settings-retention { grid-template-columns: 1fr; }
  .settings-footer > div { display: grid; grid-template-columns: 1fr; }
}

/* Account-scoped billing workspace. */
.billing-app { max-width: 1420px; margin: 0 auto; padding: 18px 22px 42px; }
.billing-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 0 0 14px; }
.billing-eyebrow { margin: 0 0 8px; color: #fbb52b; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.billing-page-header h2 { margin: 0; color: #f5f7ff; font-size: clamp(30px, 3vw, 48px); line-height: 1.05; }
.billing-page-header p { max-width: 700px; margin: 11px 0 0; color: #a9b8d7; font-size: 16px; line-height: 1.55; }
.billing-account { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border: 1px solid #29426e; border-radius: 10px; color: #dce6ff; background: rgba(8, 17, 39, .82); font-size: 13px; white-space: nowrap; }
.billing-tabs { display: flex; gap: 24px; border-bottom: 1px solid #203452; margin-bottom: 20px; }
.billing-tabs button { appearance: none; min-height: 42px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #a8b7d3; font: inherit; font-weight: 700; cursor: pointer; }
.billing-tabs button.active, .billing-tabs button:hover { color: #ffd144; border-bottom-color: #ffd144; }
.billing-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .9fr); gap: 16px; align-items: start; }
.billing-primary-stack, .billing-side-stack { display: grid; gap: 16px; }
.billing-surface { padding: 20px; border: 1px solid #294267; border-radius: 12px; background: linear-gradient(145deg, rgba(13, 29, 57, .96), rgba(6, 16, 36, .98)); box-shadow: 0 16px 35px rgba(0, 0, 0, .16); }
.billing-surface h3 { margin: 0 0 16px; color: #f6f8ff; font-size: 19px; }
.billing-plan-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; }
.billing-plan-card { position: relative; min-height: 332px; padding: 22px; border: 1px solid #344a6d; border-radius: 10px; background: rgba(9, 20, 44, .72); }
.billing-plan-card.pro { border-color: #e7ae1c; background: linear-gradient(145deg, rgba(27, 41, 66, .95), rgba(13, 23, 47, .98)); box-shadow: inset 0 0 0 1px rgba(255, 204, 54, .12); }
.billing-plan-card h4 { display: inline-block; margin: 0 0 7px 11px; color: #f8f9ff; font-size: 28px; vertical-align: middle; }
.billing-plan-icon { display: inline-flex; align-items: center; justify-content: center; width: 49px; height: 49px; color: #aab9d3; font-size: 45px; line-height: 1; vertical-align: middle; }
.billing-plan-card.pro .billing-plan-icon { color: #ffd12a; }
.billing-price { margin: 8px 0 18px; color: #eff4ff; font-size: 22px; font-weight: 800; }
.billing-price-note { color: #51dc7a; }
.billing-plan-card ul { display: grid; gap: 12px; padding: 16px 0; margin: 0; border-top: 1px solid #2d4160; list-style: none; color: #d1d9ea; font-size: 14px; line-height: 1.4; }
.billing-plan-card li::before { content: '✓'; margin-right: 10px; color: #5de184; font-weight: 900; }
.billing-plan-current { position: absolute; right: 22px; bottom: 22px; left: 22px; display: inline-flex; align-items: center; justify-content: center; min-height: 43px; border: 1px solid #435a78; border-radius: 7px; color: #d9e4f9; font-weight: 750; }
.billing-plan-current.pro-current { border-color: #208b57; color: #63e88d; background: rgba(24, 108, 68, .17); }
.billing-plan-card .primary-action { position: absolute; right: 22px; bottom: 22px; left: 22px; display: flex; justify-content: center; text-decoration: none; }
.billing-method-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid #304867; border-radius: 9px; background: rgba(7, 17, 37, .5); }
.billing-method-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 9px; background: #163c8b; color: #fff; font-size: 23px; }
.billing-method-card strong { color: #f0f4ff; font-size: 15px; }
.billing-method-card p, .billing-verified-note { margin: 4px 0 0; color: #9fb0cf; font-size: 13px; line-height: 1.45; }
.billing-verified-note { padding-top: 13px; }
.billing-api-prompt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border: 1px solid #31528c; border-radius: 10px; background: linear-gradient(90deg, rgba(17, 49, 105, .54), rgba(8, 21, 46, .85)); }
.billing-api-prompt strong, .billing-api-prompt span { display: block; }
.billing-api-prompt strong { color: #f5f7ff; margin-bottom: 4px; }
.billing-api-prompt span { color: #a9b9d4; font-size: 13px; }
.billing-everywhere p { color: #b4c0d6; line-height: 1.55; }
.billing-platforms { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 7px; margin-top: 22px; text-align: center; }
.billing-platforms div { display: grid; justify-items: center; gap: 8px; color: #d9e2f2; font-size: 12px; }
.billing-platforms i { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid #6e84a6; border-radius: 7px; color: #eef4ff; font-size: 26px; font-style: normal; }
.billing-platforms b { color: #d9e3f6; font-size: 22px; }
.billing-current { display: grid; gap: 10px; }
.billing-account-card { min-height: 242px; }
.billing-account-name { margin-bottom: 11px; color: #aebbd4; font-size: 13px; overflow-wrap: anywhere; }
.billing-current-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #f5f7ff; }
.billing-current-row strong { font-size: 21px; }
.billing-detail-list { display: grid; gap: 9px; margin: 4px 0 0; }
.billing-detail-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.billing-detail-list dt { color: #96a7c4; font-size: 13px; }
.billing-detail-list dd { margin: 0; color: #e5ecfa; font-size: 13px; text-align: right; }
.billing-empty-copy { color: #aebbd1; line-height: 1.55; }
.billing-account-card .primary-action { margin-top: 16px; }
.billing-manage { display: flex; justify-content: center; margin-top: 6px; text-decoration: none; }
.billing-current-name { display: flex; align-items: center; gap: 10px; color: #f6f8ff; font-size: 20px; font-weight: 800; }
.billing-current-name::before { content: '✦'; color: #ffcb25; font-size: 30px; }
.billing-status { display: inline-flex; width: fit-content; padding: 4px 8px; border: 1px solid #267c51; border-radius: 5px; color: #65df91; background: rgba(26, 119, 71, .13); font-size: 12px; font-weight: 800; }
.billing-current p { margin: 0; color: #aab8d1; line-height: 1.45; }
.billing-history { margin-top: 16px; padding-bottom: 10px; }
.billing-history-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.billing-history-head span { color: #9dafca; font-size: 13px; overflow-wrap: anywhere; }
.billing-history-table { overflow-x: auto; border: 1px solid #294260; border-radius: 8px; }
.billing-history-labels, .billing-history-row { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr 1.4fr 1fr; min-width: 680px; }
.billing-history-labels { color: #9eadc4; background: rgba(17, 36, 67, .7); font-size: 12px; font-weight: 750; }
.billing-history-labels span, .billing-history-row span { padding: 13px 12px; border-bottom: 1px solid rgba(55, 78, 111, .55); }
.billing-history-row { color: #e3eaff; font-size: 13px; }
.billing-history-status { color: #66e291; }
.billing-history-row:last-child span { border-bottom: 0; }
.billing-history-empty { padding: 25px; color: #aab7cf; text-align: center; }
.billing-loading, .billing-error { display: grid; place-items: center; min-height: 260px; padding: 22px; border: 1px dashed #34517d; border-radius: 12px; color: #b8c7df; text-align: center; }
.billing-error { border-color: #7e4c4e; color: #ffb4b5; }

@media (max-width: 1040px) {
  .billing-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .billing-app { padding: 14px 13px 88px; }
  .billing-page-header, .billing-api-prompt { align-items: stretch; flex-direction: column; }
  .billing-account { width: fit-content; }
  .billing-plan-grid { grid-template-columns: 1fr; }
  .billing-plan-card { min-height: 304px; }
  .billing-method-card { grid-template-columns: auto minmax(0, 1fr); }
  .billing-method-card .secondary-action { grid-column: 1 / -1; justify-content: center; }
  .billing-platforms { gap: 4px; }
}


/* === NOYTRIX CHECK V2 === */

html,
body {
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 76% 4%, rgba(18, 47, 103, .38), transparent 34%),
    radial-gradient(circle at 55% 65%, rgba(8, 32, 72, .18), transparent 38%),
    #030916;
}


/* ===== SHELL ===== */

.app-shell {
  grid-template-columns: 246px minmax(0, 1fr);
}

.sidebar {
  width: 246px;
  padding: 29px 18px 20px;
  background: #040a17;
  border-right: 1px solid #1b2943;
}

.brand {
  padding: 0 20px;
  min-height: 42px;
  gap: 11px;
  color: #f4f7ff;
  font-size: 21px;
  letter-spacing: .13em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 0;
}

.brand em {
  display: none;
}

.new-check {
  width: 100%;
  min-height: 57px;
  margin-top: 32px;
  border-radius: 10px;
  font-size: 16px;
  background: linear-gradient(135deg, #ffc33a, #ffad12);
  color: #07101f;
  box-shadow: 0 8px 28px rgba(255, 177, 26, .10);
}

.new-check span {
  font-size: 25px;
  font-weight: 700;
}

.workspace-nav {
  margin: 28px 0 18px;
  gap: 5px;
}

.workspace-nav .nav-item,
.sidebar-bottom .nav-item {
  min-height: 48px;
  padding: 0 11px;
  border-radius: 9px;
  gap: 13px;
  font-size: 15px;
  color: #a7b4ce;
}

.workspace-nav .nav-item:hover,
.sidebar-bottom .nav-item:hover {
  color: #eaf0ff;
  background: rgba(255,255,255,.025);
}

.workspace-nav .nav-item.active {
  color: #f0f5ff;
  background: linear-gradient(90deg, #0d214e, #0a1a3f);
  box-shadow:
    inset 0 0 0 1px #28539d,
    0 10px 30px rgba(0, 41, 107, .12);
}

.nav-icon {
  width: 22px !important;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  color: #b6c5e4 !important;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-nav .nav-item.active .nav-icon {
  color: #ffb51f !important;
}

.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #17243b;
  padding-top: 16px;
}

.settings-nav-item {
  width: 100% !important;
}

.v2-hidden-required {
  display: none !important;
}


/* ===== MAIN ===== */

.workspace {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 29px 37px 55px 42px;
}

.workspace-header {
  min-height: 45px;
  margin-bottom: 37px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 23px;
}

.language-switcher {
  display: flex;
  padding: 3px;
  border-radius: 12px;
  background: rgba(4, 11, 25, .86);
  border: 1px solid #263653;
}

.language-switcher button {
  min-width: 48px;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
}

.language-switcher button.active {
  background: linear-gradient(135deg, #ffc941, #ffad14);
  color: #07101f;
}

.live-pill {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(7, 16, 34, .78);
  border: 1px solid #273651;
  color: #d1d9e8;
  font-size: 13px;
}

.live-pill i {
  width: 8px;
  height: 8px;
  background: #27df82;
  box-shadow: 0 0 13px rgba(39, 223, 130, .9);
}

.profile-link {
  min-width: 106px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  color: #f4f6fb;
  border: 1px solid #8a94a8;
  font-size: 14px;
  background: rgba(4, 9, 19, .42);
}


/* ===== CHECK PAGE ===== */

.check-screen-v2 {
  max-width: none !important;
}

.check-v2-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 385px;
  gap: 41px;
  max-width: 1324px;
  align-items: start;
}

.check-v2-main {
  min-width: 0;
}

.check-v2-hero {
  max-width: 895px;
  margin: 7px 0 23px;
}

.check-v2-hero .eyebrow {
  margin: 0 0 11px;
  color: #ffb31c;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .055em;
}

.check-v2-hero h2 {
  max-width: 820px;
  margin: 0;
  color: #f5f7fb;
  font-size: clamp(42px, 3.25vw, 58px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 800;
}

.check-v2-hero > p:last-child {
  max-width: 830px;
  margin: 21px 0 0;
  color: #aab5ca;
  font-size: 17px;
  line-height: 1.65;
}


/* ===== SCAN BOX ===== */

.scan-box-v2 {
  max-width: 895px;
  margin-top: 20px;
  padding: 23px 18px 16px;
  border: 1px solid #2b5da4;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(8, 26, 57, .90), rgba(5, 15, 34, .94));
  box-shadow: 0 16px 50px rgba(0, 28, 80, .10);
}

#screen-check .scan-composer {
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.scan-input-row {
  min-height: 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 165px 151px;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 0;
  border: 1px solid #20324f;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(9, 19, 39, .95), rgba(7, 17, 35, .98));
}

#screen-check .scan-composer input {
  width: 100%;
  min-width: 0;
  height: 78px;
  padding: 0 20px;
  border: 0;
  outline: 0;
  color: #eef3ff;
  background: transparent;
  font-size: 16px;
}

#screen-check .scan-composer input::placeholder {
  color: #8c98ad;
  opacity: 1;
}

.auto-detect-pill {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid #34425a;
  border-radius: 8px;
  background: linear-gradient(145deg, #151c2d, #101728);
  color: #aeb7c8;
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
}

.auto-detect-icon {
  color: #e4e9f4;
  font-size: 22px;
  line-height: 1;
}

#screen-check .submit-scan {
  min-height: 54px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, #ffc43a, #ffad12);
  color: #0b1320;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(255, 177, 26, .11);
}

#screen-check .submit-scan:hover {
  background: linear-gradient(135deg, #ffd05c, #ffb51d);
  transform: translateY(-1px);
}

#screen-check .examples {
  min-height: 34px;
  margin: 13px 0 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.examples-label {
  color: #d5dbea;
  font-size: 13px;
  font-weight: 600;
  margin-right: 4px;
}

#screen-check .examples button {
  min-height: 34px;
  padding: 0 15px;
  border-radius: 7px;
  border: 1px solid #2d405f;
  background: #0c172d;
  color: #c7d1e5;
  font-size: 12px;
  font-weight: 600;
}

#screen-check .examples button:hover {
  border-color: #496d9f;
  color: #fff;
}


/* ===== TRUST STRIP ===== */

.trust-strip {
  max-width: 895px;
  min-height: 88px;
  margin-top: 27px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #243957;
  border-radius: 13px;
  background: rgba(7, 18, 39, .76);
}

.trust-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 18px 15px;
  border-right: 1px solid #263853;
}

.trust-item:last-child {
  border-right: 0;
}

.trust-icon {
  color: #e9eefb;
  font-size: 31px;
  line-height: 1;
}

.trust-item strong {
  display: block;
  color: #d6ddeb;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}


/* ===== WHAT YOU GET ===== */

.what-you-get-v2 {
  max-width: 895px;
  margin-top: 31px;
}

.what-you-get-v2 > h3 {
  margin: 0 0 17px;
  color: #f2f5fb;
  font-size: 20px;
  letter-spacing: -.01em;
}

.benefits-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.benefit-card-v2 {
  min-height: 118px;
  display: grid;
  grid-template-columns: 61px minmax(0, 1fr);
  gap: 17px;
  align-items: center;
  padding: 19px 17px;
  border: 1px solid #263a59;
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(7, 20, 43, .87), rgba(6, 16, 34, .87));
}

.benefit-icon-v2 {
  width: 57px;
  height: 57px;
  display: grid;
  place-items: center;
  border: 1px solid #2f4668;
  border-radius: 50%;
  color: #ffb41b;
  font-size: 31px;
  line-height: 1;
}

.benefit-card-v2 strong {
  display: block;
  margin-bottom: 7px;
  color: #f1f4fa;
  font-size: 16px;
}

.benefit-card-v2 p {
  margin: 0;
  color: #aeb8cd;
  font-size: 13px;
  line-height: 1.45;
}

.check-disclaimer-v2 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 27px 0 0;
  color: #77849d;
  font-size: 12px;
  line-height: 1.5;
}


/* ===== STATIC EXAMPLE RESULT ===== */

.example-result-v2 {
  min-height: 558px;
  padding: 29px 32px 24px;
  border: 1px solid #293a57;
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(10, 22, 46, .92), rgba(6, 15, 32, .96));
  box-shadow: 0 20px 70px rgba(0, 15, 45, .18);
}

.example-result-label {
  margin: 0 0 22px;
  color: #aeb8ce;
  font-size: 18px;
  font-weight: 700;
}

.example-domain-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.example-domain-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid #a42135;
  border-radius: 12px;
  color: #dce4f3;
  font-size: 35px;
  background: rgba(19, 25, 39, .65);
}

.example-domain-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f1f3f7;
  font-size: 17px;
  white-space: nowrap;
}

.high-risk-pill {
  width: max-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding: 0 11px;
  border: 1px solid #b52636;
  border-radius: 99px;
  background: rgba(116, 18, 35, .24);
  color: #ff5662;
  font-size: 12px;
  font-weight: 700;
}

.example-score {
  margin-top: 27px;
}

.example-score > span {
  color: #acb7cc;
  font-size: 17px;
}

.example-score > div {
  margin-top: 5px;
}

.example-score strong {
  color: #ff4953;
  font-size: 42px;
  line-height: 1;
}

.example-score small {
  margin-left: 5px;
  color: #7f8ba3;
  font-size: 21px;
}

.example-divider {
  height: 1px;
  margin: 22px 0 20px;
  background: #263753;
}

.detected-title {
  margin: 0 0 15px;
  color: #b1bbcd;
  font-size: 16px;
}

.detected-list {
  display: grid;
  gap: 14px;
}

.detected-list > div {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 13px;
  align-items: center;
  color: #c6cede;
  font-size: 13px;
}

.detected-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #7b2331;
  border-radius: 50%;
  background: rgba(105, 18, 31, .22);
  color: #ff515d;
  font-size: 18px;
}

.example-view-button {
  width: 100%;
  min-height: 47px;
  margin-top: 24px;
  border: 1px solid #d89212;
  border-radius: 7px;
  background: transparent;
  color: #ffb619;
  font-size: 14px;
  font-weight: 700;
}

.example-view-button:hover {
  background: rgba(255, 177, 26, .07);
}


/* ===== REAL SCAN RESULT ===== */

#screen-check .analysis-status,
#screen-check .verdict-message,
#screen-check .scan-followup {
  max-width: 895px;
}

#screen-check .analysis-status {
  margin-top: 25px;
}


/* Existing plan JS needs these nodes */
.check-v2-required {
  display: none !important;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 1250px) {

  .check-v2-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
  }

  .scan-input-row {
    grid-template-columns: minmax(0,1fr) 145px 135px;
  }

  .benefits-grid-v2 {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 1050px) {

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

  .example-result-v2 {
    max-width: 895px;
    min-height: 0;
  }

  .trust-strip {
    grid-template-columns: repeat(2,1fr);
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n+2) {
    border-bottom: 1px solid #263853;
  }

}


@media (max-width: 760px) {

  .app-shell {
    display: block;
  }

  .sidebar {
    width: 100%;
  }

  .workspace {
    padding: 20px 15px 40px;
  }

  .workspace-header {
    display: flex;
  }

  .header-left {
    gap: 10px;
  }

  .live-pill {
    display: none;
  }

  .check-v2-hero h2 {
    font-size: 39px;
  }

  .scan-input-row {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  #screen-check .scan-composer input {
    height: 55px;
    padding: 0 10px;
  }

  .auto-detect-pill {
    display: none;
  }

  #screen-check .submit-scan {
    width: 100%;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #263853;
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .benefits-grid-v2 {
    grid-template-columns: 1fr;
  }

  .example-result-v2 {
    padding: 23px 20px;
  }

}


/* === NOYTRIX CHAT MODE V3 === */


/* ============================================================
   CLEAN INITIAL SCREEN
   ============================================================ */

#screen-check .example-result-v2,
#screen-check .trust-strip,
#screen-check .what-you-get-v2,
#screen-check .auto-detect-pill,
#screen-check .examples {
  display: none !important;
}

#screen-check .check-v2-layout {
  display: block;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

#screen-check .check-v2-main {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

#screen-check .check-v2-hero {
  max-width: 760px;
  margin: clamp(90px, 13vh, 150px) auto 34px;
  text-align: center;
}

#screen-check .check-v2-hero .eyebrow {
  display: none;
}

#screen-check .check-v2-hero h2 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

#screen-check .check-v2-hero > p:last-child {
  max-width: 650px;
  margin: 18px auto 0;
  font-size: 15px;
  line-height: 1.6;
  color: #8e9bb2;
}

#screen-check .scan-box-v2 {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#screen-check .scan-composer {
  width: 100%;
}

#screen-check .scan-input-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 48px;
  gap: 8px;
  align-items: center;
  padding: 7px 8px 7px 9px;
  border: 1px solid #30415f;
  border-radius: 19px;
  background: #0a1428;
  box-shadow:
    0 14px 45px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.02);
}

#screen-check .scan-input-row:focus-within {
  border-color: #49658d;
  box-shadow:
    0 14px 45px rgba(0,0,0,.20),
    0 0 0 3px rgba(54,93,153,.08);
}

#screen-check .scan-composer input {
  height: 48px;
  padding: 0 15px;
  font-size: 15px;
}

#screen-check .submit-scan {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 0;
}

#screen-check .submit-scan span {
  display: none !important;
}

#screen-check .submit-scan::before {
  content: '↑';
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}


/* ============================================================
   ENTER CHAT MODE
   ============================================================ */

#screen-check.conversation-mode .check-v2-hero,
#screen-check.conversation-mode .scan-box-v2,
#screen-check.conversation-mode .trust-strip,
#screen-check.conversation-mode .what-you-get-v2,
#screen-check.conversation-mode .example-result-v2,
#screen-check.conversation-mode .analysis-status,
#screen-check.conversation-mode .verdict-message {
  display: none !important;
}

#screen-check.conversation-mode .check-v2-layout,
#screen-check.conversation-mode .check-v2-main {
  max-width: 900px;
  margin: 0 auto;
}

#screen-check.conversation-mode .scan-followup {
  width: 100%;
  max-width: 820px;
  min-height: calc(100vh - 150px);

  margin: 0 auto;
  padding: 0;

  display: flex;
  flex-direction: column;

  border: 0;
  border-radius: 0;

  background: transparent;
  box-shadow: none;
}

#screen-check.conversation-mode .scan-followup-heading,
#screen-check.conversation-mode .scan-followup-text,
#screen-check.conversation-mode .followup-suggestions,
#screen-check.conversation-mode .followup-limit {
  display: none !important;
}


/* ============================================================
   MESSAGES
   ============================================================ */

#screen-check.conversation-mode .chat-log {
  width: 100%;
  max-height: none;
  overflow: visible;

  display: flex;
  flex-direction: column;
  gap: 28px;

  flex: 1;

  margin: 0;
  padding: 28px 0 80px;
}

#screen-check.conversation-mode .chat-turn {
  border: 0;
  box-shadow: none;
}

#screen-check.conversation-mode .chat-turn.user {
  max-width: min(70%, 620px);
  align-self: flex-end;
  justify-self: auto;

  padding: 12px 17px;

  border: 1px solid #293b58;
  border-radius: 18px;

  background: #111d32;
}

#screen-check.conversation-mode .chat-turn.user small {
  display: none;
}

#screen-check.conversation-mode .chat-turn.user p {
  margin: 0;

  color: #e6ebf5;

  font-size: 15px;
  line-height: 1.55;
}

#screen-check.conversation-mode .chat-turn.assistant {
  width: 100%;
  max-width: 760px;

  align-self: flex-start;
  justify-self: auto;

  padding: 0 7px;

  border: 0;
  background: transparent;
}

#screen-check.conversation-mode .chat-turn.assistant small {
  display: block;

  margin: 0 0 9px;

  color: #ffb51c;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#screen-check.conversation-mode .chat-turn.assistant p {
  margin: 0;

  color: #e2e8f3;

  font-size: 16px;
  line-height: 1.72;

  white-space: pre-wrap;
}


/* ============================================================
   CHAT INPUT
   ============================================================ */

#screen-check.conversation-mode .chat-composer {
  position: sticky;
  bottom: 18px;

  z-index: 5;

  width: 100%;

  display: grid;
  grid-template-columns: minmax(0,1fr) 48px;
  gap: 8px;

  margin-top: auto;
  padding: 7px 8px 7px 9px;

  border: 1px solid #30415f;
  border-radius: 19px;

  background: #0a1428;

  box-shadow:
    0 -25px 55px #030916,
    0 15px 45px rgba(0,0,0,.25);
}

#screen-check.conversation-mode .chat-composer input {
  width: 100%;
  height: 48px;

  padding: 0 13px;

  border: 0;
  outline: 0;

  background: transparent;

  color: #eef2f8;

  font-size: 15px;
}

#screen-check.conversation-mode .chat-composer input::placeholder {
  color: #77859e;
}

#screen-check.conversation-mode .chat-composer .primary-action {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;

  margin: 0;
  padding: 0;

  display: grid;
  place-items: center;

  border-radius: 14px;

  font-size: 22px;
  line-height: 1;
}

#screen-check.conversation-mode:not(.has-result) .chat-composer {
  display: none !important;
}


/* ============================================================
   SCANNING
   ============================================================ */

#screen-check.conversation-mode.is-scanning
.chat-turn.assistant:last-child p {
  color: #9ba9bf;
}

#screen-check.conversation-mode.is-scanning
.chat-turn.assistant:last-child p::after {
  content: '';

  display: inline-block;

  width: 5px;
  height: 5px;

  margin-left: 8px;

  border-radius: 50%;

  background: #ffb51c;

  animation: noytrixChatPulse 1s infinite alternate;
}

@keyframes noytrixChatPulse {
  from {
    opacity: .2;
    transform: scale(.75);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 760px) {

  #screen-check .check-v2-hero {
    margin-top: 65px;
  }

  #screen-check .check-v2-hero h2 {
    font-size: 34px;
  }

  #screen-check .check-v2-hero > p:last-child {
    font-size: 14px;
  }

  #screen-check.conversation-mode .scan-followup {
    min-height: calc(100vh - 125px);
  }

  #screen-check.conversation-mode .chat-log {
    padding-top: 15px;
  }

  #screen-check.conversation-mode .chat-turn.user {
    max-width: 86%;
  }

  #screen-check.conversation-mode .chat-turn.assistant p {
    font-size: 15px;
  }

}


/* === NOYTRIX PREMIUM CHAT V4 === */


/* =========================================================
   INITIAL PAGE — PREMIUM MINIMAL
   ========================================================= */

#screen-check:not(.conversation-mode) .example-result-v2,
#screen-check:not(.conversation-mode) .trust-strip,
#screen-check:not(.conversation-mode) .what-you-get-v2,
#screen-check:not(.conversation-mode) .analysis-status,
#screen-check:not(.conversation-mode) .verdict-message,
#screen-check:not(.conversation-mode) .scan-followup,
#screen-check:not(.conversation-mode) .auto-detect-pill {
  display: none !important;
}

#screen-check:not(.conversation-mode) .check-v2-layout {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

#screen-check:not(.conversation-mode) .check-v2-main {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}


/* HERO */

#screen-check:not(.conversation-mode) .check-v2-hero {
  position: relative;
  max-width: 880px;
  margin:
    clamp(96px, 13vh, 145px)
    auto
    36px;

  text-align: center;

  animation:
    ntxHeroReveal .75s cubic-bezier(.2,.8,.2,1)
    both;
}

#screen-check:not(.conversation-mode) .check-v2-hero::before {
  content: '';

  position: absolute;
  z-index: -1;

  left: 50%;
  top: 42%;

  width: 640px;
  height: 270px;

  transform: translate(-50%, -50%);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(38, 75, 145, .20) 0%,
      rgba(26, 56, 115, .08) 42%,
      transparent 72%
    );

  filter: blur(20px);

  animation:
    ntxHeroGlow 5s ease-in-out infinite alternate;
}

#screen-check:not(.conversation-mode) .check-v2-hero .eyebrow {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  margin: 0 auto 19px;

  padding: 7px 12px;

  border: 1px solid rgba(255, 185, 38, .18);
  border-radius: 999px;

  background: rgba(255, 180, 25, .045);

  color: #dba63f;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .17em;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025);

  animation:
    ntxFadeUp .65s .06s both;
}

#screen-check:not(.conversation-mode) .check-v2-hero h2 {
  position: relative;

  max-width: 880px;

  margin: 0 auto;

  font-size:
    clamp(45px, 4.25vw, 64px);

  line-height: 1.055;

  letter-spacing: -.047em;

  font-weight: 800;

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f5f7fb 40%,
      #d8e0ed 76%,
      #b6c3d6 100%
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;

  filter:
    drop-shadow(
      0 14px 25px rgba(0,0,0,.30)
    );

  animation:
    ntxFadeUp .75s .12s both;
}

#screen-check:not(.conversation-mode)
.check-v2-hero > p:last-child {
  max-width: 675px;

  margin: 22px auto 0;

  color: #8795ad;

  font-size: 15px;
  font-weight: 400;

  line-height: 1.72;

  letter-spacing: -.005em;

  animation:
    ntxFadeUp .7s .20s both;
}


/* =========================================================
   PREMIUM INPUT
   ========================================================= */

#screen-check:not(.conversation-mode) .scan-box-v2 {
  width: 100%;
  max-width: 870px;

  margin: 0 auto;

  padding: 0;

  border: 0;

  background: transparent;

  box-shadow: none;

  animation:
    ntxFadeUp .75s .27s both;
}

#screen-check:not(.conversation-mode) .scan-composer {
  display: block;

  width: 100%;

  margin: 0;
  padding: 0;

  border: 0;

  background: transparent;
}

#screen-check:not(.conversation-mode) .scan-input-row {
  position: relative;

  overflow: hidden;

  min-height: 72px;

  display: grid;

  grid-template-columns:
    minmax(0,1fr)
    54px;

  gap: 8px;

  align-items: center;

  padding:
    8px
    9px
    8px
    11px;

  border:
    1px solid transparent;

  border-radius: 22px;

  background:
    linear-gradient(
      105deg,
      #091327,
      #0a162c 48%,
      #0a1428
    ) padding-box,

    linear-gradient(
      115deg,
      #263b5d 0%,
      #526a8b 44%,
      rgba(255,183,31,.52) 68%,
      #314867 100%
    ) border-box;

  box-shadow:
    0 20px 65px rgba(0,0,0,.28),
    0 3px 18px rgba(13,37,78,.20),
    inset 0 1px 0 rgba(255,255,255,.035);

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

#screen-check:not(.conversation-mode)
.scan-input-row::before {
  content: '';

  position: absolute;

  top: -80px;
  left: -130px;

  width: 110px;
  height: 230px;

  transform: rotate(28deg);

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.045),
      transparent
    );

  animation:
    ntxInputSheen 7s 1.2s ease-in-out infinite;

  pointer-events: none;
}

#screen-check:not(.conversation-mode)
.scan-input-row:focus-within {
  transform: translateY(-1px);

  box-shadow:
    0 24px 75px rgba(0,0,0,.34),
    0 0 0 3px rgba(59,92,143,.07),
    0 0 34px rgba(38,76,144,.10),
    inset 0 1px 0 rgba(255,255,255,.045);
}

#screen-check:not(.conversation-mode)
.scan-composer input {
  width: 100%;

  height: 54px;

  min-width: 0;

  padding: 0 17px;

  border: 0;
  outline: 0;

  background: transparent;

  color: #edf2fa;

  font-size: 15px;
  font-weight: 450;

  letter-spacing: -.005em;
}

#screen-check:not(.conversation-mode)
.scan-composer input::placeholder {
  color: #74839b;

  opacity: 1;
}

#screen-check:not(.conversation-mode)
.submit-scan {
  position: relative;

  width: 54px;
  height: 54px;

  min-height: 54px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid rgba(255,216,120,.30);
  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      #ffd15b 0%,
      #ffb728 43%,
      #f5a611 100%
    );

  color: #10151f;

  box-shadow:
    0 8px 25px rgba(255,178,24,.18),
    inset 0 1px 0 rgba(255,255,255,.45);

  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

#screen-check:not(.conversation-mode)
.submit-scan:hover {
  transform:
    translateY(-1px)
    scale(1.02);

  box-shadow:
    0 11px 31px rgba(255,178,24,.27),
    inset 0 1px 0 rgba(255,255,255,.55);
}

#screen-check:not(.conversation-mode)
.submit-scan:active {
  transform: scale(.97);
}

#screen-check:not(.conversation-mode)
.submit-scan span {
  display: none !important;
}

#screen-check:not(.conversation-mode)
.submit-scan::before {
  content: '↑';

  font-size: 25px;
  font-weight: 800;

  line-height: 1;
}


/* =========================================================
   EXAMPLES
   ========================================================= */

#screen-check:not(.conversation-mode) .examples {
  display: flex !important;

  justify-content: center;
  align-items: center;

  gap: 8px;

  flex-wrap: wrap;

  margin: 15px 0 0;
}

#screen-check:not(.conversation-mode)
.examples-label {
  margin-right: 3px;

  color: #64728a;

  font-size: 11px;
  font-weight: 600;
}

#screen-check:not(.conversation-mode)
.examples button {
  min-height: 31px;

  padding: 0 12px;

  border:
    1px solid rgba(58,79,113,.70);

  border-radius: 999px;

  background:
    rgba(10,20,38,.55);

  color: #8795ab;

  font-size: 11px;
  font-weight: 600;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.018);

  transition:
    border-color .18s ease,
    color .18s ease,
    background .18s ease,
    transform .18s ease;
}

#screen-check:not(.conversation-mode)
.examples button:hover {
  transform: translateY(-1px);

  border-color:
    rgba(255,181,30,.40);

  background:
    rgba(255,181,30,.045);

  color: #d9e1ed;
}


/* =========================================================
   CHAT MODE
   ========================================================= */

#screen-check.conversation-mode
.check-v2-hero,

#screen-check.conversation-mode
.scan-box-v2,

#screen-check.conversation-mode
.trust-strip,

#screen-check.conversation-mode
.what-you-get-v2,

#screen-check.conversation-mode
.example-result-v2,

#screen-check.conversation-mode
.analysis-status,

#screen-check.conversation-mode
.verdict-message {
  display: none !important;
}

#screen-check.conversation-mode
.check-v2-layout,

#screen-check.conversation-mode
.check-v2-main {
  display: block;

  width: 100%;

  max-width: 900px;

  margin: 0 auto;
}

#screen-check.conversation-mode
.scan-followup {
  display: flex !important;

  flex-direction: column;

  width: 100%;

  max-width: 840px;

  min-height:
    calc(100vh - 145px);

  margin: 0 auto;

  padding: 0;

  border: 0;

  border-radius: 0;

  background: transparent;

  box-shadow: none;
}

#screen-check.conversation-mode
.scan-followup-heading,

#screen-check.conversation-mode
.scan-followup-text,

#screen-check.conversation-mode
.followup-suggestions,

#screen-check.conversation-mode
.followup-limit {
  display: none !important;
}


/* CHAT LOG */

#screen-check.conversation-mode
.chat-log {
  width: 100%;

  max-height: none;

  overflow: visible;

  display: flex;

  flex-direction: column;

  gap: 32px;

  flex: 1;

  margin: 0;

  padding:
    34px 0
    115px;
}


/* hide old chat nodes if staging.js creates them */

#screen-check.conversation-mode
.chat-turn {
  display: none !important;
}


/* NEW MESSAGES */

.noytrix-message {
  width: 100%;

  animation:
    ntxMessageIn .35s ease both;
}

.user-message {
  display: flex;

  justify-content: flex-end;
}

.user-bubble {
  max-width:
    min(72%, 620px);

  padding:
    12px 17px;

  border:
    1px solid #2a3a55;

  border-radius:
    18px 18px 5px 18px;

  background:
    linear-gradient(
      145deg,
      #111d31,
      #101a2c
    );

  color: #e8edf6;

  font-size: 14px;

  line-height: 1.55;

  box-shadow:
    0 8px 25px rgba(0,0,0,.10);
}

.assistant-message {
  display: grid;

  grid-template-columns:
    31px minmax(0,1fr);

  gap: 15px;

  align-items: start;
}

.noytrix-chat-avatar {
  width: 31px;
  height: 31px;

  display: grid;
  place-items: center;

  border:
    1px solid rgba(255,184,31,.18);

  border-radius: 9px;

  background:
    rgba(255,184,31,.035);
}

.noytrix-chat-avatar img {
  width: 23px;
  height: 23px;

  object-fit: contain;
}

.assistant-content {
  min-width: 0;

  padding-top: 3px;
}

.assistant-text {
  color: #dce4ef;

  font-size: 15px;

  line-height: 1.72;

  white-space: pre-wrap;
}


/* RESULT */

.result-content {
  max-width: 735px;
}

.result-top {
  display: flex;

  align-items: center;

  gap: 10px;

  flex-wrap: wrap;

  margin-bottom: 14px;
}

.chat-risk {
  min-height: 28px;

  display: inline-flex;

  align-items: center;

  padding: 0 10px;

  border: 1px solid;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 750;
}

.chat-risk.critical,
.chat-risk.high {
  color: #ff727c;

  border-color:
    rgba(255,76,89,.34);

  background:
    rgba(255,76,89,.07);
}

.chat-risk.medium {
  color: #ffc04d;

  border-color:
    rgba(255,183,31,.30);

  background:
    rgba(255,183,31,.05);
}

.chat-risk.safe {
  color: #68dda0;

  border-color:
    rgba(53,216,132,.28);

  background:
    rgba(53,216,132,.05);
}

.chat-score {
  color: #8795aa;

  font-size: 12px;
}

.chat-score strong {
  margin-right: 2px;

  color: #edf2fa;

  font-size: 21px;
}

.chat-score.critical strong,
.chat-score.high strong {
  color: #ff666f;
}

.chat-score.medium strong {
  color: #ffbb32;
}

.chat-score.safe strong {
  color: #55db96;
}

.chat-score small {
  color: #6f7c91;

  font-size: 12px;
}

.result-summary {
  color: #e7ebf3;

  font-size: 16px;

  line-height: 1.68;
}

.chat-risk-list {
  display: grid;

  gap: 9px;

  margin-top: 19px;
}

.chat-risk-list > div {
  display: grid;

  grid-template-columns:
    8px minmax(0,1fr);

  gap: 10px;

  align-items: start;

  color: #a8b4c7;

  font-size: 13px;

  line-height: 1.55;
}

.risk-list-dot {
  width: 6px;
  height: 6px;

  margin-top: 7px;

  border-radius: 50%;
}

.risk-list-dot.critical,
.risk-list-dot.high {
  background: #ff5965;

  box-shadow:
    0 0 10px rgba(255,89,101,.35);
}

.risk-list-dot.medium {
  background: #ffb62d;
}

.risk-list-dot.safe {
  background: #48d58e;
}

.result-question-hint {
  margin-top: 22px;

  color: #66758d;

  font-size: 12px;

  line-height: 1.5;
}


/* THINKING */

.thinking-label {
  display: flex;

  align-items: center;

  gap: 9px;

  min-height: 30px;

  color: #8f9db2;

  font-size: 13px;
}

.thinking-dots {
  display: inline-flex;

  align-items: center;

  gap: 4px;
}

.thinking-dots i {
  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: #ffb51e;

  animation:
    ntxDot 1.15s ease-in-out infinite;
}

.thinking-dots i:nth-child(2) {
  animation-delay: .15s;
}

.thinking-dots i:nth-child(3) {
  animation-delay: .30s;
}


/* =========================================================
   CHAT COMPOSER — CHATGPT STYLE
   ========================================================= */

#screen-check.conversation-mode
.chat-composer {
  position: sticky;

  bottom: 18px;

  z-index: 10;

  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(0,1fr)
    48px;

  gap: 8px;

  align-items: end;

  margin-top: auto;

  padding:
    8px 9px
    8px 14px;

  border:
    1px solid transparent;

  border-radius: 20px;

  background:
    linear-gradient(
      #091427,
      #091427
    ) padding-box,

    linear-gradient(
      120deg,
      #2b3d5b,
      #3e5679,
      rgba(255,184,31,.30)
    ) border-box;

  box-shadow:
    0 -35px 65px #030916,
    0 18px 55px rgba(0,0,0,.26),
    inset 0 1px 0 rgba(255,255,255,.025);
}

#screen-check.conversation-mode
.chat-composer textarea {
  width: 100%;

  min-height: 48px;

  max-height: 160px;

  resize: none;

  overflow-y: auto;

  padding:
    13px 4px 10px;

  border: 0;
  outline: 0;

  background: transparent;

  color: #edf1f7;

  font-family: inherit;

  font-size: 14px;

  line-height: 1.5;
}

#screen-check.conversation-mode
.chat-composer textarea::placeholder {
  color: #6f7d93;
}

#screen-check.conversation-mode
.chat-composer .primary-action {
  width: 48px;
  height: 48px;

  min-width: 48px;
  min-height: 48px;

  margin: 0;
  padding: 0;

  display: grid;
  place-items: center;

  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      #ffd05b,
      #ffb424
    );

  color: #10151e;

  font-size: 0;
}

#screen-check.conversation-mode
.chat-composer .primary-action::before {
  content: '↑';

  font-size: 22px;
  font-weight: 850;
}

#screen-check.conversation-mode:not(.has-result)
.chat-composer {
  display: none !important;
}


/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes ntxHeroReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ntxFadeUp {
  from {
    opacity: 0;
    transform: translateY(9px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ntxHeroGlow {
  from {
    opacity: .58;
    transform:
      translate(-50%, -50%)
      scale(.94);
  }

  to {
    opacity: .95;
    transform:
      translate(-50%, -50%)
      scale(1.08);
  }
}

@keyframes ntxInputSheen {
  0%,
  65% {
    left: -130px;
    opacity: 0;
  }

  70% {
    opacity: 1;
  }

  86% {
    left: calc(100% + 120px);
    opacity: 0;
  }

  100% {
    left: calc(100% + 120px);
    opacity: 0;
  }
}

@keyframes ntxMessageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ntxDot {
  0%,
  60%,
  100% {
    opacity: .25;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

  #screen-check:not(.conversation-mode)
  .check-v2-hero {
    margin-top: 65px;
  }

  #screen-check:not(.conversation-mode)
  .check-v2-hero h2 {
    font-size: 38px;
  }

  #screen-check:not(.conversation-mode)
  .check-v2-hero > p:last-child {
    font-size: 14px;
  }

  #screen-check:not(.conversation-mode)
  .examples-label {
    width: 100%;

    text-align: center;
  }

  #screen-check.conversation-mode
  .scan-followup {
    min-height:
      calc(100vh - 120px);
  }

  .user-bubble {
    max-width: 88%;
  }

  .assistant-message {
    grid-template-columns:
      28px minmax(0,1fr);

    gap: 11px;
  }

  .noytrix-chat-avatar {
    width: 28px;
    height: 28px;
  }

  .noytrix-chat-avatar img {
    width: 21px;
    height: 21px;
  }

}


@media (prefers-reduced-motion: reduce) {

  #screen-check *,
  #screen-check *::before,
  #screen-check *::after {
    animation-duration:
      .001ms !important;

    animation-iteration-count:
      1 !important;
  }

}



/* ==========================================================
   NOYTRIX CHAT V5 — LIVE ANALYSIS + TRACKING
   ========================================================== */


/* ===== LIVE ANALYSIS ===== */

.live-analysis-content {
  width: 100%;
  max-width: 730px;

  padding:
    18px 19px 17px;

  border:
    1px solid #243954;

  border-radius:
    14px;

  background:
    linear-gradient(
      145deg,
      rgba(10,22,42,.78),
      rgba(7,16,32,.72)
    );

  box-shadow:
    inset 0 1px 0
    rgba(255,255,255,.025);
}

.live-analysis-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 18px;

  padding-bottom: 15px;

  border-bottom:
    1px solid rgba(52,71,101,.55);
}

.live-analysis-title {
  display: flex;

  align-items: center;

  gap: 9px;
}

.live-analysis-title strong {
  color: #e8edf5;

  font-size: 13px;
  font-weight: 700;
}

.analysis-live-dot {
  width: 7px;
  height: 7px;

  flex:
    0 0 7px;

  border-radius: 50%;

  background: #ffb51f;

  box-shadow:
    0 0 14px
    rgba(255,181,31,.55);

  animation:
    ntxAnalysisPulse
    1.2s
    ease-in-out
    infinite;
}

.live-analysis-status {
  color: #7f8da5;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: .08em;

  text-transform: uppercase;
}

.analysis-object {
  display: grid;

  gap: 4px;

  margin-top: 14px;

  padding:
    11px 13px;

  border:
    1px solid
    rgba(47,65,94,.55);

  border-radius: 9px;

  background:
    rgba(5,13,28,.47);
}

.analysis-object > span {
  color: #66748b;

  font-size: 9px;

  text-transform: uppercase;

  letter-spacing: .10em;

  font-weight: 700;
}

.analysis-object strong {
  overflow: hidden;

  color: #bcc7d9;

  font-size: 12px;

  font-weight: 550;

  white-space: nowrap;

  text-overflow: ellipsis;
}


/* ===== STAGES ===== */

.live-stage-list {
  display: grid;

  gap: 5px;

  margin-top: 15px;
}

.live-stage-item {
  position: relative;

  display: grid;

  grid-template-columns:
    21px minmax(0,1fr);

  gap: 9px;

  min-height: 41px;

  align-items: start;

  padding:
    8px 9px;

  border-radius: 8px;

  transition:
    background .22s ease,
    opacity .22s ease;
}

.live-stage-icon {
  position: relative;

  width: 18px;
  height: 18px;

  margin-top: 1px;

  display: grid;
  place-items: center;

  border:
    1px solid #35445d;

  border-radius: 50%;
}

.live-stage-icon::after {
  content: '';

  width: 4px;
  height: 4px;

  border-radius: 50%;

  background: #65748c;
}

.live-stage-item strong {
  display: block;

  color: #8694aa;

  font-size: 11px;
  font-weight: 600;

  line-height: 1.35;
}

.live-stage-item small {
  display: block;

  margin-top: 3px;

  color: #59677e;

  font-size: 10px;

  line-height: 1.35;
}


/* RUNNING */

.live-stage-item.stage-running {
  background:
    rgba(255,181,31,.035);
}

.live-stage-item.stage-running
.live-stage-icon {
  border-color:
    rgba(255,181,31,.60);

  box-shadow:
    0 0 12px
    rgba(255,181,31,.10);
}

.live-stage-item.stage-running
.live-stage-icon::after {
  background: #ffb51f;

  box-shadow:
    0 0 9px
    rgba(255,181,31,.75);

  animation:
    ntxAnalysisPulse
    .85s
    ease-in-out
    infinite;
}

.live-stage-item.stage-running strong {
  color: #e4e9f2;
}


/* DONE */

.live-stage-item.stage-done
.live-stage-icon,
.live-stage-item.stage-completed
.live-stage-icon,
.live-stage-item.stage-complete
.live-stage-icon {
  border-color:
    rgba(57,207,133,.45);

  background:
    rgba(57,207,133,.06);
}

.live-stage-item.stage-done
.live-stage-icon::after,
.live-stage-item.stage-completed
.live-stage-icon::after,
.live-stage-item.stage-complete
.live-stage-icon::after {
  content: '✓';

  width: auto;
  height: auto;

  background: none;

  color: #49db94;

  font-size: 10px;
  font-weight: 800;
}

.live-stage-item.stage-done strong,
.live-stage-item.stage-completed strong,
.live-stage-item.stage-complete strong {
  color: #aab6c8;
}


/* FAILED */

.live-stage-item.stage-failed
.live-stage-icon,
.live-stage-item.stage-error
.live-stage-icon {
  border-color:
    rgba(255,79,92,.45);
}

.live-stage-item.stage-failed
.live-stage-icon::after,
.live-stage-item.stage-error
.live-stage-icon::after {
  background: #ff5965;
}


/* COMPLETED CARD */

.live-analysis-message.analysis-complete
.analysis-live-dot {
  animation: none;

  background: #42d990;

  box-shadow:
    0 0 12px
    rgba(66,217,144,.35);
}

.live-analysis-message.analysis-complete
.live-analysis-status {
  color: #54c991;
}


/* ===== TRACKING BAR ===== */

.chat-tracking-bar {
  position: sticky;

  bottom: 91px;

  z-index: 8;

  width: 100%;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin:
    0 0 9px;

  padding:
    10px 11px
    10px 13px;

  border:
    1px solid
    rgba(42,59,86,.92);

  border-radius: 14px;

  background:
    rgba(7,16,31,.96);

  backdrop-filter:
    blur(18px);

  box-shadow:
    0 -16px 40px
    rgba(3,9,22,.35),
    inset 0 1px 0
    rgba(255,255,255,.018);

  animation:
    ntxMessageIn
    .3s ease both;
}

.tracking-bar-left {
  min-width: 0;

  display: flex;

  align-items: center;

  gap: 11px;
}

.tracking-eye {
  width: 35px;
  height: 35px;

  flex:
    0 0 35px;

  display: grid;
  place-items: center;

  border:
    1px solid
    rgba(255,181,31,.18);

  border-radius: 10px;

  background:
    rgba(255,181,31,.035);

  color: #ffb51f;
}

.tracking-eye svg {
  width: 19px;
  height: 19px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.6;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.tracking-bar-left strong {
  display: block;

  color: #dce3ee;

  font-size: 12px;
  font-weight: 650;
}

.tracking-bar-left small {
  display: block;

  margin-top: 2px;

  color: #66748b;

  font-size: 10px;
}

.chat-track-button {
  flex:
    0 0 auto;

  min-height: 37px;

  padding:
    0 14px;

  border:
    1px solid
    rgba(255,183,31,.38);

  border-radius: 9px;

  background:
    rgba(255,181,31,.055);

  color: #ffbc35;

  font-size: 11px;
  font-weight: 700;

  transition:
    background .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

.chat-track-button:hover:not(:disabled) {
  transform:
    translateY(-1px);

  border-color:
    rgba(255,183,31,.65);

  background:
    rgba(255,181,31,.095);
}

.chat-track-button:disabled {
  cursor: default;

  border-color:
    rgba(56,201,129,.23);

  background:
    rgba(56,201,129,.04);

  color: #58cc92;
}


/* ===== AI TRACKING EXPLANATION ===== */

.tracking-ai-message
.assistant-text {
  max-width: 700px;

  color: #b8c3d3;

  font-size: 14px;

  line-height: 1.68;
}


/* Chat composer now sits below tracking */

#screen-check.conversation-mode
.chat-composer {
  bottom: 18px;
}


/* ===== ANIMATION ===== */

@keyframes ntxAnalysisPulse {

  0%,
  100% {
    opacity: .35;

    transform:
      scale(.82);
  }

  50% {
    opacity: 1;

    transform:
      scale(1.08);
  }
}


/* ===== MOBILE ===== */

@media (max-width:760px) {

  .live-analysis-content {
    padding:
      15px 14px;
  }

  .chat-tracking-bar {
    bottom: 87px;

    padding:
      9px 10px;

    gap: 10px;
  }

  .tracking-bar-left small {
    display: none;
  }

  .chat-track-button {
    padding:
      0 10px;
  }

}


/* ==========================================================
   NOYTRIX CHAT V6 — RESULT ACTIONS
   ========================================================== */


.post-scan-actions {
  width: calc(100% - 46px);

  max-width: 700px;

  margin:
    -12px 0 3px
    46px;

  display: flex;

  align-items: center;

  gap: 8px;

  flex-wrap: wrap;

  animation:
    ntxMessageIn
    .3s ease both;
}


.post-scan-action {
  min-height: 36px;

  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding:
    0 12px;

  border:
    1px solid #2b3c58;

  border-radius:
    9px;

  background:
    rgba(8,18,35,.52);

  color: #8493aa;

  font-family: inherit;

  font-size: 11px;

  font-weight: 650;

  transition:
    color .18s ease,
    border-color .18s ease,
    background .18s ease,
    transform .18s ease;
}


.post-scan-action:hover:not(:disabled) {
  transform:
    translateY(-1px);

  color: #d4dce8;

  border-color:
    #415775;

  background:
    rgba(15,29,52,.72);
}


.post-action-icon {
  color: #ffb51f;

  font-size: 13px;
}


.report-action {
  border-color:
    rgba(255,181,31,.20);
}


.report-action:hover:not(:disabled) {
  border-color:
    rgba(255,181,31,.42);

  background:
    rgba(255,181,31,.035);

  color: #dce3ed;
}


.tracking-action.active {
  border-color:
    rgba(66,211,143,.22);

  background:
    rgba(66,211,143,.035);

  color: #55ca91;
}


.post-scan-action:disabled {
  cursor: default;

  opacity: .75;
}


/* AI message below actions */

.post-scan-ai-message {
  margin-top: 3px;
}


.post-scan-ai-message
.assistant-text {
  max-width: 690px;

  color: #9fabbd;

  font-size: 13px;

  line-height: 1.7;
}


/* FREE VERDICT */

.result-summary {
  max-width: 710px;

  color: #e2e8f1 !important;

  font-size: 15px !important;

  line-height: 1.72 !important;
}


/* FULL PRO REPORT */

.full-pro-report
.assistant-content {
  max-width: 730px;

  padding:
    17px 18px;

  border:
    1px solid
    rgba(255,181,31,.13);

  border-radius:
    12px;

  background:
    linear-gradient(
      145deg,
      rgba(15,27,48,.55),
      rgba(7,17,33,.40)
    );
}


.full-pro-report
.assistant-text {
  color: #cbd4e1;

  font-size: 14px;

  line-height: 1.72;
}


/*
 Old V5 tracking bar is no longer used.
 We now show two quiet actions directly
 under the verdict.
*/

#chatTrackingBar {
  display: none !important;
}


@media(max-width:760px) {

  .post-scan-actions {
    width:
      calc(100% - 39px);

    margin-left:
      39px;
  }

  .post-scan-action {
    padding:
      0 10px;
  }

}


/* === NOYTRIX RESULT V8 === */


/* FREE VERDICT */

#screen-check
.result-message
.result-summary {
  max-width: 740px;

  color: #e2e8f1;

  font-size: 15px;

  line-height: 1.78;

  letter-spacing: -.006em;
}


/* ACTIONS DIRECTLY BELOW VERDICT */

.result-actions-v8 {
  width: calc(100% - 46px);

  max-width: 730px;

  display: flex;

  align-items: center;

  gap: 8px;

  flex-wrap: wrap;

  margin:
    -10px 0 2px
    46px;

  animation:
    ntxMessageIn
    .3s ease both;
}


.result-action-v8 {
  min-height: 36px;

  display: inline-flex;

  align-items: center;

  gap: 7px;

  padding:
    0 12px;

  border:
    1px solid #2b3d59;

  border-radius:
    10px;

  background:
    rgba(8,18,35,.46);

  color: #8997ac;

  font-family: inherit;

  cursor: pointer;

  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    color .18s ease;
}


.result-action-v8 b {
  color: inherit;

  font-size: 11px;

  font-weight: 650;
}


.result-action-v8 > span {
  color: #ffb51f;

  font-size: 12px;
}


.result-action-v8 em {
  padding:
    2px 5px;

  border-radius: 5px;

  background:
    rgba(255,181,31,.075);

  color: #d4a037;

  font-size: 8px;

  font-weight: 800;

  font-style: normal;

  letter-spacing: .08em;
}


.result-action-v8:hover:not(:disabled) {
  transform:
    translateY(-1px);

  border-color:
    #445b7b;

  background:
    rgba(14,28,50,.68);

  color: #d7dfea;
}


.report-v8 {
  border-color:
    rgba(255,181,31,.19);
}


.report-v8:hover:not(:disabled) {
  border-color:
    rgba(255,181,31,.43);

  background:
    rgba(255,181,31,.035);
}


.tracking-v8.is-active {
  color: #59cf96;

  border-color:
    rgba(65,211,141,.27);

  background:
    rgba(65,211,141,.035);
}


/*
 Old V5/V6 bar CSS can stay.
 New buttons use another ID.
 */

#resultActionBarV8 {
  display: flex !important;
}


/* AI MESSAGE AFTER ACTIONS */

.tracking-ai-message
.assistant-text {
  max-width: 720px;

  color: #aeb9c9;

  font-size: 13px;

  line-height: 1.72;
}


@media(max-width:760px) {

  .result-actions-v8 {
    width:
      calc(100% - 39px);

    margin-left:
      39px;
  }

}



/* === NOYTRIX CHAT UI V9 === */


/* ==========================================================
   SMALLER SIDEBAR
   ========================================================== */

.app-shell {
  grid-template-columns:
    220px minmax(0,1fr);
}

.sidebar {
  width: 220px;

  padding:
    22px 14px
    16px;

  background:
    linear-gradient(
      180deg,
      #040a16 0%,
      #030914 100%
    );
}


.brand {
  min-height: 38px;

  padding:
    0 12px;

  font-size: 18px;
}


.brand img {
  width: 29px;
  height: 29px;
}


.new-check {
  min-height: 47px;

  margin-top: 22px;

  border-radius: 11px;

  font-size: 13px;

  box-shadow:
    0 10px 28px
    rgba(255,178,25,.12);
}


.new-check span {
  font-size: 20px;
}


/* ==========================================================
   CHATS LIKE CHATGPT
   ========================================================== */

.sidebar-chats-v9 {
  margin:
    19px 0 8px;
}


.sidebar-chats-heading-v9 {
  display: flex;

  align-items: center;

  min-height: 25px;

  padding:
    0 9px;

  color: #56667f;

  font-size: 9px;

  font-weight: 800;

  letter-spacing: .11em;

  text-transform: uppercase;
}


.sidebar-chat-list-v9 {
  max-height: 205px;

  overflow-y: auto;

  padding-right: 2px;

  scrollbar-width: thin;

  scrollbar-color:
    #263853 transparent;
}


.sidebar-chat-row-v9 {
  position: relative;

  display: grid;

  grid-template-columns:
    minmax(0,1fr)
    24px;

  align-items: center;

  margin-bottom: 2px;

  border-radius: 8px;

  transition:
    background .16s ease;
}


.sidebar-chat-row-v9:hover {
  background:
    rgba(255,255,255,.025);
}


.sidebar-chat-row-v9.active {
  background:
    linear-gradient(
      90deg,
      rgba(20,45,91,.68),
      rgba(11,29,59,.55)
    );
}


.sidebar-chat-open-v9 {
  min-width: 0;

  min-height: 39px;

  display: grid;

  grid-template-columns:
    9px minmax(0,1fr);

  gap: 8px;

  align-items: center;

  padding:
    4px 3px
    4px 9px;

  border: 0;

  background: transparent;

  text-align: left;
}


.sidebar-chat-risk-v9 {
  width: 6px;
  height: 6px;

  border-radius: 50%;
}


.sidebar-chat-risk-v9.safe {
  background: #47d593;

  box-shadow:
    0 0 8px
    rgba(71,213,147,.30);
}


.sidebar-chat-risk-v9.medium {
  background: #ffb624;
}


.sidebar-chat-risk-v9.high,
.sidebar-chat-risk-v9.critical {
  background: #ff5664;

  box-shadow:
    0 0 8px
    rgba(255,86,100,.30);
}


.sidebar-chat-text-v9 {
  min-width: 0;
}


.sidebar-chat-text-v9 strong {
  display: block;

  overflow: hidden;

  color: #aeb9cc;

  font-size: 11px;

  font-weight: 560;

  white-space: nowrap;

  text-overflow: ellipsis;
}


.sidebar-chat-text-v9 small {
  display: block;

  margin-top: 2px;

  color: #536178;

  font-size: 8px;
}


.sidebar-chat-row-v9.active
.sidebar-chat-text-v9 strong {
  color: #e2e8f2;
}


.sidebar-chat-delete-v9 {
  width: 22px;
  height: 22px;

  opacity: 0;

  display: grid;
  place-items: center;

  border: 0;

  border-radius: 6px;

  background: transparent;

  color: #66758d;

  font-size: 14px;

  transition:
    opacity .15s ease,
    background .15s ease,
    color .15s ease;
}


.sidebar-chat-row-v9:hover
.sidebar-chat-delete-v9 {
  opacity: 1;
}


.sidebar-chat-delete-v9:hover {
  background:
    rgba(255,255,255,.05);

  color: #d8e0eb;
}


.sidebar-chats-empty-v9 {
  padding:
    7px 10px
    12px;

  color: #46556d;

  font-size: 9px;

  line-height: 1.45;
}


/* ==========================================================
   SMALLER NAVIGATION
   ========================================================== */

.workspace-nav {
  margin:
    9px 0 10px;

  gap: 2px;
}


.workspace-nav .nav-item,
.sidebar-bottom .nav-item {
  min-height: 41px;

  padding:
    0 8px;

  gap: 9px;

  border-radius: 9px;

  color: #8694ac;

  font-size: 12px;
}


.nav-icon {
  width: 29px !important;
  height: 29px !important;

  flex:
    0 0 29px !important;

  display: grid;

  place-items: center;

  border:
    1px solid
    rgba(49,68,99,.58);

  border-radius: 8px;

  background:
    linear-gradient(
      145deg,
      rgba(16,29,51,.80),
      rgba(7,17,34,.80)
    );

  color: #8fa0ba !important;

  box-shadow:
    inset 0 1px 0
    rgba(255,255,255,.025);

  transition:
    .18s ease;
}


.nav-icon svg {
  width: 16px;
  height: 16px;

  stroke-width: 1.65;
}


.workspace-nav
.nav-item:hover
.nav-icon,

.sidebar-bottom
.nav-item:hover
.nav-icon {
  border-color:
    rgba(255,181,31,.22);

  color: #c3ccda !important;
}


.workspace-nav
.nav-item.active {
  background:
    linear-gradient(
      90deg,
      rgba(15,38,82,.90),
      rgba(8,25,56,.78)
    );

  box-shadow:
    inset 0 0 0 1px
    rgba(49,91,164,.62);
}


.workspace-nav
.nav-item.active
.nav-icon {
  border-color:
    rgba(255,183,31,.40);

  background:
    linear-gradient(
      145deg,
      rgba(255,183,31,.14),
      rgba(255,183,31,.035)
    );

  color: #ffbb30 !important;

  box-shadow:
    0 0 15px
    rgba(255,181,31,.08),
    inset 0 1px 0
    rgba(255,255,255,.05);
}


/* ==========================================================
   PREMIUM RESULT ACTIONS
   ========================================================== */

.result-actions-v8,
.result-actions-v9 {
  gap: 11px !important;

  margin-top:
    -4px !important;

  margin-bottom:
    5px !important;
}


.result-action-v8 {
  position: relative;

  overflow: hidden;

  min-height: 43px !important;

  padding:
    0 16px !important;

  border-radius:
    12px !important;

  font-size:
    12px !important;

  font-weight:
    700;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease !important;
}


.result-action-v8 b {
  font-size:
    12px !important;

  font-weight:
    720 !important;
}


.result-action-v8::before {
  content: '';

  position: absolute;

  top: -80px;
  left: -70px;

  width: 38px;
  height: 190px;

  transform:
    rotate(30deg);

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.13),
      transparent
    );

  transition:
    left .5s ease;
}


.result-action-v8:hover::before {
  left:
    calc(100% + 50px);
}


/* FULL REPORT = MAIN CTA */

.report-v8 {
  border:
    1px solid
    rgba(255,218,116,.42)
    !important;

  background:
    linear-gradient(
      135deg,
      #ffd05b 0%,
      #ffb726 47%,
      #f5a511 100%
    ) !important;

  color:
    #10151f !important;

  box-shadow:
    0 9px 28px
    rgba(255,178,24,.20),
    inset 0 1px 0
    rgba(255,255,255,.45) !important;
}


.report-v8 span,
.report-v8 b {
  color:
    #10151f !important;
}


.report-v8 em {
  padding:
    3px 6px !important;

  background:
    rgba(12,18,28,.14)
    !important;

  color:
    #111721 !important;
}


.report-v8:hover:not(:disabled) {
  transform:
    translateY(-2px)
    !important;

  box-shadow:
    0 13px 34px
    rgba(255,178,24,.29),
    inset 0 1px 0
    rgba(255,255,255,.55)
    !important;
}


/* TRACKING = SECONDARY PREMIUM CTA */

.tracking-v8 {
  border:
    1px solid
    rgba(58,94,151,.92)
    !important;

  background:
    linear-gradient(
      145deg,
      #0e2141,
      #09182f
    ) !important;

  color:
    #d4ddeb !important;

  box-shadow:
    0 9px 26px
    rgba(0,29,76,.22),
    inset 0 1px 0
    rgba(255,255,255,.035)
    !important;
}


.tracking-v8 > span {
  color:
    #ffba2e !important;
}


.tracking-v8:hover:not(:disabled) {
  transform:
    translateY(-2px)
    !important;

  border-color:
    rgba(255,184,35,.54)
    !important;

  box-shadow:
    0 12px 30px
    rgba(0,30,80,.32),
    0 0 22px
    rgba(255,181,31,.06)
    !important;
}


.tracking-v8.is-active {
  border-color:
    rgba(63,215,141,.44)
    !important;

  background:
    linear-gradient(
      145deg,
      rgba(26,73,59,.72),
      rgba(8,38,35,.75)
    ) !important;

  color:
    #65dda1 !important;
}


/* ==========================================================
   RESTORED CHAT
   ========================================================== */

.v9-thinking-message
.assistant-text {
  color:
    #74839b;

  font-size:
    12px;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media(max-width:760px) {

  .app-shell {
    display: block;
  }

  .sidebar {
    width: 100%;
  }

  .sidebar-chats-v9 {
    display: none;
  }

}



/* ==========================================================
   NOYTRIX SIDEBAR V10 — CHATGPT STRUCTURE
   ========================================================== */


/*
   STRUCTURE:

   LOGO
   NEW CHECK
   MAIN MENU
   CHATS
   SAVED CONVERSATIONS
   SETTINGS / ACCOUNT
*/


.sidebar {
  height: 100vh;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  padding:
    22px 14px 14px;
}


/* ------------------------------------------
   ORDER
   ------------------------------------------ */

.sidebar .brand {
  order: 1;
}

.sidebar .new-check {
  order: 2;
}

.sidebar .workspace-nav {
  order: 3;
}

.sidebar .sidebar-chats-v9 {
  order: 4;
}

.sidebar .session-list {
  order: 5;
}

.sidebar .sidebar-bottom {
  order: 6;
}


/* ==========================================================
   LOGO
   ========================================================== */

.sidebar .brand {
  flex: 0 0 auto;

  min-height: 43px;

  padding:
    0 9px;

  margin-bottom: 12px;
}


/* ==========================================================
   NEW CHECK
   ========================================================== */

.sidebar .new-check {
  flex: 0 0 auto;

  width: 100%;

  min-height: 46px;

  margin:
    5px 0
    16px;

  border-radius: 10px;

  font-size: 12px;

  font-weight: 750;
}


/* ==========================================================
   MAIN MENU — ABOVE CHATS
   ========================================================== */

.sidebar .workspace-nav {
  flex: 0 0 auto;

  width: 100%;

  margin:
    0 0 12px;

  padding-bottom: 12px;

  display: flex;
  flex-direction: column;

  gap: 2px;

  border-bottom:
    1px solid
    rgba(52,68,94,.42);
}


.sidebar .workspace-nav .nav-item {
  min-height: 38px;

  padding:
    0 8px;

  border-radius: 8px;

  gap: 9px;

  font-size: 11px;

  font-weight: 600;
}


.sidebar .workspace-nav .nav-icon {
  width: 27px !important;
  height: 27px !important;

  flex:
    0 0 27px !important;

  border-radius: 7px;
}


.sidebar .workspace-nav .nav-icon svg {
  width: 15px;
  height: 15px;
}


/* active menu */

.sidebar
.workspace-nav
.nav-item.active {
  background:
    linear-gradient(
      90deg,
      rgba(18,44,91,.83),
      rgba(9,27,59,.66)
    );

  box-shadow:
    inset 0 0 0 1px
    rgba(48,88,154,.55);
}


/* ==========================================================
   CHATS AREA
   ========================================================== */

.sidebar-chats-v9 {
  flex: 1 1 auto;

  min-height: 0;

  display: flex;
  flex-direction: column;

  margin: 0;

  padding-top: 2px;

  overflow: hidden;
}


/* "Chats" title */

.sidebar-chats-heading-v9 {
  flex: 0 0 auto;

  min-height: 29px;

  padding:
    0 9px;

  display: flex;
  align-items: center;

  color: #68768d;

  font-size: 9px;

  font-weight: 800;

  letter-spacing: .10em;

  text-transform: uppercase;
}


/* chat list = scrollable */

.sidebar-chat-list-v9 {
  flex: 1 1 auto;

  min-height: 0;

  max-height: none !important;

  overflow-y: auto;

  padding:
    2px 3px
    10px 0;

  scrollbar-width: thin;

  scrollbar-color:
    rgba(78,96,126,.55)
    transparent;
}


.sidebar-chat-list-v9::-webkit-scrollbar {
  width: 5px;
}


.sidebar-chat-list-v9::-webkit-scrollbar-track {
  background: transparent;
}


.sidebar-chat-list-v9::-webkit-scrollbar-thumb {
  border-radius: 20px;

  background:
    rgba(74,91,119,.48);
}


/* ==========================================================
   CHAT ROW — CHATGPT STYLE
   ========================================================== */

.sidebar-chat-row-v9 {
  width: 100%;

  min-height: 37px;

  margin-bottom: 1px;

  border-radius: 8px;
}


.sidebar-chat-open-v9 {
  min-height: 37px;

  grid-template-columns:
    18px minmax(0,1fr);

  gap: 5px;

  padding:
    3px 2px
    3px 7px;
}


/*
 Chat bubble icon instead of tiny dot.
 Risk still indicated by color.
*/

.sidebar-chat-risk-v9 {
  position: relative;

  width: 17px;
  height: 17px;

  border:
    1px solid
    currentColor;

  border-radius: 50%;

  background: transparent !important;

  box-shadow: none !important;
}


.sidebar-chat-risk-v9::before {
  content: '';

  position: absolute;

  left: 3px;
  right: 3px;

  top: 5px;

  height: 1px;

  background:
    currentColor;

  opacity: .8;
}


.sidebar-chat-risk-v9::after {
  content: '';

  position: absolute;

  left: 4px;
  bottom: -2px;

  width: 5px;
  height: 5px;

  border-left:
    1px solid currentColor;

  transform:
    rotate(-28deg);
}


.sidebar-chat-risk-v9.safe {
  color: #48d894;
}


.sidebar-chat-risk-v9.medium {
  color: #ffb82d;
}


.sidebar-chat-risk-v9.high,
.sidebar-chat-risk-v9.critical {
  color: #ff5966;
}


/* chat text */

.sidebar-chat-text-v9 strong {
  max-width: 138px;

  color: #aeb8ca;

  font-size: 10.5px;

  font-weight: 540;
}


.sidebar-chat-text-v9 small {
  display: none;
}


.sidebar-chat-row-v9:hover {
  background:
    rgba(255,255,255,.035);
}


.sidebar-chat-row-v9.active {
  background:
    rgba(27,47,78,.66);
}


.sidebar-chat-row-v9.active
.sidebar-chat-text-v9 strong {
  color: #eef2f8;
}


/* delete button like ChatGPT hidden until hover */

.sidebar-chat-delete-v9 {
  opacity: 0;

  width: 22px;
  height: 22px;

  border-radius: 6px;

  color: #738199;
}


.sidebar-chat-row-v9:hover
.sidebar-chat-delete-v9 {
  opacity: 1;
}


/* ==========================================================
   EMPTY CHATS
   ========================================================== */

.sidebar-chats-empty-v9 {
  padding:
    8px 8px;

  color: #46536a;

  font-size: 9px;

  line-height: 1.45;
}


/* ==========================================================
   SETTINGS — ALWAYS BOTTOM
   ========================================================== */

.sidebar-bottom {
  flex: 0 0 auto;

  margin-top: 0 !important;

  padding-top: 11px;

  border-top:
    1px solid
    rgba(52,68,94,.42);
}


.sidebar-bottom .nav-item {
  min-height: 38px;

  padding:
    0 8px;

  border-radius: 8px;

  gap: 9px;

  font-size: 11px;
}


/* ==========================================================
   REMOVE DEAD SPACE
   ========================================================== */

.sidebar .v2-hidden-required {
  display: none !important;
}


/* ==========================================================
   DESKTOP SIZE
   ========================================================== */

@media(min-width:761px) {

  .app-shell {
    grid-template-columns:
      224px minmax(0,1fr);
  }

  .sidebar {
    width: 224px;
  }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media(max-width:760px) {

  .sidebar {
    height: auto;

    overflow: visible;
  }

}


/* ==========================================================
   NOYTRIX MENU TUNE + PREMIUM SIGN IN
   ========================================================== */


/* чуть шире sidebar */

@media(min-width:761px) {

  .app-shell {
    grid-template-columns:
      236px minmax(0,1fr) !important;
  }

  .sidebar {
    width: 236px !important;
  }

}


/* new check */

.sidebar .new-check {
  min-height: 48px !important;

  border-radius: 12px !important;

  font-size: 13px !important;

  font-weight: 760 !important;
}


/* menu чуть крупнее */

.sidebar .workspace-nav .nav-item,
.sidebar .sidebar-bottom .nav-item {
  min-height: 41px !important;

  padding: 0 9px !important;

  gap: 10px !important;

  font-size: 12px !important;

  font-weight: 620 !important;
}


.sidebar .workspace-nav .nav-icon,
.sidebar .sidebar-bottom .nav-icon {
  width: 29px !important;
  height: 29px !important;

  flex: 0 0 29px !important;

  border-radius: 8px !important;
}


.sidebar .workspace-nav .nav-icon svg,
.sidebar .sidebar-bottom .nav-icon svg {
  width: 16px !important;
  height: 16px !important;
}


/* chats чуть читаемее */

.sidebar-chat-text-v9 strong {
  max-width: 150px !important;

  font-size: 11px !important;

  font-weight: 560 !important;
}


.sidebar-chats-heading-v9 {
  font-size: 9.5px !important;
}


/* premium sign in */

#headerAccountButton {
  position: relative;

  overflow: hidden;

  min-height: 44px !important;

  padding: 0 18px !important;

  border:
    1px solid
    rgba(255,193,61,.42) !important;

  border-radius: 12px !important;

  background:
    linear-gradient(
      135deg,
      rgba(18,34,63,.96) 0%,
      rgba(11,24,47,.96) 55%,
      rgba(8,18,35,.98) 100%
    ) !important;

  color: #f4f7fb !important;

  font-size: 14px !important;

  font-weight: 760 !important;

  letter-spacing: -.01em;

  box-shadow:
    0 10px 26px rgba(0,0,0,.22),
    0 0 0 1px rgba(255,184,35,.06) inset,
    inset 0 1px 0 rgba(255,255,255,.06) !important;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease !important;
}


#headerAccountButton::before {
  content: '';

  position: absolute;

  top: -40px;
  left: -75px;

  width: 34px;
  height: 150px;

  transform: rotate(28deg);

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.14),
      transparent
    );

  transition: left .55s ease;
}


#headerAccountButton:hover::before {
  left: calc(100% + 55px);
}


#headerAccountButton:hover {
  transform: translateY(-1px) !important;

  border-color:
    rgba(255,193,61,.62) !important;

  background:
    linear-gradient(
      135deg,
      rgba(23,42,76,.98) 0%,
      rgba(14,31,59,.98) 55%,
      rgba(9,21,40,.99) 100%
    ) !important;

  box-shadow:
    0 14px 32px rgba(0,0,0,.28),
    0 0 22px rgba(255,181,31,.08),
    inset 0 1px 0 rgba(255,255,255,.09) !important;
}


#headerAccountButton:active {
  transform: translateY(0) !important;
}


/* ==========================================================
   NOYTRIX PREMIUM HERO V11
   ========================================================== */

#screen-check:not(.conversation-mode)
.check-v2-hero {
  position: relative;

  isolation: isolate;
}


/* большая мягкая подсветка за заголовком */

#screen-check:not(.conversation-mode)
.check-v2-hero::after {
  content: '';

  position: absolute;

  z-index: -1;

  top: 42%;
  left: 50%;

  width: 720px;
  height: 260px;

  transform:
    translate(-50%, -50%);

  border-radius: 50%;

  background:
    radial-gradient(
      ellipse,
      rgba(31,68,140,.20) 0%,
      rgba(17,42,91,.10) 42%,
      transparent 72%
    );

  filter: blur(32px);

  pointer-events: none;
}


/* главный headline */

#screen-check:not(.conversation-mode)
.check-v2-hero h2 {
  max-width: 940px !important;

  margin-left: auto !important;
  margin-right: auto !important;

  text-transform: uppercase;

  font-size:
    clamp(
      45px,
      4.15vw,
      66px
    ) !important;

  line-height:
    1.03 !important;

  letter-spacing:
    -.048em !important;

  font-weight:
    850 !important;

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f7f9fc 30%,
      #dde5f0 66%,
      #b7c3d4 100%
    );

  -webkit-background-clip: text;

  background-clip: text;

  color: transparent;

  text-shadow:
    0 3px 0 rgba(255,255,255,.025),
    0 9px 18px rgba(0,0,0,.30),
    0 22px 45px rgba(0,0,0,.34);

  filter:
    drop-shadow(
      0 8px 20px
      rgba(0,0,0,.32)
    );

  animation:
    ntxHeroPremiumEntrance
    .8s
    cubic-bezier(.18,.8,.22,1)
    both;
}


/* жёлтые слова */

#screen-check:not(.conversation-mode)
.check-v2-hero
.hero-accent {
  position: relative;

  display: inline;

  background:
    linear-gradient(
      180deg,
      #ffe17d 0%,
      #ffc13a 43%,
      #f7a817 100%
    );

  -webkit-background-clip: text;

  background-clip: text;

  color: transparent;

  text-shadow: none;

  filter:
    drop-shadow(
      0 3px 10px
      rgba(255,181,31,.16)
    )
    drop-shadow(
      0 12px 28px
      rgba(255,159,13,.11)
    );
}


/*
 небольшое золотое свечение,
 не превращаем текст в неон
*/

#screen-check:not(.conversation-mode)
.check-v2-hero h2:hover
.hero-accent {
  filter:
    drop-shadow(
      0 3px 12px
      rgba(255,190,48,.25)
    )
    drop-shadow(
      0 16px 34px
      rgba(255,158,12,.16)
    );
}


/* верхняя маленькая плашка */

#screen-check:not(.conversation-mode)
.check-v2-hero .eyebrow {
  border-color:
    rgba(255,185,38,.25)
    !important;

  color:
    #ffc13c !important;

  background:
    linear-gradient(
      90deg,
      rgba(255,181,31,.025),
      rgba(255,181,31,.07),
      rgba(255,181,31,.025)
    ) !important;

  box-shadow:
    0 7px 24px
    rgba(0,0,0,.14),
    inset 0 1px 0
    rgba(255,255,255,.04)
    !important;
}


/* subtitle немного выразительнее */

#screen-check:not(.conversation-mode)
.check-v2-hero > p:last-child {
  color:
    #8998b0 !important;

  text-shadow:
    0 4px 16px
    rgba(0,0,0,.36);
}


/* вход */

@keyframes ntxHeroPremiumEntrance {

  0% {
    opacity: 0;

    transform:
      translateY(16px)
      scale(.985);

    filter:
      blur(4px);
  }

  55% {
    opacity: 1;
  }

  100% {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);

    filter:
      blur(0);
  }

}


@media(max-width:760px) {

  #screen-check:not(.conversation-mode)
  .check-v2-hero h2 {
    font-size:
      38px !important;

    line-height:
      1.06 !important;
  }

}


/* ==========================================================
   NOYTRIX PREMIUM LANGUAGE V12
   ========================================================== */


/* убираем старый System operational
   и старые EN/RU/UA */

.header-left-v12-hidden {
  display: none !important;
}


/* header справа */

.workspace-header {
  display: flex !important;

  align-items: center !important;

  justify-content: flex-end !important;

  gap: 10px !important;
}


/* ==========================================================
   LANGUAGE WRAPPER
   ========================================================== */

.premium-language-v12 {
  position: relative;

  z-index: 100;
}


/* ==========================================================
   MAIN LANGUAGE BUTTON
   ========================================================== */

.language-toggle-v12 {
  position: relative;

  min-width: 88px;
  height: 46px;

  display: grid;

  grid-template-columns:
    23px 1fr 17px;

  align-items: center;

  gap: 6px;

  padding:
    0 12px;

  border:
    1px solid
    rgba(62,83,116,.90);

  border-radius:
    12px;

  background:
    linear-gradient(
      145deg,
      rgba(12,26,49,.96),
      rgba(7,17,34,.98)
    );

  color:
    #dce4ef;

  box-shadow:
    0 10px 28px
    rgba(0,0,0,.18),
    inset 0 1px 0
    rgba(255,255,255,.035);

  cursor: pointer;

  transition:
    border-color .18s ease,
    background .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}


.language-toggle-v12:hover,
.premium-language-v12.open
.language-toggle-v12 {
  transform:
    translateY(-1px);

  border-color:
    rgba(255,185,39,.48);

  background:
    linear-gradient(
      145deg,
      rgba(18,36,65,.98),
      rgba(9,22,42,.98)
    );

  box-shadow:
    0 12px 31px
    rgba(0,0,0,.24),
    0 0 20px
    rgba(255,181,31,.05),
    inset 0 1px 0
    rgba(255,255,255,.05);
}


/* globe */

.language-globe-v12 {
  width: 23px;
  height: 23px;

  display: grid;
  place-items: center;

  border-radius: 7px;

  color:
    #ffba2e;

  background:
    rgba(255,181,31,.055);
}


.language-globe-v12 svg {
  width: 15px;
  height: 15px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.45;

  stroke-linecap: round;
  stroke-linejoin: round;
}


/* EN */

.language-current-v12 {
  text-align: center;

  font-size:
    12px;

  font-weight:
    750;

  letter-spacing:
    .04em;
}


/* arrow */

.language-chevron-v12 {
  display: grid;
  place-items: center;

  color:
    #71819a;

  transition:
    transform .2s ease;
}


.language-chevron-v12 svg {
  width: 15px;
  height: 15px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.8;

  stroke-linecap: round;
  stroke-linejoin: round;
}


.premium-language-v12.open
.language-chevron-v12 {
  transform:
    rotate(180deg);
}


/* ==========================================================
   DROPDOWN
   ========================================================== */

.language-menu-v12 {
  position: absolute;

  top:
    calc(100% + 8px);

  right: 0;

  width: 205px;

  padding: 7px;

  border:
    1px solid
    rgba(53,75,109,.92);

  border-radius:
    14px;

  background:
    linear-gradient(
      145deg,
      rgba(10,22,42,.985),
      rgba(5,14,29,.99)
    );

  box-shadow:
    0 22px 65px
    rgba(0,0,0,.43),
    0 0 0 1px
    rgba(255,255,255,.015)
    inset,
    inset 0 1px 0
    rgba(255,255,255,.045);

  backdrop-filter:
    blur(22px);

  animation:
    languageMenuOpenV12
    .18s ease both;
}


.language-menu-v12[hidden] {
  display: none !important;
}


/* ==========================================================
   OPTION
   ========================================================== */

.language-option-v12 {
  width: 100%;

  min-height: 45px;

  display: grid;

  grid-template-columns:
    35px minmax(0,1fr) 20px;

  align-items: center;

  gap: 8px;

  padding:
    0 9px;

  border: 0;

  border-radius:
    9px;

  background:
    transparent;

  color:
    #aeb9ca;

  cursor: pointer;

  text-align: left;

  transition:
    background .15s ease,
    color .15s ease,
    transform .15s ease;
}


.language-option-v12:hover {
  background:
    rgba(255,255,255,.045);

  color:
    #eef2f7;
}


.language-option-v12.active {
  background:
    linear-gradient(
      90deg,
      rgba(255,181,31,.11),
      rgba(255,181,31,.025)
    );

  color:
    #f1f4f8;
}


/* language code */

.language-code-v12 {
  height: 25px;

  display: grid;
  place-items: center;

  border:
    1px solid
    rgba(60,83,117,.78);

  border-radius:
    7px;

  background:
    rgba(14,28,49,.8);

  color:
    #8fa0b7;

  font-size:
    9px;

  font-weight:
    800;

  letter-spacing:
    .05em;
}


.language-option-v12.active
.language-code-v12 {
  border-color:
    rgba(255,183,31,.36);

  background:
    rgba(255,181,31,.08);

  color:
    #ffbd38;
}


/* full name */

.language-name-v12 {
  font-size:
    12px;

  font-weight:
    580;
}


/* active check */

.language-check-v12 {
  text-align:
    center;

  color:
    #ffba2e;

  font-size:
    12px;

  font-weight:
    800;
}


/* ==========================================================
   SIGN IN NEXT TO LANGUAGE
   ========================================================== */

#headerAccountButton {
  min-width:
    103px !important;

  height:
    46px !important;

  min-height:
    46px !important;
}


/* ==========================================================
   ANIMATION
   ========================================================== */

@keyframes languageMenuOpenV12 {

  from {
    opacity: 0;

    transform:
      translateY(-5px)
      scale(.98);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media(max-width:760px) {

  .workspace-header {
    gap: 6px !important;
  }


  .language-toggle-v12 {
    min-width: 76px;

    padding:
      0 9px;
  }


  .language-menu-v12 {
    width: 190px;
  }


  #headerAccountButton {
    min-width:
      88px !important;

    padding:
      0 12px !important;
  }

}


/* ==========================================================
   NOYTRIX APP VIEWPORT V15
   One application = one viewport
   ========================================================== */


/* браузерная страница больше никогда не скроллится */

html,
body {
  width: 100%;
  height: 100%;
  min-height: 0 !important;

  overflow: hidden !important;
}


/* приложение строго в экран */

.app-shell {
  width: 100%;
  height: 100vh;
  height: 100dvh;

  min-height: 0 !important;
  max-height: 100vh;
  max-height: 100dvh;

  overflow: hidden !important;
}


/* sidebar тоже никогда не двигает страницу */

.sidebar {
  position: relative !important;

  top: auto !important;

  height: 100vh !important;
  height: 100dvh !important;

  min-height: 0 !important;

  overflow: hidden !important;
}


/* main area */

.workspace {
  width: 100%;

  height: 100vh;
  height: 100dvh;

  min-width: 0;
  min-height: 0 !important;

  max-width: 1650px;
  max-height: 100vh;
  max-height: 100dvh;

  display: flex;
  flex-direction: column;

  margin: 0 auto !important;

  padding:
    16px
    clamp(20px, 2.2vw, 38px)
    16px !important;

  overflow: hidden !important;
}


/* верхняя строка EN + Sign in */

.workspace-header {
  flex: 0 0 58px;

  min-height: 58px;

  margin: 0 0 10px !important;

  align-items: center !important;
}


/*
   Любая страница занимает ровно оставшееся пространство.
   Старые страницы при необходимости могут прокручиваться
   ВНУТРИ себя, но браузер не двигается.
*/

.screen.active {
  flex: 1 1 auto;

  width: 100%;

  min-width: 0;
  min-height: 0;

  overflow: auto;

  scrollbar-width: none;
}


.screen.active::-webkit-scrollbar {
  display: none;
}


/* Tracking вообще не должен скроллить весь экран */

#screen-tracking.active {
  overflow: hidden !important;
}


/* Sidebar chats остаются внутренним списком */

.sidebar-chat-list-v9 {
  min-height: 0;

  overflow-y: auto !important;

  overscroll-behavior: contain;
}


@media(max-width:760px) {

  /*
    На телефоне физически невозможно вместить
    все desktop-экраны без прокрутки.
  */

  html,
  body {
    overflow: auto !important;
  }

  .app-shell,
  .workspace {
    height: auto;
    max-height: none;
  }

}


/* ==========================================================
   NOYTRIX CHECK POLISH V36
   ONLY MAIN CHECK SCREEN
   ========================================================== */


/* ==========================================================
   HERO — slightly higher
   ========================================================== */

#screen-check
.ntx-check-hero-v36 {
  transform:
    translateY(-18px) !important;

  transition:
    transform .35s ease !important;
}


/* ==========================================================
   INPUT — slightly bigger / more premium
   ========================================================== */

#screen-check
.ntx-check-input-v36 {
  min-height:
    66px !important;

  height:
    66px !important;

  padding-left:
    24px !important;

  padding-right:
    78px !important;

  font-size:
    15px !important;

  font-weight:
    650 !important;

  letter-spacing:
    -.01em !important;
}


/*
   Make input wrapper itself slightly taller too.
*/

#screen-check
.ntx-check-input-v36:where(input,textarea) {
  border-radius:
    18px !important;
}


/* ==========================================================
   FREE CHECK STATUS
   ========================================================== */

#screen-check
.ntx-free-row-v36 {
  display:
    inline-flex !important;

  align-items:
    center !important;

  justify-content:
    center !important;

  gap:
    13px !important;

  min-height:
    32px !important;

  margin-top:
    14px !important;

  padding:
    5px 11px !important;

  border:
    1px solid
    rgba(65,91,129,.18) !important;

  border-radius:
    999px !important;

  background:
    rgba(8,19,39,.34) !important;

  box-shadow:
    inset 0 1px 0
    rgba(255,255,255,.018) !important;
}


/* Free check used */

#screen-check
.ntx-free-check-v36 {
  position:
    relative !important;

  color:
    #718099 !important;

  font-size:
    11px !important;

  font-weight:
    750 !important;

  line-height:
    1 !important;

  white-space:
    nowrap !important;
}


#screen-check
.ntx-free-check-v36::before {
  content: '';

  display:
    inline-block;

  width:
    6px;

  height:
    6px;

  margin-right:
    8px;

  border-radius:
    50%;

  background:
    #ffb627;

  box-shadow:
    0 0 10px
    rgba(255,182,39,.38);
}


/* Create account */

#screen-check
.ntx-create-account-v36 {
  color:
    #ffba2d !important;

  font-size:
    11px !important;

  font-weight:
    850 !important;

  line-height:
    1 !important;

  white-space:
    nowrap !important;

  cursor:
    pointer !important;

  transition:
    color .18s ease,
    text-shadow .18s ease !important;
}


#screen-check
.ntx-create-account-v36:hover {
  color:
    #ffd15d !important;

  text-shadow:
    0 0 16px
    rgba(255,185,40,.20) !important;
}


/* ==========================================================
   YOUR CURRENT DESKTOP HEIGHT
   ========================================================== */

@media (
  min-width:761px
) and (
  max-height:950px
) {

  #screen-check
  .ntx-check-hero-v36 {
    transform:
      translateY(-16px) !important;
  }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media(max-width:760px) {

  #screen-check
  .ntx-check-hero-v36 {
    transform:
      none !important;
  }


  #screen-check
  .ntx-check-input-v36 {
    min-height:
      58px !important;

    height:
      58px !important;

    font-size:
      14px !important;
  }

}

/* PROFILE TOP ALIGN FIX START */


/* ----------------------------------------------------------
   Глобальный верхний header В PROFILE ОСТАЁТСЯ.
   Только нормально размещаем его.
   ---------------------------------------------------------- */

body.p56-profile-open .workspace-header {
    display: flex !important;

    width: 100% !important;
    max-width: 100% !important;

    min-height: 62px !important;

    margin:
        0 0 10px 0 !important;

    padding:
        8px 14px 4px 0 !important;

    align-items:
        center !important;

    justify-content:
        flex-end !important;

    overflow:
        visible !important;
}


/* ----------------------------------------------------------
   EN + Sign in
   ---------------------------------------------------------- */

body.p56-profile-open
.workspace-header
.header-actions {
    width:
        auto !important;

    max-width:
        100% !important;

    margin-left:
        auto !important;

    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        flex-end !important;

    flex-wrap:
        nowrap !important;

    gap:
        10px !important;
}


/* ----------------------------------------------------------
   LANGUAGE
   ---------------------------------------------------------- */

body.p56-profile-open
.workspace-header
.language-switcher {
    flex:
        0 0 auto !important;

    min-height:
        46px !important;

    padding:
        3px !important;

    display:
        flex !important;

    align-items:
        center !important;

    border-radius:
        12px !important;
}


body.p56-profile-open
.workspace-header
.language-switcher button {
    min-width:
        42px !important;

    height:
        38px !important;

    padding:
        0 10px !important;

    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    white-space:
        nowrap !important;

    border-radius:
        9px !important;
}


/* ----------------------------------------------------------
   SIGN IN
   ---------------------------------------------------------- */

body.p56-profile-open
.workspace-header
#headerAccountButton {
    flex:
        0 0 auto !important;

    min-width:
        116px !important;

    height:
        46px !important;

    margin:
        0 !important;

    padding:
        0 18px !important;

    display:
        inline-flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    white-space:
        nowrap !important;

    border-radius:
        12px !important;

    box-sizing:
        border-box !important;
}


/* ----------------------------------------------------------
   Не даём Profile разъезжаться вправо
   ---------------------------------------------------------- */

body.p56-profile-open
.workspace {
    min-width:
        0 !important;

    overflow-x:
        hidden !important;
}


body.p56-profile-open
#screen-profile-v56 {
    width:
        100% !important;

    max-width:
        100% !important;

    min-width:
        0 !important;
}


body.p56-profile-open
#screen-profile-v56
.p56-root {
    width:
        100% !important;

    max-width:
        100% !important;

    min-width:
        0 !important;
}


/* ----------------------------------------------------------
   Верх Profile тоже не должен налезать на login
   ---------------------------------------------------------- */

body.p56-profile-open
#screen-profile-v56
.p56-header {
    width:
        100% !important;

    max-width:
        100% !important;

    min-width:
        0 !important;

    margin-top:
        0 !important;
}


/* PROFILE TOP ALIGN FIX END */

