@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Fira+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef3f8;
  --text: #172033;
  --text-muted: #65738a;
  --text-soft: #334155;
  --border: #dbe3ee;
  --border-strong: #bdcadd;
  --primary: #2563eb;
  --primary-soft: #eaf1ff;
  --success: #059669;
  --success-soft: #e7f7ef;
  --warning: #b7791f;
  --warning-soft: #fff5da;
  --danger: #dc2626;
  --danger-soft: #fff0f0;
  --info: #2563eb;
  --info-soft: #eaf1ff;
  --violet: #7c3aed;
  --violet-soft: #f1ecff;
  --orange: #ea580c;
  --orange-soft: #fff1e8;
  --shadow: 0 14px 30px rgba(28, 42, 66, 0.07);
  --radius: 8px;
  --sidebar-collapsed: 68px;
  --sidebar-expanded: 244px;
  --bottom-nav-height: 72px;
  --font-ui: "Fira Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-data: "Fira Code", "SFMono-Regular", Consolas, monospace;
}

body:not(.light) {
  --bg: #111318;
  --surface: #181b22;
  --surface-2: #1f242c;
  --surface-3: #252b34;
  --text: #f6f8fb;
  --text-muted: #a8b1bf;
  --text-soft: #d2d8e2;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.17);
  --primary-soft: rgba(37, 99, 235, 0.22);
  --success-soft: rgba(5, 150, 105, 0.18);
  --warning-soft: rgba(183, 121, 31, 0.18);
  --danger-soft: rgba(220, 38, 38, 0.18);
  --info-soft: rgba(37, 99, 235, 0.2);
  --violet-soft: rgba(124, 58, 237, 0.18);
  --orange-soft: rgba(234, 88, 12, 0.16);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.42;
  overscroll-behavior: contain;
}

body.drawer-open,
body.login-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 2px;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  display: none;
}

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

.skip-link {
  position: fixed;
  left: 10px;
  top: 10px;
  z-index: 1000;
  transform: translateY(-150%);
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  padding: 9px 12px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

body.is-landing .app-shell,
body.is-landing .mobile-nav,
body.dashboard-open .landing-shell {
  display: none;
}

body.auth-pending .app-shell,
body.auth-pending .mobile-nav,
body.auth-pending .landing-shell {
  display: none;
}

.auth-pending-screen {
  min-height: 100dvh;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: #52637f;
  font: 600 14px/1.4 "Fira Sans", sans-serif;
  background: #f4f7fb;
}

.auth-pending-screen img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  animation: auth-pending-pulse 900ms ease-in-out infinite alternate;
}

body.auth-pending .auth-pending-screen {
  display: grid;
}

@keyframes auth-pending-pulse {
  from { transform: scale(.94); opacity: .68; }
  to { transform: scale(1.04); opacity: 1; }
}

.landing-shell {
  min-height: 100dvh;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.landing-header::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 74px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(18px);
}

.landing-brand,
.landing-nav,
.landing-login-button,
.landing-actions,
.landing-primary,
.landing-secondary,
.landing-checklist div,
.ai-signal-list span {
  display: inline-flex;
  align-items: center;
}

.landing-brand {
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.landing-brand span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--surface);
  font-family: var(--font-data);
  font-weight: 800;
}

.landing-brand strong {
  font-size: 16px;
  line-height: 1.1;
}

.landing-nav {
  justify-content: center;
  gap: 8px;
}

.landing-nav a,
.landing-secondary,
.landing-login-button {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--text-soft);
  font-weight: 700;
  text-decoration: none;
}

.landing-nav a {
  padding: 0 12px;
  font-size: 13px;
}

.landing-login-button {
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
}

.landing-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 54px;
}

.landing-hero {
  position: relative;
  display: grid;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.landing-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 92%, transparent) 42%, color-mix(in srgb, var(--primary-soft) 68%, transparent) 100%),
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(37, 99, 235, 0.055) 36px);
}

.preview-board {
  position: absolute;
  right: 38px;
  bottom: 34px;
  width: min(560px, 48%);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 28px 70px rgba(28, 42, 66, 0.14);
  padding: 16px;
  animation: preview-float 5200ms ease-in-out infinite;
}

.preview-topline,
.preview-table,
.preview-kpis {
  display: grid;
  gap: 10px;
}

.preview-topline,
.preview-table {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px 12px;
}

.preview-topline span,
.preview-table span,
.preview-kpis span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.preview-topline strong {
  color: var(--success);
  font-family: var(--font-data);
  font-size: 12px;
}

.preview-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.preview-kpis article {
  min-height: 94px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 11px;
}

.preview-kpis strong,
.preview-table strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-data);
  font-size: 18px;
}

.preview-bars {
  display: grid;
  grid-template-columns: 1.3fr 0.95fr 0.55fr 1.05fr;
  align-items: end;
  gap: 10px;
  height: 174px;
  margin: 12px 0;
}

.preview-bars i {
  display: block;
  border-radius: 8px 8px 0 0;
  animation: bar-rise 900ms ease both;
}

.bar-green {
  height: 138px;
  background: linear-gradient(180deg, #22c58d, #93e1c5);
}

.bar-red {
  height: 104px;
  background: linear-gradient(180deg, #ef4444, #f7b6b6);
  animation-delay: 90ms;
}

.bar-amber {
  height: 72px;
  background: linear-gradient(180deg, #f59e0b, #fde2aa);
  animation-delay: 160ms;
}

.bar-blue {
  height: 118px;
  background: linear-gradient(180deg, #2563eb, #9db9f8);
  animation-delay: 230ms;
}

.landing-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  max-width: 540px;
  min-height: 640px;
  padding: 72px 56px;
  animation: landing-rise 520ms ease both;
}

.landing-eyebrow {
  color: var(--primary);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.landing-hero h1,
.landing-split-section h2,
.landing-ai-panel h2 {
  margin: 10px 0 0;
  line-height: 1.04;
  letter-spacing: 0;
}

.landing-hero h1 {
  max-width: 500px;
  font-size: 46px;
}

.landing-hero p,
.landing-split-section p,
.landing-ai-panel p,
.landing-feature-grid p {
  color: var(--text-muted);
}

.landing-hero p {
  max-width: 500px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.55;
}

.landing-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.landing-primary,
.landing-secondary {
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.landing-primary {
  gap: 10px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.landing-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.landing-feature-grid article,
.landing-split-section,
.landing-ai-panel,
.login-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.landing-feature-grid article {
  display: grid;
  gap: 7px;
  min-height: 228px;
  padding: 18px;
  animation: landing-rise 520ms ease both;
}

.landing-feature-grid article:nth-child(2) {
  animation-delay: 60ms;
}

.landing-feature-grid article:nth-child(3) {
  animation-delay: 120ms;
}

.landing-feature-grid article:nth-child(4) {
  animation-delay: 180ms;
}

.landing-feature-grid svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.landing-feature-grid span {
  color: var(--text-muted);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
}

.landing-feature-grid strong {
  font-size: 19px;
  line-height: 1.18;
}

.landing-feature-grid p {
  margin: 0;
  font-size: 14px;
}

.landing-split-section,
.landing-ai-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 22px;
  align-items: center;
  margin-top: 14px;
  padding: 24px;
}

.landing-split-section h2,
.landing-ai-panel h2 {
  font-size: 34px;
}

.landing-split-section p,
.landing-ai-panel p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.5;
}

.landing-checklist,
.ai-signal-list {
  display: grid;
  gap: 9px;
}

.landing-checklist div,
.ai-signal-list span {
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px 12px;
  font-weight: 700;
}

.landing-checklist svg {
  color: var(--success);
}

.landing-ai-panel {
  border-color: color-mix(in srgb, var(--violet) 18%, var(--border));
}

.ai-signal-list span:first-child {
  background: var(--success-soft);
}

.ai-signal-list span:nth-child(2) {
  background: var(--warning-soft);
}

.ai-signal-list span:nth-child(3) {
  background: var(--danger-soft);
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 18px;
}

.login-modal.open {
  display: grid;
}

.login-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(10px);
}

.login-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 13px;
  width: min(430px, 100%);
  padding: 18px;
  animation: login-pop 220ms cubic-bezier(0.2, 1.4, 0.34, 1) both;
}

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

.login-card h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.login-card label {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.login-card input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  padding: 0 12px;
}

.login-feedback {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  padding: 9px 10px;
}

.login-feedback.show {
  display: block;
}

.login-feedback.error {
  border-color: color-mix(in srgb, var(--danger) 34%, var(--border));
  background: var(--danger-soft);
  color: var(--danger);
}

.login-feedback.success {
  border-color: color-mix(in srgb, var(--success) 34%, var(--border));
  background: var(--success-soft);
  color: var(--success);
}

.login-feedback.warning {
  border-color: color-mix(in srgb, var(--warning) 34%, var(--border));
  background: var(--warning-soft);
  color: var(--warning);
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
}

.login-link-button {
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 4px;
}

.login-link-button:hover {
  text-decoration: underline;
}

.login-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.landing-nav a:hover,
.landing-login-button:hover,
.landing-secondary:hover,
.landing-checklist div:hover,
.ai-signal-list span:hover {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  background: var(--surface);
}

.landing-primary:hover {
  background: #1d4ed8;
}

/* Finkami-inspired landing refresh: bright SaaS, proof-led, dashboard-native. */
.landing-shell {
  background: #f8fbff;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(96, 165, 250, 0.26), transparent 28%),
    radial-gradient(circle at 94% 4%, rgba(251, 146, 60, 0.22), transparent 26%),
    radial-gradient(circle at 4% 95%, rgba(52, 211, 153, 0.22), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 48%, #f7fbff 100%);
}

.landing-header {
  width: min(1240px, calc(100% - 32px));
  min-height: 68px;
}

.landing-header::before {
  height: 72px;
  background: rgba(248, 251, 255, 0.9);
  box-shadow: 0 1px 0 rgba(189, 202, 221, 0.42);
}

.landing-brand span {
  border-radius: 10px;
  background: #101827;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.landing-nav {
  justify-content: center;
}

.landing-nav a,
.landing-login-button {
  min-height: 38px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.landing-nav a:hover {
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 28px rgba(28, 42, 66, 0.06);
}

.landing-login-button {
  border-color: rgba(234, 88, 12, 0.42);
  background: #ea580c;
  color: #fff;
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.2);
}

.landing-login-button svg {
  stroke: currentColor;
}

.landing-login-button:hover {
  border-color: #c2410c;
  background: #c2410c;
}

.landing-main {
  width: 100%;
  padding: 0 0 64px;
}

.landing-hero {
  min-height: clamp(700px, calc(100dvh - 108px), 820px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.landing-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% top;
  opacity: 0.18;
  filter: saturate(0.9) contrast(1.08) blur(0.2px);
  transform: scale(1.02);
  animation: hero-image-drift 12000ms ease-in-out infinite alternate;
}

.landing-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(248, 251, 255, 0.96) 0%, rgba(248, 251, 255, 0.84) 48%, rgba(248, 251, 255, 0.62) 100%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.78) 0%, rgba(248, 251, 255, 0.18) 52%, rgba(248, 251, 255, 0.9) 100%);
}

.landing-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(430px, 1fr);
  gap: 48px;
  align-content: center;
  align-items: center;
  width: min(1240px, calc(100% - 32px));
  min-height: clamp(700px, calc(100dvh - 108px), 820px);
  margin: 0 auto;
  padding: 84px 0 58px;
}

.landing-hero-copy {
  grid-column: 1;
  grid-row: 1;
  max-width: 650px;
  min-height: 0;
  padding: 0;
}

.landing-eyebrow {
  display: inline-flex;
  width: max-content;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  background: rgba(234, 241, 255, 0.92);
  padding: 0 12px;
}

.landing-platform-pill {
  gap: 7px;
  border-color: rgba(234, 88, 12, 0.18);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.landing-platform-pill i {
  display: inline-grid;
  min-height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  padding: 0 8px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.landing-platform-pill i:last-child {
  background: #f5f3ff;
  color: #7c3aed;
}

.landing-hero h1 {
  max-width: 650px;
  margin-top: 18px;
  font-size: clamp(48px, 6vw, 74px);
  line-height: 1.02;
}

.landing-hero h1 span {
  color: #fb7a2e;
}

.landing-hero p {
  max-width: 600px;
  margin-top: 22px;
  color: #475569;
  font-size: 20px;
  line-height: 1.52;
}

.landing-actions {
  gap: 12px;
  margin-top: 30px;
}

.landing-primary,
.landing-secondary {
  min-height: 52px;
  border-radius: 10px;
  padding: 0 18px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.landing-primary {
  border-color: #ea580c;
  background: #ea580c;
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.24);
}

.landing-primary:hover {
  border-color: #c2410c;
  background: #c2410c;
  box-shadow: 0 22px 40px rgba(234, 88, 12, 0.28);
  transform: translateY(-1px);
}

.landing-secondary {
  background: rgba(255, 255, 255, 0.82);
}

.landing-secondary:hover,
.landing-login-button:hover,
.landing-nav a:hover {
  transform: translateY(-1px);
}

.landing-access-note {
  display: block;
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.landing-live-card {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: min(100%, 560px);
  justify-self: end;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
  padding: 22px;
  animation: landing-rise 620ms ease 120ms both;
}

.live-card-window {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.live-card-window span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.live-card-window span:first-child {
  background: #f87171;
}

.live-card-window span:nth-child(2) {
  background: #fbbf24;
}

.live-card-window span:nth-child(3) {
  background: #34d399;
}

.live-card-window strong {
  margin-left: 4px;
  color: #64748b;
  font-weight: 700;
}

.live-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.live-card-title strong,
.live-card-title span {
  display: block;
}

.live-card-title strong {
  color: #111827;
  font-size: 16px;
}

.live-card-title span {
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
}

.live-card-title em {
  border-radius: 999px;
  background: #dcfce7;
  color: #059669;
  padding: 5px 9px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.live-store-list {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.live-store-list div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px;
}

.live-store-list b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  background: #fff7ed;
  color: #ea580c;
  font-family: var(--font-data);
  font-size: 13px;
}

.live-store-list div:nth-child(2) b {
  background: #f5f3ff;
  color: #7c3aed;
}

.live-store-list strong,
.live-store-list small {
  display: block;
}

.live-store-list small {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.live-store-list em {
  border-radius: 999px;
  background: #dcfce7;
  color: #059669;
  padding: 4px 8px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.live-profit-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.9), rgba(236, 253, 245, 0.9));
  margin-top: 12px;
  padding: 17px;
}

.live-profit-panel small,
.live-profit-panel strong {
  display: block;
  text-align: center;
}

.live-profit-panel small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.live-profit-panel strong {
  margin-top: 5px;
  color: #ea580c;
  font-family: var(--font-data);
  font-size: 24px;
}

.live-profit-panel span:last-child strong {
  color: #059669;
}

.landing-hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 650px;
  margin-top: 28px;
}

.landing-hero-status span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(189, 202, 221, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #334155;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(28, 42, 66, 0.05);
}

.landing-hero-status i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(5, 150, 105, 0.12);
}

.landing-hero-metrics {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  width: min(650px, 100%);
  margin-top: 28px;
  border-top: 1px solid rgba(203, 213, 225, 0.72);
  padding-top: 24px;
}

.landing-hero-metrics article {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
  animation: landing-rise 520ms ease both;
}

.landing-hero-metrics article:nth-child(2) {
  animation-delay: 80ms;
}

.landing-hero-metrics article:nth-child(3) {
  animation-delay: 160ms;
}

.landing-hero-metrics span,
.landing-hero-metrics small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.landing-hero-metrics strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-data);
  font-size: 26px;
}

.landing-hero-metrics small {
  margin-top: 5px;
  font-weight: 700;
}

.landing-feature-showcase,
.landing-workflow,
.landing-security-section,
.landing-ai-panel {
  position: relative;
  z-index: 3;
  width: min(1240px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
  scroll-margin-top: 96px;
}

.landing-feature-showcase {
  margin-top: -18px;
  padding: 72px 0 18px;
}

.landing-section-heading {
  max-width: 760px;
}

.landing-section-heading.is-centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.landing-section-heading .landing-eyebrow {
  border-color: rgba(234, 88, 12, 0.18);
  background: #fff7ed;
  color: #ea580c;
}

.landing-section-heading h2,
.landing-security-section h2,
.landing-ai-panel h2 {
  margin: 16px 0 0;
  color: #111827;
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

.landing-section-heading p,
.landing-security-section p,
.landing-ai-panel p {
  margin: 16px 0 0;
  color: #5f6f89;
  font-size: 18px;
  line-height: 1.58;
}

.feature-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 28px;
  align-items: center;
  margin-top: 34px;
}

.feature-copy-stack {
  display: grid;
  gap: 14px;
}

.feature-copy-stack article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
  padding: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-copy-stack article:hover {
  border-color: rgba(234, 88, 12, 0.28);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}

.feature-copy-stack svg {
  width: 34px;
  height: 34px;
  color: #2563eb;
}

.feature-copy-stack span,
.feature-demo-card small,
.ai-recommendation-card span {
  color: #64748b;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 800;
}

.feature-copy-stack strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 19px;
  line-height: 1.25;
}

.feature-copy-stack p {
  margin: 8px 0 0;
  color: #5f6f89;
  font-size: 15px;
  line-height: 1.55;
}

.feature-demo-card {
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.9)),
    radial-gradient(circle at 90% 10%, rgba(251, 146, 60, 0.12), transparent 32%);
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.13);
  padding: 22px;
}

.demo-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.demo-card-header strong,
.demo-card-header span,
.demo-card-header em {
  display: block;
}

.demo-card-header strong {
  color: #111827;
  font-size: 18px;
}

.demo-card-header span {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.demo-card-header em {
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  padding: 6px 10px;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.demo-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.demo-kpi-row span,
.demo-fee-list span {
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 12px;
  background: #f8fafc;
  padding: 13px;
}

.demo-kpi-row strong {
  display: block;
  margin-top: 7px;
  color: #111827;
  font-family: var(--font-data);
  font-size: 22px;
}

.demo-marketplace-bars {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.demo-marketplace-bars span {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 11px;
}

.demo-marketplace-bars b,
.demo-marketplace-bars strong {
  color: #334155;
  font-size: 13px;
}

.demo-marketplace-bars i {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.demo-marketplace-bars i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: #059669;
}

.demo-marketplace-bars span:nth-child(2) i::before {
  background: #7c3aed;
}

.demo-fee-list {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.demo-fee-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding-block: 10px;
}

.demo-fee-list b {
  color: #475569;
  font-weight: 800;
}

.demo-fee-list strong {
  color: #dc2626;
  font-family: var(--font-data);
}

.landing-workflow {
  padding: 70px 0 10px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.workflow-steps article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.07);
  padding: 24px;
}

.workflow-steps article::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 98px;
  height: 98px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.09);
}

.workflow-steps span {
  color: #ea580c;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 900;
}

.workflow-steps strong {
  display: block;
  margin-top: 18px;
  color: #111827;
  font-size: 22px;
  line-height: 1.2;
}

.workflow-steps p {
  margin: 10px 0 0;
  color: #5f6f89;
  font-size: 15px;
  line-height: 1.55;
}

.landing-security-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: 30px;
  align-items: center;
  margin-top: 58px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.08);
  padding: 34px 36px;
}

.landing-security-section .landing-checklist div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  min-height: 56px;
  border-color: rgba(203, 213, 225, 0.7);
  border-radius: 13px;
  background: #f8fafc;
}

.landing-security-section .landing-checklist svg {
  width: 21px;
  height: 21px;
}

.landing-ai-panel {
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.76fr);
  margin-top: 26px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 243, 255, 0.68)),
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.12), transparent 32%);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.08);
  padding: 34px 36px;
}

.ai-recommendation-card {
  border: 1px solid rgba(196, 181, 253, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 54px rgba(76, 29, 149, 0.1);
  padding: 20px;
}

.ai-recommendation-card div {
  display: grid;
  gap: 6px;
}

.ai-recommendation-card strong {
  color: #111827;
  font-size: 22px;
}

.ai-recommendation-card small {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.ai-recommendation-card b {
  display: inline-flex;
  width: max-content;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  background: #dcfce7;
  color: #059669;
  margin-top: 16px;
  padding: 0 12px;
  font-size: 13px;
}

.ai-recommendation-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ai-recommendation-card li {
  position: relative;
  color: #475569;
  font-weight: 700;
  padding-left: 22px;
}

.ai-recommendation-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7c3aed;
}

.landing-feature-grid,
.landing-split-section,
.landing-ai-panel {
  width: min(1240px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.landing-feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 3;
  margin-top: -52px;
}

.landing-feature-grid article,
.landing-split-section,
.landing-ai-panel {
  border-color: rgba(189, 202, 221, 0.84);
  box-shadow: 0 18px 40px rgba(28, 42, 66, 0.07);
}

.landing-feature-grid article {
  position: relative;
  min-height: 244px;
  overflow: hidden;
  padding: 20px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.landing-feature-grid article::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0.18;
}

.landing-feature-grid article:nth-child(1)::after {
  background: var(--success);
}

.landing-feature-grid article:nth-child(2)::after {
  background: var(--primary);
}

.landing-feature-grid article:nth-child(3)::after {
  background: var(--warning);
}

.landing-feature-grid article:nth-child(4)::after {
  background: var(--violet);
}

.landing-feature-grid article:hover {
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 24px 54px rgba(28, 42, 66, 0.1);
  transform: translateY(-3px);
}

.landing-split-section,
.landing-ai-panel {
  border-radius: 12px;
  margin-top: 16px;
}

.landing-ai-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.76fr);
  gap: 30px;
  align-items: center;
  margin-top: 26px;
  border-color: rgba(203, 213, 225, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 243, 255, 0.68)),
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.12), transparent 32%);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.08);
  padding: 34px 36px;
}

.landing-split-section h2,
.landing-ai-panel h2 {
  max-width: 760px;
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 1.05;
}

.landing-checklist div,
.ai-signal-list span {
  border-radius: 10px;
}

.fk-trust-section,
.fk-features-section,
.fk-workflow-section,
.fk-pricing-section,
.fk-faq-section,
.fk-cta-section,
.fk-footer {
  width: min(1230px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
  scroll-margin-top: 96px;
}

.fk-trust-section {
  padding: 72px 0 54px;
  border-top: 1px solid rgba(226, 232, 240, 0.72);
}

.fk-section-title {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.fk-section-title h2 {
  margin: 0;
  color: #101827;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.fk-section-title h2 span {
  color: #fb7a2e;
}

.fk-section-title p {
  margin: 14px auto 0;
  color: #4b5b72;
  font-size: 19px;
  line-height: 1.55;
}

.fk-logo-cloud {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  align-items: center;
  margin-top: 56px;
}

.fk-logo-cloud span {
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px solid rgba(203, 213, 225, 0.42);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 800;
  filter: grayscale(1);
  opacity: 0.72;
}

.fk-features-section {
  padding: 82px 0 54px;
}

.fk-feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(430px, 1fr);
  gap: 74px;
  align-items: center;
  min-height: 560px;
  padding: 52px 0;
}

.fk-feature-row.is-reversed {
  grid-template-columns: minmax(430px, 1fr) minmax(0, 0.82fr);
}

.fk-feature-row.is-reversed .fk-feature-copy {
  grid-column: 2;
}

.fk-feature-row.is-reversed .fk-browser-card {
  grid-column: 1;
  grid-row: 1;
}

.fk-feature-copy h3 {
  margin: 0;
  color: #101827;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.14;
}

.fk-feature-copy p {
  margin: 20px 0 0;
  color: #4b5b72;
  font-size: 19px;
  line-height: 1.62;
}

.fk-partner-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 28px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
  color: #334155;
  padding: 0 14px;
  font-weight: 700;
}

.fk-partner-pill b {
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  padding: 5px 9px;
  font-size: 12px;
}

.fk-partner-pill b:nth-child(3) {
  background: #f5f3ff;
  color: #7c3aed;
}

.fk-browser-card {
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.12);
  padding: 22px;
}

.fk-window-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.fk-window-dots i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.fk-window-dots i:first-child {
  background: #fb7185;
}

.fk-window-dots i:nth-child(2) {
  background: #fbbf24;
}

.fk-window-dots i:nth-child(3) {
  background: #34d399;
}

.fk-browser-card h4 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: 18px;
}

.fk-store-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  margin-top: 11px;
  padding: 11px 13px;
}

.fk-store-row b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: #fff7ed;
  color: #ea580c;
  font-family: var(--font-data);
  font-size: 13px;
}

.fk-store-row:nth-of-type(3) b,
.fk-store-row:nth-of-type(2) b {
  background: #f5f3ff;
  color: #7c3aed;
}

.fk-store-row strong,
.fk-store-row small {
  display: block;
}

.fk-store-row strong {
  color: #111827;
}

.fk-store-row small {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.fk-store-row em {
  border-radius: 999px;
  background: #dcfce7;
  color: #059669;
  padding: 5px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.fk-mini-stats,
.fk-kpi-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.fk-mini-stats span,
.fk-kpi-mini span,
.fk-analytics-grid span {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 14px;
}

.fk-mini-stats strong,
.fk-kpi-mini strong,
.fk-analytics-grid strong {
  display: block;
  margin-top: 5px;
  color: #101827;
  font-family: var(--font-data);
  font-size: 22px;
}

.fk-mini-stats small,
.fk-kpi-mini small,
.fk-analytics-grid small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.fk-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.fk-card-header strong {
  color: #101827;
}

.fk-card-header span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.fk-split-line {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
}

.fk-split-line b,
.fk-split-line strong {
  color: #334155;
  font-size: 13px;
}

.fk-split-line i {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.fk-split-line i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: #059669;
}

.fk-split-line:nth-of-type(2) i::before {
  background: #7c3aed;
}

.fk-fee-box {
  display: grid;
  gap: 8px;
  border-radius: 13px;
  background: #fff1f2;
  margin-top: 18px;
  padding: 14px;
}

.fk-fee-box strong {
  color: #111827;
}

.fk-fee-box span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
}

.fk-fee-box b,
.fk-table-card td:nth-child(4),
.fk-detail-cost strong:nth-child(2),
.fk-report-block.is-cost strong {
  color: #dc2626;
}

.fk-table-card {
  overflow: hidden;
}

.fk-table-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.fk-table-card th,
.fk-table-card td {
  border-bottom: 1px solid #e2e8f0;
  padding: 11px 8px;
  text-align: left;
}

.fk-table-card th {
  color: #64748b;
  font-size: 11px;
}

.fk-table-card td b {
  color: #059669;
}

.fk-table-card td em {
  color: #ea580c;
  font-style: normal;
  font-weight: 800;
}

.fk-detail-cost {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
  margin-top: 14px;
  color: #64748b;
}

.fk-detail-cost strong {
  justify-self: end;
  color: #059669;
  font-family: var(--font-data);
}

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

.fk-line-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 8px;
  height: 150px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc, #eff6ff);
  margin-top: 16px;
  padding: 16px;
}

.fk-line-chart i {
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #22c55e, #93c5fd);
}

.fk-line-chart i:nth-child(1) { height: 44%; }
.fk-line-chart i:nth-child(2) { height: 58%; }
.fk-line-chart i:nth-child(3) { height: 70%; }
.fk-line-chart i:nth-child(4) { height: 52%; }
.fk-line-chart i:nth-child(5) { height: 82%; }
.fk-line-chart i:nth-child(6) { height: 64%; }

.fk-top-products {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.fk-top-products span,
.fk-ad-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
  color: #475569;
  font-weight: 800;
}

.fk-top-products b,
.fk-ad-row b {
  color: #059669;
  font-family: var(--font-data);
}

.fk-ad-row i {
  color: #059669;
  font-style: normal;
}

.fk-ad-row.is-warning {
  background: #fff7ed;
}

.fk-ad-row.is-warning b,
.fk-ad-row.is-warning i {
  color: #ea580c;
}

.fk-report-card h4 {
  text-align: center;
}

.fk-report-block {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-radius: 12px;
  margin-top: 12px;
  padding: 14px;
  font-weight: 800;
}

.fk-report-block.is-income {
  background: #ecfdf5;
}

.fk-report-block.is-cost {
  background: #fef2f2;
}

.fk-report-block.is-profit {
  background: #d1fae5;
}

.fk-report-block strong {
  font-family: var(--font-data);
}

.fk-export-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.fk-export-row button {
  min-height: 38px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: #ecfdf5;
  color: #059669;
  padding: 0 18px;
  font-weight: 800;
}

.fk-export-row button:last-child {
  border-color: #fecaca;
  background: #fef2f2;
  color: #dc2626;
}

.fk-workflow-section,
.fk-pricing-section,
.fk-faq-section {
  padding: 82px 0;
}

.fk-workflow-section,
.fk-faq-section {
  background: #f8fafc;
  box-shadow: 0 0 0 100vmax #f8fafc;
  clip-path: inset(0 -100vmax);
}

.fk-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 46px;
}

.fk-workflow-grid article,
.fk-pricing-grid article {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
  padding: 18px;
}

.fk-workflow-grid .fk-browser-card {
  box-shadow: none;
  padding: 12px;
}

.fk-workflow-grid h3 {
  margin: 20px 0 0;
  color: #101827;
  font-size: 23px;
}

.fk-workflow-grid p,
.fk-workflow-grid li {
  color: #4b5b72;
  line-height: 1.5;
}

.fk-workflow-grid ul {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.fk-workflow-grid li::before {
  content: "✓";
  color: #16a34a;
  margin-right: 8px;
}

.fk-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: #64748b;
  font-weight: 800;
}

.fk-toggle b {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #ea580c;
}

.fk-toggle b::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
}

.fk-toggle strong {
  color: #111827;
}

.fk-toggle em {
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  padding: 6px 10px;
  font-size: 13px;
  font-style: normal;
}

.fk-pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 58px;
}

.fk-pricing-grid article {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 280px;
  text-align: center;
}

.fk-pricing-grid article.is-popular {
  border-color: rgba(234, 88, 12, 0.52);
  box-shadow: 0 24px 58px rgba(234, 88, 12, 0.12);
}

.fk-pricing-grid article > em {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  border: 1px solid rgba(234, 88, 12, 0.24);
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  padding: 7px 12px;
  font-style: normal;
  font-weight: 800;
}

.fk-pricing-grid h3 {
  margin: 12px 0 0;
  font-size: 24px;
}

.fk-pricing-grid p,
.fk-pricing-grid small {
  color: #64748b;
  line-height: 1.45;
}

.fk-pricing-grid strong {
  color: #101827;
  font-family: var(--font-data);
  font-size: clamp(24px, 2vw, 30px);
}

.fk-pricing-grid strong span {
  color: #64748b;
  font-family: var(--font-ui);
  font-size: 14px;
}

.fk-pricing-grid button,
.fk-cta-section button,
.fk-footer button {
  min-height: 44px;
  border: 1px solid #ea580c;
  border-radius: 10px;
  background: #ea580c;
  color: #fff;
  padding: 0 18px;
  font-weight: 900;
}

.fk-pricing-grid article:not(.is-popular) button {
  background: #fff;
  color: #ea580c;
}

.fk-faq-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 20px;
  background: #ffedd5;
  color: #ea580c;
  margin: 0 auto 22px;
  font-size: 30px;
  font-weight: 900;
}

.fk-faq-list {
  display: grid;
  gap: 16px;
  width: min(900px, 100%);
  margin: 48px auto 0;
}

.fk-faq-list details {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
  padding: 0;
}

.fk-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  cursor: pointer;
  color: #101827;
  padding: 0 26px;
  font-size: 17px;
  font-weight: 900;
}

.fk-faq-list summary::after {
  content: "⌄";
  color: #64748b;
}

.fk-faq-list details[open] summary {
  border-bottom: 1px solid #e2e8f0;
}

.fk-faq-list p {
  margin: 0;
  color: #4b5b72;
  padding: 22px 26px 28px;
  line-height: 1.65;
}

.fk-cta-section {
  display: grid;
  justify-items: center;
  gap: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #fff;
  margin-top: 70px;
  padding: 54px 22px;
  text-align: center;
}

.fk-cta-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
}

.fk-cta-section p {
  max-width: 740px;
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.fk-cta-section button {
  border-color: #fff;
  background: #fff;
  color: #ea580c;
}

.fk-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(160px, 0.65fr));
  gap: 34px;
  border-top: 1px solid #e2e8f0;
  margin-top: 58px;
  padding: 44px 0 54px;
}

.fk-footer strong,
.fk-footer h3 {
  color: #101827;
}

.fk-footer p,
.fk-footer a {
  color: #64748b;
  line-height: 1.55;
}

.fk-footer nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.fk-footer a {
  text-decoration: none;
}

.fk-footer button {
  width: max-content;
  min-height: 36px;
  background: #fff;
  color: #ea580c;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-collapsed) minmax(0, 1fr);
  min-height: 100dvh;
  transition: grid-template-columns 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  width: var(--sidebar-collapsed);
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 10px;
  transition: width 360ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--surface);
  font-family: var(--font-data);
  font-weight: 800;
}

.brand-copy,
.nav-item span,
.tenant-card div {
  min-width: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transform: translateX(-8px);
  transition: opacity 220ms ease 80ms, transform 320ms cubic-bezier(0.22, 1, 0.36, 1), max-width 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong {
  font-size: 14px;
  line-height: 1.15;
}

.brand-copy span {
  color: var(--text-muted);
  font-size: 12px;
}

.side-nav {
  display: grid;
  gap: 7px;
}

.side-nav-bottom {
  margin-top: auto;
}

.nav-item,
.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  padding: 0;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.nav-item svg {
  flex: 0 0 auto;
}

.nav-item:hover,
.mobile-nav-item:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-item.active,
.mobile-nav-item.active {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: rgba(37, 99, 235, 0.18);
}

.nav-upload {
  color: var(--text);
}

.tenant-card {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--success-soft);
  color: var(--text);
  padding: 12px 8px;
}

.tenant-card svg {
  flex: 0 0 auto;
  color: var(--success);
}

.tenant-card strong,
.tenant-card span {
  display: block;
}

.tenant-card span {
  color: var(--text-muted);
  font-size: 12px;
}

.sidebar-data-checklist {
  display: none;
  margin: 4px 0 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.sidebar-data-checklist-head,
.sidebar-check {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sidebar-data-checklist-head {
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 12px;
}

.sidebar-data-checklist-head span {
  color: var(--text-muted);
  font: 700 11px/1 var(--font-data);
}

.sidebar-data-checklist-list { display: grid; gap: 6px; }

.sidebar-check {
  min-width: 0;
  color: var(--text-muted);
  font-size: 11px;
}

.sidebar-check i {
  display: grid;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  font: 700 10px/1 var(--font-data);
  font-style: normal;
}

.sidebar-check.ready i { background: var(--success-soft); color: var(--success); }
.sidebar-check.processing i { background: var(--primary-soft); color: var(--primary); }
.sidebar-check.failed i { background: var(--danger-soft); color: var(--danger); }
.sidebar-check span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-check small { margin-left: auto; color: currentColor; font-size: 10px; }

@media (min-width: 861px) {
  .app-shell:has(.sidebar:hover),
  .app-shell:has(.sidebar:focus-within) {
    grid-template-columns: var(--sidebar-expanded) minmax(0, 1fr);
  }

  .app-shell:has(.sidebar:hover) .sidebar,
  .app-shell:has(.sidebar:focus-within) .sidebar {
    width: var(--sidebar-expanded);
    box-shadow: 18px 0 38px rgba(28, 42, 66, 0.08);
  }

  .app-shell:has(.sidebar:hover) .nav-item,
  .app-shell:has(.sidebar:focus-within) .nav-item {
    justify-content: flex-start;
    padding: 0 12px;
  }

  .app-shell:has(.sidebar:hover) .brand-copy,
  .app-shell:has(.sidebar:focus-within) .brand-copy,
  .app-shell:has(.sidebar:hover) .nav-item span,
  .app-shell:has(.sidebar:focus-within) .nav-item span,
  .app-shell:has(.sidebar:hover) .tenant-card div,
  .app-shell:has(.sidebar:focus-within) .tenant-card div {
    max-width: 170px;
    opacity: 1;
    transform: translateX(0);
  }

  .app-shell:has(.sidebar:hover) .tenant-card,
  .app-shell:has(.sidebar:focus-within) .tenant-card {
    justify-content: flex-start;
    padding: 12px;
  }

  .app-shell:has(.sidebar:hover) .sidebar-data-checklist,
  .app-shell:has(.sidebar:focus-within) .sidebar-data-checklist {
    display: block;
  }
}

.main-content {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 16px clamp(12px, 2vw, 24px) 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
}

.section-eyebrow {
  color: var(--primary);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
p {
  letter-spacing: 0;
}

.topbar h1 {
  margin: 1px 0 0;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
}

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

.user-pill {
  display: inline-grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-areas:
    "avatar email"
    "avatar role";
  align-items: center;
  column-gap: 8px;
  min-height: 42px;
  max-width: 210px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 5px 10px 5px 6px;
}

.user-pill span {
  display: grid;
  grid-area: avatar;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 800;
}

.user-pill strong,
.user-pill em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-pill strong {
  grid-area: email;
  color: var(--text);
  font-size: 12px;
  line-height: 1.1;
}

.user-pill em {
  grid-area: role;
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.1;
}

.topbar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font-weight: 700;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.topbar-logout:hover {
  border-color: rgba(239, 68, 68, 0.34);
  background: var(--danger-soft);
  color: var(--danger);
}

.topbar-logout svg {
  width: 17px;
  height: 17px;
}

.date-control {
  position: relative;
  display: inline-flex;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(340px, 30vw);
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 10px;
}

.search-box svg {
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.icon-button {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.icon-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.summary-scope-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 14px 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 9px;
  box-shadow: var(--shadow);
}

.segmented-control,
.period-group,
.mini-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.period-group {
  margin-left: auto;
}

.segment,
.period-button,
.secondary-button,
.primary-button,
.ghost-button,
.mini-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--text);
  background: var(--surface-2);
  font-weight: 600;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.segment {
  font-weight: 600;
}

.topbar-period-button {
  background: var(--surface);
}

.segment.active,
.period-button.active,
.mini-tabs button.active {
  border-color: rgba(37, 99, 235, 0.32);
  background: var(--primary-soft);
  color: var(--primary);
}

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

.primary-button:hover {
  background: #1d4ed8;
}

.export-action {
  flex: 0 0 auto;
  min-width: 104px;
  background: var(--surface);
}

.export-action svg {
  width: 17px;
  height: 17px;
}

.product-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.product-search {
  min-width: min(280px, 26vw);
  min-height: 40px;
}

.table-filter-button {
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  padding: 0;
  color: var(--text-muted);
  background: var(--surface);
}

.table-filter-button svg {
  width: 17px;
  height: 17px;
}

.notification-control { position: relative; }
.icon-button.has-notification { border-color: rgba(245, 158, 11, .55); color: #b45309; }
.notification-control::after { content: ""; display: none; position: absolute; width: 7px; height: 7px; right: 8px; top: 8px; border-radius: 50%; background: #ef4444; border: 1px solid var(--surface); }
.notification-control:has(.has-notification)::after { display: block; }
.notification-popover, .table-filter-popover { display: none; position: absolute; z-index: 80; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 18px 45px rgba(15,23,42,.18); border-radius: var(--radius); }
.notification-popover.open { display: grid; gap: 6px; width: min(340px, calc(100vw - 24px)); top: calc(100% + 10px); right: 0; padding: 12px; }
.notification-head { display:flex; justify-content:space-between; align-items:center; gap:8px; padding: 2px 2px 8px; }
.notification-head span { color: var(--warning); font-family: var(--font-data); font-size: 12px; }
.notification-item { display:flex; gap:9px; text-align:left; padding:9px; border:1px solid var(--border); border-radius:6px; background:var(--surface-2); color:var(--text); }
.notification-item:hover { border-color: var(--primary); }
.notification-item i { color: var(--warning); font-style: normal; font-weight: 800; }
.notification-item span { display:grid; gap:2px; }
.notification-item small, .notification-empty { color: var(--text-muted); font-size:12px; margin:0; }
.table-scope-tabs { position: relative; }
.table-filter-popover { display: grid; gap: 4px; top: calc(100% + 8px); left: 0; min-width: 180px; padding: 8px; }
.table-filter-popover strong { display:block; padding:4px 5px 7px; font-size:12px; }
.table-filter-popover .table-filter-divider { margin-top:4px; padding-top:10px; border-top:1px solid var(--border); }
.table-filter-popover button { display:flex; width:100%; justify-content:flex-start; min-height:34px; border:0; background:transparent; padding:0 7px; border-radius:5px; color:var(--text-muted); }
.table-filter-popover button:hover, .table-filter-popover button.active { background:var(--primary-soft); color:var(--primary); }
.product-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 2px 0; color:var(--text-muted); font-size:13px; }
.product-pagination > div { display:flex; align-items:center; gap:8px; }
.product-pagination strong { color:var(--text); font-family:var(--font-data); font-size:12px; }
.detail-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 2px 0; color:var(--text-muted); font-size:13px; }
.detail-pagination > div { display:flex; align-items:center; gap:8px; }
.detail-pagination strong { color:var(--text); font-family:var(--font-data); font-size:12px; }
.table-empty { padding:26px 14px !important; color:var(--text-muted); text-align:center !important; }

.secondary-button:hover,
.ghost-button:hover,
.segment:hover,
.period-button:hover,
.mini-tabs button:hover {
  border-color: var(--border-strong);
  background: var(--surface-3);
}

.date-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 65;
  display: none;
  width: min(380px, calc(100vw - 24px));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
  padding: 13px;
  animation: date-pop 140ms ease both;
}

.date-popover.open {
  display: grid;
  gap: 12px;
}

.date-popover-header,
.date-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.date-popover-header strong {
  display: block;
  margin-top: 2px;
}

.date-close {
  min-width: 36px;
  min-height: 36px;
}

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

.date-presets button,
.calendar-head button,
.calendar-grid button {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}

.date-presets button {
  min-height: 34px;
  padding: 0 8px;
  font-size: 12px;
}

.date-presets button.active {
  border-color: rgba(37, 99, 235, 0.32);
  background: var(--primary-soft);
  color: var(--primary);
}

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

.date-range-fields label {
  display: grid;
  gap: 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.date-range-fields input {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  padding: 0 9px;
}

.calendar-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.calendar-head button {
  display: grid;
  width: 30px;
  min-height: 30px;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-grid span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.calendar-grid i,
.calendar-grid button {
  display: grid;
  min-height: 30px;
  place-items: center;
  font-style: normal;
}

.calendar-grid button.range-start,
.calendar-grid button.range-end {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.calendar-grid button.in-range {
  border-color: rgba(37, 99, 235, 0.18);
  background: var(--primary-soft);
  color: var(--primary);
}

.date-actions {
  justify-content: flex-end;
}

.nav-item:active,
.mobile-nav-item:active,
.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.icon-button:active,
.landing-primary:active,
.landing-secondary:active,
.landing-login-button:active,
.period-button:active,
.segment:active,
.date-presets button:active,
.calendar-head button:active,
.calendar-grid button:active,
.action-item:active,
.upload-option:active {
  transform: scale(0.98);
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
  animation: panel-in 180ms ease both;
}

.workspace-empty-state {
  display: grid;
  justify-items: center;
  max-width: 680px;
  margin: clamp(56px, 11vh, 132px) auto;
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workspace-empty-state[hidden] {
  display: none;
}

.workspace-empty-state h2 {
  margin: 10px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.workspace-empty-state p {
  max-width: 550px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.workspace-empty-state .primary-button {
  margin-top: 24px;
}

.workspace-empty-state small {
  margin-top: 16px;
  color: var(--text-muted);
}

.workspace-empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--primary);
  border: 1px solid #bfd3ff;
  border-radius: 8px;
  background: #eaf1ff;
}

.workspace-empty-icon svg {
  width: 24px;
  height: 24px;
}

.workspace-loading-ring {
  display: block;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(37, 99, 235, 0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: workspace-spin 760ms linear infinite;
}

@keyframes workspace-spin {
  to { transform: rotate(360deg); }
}

.data-intake-panel { min-height: 520px; }
.data-requirement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }

.data-requirement,
.data-file-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); padding: 12px; }

.data-requirement i { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border-radius: 50%; background: var(--surface); color: var(--text-muted); font: 700 12px/1 var(--font-data); font-style: normal; }
.data-requirement.ready i { background: var(--success-soft); color: var(--success); }
.data-requirement.partial i { background: var(--warning-soft); color: var(--warning); }
.data-requirement.processing i { background: var(--primary-soft); color: var(--primary); }
.data-requirement.failed i { background: var(--danger-soft); color: var(--danger); }
.data-requirement div { min-width: 0; display: grid; gap: 2px; }
.data-requirement strong { font-size: 13px; }
.data-requirement small { color: var(--text-muted); font-size: 11px; }
.data-requirement > span { margin-left: auto; color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.data-file-list { display: grid; gap: 8px; }
.import-sync-status { margin: 0 0 12px; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.import-sync-status.warning { color: var(--warning); }
.data-file-period-note { color: var(--text-muted); }
.upload-live-meter[hidden] { display: none; }
.data-file-row { justify-content: space-between; align-items: flex-start; }
.data-file-row > div:first-child { min-width: 0; display: grid; gap: 3px; }
.data-file-row strong { font-size: 13px; }
.data-file-row span, .data-file-error { color: var(--text-muted); font-size: 12px; overflow-wrap: anywhere; }
.data-file-error { color: var(--danger); }
.data-file-progress { color: var(--primary); font-size: 12px; }
.data-file-progress.complete { color: var(--success); }
.data-file-progress-meter { width: min(520px, 100%); height: 6px; overflow: hidden; margin-top: 5px; border-radius: 3px; background: var(--border); }
.data-file-progress-meter i { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width 320ms ease; }
.data-file-eta { display: flex; width: min(520px, 100%); align-items: baseline; justify-content: space-between; gap: 12px; color: var(--text-muted); font-size: 11px; }
.data-file-eta strong { color: var(--text); font-size: 11px; }
.data-file-eta span { text-align: right; }
.import-job-toast { position: fixed; right: 22px; bottom: 22px; z-index: 120; width: min(390px, calc(100vw - 32px)); padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 18px 46px rgba(15,23,42,.2); font-weight: 700; font-size: 13px; transform: translateY(16px); opacity: 0; pointer-events: none; transition: opacity 160ms ease, transform 160ms ease; }
.import-job-toast.open { transform: translateY(0); opacity: 1; }
.import-job-toast.success { border-color: rgba(5,150,105,.36); color: var(--success); }
.import-job-toast.warning { border-color: rgba(245,158,11,.4); color: #b45309; }
.import-job-toast.error { border-color: rgba(239,68,68,.36); color: var(--danger); }
.data-file-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.data-file-actions em { color: var(--text-muted); font: 600 11px/1 var(--font-data); font-style: normal; }
.data-file-actions .secondary-button { min-height: 32px; padding: 0 10px; font-size: 12px; }
.danger-text-button { min-height: 32px; padding: 0 8px; border: 0; background: transparent; color: var(--danger); font: 700 12px/1 var(--font-sans); cursor: pointer; }
.danger-text-button:disabled { cursor: not-allowed; opacity: .5; }
.data-file-empty { color: var(--text-muted); }

@media (max-width: 700px) {
  .data-requirement-grid { grid-template-columns: 1fr; }
  .data-file-row { display: grid; }
  .data-file-actions { justify-content: space-between; }
  .data-file-eta { display: grid; gap: 2px; }
  .data-file-eta span { text-align: left; }
}

.workspace-sql-pending {
  display: grid;
  justify-items: center;
  max-width: 680px;
  margin: clamp(56px, 11vh, 132px) auto;
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workspace-sql-pending h2 {
  margin: 10px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.workspace-sql-pending p {
  max-width: 550px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.workspace-sql-pending .primary-button {
  margin-top: 24px;
}

body.workspace-empty .view-panel {
  display: none !important;
}

body.workspace-empty:has(#view-data.active) .workspace-empty-state {
  display: none;
}

body.workspace-empty #view-data.active {
  display: block !important;
}

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

.compact-kpis {
  margin: 12px 0;
}

.metric-card,
.panel,
.reconcile-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 118px;
  padding: 13px;
}

.profit-card {
  background: linear-gradient(135deg, var(--success-soft), var(--surface) 62%);
}

.warning-card {
  background: linear-gradient(135deg, var(--warning-soft), var(--surface) 62%);
}

.danger-card {
  background: linear-gradient(135deg, var(--danger-soft), var(--surface) 62%);
}

.metric-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.metric-topline strong,
.positive,
.warning,
.neutral,
.negative-text {
  font-family: var(--font-data);
  font-size: 11px;
}

.positive {
  color: var(--success);
}

.warning {
  color: var(--warning);
}

.neutral {
  color: var(--info);
}

.negative-text {
  color: var(--danger);
}

.metric-value {
  margin-top: 10px;
  font-family: var(--font-data);
  font-size: clamp(22px, 2.7vw, 32px);
  font-weight: 700;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.metric-detail {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 13px;
}

.value-with-warning {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.warning-tip {
  position: relative;
  display: inline-flex;
  width: 22px;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--warning) 38%, var(--border));
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  cursor: help;
  flex: 0 0 auto;
  vertical-align: middle;
}

button.warning-tip {
  appearance: none;
  padding: 0;
  font: inherit;
}

.warning-tip svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.warning-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 50;
  width: min(310px, calc(100vw - 40px));
  border: 1px solid color-mix(in srgb, var(--warning) 34%, var(--border));
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  padding: 9px 10px;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 6px);
  transition: opacity 150ms ease, transform 150ms ease;
  white-space: normal;
}

.warning-tip:hover::after,
.warning-tip:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.summary-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr) minmax(420px, 0.96fr);
  grid-template-areas:
    "pnl pnl side"
    "recon split side";
  grid-template-rows: auto 1fr;
  gap: 8px 10px;
  margin-top: 10px;
}

.pnl-panel {
  display: flex;
  align-self: start;
  flex-direction: column;
  grid-area: pnl;
}

.summary-side-stack {
  display: grid;
  align-content: start;
  align-self: start;
  gap: 10px;
  grid-area: side;
  grid-template-rows: auto;
}

.pnl-table-panel {
  display: flex;
  min-height: clamp(600px, 60dvh, 680px);
  flex-direction: column;
}

.pnl-table-panel .compact-pnl-table {
  display: grid;
  flex: 1;
  grid-auto-rows: minmax(46px, 1fr);
}

.recon-panel {
  align-self: stretch;
  grid-area: recon;
}

.split-panel {
  align-self: stretch;
  grid-area: split;
}

.panel {
  padding: 13px;
}

.panel-header,
.section-lead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tight-header {
  margin-bottom: 10px;
}

.panel-header h2,
.section-lead h2,
.market-hero h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.22;
}

.panel-header p,
.section-lead p,
.market-hero p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.success {
  color: var(--success);
  background: var(--success-soft);
}

.status-pill.warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.status-pill.danger {
  color: var(--danger);
  background: var(--danger-soft);
}

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

.admin-flow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 10px;
}

.admin-flow-strip article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.admin-flow-strip span {
  color: var(--primary);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
}

.admin-flow-strip strong {
  color: var(--text);
  font-size: 14px;
}

.admin-flow-strip p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.64fr) minmax(0, 1fr);
  grid-template-areas:
    "invite users"
    "roles users"
    "checks users";
  gap: 10px;
}

.admin-access-panel {
  grid-area: invite;
}

.admin-users-panel {
  grid-area: users;
}

.admin-checklist-panel {
  grid-area: checks;
}

.admin-role-panel {
  grid-area: roles;
}

.admin-invite-form {
  display: grid;
  gap: 10px;
}

.admin-invite-form label {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-invite-form input,
.admin-invite-form select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  padding: 0 11px;
}

.admin-workspace-preview,
.admin-auth-note {
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px 11px;
}

.admin-workspace-preview span,
.admin-workspace-preview em,
.admin-auth-note span,
.workspace-slug {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-workspace-preview em {
  font-style: normal;
}

.admin-workspace-preview strong,
.admin-auth-note strong,
.workspace-name {
  color: var(--text);
  font-weight: 800;
}

.admin-auth-note {
  margin-top: 10px;
  border-color: rgba(37, 99, 235, 0.18);
  background: var(--primary-soft);
}

.workspace-name,
.workspace-slug {
  display: block;
}

.admin-feedback {
  margin-top: 10px;
}

.admin-user-table {
  max-height: 460px;
  overflow: auto;
}

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

.text-danger-button {
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  cursor: pointer;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.text-danger-button:hover {
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}

.text-danger-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.admin-check-list {
  display: grid;
  gap: 9px;
}

.admin-role-list {
  display: grid;
  gap: 8px;
}

.admin-role-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px;
}

.admin-role-list strong {
  color: var(--text);
}

.admin-role-list span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
}

.admin-check-list div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.admin-check-list svg {
  color: var(--success);
}

.admin-nav-item.is-locked {
  opacity: 0.62;
}

.status-pill.info {
  color: var(--info);
  background: var(--info-soft);
}

.status-pill.shopee {
  color: var(--orange);
  background: var(--orange-soft);
}

.status-pill.tiktok {
  color: var(--violet);
  background: var(--violet-soft);
}

.pnl-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pnl-table .pnl-line,
.formula-box div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 10px;
}

.pnl-table button.pnl-line {
  width: 100%;
  appearance: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
}

.pnl-table button.pnl-line:disabled {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

.pnl-table button.pnl-line.minus:disabled strong {
  color: var(--danger);
  -webkit-text-fill-color: var(--danger);
}

.compact-pnl-table .pnl-line {
  min-height: 52px;
  padding: 0 18px;
}

.pnl-table .pnl-line:last-child,
.formula-box div:last-child {
  border-bottom: 0;
}

.pnl-table span,
.formula-box span {
  color: var(--text-muted);
}

.pnl-table strong span,
.formula-box strong span {
  color: inherit;
}

.pnl-table strong,
.formula-box strong {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 7px;
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.pnl-table strong .warning-tip {
  align-self: center;
}

.pnl-table strong .warning-tip::after {
  right: 0;
  left: auto;
  transform: translateY(6px);
}

.pnl-table strong .warning-tip:hover::after,
.pnl-table strong .warning-tip:focus-visible::after {
  transform: translateY(0);
}

.pnl-table em {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.pnl-table .minus strong,
.formula-box div:not(.total):has(strong)::after {
  color: var(--danger);
}

.pnl-table .minus strong {
  color: var(--danger);
}

.pnl-table .total,
.formula-box .total {
  background: var(--success-soft);
  font-weight: 800;
}

.pnl-table .total strong,
.formula-box .total strong {
  color: var(--success);
}

.pnl-table .total.minus {
  background: var(--danger-soft);
}

.pnl-table .total.minus strong {
  color: var(--danger);
}

.pnl-table .pending-line strong {
  color: var(--warning);
  font-weight: 700;
}

.pnl-table .pnl-disclosure-line {
  background: var(--surface-2);
}

.pnl-disclosure-line > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pnl-disclosure-line small {
  color: var(--info);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.fee-context {
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 14px;
}

.fee-context h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.fee-context > p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.fee-context-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.fee-context-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 40px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
}

.fee-context-list > div:last-child {
  border-bottom: 0;
}

.fee-context-list small {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
}

.fee-audit-link {
  width: 100%;
  margin-top: 10px;
}

.fee-audit-kpis {
  margin-bottom: 12px;
}

.fee-audit-tally {
  margin: 0 14px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.fee-audit-table strong {
  color: var(--text);
}

.fee-audit-table td:last-child,
.fee-audit-table th:last-child {
  text-align: right;
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .fee-audit-scopes {
    width: 100%;
  }

  .fee-audit-scopes button {
    flex: 1;
  }
}

.fee-line {
  width: 100%;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.fee-line:hover,
.sample-line:hover {
  background: var(--surface-2);
}

.fee-line span,
.sample-line span {
  color: var(--text-muted);
}

.fee-line strong::after,
.sample-line strong::after {
  content: "i";
  display: inline-flex;
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 999px;
  padding: 0;
  color: var(--danger);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
}

.pnl-info-button {
  display: inline-flex;
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 999px;
  background: transparent;
  color: var(--danger);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.pnl-info-button:hover,
.pnl-info-button:focus-visible {
  background: var(--danger-soft);
  outline: none;
}

.sample-line {
  width: 100%;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.sample-line strong::after {
  border-color: color-mix(in srgb, var(--violet) 30%, var(--border));
  color: var(--violet);
}

.pnl-line[disabled] {
  cursor: default;
  opacity: 1;
}

.bridge-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(108px, 1fr));
  align-items: stretch;
  /* Keep the plot compact even when the adjacent P&L has extra notices. */
  flex: 0 0 auto;
  gap: 10px;
  min-height: 252px;
}

.bridge-step {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
}

.bridge-step span {
  color: var(--text-muted);
  font-size: clamp(10px, 0.8vw, 11px);
}

.bridge-step strong {
  font-family: var(--font-data);
  font-size: clamp(10px, 0.8vw, 11px);
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bridge-step.negative strong {
  color: var(--danger);
  font-size: clamp(10px, 0.8vw, 11px);
}

.bridge-step.zero .bridge-bar {
  height: 8px;
  opacity: 0.45;
}

.bridge-bar {
  display: block;
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: var(--bar-h, 120px);
  border-radius: 6px 6px 1px 1px;
}

.bridge-step.has-stack .bridge-bar {
  /* Reserve space for cancellation shading instead of covering the amount. */
  margin-top: var(--stack-h, 0px);
}

.bridge-step.has-stack .bridge-bar::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: var(--stack-h, 0px);
  border-radius: 6px 6px 0 0;
  background: repeating-linear-gradient(135deg, rgba(100, 116, 139, 0.34), rgba(100, 116, 139, 0.34) 7px, rgba(148, 163, 184, 0.24) 7px, rgba(148, 163, 184, 0.24) 14px);
}

.bridge-bar.sales {
  background: linear-gradient(180deg, #10b981, rgba(16, 185, 129, 0.45));
}

.bridge-bar.fee {
  background: linear-gradient(180deg, #ef4444, rgba(239, 68, 68, 0.35));
}

.bridge-bar.refund {
  background: linear-gradient(180deg, #f59e0b, rgba(245, 158, 11, 0.34));
}

.bridge-bar.released {
  background: linear-gradient(180deg, #2563eb, rgba(37, 99, 235, 0.42));
}

.bridge-bar.pending {
  background: repeating-linear-gradient(135deg, #f59e0b, #f59e0b 8px, rgba(245, 158, 11, 0.35) 8px, rgba(245, 158, 11, 0.35) 16px);
}

.bridge-bar.hpp {
  background: linear-gradient(180deg, #dc2626, rgba(220, 38, 38, 0.32));
}

.bridge-bar.ads {
  background: linear-gradient(180deg, #7c3aed, rgba(124, 58, 237, 0.32));
}

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

.status-matrix.recon-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.matrix-cell {
  min-height: 74px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
}

.matrix-cell span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

.matrix-cell strong {
  display: block;
  margin-top: 7px;
  font-family: var(--font-data);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.matrix-cell small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.matrix-cell.matched {
  background: var(--success-soft);
}

.matrix-cell.order {
  background: var(--info-soft);
}

.matrix-cell.pending {
  background: var(--warning-soft);
}

.matrix-cell.cross {
  background: var(--info-soft);
}

.matrix-cell.cancelled {
  background: var(--danger-soft);
}

.recon-explainer {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.recon-note {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 9px 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.recon-note strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.recon-note span {
  display: block;
  margin-top: 3px;
}

.recon-explainer.is-detailed .recon-note {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  background: var(--info-soft);
}

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

.recon-timeline div,
.gross-bridge div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 9px 10px;
}

.recon-timeline span,
.gross-bridge span,
.recon-timeline small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
}

.recon-timeline strong,
.gross-bridge strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-data);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.recon-timeline small {
  margin-top: 3px;
  line-height: 1.35;
}

.gross-bridge {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 7px;
}

.gross-bridge div {
  min-height: 58px;
}

.gross-bridge .negative strong {
  color: var(--danger);
  font-weight: 500;
}

.gross-bridge strong {
  overflow-wrap: anywhere;
}

.recon-explainer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.action-list {
  display: grid;
  gap: 9px;
}

.compact-action-list .action-item:nth-child(n + 4) {
  display: none;
}

.action-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 68px;
  width: 100%;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 10px;
  text-align: left;
  transition: background 150ms ease, transform 150ms ease, border-color 150ms ease;
}

.action-item:hover {
  background: var(--surface-2);
}

.action-item svg {
  color: var(--text);
}

.action-item strong,
.action-item small {
  display: block;
}

.action-item strong {
  font-size: 14px;
  line-height: 1.2;
}

.action-item small {
  margin-top: 4px;
  color: var(--text-muted);
}

.action-item.amber {
  border-left-color: var(--warning);
}

.action-item.red {
  border-left-color: var(--danger);
}

.action-item.blue {
  border-left-color: var(--primary);
}

.action-item.violet {
  border-left-color: var(--violet);
}

.market-split,
.fee-list,
.bucket-list,
.hpp-list,
.check-list,
.note-list {
  display: grid;
  gap: 9px;
}

.split-row,
.fee-list div,
.bucket-list div,
.hpp-list div,
.check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 9px 10px;
}

.split-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.split-row i {
  grid-column: 1 / -1;
  display: block;
  width: var(--w);
  max-width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}

.split-row.tiktok i {
  background: var(--violet);
}

.split-row.deduction i {
  background: var(--danger);
}

.pie-split {
  justify-items: center;
  align-content: start;
  grid-template-columns: 1fr;
  gap: 12px;
  min-height: 240px;
  padding-top: 12px;
}

.settlement-pie {
  position: relative;
  width: 168px;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 48%, transparent 49%),
    conic-gradient(var(--pie-gradient, var(--success) 0 99.1%, var(--violet) 99.1% 100%));
  box-shadow: inset 0 0 0 10px var(--surface-2);
}

.settlement-pie::after {
  content: attr(data-total);
  position: absolute;
  inset: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  font-family: var(--font-data);
  font-size: 8.5px;
  font-weight: 800;
}

.pie-legend {
  display: grid;
  width: 100%;
  gap: 8px;
}

.pie-legend div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 8px 10px;
}

.pie-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot, var(--success));
}

.pie-legend span,
.pie-legend strong small {
  color: var(--text-muted);
}

.pie-legend strong {
  display: inline-flex;
  min-width: 108px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.pie-legend strong b {
  color: var(--text);
  font-size: 15px;
}

.pie-legend strong small {
  font-size: 12px;
  font-weight: 500;
}

.split-row span,
.fee-list span,
.bucket-list span,
.hpp-list span,
.check-row span {
  color: var(--text-muted);
}

.split-row strong,
.fee-list strong,
.bucket-list strong,
.hpp-list strong,
.check-row strong {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.bucket-list div small {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.bucket-list strong {
  max-width: 260px;
  white-space: normal;
}

.check-row.pass strong {
  color: var(--success);
}

.check-row.warn strong {
  color: var(--warning);
}

.fee-popover {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 18px;
}

.fee-popover.open {
  display: grid;
}

.fee-popover-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
}

.fee-popover-card {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  padding: 18px;
  animation: fee-bounce 300ms cubic-bezier(0.18, 1.35, 0.35, 1) both;
}

.fee-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.fee-popover-card h2 {
  margin: 4px 42px 0 0;
  font-size: 20px;
}

.fee-popover-card p {
  margin: 4px 42px 14px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.fee-breakdown {
  display: grid;
  gap: 8px;
  max-height: min(470px, 52dvh);
  overflow-y: auto;
  padding-right: 3px;
}

.fee-breakdown div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 9px 10px;
}

.fee-breakdown span {
  color: var(--text-muted);
}

.fee-breakdown strong {
  color: var(--danger);
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}

.fee-breakdown .review-row {
  background: var(--warning-soft);
}

.fee-breakdown .credit-row {
  background: var(--success-soft);
}

.fee-breakdown .credit-row strong {
  color: var(--success);
}

.adjustment-breakdown {
  max-height: min(470px, 52dvh);
  overflow-y: auto;
  padding-right: 3px;
}

.adjustment-breakdown small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
}

.adjustment-note {
  margin-top: 12px;
  border: 1px solid color-mix(in srgb, var(--warning) 30%, var(--border));
  border-radius: var(--radius);
  background: var(--warning-soft);
  padding: 10px 12px;
}

.adjustment-note strong {
  font-size: 12px;
}

.adjustment-note p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.fee-breakdown .fee-total-row {
  background: var(--danger-soft);
  font-weight: 800;
}

.sample-popover-card {
  width: min(760px, 100%);
}

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

.sample-summary div {
  min-height: 84px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px;
}

.sample-summary span,
.sample-list small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

.sample-summary strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-data);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.sample-summary small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
}

.sample-list {
  display: grid;
  gap: 7px;
  max-height: min(520px, 48dvh);
  overflow-y: auto;
  padding-right: 4px;
}

.sample-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 8px 10px;
}

.sample-list span {
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
}

.sample-list small {
  grid-column: 1 / 2;
}

.sample-list strong {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  color: var(--danger);
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hpp-popover-card {
  width: min(920px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
}

.hpp-popover-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  margin-right: 48px;
}

.hpp-export-button {
  min-height: 38px;
}

.hpp-export-button svg {
  width: 16px;
  height: 16px;
}

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

.hpp-margin-columns section {
  min-width: 0;
}

.hpp-margin-columns h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.hpp-margin-list {
  display: grid;
  gap: 8px;
  max-height: min(560px, 58dvh);
  overflow-y: auto;
  padding-right: 4px;
}

.hpp-missing-panel {
  display: grid;
  gap: 10px;
}

.hpp-missing-list {
  display: grid;
  gap: 8px;
  max-height: min(620px, 58dvh);
  overflow-y: auto;
  padding-right: 4px;
}

.hpp-margin-item,
.hpp-missing-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px;
}

.hpp-missing-item {
  border-left: 3px solid var(--warning);
}

.hpp-margin-item.high {
  border-left: 3px solid var(--success);
}

.hpp-margin-item.low {
  border-left: 3px solid var(--warning);
}

.hpp-margin-rank {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-data);
  font-size: 12px;
}

.hpp-margin-copy {
  min-width: 0;
}

.hpp-margin-copy span {
  display: block;
  color: var(--text);
  font-weight: 800;
  line-height: 1.25;
}

.hpp-margin-copy small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.3;
}

.hpp-margin-item > strong,
.hpp-missing-item > strong {
  color: var(--text);
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hpp-margin-item dl,
.hpp-missing-item dl {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 2px 0 0;
}

.hpp-margin-item dl div,
.hpp-missing-item dl div {
  min-width: 0;
}

.hpp-margin-item dt,
.hpp-missing-item dt {
  color: var(--text-muted);
  font-size: 10px;
}

.hpp-margin-item dd,
.hpp-missing-item dd {
  margin: 1px 0 0;
  color: var(--text);
  font-family: var(--font-data);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hpp-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.hpp-pagination span {
  color: var(--text-muted);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
}

.hpp-empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  padding: 14px;
}

@keyframes fee-bounce {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  72% {
    opacity: 1;
    transform: translateY(-2px) scale(1.012);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.note-list div {
  border-left: 3px solid var(--primary);
  padding: 2px 0 2px 10px;
}

.note-list strong,
.note-list span {
  display: block;
}

.note-list span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 13px;
}

.market-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 144px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.shopee-hero {
  background: linear-gradient(135deg, var(--orange-soft), var(--surface) 58%);
}

.tiktok-hero {
  background: linear-gradient(135deg, var(--violet-soft), var(--surface) 58%);
}

.hero-number {
  min-width: min(280px, 44%);
  text-align: right;
}

.hero-number span {
  display: block;
  color: var(--text-muted);
}

.hero-number strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-data);
  font-size: clamp(24px, 3vw, 36px);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.product-profit-panel {
  margin-top: 10px;
}

.product-profit-panel .panel-header {
  flex-wrap: wrap;
}

.skeleton-line {
  display: inline-block;
  width: 100%;
  max-width: 180px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, .16), rgba(148, 163, 184, .34), rgba(148, 163, 184, .16));
  background-size: 220% 100%;
  animation: skeletonShimmer 1.15s ease-in-out infinite;
}

.skeleton-value {
  height: 24px;
  max-width: 170px;
}

.skeleton-small {
  height: 10px;
  max-width: 220px;
}

.skeleton-cell {
  height: 13px;
  max-width: 130px;
}

.skeleton-pager {
  height: 14px;
  width: 92px;
}

.skeleton-row td {
  height: 54px;
}

@keyframes skeletonShimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.summary-loading .metric-card,
.summary-loading .bridge-step,
.summary-loading .pnl-table .pnl-line,
.summary-loading .matrix-cell,
.summary-loading .recon-explainer,
.summary-loading .pie-legend div,
.summary-loading .action-item {
  position: relative;
}

.summary-loading .metric-card .metric-value,
.summary-loading .metric-card .metric-detail,
.summary-loading .bridge-step strong,
.summary-loading .pnl-table .pnl-line strong,
.summary-loading .matrix-cell strong,
.summary-loading .matrix-cell small,
.summary-loading .recon-explainer span,
.summary-loading .recon-explainer strong,
.summary-loading .pie-legend span,
.summary-loading .pie-legend strong,
.summary-loading .action-item strong,
.summary-loading .action-item small {
  display: block;
  min-width: 0;
}

.summary-loading .metric-card .metric-value .skeleton-line {
  width: min(72%, 190px);
}

.summary-loading .metric-card .metric-detail .skeleton-line,
.summary-loading .recon-explainer .skeleton-line,
.summary-loading .action-item small .skeleton-line {
  width: min(100%, 240px);
}

.summary-loading .bridge-bar.is-loading,
.summary-loading .settlement-pie.is-loading,
.summary-loading .skeleton-dot {
  background: linear-gradient(90deg, rgba(148, 163, 184, .16), rgba(148, 163, 184, .34), rgba(148, 163, 184, .16));
  background-size: 220% 100%;
  animation: skeletonShimmer 1.15s ease-in-out infinite;
}

.summary-loading .bridge-bar.is-loading {
  min-height: 64px;
  opacity: .9;
}

.summary-loading .settlement-pie.is-loading {
  background:
    radial-gradient(circle at center, var(--surface) 0 48%, transparent 49%),
    linear-gradient(90deg, rgba(148, 163, 184, .16), rgba(148, 163, 184, .34), rgba(148, 163, 184, .16));
  background-size: auto, 220% 100%;
  box-shadow: inset 0 0 0 10px var(--surface-2);
}

.summary-loading .settlement-pie.is-loading::after {
  content: "";
  inset: 72px 44px;
  height: 12px;
  margin: auto;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, .16), rgba(148, 163, 184, .34), rgba(148, 163, 184, .16));
  background-size: 220% 100%;
  animation: skeletonShimmer 1.15s ease-in-out infinite;
}

.summary-loading .skeleton-dot {
  width: 10px;
  height: 10px;
  max-width: 10px;
  border-radius: 50%;
}

.summary-loading .summary-skeleton-row strong {
  align-items: flex-end;
}

.summary-loading .action-item {
  cursor: progress;
}

.product-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.product-metric {
  min-height: 88px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px;
}

.product-metric.good {
  background: var(--success-soft);
}

.product-metric.warn {
  background: var(--warning-soft);
}

.product-metric.danger {
  background: var(--danger-soft);
}

.product-metric span,
.product-metric small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

.product-metric strong {
  display: block;
  margin: 7px 0 4px;
  font-family: var(--font-data);
  font-size: clamp(18px, 1.7vw, 24px);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.product-table table {
  min-width: 1980px;
}

.product-table th:nth-child(n + 3),
.product-table td:nth-child(n + 3) {
  text-align: right;
}

.product-table th:first-child,
.product-table th:nth-child(2),
.product-table th:last-child,
.product-table td:first-child,
.product-table td:nth-child(2),
.product-table td:last-child {
  text-align: left;
}

.product-table td:nth-child(n + 3):not(:last-child) {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}

.product-table th,
.product-table td,
.product-table th:nth-child(n + 3),
.product-table td:nth-child(n + 3),
.product-table th:first-child,
.product-table th:nth-child(2),
.product-table th:last-child,
.product-table td:first-child,
.product-table td:nth-child(2),
.product-table td:last-child {
  text-align: center;
  vertical-align: middle;
}

.product-table .status-pill {
  margin-inline: auto;
}

.product-table th[role="button"] {
  cursor: pointer;
  user-select: none;
}

.product-table th[role="button"]::after {
  content: "";
  display: inline-block;
  margin-left: 5px;
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  opacity: .55;
}

.product-table th.sort-active {
  color: var(--primary);
}

.product-table th.sort-active::after {
  color: var(--primary);
  opacity: 1;
}

.product-table th.sort-active.asc::after {
  content: " ASC";
}

.product-table th.sort-active.desc::after {
  content: " DESC";
}

.product-profit-panel .accounting-negative {
  color: var(--danger);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.product-profit-panel .accounting-positive {
  color: var(--success);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.formula-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.section-lead {
  align-items: center;
  margin-bottom: 10px;
}

.table-panel {
  margin-top: 10px;
}

.responsive-table {
  width: 100%;
  overflow-x: auto;
}

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

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 11px 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

td {
  color: var(--text-soft);
  font-size: 13px;
}

td:nth-child(2),
td:nth-last-child(-n + 4) {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}

.reconcile-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.reconcile-card {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 150px;
  padding: 14px;
}

.reconcile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reconcile-card span {
  color: var(--text-muted);
  font-size: 12px;
}

.reconcile-card em {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 2px 7px;
  color: var(--text-muted);
  background: var(--surface-2);
  font-family: var(--font-data);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}

.reconcile-card strong {
  display: block;
  font-family: var(--font-data);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.reconcile-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.reconcile-card small {
  display: block;
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.35;
}

.success-border em {
  color: var(--success);
  background: var(--success-soft);
}

.info-border em {
  color: var(--info);
  background: var(--info-soft);
}

.warning-border em {
  color: var(--warning);
  background: var(--warning-soft);
}

.danger-border em {
  color: var(--danger);
  background: var(--danger-soft);
}

.success-border {
  border-left: 4px solid var(--success);
}

.info-border {
  border-left: 4px solid var(--info);
}

.warning-border {
  border-left: 4px solid var(--warning);
}

.danger-border {
  border-left: 4px solid var(--danger);
}

.reconcile-timeline-note {
  margin: -2px 0 10px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  border-radius: var(--radius);
  background: var(--info-soft);
  padding: 9px 11px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.4;
}

.coverage-meter {
  display: grid;
  gap: 12px;
}

.coverage-meter strong {
  display: block;
  font-family: var(--font-data);
  font-size: 30px;
}

.coverage-meter span {
  color: var(--text-muted);
}

.meter-track {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.meter-track i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--success);
}

.hpp-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  border: 1px solid color-mix(in srgb, var(--warning) 30%, var(--border));
  border-radius: var(--radius);
  background: var(--warning-soft);
  padding: 10px 11px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.4;
}

.hpp-warning svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--warning);
}

.hpp-workspace {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.hpp-workspace h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.22;
}

.hpp-workspace p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

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

.hpp-search {
  min-width: 0;
  background: var(--surface-2);
}

.hpp-input-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) auto;
  gap: 8px;
  align-items: end;
}

.hpp-input-grid label {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
}

.hpp-input-grid input {
  min-height: 42px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  padding: 0 12px;
}

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

.hpp-upload-actions span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.compact-actions .icon-button {
  min-width: 38px;
  min-height: 38px;
}

.compact-actions svg {
  width: 16px;
  height: 16px;
}

.hpp-master-list,
.expense-ledger {
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

.hpp-master-row,
.expense-ledger > div {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(110px, 0.7fr) minmax(110px, 0.6fr) minmax(74px, auto);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 9px 10px;
}

.expense-ledger > div {
  grid-template-columns: minmax(0, 1.25fr) minmax(110px, 0.9fr) minmax(110px, 0.6fr) minmax(68px, auto) auto;
}

.hpp-master-head,
.expense-ledger-head {
  color: var(--text-muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.hpp-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.hpp-sort-button i {
  min-width: 10px;
  color: var(--accent);
  font-style: normal;
}

.hpp-sort-button.active {
  color: var(--accent);
}

.hpp-master-pagination {
  margin-top: 2px;
}

.hpp-master-row span,
.expense-ledger span {
  min-width: 0;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hpp-master-row strong,
.expense-ledger strong {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.hpp-master-row em,
.expense-ledger em {
  justify-self: end;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 2px 7px;
  color: var(--success);
  background: var(--success-soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.hpp-master-row.is-missing strong {
  color: var(--warning);
}

.hpp-master-row.is-missing em,
.expense-ledger em.draft {
  color: var(--warning);
  background: var(--warning-soft);
}

.expense-delete-button {
  justify-self: end;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: var(--radius);
  background: var(--danger-soft);
  color: var(--danger);
  cursor: pointer;
}

.expense-delete-button svg {
  width: 15px;
  height: 15px;
}

.expense-form {
  display: grid;
  gap: 12px;
}

.expense-form label {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
}

.expense-form input,
.expense-form select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  padding: 0 12px;
}

.expense-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.expense-total span {
  color: var(--text-muted);
}

.expense-total strong {
  font-family: var(--font-data);
}

.price-calculator-layout {
  align-items: start;
}

.planner-wide, .planner-fieldset { grid-column: 1 / -1; }
.planner-fieldset { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin: 4px 0; }
.planner-fieldset legend { font-weight: 700; font-size: 13px; padding: 0 6px; }
.planner-fieldset p, .planner-footnote { color: var(--text-muted); font-size: 12px; line-height: 1.6; margin: 0 0 12px; }
.planner-footnote { margin: 12px 0; }
.planner-line { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin: 12px 0; }
.planner-input-pair, .planner-comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.planner-comparison { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; background: var(--surface-2); }
.planner-comparison[hidden] { display: none; }
.planner-comparison h3 { font-size: 14px; margin: 0 0 8px; }
.planner-comparison p, .planner-comparison small { color: var(--text-muted); font-size: 12px; line-height: 1.6; }
.planner-comparison p { margin: 0 0 12px; }
.planner-comparison-grid > div { display: grid; gap: 6px; min-width: 0; }
.planner-comparison-grid span { font-size: 12px; color: var(--text-soft); }
.planner-comparison-grid strong { font-size: 20px; overflow-wrap: anywhere; }
.planner-line .small-button { min-height: 42px; }
.planner-fieldset .small-button, .priority-controls .small-button { border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px; color: var(--primary); background: var(--primary-soft); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.planner-fieldset .small-button:hover, .priority-controls .small-button:hover { border-color: var(--primary); }
.priority-controls .small-button:disabled { cursor: wait; opacity: .65; }
.price-calculator-form .planner-checkbox { display: flex; align-items: center; gap: 10px; }
.price-calculator-form .planner-checkbox input { width: 18px; min-height: 18px; height: 18px; }
.planner-campaign-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.planner-campaign-fields[hidden], #price-plan-results[hidden] { display: none; }
.planner-campaign-fields p { grid-column: 1 / -1; margin-bottom: 0; }
.planner-status { padding: 12px 14px; margin: 14px 0; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-soft); background: var(--surface-2); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.planner-status.is-error { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 35%, var(--border)); }
.planner-status[hidden] { display: none; }
.planner-limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.planner-limits > div { display: grid; align-content: start; gap: 8px; padding: 14px; background: var(--primary-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.planner-limits span { font-size: 12px; color: var(--text-soft); }
.planner-limits strong { font-size: 22px; color: var(--primary); overflow-wrap: anywhere; }
.planner-limits small { color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.price-calculator-breakdown > div { gap: 10px; }
.price-calculator-breakdown strong { text-align: right; overflow-wrap: anywhere; }
.priority-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.priority-controls label, .priority-search, .priority-sort { display: grid; gap: 6px; color: var(--text-muted); font-size: 13px; }
.priority-controls input, .priority-controls select, .priority-search input, .priority-sort select { min-height: 42px; min-width: 0; max-width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; background: var(--surface-2); color: var(--text); }
.priority-controls input { width: 170px; }
.priority-controls button { min-height: 42px; }
.priority-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.priority-summary > button { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.priority-summary > button:hover { border-color: var(--primary); }
.priority-summary > button[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.priority-summary > button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.priority-summary strong { font-size: 24px; }
.priority-summary span { font-size: 12px; color: var(--text-muted); }
.priority-list-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 18px 0 8px; }
.priority-search { flex: 1 1 300px; min-width: 0; max-width: 420px; }
.priority-sort { min-width: 0; margin-left: auto; }
.priority-sort > span { display: flex; align-items: center; gap: 7px; }
.priority-sort svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.priority-list { display: grid; gap: 14px; }
.priority-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.priority-card-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.priority-card-head h3 { font-size: 15px; margin: 6px 0 14px; overflow-wrap: anywhere; }
.priority-card-head .eyebrow { font-size: 11px; overflow-wrap: anywhere; }
.priority-card-head .status-pill { flex-shrink: 0; }
.priority-card-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.priority-card-metrics > div { display: grid; gap: 5px; }
.priority-card-metrics span, .priority-card small { color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.priority-card-metrics strong { font-size: 14px; overflow-wrap: anywhere; }
.priority-card p { font-size: 13px; line-height: 1.6; margin: 16px 0 8px; }
body.workspace-empty #view-price-calculator.active, body.workspace-empty #view-product-priorities.active { display: block !important; }
body.workspace-empty:has(#view-price-calculator.active) .workspace-empty-state, body.workspace-empty:has(#view-product-priorities.active) .workspace-empty-state { display: none; }
@media (max-width: 700px) {
  .planner-line { grid-template-columns: 1fr 1fr; }
  .planner-line button { grid-column: 1 / -1; }
  .planner-campaign-fields, .planner-input-pair, .planner-comparison-grid { grid-template-columns: 1fr; }
  .planner-limits strong { font-size: 19px; }
  .priority-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .priority-summary > button:first-child { grid-column: 1 / -1; }
  .priority-list-toolbar { flex-direction: column; align-items: stretch; }
  .priority-search { flex: initial; max-width: none; }
  .priority-sort { margin-left: 0; }
  .priority-card { padding: 12px; }
  .priority-card-head { flex-direction: column; }
  .priority-card-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
  .priority-controls label { flex: 1 1 140px; min-width: 0; }
  .priority-controls input, .priority-controls select { width: 100%; }
}

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

.price-calculator-form label {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.price-calculator-form input,
.price-calculator-form select {
  min-height: 42px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  padding: 0 12px;
}

.calculator-source-note {
  margin-top: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--text-soft);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}

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

.price-calculator-breakdown {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-calculator-breakdown .negative strong {
  color: var(--danger);
}

.price-calculator-breakdown .total.negative {
  background: var(--danger-soft);
}

.price-calculator-breakdown .total.negative strong {
  color: var(--danger);
}

.mobile-nav {
  display: none;
}

.upload-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.upload-drawer.open {
  display: block;
}

.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 100%);
  height: 100%;
  overflow-y: auto;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
}

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

.drawer-header h2 {
  margin: 2px 0 0;
}

.upload-dropzone {
  display: grid;
  min-height: 170px;
  place-items: center;
  gap: 8px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 20px;
  text-align: center;
  width: 100%;
  color: var(--text);
  cursor: pointer;
}

.upload-period-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  border-radius: var(--radius);
  background: var(--primary-soft);
  padding: 14px;
}

.upload-period-guide > div {
  display: grid;
  gap: 5px;
}

.upload-period-guide strong,
.upload-period-guide p,
.upload-period-guide small {
  margin: 0;
}

.upload-period-guide p,
.upload-period-guide small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 18px;
}

.upload-target-period {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.upload-target-period strong {
  color: var(--text);
}

.upload-dropzone:hover,
.upload-dropzone:focus-visible {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.upload-dropzone svg {
  width: 34px;
  height: 34px;
  color: var(--primary);
}

.upload-dropzone span,
.recent-import p {
  color: var(--text-muted);
}

.upload-options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.upload-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  padding: 12px;
  text-align: left;
}

.upload-option span {
  color: var(--text-muted);
}

.upload-option.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.upload-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.upload-status.error { color: var(--danger); }
.upload-status.success { color: var(--success); }
.upload-status.warning { color: var(--warning); }

.upload-live-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  border-radius: var(--radius);
  background: var(--primary-soft);
  padding: 12px;
}

.upload-live-progress[hidden] {
  display: none;
}

.upload-live-progress .upload-cancel-button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 44px;
  color: var(--danger);
  border-color: var(--danger);
  background: var(--surface);
}

.upload-live-progress .upload-cancel-button[hidden] { display: none; }
.upload-live-progress.cancelled .upload-live-spinner { animation: none; border-color: var(--text-muted); }

.upload-live-progress.success {
  border-color: color-mix(in srgb, var(--success) 34%, var(--border));
  background: var(--success-soft);
}

.upload-live-progress.error {
  border-color: color-mix(in srgb, var(--danger) 34%, var(--border));
  background: var(--danger-soft);
}

.upload-live-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: upload-live-spin 0.8s linear infinite;
}

.upload-live-progress.success .upload-live-spinner {
  border-color: var(--success);
  animation: none;
}

.upload-live-progress.error .upload-live-spinner {
  border-color: var(--danger);
  animation: none;
}

.upload-live-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.upload-live-copy strong,
.upload-live-copy p,
.upload-live-copy small {
  margin: 0;
}

.upload-live-copy p,
.upload-live-copy small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.upload-live-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 80%, transparent);
}

.upload-live-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 180ms ease;
}

.upload-dropzone[aria-busy="true"] {
  cursor: wait;
  opacity: 0.68;
}

@keyframes upload-live-spin {
  to { transform: rotate(360deg); }
}

.data-file-eta.is-loading strong::before {
  content: "";
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  margin-right: 0.38rem;
  vertical-align: -0.08rem;
  border: 2px solid color-mix(in srgb, var(--primary) 28%, transparent);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: upload-live-spin 0.85s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .upload-live-spinner,
  .data-file-eta.is-loading strong::before { animation-duration: 1.8s; }
}

.upload-repair-note {
  margin-top: 8px;
  color: var(--warning);
}

.text-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.upload-guide-link {
  display: inline-flex;
  margin-top: 6px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}

.upload-guide-link:hover {
  color: var(--primary-hover);
}

.recent-import {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
}

.pnl-data-notices { display: grid; gap: 10px; margin-bottom: 12px; }
.pnl-data-notice { padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--warning-soft); }
.pnl-data-notice p { margin: 6px 0 10px; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.pnl-data-notice button { white-space: normal; text-align: left; }
.hpp-export-status { padding: 10px 12px; background: var(--info-soft); border-radius: var(--radius); color: var(--text); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.hpp-export-status.error { background: var(--danger-soft); }
.hpp-export-status.loading::before { content: ""; display: inline-block; width: 12px; height: 12px; border: 2px solid var(--border-strong); border-top-color: var(--primary); border-radius: 50%; vertical-align: middle; margin-right: 8px; animation: upload-live-spin 0.8s linear infinite; }
.recent-import.pending { background: var(--primary-soft); }
.recent-import.success { background: var(--success-soft); }
.recent-import.error { background: var(--danger-soft); }

.recent-import span,
.recent-import strong {
  display: block;
}

.recent-import strong {
  overflow-wrap: anywhere;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes preview-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes hero-image-drift {
  from {
    transform: scale(1.035) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.055) translate3d(-10px, -8px, 0);
  }
}

@keyframes bar-rise {
  from {
    opacity: 0;
    transform: scaleY(0.46);
    transform-origin: bottom;
  }
  to {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

@keyframes login-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes date-pop {
  from {
    transform: translateY(-4px);
  }
  to {
    transform: translateY(0);
  }
}

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

  .feature-showcase-grid,
  .landing-security-section,
  .landing-ai-panel,
  .fk-feature-row,
  .fk-feature-row.is-reversed,
  .fk-workflow-grid,
  .fk-pricing-grid,
  .fk-footer {
    grid-template-columns: 1fr;
  }

  .feature-demo-card,
  .ai-recommendation-card,
  .fk-browser-card {
    max-width: 720px;
  }

  .fk-feature-row,
  .fk-feature-row.is-reversed {
    gap: 32px;
    min-height: 0;
  }

  .fk-feature-row.is-reversed .fk-feature-copy,
  .fk-feature-row.is-reversed .fk-browser-card {
    grid-column: auto;
    grid-row: auto;
  }

  .fk-feature-row.is-reversed .fk-browser-card {
    order: 2;
  }

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

  .preview-board {
    width: min(500px, 54%);
  }

  .landing-hero-inner {
    grid-template-columns: minmax(0, 560px) minmax(360px, 1fr);
    gap: 28px;
  }

  .landing-live-card {
    width: min(100%, 500px);
  }

  .landing-hero-inner,
  .landing-header,
  .landing-feature-showcase,
  .landing-workflow,
  .landing-security-section,
  .fk-trust-section,
  .fk-features-section,
  .fk-workflow-section,
  .fk-pricing-section,
  .fk-faq-section,
  .fk-cta-section,
  .fk-footer,
  .landing-feature-grid,
  .landing-split-section,
  .landing-ai-panel {
    width: min(100% - 28px, 1080px);
  }

  .landing-hero h1 {
    max-width: 560px;
  }

  .landing-hero p,
  .landing-live-card {
    max-width: 540px;
  }

  .summary-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
    grid-template-rows: auto;
    grid-template-areas:
      "pnl pnl"
      "side side"
      "recon split";
  }

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

@media (max-width: 860px) {
  .landing-header {
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(100% - 24px, 720px);
  }

  .landing-nav {
    display: none;
  }

  .landing-main {
    width: 100%;
    padding-top: 0;
  }

  .landing-hero {
    min-height: 0;
  }

  .landing-hero-image {
    opacity: 0.18;
    object-position: center top;
    transform: scale(1.05);
  }

  .landing-hero-shade {
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(248, 251, 255, 0.88) 54%, rgba(248, 251, 255, 0.98) 100%),
      linear-gradient(90deg, rgba(248, 251, 255, 0.98) 0%, rgba(248, 251, 255, 0.7) 100%);
  }

  .landing-hero-inner {
    grid-template-columns: 1fr;
    align-content: start;
    width: min(100% - 24px, 720px);
    min-height: 0;
    padding: 96px 0 42px;
  }

  .landing-hero-copy {
    grid-column: 1;
    grid-row: auto;
    max-width: 100%;
    padding: 0;
  }

  .landing-hero h1 {
    max-width: 100%;
    font-size: 44px;
    line-height: 0.98;
  }

  .landing-hero p {
    max-width: 100%;
    font-size: 16px;
  }

  .landing-live-card {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    padding: 18px;
  }

  .landing-hero-metrics {
    grid-column: 1;
    grid-row: auto;
    display: flex;
    overflow-x: auto;
    width: 100%;
    margin-top: 24px;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .landing-hero-metrics article {
    flex: 0 0 205px;
    scroll-snap-align: start;
  }

  .preview-board {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    animation: landing-rise 520ms ease both;
  }

  .preview-kpis {
    grid-template-columns: 1fr;
  }

  .preview-kpis article {
    min-height: 74px;
  }

  .preview-bars {
    height: 116px;
  }

  .bar-green {
    height: 92px;
  }

  .bar-red {
    height: 76px;
  }

  .bar-amber {
    height: 50px;
  }

  .bar-blue {
    height: 84px;
  }

  .landing-feature-grid,
  .landing-split-section,
  .landing-ai-panel,
  .landing-feature-showcase,
  .landing-workflow,
  .landing-security-section {
    width: min(100% - 24px, 720px);
    grid-template-columns: 1fr;
  }

  .landing-feature-grid {
    margin-top: -24px;
  }

  .landing-feature-showcase {
    margin-top: -18px;
    padding-top: 56px;
  }

  .feature-showcase-grid,
  .workflow-steps,
  .landing-security-section,
  .landing-ai-panel {
    grid-template-columns: 1fr;
  }

  .landing-workflow {
    padding-top: 54px;
  }

  .fk-logo-cloud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fk-feature-row,
  .fk-feature-row.is-reversed,
  .fk-workflow-grid,
  .fk-footer {
    grid-template-columns: 1fr;
  }

  .fk-feature-row {
    padding: 40px 0;
  }

  .fk-browser-card {
    max-width: 100%;
  }

  .fk-workflow-grid,
  .fk-pricing-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .landing-security-section,
  .landing-ai-panel {
    padding: 22px;
  }

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

  .workflow-steps {
    gap: 12px;
  }

  .landing-feature-grid article {
    min-height: 0;
  }

  .landing-split-section,
  .landing-ai-panel {
    padding: 18px;
  }

  .landing-split-section h2,
  .landing-ai-panel h2 {
    font-size: 28px;
    line-height: 1.12;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    padding: 12px 12px calc(var(--bottom-nav-height) + 20px);
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: auto;
    align-items: flex-start;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    padding: 6px 0 10px;
    backdrop-filter: blur(14px);
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px 42px;
    gap: 7px;
    width: 100%;
  }

  .search-box {
    display: none;
  }

  .hpp-search,
  .product-search {
    display: flex;
  }

  .product-panel-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .product-search {
    flex: 1 1 220px;
    min-width: 0;
  }

  .topbar-period-button {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  #date-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .summary-scope-row {
    display: grid;
    gap: 9px;
    margin-top: 6px;
    box-shadow: none;
  }

  .segmented-control,
  .period-group,
  .mini-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 1px;
  }

  .segment,
  .period-button,
  .secondary-button,
  .primary-button,
  .mini-tabs button {
    flex: 1 0 auto;
    min-width: max-content;
    padding-inline: 10px;
  }

  .date-control {
    position: static;
  }

  .date-popover {
    position: fixed;
    top: 128px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
  }

  .date-presets,
  .date-range-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-scope-tabs {
    justify-content: flex-start;
  }

  .kpi-grid,
  .summary-layout,
  .two-column,
  .product-metric-grid,
  .reconcile-board {
    grid-template-columns: 1fr;
  }

  .summary-layout {
    grid-template-areas:
      "pnl"
      "side"
      "recon"
      "split";
  }

  .bridge-chart {
    grid-template-columns: 1fr;
  }

  .bridge-chart {
    min-height: 0;
  }

  .bridge-step {
    min-height: 108px;
  }

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

  .sample-list {
    max-height: 48dvh;
  }

  .hpp-margin-columns {
    grid-template-columns: 1fr;
  }

  .hpp-margin-list {
    max-height: 42dvh;
  }

  .hpp-toolbar,
  .hpp-input-grid,
  .price-calculator-form {
    grid-template-columns: 1fr;
  }

  .hpp-upload-actions {
    justify-content: flex-start;
  }

  .compact-actions {
    justify-content: flex-start;
  }

  .hpp-master-row,
  .expense-ledger > div {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hpp-master-row span:first-child,
  .expense-ledger span:first-child {
    grid-column: 1 / -1;
  }

  .hpp-master-head,
  .expense-ledger-head {
    display: none !important;
  }

  .market-hero,
  .section-lead {
    display: grid;
  }

  .hero-number {
    min-width: 0;
    text-align: left;
  }

  .status-matrix,
  .status-matrix.recon-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recon-timeline,
  .gross-bridge {
    grid-template-columns: 1fr;
  }

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

  .mobile-nav {
    position: fixed;
    z-index: 70;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: var(--bottom-nav-height);
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    backdrop-filter: blur(16px);
  }

  .mobile-nav-item {
    min-height: 56px;
    flex-direction: column;
    gap: 2px;
    border: 0;
    padding: 6px 4px;
    font-size: 11px;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  table {
    min-width: 0;
  }

  .product-table table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 10px;
  }

  tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    padding: 8px 10px;
  }

  td {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1fr);
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    overflow-wrap: anywhere;
  }

  .product-table td,
  .product-table td:nth-child(n + 3),
  .product-table td:first-child,
  .product-table td:nth-child(2),
  .product-table td:last-child {
    text-align: left;
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-weight: 700;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  .landing-header {
    width: min(100% - 20px, 520px);
  }

  .landing-brand strong {
    display: none;
  }

  .landing-login-button {
    min-height: 38px;
    padding-inline: 11px;
  }

  .landing-main {
    width: 100%;
  }

  .landing-hero {
    min-height: 0;
    border-radius: 0;
  }

  .landing-hero-copy {
    padding: 0;
  }

  .landing-hero h1 {
    font-size: 40px;
  }

  .landing-actions {
    align-items: stretch;
  }

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

  .preview-board {
    padding: 11px;
  }

  .landing-platform-pill {
    align-items: flex-start;
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
    padding-block: 6px;
  }

  .landing-live-card {
    display: none;
  }

  .preview-table,
  .preview-topline {
    grid-template-columns: 1fr;
  }

  .landing-feature-grid {
    gap: 10px;
  }

  .landing-feature-grid,
  .landing-split-section,
  .landing-ai-panel,
  .landing-feature-showcase,
  .landing-workflow,
  .landing-security-section,
  .fk-trust-section,
  .fk-features-section,
  .fk-workflow-section,
  .fk-pricing-section,
  .fk-faq-section,
  .fk-cta-section,
  .fk-footer,
  .landing-hero-inner {
    width: min(100% - 20px, 520px);
  }

  .fk-trust-section,
  .fk-features-section,
  .fk-workflow-section,
  .fk-pricing-section,
  .fk-faq-section {
    padding-top: 54px;
    padding-bottom: 42px;
  }

  .fk-section-title h2,
  .fk-feature-copy h3 {
    font-size: 31px;
  }

  .fk-section-title p,
  .fk-feature-copy p {
    font-size: 16px;
  }

  .fk-logo-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
  }

  .fk-logo-cloud span {
    min-height: 56px;
    font-size: 12px;
  }

  .fk-feature-row,
  .fk-feature-row.is-reversed {
    gap: 22px;
    padding: 32px 0;
  }

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

  .fk-store-row em {
    grid-column: 2;
    justify-self: start;
  }

  .fk-mini-stats,
  .fk-kpi-mini,
  .fk-analytics-grid {
    grid-template-columns: 1fr;
  }

  .fk-split-line {
    grid-template-columns: 72px minmax(0, 1fr) 48px;
  }

  .fk-fee-box span,
  .fk-report-block,
  .fk-ad-row,
  .fk-top-products span {
    align-items: flex-start;
    flex-direction: column;
  }

  .fk-table-card {
    overflow-x: auto;
  }

  .fk-table-card table {
    min-width: 560px;
  }

  .fk-pricing-grid article {
    min-height: 0;
  }

  .fk-faq-list summary {
    min-height: 62px;
    padding: 0 16px;
    font-size: 15px;
  }

  .fk-faq-list p {
    padding: 16px;
  }

  .fk-cta-section {
    margin-top: 42px;
    padding: 36px 18px;
  }

  .fk-footer {
    gap: 18px;
  }

  .landing-section-heading h2,
  .landing-security-section h2,
  .landing-ai-panel h2 {
    font-size: 32px;
  }

  .landing-section-heading p,
  .landing-security-section p,
  .landing-ai-panel p {
    font-size: 16px;
  }

  .feature-copy-stack article {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .feature-demo-card,
  .landing-security-section,
  .landing-ai-panel {
    border-radius: 14px;
    padding: 16px;
  }

  .demo-marketplace-bars span {
    grid-template-columns: 68px minmax(0, 1fr) 44px;
  }

  .demo-fee-list span {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-feature-grid article,
  .landing-split-section,
  .landing-ai-panel {
    padding: 15px;
  }

  .metric-card,
  .panel,
  .reconcile-card,
  .market-hero {
    padding: 11px;
  }

  .metric-value {
    font-size: 23px;
  }

  .topbar h1 {
    font-size: 22px;
  }

  .pnl-table .pnl-line,
  .formula-box div,
  .split-row,
  .fee-list div,
  .bucket-list div,
  .hpp-list div,
  .hpp-master-row,
  .expense-ledger > div,
  .check-row {
    grid-template-columns: 1fr;
    gap: 2px;
    align-items: start;
    padding-block: 9px;
  }

  .pnl-table strong,
  .formula-box strong,
  .split-row strong,
  .fee-list strong,
  .bucket-list strong,
  .hpp-list strong,
  .hpp-master-row strong,
  .expense-ledger strong,
  .check-row strong {
    text-align: left;
    justify-content: flex-start;
  }

  .hpp-master-row em,
  .expense-ledger em {
    justify-self: start;
  }

  .status-matrix.recon-three {
    grid-template-columns: 1fr;
  }

  .hpp-margin-item {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .hpp-margin-item > strong,
  .hpp-margin-item dl {
    grid-column: 2 / 3;
  }

  .hpp-margin-item dl {
    grid-template-columns: 1fr;
  }

  .hpp-margin-item dd {
    white-space: normal;
  }
}

/* Finmarks single SaaS landing page. Scoped to avoid changing the dashboard app UI. */
body.is-landing {
  background: #ffffff;
}

.finmarks-landing {
  --fm-bg: #ffffff;
  --fm-soft: #f9f9f9;
  --fm-muted: #646464;
  --fm-text: #1a1c1c;
  --fm-border: #e2e2e2;
  --fm-border-strong: #d4d4d4;
  --fm-orange: #ff6600;
  --fm-orange-dark: #e65c00;
  --fm-dark: #1a1c1c;
  --fm-blue: #0062a1;
  display: block;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--fm-bg);
  color: var(--fm-text);
  font-family: "Inter", var(--font-sans);
}

.fm-container {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
}

.fm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--fm-border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.fm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, 1280px);
  min-height: 80px;
  margin: 0 auto;
  gap: 24px;
}

.fm-brand,
.fm-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--fm-text);
  text-decoration: none;
}

.fm-brand img,
.fm-footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: contain;
}

.fm-brand strong,
.fm-footer-brand strong {
  color: var(--fm-text);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.fm-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.fm-nav a {
  color: var(--fm-muted);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.fm-nav a:hover {
  color: var(--fm-orange);
  transform: translateY(-1px);
}

.fm-primary,
.fm-secondary {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 2px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  font: 700 16px/20px "Inter", var(--font-sans);
  letter-spacing: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.fm-primary {
  background: var(--fm-orange);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(255, 102, 0, 0.16);
}

.fm-primary:hover {
  background: var(--fm-orange-dark);
  transform: translateY(-1px);
}

.fm-secondary {
  background: transparent;
  color: var(--fm-text);
  border-color: var(--fm-text);
}

.fm-secondary:hover {
  background: var(--fm-soft);
  transform: translateY(-1px);
}

.fm-primary svg,
.fm-secondary svg,
.fm-bento a svg {
  width: 18px;
  height: 18px;
}

.fm-hero {
  padding: 118px 0 120px;
}

.fm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  align-items: center;
  gap: 64px;
}

.fm-hero-copy {
  display: grid;
  min-width: 0;
  gap: 30px;
}

.fm-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--fm-text);
  font-size: 72px;
  font-weight: 800;
  line-height: 80px;
  letter-spacing: 0;
}

.fm-hero p {
  max-width: 640px;
  margin: 0;
  border-left: 2px solid var(--fm-orange);
  padding: 8px 0 8px 24px;
  color: var(--fm-muted);
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0;
}

.fm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 4px;
}

.fm-hero-visual {
  position: relative;
  min-width: 0;
  min-height: 440px;
}

.fm-visual-orbit {
  position: absolute;
  inset: 44px 0 0 28px;
  border: 1px solid rgba(255, 102, 0, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    repeating-linear-gradient(90deg, rgba(255, 102, 0, 0.08) 0 1px, transparent 1px 34px) border-box;
}

.fm-dashboard-preview {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  margin-top: 42px;
  border: 1px solid var(--fm-border);
  border-radius: 8px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

.fm-window-bar {
  display: grid;
  grid-template-columns: 10px 10px 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--fm-border);
  border-radius: 6px;
  padding: 0 12px;
}

.fm-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fm-border-strong);
}

.fm-window-bar span:first-child {
  background: var(--fm-orange);
}

.fm-window-bar strong,
.fm-window-bar em {
  color: var(--fm-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
}

.fm-window-bar em {
  color: #009b72;
}

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

.fm-preview-kpis article,
.fm-preview-row {
  border: 1px solid var(--fm-border);
  border-radius: 6px;
  background: #ffffff;
  padding: 18px;
}

.fm-preview-kpis span,
.fm-preview-row span {
  display: block;
  margin-bottom: 10px;
  color: var(--fm-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.fm-preview-kpis strong,
.fm-preview-row strong {
  color: var(--fm-text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.fm-preview-bars {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.46fr 0.9fr;
  align-items: end;
  gap: 14px;
  min-height: 150px;
  padding-top: 24px;
}

.fm-preview-bars i {
  display: block;
  border-radius: 8px 8px 0 0;
  background: var(--fm-border);
}

.fm-preview-bars i:nth-child(1) { height: 140px; background: #39c79a; }
.fm-preview-bars i:nth-child(2) { height: 96px; background: #f15454; }
.fm-preview-bars i:nth-child(3) { height: 72px; background: #ffad2b; }
.fm-preview-bars i:nth-child(4) { height: 114px; background: #2f67ed; }

.fm-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.fm-preview-row span,
.fm-preview-row strong {
  margin: 0;
}

.fm-process,
.fm-faq {
  background: var(--fm-soft);
  padding: 118px 0;
}

.fm-features,
.fm-pricing {
  padding: 118px 0;
  background: #ffffff;
}

.fm-section-copy {
  margin: 18px 0 0;
  color: var(--fm-muted);
  font-size: 16px;
  line-height: 25px;
}

.fm-section-heading {
  max-width: 680px;
  margin-bottom: 56px;
}

.fm-section-heading.is-centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.fm-section-heading span,
.fm-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 2px;
  color: var(--fm-orange);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fm-chip {
  margin-bottom: 22px;
  background: var(--fm-soft);
  color: var(--fm-text);
  padding: 6px 10px;
}

.fm-section-heading h2 {
  margin: 14px 0 0;
  color: var(--fm-text);
  font-size: 36px;
  font-weight: 800;
  line-height: 44px;
  letter-spacing: 0;
}

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

.fm-step-grid article,
.fm-bento article,
.fm-accordion details {
  position: relative;
  border: 1px solid var(--fm-border);
  border-radius: 4px;
  background: #ffffff;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.fm-step-grid article {
  min-height: 260px;
  padding: 30px;
  overflow: hidden;
}

.fm-step-grid article:hover,
.fm-bento article:hover {
  border-color: var(--fm-text);
  transform: translateY(-2px);
}

.fm-step-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 4px;
  background: var(--fm-soft);
  color: var(--fm-text);
  transition: background 180ms ease, color 180ms ease;
}

.fm-step-grid article:hover .fm-step-icon {
  background: var(--fm-orange);
  color: #ffffff;
}

.fm-step-icon svg,
.fm-bento > article > svg {
  width: 26px;
  height: 26px;
}

.fm-step-grid b {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--fm-border);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
}

.fm-step-grid h3,
.fm-bento h3 {
  margin: 0 0 14px;
  color: var(--fm-text);
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
  letter-spacing: 0;
}

.fm-step-grid p,
.fm-bento p,
.fm-accordion p,
.fm-footer p {
  margin: 0;
  color: var(--fm-muted);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
}

.fm-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(250px, auto);
  gap: 24px;
}

.fm-bento article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  padding: 30px;
  overflow: hidden;
}

.fm-bento-large {
  grid-column: span 8;
}

.fm-bento-dark {
  grid-column: span 4;
  background: var(--fm-dark) !important;
  color: #ffffff;
}

.fm-bento-dark h3 {
  color: #ffffff;
}

.fm-bento-dark p {
  color: rgba(255, 255, 255, 0.72);
}

.fm-bento-dark svg {
  color: var(--fm-orange);
}

.fm-bento > article:not(.fm-bento-large):not(.fm-bento-wide):not(.fm-bento-dark) {
  grid-column: span 4;
}

.fm-bento-wide {
  grid-column: span 8;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
}

.fm-bento-large > svg {
  position: absolute;
  right: -54px;
  bottom: -54px;
  width: 210px;
  height: 210px;
  color: rgba(26, 28, 28, 0.06);
}

.fm-bento a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--fm-orange);
  font-weight: 800;
  text-decoration: none;
}

.fm-pricing {
  border-top: 1px solid var(--fm-border);
}

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

.fm-pricing-grid article {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  min-width: 0;
  border: 1px solid var(--fm-border);
  border-radius: 6px;
  background: #ffffff;
  padding: 30px;
}

.fm-pricing-grid article.is-featured {
  border-color: var(--fm-orange);
  box-shadow: 0 22px 56px rgba(255, 102, 0, 0.11);
}

.fm-pricing-grid h3 {
  margin: 0;
  color: var(--fm-text);
  font-size: 28px;
  line-height: 36px;
}

.fm-pricing-grid h3 small {
  color: var(--fm-muted);
  font-size: 13px;
  font-weight: 600;
}

.fm-pricing-grid p,
.fm-pricing-note {
  color: var(--fm-muted);
  font-size: 14px;
  line-height: 22px;
}

.fm-pricing-grid ul {
  display: grid;
  align-content: start;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fm-pricing-grid li {
  position: relative;
  padding-left: 24px;
  color: var(--fm-text);
  font-size: 14px;
  line-height: 21px;
}

.fm-pricing-grid li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fm-orange);
}

.fm-pricing-grid .fm-primary,
.fm-pricing-grid .fm-secondary {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
}

.fm-pricing-note {
  margin: 24px 0 0;
}

.fm-demo-modal {
  z-index: 300;
}

.fm-demo-card {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid var(--fm-border);
  border-radius: 8px;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.24);
}

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

.fm-demo-head h2 {
  margin: 0;
  color: var(--fm-text);
  font-size: 28px;
  line-height: 36px;
}

.fm-demo-head p,
.fm-demo-panel > p {
  margin: 8px 0 0;
  color: var(--fm-muted);
  font-size: 14px;
  line-height: 22px;
}

.fm-demo-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 26px 0 18px;
}

.fm-demo-tabs button {
  min-height: 42px;
  border: 1px solid var(--fm-border);
  border-radius: 4px;
  background: var(--fm-soft);
  color: var(--fm-muted);
  cursor: pointer;
  font-weight: 800;
}

.fm-demo-tabs button.active {
  border-color: var(--fm-orange);
  background: #fff4ec;
  color: var(--fm-orange-dark);
}

.fm-demo-panel {
  display: grid;
  gap: 12px;
}

.fm-demo-upload,
.fm-demo-status,
.fm-demo-kpis article {
  border: 1px solid var(--fm-border);
  border-radius: 5px;
  background: #ffffff;
  padding: 16px;
}

.fm-demo-upload {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 12px;
}

.fm-demo-upload svg {
  grid-row: span 2;
  width: 24px;
  height: 24px;
  color: var(--fm-orange);
}

.fm-demo-upload span,
.fm-demo-status span,
.fm-demo-status em,
.fm-demo-kpis span {
  color: var(--fm-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 18px;
}

.fm-demo-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
}

.fm-demo-status strong,
.fm-demo-kpis strong {
  color: var(--fm-text);
  font-family: var(--font-data);
}

.fm-demo-status em {
  border-radius: 999px;
  background: #e8f8f2;
  color: #008a65;
  padding: 4px 8px;
  font-weight: 800;
}

.fm-demo-status.is-warning em {
  background: #fff3d4;
  color: #a76500;
}

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

.fm-demo-kpis article {
  display: grid;
  gap: 8px;
}

.onboarding-modal {
  z-index: 320;
}

.onboarding-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(680px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.24);
}

.onboarding-head,
.onboarding-actions,
.onboarding-actions > div {
  display: flex;
  align-items: center;
}

.onboarding-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.onboarding-head h2 {
  margin: 4px 0 0;
  font-size: 26px;
  line-height: 34px;
}

.onboarding-head p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.onboarding-progress {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 6px;
  margin: 22px 0;
}

.onboarding-progress i {
  height: 5px;
  border-radius: 999px;
  background: var(--surface-3);
}

.onboarding-progress i.active {
  background: var(--primary);
}

.onboarding-panels {
  min-height: 260px;
}

.onboarding-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 260px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 24px;
}

.onboarding-panel h3 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 30px;
}

.onboarding-panel p {
  max-width: 580px;
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 24px;
}

.onboarding-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
}

.onboarding-icon svg {
  width: 22px;
  height: 22px;
}

.onboarding-actions {
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.onboarding-actions > div {
  gap: 8px;
}

.onboarding-actions button {
  min-height: 42px;
}

.fm-mini-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 140px;
  border-left: 1px solid var(--fm-border);
  padding-left: 30px;
}

.fm-mini-chart span {
  display: block;
  width: 34px;
  border-radius: 6px 6px 0 0;
  background: var(--fm-border);
}

.fm-mini-chart span:nth-child(1) { height: 70px; background: var(--fm-orange); }
.fm-mini-chart span:nth-child(2) { height: 104px; background: #c6c6c6; }
.fm-mini-chart span:nth-child(3) { height: 140px; background: var(--fm-dark); }
.fm-mini-chart span:nth-child(4) { height: 94px; background: #e2e2e2; }

.fm-faq-container {
  max-width: 820px;
}

.fm-accordion {
  border-top: 1px solid var(--fm-border);
}

.fm-accordion details {
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

.fm-accordion summary {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--fm-text);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  line-height: 22px;
  list-style: none;
}

.fm-accordion summary::-webkit-details-marker {
  display: none;
}

.fm-accordion summary::after {
  content: "+";
  color: var(--fm-muted);
  font-size: 28px;
  font-weight: 300;
}

.fm-accordion details[open] summary::after {
  content: "-";
}

.fm-accordion p {
  padding: 0 0 24px;
}

.fm-footer {
  border-top: 1px solid var(--fm-border);
  background: #ffffff;
  padding: 96px 0;
}

.fm-footer .fm-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.brand-mark-logo {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.brand-mark-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

@media (max-width: 960px) {
  .fm-container,
  .fm-header-inner {
    width: min(100% - 32px, 1280px);
  }

  .fm-nav {
    display: none;
  }

  .fm-hero {
    padding: 72px 0 76px;
  }

  .fm-hero-grid,
  .fm-bento-wide {
    grid-template-columns: 1fr;
  }

  .fm-hero h1 {
    font-size: 40px;
    line-height: 48px;
  }

  .fm-hero p {
    font-size: 16px;
    line-height: 24px;
  }

  .fm-hero-visual {
    min-height: 0;
  }

  .fm-dashboard-preview {
    margin-top: 0;
  }

  .fm-process,
  .fm-features,
  .fm-pricing,
  .fm-faq {
    padding: 64px 0;
  }

  .fm-section-heading {
    margin-bottom: 36px;
  }

  .fm-section-heading h2 {
    font-size: 32px;
    line-height: 40px;
  }

  .fm-step-grid,
  .fm-preview-kpis,
  .fm-pricing-grid {
    grid-template-columns: 1fr;
  }

  .fm-bento {
    grid-template-columns: 1fr;
  }

  .fm-bento-large,
  .fm-bento-dark,
  .fm-bento > article:not(.fm-bento-large):not(.fm-bento-wide):not(.fm-bento-dark),
  .fm-bento-wide {
    grid-column: auto;
  }

  .fm-mini-chart {
    border-left: 0;
    border-top: 1px solid var(--fm-border);
    padding: 24px 0 0;
  }
}

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

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

  .admin-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "invite"
      "users"
      "roles"
      "checks";
  }
}

@media (max-width: 860px) {
  .user-pill {
    display: none;
  }

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

  .admin-role-list div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .fm-header-inner {
    width: 100%;
    min-height: 70px;
    padding: 0 16px;
    gap: 10px;
  }

  .fm-brand { min-width: 0; gap: 9px; }
  .fm-brand img { width: 32px; height: 32px; flex: 0 0 auto; }
  .fm-brand strong {
    font-size: 18px;
  }

  .fm-nav-cta {
    flex: 0 0 auto;
    width: auto;
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .fm-actions,
  .fm-actions .fm-primary,
  .fm-actions .fm-secondary {
    width: 100%;
  }

  .fm-container,
  .fm-header-inner,
  .fm-hero-grid,
  .fm-dashboard-preview {
    min-width: 0;
    max-width: 100%;
  }

  .fm-dashboard-preview {
    width: 100%;
    overflow: hidden;
  }

  .fm-dashboard-preview,
  .fm-step-grid article,
  .fm-bento article,
  .fm-pricing-grid article,
  .fm-demo-card {
    padding: 18px;
  }

  .fm-demo-tabs,
  .fm-demo-kpis {
    grid-template-columns: 1fr;
  }

  .fm-demo-status {
    grid-template-columns: 1fr auto;
  }

  .fm-demo-status em {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .onboarding-card {
    padding: 16px;
  }

  .onboarding-panels,
  .onboarding-panel {
    min-height: 290px;
  }

  .onboarding-panel {
    padding: 18px;
  }

  .onboarding-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .onboarding-actions > div,
  .onboarding-actions button {
    width: 100%;
  }

  .fm-preview-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Private beta readiness surfaces */
.fm-footer-links,
.data-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fm-footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.fm-footer-links a:hover { color: var(--primary); }

.danger-zone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--danger) 32%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--danger-soft) 42%, var(--panel));
}

.danger-zone h3 { margin: 0 0 5px; font-size: 15px; }
.danger-zone p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.danger-button { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }

.upload-legal-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.upload-legal-consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; }
.upload-legal-consent a { color: var(--primary); }

.global-search-results {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  left: 0;
  width: min(520px, 86vw);
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(18, 31, 53, .18);
}

[data-global-search-box] { position: relative; }
.global-search-results > strong, .global-search-results > p { display: block; padding: 10px; margin: 0; font-size: 12px; }
.global-search-results button { display: grid; width: 100%; gap: 3px; padding: 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.global-search-results button:hover, .global-search-results button:focus-visible { background: var(--primary-soft); outline: none; }
.global-search-results button span { font-weight: 700; }
.global-search-results button small { color: var(--muted); }

.login-account-links {
  display: grid;
  gap: 5px;
  padding-top: 2px;
  text-align: center;
}
.login-account-links a,
.account-recovery-note a { color: var(--primary); font-weight: 800; text-decoration: none; }
.login-account-links a:hover,
.account-recovery-note a:hover { text-decoration: underline; }
.login-account-links span { color: var(--text-muted); font-size: 12px; line-height: 1.45; }

.settings-view [data-global-search-box],
.settings-view .date-control,
.settings-view .notification-control { display: none; }
.account-settings-lead { margin-bottom: 14px; }
.account-security-grid {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(440px, 1.22fr);
  gap: 14px;
  align-items: start;
}
.account-protection-card,
.account-password-card { padding: 22px; }
.account-protection-card h3,
.account-password-card h3 { margin: 5px 0 8px; font-size: 20px; }
.account-protection-card > p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.65; }
.account-protection-list { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.account-protection-list li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.account-protection-list li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 164, 124, .12);
  color: #009b75;
  font-weight: 900;
}
.account-protection-list strong,
.account-protection-list small { display: block; }
.account-protection-list strong { color: var(--text); font-size: 13px; }
.account-protection-list small { margin-top: 3px; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.account-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.account-card-head h3 { margin-bottom: 0; }
.account-password-form { display: grid; gap: 14px; }
.account-password-form > label,
.account-password-columns label {
  display: grid;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.account-password-form input[type="email"],
.account-password-form input[type="password"],
.account-password-form input[type="text"] {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  outline: none;
}
.account-password-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(38, 103, 255, .12); }
.account-password-form input[readonly] { color: var(--text-muted); cursor: default; }
.account-password-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-reauth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}
.account-reauth-row strong,
.account-reauth-row small { display: block; }
.account-reauth-row strong { font-size: 12px; }
.account-reauth-row small { margin-top: 3px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }
.account-reauth-row .secondary-button { flex: 0 0 auto; min-height: 38px; padding: 0 13px; }
.account-session-option { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 9px !important; font-weight: 600 !important; line-height: 1.45; }
.account-session-option input { width: 17px; height: 17px; margin: 1px 0 0; flex: 0 0 auto; }
.account-password-feedback { min-height: 0; margin: 0; }
.account-password-submit { justify-content: center; min-height: 45px; }
.account-recovery-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 12px; text-align: center; }

.hpp-master-list.is-editing [data-hpp-row] { cursor: pointer; }
.hpp-master-list.is-editing [data-hpp-row]:hover { background: var(--primary-soft); }

.support-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
}

.dashboard-open .support-widget { bottom: 20px; }
.support-widget-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px; border: 1px solid #1761e8; border-radius: 22px; background: #1761e8; color: white; box-shadow: 0 10px 30px rgba(23, 97, 232, .28); font-weight: 700; cursor: pointer; }
.support-widget-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.support-widget-menu { position: absolute; right: 0; bottom: 54px; z-index: 2; width: min(310px, calc(100vw - 28px)); padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; background-color: #ffffff; opacity: 1; isolation: isolate; box-shadow: 0 18px 48px rgba(18, 31, 53, .2); }
.support-widget-menu strong { display: block; margin-bottom: 5px; }
.support-widget-menu p { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.support-widget-menu a { display: block; padding: 10px 12px; border-radius: 6px; background: var(--panel-soft); color: var(--text); font-weight: 700; text-decoration: none; }
.support-widget-menu a + a { margin-top: 7px; }
.support-widget-menu a:hover { background: var(--primary-soft); color: var(--primary); }
.mobile-more-menu { display: none; }

@media (max-width: 860px) {
  .account-security-grid { grid-template-columns: 1fr; }
  .account-password-columns { grid-template-columns: 1fr; }
  .account-protection-card,
  .account-password-card { padding: 16px; }
  .account-reauth-row { align-items: stretch; flex-direction: column; }
  .account-reauth-row .secondary-button { width: 100%; }
  .data-panel-actions { width: 100%; }
  .data-panel-actions button { flex: 1; }
  .danger-zone { align-items: stretch; flex-direction: column; }
  .support-widget { right: 12px; bottom: calc(var(--bottom-nav-height) + 12px); }
  .support-widget-toggle span { display: none; }
  .support-widget-toggle { width: 44px; padding: 0; justify-content: center; }
  .mobile-more-menu { position: fixed; z-index: 82; right: 12px; bottom: calc(var(--bottom-nav-height) + 10px); display: grid; width: min(280px, calc(100vw - 24px)); padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 16px 44px rgba(18, 31, 53, .22); }
  .mobile-more-menu[hidden] { display: none; }
  .mobile-more-menu button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
  .mobile-more-menu button:hover { background: var(--primary-soft); color: var(--primary); }
  .mobile-more-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
