:root {
  font-family: Inter, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: #20232c;
  background: #f7f8fa;
  font-synthesis: none;
  --muted: #7e8491;
  --line: #e9ebef;
  --accent: #6659df;
  --purple-soft: #f1efff;
  --green: #12846a;
  --red: #cf4a52;
  --amber: #b17b21;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b9b1ff;
  outline-offset: 2px;
}
a {
  color: var(--accent);
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  line-height: 1.45;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
small {
  font-size: 11px;
}
input,
select,
textarea {
  border: 1px solid #dfe2e8;
  background: #fff;
  color: #343845;
  border-radius: 7px;
  padding: 9px 12px;
  min-height: 38px;
}
input::placeholder,
textarea::placeholder {
  color: #a0a4af;
}
textarea {
  resize: vertical;
  width: 100%;
}
select {
  padding-right: 26px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin: 16px 0 7px;
}
.muted {
  color: var(--muted);
}
.section-kicker {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 650;
  color: #989daa;
  margin-bottom: 8px;
}
.button,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 7px;
  padding: 8px 14px;
  font-weight: 550;
  white-space: nowrap;
}
.button {
  border: 1px solid #dfe2e8;
  background: #fff;
  color: #4d5261;
}
.button:hover {
  background: #f5f5fb;
}
.primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}
.primary:hover {
  background: #574bc9;
}
.icon-button {
  border: 0;
  background: transparent;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 19px;
  color: #7c8290;
}
.icon-button:hover {
  background: #f0f1f5;
}
.brand {
  font-size: 22px;
  letter-spacing: 1px;
  font-weight: 750;
  color: #252936;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #6c5de2;
  color: white;
  font-size: 25px;
}
.brand-caption {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #989daa;
  align-self: end;
  margin-bottom: 5px;
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 234px;
  background: white;
  border-right: 1px solid var(--line);
  padding: 28px 18px 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  z-index: 5;
}
.sidebar > .brand {
  padding-left: 11px;
}
.workspace-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fafafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 29px 0 27px;
  padding: 12px 10px;
}
.workspace-switch strong {
  display: block;
  font-size: 12px;
}
.workspace-switch small {
  color: #989daa;
  display: block;
}
.workspace-icon {
  width: 30px;
  height: 32px;
  border: 1px solid #e2dff8;
  background: #f2f0ff;
  color: var(--accent);
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 650;
}
.tiny-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #36a68d;
  display: inline-block;
  flex-shrink: 0;
}
.workspace-switch .tiny-dot {
  margin-left: auto;
}
.nav-label {
  font-size: 10px;
  color: #a0a4af;
  padding: 0 13px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
nav {
  display: grid;
  gap: 5px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 7px;
  padding: 10px 12px;
  color: #737a89;
  font-size: 13px;
}
.nav-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.nav-item:hover {
  background: #f7f7fa;
}
.nav-item.active {
  color: var(--accent);
  background: var(--purple-soft);
  font-weight: 600;
}
.nav-item .nav-count {
  margin-left: auto;
  background: #fff;
  border-radius: 4px;
  padding: 0 6px;
  font-size: 10px;
  color: var(--red);
}
.nav-divider {
  border-top: 1px solid var(--line);
  margin: 13px 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 28px 5px 0;
}
.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #8b929f;
}
.sidebar-bottom > small {
  color: #a4a9b3;
  display: block;
  font-size: 9px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 19px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.avatar {
  width: 31px;
  height: 31px;
  background: #eeecf8;
  border: 1px solid #e5e2f0;
  border-radius: 50%;
  color: #7b719f;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.admin-user strong {
  font-size: 11px;
  display: block;
}
.admin-user small {
  font-size: 9px;
  color: #9ca1ac;
  display: block;
}
.admin-user button {
  margin-left: auto;
}
.main-shell {
  margin-left: 234px;
  min-width: 0;
  width: calc(100% - 234px);
}
.topbar {
  height: 65px;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 11px;
  color: #9a9fac;
}
.breadcrumb strong {
  font-weight: 500;
  color: #555d6d;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 10px;
}
.timezone {
  color: #a0a6b1;
}
.environment {
  border: 1px solid #e4e7ed;
  border-radius: 5px;
  padding: 3px 8px;
  color: #797f8d;
  background: #fafbfc;
}
.main-content {
  padding: 29px 34px 20px;
  max-width: 1800px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading .muted {
  font-size: 12px;
  margin-top: 6px;
}
.page-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.page-actions select,
.page-actions button {
  font-size: 11px;
}
.data-group-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.data-group-heading h2 {
  color: #374152;
  font-size: 14px;
  font-weight: 650;
}
.data-group-heading a {
  color: var(--accent);
  font-size: 11px;
  white-space: nowrap;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.line-stats,
.visit-funnel-controls {
  padding: 16px 20px;
  margin-bottom: 16px;
}
.date-range-form,
.line-range-presets,
.funnel-measures {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.date-range-form {
  align-items: end;
  margin-bottom: 8px;
}
.date-range-form label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  min-width: 0;
  max-width: 100%;
}
.date-range-form input {
  min-width: 0;
}
.line-range-presets [aria-pressed="true"],
.funnel-measures [aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
}
.visit-funnel-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.visit-funnel-toolbar .date-range-form {
  margin-bottom: 0;
}
.line-report-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 8px;
}
.line-report-count-pair {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 6px;
  margin: 0;
}
.line-report-count-pair > div {
  min-width: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f5f4fa;
}
.line-report-count-pair > .line-report-count-dedup {
  background: var(--purple-soft);
}
.line-report-counts dt {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 6px;
  font-size: 12px;
  color: #495568;
}
.line-report-counts dt small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.line-report-count-dedup dt small {
  color: var(--accent);
}
.line-report-counts dd {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.line-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.line-delivery-tabs,
.line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.line-delivery-tabs {
  padding: 16px 20px 0;
}
.line-delivery-tabs [aria-pressed="true"] {
  background: #f5f4fa;
  color: var(--accent);
  border-color: var(--accent);
}
.stat-card,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 3px #252b3a02;
}
.stat-card {
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: #495568;
  font-size: 12px;
}
.stat-top h3 {
  font: inherit;
  font-weight: 650;
}
.stat-icon {
  width: 29px;
  height: 29px;
  border-radius: 7px;
  background: #f5f4fa;
  display: grid;
  place-items: center;
  color: #9084cc;
  flex: none;
}
.stat-icon svg {
  width: 15px;
  height: 15px;
}
.stat-value {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 8px 0 8px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.stat-value .unit {
  margin-inline-start: 5px;
  font-size: 12px;
  color: #637083;
  font-weight: 500;
  letter-spacing: normal;
}
.stat-hint {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.45;
  color: #626b7b;
}
.stat-foot {
  font-size: 10px;
  color: #646e7e;
  border-top: 1px solid #f0f1f4;
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.stat-foot a {
  margin-left: auto;
  color: #a0a5af;
}
.stat-card-linked {
  position: relative;
}
.stat-card-linked:hover,
.stat-card-linked:focus-within {
  border-color: var(--accent);
}
.stat-card-linked .stat-foot {
  display: flex;
}
.stat-card-linked .stat-foot a {
  display: inline-block;
}
.stat-card-linked .stat-foot a::after {
  position: absolute;
  inset: 0;
  content: '';
}
.notice-strip {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fffaf2;
  border: 1px solid #f1e8d6;
  border-radius: 8px;
  margin: 18px 0 22px;
  padding: 12px 16px;
  font-size: 11px;
  color: #897348;
}
.notice-strip .notice-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fbecd1;
  color: #b58b39;
  text-align: center;
  font-weight: 600;
}
.notice-strip a {
  margin-left: auto;
  white-space: nowrap;
  color: #9d792e;
  font-weight: 550;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 19px;
  margin-bottom: 20px;
}
.panel {
  min-width: 0;
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 0;
}
.panel-header .muted {
  font-size: 10px;
  margin-top: 4px;
}
.panel-header a,
.text-link {
  font-size: 11px;
}
.panel-body {
  padding: 18px 22px 20px;
}
.legend {
  display: flex;
  gap: 13px;
  color: #8d95a2;
  font-size: 10px;
}
.legend span::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  margin-right: 5px;
  background: #8271e7;
}
.legend .failed::before {
  background: #efb2a4;
}
.bar-chart {
  height: 168px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding-top: 15px;
  overflow: hidden;
  border-bottom: 1px solid #e9ebf0;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 39px,
    #f1f2f6 40px,
    #f1f2f6 41px
  );
}
.chart-day {
  flex: 1;
  min-width: 4px;
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  position: relative;
}
.chart-bar {
  background: #8979e4;
  border-radius: 4px 4px 0 0;
  width: 48%;
  max-width: 28px;
  min-height: 0;
}
.chart-bar.failed {
  background: #edb4a7;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  color: #a1a7b1;
  font-size: 9px;
  padding-top: 8px;
}
.chart-caption {
  margin-top: 17px;
  font-size: 10px;
  color: #9299a6;
  display: flex;
  justify-content: space-between;
}
.funnel-row {
  margin-bottom: 22px;
}
.funnel-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #757e8e;
}
.funnel-label strong {
  margin-left: auto;
  color: #434957;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.track {
  height: 7px;
  background: #f3f2f8;
  border-radius: 5px;
  margin-top: 9px;
  overflow: hidden;
}
.track span {
  display: block;
  height: 100%;
  background: #8a7ae6;
  border-radius: 5px;
}
.funnel-row:nth-child(2) .track span {
  background: #b2a7ee;
}
.funnel-row:nth-child(3) .track span {
  background: #cfc7f7;
}
.funnel-note {
  font-size: 10px;
  color: #9b9fad;
  padding-top: 1px;
}
.visit-funnel {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 760px;
  margin: 16px auto;
}
.visit-funnel-step {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 16px;
  min-width: 0;
  padding: 14px clamp(12px, 3vw, 28px);
  border: 1px solid #ded8fa;
  border-radius: 10px;
  background: #eae5fc;
  color: #3f345f;
}
.visit-funnel-step:nth-child(2) {
  width: 90%;
  background: #eeeafd;
}
.visit-funnel-step:nth-child(3) {
  width: 80%;
  background: #f2effd;
}
.visit-funnel-step dt {
  font-size: 14px;
  font-weight: 600;
}
.visit-funnel-step dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.visit-funnel-step dd strong {
  font-size: 22px;
  font-weight: 650;
  color: #33236e;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: left;
}
thead {
  background: #fafbfc;
}
th {
  font-weight: 500;
  color: #9299a6;
  font-size: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f1f4;
  color: #626a7a;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfcfe;
}
td strong {
  font-weight: 550;
  color: #4b5363;
}
td small {
  display: block;
  font-size: 9px;
  color: #a0a6b2;
  margin-top: 2px;
}
td button.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 11px;
  cursor: pointer;
}
.visit-records th,
.visit-records td {
  padding-inline: 14px;
}
.visit-records td {
  white-space: normal;
  overflow-wrap: anywhere;
}
.visit-record-id {
  display: grid;
  justify-items: start;
  gap: 5px;
  margin-bottom: 4px;
  white-space: nowrap;
}
.visit-record-id small {
  margin-top: 0;
}
.visit-last-record small {
  margin-top: 4px;
  color: #677386;
}
.visit-record-id .button {
  min-height: 28px;
  padding: 4px 8px;
}
.visit-form-status {
  margin-top: 5px;
  font-size: 10px;
  color: #626a7a;
}
.mono {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.5;
  background: #f0f2f6;
  color: #808898;
}
.badge::before {
  content: '';
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.badge.success {
  color: #298b75;
  background: #edf8f2;
}
.badge.danger {
  color: #ce6665;
  background: #fff1f0;
}
.badge.warning {
  color: #b78d44;
  background: #fcf5e8;
}
.badge.info {
  color: #7a6ac4;
  background: #f3f0ff;
}
.table-panel .panel-header {
  padding-bottom: 17px;
}
.table-footer {
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  font-size: 10px;
  color: #9ba2ad;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.table-footer button {
  font-size: 10px;
  min-height: 28px;
  padding: 3px 9px;
}
.pagination {
  display: flex;
  gap: 9px;
  align-items: center;
}
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.search {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 350px;
}
.search input {
  width: 100%;
  font-size: 11px;
  padding-left: 31px;
}
.search span {
  position: absolute;
  left: 12px;
  top: 8px;
  color: #a0a6b1;
}
.filters select,
.filters button {
  font-size: 11px;
}
.filters .export {
  margin-left: auto;
}
.data-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #929aa8;
  margin-bottom: 17px;
  line-height: 1.8;
}
.data-note a {
  white-space: nowrap;
}
.summary-line {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding: 15px 21px;
  background: #fcfcfe;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: #8d94a0;
}
.summary-line strong {
  color: #5b6373;
  font-weight: 600;
  margin-left: 5px;
}
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #abb0ba;
  margin-top: 25px;
}
.empty {
  text-align: center;
  padding: 46px 20px;
  color: #9aa0ad;
}
.empty strong {
  font-weight: 500;
  display: block;
  color: #777f90;
  margin: 7px 0;
}
.empty small {
  white-space: normal;
}
.empty svg {
  width: 26px;
  height: 26px;
}
.loading {
  padding: 80px;
  text-align: center;
  color: #9a95b6;
}
.error-text {
  font-size: 12px;
  color: var(--red);
  min-height: 22px;
  margin-top: 10px;
}
.error-banner {
  padding: 12px 15px;
  border: 1px solid #f1d2d2;
  background: #fff4f3;
  border-radius: 8px;
  color: #b54b4c;
  margin-bottom: 18px;
}
.source-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.source-card {
  padding: 23px;
}
.source-number {
  color: #b1a5e9;
  background: #f4f1fe;
  border-radius: 6px;
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  margin-bottom: 13px;
}
.source-card h3 {
  margin-bottom: 8px;
}
.source-card code {
  font-size: 10px;
  color: #847b9c;
  background: #f7f6fb;
  padding: 5px 8px;
  border-radius: 5px;
  display: inline-block;
  white-space: normal;
  overflow-wrap: anywhere;
}
.source-card p {
  color: #7e8795;
  font-size: 12px;
  margin-top: 12px;
  line-height: 1.9;
}
.source-card small {
  display: block;
  color: #a0a7b2;
  margin-top: 12px;
}
.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.login-story {
  background: #f2f0fb;
  padding: 46px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  color: #68607f;
}
.login-story h1 {
  font-size: 46px;
  color: #41365f;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -1.5px;
}
.eyebrow {
  color: #a299bd;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.login-intro {
  font-size: 14px;
  color: #9a91ad;
  line-height: 2;
  margin-top: 22px;
}
.login-tags {
  display: flex;
  gap: 12px;
  margin-top: 35px;
  font-size: 10px;
  color: #a399b8;
}
.login-tags span {
  padding: 5px 10px;
  border: 1px solid #e2ddef;
  border-radius: 20px;
}
.login-story > small {
  color: #b0a7c0;
  font-size: 9px;
  letter-spacing: 1.4px;
}
.login-main {
  display: grid;
  place-items: center;
  padding: 35px;
}
.login-main form {
  width: 100%;
  max-width: 330px;
}
.login-main h2 {
  font-size: 26px;
  margin-bottom: 7px;
}
.login-main .muted {
  font-size: 12px;
  margin-bottom: 29px;
}
.login-main input {
  width: 100%;
  height: 43px;
}
.login-submit {
  width: 100%;
  height: 43px;
  margin-top: 12px;
  justify-content: space-between;
}
.login-footnote {
  color: #a8adba;
  font-size: 10px;
  margin-top: 20px;
  text-align: center;
}
.detail-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(720px, 96vw);
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100vw;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0;
  background: #f9fafc;
  color: #313746;
}
.detail-dialog::backdrop,
.action-dialog::backdrop {
  background: #1c223e65;
  backdrop-filter: blur(2px);
}
.drawer-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 26px;
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1;
}
.drawer-heading h2 {
  font-size: 18px;
}
#detail-content {
  padding: 24px;
}
.detail-id {
  font-size: 12px;
  word-break: break-all;
  color: #8d91a2;
  margin-bottom: 14px;
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.detail-actions button {
  font-size: 11px;
}
.detail-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 17px;
  overflow: hidden;
}
.detail-section > h3 {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.report-document-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
}
.report-document-status {
  margin: 0;
  padding: 0 18px 12px;
  font-size: 12px;
}
.report-document-status:empty {
  display: none;
}
.report-document-frame {
  display: block;
  width: 100%;
  height: min(66dvh, 720px);
  border: 0;
  border-top: 1px solid var(--line);
}
.visit-detail-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 12px;
  font-size: 11px;
  color: #647085;
  overflow-wrap: anywhere;
}
.visit-detail-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 17px;
}
.visit-detail-summary > .detail-section {
  margin-bottom: 0;
}
.visit-detail-summary .field-label {
  color: #667184;
  font-size: 11px;
}
.visit-section-heading {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.visit-section-heading h3 {
  font-size: 13px;
}
.visit-section-heading p {
  margin-top: 4px;
  font-size: 11px;
  color: #626e80;
}
.visit-data-section table {
  white-space: normal;
}
.visit-data-section td {
  overflow-wrap: anywhere;
}
.visit-detail-note {
  margin: 0;
  padding: 14px 18px;
  font-size: 12px;
}
.visit-detail-pagination {
  padding: 10px 18px;
}
.detail-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 18px;
  gap: 15px 22px;
}
.field-label {
  font-size: 10px;
  color: #949ba9;
  margin-bottom: 3px;
}
.field-value {
  font-size: 12px;
  color: #555f70;
  overflow-wrap: anywhere;
}
.field-value small {
  display: block;
  font-size: 9px;
  color: #a0a7b3;
}
.detail-section pre {
  margin: 0;
  padding: 17px;
  font-size: 10px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #7c8196;
  max-height: 400px;
  overflow: auto;
}
.detail-section details {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  color: #8071b9;
  font-size: 11px;
}
.timeline {
  padding: 16px 20px;
  display: grid;
  gap: 17px;
}
.timeline-item {
  position: relative;
  padding-left: 17px;
  border-left: 2px solid #eeedf5;
}
.timeline-item strong {
  font-size: 11px;
  display: block;
  font-weight: 550;
  color: #626b7d;
}
.timeline-item p {
  font-size: 11px;
  color: #939bab;
  margin-top: 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.timeline-item small {
  font-size: 9px;
  color: #a6adb9;
}
.action-dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 440px;
  max-width: 94vw;
  padding: 26px;
  color: #373d4d;
}
.action-dialog h2 {
  font-size: 19px;
}
.action-dialog .muted {
  font-size: 12px;
  margin-top: 12px;
}
.action-dialog select {
  width: 100%;
}
.action-dialog small {
  display: block;
  line-height: 1.8;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  background: #343447;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px #0002;
  z-index: 30;
  max-width: 90vw;
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.compact td {
  padding: 11px 15px;
}
.compact th {
  padding: 10px 15px;
}
.source-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}
.channel-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #eeebf8;
  border-radius: 7px;
  color: #a598ca;
  background: #f8f7fc;
  font-size: 10px;
}
.row-detail {
  display: block;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-label {
  display: none;
}
.mobile-only {
  display: none;
}
@media (min-width: 1500px) {
  .main-content {
    padding: 35px 44px;
  }
  .topbar {
    padding: 0 44px;
  }
  .stat-card {
    padding: 24px;
  }
  .bar-chart {
    height: 190px;
  }
}
@media (min-width: 1800px) {
  .stats-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 203px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .main-shell {
    margin-left: 203px;
    width: calc(100% - 203px);
  }
  .brand-caption {
    display: none;
  }
  .main-content {
    padding: 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats-grid {
    gap: 11px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-foot {
    font-size: 9px;
  }
  .overview-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .stat-value {
    font-size: 27px;
  }
  td,
  th {
    padding-left: 15px;
    padding-right: 15px;
  }
}
@media (max-width: 850px) {
  .mobile-only {
    display: inline-flex;
  }
  .sidebar {
    width: 68px;
    padding: 22px 10px;
  }
  .sidebar .brand {
    font-size: 0;
    padding: 0;
    justify-content: center;
  }
  .brand-mark {
    font-size: 25px;
  }
  .workspace-switch,
  .nav-label,
  .sidebar-bottom,
  .nav-text,
  .nav-count {
    display: none !important;
  }
  .sidebar nav {
    margin-top: 34px;
  }
  .nav-item {
    justify-content: center;
    padding: 12px;
  }
  .nav-item svg {
    width: 19px;
    height: 19px;
  }
  .main-shell {
    margin-left: 68px;
    width: calc(100% - 68px);
  }
  .stats-grid,
  .line-report-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading .muted {
    max-width: 280px;
  }
  .topbar-right .timezone {
    display: none;
  }
  .source-grid {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 35px;
  }
  .login-story h1 {
    font-size: 34px;
  }
}
@media (max-width: 600px) {
  .main-content {
    padding: 20px 14px;
  }
  .topbar {
    padding: 0 15px;
    height: 55px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    flex-direction: column;
    gap: 15px;
  }
  .page-actions {
    width: 100%;
  }
  .page-actions select {
    flex: 1;
  }
  .stat-top {
    font-size: 11px;
  }
  .stat-icon {
    width: 24px;
    height: 24px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat-foot {
    display: block;
    min-height: 28px;
  }
  .stat-foot a {
    display: none;
  }
  .notice-strip {
    align-items: flex-start;
    padding: 11px;
    font-size: 10px;
  }
  .notice-strip .notice-icon {
    flex-shrink: 0;
  }
  .notice-strip a {
    display: none;
  }
  .panel-header {
    padding: 16px 16px 0;
  }
  .panel-body {
    padding: 16px;
  }
  .page-footer {
    display: block;
    line-height: 2;
  }
  .filters {
    padding: 12px;
  }
  .search {
    max-width: none;
    width: 100%;
  }
  .filters .export {
    margin-left: 0;
  }
  .login-view {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: 0;
    padding: 25px;
  }
  .login-story > div:nth-child(2),
  .login-story > small {
    display: none;
  }
  .login-main {
    padding: 30px 30px 80px;
    align-items: start;
  }
  .detail-fields {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .visit-detail-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .detail-dialog {
    width: 100vw;
  }
  #detail-content {
    padding: 15px;
  }
  .detail-actions button {
    font-size: 10px;
  }
  .drawer-heading {
    padding: 18px;
  }
  .legend {
    font-size: 9px;
  }
  .summary-line {
    gap: 10px;
  }
}
