:root {
  color-scheme: dark;
  --bg: #071019;
  --bg-deep: #050b12;
  --surface: #0d1824;
  --surface-2: #111f2e;
  --surface2: var(--surface-2);
  --surface-3: #162637;
  --line: #213346;
  --line-soft: #182838;
  --line-strong: #34516c;
  --text: #f3f7fb;
  --text-soft: #c8d4df;
  --muted: #8ea1b4;
  --blue: #5ba5ff;
  --blue-soft: #9dcbff;
  --blue-wash: #102b47;
  --green: #4ad7a6;
  --green2: #123c31;
  --red: #ff7188;
  --red-wash: #3d1720;
  --amber: #f2bf68;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .16);
  --shadow-lg: 0 32px 90px rgba(0, 0, 0, .42);
  --radius-sm: 8px;
  --radius: 13px;
  --radius-lg: 20px;
  --max: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: #304961 var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 72% -12%, rgba(37, 104, 157, .2), transparent 32rem),
    radial-gradient(circle at 100% 30%, rgba(38, 107, 91, .1), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "SF Pro Display", "SF Pro Text", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .012) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .012) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 72%);
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

::selection { background: rgba(91, 165, 255, .32); }

a {
  color: var(--blue-soft);
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}

a:hover { color: #d6eaff; }

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

h1, h2, h3 {
  color: var(--text);
  font-weight: 650;
}

h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.5rem, 5vw, 5.15rem);
  line-height: .99;
  letter-spacing: -.058em;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

h3 {
  line-height: 1.25;
  letter-spacing: -.018em;
}

p, small { color: var(--muted); }
button, input, select, textarea { font: inherit; }
strong, b, table, .metrics { font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 3px solid rgba(91, 165, 255, .42);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(49, 73, 96, .58);
  background: rgba(5, 12, 19, .82);
  box-shadow: 0 1px rgba(255, 255, 255, .02);
  backdrop-filter: blur(20px) saturate(140%);
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: .94rem;
  font-weight: 720;
  letter-spacing: -.02em;
}

.brand:hover { color: #fff; }

.brand-mark {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 7px;
  border: 1px solid rgba(111, 179, 255, .48);
  border-radius: 9px;
  background: linear-gradient(145deg, #142b40, #0b1722);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 6px 18px rgba(0, 0, 0, .22);
}

.brand-mark i {
  width: 3px;
  border-radius: 4px;
  background: linear-gradient(to top, var(--blue), var(--green));
}

.brand-mark i:nth-child(1) { height: 8px; opacity: .72; }
.brand-mark i:nth-child(2) { height: 14px; }
.brand-mark i:nth-child(3) { height: 11px; opacity: .84; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .84rem;
}

.site-header nav > a:not(.button),
.nav-button {
  position: relative;
  border-radius: 8px;
  color: #aab9c8;
  font-weight: 540;
}

.site-header nav > a:not(.button) { padding: 8px 11px; }

.site-header nav > a:not(.button):hover,
.site-header nav > a.current,
.nav-button:hover {
  background: rgba(102, 158, 210, .09);
  color: var(--text);
}

.site-header nav > a.current::after {
  position: absolute;
  right: 11px;
  bottom: 2px;
  left: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  content: "";
}

.inline-form { display: inline; }

.nav-button,
.text-button {
  padding: 8px 10px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.button,
button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid #6bb0ff;
  border-radius: 9px;
  background: linear-gradient(180deg, #69adff, #4f94eb);
  box-shadow: inset 0 1px rgba(255, 255, 255, .22), 0 7px 20px rgba(27, 105, 190, .18);
  color: #06111d;
  font-weight: 720;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.button:hover,
button:hover {
  border-color: #91c5ff;
  background: linear-gradient(180deg, #83bbff, #64a4f3);
  box-shadow: inset 0 1px rgba(255, 255, 255, .26), 0 9px 24px rgba(27, 105, 190, .26);
  color: #05101b;
  transform: translateY(-1px);
}

.button:active,
button:active { transform: translateY(0); }

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(17, 31, 46, .7);
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
  color: var(--text-soft);
}

.button.secondary:hover {
  border-color: #557694;
  background: var(--surface-3);
  color: #fff;
}

.button.danger {
  border-color: #8c3547;
  background: var(--red-wash);
  box-shadow: none;
  color: #ffdce2;
}

.button.danger:hover { background: #531e29; }
.button.compact { min-height: 36px; padding: 7px 12px; font-size: .8rem; }
.button.full { width: 100%; }

.eyebrow {
  margin-bottom: .75rem;
  color: var(--blue);
  font-size: .68rem;
  font-weight: 780;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero-shell,
.section-shell,
.app-shell,
.narrow-shell,
.legal-shell {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.hero-shell {
  display: grid;
  min-height: 760px;
  align-items: center;
  grid-template-columns: .91fr 1.09fr;
  gap: clamp(50px, 7vw, 96px);
  padding-block: 92px 110px;
}

.hero-copy { position: relative; z-index: 1; }

.hero-copy h1 span {
  background: linear-gradient(100deg, #96c9ff 3%, #61aaff 42%, #58d9ae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 600px;
  color: #aebdcc;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.72;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin: 27px 0 17px;
}

.export-actions {
  justify-content: flex-end;
  margin: 0;
}

.microcopy {
  font-size: .76rem;
  letter-spacing: .025em;
}

.hero-product {
  position: relative;
  padding: 24px;
  border: 1px solid #315270;
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(20, 38, 55, .98), rgba(8, 17, 27, .98) 72%);
  box-shadow: var(--shadow-lg), inset 0 1px rgba(255, 255, 255, .07);
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.hero-product::before {
  position: absolute;
  z-index: -1;
  top: 8%;
  right: -7%;
  width: 58%;
  height: 75%;
  border-radius: 50%;
  background: rgba(50, 132, 207, .18);
  content: "";
  filter: blur(70px);
}

.product-top,
.panel-head,
.page-heading,
.trade-hero,
.subscription-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.product-top { align-items: center; }

.product-top > div {
  display: grid;
  gap: 3px;
}

.product-top strong {
  font-size: .94rem;
  font-weight: 650;
}

.product-kicker {
  color: #748ca2;
  font-size: .59rem;
  font-weight: 750;
  letter-spacing: .16em;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8fe7c5;
  font-size: .68rem;
  font-weight: 640;
}

.status-dot::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(74, 215, 166, .09);
  content: "";
}

.product-controls {
  display: flex;
  gap: 7px;
  margin: 20px 0 13px;
}

.product-controls span {
  padding: 5px 9px;
  border: 1px solid #2b4359;
  border-radius: 6px;
  background: rgba(5, 14, 23, .38);
  color: #8ea3b7;
  font-size: .64rem;
}

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

.metric-grid { margin-bottom: 24px; }

.metric-grid > div,
.metrics article,
.trade-facts span {
  padding: 15px;
  border: 1px solid #20364a;
  border-radius: 10px;
  background: rgba(6, 16, 25, .53);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.metric-grid small,
.metrics small {
  display: block;
  margin-bottom: 4px;
  color: #8195a8;
  font-size: .65rem;
}

.metric-grid strong,
.metrics strong {
  display: block;
  font-size: 1.42rem;
  font-weight: 650;
  letter-spacing: -.035em;
}

.metric-grid em {
  color: #7c93a7;
  font-size: .61rem;
  font-style: normal;
}

.metric-grid > div:first-child em { color: var(--green); }

.chart-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2px;
}

.chart-head > div { display: grid; }
.chart-head small { font-size: .59rem; letter-spacing: .12em; }
.chart-head strong { font-size: 1.15rem; font-weight: 640; }

.chart-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8296a9;
  font-size: .62rem;
}

.chart-panel .chart-legend::before { display: none; }

.chart-legend::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.mock-chart {
  min-height: 192px;
  margin: 0 -2px;
  padding-top: 7px;
}

.mock-chart svg {
  display: block;
  width: 100%;
  height: 165px;
  overflow: visible;
}

.chart-gridlines path {
  fill: none;
  stroke: #263b4d;
  stroke-dasharray: 3 5;
  stroke-width: 1;
}

.chart-area { fill: url(#area-fill); }
.chart-line { fill: none; stroke: url(#line-stroke); stroke-linecap: round; stroke-width: 3; }
.mock-chart circle { fill: var(--green); stroke: #0b1823; stroke-width: 3; }

.chart-axis {
  display: flex;
  justify-content: space-between;
  color: #61778c;
  font-size: .57rem;
}

.account-lines {
  margin-top: 8px;
  border-top: 1px solid #203244;
}

.account-lines p,
.stat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .74rem;
}

.account-lines b,
.positive { color: var(--green); }

.negative { color: var(--red) !important; }

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 22px max(24px, calc((100vw - var(--max)) / 2));
  border-block: 1px solid rgba(43, 66, 87, .72);
  background: rgba(8, 17, 27, .58);
  color: #96a9ba;
  font-size: .76rem;
}

.trust-strip span {
  display: flex;
  align-items: center;
}

.trust-strip span::before {
  width: 5px;
  height: 5px;
  margin: 0 13px 0 28px;
  border-radius: 50%;
  background: #3f7fb6;
  content: "";
}

.trust-strip span:first-child::before { margin-left: 0; }

.section-shell { padding-block: 110px; }
.section-shell > h2 { max-width: 720px; }

.feature-grid {
  display: grid;
  margin-top: 44px;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-grid article,
.pricing article {
  position: relative;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(17, 31, 46, .93), rgba(10, 20, 31, .93));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.feature-grid article {
  min-height: 238px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.feature-grid article:hover {
  border-color: #3c5a74;
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.feature-grid article::after {
  position: absolute;
  right: -35px;
  bottom: -45px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(53, 136, 203, .08);
  content: "";
}

.feature-grid article > span {
  display: inline-grid;
  width: 31px;
  height: 31px;
  margin-bottom: 36px;
  place-items: center;
  border: 1px solid #2c4a65;
  border-radius: 8px;
  background: #102237;
  color: #82baf2;
  font-size: .66rem;
  font-weight: 700;
}

.feature-grid h3 { font-size: 1.05rem; }
.feature-grid p { margin-bottom: 0; font-size: .86rem; }

.workflow {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
}

.workflow ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}

.workflow li {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
}

.workflow li b {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #2d536c;
  border-radius: 50%;
  background: var(--blue-wash);
  color: #8bc1f8;
  font-size: .78rem;
}

.pricing {
  display: grid;
  align-items: center;
  grid-template-columns: 1.15fr .85fr;
  gap: 80px;
}

.pricing article {
  padding: 31px;
  border-color: #365b78;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .05);
}

.pricing article > small {
  color: var(--blue);
  font-size: .65rem;
  font-weight: 750;
  letter-spacing: .15em;
}

.pricing article h3 {
  margin: 10px 0 20px;
  font-size: 2.7rem;
}

.pricing ul {
  padding-left: 0;
  list-style: none;
}

.pricing li {
  position: relative;
  margin: .78rem 0;
  padding-left: 22px;
  color: #adbdca;
  font-size: .86rem;
}

.pricing li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
}

.pricing-note {
  margin: 16px 0 0;
  font-size: .72rem;
  text-align: center;
}

.proof-section {
  display: grid;
  align-items: start;
  grid-template-columns: .7fr 1.3fr;
  gap: 70px;
}

.public-view .compact-grid {
  margin-top: 0;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
}

.public-view .compact-grid article,
.public-view .compact-grid article:first-child,
.public-view .compact-grid article:last-child {
  min-height: 210px;
  grid-row: auto;
  grid-column: auto;
}

.faq-grid {
  display: grid;
  margin-top: 38px;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.faq-grid article {
  padding: 28px;
  background: #0a1622;
}

.faq-grid h3 { font-size: 1rem; }
.faq-grid p { margin-bottom: 0; font-size: .86rem; }

.disclaimer-band {
  display: grid;
  padding: 33px max(24px, calc((100vw - var(--max)) / 2));
  border-block: 1px solid var(--line);
  background: rgba(11, 24, 35, .82);
  grid-template-columns: .45fr 1.55fr;
  gap: 44px;
}

.disclaimer-band p { margin: 0; }
.app-shell { padding-block: 54px 76px; }

.narrow-shell,
.legal-shell {
  max-width: 780px;
  padding-block: 64px 84px;
}

.legal-shell { max-width: 860px; }
.legal-shell h1 { font-size: 3.3rem; }
.legal-shell h2 { margin-top: 2.6rem; }
.legal-meta { font-size: .78rem; }

.page-heading {
  align-items: flex-end;
  margin-bottom: 32px;
}

.page-heading h1,
.trade-hero h1,
.narrow-shell h1 {
  max-width: 890px;
  margin-bottom: .75rem;
  font-size: clamp(2.25rem, 4vw, 3.8rem);
  line-height: 1.03;
}

.page-heading p:last-child { margin-bottom: 0; }

.panel,
.form-card,
.upload-zone,
.onboarding,
.empty-state,
.notice-box,
.error-box,
.access-banner {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(16, 29, 43, .97), rgba(10, 20, 31, .97));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.panel { margin-bottom: 18px; }
.panel h2 { font-size: 1.18rem; }
.panel-head { align-items: center; margin-bottom: 8px; }
.panel-head h2 { margin-bottom: 0; }
.panel-head .eyebrow { margin-bottom: 4px; }

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

.auth-shell {
  display: grid;
  width: min(1040px, calc(100% - 48px));
  min-height: 720px;
  align-items: center;
  margin: 0 auto;
  grid-template-columns: 1fr 440px;
  gap: 96px;
}

.auth-shell h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); }

.form-card label,
.filter-bar label,
.upload-zone label {
  display: grid;
  gap: 7px;
  color: #b7c6d3;
  font-size: .78rem;
  font-weight: 560;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #2c4359;
  border-radius: var(--radius-sm);
  background: rgba(5, 13, 21, .76);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18);
  color: var(--text);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

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

input:hover,
select:hover,
textarea:hover { border-color: #3c5b75; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: none;
  background: #091522;
  box-shadow: 0 0 0 3px rgba(91, 165, 255, .12);
}

input:disabled { opacity: .58; }
.check { align-items: start; grid-template-columns: auto 1fr !important; }
.check input { width: auto; min-height: 0; margin-top: 4px; accent-color: var(--blue); }
.form-foot, .form-note { margin: 0; font-size: .75rem; }

.split,
.two-column,
.chart-grid,
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.filter-bar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(9, 19, 29, .84);
  box-shadow: inset 0 1px rgba(255, 255, 255, .02);
}

.filter-bar label { min-width: 124px; }
.filter-bar .account-checks { display: flex; flex: 1; flex-wrap: wrap; gap: 7px; }

.chip {
  display: flex !important;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #2c4359;
  border-radius: 999px;
  background: rgba(12, 25, 38, .8);
  color: #a8b8c7 !important;
  cursor: pointer;
  grid-template-columns: auto 1fr;
}

.chip:hover { border-color: #486a86; }
.chip input { width: auto; min-height: 0; accent-color: var(--blue); }
.chip:has(input:checked) { border-color: #4b86bc; background: #102a43; color: #d9eaff !important; }

.metrics {
  margin-bottom: 20px;
  grid-template-columns: repeat(8, 1fr);
}

.metrics article {
  position: relative;
  padding: 15px;
  overflow: hidden;
  background: linear-gradient(160deg, #102030, #0b1723);
}

.metrics article::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(91, 165, 255, .45), transparent);
  content: "";
  opacity: .45;
}

.metrics small {
  color: #7e93a6;
  font-size: .61rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.metrics strong {
  overflow: hidden;
  font-size: 1.12rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-metrics { grid-template-columns: repeat(4, 1fr); }

.performance-chart {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  scrollbar-color: #304961 transparent;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .79rem;
}

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

th {
  color: #71869a;
  font-size: .62rem;
  font-weight: 680;
  letter-spacing: .095em;
  text-transform: uppercase;
}

tbody tr { transition: background .15s ease; }
tbody tr:hover { background: rgba(80, 140, 193, .055); }
tbody tr:last-child td { border-bottom: 0; }

.badge,
.status {
  display: inline-block;
  margin-left: 5px;
  padding: 3px 8px;
  border: 1px solid #36536a;
  border-radius: 999px;
  background: rgba(16, 34, 49, .7);
  color: #b7c7d5;
  font-size: .63rem;
}

.status-create,
.status-completed,
.status-active { border-color: #2d745a; background: rgba(22, 72, 57, .27); color: #7fe1bc; }

.status-update,
.status-awaiting_confirmation,
.status-pending,
.status-processing { border-color: #76612f; background: rgba(87, 68, 24, .25); color: #f3c873; }

.status-failed,
.status-rejected,
.status-past_due { border-color: #7b3441; background: rgba(95, 29, 42, .24); color: #ff9cac; }

.stat-list a { color: #adbdcb; }
.stat-list a:hover { padding-inline: 7px; background: rgba(73, 127, 176, .06); color: #e8f3fc; }
.compact-list { max-height: 190px; overflow: auto; }
.empty-copy { padding: 18px 0; }

.empty-state {
  padding: 44px;
  border-style: dashed;
  background: rgba(11, 23, 34, .66);
  text-align: center;
}

.empty-state p:last-child { margin-bottom: 0; }

.upload-zone {
  display: grid;
  align-items: end;
  margin-bottom: 20px;
  padding: 26px;
  border-color: #345b78;
  background: linear-gradient(145deg, rgba(18, 42, 61, .9), rgba(10, 21, 31, .96));
  grid-template-columns: 1fr 230px 180px auto;
  gap: 17px;
}

.upload-zone h2 { margin-bottom: 2px; font-size: 1.25rem; }
.upload-zone p { margin-bottom: 0; }

.upload-icon {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  place-items: center;
  border: 1px solid #3c6f92;
  border-radius: 9px;
  background: #102c43;
  color: #8bc9ff;
  font-size: 1.2rem;
}

.file-picker input { position: absolute; opacity: 0; pointer-events: none; }

.file-picker span {
  display: block;
  min-height: 42px;
  overflow: hidden;
  padding: 9px;
  border: 1px dashed #4b6d88;
  border-radius: 8px;
  background: rgba(7, 17, 27, .4);
  color: #aec4d6;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.file-picker span:hover { border-color: var(--blue); background: #102238; }

.access-banner,
.onboarding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.access-banner { border-color: #654f27; }
.access-banner p, .onboarding p { margin-bottom: 0; }

.trade-hero {
  align-items: flex-end;
  margin: 24px 0 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.trade-pnl {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -.04em;
}

.trade-facts {
  display: grid;
  margin: 18px 0;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.trade-facts span {
  color: #7f94a7;
  font-size: .68rem;
}

.trade-facts b {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 1.04rem;
}

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

.screenshot-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.screenshot-grid img { display: block; width: 100%; height: 170px; object-fit: cover; }
.screenshot-grid article > div { display: flex; justify-content: space-between; padding: 9px; }
.tag-row, .inline-controls { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.tag-row input { flex: 1; }
.inline-controls input, .inline-controls select { min-width: 120px; }
.subscription-card > strong { font-size: 1.9rem; }
.notice-box, .error-box { margin: 20px 0; }
.notice-box { border-color: #34516b; background: rgba(17, 36, 51, .84); }
.error-box { border-color: #6f303d; background: rgba(53, 20, 29, .52); }
.danger-zone { margin-top: 32px; border-color: #67323d; }
.error-page { padding-top: 140px; text-align: center; }

.flash-stack {
  position: fixed;
  z-index: 50;
  top: 92px;
  right: 20px;
  display: grid;
  gap: 8px;
}

.flash {
  max-width: 430px;
  padding: 12px 15px;
  border: 1px solid #3a5872;
  border-radius: 9px;
  background: #132538;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .42);
}

.flash.success { border-color: #34775b; }
.flash.error { border-color: #843b49; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 42px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { width: 27px; height: 27px; padding: 6px; }
footer p { max-width: 680px; margin: 12px 0 0; font-size: .75rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; font-size: .76rem; }

.account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(150deg, var(--surface), #0a1520);
  transition: border-color .16s ease, transform .16s ease;
}

.account-card:hover { border-color: #35536b; transform: translateY(-1px); }
.account-card h3, .account-card p { margin-bottom: 2px; }
.account-card.archived { opacity: .66; }
.card-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.card-actions form { margin: 0; }
.danger-link { color: var(--red); }
.danger-link:hover { color: #ffb0bb; }
button:disabled { opacity: .44; cursor: not-allowed; transform: none; }

details {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(7, 16, 25, .38);
}

summary { color: #c4d1dc; cursor: pointer; }

@media (max-width: 1080px) {
  .metrics { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .upload-zone { grid-template-columns: 1fr 1fr; }
  .hero-shell { grid-template-columns: .86fr 1.14fr; gap: 36px; }
  .site-header { padding-inline: 20px; }
}

@media (max-width: 800px) {
  .site-header {
    display: block;
    min-height: auto;
    padding: 11px 16px 0;
  }

  .site-header .brand { width: fit-content; margin-bottom: 8px; }

  .site-header nav {
    width: calc(100vw - 32px);
    padding-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav > * { flex: 0 0 auto; }
  .hero-shell, .auth-shell, .pricing, .workflow, .two-column, .chart-grid, .report-grid { grid-template-columns: 1fr; }
  .hero-shell { min-height: auto; padding-block: 60px 80px; }
  .hero-copy { max-width: 620px; }
  .hero-product { max-width: 680px; transform: none; }
  .auth-shell { gap: 32px; padding-block: 54px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .section-shell { padding-block: 76px; }
  .disclaimer-band { grid-template-columns: 1fr; gap: 8px; }
  .upload-zone { grid-template-columns: 1fr; }
  .page-heading, .trade-hero, .access-banner, .onboarding, footer { display: block; }
  .page-heading > .button, .access-banner > .button { margin-top: 14px; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .flash-stack { top: 126px; right: 12px; left: 12px; }
  .flash { max-width: none; }
  .footer-links { margin-top: 24px; }
}

@media (max-width: 560px) {
  .hero-shell, .section-shell, .app-shell, .narrow-shell, .legal-shell { width: min(100% - 28px, var(--max)); }
  h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .hero-shell { padding-block: 48px 64px; }
  .hero-product { padding: 16px; border-radius: 16px; }
  .product-top { align-items: flex-start; }
  .status-dot { font-size: 0; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid > div:last-child { display: none; }
  .metric-grid strong { font-size: 1.2rem; }
  .mock-chart { min-height: 170px; }
  .mock-chart svg { height: 145px; }
  .trust-strip { justify-content: flex-start; gap: 9px; }
  .trust-strip span { width: calc(50% - 5px); }
  .trust-strip span::before { margin-left: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 0; }
  .feature-grid article > span { margin-bottom: 28px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .trade-facts { grid-template-columns: repeat(2, 1fr); }
  .trade-facts span:last-child { grid-column: 1 / -1; }
  .filter-bar { align-items: stretch; }
  .filter-bar label, .filter-bar button { width: 100%; }
  .account-card { align-items: flex-start; flex-direction: column; }
  .card-actions { justify-content: flex-start; }
  .tag-row { align-items: stretch; flex-direction: column; }
  .tag-row > * { width: 100%; }
  .split { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* 2026 analytics workspace */

:root {
  --sidebar: 248px;
  --bg: #060b12;
  --bg-deep: #04080d;
  --surface: #0c1420;
  --surface-2: #101b29;
  --surface-3: #142235;
  --line: #1b2a3c;
  --line-soft: #142235;
  --line-strong: #314963;
  --text: #f5f7fb;
  --text-soft: #ced7e2;
  --muted: #8494a7;
  --blue: #79a7ff;
  --blue-soft: #b6d1ff;
  --green: #62ddb6;
}

body {
  background:
    radial-gradient(circle at 69% -15%, rgba(92, 103, 235, .15), transparent 31rem),
    radial-gradient(circle at 92% 38%, rgba(27, 132, 133, .08), transparent 32rem),
    var(--bg);
  font-family: "Avenir Next", Inter, "SF Pro Display", "SF Pro Text", ui-sans-serif, system-ui, sans-serif;
}

.app-view {
  background:
    radial-gradient(circle at 52% -10%, rgba(68, 89, 173, .13), transparent 36rem),
    linear-gradient(180deg, #070d15 0, #060b12 48%, #050a10 100%);
}

.app-view::before {
  left: var(--sidebar);
  background-size: 64px 64px;
  opacity: .48;
}

.app-view .site-header {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: var(--sidebar);
  height: 100vh;
  min-height: 680px;
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding: 24px 17px 18px;
  border: 0;
  border-right: 1px solid rgba(43, 59, 79, .72);
  background:
    linear-gradient(180deg, rgba(12, 19, 29, .99), rgba(7, 12, 19, .99)),
    var(--bg-deep);
  box-shadow: 16px 0 45px rgba(0, 0, 0, .15);
  backdrop-filter: none;
}

.app-view .site-header::after {
  position: absolute;
  top: 0;
  right: -1px;
  left: 0;
  height: 180px;
  background: radial-gradient(circle at 50% 0, rgba(94, 128, 235, .12), transparent 72%);
  content: "";
  pointer-events: none;
}

.app-view .brand {
  position: relative;
  z-index: 1;
  min-height: 38px;
  padding-inline: 6px;
  font-size: .93rem;
}

.app-view .brand-mark {
  width: 34px;
  height: 34px;
  border-color: rgba(127, 164, 255, .46);
  background: linear-gradient(145deg, #15233a, #0b1421);
}

.workspace-switcher {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0 20px;
  padding: 11px;
  border: 1px solid #1d2d40;
  border-radius: 12px;
  background: rgba(20, 31, 46, .7);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.workspace-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid #456594;
  border-radius: 9px;
  background: linear-gradient(145deg, #29456f, #172843);
  color: #dce9ff;
  font-size: .75rem;
  font-weight: 750;
}

.workspace-switcher > span:last-child {
  display: grid;
  min-width: 0;
}

.workspace-switcher small {
  color: #61748a;
  font-size: .56rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.workspace-switcher strong {
  overflow: hidden;
  color: #cfd9e5;
  font-size: .75rem;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-view .site-header nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.nav-section {
  margin: 16px 10px 5px;
  color: #52657a;
  font-size: .56rem;
  font-weight: 720;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.app-view .site-header nav > a:not(.button) {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #8293a7;
  font-size: .78rem;
  font-weight: 560;
}

.app-view .site-header nav > a:not(.button):hover {
  border-color: rgba(64, 85, 112, .48);
  background: rgba(35, 52, 73, .44);
  color: #dae3ed;
}

.app-view .site-header nav > a.current {
  border-color: rgba(82, 111, 158, .42);
  background: linear-gradient(90deg, rgba(51, 75, 118, .54), rgba(33, 52, 80, .28));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
  color: #eef4ff;
}

.app-view .site-header nav > a.current::after {
  top: 9px;
  right: auto;
  bottom: 9px;
  left: -7px;
  width: 2px;
  height: auto;
  border-radius: 3px;
  background: #7ca7ff;
  box-shadow: 0 0 13px rgba(101, 145, 255, .62);
}

.nav-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 6px;
  color: #7388a0;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  overflow: visible;
}

.nav-icon svg path,
.nav-icon svg circle,
.nav-icon svg rect {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.app-view .site-header nav > a:first-of-type .nav-icon svg path {
  fill: currentColor;
  stroke: none;
}

.app-view .site-header nav > a.current .nav-icon {
  background: rgba(101, 141, 219, .14);
  color: #9ab9ff;
}

.sidebar-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 5px 0;
  border-top: 1px solid #182536;
}

.sidebar-foot > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #566a7e;
  font-size: .56rem;
}

.sidebar-foot > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(98, 221, 182, .07);
}

.sidebar-foot .nav-button {
  min-height: 30px;
  padding: 5px 7px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #718398;
  font-size: .64rem;
  font-weight: 560;
}

.app-view main {
  min-height: calc(100vh - 130px);
  margin-left: var(--sidebar);
}

.app-view footer {
  margin-left: var(--sidebar);
  padding-block: 32px;
}

.app-view .flash-stack { left: calc(var(--sidebar) + 20px); }

.app-view .app-shell {
  width: min(1460px, calc(100% - 64px));
  padding-block: 38px 72px;
}

.dashboard-heading {
  align-items: center;
  margin-bottom: 25px;
}

.dashboard-heading h1 {
  margin: 8px 0 7px;
  font-size: clamp(2.35rem, 4vw, 3.45rem);
  font-weight: 590;
  letter-spacing: -.052em;
}

.dashboard-heading p {
  margin-bottom: 0;
  color: #7d8ea1;
  font-size: .82rem;
}

.heading-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #607287;
  font-size: .61rem;
  font-weight: 600;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.heading-meta span + span {
  padding-left: 12px;
  border-left: 1px solid #2a3a4d;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8ea3b8;
}

.live-indicator::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6fe1bd;
  box-shadow: 0 0 0 4px rgba(98, 221, 182, .08);
  content: "";
}

.import-button { gap: 8px; }

.import-button > span {
  font-size: 1.12rem;
  font-weight: 430;
}

.dashboard-toolbar {
  display: grid;
  min-height: 70px;
  align-items: center;
  margin-bottom: 16px;
  padding: 11px 12px 11px 16px;
  border-color: #1f3045;
  border-radius: 13px;
  background: linear-gradient(110deg, rgba(15, 26, 39, .96), rgba(10, 18, 28, .96));
  box-shadow: 0 9px 30px rgba(0, 0, 0, .12), inset 0 1px rgba(255, 255, 255, .025);
  grid-template-columns: auto minmax(160px, 1fr) auto auto;
  gap: 15px;
}

.toolbar-label {
  display: grid;
  min-width: 100px;
  gap: 0;
}

.toolbar-label small {
  color: #576b80;
  font-size: .55rem;
  font-weight: 690;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.toolbar-label strong {
  color: #c6d1dd;
  font-size: .72rem;
  font-weight: 620;
}

.dashboard-toolbar .account-checks {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.dashboard-toolbar .account-checks::-webkit-scrollbar { display: none; }

.dashboard-toolbar .chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 10px;
  border-color: #27394d;
  background: #0b1521;
  font-size: .68rem;
  font-weight: 540;
}

.dashboard-toolbar .chip:has(input:checked) {
  border-color: #4f6fa1;
  background: linear-gradient(180deg, #1c3252, #152740);
  box-shadow: inset 0 1px rgba(255, 255, 255, .05);
}

.date-filters {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 14px;
  border-left: 1px solid #213247;
}

.date-filters > span { color: #465d76; }

.dashboard-toolbar label { min-width: 116px; }

.dashboard-toolbar label:not(.chip) {
  display: grid;
  gap: 2px;
  color: #64778c;
  font-size: .54rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-toolbar input[type="date"] {
  min-height: 31px;
  padding: 4px 7px;
  border-color: transparent;
  background: transparent;
  color: #b2c0ce;
  font-size: .68rem;
}

.dashboard-toolbar .button { min-height: 36px; padding: 7px 12px; font-size: .68rem; }

.dashboard-metrics {
  display: grid;
  margin-bottom: 16px;
  grid-template-columns: 1.15fr 1.15fr 1fr 1fr;
  grid-template-rows: repeat(3, minmax(96px, auto));
  gap: 10px;
}

.dashboard-metrics article {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px 18px;
  border-color: #1d2d42;
  border-radius: 13px;
  background:
    radial-gradient(circle at 100% 0, rgba(82, 111, 170, .08), transparent 55%),
    linear-gradient(150deg, #0f1a28, #0a131e);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1), inset 0 1px rgba(255, 255, 255, .025);
}

.dashboard-metrics article::after { display: none; }

.dashboard-metrics article:nth-child(2) { grid-column: 3; grid-row: 1; }
.dashboard-metrics article:nth-child(3) { grid-column: 4; grid-row: 1; }
.dashboard-metrics article:nth-child(4) { grid-column: 3; grid-row: 2; }
.dashboard-metrics article:nth-child(5) { grid-column: 4; grid-row: 2; }
.dashboard-metrics article:nth-child(6) { grid-column: 1 / 3; grid-row: 3; }
.dashboard-metrics article:nth-child(7) { grid-column: 3 / 5; grid-row: 3; }

.dashboard-metrics article > small {
  margin: 0;
  color: #697d92;
  font-size: .57rem;
  font-weight: 690;
  letter-spacing: .11em;
}

.dashboard-metrics article > strong {
  margin-top: 10px;
  color: #eef4fb;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 560;
  letter-spacing: -.04em;
}

.dashboard-metrics article > span:not(.metric-trend) {
  margin-top: 4px;
  color: #53687d;
  font-size: .6rem;
}

.dashboard-metrics .metric-primary {
  position: relative;
  min-height: 202px;
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  padding: 21px 23px;
  overflow: hidden;
  border-color: rgba(74, 101, 155, .58);
  background:
    radial-gradient(circle at 88% 2%, rgba(100, 91, 219, .26), transparent 42%),
    radial-gradient(circle at 2% 100%, rgba(40, 141, 139, .13), transparent 46%),
    linear-gradient(145deg, #17243a, #0e1928 64%, #0a1420);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18), inset 0 1px rgba(255, 255, 255, .07);
}

.metric-primary::before {
  position: absolute;
  right: -38px;
  bottom: -50px;
  width: 230px;
  height: 130px;
  border: 1px solid rgba(119, 147, 230, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 27px rgba(104, 129, 204, .035), 0 0 0 54px rgba(104, 129, 204, .018);
  content: "";
  transform: rotate(-18deg);
}

.metric-primary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-primary .metric-badge {
  padding: 4px 7px;
  border: 1px solid rgba(123, 153, 217, .28);
  border-radius: 999px;
  background: rgba(38, 58, 93, .4);
  color: #8198bf;
  font-size: .55rem;
  font-weight: 620;
}

.dashboard-metrics .metric-primary > strong {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  font-size: clamp(2.7rem, 5vw, 4.2rem);
  font-weight: 520;
  letter-spacing: -.065em;
}

.metric-primary p {
  position: relative;
  z-index: 1;
  margin: 2px 0 15px;
  color: #7890aa;
  font-size: .69rem;
}

.metric-trend {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  padding: 5px 8px;
  border: 1px solid rgba(83, 183, 151, .27);
  border-radius: 7px;
  background: rgba(39, 127, 102, .11);
  font-size: .58rem;
  font-weight: 630;
}

.metric-wide > strong i {
  color: #4c6076;
  font-style: normal;
  font-weight: 400;
}

.dashboard-charts {
  display: grid;
  margin-bottom: 16px;
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, .88fr);
  gap: 12px;
}

.chart-panel {
  min-width: 0;
  margin: 0;
  padding: 20px 20px 14px;
  border-color: #1e2f43;
  border-radius: 15px;
  background:
    radial-gradient(circle at 60% -10%, rgba(87, 102, 178, .08), transparent 42%),
    linear-gradient(155deg, rgba(14, 24, 37, .99), rgba(8, 16, 25, .99));
  box-shadow: 0 15px 45px rgba(0, 0, 0, .14), inset 0 1px rgba(255, 255, 255, .03);
}

.chart-panel .panel-head {
  align-items: flex-start;
  min-height: 60px;
  margin-bottom: 0;
}

.chart-panel .panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 610;
  letter-spacing: -.025em;
}

.chart-panel .panel-head p:last-child {
  margin: 4px 0 0;
  color: #607287;
  font-size: .63rem;
}

.chart-panel .eyebrow {
  margin-bottom: 4px;
  color: #728db9;
  font-size: .55rem;
}

.chart-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  color: #64778c;
  font-size: .58rem;
}

.chart-legend > span:not(.chart-unit) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend > span:not(.chart-unit)::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
}

.legend-line::before { background: #80a5ff; box-shadow: 0 0 9px rgba(117, 157, 255, .45); }
.legend-positive::before { background: #62ddb6; }
.legend-negative::before { background: #ff8297; }

.chart-unit {
  padding: 4px 7px;
  border: 1px solid #26394f;
  border-radius: 6px;
  background: #0b1622;
  color: #657a90;
  font-size: .53rem;
  font-weight: 680;
  letter-spacing: .08em;
}

.chart-canvas-wrap {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-top: 1px solid rgba(34, 51, 71, .58);
}

.chart-canvas-wrap::before {
  position: absolute;
  z-index: 3;
  inset: 14px 0;
  border-radius: 9px;
  background: linear-gradient(90deg, transparent, rgba(98, 124, 157, .05), transparent);
  background-size: 220% 100%;
  content: "";
  animation: chart-loading 1.4s linear infinite;
  pointer-events: none;
}

.chart-canvas-wrap.chart-loaded::before { display: none; }

@keyframes chart-loading {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

.performance-chart {
  position: relative;
  z-index: 1;
  cursor: crosshair;
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  display: grid;
  min-width: 112px;
  padding: 9px 11px;
  border: 1px solid #3b506a;
  border-radius: 9px;
  background: rgba(10, 18, 29, .95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .05);
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity .12s ease, transform .12s ease;
  backdrop-filter: blur(14px);
}

.chart-tooltip.visible { opacity: 1; transform: translateY(0); }

.chart-tooltip small {
  color: #71869d;
  font-size: .55rem;
  font-weight: 590;
}

.chart-tooltip strong {
  margin-top: 2px;
  font-size: .84rem;
  font-weight: 650;
}

.chart-empty-state {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  min-width: 210px;
  place-items: center;
  text-align: center;
  transform: translate(-50%, -45%);
}

.chart-empty-state > span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 9px;
  place-items: center;
  border: 1px solid #2b4058;
  border-radius: 10px;
  background: #101d2b;
  color: #7292be;
  font-size: 1.1rem;
}

.chart-empty-state strong {
  color: #aebdcc;
  font-size: .72rem;
  font-weight: 610;
}

.chart-empty-state small {
  margin-top: 3px;
  color: #596b7e;
  font-size: .59rem;
}

.dashboard-reports {
  display: grid;
  min-width: 0;
  align-items: start;
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, .68fr);
  gap: 12px;
}

.dashboard-reports > .panel,
.recent-panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.dashboard-reports > .panel,
.recent-panel {
  margin-bottom: 0;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(14, 24, 36, .98), rgba(8, 16, 24, .98));
}

.dashboard-reports .panel-head,
.recent-panel .panel-head {
  padding-bottom: 13px;
  border-bottom: 1px solid #1b2a3c;
}

.panel-link {
  color: #8096b0;
  font-size: .64rem;
  font-weight: 580;
}

.panel-link span { margin-left: 4px; color: #6f9be4; }

.analytics-empty {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.analytics-empty > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #283b51;
  border-radius: 9px;
  color: #6b86aa;
}

.analytics-empty strong { color: #a9b8c7; font-size: .72rem; }
.analytics-empty p { margin: 2px 0 0; font-size: .61rem; }

.time-panel .stat-list a {
  min-height: 51px;
  padding-inline: 4px;
}

.time-panel .stat-list a > span { display: grid; color: #b9c5d1; }
.time-panel .stat-list small { color: #53677c; font-size: .54rem; }
.time-panel .stat-list b { font-size: .7rem; font-weight: 620; }
.time-panel h3 { margin: 19px 0 5px; font-size: .7rem; color: #788b9e; }

.recent-panel { margin-top: 12px; }

.dashboard-shell table {
  font-size: .72rem;
}

.dashboard-shell th {
  padding-block: 10px;
  color: #586b80;
  font-size: .54rem;
  letter-spacing: .11em;
}

.dashboard-shell td { padding-block: 11px; }

.dashboard-shell tbody tr:hover {
  background: linear-gradient(90deg, rgba(59, 89, 129, .08), rgba(59, 89, 129, .025));
}

.dashboard-shell table a { color: #9bb8df; font-weight: 580; }

.app-view .panel,
.app-view .form-card,
.app-view .upload-zone,
.app-view .empty-state,
.app-view .notice-box,
.app-view .error-box,
.app-view .access-banner {
  border-color: #1d2d40;
  background: linear-gradient(150deg, rgba(14, 24, 36, .98), rgba(8, 16, 24, .98));
}

.app-view input,
.app-view select,
.app-view textarea {
  border-color: #293d53;
  background: #08121d;
}

.app-view input:focus,
.app-view select:focus,
.app-view textarea:focus {
  border-color: #638bd2;
  background: #0a1623;
  box-shadow: 0 0 0 3px rgba(100, 138, 207, .13);
}

/* Public site: more editorial and spatial */

.public-view .site-header {
  top: 14px;
  width: min(1180px, calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  padding: 0 14px 0 18px;
  border: 1px solid rgba(56, 75, 99, .72);
  border-radius: 14px;
  background: rgba(8, 14, 22, .78);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .04);
}

.public-view .hero-shell {
  min-height: 870px;
  padding-top: 115px;
  grid-template-columns: .84fr 1.16fr;
  gap: clamp(60px, 8vw, 120px);
}

.public-view .hero-copy h1 {
  font-size: clamp(3.7rem, 6.7vw, 6.2rem);
  font-weight: 550;
}

.public-view .hero-copy::before {
  display: block;
  width: 46px;
  height: 1px;
  margin-bottom: 26px;
  background: linear-gradient(90deg, #78a7ff, #5eddb5);
  content: "";
}

.public-view .hero-product {
  padding: 27px;
  border-color: rgba(76, 102, 151, .72);
  border-radius: 26px;
  background:
    radial-gradient(circle at 80% 0, rgba(91, 93, 211, .22), transparent 42%),
    linear-gradient(145deg, rgba(19, 34, 51, .99), rgba(7, 15, 24, .99));
  box-shadow: 0 45px 120px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .02), inset 0 1px rgba(255, 255, 255, .08);
  transform: perspective(1200px) rotateY(-4deg) rotateX(1.5deg);
}

.public-view .feature-grid {
  grid-template-columns: 1.2fr .8fr .8fr;
  grid-template-rows: auto auto;
}

.public-view .feature-grid article:first-child {
  min-height: 330px;
  grid-row: 1 / 3;
}

.public-view .feature-grid article:last-child { grid-column: 2 / 4; }

.public-view .feature-grid article {
  min-height: 190px;
  padding: 28px;
  border-radius: 16px;
}

.public-view .feature-grid article:first-child h3 { font-size: 1.35rem; }
.public-view .feature-grid article:first-child p { max-width: 310px; font-size: .94rem; }

.public-view .feature-grid.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto;
}

.public-view .feature-grid.compact-grid article,
.public-view .feature-grid.compact-grid article:first-child,
.public-view .feature-grid.compact-grid article:last-child {
  min-height: 210px;
  grid-row: auto;
  grid-column: auto;
}

.public-view .workflow {
  padding: 80px;
  border: 1px solid #1d3044;
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 100%, rgba(46, 119, 125, .12), transparent 40%),
    linear-gradient(145deg, rgba(14, 26, 39, .88), rgba(8, 16, 25, .88));
}

.public-view .pricing article { border-radius: 20px; }

@media (max-width: 1180px) {
  :root { --sidebar: 220px; }
  .app-view .app-shell { width: min(100% - 42px, 1460px); }
  .dashboard-toolbar { grid-template-columns: auto minmax(140px, 1fr) auto; }
  .dashboard-toolbar .date-filters { grid-row: 2; grid-column: 2 / 4; justify-content: flex-end; border-left: 0; }
  .dashboard-charts { grid-template-columns: 1fr; }
  .dashboard-reports { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  :root { --sidebar: 0px; }

  .app-view::before { left: 0; }

  .app-view .site-header {
    position: sticky;
    top: 0;
    bottom: auto;
    display: grid;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 10px 14px 0;
    border-right: 0;
    border-bottom: 1px solid #213147;
    grid-template-columns: 1fr;
  }

  .app-view .site-header::after,
  .workspace-switcher,
  .app-view .nav-section,
  .sidebar-foot { display: none; }

  .app-view .brand { width: fit-content; margin-bottom: 8px; }
  .app-view .brand > span:last-child { white-space: nowrap; }

  .app-view .site-header nav {
    display: flex;
    width: calc(100vw - 28px);
    flex-direction: row;
    grid-column: 1 / -1;
    overflow-x: auto;
    padding-bottom: 9px;
    scrollbar-width: none;
  }

  .app-view .site-header nav::-webkit-scrollbar { display: none; }
  .app-view .site-header nav > a:not(.button) { min-height: 38px; flex: 0 0 auto; padding: 7px 10px; }
  .app-view .site-header nav > a.current::after { top: auto; right: 10px; bottom: -2px; left: 10px; width: auto; height: 2px; }
  .app-view .nav-icon { width: 18px; height: 18px; flex-basis: 18px; }
  .app-view .nav-icon svg { width: 15px; height: 15px; }

  .app-view main,
  .app-view footer { margin-left: 0; }

  .app-view .flash-stack { left: 12px; }
  .app-view .app-shell { width: min(100% - 28px, 1460px); padding-top: 28px; }

  .dashboard-metrics {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .dashboard-metrics article:nth-child(n) {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .dashboard-metrics article.metric-primary { grid-column: 1 / -1 !important; }
  .dashboard-metrics article:nth-child(6),
  .dashboard-metrics article:nth-child(7) { grid-column: span 1 !important; }
  .dashboard-reports { grid-template-columns: 1fr; }

  .public-view .hero-shell { grid-template-columns: 1fr; padding-top: 90px; }
  .public-view .hero-copy { max-width: 660px; }
  .public-view .hero-product { max-width: 720px; transform: none; }
  .public-view .feature-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .public-view .feature-grid article:first-child { grid-row: auto; }
  .public-view .feature-grid article:last-child { grid-column: 1 / -1; }
  .public-view .workflow { padding: 48px; }
  .proof-section { grid-template-columns: 1fr; gap: 30px; }
  .public-view .compact-grid { grid-template-columns: 1fr 1fr; }
  .public-view .compact-grid article:last-child { grid-column: auto; }
}

@media (max-width: 620px) {
  .app-view .site-header nav > a:not(.button) { gap: 7px; font-size: .7rem; }
  .dashboard-heading { display: flex; align-items: flex-start; }
  .dashboard-heading h1 { font-size: 2.5rem; }
  .dashboard-heading .import-button { min-height: 38px; padding: 7px 10px; font-size: .68rem; }

  .dashboard-toolbar {
    display: flex;
    align-items: stretch;
    padding: 14px;
    flex-direction: column;
  }

  .dashboard-toolbar .account-checks { width: 100%; }
  .dashboard-toolbar .chip { width: auto; min-width: max-content; }
  .dashboard-toolbar .date-filters {
    display: grid;
    padding: 10px 0 0;
    border-top: 1px solid #213247;
    grid-template-columns: 1fr auto 1fr;
  }

  .dashboard-toolbar .date-filters label { width: auto; min-width: 0; }
  .dashboard-toolbar .button { width: 100%; }
  .dashboard-metrics { grid-template-columns: 1fr 1fr; }
  .dashboard-metrics .metric-primary { min-height: 210px; }
  .dashboard-metrics .metric-primary > strong { font-size: 3rem; }
  .dashboard-metrics article { min-height: 105px; padding: 14px; }
  .dashboard-metrics article:nth-child(6),
  .dashboard-metrics article:nth-child(7) { grid-column: 1 / -1 !important; }
  .dashboard-charts { display: block; }
  .dashboard-charts .chart-panel + .chart-panel { margin-top: 12px; }
  .chart-panel { padding: 17px 12px 10px; }
  .chart-panel .panel-head { padding-inline: 5px; }
  .chart-legend { max-width: 120px; }
  .chart-canvas-wrap { min-height: 320px; }

  .public-view .site-header { top: 8px; width: calc(100% - 16px); }
  .public-view .hero-shell { padding-top: 70px; }
  .public-view .hero-copy h1 { font-size: clamp(3.25rem, 16vw, 4.75rem); }
  .public-view .feature-grid { grid-template-columns: 1fr; }
  .public-view .feature-grid article:last-child { grid-column: auto; }
  .public-view .workflow { padding: 30px 24px; }
  .public-view .compact-grid,
  .faq-grid { grid-template-columns: 1fr; }
  .public-view .compact-grid article:last-child { grid-column: auto; }
}
