﻿:root {
  --bg: #0f1e3c;
  --panel: #ffffff;
  --panel-soft: #f0f4ff;
  --line: #d9e2f2;
  --line-strong: #7a869a;
  --ink: #0f1e3c;
  --muted: #7a869a;
  --primary: #4a6cf7;
  --primary-soft: rgba(74, 108, 247, 0.12);
  --accent-pink: #e03b8b;
  --accent-blue: #253b90;
  --accent-sky: #639bff;
  --stat-gray: #7a869a;
  --text-on-dark: #ffffff;
  --text-soft: #f0f4ff;
  --amber: #b46b00;
  --amber-soft: #fff5df;
  --danger: #ba3a2e;
  --danger-soft: #fff0ee;
  --success: #26734d;
  --shadow: 0 18px 44px rgba(15, 30, 60, 0.18);
  --font-ui: "Noto Sans SC", "Source Han Sans SC", "Noto Sans CJK SC", "思源黑体 CN", "Noto Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-ui);
}

body:not(.app-started) {
  background: #ffffff;
}

.version-banner {
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 9999;
  padding: 6px 10px;
  color: #fff;
  background: #d14b2f;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 20, 32, 0.42);
  backdrop-filter: blur(6px);
}

.progress-overlay.hidden {
  display: none;
}

.progress-card {
  width: min(420px, 100%);
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.price-edit-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 30, 60, 0.42);
}

.price-edit-backdrop.hidden {
  display: none;
}

.price-edit-card {
  width: min(520px, 100%);
  display: grid;
  gap: 18px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #d9e2f2;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 30, 60, 0.22);
}

.price-edit-head,
.price-edit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-edit-head h3 {
  margin: 0;
  color: #0f1e3c;
  font-size: 20px;
  font-weight: 400;
}

.price-edit-grid {
  display: grid;
  gap: 10px;
}

.price-edit-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f8fbff;
  border: 1px solid #d9e2f2;
  border-radius: 8px;
}

.price-edit-row span {
  color: #0f1e3c;
  font-size: 14px;
}

.price-edit-row input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  color: #253b90;
  background: #ffffff;
  border: 1px solid #b2bbcb;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
}

.price-edit-row em {
  color: #111111;
  font-size: 12px;
  font-style: normal;
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.progress-head strong {
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.progress-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  background: #e8eef5;
  border-radius: 999px;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-sky), var(--accent-pink));
  border-radius: inherit;
  transition: width 0.28s ease;
}

.progress-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

button,
input {
  font: inherit;
}

button,
.primary-button,
.secondary-button,
.ghost-button {
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
  text-decoration: none;
}

.app-shell {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 102px 28px 28px 268px;
}

body:not(.app-started) .app-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 46px;
  overflow: visible;
}

body:not(.app-started) .sidebar-brand,
body:not(.app-started) .site-header,
body:not(.app-started) .side-nav,
body:not(.app-started) main {
  display: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  margin: 0;
  padding: 0 28px;
  background: var(--bg);
  border-bottom: 1px solid rgba(240, 244, 255, 0.18);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.header-title {
  color: var(--text-on-dark);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.sidebar-brand {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 82px;
  padding: 0;
  background: var(--bg);
  border-right: 1px solid rgba(240, 244, 255, 0.18);
  border-bottom: 1px solid rgba(240, 244, 255, 0.18);
}

.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: grid;
  align-content: start;
  gap: 8px;
  width: 240px;
  padding: 102px 18px 18px;
  background: var(--bg);
  border-right: 1px solid rgba(240, 244, 255, 0.18);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.side-nav a:hover,
.side-nav a.is-active {
  color: var(--text-on-dark);
  background: rgba(74, 108, 247, 0.22);
  border-color: rgba(99, 155, 255, 0.45);
}

.side-nav a.is-active {
  box-shadow: inset 4px 0 0 var(--primary);
}

.side-nav a:hover {
  transform: translateX(2px);
}

.app-page[hidden],
.instruction-image-placeholder[hidden],
.instruction-image-placeholder.is-hidden,
.next-actions-panel[hidden] {
  display: none !important;
}

.site-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 18px;
}

.site-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-download-button {
  min-height: 40px;
  padding: 0 18px;
  color: #94a3b8;
  background: #e5e7eb;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: none;
  cursor: not-allowed;
}

.header-download-button.is-ready {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 12px 26px rgba(74, 108, 247, 0.28);
  cursor: pointer;
}

.header-download-button:disabled:not(.is-ready) {
  opacity: 0.85;
}

.account-button {
  position: relative;
  min-height: 42px;
  padding: 0;
  background: transparent;
  border: 0;
}

.account-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--text-on-dark);
  background: rgba(240, 244, 255, 0.1);
  border: 1px solid rgba(240, 244, 255, 0.36);
  border-radius: 50%;
  font-size: 20px;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.account-vip {
  position: absolute;
  top: -8px;
  right: -10px;
  display: none;
  padding: 2px 6px;
  color: #7a4b00;
  background: linear-gradient(135deg, #fff7b0, #f6b73c);
  border: 1px solid rgba(122, 75, 0, 0.2);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(180, 111, 0, 0.25);
}

.account-button.is-vip .account-icon {
  background: #e03b8b;
  border-color: transparent;
  box-shadow: none;
}

.account-button.is-vip .account-vip {
  display: inline-flex;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  margin-bottom: 14px;
}

body:not(.app-started) .hero {
  position: relative;
  display: block;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.hero-cover {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    url("./assets/frontpage.jpg") top center / cover no-repeat;
}

body:not(.app-started) .hero-cover {
  height: min(46.875vw, 900px);
  min-height: 480px;
}

body.app-started .hero {
  display: block;
  grid-template-columns: 1fr;
  min-height: 0;
}

body.app-started .hero-cover {
  display: none;
}

body.app-started .landing-account-button,
body.app-started .hero-copy,
body.app-started .hero-privacy,
body.app-started .hero-guide-text,
body.app-started .hero-guide-title,
body.app-started .instant-know-panel,
body.app-started .download-guide-carousel,
body.app-started .capability-grid,
body.app-started .hero-meta {
  display: none !important;
}

body.app-started .hero-actions {
  display: none;
}

body.app-started .app-upload-actions {
  display: flex;
  justify-content: center;
  justify-self: stretch;
  width: 100%;
  margin-top: 0;
  margin-right: auto;
  margin-left: auto;
}

body.app-started .hero-lower {
  display: grid;
  grid-column: 1 / -1;
  justify-items: center;
  width: 100%;
  max-width: none;
  padding: 8px 0 24px;
}

body.app-started #upload-russian-section {
  width: 100%;
  justify-self: stretch;
}

body.app-started #upload-russian-section .hero-actions {
  display: flex;
  justify-content: center;
  place-self: center stretch;
  width: 100%;
  text-align: center;
}

body.app-started #upload-russian-section .hero-actions .primary-button {
  display: inline-flex;
  width: auto;
}

.hero-lower {
  position: relative;
  z-index: 5;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 34px;
}

.app-upload-actions {
  display: none;
}

body:not(.app-started) .app-upload-actions {
  display: none !important;
}

.landing-account-button {
  position: absolute;
  top: 26px;
  right: 28px;
  z-index: 3;
  width: 58px;
  height: 58px;
  padding: 0;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(15, 23, 42, 0.42);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(5px);
}

.landing-account-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #5b616c;
  font-size: 31px;
}

.landing-logo {
  display: none;
}

body:not(.app-started) .landing-logo {
  position: absolute;
  top: 24px;
  right: 8px;
  z-index: 2;
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 42px;
  filter: drop-shadow(0 14px 28px rgba(24, 46, 80, 0.16));
}

.hero-copy,
.hero-card,
.upload-panel,
.results-panel,
.modal-card,
.result-block,
.upgrade-panel,
.metric-card,
.privacy-box,
.trial-warning {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-copy {
  grid-column: 1 / -1;
  position: relative;
  padding: 24px;
  box-shadow: var(--shadow);
}

body:not(.app-started) .hero-copy {
  position: absolute;
  left: 5.9vw;
  top: 41%;
  max-width: min(46vw, 760px);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: translateY(-18%);
}

.hero-card {
  grid-column: 1 / -1;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.brand-logo {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.18);
}

.eyebrow,
.section-kicker {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  font-size: 26px;
  line-height: 1.2;
}

.hero-title {
  margin: 8px 0 16px;
  text-align: center;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

body:not(.app-started) .hero-title {
  margin-top: 0;
  margin-bottom: 13px;
  color: #07295f;
  text-align: left;
  font-family: var(--font-ui);
  font-size: clamp(28px, 2.75vw, 54px);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
}

h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.hero-text,
.step-card p,
.dropzone-text,
.privacy-box p,
.trial-warning p,
.result-head p,
.upgrade-panel p,
.modal-copy {
  color: var(--muted);
  line-height: 1.45;
}

.hero-text {
  margin-bottom: 14px;
}

.hero-main-text {
  color: var(--ink);
  text-align: center;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.5;
}

body:not(.app-started) .hero-main-text {
  color: #111827;
  text-align: left;
  font-size: clamp(15px, 1.15vw, 22px);
  font-weight: 500;
  line-height: 2.2;
}

body:not(.app-started) .hero-cover .hero-actions {
  position: absolute;
  left: 41.3%;
  top: calc(89% - 74px);
  z-index: 4;
  margin: 0;
}

body:not(.app-started) .hero-cover .hero-actions .primary-button {
  min-width: min(18vw, 340px);
  min-height: 59px;
  border-radius: 10px;
  font-size: clamp(20px, 1.55vw, 30px);
  box-shadow: 0 16px 26px rgba(67, 82, 210, 0.22);
}

.instant-know-panel {
  width: min(1680px, calc(100% - 96px));
  margin: 4px auto 20px;
  font-family: var(--font-ui);
}

.instant-know-panel h2 {
  margin: 0 0 10px;
  color: #4b5563;
  font-size: clamp(18px, 1.2vw, 24px);
  font-weight: 800;
}

.instant-know-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 42px;
  padding: 22px 30px;
  width: 100%;
  min-width: 0;
  color: #ffffff;
  background: #5867ee;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(37, 59, 144, 0.16);
}

.instant-know-grid span {
  min-width: 0;
  font-size: clamp(14px, 1vw, 21px);
  font-weight: 800;
  line-height: 1.3;
  white-space: normal;
}

.instant-know-grid i {
  margin-right: 8px;
  color: #e03b8b;
  font-style: normal;
  font-weight: 950;
  -webkit-text-stroke: 0.45px currentColor;
}

.hero-guide-title {
  max-width: 1120px;
  margin: 22px auto 0;
  color: #0f1e3c;
  font-size: 22px;
  font-weight: 700;
}

.hero-guide-text {
  max-width: 1120px;
  margin: 26px auto 12px;
  color: #334155;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
}

.download-guide-carousel {
  width: 100%;
  margin: 12px auto 16px;
}

.download-guide-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  min-height: 260px;
  max-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
}

body:not(.app-started) .download-guide-stage {
  min-height: 430px;
  border-color: #e3e7ee;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.download-guide-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  opacity: 0;
  animation: guideSlideShow 7.2s steps(1, end) infinite;
}

.download-guide-slide:nth-child(1) {
  animation-delay: 0s;
}

.download-guide-slide:nth-child(2) {
  animation-delay: 1.2s;
}

.download-guide-slide:nth-child(3) {
  animation-delay: 2.4s;
}

.download-guide-slide:nth-child(4) {
  animation-delay: 3.6s;
}

.download-guide-slide:nth-child(5) {
  animation-delay: 4.8s;
}

.download-guide-slide:nth-child(6) {
  animation-delay: 6s;
}

@keyframes guideSlideShow {
  0%,
  16.666% {
    opacity: 1;
  }

  16.667%,
  100% {
    opacity: 0;
  }
}

.hero-actions,
.upgrade-actions,
.modal-actions,
.status-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-actions {
  justify-content: center;
  margin-top: 24px;
}

.hero-actions .primary-button {
  min-height: 58px;
  padding: 0 42px;
  border-radius: 16px;
  font-size: 20px;
  box-shadow: 0 16px 36px rgba(62, 127, 132, 0.25);
}

.hero-privacy {
  max-width: 1120px;
  margin: 22px auto 0;
  padding: 16px 20px;
  color: #334155;
  background: #ffffff;
  border: 1px solid #dbe7ef;
  border-radius: 14px;
  line-height: 1.55;
  text-align: center;
}

.hero-privacy strong,
.hero-privacy p {
  margin: 0;
}

.hero-privacy p {
  margin-top: 4px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 1120px;
  margin: 16px auto 0;
}

.capability-card {
  padding: 12px 14px;
  color: #26364d;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbfd 100%);
  border: 1px solid #dbe7ef;
  border-radius: 14px;
  line-height: 1.55;
  font-size: 14px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.hero-meta {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.secondary-button {
  color: var(--ink);
  background: var(--panel-soft);
  border-color: var(--line);
}

.ghost-button {
  color: var(--primary);
  background: #fff;
  border-color: var(--line-strong);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.trust-strip span,
.badge,
.table-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.trust-strip span {
  color: var(--muted);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.step-card {
  padding: 10px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-card p {
  margin: 6px 0 0;
  font-size: 13px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 6px;
  color: #fff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

main {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 14px;
}

.upload-panel,
.results-panel {
  min-width: 0;
  max-width: 100%;
  padding: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.panel-head,
.result-head,
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.badge-neutral {
  color: var(--muted);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.badge-accent {
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid #f0d8a5;
}

.badge-success {
  color: var(--success);
  background: #ebf7ef;
  border: 1px solid #b8dcc5;
}

.dropzone {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--panel-soft);
}

#report-file {
  width: 100%;
  margin-bottom: 10px;
}

.dropzone-title {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 800;
}

.meta-list {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.privacy-box {
  margin-top: 10px;
  padding: 12px;
  background: var(--primary-soft);
  border-color: rgba(99, 155, 255, 0.38);
}

.privacy-box p {
  margin-bottom: 0;
}

.results-panel {
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.results-panel.is-visible {
  display: block;
}

.results-panel > .panel-head,
.results-panel > .trial-warning {
  display: none;
}

.results-panel:not(.is-visible) .instant-value-board,
.results-panel:not(.is-visible) .result-block {
  display: none !important;
}

.trial-warning {
  margin-top: 14px;
  padding: 12px;
  background: var(--danger-soft);
  border-color: #edb8b2;
}

.trial-warning p {
  margin-bottom: 0;
}

.subscription-page {
  display: grid;
  gap: 18px;
  color: var(--ink);
}

[data-subscription-view][hidden] {
  display: none !important;
}

.subscription-hero,
.subscription-status,
.pricing-card,
.value-strip,
.comparison-section,
.subscription-faq,
.subscription-dashboard {
  background: #ffffff;
  border: 1px solid #e7edf6;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 30, 60, 0.08);
}

.subscription-hero {
  display: grid;
  gap: 20px;
  padding: 24px;
  background:
    linear-gradient(110deg, rgba(240, 244, 255, 0.86), rgba(255, 255, 255, 0.98) 42%),
    #ffffff;
}

.subscription-hero h2,
.section-heading h3 {
  margin: 0;
  color: #0f1e3c;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}

.subscription-hero p,
.section-heading p,
.pricing-card li,
.value-strip p,
.subscription-faq p {
  color: #5d6578;
  font-weight: 400;
}

.subscription-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.8;
}

.subscription-status {
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(224, 59, 139, 0.12), rgba(240, 244, 255, 0.9)),
    #ffffff;
}

.subscription-status h3 {
  margin: 0;
  color: #0f1e3c;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
}

.subscription-status p {
  margin: 10px 0 0;
  color: #e03b8b;
  font-size: 16px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #d9e2f2;
  border-radius: 10px;
}

.pricing-card.is-featured {
  position: relative;
  border-color: rgba(121, 154, 245, 0.72);
  background:
    linear-gradient(180deg, rgba(240, 244, 255, 0.96), #ffffff 34%),
    #ffffff;
  box-shadow: 0 20px 42px rgba(37, 59, 144, 0.12);
}

.pricing-card-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: #253b90;
  background: #f0f4ff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
}

.pricing-card.is-featured .pricing-card-head > span {
  color: #ffffff;
  background: #253b90;
}

.pricing-card h3 {
  margin: 14px 0 0;
  color: #0f1e3c;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.price-line {
  margin: 8px 0 0;
  color: #0f1e3c;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-line span {
  color: #7a869a;
  font-size: 15px;
  font-weight: 400;
}

.subscription-price-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  color: #0f1e3c;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.subscription-price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.subscription-price-item {
  display: grid;
  grid-template-columns: minmax(64px, 0.7fr) minmax(96px, 0.95fr) minmax(50px, 0.5fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: #ffffff;
  background: #799af5;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
}

.subscription-price-item.is-recommended {
  background: #313c8a;
  border-color: transparent;
}

.pricing-card.is-featured .subscription-price-item.is-month-card,
.pricing-card.is-featured .subscription-price-item.is-year-card,
.pricing-card.is-featured .subscription-price-item.is-lifetime-card {
  background: #799af5 !important;
}

.pricing-card.is-featured .subscription-price-item.is-recommended {
  background: #313c8a !important;
}

.subscription-price-item.is-lifetime-card {
  grid-template-columns: minmax(96px, 0.78fr) minmax(92px, 0.72fr) minmax(62px, 0.42fr) minmax(28px, 0.18fr);
  gap: 5px;
  padding-inline: 12px;
}

.subscription-price-item.is-lifetime-card .subscription-price-name {
  font-size: 15px;
}

.subscription-price-item.is-lifetime-card .subscription-price-money {
  font-size: 30px !important;
}

.subscription-price-item.is-lifetime-card em {
  font-size: 12px;
  justify-self: end;
  padding-inline: 4px;
}

.subscription-price-item.is-lifetime-card sup {
  align-self: center;
  justify-self: start;
  margin: 0;
  font-size: 10px;
}

.subscription-price-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.subscription-price-name small {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 0 5px;
  color: #ffffff;
  background: transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
}

.subscription-price-value {
  display: contents;
  min-width: 0;
}

.subscription-price-money {
  color: #e03b8b !important;
  font-size: 34px !important;
  font-weight: 400 !important;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.subscription-price-money strong {
  font: inherit;
  color: #e03b8b !important;
  font-weight: 400 !important;
}

.subscription-price-item em {
  display: inline-flex;
  align-items: center;
  min-height: 1.1em;
  justify-self: start;
  margin-bottom: 0;
  padding: 1px 5px;
  color: #ffffff;
  background: transparent;
  font-size: 15px;
  font-style: normal;
  line-height: 1.1;
  white-space: nowrap;
}

.subscription-price-item em.is-month,
.subscription-price-item em.is-year,
.subscription-price-item em.is-lifetime {
  background: transparent;
}

.subscription-price-item em.is-quarter {
  background: transparent;
}

.subscription-price-item sup {
  align-self: flex-start;
  margin: 2px 0 0 -4px;
  color: #ffa700;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.pricing-card.is-featured .promo-button {
  position: absolute;
  top: 24px;
  right: 24px;
  min-height: 26px;
  height: 26px;
  padding: 0 10px;
  color: #313c8a;
  background: #ffffff;
  border-color: rgba(49, 60, 138, 0.25);
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
}

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

.pricing-card li {
  position: relative;
  padding-left: 22px;
  color: #4d5870;
  font-size: 15px;
  line-height: 1.65;
}

.pricing-card li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  background: #639bff;
  border-radius: 50%;
}

.pricing-card.is-featured li::before {
  background: #e03b8b;
}

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

.plan-button-grid button {
  min-width: 0;
  min-height: 44px;
  padding-inline: 10px;
  font-size: 15px;
  white-space: nowrap;
}

.subscription-dashboard {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.partner-code-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #d9e2f2;
  border-radius: 8px;
}

.partner-copy-button,
.settlement-help-button {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #253b90;
  background: #ffffff;
  border: 1px solid #d9e2f2;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.partner-copy-button:hover,
.settlement-help-button:hover {
  background: #f0f4ff;
  border-color: #639bff;
}

.partner-copy-toast {
  position: absolute;
  right: 12px;
  bottom: 12px;
  opacity: 0;
  transform: translateY(4px);
  color: #26734d;
  font-size: 13px;
  font-style: normal;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.partner-copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.partner-settlement-card {
  position: relative;
}

.settlement-help-button {
  top: 8px;
  right: 8px;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  padding: 0;
  color: #b46b00;
  border-color: #f0d199;
  font-weight: 600;
  font-size: 10px;
  line-height: 1;
  aspect-ratio: 1 / 1;
}

.partner-code-card span,
.subscription-metric-grid span,
.chart-head span {
  color: #7a869a;
  font-size: 13px;
}

.partner-code-card strong {
  color: #253b90;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0;
}

.partner-code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.danger-soft-button {
  color: #ba3a2e;
  border-color: #edb8b2;
  background: #fff0ee;
}

.code-status-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 24px;
  padding: 0 8px;
  color: #26734d;
  background: #ebf7ef;
  border: 1px solid #b8dcc5;
  border-radius: 999px;
  font-size: 12px;
}

.code-status-badge.is-stopped {
  color: #ba3a2e;
  background: #fff0ee;
  border-color: #edb8b2;
}

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

.subscription-metric-grid div {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
  min-height: 0;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #d9e2f2;
  border-radius: 8px;
}

.price-summary-card {
  position: relative;
  padding-right: 74px !important;
  min-height: max-content;
}

.price-edit-button {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 28px;
  padding: 0 10px;
  color: #253b90;
  background: #ffffff;
  border: 1px solid #d9e2f2;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.price-edit-button:hover {
  background: #f0f4ff;
  border-color: #639bff;
}

.admin-public-price-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #d9e2f2;
  border-radius: 8px;
}

.admin-public-price-card > span {
  color: #7a869a;
  font-size: 13px;
}

.admin-price-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.price-edit-button.is-inline {
  position: static;
  min-height: 26px;
  white-space: nowrap;
}

.price-lineup {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  align-items: baseline;
  min-width: 0;
  white-space: normal;
}

.price-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  white-space: nowrap;
}

.price-chip-label {
  color: inherit;
  font-size: inherit;
}

.price-chip-amount {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.price-chip-amount.is-empty {
  color: #7a869a;
  font-size: 13px;
  font-weight: 400;
}

.price-chip-unit {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.subscription-metric-grid .price-lineup,
.subscription-metric-grid .price-chip,
.subscription-metric-grid .price-chip-label,
.subscription-metric-grid .price-chip-amount,
.subscription-metric-grid .price-chip-unit {
  color: #0f1e3c;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}

.subscription-metric-grid strong {
  color: #0f1e3c;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.chart-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #d9e2f2;
  border-radius: 8px;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chart-head strong {
  color: #0f1e3c;
  font-size: 14px;
  font-weight: 400;
  text-align: right;
}

.mini-bar-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(22px, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 150px;
  padding-top: 10px;
}

.mini-bar {
  display: grid;
  align-content: end;
  gap: 7px;
  min-width: 0;
  height: 138px;
}

.mini-bar span {
  display: block;
  min-height: 14px;
  color: #5d6578;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}

.mini-bar i {
  display: block;
  width: 100%;
  min-height: 8px;
  background: linear-gradient(180deg, #639bff, #253b90);
  border-radius: 6px 6px 2px 2px;
}

.partner-greeting {
  margin: 0;
  color: #26734d;
  font-size: 16px;
}

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

.source-chart {
  display: grid;
  gap: 10px;
}

.source-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 10px;
  color: #5d6578;
  font-size: 13px;
}

.source-row i {
  display: block;
  height: 12px;
  background: linear-gradient(90deg, #e03b8b, #639bff);
  border-radius: 999px;
}

.admin-data-section {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.admin-channel-list {
  display: grid;
  gap: 12px;
}

.admin-channel-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #d9e2f2;
  border-radius: 8px;
}

.admin-channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-channel-head h4 {
  margin: 0;
  color: #0f1e3c;
  font-size: 17px;
  font-weight: 400;
}

.admin-channel-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  color: #5d6578;
  font-size: 14px;
  line-height: 1.5;
}

.admin-channel-fields strong {
  color: #0f1e3c;
  font-weight: 400;
}

.admin-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-code-row .is-inline {
  min-height: 28px;
  padding: 0 10px;
  font-size: 13px;
}

.admin-channel-note {
  min-height: 38px;
  padding: 10px;
  color: #5d6578;
  background: #ffffff;
  border: 1px dashed #b2bbcb;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.editable-text {
  display: inline-block;
  min-width: 54px;
  padding: 3px 5px;
  border-radius: 5px;
  cursor: pointer;
}

.editable-text:hover {
  background: #f0f4ff;
  color: #253b90;
}

.payment-record-box {
  min-width: 180px;
  min-height: 42px;
  padding: 8px 10px;
  color: #5d6578;
  background: #f8fbff;
  border: 1px solid #d9e2f2;
  border-radius: 6px;
  line-height: 1.55;
  white-space: pre-line;
}

.admin-user-table select,
.admin-user-table input {
  width: 100%;
  min-width: 120px;
  padding: 7px 8px;
  color: #0f1e3c;
  background: #ffffff;
  border: 1px solid #b2bbcb;
  border-radius: 6px;
  font: inherit;
}

.admin-user-table .admin-user-merged {
  vertical-align: middle;
}

.admin-user-table .admin-user-question {
  min-width: 240px;
  white-space: pre-line;
  line-height: 1.45;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: #e7edf6;
}

.value-strip div {
  padding: 18px;
  background: #ffffff;
}

.value-strip span {
  display: block;
  color: #253b90;
  font-size: 16px;
  font-weight: 400;
}

.value-strip p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.comparison-section,
.subscription-faq {
  padding: 22px;
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.comparison-table-shell {
  overflow-x: auto;
  border: 1px solid #d9e2f2;
  border-radius: 8px;
}

.comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 14px;
}

.feature-comparison-table {
  font-size: 18px;
}

.comparison-table th,
.comparison-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e7edf6;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.comparison-table th {
  color: #253b90;
  background: #f0f4ff;
}

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

.feature-comparison-table .check-mark {
  color: #e03b8b;
  font-weight: 950;
  -webkit-text-stroke: 0.35px currentColor;
}

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

.subscription-faq details {
  padding: 14px 16px;
  background: #f8fbff;
  border: 1px solid #d9e2f2;
  border-radius: 8px;
}

.subscription-faq summary {
  color: #0f1e3c;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
}

.subscription-faq p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

.subscription-continue {
  display: flex;
  justify-content: center;
}

@media (max-width: 980px) {
  .pricing-grid,
  .subscription-metric-grid,
  .admin-chart-grid,
  .admin-channel-fields {
    grid-template-columns: 1fr;
  }

  body:not(.app-started) .hero-cover {
    height: auto;
    min-height: 560px;
    background-position: center top;
  }

  body:not(.app-started) .hero-copy {
    top: 30%;
    left: 24px;
    max-width: calc(100% - 48px);
  }

  body:not(.app-started) .hero-cover .hero-actions {
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%);
  }

  .instant-know-panel {
    width: calc(100% - 28px);
  }

  .instant-know-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .instant-know-grid span {
    white-space: normal;
  }

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

  .subscription-price-list {
    font-size: 15px;
  }

  .subscription-price-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .subscription-price-item {
    min-height: 84px;
  }

  .subscription-price-money {
    font-size: 32px !important;
  }

  .pricing-card.is-featured .promo-button {
    top: 18px;
    right: 18px;
  }
}

.instant-value-board.is-trial-masked .dashboard-note {
  color: #7a869a;
}

.instant-value-board.is-trial-masked .dashboard-card {
  position: relative;
}

.instant-value-board.is-trial-masked .dashboard-card::before {
  content: "免费试用数值已隐藏";
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(240, 244, 255, 0.92);
  color: #5d6578;
  font-size: 12px;
  font-weight: 400;
  pointer-events: none;
}

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

.dashboard-section {
  min-width: 0;
  max-width: 100%;
  margin-top: 14px;
  padding: 14px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.07);
}

.instant-value-board {
  background:
    radial-gradient(circle at 8% 0%, rgba(74, 108, 247, 0.16), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 56%, rgba(99, 155, 255, 0.14) 100%);
}

.advanced-board {
  background:
    linear-gradient(135deg, rgba(15, 30, 60, 0.04), rgba(74, 108, 247, 0.08)),
    #ffffff;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.dashboard-head h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.dashboard-head p,
.dashboard-note {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(99, 155, 255, 0.38);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-slider {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 14px;
  padding: 2px 0 14px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.dashboard-slider::-webkit-scrollbar {
  display: none;
}

.dashboard-slider.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.dashboard-card {
  position: relative;
  flex: 0 0 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 390px;
  padding: clamp(18px, 2.5vw, 28px);
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 22%, rgba(255, 255, 255, 0.9), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.84)),
    var(--panel);
  border: 1px solid rgba(184, 197, 211, 0.82);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.11);
  scroll-snap-align: start;
}

.dashboard-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 128px;
  height: 128px;
  background: radial-gradient(circle, rgba(74, 108, 247, 0.12), transparent 68%);
  pointer-events: none;
}

.card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.card-topline span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--primary);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
}

.card-topline strong {
  font-size: 22px;
}

.summary-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

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

.summary-grid div,
.risk-count {
  position: relative;
  padding: 10px;
  background: rgba(249, 251, 253, 0.88);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.mini-edit-button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-height: 26px;
  padding: 0 9px;
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.summary-grid span,
.risk-count span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.summary-grid strong,
.risk-count strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.compact-button {
  position: relative;
  z-index: 1;
  min-height: 34px;
  margin-top: 12px;
}

.rank-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.hot-split-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
  margin-top: 14px;
}

.hot-split-layout .rank-list,
.hot-split-layout .bar-chart {
  margin-top: 0;
}

.bar-chart {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(48px, 72px);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.bar-label {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  background: #e7edf4;
  border-radius: 999px;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-sky));
  border-radius: inherit;
}

.bar-row strong {
  color: var(--primary);
  font-size: 12px;
  text-align: right;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 2px 0 0;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  min-height: 0;
  background: #ffffff;
  border: 2px solid #8d99a8;
  border-radius: 999px;
  box-shadow: none;
}

.carousel-dot.is-active {
  background: #111827;
  border-color: #111827;
}

.dashboard-table-shell {
  position: relative;
  z-index: 1;
  max-height: 245px;
  margin-top: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

#dash-profit-products {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.dashboard-mini-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  table-layout: fixed;
}

#dash-profit-products .dashboard-mini-table {
  min-width: 1160px;
}

.dashboard-mini-table th,
.dashboard-mini-table td {
  width: auto;
  min-width: 76px;
  max-width: none;
  padding: 8px 9px;
  border-right: 1px solid #eef2f6;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
}

.dashboard-mini-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #26364d;
  background: #eef3f8;
  font-weight: 900;
}

.dashboard-mini-table .name-cell {
  min-width: 180px;
  font-weight: 800;
}

.copy-sku-button {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 22px;
  padding: 0 6px;
  color: #253b90;
  background: #f0f4ff;
  border: 1px solid rgba(74, 108, 247, 0.2);
  border-radius: 6px;
  box-shadow: none;
  cursor: pointer;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-sku-button:hover {
  color: #ffffff;
  background: #253b90;
  border-color: #253b90;
}

.copy-sku-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  padding: 9px 12px;
  color: #ffffff;
  background: rgba(15, 30, 60, 0.92);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(15, 30, 60, 0.2);
  font-size: 13px;
  font-weight: 400;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.copy-sku-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.editable-cost,
.editable-ad-flag {
  position: relative;
  min-height: 26px;
  background: #fffdf5;
  border: 1px dashed #d8aa45;
  border-radius: 6px;
  outline: none;
}

.editable-ad-flag {
  background: #fff4bf;
  font-weight: 900;
  text-align: center;
  cursor: text;
}

.editable-cost.cost-input-empty {
  background: #fff4bf;
}

.editable-cost.cost-input-cue::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 18px;
  margin-left: 2px;
  vertical-align: -3px;
  background: #8a5a00;
  animation: caretBlink 0.9s steps(1) infinite;
}

.editable-cost:focus,
.editable-ad-flag:focus {
  background: #fff8de;
  border-color: #b46b00;
  box-shadow: 0 0 0 2px rgba(180, 107, 0, 0.12);
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

.rank-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 9px;
  background: rgba(249, 251, 253, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.rank-index {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

.rank-title {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.rank-value {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.empty-dashboard {
  padding: 14px;
  color: var(--muted);
  background: rgba(249, 251, 253, 0.9);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.profit-list .rank-item {
  grid-template-columns: 28px minmax(0, 1fr);
}

.profit-list .rank-value {
  grid-column: 2;
  text-align: left;
  white-space: normal;
}

.compact-list .rank-item {
  grid-template-columns: 28px minmax(0, 1fr) auto;
}

.mini-pie {
  width: 92px;
  height: 92px;
  margin: 12px auto 0;
  background: conic-gradient(var(--primary) 0deg, var(--accent-sky) 0deg, var(--accent-pink) 0deg, var(--line) 0deg);
  border: 10px solid #f7fafc;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
}

.ad-insight-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ad-insight-grid div {
  padding: 9px;
  background: rgba(249, 251, 253, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.ad-insight-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.ad-insight-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.risk-card {
  border-color: #efc0b8;
}

.risk-card .card-topline span {
  background: var(--danger);
}

.privacy-dashboard {
  margin-top: 12px;
}

.history-upload-box {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.history-upload-box p {
  margin: 5px 0;
  color: var(--muted);
  line-height: 1.4;
}

.history-upload-box span {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

#history-file {
  display: none;
}

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

.advanced-path-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(74, 108, 247, 0.18);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.advanced-path-card strong {
  color: var(--ink);
  font-size: 20px;
}

.advanced-path-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.advanced-path-card .primary-button,
.advanced-path-card .secondary-button {
  justify-self: center;
  margin-top: 4px;
}

.advanced-path-card span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-result-jump {
  display: flex;
  justify-content: center;
  margin: 16px 0 6px;
}

.dashboard-result-jump .primary-button {
  min-height: 46px;
  padding-inline: 28px;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(74, 108, 247, 0.18);
}

.locked-slider {
  grid-auto-columns: minmax(300px, 33%);
}

.locked-card {
  min-height: 240px;
  color: #4b5565;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(243, 247, 250, 0.92)),
    repeating-linear-gradient(135deg, rgba(23, 32, 51, 0.04) 0 8px, rgba(23, 32, 51, 0.01) 8px 16px);
  filter: grayscale(0.12);
}

.lock-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 9px;
  color: #fff;
  background: #7b8796;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.locked-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.locked-metrics span {
  padding: 11px 12px;
  color: #7b8796;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed #b9c5d3;
  border-radius: 10px;
  font-weight: 800;
}

.locked-metrics strong {
  color: #233044;
  font-size: 16px;
  font-weight: 900;
}

td.cell-warning {
  background: #fff200 !important;
  color: #111827;
  font-weight: 900;
}

td.ws0-section-divider {
  border-right: 4px solid #9ca3af !important;
}

.metric-card {
  padding: 12px;
  background: var(--panel-soft);
}

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

.metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.result-block {
  min-width: 0;
  max-width: 100%;
  margin-top: 14px;
  padding: 12px;
  overflow: hidden;
}

.next-actions-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.next-action-card {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbfb 100%);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

.next-action-copy h3 {
  margin: 4px 0 8px;
  font-size: 22px;
}

.next-action-copy p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.7;
}

.next-action-steps {
  display: grid;
  gap: 14px;
  margin: 10px 0 0;
  padding-left: 22px;
  color: var(--text);
  line-height: 1.7;
}

.next-action-note {
  color: #0284c7 !important;
  font-size: 14px;
  font-weight: 900;
}

.instruction-image-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #dbe8ea;
  border-radius: 16px;
  background: #fff;
  color: var(--primary);
  text-align: center;
}

.instruction-image-placeholder img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #fff;
}

.instruction-image-placeholder img.is-compact-guide {
  width: 60%;
}

.instruction-image-placeholder span {
  display: block;
  font-weight: 800;
}

.instruction-image-placeholder small {
  color: var(--muted);
}

.next-action-button {
  justify-self: center;
  min-height: 46px;
  padding-inline: 24px;
}

#reupload-completed-ledger {
  display: flex;
  width: fit-content;
  margin: 18px auto;
}

.multi-cycle-controls {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.post-run-advanced-summary {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.post-run-advanced-summary[hidden] {
  display: none;
}

.post-summary-head h3 {
  margin: 4px 0 0;
  font-size: 22px;
}

.post-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.post-summary-cards .dashboard-card {
  min-height: 360px;
  min-width: 0;
}

.post-run-advanced-summary .dashboard-result-jump {
  margin-top: 0;
}

.multi-period-digests {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.multi-period-digests[hidden] {
  display: none;
}

.period-digest-head h3 {
  margin: 4px 0 6px;
  font-size: 22px;
}

.period-digest-head p:last-child {
  margin: 0;
  color: var(--muted);
}

.period-digest-row {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.period-digest-row summary {
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 0.8fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #dbe4ea;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.05);
  color: #233044;
  font-weight: 900;
  list-style: none;
}

.period-digest-row summary::-webkit-details-marker {
  display: none;
}

.period-digest-row summary::after {
  content: "展开";
  justify-self: end;
  padding: 4px 10px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 12px;
}

.period-digest-row[open] summary::after {
  content: "收起";
}

.period-digest-row summary em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.period-digest-row summary strong,
.period-digest-row summary span,
.period-digest-row summary em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.period-dashboard-carousel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  contain: inline-size;
}

.period-dashboard-slider {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 12px;
  box-sizing: border-box;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

.period-dashboard-slider .dashboard-card {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  inline-size: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 430px;
}

.period-dashboard-slider .dashboard-card > *,
.period-dashboard-slider .hot-split-layout,
.period-dashboard-slider .summary-grid,
.period-dashboard-slider .rank-list,
.period-dashboard-slider .bar-chart,
.period-dashboard-slider .dashboard-table-shell {
  max-width: 100%;
  min-width: 0;
}

.period-dashboard-slider .dashboard-table-shell {
  max-height: 330px;
  overflow: auto;
}

.period-dashboard-dots {
  display: flex;
  justify-content: center;
  margin-top: 0;
  padding-top: 8px;
}

@media (max-width: 980px) {
  .post-summary-cards {
    grid-template-columns: 1fr;
  }
}

.advanced-board .locked-slider {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 18px;
  padding: 0;
  overflow: visible;
  cursor: default;
  user-select: auto;
  scroll-snap-type: none;
}

.advanced-board .locked-slider .dashboard-card,
.post-summary-cards .dashboard-card {
  flex: initial;
  padding: clamp(20px, 2.2vw, 28px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(247, 251, 252, 0.92)),
    repeating-linear-gradient(135deg, rgba(31, 53, 68, 0.035) 0 8px, rgba(255, 255, 255, 0.08) 8px 16px);
  border: 1px solid rgba(178, 194, 204, 0.9);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.08);
  filter: none;
  scroll-snap-align: none;
}

.advanced-board .locked-slider .dashboard-card {
  min-height: 300px;
}

.post-summary-cards .dashboard-card {
  min-height: 360px;
}

.advanced-board .locked-slider .dashboard-card::after,
.post-summary-cards .dashboard-card::after {
  opacity: 0.45;
}

.advanced-board .lock-mark,
#advanced-dashboard-dots {
  display: none;
}

.advanced-board .card-topline,
.post-summary-cards .card-topline {
  gap: 12px;
  margin-bottom: 18px;
}

.advanced-board .card-topline span,
.post-summary-cards .card-topline span {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary);
}

.advanced-board .card-topline strong,
.post-summary-cards .card-topline strong {
  color: var(--ink);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 900;
}

.advanced-board .locked-metrics,
.post-summary-cards .locked-metrics {
  gap: 12px;
  margin-top: 8px;
}

.advanced-board .locked-metrics span,
.post-summary-cards .locked-metrics span {
  padding: 13px 14px;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.62);
  border: 1px dashed rgba(126, 143, 158, 0.8);
  border-radius: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.advanced-board .locked-metrics strong,
.post-summary-cards .locked-metrics strong {
  color: #1f2937;
  font-size: 17px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.advanced-trend-chart {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px dashed rgba(126, 143, 158, 0.72);
  border-radius: 14px;
}

.advanced-trend-chart.is-empty {
  color: #6b7280;
  font-weight: 800;
}

.advanced-trend-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 6px;
  color: #526174;
  font-size: 12px;
  font-weight: 900;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trend-legend span::before {
  content: "";
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.advanced-trend-chart .axis {
  stroke: rgba(82, 97, 116, 0.5);
  stroke-width: 1;
}

.advanced-trend-chart .zero-line {
  stroke: rgba(126, 143, 158, 0.45);
  stroke-width: 1;
  stroke-dasharray: 5 5;
}

.advanced-trend-chart .trend-line {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.advanced-trend-chart circle {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}

.advanced-trend-chart .line-ozon {
  color: var(--primary);
  stroke: var(--primary);
  fill: none;
}

.advanced-trend-chart .line-actual {
  color: var(--accent-pink);
  stroke: var(--accent-pink);
  fill: none;
}

.advanced-trend-chart .line-profit {
  color: var(--accent-sky);
  stroke: var(--accent-sky);
  fill: none;
}

.advanced-trend-chart .trend-bar {
  cursor: pointer;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  transform-box: fill-box;
  transform-origin: center bottom;
}

.advanced-trend-chart .trend-bar.line-actual {
  fill: var(--accent-pink);
  stroke: rgba(224, 59, 139, 0.18);
}

.advanced-trend-chart .trend-bar.line-profit {
  fill: var(--accent-sky);
  stroke: rgba(99, 155, 255, 0.18);
}

.advanced-trend-chart .trend-bar:hover,
.advanced-trend-chart .trend-bar:focus-visible {
  opacity: 0.82;
  outline: none;
  transform: scaleY(1.04);
}

.trend-click-tooltip {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  max-width: min(320px, calc(100% - 32px));
  padding: 8px 10px;
  color: #ffffff;
  background: #253b90;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(37, 59, 144, 0.22);
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.trend-click-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.advanced-trend-chart .axis-label,
.advanced-trend-chart .x-label {
  fill: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.post-summary-cards {
  gap: 18px;
  margin-top: 8px;
}

@media (max-width: 1180px) {
  .advanced-board .locked-slider,
  .post-summary-cards {
    grid-template-columns: 1fr;
  }

  .period-digest-row summary {
    grid-template-columns: 1fr;
  }

  .period-digest-row summary::after {
    justify-self: start;
  }
}

.multi-cycle-controls {
  display: grid;
  justify-items: stretch;
  gap: 12px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.multi-cycle-controls > .primary-button {
  justify-self: center;
}

.multi-cycle-controls > .multi-cycle-list {
  justify-self: stretch;
}

#multi-cycle-files {
  display: none;
}

.multi-cycle-list {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.multi-cycle-header,
.multi-cycle-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(92px, 0.7fr)) 36px;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-items: center;
}

.multi-cycle-header {
  padding: 0 4px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.multi-cycle-row {
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.multi-cycle-row strong,
.multi-cycle-row small {
  display: block;
}

.multi-cycle-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-cycle-row small {
  margin-top: 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.multi-cycle-row input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 10px;
  background: #fffdf0;
  border: 1px solid #ead48a;
  border-radius: 10px;
  font-weight: 800;
}

.multi-cycle-remove {
  width: 28px;
  height: 28px;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 900px) {
  .multi-cycle-header {
    display: none;
  }

  .multi-cycle-row {
    grid-template-columns: 1fr 1fr 1fr 32px;
  }

  .multi-cycle-row > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .multi-cycle-row {
    grid-template-columns: 1fr 32px;
  }

  .multi-cycle-row input {
    grid-column: 1 / -1;
  }

  .multi-cycle-remove {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
}

.multi-cycle-remove:hover {
  background: #ffe4e6;
  border-color: #fb7185;
}

.table-tag {
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(99, 155, 255, 0.38);
}

.table-shell {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 560px;
  overflow-x: scroll;
  overflow-y: auto;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  scrollbar-gutter: stable both-edges;
  scrollbar-color: #1f9b93 #e6eef4;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.table-shell::-webkit-scrollbar {
  width: 12px;
  height: 14px;
}

.table-shell::-webkit-scrollbar-track {
  background: #e6eef4;
  border-radius: 999px;
}

.table-shell::-webkit-scrollbar-thumb {
  background: #1f9b93;
  border: 3px solid #e6eef4;
  border-radius: 999px;
}

.table-shell table {
  width: var(--table-width, 1600px);
  min-width: var(--table-width, 1600px);
  border-collapse: collapse;
  background: #fff;
  table-layout: fixed;
}

.table-shell col {
  width: var(--column-width, 96px);
}

th,
td {
  width: var(--column-width, 96px);
  min-width: var(--column-width, 96px);
  max-width: var(--column-width, 96px);
  padding: 4px 5px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid #eef2f6;
  text-align: left;
  vertical-align: top;
  font-size: 10.5px;
  line-height: 1.18;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #26364d;
  background: #eef3f8;
  font-size: 10px;
  font-weight: 800;
}


tr.ledger-summary-row td {
  color: #fff;
  background: #0070c0;
  font-weight: 800;
}

tr.ledger-summary-row td.ws0-summary-pink-cell {
  background: rgb(224, 59, 139);
}

tr.period-title-blue td {
  color: #fff;
  background: #0070c0;
  font-weight: 800;
}

tr.period-title-orange td {
  color: #fff;
  background: #ed7d31;
  font-weight: 800;
}

tr.period-title-green td {
  color: #fff;
  background: #70ad47;
  font-weight: 800;
}

tr.period-title-purple td {
  color: #fff;
  background: #7030a0;
  font-weight: 800;
}

tr.period-title-pink td {
  color: #fff;
  background: #ff0084;
  font-weight: 800;
}

tr.period-title-yellow td {
  color: #111;
  background: #ffc000;
  font-weight: 800;
}

tr.period-blue td {
  background: #cce3f2;
}

tr.period-orange td {
  background: #fcd5b4;
}

tr.period-green td {
  background: #e2efda;
}

tr.period-purple td {
  background: #d9d2e9;
}

tr.period-pink td {
  background: #ffcce5;
}

tr.period-yellow td {
  background: #fff2cc;
}

tr.duplicate-acquiring-row td {
  box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, 0.18);
}

.table-shell tr.trial-blurred-row td {
  color: transparent !important;
  text-shadow: 0 0 7px rgba(15, 30, 60, 0.5);
  user-select: none;
  pointer-events: none;
}

.table-shell td.trial-blurred-cell {
  color: transparent !important;
  text-shadow: 0 0 7px rgba(255, 255, 255, 0.72);
  user-select: none;
  pointer-events: none;
}

.table-shell tr.trial-blurred-row td::selection {
  background: transparent;
}

.table-shell td.trial-blurred-cell::selection {
  background: transparent;
}

.table-shell tr.trial-blurred-row .copy-sku-button {
  color: transparent !important;
  background: rgba(240, 244, 255, 0.7);
  border-color: rgba(178, 187, 203, 0.45);
  text-shadow: 0 0 7px rgba(15, 30, 60, 0.5);
}

.upgrade-panel {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  background: var(--amber-soft);
  border-color: #f0d8a5;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(17, 26, 39, 0.68);
  backdrop-filter: blur(8px);
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  position: relative;
  width: min(680px, 100%);
  max-height: min(88vh, 760px);
  padding: 20px;
  overflow: auto;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
}

.period-gap-card {
  width: min(620px, 100%);
}

.period-gap-copy {
  margin-top: 14px;
  line-height: 1.65;
}

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

.period-gap-list div {
  padding: 10px 12px;
  color: #253b90;
  background: #f0f4ff;
  border: 1px solid #d9e2f2;
  border-radius: 8px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.rate-section {
  margin-top: 14px;
  padding: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.rate-section > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 16px;
}

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

.calculated-rate {
  margin-top: 12px;
  padding: 12px;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(99, 155, 255, 0.38);
  border-radius: 10px;
  font-weight: 900;
}

.calculated-rate strong {
  font-size: 22px;
}

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

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

.field input {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  color: var(--muted);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.ai-assistant-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  display: inline-flex;
  gap: 8px;
  min-height: 54px;
  padding: 0 16px 0 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent-sky));
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(74, 108, 247, 0.28);
}

body:not(.app-started) .ai-assistant-launcher {
  animation: assistantPulse 0.46s ease-in-out infinite;
}

.robot-face,
.ai-bot-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
}

.robot-face {
  width: 38px;
  height: 38px;
  font-size: 22px;
}

.ai-assistant-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10001;
  display: grid;
  grid-template-rows: auto auto minmax(260px, 1fr) auto auto auto;
  width: min(420px, 92vw);
  height: 100vh;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 8%, rgba(48, 184, 166, 0.18), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(23, 32, 51, 0.18);
  transform: translateX(104%);
  transition: transform 0.24s ease;
}

.ai-assistant-panel.is-open {
  transform: translateX(0);
}

.ai-assistant-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ai-assistant-head strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 20px;
}

.ai-kicker,
.ai-privacy-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ai-assistant-intro {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  background: var(--primary-soft);
  border: 1px solid rgba(99, 155, 255, 0.38);
  border-radius: 16px;
}

.ai-bot-avatar {
  width: 46px;
  height: 46px;
  font-size: 26px;
}

/* Account avatar: use the approved blue palette with a clean white user mark. */
.account-icon,
.landing-account-button {
  border-radius: 50% !important;
}

.account-icon {
  position: relative;
  width: 42px;
  height: 42px;
  overflow: hidden;
  color: #ffffff !important;
  background: radial-gradient(circle at 32% 24%, #639bff 0 24%, #4a6cf7 58%, #253b90 100%) !important;
  border: 1px solid rgba(240, 244, 255, 0.78) !important;
  box-shadow: 0 10px 24px rgba(37, 59, 144, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

.landing-account-button {
  background: radial-gradient(circle at 32% 24%, #639bff 0 24%, #4a6cf7 58%, #253b90 100%) !important;
  border: 1px solid rgba(240, 244, 255, 0.86) !important;
  box-shadow: 0 16px 34px rgba(15, 30, 60, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
  backdrop-filter: none;
}

.landing-account-icon,
.account-icon {
  color: #ffffff !important;
}

.landing-account-icon::before,
.account-icon::before {
  content: "";
  position: absolute;
  top: 22%;
  left: 50%;
  width: 32%;
  height: 32%;
  background: #ffffff;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  transform: translateX(-50%);
}

.landing-account-icon::after,
.account-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 17%;
  width: 56%;
  height: 36%;
  background: #ffffff;
  border-radius: 999px 999px 42% 42%;
  transform: translateX(-50%);
}

.landing-account-icon::before {
  top: 20%;
  width: 30%;
  height: 30%;
}

.landing-account-icon::after {
  bottom: 16%;
  width: 54%;
  height: 35%;
}

/* Final modern sidebar override. */
body.app-started .app-shell {
  padding-left: 292px !important;
}

body.app-started .site-header {
  left: 260px !important;
  background: #ffffff !important;
}

body.app-started .sidebar-brand {
  top: 18px !important;
  left: 18px !important;
  width: 224px !important;
  height: 74px !important;
  padding: 0 18px !important;
  background: rgba(244, 247, 252, 0.96) !important;
  border: 1px solid #e3eaf5 !important;
  border-bottom: 0 !important;
  border-radius: 18px 18px 0 0 !important;
}

body.app-started .side-nav {
  inset: 92px auto 18px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 224px !important;
  padding: 14px !important;
  overflow: visible !important;
  background: rgba(244, 247, 252, 0.96) !important;
  border: 1px solid #e3eaf5 !important;
  border-top: 0 !important;
  border-radius: 0 0 18px 18px !important;
  box-shadow: 0 18px 46px rgba(15, 30, 60, 0.08) !important;
}

body.app-started .side-nav a {
  position: relative !important;
  min-height: 44px !important;
  padding: 0 14px 0 44px !important;
  color: #5f6f84 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
}

body.app-started .side-nav a:hover,
body.app-started .side-nav a.is-active {
  color: #0f1e3c !important;
  background: #ffffff !important;
  border-color: #d9e2f2 !important;
}

@media (max-width: 980px) {
  body.app-started .app-shell {
    padding-left: 14px !important;
  }

  body.app-started .site-header {
    left: 0 !important;
  }

  body.app-started .sidebar-brand {
    top: 0 !important;
    left: 0 !important;
    width: 210px !important;
    height: 76px !important;
    border-radius: 0 !important;
    border-left: 0 !important;
  }

  body.app-started .side-nav {
    inset: 76px 0 auto 0 !important;
    width: auto !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    padding: 8px 14px !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

/* Transparent close/remove buttons and modern sidebar pass. */
.icon-button,
.multi-cycle-remove,
.ai-image-preview-close {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.icon-button:hover,
.multi-cycle-remove:hover,
.ai-image-preview-close:hover {
  background: transparent !important;
  border-color: transparent !important;
}

.modal-head .icon-button,
.ai-assistant-head .icon-button {
  color: #253b90 !important;
}

#dash-rate {
  font-size: inherit !important;
}

#dash-rate .rate-kind {
  color: #7a869a;
  font-size: 0.78em;
}

body.app-started .app-shell {
  padding-left: 292px;
}

body.app-started .sidebar-brand,
body.app-started .side-nav {
  left: 18px;
  width: 224px;
}

body.app-started .sidebar-brand {
  top: 18px;
  height: 74px;
  padding: 0 18px;
  background: rgba(244, 247, 252, 0.96) !important;
  border: 1px solid #e3eaf5;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

body.app-started .side-nav {
  inset: 92px auto 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: rgba(244, 247, 252, 0.96) !important;
  border: 1px solid #e3eaf5;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 18px 46px rgba(15, 30, 60, 0.08);
}

body.app-started .site-header {
  left: 260px;
}

body.app-started .site-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 30, 60, 0.1);
}

body.app-started .side-nav a {
  position: relative;
  min-height: 44px;
  gap: 12px;
  padding: 0 14px 0 44px;
  color: #5f6f84;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
}

body.app-started .side-nav a::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  border: 1.8px solid currentColor;
  border-radius: 6px;
  opacity: 0.8;
}

body.app-started .side-nav a:nth-child(1)::before {
  border-radius: 50%;
}

body.app-started .side-nav a:nth-child(2)::before {
  border-radius: 4px;
  box-shadow: inset 0 -6px 0 currentColor;
}

body.app-started .side-nav a:nth-child(3)::before {
  border-radius: 3px;
  transform: rotate(-8deg);
}

body.app-started .side-nav a:nth-child(4)::before {
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) 50% 35% / 10px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) 50% 65% / 10px 1.6px no-repeat;
}

body.app-started .side-nav a:nth-child(5)::before {
  border-radius: 3px;
  background:
    linear-gradient(currentColor, currentColor) 50% 33% / 12px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) 50% 66% / 12px 1.6px no-repeat;
}

body.app-started .side-nav a:hover,
body.app-started .side-nav a.is-active {
  color: #0f1e3c;
  background: #ffffff;
  border-color: #d9e2f2;
  box-shadow: 0 10px 24px rgba(15, 30, 60, 0.08);
}

body.app-started .side-nav a.is-active {
  box-shadow:
    inset 3px 0 0 #4a6cf7,
    0 10px 24px rgba(15, 30, 60, 0.08);
}

@media (max-width: 980px) {
  body.app-started .app-shell {
    padding-left: 14px;
  }

  body.app-started .site-header {
    left: 0;
  }

  body.app-started .sidebar-brand {
    left: 0;
    top: 0;
    width: 210px;
    height: 76px;
    border-radius: 0;
    border-left: 0;
  }

  body.app-started .side-nav {
    inset: 76px 0 auto 0;
    width: auto;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 14px;
    border-radius: 0;
    border-right: 0;
    border-left: 0;
    box-shadow: none;
  }

  body.app-started .side-nav a {
    flex: 0 0 auto;
  }
}

/* Final page/background and carousel corrections. */
body.app-started {
  background:
    radial-gradient(circle at 18% 0%, rgba(99, 155, 255, 0.06), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8faff 52%, #ffffff 100%);
}

body.app-started::before {
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(15, 30, 60, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 30, 60, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 70%);
}

.instant-value-board {
  position: relative;
  padding: 22px 0 18px;
  overflow: hidden;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.instant-value-board .dashboard-head {
  max-width: min(1040px, calc(100% - 44px));
  margin: 0 auto;
}

.instant-value-board .dashboard-head h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.instant-value-board .dashboard-head p {
  max-width: 520px;
  font-size: 14px;
}

.instant-value-board .dashboard-slider {
  gap: 18px;
  max-width: min(1040px, calc(100% - 44px));
  margin: 18px auto 0;
  padding: 4px 0 18px;
}

.instant-value-board .dashboard-card {
  flex: 0 0 100%;
  min-height: 392px;
  padding: clamp(20px, 3vw, 34px);
  background: #ffffff !important;
  border: 1px solid rgba(217, 226, 242, 0.95);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(15, 30, 60, 0.1);
}

.instant-value-board .dashboard-card::after {
  opacity: 0.16;
  background: radial-gradient(circle at 78% 18%, rgba(99, 155, 255, 0.42), transparent 34%);
}

.instant-value-board .carousel-dots {
  margin-top: 2px;
}

.instant-value-board .carousel-dot {
  width: 8px;
  height: 8px;
  border: 0;
  background: #c8d3df;
}

.instant-value-board .carousel-dot.is-active {
  width: 22px;
  background: #4a6cf7;
}

.instant-value-board .dashboard-result-jump {
  max-width: min(1040px, calc(100% - 44px));
  margin-right: auto;
  margin-left: auto;
}

#tables-section.privacy-box {
  padding: 0;
  color: #7a869a;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  font-size: 12px;
}

#tables-section.privacy-box p {
  font-size: 12px;
}

#tables-section.privacy-box strong {
  color: #0f1e3c;
  font-size: 12px;
}

@media (max-width: 640px) {
  .instant-value-board .dashboard-head,
  .instant-value-board .dashboard-slider,
  .instant-value-board .dashboard-result-jump {
    max-width: calc(100% - 20px);
  }

  .instant-value-board .dashboard-card {
    min-height: 360px;
  }
}

/* Final requested refinements. */
body.app-started .site-header,
body.app-started .side-nav {
  background: #ffffff !important;
  border-color: #e7edf6 !important;
}

body.app-started .sidebar-brand {
  background: #f4f7fc !important;
  border-color: #e7edf6 !important;
}

body.app-started .header-title,
body.app-started .side-nav a {
  color: #0f1e3c;
}

body.app-started .side-nav a:hover,
body.app-started .side-nav a.is-active {
  color: #0f1e3c;
  background: #f0f4ff;
  border-color: #d9e2f2;
}

body.app-started .account-icon {
  color: #0f1e3c;
  background: #ffffff;
  border-color: #d9e2f2;
}

body.app-started .hero-lower {
  padding-top: 10px;
  padding-bottom: 6px;
}

body.app-started .dashboard-section.instant-value-board {
  margin-top: 0;
  padding-top: 4px;
}

body.app-started .instant-value-board .dashboard-slider {
  margin-top: 12px;
}

.ai-assistant-panel .ai-menu-title,
.ai-assistant-panel .ai-quick-questions button {
  color: #5f6f84 !important;
}

.ai-assistant-panel .ai-chat-form input {
  font-size: 12px !important;
}

#dash-rate {
  font-size: 12px !important;
}

.result-head {
  align-items: flex-start;
}

/* Multi-cycle input and rate modal detail refinements. */
.multi-cycle-row input {
  position: relative;
  background: #ffffff !important;
  border-color: #d9e2f2 !important;
  color: #0f1e3c;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.multi-cycle-row input::placeholder {
  color: transparent;
}

.multi-cycle-row input:placeholder-shown {
  background-image: linear-gradient(#9aa7ba, #9aa7ba);
  background-position: 10px 50%;
  background-repeat: no-repeat;
  background-size: 1px 16px;
  animation: inputCaretBlink 0.9s steps(1, end) infinite;
}

.multi-cycle-remove {
  color: #253b90 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.multi-cycle-remove:hover {
  color: #253b90 !important;
  background: transparent !important;
  border-color: transparent !important;
}

.calculated-rate {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

@keyframes inputCaretBlink {
  0%,
  49% {
    background-size: 1px 16px;
  }

  50%,
  100% {
    background-size: 0 16px;
  }
}

/* Final assistant detail pass requested by product owner. */
.ai-assistant-panel .ai-assistant-intro {
  border-color: transparent !important;
}

.ai-assistant-panel .ai-assistant-intro p {
  font-size: 12px !important;
}

.ai-assistant-panel .ai-menu-title,
.ai-assistant-panel .ai-quick-questions button {
  color: #7a869a !important;
}

.ai-assistant-panel .ai-quick-questions button span {
  width: 11px !important;
  height: 11px !important;
  color: transparent !important;
  background: #cfd6e2 !important;
  border-radius: 50% !important;
  font-size: 0 !important;
}

.ai-assistant-panel .ai-assistant-head .icon-button {
  background: #ffffff !important;
  border-color: transparent !important;
}

.ai-assistant-panel .ai-assistant-intro {
  border-color: transparent !important;
}

.ai-assistant-panel .ai-assistant-intro p {
  font-size: 12px;
}

.ai-assistant-panel .ai-menu-title,
.ai-assistant-panel .ai-quick-questions button {
  color: #7a869a !important;
}

.ai-assistant-panel .ai-quick-questions button span {
  width: 11px;
  height: 11px;
  color: transparent;
  background: #cfd6e2 !important;
  border-radius: 50%;
  font-size: 0;
}

.ai-assistant-panel .ai-assistant-head .icon-button {
  background: #ffffff;
  border-color: transparent;
}

/* Typography rule: only titles may use bold weight. */
body,
body * {
  font-weight: 400 !important;
}

h1,
h2,
h3,
th,
.header-title,
.section-kicker,
.eyebrow,
.dropzone-title,
.result-head h3,
.panel-head h2,
.dashboard-head h3,
.card-topline strong,
.capability-card strong,
.next-action-copy h3,
.next-action-card h3,
.modal-head h3,
.rate-section > strong,
.hero-privacy strong,
.privacy-box strong,
.trial-warning strong,
.table-tag,
.badge,
.dashboard-pill,
.lock-mark,
.multi-cycle-header,
.ai-assistant-head strong {
  font-weight: 700 !important;
}

.ai-assistant-intro p,
.ai-privacy-note {
  margin: 0;
  line-height: 1.55;
}

.ai-quick-questions {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  min-height: 0;
}

.ai-quick-questions button {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  color: var(--primary);
  background: #fff;
  border: 1px solid rgba(99, 155, 255, 0.38);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}

.ai-quick-questions button span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  font-size: 11px;
}

.ai-quick-questions .ai-none-question {
  color: #8a4b00;
  background: #fff7ed;
  border-color: #fed7aa;
}

.ai-quick-questions .ai-none-question span {
  background: #f97316;
}

.ai-chat-log {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 10px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.ai-faq-menu {
  display: grid;
  gap: 8px;
}

.ai-menu-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.ai-message {
  max-width: 88%;
  padding: 10px 12px;
  white-space: pre-line;
  line-height: 1.55;
  border-radius: 14px;
  font-size: 13px;
}

.ai-message.is-bot {
  justify-self: start;
  background: var(--primary-soft);
  border: 1px solid rgba(99, 155, 255, 0.38);
}

.ai-message.is-user {
  justify-self: end;
  color: #fff;
  background: var(--primary);
}

.ai-chat-actions {
  justify-self: start;
}

.ai-chat-actions button {
  min-height: 32px;
  padding: 6px 12px;
  color: var(--primary);
  background: #fff;
  border: 1px solid rgba(99, 155, 255, 0.38);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.ai-clarify p {
  margin: 0 0 8px;
}

.ai-clarify-options,
.ai-suggestion-list {
  display: grid;
  gap: 8px;
}

.ai-clarify-options button,
.ai-suggestion-list button {
  min-height: 32px;
  padding: 6px 10px;
  color: var(--primary);
  text-align: left;
  background: #fff;
  border: 1px solid rgba(99, 155, 255, 0.38);
  border-radius: 8px;
  font-size: 12px;
}

.ai-suggestion-list {
  position: absolute;
  right: 18px;
  bottom: 86px;
  left: 18px;
  z-index: 4;
  max-height: 150px;
  padding: 8px;
  overflow: auto;
  background: rgba(35, 39, 47, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.28);
}

.ai-suggestion-list button {
  color: #fff;
  background: rgba(35, 39, 47, 0.7);
  border-color: rgba(255, 255, 255, 0.24);
}

.ai-suggestion-list[hidden] {
  display: none;
}

.ai-suggestion-title {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.ai-chat-form {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 8px;
  margin-top: 12px;
}

.ai-contact-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.ai-contact-form {
  padding-top: 0;
  border-top: 0;
}

.ai-contact-card {
  margin-top: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(99, 155, 255, 0.38);
  border-radius: 14px;
}

.ai-contact-card strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

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

.ai-chat-form input,
.ai-contact-form input,
.ai-contact-form textarea {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit;
}

.ai-chat-form input {
  min-height: 36px;
  border-radius: 999px;
}

.ai-send-button {
  width: 38px;
  min-height: 36px;
  padding: 0;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
}

.ai-contact-form textarea {
  min-height: 58px;
  padding: 10px 12px;
  resize: vertical;
}

.ai-contact-status {
  min-height: 16px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.ai-contact-status.is-error {
  color: #b42318;
}

.ai-privacy-note {
  margin-top: 10px;
}

.ai-message-media {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
}

.ai-answer-message {
  display: grid;
  gap: 10px;
}

.ai-answer-text {
  white-space: pre-line;
}

.ai-answer-image,
.ai-message-media img {
  width: min(100%, 280px);
  max-height: 220px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  cursor: zoom-in;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.ai-image-preview {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
}

.ai-image-preview.is-open {
  display: grid;
}

.ai-image-preview img {
  max-width: min(96vw, 1180px);
  max-height: 88vh;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.ai-image-preview-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

@keyframes assistantPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 18px 42px rgba(74, 108, 247, 0.28);
  }
  15% {
    transform: translate(-5px, -3px) rotate(-4deg) scale(1.04);
  }
  30% {
    transform: translate(5px, -5px) rotate(4deg) scale(1.06);
  }
  50% {
    transform: translate(-4px, -8px) rotate(-3deg) scale(1.08);
    box-shadow: 0 22px 52px rgba(74, 108, 247, 0.42);
  }
  70% {
    transform: translate(4px, -4px) rotate(4deg) scale(1.05);
  }
}

@media (max-width: 980px) {
  .app-shell {
    padding: 146px 14px 14px;
  }

  .site-header {
    left: 0;
    min-height: 76px;
    padding: 0 14px 0 220px;
  }

  .sidebar-brand {
    width: 210px;
    height: 76px;
    padding: 0;
    border-right: 0;
  }

  .sidebar-brand .site-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .side-nav {
    top: 76px;
    right: 0;
    bottom: auto;
    left: 0;
    display: flex;
    width: auto;
    overflow-x: auto;
    padding: 8px 14px;
    border-right: 0;
    border-bottom: 1px solid #dbe3ee;
    border-radius: 0;
  }

  .side-nav a {
    flex: 0 0 auto;
    min-height: 34px;
    white-space: nowrap;
  }

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

  .advanced-path-grid {
    grid-template-columns: 1fr;
  }

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

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

  .dashboard-slider,
  .locked-slider {
    grid-auto-columns: minmax(290px, 78%);
  }

  .upgrade-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-upload-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 132px 10px 10px;
  }

  .site-header {
    top: 0;
    left: 0;
    right: 0;
    min-height: 68px;
    padding: 8px 10px 8px 166px;
    border-radius: 0;
  }

  .sidebar-brand {
    width: 156px;
    height: 68px;
    padding: 0;
  }

  .header-title {
    font-size: 17px;
  }

  .sidebar-brand .site-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .side-nav {
    top: 68px;
    left: 0;
    right: 0;
    padding: 8px 10px;
  }

  .account-icon {
    width: 36px;
    height: 36px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-main-text {
    font-size: 17px;
  }

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

  .hero-copy,
  .hero-card,
  .upload-panel {
    padding: 12px;
  }

  .brand-logo {
    position: static;
    display: block;
    width: 86px;
    height: 86px;
    margin-left: auto;
    border-radius: 22px;
  }

  .download-guide-stage {
    min-height: 190px;
    border-radius: 12px;
  }

  .panel-head,
  .result-head,
  .dashboard-head {
    flex-direction: column;
  }

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

  .dashboard-slider,
  .locked-slider {
    grid-auto-columns: minmax(280px, 92%);
  }

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

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

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

  .bar-row strong {
    text-align: left;
  }

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

  .rate-input-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .upgrade-actions {
    width: 100%;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .multi-cycle-header,
  .multi-cycle-row {
    min-width: 0;
    grid-template-columns: 1fr 32px;
  }
}

/* Premium visual pass: restrained finance-tool styling without changing app logic. */
:root {
  --bg: #0f1e3c;
  --panel: #ffffff;
  --panel-soft: #f0f4ff;
  --line: #d9e2f2;
  --line-strong: #7a869a;
  --ink: #0f1e3c;
  --muted: #7a869a;
  --primary: #4a6cf7;
  --primary-soft: rgba(74, 108, 247, 0.12);
  --accent-pink: #e03b8b;
  --accent-blue: #253b90;
  --accent-sky: #639bff;
  --stat-gray: #7a869a;
  --text-on-dark: #ffffff;
  --text-soft: #f0f4ff;
  --amber: #b46b00;
  --amber-soft: #fff8ea;
  --danger: #ba3a2e;
  --danger-soft: #fff0ee;
  --success: #26734d;
  --shadow: 0 18px 44px rgba(15, 30, 60, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 18% -8%, rgba(99, 155, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #0f1e3c 0%, #0b1730 100%);
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  text-rendering: geometricPrecision;
}

body:not(.app-started) {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.96)),
    #f6f8fb;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.48;
  background-image:
    linear-gradient(rgba(20, 32, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 51, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 68%);
}

.version-banner {
  display: none !important;
}

button,
.primary-button,
.secondary-button,
.ghost-button,
.side-nav a,
.ai-quick-questions button,
.ai-clarify-options button,
.ai-suggestion-list button {
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible {
  outline: 3px solid rgba(74, 108, 247, 0.28);
  outline-offset: 3px;
}

button:active,
.primary-button:active,
.secondary-button:active,
.ghost-button:active {
  transform: translateY(1px) scale(0.99);
}

.site-header,
.sidebar-brand,
.side-nav {
  background: rgba(15, 30, 60, 0.97);
  border-color: rgba(240, 244, 255, 0.16);
  box-shadow: none;
}

.sidebar-brand {
  justify-content: flex-start;
  padding-left: 28px;
}

.site-logo {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(248, 250, 252, 0.2);
  border-radius: 12px;
}

.header-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.side-nav a {
  min-height: 44px;
  color: #bdc9d6;
  border-radius: 8px;
  font-weight: 750;
}

.side-nav a:hover,
.side-nav a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(200, 211, 223, 0.18);
}

.side-nav a.is-active {
  box-shadow: inset 3px 0 0 #639bff;
}

.header-download-button,
.trust-strip span,
.badge,
.table-tag,
.dashboard-pill,
.account-vip {
  border-radius: 7px;
}

.header-download-button.is-ready,
.primary-button,
.ai-send-button {
  background: #4a6cf7;
  border-color: #4a6cf7;
  box-shadow: 0 10px 22px rgba(74, 108, 247, 0.2);
}

.header-download-button.is-ready:hover,
.primary-button:hover,
.ai-send-button:hover {
  background: #3d5fe7;
  border-color: #3d5fe7;
  box-shadow: 0 14px 28px rgba(74, 108, 247, 0.24);
  transform: translateY(-1px);
}

.secondary-button,
.ghost-button {
  background: #ffffff;
  border-color: #cfd8e3;
}

.hero-cover {
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.15), rgba(248, 250, 252, 0.02)),
    url("./assets/frontpage.jpg") top center / cover no-repeat;
}

body:not(.app-started) .hero-cover {
  min-height: 460px;
}

body:not(.app-started) .hero-copy {
  left: clamp(28px, 5vw, 78px);
  top: 39%;
  max-width: min(48vw, 720px);
}

body:not(.app-started) .hero-title {
  color: #13213a;
  font-family: var(--font-ui);
  font-size: clamp(28px, 3.1vw, 56px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.05;
  text-wrap: balance;
}

body:not(.app-started) .hero-main-text {
  max-width: 34rem;
  color: #314055;
  font-size: clamp(16px, 1.16vw, 22px);
  font-weight: 700;
  line-height: 1.68;
  text-wrap: pretty;
}

.landing-account-button,
.account-icon {
  border-radius: 12px;
}

.landing-account-button {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(148, 163, 184, 0.58);
}

.landing-account-icon::before,
.account-icon::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 44% 44%;
  box-shadow: 0 14px 0 -6px currentColor;
}

.hero-actions .primary-button {
  min-height: 56px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 800;
}

.hero-privacy,
.download-guide-stage,
.capability-card,
.dashboard-section,
.dashboard-card,
.result-block,
.privacy-box,
.trial-warning,
.modal-card,
.rate-section,
.multi-cycle-list,
.multi-cycle-row,
.ai-assistant-panel,
.ai-assistant-intro,
.ai-chat-log,
.ai-contact-card {
  border-color: #d8e1ea;
  box-shadow: 0 16px 38px rgba(20, 32, 51, 0.08);
}

.hero-privacy {
  max-width: 1120px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  text-align: left;
}

.hero-guide-text {
  color: #536174;
}

.download-guide-stage {
  border-radius: 10px;
}

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

.capability-card {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 16px;
  color: #334155;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(20, 32, 51, 0.07);
}

.capability-card strong {
  color: #142033;
  font-size: 15px;
  font-weight: 800;
}

.capability-card span {
  color: #66758a;
  font-size: 13px;
  line-height: 1.55;
}

.section-kicker,
.eyebrow {
  color: #4a6cf7;
  font-size: 11px;
  letter-spacing: 0.12em;
}

h1,
h2,
h3 {
  color: #142033;
  letter-spacing: 0;
  text-wrap: balance;
}

.instant-value-board,
.advanced-board {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 251, 0.96)),
    #fbfcfe;
}

.dashboard-section {
  border-radius: 10px;
}

.dashboard-card {
  background: #ffffff;
  border-color: #d8e1ea;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(20, 32, 51, 0.09);
}

.dashboard-card::after {
  opacity: 0.28;
  background: radial-gradient(circle, rgba(39, 109, 115, 0.1), transparent 68%);
}

.card-topline span {
  color: #253b90;
  background: rgba(74, 108, 247, 0.1);
  border-radius: 7px;
}

.summary-grid div,
.rank-list > div,
.ad-insight-grid > div {
  background: #f8fafc;
  border-color: #dbe3ee;
  border-radius: 8px;
}

.bar-fill,
.progress-fill {
  background: linear-gradient(90deg, #4a6cf7, #639bff);
}

.carousel-dot {
  border-radius: 6px;
}

.carousel-dot.is-active {
  background: #4a6cf7;
  border-color: #4a6cf7;
}

.table-shell {
  border-radius: 8px;
  scrollbar-color: #4a6cf7 #e6edf3;
}

.table-shell::-webkit-scrollbar-thumb {
  background: #4a6cf7;
  border-color: #e6edf3;
}

th {
  color: #243247;
  background: #edf2f7;
}

td {
  color: #243247;
}

.modal-backdrop {
  background: rgba(13, 22, 36, 0.62);
}

.modal-card {
  border-radius: 10px;
}

.field input,
.ai-chat-form input,
.ai-contact-form input,
.ai-contact-form textarea,
.multi-cycle-row input {
  border-color: #c7d2df;
  border-radius: 8px;
}

.field input:focus,
.ai-chat-form input:focus,
.ai-contact-form input:focus,
.ai-contact-form textarea:focus,
.multi-cycle-row input:focus {
  border-color: #4a6cf7;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.12);
}

.ai-assistant-launcher {
  gap: 8px;
  min-height: 54px;
  padding: 0 16px 0 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent-sky));
  border-color: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(74, 108, 247, 0.28);
}

.ai-assistant-launcher:hover {
  background: linear-gradient(135deg, #3d5fe7, #5d91f2);
  transform: translateY(-1px);
}

body:not(.app-started) .ai-assistant-launcher {
  animation: assistantPulse 0.46s ease-in-out infinite;
}

.robot-face,
.ai-bot-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: initial;
  background: #fff;
  border: 0;
  border-radius: 50%;
}

.robot-face::before,
.ai-bot-avatar::before {
  content: none;
}

.ai-assistant-panel {
  color: var(--ink);
  background: #ffffff;
  border-left-color: #d8e1ea;
}

.ai-assistant-panel strong,
.ai-assistant-panel button,
.ai-assistant-panel input,
.ai-assistant-panel textarea,
.ai-assistant-panel p,
.ai-message,
.ai-menu-title,
.ai-contact-card strong {
  font-weight: 400;
}

.ai-assistant-head strong {
  font-weight: 400;
}

.ai-assistant-intro,
.ai-chat-log,
.ai-contact-card,
.ai-message.is-bot,
.ai-quick-questions button,
.ai-clarify-options button,
.ai-chat-actions button {
  background: #ffffff;
}

.ai-message.is-bot {
  border-color: #d9e2f2;
}

.ai-message.is-user {
  background: #4a6cf7;
  font-weight: 400;
}

.ai-quick-questions button,
.ai-clarify-options button,
.ai-chat-actions button {
  color: #4a6cf7;
  border-radius: 7px;
}

.ai-quick-questions button span {
  background: #4a6cf7;
  font-weight: 400;
}

.ai-suggestion-list {
  background: rgba(18, 30, 50, 0.94);
  border-radius: 8px;
}

.icon-button {
  border-radius: 8px;
}

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

@media (max-width: 980px) {
  .site-header {
    background: rgba(15, 30, 60, 0.98);
  }

  .side-nav {
    background: rgba(15, 30, 60, 0.98);
    border-bottom-color: rgba(200, 211, 223, 0.14);
  }
}

@media (max-width: 640px) {
  body:not(.app-started) .hero-cover {
    min-height: 420px;
  }

  body:not(.app-started) .hero-copy {
    left: 22px;
    right: 22px;
    top: 42%;
    max-width: none;
  }

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

  .capability-card {
    min-height: 0;
  }
}

/* Assistant corrections: keep the original launcher personality, simplify panel surfaces. */
.ai-assistant-panel,
.ai-assistant-panel * {
  font-weight: 400 !important;
}

.ai-assistant-head,
.ai-assistant-intro,
.ai-chat-log,
.ai-faq-menu,
.ai-message.is-bot,
.ai-message-media,
.ai-contact-card,
.ai-quick-questions button,
.ai-clarify-options button,
.ai-chat-actions button {
  background: #ffffff !important;
}

.ai-assistant-intro,
.ai-chat-log,
.ai-contact-card,
.ai-message.is-bot,
.ai-quick-questions button,
.ai-clarify-options button,
.ai-chat-actions button {
  border-color: #d9e2f2 !important;
}

.ai-assistant-intro,
.ai-chat-log {
  box-shadow: none;
}

.ai-message.is-user {
  color: #ffffff;
  background: #4a6cf7 !important;
}

.robot-face {
  width: 38px;
  height: 38px;
  font-size: 22px;
}

.ai-bot-avatar {
  width: 46px;
  height: 46px;
  font-size: 26px;
}

/* Final corrections requested on 2026-05-29. Keep these after earlier overrides. */
#dash-rate {
  display: block;
  font-size: 22px !important;
  line-height: 1.18;
}

#dash-rate .rate-kind {
  margin-left: 4px;
  color: #7a869a;
  font-size: 12px !important;
  font-weight: 400 !important;
  vertical-align: baseline;
}

.multi-cycle-row input {
  background-color: #ffffff !important;
  border-color: #d9e2f2 !important;
  color: #0f1e3c;
  font-size: 12px !important;
}

.multi-cycle-row input::placeholder {
  color: #9aa7ba;
  opacity: 1;
}

.multi-cycle-row input:placeholder-shown::placeholder {
  animation: inputCaretBlink 0.9s steps(1, end) infinite;
}

@keyframes inputCaretBlink {
  50% {
    color: transparent;
  }
}

.multi-cycle-remove,
.multi-cycle-remove:hover {
  color: #253b90 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.ai-message,
.ai-message.is-bot,
.ai-message.is-user,
.ai-quick-questions button,
.ai-clarify-options button,
.ai-chat-actions button,
.ai-faq-menu button,
.ai-suggestion-list button {
  color: #5d6578 !important;
  font-weight: 400 !important;
}

.ai-message.is-user {
  background: #ffffff !important;
  border-color: #d9e2f2 !important;
}

body.app-started .app-shell {
  padding-left: 268px !important;
}

body.app-started .sidebar-brand {
  top: 0 !important;
  left: 0 !important;
  width: 240px !important;
  height: 82px !important;
  padding: 0 !important;
  justify-content: center !important;
  background: #f4f7fc !important;
  border: 0 !important;
  border-right: 1px solid #e7edf6 !important;
  border-bottom: 1px solid #e7edf6 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.app-started .site-logo {
  width: 58px !important;
  height: 58px !important;
  border-radius: 18px !important;
}

body.app-started .site-header {
  top: 0 !important;
  left: 240px !important;
  min-height: 82px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e7edf6 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.app-started .side-nav {
  inset: 0 auto 0 0 !important;
  width: 240px !important;
  padding: 102px 18px 18px !important;
  background: #ffffff !important;
  border: 0 !important;
  border-right: 1px solid #e7edf6 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.app-started .side-nav a {
  border-radius: 8px !important;
}

.period-dashboard-slider .risk-card .card-topline span {
  color: #ffffff !important;
  background: #e03b8b !important;
}

.capability-card {
  align-content: start;
  justify-items: center;
  text-align: center;
}

.capability-card img {
  display: block;
  width: 72px;
  height: 72px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  justify-self: center;
  margin: 0 auto 2px;
}

.hot-split-layout {
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  align-items: stretch;
}

.hot-split-layout .rank-list,
.hot-split-layout .bar-chart {
  display: grid;
  grid-auto-rows: 96px;
  gap: 12px;
}

.hot-split-layout .rank-item {
  min-height: 96px;
  height: 96px;
  align-items: center;
}

.hot-split-layout .rank-title,
.hot-split-layout .rank-meta {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.hot-split-layout .rank-title {
  -webkit-line-clamp: 1;
}

.hot-split-layout .rank-meta {
  -webkit-line-clamp: 2;
}

.bar-chart {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.dual-bar-row {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 7px;
  min-height: 96px;
  height: 96px;
}

.dual-bar-row .bar-track {
  position: relative;
  height: 22px;
  overflow: visible;
  background: #e8edf6;
  border-radius: 999px;
}

.dual-bar-row .quantity-track {
  height: 34px;
}

.dual-bar-row .quantity-fill {
  background: linear-gradient(90deg, #4a6cf7, #639bff);
}

.dual-bar-row .sales-track {
  width: 100%;
  max-width: 100%;
  background: transparent;
}

.dual-bar-row .sales-fill {
  height: 12px;
  background: #e03b8b;
  border-radius: 999px;
}

.dual-bar-row strong {
  position: absolute;
  left: 16px;
  top: 50%;
  color: #ffffff;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.dual-bar-row > span {
  color: #2f3745;
  font-size: 15px;
  line-height: 1;
}

#dash-profit-products .dashboard-mini-table,
.period-dashboard-slider .dashboard-mini-table {
  min-width: 1980px;
}

.period-dashboard-slider .period-return-table {
  width: 100%;
  min-width: 860px;
  table-layout: auto;
}

.period-dashboard-slider .period-return-table th,
.period-dashboard-slider .period-return-table td {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .hot-split-layout {
    grid-template-columns: 1fr;
  }

  .dual-bar-row {
    grid-template-columns: 1fr;
  }
}

.capability-card {
  min-height: 236px;
  padding: 18px 16px;
}

.capability-card img {
  width: 144px;
  height: 144px;
  margin-bottom: 8px;
}

.ai-message.is-user {
  align-self: flex-end;
  max-width: min(82%, 360px);
  padding: 8px 11px;
  color: #5d6578 !important;
  background: #f0f4ff !important;
  border: 1px solid #d9e2f2 !important;
  border-radius: 12px;
  box-shadow: none !important;
}

.instant-value-board .dashboard-slider {
  margin-top: 10px;
  padding-bottom: 10px;
}

.instant-value-board .dashboard-card {
  min-height: 235px;
  padding: 14px 16px;
}

.period-dashboard-slider .dashboard-card {
  min-height: 258px;
  padding: 14px 16px;
}

.instant-value-board .card-topline,
.period-dashboard-slider .card-topline {
  gap: 7px;
  margin-bottom: 6px;
}

.instant-value-board .card-topline span,
.period-dashboard-slider .card-topline span {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 11px;
}

.instant-value-board .card-topline strong,
.period-dashboard-slider .card-topline strong {
  font-size: 18px;
  line-height: 1.2;
}

.instant-value-board .summary-grid,
.period-dashboard-slider .summary-grid {
  gap: 6px;
  margin-bottom: 7px;
}

.instant-value-board .summary-grid div,
.instant-value-board .risk-count,
.period-dashboard-slider .summary-grid div,
.period-dashboard-slider .risk-count {
  padding: 6px 8px;
  border-radius: 8px;
}

.instant-value-board .summary-grid span,
.instant-value-board .risk-count span,
.period-dashboard-slider .summary-grid span,
.period-dashboard-slider .risk-count span {
  font-size: 11px;
  line-height: 1.25;
}

.instant-value-board .summary-grid strong,
.instant-value-board .risk-count strong,
.period-dashboard-slider .summary-grid strong,
.period-dashboard-slider .risk-count strong {
  margin-top: 2px;
  font-size: 17px;
  line-height: 1.08;
}

.instant-value-board .dashboard-note,
.period-dashboard-slider .dashboard-note {
  font-size: 12px;
  line-height: 1.28;
}

.instant-value-board .rank-list,
.period-dashboard-slider .rank-list {
  gap: 6px;
  margin-top: 8px;
}

.hot-split-layout {
  gap: 10px;
}

.hot-split-layout .rank-list,
.hot-split-layout .bar-chart {
  grid-auto-rows: 58px;
  gap: 6px;
}

.hot-split-layout .rank-item {
  min-height: 58px;
  height: 58px;
  gap: 6px;
  padding: 7px 8px;
}

.hot-split-layout .rank-title {
  font-size: 13px;
  line-height: 1.15;
}

.hot-split-layout .rank-meta {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.2;
  -webkit-line-clamp: 1;
}

.dual-bar-row {
  gap: 4px;
  min-height: 58px;
  height: 58px;
}

.dual-bar-row .bar-track {
  height: 16px;
}

.dual-bar-row .quantity-track {
  height: 22px;
}

.dual-bar-row .sales-fill {
  height: 7px;
}

.dual-bar-row strong {
  left: 10px;
  font-size: 14px;
}

.dual-bar-row > span {
  font-size: 12px;
}

.instant-value-board .dashboard-table-shell,
.period-dashboard-slider .dashboard-table-shell {
  max-height: 188px;
}

@media (max-width: 720px) {
  .capability-card {
    min-height: 200px;
  }

  .capability-card img {
    width: 112px;
    height: 112px;
  }
}

.advanced-summary-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr) !important;
  gap: 18px;
  align-items: stretch;
  width: 100%;
}

.advanced-board .locked-slider.advanced-summary-layout,
.post-summary-cards.advanced-summary-layout {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr) !important;
}

.advanced-summary-layout .dashboard-card {
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  min-height: 430px;
  padding: clamp(22px, 2.4vw, 32px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.96)),
    repeating-linear-gradient(135deg, rgba(15, 30, 60, 0.035) 0 8px, rgba(255, 255, 255, 0.08) 8px 16px);
  border: 1px solid rgba(178, 194, 204, 0.92);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.07);
}

.advanced-summary-layout .advanced-finance-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-column: span 1;
}

.advanced-summary-layout .card-topline {
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.advanced-summary-layout .card-topline span {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #4a6cf7;
  font-weight: 400;
}

.advanced-summary-layout .card-topline strong {
  color: #0f1e3c;
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1;
}

.advanced-summary-layout .card-topline em {
  color: #0f1e3c;
  font-size: clamp(16px, 1.45vw, 24px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.1;
}

.advanced-summary-layout .locked-metrics {
  display: grid;
  gap: 14px;
}

.advanced-summary-layout .advanced-finance-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.advanced-summary-layout .locked-metrics span {
  display: block;
  min-height: 64px;
  padding: 15px 18px;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.54);
  border: 1px dashed rgba(126, 143, 158, 0.78);
  border-radius: 14px;
  font-size: clamp(14px, 1.35vw, 20px);
  font-weight: 400;
  line-height: 1.45;
}

.advanced-summary-layout .locked-metrics span:empty {
  display: none;
}

.advanced-summary-layout .locked-metrics strong {
  color: #0f1e3c;
  font-size: clamp(16px, 1.45vw, 22px);
  font-weight: 400;
}

.advanced-summary-layout .advanced-trend-chart {
  display: grid;
  align-content: stretch;
  min-height: 210px;
  margin-top: 10px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px dashed rgba(126, 143, 158, 0.78);
  border-radius: 16px;
}

.advanced-summary-layout .advanced-trend-chart svg {
  align-self: stretch;
  min-height: 230px;
}

.advanced-summary-layout .trend-legend {
  justify-content: flex-end;
  gap: 8px 18px;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 400;
}

.advanced-summary-layout .trend-legend span::before {
  width: 24px;
  height: 5px;
}

@media (max-width: 1180px) {
  .advanced-summary-layout,
  .advanced-board .locked-slider.advanced-summary-layout,
  .post-summary-cards.advanced-summary-layout {
    grid-template-columns: 1fr !important;
  }

  .advanced-summary-layout .dashboard-card {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .advanced-summary-layout .advanced-finance-metrics {
    grid-template-columns: 1fr;
  }

  .advanced-summary-layout .card-topline {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

.hot-split-layout .rank-item {
  transform: translateY(-3px);
}

.dual-bar-row {
  gap: 2px;
}

.dual-bar-row > span {
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  body.app-started .app-shell {
    padding-left: 14px !important;
  }

  body.app-started .site-header {
    left: 0 !important;
  }
}

.post-run-advanced-summary {
  max-width: 90%;
  margin-right: auto;
  margin-left: auto;
}

.post-run-advanced-summary .advanced-summary-layout,
.post-run-advanced-summary .post-summary-cards.advanced-summary-layout {
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr) !important;
  gap: 12px;
}

.post-run-advanced-summary .advanced-summary-layout .dashboard-card {
  min-height: 0;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #d9e2f2;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(20, 32, 51, 0.07);
}

.post-run-advanced-summary .advanced-summary-layout .card-topline {
  gap: 7px;
  margin-bottom: 8px;
}

.post-run-advanced-summary .advanced-summary-layout .card-topline span {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 11px;
}

.post-run-advanced-summary .advanced-summary-layout .card-topline strong {
  font-size: 18px;
  line-height: 1.2;
}

.post-run-advanced-summary .advanced-summary-layout .card-topline em {
  font-size: 13px;
}

.post-run-advanced-summary .advanced-summary-layout .locked-metrics,
.post-run-advanced-summary .advanced-summary-layout .advanced-finance-metrics {
  gap: 6px;
}

.post-run-advanced-summary .advanced-summary-layout .advanced-finance-metrics {
  margin-bottom: 8px;
}

.post-run-advanced-summary .advanced-summary-layout .locked-metrics span {
  min-height: 0;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.25;
}

.post-run-advanced-summary .advanced-summary-layout .locked-metrics strong {
  font-size: 17px;
  line-height: 1.08;
}

.post-run-advanced-summary .advanced-summary-layout .advanced-trend-chart {
  min-height: 180px;
  margin-top: 6px;
  padding: 10px;
  border-radius: 8px;
}

.post-run-advanced-summary .advanced-summary-layout .advanced-trend-chart svg {
  min-height: 180px;
}

.post-run-advanced-summary .advanced-summary-layout .trend-legend {
  font-size: 12px;
}

.period-dashboard-dots .carousel-dot {
  width: 8px;
  height: 8px;
  border: 0;
  background: #c8d3df;
}

.period-dashboard-dots .carousel-dot.is-active {
  width: 22px;
  background: #4a6cf7;
}

.period-dashboard-slider .period-profit-table-shell {
  max-height: none !important;
  height: auto;
  overflow-x: auto;
  overflow-y: visible;
}

.period-dashboard-slider .period-profit-table-shell .dashboard-mini-table th,
.period-dashboard-slider .period-profit-table-shell .dashboard-mini-table td {
  padding-top: 6px;
  padding-bottom: 6px;
  line-height: 1.22;
}

.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(38, 38, 38, 0.7);
}

.auth-backdrop.hidden {
  display: none;
}

.auth-card {
  position: relative;
  display: block;
  width: min(460px, 100%);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(217, 226, 242, 0.86);
  border-radius: 16px;
  box-shadow: 0 28px 72px rgba(15, 30, 60, 0.28);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  color: #253b90 !important;
}

.auth-form {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 0;
  padding: 34px 38px 36px;
}

.auth-brand-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin: 0 28px 8px 0;
}

.auth-brand-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.auth-brand-row span {
  color: #a7b0bf;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}

.auth-form h3 {
  margin: -6px 0 6px;
  color: #0f1e3c;
  font-size: 30px;
  font-weight: 400;
}

.auth-field {
  display: grid;
  gap: 7px;
  color: #5d6578;
  font-size: 13px;
}

.auth-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: #0f1e3c;
  background: #ffffff;
  border: 1px solid #d9e2f2;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
  border-color: #4a6cf7;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.12);
}

.auth-options,
.auth-options label,
.auth-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5d6578;
  font-size: 13px;
  font-weight: 400;
}

.auth-options {
  justify-content: space-between;
  margin-top: 2px;
}

.auth-options input {
  accent-color: #4a6cf7;
}

.link-button {
  min-height: 0;
  padding: 0;
  color: #253b90;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
}

.auth-submit {
  width: 100%;
  margin-top: 2px;
}

.auth-switch {
  justify-content: space-between;
  width: 100%;
  margin: 0;
}

.auth-switch > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-partner-register {
  margin-left: auto;
}

@media (max-width: 720px) {
  .auth-form {
    padding: 28px 22px;
  }
}

@media (max-width: 1180px) {
  .post-run-advanced-summary {
    max-width: 100%;
  }
}

.account-area {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.account-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  min-height: 38px;
  padding: 0 18px;
  color: #6f747c;
  background: #c8d1df;
  border: 1px solid #1f2937;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.account-area.is-vip .account-plan-badge {
  min-width: 168px;
  color: #273033;
  background:
    linear-gradient(#ffd43a, #f59a24) padding-box,
    linear-gradient(180deg, #ffd92f 0%, #a86f00 100%) border-box;
  border: 3px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46), 0 8px 18px rgba(166, 106, 0, 0.2);
  font-size: 20px;
}

.account-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 4px 12px 4px 4px;
  color: #1f2937;
  background: #639bff;
  border: 0;
  border-radius: 18px;
  box-shadow: none;
}

.account-button.is-vip {
  color: #203348;
  background:
    linear-gradient(100deg, #30d4ff 0%, #36a9ff 48%, #4a6cf7 100%) padding-box,
    linear-gradient(135deg, #ffe45f 0%, #d79a12 46%, #8e6400 100%) border-box;
  border: 4px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 10px 20px rgba(37, 59, 144, 0.16);
}

.account-icon {
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: #e03b8b;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
}

.account-icon::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  color: #ffffff;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 15px 0 6px #ffffff;
  transform: translateY(-6px);
}

.account-name {
  max-width: 150px;
  overflow: hidden;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-chevron {
  color: #31547e;
  font-size: 20px;
  line-height: 1;
}

.account-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 1000;
  width: 300px;
  overflow: hidden;
  color: #1f2937;
  background: #cbd5e4;
  border: 1px solid rgba(110, 124, 145, 0.45);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(15, 30, 60, 0.16);
}

.account-menu-head {
  display: grid;
  gap: 5px;
  padding: 18px 22px 10px;
}

.account-menu-head strong {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
}

.account-menu-head span {
  color: #283240;
  font-size: 17px;
  font-weight: 400;
}

.account-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 0 22px;
  color: #1f2937;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(110, 124, 145, 0.35);
  border-radius: 0;
  box-shadow: none;
  font-size: 24px;
  font-weight: 400;
  text-align: left;
}

.account-menu button:hover {
  background: rgba(255, 255, 255, 0.22);
  border-top-color: rgba(110, 124, 145, 0.35);
}

#account-logout {
  color: #0f72ff;
}

.site-header .account-menu {
  top: calc(100% + 10px);
  width: 258px;
  border-radius: 14px;
}

.site-header .account-menu-head {
  gap: 4px;
  padding: 14px 18px 9px;
}

.site-header .account-menu-head strong {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.15;
}

.site-header .account-menu-head span {
  font-size: 13px;
  font-weight: 400;
}

.site-header .account-menu button {
  min-height: 44px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 400;
}

.site-header .account-area {
  gap: 10px;
}

.site-header .account-plan-badge {
  min-width: 104px;
  min-height: 34px;
  padding: 0 16px;
  color: #6f747c;
  background: #c8d1df;
  border: 2px solid #b2bbcb;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 400;
}

.site-header .account-area.is-vip .account-plan-badge {
  min-width: 151px;
  min-height: 34px;
  font-size: 15px;
  background:
    linear-gradient(#ffd43a, #f59a24) padding-box,
    linear-gradient(180deg, #ffd92f 0%, #a86f00 100%) border-box;
  border: 3px solid transparent;
}

.site-header .account-button {
  gap: 7px;
  min-height: 41px;
  padding: 4px 12px 4px 4px;
  background: #639bff;
  border-radius: 18px;
}

.site-header .account-button.is-vip {
  background:
    linear-gradient(100deg, #30d4ff 0%, #36a9ff 48%, #4a6cf7 100%) padding-box,
    linear-gradient(135deg, #ffe45f 0%, #d79a12 46%, #8e6400 100%) border-box;
  border: 4px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 10px 18px rgba(37, 59, 144, 0.15);
}

.site-header .account-icon {
  position: relative;
  width: 34px;
  height: 34px;
  overflow: hidden;
  background: #e03b8b !important;
  border: 0 !important;
  border-radius: 50% !important;
}

.site-header .account-icon::before {
  top: 18%;
  left: 50%;
  width: 34%;
  height: 34%;
  background: #ffffff;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  transform: translateX(-50%);
}

.site-header .account-icon::after {
  left: 50%;
  bottom: 14%;
  width: 58%;
  height: 39%;
  background: #ffffff;
  border: 0;
  border-radius: 999px 999px 9px 9px;
  transform: translateX(-50%);
}

.site-header .account-name {
  max-width: 135px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}

.site-header .account-chevron {
  width: 11px;
  height: 7px;
  margin-left: 2px;
  transform: translateY(1px);
}

.site-header .account-chevron::before,
.site-header .account-chevron::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 8px;
  height: 2px;
  background: #31547e;
  border-radius: 999px;
}

.site-header .account-chevron::before {
  left: -1px;
  transform: rotate(38deg);
  transform-origin: right center;
}

.site-header .account-chevron::after {
  right: -1px;
  transform: rotate(-38deg);
  transform-origin: left center;
}

body.app-started:not(.has-report) .hero-privacy,
body.app-started:not(.has-report) .hero-guide-text,
body.app-started:not(.has-report) .download-guide-carousel {
  display: block !important;
}

body.app-started:not(.has-report) .hero-lower {
  gap: 12px;
  padding-bottom: 34px;
}

.hero-privacy,
.privacy-box {
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Assistant suggestions follow the provided gray-blue reference. */
.ai-assistant-panel .ai-suggestion-list {
  color: #ffffff !important;
  background: #5d7faf !important;
  border: 1px solid rgba(255, 255, 255, 0.48) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 42px rgba(37, 59, 144, 0.18);
}

.ai-assistant-panel .ai-suggestion-list * {
  color: #ffffff !important;
}

.ai-assistant-panel .ai-suggestion-title {
  color: #ffffff !important;
  font-weight: 400 !important;
}

.ai-assistant-panel .ai-suggestion-list button {
  color: #ffffff !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.46) !important;
  border-radius: 10px !important;
  font-weight: 400 !important;
}

.ai-assistant-panel .ai-suggestion-list button:hover,
.ai-assistant-panel .ai-suggestion-list button:focus-visible {
  color: #ffffff !important;
  background: #253b90 !important;
  border-color: #253b90 !important;
}

.ai-assistant-panel .ai-chat-form {
  padding: 8px !important;
  background: rgba(240, 244, 255, 0.84) !important;
  border: 4px solid rgba(86, 103, 232, 0.2) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

.ai-assistant-panel .ai-chat-form input {
  color: #111827 !important;
  background: #ffffff !important;
  border: 2px solid #5669e8 !important;
  border-radius: 14px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.ai-assistant-panel .ai-chat-form input:focus {
  border-color: #4f62e8 !important;
  box-shadow: 0 0 0 3px rgba(86, 103, 232, 0.18) !important;
}

.ai-assistant-panel .ai-send-button {
  color: #ffffff !important;
  background: #4f62e8 !important;
  border-color: #4f62e8 !important;
  border-radius: 50% !important;
}

.ai-assistant-panel .ai-send-button:hover,
.ai-assistant-panel .ai-send-button:focus-visible {
  background: #253b90 !important;
  border-color: #253b90 !important;
}

body:not(.app-started),
body:not(.app-started) .hero,
body:not(.app-started) .hero-lower {
  background: #ffffff !important;
}

body:not(.app-started) .hero-cover {
  background: #ffffff url("./assets/frontpage.jpg") top center / cover no-repeat !important;
}

body:not(.app-started) .hero-lower {
  margin-top: -36px;
  padding-top: 0;
}

.period-digest-row summary::after {
  content: "﹀";
  padding: 0;
  color: var(--primary);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.period-digest-row[open] summary::after {
  content: "︿";
}

.privacy-leave-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.36);
}

.privacy-leave-modal.is-visible {
  display: grid;
}

.privacy-leave-card {
  width: min(520px, 100%);
  padding: 24px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  text-align: center;
}

.privacy-leave-card p {
  margin: 0;
  color: #1f2937;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.7;
}

.privacy-leave-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.multi-cycle-remove {
  width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

body.app-started .header-title {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  color: #0f1e3c;
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

body.app-started .header-title em {
  color: #4b5563;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
}
