:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #667085;
  --line: #eaecf0;
  --surface: #fff;
  --canvas: #f8fafc;
  --blue: #2f6bff;
  --blue-dark: #4338ca;
  --navy: #344054;
  --violet: #7c3aed;
  --green: #059669;
  --red: #dc2626;
  --amber: #d97706;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 76px; padding: 0 max(5vw, calc((100vw - 1180px) / 2)); background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 136px; height: 58px; display: block; flex: 0 0 auto; overflow: hidden; background: #fff; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.brand strong { display: block; font: 800 16px 'Segoe UI', Arial, sans-serif; letter-spacing: -.03em; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.export-download { display: flex; align-items: center; gap: 8px; margin: 0; }
.export-download select { min-height: 39px; max-width: 210px; padding: 0 10px; border: 1px solid #d8e0e8; border-radius: 8px; color: #395268; background: white; font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 22px; }
.nav-link { color: #476176; font-size: 13px; font-weight: 700; }
.nav-link:hover { color: var(--blue); }
.signed-in { font-size: 12px; color: var(--muted); }
.topbar-actions form { margin: 0; }
.page { width: min(1180px, 90vw); margin: 42px auto 56px; flex: 1; }
.page-auth { display: grid; place-items: center; margin: 34px auto; }
.footer { text-align: center; color: #9aa5af; font-size: 11px; padding: 20px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 25px; }
.page-heading h1 { margin: 5px 0 5px; font: 800 clamp(28px, 4vw, 38px)/1.14 'Segoe UI', Arial, sans-serif; letter-spacing: -.045em; }
.page-heading p { margin: 0; }
.eyebrow { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.55; }
.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 700; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--blue); box-shadow: 0 5px 12px #1686c722; }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { border-color: #d8e0e8; color: #395268; background: white; }
.button-secondary:hover { background: #f9fbfd; }
.button-quiet { min-height: 32px; padding: 0 10px; background: transparent; color: #617080; }
.button-quiet:hover { background: #f2f5f8; }
.button-wide { width: 100%; margin-top: 8px; min-height: 44px; }
.filter-bar { padding: 13px 16px; margin-bottom: 18px; background: white; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; gap: 12px; box-shadow: 0 2px 7px #122c4006; }
.filter-title { margin-right: auto; color: #445568; font-weight: 700; font-size: 12px; }
.filter-bar label { display: flex; align-items: center; gap: 8px; color: #74808d; font-size: 11px; }
.filter-bar input { border: 1px solid #e0e6eb; border-radius: 6px; color: #34485b; background: #fff; padding: 7px 8px; font-size: 11px; }
.clear-filter { color: var(--blue); font-size: 11px; font-weight: 700; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.metric-card { min-height: 130px; padding: 19px 21px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 3px 9px #122c4006; border-top: 3px solid #d7e3ec; }
.metric-accent-blue { border-top-color: var(--blue); }
.metric-accent-violet { border-top-color: var(--violet); }
.metric-label { color: #6a7785; font-size: 12px; font-weight: 600; }
.metric-value { display: block; margin: 8px 0 3px; color: #14293c; font: 800 31px 'Segoe UI', Arial, sans-serif; letter-spacing: -.04em; }
.metric-value small { color: #82909c; font: 600 14px 'Segoe UI', Arial, sans-serif; letter-spacing: 0; }
.metric-help { color: #9aa4af; font-size: 10px; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 3px 9px #122c4006; }
.chart-grid .panel { min-height: 238px; padding: 20px 22px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-heading h2, .import-panel h2 { margin: 0; font: 700 15px 'Segoe UI', Arial, sans-serif; letter-spacing: -.025em; }
.panel-heading p { margin: 5px 0 0; color: #8a96a2; font-size: 10px; }
.panel-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; font-size: 14px; }
.panel-icon.blue { color: #147db6; background: #e8f5fb; }
.panel-icon.violet { color: var(--violet); background: #f0edfb; }
.bars { margin-top: 21px; display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 20px 1fr 24px; gap: 9px; align-items: center; }
.bar-label, .bar-value { color: #7c8996; font-size: 10px; }
.bar-value { text-align: right; }
.bar-track { height: 9px; border-radius: 20px; background: #f0f3f6; overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; transition: width .4s ease; }
.fill-blue { background: linear-gradient(90deg, #42b7df, #1686c7); }
.nps-bars { height: 142px; margin-top: 19px; display: grid; grid-template-columns: repeat(11, 1fr); gap: 7px; align-items: end; }
.nps-bar-column { height: 100%; display: grid; grid-template-rows: 15px 1fr 16px; gap: 3px; align-items: end; text-align: center; }
.nps-count, .nps-label { color: #86929d; font-size: 9px; }
.nps-count { height: 14px; }
.nps-track { height: 100%; background: #f3f5f7; border-radius: 4px 4px 0 0; display: flex; align-items: end; overflow: hidden; }
.nps-fill { width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; }
.fill-red { background: #de8282; }
.fill-amber { background: #e9b454; }
.fill-green { background: #55b994; }
.fill-violet { background: linear-gradient(180deg, #a391e6, #7560c4); }
.response-panel { overflow: hidden; }
.response-heading { padding: 20px 22px 16px; align-items: center; }
.count-pill { padding: 6px 10px; color: #6f7d89; background: #f4f7f9; border-radius: 20px; font-size: 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #f8fafb; }
th { padding: 10px 22px; color: #8995a1; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
td { padding: 11px 22px; color: #435465; font-size: 11px; border-top: 1px solid #edf0f3; white-space: nowrap; }
tbody tr:hover { background: #fbfcfd; }
.score-chip { color: #34546c; font-weight: 700; }
.empty-value { color: #a5afb8; }
.tag { display: inline-flex; border-radius: 20px; padding: 4px 8px; font-size: 9px; font-weight: 700; }
.tag-red { color: #b94e4e; background: #fff0f0; }
.tag-amber { color: #a8751b; background: #fff7e8; }
.tag-green { color: #17835f; background: #eaf8f2; }
.empty-state { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8794a0; text-align: center; }
.empty-state strong { margin-top: 9px; color: #596b7a; font-size: 12px; }
.empty-state p { margin: 5px 0; font-size: 10px; }
.empty-illustration { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #4f9bc4; background: #e9f5fa; font-size: 18px; }
.login-card { width: min(420px, 100%); padding: 36px 38px 29px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 12px 40px #1837500d; }
.login-card h1 { margin: 7px 0 5px; font: 800 28px 'Segoe UI', Arial, sans-serif; letter-spacing: -.04em; }
.login-card > p { margin: 0 0 25px; }
.form-stack { display: grid; gap: 9px; }
.form-stack label { color: #46596b; font-size: 11px; font-weight: 700; margin-top: 5px; }
.form-stack input { height: 42px; width: 100%; border: 1px solid #dce3e9; border-radius: 7px; padding: 0 12px; outline: 0; font-size: 13px; }
.form-stack input:focus, .filter-bar input:focus { border-color: #61acd4; box-shadow: 0 0 0 3px #1686c71a; }
.login-note { margin-top: 20px !important; padding-top: 16px; border-top: 1px solid #edf0f3; color: #9aa5af !important; font-size: 10px !important; text-align: center; }
.flash-stack { display: grid; gap: 8px; margin-bottom: 15px; }
.flash { padding: 10px 13px; border: 1px solid; border-radius: 7px; font-size: 11px; }
.flash-error { color: #a84848; background: #fff2f2; border-color: #f2d1d1; }
.flash-success { color: #217d5e; background: #effaf5; border-color: #cceede; }
.compact-heading { align-items: center; }
.import-panel { padding: 30px; max-width: 700px; }
.import-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 13px; color: var(--blue); background: #e9f6fb; border-radius: 11px; font-size: 20px; }
.import-panel > p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.import-panel code { color: #185f86; background: #f0f7fa; padding: 2px 4px; border-radius: 4px; }
.upload-form { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 21px 0; }
.upload-form input[type=file] { max-width: 100%; color: #657381; font-size: 11px; }
.notice { padding: 12px 14px; border-radius: 7px; color: #6d5a35; background: #fff9eb; font-size: 10px; line-height: 1.6; }
.user-create-panel, .users-list-panel { margin-bottom: 16px; overflow: hidden; }
.user-create-panel { padding: 21px 22px; }
.user-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; margin: 20px 0 15px; }
.user-form label { display: grid; gap: 6px; color: #526477; font-size: 10px; font-weight: 700; }
.user-form input, .reset-form input { min-width: 0; height: 38px; padding: 0 10px; border: 1px solid #dce3e9; border-radius: 6px; outline: 0; font-size: 11px; }
.user-form input:focus, .reset-form input:focus { border-color: #61acd4; box-shadow: 0 0 0 3px #1686c71a; }
.button-small { min-height: 30px; padding: 0 10px; font-size: 10px; }
.user-actions form { margin: 0; }
.you-tag { margin-left: 7px; color: #738394; font-size: 9px; font-weight: 500; }
.password-row td { padding-top: 0; border-top: 0; }
.password-row details { color: #71808e; font-size: 10px; }
.password-row summary { width: fit-content; cursor: pointer; color: #51758e; }
.reset-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 9px 0 4px; }
.reset-form input { width: min(240px, 100%); }
.no-users { padding: 22px; color: #8794a0; text-align: center; }
.database-status { padding: 22px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.database-status h2 { margin: 6px 0 3px; font: 700 16px 'Segoe UI', Arial, sans-serif; }
.database-status p { margin: 0; }
.source-counts { display: flex; flex-wrap: wrap; gap: 9px; }
.source-counts span { padding: 8px 10px; color: #71808e; background: #f5f8fa; border-radius: 7px; font-size: 10px; }
.source-counts strong { color: #314d64; font-size: 12px; }
.database-panel { max-width: 850px; padding: 24px; }
.database-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.database-form label { display: grid; align-content: start; gap: 6px; color: #526477; font-size: 10px; font-weight: 700; }
.database-form input { min-width: 0; width: 100%; height: 40px; padding: 0 10px; border: 1px solid #dce3e9; border-radius: 6px; outline: 0; font-size: 12px; }
.database-form textarea { min-width: 0; width: 100%; resize: vertical; padding: 10px; border: 1px solid #dce3e9; border-radius: 6px; outline: 0; color: #34485b; background: #fff; font: 11px/1.55 Consolas, 'Courier New', monospace; }
.database-form input:focus { border-color: #61acd4; box-shadow: 0 0 0 3px #1686c71a; }
.database-form textarea:focus { border-color: #61acd4; box-shadow: 0 0 0 3px #1686c71a; }
.database-form input:disabled { color: #9aa5af; background: #f6f8fa; }
.database-form textarea:disabled { color: #9aa5af; background: #f6f8fa; }
.database-form small { color: #84909b; font-size: 9px; font-weight: 400; line-height: 1.5; }
.database-password, .database-query, .database-folder, .database-submit, .export-schedule { grid-column: 1 / -1; }
.database-submit { padding-top: 2px; }
.database-notice { margin-top: 15px; }
.export-schedule { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 7px; color: #526477; background: #f5f8fa; font-size: 11px; }
.export-schedule span { color: #71808e; }
.daily-export-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 19px; margin-bottom: 18px; }
.daily-export-card strong { display: block; margin-top: 5px; font-size: 13px; }
.daily-export-card p { margin: 5px 0 0; }
.daily-export-card form { margin: 0; }
.export-error { color: #a84848 !important; }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }

@media (max-width: 760px) {
  .topbar { height: 66px; padding: 0 5vw; }
  .topbar-actions { gap: 10px; }
  .signed-in { display: none; }
  .page { margin-top: 28px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .metrics { grid-template-columns: 1fr; gap: 10px; }
  .metric-card { min-height: 105px; }
  .chart-grid { grid-template-columns: 1fr; }
  .filter-bar { align-items: flex-start; flex-wrap: wrap; }
  .filter-title { width: 100%; }
  .filter-bar label { flex: 1; flex-direction: column; align-items: flex-start; }
  .filter-bar input { width: 100%; }
  .login-card { padding: 30px 25px 23px; }
  .user-form { grid-template-columns: 1fr; }
  .user-form .button { width: 100%; }
  .database-status { align-items: flex-start; flex-direction: column; }
  .database-form { grid-template-columns: 1fr; }
  .database-password, .database-query, .database-folder, .database-submit, .export-schedule { grid-column: auto; }
  .database-submit .button { width: 100%; }
  .daily-export-card { align-items: flex-start; flex-direction: column; }
  .daily-export-card .button { width: 100%; }
  th, td { padding-left: 14px; padding-right: 14px; }
}

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

/* Kinetix PulseLens enterprise theme */
:root { font-size: 14px; }
body { color: var(--ink); }
.topbar { height: 64px; border-bottom-color: var(--line); }
.brand-mark { width: 136px; height: 58px; }
.brand strong { color: var(--ink); }
.nav-link { min-height: 40px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 8px; color: var(--navy); }
.nav-link:hover { color: var(--blue); background: #eff4ff; }
.page { margin-top: 32px; }
.page-heading h1 { max-width: 760px; font-size: 28px; line-height: 32px; letter-spacing: -.025em; }
.eyebrow { color: var(--muted); font-size: 12px; letter-spacing: .05em; }
.muted { color: var(--muted); font-size: 14px; line-height: 20px; }
.button { min-height: 44px; border-radius: 8px; font-size: 14px; font-weight: 500; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.button-primary { background: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { border-color: #d0d5dd; color: #344054; }
.button-quiet { min-height: 40px; }
.export-download select,
.filter-bar input,
.filter-bar select,
.form-stack input,
.user-form input,
.reset-form input,
.database-form input,
.database-form textarea {
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  color: var(--navy);
  font: inherit;
}
.export-download select { min-height: 44px; }
.filter-bar { border-color: var(--line); border-radius: 12px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
.filter-title { color: var(--navy); }
.filter-bar label, .user-form label, .database-form label, .form-stack label { color: var(--navy); font-size: 12px; }
.filter-bar input, .filter-bar select { min-height: 40px; padding: 0 10px; }
.metrics { gap: 16px; }
.metric-card { min-height: 132px; padding: 20px; border-color: var(--line); border-radius: 12px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
.metric-label { color: var(--muted); font-size: 12px; }
.metric-value { color: var(--ink); font: 700 32px/1.2 'JetBrains Mono', Consolas, monospace; }
.metric-value small { font: 500 14px Inter, 'Segoe UI', Arial, sans-serif; }
.metric-help { color: var(--muted); font-size: 12px; }
.panel, .daily-export-card { border-color: var(--line); border-radius: 12px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
.chart-grid .panel { padding: 20px; }
.panel-heading h2, .import-panel h2, .database-status h2 { color: var(--ink); font-size: 20px; line-height: 28px; letter-spacing: -.02em; }
.panel-heading p { color: var(--muted); font-size: 12px; line-height: 18px; }
.fill-blue { background: linear-gradient(90deg, #3b82f6, #4338ca); }
.fill-violet { background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.fill-green { background: #10b981; }
.fill-amber { background: #f59e0b; }
thead { background: #f8fafc; }
th { padding-top: 12px; padding-bottom: 12px; color: var(--muted); font-size: 12px; letter-spacing: .05em; }
td { height: 48px; color: var(--navy); font-size: 14px; border-top-color: var(--line); }
tbody tr:hover { background: #f9fafb; }
.count-pill { color: var(--navy); background: #f2f4f7; font-size: 12px; }
.login-card { border-color: var(--line); border-radius: 12px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
.login-card h1 { color: var(--ink); font-size: 28px; }
.form-stack input, .user-form input, .reset-form input, .database-form input { min-height: 44px; }
.database-form textarea { line-height: 1.55; }
.form-stack input:focus, .filter-bar input:focus, .filter-bar select:focus,
.user-form input:focus, .reset-form input:focus, .database-form input:focus,
.database-form textarea:focus, .export-download select:focus {
  outline: 2px solid transparent;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px #dbeafe;
}
.notice { border-left: 4px solid var(--amber); border-radius: 12px; color: #92400e; background: #fffbeb; font-size: 14px; }
.database-notice { border-left-color: var(--blue); color: #1e40af; background: #eff6ff; }
.flash { border-radius: 12px; font-size: 14px; }
.flash-error { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.flash-success { color: #065f46; background: #d1fae5; border-color: #a7f3d0; }
.tag-red { color: #991b1b; background: #fee2e2; }
.tag-amber { color: #92400e; background: #fef3c7; }
.tag-green { color: #065f46; background: #d1fae5; }
.score-chip { color: var(--navy); }
.empty-illustration { color: var(--blue); background: #eff6ff; }
.import-icon { color: var(--blue); background: #dbeafe; }
.footer { color: var(--muted); }

@media (max-width: 760px) {
  .topbar { height: auto; min-height: 64px; padding: 6px 5vw; gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark { width: 104px; height: 48px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 10px; }
  .topbar-actions { gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
  .nav-link { min-height: 40px; padding: 0 7px; font-size: 12px; }
  .page { width: 90vw; }
  .export-download { width: 100%; }
  .export-download select { min-width: 0; flex: 1; }
}

/* PulseLens report identity */
.dashboard-heading { align-items: center; padding: 5px 0 24px; border-bottom: 1px solid var(--line); }
.dashboard-intro .eyebrow { color: #2f6bff; font-weight: 700; letter-spacing: .08em; }
.dashboard-intro .eyebrow span { color: #c9364f; padding: 0 3px; }
.dashboard-heading h1 { margin-top: 9px; font-size: clamp(28px, 3vw, 34px); letter-spacing: -.04em; }
.dashboard-heading .muted strong { color: #344054; font-weight: 600; }
.data-source-label { display: inline-flex; align-items: center; gap: 7px; margin-top: 13px; color: #475467; font-size: 12px; font-weight: 600; }
.source-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px #d1fae5; }
.metrics { grid-template-columns: 1.1fr 1fr 1fr; gap: 18px; margin: 22px 0; }
.metric-card { position: relative; min-height: 148px; padding: 22px 23px; border-top: 0; overflow: hidden; }
.metric-card:not(:first-child)::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, #2f6bff, #7c3aed); }
.metrics .metric-card:first-child { color: #fff; background: linear-gradient(125deg, #2f6bff, #4338ca); border-color: transparent; }
.metrics .metric-card:first-child .metric-label,
.metrics .metric-card:first-child .metric-help { color: #e7edff; }
.metrics .metric-card:first-child .metric-value,
.metrics .metric-card:first-child .metric-value small { color: #fff; }
.metrics .metric-card:first-child::after { content: ''; position: absolute; right: -28px; bottom: -68px; width: 180px; height: 180px; border: 1px solid #ffffff30; border-radius: 50%; box-shadow: 0 0 0 24px #ffffff0b, 0 0 0 48px #ffffff08; }
.chart-grid { gap: 18px; margin-bottom: 20px; }
.chart-grid .panel { border-top: 3px solid #2f6bff; }
.chart-grid .panel:nth-child(2) { border-top-color: #7c3aed; }
.panel-heading h2, .import-panel h2 { font-weight: 650; }
.bars { gap: 13px; }
.bar-track { height: 10px; background: #f1f5f9; }
.nps-track { background: #f1f5f9; }
.response-panel { margin-top: 20px; }
.response-heading { border-bottom: 1px solid var(--line); }
.response-heading h2 { font-size: 18px; }
.daily-export-card { border-left: 3px solid #2f6bff; }
.filter-bar { min-height: 58px; }
.filter-title { letter-spacing: -.01em; }
.dashboard-heading .export-download select { max-width: 230px; }

@media (max-width: 760px) {
  .dashboard-heading { align-items: flex-start; gap: 16px; padding-bottom: 18px; }
  .dashboard-heading .export-download { width: 100%; }
  .metrics { grid-template-columns: 1fr; gap: 10px; margin: 16px 0; }
  .metric-card { min-height: 112px; }
}

/* Corrected Kinetix PulseLens design system */
:root {
  --ink: #101828;
  --muted: #64748b;
  --line: #e5e7eb;
  --canvas: #f3f4f6;
  --blue: #1d4ed8;
  --blue-dark: #101828;
  --navy: #475569;
  --violet: #e11d25;
  --green: #10b981;
  --red: #e11d25;
  --amber: #d97706;
}
.page-heading h1, .login-card h1 { font-weight: 800; letter-spacing: -.03em; }
.dashboard-heading { border-bottom-color: #e5e7eb; }
.dashboard-intro .eyebrow { color: #1d4ed8; font-size: 11px; letter-spacing: .08em; }
.dashboard-heading h1 { font-size: 32px; line-height: 38px; }
.button { min-height: 40px; padding: 0 14px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.button-primary { color: #fff; background: #101828; box-shadow: none; }
.button-primary:hover { background: #293241; }
.button-secondary { border-color: #d1d5db; border-radius: 6px; background: #fff; }
.button-quiet { border-radius: 6px; }
.button-small { min-height: 36px; border-radius: 6px; }
.panel, .metric-card, .filter-bar, .daily-export-card, .login-card {
  border-color: #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.metrics { gap: 14px; }
.metric-card { min-height: 132px; padding: 19px 20px; }
.metric-card:not(:first-child)::before { width: 3px; background: #e11d25; }
.metrics .metric-card:first-child {
  color: #fff;
  background: #101828;
  border-color: #101828;
  border-radius: 10px;
}
.metrics .metric-card:first-child .metric-label,
.metrics .metric-card:first-child .metric-help { color: #d0d5dd; }
.metrics .metric-card:first-child .metric-value,
.metrics .metric-card:first-child .metric-value small { color: #fff; }
.metrics .metric-card:first-child::after {
  border-color: #ffffff24;
  box-shadow: 0 0 0 24px #ffffff08, 0 0 0 48px #ffffff05;
}
.metric-value { font-size: 28px; font-variant-numeric: tabular-nums; }
.metric-value small { font-variant-numeric: normal; }
.daily-export-card { border-left: 3px solid #2563eb; }
.chart-grid .panel, .chart-grid .panel:nth-child(2) { border-top: 1px solid #e5e7eb; }
.chart-grid .panel:nth-child(2) { border-top-color: #e5e7eb; }
.bar-track { height: 8px; border-radius: 4px; background: #f1f5f0; }
.bar-fill { border-radius: 4px; }
.fill-blue { background: linear-gradient(90deg, #101828 0%, #e11d25 100%); }
.fill-violet { background: #e11d25; }
.nps-track { background: #e5e7eb; border-radius: 3px 3px 0 0; }
.nps-fill { min-height: 0; border-radius: 3px 3px 0 0; background: #e11d25; }
.nps-empty { background: #e5e7eb; }
.filter-bar { min-height: 52px; }
.filter-bar input, .filter-bar select, .export-download select { min-height: 36px; border-radius: 6px; }
.form-stack input, .user-form input, .reset-form input, .database-form input { min-height: 40px; border-radius: 6px; }
.database-form textarea { border-radius: 6px; }
.export-download select { font-size: 13px; }
.panel-heading h2, .import-panel h2, .database-status h2 { font-size: 18px; line-height: 26px; }
.response-heading h2 { font-size: 18px; }
.notice, .flash { border-radius: 8px; }
.flash-success { color: #065f46; background: #d1fae5; border-color: #a7f3d0; }
.source-dot { background: #10b981; }

/* Dense, utilitarian PulseLens layout */
:root {
  --ink: #111113;
  --muted: #6b7280;
  --line: #e5e7eb;
  --canvas: #f2f3f5;
  --blue: #1d4ed8;
  --blue-dark: #111113;
  --navy: #374151;
  --violet: #d71921;
  --green: #16a34a;
  --red: #d71921;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow: 0 0 0 1px #e5e7eb;
  --font-mono: 'JetBrains Mono', 'Geist Mono', Consolas, monospace;
  font-size: 13px;
}
body { background: #f2f3f5; color: #111113; font-size: 13px; }
.topbar { height: 48px; min-height: 48px; box-shadow: none; }
.brand-mark { width: 100px; height: 32px; }
.brand { gap: 10px; }
.brand strong { font-size: 14px; }
.brand small { font-size: 10px; }
.nav-link { color: #374151; font-size: 12px; }
.nav-link:hover { color: #111113; background: #f3f4f6; }
.page { width: min(1180px, 92vw); margin-top: 20px; margin-bottom: 28px; }
.dashboard-heading { padding: 0 0 12px; margin-bottom: 10px; border-bottom: 1px solid #e5e7eb; }
.dashboard-intro .eyebrow { color: #1d4ed8; font-size: 11px; letter-spacing: .08em; }
.dashboard-heading h1 { margin: 5px 0 3px; font-size: 28px; line-height: 34px; letter-spacing: -.03em; }
.dashboard-heading .muted { font-size: 13px; line-height: 20px; }
.data-source-label { margin-top: 7px; color: #374151; font-size: 12px; }
.source-dot { width: 7px; height: 7px; background: #16a34a; box-shadow: none; }
.button { min-height: 36px; padding: 0 14px; border-radius: 6px; font-size: 13px; font-weight: 600; box-shadow: none; }
.button-primary { color: #fff; background: #111113; }
.button-primary:hover { background: #29292c; }
.button-secondary { min-height: 34px; border-color: #d1d5db; color: #111113; background: #fff; border-radius: 6px; }
.button-quiet { min-height: 32px; border-radius: 6px; }
.export-download { gap: 6px; }
.export-download select { min-height: 36px; border-radius: 6px; background: #f9fafb; font-size: 12px; }
.daily-export-card.status-strip {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 10px;
  padding: 7px 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.status-strip-title { display: flex; align-items: center; gap: 7px; color: #6b7280; font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.document-icon { position: relative; width: 11px; height: 14px; border: 1px solid #6b7280; border-radius: 1px; }
.document-icon::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: 3px; border-top: 1px solid #6b7280; box-shadow: 0 -3px 0 #6b7280; }
.daily-export-card strong { display: inline-block; margin: 0 0 0 8px; color: #111113; font-size: 12px; font-weight: 600; }
.daily-export-card p { display: inline; margin: 0 0 0 9px; color: #6b7280; font-size: 12px; }
.daily-export-card .eyebrow { display: inline; }
.daily-export-card form { flex: 0 0 auto; }
.metric-block.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}
.metrics.metric-block .metric-card,
.metrics.metric-block .metric-card:first-child {
  position: relative;
  min-height: 108px;
  margin: 0;
  padding: 12px 16px 10px;
  overflow: visible;
  border: 0;
  border-right: 1px solid #e5e7eb;
  border-radius: 0;
  color: #111113;
  background: #fff;
  box-shadow: none;
}
.metrics.metric-block .metric-card:last-child { border-right: 0; }
.metrics.metric-block .metric-card::before { display: none; }
.metrics.metric-block .metric-card::after { content: none; }
.metric-label { color: #6b7280; font-size: 10px; line-height: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.metric-value,
.metrics.metric-block .metric-card:first-child .metric-value {
  display: block;
  margin: 7px 0 4px;
  color: #111113;
  font: 700 24px/1.15 var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.metric-value::after { content: ''; display: block; width: 16px; height: 2px; margin-top: 5px; background: #d71921; }
.metric-value small,
.metrics.metric-block .metric-card:first-child .metric-value small { color: #6b7280; font: 500 12px Inter, Arial, sans-serif; }
.metrics.metric-block .metric-card:first-child .metric-label,
.metrics.metric-block .metric-card:first-child .metric-help { color: #6b7280; }
.metric-help { color: #6b7280; font-size: 12px; line-height: 16px; }
.filter-bar { min-height: 42px; gap: 9px; margin-bottom: 12px; padding: 5px 9px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; box-shadow: none; }
.filter-title { color: #374151; font-size: 12px; }
.filter-bar label { flex-direction: row; align-items: center; color: #6b7280; font-size: 12px; }
.filter-bar input, .filter-bar select { min-height: 32px; padding: 0 8px; border-radius: 6px; background: #f9fafb; font-size: 12px; }
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}
.chart-grid .panel,
.chart-grid .panel:nth-child(2) {
  min-height: 0;
  padding: 11px 14px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.chart-grid .panel:first-child { border-right: 1px solid #e5e7eb; }
.panel-heading h2, .chart-grid .panel-heading h2 { color: #111113; font-size: 14px; line-height: 20px; font-weight: 650; }
.panel-heading p { margin-top: 2px; color: #6b7280; font-size: 11px; line-height: 16px; }
.panel-icon { width: 24px; height: 24px; border-radius: 4px; }
.panel-icon.blue, .panel-icon.violet { color: #6b7280; background: transparent; }
.bars { gap: 0; margin-top: 8px; }
.bar-row { min-height: 28px; grid-template-columns: 24px minmax(30px, 1fr) 22px; gap: 8px; }
.bar-label, .bar-value { color: #6b7280; font-size: 11px; }
.bar-track { height: 6px; border-radius: 4px; background: #f3f4f6; }
.bar-fill { border-radius: 4px; background: linear-gradient(90deg, #111113 0%, #d71921 100%); }
.nps-bars { height: 112px; margin-top: 11px; gap: 5px; }
.nps-bar-column { grid-template-rows: 13px 1fr 14px; gap: 2px; }
.nps-count, .nps-label { color: #6b7280; font-size: 10px; }
.nps-track { background: #e5e7eb; border-radius: 0; }
.nps-fill { min-height: 0; border-radius: 0; background: #d71921; }
.nps-empty { background: #e5e7eb; }
.response-panel { margin-top: 0; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; box-shadow: none; }
.response-heading { padding: 9px 12px; border-bottom: 1px solid #e5e7eb; }
.response-heading h2 { font-size: 13px; line-height: 18px; }
.response-heading .panel-heading p { font-size: 11px; }
.distribution-table { margin-top: 6px; }
.distribution-table-heading { display: grid; grid-template-columns: 24px minmax(30px, 1fr) 22px; gap: 8px; min-height: 22px; align-items: center; color: #6b7280; font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.distribution-table-heading span:last-child { text-align: right; }
.count-pill { padding: 3px 7px; border-radius: 4px; color: #6b7280; background: #f3f4f6; font-size: 10px; }
thead { background: #f9fafb; }
th { padding: 7px 12px; color: #6b7280; font-size: 10px; letter-spacing: .08em; }
td { height: 32px; padding: 5px 12px; color: #374151; font-size: 12px; border-top: 1px solid #e5e7eb; }
tbody tr:nth-child(even) { background: #f6f9f6; }
tbody tr:hover { background: #eef2ef; }
.notice, .flash { padding: 7px 10px; border-radius: 0; background: transparent; box-shadow: none; font-size: 12px; }
.notice { border: 0; border-left: 2px solid #d71921; color: #374151; }
.database-notice { border-left-color: #d71921; color: #374151; background: transparent; }
.flash-error, .flash-success { border: 0; border-left: 2px solid #d71921; color: #374151; background: transparent; }
.flash-success { border-left-color: #16a34a; }
.tag-red, .tag-amber, .tag-green { border-radius: 4px; color: #374151; background: #f3f4f6; }
.page-heading h1 { color: #111113; }
.footer { padding: 10px; font-size: 10px; }
.eyebrow { color: #6b7280; }
.dashboard-intro .eyebrow { color: #1d4ed8; }
.nav-link:hover, .clear-filter { color: #111113; }
.panel, .metric-card, .filter-bar, .daily-export-card, .login-card, .user-create-panel, .users-list-panel {
  border-radius: 6px;
  box-shadow: none;
}
.form-stack input:focus, .filter-bar input:focus, .filter-bar select:focus,
.user-form input:focus, .reset-form input:focus, .database-form input:focus,
.database-form textarea:focus, .export-download select:focus {
  outline: 2px solid transparent;
  border-color: #111113;
  box-shadow: 0 0 0 2px #11111320;
}
@media (max-width: 760px) {
  .topbar { min-height: 48px; height: auto; padding: 6px 4vw; }
  .brand-mark { width: 100px; height: 32px; }
  .page { width: 92vw; margin-top: 15px; }
  .dashboard-heading { padding-bottom: 10px; }
  .dashboard-heading h1 { font-size: 24px; line-height: 29px; }
  .daily-export-card.status-strip { align-items: flex-start; flex-direction: column; gap: 5px; }
  .daily-export-card strong, .daily-export-card p { display: block; margin: 4px 0 0; }
  .metric-block.metrics { grid-template-columns: 1fr; }
  .metrics.metric-block .metric-card, .metrics.metric-block .metric-card:first-child { min-height: 82px; padding: 9px 12px; border-right: 0; border-bottom: 1px solid #e5e7eb; }
  .metrics.metric-block .metric-card:last-child { border-bottom: 0; }
  .metric-value { display: inline-block; margin: 4px 8px 0 0; font-size: 21px; }
  .metric-value::after { display: none; }
  .metric-help { display: inline; }
  .filter-bar { flex-wrap: wrap; }
  .filter-title { width: auto; }
  .filter-bar label { flex-direction: row; align-items: center; }
  .chart-grid { grid-template-columns: 1fr; }
  .chart-grid .panel:first-child { border-right: 0; border-bottom: 1px solid #e5e7eb; }
}
